一直都想整理一下2008年的意大利與希臘之旅,今次正好係四月再遊意大利之前完成它。

Continue reading 2008 Italy and Greece Journey Review @ 1
Android – Applying Alternate Row Color in ListView with SimpleAdapter
We have talked about how to make a ListView in Android Application using SimpleAdapter.
If you want to add different colors to the background of each row, you can create another adapter which extends the SimpleAdapter and overrides the getView() method. For example, create the SpecialAdapter.java as follow.
Continue reading Android – Applying Alternate Row Color in ListView with SimpleAdapter
Make Jetty as Windows Service
Normally, we can start Jetty in the command prompt by
- java -jar <Jetty_Home>/start.jar
In case you close the command prompt accidentally, Jetty will shutdown. One way to solve the problem in Windows platform is to make use of the Windows Service Wrapper provided by Jetty.
Continue reading Make Jetty as Windows Service
讓你賺大錢 WHY WE WANT TO BE RICH
作者: Donald J.Trump, Robert Kiyosaki
今次 Donald Trump 找來富爸爸 Robert Kiyosaki 合作,幫讀者了解自己從而找出適合自己人生的道路。
書中再三強調自己的重要性,政府的退休保障、保險與基金公司都並不可靠,但偏偏大多數人都將自己的未來交託於他人。這與我的人生觀很吻合。(我是 René Descartes 的一派 =P)。例如投資需要的不止是金錢與經紀人,更重要是投入自己時間去了解你買的東西。
作者亦有分享創業者擁有的特質,但終究不是每人都適合創業,此書正好幫助讀者認識自己是否適合成為創業家。

Apache Felix – Register OSGi Service
Yesterday we built two OSGi bundles using Maven.
Maven – Create a OSGi bundle using maven-bundle-plugin
In Maven, you can build a OSGi bundle using maven-bundle-plugin.
I find a very useful tutorial which shows you how to create a HelloWorld OSGi bundle.
Continue reading Maven – Create a OSGi bundle using maven-bundle-plugin
Apache Felix – OSGi Service Platform
Apache Felix is an open source implementation of the OSGi Release 4 core framework specification. The OSGi framework is a module system and service platform for the Java programming language that implements a complete and dynamic component model which is called bundle. These bundles can be installed, started, stopped, updated and uninstalled without rebooting the system.
Continue reading Apache Felix – OSGi Service Platform
Javascript – Open a link in new window
In Javascript, the following code will open a link in a new tag.
window.open('url');
I want the browser prompt me a download dialogue box after i click a link and finally redirect me to a thank you page. The following code could make it.
Continue reading Javascript – Open a link in new window
Eclipse – Configure Proxy for subclipse
The Eclipse proxy setting does not apply on subclipse. So you cannot connect to a SVN repostory outside your firewall even you have set the proxy in Eclipse.
Continue reading Eclipse – Configure Proxy for subclipse
Maven – Run Webapp by maven-jetty-plugin
I always think that building a good developing environment for developers are essential in terms of efficiency as well as quality. maven-jetty-plugin let you run the webapp without deploying the .war to Java web container and run debug mode directly in the Eclipse IDE.
Continue reading Maven – Run Webapp by maven-jetty-plugin