Time of Update: 2015-05-10
標籤:1. 安裝lamp環境#安裝Apache2,目前163的源是2.2.22版本sudo apt-get install apache2#安裝MySQL,目前163的源是5.5.24版本apt-get install mysql-server mysql-client#注意MySQL不是無人值守,會提示輸入2次root密碼#安裝PHP5,目前163的源是5.3.10版本apt-get install php5 libapache2-mod-php5#給/var/www目錄目前使用者許可權,
Time of Update: 2015-05-10
標籤:黑馬程式員------<a href="http://www.itheima.com" target="blank">Java培訓、Android培訓、iOS培訓、.Net培訓</a>、期待與您交流! -------協議用於定義多個類應該遵守的規範,協議不提供任何實現。協議體現的是規範和實現分離的設計哲學。協議用來用來聲明一大堆方法,不能聲明成員變數。
Time of Update: 2015-05-10
標籤:configurable joint加在輪子上,connected body是車身。這種情況下,Anchor=(0,0,0)表示輪子一端joint錨點取carWheelCenterConnected Anchor=(-0.699,-0.5,-0.5)表示車身一端joint錨點取:carBodyCenter+(-0.699*d*carBodyXDir)+(-0.5*d*carBodyYDir)+(-0.5*d*carBodyZDir)其中d是車身立方體邊心距。在勾選Auto
Time of Update: 2015-05-10
標籤:短url代碼 百度api 回複簡訊 案例:客戶簽收後,系統會回複一條簡訊給客戶及一個點評服務的連結,由於連結過長,簡訊會自動截斷,所以使用短鏈的方式發送。 代碼如下:public string GetTinyUrl(string strLongUrl) { try
Time of Update: 2015-05-10
標籤:最近寫項目代碼的時候寫C#,VSC#2010剛配置好,開啟之前同學寫的項目的設計介面結果...我擦,卡死了,重複幾次都是這樣。於是上網搜發現是VS一個bug,打一個VSSP1補丁就好了~http://www.microsoft.com/zh-cn/download/details.aspx?id=27195悲劇的發現只有x86版本的,於是自己不抱希望的重新安裝一遍SP1,就好了~我的SP1版本是VS10sp1-KB983509,之後的應該都可以~安裝過程中會遇到其他各種C++2008,C+
Time of Update: 2015-05-10
標籤:判斷事件觸發的元素: var tag = window.event.target || window.event.srcElement; if (tag.tagName.toLowerCase() == "input") { return;
Time of Update: 2015-05-10
標籤:下載後將軟體包解壓解壓後,進入該檔案夾可以看到韌體程式??將所有韌體程式拷貝至LTT軟體安裝目錄下的firmware檔案夾中C:\Program Files\HP StorageWorks Library and Tape Tools\firmware??在作業系統的"管理"中,關閉備份軟體的服務。關閉後,開啟LTTContinueContinue查看Library資訊,當前韌體為5.00查看drive資訊,當前韌體版本為H61W點擊FirmwareUpdate
Time of Update: 2015-05-10
標籤:Other CentOS 7.1 Released: Installation Guide with Screenshots A Git Style Guide Recommender System with Mahout and Elasticsearch Best Practices for High Performing and Efficient Flash Video Start contributing to Docker in 5 easy
Time of Update: 2015-05-10
標籤:使用攔截器的方法過濾特性 methodfilterintercep
Time of Update: 2015-05-10
標籤:DescriptionConsider all the sequences with length (0 < N < 44), containing only the elements 0 and 1, and no two ones are adjacent (110 is not a valid sequence of length 3, 0101 is a valid sequence of length 4).
Time of Update: 2015-05-10
標籤:- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ NSArray *allTouches = [touches allObjects]; if([allTouches count] >=2) { CGPoint p1 = [[allTouches objectAtIndex:0] locationInView:self]; CGPoint
Time of Update: 2015-05-10
標籤:The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie, for n = 3):"123""132""213""231""312""321" Given n&
Time of Update: 2015-05-10
標籤:今天幫朋友使用LODOP實現一個套打程式時,發現LODOP列印外掛程式在chrome下始終無法使用。分析後發現是自己才升級了chrome,chrome新版預設是禁用npapi的,因此需要手動啟用一下,啟用方法如下: 在Google瀏覽器地址欄輸入:chrome://flags/#enable-npapi然後找到“啟用NPAPI”,點擊啟用,根據提示重啟chrome即可。 chrome升級後LODOP列印外掛程式無法使用
Time of Update: 2015-05-10
標籤:網路編程 tcp 三向交握 三向交握(three times handshake;three-way handshake)所謂的“三向交握”即對每次發送的資料量是怎樣跟蹤進行協商使資料區段的發送和接收同步,根據所接收到的資料量而確定的資料確認數及資料發送、接收完畢後何時撤消聯絡,並建立虛串連。在 TCP/IP 協議中,TCP
Time of Update: 2015-05-10
標籤: static void Main(string[] arr) { int[] shuZi; bool bj = false; while (!bj) { shuZi = Test(); bj = BiJiao(shuZi[0], shuZi[1]); }
Time of Update: 2015-05-10
標籤:網路編程 tcp 基於 TCP 的網路編程開發分為伺服器端和用戶端兩部分,常見的核心步驟和流程如下:connect()函數對於用戶端的 connect() 函數,該函數的功能為用戶端主動串連伺服器,建立串連是通過三向交握,而這個串連的過程是由核心完成,不是這個函數完成的,這個函數的作用僅僅是通知 Linux 核心,讓 Linux 核心自動完成 TCP 三向交握串連(三向交握詳情,請看《淺談 TCP
Time of Update: 2015-05-10
標籤:模型 rules required scenario 根據官方文檔來說,http://www.yiichina.com/doc/guide/2.0/input-validation#standalone-validators 需要對模型中定義規則的rules方法指定使用範圍,否者的話每一次調用儲存都會調用這個方
Time of Update: 2015-05-10
標籤:csuDescriptionZuosige always has bad luck. Recently, he is in hospital because of pneumonia. While he is taking his injection, he feels extremely bored. However, clever Zuosige comes up with a new game.Zuosige likes elephants very much. Today he
Time of Update: 2015-05-10
標籤:總的原則是像變形金剛一樣,各個組件拆到剛好適合業務為止。。拆得太細,會迷失。耦合性太強的話,會不能適應變化~~MiniDuckSimulator.javaabstract class Duck { FlyBehavior flyBehavior; QuackBehavior quackBehavior; public abstract void display(); public void performFly() {
Time of Update: 2015-05-10
標籤:<!-- 引入CXF Bean定義如下,早期的版本中使用 --> <import resource="classpath:META-INF/cxf/cxf.xml" /> <!-- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />