Tkinter sometimes has a busy-wait main loop (more or less)

One of my always-running programs is a little Tkinter-based Pythonapp. For a while now I've noticed that it was accumulating a surprisingamount of CPU time and would sometimes show up on top as active,despite me not doing anything with it. Today I finally got around tofiguring out why, and the answer is that Tkinter's main loop effectivelybusy-waits in some Python environments.

The standard way for Tkinter-based programs to operate is to make all ofthe Tkinter calls to


通識教育

香港學生為甚麼需要通識教育?我記得自己做學生時,老師最有力的說法,就是指很多大學生連公仔麵也不懂得煮,見微知著,雖然通識科不教家政,但肯定他們需要通識教育。

可惜通識教育注定難以成功。

我們其中一個相當重

我的第一次。。。去SPA by MTM活動「見人」

今天,歷史性地,去了一個要見人的活動 —— SPA by MTM 最新Home Spa Sensation系列發佈會。


From for blog


眾所周知,我有極嚴重的社交恐懼症(你地信我啦好冇?),每逢見到大堆陌生人,便會開始自閉發呆玩手指,完全不懂應酬,問你死未?

再加
Continue reading...

夏蟲不可語冰

我沒有熟讀過《莊子》,只看過〈逍遙遊〉和〈齊物論〉等較著名的幾篇,但《莊子》裏的一些故事和語句我還是挺喜歡的,尤其是〈秋水〉的那句「夏蟲不可語冰」(註)。

當你向別人解釋一些事情時,由於對方受經驗、學識

美麗誤會 《金髮奇女子》(Eccentricities of a Blond Hair Girl)


王晶眾『追女仔電影』當中, 曾出現一組對白:『幻想美麗, 現實殘酷!』 , 頗為精警. 相信Manoel de Oliveira深諳此道.

都說一見鍾情不可信. 偏偏男主人翁被窗外倩影深深吸引, 從此不能自拔. 金髮女子於他, 猶如來自異國的香羅小扇
Continue reading...

A Genius Says Goodbye


最近參加了一個由兩位外國老師教授的專業訓練課程,一連十天的密集學習真的忙得透不過氣,其中一位年長的老師,學有精專,授課生動,說話也時有妙語,令我這個外行人也學得比較明白.

在課程即將結束之際,老先生說他


Sickness

When it comes to sickness, nothing comes close to the severity of a sick baby.

Mention that to parents, everyone invariably remembers the first time one's child got sick. I wasn't that impressed with the chapter on "When Baby is Sick" when I first read What to Expect the First Year . I managed to read that chapter again today; I fetched the book whilst packing the bag in a hurry to bring my febrile princess to the hospital last night. (What else could I smuggle when

The problem with overly verbose package installation

We just applied a kernel update to all of our Ubuntu LTS machines. Thisis a quite verbose process; on the machine I captured logs for, itproduces no less than 40 lines of status output (and another 14 linesbefore things start installing). And this count understates thingsbecause some of those are very long lines that wrap around on any realterminal.

(The kernel updating was done with ' apt-get install ... '.)

I'm sure that the authors of the


Nice! (Two Cameras and a Killer Lens Combo)

The kit I'll be wearing at the Deaconate Ordination Mass this coming Saturday. Afterwards, I'll run to the back chapel, where I'll snap some shots with the D3 and a nice kit of SB-26 remote flashes!

Nikon D3 and D90 with 70-200mm VR and 50mm 1.4

Is anyone selling a used D3 for cheap? I gotta get me one of these cameras!

Gear pictured above:

  • Nikon D3 (rented from LensRentals)
  • Nikon 50mm f/1.4 AF (my own)
  • Nikon D90 (

失魂鳥命不該絕

我家的飯廳被窗三面環圍,中間兩塊玻璃特大,直望出後園,可以一邊吃飯一邊賞樹。後園不時有雀鳥出沒,或停歇,或覓食,其中冠藍鴉最多,羽毛薰衣草藍間著點點白色,煞是好看,飛行的姿態也美。

有一天,幾個朋友到我