What Linux's getaddrinfo() is doing with IPv6 (on some versions)

I've previously noted that Linux's getaddrinfo() implementationdoesn't return IPv6 addresses by default if it doesn't think that yoursystem is IPv6 capable, or perhaps if your system has IPv6 disabled(this is most conveniently visible through the Python interface ). This behavior is more or less the same aswhat you'd get if you supplied the AI_ADDRCONFIG flag in the hints structure.

(To be specific, I have seen this behavior on Ubuntu 8.04


旁觀以外

拍攝別人在痛苦中的樣子,是一件不道德的事嗎?可能不是,就像在戰火之中的民眾,他們看見自己的境況在報章之中刊登出來,荒涼的家園,麻木的表情,蒼白的面孔,飢餓的身軀,茫然的眼神,無一不是痛苦的象徵,是不是

寺島忍揚威柏林影展



日本女演員 寺島忍 憑『粉紅導演』 若松孝二 所執導的《芋蟲》(Caterpillar) , 在第60屆柏林影展獲得最佳女主角銀熊獎, 成為日本電影史上第三位獲得柏林影展最佳女主角的演員. 柏林影展有史以來僅得三位日本人獲獎, 這三位演員
Continue reading...

Archdiocese of Saint Louis Redesigns Website

Archdiocese of Saint Louis' Upgraded Website

The Archdiocese of Saint Louis today upgraded its entire website to a new design and a new platform, allowing offices and agencies to more quickly and more easily communicate with the faithful in the Archdiocese (and around the world!).

I've been working on this project (with a lot of help from Palantir, a web development company in Chicago) and some local developers for the past year, and I am pleased with the result (I hope you are, too!). I've written up more


你們的機會來了

(其實我這樣不停地追著阿P來評論,係咪實在迷得佢太嚴重呢?剛寫了《介乎法國與旺角的詩意》,接下來又有〈給金鐘地鐵車廂內的人〉,實在太勁了,勁勁勁勁勁啊,係咪又要寫??咁樣係咪太著跡?)


動中帶靜 綿裡藏針

人算不如天算

有個好朋友由洛杉磯老遠飛來探我,但只有時間留一晚,於是我一早想好燒幾道小菜,買齊了紅酒、白酒及各式烈酒,準備和她飯後痛飲暢談。誰知那天早上突然失了聲,想必是感染了甚麼病毒,只能用沙啞低沉而微弱的聲線說

Unix portability and scripting language versions

By and large it's not too difficult to write portable Unix shell scripts(at least once you burn your fingers a time or two, and it helps tohave one of the old-fashioned Unixes around so you get that experienceearly). But here's something that I've been thinking about recently:the portability issue of scripting language versions.

It's not news that these days an increasing amount of programmingis being done not in the Bourne shell but in the various scriptinglanguages such as


高潔的精神

高潔的精神

看了,心很酸。
~ ~ ~
高耀潔,84歲,前河南大學醫學院醫生及教授,被喻為「中國防愛 滋第一人」;1996年因揭發中國愛滋病禍源「血漿經濟」黑幕、 貧窮農民因賣血感染愛滋病引起全球關注。2009年為
Continue reading...

英雄牌墨水筆

一直有帶記事簿的習慣, 經常手痕痕記瑣碎事. 只是筆換了又換, 其實都頗浪費. 早陣子用得不錯的一枝普通墨水原子筆, 在辦公桌上離奇失蹤. 雖然不值多少錢, 但當時很惱火, 是哪個賊偷去了? 是私伙來啊!

心血來潮到裕華

It's sinking in that Sun is gone

I know, I'm behind the times, but it is slowly sinking in to me that Sunis gone; that Sun Microsystems, the company of Andy Bechtolsheim andBill Joy, the source of NFS among so many other things, is no more. Whatpieces of it survive are parts of a software company.

I'm sad about this not so much because of the end of Sun the company,but because it underlines the end of an era: Sun was the last survivor,in a way the