<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9233544</id><updated>2012-01-02T13:53:23.527+08:00</updated><category term='arm'/><category term='rtsp'/><category term='lenny'/><category term='upnp'/><category term='applet'/><category term='dvd'/><category term='lirc'/><category term='u-boot'/><category term='chrome'/><category term='firefox'/><category term='iceweasel'/><category term='audio'/><category term='gbk'/><category term='timer'/><category term='ati'/><category term='tips'/><category term='player'/><category term='alsa'/><category term='endpoint'/><category term='vim'/><category term='eclipse'/><category term='redirect'/><category term='中文'/><category term='countdown'/><category term='LED'/><category term='crontab'/><category term='backup'/><category term='patch'/><category term='virtualbox'/><category term='java'/><category term='bridge'/><category term='diff'/><category term='wireshark'/><category term='chroot'/><category term='mediaserver'/><category term='vlc'/><category term='doc'/><category term='editor'/><category term='trac'/><category term='initrd'/><category term='desktop'/><category term='crosscompile'/><category term='mtu'/><category term='parameter'/><category term='network'/><category term='pkg-config'/><category term='編碼'/><category term='error'/><category term='subversion'/><category term='porting'/><category term='svn'/><category term='正規表示式'/><category term='uart'/><category term='bootloader'/><category term='javascript'/><category term='initramfs'/><category term='mirror'/><category term='iso'/><category term='environment'/><category term='wine'/><category term='freshman'/><category term='點陣字'/><category term='gb2312'/><category term='mplayer'/><category term='stopwatch'/><category term='gnome'/><category term='LLD3'/><category term='greenlife'/><category term='python'/><category term='shell'/><category term='tee'/><category term='ati2dvag'/><category term='electronic'/><category term='debian'/><category term='windows'/><category term='squeeze'/><category term='hddtemp'/><category term='Android'/><category term='learning'/><category term='apache'/><category term='driver'/><category term='linux'/><category term='debug'/><category term='embedded'/><category term='variable'/><category term='gb18030'/><category term='english'/><category term='usb'/><category term='mediatomb'/><category term='update-alternatives'/><category term='howto'/><category term='programming'/><category term='stream'/><category term='route'/><category term='font'/><category term='vnc'/><category term='DDR'/><category term='life'/><category term='sudo'/><category term='kernel'/><category term='icon'/><category term='swap'/><category term='gcc'/><category term='career'/><category term='IR'/><category term='bitmap'/><title type='text'>Richman 的雜記</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default?start-index=101&amp;max-results=100'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>201</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9233544.post-3301665095548182417</id><published>2012-01-02T13:53:00.000+08:00</published><updated>2012-01-02T13:53:23.537+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='uart'/><title type='text'>testing UART ports</title><summary type='text'>In one shell:

cat &gt; /dev/ttyS0 type some characters here. Newlines may be required to flush buffers. Ctrl-D to close.

In another shell:cat /dev/ttyS1
You may want to configure the ports using setserial if it is available.</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3301665095548182417/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3301665095548182417' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3301665095548182417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3301665095548182417'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2012/01/testing-uart-ports.html' title='testing UART ports'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5559884293077404709</id><published>2011-11-24T17:53:00.000+08:00</published><updated>2011-11-24T17:53:00.557+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='squeeze'/><category scheme='http://www.blogger.com/atom/ns#' term='lirc'/><title type='text'>compile lirc-modules on squeeze failed</title><summary type='text'>scripts/Makefile.build:44: /usr/src/linux-headers-2.6.32-5-common/scripts/basic/Makefile: No such file or directory
解決方法
sudo apt-get source linux-kbuild-2.6

/usr/src/modules/lirc-modules/lirc_i2c.c:399: error: unknown field ‘id’ specified in initializer
解決方法
sudo dpkg-reconfigure lirc-modules-source
將 i2c 拿掉
或是修改 lirc_i2c.c
a/drivers/lirc_i2c/lirc_i2c.c
+++ b/drivers/lirc_i2c/lirc_i2c.c
@@ -</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5559884293077404709/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5559884293077404709' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5559884293077404709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5559884293077404709'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/11/compile-lirc-modules-on-squeeze-failed.html' title='compile lirc-modules on squeeze failed'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3200385089909217118</id><published>2011-10-30T00:17:00.000+08:00</published><updated>2011-10-30T00:17:08.052+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='icon'/><category scheme='http://www.blogger.com/atom/ns#' term='chrome'/><title type='text'>find the icon of google chrome in Debian</title><summary type='text'>After install google chrome from google dl.

I can't find the icon of google chrome.

Then I found this
http://forums.debian.net/viewtopic.php?f=6&amp;t=53346#p386886

Just copy a file.
$ sudo cp /opt/google/chrome/google-chrome.desktop /usr/share/applications/
Then the icon appear.</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3200385089909217118/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3200385089909217118' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3200385089909217118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3200385089909217118'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/10/find-icon-of-google-chrome-in-debian.html' title='find the icon of google chrome in Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6190925166528512535</id><published>2011-10-25T03:24:00.001+08:00</published><updated>2011-10-30T00:13:00.581+08:00</updated><title type='text'>New mini-ITX PC</title><summary type='text'>終於將老婆新電腦的零件都買齊了。

CPU : INTEL i3-2125
MB : GA-H61N-USB3
RAM : A-DATA 4GB DDR3-1333
HDD : Hitachi 2.5 SATA2 500GB 16M 7200RPM HTS727550A9E364
CASE : SEED TWINSYS Main Module + 薄型 DVD 燒錄器 SATA
KB : Microsft Comfort Curve Keyboard 2000

小小機殼整線真是累人，弄了一個半小時才裝好。

快樂地把 XP 光碟放進去安裝，沒想到居然跳藍白畫面，代碼是 0x0000007b 。

查到這個廢物，（微軟果然還是只有鍵盤能讓我滿意啊...)
http://support.microsoft.com/kb/324103/zh-tw

反覆試了幾個小時，這期間讓我了解到，</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6190925166528512535/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6190925166528512535' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6190925166528512535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6190925166528512535'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/10/new-mini-itx-pc.html' title='New mini-ITX PC'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1761668846288974440</id><published>2011-10-19T13:48:00.000+08:00</published><updated>2011-10-19T13:48:38.775+08:00</updated><title type='text'>ttyUSB0 removed by brltty</title><summary type='text'>
I have an usb-to-uart device with FTDI chip.  After plug in, the dmesg show below message:

[ 5564.288020] usb 3-2: new full speed USB device using uhci_hcd and address 4[ 5564.484151] usb 3-2: New USB device found, idVendor=0403, idProduct=6001[ 5564.484155] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 5564.484159] usb 3-2: Product: FT232R USB UART[ 5564.484161] usb 3-2: </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1761668846288974440/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1761668846288974440' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1761668846288974440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1761668846288974440'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/10/ttyusb0-removed-by-brltty.html' title='ttyUSB0 removed by brltty'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4888775280088194480</id><published>2011-09-12T00:51:00.001+08:00</published><updated>2011-09-12T00:51:53.972+08:00</updated><title type='text'>測試網路速度的網站</title><summary type='text'>http://speedtest.net/</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4888775280088194480/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4888775280088194480' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4888775280088194480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4888775280088194480'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/09/blog-post.html' title='測試網路速度的網站'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5350985805465017575</id><published>2011-09-11T01:00:00.000+08:00</published><updated>2011-09-11T01:00:33.796+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LED'/><category scheme='http://www.blogger.com/atom/ns#' term='electronic'/><category scheme='http://www.blogger.com/atom/ns#' term='IR'/><title type='text'>不同波長紅外線 LED 的應用</title><summary type='text'>摘自：LEDinside
http://www.ledinside.com.tw/ir_led_200807

根據紅外LED晶片的特性，依據不同波長可以得到更廣泛的應用，例如：

1.波長：940nm，適用於遙控器，例如家用電器的遙控器；
2.波長：808nm，適用於醫療器具，空間光通信，紅外照明，固體雷射器的泵浦源
3.波長：830nm，適用於高速路的自動刷卡系統（夜視系統最好，可以看到管芯上有一點紅光，效果比850nm要好）
4.波長：840nm，適用於攝像機 彩色變倍紅外防水
5.波長：850nm，適用於攝像頭（視頻拍攝） 數位攝影，監控，樓寓對講，防盜報警，紅外防水
6.波長：870nm，適用於商場，十字路口的攝像頭</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5350985805465017575/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5350985805465017575' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5350985805465017575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5350985805465017575'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/09/led.html' title='不同波長紅外線 LED 的應用'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4060615827006850204</id><published>2011-07-28T16:37:00.000+08:00</published><updated>2011-07-28T16:37:58.157+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>Using arrow keys in vim-tiny while in insert mode</title><summary type='text'>Reference from:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/491615/comments/4

debian 預設是安裝 vim-tiny 來提供 vi。
當在插入模式裡按方向鍵來移動時，會出現 A B C D 字元，卻不會移動。
這是因為 vim-tiny 預設執行在 'compatible' 模式。
將之設為 'nocompatible' 模式即可以方向鍵來移動。

:set nocompatible
也可以設定在 ~/.vimrc
set nocompatible</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4060615827006850204/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4060615827006850204' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4060615827006850204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4060615827006850204'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/07/using-arrow-keys-in-vim-tiny-while-in.html' title='Using arrow keys in vim-tiny while in insert mode'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4719744143784091511</id><published>2011-07-27T18:06:00.000+08:00</published><updated>2011-07-27T18:06:51.320+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stream'/><category scheme='http://www.blogger.com/atom/ns#' term='vlc'/><category scheme='http://www.blogger.com/atom/ns#' term='rtsp'/><title type='text'>How to save a stream with VLC</title><summary type='text'>Reference from:
http://www.videolan.org/doc/streaming-howto/en/ch06.html

Receive a RTP stream through RTSP and save it as file and stop automatically in 15s.
$ vlc rtsp://rtsp.server/stream.sdp --stop-time=15 --sout file/ps:stream.mpg</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4719744143784091511/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4719744143784091511' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4719744143784091511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4719744143784091511'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/07/how-to-save-stream-with-vlc.html' title='How to save a stream with VLC'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4809690919672960331</id><published>2011-07-27T11:34:00.000+08:00</published><updated>2011-07-27T11:34:43.551+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><category scheme='http://www.blogger.com/atom/ns#' term='crontab'/><title type='text'>add a job to crontab with shell script</title><summary type='text'>reference from:
http://ubuntuforums.org/showpost.php?p=3822718&amp;postcount=6

Correct:
sudo sh -c "echo $min $hr \* \* \* root /home/$USER/Cron/some_file.sh &gt;&gt; /etc/crontab"
Wrong:
sudo sh -c echo "$min $hr * * * root /home/$USER/Cron/some_file.sh" &gt;&gt; /etc/crontab</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4809690919672960331/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4809690919672960331' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4809690919672960331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4809690919672960331'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/07/add-job-to-crontab-with-shell-script.html' title='add a job to crontab with shell script'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-991148840047800787</id><published>2011-07-20T23:54:00.001+08:00</published><updated>2011-07-20T23:54:20.592+08:00</updated><title type='text'>install adobe flash player on debian</title><summary type='text'>sudo aptitude install flashplugin-nonfree</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/991148840047800787/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=991148840047800787' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/991148840047800787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/991148840047800787'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/07/install-adobe-flash-player-on-debian.html' title='install adobe flash player on debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-9041087854906117025</id><published>2011-06-24T17:33:00.000+08:00</published><updated>2011-06-24T17:33:32.993+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='variable'/><category scheme='http://www.blogger.com/atom/ns#' term='environment'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Setting apache environment</title><summary type='text'>在 /etc/apache2/envvars 裡可以設定 apache 的環境變數，例如 PATH。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/9041087854906117025/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=9041087854906117025' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/9041087854906117025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/9041087854906117025'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/06/setting-apache-environment.html' title='Setting apache environment'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5826044008512762646</id><published>2011-06-22T17:02:00.000+08:00</published><updated>2011-06-22T17:02:45.497+08:00</updated><title type='text'>Compile fw_printenv</title><summary type='text'>fw_printenv 是 u-boot 裡提供的工具，可以用來讀存在 u-boot env 裡的資料。

只要在 u-boot 的源碼根路徑下
make env
即可

但一直編不出來，卡在
fw_env.c:34:27: error: linux/mtd/mtd.h: No such file or directory
最後找到這篇http://mybookworld.wikidot.com/how-to-change-your-mbwe-bluering-mac-address裡面的 Troubleshooting 提到可能是 linux 套件太舊的緣故，但我想應該是 toolchain 太舊吧！解決方法如下：# ln -s /usr/include/mtd /usr/include/linux/mtd
# ln -s /usr/include/linux/mtd/</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5826044008512762646/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5826044008512762646' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5826044008512762646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5826044008512762646'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/06/compile-fwprintenv.html' title='Compile fw_printenv'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3608950743589538927</id><published>2011-05-31T11:11:00.000+08:00</published><updated>2011-05-31T11:11:18.915+08:00</updated><title type='text'>Check serial port parameter</title><summary type='text'>stty &lt; /dev/ttyS0或
stty &lt; /dev/ttyUSB0</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3608950743589538927/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3608950743589538927' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3608950743589538927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3608950743589538927'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/05/check-serial-port-parameter.html' title='Check serial port parameter'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-608278829503291262</id><published>2011-04-19T19:57:00.000+08:00</published><updated>2011-04-19T19:57:53.197+08:00</updated><title type='text'>Check ethernet link status</title><summary type='text'>cat /sys/class/net/eth0/carrier
0 means link down, 1 means link up</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/608278829503291262/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=608278829503291262' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/608278829503291262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/608278829503291262'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/04/check-ethernet-link-status.html' title='Check ethernet link status'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7907583624483618217</id><published>2011-04-18T14:17:00.002+08:00</published><updated>2011-04-18T14:17:49.956+08:00</updated><title type='text'>Setup COM1 on XP guest</title><summary type='text'>Assuming that you called the serial port COM1 in the VBox setup and that you also selected Host device. (This is what it needs to be by the way)You then start the guest (XP)Windows will not see this and there is no way that you can make it see this port as plug-n-Play but you can make it work.1. Go to control panel (select classic view) and double click new hardware.2. Click next to start the </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7907583624483618217/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7907583624483618217' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7907583624483618217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7907583624483618217'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/04/setup-com1-on-xp-guest.html' title='Setup COM1 on XP guest'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8939008512252526964</id><published>2011-02-24T13:44:00.000+08:00</published><updated>2011-02-24T13:44:59.053+08:00</updated><title type='text'>Rename SVN URL</title><summary type='text'>將 SVN repository 裡的某個資料夾改名，例如:

svn://svn.server/path/a改為
svn://svn.server/path/b
可以在 work copy 裡做
svn switch svn://svn.server/path/b .
表示將目前 work copy 裡的 URL 改為 svn://svn.server/path/b</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8939008512252526964/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8939008512252526964' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8939008512252526964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8939008512252526964'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/02/rename-svn-url.html' title='Rename SVN URL'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4564022212742738767</id><published>2011-02-02T02:30:00.002+08:00</published><updated>2011-02-02T02:30:26.975+08:00</updated><title type='text'>CHT VDSL CPE device default username/password</title><summary type='text'>
CHT VDSL CPE device default username/password* 北部 帳號 cht 密碼 chtnvdsl
* 中部 帳號 cht 密碼 chtcvdsl
* 南部 帳號 cht 密碼 chtsvdsl</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4564022212742738767/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4564022212742738767' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4564022212742738767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4564022212742738767'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2011/02/cht-vdsl-cpe-device-default.html' title='CHT VDSL CPE device default username/password'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4264577207738476059</id><published>2010-12-21T11:42:00.000+08:00</published><updated>2010-12-21T11:42:00.959+08:00</updated><title type='text'>Using RADIUS to authenticate ssh users</title><summary type='text'>Install the PAM RADIUS authentication module
$ sudo aptitude install libpam-radius-auth

Setup RADIUS server infomation
$ vi /etc/pam_radius_auth.conf
#server[:port]    shared_secret    timeout
Server_IP    SHARED_SECRET    3

Setup PAM
$ vi /etc/pam.d/common-auth

##### RADIUS ######
auth    sufficient          pam_radius_auth.so debug
account required            pam_radius_auth.so
session </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4264577207738476059/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4264577207738476059' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4264577207738476059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4264577207738476059'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/12/using-radius-to-authenticate-ssh-users.html' title='Using RADIUS to authenticate ssh users'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5711620565867367472</id><published>2010-11-16T13:24:00.000+08:00</published><updated>2010-11-16T13:24:33.655+08:00</updated><title type='text'>mount windows shared folder in linux</title><summary type='text'>From:
http://lifehacker.com/288033/mount-a-windows-shared-folder-in-linux

First, use smbclient to browser the windows host for the share list
$ smbclient -Lx.x.x.x -Uusername%password

Alt+F2
smb://x.x.x.x/sharefolder</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5711620565867367472/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5711620565867367472' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5711620565867367472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5711620565867367472'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/11/mount-windows-shared-folder-in-linux.html' title='mount windows shared folder in linux'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6470927504876100837</id><published>2010-11-03T16:15:00.000+08:00</published><updated>2010-11-03T16:15:05.805+08:00</updated><title type='text'>看感冒，醫師處方開藥 一網打盡-普拿疼、止咳化痰、流鼻水、抗過敏、類固醇、抗生素、胃藥、綜合維他命等 一次到位</title><summary type='text'>看感冒，醫師處方開藥 一網打盡-普拿疼、止咳化痰、流鼻水、抗過敏、類固醇、抗生素、胃藥、綜合維他命等 一次到位
2010/06/18 14:44:59　瀏覽210｜回應0｜推薦4

原文出處：
http://blog.udn.com/jeankuo0724/4141163

劉醫師啜飲一口咖啡香，跟學長約在國父紀念館旁的伯諾餐坊，還算挺喜歡的，想了想剛剛傳授的「類固醇」妙用；那醫界老是提什麼醫學倫理，還真是用來亂的；因為有道德良知的大多出局了。

「學長，請教你關於感冒的處方用藥，你會以一網打盡的方式，把解熱陣痛、止咳、流鼻水的藥一次開齊，還是依著病程的進展，先跟病患施以感冒的衛教，強調感冒會好主要是自身免疫力的運作，然後配合著患者的病情描述，再以藥物作適當的症狀緩解呢？」

「一般醫師都知道，治療感冒最好的方式，不外乎多喝開水、多休息，讓身體的免疫系統處於正常、積極的運作狀態，</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6470927504876100837/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6470927504876100837' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6470927504876100837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6470927504876100837'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/11/blog-post.html' title='看感冒，醫師處方開藥 一網打盡-普拿疼、止咳化痰、流鼻水、抗過敏、類固醇、抗生素、胃藥、綜合維他命等 一次到位'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1417737661959146244</id><published>2010-11-03T14:32:00.001+08:00</published><updated>2010-11-12T22:22:33.215+08:00</updated><title type='text'>How to create a ssh tunnel with PuTTY</title><summary type='text'>


Download PuTTY
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.60-installer.exe


Install PuTTY


Execute PuTTYgen
-&gt; Generate -&gt; Save private key -&gt; c:\mykey.ppk


Copy the content in "Public key for pasting into OpenSSH authorized_keys file:"


Close PuTTYgen


Login to OpenSSH server with username/password


Open ~/.ssh/</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1417737661959146244/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1417737661959146244' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1417737661959146244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1417737661959146244'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/11/how-to-create-ssh-tunnel-with-putty.html' title='How to create a ssh tunnel with PuTTY'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3411472654744693075</id><published>2010-11-03T12:12:00.000+08:00</published><updated>2010-11-03T12:12:13.199+08:00</updated><title type='text'>vim - nerd-commenter</title><summary type='text'>方便我們在 vim 中做 comment / uncomment 的動作

</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3411472654744693075/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3411472654744693075' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3411472654744693075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3411472654744693075'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/11/vim-nerd-commenter.html' title='vim - nerd-commenter'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7572513795654279415</id><published>2010-11-02T15:13:00.000+08:00</published><updated>2010-11-02T15:13:15.494+08:00</updated><title type='text'>VirtualBox network interface not found</title><summary type='text'>在使用 VBoxManage clonehd &lt;source.vdi&gt; &lt;dest.vdi&gt; 來佈署多台 VM 時，碰到網路卡消失方面的問題。

在第一台 VM 上設定了兩片網卡，Host-Only(僅限主機介面) 及 NAT。
Host-Only 是用來讓 guest 互通用的。NAT 是要讓 guest 可以連外用的。

vm1 裝好 Debian 後，只能看到 eth1 及 lo，此時還未查覺到問題，因為可以連外。

使用 VBoxManage clonehd 將 vm1 的虛擬硬碟複製一份為 vm2，如下：
VBoxManage clonehd vm1.vdi vm2.vdi

新增 vm2 ，其網路介面配置同 vm1，硬碟指定 vm2.vdi。
開機後，網路介面只能看到 lo。這時才看到有問題。

在 vm2 查看
ifconfig eth0
顯示
eth0: error </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7572513795654279415/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7572513795654279415' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7572513795654279415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7572513795654279415'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/11/virtualbox-network-interface-not-found.html' title='VirtualBox network interface not found'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-238009668980354753</id><published>2010-10-28T11:38:00.001+08:00</published><updated>2010-10-28T11:40:06.679+08:00</updated><title type='text'>USB flash drive fail to automount in Debian</title><summary type='text'>When I plugin the usb flash drive, it pop up the message like below:

Error mounting: mount exited with exit code 1: helper failed with:mount: wrong fs type, bad option, bad superblock on /dev/sdf1,       missing codepage or helper program, or other error       In some cases useful info is found in syslog - try       dmesg | tail  or so
Then I check out dmesg | tail
[x.x] sd 9:0:0:0: [sdf] </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/238009668980354753/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=238009668980354753' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/238009668980354753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/238009668980354753'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/usb-flash-drive-fail-to-automount-in.html' title='USB flash drive fail to automount in Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7430606106317445776</id><published>2010-10-21T11:33:00.000+08:00</published><updated>2010-10-21T11:33:16.495+08:00</updated><title type='text'>vim with cscope</title><summary type='text'>$ sudo aptitude install cscope
$ cd ~/.vim/plugin
$ wget http://cscope.sourceforge.net/cscope_maps.vim

Usage:
$ cd source_dir
$ cscope -Rb
$ vim main.c
ctrl + ] , jump to
ctrl + t , jump back</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7430606106317445776/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7430606106317445776' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7430606106317445776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7430606106317445776'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/vim-with-cscope.html' title='vim with cscope'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6198269261864540459</id><published>2010-10-19T16:19:00.002+08:00</published><updated>2010-10-19T16:38:00.968+08:00</updated><title type='text'>Connect a windows network printer on Debian</title><summary type='text'>在 Debian 連接 windows 網路印表機打開瀏覽器，到 localhost:631進入 Adding Printers and ClassesAdd PrinterOther Network Printers: Windows Printer via SAMBA (Continue)Connection: smb://PrinterServerIPAddress (Continue)Name: Give a name to printer (Continue)Make: select at the Manufactor of printer (Continue)Model: select at the Model of Printer (Add Printer)(Set Default Options)列印測試頁！收工！！</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6198269261864540459/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6198269261864540459' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6198269261864540459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6198269261864540459'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/connect-windows-network-printer-on.html' title='Connect a windows network printer on Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1734508757183363374</id><published>2010-10-14T23:02:00.002+08:00</published><updated>2010-10-14T23:08:07.898+08:00</updated><title type='text'>snipMate : TextMate-style snippets for Vim</title><summary type='text'>http://www.vim.org/scripts/script.php?script_id=2540Download:http://www.vim.org/scripts/download_script.php?src_id=11006Install:unzip snipMate.zip -d ~/.vim</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1734508757183363374/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1734508757183363374' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1734508757183363374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1734508757183363374'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/snipmate-textmate-style-snippets-for.html' title='snipMate : TextMate-style snippets for Vim'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4292183457214778676</id><published>2010-10-13T01:34:00.001+08:00</published><updated>2010-10-13T01:35:43.307+08:00</updated><title type='text'>mount hdd by uuid</title><summary type='text'>$ sudo blkid$ sudo vi /etc/fstabUUID=ceeb3ecd-1993-4fde-a290-f69796def339   /media/sg250g   ext4    user    0   0$ sudo mkdir /media/sg250g$ sudo chown user.group /media/sg250g$ sudo chmod 700 /media/sg250g$ mount /media/sg250g</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4292183457214778676/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4292183457214778676' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4292183457214778676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4292183457214778676'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/mount-hdd-by-uuid.html' title='mount hdd by uuid'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1279963721102848653</id><published>2010-10-10T21:38:00.000+08:00</published><updated>2010-10-10T21:39:01.015+08:00</updated><title type='text'>Serif vs Sans-serif</title><summary type='text'>serif == 襯線 == 白體；如宋體(文鼎宋)，明體(細明體）sans-serif == 無襯線 == 黑體；如微軟正黑體用於印刷時，使用襯線字體，較正統。用於螢幕顯示時，使用無襯線字體，眼睛較無負擔。參考資料:http://en.wikipedia.org/wiki/Serifhttp://zh.wikipedia.org/zh-tw/%E8%A1%AC%E7%BA%BF%E4%BD%93</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1279963721102848653/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1279963721102848653' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1279963721102848653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1279963721102848653'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/serif-vs-sans-serif.html' title='Serif vs Sans-serif'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5353096961658202523</id><published>2010-10-09T23:37:00.002+08:00</published><updated>2010-10-09T23:55:35.182+08:00</updated><title type='text'>install fglrx on debian squeeze</title><summary type='text'>Switch to virtual terminal by Ctrl + Alt + 1 $ sudo aptitude install fglrx-driver fglrx-glx fglrx-control fglrx-source fglrx-kernel-`uname -r` module-assistant$ sudo modprobe fglrx$ sudo aticonfig --initial (will replaces /etc/X11/xorg.conf if exists)$ sudo invoke-rc.d gdm3 restartTest$ glxinfo | grep renderingdirectrendering: Yes$ sudo grep UVD /var/log/Xorg.0.log(II) fglrx(0): UVD2 feature is </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5353096961658202523/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5353096961658202523' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5353096961658202523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5353096961658202523'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/install-fglrx-on-debian-squeeze.html' title='install fglrx on debian squeeze'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1314043065989822847</id><published>2010-10-07T11:45:00.004+08:00</published><updated>2010-10-07T13:46:54.593+08:00</updated><title type='text'>netinst debian using PPPoE</title><summary type='text'>使用 netinst 安裝 debian 時，預設是使用 DHCP 來設定網路。若要使用 PPPoE 則可在一開始的安裝畫面按下 tab，就可以編輯開機參數，在後面加上 modules=ppp-udeb 即可。參考自:http://whc.twgg.org/serendipity/index.php?/archives/98-Debian-4.0-netinst-about-PPPoE.htmlhttp://wiki.debian.org/DebianInstaller/FAQ#Q.3AHowdoIinstallviaPPPoE.3Fhttp://d-i.alioth.debian.org/manual/en.i386/apds05.html</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1314043065989822847/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1314043065989822847' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1314043065989822847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1314043065989822847'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/netinst-debian-using-pppoe.html' title='netinst debian using PPPoE'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-200085031087516007</id><published>2010-10-01T15:15:00.002+08:00</published><updated>2010-10-01T15:21:36.201+08:00</updated><title type='text'>man pages of pthread_xxx on Debian</title><summary type='text'>pthread_xxx 的 man pages 在  manpages-posix-dev 裡。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/200085031087516007/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=200085031087516007' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/200085031087516007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/200085031087516007'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/10/man-pages-of-pthreadxxx-on-debian.html' title='man pages of pthread_xxx on Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8160565124198589001</id><published>2010-09-21T10:30:00.001+08:00</published><updated>2010-09-21T10:34:27.274+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>delete blank lines in vim</title><summary type='text'>:g/^$/d</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8160565124198589001/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8160565124198589001' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8160565124198589001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8160565124198589001'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/09/delete-blank-lines-in-vim.html' title='delete blank lines in vim'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4879459745643965560</id><published>2010-09-16T22:38:00.003+08:00</published><updated>2010-09-16T22:43:50.558+08:00</updated><title type='text'>Cannot playback dvd on Debian</title><summary type='text'>在 Debian 上無法播放 DVD 影片時，有可能是沒有安裝 libdvdcss2。sudo aptitude install libdvdcss2</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4879459745643965560/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4879459745643965560' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4879459745643965560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4879459745643965560'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/09/cannot-playback-dvd-on-debian.html' title='Cannot playback dvd on Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5174664300228234659</id><published>2010-09-08T02:59:00.002+08:00</published><updated>2010-09-08T02:59:47.362+08:00</updated><title type='text'>openoffice calc pop invalid sheet reference</title><summary type='text'>openoffice.org-calc 在選取列印範圍時，會跳出 "Invalid Sheet reference." 的錯誤訊息。在 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527535 提到暫時解決方法：http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527535#37The problem is that the syntax check in areasdlg.cxx fails if there is noformula grammar specified in the user configuration. In that caselcl_CheckRepeatOne() just returns "false" instead of trying with the </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5174664300228234659/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5174664300228234659' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5174664300228234659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5174664300228234659'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/09/openoffice-calc-pop-invalid-sheet.html' title='openoffice calc pop invalid sheet reference'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3445057925435295276</id><published>2010-09-07T14:54:00.001+08:00</published><updated>2010-09-07T15:00:45.977+08:00</updated><title type='text'>To turn off expandtab for editing Makefile</title><summary type='text'>cut from vim wikiahttp://vim.wikia.com/wiki/Converting_tabs_to_spacesto get the following coding style,No tabs in the source file.All tab characters are 4 space characters.use the following set of options::set tabstop=4:set shiftwidth=4:set expandtabBUTTo turn off expandtab for editing makefiles, put the following in your vimrc:autocmd FileType make setlocal noexpandtab</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3445057925435295276/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3445057925435295276' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3445057925435295276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3445057925435295276'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/09/to-turn-off-expandtab-for-editing.html' title='To turn off expandtab for editing Makefile'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7780562236804170657</id><published>2010-08-20T12:52:00.002+08:00</published><updated>2010-08-20T12:57:19.065+08:00</updated><title type='text'>sed email address</title><summary type='text'>sed  's/\([a-z]*[0-9]*\.*[a-z]*[0-9]*\.*[a-z]*[0-9]*@\)/\n\1/' a  | grep @ | cut -d'&lt;' -f1 | cut -d'"' -f1用 sed 比對出檔案 a 裡有 at 符號的字串，並將後面大於符號及雙引號之後的字去除，最後會得到 email address</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7780562236804170657/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7780562236804170657' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7780562236804170657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7780562236804170657'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/08/sed-email-address.html' title='sed email address'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7590552157575547603</id><published>2010-08-07T09:55:00.002+08:00</published><updated>2010-08-07T10:09:24.123+08:00</updated><title type='text'>mysqld bind address</title><summary type='text'>mysql 預設只讓本地端 (localhost, 127.0.0.1) 連線。設定在 /etc/mysql/my.cnf 裡的bind-address = 127.0.0.1這在 server 端與 client 端都在同一台主機上運作來講，是沒問題的。但若 client 端是在另一台機器上，就要改成bind-address = 0.0.0.0或bind-address = host IP address或將此行註解掉，等於設定為 0.0.0.0</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7590552157575547603/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7590552157575547603' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7590552157575547603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7590552157575547603'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/08/mysqld-bind-address.html' title='mysqld bind address'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6605411008423069137</id><published>2010-07-20T10:02:00.002+08:00</published><updated>2010-07-20T10:10:38.301+08:00</updated><title type='text'>Stripboard</title><summary type='text'>Stribboard or Veroboard or Prototype board 指的都是萬孔板(洞洞板)。StripBoard Designer, VeroDes, LochMaster, VeeCAD, Stripboard Magic 都是用來輔助設計 StripBoard 的繪圖軟體。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6605411008423069137/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6605411008423069137' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6605411008423069137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6605411008423069137'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/07/stripboard.html' title='Stripboard'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3629031022132802869</id><published>2010-07-14T23:46:00.002+08:00</published><updated>2010-07-15T00:13:59.840+08:00</updated><title type='text'>gEDA schematic size too small</title><summary type='text'>gEDA 是畫電路圖的工具。但它預設的工作空間太小，擺幾個電子元件，整個頁面就滿了。google 了半天，原來工作空間也是一個元件，而它的名稱叫做 Title Block。那在 gEDA 要如何調整它的大小呢？簡單說就是把這個元件刪掉，換上一個更大的元件。做法如下：顯示 - Zoom Full用滑鼠選取整個外框按住 Ctrl 鍵，將除了外框之外的元件反選取，只留下外框刪除它新增 &gt; Component在 Filter 輸入：title在 TitleBlocks(generic) 裡，選 title-bordered-E.sym 或 title-E.sym將它加入就有一個最大的工作空間了參考自：http://www.mail-archive.com/geda-user@moria.seul.org/msg13149.html</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3629031022132802869/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3629031022132802869' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3629031022132802869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3629031022132802869'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/07/geda-schematic-size-too-small.html' title='gEDA schematic size too small'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8522818057360410081</id><published>2010-05-12T09:29:00.002+08:00</published><updated>2010-05-12T09:58:50.187+08:00</updated><title type='text'>UART not work in VirtualBox 3.1.6</title><summary type='text'>最近在 VirtualBox 上跑 Windows XP guest ，用它的串列埠(UART, Serial port, COM port)來燒程式碼到板子上。剛開始可以用，但燒個幾次後，燒錄速度愈來愈慢，也開始出錯。到 VirtualBox 網站上去看[1]，才知道不只是在 Windows 上才有問題，連在 Linux host 上跑 Linux guest 也會出錯。而且還是個存在兩年以上的問題。目前在 VirtualBox 3.1.6 已知是無解了，只好暫時移到 VMWare Player 去看看。[1] Missing characters using serial porthttp://www.virtualbox.de/ticket/1548</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8522818057360410081/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8522818057360410081' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8522818057360410081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8522818057360410081'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/05/uart-not-work-in-virtualbox-316.html' title='UART not work in VirtualBox 3.1.6'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4600373385421274555</id><published>2010-05-01T14:25:00.005+08:00</published><updated>2010-05-01T14:42:32.767+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><title type='text'>Cannot switch workspace when VirtualBox running</title><summary type='text'>我們可以使用 Ctrl + Alt + 左/右 來切換工作區。當把 VirtualBox 的 Virtual Machine 開機並把它放到某個工作區，例如第二個工作區。這時前面所說的快速鍵在第二個工作區就失效了。原因是 VirtualBox 預設會捕捉所有鍵盤事件，我們只要把它關掉就沒事了。作法如下：VirtualBox - 檔案 - 喜好設定 - 輸入 - 自動擷取鍵盤將自動擷取鍵盤取消就可以了。參考資料：https://bugs.launchpad.net/ubuntu/+source/virtualbox-ose/+bug/177510/comments/19</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4600373385421274555/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4600373385421274555' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4600373385421274555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4600373385421274555'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/05/cannot-switch-workspace-when-virtualbox.html' title='Cannot switch workspace when VirtualBox running'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7792839071311812974</id><published>2010-04-16T09:51:00.001+08:00</published><updated>2010-04-16T09:56:27.223+08:00</updated><title type='text'>Flash 的方塊字問題</title><summary type='text'>轉自：http://fourdollars.blogspot.com/2008/10/flash.htmlFlash 的方塊字問題在網路上面常常看到有人提供解決 Ubuntu 8.04.1 上面 Flash 中文方塊字的問題方法都是把 /etc/fonts/conf.d/49-sansserif.conf 這個檔案給刪除掉反正 /etc/fonts/conf.d/49-sansserif.conf 本身只是一個 soft link刪除掉也不會怎麼樣大不了再從 /etc/fonts/conf.avail/49-sansserif.conf 弄回來就好了可是這樣的解決方法雖然可以看到 Flash 上面的中文字了但是在 Pidgin 上面的中文字反而就變形了於是我提供另一個解決方法是把 /etc/fonts/conf.d/49-sansserif.conf 當中的&lt;edit name="</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7792839071311812974/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7792839071311812974' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7792839071311812974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7792839071311812974'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/04/flash.html' title='Flash 的方塊字問題'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6018294566888424440</id><published>2010-04-10T23:06:00.001+08:00</published><updated>2010-04-10T23:08:39.649+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='life'/><title type='text'>南部各地各月盛產水果</title><summary type='text'>資料來源:農糧署南區分署http://www.tnfd.gov.tw/upload/article/area_month_fruit.html嘉義各月份盛產水果：一月：柳丁二月：蕃茄三月：蕃茄八月：高接梨九月：水柿、文旦十月：水柿、木瓜十一月：哈蜜瓜十二月：洋桔梗臺南各月份盛產水果：一月：哈蜜瓜、番石榴、鳳梨二月：哈蜜瓜、番石榴、鳳梨三月：哈蜜瓜、番石榴四月：哈蜜瓜五月：哈蜜瓜、鳳梨六月：酪梨、火龍果、綠竹筍七月：酪梨、火龍果、綠竹筍、文旦、楊桃、菱角、梨八月：酪梨、火龍果、綠竹筍、文旦、楊桃、菱角、芒果、釋迦、梨九月：酪梨、火龍果、綠竹筍、文旦、楊桃、菱角、芒果、釋迦、番石榴、鳳梨、梨十月：酪梨、火龍果、文旦、楊桃、菱角、釋迦、鳳梨、柳丁十一月：酪梨、文旦、菱角、釋迦、鳳梨、柳丁、番石榴、哈蜜瓜、梨十二月：酪梨、文旦、菱角、釋迦、鳳梨、柳丁、番石榴、哈蜜瓜、梨高雄各月份盛產水果：一月：</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6018294566888424440/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6018294566888424440' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6018294566888424440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6018294566888424440'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/04/blog-post.html' title='南部各地各月盛產水果'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-2160435090983122480</id><published>2010-04-03T16:56:00.003+08:00</published><updated>2010-04-03T17:00:39.582+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><title type='text'>Debian 惱人的中文資料夾名稱</title><summary type='text'>最近我的 Debian 做了更新後，也出現了在 Ubuntu 才會看到的 桌面，文件，圖片，音樂，下載等的中文資料夾。在終端機下工作時，要進去這些資料夾變得有點礙手礙腳的。在網路上找到一篇解決方法。ubuntu 恼人的中文文件夹如何解决http://blog.csdn.net/ablo_zhou/archive/2010/03/18/5392987.aspx節錄如下：1. 先將資料夾名稱都改成英文的執行下面指令，切換到英文環境export LANG=en_US再執行xdg-user-dirs-gtk-update這時會跳出一個設定頁面，問你要不要將所有的中文資料夾換成英文。把不要再問我勾選起來後，確定。此時，在“位置”裡原本是中文的名稱已經換成英文了。接著把原來中文資料夾裡的資料移到英文的資料夾即可。再執行下面指令，就可以切換回到中文的環境了export LANG=zh_TW.UTF-</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/2160435090983122480/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=2160435090983122480' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2160435090983122480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2160435090983122480'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/04/debian.html' title='Debian 惱人的中文資料夾名稱'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8680052988418735983</id><published>2010-03-25T19:39:00.002+08:00</published><updated>2010-03-25T19:42:56.575+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>connect a windows network printer on ubuntu</title><summary type='text'>在 Ubuntu 連接 windows 網路印表機系統 - 管理 - 列印，新增Network Printer - Windows Printer via SAMBAsmb:// 欄位填入 serverip/ ，瀏覽點選所找到的印表機，確定認證 - 現在設定認證詳情，將使用者名稱及密碼都填好，向前由資料庫選擇印表機 - 廠牌 - 型號，向前向前套用填入你本機 root 的密碼，確定（若你的 root 沒有密碼，就幫它設一個吧)列印測試頁！收工！！</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8680052988418735983/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8680052988418735983' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8680052988418735983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8680052988418735983'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/03/connect-windows-network-printer-on.html' title='connect a windows network printer on ubuntu'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8267417984661386296</id><published>2010-03-07T14:45:00.002+08:00</published><updated>2010-03-07T15:37:38.834+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vnc'/><title type='text'>VNC configuration in Debian</title><summary type='text'>VNC 是 Virtual Network Computing 的縮寫。這是一個遠端顯示系統，它可以讓你 view 一個運算中的桌面環境。除了本機之外，在 Internet 上的任何機器也都可以 view，不論機器的架構是什麼。安裝 vncserver ( 以 root 身份 )sudo aptitude install vnc4server啟動 vncserver （ 以一般使用者身份 ）vnc4server -geometry 1024x768 -depth 24接著會提示你輸入密碼，未來以 viewer 登入時使用。You will require a password to access your desktops.Password:Verify:最後出現下面訊息表示建立成功。New 'homedeb:3 (richman)' desktop is homedeb:</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8267417984661386296/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8267417984661386296' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8267417984661386296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8267417984661386296'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/03/vnc-configuration-in-debian.html' title='VNC configuration in Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-336557800413361089</id><published>2010-03-04T23:04:00.003+08:00</published><updated>2010-03-04T23:26:33.630+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>Failed to reopen debug port for Selected Client to XXXX</title><summary type='text'>這是 Debian-based 的 Linux 特有的 bug...事情發生在安裝好 sun-java6-jdk, eclipse, ADT 之後，打開 Window -&gt; Android SDK and AVD manager 時，Eclipse 的 Console 視窗會開始一直跳出下面這樣的訊息[2010-03-04 23:04:42 - ddms]Failed to reopen debug port for Selected Client to: 8700[2010-03-04 23:04:42 - ddms]不適用的引數java.net.SocketException: 不適用的引數  at sun.nio.ch.Net.bind(Native Method)  at sun.nio.ch.ServerSocketChannelImpl.bind(</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/336557800413361089/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=336557800413361089' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/336557800413361089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/336557800413361089'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/03/failed-to-reopen-debug-port-for.html' title='Failed to reopen debug port for Selected Client to XXXX'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1450102194966200640</id><published>2010-03-02T23:53:00.002+08:00</published><updated>2010-03-02T23:59:22.518+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><title type='text'>Installing the ADT Plugin in Eclipse</title><summary type='text'>Download ADT fromhttp://developer.android.com/sdk/eclipse-adt.htmlStart Eclipse, then select Help &gt; Install         New Software. In the Available Software dialog, click Add....In the Add Site dialog, click Archive.Browse and select the downloaded zip file.In Eclipse 3.5 only, enter a name for the local update site (e.g.,       "Android Plugin") in the "Name" field.Click OK.   Back in the </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1450102194966200640/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1450102194966200640' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1450102194966200640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1450102194966200640'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/03/installing-adt-plugin-in-eclipse.html' title='Installing the ADT Plugin in Eclipse'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6009501701599501427</id><published>2010-03-02T23:03:00.003+08:00</published><updated>2010-03-02T23:18:40.839+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title type='text'>Install Eclipse IDE for Java Developers in Debian</title><summary type='text'>Notice : You will need a Java runtime environment (JRE) to use EclipseDownload Eclipse IDE for Java Developers fromhttp://www.eclipse.org/downloads/Install Eclipse IDE for Java Developserstar xzf eclipse-java-galileo-SR2-linux-gtk.tar.gzLaunch Eclipse IDEcd eclipse./eclipse &amp;</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6009501701599501427/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6009501701599501427' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6009501701599501427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6009501701599501427'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/03/install-eclipse-ide-for-java-developers.html' title='Install Eclipse IDE for Java Developers in Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7073658655231619246</id><published>2010-03-02T22:43:00.005+08:00</published><updated>2010-03-02T23:01:07.021+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>Install Sun Java6 JDK in Debian</title><summary type='text'>Install Sun Java6 JDKsudo aptitude install sun-java6-jdkSet java provider in Debiansudo update-alternatives --config javaand select/usr/lib/jvm/java-6-sun/jre/bin/javaTest java provider to confirm Sun Java6 JDK is installedjava -version</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7073658655231619246/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7073658655231619246' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7073658655231619246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7073658655231619246'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/03/install-sun-jdk-in-debian.html' title='Install Sun Java6 JDK in Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4989689351915593845</id><published>2010-02-13T08:55:00.001+08:00</published><updated>2010-02-13T08:58:07.126+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='learning'/><category scheme='http://www.blogger.com/atom/ns#' term='english'/><title type='text'>Learning English grammer</title><summary type='text'>Mike 推薦http://www.eslite.com/product.aspx?pgid=1002157741255984 English Grammar in Use 3Ed (+CD-R)     作者  ／   MURPHY, RAYMOND      出版社 ／ CAMBRIDGE UNIVERSITY PRESS  出版日期 ／ 2004/04/01  商品語言 ／ 英文  裝訂 ／ 平裝    運送條件／  允許國外          定價 ／ NT$700  售價 ／9折, NT$ 630http://www.eslite.com/product.aspx?pgid=1002157741714068  Essential Grammar in Use (3 Ed./+Answers)  A Self-study Reference and Practice Book </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4989689351915593845/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4989689351915593845' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4989689351915593845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4989689351915593845'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/02/learning-english-grammer.html' title='Learning English grammer'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5122572184922304853</id><published>2010-02-13T08:52:00.001+08:00</published><updated>2010-02-13T08:54:17.840+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='learning'/><category scheme='http://www.blogger.com/atom/ns#' term='english'/><title type='text'>Learning grammar</title><summary type='text'>免費學英文文法 by 台灣英業達http://www.grammarfree.com.tw/tw/</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5122572184922304853/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5122572184922304853' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5122572184922304853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5122572184922304853'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/02/learning-grammar.html' title='Learning grammar'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5983244310328689027</id><published>2010-02-13T08:47:00.000+08:00</published><updated>2010-02-13T08:48:50.002+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>add to search bar</title><summary type='text'>Add to Search Bar for Iceweasel/Firefoxhttps://addons.mozilla.org/zh-TW/firefox/addon/3682</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5983244310328689027/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5983244310328689027' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5983244310328689027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5983244310328689027'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/02/add-to-search-bar.html' title='add to search bar'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-2751676261487589341</id><published>2010-02-13T08:45:00.000+08:00</published><updated>2010-02-13T08:46:39.285+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='font'/><title type='text'>Install Monaco font on debian</title><summary type='text'>cp monaco.ttf /usr/share/fonts/truetype/fc-cache -f -v  </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/2751676261487589341/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=2751676261487589341' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2751676261487589341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2751676261487589341'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/02/install-monaco-font-on-debian.html' title='Install Monaco font on debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5827722132615115583</id><published>2010-02-13T08:43:00.001+08:00</published><updated>2010-02-13T08:45:16.790+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><title type='text'>Install Virtualbox-3.1 on Debian</title><summary type='text'>1. prepare the environment for build kernel module of virtualboxsudo aptitude install module-assistant dkmssudo m-a prepare2. add repository of virtualbox for debian lennydeb http://download.virtualbox.org/virtualbox/debian lenny non-free3. get the Sun public key for apt-securewget http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc4. add the public key into aptsudo apt-key add </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5827722132615115583/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5827722132615115583' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5827722132615115583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5827722132615115583'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/02/install-virtualbox-31-on-debian.html' title='Install Virtualbox-3.1 on Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1785379061487803134</id><published>2010-01-26T01:06:00.001+08:00</published><updated>2010-01-26T01:08:23.056+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>vim - supertab</title><summary type='text'>vim-addons install supertabDescription: use the tab key for all insert-mode completion</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1785379061487803134/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1785379061487803134' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1785379061487803134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1785379061487803134'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/01/vim-supertab.html' title='vim - supertab'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3930593494172554390</id><published>2010-01-14T23:46:00.006+08:00</published><updated>2010-04-06T14:00:47.695+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>vim - taglist</title><summary type='text'>Install related packagesudo aptitude install ctags vim-scripts vim-addon-managerInstall taglist script with vim-addons-managervim-addons install taglistAdd the follow command in ~/.vimrcnnoremap &lt;silent&gt; &lt;F12&gt; :TlistToggle&lt;CR&gt;</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3930593494172554390/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3930593494172554390' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3930593494172554390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3930593494172554390'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/01/vim-taglist.html' title='vim - taglist'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-2821218097939210398</id><published>2010-01-12T22:38:00.000+08:00</published><updated>2010-01-12T22:39:13.800+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hddtemp'/><category scheme='http://www.blogger.com/atom/ns#' term='applet'/><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>gDesklets</title><summary type='text'>Applets for gdesklets gDesklets is an architecture for "desklets", which are tiny desktop applets.This package provides desklets for the gDesklets application.This package contains theses desklets : * ACPI 0.1              * Battery 0.3           * Bible-desklet 2.0.1 * BinaryClock 1.2       * Borders               * Boxmail 0.50 * BSRDG 0.1             * Bubblefishymon 0.1.1  * Bugzilla * </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/2821218097939210398/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=2821218097939210398' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2821218097939210398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2821218097939210398'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/01/gdesklets.html' title='gDesklets'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1440976467588089617</id><published>2010-01-12T13:06:00.000+08:00</published><updated>2010-01-12T13:07:15.119+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timer'/><category scheme='http://www.blogger.com/atom/ns#' term='stopwatch'/><title type='text'>stopwatch</title><summary type='text'>A virtual stopwatch and timer Stopwatch is a stopwatch and timer program that uses the Tk toolkit. It hasmillisecond accuracy.</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1440976467588089617/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1440976467588089617' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1440976467588089617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1440976467588089617'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/01/stopwatch.html' title='stopwatch'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-210315655196878066</id><published>2010-01-12T13:03:00.001+08:00</published><updated>2010-01-12T13:06:02.426+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='applet'/><category scheme='http://www.blogger.com/atom/ns#' term='timer'/><category scheme='http://www.blogger.com/atom/ns#' term='countdown'/><category scheme='http://www.blogger.com/atom/ns#' term='gnome'/><title type='text'>timer applet</title><summary type='text'>timer-applet - a countdown timer applet for the GNOME panel Features include: * Quickly set a time and the applet will notify you when time is up * Create presets for quick access to frequently-used times * Small and unobtrusive. Choose to either view the remaining time right in   the panel or hide it so you don't get distracted by the countdown. * Add multiple Timer Applets to the panel to have </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/210315655196878066/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=210315655196878066' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/210315655196878066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/210315655196878066'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2010/01/timer-applet.html' title='timer applet'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3008128011316409626</id><published>2009-11-05T14:25:00.003+08:00</published><updated>2009-11-05T14:36:54.238+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>Syntax highlighting for Gtk+ in Vim</title><summary type='text'>Note : This is for Debian.# Install vim-syntax-gtk packagesudo aptitude install vim-syntax-gtk# Enable gtk-syntax in Vimvim-addons install gtk-syntax# Let Vim known which syntax it should highlightingcp /usr/share/doc/vim-syntax-gtk/examples/c.vim ~/.vim/after/syntax</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3008128011316409626/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3008128011316409626' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3008128011316409626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3008128011316409626'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/11/syntax-highlighting-for-gtk-in-vim.html' title='Syntax highlighting for Gtk+ in Vim'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8794333125993978969</id><published>2009-10-29T14:33:00.008+08:00</published><updated>2010-05-06T10:35:14.399+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='wireshark'/><title type='text'>Running Wireshark as a non root user</title><summary type='text'>在 Ubuntu 中以一般使用者身份執行 Wireshark 無法選擇網路界面解決方法：設定網路特權給 dumpcap1. 確定 linux kernel 及檔案系統支援 File Capabilities linux kernel 2.6.24 之後已完整支援 Capabilities2.安裝 libcap2-binsudo aptitude install libcap2-bin2. 以 setcap 為 dumpcap 設定網路特權sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap3. 以一般使用者啟動 Wireshark，看是否有網路界面供選擇了參考資料：http://wiki.wireshark.org/CaptureSetup/CapturePrivileges</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8794333125993978969/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8794333125993978969' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8794333125993978969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8794333125993978969'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/10/running-wireshark-as-non-root-user.html' title='Running Wireshark as a non root user'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-637891764198491571</id><published>2009-09-10T18:07:00.003+08:00</published><updated>2009-09-10T23:42:30.973+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='LLD3'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='driver'/><title type='text'>Study LDD3 on Debian</title><summary type='text'>在 Debian 上建立學習 Linux Device Driver 的環境aptitude install build-essentialaptitude install linux-headers-2.6.30-1-686aptitude install linux-headers-2.6.30-1-commonaptitude install linux-kbuild-2.6.30如此會在 /usr/src 安裝好編繹 kernel module 的環境接著按照 LLD3 上寫的第一個範例 hello.c#include #include MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){  printk(KERN_ALERT "Hello, world\n");  return 0;}static void </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/637891764198491571/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=637891764198491571' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/637891764198491571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/637891764198491571'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/09/study-ldd3-on-debian.html' title='Study LDD3 on Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6301405990347183997</id><published>2009-08-25T22:39:00.003+08:00</published><updated>2009-08-25T23:24:41.076+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='editor'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='update-alternatives'/><title type='text'>switch nano to vim</title><summary type='text'>Debian 預設的 editor 是 nano，對習慣使用 vim 的人是很不方便的。例如，以 visudo 來修改 /etc/sudoers 時是用 nano 打開的。我們可以用下面的方式將之換成以 vi 來開啟sudo update-alternatives --config editor這時會列出好數個可以提供 editor 的程式，選 vim 即可。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6301405990347183997/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6301405990347183997' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6301405990347183997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6301405990347183997'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/08/switch-nano-to-vim.html' title='switch nano to vim'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-9113890940873387</id><published>2009-08-25T22:37:00.004+08:00</published><updated>2009-08-25T23:03:12.259+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>sudo</title><summary type='text'>Debian 預設是沒有啟用 sudo，並且也沒有將安裝過程中所建立的一般使用者帳號加入 sudo 群組。已有人向 Debian installer team 提出需求了，希望未來安裝完後就順便做完這件事。(Ubuntu 預設是會這麼做的)接下來說明怎麼啟用 sudo，並將需要用到 root 權力的一般使用者加入 sudo 群組。1. 變身為 SuperUser$ su -2. 編輯 /etc/sudoers (下面的指令會以預設的編輯器打開 /etc/sudoers)# visudo找到下面這行# sudo ALL=NOPASSWD: ALL將之註解移去sudo ALL=NOPASSWD: ALL按下  + o 將結果儲存要寫入的檔案名稱 : /etc/sudoers.tmp 按下 enter 即可接著按下  + x 離開編輯器3. 將自己(username)加入 sudo 群組# </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/9113890940873387/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=9113890940873387' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/9113890940873387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/9113890940873387'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/08/sudo.html' title='sudo'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6864021649444870022</id><published>2009-07-02T13:40:00.001+08:00</published><updated>2009-07-02T13:43:36.764+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><category scheme='http://www.blogger.com/atom/ns#' term='usb'/><title type='text'>VirtualBox USB not working on Debian lenny</title><summary type='text'>引用來源:http://forums.virtualbox.org/viewtopic.php?f=7&amp;t=18934#p81634            Re: USB not working (with PUEL)    by draeath » 20. Jun 2009, 04:01          Found the problem.Debian Lenny sets up /proc/bus/usb and /dev/bus/usb as root:root without write permissions.So, I needed to dig and find this:/etc/init.d/mountkernfs.shI edited that file. The line in question (line 75) as supplied by Debian:</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6864021649444870022/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6864021649444870022' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6864021649444870022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6864021649444870022'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/07/virtualbox-usb-not-working-on-debian.html' title='VirtualBox USB not working on Debian lenny'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1707403818810307420</id><published>2009-03-17T20:54:00.000+08:00</published><updated>2009-03-17T20:56:08.645+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>Trash location</title><summary type='text'>Trash can location in Debian lenny is~/.local/share/Trash/files</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1707403818810307420/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1707403818810307420' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1707403818810307420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1707403818810307420'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/03/trash-location.html' title='Trash location'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-2927531886382636040</id><published>2009-02-11T14:21:00.004+08:00</published><updated>2009-02-11T14:43:15.866+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pkg-config'/><category scheme='http://www.blogger.com/atom/ns#' term='crosscompile'/><title type='text'>cross compile ushare with libupnp</title><summary type='text'>ushare 使用 pkg-config 來尋找 libupnp例如:$./configure --cross-prefix=mips-linux-Checking for compiler available...Checking for locales ...Checking for ifaddrs ...Checking for langinfo ...Checking for iconv ...Checking for libixml ...Checking for libthreadutil ...Checking for libupnp &gt;= 1.4.2 ...Error, libupnp &lt; 1.4.2 !See file "config.log" produced by configure for more details.顯示 libupnp 版本不符要求$cat </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/2927531886382636040/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=2927531886382636040' title='4 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2927531886382636040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2927531886382636040'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/02/cross-compile-ushare-with-libupnp.html' title='cross compile ushare with libupnp'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7819898279529835806</id><published>2009-02-06T16:59:00.005+08:00</published><updated>2009-02-07T01:21:21.266+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>upnp compilation with error</title><summary type='text'>編繹 upnp 相關的程式時出現upnp/ithread.h:153: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ithread_rwlockattr_t'解決方法是加上 -D_GNU_SOURCE如:$(CC) $(CFLAGS) $(INCLUDES) -c $&lt;$(CC) $(CFLAGS) $(INCLUDES) -D_GNU_SOURCE -c $&lt;參考資料:https://dev.openwrt.org/ticket/3181</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7819898279529835806/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7819898279529835806' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7819898279529835806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7819898279529835806'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/02/upnp-compilation-with-error.html' title='upnp compilation with error'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6770324203499121597</id><published>2009-02-05T17:06:00.017+08:00</published><updated>2010-03-18T17:31:18.447+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trac'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>Setup SVN with Trac</title><summary type='text'>本文是在系統環境為 Debian GNU/Linux 5.0 (lenny) ，以 root 身份完成，實際指令有時可能要加上 sudo。Plan:/etc/svn -&gt; SVN 相關設定檔/etc/svn/account -&gt; SVN 用戶的帳號密碼檔/etc/svn/authz -&gt; SVN 用戶的權限檔/home/svn -&gt; SVN 檔案庫的根目錄/home/trac -&gt; Trac 專案的根目錄svn -&gt; /home/svn 的 ownersvn -&gt; /home/svn 的 groupwww-data -&gt; /home/trac 的 ownerwww-data -&gt; /home/trac 的 group192.168.1.100 -&gt; SVN 及 Trac 伺服器的 IPsvn+ssh://192.168.1.100/svn -&gt; 存取 SVN 的 URLhttp://</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6770324203499121597/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6770324203499121597' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6770324203499121597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6770324203499121597'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/02/setup-svn-with-trac.html' title='Setup SVN with Trac'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1995674101297334782</id><published>2009-02-05T15:40:00.002+08:00</published><updated>2009-02-05T15:43:13.706+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trac'/><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>setuptools too old</title><summary type='text'>I receive an 'error: Unexpected HTML page found at ...' message when trying to use easy_install to install the plugin  The reason for this is that the current stable release of setuptools does work well with Subversion 1.5.  Solution  You need to install the latest development branch of setuptools.  svn co http://svn.python.org/projects/sandbox/branches/setuptools-0.6/ Then install it as root.  </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1995674101297334782/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1995674101297334782' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1995674101297334782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1995674101297334782'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/02/setuptools-too-old.html' title='setuptools too old'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7458962365747258740</id><published>2009-01-19T11:41:00.003+08:00</published><updated>2009-01-19T11:56:54.219+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>NULL to strlen function</title><summary type='text'>當我們對某個指標做 strlen，且該指標指向 NULL 時，例如：char *ptr = NULLprintf("string length : %d\n", strlen(ptr));會產生Segmentation fault因為:http://bytes.com/groups/c/586992-null-strlen-function#post2303741You're apparently a new programmer, so let me add this:A NULL pointer and a string of length zero are not the same thing. A NULL pointer traditionally has the value of 0, which is usually an unsuitable pointer; but </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7458962365747258740/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7458962365747258740' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7458962365747258740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7458962365747258740'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2009/01/null-to-strlen-function.html' title='NULL to strlen function'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8091541084785051705</id><published>2008-12-16T17:12:00.000+08:00</published><updated>2008-12-16T17:24:19.441+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='中文'/><category scheme='http://www.blogger.com/atom/ns#' term='font'/><category scheme='http://www.blogger.com/atom/ns#' term='點陣字'/><category scheme='http://www.blogger.com/atom/ns#' term='bitmap'/><title type='text'>Bitmap Font File Format</title><summary type='text'>點陣檔(bitmap file)是一種二元檔，用來存字元的點陣(bitmap)。同時也會有一個相對應的索引檔，HBF file。以下所描述的格式相當通用；特別是很多提供點陣字型的廠商可以直接使用，而不需修改。點陣字的結構"寬x高" 大小的點陣字以列(row)為單位從上到下儲存，每列使用一整個位元數。每一列佔 (寬 + 7)/8 位元組，以無條件捨去計算。每列從左到右儲存，最左的圖點在第一個位元組的最高有效位(MSB)。因此，每個點陣字會佔去 (高 * ((寬 + 7)/8) 位元組。例如:16x16 點陣字佔去 16 * ((16 + 7)/8) = 32 bytes15x16 點陣字佔去 16 * ((15 + 7)/8) = 32 bytes16x15 點陣字佔去 15 * ((16 + 7)/8) = 30 bytes64x64 點陣字佔去 64 * ((64 + 7)/8) = </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8091541084785051705/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8091541084785051705' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8091541084785051705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8091541084785051705'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/12/bitmap-font-file-format.html' title='Bitmap Font File Format'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4669754482869615375</id><published>2008-12-16T15:49:00.002+08:00</published><updated>2008-12-16T16:46:48.106+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='編碼'/><category scheme='http://www.blogger.com/atom/ns#' term='中文'/><category scheme='http://www.blogger.com/atom/ns#' term='gb18030'/><category scheme='http://www.blogger.com/atom/ns#' term='gbk'/><category scheme='http://www.blogger.com/atom/ns#' term='gb2312'/><title type='text'>Chinese character code</title><summary type='text'>相對於台灣用大五碼，大陸用國家標準代碼，簡稱國標碼(GuoBiao)來做為漢字編碼集。GB2312-80 是大陸官方在1981年5月1日實施。幾乎大陸所有中文系統及國際化軟體都支援GB2312。微軟的 CP936 與 GB2312 幾乎是一樣的編碼。微軟後來對 CP936 做擴展，後來稱為 GBK。K是由擴展的漢語拼音 Kuo而來。GB18030-2000 是大陸官方在2000年推出的標準。後來在 2005年推出其修訂版，稱GB18030-2005。GB18030 完全相容 GB2312；基本相容 GBK。cclib.16 是一個 GB2312 的點陣字型檔，其字型大小為 16x16 點。GB2312 0xA1A1-0xA7FE 對應到 cclib.16 是從檔案的  0 開始。GB2312 0xB0A1-0xF7FE 對應到 cclib.16 是從檔案的  0x5240 開始。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4669754482869615375/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4669754482869615375' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4669754482869615375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4669754482869615375'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/12/chinese-character-code.html' title='Chinese character code'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5524096869908365878</id><published>2008-12-09T10:11:00.002+08:00</published><updated>2008-12-09T10:19:15.815+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='dvd'/><title type='text'>backup a DVD in Debian</title><summary type='text'>aptitude install dvdbackupdvdbackup -i /media/cdrom -o ~/movie -M其他dvd 相關工具vobcopylsdvd</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5524096869908365878/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5524096869908365878' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5524096869908365878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5524096869908365878'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/12/backup-dvd-in-debian.html' title='backup a DVD in Debian'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1790498937572494782</id><published>2008-12-09T10:03:00.002+08:00</published><updated>2008-12-09T10:05:58.870+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='alsa'/><category scheme='http://www.blogger.com/atom/ns#' term='audio'/><category scheme='http://www.blogger.com/atom/ns#' term='mplayer'/><title type='text'>Could not open/initialize audio device -&gt; no sound</title><summary type='text'>while play a DVD with Mplayer,video can play, but no audio.And Mplayer shows "Could not open/initialize audio device -&gt; no sound"check this with$ lspci | grep -i audio$ lsmod | grep sndAny exact error messages from ...# alsaconf</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1790498937572494782/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1790498937572494782' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1790498937572494782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1790498937572494782'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/12/could-not-openinitialize-audio-device.html' title='Could not open/initialize audio device -&gt; no sound'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3473487082294472158</id><published>2008-12-06T10:38:00.003+08:00</published><updated>2008-12-06T13:02:36.078+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ati'/><category scheme='http://www.blogger.com/atom/ns#' term='ati2dvag'/><category scheme='http://www.blogger.com/atom/ns#' term='driver'/><title type='text'>ati2dvag problem</title><summary type='text'>遇到 Windows XP 藍白畫面上面只看得懂 ati2dvag ，目前一般解決方法有兩個:  重新安裝 ATI driver。啟動 Windows 於安全模式 (在 Windows 顯示前按下 F8)，到  Windows 新增移除程式中移除 ATI 相關的所有東西。移除 DAO/MDAC 元件。你可以到 ATI 的網站下載 ATI 的移除工具來做這件事。完整的移除程序在 ATI 的網站的這裡。到控制台 &gt; 系統 &gt; 硬體 &gt; 裝置管理員 &gt; 系統裝置 &gt; PCI standard PCI-to-PCI bridge，按右鍵，選，更新驅動程式 &gt; 從清單或特殊位置安裝 &gt; 不要搜尋，我將選擇要安裝的驅動程式 &gt; PCI standard PCI-to-PCI bridge。參考來源:http://www.modernstreet.com/general/</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3473487082294472158/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3473487082294472158' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3473487082294472158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3473487082294472158'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/12/ati2dvag-problem.html' title='ati2dvag problem'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1921555422018655081</id><published>2008-11-28T15:51:00.006+08:00</published><updated>2009-02-05T11:19:01.844+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trac'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>New a svn repository and trac</title><summary type='text'>如何新增 svn 檔案庫及其 trac ?假設有個新專案，它的名字是 projectA該專案的檔案庫欲放在 /home/svn/projectA該專案的 trac 欲放在 /home/trac/projectA建立檔案庫svnadmin create /home/svn/projectA設定檔案庫存取權限chmod -R 775 /home/svn/projectAvi /home/svn/projectA/conf/svnserve.conf[general]anon-access = noneauth-access = write建立 tracmkdir -p /home/trac/projectA初始化 trac 環境trac-admin /home/trac/projectA initenv回答下面的問題Project Name [My Project]&gt; </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1921555422018655081/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1921555422018655081' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1921555422018655081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1921555422018655081'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/11/new-svn-repository-and-trac.html' title='New a svn repository and trac'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8811292894418715834</id><published>2008-11-20T07:22:00.002+08:00</published><updated>2008-11-20T07:27:59.092+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='iceweasel'/><title type='text'>Change user agent of Iceweasel</title><summary type='text'>在 URL 中填入about:config在 filter 中填入useragent在 general.useragent.extra.firefox 上點兩下，將 Iceweasel 改為 Firefox</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8811292894418715834/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8811292894418715834' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8811292894418715834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8811292894418715834'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/11/change-user-agent-of-iceweasel.html' title='Change user agent of Iceweasel'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8567918647234510413</id><published>2008-11-20T01:22:00.002+08:00</published><updated>2008-11-20T01:24:07.805+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mirror'/><title type='text'>buildroot 可用的 mirror site</title><summary type='text'>(nchc) Sourceforge mirror siteKernel.org mirrorhttp://www.ntu-tw.lkams.kernel.org/pubGNU Softwarehttp://ftp.twaren.net/Unix/GNU/gnu/Debian Software mirrorhttp://ftp.tw.debian.org</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8567918647234510413/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8567918647234510413' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8567918647234510413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8567918647234510413'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/11/buildroot-mirror-site.html' title='buildroot 可用的 mirror site'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5952294308494642365</id><published>2008-11-13T21:50:00.001+08:00</published><updated>2008-11-13T21:53:20.631+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Virtual Desktop from Microsoft</title><summary type='text'>給 Windows 用的虛擬桌面，來自微軟的小工具http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5952294308494642365/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5952294308494642365' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5952294308494642365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5952294308494642365'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/11/virtual-desktop-from-microsoft.html' title='Virtual Desktop from Microsoft'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-45291307113781047</id><published>2008-11-13T17:19:00.001+08:00</published><updated>2008-11-13T17:21:09.364+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arm'/><title type='text'>different between arm920t and arm922t</title><summary type='text'>arm920t 與 arm922t 差別在於快取記憶體大小arm920t 16k/16karm922t 8k/8k參考資料:http://www.arm.com/products/CPUs/ARM920T.html</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/45291307113781047/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=45291307113781047' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/45291307113781047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/45291307113781047'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/11/different-between-arm920t-and-arm922t.html' title='different between arm920t and arm922t'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5666078504608572753</id><published>2008-11-13T10:30:00.003+08:00</published><updated>2008-11-13T10:49:02.499+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='endpoint'/><title type='text'>How to install Ixia endpoint on Linux ?</title><summary type='text'>到 http://www.ixiacom.com/support/endpoint_library/選 Linux x86 / 32-Bit(i386)下載回來 pelnx_670.tar.gz ，存放到 /tmp解開到 /tmpcd /tmptar xvfz pelnx_670.tar.gz執行安裝腳本，endpoint 會被安裝在 /usr/local/Ixia./endpoint.install accept_license設定開機自動啟動 endpointcp /usr/local/Ixia/rc2exec.lnx /etc/init.d/ixia_endpointcd /etc/rc2.dln -s ../init.d/ixia_endpoint S81ixia_endpointcd /etc/rc3.dln -s ../init.d/ixia_endpoint </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5666078504608572753/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5666078504608572753' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5666078504608572753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5666078504608572753'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/11/how-to-install-ixia-endpoint-on-linux.html' title='How to install Ixia endpoint on Linux ?'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3967677296729812518</id><published>2008-10-30T11:26:00.003+08:00</published><updated>2008-10-30T11:36:05.112+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>debian backports</title><summary type='text'>為了不想常常收到新套件更新的通知，所以用的是 stable (etch) 的套件庫。但有時會需要用到較新版本的套件，這時怎麼辦呢？Debian 提供了一個 backports 的套件庫用來解決這個問題。backports 會收錄重新編譯過的 testing 及 unstable 的套件。使用方法如下:在 /etc/apt/sources.list 加入deb http://www.backports.org/debian etch-backports main contrib non-free使用 aptitude 時指定 -t etch-backports，如sudo aptitude -t etch-backports search xxxsudo aptitude -t etch-backports install xxx</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3967677296729812518/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3967677296729812518' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3967677296729812518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3967677296729812518'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/10/debian-backports.html' title='debian backports'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-6669935837160768911</id><published>2008-09-23T18:58:00.005+08:00</published><updated>2009-02-12T15:04:54.535+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='patch'/><category scheme='http://www.blogger.com/atom/ns#' term='diff'/><title type='text'>diff and patch</title><summary type='text'>製作 patch 的指令diff -ruN r1 r2 &gt; diff_r1_r2.patchr 是 recursiveu 是列出差異點的前後三行N 是新增的檔案也視為差異套用 patch 的指令cd r1patch -p1 &lt; ../diff_r1_r2.patch -p1 是略去 patch 檔中的第一層目錄當 patch 是以 .gz 形式出現時cd r1zcat diff_r1_r2.patch.gz | patch -p1</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/6669935837160768911/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=6669935837160768911' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6669935837160768911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/6669935837160768911'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/09/diff-and-patch.html' title='diff and patch'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7048731255008274500</id><published>2008-09-10T19:21:00.002+08:00</published><updated>2008-09-10T19:40:25.094+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>malloc memset free</title><summary type='text'>用於字串指標：char *ptr;ptr = (char *) malloc(sizeof(char) * NumberOfElement);memset(ptr, '\0', sizeof(ptr));...free(ptr);用於變數指標：int *ptrptr = (int *) malloc(sizeof(char) * NumberOfElement);memset(ptr, 0, sizeof(ptr));...free(ptr);</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7048731255008274500/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7048731255008274500' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7048731255008274500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7048731255008274500'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/09/malloc-memset-free.html' title='malloc memset free'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-4889150105571748545</id><published>2008-09-08T17:50:00.003+08:00</published><updated>2008-09-08T17:56:27.779+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>How to build kernel module</title><summary type='text'>要將某 driver 編成 kernel module則其 Makefile 需要下面規則obj-m += hello-1.oall:make -C  M=$(shell pwd) modulesclean:make -C  M=$(shell pwd) clean然後下 make 就可以了。參考自http://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html#AEN121</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/4889150105571748545/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=4889150105571748545' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4889150105571748545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/4889150105571748545'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/09/how-to-build-kernel-module.html' title='How to build kernel module'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-8849497967666872272</id><published>2008-08-06T19:32:00.001+08:00</published><updated>2008-08-06T19:33:49.445+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arm'/><category scheme='http://www.blogger.com/atom/ns#' term='porting'/><title type='text'>Build STLport-5.1.5 for arm</title><summary type='text'>cd build/lib./configure --target=arm-linuxmake -f gcc.mak install-release-shared</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/8849497967666872272/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=8849497967666872272' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8849497967666872272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/8849497967666872272'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/08/build-stlport-515-for-arm.html' title='Build STLport-5.1.5 for arm'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1608049147600946189</id><published>2008-08-06T11:15:00.003+08:00</published><updated>2008-08-06T11:26:05.242+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arm'/><category scheme='http://www.blogger.com/atom/ns#' term='porting'/><title type='text'>Build libsigc++-2.0 for arm</title><summary type='text'>./configure --prefix=/star.branches.avupnp/tools/arm-uclibc-3.4.6 --build=i386-pc-linux --host=arm-linuxvi MakefileSUBDIRS = sigc++ tests docs examples scripts MSVC_Net2003remove docs MSVC_Net2003SUBDIRS = sigc++ tests examples scripts</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1608049147600946189/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1608049147600946189' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1608049147600946189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1608049147600946189'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/08/build-libsigc-20-for-arm.html' title='Build libsigc++-2.0 for arm'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3390783785965599682</id><published>2008-08-06T10:54:00.001+08:00</published><updated>2008-08-06T11:11:29.086+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arm'/><category scheme='http://www.blogger.com/atom/ns#' term='porting'/><title type='text'>Build libtorrent for arm</title><summary type='text'>PKG_CONFIG_PATH=/star.branches.avupnp/tools/arm-uclibc-3.4.6/lib/pkgconfig/ ./configure --prefix=/star.branches.avupnp/tools/arm-uclibc-3.4.6 --enable-shared --build=i386-pc-linux --host=arm-linux --enable-aligned</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3390783785965599682/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3390783785965599682' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3390783785965599682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3390783785965599682'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/08/build-libtorrent-for-arm.html' title='Build libtorrent for arm'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-3619092286991350571</id><published>2008-08-06T10:42:00.003+08:00</published><updated>2008-08-07T17:00:39.390+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arm'/><category scheme='http://www.blogger.com/atom/ns#' term='porting'/><title type='text'>Build openssl for arm</title><summary type='text'>for openssl-0.9.8h$ ./Configure linux-generic32 no-asm shared --prefix=/star.branches.avupnp/tools/arm-uclibc-3.4.6$ vi MakefileCC= arm-linux-gccAR=arm-linux-ar $(ARFLAGS) rRANLIB= arm-linux-ranlibinstall: all install_sw$ make</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/3619092286991350571/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=3619092286991350571' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3619092286991350571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/3619092286991350571'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/08/build-openssl-for-arm.html' title='Build openssl for arm'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-191221926864916036</id><published>2008-07-23T20:23:00.001+08:00</published><updated>2008-07-23T20:24:41.504+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>suggest parentheses around assignment used as truth value</title><summary type='text'>原文出處http://darkmomo.blogspot.com/2008/05/suggest-parentheses-around-assignment.html而在C語言中，"非0為true'的哲學下"，int rxDataSize=0;if(rxDataSize=0)會通過檢查;但是在g++中，"非0為true'的哲學下"已不適用，必須正確指出ture or false，即if((rxDataSize=0)) 才會通過不會有warring產生。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/191221926864916036/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=191221926864916036' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/191221926864916036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/191221926864916036'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/07/suggest-parentheses-around-assignment.html' title='suggest parentheses around assignment used as truth value'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7123735583614757732</id><published>2008-07-22T15:03:00.002+08:00</published><updated>2008-07-22T15:08:20.393+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='lenny'/><category scheme='http://www.blogger.com/atom/ns#' term='debian'/><title type='text'>visudo 的 editor</title><summary type='text'>在 debian lenny 執行 visudo 時，會以 nano 作為編輯器。若要改以 vim 開啟，可以這樣做update-alternatives --config editor再選成 vim 即可。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7123735583614757732/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7123735583614757732' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7123735583614757732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7123735583614757732'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/07/visudo-editor.html' title='visudo 的 editor'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-9099374843120422962</id><published>2008-07-16T21:55:00.002+08:00</published><updated>2008-07-16T21:59:26.979+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='career'/><title type='text'>職場筆記</title><summary type='text'>如果主管一直到你離開都還不認識你，請不要高興因為你並沒有做過什麼豐功偉業讓他足以認得你也就是說，你一直在做的工作，都是很平凡的</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/9099374843120422962/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=9099374843120422962' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/9099374843120422962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/9099374843120422962'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/07/blog-post_16.html' title='職場筆記'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-7720352160069926002</id><published>2008-07-10T16:54:00.000+08:00</published><updated>2008-07-10T16:55:50.028+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='mtu'/><title type='text'>MTU 最佳化</title><summary type='text'>原文連結:http://blog.xuite.net/beavisliu/blog/15106473一、首先找出client端最大 MTU 值我們分兩大系統1.windows使用ms-dos 命令提示視窗ping -f -l 1500 192.168.0.11500是預設的值192.168.0.1 指向NAT主機 (這裡不限定)如果回應packet needs to be fragmented but DF set.packet needs to be fragmented but DF set.packet needs to be fragmented but DF set.packet needs to be fragmented but DF set.則為超過MTU需要設更小ping -f -l 1464 192.168.0.1回應Reply from 192.168.0.1 : </summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/7720352160069926002/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=7720352160069926002' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7720352160069926002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/7720352160069926002'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/07/mtu_10.html' title='MTU 最佳化'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-5135063284246643889</id><published>2008-07-10T16:48:00.002+08:00</published><updated>2008-07-10T16:53:40.290+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='mtu'/><title type='text'>簡介 MTU 及其調整</title><summary type='text'>原文連結:http://www.euca.net/forums/archive/index.php/t-778.htmlby mike2002-01-16, 09:45 AM　 　有許多用 ADSL 的使用者，當有用 ICS 開啟 NAT 功能時，常常會抱怨為什麼 Client 端的電腦無法收郵件，或是無法瀏覽某些網頁（但是其它的網頁是正常的），其實只要調整 Client 端網路卡的 MTU 值，即可完全解決此一問題，而且可以藉由調整 MTU 值，也可以增進網路效率。　　MTU 為 Maximum Transmission Unit 的縮寫, 一般預設值為 1,500。但是在不同的網路環境中，應該是有不同的數值。以下列出各種 Maximum MTU　　EtherNet Used：1,500（一般的預設值）　　EtherNet Acutally：1,496（因為1,500比較方便記憶）　　</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/5135063284246643889/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=5135063284246643889' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5135063284246643889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/5135063284246643889'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/07/mtu.html' title='簡介 MTU 及其調整'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-1523223160643413130</id><published>2008-07-10T13:16:00.004+08:00</published><updated>2008-07-22T19:18:41.722+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正規表示式'/><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><title type='text'>如何快速檢視設定檔</title><summary type='text'>某些檔案是以 # 為註解符號有時候我們只想看我們設了哪些東西，這時候可以這樣做egrep -v '#|^ *$' filename或grep -E -v '#|^ *$' filenameegrep 等同於 grep -E-v 表示列出不符合 pattern 的部份pattern 分為兩部份 # 及 ^ *$表示該行中含有 # 或以一個以上的空白為開頭或結尾的行，也就是空白行。</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/1523223160643413130/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=1523223160643413130' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1523223160643413130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/1523223160643413130'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/07/blog-post.html' title='如何快速檢視設定檔'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9233544.post-2315642345855457936</id><published>2008-06-14T10:57:00.002+08:00</published><updated>2008-06-14T10:59:16.789+08:00</updated><title type='text'>Ubuntu dash -&gt; bash</title><summary type='text'>Ubuntu 上的 /bin/sh -&gt; /bin/dash將之切到 bash 的方法如下sudo dpkg-reconfigure dash選 no</summary><link rel='replies' type='application/atom+xml' href='http://gaznjang.blogspot.com/feeds/2315642345855457936/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9233544&amp;postID=2315642345855457936' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2315642345855457936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9233544/posts/default/2315642345855457936'/><link rel='alternate' type='text/html' href='http://gaznjang.blogspot.com/2008/06/ubuntu-dash-bash.html' title='Ubuntu dash -&gt; bash'/><author><name>GaZn Chang</name><uri>http://www.blogger.com/profile/01041056853112232355</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
