十年一覺電影夢


大凡競賽就得有個標準。可是影展競賽又不像體育競賽,譬如賽跑,一個起點一個終點,不管你身體狀况如何,誰先抵達終點,大家都看得到,有個公平性。影展競賽的標準比較主觀,見仁見智,不管評審人數是多少,都是一種

xiostat: better Linux disk IO statistics

Xiostat is the program I wrote to giveus a faithful recounting of the Linux kernel's disk IO stats after we discovered the problems with iostat's numbers . I've now finally gotten around to putting it up on theweb and making a page that explains how to run itand what its output means and so on.

The current version is a bit slapdash, but I have verified that it(still) works on bog standard 2.6 Linux kernels (and thus should work onDebian Sarge,


The fun and charm of quoting URLs properly

The fun and charm of URL quoting is that you need to do it twice .Differently. That's because there's two different entities involved:browsers and web servers.

Strictly speaking, about the only thing that you have to quote forthe browser is quote characters, because otherwise your nice comes out very confusing. If you are being a good web standards monkeyyou need to quote at least ampersands (&'s) as well, because otherwisethe


20060410網摘 – 樂文搬遷

傳媒與藝人之戰

  • 誠信破產的《四大天王》 Quote: 很多藝人都說香港娛樂版新聞工作者捏造新聞,雖然此舉實有問題,不過藝人亦理應知道傳媒是一種公器,不能私用。
  • 怨誰? Quote: 你欺騙閱讀報紙的大眾市民,藝人亦可以耍手段騙你

又停。又停。

站在陽台的邊緣撫著扶手,瞳孔裡大地的殘缺不過是主體的殘缺不過是論文的殘缺——文本之外無他物。其實看這一片荒蕪的樣子,你是必定不能做到宏觀語境的梳理那種紥實的學問的了,也就是說,始終無法享有穿過建制再超

伊沙貝拉 – 女兒與情人

isabella

《伊沙貝拉》講的其實是一個很老土的相認錯摸的故事,但在美麗的畫面和配樂之下,描寫出不一樣的風味。男人老狗遇上女兒相認,共同居住,產生了一種奇怪異樣的感覺:究竟是女兒還是情人?

司警馬振成,咸咸濕濕尋花問


性別越界(厠所版)

今日遇上一件小事
卻令我深刻反思
下午到永樂戲院看四點半
因為之前兩小時都在新橋區逛街所以急需小解
買了票之後馬上直奔洗手間
可是卻見一班女士霸佔了男厠
原來女厠人太多一班大嬸不想排長龍
於是輪流入男厠方便
還分配了

Weekly spam summary on April 8th, 2006

This week, we:

  • got 12,551 messages from 234 different IP addresses.
  • handled 17,960 sessions from 979 different IP addresses.
  • received 444,512 connections from at least 44,262 different IPaddresses.
  • hit a highwater of 50 connections being checked at once; 50 is themaximum number allowed.

Mail received and SMTP session volume is down a bit from last week , but connection volume has spiked to huge


Hong Kong Jazz Quartet feat Jun Kung & Eugene Pao

我不知道上個星期五晚到藝穗會聽這場Jazz音樂會中,有多少人是因為近期側田人氣的關係,間接令其三叔Ted Lo也人氣急升,以至這晚令藝穗會擠得水洩不通的,居然多了一批年輕聽眾。

Continue reading...

A common socket programming mistake: not handling short IO

With normal file IO, when you do do ' read(fd, buf, len) ' you'll almostalways get back len bytes unless you hit EOF or a disk IO error. Thisbreeds a certain sloppyness when filling buffers; an awful lot of codeeffectively ignores the return value of read() except to check it forerrors.

This can and will bite you on the rear when writing socket code, becausenetworks only give you so much data at once. Short reads are routine for socket IO