2013年3月27日 星期三

Issue Tracking System

http://java-source.net/open-source/issue-trackers

http://en.wikipedia.org/wiki/Comparison_of_issue-tracking_systems

http://www.thegeekstuff.com/2010/08/bug-tracking-system/

2013年3月12日 星期二

Excel #VALUE

Excel若cell formula回傳#VALUE, 可用IFERROR代換回傳值, 以利後續計算

2013年3月11日 星期一

Tomcat7 & JConsole & JMX

不知道是不是因為Timcat7的關係, 網路上找到的設定都沒辦法成功
最後總結成功的設定(基本上參考http://www.haogongju.net/art/1762695)

1. download ​​catalina-jmx-remote.jar from http://tomcat.apache.org/download-70.cgi(address may change)
and save to $CATALINA_HOME/lib

2. Add Listener to server.xml, in my case


3. set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=[Host IP]

3.1 If use CATALINA_OPTS will cause Exception (java.io.FileNotFoundException: jmxremote.access) in my case.
3.2 -Djava.rmi.server.hostname=[Host IP] is essential if want to connect remotely.

4. Start Tomcat

5. Run jconsole Remote Process with :9081

It works!!



Windows & Telnet?

其實我的問題是發生在Windows7

官方的解答
http://support.microsoft.com/kb/982538/zh-tw

...

當我嘗試在 Windows 7 中使用 telnet 功能時,卻出現了錯誤訊息【’telnet’ 不是內部或外部命令、可執行的程式或批次檔】,爲什麽會發生這樣的問題呢?

其實 Window 7 作業系統預設並沒有安裝 Telnet 用戶端程式,所以只有手動新增安裝,就可以解決這個問題了。

...

控制台 >  程式集 >  開啟或關閉Windows功能 > 勾選"Telnet用戶端"


2013年2月23日 星期六

動態網頁開發(ZK+Spring+Hibernate+Scheduler+Flot)

因緣際會, 9年沒碰過網頁, 半年前又開始這方面的應用,有不少的心得, 技術的進展真的非常大, 不像寫系統韌體, 數年如一日, 只要有多工概念,會C和基本IO, 就可以上場了.

但在近十年,網頁的呈現以及開發的便利性和Desktop Application已經非常類似, 對應的技術更是五花八門, 需要挑選以及整合出自己要的應用框架

目前我選用的架構是用ZK+Spring+Hibernate+Scheduler+Flot, 目前看來應該沒什麼問題

Flot是用在Chart上面, 要多花一點功夫去整合零散的資源, 其它都算是Java標準的整合方式

若需要連網路芳鄰 or SMB, JCIFS是不錯的選擇, 可惜和Apache VFS整合只有檔案,不支援目錄, 不然我傾向用VFS, 這樣連FTP, WebDav都可以用同一介面, 建議可以參與VFS修改或是從VFS, JCIFS之上自己再包一層, 我傾向後者

整合Excel file當然是用Apache POI

[English]dare

http://www.iciba.com/dare

Usage Note :
You can leave out the word to after dare in the above sense. Nobody dared complain. The formdares is never used in a question or in a negative statement. You use dare instead. Dare she tell him?... He dare not enter .
dare 用於以上義項時,其後的to 可以省略:Nobody dared complain (沒有人敢抱怨)。在疑問句或否定句中,不可用dares, 而應用dare:Dare she tell him (她敢告訴他嗎),He dare not enter. (他不敢進去)。

2012年8月11日 星期六

[English]The Five Cents

閃點行動(Flashpoint) S04E09 00:40:54

Do I give you the five cents now?
我現在像是在對你說廢話嗎?

Supplement:
http://www.englishenhancer.com/2008/09/03/my-five-cents/
Both the phrases “My five cents” or “put in one’s two cents’ worth” are used when one wants to give one’s opinion on some topic.

[English]You wanna sit this next one out

閃點行動(Flashpoint) S04E06 00:42:04
You wanna sit this next one out....
你想跳過這個任務....

sit out
sit this one out
sit the next one out

2012年7月18日 星期三

林書豪發射火箭

中午就會知道結果, 我是覺得尼克放棄的機會非常大, 原因應該不是金額的問題, 而是團隊和諧的考量, 第三年破千萬其實無所謂, 豪華稅也沒關係, 都可以從其他地方賺回來, 但薪資比三巨頭其中的中鋒高, 這是大問題, 在哪個產業都一樣, 薪資決定能力和階級, 即使職業運動以運動能力和商業條件為考量, 但畢竟在團體合作上, 還是會有定位的價值和年資的考量, 特別是林書豪主打的位置是整合連貫團隊的戰線, 一旦隊友之間心有嫌隙, 想必很難形成一致的戰意, 當初火箭開價, 只要比三巨頭略低, 尼克留人就相對容易決定, 我是不知道是不是只有比錢德勒高一點, 但如果是, 想必火箭是考慮到這一點來做定價策略, 增加搶人大戰的成功機率.

2012年7月12日 星期四

如果你在做的不是你喜歡做的,別再做下去,若等到四十幾歲再來思考,就太晚了。


每日一句學管理 2012/07/12 電子報

如果你在做的不是你喜歡做的,別再做下去,若等到四十幾歲再來思考,就太晚了。
~諾貝爾化學獎得主戚凱羅(Aaron Ciechanover)


今天看到電子報, 基本上有資格討論這件事是有前提的, 首先必須是有能力做選擇, 這裡的能力指的是: 1. 已經沒有經濟壓力, 不需要為生活而工作或是喜歡做的內容附帶的所得能滿足生活條件; 2. 認識自己, 確認自己想做的是什麼.


第二點是最難的, 也是最重要的. 如果你在20歲之前就了解自己的天命所在, 而且有環境讓你展露你的天賦, 相信一切都不會有問題. 但現實狀況下, 絕大多數人渾渾噩噩, 相信這數量遠超過80%. 四十歲再來思考, 很多事情已經無可挽回, 甚至已經沒有體力腦力財力來考慮這些事情, 更不用說太多人從來不會去想生活的目的甚至生命的意義.


一般人的職涯規畫非常簡單, 不是穩定的工作就是賺大錢, 鮮少考慮是不是喜歡做的, 這一方面是社會價值觀, 另一方面是沒想過自己喜歡做什麼, 而且喜歡做什麼指的不是利益自己的想法, 而是要能對大眾有貢獻, 不然吃喝玩樂誰不喜歡.

我的想法是, 當你考慮你的生命只剩10年, 你打算做什麼, 只剩20年, 你打算做什麼, 這樣去倒推你的生涯規畫, 或許你會考慮犧牲生活品質, 去做一些真正想做的事. 不管你現在幾歲, 去想這些事情絕對不會太早也不會太晚, 而且計畫總是趕不上變化, 隨時檢討做調整, 這也是生命專案的一環.

2012年6月29日 星期五

[English]Rock and a hard place

GrimmS01E07

This is one of those "rock and a hard place" type things, isn't it?

http://en.wikipedia.org/wiki/Between_a_rock_and_a_hard_place
Between a rock and a hard place, a dilemma, more specifically a Morton's fork; a situation offering at least two possibilities, neither of which is acceptable

2012年6月25日 星期一

[God]Staying On Track

Charles Stanley(intouch.org)

2012-04-29 GoodTV
在正軌上行走
Staying On Track
1. 默想神的話
Meditating words of god.
2. 順服神, 並將一切結果交託給祂
Obey God and leave all the consequences to him.
3. 在各樣景況下順服神
Trust God in every circumstance.
4. 等候神的帶領
Wait upon the Lord for his direction.
5. 倚靠聖靈
Depend upon the holy spirit.
6. 神愛你是毫無條件
Remember God loves you unconditionally.
7. 慷慨給神
Giving to God generously.
8. 向你保證神完全掌管你的人生
Rest in the assurance that God is in absolute control of your life.
9. 定睛於終點站
Keep your eyes on your destination.




[English]cannot ~ too ~ (再怎麼...也不為過)

地球村文法(綠) P.47
One cannot put too much emphasis on one's health.
(我們再怎樣強調健康也不為過)
彭蒙惠英語 2012 JUNE P.35
... for whom open spaces can't be too wide.
(給空間寬廣也不嫌多的人)

[English]Bite the proverbial bullet

電影 加勒比海盜4

http://www.icrystalnotes.com/movies/440?page=14


  • Or you can just bite the proverbial bullet , as it were .
    proverbial [prəˈvɜːbiəl; NAmE -ˈvɜːrb-] adj. 谚语的,谚语式的,众所周知的;那东西,那玩意儿
  • 喻指咬紧牙关 忍受苦难的现实

2012年6月24日 星期日

[English]apostle, prophet, evangelist, pastor, teacher

Bible
[NIV]Ephesians 4:11
So Christ himself gave the apostles, the prophets, the evangelists, the pastors and the teachers,
[CNV/新譯本]以弗所書  4:11
他所賜的, 有作使徒的, 有作先知的, 有作傳福音的, 也有作牧養教導的,
[CUNP/和合本]以弗所書  4:11
他所賜的, 有使徒, 有先知, 有傳福音的, 有牧師教師,

金山詞霸(http://www.iciba.com)
(耶稣基督的)门徒,使徒 The apostles were the followers of Jesus Christ who went from place to place telling people about him and trying to persuade them to become Christians.
先知 A prophet is a person who is believed to be chosen by God to say the things that God wants to tell people.  
福音传教士;巡回布道者 An evangelist is a person who travels from place to place in order to try to convert people to Christianity.
(某些新教教会的)牧师 A pastor is a member of the Christian clergy in some Protestant churches. 
牧师;传道士 A preacher is a person, usually a member of the clergy, who preaches sermons as part of a church service. 
教师;老师;教员 A teacher is a person who teaches, usually as a job at a school or similar institution. 

2012年6月19日 星期二

[English]wind-winded vs wind-wound

查遍線上各大字典(或許還有遺漏), 始終沒有滿意的講法, 回去查N年前的文馨辭典, 解說很清楚, Longman感覺比Oxford要清楚,但不知為何沒標音標

基本上
和"風"有關的(動詞名詞都有), 就是wind /wɪnd/ winded winded
(http://www.ldoceonline.com/dictionary/wind_3)
(http://oald8.oxfordlearnersdictionaries.com/dictionary/wind_2)
和"彎曲纏繞"有關的(動詞名詞都有), 就是wind /waɪnd/ wound /waʊnd/ wound /waʊnd/ 

如果是吹(樂器), 吹(信號), 吹出(聲音)則以上兩種發音及時態都可以用
還有在詩裡, 風的名詞也會念成/waɪnd/
wound的發音和受傷的發音不一樣

2012年6月8日 星期五

[English] Recently and Lately

2012/06/08 from StudioClassroom Magazine

VIEWPOINTS

ENERGY DRINKS – GOOD OR BAD?

能量飲料究竟是好是壞?


...
A lot of people in our class have been drinking them recently.
...

Here we can modify to
A lot of people in our class have been drinking them lately.

When we talk about a single action or event, we should use "recently".
Donna was in the library recently.
"Lately" is used with continuous actions.
Donna has been coming to the library a lot lately.

Recently can referred to a single event or continuous event in a near past.
I haven't seen Donna recently.
I haven't seen Donna lately.

Notice
When you talk  about a single event that happened in a near past, you can only use recently.

2012年3月11日 星期日

Preview Office Document in PDF(with Security) or JPEG


1. Use OpenOffice(portable version) to export PDF with security
2. Use ImageMagick to convert PDF to JPEG

2012年2月8日 星期三

Computer Programming Bugs

承認自己孤陋寡聞, 但知道了就要學起來, 原來Bug是有學理上的分類的, Heisenbug和Bohrbug是最常遇到的, 定義請參照Wiki或去問Google, 還有其他的bug類型, 但我覺得廣義去分類, 應該這兩種就夠了, 甚至也不用什麼分類, 有Bug是必然的, 弄清楚系統和平台運作原理, 熟悉各種Debug技巧, 什麼類型的Bug都無所謂, 適時適地擬定對策去解決問題比較重要, 老是執著在分析問題, 卻提不出解決辦法也沒用, 能完整詳細的分析問題當然很好, 但不要忘了, 解決問題才是最終的目的, 在分析問題時, 要同時把對策一併設想, 這樣才會有效率

http://en.wikipedia.org/wiki/Heisenbug