陶傑 – 大撕裂

新冒出來的許多新聞詞彙,聽上去好像很有理論名堂,其實拆穿騙局,不值一文,譬如「社會撕裂」

社會的撕裂?笑話,撕裂就撕裂好了,沒什麼大驚小怪。社會本來就是撕裂的。譬如,說到「貧富懸殊」,貧和富,本來就不是一塊,而是分裂而對立的兩個階層,所以,一聽見「社會撕裂」就大驚小怪的,純屬天真無知。

民主國家一向都撕裂,所以才需要不同的政黨,英國是一個撕裂的國家,只英格蘭,就有以曼徹斯特為工業城市的工黨的英國,與以倫敦和英格蘭南部的保守黨的英國對峙。

所以英國女小說家葛思琪Elizabeth Gaskell)就有一部小說叫「南與北」North and South),講工業革命之後兩個英國社會的衝突,小說裏有一個虛擬的城市米爾頓,就是以曼徹斯特為藍本。像「悲慘世界」的雨果一樣,葛思琪對北英國的窮苦人也寄予同情,小說成為維多利亞的社會寫實畫卷。
Continue reading 陶傑 – 大撕裂

Run Drupal 7 in Nginx

After so many days we have talked about setting up Nginx, PHP-FPM, MariaDB and some PHP caching. We can now try to run a Drupal instance on them. Before we starts, let me listed out all the previous posts.

 

It’s time to start the Drupal installation.
Continue reading Run Drupal 7 in Nginx

Ubuntu – Install Memcached with PHP-FPM and Nginx

Previous: Ubuntu – Install APC with PHP-FPM and Nginx

Memcached is a distributed memory caching system and it caches data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read.

Like APC, the installation is simple.

1. Install Memcached.

  • apt-get install memcached

Continue reading Ubuntu – Install Memcached with PHP-FPM and Nginx

Ubuntu – Install APC with PHP-FPM and Nginx

Next: Ubuntu – Install Memcached with PHP-FPM and Nginx

APC stands for Alternative PHP Cache is a opcode which also known as machine code. The opcode is cached such that every time a request is sent to server, the same opcode is used until it detects a change in the PHP file.

Installation is easy and straight forward.

1. Install using apt-get.

  • apt-get install php-apc

Continue reading Ubuntu – Install APC with PHP-FPM and Nginx

陶傑 – 老巴剎之夜

人太精沒有用,計算得太盡,終必害了自己。鄭板橋「難得糊塗」,這句話很多人都聽過。二十世紀最偉大的哲學家維根斯坦有一句話異曲同工:「切勿自處於精仔的荒瘠巔峯,下來吧,到傻仔的翠谷來。」(Never stay up on the barren heights of cleverness but come down into the green valleys of silliness)

這句話很難譯,因為英文的Clever,華文簡單的詞典一般譯為「聰明」,其實是「狡獪」。維根斯坦的意思是:太過工心計,即使上到頂峯,那裏只是一片瘠地;糊塗一些,下面反是幽翠的山谷。

香港的特首「選舉」,很貼切地,確是一場「豬狼」之爭。豬比較糊塗,狼則奸詐。特首「選舉」是一場欺詐之爭,只是沒想到,民國時代也靠欺詐起家的中共,也給欺詐了一道,把特首的座椅讓給了詐狼。

豬雖然糊懵一點,特首的獎品明明在嘴邊,也給狼叼了去,但聖誕前夕,豬唐與一眾好友會餐於「老巴剎」,新聞圖片所見,一行人開懷大嚼,又是紅酒,又是美食,就像維根斯坦說的翠谷裏的一個悠閒的農莊。
Continue reading 陶傑 – 老巴剎之夜

陶傑 – 不就是共業?

香港大角嘴一幢舊大廈要收購拆卸「重建」,只剩一名地舖業主不肯接受賠償價,他「獅子大開口」,行政會議的張震遠叫這個人「顧全大局」,香港的華文輿論,紛紛加入鬥爭聲討,結果出現「聖誕奇蹟」,業主屈服。

這宗新聞,充滿中國特色。首先,不肯接受協議的業主,先會被他周圍的中國人「定性」為「獅子大開口」,也就是說,你不肯搬,因為嫌錢不夠。

但是在「西方先進國家」,保障私人財產,一個人不接受「集體協議」的收購價,可能有其他理由。我可能捨不得這座舊居,因為這是四十年前我遇上初戀情人的地方;也可能是我眷戀窗外的那片街景,在英文裏,「眷戀」比價格更重要,叫做Sentimental Value。

中國人社會不承認Sentimental Value,你不肯搬,一定是嫌錢不夠。平心而論,那個業主,十之八九可能真的為了錢,所以,一個人的自私,妨礙了九十九個人「發達」收現鈔,那九十九個,即刻「XX聲」,發起公審,自私的那個人,即成為過街老鼠。
Continue reading 陶傑 – 不就是共業?

MariaDB – Installation on Ubuntu Precise

Next: Run phpMyAdmin on Nginx in Ubuntu Precise

It’s time to give up MySQL and move on to MariaDB. Here is the steps for MariaDB installation on Ubuntu Precise (Ubuntu 12.04.1 LTS) with root privilege.

1. Create the following file.
/etc/apt/sources.list.d/MariaDB.list

# http://downloads.mariadb.org/mariadb/repositories/
deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main

Continue reading MariaDB – Installation on Ubuntu Precise

Nginx – Enable Microcaching

Update @ 2013-05-09: I am not very sure if this could really enable the Nginx Microcaching as i couldn’t find the HIT value in the HTTP response. Please feel free to comment and let us know if you got the solution. Thanks. =D

Previous posts:

 

Enable Microcaching in Nginx could help making your website run much faster. Base on the setting we did in Nginx + PHP-FPM on Ubuntu Precise. Let’s edit the VirtualHost configuration file to enable Microcaching.
Continue reading Nginx – Enable Microcaching

Dream BIG and go for it =)