Python exceptions for C programmers

If you are a C programmer, the simple way to think about Pythonexceptions is that they are almost always error returns; where a Cfunction would be documented as 'returns whatever, or MY_ERRORon error', an idiomatic Python equivalent is 'returns whatever, orraises MyException on error'. Whether this works better ( and when ) is a matter of some debate, but it is thePythonic approach and is used by most modules that you'll run into.

(Ideally the modules will document


Mother and Child ("愛在你左右") ------ A strong bond that cannot be easily seperated physically and mentally!!! 
























Film : Mother and Child (2010) (USA)
Directed by Rodrigo García Barcha
Written by Rodrigo García
Starring Naomi Watts/ Annette Bening/ Kerry Washington/ Jimmy Smits/ Samuel L. Jackson
Music by Ed Shearmur
Duration : 125mins

1. 其實我對英文戲名有點抗拒,因為我一向對這些題材提不起興趣,總覺又是宣揚母愛的偉大!直至宣

好像我寫親文都係為左轟藝發局

(其實我仲寫左好多文的)

藝發局是如何倒退的? ——從雜誌資助管窺藝發局的重重問題
(刊信報)

筆者參與的青年文學雜誌《字花》,迄今已進入第五年,是十年來銷量最高、最獲兩 岸三地注意的文學雜誌,但卻在剛過去的文

Lancome的海膽

Lancome的海膽???

小姐~ 你知唔知自己講緊咩呀?人哋賣化妝護膚品㗎。

我知我知,但Lancome宣傳新出的Virtuose Precious Cells Mascara,就是用海膽作其中一個賣點的。

海膽跟mascara有甚麼關係?

Hmm... 應該說,海膽的刺,就是我們塗mascara後,發夢也希望見到
Continue reading...

「植入式廣告」是鋒利的兩面刀?

這是我昨天在信報發表的文章,在這裡轉載,希望更多朋友能夠讀到。

《「植入式廣告」是鋒利的兩面刀?》信報經管錦言 2010年5月11日

都說過除了廣告客戶或廣告人外,一般消費者其實對廣告興趣有限,皆因十居其九


Bio Hazard 3 / Resident Evil 3 地圖 (Map)

地圖一覽

見下文
Uptown

Continue reading...

拿X10來當PMP用會否太奢侈?

「要這麼大的屏幕要來幹嘛?」

我不會怪你這樣問,換iPhone之前,我拿著我那部史前的諾記手機,也是這樣問我身旁用著iPhone的那位年輕人的。

無所謂的,如果電話對於你來說只是用來打出打入,你真的不需要換一部像這樣大屏幕的

Continue reading...

'Borrowing' IPv4 netblocks to get around address space exhaustion

I recently read a news story speculating that a black market in IPv4address space would develop as the IPv4 address space became exhausted(which is allegedly happening fairly rapidly). In reading the story, itstruck me that we could see an even more interesting and evil trick usedby sufficiently desperate and underhanded organizations: just borrowingunrouted netblocks.

The trick goes like this. First, find a suitably sized netblock that isallocated but appears unrouted; then, find yourself a compliant ISP andget them to 'accidentally


Examination

The first thing I ever failed was high school music written paper twenty-odd years ago.

Until then I'd scored well in my school examination. Summoning my knowledge (which I barely had) about musical notation and scales, I managed to score two marks – out of 50 full marks.

Hell, yeah! Two marks out of 50. A world record; everyone in my class said so. Absolutely. It's amazing for those of you who know the subject – and many do –

反省間

當撰寫著求職信時,會感到自己經歷的蒼白。

當生病去看醫生時,會體會自己意志的薄弱。

當別人需要安慰時,會明白自己詞語的貧乏。

當經歷人生低潮時,會清楚自己視野的膚淺。

當寫下自己感受時,會知道自己思緒的混亂。