Time of Update: 2014-10-31
標籤:style blog color ar java for sp strong div JsRender
Time of Update: 2014-10-31
標籤:cocos2d-html5 html5 html5引擎 遊戲開發 前端開發 Cocos2d-HTML5 入門第一天搭載了express3
Time of Update: 2014-10-31
標籤:io ar for sp on cti as js return function getElementsByClassName( parent,tag,className
Time of Update: 2014-10-31
標籤:http io ar java for strong on cti html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
Time of Update: 2014-10-30
標籤:node nodejs 編譯node n本文將從 源碼 研究nodejs 的原理、本質,探討nodejs的應用情境,以及高效能開發實踐指南。目錄:第一節:編譯node.js 第二節:源碼分析進入主題:以下是在win7 64 下進行,其他平台編譯 ,請參見官網。第一節:編譯node.js,過程很簡單1、下載源碼。 git
Time of Update: 2014-10-30
標籤:http io os ar 使用 java for sp 檔案 package com.test; import java.io.File; import
Time of Update: 2014-10-30
標籤:des style blog http io color ar 使用 sp
Time of Update: 2014-10-30
標籤:style http io color os ar 使用 java sp 今天(2014-10-30)下午,ChromeSnifferPlus 外掛程式正式登陸 Chrome Web
Time of Update: 2014-10-30
標籤:struts2 web根目錄 struts2中取得web項目的根目錄 /** * 獲得web項目根目錄 */public String getWebRootPath() throws Exception {ActionContext actionContext = ActionContext.getContext();ServletContext servletContext =
Time of Update: 2014-10-30
標籤:struts2 檔案上傳 在web項目中,檔案上傳、頭像上傳這樣的功能經常是要用到的,下面就以在struts2中實現檔案上傳功能為例子,簡單地理一下檔案上傳功能的編碼思路。項目目錄結構項目原始碼web.xml<?xml version="1.0" encoding="UTF-8"?><web-app version="3.0"
Time of Update: 2014-10-31
【基礎演算法】排序-複雜排序之二(找出第K大的數),演算法分割的思想是快速排序最精髓的地方。每一次分割出來的元素K一個排在第K位,所以利用這種思想我們至少知道3點1. 被分割出來的元素K最後一定排在第K位。2. 在K左邊的元素一定比K小或者相等。3. 在K右邊的元素一定比K大或者相等。所以我們可以通過這些性質定位到任意一個元素。比如我們partition完一個數組後,得到A={5,3,4,2,6,8,10,12,11,9}A[K]=8,所以我們知道排好序後的A[5]=8, A[4]一定在8左邊,
Time of Update: 2014-10-31
《C和指標》整理一,《c和指標》整理1.C語言的注釋 在C語言中,如果需要注釋掉一段代碼,且代碼中可能會已經存在/**/注釋形式,那麼可以使用:#if 0 statements#endif
Time of Update: 2014-10-31
hdu,hduacm題意:NBA比賽,雙方共N次進球(N<=100000),無論哪方,進一個球(得分只可能為1,2,3),就記錄一次(記兩隊分數差的絕對值),問最後兩隊的比分有多少種。題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=4972——>>知道最後的比分差k,怎麼求得比分呢?設分數較低的一方的最後分數為x,則另一方的最後分數為x + k,設雙方最後總分和為S,則x = (S - k) / 2
Time of Update: 2014-10-31
thinkphp3.2定義多模組並設定預設模組,thinkphp3.2模組前台入口檔案index.php<?php// +----------------------------------------------------------------------// | ThinkPHP [ WE CAN DO IT JUST THINK ]// +----------------------------------------------------------------------/
Time of Update: 2014-10-31
條件鎖,linux條件鎖ReentrantLock類有一個方法newCondition用來產生這個鎖對象的一個條件(ConditionObject)對象,它實現了Condition介面。Condition提供了線程通訊的一套機制await和signal等線程間進行通訊的方法。。1、適用情境 當某線程擷取了鎖對象,但因為某些條件沒有滿足,需要在這個條件上等待,直到條件滿足才能夠往下繼續執行時,就需要用到條件鎖。
Time of Update: 2014-10-31
【POJ】The Suspects(裸並查集),pojthesuspects並查集的模板題,為了避免麻煩,合并的時候根節點大的合并到小的結點。#include<cstdio>#include<algorithm>using namespace std;const int maxn = 33333;int fa[maxn];int num[maxn];int n,m,t;void init(){ for(int i = 0; i < n; i++) {fa[i]
Time of Update: 2014-10-31
C++關鍵知識,關鍵知識《精通MFC》第一章節整理複習//c++編程技術要點/*//1、虛函數及多態的實現//示範多態技術#include <iostream>using namespace std;void Demo();int main(){Demo();getchar();return 0;}class Graphic{public:virtual void Draw();}; //END CLASS DEFINITION Graphicvoid Graphic::Draw()
Time of Update: 2014-10-31
Climbing Stairs,climbingstairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?簡單遞推class Solution {public: int
Time of Update: 2014-10-31
Python標準庫:內建函數all(iterable),pythoniterable如果可迭代的對象的所有元素全部非空(或者空迭代對象),就返回True。這個函數主要用來判斷列表、元組、字典等對象是否有空元素,比如有10000個元素的列表,如果沒有提供此函數,需要使用迴圈來實現,那麼計算速度會比較慢。這個函數的等同下面代碼的功能:def all(iterable): for element in iterabl
Time of Update: 2014-10-31
最簡單的視音頻播放樣本8:DirectSound播放PCM,directsoundpcm本文記錄DirectSound播放音訊技術。DirectSound是Windows下最常見的音頻播放技術。目前大部分的音頻播放應用都是通過DirectSound來播放的。本文記錄一個使用DirectSound播放PCM的例子。註:一位仁兄已經提醒我DirectSound已經計劃被XAudio2取代了。後來考證了一下發現確有此事。因此在下次更新中考慮加入XAudio2播放PCM的例子。本文仍然記錄一下Direc