無聊才上網

假日早上
無聊
找一些無聊影片
讓同齡人懷舊


山西竹葉青
家計會
金冠米
水上樂園
珠江橋牌玉冰燒
九廣鐵路
陽光
和記
不在乎天長地久
高空擲物

或者你都有上網找來看
或者你對這些廣告印象很深
很多年過去了
再看這些畫面
一切都彷如昨

逝去感情如何留得住

年近歲晚
送上本人精選的 心情片段
2006年發生咩都好
留不住了
笑一笑
明年再來吧

What can go wrong if your compiler is not thread aware

Courtesy of Pete Zaitcev ,here's a great example of what happens when optimizing compilers aren'tthread aware.

Start with code of the form:

struct a b;
b.pos = *ppos;ret = foo(&b, ..., b.pos);

Modern versions of gcc 4 on x86 will optimize the function call into:

ret = foo(&b, ..., *ppos );

(This is a less stupid optimization than it looks; ppos


A thought on the advance of X auto-configuration

That X needs a configuration file less and less makes it more and moreimportant to have your monitor(s) powered on when you're powering on orrebooting a machine, because otherwise X won't be able to get the DDC information it needsto do most of that nice automatic configuration. A side effect of thisis killing off BNC monitor connectors, because you can't do DDC overBNC.

(Yes, I still have a CRT monitor at home, and until recently I was usinga


Firefox 快速轉換 Proxy 插件

Foxy Proxy

地震令到網絡癱瘓,相信各大 ISP 也正在實行「改道措施」,但網速難免受到影響。 Jan 提供了一些 Proxy 給大家使用。而 Firefox 插件 FoxyProxy 也許正合大家使用,它可以讓你方便地改變 Firefox 的 Proxy 設定外,而且也可以設定某些網站用某些 Proxy,甚至跟據


Solaris 8 DiskSuite's lack of good monitoring

One of the things that irritates me about DiskSuite in Solaris 8 is howhalf-hearted the provisions for automated monitoring and reporting are.I don't necessarily ask that DiskSuite have all of this pre-built, butI would like commands that had output that at least made it relativelyeasy to build this ourselves, and DiskSuite falls flat on this.

Metastat will tell you all of the necessary information, but it does itin a verbose, human-readable format that is sufficiently complicated andunderdocumented that I get


HTTP as it is seen in the wild

Out of a somewhat idle curiosity, I decided to do up some numbers foractual HTTP requests against one of the servers here. All of this isusing the past 28 days of old logs (plus today's):

289160 total requests277323 GET  5722 PROPFIND  3665 OPTIONS  2215 POST   178 HEAD    39 CONNECT    18 garbled

Most of the requests were successful; 90% got a 2xx or


幫幫我,徵求技術支援


開blog以來
小弟一直採用最低層次的技術經營
坦白說
這個blog的多種用途
小弟是無力涉獵的
情形就如我的手機
最大用途只是打電話收發短訊和看日曆
其他功能我一概不用或不會用

不過日前應讀友要求把專欄文章放上網
其實一直都要等

Link: OpenBSD spamd

OpenBSD spamd - greylisting and beyond is a presentation by BobBeck of the University of Alberta about the OpenBSD's spamd system, howspammers react to it and similar systems, how you can exploit this,and the University of Alberta's experiences with spamd, complete withinteresting numbers. I'm sadly jealous, as local feelings insure thatI'm not going to get to deploy this sort of technology any time soon.

(Also from Richard Johnson of river.com.)


Link: varnish, a HTTP accelerator

Varnish - the http accelerator [PDF] is the slides for apresentation about a HTTP accelerator for dynamic websites/CMS systems(its website is here ). Slide threemade me laugh out loud, and I have to say 'what he said'.

(From Richard Johnson of river.com.)