May 2007 Archives

2007-05-27 17:42:36

騎車到Skidaway Island State Park

與騎車到Tybee相比,這是一件輕鬆的事情。沿路上的腳踏車道佔有一半以上的路程。而且,後半段的路肩上速限較低,騎來不會提心吊膽啊。

Posted by Wesly Chu | Permanent Link | Categories: Life

2007-05-25 01:24:00

Shell script for rotating display under Ubuntu Linux

I wrote a small script for change the orientation of my Fujitsu T4020 under Ubuntu. The script only works in Ubuntu but not Fedora Core because Fedora uses older version wacom tool by default.
#!/bin/bash
# Rotate orientation of display for a tablet pc.
# Yi-Ming Chu
RSTATUS=$(xrandr -q|grep "Current rotation")
if [ "$RSTATUS" == "Current rotation - normal" ]; then
	xrandr -o right
	xsetwacom set stylus Rotate cw
elif [ "$RSTATUS" == "Current rotation - right" ]; then
	xrandr -o normal
	xsetwacom set stylus Rotate none
else
	echo "Somthing wrong! Are you using a tablet pc?"
fi

However, I re-installed this tablet pc with Windows XP Tablet PC edition later. The tablet keys are still not functional. :-(

Posted by Wesly Chu | Permanent Link | Categories: Linux Script Note

2007-05-23 17:46:23

騎車到Tybee

幾天前試著騎自行車去了一趟Tybee Island,不過沒有到海邊就決定掉頭回Savannah。由於是一時衝動,我連前輪煞車失靈都暫時不想管就上路了。一路上幾乎都是在沒有腳踏車道的狀況下前進,徹底體會到這個國家實在完全以汽車為考量的交通路線設計。撇開因為太久沒騎長程而導致大腿抽筋的狀況,會讓我掉頭的原因是這邊汽車車速實在太快,而路肩幾乎沒有可騎自行車的空間。加上為了方便汽車拋錨減速而做的設計,馬路邊根本都是減速用的水平坑洞。有自行車道的路段只有一小段,其他部份都是提心吊膽,我連想走小路的機會都沒有。
這次大概騎了20哩左右,花費時間約5小時。在市區時,一般的車速就算挺快的,一離開市區,速限多半是55哩以上。加上一般人都喜歡開大車,腳踏車實在處處受壓迫。之前在台灣騎自行車都沒有這種感覺。

Posted by Wesly Chu | Permanent Link | Categories: Life

2007-05-16 23:39:18

使用putty顯示zh_TW.UTF-8的設定

當使用putty連線到Linux主機時,如果主機使用的環境是zh_TW.UTF-8,作以下設定:
在putty設定裡選Windows->Translation設定Character set translation為UTF-8.同時選擇使用中文字型.

Posted by Wesly Chu | Permanent Link | Categories: Linux Note