Just Created: New Drupal Module "Gallery Archive"

Gallery Archive Project Page on drupal.org

I just created my second open source software project (for Drupal), Gallery Archive . This is the first Drupal module I've created, and I'm excited to be able to dive into many more APIs I've not yet interacted with. Drupal has been a great adventure in my life, and I'm finally getting good enough with 'drupal-fu' (like kung-fu, but in Drupal-speak) that I can come up with solutions to my own problems :)

The


利用 PEAR 製作 Excel 檔案 (Use PEAR to create an Excel file)

PEAR 為 PHP Extension and Application Repository 的簡稱
是一種以 PHP 物件導向的設計的程式庫
PEAR is the abbreviation of PHP Extension and Application Repository

安裝 PEAR
Install PEAR

開啟 Terminal 輸入
Open the Terminal and type
sudo apt-get install php-pear

安裝 PEAR 及其相對的元件
To install PEAR and its relative package
見下文

開啟 Terminal 輸入
Open the Terminal and type
sudo gedit /etc/php5/apache2/php.ini
Continue reading...

上了賊船之後

早兩天看了一篇討論宗教信仰的文章,作者是馬里蘭大學哲學教授 Georges Rey ,內容真是深得我心,讀後有痛快淋漓之感。文章題為"Meta-atheism: Religious Avowal as Self-Deception",收在Louise Anthony編的文集 Philosophers without Gods: Meditations on Atheism and the Secular Life 裏(我在網上找到 此文的草稿

A module that I want in the standard library: Parsing

Given what I've written before , it willprobably not surprise you that I have a little list of modules thatI think should be in the standard library. The first one of them isa decent parsing or parser generator module.

There are two reasons in combination for this. First off, various sortsof parsing is an important part of the work that a decent number ofprograms do. Full bore language parsers are somewhat uncommon, but (atleast in my work) it's reasonably common to be


The cache eviction death spiral

Here's a cache behavior I've touched on in passing several times butI feel like covering explicitly now. It's what I've taken to call thecache eviction death spiral, where cache evictions start you down a pathto grinding death.

Cache evictions of useful data have an obvious problem; they slow downthe program when you have to pull the needed data back into cache. Butin a contended cache under pressure from multiple sources, they have asecond effect as well; because your program


廣告之 inception

是咁的,日前在街等人,聞得背後一對母子對話,談及男孩的小學同學,提起一女同學,男孩突然一句:「我有小小鍾意左佢!」母親地說:「咁你就要讀好 D 書啦!」「點解?」「女仔鍾意 d 叻架嘛!」

母親固然機警轉得快,


Tabbing Between Fields in Google Chrome (vs. Tabbing through everything)

For some users, being able to tab through all clickable elements on a page is a blessing. For most, though, it's a curse (at least, in my experience). The default behavior of a browser should be to allow users to tab through form elements only (textfields, textareas, search forms, submit buttons, etc.).

For some time now, Google Chrome has only allowed users to tab through every. Single. Element. on the entire page. Luckily, there's

Under the Hood settings - Google Chrome

品牌故事—情色品牌,色情不再。

執筆之時,今晚一邊在看CNBC的節目 Titans ,一邊聽主持人講述 Hugh Hefner 及有關Playboy這品牌王國的故事,相當引人入勝。

在美國流行文化史上,Playboy曾被譽為等同成人版的Disney,若要數全球最Iconic的品牌,亦不得不提Playboy這名字。

試想,即使抹走了Playboy

Continue reading...

[電影]-當愛來的時候(When Love Comes)

【當愛來的時候】


來春的媽媽終於生了一個弟弟,全家都沉浸在一片喜氣中,但來春卻不以為然。她瞧不起當人「細姨」的媽媽,窮盡青春年華為人生育孩子,生了她、又生妹妹,現在終於拚出了一個男孩,卻又能代表什麼?讓
Continue reading...

吾家有子初長成

兒子在過去一年多長高了五、六吋,肩膊橫了,聲線變得低沉了,臉上也有不少青春痘,然而,最令我覺得要適應的,還是他的思想行為。

不像從前凡事都聽父母的話,接受父母的意見,他現在對很多事情都有自己的想法,要求