再見2005年,再見!

這一年對我來說是最特別的,工作上,苦苦等了幾年,終於還是過了今年的一大難關。

這一年特別苦,也特別難忘,身體和心靈前所未有的脆弱,在職場上做得最差也許負了很多人,寫了四百幾天的小說連載也叫做“去日苦多”

A logical consequence of def being an executable statement

I've mentioned before that in Python, def is actually an executablestatement (in FunctionDefinitionOrder ). A logical consequences of thisis that default values for function arguments are evaluated only once,when the def runs.

I say this because expressions generally get evaluated when any Python statement runs, so the expressions in things like ' deffoobar(a, b=greeble(c), d=None): ' are not being an exception. Theexception would be if they were not evaluated then and were instead


Notes on getting a Solaris hardware inventory

Being able to find out what hardware is in a random machine is one ofthose things you don't think about very much until you inheritresponsibility for a bunch of machines that you didn't build yourself.

The best hardware inventory program I've used is SGI's hinv (although it doesn't have enough disk information). Linux has decenthardware inventory support, but not bundled into a single command; youhave to look through a bunch of /proc files and know a few commandslike


WTO後 ( 一)

WTO後 ( 一)

過了wto在港的會議已經有十日多了,到今晚在回家的路程中才花點時間去整理一下13日至18日的前後,及當中的感覺/位置。總是會有好多原因同理由唔去寫的,不過,今晚就想寫吧!
再次回想那幾天的(所謂)

2005 網絡技術回顧

又再來一個回顧了。在這一年,有三項令我比較注目的技術名詞 :Ajax, Ruby on Rails, Web 2.0,三者又互有關係。

GMail Google Maps 面世,大家都對 Ajax 有了很大興趣,結果在今年有很多不同的 Ajax library 出世,如 Prototype , Dojo 等等,也研究出很多做 Ajax 的


20051230網摘 – Blogging Gathering

Blogging

Service and Resource

Browser Plugins

  • UrlParams 一個跟 LiveHTTPHeader 相似的 Firefox extension,會列出每一個 request 裏的 GET POST parameters,還可以 re-submit
  • DivX Browser Plug-In 讓你在

再與太皮談文學

姓名: 太皮

留言:

寂然哥:
我忘了前天才在文化廣場翻過《聚龍里》呢本小說,我見我越來越沒記性了。說到文學的受到重視與否,你一時說人哋潑你冷水,一時說我自求我道,好像有點矛盾呢?在我認為,有人批評好過沒人批

On Lisp's fundamental data structure

One of the joys of learning new programming languages is the ahamoments when something really clicks. The biggest aha moment I've everhad was with Prolog, when an assignment went from nigh impossible totrivial in a blinding flash of obvious insight.

But the one I remember most distinctly is from years ago, when I waslooking at Lisp (again), and finally realized that the fundamentaldata structure of Lisp is not lists but cons cells .

While the major use of cons cells is building lists, cons cells


A Python surprise: the consequences of variable scope

The comment on my AClosureConfusion entry brought up a little Pythonsurprise that I had known about in the back of my mind but neverthought about fully before: the consequences of Python's scoping rulesfor variables.

Ignoring closures for the moment, Python only has two scopes forvariables: global to the module and local to the entire function.(Closures introduce additional scopes for the variables of the 'outer'functions.)

Well, sure, you know that. But the consequence is that any variablein a function


書鈔.未完

1.理性,不是冷漠和抽離,尤其不應是勝利者的凝視

「此處,真實(veracity)(正確性——知識的妥當性)與真理之間的區別是關鍵所在。讓我們以馬克思主義的命題『一切歷史都是階級鬥爭的歷史』為例:這個命題已經預設了投