Reset

Needless to say, nephrologists talk a lot about the blood's salt or sodium content. We teach our medical students that kidneys help to keep our body's solute (composed primarily of sodium) concentration or so-called osmolality within a narrow range. No more, no less. It would be hard to imagine how nature works it out to keep everything in such a fine balance.

Now. Maybe you think our body is too unwieldy or rigid to operate only within a narrow range of osmolality. "Why

A Python safety tip: Do notice that things can throw exceptions

Recently, I discovered and fixed a long-standing bug in DWiki . Thebug itself was simple, but typical of a certain kind of error thatI keep making in Python: I had forgotten that the Cookie module could throw an exception,so I didn't catch it.

(Well, my general error code logged it, but I mean DWiki itself didn't catch it and do anything sensible; in this case,either ignoring the broken HTTP cookie header or perhaps reporting asecurity error.)

This


沒有「身段」,何來「放下」?

上次對政府有種「氣數已盡」的感覺,是董建華腳痛的時候。後來他的腳實在痛得受不了,香港就開始有運行。

當年的民怨,從「八萬五」累積至沙士,來到反《二十三條》終於給你一鋪清袋。那次遊行從維園開始,直至來到金

戒癮

戒癮

都說我是嚴母。

你還未滿六個月,我就要你戒奶嘴。

當初是我把奶嘴放你口,然後你沒了奶嘴就睡不穩,夜裏起來n次,就為了掉了奶嘴。我按捺不住,非要你戒掉不可。爸爸說你還那麼小,含奶嘴不外乎為了安全感,現在
Continue reading...

享受生活

享受生活

朋友年屆四十,初為人父。

我問感受如何。

朋友說,他覺得無比自豪。往後,他要好好地生活下去,看女兒長大,與她分享更多。

認識朋友是因讀書的關係,那時他是一位每星期六天,每天工作十四小時的燒焊工人。月
Continue reading...

明白和體會

舉凡需要實踐的道理,都是不能單靠知性上的了解而完全掌握的。聽了某個道理,你可以說你立刻明白了,但問題是這種明白是抽象的、片面的,不足以令你知道那道理在實踐時是怎麼一回事,也不能讓你預計到在不同的情況下

Welcome to Fight Club

Welcome to Fight Club. The first rule of Fight Club is: you do not talk about Fight Club. The second rule of Fight Club is: you DO NOT talk about Fight Club! Third rule of Fight Club: if someone yells "stop!", goes limp, or taps out, the fight is over. Fourth rule: only two guys to a fight. Fifth rule: one fight at a time, fellas. Sixth rule: the fights are bare knuckle. No shirt, no shoes, no

Three ways to get tracebacks in your CGI Python application

There are at least four ways to get Python tracebacks in your CGI orweb-app in case something goes wrong; the easy but wrong way, the moreor less right but inconvenient way, the flawed way, and the good way.

The easy but wrong way is ' import cgitb; cgitb.enable() '. Thereason this is the wrong way (except when you yourself are developingyour program) is that this dumps error tracebacks on the usersof your application. Ignoring any information disclosure issues,


改變世界的方法 2之2

甘地的故事之所以特別,因為他本人,就是有關「民主」的最佳回答。

曾經有同學質疑過,所謂民主,只是多數人的暴政,少數服從多數,就是「人多蝦人少」,亦是透過票數,來劃分「民」和「主」,本質上依然是專制,加上

驚喜大發現

驚喜大發現

第202天,你會坐了。
Continue reading...