
今日在P2P界最大的新聞,非這則新聞莫屬: 大陸VeryCD電驢 本月停止下載(2011/01/24 12:05) 原文網址: 大陸VeryCD電驢 本月停止下載 | 國際新聞 | NOWnews 今日新聞網 http://www.nownews.com/2011/01/24/334-2684315.htm#ixzz1By7G2F9y
dragonspring 發表在 痞客邦 留言(0) 人氣(517)

在Linux的shell裡面,觀看目前時間的指令是date,如:
| $ date Sat Jan 8 15:34:16 CST 2011 $ |
由結果可以看出來,他並不只限於『日期』,連時間一併都顯示出來。這與DOS將日期,時間分別用date, time 兩個指令是不一樣的。不過date能做的事情遠多於此,先就用法來看:
dragonspring 發表在 痞客邦 留言(0) 人氣(32,059)
各式各樣利用JavaScript reload 的方法。 以下文章轉貼自:http://king971119.blogspot.com/2009/08/javascript.html#comment-form
dragonspring 發表在 痞客邦 留言(1) 人氣(94,878)
在某些很特殊的情況下,需要利用DOS BATCH檔來呼叫 Firefox,在這邊做個筆記。命令列參數如下:
| Command | Result | Example |
| profile "<path>" | Starts with profile located at the given path. Does not apply to Mozilla Suite/SeaMonkey 1.x | firefox.exe -profile "E:\myprofile" |
| P "<profile name>" | Starts with a given profile name (profile name is case sensitive). | firefox.exe -P "Joel User" |
| <url> | Launches the application and opens the given URL(s). | firefox.exe "www.mozilla.org" "www.mozillazine.org" |
| safe-mode | Launches the application with extensions disabled and the default theme. Does not apply to Mozilla Suite/SeaMonkey 1.x | firefox.exe -safe-mode |
| no-remote | Enables running multiple instances of the application with different profiles; [1] used with -P Does not apply to Mozilla Suite/SeaMonkey 1.x | firefox.exe -no-remote |
| height <value> | Sets height of the startup window to <value>. | firefox.exe -height 600 |
| width <value> | Sets width of the startup window to <value>. | firefox.exe -width 800 |
| ProfileManager | Starts with Profile Manager. | firefox.exe -ProfileManager |
| CreateProfile | Create a new profile | firefox -CreateProfile test |
| migration | Starts the application with the Import Wizard Does not apply to Mozilla Suite/SeaMonkey 1.x | firefox -migration |
| console | Starts the application with a debugging console. | firefox.exe -console |
| jsconsole | Starts with the Error Console (Javascript Console). | firefox.exe -jsconsole |
| inspector <url> | Starts with the DOM Inspector. | firefox.exe -inspector http://www.google.com/ |
| chrome <url> | Loads the specified chrome. | firefox.exe -chrome chrome://inspector/content/inspector.xul |
| new-window <url> | Loads a URL in a new browser window. | firefox.exe -new-window <url> |
| new-tab <url> | Loads a URL in a new tab. | firefox.exe -new-tab <url> |
| install-global-extension "<path>" | Installs an extension globally. | firefox.exe -install-global-extension "C:\Temp\extension-file.xpi" |
dragonspring 發表在 痞客邦 留言(0) 人氣(2,387)

拜Youtube流行之賜,在Youtube上面有各式各樣的影片可以幫助我們學習英文。但是,面對這麼多的影片該如何選擇呢?以下提供一些個人的心得。
尋找ESL影片
所謂的ESL,是『English as a Second Language』的縮寫,指的是以英文為第二語言。從敦煌書局外文網,可以看到詳細的解釋:
dragonspring 發表在 痞客邦 留言(3) 人氣(20,808)

用skype傳訊息時,除了內建的表情符號,還有以下這些隱藏版:
dragonspring 發表在 痞客邦 留言(0) 人氣(156,718)

在使用Windows的過程中,無可避免會遇到process 沒有反應。大部分情況下,你可以叫出工作管理員,然後將沒有回應的process殺掉。 BUT! 套句九把刀說的話:『
人生最厲害就是這個 BUT!』 有時候,連『CTRL+ALT+DEL』都沒有作用,根本沒機會打開工作管理員。
dragonspring 發表在 痞客邦 留言(0) 人氣(1,285)
在IBM developerWorks 中國網站中,有一系列關於pthread的文章,對於pthread有初步而全面的介紹。特地將目錄轉成繁體字,摘錄如下。
dragonspring 發表在 痞客邦 留言(0) 人氣(49,589)
利用Bash內建變數$RANDOM
在Bash裡面,有一個內建的變數,可以用來產生亂數: $RANDOM 使用起來很簡單,用echo 叫出來即可:dragonspring 發表在 痞客邦 留言(0) 人氣(14,291)
雖然目前IPv6尚未廣泛應用,不過偶爾還是會碰到客戶要求 IPv6 compatible,所以在寫網路程式的時候,最好是『一魚兩吃』。 以下記錄的是四個最常用的structure,方便查閱:
| struct sockaddr { unsigned short sa_family; /* address family, AF_xxx */ char sa_data[14]; /* 14 bytes of protocol address */ }; struct sockaddr_in { short int sin_family; /* Address family AF_INET */ unsigned short int sin_port; /* Port number */ struct in_addr sin_addr; /* Internet address */ unsigned char sin_zero[8]; /* Same size as struct sockaddr */ }; struct in_addr { unsigned long s_addr; /* Internet address */ }; struct sockaddr_in6 { sa_family_t sin6_family; /* AF_INET6 */ in_port_t sin6_port; /* transport layer port # */ uint32_t sin6_flowinfo; /* IPv6 traffic class & flow info */ struct in6_addr sin6_addr; /* IPv6 address */ uint32_t sin6_scope_id; /* set of interfaces for a scope */ }; struct in6_addr { uint8_t s6_addr[16]; /* IPv6 address */ }; struct addrinfo { int ai_flags; /* Input flags. */ int ai_family; /* Protocol family for socket. */ int ai_socktype; /* Socket type. */ int ai_protocol; /* Protocol for socket. */ socklen_t ai_addrlen; /* Length of socket address. */ struct sockaddr *ai_addr; /* Socket address for socket. */ char *ai_canonname; /* Canonical name for service location. */ struct addrinfo *ai_next; /* Pointer to next in list. */ };
|
dragonspring 發表在 痞客邦 留言(0) 人氣(2,063)