發表文章

目前顯示的是 5月, 2008的文章

一路玩到掛

原本以為這個片名很芭樂,後來看到主演的是Jack Nicholson跟Morgan Freeman,我才想說來看看這部片。 雷 看完這部片,讓人想了很多。 你人生的目的是什麼? 片中Edward Cole一生只想著賺錢,沒有美好的婚姻,沒有好好的陪家人。 而Carter Chambers,為了養家活口,做了46年的黑手,沒有時間好好實踐自己的理想。兩人都發現得了癌症,剩下的時日不多,是想要全身插滿管子病焉焉的做化療,還是決定用剩下的日子,該自己的生命不留一絲遺憾? 如果是你,你會怎麼做? 看完這部片,我想了很多,到底人生的意義是什麼呢? ... 生、老、病、死... 片中Carter Chambers曾說過,1000人之中,會有96%的人不希望知道自己壽命還剩多久。我想,我也是這96%其中一個。

English time

圖片
there are three India students from IIT in our lab, and one Korea student from ISU(Iowa State University, not I-Shou University :P) in syslab. in order to welcome them, we have a B.B.Q at Jainshih in Hsinchu. the India students are really funny, and they are AWESOME! :D the group photo of the day. and the best photo of the day. lol

screen

圖片
今天要介紹的好用軟體是screen。 最近是趕程式的季節,很多人的桌面都是滿滿的putty。有時候會不會覺得開了一堆putty很煩。 而且一斷線,或是要換到別的電腦很不方便? 對了,那你就需要screen! screen是什麼?簡單說他就是可以幫你開了多分頁的連線管理程式。 除此之外,還可以幫你避免掉剛剛上述的麻煩。 怎麼安裝就不多說啦,問谷歌大神吧 XD 鄉民說:「有圖有真相。」 有沒有,下面那一列就是分頁,我開了兩個分頁。 酷吧。 --- 以下是指令 ( from http://tavi.debian.org.tw/index.php?page=screen ) 使用 screen 在命令列下打 screen 就會進入 screen 的天地: % screen 注意,所有 screen 的指令都是以 Ctrl 鍵加上 a 鍵開始的,在之後以 C-a 代表,C-a c 代表按住 Ctrl 鍵不放再按 a 鍵,然後放開按 c 鍵;而 C-a C-c 代表按住 Ctrl 鍵不放再按 a 鍵,然後放開後再按住 Ctrl 鍵不放按 c 鍵。 開啟,關閉,切換 C-a c 或 C-a C-c 開啟新的視窗,並同時切換到這個新的視窗 C-a n 或 C-a C-n 或 C-a (space) 切換到下一個視窗(0->1 1->2 ...) C-a p 或 C-a C-p 切換到上一個視窗(1->0 2->1 ...) C-a C-a 切換到上一個顯示過的視窗(不是照順序切換) C-a 0 切換到第 0 個視窗 C-a (1..9) 切換到第 (1..9) 個視窗 C-a w 或 C-a C-w 會列出目前所開啟的視窗 0$ tcsh 1$ tcsh 2*$ tcsh 3$ tcsh 有星號 "*" 的表示目前顯示中的視窗,之後的 tcsh 代表這個視窗的 title ,預設是以開啟時的 shell 名稱 C-a K 關閉所有的視窗並退出 screen C-a ' 或 C-a " 會出現 "Switch to window:" 字樣,輸入號碼後就可切到該視窗 單一視窗使用中的指令 C-a C 清除目前的視窗內容 C-a d 或 C-a C-d 脫離(detach)目前的 screen ,並放到背景

hmm...

the same scene but with the different mood... i love the wind of my hometown. :)

SSH login 爆慢...

http://www.openssh.org/faq.html 3.3 - ssh(1) takes a long time to connect or log in Large delays (more that 10 seconds) are typically caused a problem with name resolution: * Some versions of glibc (notably glibc 2.1 shipped with Red Hat 6.1) can take a long time to resolve "IPv6 or IPv4" addresses from domain names. This can be worked around with by specifying AddressFamily inet option in ssh_config. * There may be a DNS lookup problem, either at the client or server. You can use the nslookup command to check this on both client and server by looking up the other end's name and IP address. In addition, on the server look up the name returned by the client's IP-name lookup. You can disable most of the server-side lookups by setting UseDNS no in sshd_config. 解決的方法是將/etc/ssh/sshd_config裡的 UseDNS 改成 no。 然後再將sshd restart,你就會發現login快到爆炸。

日文漢字轉平/片假名

圖片
來看圖說故事吧! Step. 1 Step. 2 Step. 3 Step. 4 搞定收工。