在那個 DHTML 的時代,市面上有很多很多不同的 Javascript 書藉,教你做很多不同的特效、小程式、小工具,很多時都是 Quick and Dirty,再加上瀏覽器戰大家各推不同的 HTML tags 以綑綁用家,結果就是一大堆的文件碼、程式碼、排版碼、修飾碼等等混在
來自香港的禮物
The excessive cleverness of some people's reverse DNS
I have to say that I'm bemused by the amount of effort that people willgo to just to avoid coming up with hostnames for their machines. (Thisis different from the lazy people, who just don't bother creating PTR records at all.)
By now I am used to the people who carefully give their IP addressesa PTR record of the IP address itself:
2.0.0.127.in-addr.arpa. PTR 127.0.0.
些微不捨
1. 水馬
水馬,像是某種動物比喻,好像有點可愛的樣子——總令我想起水牛或者河馬。事實上,水馬非馬,外型上它與馬並無
重點所在
鵝肝與我
數任男友都愛吃愛煮,我只需坐著等吃。
要我乖乖聽話,用鵝肝填飽我的肚子就可以了。
愚魯如我,沒有我媽的天份(註:她仍在人間仙境放其悠長暑假),有的是煮甜品導致廚房
C++ Tricks 1.2 逗號運算符(,)、邏輯運算符(&&,||)與運算符重載的陷阱
1.2 逗號運算符(,)、邏輯運算符(&&,||)與運算符重載的陷阱
很多人甚至不知道逗號(,)也是個C++運算符。與語法上要求出現的逗號(比如分隔函數參數的逗號)不同的是,出現在表達式中
C++ Tricks 1.1 條件運算符(?:)
1.1 條件運算符(?:)
條件運算符(?:)是C++中唯一的三目運算符(trinaryoperator),用於在表達式中作條件判斷,通常可以替換if語句,與VisualBasic中的iif函數、Excel中的if函數有同樣的作用。語法形式如下:
condition
Redirecting traffic to another machine with Linux's iptables
Let us suppose, as a not entirely hypothetical example, that you haveadded an A record for your subdomain name that points to one of yourlogin servers, so that people can do 'ssh subdomain' and have it work.Let us further suppose that this login server is not your web serverand you now want to make https://subdomain/ also do something useful,instead of giving connection refused errors.
One way to do this is to use iptables on the login server to redirectany connections to