偶然的真相

已經不止一次,攤在床上極累極累,關了燈滅了聲閉緊眼睛,手腳都像斷掉一樣。以為會進入死亡般的沉睡,但卻轉醒,胸口汗濕,看看鐘已過了一、二小時,卻彷彿沒睡過,四肢離散依然。疲倦像一層油,淺眠把它洗了下來,

約會.機關算盡心亂如麻

自由文化音樂節

社運電影閉幕電影《黃幡翻飛處》

日期:2005年11月20日 (星期日)
時間:自由文化音樂節--中午12時至晚上6時30分
社運電影節閉幕--晚上7:15pm
地點:油麻地榕樹頭公園

演出單位:Billy

SQL as metaprogramming

I'll start by quoting Glyph Lefkowitz from a recent article (okay, recent for my techblog writing):

Metaprogramming is hard, and dress it up however you like, that'swhat using SQL is. Your code is generating other code, andevaluating its results.

Because metaprogramming is so hard, it is almost exclusively theprovince of frameworks, environments and operating systems. For goodreason, too. Whenever code generates other code, there arepotentially very serious mistakes that can get made. [..


20051118網摘 – 吉祥物惡搞

Technology


MTR De-Re-Mi

在網上聽到這麼一首 MTR Song,歌是 Do-Re-Mi,但詞是各個地鐵車站,相當過癮。未能查到這首歌的源頭,但在 Google Blog Search Technorati 也見有網友介紹過,在此 K-Post 一下。

下載歌曲

MTR songs by Unknown

Let’s start from the very beginning Though there s plenty of places to start If you want to get around


Why Linux threads use up so much memory

If you write a simple threaded program in C on a modern Linux systemand fire it up, you may rapidly notice that you can't have more than acouple hundred threads before you run out of memory. Even if you don't need that many threads, you may discover that your program is using anabsurd amount of (virtual) memory.

(This can also happen in other languages; I know it happens inPython.)

What's eating all the memory is the default NPTL thread stack


功能超強的 Google Analytics

googleanalytics

我對於網站 Statistics 的要求並不多,有 Hit rate, Visited Link, Referer, Search Term, Browser statistics 等等都已經很足夠了。自己一向用的是 Blog Patrol ,貪其夠簡單一版過,但所收集的只是首頁的資料而已。不過最近 Blog Patrol 本身好像有點慢了。

前些陣子,見到 Webleon 介紹了 MeasureMap ,看


初嘗 Google Base

gbase

Google Base 正式開通了,之前只是一閃而過,沒有仔細看,但已可從當中看到其應用可以很廣泛。

小試牛刀,用剛寫了的《情書》影評試貼,選用預設的 Movie Review 格式,裏面可分開幾個不同的 Section: Title, Pictures, Details, Labels, Description 和 Contact,其中 Details 和 Labels 是 Optional


How not to do DNS for internal domains

Here's a brief recipe for how not to do DNS for your internal domains,as illustrated by eBay:

  1. Allow your internal subdomains leak into your externally visiblenameservers, so that when outside people query for 'sjc.ebay.com'they get back NS records instead of 'no such domain'.
  2. Use RFC 1918 private IP addressesin 10.*.*.* for your internal network, including the DNS serversfor your internal subdomains. Such as sjc.ebay.com.

20051116網摘 – 學習 Microformats

IT & Web