Reset
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
沒有「身段」,何來「放下」?
當年的民怨,從「八萬五」累積至沙士,來到反《二十三條》終於給你一鋪清袋。那次遊行從維園開始,直至來到金
明白和體會
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, noThree 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
曾經有同學質疑過,所謂民主,只是多數人的暴政,少數服從多數,就是「人多蝦人少」,亦是透過票數,來劃分「民」和「主」,本質上依然是專制,加上