陶傑 – 一路走好

「國民教育」風暴,民憤當前,梁班子退縮,不再全港硬推了,也撤銷了三年實施限期,由學校自己決定。

反「國教」大聯盟,要迫梁振英全港撤回,梁振英恨恨說:請想想「撤回」是什麼意思,有的學校,有推行「國民教育」的意願,全都撤回,辦不到。

梁振英沒說錯。特區政府是「官立學校」的直接老闆,英皇、皇仁、庇理羅士、伊利沙伯等中學,都是官校,你沒理由不讓梁班子下令推,連這點權力都沒有,梁振英這個特首,當來做什麼?

特別是梁特的母校英皇。英皇書院的舊生會,當日是支持梁振英上台的基本盤,梁先生競選時,呼籲要Change,他的校友站在兩旁,熱情響應支持。梁振英沒有辜負英皇舊生會所望,現在,他真的Change了,很奇怪,舊生會卻強烈反對。
Continue reading 陶傑 – 一路走好

jQuery Cycle Plugin – Customize pager anchor HTML

Cycle Plugin is the most common plugin which could be found in my projects. This article shows you how to customize the pager of the Cycle Plugin slide show.

Let’s create the following HTML first.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.cycle.all.js"></script>
    <script type="text/javascript" src="script.js"></script>
  </head>
  <body>
    <div id="slides-wrapper">
      <div id="slide-1" style="width: 200px; height: 200px; background-color: red;"></div>
      <div id="slide-2" style="width: 200px; height: 200px; background-color: green;"></div>
      <div id="slide-3" style="width: 200px; height: 200px; background-color: blue;"></div>
    </div>
    <div id="nav"></div>
  </body>
</html>

Continue reading jQuery Cycle Plugin – Customize pager anchor HTML

Drupal 7 – Update the module schema by hook_update_N()

Recently i start working on BeansTag again as some users request to add the meta robots and canonical options.

This time, the update involves a change in the module schema. In this case, we need to implement the hook_update_N() in .install.

The following piece of code is added to beanstag.install. Continue reading Drupal 7 – Update the module schema by hook_update_N()

陶傑 – 蠢人自有惡人磨

阿富汗的塔利班,把十七個男女砍頭處決,罪名是開派對跳舞。

真是殘暴得令人作嘔的野蠻政權。美國人介入不力,因為總統奧巴馬弱勢,西方文明與東方部落伊斯蘭激進家長制的對抗,完全是正邪之戰。

最好笑的地方,是在全國選舉中,塔利班居然還有點選票。選塔利班的人,是被激進思想洗了腦的一群低等動物。他們支持塔利班壓制人權,贊成塔利班不讓女性受教育。塔利班把聚眾跳舞的男女殺頭,他們歡呼──就像阿富汗接壤的一個鄰國,五十年代初公審地主,成千上萬愚昧的農民,順着幹部的喧喊:「大家說該不該殺?」一片「該殺」一樣,票選塔利班的人,竟然也有婦女,這種愚蠢,用人性的常理已經沒辦法解釋。

只能以佛家的輪迴來看:支持塔利班的人,為自己或他們子孫作孽。正如那些當年公審時盲目喊「該殺」的農民,後來也在飢荒中現眼報,大批餓死,他們的子孫,今日的土地也遭到掠奪,大批上訪伸冤、遭到驅趕囚禁,他們值得同情嗎?從佛家的角度,他們的父母和祖父母,五十年代初在公審裏,成千上萬,做了愚昧的幫兇,今天他們還在付出果報,宿命,是很公正的。
Continue reading 陶傑 – 蠢人自有惡人磨

Dream BIG and go for it =)