人頭馬一開,好事自然來

終於發生好事了。自從某人告訴我一個大江健三郎式的方式之後,心情大好,人生充滿盼望,動力無限,還差一點就可以正常地寫東西了。

然後,又發現了一個 有點意思的心理測驗 ,可以一洗本blog頹風,讓一直以來捧場的讀者不

傲慢與偏見 – 愛與金

prideandprejudice

我沒有看過《傲慢與偏見》這本經典小說,但電影版本確實很不錯。背景落於中古時期英國,講的是貴族男與鄉村女,在種種誤會錯摸後,終由怨家變成襯家的故事。故事內容有趣而豐富,除了男女愛情之外,還可以看到當時社


澳門露鋒芒!真的嗎?


【澳門日報2月27日報導】在《外國直接投資》雜誌(fDi - Foreign Direct Investment)首次舉辦的“2005-2006年度亞洲最佳展望城市”評選活動中,澳門榮獲亞洲“最具經濟發展潛力城市”奬項(Best Economic Potential City)。

該雜誌出版人大衛 · 伊

Python's extra-clever function parameters

I'm not sure where I ran across this, but until recently I wasn't awarethat you could pre-explode lists and tuples when you declared whatparameters a function takes. That sounds stilted, so I'll give anexample:

def foo(a, (b, c, d)):  print a, b, c, d

This is slightly more compact than the equivalent:

def bar(a, tmp):  b, c, d = tmp  print a, b,

霍元甲


星期六下午看了“霍元甲”,電影比我想像中好,很久沒有看到這麼沉實的武打片了,而這部號稱李連杰最後一部武打電影,除了打出精彩動作,更拍出了武打片中罕見的深度。

我覺得此片處理得比較好的是後半部霍元甲家破人

刻度

如此潰爛的生日,以前也試過嗎——其實我已經不記得了。幾天前的事都已像乾澀的粉刷抹過,一片迷糊,而刺鼻。 我什麼都不記得了。

我拒絕了母親和學生的約會,把自己鎖在斗室裡。收到認識的人的電話、很久沒見的朋友的

Weekly spam summary on February 25th, 2006

Here's how Hotmail stacks up this week:

  • 4 messages accepted; unfortunately, one of them was definitely spamand at least two more probably were.
  • 21 messages rejected because they came from non-Hotmail emailaddresses.
  • 49 messages sent to our spamtraps.
  • 4 messages refused because their sender addresses had already hitour spamtraps.
  • 6 messages refused due to their origin IP address, all for beingin the SBL ; four from SBL17935 ,one from SBL27471 ,

The hassle of email (as compared to RSS)

In my recent 'give me RSS feeds' entry I wrote in passing '[...] these daysemail is just too much of a hassle'. Which it is. Let me illustrate how.

To subscribe to new mailing lists these days I need to:

  1. figure out how to subscribe
  2. make up a new email address to give the list
  3. go through a multi-stage subscription dance
  4. make sure our antispam filters won't eat the list messages
  5. adjust my filters to put the messages somewhere distinct
  6. remember to check

如同沒有,時間的刻度

其實算挺糟的:我完全無法寫工作上的東西,只能筆戰。一旦有要靜下心來做的事,就像決堤一樣癱軟下來。 我不知我怎麼可能寫完論文。

每當時日過去,我覺得自己想要扭頭細數人生,就以這詩來抵擋。每一句都打擊我的心臟

A trick for handling mutable default arguments

One of the neat things about programming in Python is finding out aboutclever little idioms that are obvious in retrospect. My latest find isa little trick for handling mutable function arguments.

As I mentioned back when discussing the consequences of def beingan executable statement , the way I'd beenhandling mutable default arguments was something like:

def foo(a, blst = None):  if blst is None:    blst = []

At two lines, this is just verbose enough to grate lightly butirritatingly on my nerves