今個星期六(11/14)晚7pm ATV「智慳任務」

每到換季時間,很多女士們也會到商場「血拼」,為自己新的衫褲鞋襪。不過,當我們在商場裡大出血的時候,有沒有想過地球也同樣在大出血呢?

一件衣服如何對大自然造成破壞?若你把一件衣服的「一生」拆開來看,你就會

HK Blogger Con 2009 相片

有一些感想,日後再寫,先送上一些當日照片。

橫琴.單車.蠔與文藝激盪的半日活動







今日受某幫文藝青年引誘,拉幫結派,北上尋歡,極盡低能。

平日北上,多喜單打獨鬥,以單嫖獨賭之氣魄在珠海地下商場一帶活動,最遠去到文華書城,買完書即欲南下回歸本澳,飲食活動,不離真功夫與酸辣麵,早去早回之
Continue reading...

My problem with the obvious solution to my unexposed types problem

In my last entry about solving my unexposed types problem , I sort of cheated; I left out one obvious solution.My problem was that I wanted to have a function with 'polymorphicarguments', one that could take either strings or compiled regularexpressions and then tell them apart.

Well, you know, one obvious solution is to not have such a crazyinterface in the first place. A clearer, simpler approach would be tohave two separate functions, one that takes compiled regular expressionsand a second one that


修羅場

認真你就輸了,這已經是互聯網討論區的法則,大多數資深的玩家,不是嚴守這條規則,就至少都清楚它的意思,就是說︰「如果你太在意網上的言論,就會不開心,亦代表你不懂得上網。」所以上網最忌的就是太認真,如果有

周日與阿P一起表演

實在是霉到頭了。表演時間與西九諮詢撞晒時間,要組織行動鞭長莫及,又不見了電話,什麼人都聯絡不到。買了電話但SIM卡還是不能用。但與阿P的表演,在眾多甩漏裡我竟然好像做到了一直的夢想。這個BLOG已經不賣廣告久矣

A gotcha with Bash on Ubuntu 8.04

Suppose that you have an Ubuntu 8.04 system where you have opted to make/bin/sh be bash, the way it used to be in 6.06, and you have an accountwith /bin/sh as the login shell (for example, you created it with plain useradd ). So you log in to the account and everything seems normal andbash-y, until you try to do filename completion and get:

$ cd / -sh: <( compgen -d -


Solving unexposed types and the limits of duck typing

When I ran into the issue of the re module not exposing its types , I considered several solutions to my underlyingproblem of distinguishing strings from compiled regular expressions.For various reasons, I wound up picking the solution that was the leastannoying to code; I decided whether something was compiled regularexpression by checking to see if it had a .match attribute.

This is the traditional Python approach to the problem; don't checktypes as such, just check to see if the object has the behavior thatyou'


向好處想

向好處想

小兒的病一發不可收拾。本來光滑的臉兒,一早起來受病菌感染,紅通通的,媽媽看了難過得掉眼淚。爸爸說:「星期三不是約了看專科嗎?他的病發出來也好,讓醫生看了,知道其嚴重性,才可以對症下藥。」

~ ~ ~
Continue reading...

反平反《下女》


金綺泳《下女》的情節, 很容易令我想起今村昌平的《赤色殺意》. 《赤色殺意》的女主角是個其貌不揚的肥師奶, 親人無不想踩多兩腳. 但今村昌平肯定出於同情、並佩服女人的生存之道 . 可是金綺泳比今村昌平更絕. 他的電
Continue reading...