Cake – 寫 PHP 化煩為簡

cake

Cake 是一個 PHP 的 Web Framework,他的設計理念自越來越熱門的 Ruby on Rails ,不過用了 PHP 來實作。如果大家參看一下其 Demo ,就知道一樣也是 Conventions over Configurations 的概念,讓 Web Framework 替你做好大部份煩人的設定工作,而令開發者可以直接地寫 Business Logic。程式碼也不過只是


模擬器

nes01

del.icio.us 上找到了一個叫 Abandonia 的網站,裏面收錄很多 Abandonware 遊戲。什麼是 Abandonware 呢?從字面上來解就是「被放棄了的軟件」,被放棄的意思,是指這些軟件都已經沒有得賣,又或者不再被版權擁有者所支援了。在 Abandonia 上,有很多不同類型


An open letter to free webmail providers

Dear free webmail providers: I have a simple request for you that willhelp the spam problem. Please stop allowing people to send out mailthrough your systems from IP addresses that are well known as heavyspam sources , especially of things such as advance fee fraud.

I got yet another '419' advance fee fraud spam today, sent through afree webmail provider. Selected headers are:

Received: from dbmail-mx1.orcon.net.nz ([219.88.2

An unchanging system should be stable

One of my principles of system administration is an unchanging systemshould be stable . Stable means more than 'doesn't crash', it means'doesn't need to be fiddled with all the time'; no hand-holding, nocleaning up afterwards. It means a system that can be left to runquietly in the corner.

This does mean that you have to make it so that ordinary things can'tcause the system to explode. The two big ones are making sure thatsystem logs don


A real use for staticmethod

In Python, all method functions normally get called with the object astheir first argument. New-style classes can specify that some methodsshould instead be 'static' methods: they don't receive the object asone of their arguments.

On the face of it this is a bit peculiar. Given that Python hasordinary (module-level) functions, why would you ever want to design astaticmethod instead (apart from misplaced object-oriented purity)?

What I use static methods for is as a way


拉康與靈媒

...the Lacanian notion of anxiety: anxiety occurs not when the object-cause of desire is lacking; it is not the lack of the object that gives rise to anxiety but, on the contary, the danger of our getting too close to the object and thus losing the lack itself. Anxiety is brought on by the disappearence of desire.



各位齊澤克書友可競猜下以上句子出自zizek邊本書。

《基地》系列

foundation1

Continue reading...

Future Sysadmin Jobs

I am fond of giving everyone who tells me they're thinking of beingsystem administrators a rant disguised as a question:

When things are automated in the future, there are going to be threesysadmin jobs left: the secretary filling in forms, the stock clerkswapping the backup tapes and refilling the printer paper, and thetroubleshooter they call in when there's problems. Which one do youwant to be?

I firmly believe that all routine system administration will beautomated sooner or later (yes, despite vendors


從 Google Map 看我的家

gmtko

得知 Google Map 已經可以看到 整個世界 的衞星圖片,也就為 自己的家 拍一張 Google Map 照片。不過事實上也只有照片而己,轉到去「地圖」模式的時候也是空白一片。用 Geek 一點方式說,現在只是有 Presentational 的表面,但沒有 Semantic 內容。始終,要收集全世


千家燈月漏遲遲

我會在電話響起之前兩秒突然自沉睡中醒來,心臟狂跳。看《珈琲時光》時,陽子的母親出場時一直留在廚房煮食不出迎,我突然知道她不是陽子的母親。校對《力學》之後,我對作者說,我覺得你會買車,作者看我一眼,說,