我的第一隻GTK+程式 helloworld!
程式碼如下 : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 …
程式碼如下 : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 …
To delete a user from the command line in 10.5: 1. Boot into single user mode. Hold Command-s at startup. 開機進入單人模式. 在開啟電腦後馬上按 …
HOWTO use jQuery in Dashcode? 在main.html內需要引入jquery-x.x.x.min.js檔案. 我是把jquery 當按放在 scripts 目錄內.所以main.html程式如下 : 1 <script type="text/javascript" src="scripts/jquery-1.3.2.min.js" charset="utf-8"></script><script type="text/javascript" src="scripts/jquery-1.3.2.min.js" charset="utf-8"></script> 然後假設你在front panel裡面有個somebutton的按鈕. 按了一下之後使用 …
之前我都用 Scientific Linux 預設的套件. 目前他們只有更新到 1.4.7 所以一直沒辦法用大於 2TB 的磁區. 最後還是自己compile比較新的 codes. 1.4.10 好感動. 終於看到正常的磁區了 😀 # vos partinfo fileserver a Free space …
前陣子 liho.tw server 相當不穩定. 記憶體太少. 常常資料庫會掛點. 要不然就是 CPU 值太高. 導致 liho.tw server 跑不起來. 後來於是買了 Mac mini 記憶體加到4GB大約2萬多.還算可以接受的範圍. 只是硬碟有點小. 才120GB. 蘋果 MB463LL/A 與 …
下面這個. 會把輸出儲存在$output 1 2 $cmd = "ls -l"; $output = shell_exec($cmd);$cmd = "ls -l"; $output = shell_exec($cmd); 還有另外一種作法用 system function . 這個在執行過程就會直接顯示出來. …
Using php to create openldap sha password hash 應該很少有人有這樣的需求. 不過我就是有. 下面程式可以讓你產生 ldap sha 密碼 hash : 1 2 $passwd = "TOP_SECRET"; $ldap_passwd …
在這裡(iTunes Podcast Auto-Subscribe)有提到將 http:// 改成 pcast://即可. 🙂 但是很可惜的只能使用 Safari 瀏覽器才有辦法直接呼叫 iTunes 訂閱. 在 Mobile01的”眾多熱心的Youtube的訂閱變成podcast整理專區” 可以找到很多台灣的電視節目. 節錄一段 mobile01的 ricksu 製作的敗犬女王 EP.01, EP.02, EP.03, …
程式目的 : 當使用者了按 checkbox 後, 才讓 delete button 啟用. 當使用者取消 checkbox 後, 將 delete button 停用. html 程式碼如下 : 1 2 3 …
如何使用 php 連結 ldap server? 下面是我的程式範例 : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 …