Global – Bloody Fur 血皮草

Human being is the only animal in the earth which kill other animals not for their meat for survival but covering with their fur to show off.

The following pictures were taken in Hebei, China.

Continue reading Global – Bloody Fur 血皮草

Git – Revert Changes

Sometimes we may want to revert the changes in the working tree. Let’s delete some files in the Rails project.

1. Delete the app/controllers folder

  • rm -r ./app/controllers

 

2. Let’s check what i have just done by git status
Continue reading Git – Revert Changes

Git – Initialize your Local Git Repository

Rails project works well with Git. A .gitignore file can be found in a freshly created Rails project. It would be good to setup the local Git repository before you start the development.

1. First, install Git

  • apt-get install git-core

 

2. Setup your Git user account.

  • git config –global user.name “Your Name”
  • git config –global user.email youremail@example.com

Continue reading Git – Initialize your Local Git Repository

Notepad++ – Explorer Plugin

As i want to develop a Rails application, i would like to have an editor like TextMate which i can use in Windows. It seems that Notepad++ would be a good option but it does not have a project explorer for me to switch the files.

Luckily, there is a Notepad++ plugin called Explorer where you can add the project explorer view.

1. Download it from Notepad++ Explorer Plugin.
 

2. Extract the archive and put the .dll file into <Notepad++>\plugins folder. Continue reading Notepad++ – Explorer Plugin

教育,應該是這樣

教育的題材,百談不厭,一來身處其中,二來眼見數以十萬計青年人在受著蹂躪,難忍而不撰。批評香港教育的話都說得太多,大家心知肚明,然今天談教育,小的卻不旨在抨本土教育,卻想向人介紹一個外國的典範,有了如此比較,希望對教育的真諦能有一個更全面的認識。
 

為何教育那麼重要? Continue reading 教育,應該是這樣

Drupal – Using JQuery UI

You can make some JQuery UI function with the help of the JQuery UI module. For example, the Date module of CCK allows the Date Popup feature which required JQuery UI. The current support version for JQuery UI is 1.6.

1. Let’s download the Date and JQuery UI modules and extract them into sites/all/modules. We also need to download JQuery UI 1.6 library to sites/all/modules/jquery_ui. Continue reading Drupal – Using JQuery UI

陶傑 – 五元的選擇

瑞士銀行預測,二○一二年之前,香港樓價還將高四成。

樓價上升,勢不可當,特區政府的什麼「壓制措施」,全屬空談。什麼七招十八式、九招三十六式,還有肉蒲團老漢推車的一百零八式,算你都出盡了,也是徒勞。

今日香港的樓市,早已成為世界經濟泡沫快車的一節車廂。美中兩國,都在瘋狂印鈔,美元貶值,掛鈎的港幣跟着貶。大陸也通脹,但大陸的通脹是「國家機密」。美中兩國的貨幣貿易戰爭,香港的貨幣,西依附着美國人的大腿,香港的市場,則北仰鼻息於大陸的鼻孔,香港房地產,怎能不狂漲? Continue reading 陶傑 – 五元的選擇

Drupal – Customize the Views Query

I want to create a taxonomy view which shows the term name and the term image. For those terms without term image, i want to filter out them. Unfortunately there is no term image filter in the view setting. One work around is overriding the view query by implementing the hook_views_pre_execute(&$view) in a custom module. Before you construct the new SQL, you should set all your desire settings in the view editing page first. Then you can create a new SQL base on that view query.

So in the custom module, add the following function. Continue reading Drupal – Customize the Views Query

Dream BIG and go for it =)