Another introspection trick

Here's another example of Python's introspection and commandinterpreter being useful:

[x for x in dir(m) if isinstance(getattr(m, x), str) and 'localhost' in getattr(m, x)]

One of our Mailman lists had been accidentally set up thinking thatthe machine's name was 'localhost', instead of the machine's actualhostname, and this was causing problems. Mailman is written in Pythonand offers access to the internals of list data


Reddit versus Digg: a little detail that matters

Since reddit.com and digg.com started showing up on the geek radar,I've been checking them out. Since both are about the same thing,roughly a 'just the links' version of Slashdot 's 'news for nerds' approach, Iexpected to like them about equally, or like digg.com more, sinceit has link summaries (which are often the most useful bit of Slashdotfor me).

To my surprise, I've been barely visiting digg.com , but


20051214網摘 – 日式中文

Web

  • Web 2.0的收购价值 Quote: 大量的缺乏独创性,缺乏准确市场定位,甚至缺乏必要的运气的初创公司,恐怕连收购价值都没有,他们的前景不是被收购,而是死去。

Web Dev Tips

New Service


窩心腳

sms:「有外地朋友正在推昨日的封鎖線。」

我竟然要上課。怎麼會這樣。

薦文:〈 在警察那邊看

A thing I don't like about Linux

So much for my nice uptime . As I wasbrowsing along in Firefox, the X server crashed. (The crash was forthe usual reason: trying to display some characters in some fontsgives the X server a signal 11 heartburn. Ever once in a while, I'llstumble over a web page that nails just the right combination.)

A crashed X server doesn't take the system down on the spot, but onLinux it makes the console pretty much unusable because the X serveris the


大蛇痾尿(13/12記三)

(題出 此處

世貿的遊行仍然非常快樂。這次我在人民戰車隊裡,(唔覺意又黐到大長毛搏上鏡!),前面是持木屐的韓農,後面是(缺席的)中國農民橫額,再後面就是鼓隊。長毛固然比較有趣,但與韓農相比,還是相形見絀

我用的網絡服務

Jan Joe 寫他們用的網上服務,自己也手痕寫個列表,以「最常用」排先後:

ServicesProvider
SearchGoogle, Yahoo!
Image SearchGoogle, Yahoo!, Flickr, IMDB , sxc.hu
EmailGMail, Yahoo! Mail
BlogMovableType, Yahoo! 360
Share PhotoFlickr,Yahoo
Online Bookmarkblogmarks,del.icio.us, 365Key
Online BookmarkletBlummy
IM ICQ ,Meebo
RSS ReaderBloglines
RSS Merge

因為頭盔,所以暴民(13/12記二)

那個頭盔是戲服,不是現實的一部分——而他們正是在假作客觀地報導現實。實際上,那時一點危險也沒有——我們已經在軍警前作v字拍照了——根本是很和平的,毫無以頭盔戒備的必要。而且,除了直播的記者,無線的工作

人群之內及之外(13/12記一)

1. 是日金句:「全世界的示威發生暴動,都是因為地頭蟲搞事,香港人好怕死既,所以入鄉隨俗,呢次示威會好和平,冇事既。」——無線新聞(馮佩樂)訪問灣仔的報紙檔阿叔。

真係希望在人間呀。阿叔係我地既希望。

2.

前世

看回中五時的畢業照片,

彷彿是前世的事。








8年了。