Friday, December 10, 2010

隨便彈談 - 他約我去迪士尼



12/16/2010: 練了三個月, 有些進步. However, 有個錯誤 @ 1:58.




2010/09: 彈到最後有點累了, 看來我得多運動運動, 再來試試...

他約我去迪士尼 - 陳慧琳
附註: Kellyjackie 合唱; 作曲: 陳曉琪; 編曲: Phoebus Chan; 填詞: 許願庭/海藍

兜過幾個圈 看木馬旋轉
美夢似是遙遠 仍埋藏著繾綣
快樂旅途中 有沒有熱戀
看著這入場券 如同尋獲溫暖

笑問你 你話連夜候票再多的困倦
也不怨 似在平靜地說出 絲絲的愛戀

畢生也願記起
香港迪士尼 煙火璀璨夜晚定會很美
坐咖啡杯 溫馨記憶 旋轉中細味
天邊星宿也沒法比

今天心碎或痛悲
只需要記住陪伴在你身邊有米妮
始終可以幸福地 沉迷在美夢裡希冀

要是你 決定明日伴我去闖天與地
會很美 故事延續下世紀 一生都記起

不必理是與非
不需要顧忌 穿梭堡壘內陪伴我嬉戲
米老鼠 比精品店的美 輕輕靠近
都可使我快樂跳起

當 身邊掛著相機
假使到最後還未望到不准你別離
可知心裡正準備 無緣合照亦抱緊你

公主與白雪都
不需要羨慕 因可跟你在長夜裡擁抱
見阿拉丁 本想說聲坐飛氈
卻又不可媲美你待我好

星空不算是太高
假使有你在旁陪伴我一起每段路
可將一切記心內 明日共你愉快傾訴

隨便彈談 - 容易受傷的女人

容易受傷的女人 - 王菲
曲:Miyuki Nakajima 詞:潘源良 編:盧東尼

人漸醉了夜更深 在這一刻多麼接近
思想仿似在搖撼 矛盾也更深
* 曾被破碎過的心 讓你今天輕輕貼近
多少安慰及疑問 偷偷的再生 *
# 情難自禁 我卻其實屬於
極度容易受傷的女人
不要不要 不要驟來驟去
請珍惜我的心
如明白我 繼續情願熱戀
這個容易受傷的女人
不要等 這一刻 請熱吻
(終此一生 也火般的熱吻) #
# 長夜有你醉也真 讓我終於找到信任
不管一切是疑問 快樂是情人 #
v曾害怕了這一生 是你始終甘心靠近
我方知擁有著緣份 重建我信心
Repeat * ####

容易受傷的女人 - 鄺美雲
作詞:潘美辰/何厚華 作曲:中島美雪 編曲:蘇德華

有心人兒用情深 緊緊追緣共度今生 此刻不需再離分 讓夢幻都變真
曾經相愛過的人 淚眼訴說亳無緣份 愛你愛得那樣深 心碎也更深

情人難求 愛人總是難留 我是容易受傷的女人
無情無愛 無緣無奈的心 能不能過一生
誰會珍惜 誰又懂得接受 這個容易受傷的女人
癡癡等 到何時 有情人

火熱的心會變冷 而我依然那麼認真
夜深人寂只留我 傷心的女人

Wednesday, August 11, 2010

Custom Exception

outFile = new File(path);
if(outFile.exists())
throw new Exception("File "+path+" already exists.");

Wednesday, November 4, 2009

Phoebus Play List

Tuesday, October 27, 2009

Include another bash script of functions

Add the following line to your bash script:
source functions.bash

Friday, June 5, 2009

Axis2 AxisFault Connection Refused in an Applet

Problem:
When running an applet from Eclipse to call an Axis2 web service, I got the following error:


org.apache.axis2.AxisFault: Connection refused: connect
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)

Solution:
In the applet, add the following code in the init() method where 8080 is my Tomcat port number:

public void init(){
System.setProperty("http.proxyPort", "8080");
}

When running an Applet, the port number is set to default 80.
According to the documentation from apache.org, when getting a Connection refused error, it is because "The host exists, nothing is listening for connections on that port. Alternatively, a firewall is blocking that port. Site Finder: the URL is using a port other than 80, and the .com or .net address is invalid"

Reference to http://ws.apache.org/axis/java/client-side-axis.html

Monday, June 1, 2009

Axis2 Service Archiver java.lang.NoClassDefFoundError

Problem:
When running the Axis2 Service Archiver, I got the following error: java.lang.NoClassDefFoundError



Solution:
1. Close Eclipse.
2. Open an explore window and navigate to your workspace. Under your workspace folder, open .metadata folder and then open .plugins folder, and then open the Axis2_Service_Archiver folder. Now you should see a file called "dialog_settings.xml", delete that file.
3. Restart Eclipse.

Looks like Eclipse cashed plugin related information in that xml file. If something is wrong in that xml file, you'll get this error.