blogspot.com-GA4

星期六, 9月 28, 2013

設定 eclipse console log file location

把eclipse 的console 內容輸出到檔案

1. 先點選設定
Go to run as and choose Run Configurations -> Common and in the Standard Input and Output you can choose a File also.

 

2. 把設定內容點開之後輸入要輸出的路徑和檔名就行了
[Console output redirected to file:D:\TTS\workspace\tts_log\eclipse_kenli.log




真的非常的簡單設定

星期四, 7月 25, 2013

《Java 開發者的函數式程式設計》(Functional Programming for Java Developers)

這幾天網路上看到的
以前就看到過這本書,但是一直很可惜沒有買到
不過現在看到JAVA的名人有寫了一些文章
就先記下來摟!!

Functional Programming for Java Developers, Part1 - A Preliminary Study
http://openhome.cc/eGossip/Blog/FunctionalProgrammingforJavaDevelopers1.html

Java 開發者的函數式程式設計(1)初探函數式程式設計
Java 開發者的函數式程式設計(2)代數資料型態
Java 開發者的函數式程式設計(3)List 處理模式 

星期四, 7月 11, 2013

MAVEN 建立WEB PROJECT


我用的STS3.2 版本建立的方式

1. 選擇取MAVEN PROJECT
 

2. 建立時,需要選則 create a simple project
 

3. 這邊就很重要了,要選擇war



4. 到這邊基本Project就已建立完成


5. 調整專案目錄,移除調 target/m2e-wtp/web-resoures 目錄



6. 最後目錄大概像這樣
 

7. 最後大概就是要在 src/main/webapp/WEB-INF 下面建立 web.xml 檔案了

以上大概是最簡單的設定方式



星期日, 4月 14, 2013

4個程序員的笑話故事


問路
有一個駕駛熱氣球的人發現他迷路了。他降低了飛行的高度,並認出了地面上的一個人。
他繼續下降高度並對著那個人大叫,「打擾一下,你能告訴我我在哪嗎?」
下面那個人說:「是的。你在熱氣球裡啊,盤旋在30英尺的空中」
熱氣球上的人說:「你一定是在IT部門做技術工作」
地面上的人說到,「沒錯,你是怎麼知道的?」
熱氣球上的人說,「呵呵,你告訴我的每件事在技術上都是對的,但對都沒有用」
地面上的人說,「你一定是管理層的人」
熱氣球上的人說,「沒錯,可是你是怎麼知道的?」
地面上的那人說到,「呵呵,你不知道你在哪裡,你也不知道你要去哪,你總希望我能幫你。你現在和我們剛見面時還在原來那個地方,但現在卻是我錯了」

自行車
一個程序員騎著一個很漂亮的自行車到了公司,另一個程序員看到了他,問到,「你是從哪搞到的這麼漂亮的車的?」
騎車的那個程序員說,「我剛從那邊過來,有一個漂亮的姑娘騎著這個車過來,並停在我跟前,把衣服全脫了,然後對我說,『你想要什麼都可以』」。
另一個程序員馬上說到,「你絕對做了一個正確的選擇,因為那姑娘的衣服你並不一定穿得了」。

警告
有一個小伙子在一個辦公大樓的門口抽著煙,一個婦女路過他身邊,並對他說,「你知道不知道這個東西會危害你的健康?我是說,你有沒有注意到香煙盒上的那個警告(Warning)?」
小伙子說,「沒事兒,我是一個程序員」。
那婦女說,「這又怎樣?」
程序員說,「我們從來不關心Warning,只關心Error」

火車
一個年輕的程序員和一個項目經理登上了一列在山裡行駛的火車,
他們發現列車上幾乎都坐滿了,只有兩個在一起的空位,這個空位的對面是一個老奶奶和一個年輕漂亮的姑娘。
兩個上前坐了下來。程序員和那個姑娘他們比較曖昧地相互看對方。這時,火車進入山洞,車廂裡一片漆黑。

此時,只聽見一個親嘴的聲音,隨後就聽 到一個響亮的巴掌聲。
很快火車出了山洞,他們四個人都不說話。
那個老奶奶在喃喃道,「這個年輕小伙怎麼這麼無禮,不過我很高興我的孫女扇了一個巴掌」。
項目經理在想,「沒想到這個程序員居然這麼大膽,敢去親那姑娘,只可惜那姑娘打錯了人,居然給打了我。」
漂亮的姑娘想,「他親了我真好,希望我的祖母沒有打疼他」。
程序員坐在那裡露出了笑容,「生活真好啊。這一輩子能有幾次機會可以在親一個美女的同時打項目經理一巴掌啊」

星期一, 3月 18, 2013

Toast Master C1 - Ice Breaker

前陣子參加了公司的 Toast Master, 上個月開始了第一次的演講, 然後就把我的第一次講稿放上來拉, 不過有建議我需要多講一些興趣以及喜好 很感謝大家!! 至少我踏出第一步摟!! 

Toaster master of evening, welcome guest and follow members.
Today is my pleasure to be the speaker tonight. I will tell everyone a small story.
This story began in a small town. It’s a far away behind the mountain that place call “後山” in Taiwanese.
It is a very beautiful place in Taiwan.
You can see many flowers around anywhere and feel the comfortable wind.
You also can see some small animals jump from a tree to another tree and find eagles fly in the sky.
When the sundown, you can see very red sun slowly disappeared behind the mountain.
So, in this good place, my parents have seven children include me.

 When My mother was pregnant with me, my old sister just married.
My sister’s husband was very nervous. ”What’s her mother pregnant?”
Next year, my sister was pregnant, too.
Before I was 6 years old, I didn’t know I have how many sisters and brothers.
But I knew I got many toys in every year.
In my memory, I had a pink panther.

Sometimes my sister took her sons home, so we always played together.
I remembered I did a very terrible thing. I burn with matches.
I feel them so interesting thing that it can burn anything.
My nephew and I hid in the small warehouse.
There had my mother something ,that can be make brooms.
First, it’s so interesting.
We set fire with some ofthat my mother would be make brooms.
The best terrible was happened.
The fire was burning too fast.
We can’t stop it. The part of warehouse was on fire.
Lucky, my elder sister was in the house.
Since that day, if my elder sister and my mother heard “fire”, they would be angry very fast.
Because the age of my nephew and mine are very close, most people recognized us incorrectly.
We not only played together, but also studied in the same school till senior high school.
So they never call me “uncle”, they always call my name, Ken, directly.
But I never mind at all. I think it means we really have deep and good relationship.

I lived more than fifteen years in Taichung.
When I was child, my parents wanted me to have better educational environment.
They sent me to Taichung.
When I graduated from school, I stayed in Taichung.
I found a job and I started to worked some That time I can’t find what I can to do.
I made a decision. I took a half year to accept computer course.
I started to work in computer about six years.
Until three years ago in 2009, I wanted to change a different job.
So I came to Taipei. Finally, I think Hualien is the most beautiful place in Taiwan, and people there are very friendly.
If you have a plan to have a baby, welcome travel to Hualien.