<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>letoh’s workshop</title>
	<atom:link href="http://letoh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://letoh.wordpress.com</link>
	<description>備份用，建議到主站(http://vision.twbbs.org/~letoh/blog/)留言</description>
	<pubDate>Sun, 22 Jun 2008 14:34:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>VirtualBox 1.6.2</title>
		<link>http://letoh.wordpress.com/2008/06/22/virtualbox-162/</link>
		<comments>http://letoh.wordpress.com/2008/06/22/virtualbox-162/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 14:34:55 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/06/22/virtualbox-162/</guid>
		<description><![CDATA[
由於 sane 不支援我的 scanner，為了試試透過 virtualbox 存取 scanner，這兩天在家把新版裝起來玩&#8230;


根據網路上看到的使用心得，新的 1.6.2 版似乎在 usb 的支援上增強不少，但為了在 guest OS 裡抓到 usb device 也費了不少工夫，一度還以為只有 windows 版才有改進&#8230;搞了一個下午才順利偵測到 scanner


網路沒設，主要是處理 usb 的部份，記錄一下大概的步驟：


新增 usbusers 群組，把自己的帳號加進去
修改 /etc/rc.d/rc.S 中 mount usbfs 的命令，加上 -o devgid=&#60;gid of usbusers&#62;,devmode=664 (我用的 distro 是 Slackware)
修改 /etc/udev/rules.d/65-permissions.rules，加一行 SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"
在 virtualbox 中加入 usb device filter (vid 和 pid 可以透過 lsusb 查到)


處理完以後啟動 guest OS 就可以抓到 [...]]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/06/22/virtualbox-162/feed/</wfw:commentRss>
	
		<media:content url="http://lh4.ggpht.com/letoh.tw/SF5d_eA46kI/AAAAAAAAASQ/xefykGNy8W8/s288/working5.jpg" medium="image" />
	</item>
		<item>
		<title>libreadline.so.5: undefined symbol: PC</title>
		<link>http://letoh.wordpress.com/2008/06/21/libreadlineso5-undefined-symbol-pc/</link>
		<comments>http://letoh.wordpress.com/2008/06/21/libreadlineso5-undefined-symbol-pc/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 16:54:02 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/06/21/libreadlineso5-undefined-symbol-pc/</guid>
		<description><![CDATA[
這兩天在 slackware 12.1 環境編譯一個有用到 readline 的程式，可是搞了老半天編譯好的程式都沒有 readline 跟 history 的功能。測試一下發現會出現 undefined symbol 的訊息，按照 maillist 上提供的指令 ldd -d -r /usr/lib/libreadline.so.5.2 出現這些訊息：


	undefined symbol: PC    (/usr/lib/libreadline.so.5.2)
	undefined symbol: UP    (/usr/lib/libreadline.so.5.2)
	undefined symbol: BC    (/usr/lib/libreadline.so.5.2)
	undefined symbol: tgetflag      (/usr/lib/libreadline.so.5.2)
	undefined symbol: tgetent       (/usr/lib/libreadline.so.5.2)
	undefined [...]]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/06/21/libreadlineso5-undefined-symbol-pc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Device driver check page</title>
		<link>http://letoh.wordpress.com/2008/06/15/device-driver-check-page/</link>
		<comments>http://letoh.wordpress.com/2008/06/15/device-driver-check-page/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 09:52:25 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/06/15/deice-driver-check-page/</guid>
		<description><![CDATA[Debian GNU/Linux device driver check page
在 kerneltrap 上看來的網站，把 lspci -n 的結果丟進去即可，相當方便
       ]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/06/15/device-driver-check-page/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ramdisk test</title>
		<link>http://letoh.wordpress.com/2008/06/13/ramdisk-test/</link>
		<comments>http://letoh.wordpress.com/2008/06/13/ramdisk-test/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 15:19:29 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Note]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/06/13/ramdisk-test/</guid>
		<description><![CDATA[
最近弄到 4G ram 可以揮霍，不玩一下 ramdisk 對不起自己&#8230;


首先試著跑一下 64bit Linux 的 Live CD，的確可以直接抓到 4GB 記憶體。不過暫時應該繼續跑 32bit OS，如果不特別處理的話只能抓到 3G 左右的記憶體，因此參考了網路上的一些資料開始做實驗，把 32bit OS 抓不到的空間拿來當 ramdisk 使用


Linux

編輯 kernel 設定，開啟 PAE 後重新編譯安裝 (要選 64GB，如果只選 4GB 重開機後還是只看得到 3.2GB)
設定 tmpfs，若沒有指定大小，預設是系統記憶體最大值的一半 (也就是 2GB)
  
Windows

下載 Gavotte Ramdisk
執行 ram4g.reg 後，執行 ramdisk.exe 設置 ramdisk。圖文版操作可以參考這篇文章
裝完馬上就可以看到 ramdisk 跑出來了，系統內容顯示的記憶體大小一樣是 3.25GB (沒有被 ramdisk 吃掉)
為求保險重開機看看，第一次重開機發生 signal out of range，螢幕沒有畫面 (感覺是我的硬體不穩&#8230;)
強制重開機後順利進入系統，初步看起來正常，而且 boot.ini [...]]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/06/13/ramdisk-test/feed/</wfw:commentRss>
		</item>
		<item>
		<title>upgrade imagemagick on Debian</title>
		<link>http://letoh.wordpress.com/2008/06/13/upgrade-imagemagick-on-debian/</link>
		<comments>http://letoh.wordpress.com/2008/06/13/upgrade-imagemagick-on-debian/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 14:42:23 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Funny]]></category>

		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/06/13/upgrade-imagemagick-on-debian/</guid>
		<description><![CDATA[
我只是想安裝 imagemagick 而已，這是什麼情況&#8230;





所以我說相依性是邪惡的東西阿&#8230;
       ]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/06/13/upgrade-imagemagick-on-debian/feed/</wfw:commentRss>
	
		<media:content url="http://img266.imageshack.us/img266/7208/imagemagickcj5.th.jpg" medium="image" />
	</item>
		<item>
		<title>shell and GNU ls for win32</title>
		<link>http://letoh.wordpress.com/2008/04/27/shell-and-gnu-ls-for-win32/</link>
		<comments>http://letoh.wordpress.com/2008/04/27/shell-and-gnu-ls-for-win32/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 07:25:35 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[ACG]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[Console]]></category>

		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/04/27/shell-and-gnu-ls-for-win32/</guid>
		<description><![CDATA[這兩天回到 Windows 作業，深感不便，所以臨時找了一些工具讓 Windows 可以更好用一些


winbash
tcsh (official)
tcsh (znc)
GNU ls for Windows

玩了一下覺得 winbash 比 tcsh 方便多了，要 cd 到中文目錄也沒問題；tcsh 不管是官方版和日文版都無法輸入中文&#8230;
另外我也試了一下 shell script 的支援，winbash 對於 CRLF 結尾的檔案似乎也能正確執行，這樣在 win32 寫的 script 就不用特地再轉換 file format (借用 vim 的用語) 了。
至於 GNU ls&#8230;以前裝的 UnxUtils 雖然也有附一個 ls，但無法處理中文檔名，列出來會是一堆問號。這次找到的 ls 除了可以顯示中文外，也可以加上顏色 (&#8211;color)，小缺點是有中文時字寬會算錯，大概是 locale 的部份沒有轉換好 (windows 不曉得有沒有相關設定&#8230;)
這篇文章還有一個 tag 是 ACG 要說明一下。znc 版的 tcsh 提供了各種風味的錯誤訊息翻譯，大部份是 ACG 角色的語氣，也有日本方言，只要設定 TCSHLANG [...]]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/04/27/shell-and-gnu-ls-for-win32/feed/</wfw:commentRss>
	
		<media:content url="http://lh4.ggpht.com/letoh.tw/SBQo8_c4GSI/AAAAAAAAAK8/kd61b2iKEs0/s400/tcshwin32.jpg" medium="image" />
	</item>
		<item>
		<title>Psychotic</title>
		<link>http://letoh.wordpress.com/2008/04/13/psychotic/</link>
		<comments>http://letoh.wordpress.com/2008/04/13/psychotic/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 14:47:56 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Funny]]></category>

		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/04/13/psychotic/</guid>
		<description><![CDATA[
今年有一個跟 python 相關的 joke，好像沒看到有人在提&#8230;雖然晚了一點，還是簡單介紹一下 


有人號稱搞了一個比 Psyco 還強大的增速器，叫做 Psychotic，網頁上的聳動介紹，配合煞有其事的 screencast，令人感到 python 充滿無比希望！


不過看了一下原始碼就會知道這一切都是在裝笑維XD


現在網頁上已經明確告知是 joke 了，也提供真正的效能改進建議，不過最後還不忘補上：


	If all of this fails, and you have a command line program with only one set of inputs and outputs :), you can use Psychotic.
	
       ]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/04/13/psychotic/feed/</wfw:commentRss>
		</item>
		<item>
		<title>virtual module in cvs</title>
		<link>http://letoh.wordpress.com/2008/04/02/virtual-module-in-cvs/</link>
		<comments>http://letoh.wordpress.com/2008/04/02/virtual-module-in-cvs/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 02:03:09 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Note]]></category>

		<category><![CDATA[cvs]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/04/02/virtual-module-in-cvs/</guid>
		<description><![CDATA[
最近遇到一個小問題，在 cvs 上的檔案都是以 module 來分類，如果有一個 project 組裝了多個 module，每次要 co 下來總是麻煩。最簡單的方式就是把這些 module 通通搬進同一個目錄，這樣只要把 root module 拉下來就可以了。但是偶爾也會遇到 sub module 被多個 project 所組裝，這時不是將共用的 sub module 多複製幾份，就是把所有 project 都丟進同一個 root module (我知道這種方法蠢到爆&#8230;)。


為了管理上的方便，這幾天照著文件測試一下，果然有類似 virtual module 的設定可以用，不過在文件上用的不是 virtual module 這名字，而是 ampersand module。


這東西的概念很簡單，只要在定義出 root module 需要參考的其他 module 就可以了，這個 root module 指的是 co 時後面接的 module name，可以不用是實際存在的 module (我把這種定義出來的稱為 virtual module)。在 co 時會先下載原本的 module [...]]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/04/02/virtual-module-in-cvs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>blogger 分舵開張</title>
		<link>http://letoh.wordpress.com/2008/03/27/blogger-%e5%88%86%e8%88%b5%e9%96%8b%e5%bc%b5/</link>
		<comments>http://letoh.wordpress.com/2008/03/27/blogger-%e5%88%86%e8%88%b5%e9%96%8b%e5%bc%b5/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 10:21:06 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Note]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/03/27/blogger-%e5%88%86%e8%88%b5%e9%96%8b%e5%bc%b5/</guid>
		<description><![CDATA[
早上去 twbbs.org 更新了帳號和設定，為了測試一下新功能，特地申請了一個 blogger 帳號來玩&#8230;分舵位址是 [http://letoh.twbbs.org]，不過文章要同步更新還得花點時間弄&#8230;
       ]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/03/27/blogger-%e5%88%86%e8%88%b5%e9%96%8b%e5%bc%b5/feed/</wfw:commentRss>
		</item>
		<item>
		<title>highlight GTK+ APIs in vim</title>
		<link>http://letoh.wordpress.com/2008/03/04/highlight-gtk-apis-in-vim/</link>
		<comments>http://letoh.wordpress.com/2008/03/04/highlight-gtk-apis-in-vim/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 04:03:24 +0000</pubDate>
		<dc:creator>letoh</dc:creator>
		
		<category><![CDATA[Note]]></category>

		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://letoh.wordpress.com/2008/03/04/highlight-gtk-apis-in-vim/</guid>
		<description><![CDATA[
找到一個方便的套件，順便抱怨一下在 debian 遇到的怪異相依性問題


這兩天在 apt 上亂找軟體，發現一個叫 vim-syntax-gtk，看起來應該是 vim 的 syntax file，不過要安裝時發現牽扯了一堆莫名其妙的相依性


	~# apt-get install vim-syntax-gtk
	Reading package lists&#8230; Done
	Building dependency tree
	Reading state information&#8230; Done
	The following packages were automatically installed and are no longer required:
	　python2.5 python2.5-minimal
	Use &#8216;apt-get autoremove&#8217; to remove them.
	The following extra packages will be installed:
	　libruby1.8 ruby ruby1.8 vim-addon-manager
	Suggested packages:
	　rdoc1.8 ri1.8 ruby1.8-examples
	The following NEW packages will be installed:
	　libruby1.8 [...]]]></description>
		<wfw:commentRss>http://letoh.wordpress.com/2008/03/04/highlight-gtk-apis-in-vim/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>