文化交流日之「香港有麵包賣嗎?」

早上九時多,我們便起程前往市中心會合Sasah。他先帶我們到Krasnoyarsk的文化博物館參觀,這是 L onely P lanet指名一定要參觀的著名俄羅斯博物館之一 ,我們當然滿 帶期 望的 入內參觀。

博物館外觀


Continue reading...

大鄉里出城

今日是女生們的休息日,我、俄羅斯camp leader和法國女生一清早便起床準備出城。由木屋位處的郊區出發到市中心,先要步行兩個多小時下山,到就近的村莊乘搭 12 號巴士,車資是劃一的11盧布,還不到$3港幣。車程約需一小
Continue reading...

You should not use HTTP request parameters as filenames

One corollary of the danger of over-powerful introspection is that you should not use HTTP requestparameters directly as filenames for any reason, not just to avoidhard-coding allowed commands in your web application. Any time that youuse a request parameter as a filename, you create an opportunity for anattacker to escape from whatever directory your application is supposedto get its files from and thus to rummage all over your system.

(In fact, you should not directly use the URL for a filename either,because someday


瘦虎肥龍爭霸戰‧四

隔日沒有更新蜜柑和Ding Ding的情報, 因為連主人我都掛了下來. 很久都沒有病得這樣厲害, 手軟腳軟, 連兩小寶掀起的夜間惡鬥都無力阻止.

星期五晚簡直無攪好訓, 一來全身發滾, 滴汗不出, 二來蜜柑和Ding Ding終於展開正面衝突,
Continue reading...

現在才tip

今年沒有仔細研究港姐。
覺得還是8號熊穎詩比較好。
樣貌方面,3、4都ok。

我又重看了《其後》


最近我再看了一次《其後》,已經是第三次看了,仍然覺得好看。

重看的理由很古怪,有一天太太看報紙見到松田龍平的孩子出世了,她就跟我說松田優作榮升祖父了,於是我就說,不如找一部他的電影看看,當作為他慶祝吧。

岩洞裡的聖誕樹

岩洞入口,當地人說右邊是岩洞守護者的眼睛
我們今日需要一清早起床打點一切,因為我們要到 岩洞展開清潔工作! 又一次 吃過份量少得很的早餐後,大家就帶著很多工具和水,由木屋出發,步行十多分鐘便到達 Karaulnaia Cave 進行我們期
Continue reading...

改版及其他


過去的一個星期,我幾個晚上為這個blog改版。

說出來你也許不相信,我改版,只因發現原來這個blog一直在用舊版本,現在已經多了很多新功能,於是就貪玩試一下,一試就試到要把舊有的七百幾篇文章找出來重新標籤和分類,真

好馬不吃回頭草

這個星期,中環最熱鬧的地方不是翠華,而是printer。

心水清的讀者一定注意到,「printer」這個字已大半年沒有在小妹的專欄出現過。當我還在攬住個水泡深呼吸再閉氣,突然有人大喊一聲:「Party Time!」大夥兒就跑去開嘉年華。我呆呆

A gotcha with Python's new signal.siginterrupt()

Python 2.6 added a siginterrupt() function to the signal module , so that you can dealwith the EINTR problem . Unfortunately it doesn'tnecessarily do what you want, because of CPython signal handlersemantics .

(Ob-attribution: signal.siginterrupt() was brought to my attention bya commentator on the EINTR entry .)

What you probably want when you combine siginterrupt() and a signalhandler, and what a lot of people probably think that they are getting,is that when your program