Tag Archives: Postaday2011

ImageMagick – Manipulate Image Files by Shell Commands

ImageMagick is built on Ghostscript which i have introduced in the following post previously.
Ghostscript – Convert PDF Cover/Page into PNG

I am working on my Rails project with the Paperclip gem which requires ImageMagick. Installation of ImageMagick in Ubuntu is very simple. Just grab it by apt-get. Continue reading ImageMagick – Manipulate Image Files by Shell Commands

Drupal – Delete all orders in Ubercart

I have created so many testing orders in the Ubercart during the development. So before i migrate the site to production, i have to clear all the testing orders. This could be done by deleting the order one by one through the View orders page.

But i got more than 100 testing orders and obviously the above method is not clever enough. Continue reading Drupal – Delete all orders in Ubercart

吳志森 – 自閹了,還要閹別人

記得多年前領匯上市,公屋居民盧少蘭婆婆,在時任立法會議員的鄭經翰等協助下,提出司法覆核,阻止房屋署賤賣政府資產。事件引起軒然大波,建制名嘴口誅筆伐,建制媒體指摘盧婆婆受政客操控,妨礙政府施政,指鄭經翰等人包攬訴訟,應予制裁,小投資者更是群情洶湧,集會抗議,指鄭經翰「阻人發達」,恐嚇要用暴力手段對付他。

事件至今已近七年,領匯搞得天怒人怨,瘋狂加租趕盡殺絕,迫使小商戶流血結業。商場千人一面,餸菜日用等必需品不停加價,收入微薄的屋邨居民百上加斤。昔日舉手贊成領匯上市,對盧少蘭鄭經翰破口大罵的建制直選議員,川劇變臉爐火純青,今天轉個頭來,為了選票,又擺出一副同情相,甚至為商戶出頭,組織遊行,抗議領匯加租。 Continue reading 吳志森 – 自閹了,還要閹別人

討論的技巧 @ 1

討論可以啟發思考,驗證自己的論點,從而找出更好的觀點好讓自己面對抉擇時作出恰當的決定。

古希臘文化的偉大,有賴於蘇格拉底式的討論,不單止孕育新思維、新思想,更引導人類判別善與惡,深深影響整個文化的各個階層,並伸展到歐洲不同地方。要注意的是這裡的善與惡不是單單的善良與邪惡,善代表所有有益、好的東西,惡是指有害、不好的。我在這裡所講的討論是善惡的討論,也就是古希臘先哲所討論的對象。

討論可以很容易發生,但有結果的討論卻不常見。這是因為不是有兩把口,會發聲就可以討論。

討論完各持己見的例子比比皆是,寫這篇Blog是為了提醒自己留意討論時的技巧,亦希望有興趣的朋友可以參考一下。 Continue reading 討論的技巧 @ 1

Drupal – Cron problem with drupal_goto() in hook_nodeapi()

One day, i found the the Drupal cron job failed to run. There was no error log and after i clicked the run cron manually in the status report, it was redirected to a specific node. This redirection was previously added by me in hook_nodeapi() such that under certain conditions, that specific node is displayed. Continue reading Drupal – Cron problem with drupal_goto() in hook_nodeapi()