Love this video!
長平 – 永遠的臨界點?
中國積重難返,沉痾難挽,面臨革命引爆點。幾乎不約而同地,滿世界的中國問題專家,都談起了革命的話題。令人仿佛聽到古代造反的歌謠:「蒼天已死,皇天當立,歲在甲子,天下大吉 。」
我仔細閱讀了這些文章,專家的話句句在理。惟一讓人感到困惑的是,這些理大多在若干年前已儼然成立。不僅民眾對腐敗忍無可忍,從鄧小平到溫家寶都在警告不改革就會「亡黨亡國」。意識形態早已經成為皇帝的新衣,說破它的小孩一批又一批地被送進監獄,還有人說只會被當作傻子了。官員的飛揚跋扈,警察的粗暴野蠻,一次又一次突破底線。過去人們常說,中國很多事情要從零開始,現在都已經改成了「要從負數開始」了。
真正的問題似乎不是革命降臨,而是為什麼革命還不降臨?
Continue reading 長平 – 永遠的臨界點?
PHP – Create multiple galleries in a single page using UberGallery
The UberGallery is a very handy PHP tool to create image galleries. After the setup, it will automatically detect the image files in the folder and generate the thumbnail view on the webpage.

Continue reading PHP – Create multiple galleries in a single page using UberGallery
Symblic links in FTP
Actually there is no way to use symbolic links in FTP. A workaround is to mount the folder with the bind option. For example, i have a jailed FTP account and i want to allow it to access the /tmp/eureka folder.
1. Create the mount point folder in the user home directory.
mkdir /home/<username>/eureka
2. Mount the /tmp/eureka folder with the bind option.
mount --bind /tmp/eureka /home/<username>/eureka
Done =)
Reference: vsFTPd and Symbolic Links
Ubuntu – Setup Jailed FTP user account in vsftpd
1. Edit /etc/vsftpd.conf as follow.
/etc/vsftpd.conf
chroot_local_user=NO chroot_list_enable=YES chroot_list_file=/etc/vsftpd.chroot_list
2. Create the /etc/vsftpd.chroot_list and enter the usernames which you want to jail.
/etc/vsftpd.chroot_list
userA userB userC ...
Continue reading Ubuntu – Setup Jailed FTP user account in vsftpd
PDFit – Export your webpage into image/PDF with just a click
PDFit is a Firefox extension which allows you to convert any webpage into PDF.
1. Open the Firefox Add-ons page. (Ctrl + Shift + A)
2. Search for PDFit and install it.
Continue reading PDFit – Export your webpage into image/PDF with just a click
陶傑 – 彭定康的預言
彭定康臨走那一年預言:將來香港的自由,不一定由中國來剝奪,而更有可能是香港一些人自己主動一點點來葬送。
彭定康做港督前,從未與中國人打交道,來香港五年,對香港中國問題的本質了解如此透澈,彭定康真是天才。
十五年來,香港人的生存空間和精神空間一點點蒸發掉,冷靜地想:確實是許多自以為有點知識的香港人自己葬送的。
譬如,香港的「知識份子」根本不懂何謂「文化」──香港開埠以來,重工商,崇金融,輕文史,不讀哲學。香港的教育制度從來不研究「文化」這個課題。但二十年來,一伙沒有基礎的「文化人」趕西方時尚,濫稱「文化研究」,這伙笨蛋,沾了點美國東岸左派學院的皮毛,在香港講「文化包容」。
Continue reading 陶傑 – 彭定康的預言
宗教學暨神話學入門
作者: 董芳苑
本書是一本宗教學的入門書,作者講述有關宗教學的各種定義,包括宗教學宗旨、研究對象、研究方法等等,同時亦介紹了現時仍然存在的各個宗教與神話。
宗教學是一門人文科學,可以從不同的角度著手,當中包括歷史、現象學、心理學等等。
宗教的出現,隨了深深影響了人類的歷史外、它也會與當地的文化相互作用,例如基督宗教的理念,促使了平等、人權等普世價值的出現,甚至推動政治體制的改革。雖然中國的墨家也有兼愛,但只屬小眾,難以與儒、道、佛分庭抗禮。
從道德觀來看:
- 一神論的宗教道德觀
- 追求公義、博愛、人權、順服、聖戰 (如基督宗教、伊斯蘭教)
- 多神論的宗教道德觀
- 無神論的宗教道德觀
- 強調自力修持、慈悲、戒殺、追求解脫、或忠黨愛國 (如佛教、納粹主義、共產主義)
嚮往功利主義、獨善主義 (如道教、民間信仰)
在東方,或許是我們缺乏一神論的宗教而民間信仰卻比較流行,形成了如香港的拜金主義。
Javascript – Calculate the number of days between two dates
// Checkin date var checkin = '2013-04-04'; var checkin_date = new Date(); checkin_date.setYear(parseInt(checkin.substr(0, 4), 10)); checkin_date.setMonth(parseInt(checkin.substr(5, 2), 10) - 1); checkin_date.setDate(parseInt(checkin.substr(8, 2), 10)); // Checkout date var checkout = '2013-04-10'; var checkout_date = new Date(); checkout_date.setYear(parseInt(checkout.substr(0, 4), 10)); checkout_date.setMonth(parseInt(checkout.substr(5, 2), 10) - 1); checkout_date.setDate(parseInt(checkout.substr(8, 2), 10)); // Calculate the difference var days = (checkout_date - checkin_date)/1000/60/60/24; // Output the result console.log(Math.floor(days));
Done =)
Reference: StackOverflow – jquery datepicker + date diff calculation
Javascript – Create a date object from a date string
Previously, we talked about how to convert a date object into string.
Javascript – Get YYYY-MM-DD string from a Date object
This time, we will do the opposite which parses a date string and create a date object.
// Assume we have the date string in YYYY-MM-DD formate var datestring = '2013-05-03'; var date_obj = new Date(); date_obj.setYear(parseInt(datestring.substr(0, 4), 10)); date_obj.setMonth(parseInt(datestring.substr(5, 2), 10) - 1); date_obj.setDate(parseInt(datestring.substr(8, 2), 10)); // Verify the date object console.log(date_obj);
Done =)
Reference: StackOverflow – javascript: how to parse a date string
