果然是但噏


看了“林海峰是但噏發花癲”,印象不太好,雖然林先生勇於拿身邊事物來挖苦和開玩笑,但我覺得並不好笑。

始終覺得黃子華的棟篤笑處理得比較流暢,黃的表情夠賤,但賤中有情,探討的又是社會現象,大家有共鳴,而且表

20060210網摘 – Google privacy

Google is intruding your privacy?


Session IDs and the Birthday Paradox

If you have a database (or in general some writable store), the bestway to do authentication in a web app is with session ID cookies. Everytime someone logs in, you pick a large random number to be their sessionID, give them a cookie with the session ID, and then store all of thedetails in your database under the session ID. When they come back, youget the session ID cookie, look it up in the database, make sure it's(still) valid


The charm of Sun's Freeware collection

Presented on a stock install Solaris 9:

$ cat hello.cpp#include main(){    cout << "Hello World!\n";}$ g++ hello.cpp$ ./a.outld.so.1: a.out: fatal: libstdc++.so.2.10.0: \  open failed: No such file or directoryKilled 

(Line wrapping added for clarity.)

To get the Sun Freeware g++


音樂播放器雜談

foobar

想起以前,自己最初的常用音樂播放器是 Winamp ,那時音樂檔不多,所以單單一個 Playlist 已經足夠應用。但隨著音樂檔越來越多,在管理上有一定的難度,所以需要一個可以好好自動化管理音樂的軟體。

iTunes 的音樂管理做得不錯,除了普通


自覺樣衰

近日自覺樣衰了不少,有衝動做一個問卷調查測試眾人認為我的“樣衰度”增加了多少?

一年一度,跟我最後一班學生聚會,去年暑假只有小貓幾隻回來,今次一來就是二十幾人,都是大二學生了,他們在世界各地讀書,我卻似

Using the tempfile module to get temporary files

Courtesy of Planet Python , I stumbledover Peter Bengtsson's puzzlement with Python's tempfile module ,especially the mkstemp() function. It's an understandablepuzzlement, because what's going on is fairly tied to Unix semantics(although Python supports mkstemp() on all platforms).

The tempfile module's mkstemp() is a relatively thin shim over theUnix mkstemp(3) library routine, which exists to securely createtemporary files. This is more difficult than it looks; there are all


睏(擬周私鐘)

最近我們都知道是哭泣的時候了,最近我們常常哭泣了,星期日夜晚無端一急就在會上哭出來,開完會通了頂再打電話給英國朋友講廢話到中午黃昏醒來之後,在黑暗的房間裡,忍不住猛烈地哭如同沒頂,像在胃裡掏出來的眼淚

有心有力做好事


有心的朋友又傳來下面這個真人個案,也許亦有很多人看了,不過我想有意義的事還是要讓更多人知道。

我們身在澳門,面對的問題和煩惱都是微不足道的,有時間有心力有錢,多個善事就比多說是非好,多留意這個世界的貧苦

The id attribute considered dangerous

I've been doing various overhauls of DWiki recently (a faster andbetter DWikiText to HTML renderer written by Daniel Martin (and hackedby me, so blame me for any problems) went in tonight, for example).As part of this, I've been looking at the HTML DWiki generates,running it past HTML Tidy and the W3C validator and so on. It's been a learningexperience.

One of the things I've learned is that almost everywhere DWiki codeand templates were