The problem with <pre>

Generally,

 is a fine thing, and it's become the de-facto way ofwriting any number of 'computer' things; code, Unix sessions, evenequations, as as various     WanderingThoughts    entries illustrate. Butthere's a problem with it:     
 text doesn't line-wrap    .  

The consequence is that if you write a long

 line, the browser willhappily force a line wider than the browser window, making the readereither widen their browser (

情人過節


情人節,小心與情人產生“過節”。

樂觀的人會說:只要是有情人,天天都可以是情人節。 問題是天下間的情侶愈來愈抵受不了“消費”一個情人節的誘惑,因此這一天一定要送花、一定要送朱古力、一定要有浪漫晩餐,但年年

下午3點飯氣攻心時必聽新碟 — 東京事變「大人」

單看碟名「大人」,便覺得與有著與上回「教育」大碟延續的意味。

幸好,即使換了兩位成員,「東京事變」用音樂向我們證明,他們,還很有「火」。

例牌動作,立即upload上iPod,翌日早上一口氣聽畢全碟,我要強調,是一氣呵成


Weekly spam summary on February 11th, 2006

Hotmail has been startlingly quiet this week. The numbers:

  • One message accepted.
  • 24 messages rejected because they came from non-Hotmail emailaddresses.
  • 68 messages sent to our spamtraps.
  • 23 messages refused because their sender addresses had already hitour spamtraps.
  • 10 messages refused due to their origin IP address (two in the SBL,one in the CBL, and then the rest from an assortment of places wepretty much don't talk to any more).

Hotmail may actually be dealing with its


乏而厭世

1.睏。對於與年輕人溝通失去信心。<-- body 這種典型的xanga、od句子。飯氣曾有將心比明月,鄙人則野野明月照溝渠,什麼都攤開來講,可惜看來沒人相信我是友善、坦誠又心軟的。以為談得開心,以為對嘴了,過一天開估,完<>

The return of how to get your web spider banned

Today's entrant is 'Uptilt Inc', uptilt.com, aka 64.71.164.96/27. Let's see how they did on my scale :

Important update : it turns out I was fooled by out of dateWHOIS information and Uptilt Inc isn't involved; for the fullstory, see UptiltUpdate . Remember that when you read thehistorical references to them in the rest of this entry.

  • 1,159 requests in one day.

果然是但噏


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

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

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++


自覺樣衰

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

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