原创 GCD教程(四):完結
完結篇,原帖地址:http://www.dreamingwish.com/dream-2012/gcd-four-the-the-odds-and-ends.html Dispatch Queue掛起 dispatch queue可
原创 iOS中的@synthesize var=_var
直接看代碼 @interface MyWindow : NSWindow { } @property(readwrite) BOOL capturing; @end and then in the implementation use
原创 iOS中Categories和Extensions的區別
簡單的將,通過Categories(分類)即使在沒有某個類源代碼的情況下,也可以爲這個類添加新的方法聲明。而新方法的實現可以在另外的文件中。 而通過Extensions(擴展)可以很好的解決兩個問題。 1.使編輯器可以更好的驗證類的私有方
原创 PHP + APC + Drupal
1. 安裝APC,下載APC源代碼 phpize - 生成configure文件 ./configure --with-php-config=/root/to/php/bin/php-config make; m
原创 替換數據流-ADS
這篇文章是根據H. Carvey的The Dark Side of NTFS (Microsoft’s Scarlet Letter) 翻譯的,可以自由轉載,但請保持譯者和來源以及文章的完整性. 簡介:微軟的平臺不斷在增加.公司用的服務器
原创 GCD教程(三):Dispatch Sources
接上一篇,原帖地址:http://www.dreamingwish.com/dream-2012/intro-to-grand-central-dispatch-part-iii-the-dispatch-sources.html 何
原创 install guest additions on debian
轉自:http://virtualbox.wordpress.com/doc/installing-guest-additions-on-debian/ Follow these steps to install the Guest
原创 GCD教程(二):多核心的性能
接上一篇,原帖地址:http://www.dreamingwish.com/dream-2012/of-of-of-performance-of-of-of-of-of-of-of-gcd-introduced-ba-the-multi-
原创 android listview的高度
item的佈局文件中加入下面代碼即可 android:minHeight="?android:attr/listPreferredItemHeight"
原创 drupal7 services
1. 安裝Services模塊,依賴CTools和OAuth 2. 新建endpoint, 編輯資源 3. url http://ip/drupal/?q=endpoint_name/res, eg http://192.168.10.2
原创 drupal7 services中selectNodes的調用方法
url http://192.168.10.28/drupal/?q=get_node/tax/selectNodes headers: Content-type: application/x-www-form-urlencoded bo
原创 Android中ListView多次調用getView
在開發中遇到一個問題,listview的getView()方法會莫名其妙的執行多次,原來是listview的佈局文件的問題: <ListView android:id="@+id/list" android:layout_width="
原创 drupal7安裝與刪除
安裝: 1. 下載drupal壓縮包解壓到 /var/www 2. 從 http://localize.drupal.org/ 下載需要到的語言包(.po)並移動到 drupal-7.8/profiles/standard/transla
原创 MinGW + GLUT環境搭建
1. 在此下載glut 2. 解壓文件,將glut.h複製到 MinGW/include 3. 將libglut32win.a複製到 MinGW/lib 4. 將glut32.dll複製到 Windows/system32
原创 Drupal啓用Clean Url
1. 啓用Apache的mod_rewrite模塊 編輯httpd.conf,解除註釋 LoadModule rewrite_module modules/mod_rewrite.so 如果在編譯apache時沒有生成 m