<?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:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EragonJ - A humble navigator &#187; OS</title>
	<atom:link href="http://eragonj.hax4.in/blog/category/os/feed" rel="self" type="application/rss+xml" />
	<link>http://eragonj.hax4.in/blog</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 12:33:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>[Mac] change from java 1.5 to 1.6</title>
		<link>http://eragonj.hax4.in/blog/mac-change-from-java-1-5-to-1-6.html</link>
		<comments>http://eragonj.hax4.in/blog/mac-change-from-java-1-5-to-1-6.html#comments</comments>
		<pubDate>Sat, 17 Apr 2010 06:36:01 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[1.6]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java1.6]]></category>
		<category><![CDATA[JFLAP]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[symbolic link]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=419</guid>
		<description><![CDATA[Tweet Original Source 因為最近在試著用JFLAP，而最新版是要搭配Java 1.6才可以執行該.jar檔，但是我們如果去找java執行檔的Version話，通常是1.5的，如下： 那這樣就不太好了，但是從教學中意外可以發現其實1.6的版本是有安裝在裡面的，只是預設的版本卻是1.6(?)，不知道Apple是不是在某次的更新中把Java從1.5更新到1.6但是卻沒改其預設的版本~&#8221;~，不過不重要，現在就是要用Symbolic Link的方式去指向真正的Java 1.6執行檔。 下面就是怎樣做到指向的動作了： OK，現在JFLAP終於可以跑了，開心來畫DFA吧&#8230;(嘆)，我們下次見啦。]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmac-change-from-java-1-5-to-1-6.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/mac-change-from-java-1-5-to-1-6.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/mac-change-from-java-1-5-to-1-6.html"  data-text="[Mac] change from java 1.5 to 1.6" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p><a href="http://blogs.sun.com/cmar/entry/java_1_6_finally_available">Original Source</a><br/><br />
因為最近在試著用JFLAP，而最新版是要搭配Java 1.6才可以執行該.jar檔，但是我們如果去找java執行檔的Version話，通常是1.5的，如下：<script src="http://gist.github.com/369355.js"></script><br />
<span id="more-419"></span><br />
<br/><br />
那這樣就不太好了，但是從教學中意外可以發現其實1.6的版本是有安裝在裡面的，只是預設的版本卻是1.6(?)，不知道Apple是不是在某次的更新中把Java從1.5更新到1.6但是卻沒改其預設的版本~&#8221;~，不過不重要，現在就是要用Symbolic Link的方式去指向真正的Java 1.6執行檔。<br />
<br/><br />
下面就是怎樣做到指向的動作了：<br />
<script src="http://gist.github.com/369358.js"></script><br />
<br/><br />
OK，現在JFLAP終於可以跑了，開心來畫DFA吧&#8230;(嘆)，我們下次見啦。</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/mac-change-from-java-1-5-to-1-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Mac] How to change background images in Terminal.app in Leopard</title>
		<link>http://eragonj.hax4.in/blog/mac-how-to-change-background-images-in-terminal-app-in-leopard.html</link>
		<comments>http://eragonj.hax4.in/blog/mac-how-to-change-background-images-in-terminal-app-in-leopard.html#comments</comments>
		<pubDate>Fri, 02 Apr 2010 05:35:20 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[background images]]></category>
		<category><![CDATA[EragonJ]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminal.app]]></category>
		<category><![CDATA[備份]]></category>
		<category><![CDATA[設定]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=384</guid>
		<description><![CDATA[Tweet 我前幾天被這個問題所困，讓我花了將近3天的時間一直Google一直找資料，最後皇天不負苦心人，終於讓我找到解法了。 之所以會有這個問題是因為在MAC OS X > 10.4之後的版本，也就是在Tiger後這個功能就被Apple拿掉了，雖然我查了很久但還是不知道為什麼他們要把這個功能拿掉。好啦，廢話不多說，開工的時候到囉。 我們現在要做的事情就是先利用10.4 Tiger時的.term的格式來設定我們的Terminal Appearance，直接參考我找到的設定檔如下： 現在直接複製出去成一個YourAppearanceName.term的檔案，對了，別忘了要把BackgroundImagePath下的string改成你背景圖片的實體路徑。用好之後，我們就點開這個.term的檔案，你就會發現開啟了一個全新的Terminal視窗，如下圖： 還蠻酷炫的吧，現在打開偏好設定，就可以看到我們剛剛import進去的Appearance了。 現在就能夠直接對該Appearance做設定啦，唯一一個要求就是不要動到背景顏色的部分，它會把你原本的Image給洗掉。接下來我們用下面齒輪來輸出，就可以得到一個適用於>=10.5版本的termianl的檔案啦。 這樣子以後只要把圖片和整個.terminal設定檔做備份，你的Termianl設定就可以帶著跑囉。對了，別忘了要把你設定好的Appearance設成預設值，要不然你每次開Tab或是Window的時候還是會套用原先的設定檔哦。 最後就是完成圖啦，希望有幫到有同樣困擾的人，我們下次見啦。]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmac-how-to-change-background-images-in-terminal-app-in-leopard.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/mac-how-to-change-background-images-in-terminal-app-in-leopard.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/mac-how-to-change-background-images-in-terminal-app-in-leopard.html"  data-text="[Mac] How to change background images in Terminal.app in Leopard" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>我前幾天被這個問題所困，讓我花了將近3天的時間一直Google一直找資料，最後皇天不負苦心人，終於讓我找到解法了。<br />
<br/><br />
之所以會有這個問題是因為在MAC OS X > 10.4之後的版本，也就是在Tiger後這個功能就被Apple拿掉了，雖然我查了很久但還是不知道為什麼他們要把這個功能拿掉。好啦，廢話不多說，開工的時候到囉。<br />
<br/><br />
我們現在要做的事情就是先利用10.4 Tiger時的.term的格式來設定我們的Terminal Appearance，直接參考我找到的設定檔如下：<br />
<br/><br />
<span id="more-384"></span><br />
<script src="http://gist.github.com/352758.js?file=gistfile1.txt"></script><br />
<br/><br />
現在直接複製出去成一個YourAppearanceName.term的檔案，對了，別忘了要把BackgroundImagePath下的string改成你背景圖片的實體路徑。用好之後，我們就點開這個.term的檔案，你就會發現開啟了一個全新的Terminal視窗，如下圖：<br />
<br/><br />
<a href="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/1.png">
<div style="text-align:center"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/1.png" alt="" title="圖片 1" width="500" height="273" class="alignnone size-medium wp-image-385" /></div>
<p></a><br />
<br/><br />
還蠻酷炫的吧，現在打開偏好設定，就可以看到我們剛剛import進去的Appearance了。<br/><a href="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/2.png">
<div style="text-align:center"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/2.png" alt="" title="圖片 2" width="450" height="356" class="alignnone size-medium wp-image-391" /></div>
<p></a><br />
<br/><br />
現在就能夠直接對該Appearance做設定啦，唯一一個要求就是不要動到背景顏色的部分，它會把你原本的Image給洗掉。接下來我們用下面齒輪來輸出，就可以得到一個適用於>=10.5版本的termianl的檔案啦。<br />
<br/><br />
<a href="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/3.png">
<div style="text-align:center"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/3.png" alt="" title="圖片 3" width="139" height="102" class="alignnone size-full wp-image-396" /></div>
<p></a><br />
<br/><br />
這樣子以後只要把圖片和整個.terminal設定檔做備份，你的Termianl設定就可以帶著跑囉。對了，別忘了要把你設定好的Appearance設成預設值，要不然你每次開Tab或是Window的時候還是會套用原先的設定檔哦。<br />
<br/><br />
最後就是完成圖啦，希望有幫到有同樣困擾的人，我們下次見啦。<br />
<br/><br />
<a href="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/4.png">
<div style="text-align:center"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2010/04/4.png" alt="" title="圖片 4" width="500" height="285" class="alignnone size-medium wp-image-397" /></div>
<p></a></p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/mac-how-to-change-background-images-in-terminal-app-in-leopard.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Mac] Irssi and Terminal.app problems</title>
		<link>http://eragonj.hax4.in/blog/mac-irssi-and-terminal-app-problems.html</link>
		<comments>http://eragonj.hax4.in/blog/mac-irssi-and-terminal-app-problems.html#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:39:22 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[6667]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[irc.freenode.net]]></category>
		<category><![CDATA[irssi]]></category>
		<category><![CDATA[key mapping]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Macbook]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=374</guid>
		<description><![CDATA[Tweet 最近無聊，所以想說來用一下IRC（Internet Relay Chat）來上一些社群的討論室，結果卻發現了一些問題，就在Google一陣子之後就OK了，所以就把這些可能會遇到的問題記錄一下。 一開始的問題是我不知道為什麼一直連不上irc.freenode.net的Server，一查之下才發現TANet有鎖6667，所以沒有辦法和該Port做連結，所以如果是學術網路的使用者，要記得找一下其他可用的Port來連，才不會一直出現Timeout的情況。 另外一個問題就是，當我在使用Irssi之類的程式時，我沒有辦法用 [fn]+[up] or [fn] + [down] 來控制訊息的呈現，反而會直接捲動整個Terminal.app。這是因為兩個Terminal.app和Irssi各有各自的Buffer，所以我們在做 PageDown or PageUp 的時候會混亂，因此我們可以用預設的Key Mapping：「 [shift] + [fn] + [up] 」 or 「 [shift] + [fn] + [down] 」，如果要改變原本的Mapping方式，就打開偏好設定，修改下圖的地方就可以啦。 大概就是這樣啦，我們下次見。]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmac-irssi-and-terminal-app-problems.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/mac-irssi-and-terminal-app-problems.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/mac-irssi-and-terminal-app-problems.html"  data-text="[Mac] Irssi and Terminal.app problems" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>最近無聊，所以想說來用一下IRC（Internet Relay Chat）來上一些社群的討論室，結果卻發現了一些問題，就在Google一陣子之後就OK了，所以就把這些可能會遇到的問題記錄一下。<br />
<br/><br />
一開始的問題是我不知道為什麼一直連不上irc.freenode.net的Server，一查之下才發現TANet有鎖6667，所以沒有辦法和該Port做連結，所以如果是學術網路的使用者，要記得找一下其他可用的Port來連，才不會一直出現Timeout的情況。<br />
<br/><br />
另外一個問題就是，當我在使用Irssi之類的程式時，我沒有辦法用 [fn]+[up] or [fn] + [down] 來控制訊息的呈現，反而會直接捲動整個Terminal.app。這是因為兩個Terminal.app和Irssi各有各自的Buffer，所以我們在做 PageDown or PageUp 的時候會混亂，因此我們可以用預設的Key Mapping：「 [shift] + [fn] + [up] 」 or 「 [shift] + [fn] + [down] 」，如果要改變原本的Mapping方式，就打開偏好設定，修改下圖的地方就可以啦。<br />
<br/><br />
<a href="http://eragonj.hax4.in/blog/wp-content/uploads/2010/03/2.png"><img src="http://eragonj.hax4.in/blog/wp-content/uploads/2010/03/2.png" alt="" title="Terminal.app" width="603" height="482" class="alignnone size-full wp-image-375" /></a><br />
<br/><br />
大概就是這樣啦，我們下次見。</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/mac-irssi-and-terminal-app-problems.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Mac] dock crash</title>
		<link>http://eragonj.hax4.in/blog/mac-dock-crash.html</link>
		<comments>http://eragonj.hax4.in/blog/mac-dock-crash.html#comments</comments>
		<pubDate>Mon, 11 Jan 2010 17:42:00 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[Dock]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[ps]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=42</guid>
		<description><![CDATA[Tweet 之前一直常出現一種狀況，就是有時候整個電腦會停住的感覺，不能用cmd+tab去切分頁、dock整個都不會動。 去查了一下原來是Dock crash的問題，在這邊可以利用ps or top command 搭配上 kill去把該process刪掉，而Dock就會自動重啟了。 因為我是直接grep出來，所以自己的terminal也會被grep到正在做grep Dock的動作，因此只要挑長的像System/Library/CoreServices/Dock.app/Contents/MacOS/Dock -psn_0_4047836的pid就可以了 最後就 kill pid 啦。 2010/01/17✙補充Money說的以process為parameter的另一個指令killall，使用方法如下]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmac-dock-crash.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/mac-dock-crash.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/mac-dock-crash.html"  data-text="[Mac] dock crash" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>之前一直常出現一種狀況，就是有時候整個電腦會停住的感覺，不能用cmd+tab去切分頁、dock整個都不會動。</p>
<p>去查了一下原來是Dock crash的問題，在這邊可以利用ps or top command 搭配上 kill去把該process刪掉，而Dock就會自動重啟了。</p>
<p><script src="http://gist.github.com/277106.js?file=gistfile1.sh"></script></p>
<blockquote><p>因為我是直接grep出來，所以自己的terminal也會被grep到正在做grep Dock的動作，因此只要挑長的像System/Library/CoreServices/Dock.app/Contents/MacOS/Dock -psn_0_4047836的pid就可以了</p></blockquote>
<p>最後就 kill pid 啦。</p>
<p>2010/01/17✙補充Money說的以process為parameter的另一個指令killall，使用方法如下<br />
<script src="http://gist.github.com/279304.js?file=gistfile1.sh"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/mac-dock-crash.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Ubuntu] Scim restart</title>
		<link>http://eragonj.hax4.in/blog/ubuntu-scim-restart.html</link>
		<comments>http://eragonj.hax4.in/blog/ubuntu-scim-restart.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 07:28:00 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[restart]]></category>
		<category><![CDATA[Scim]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=33</guid>
		<description><![CDATA[Tweet sudo pkill ^scim &#038;&#038; scim -d &#038;&#038; scim-bridge scim -d -> Run as a daemon. The program will exit and leave a daemon in the background if invoked with this option. scim-bridge -> another IM client of SCIM. The im-module of scim-bridge communicates with scim via socket 結果還是不太了解他在幹嘛 XD]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fubuntu-scim-restart.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/ubuntu-scim-restart.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/ubuntu-scim-restart.html"  data-text="[Ubuntu] Scim restart" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><blockquote><p>sudo pkill ^scim &#038;&#038; scim -d &#038;&#038; scim-bridge</p></blockquote>
<blockquote><p>scim -d  -> Run as a daemon. The program will exit and leave a daemon in the background if invoked with this option.</p>
<p>scim-bridge -> another IM client of SCIM. The im-module of scim-bridge communicates with scim via socket </p></blockquote>
<p>結果還是不太了解他在幹嘛 XD</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/ubuntu-scim-restart.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[MAC] vi setting , ls color and alias</title>
		<link>http://eragonj.hax4.in/blog/mac-vi-setting-ls-color-and-alias.html</link>
		<comments>http://eragonj.hax4.in/blog/mac-vi-setting-ls-color-and-alias.html#comments</comments>
		<pubDate>Sat, 18 Apr 2009 01:58:00 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=25</guid>
		<description><![CDATA[Tweet 今天一個下午都一直在練習用command line的方式去設定一些東西，現在來報告一下今天研究的結果: 1. vi setting: 因為之前一直看到很多人在用vi/vim來開發程式，所以一定要來學一下，因為他有很多很方便的功能可以讓我們輕易上手，提供我們更高的便利性去design a program。因為MAC是based on Darwin 而且有部分的東西是從FreeBSD來的，所以設定的方法和他們一樣。 因為我不想要去動到core的資料，所以從flexibility的角度來說，我希望每個設定是獨立且不會受到影響的，而前輩們早就想到這些東西，就提供了一個方法，可以在不同user的家目錄下這個指令: vi .vimrc 去設定vi提供的一個user defined的檔案，在這個檔案內做設定，像我就設定成這樣: syntax on hi Comment ctermfg = Greenset hlsearchset expandtabset shiftwidth=2set softtabstop=2set tabstop=2set cindentset autoindentset number 主要是要開啟syntax color，因為打開才看的下去，要不然他原本都是白色的字，看了很難過&#8230;我是看不下去啦= =&#8221; 所以就改下去了，而hlsearch是對search的結果做highlight的動作，而set number則是顯示行號，其他的就是一些tab寬度、縮排的設定，有需要再自己去找一下相關的設定。 2,3 alias and ls color alias 在 Yahoo Dictionary 的意思就是: n. (名詞 noun)化名;別名ad. (副詞 adverb)別名叫;化名為 所以就是可以把已知指令用更簡單的方式來表示，所以我們可以在家目錄找到.profile，就vi它吧! vi .profilealias [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmac-vi-setting-ls-color-and-alias.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/mac-vi-setting-ls-color-and-alias.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/mac-vi-setting-ls-color-and-alias.html"  data-text="[MAC] vi setting , ls color and alias" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>今天一個下午都一直在練習用command line的方式去設定一些東西，現在來報告一下今天研究的結果:</p>
<p>1. vi setting:<br />    因為之前一直看到很多人在用vi/vim來開發程式，所以一定要來學一下，因為他有很多很方便的功能可以讓我們輕易上手，提供我們更高的便利性去design a program。因為MAC是based on Darwin 而且有部分的東西是從FreeBSD來的，所以設定的方法和他們一樣。</p>
<p>    因為我不想要去動到core的資料，所以從flexibility的角度來說，我希望每個設定是獨立且不會受到影響的，而前輩們早就想到這些東西，就提供了一個方法，可以在不同user的家目錄下這個指令:</p>
<p><code><br />    vi .vimrc<br /></code></p>
<p>去設定vi提供的一個user defined的檔案，在這個檔案內做設定，像我就設定成這樣:</p>
<p><code><br />syntax on <br />hi Comment  ctermfg = Green<br />set hlsearch<br />set expandtab<br />set shiftwidth=2<br />set softtabstop=2<br />set tabstop=2<br />set cindent<br />set autoindent<br />set number<br /></code></p>
<blockquote><p>主要是要開啟syntax color，因為打開才看的下去，要不然他原本都是白色的字，看了很難過&#8230;我是看不下去啦= =&#8221; 所以就改下去了，而hlsearch是對search的結果做highlight的動作，而set number則是顯示行號，其他的就是一些tab寬度、縮排的設定，有需要再自己去找一下相關的設定。</p></blockquote>
<p>2,3 alias and ls color<br />    alias 在 Yahoo Dictionary 的意思就是:<br />
<blockquote>n. (名詞 noun)<br />化名;別名<br />ad. (副詞 adverb)<br />別名叫;化名為</p></blockquote>
<p>所以就是可以把已知指令用更簡單的方式來表示，所以我們可以在家目錄找到.profile，就vi它吧!<br /><code><br />    vi .profile<br /></code><br /><code><br />alias ll="ls -al"<br />export CLICOLOR=1<br />export LSCOLORS=dxfxcxdxbxegedabagacad<br /></code><br />
<blockquote>這邊要注意的就是ailas的等號旁邊是不能有space的，有的話會出問題。而根據<a href="http://ayaz.wordpress.com/2007/05/01/freebsd-ls-colour-coded-directoryfile-listings/">FreeBSD `ls’: Colour-coded directory/file listing(s)</a>這篇文章所講的，只要用export CLICOLOR=1，這樣就可以開啟顏色的功能，不過也是可以用 alias ls=&#8221;ls -G&#8221;，同樣可以達到我們要的效果</p></blockquote>
<blockquote><p>      The color designators are as follows:<br />                           a     black<br />                           b     red<br />                           c     green<br />                           d     brown<br />                           e     blue<br />                           f     magenta<br />                           g     cyan<br />                           h     light grey<br />                           A     bold black, usually shows up as dark grey<br />                           B     bold red<br />                           C     bold green<br />                           D     bold brown, usually shows up as yellow<br />                           E     bold blue<br />                           F     bold magenta<br />                           G     bold cyan<br />                           H     bold light grey; looks like bright white<br />                           x     default foreground or background<br />                     Note that the above are standard ANSI colors.  The actual display may differ depending<br />                     on the color capabilities of the terminal in use.</p></blockquote>
<p>
<blockquote>             The order of the attributes are as follows:</p>
<p>                           1.   directory<br />                           2.   symbolic link<br />                           3.   socket<br />                           4.   pipe<br />                           5.   executable<br />                           6.   block special<br />                           7.   character special<br />                           8.   executable with setuid bit set<br />                           9.   executable with setgid bit set<br />                           10.  directory writable to others, with sticky bit<br />                           11.  directory writable to others, without sticky bit</p>
<p>                     The default is &#8220;exfxcxdxbxegedabagacad&#8221;,<br />                     for regular directories, black foreground and red background for setuid executables,<br />                     etc.</p></blockquote>
<p>大概就是這樣，看還有想到什麼再來補上!</p>
<p>δ 最新的<a href="http://eragonj.hax4.in/?p=359">文章</a>，有為MAC OSX 設計的LS color Picker，有興趣的朋友可以用用看並給我一些建議:P~</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/mac-vi-setting-ls-color-and-alias.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[MAC] 建立工作環境</title>
		<link>http://eragonj.hax4.in/blog/mac-%e5%bb%ba%e7%ab%8b%e5%b7%a5%e4%bd%9c%e7%92%b0%e5%a2%83.html</link>
		<comments>http://eragonj.hax4.in/blog/mac-%e5%bb%ba%e7%ab%8b%e5%b7%a5%e4%bd%9c%e7%92%b0%e5%a2%83.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 00:18:00 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[working envrionment]]></category>
		<category><![CDATA[工作環境]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=21</guid>
		<description><![CDATA[Tweet 剛上網看了一下文章 , 發現 Leopard 10.5.6 有內建 apache 和 php , 整個就是超合我的工作環境的呀 , 就差要怎麼把他們給用出來啦 第一步要先來到這邊: sudo vi /etc/apache2/httpd.conf 然後把PHP打開 LoadModule php_module 再來就Restart apache , 就可以寫PHP了! 再回到 /etc 把default的php.ini.default 複製一分出去 , 這樣舊的就可以當備分用 sudo cp php.ini.dafault php.ini 最後再打開網頁共享 系統偏好設定/共享/網頁共享 就可以用上面的路徑去讀我們的網頁啦~ BTW , 我們的網頁存放的資料夾是在 /Users/你的家目錄名稱/sites]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmac-%25e5%25bb%25ba%25e7%25ab%258b%25e5%25b7%25a5%25e4%25bd%259c%25e7%2592%25b0%25e5%25a2%2583.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/mac-%e5%bb%ba%e7%ab%8b%e5%b7%a5%e4%bd%9c%e7%92%b0%e5%a2%83.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/mac-%e5%bb%ba%e7%ab%8b%e5%b7%a5%e4%bd%9c%e7%92%b0%e5%a2%83.html"  data-text="[MAC] 建立工作環境" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>剛上網看了一下文章 , 發現 Leopard 10.5.6 有內建 apache 和 php , 整個就是超合我的工作環境的呀 , 就差要怎麼把他們給用出來啦 </p>
<p>第一步要先來到這邊:<br />
<blockquote>sudo vi /etc/apache2/httpd.conf</p></blockquote>
<p>然後把PHP打開<br />
<blockquote>LoadModule php_module</p></blockquote>
<p>再來就Restart apache , 就可以寫PHP了! </p>
<p>再回到<br />
<blockquote>/etc</p></blockquote>
<p>把default的php.ini.default 複製一分出去 , 這樣舊的就可以當備分用<br />
<blockquote>sudo cp php.ini.dafault php.ini</p></blockquote>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pc8tmdmfVyg/Sa-PQb8rqKI/AAAAAAAAAHU/FjXsj5E4_gQ/s1600-h/%E5%9C%96%E7%89%87+1.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 262px;" src="http://2.bp.blogspot.com/_pc8tmdmfVyg/Sa-PQb8rqKI/AAAAAAAAAHU/FjXsj5E4_gQ/s320/%E5%9C%96%E7%89%87+1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5309619998236059810" /></a></p>
<p>最後再打開網頁共享 <br />
<blockquote>系統偏好設定/共享/網頁共享</p></blockquote>
<p>就可以用上面的路徑去讀我們的網頁啦~</p>
<p>BTW , 我們的網頁存放的資料夾是在<br />
<blockquote>/Users/你的家目錄名稱/sites</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/mac-%e5%bb%ba%e7%ab%8b%e5%b7%a5%e4%bd%9c%e7%92%b0%e5%a2%83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[MAC] Macbook到手- 白狼</title>
		<link>http://eragonj.hax4.in/blog/macbook%e5%88%b0%e6%89%8b-%e7%99%bd%e7%8b%bc.html</link>
		<comments>http://eragonj.hax4.in/blog/macbook%e5%88%b0%e6%89%8b-%e7%99%bd%e7%8b%bc.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 07:13:00 +0000</pubDate>
		<dc:creator>EragonJ</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Macbook]]></category>
		<category><![CDATA[白狼]]></category>

		<guid isPermaLink="false">http://eragonj.hax4.in/?p=20</guid>
		<description><![CDATA[Tweet 哈哈~ 我等這台等好久了= = 其實是在2009/03/03的時候買的,只是因為太累了所以我忘記打 , 就拖到這天再來補打一下我買MAC的事情啦!其實會買到這台也是很誇張 , 因為我那天中午跑去校園店找店長-Kimmy , 問他說我訂的那台有沒有來 , 而就在他打完電話去確認後 , 竟然發現可以立刻出一台給我= = , 所以就在下午1點多電腦就到了 &#8230; 有沒有這麼有效率 &#8230; 要賺錢也不是賺的這麼誇張阿 = = , 而我只好等到晚上再去拿電腦 , 因為課太多了! 到了晚上 , 就叫小夫陪我去拿那台電腦 , 結果誰知道因為我沒有超過20歲 , 所以要辦分期就要好多麻煩的手續= = , 我一直很怕我媽影印這麼多影本再傳真應該會發瘋然後罵我 orz , 不過還好他都沒有什麼大動作 , 反而很快的就幫我把需要的資料給弄到手了 XD , 寫完資料後就要打電話跟家人說等等電腦總公司會有人打電話去CHECK我的身份 , 因為要分期好像要做個簡單的身家調查 , 害我打給我哥提醒他的時候 , 他還在上課呢 , 真扯 , [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Feragonj.hax4.in%2Fblog%2Fmacbook%25e5%2588%25b0%25e6%2589%258b-%25e7%2599%25bd%25e7%258b%25bc.html&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=85px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://eragonj.hax4.in/blog/macbook%e5%88%b0%e6%89%8b-%e7%99%bd%e7%8b%bc.html"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://eragonj.hax4.in/blog/macbook%e5%88%b0%e6%89%8b-%e7%99%bd%e7%8b%bc.html"  data-text="[MAC] Macbook到手- 白狼" data-count="horizontal" data-via="EragonJ">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pc8tmdmfVyg/Sa6a0abkfZI/AAAAAAAAAHM/nYidPzkMURY/s1600-h/DSC00567.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_pc8tmdmfVyg/Sa6a0abkfZI/AAAAAAAAAHM/nYidPzkMURY/s320/DSC00567.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5309351235955228050" /></a></p>
<p>哈哈~ 我等這台等好久了= = 其實是在2009/03/03的時候買的,只是因為太累了所以我忘記打 , 就拖到這天再來補打一下我買MAC的事情啦!其實會買到這台也是很誇張 , 因為我那天中午跑去校園店找店長-Kimmy , 問他說我訂的那台有沒有來 , 而就在他打完電話去確認後 , 竟然發現可以立刻出一台給我= = , 所以就在下午1點多電腦就到了 &#8230; 有沒有這麼有效率 &#8230; 要賺錢也不是賺的這麼誇張阿 = = , 而我只好等到晚上再去拿電腦 , 因為課太多了!</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_pc8tmdmfVyg/Sa6asBfG3vI/AAAAAAAAAHE/HLv_WZP_MfU/s1600-h/DSC00568.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_pc8tmdmfVyg/Sa6asBfG3vI/AAAAAAAAAHE/HLv_WZP_MfU/s320/DSC00568.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5309351091820224242" /></a></p>
<p>到了晚上 , 就叫小夫陪我去拿那台電腦 , 結果誰知道因為我沒有超過20歲 , 所以要辦分期就要好多麻煩的手續= = , 我一直很怕我媽影印這麼多影本再傳真應該會發瘋然後罵我 orz , 不過還好他都沒有什麼大動作 , 反而很快的就幫我把需要的資料給弄到手了 XD , 寫完資料後就要打電話跟家人說等等電腦總公司會有人打電話去CHECK我的身份 , 因為要分期好像要做個簡單的身家調查 , 害我打給我哥提醒他的時候 , 他還在上課呢 , 真扯 , 不過還好之後大家都幫我Hold住了!! 更棒的是 , Kimmy 剛好幫我問到 , 有學生12期免息分期 , 整個就是超爽的阿!! 所以我就改選擇這個方案 , 以32900分12期的價格弄到手啦 , 喔耶:D~ 這樣我就有自己的筆電了!</p>
<p>BTW , 我的小白的綽號叫做白狼 而小夫的叫做銀狐 , 以後兩個人帶出去整個就超有FU的啦~ 酷炫!</p>
]]></content:encoded>
			<wfw:commentRss>http://eragonj.hax4.in/blog/macbook%e5%88%b0%e6%89%8b-%e7%99%bd%e7%8b%bc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

