香港人,你知道投票的意義嗎?

香港人,你知道投票的意義嗎?

選舉對有些人o黎講可能係一個政治Show…

“d 候選人,講就無敵,做就無能為力。”
“佢地為o左選票,無所不用其極,到最後咪有係為o左自己利益。”
“開頭話50%投票率就係公投成功,而家又話30%,你講哂啦。”
“無一個真係為香港人做野,投票都冇意思。”
 

會講上面說話的人,當然不會去投票,甚至無去登記做選民。我相信造成這個現象的其中一個原因同香港的公民教育有關,運用第一因論證: Continue reading 香港人,你知道投票的意義嗎?

XSLT – Using XSL Variable inside <a href>

Recently i am working on XSLT.

i got an xsl_variable which can be retrieved by <xsl:value-of select=”./xsl_variable” /> in the .xsl. i would like to pass this variable to a Javascript function called popup() inside the <a href>.
Continue reading XSLT – Using XSL Variable inside <a href>

2010 Japan North East Journey

剛剛回到香港

冰島火山爆發令到意大利北部之旅泡湯,居然可以係不足兩日的時間準備這次日本東北部之旅,都係全靠 Tinyan 對旅行的熱誠 =P。如果沒有佢的推動力我想我不會有機會一試自駕遊的經驗與親身感受日本文化。多謝 Tinyan 妳沿途的照顧與支持,Thanks。

今次旅程仲多了一位同伴,就係上次一起大戰蕃茄陳舌

遲一些再總結,今日要休息一天。

白石川堤 - 一目千本櫻
白石川堤 - 一目千本櫻

Failure Is The Mother Of Success

At the age of seven, a young boy and his family were forced out of their home. The boy had to work to support his family. At the age of nine, his mother passed away. When he grew up, the young man was keen to go to law school, but had no education.

At 22, he lost his job as a store clerk. At 23, he ran for state legislature and lost. The same year, he went into business. It failed, leaving him with a debt that took him 17 years to repay. At 27, he had a nervous breakdown.
Continue reading Failure Is The Mother Of Success

iPhone – Add the Return Key for UIKeyboardTypeNumberPad

Update @ 2012-11-10: This solution in this post is outdated. please refer to the comment made by Jonny for the solution in iOS 6.

When you try to use the UIKeyboardTypeNumberPad for a UITextField, you will release that there is no return key and so the UIKeyboardTypeNumberPad cannot be dismissed.

Luckily, i find out a very good article which talk about the solution of the missing return key. It makes use of the NSNotification and NSNotificationCenter such that a DONE button image will pasted on the bottom left of the UIKeyboardTypeNumberPad. Here is the code for returning from the number pad after editing a UITextField.

*Update on 2010-09-11: The approach does not work in iOS SDK >= 4.0. if your are using 4.0, you can take a look at iPhone – Add the Return Key for UIKeyboardTypeNumberPad in iPhone SDK 4.

Continue reading iPhone – Add the Return Key for UIKeyboardTypeNumberPad

Dream BIG and go for it =)