大概是四年前,我開始迷上 Nike+ 這玩意,因為自己是用家,我除了對這產品情有獨鍾,我更欣賞此產品背後的營銷策略,所以,在我於HKU Space教授的一個品牌管理碩
Adding Images to Search Results (Drupal Search)
For a while (earlier in my Drupal career), I was avoiding adding imagefield-attached images to nodes that appeared in my search results, because I remember the first time I tried doing so, I was still quite confused by the way drupal handled search results theming.
Well, after another crack at it, I finally have a nice, performant way of displaying images from nodes added via imagefields (or in drupal 7, image fields) inline with search results, and it didn't require much work at

為信仰辭職?
Dear Googlebot: SMTP is not HTTP
From the logs of a SMTP server here:
32301# remote from [66.249.67.36]32301r GET /robots.txt HTTP/1.132301w 550 Syntax error32301r Host: 128.100.3.51:2532301w 550 Unknown command 'Host'32301
口頭政治與時事
談幽默
IPO的生與死
談幽默
那何謂好的演講?「幽默大師」林語堂認為演講必須
Programmatically adding and removing roles to users in Drupal
[UPDATE: Here is a much simpler method for editing a user's roles .]
I thought there might be some sort of API function that allows me to add a user role to a user object by the role id (rid), but after looking at user_save() and some other information around the Drupal universe ( like this thread ), it looks like it's not as easy as I'd hoped. Definitely not like node_save(), where you just modify the
又要靚又要真
( 圖源 ) 可以肯定,女人是化了妝比較漂亮的,而事實上男人對漂亮的女人,根本就沒有抵抗能力,所以女人化妝是非常合理。
不過問題是,問到男人的意見呢,即使是女明星,大家總是一致地口臭︰「落左妝就嚇死人呢。」眼