Archive for November, 2009
以銅為鏡,可以正衣冠。以古為鏡,可以知興替。以人為鏡,可以明得失。
Posted by allenkwc in Uncategorized on November 29, 2009
唐太宗李世民說的
魏徵看到該說的就說,從不畏懼。他的膽識和卓見,為“貞觀之治”作出了不可磨滅的貢獻。魏徵病逝時,太宗親臨痛哭,並罷朝舉哀五日,後來太宗臨朝時流著淚對羣臣說:“以銅為鏡,可以正衣冠。以古為鏡,可以知興替。以人為鏡,可以明得失。朕當常保此三鏡,以防己過。今魏徵殂逝,朕遂亡一鏡矣!”
三年又三年
Posted by allenkwc in Daily Life on November 20, 2009
umum… 都唔記得寫blog…
十一月十一號… 又3年喇…
同老婆仔係埋左一齊3年 good~
今年老婆有花收喎… 好似好開心咁喎… hehe…
跟住又去左中環食晚飯, sweet~~
Handling 2 Projects in Java
Let’s say you’re working on Project1, which is your main TiVo app. You want to create a second project, Project2, that maybe has a piece of functionality you want to work on (or maybe have someone else work on) but you want to use it in your main app.
- If both Project1 and Project2 are in your Eclipse workspace, simply select Project1, right-click it and do ‘Properties’, then ‘Java Build Path’. Click the ‘Projects’ tab, then add ‘Project2’. Now you may use any Project2 classes in Project1.
- To simplify things, you can create a JAR file out of Project2, then reference it externally from Project1. Once the Project2 JAR is created, you can add a reference to it in Project1. Select Project1, right-click it and do ‘Properties’, then ‘Java Build Path’. Click the ‘Libraries’ tab, then ‘Add External JARs…’ Add the Project2 JAR file.
- You may also choose to go one step further and actually make Project2’s JAR file a part of Project1. One way to do this is to make a new folder in Project1 called ‘lib’ (right click the project, do ‘New – Folder’). Then, drag Project2’s JAR file onto that ‘lib’ folder in Eclipse’s Package Explorer. The JAR will be copied into the project. Then, right-click on Project1, do ‘Properties’, then ‘Java Build Path’. Click the ‘Libraries’ tab, then ‘Add JARs…’ Add the JAR file from the ‘lib’ directory.