Tag Archives: Postaday2011

陶傑 – 那些年來瘋

全城小孩熱議「那些年」,戲的「賣點」,一面倒全是「打手鎗」場面。

就像看「色,戒」,只看三場床戲,沒有這些露蛋蛋啊、打手鎗啊,就少收一兩千萬的票房。

「那些年」亦可成了潮流,許多人問:香港可不可以拍成這種戲?

答案是不可以。首先,戲裏有多場少年打手鎗,戲是人家縣政府補助的,如果換了香港,政府的「電影基金」,會怕給人駡,說是政府帶頭宣揚校園淫賤、中學生戀愛。 Continue reading 陶傑 – 那些年來瘋

李怡 – 我的座右銘

以下這段話,記在我的筆記本上好多年了,沒有記下是誰說的,好像是印度一位宗教大師吧,它一直是我寫作、處事的座右銘:

如果一個人想讓別人接受他的想法,他就不配稱為大師;如果一個人要你相信他,他就不值得你信任;如果一個人相信他掌握了真理,他就是準備說謊;想勸說他人改信自己宗教的人,他就是還沒有了解宗教的真諦。 Continue reading 李怡 – 我的座右銘

Python – Install a Python2.5 on Ubuntu Lucid @ 2

Another way to install extra Python package is by source.

1. Install the build-essential and gcc.

  • sudo apt-get install build-essential gcc

 

2. Go to your target installation directory (usually i put them in /usr/local), download the source file.

Continue reading Python – Install a Python2.5 on Ubuntu Lucid @ 2

Python – Install a Python2.5 on Ubuntu Lucid @ 1

A few months ago i was working on a Drupal CDN setup using the Drupal CDN module and File Conveyor written by Wim Leers. But i have some problems when running the File Conveyor. At first, i thought it is because Python version. Ubuntu 10.04 (Lucid) comes with Python 2.6 but i wanna run the File Conveyor in 2.5. (*Finally i found that the switching the Python version would not resolve the problem.)

There are 2 ways to install additional Python package.
By apt-get Continue reading Python – Install a Python2.5 on Ubuntu Lucid @ 1

PHP – PHP 5.3 Repository for CentOS from Webtatic.com

Webtatic.com provides its own repository. If you want to get the latest packages such as PHP and MySQL, you can consider adding it to your yum repo by the following steps.

1. Add the yum repository information

Continue reading PHP – PHP 5.3 Repository for CentOS from Webtatic.com

你一定愛讀的極簡歐洲史

作者: John Hirst

超讚的一部書,如果當年讀 History 可以用它作教科書,一定更有興趣讀下去。=P

古希臘羅馬學術羅馬基督教會日耳曼民族為中心,帶出中世紀(476AD – 1400AD)後在歐洲所發生的各個改變歐洲和全世界的變革與運動。

  • 十五世紀的文藝復興 Renaissance
  • 十六世紀的宗教革命 Protestant Reformation
  • 十七世紀的科學革命 Scientific Revolution
  • 十八世紀的啟蒙運動 Age of Enlightenment
  • 十八至十九世紀的浪漫主義 Romanticism

隨此之外,仲學到羅馬的共和體制國會與國王的權力制衡英國的長弓兵(我想起AOE XD)歐洲的語言系統法國大革命等等,總之好好睇啦。

Drupal – Theme node template by module

Suppose we have a content type called Silly Question. We can theme the node template by adding the node-silly_question.tpl.php in the theme folder. But if we are working on a module, we should ask Drupal to read the .tpl.php in our module folder first because we shouldn’t ask the module user to copy the .tpl.php from our module folder to their theme folder.
Continue reading Drupal – Theme node template by module