<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>小斌睡著了&#187; 技術指南</title>
	<atom:link href="http://shiaobin.dyndns.org/blog/archives/tag/manual/feed" rel="self" type="application/rss+xml" />
	<link>http://shiaobin.dyndns.org/blog</link>
	<description>原創風行 Ctrl [V]</description>
	<lastBuildDate>Wed, 21 Oct 2009 20:38:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/tw/</creativeCommons:license>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://shiaobin.dyndns.org/blog/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>Plurk 自動發噗保卡馬</title>
		<link>http://shiaobin.dyndns.org/blog/archives/159</link>
		<comments>http://shiaobin.dyndns.org/blog/archives/159#comments</comments>
		<pubDate>Sun, 11 Oct 2009 22:05:59 +0000</pubDate>
		<dc:creator>小斌</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[技術指南]]></category>
		<category><![CDATA[資訊技術]]></category>

		<guid isPermaLink="false">http://shiaobin.dyndns.org/blog/?p=159</guid>
		<description><![CDATA[有時可能會有一段時間沒辦法用 Plurk 。此時如果不想讓卡馬下降，除了開啟假期模式以外，也可以參考「never4get 的記事本: [PHP 筆記] 發個私噗給自己」，利用程式定時自動發私噗給自己。在這裡稍微說明一下利用 Ubuntu Linux 系統實做的步驟。


Ubuntu 系統預設是沒有 CLI 跟 cURL 的，所以執行以下的指令來安裝：
sudo apt-get install php5-cli php5-curl

安裝完 cURL 之後，執行以下的指令重新啟動 Apache ，這樣 cURL 才會生效：
sudo /etc/init.d/apache2 restart

之後，新增 plurkbot.php ，內容如下：
&#60;?php
	header('Content-type:text/html; charset=utf-8');
	define('NICKNAME', ''); //輸入 PLURK 的帳號
	define('PASSWORD', ''); //輸入 PLURK 的密碼
	$user_id = getid(NICKNAME);
	define('USER_ID', &#34;$user_id&#34;);
	set_time_limit(240);

	// login
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_COOKIEJAR, '\plurk_cookie_n.txt');
	curl_setopt($ch, CURLOPT_URL, 'http://www.plurk.com/Users/login');
	curl_setopt($ch, CURLOPT_POSTFIELDS, 'nick_name='.NICKNAME.'&#38;password='.PASSWORD);
	curl_exec($ch);
	curl_close($ch);

	//

	date_default_timezone_set(&#34;Asia/Taipei&#34;);
	$out = date(&#34;Y-m-d H:i:s&#34;);
	echo [...]]]></description>
			<content:encoded><![CDATA[<p>有時可能會有一段時間沒辦法用 Plurk 。此時如果不想讓卡馬下降，除了開啟假期模式以外，也可以參考「<a href="http://i-never4get.blogspot.com/2009/04/php.html">never4get 的記事本: [PHP 筆記] 發個私噗給自己</a>」，利用程式定時自動發私噗給自己。在這裡稍微說明一下利用 Ubuntu Linux 系統實做的步驟。</p>
<p><span id="more-159"></span></p>
<ol>
<li>Ubuntu 系統預設是沒有 CLI 跟 cURL 的，所以執行以下的指令來安裝：</p>
<pre class="brush: bash;">sudo apt-get install php5-cli php5-curl</pre>
</li>
<li>安裝完 cURL 之後，執行以下的指令重新啟動 Apache ，這樣 cURL 才會生效：
<pre class="brush: bash;">sudo /etc/init.d/apache2 restart</pre>
</li>
<li>之後，新增 plurkbot.php ，內容如下：
<pre class="brush: php;">&lt;?php
	header('Content-type:text/html; charset=utf-8');
	define('NICKNAME', ''); //輸入 PLURK 的帳號
	define('PASSWORD', ''); //輸入 PLURK 的密碼
	$user_id = getid(NICKNAME);
	define('USER_ID', &quot;$user_id&quot;);
	set_time_limit(240);

	// login
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_COOKIEJAR, '\plurk_cookie_n.txt');
	curl_setopt($ch, CURLOPT_URL, 'http://www.plurk.com/Users/login');
	curl_setopt($ch, CURLOPT_POSTFIELDS, 'nick_name='.NICKNAME.'&amp;password='.PASSWORD);
	curl_exec($ch);
	curl_close($ch);

	//

	date_default_timezone_set(&quot;Asia/Taipei&quot;);
	$out = date(&quot;Y-m-d H:i:s&quot;);
	echo $out;
	post($out);

	function post($message){
		// post
		$ch3 = curl_init();
		curl_setopt($ch3, CURLOPT_COOKIEFILE, '\plurk_cookie_n.txt');
		curl_setopt($ch3, CURLOPT_URL, 'http://www.plurk.com/TimeLine/addPlurk');
		curl_setopt($ch3, CURLOPT_POSTFIELDS, 'qualifier=gives&amp;limited_to=%5B'.USER_ID.'%5D&amp;lang=tr_ch&amp;uid='.USER_ID.'&amp;no_comments=0&amp;content='.$message);
		curl_exec($ch3);
		curl_close($ch3);
	}

	function getid($name){
		$ourl= 'http://plurk.com/'.NICKNAME;
		$fid = file_get_contents($ourl);
		preg_match('/user_id\&quot;: (.*?)\,/s',$fid,$matches);
		$u_id = $matches[1];
		return($u_id);
	}
?&gt;</pre>
<p>帳號跟密碼記得要設定唷。確認一下 plurkbot.php 的絕對路徑；這裡以 &quot;/home/username/bin/plurkbot.php&quot; 為例。</li>
<li>最後，再利用 crontab 讓這個程式定期自動執行即可。執行：
<pre class="brush: bash;">crontab -e</pre>
<p>新增以下內容：</p>
<pre class="brush: plain;"># 每隔四小時噗浪自動發噗
0 */4 * * * /usr/bin/php /home/username/bin/plurkbot.php</pre>
<p>這裡的 &quot;/home/username/bin/plurkbot.php&quot; 應該要跟剛剛確認過的 plurkbot.php 絕對路徑相同。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://shiaobin.dyndns.org/blog/archives/159/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/tw/</creativeCommons:license>
	</item>
		<item>
		<title>FreeBSD on USB &#8211; Part 1</title>
		<link>http://shiaobin.dyndns.org/blog/archives/31</link>
		<comments>http://shiaobin.dyndns.org/blog/archives/31#comments</comments>
		<pubDate>Sun, 07 Dec 2008 18:12:48 +0000</pubDate>
		<dc:creator>小斌</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[技術指南]]></category>
		<category><![CDATA[資訊技術]]></category>

		<guid isPermaLink="false">http://shiaobin.dyndns.org/blog/?p=31</guid>
		<description><![CDATA[前言
這是一個教您如何在 USB 隨身碟上安裝 FreeBSD 作業系統的指引。您將會在隨身碟上安裝 FreeBSD 作業系統、啟用 ssh 服務、以及安裝 KDE 桌面環境。
Part 1 將告訴您該如何在 USB 隨身碟裝好 FreeBSD 並用裝好作業系統的隨身碟開機，還有關機。
快速步驟

使用 FreeBSD 7.0-RELEASE 安裝光碟第一片開機，開始安裝。
選擇國籍 。
選擇鍵盤對應 。
Custom 自訂安裝。
Options, Partition, Label, Distributions, Media, Commit 各做一次 。
設定網路 。
重開機，用隨身碟開機。
用 root 登入。
重開機/關機。

以下是詳細的解說。

事前準備
請下載 FreeBSD 7.0-RELEASE 安裝光碟第一片以及第二片的光碟映像檔，燒成光碟。
請準備一支隨身碟，大小至少要有 2G 。

▲將您要操作的電腦主機的 IP 位址、子網路遮罩、預設閘道、以及 DNS 伺服器抄起來備用。
安裝最基本的作業系統
請將安裝光碟第一片放入光碟機，隨身碟也一起插上去，用光碟開機。關於如何選擇開機裝置，請看您的主機板說明書。

▲出現這個畫面時，請按一下 Enter 或等 10 秒鐘。裝好以後每次開機都會出現這畫面，請比照辦理。

▲過一段時間後，就會出現選擇國家的畫面了。請選擇 215 Taiwan 並按一下 Enter 。（之後要選擇選項的場合，只要沒有特別說明的話，都是一樣用 Enter 按鍵選擇。）

▲選擇鍵盤的形式。這裡請直接選用預設的 USA ISO [...]]]></description>
			<content:encoded><![CDATA[<h3>前言</h3>
<p>這是一個教您如何在 USB 隨身碟上安裝 FreeBSD 作業系統的指引。您將會在隨身碟上安裝 FreeBSD 作業系統、啟用 ssh 服務、以及安裝 KDE 桌面環境。</p>
<p>Part 1 將告訴您該如何在 USB 隨身碟裝好 FreeBSD 並用裝好作業系統的隨身碟開機，還有關機。</p>
<h3>快速步驟</h3>
<ol>
<li>使用 FreeBSD 7.0-RELEASE 安裝光碟第一片開機，開始安裝。</li>
<li>選擇國籍 。</li>
<li>選擇鍵盤對應 。</li>
<li>Custom 自訂安裝。</li>
<li>Options, Partition, Label, Distributions, Media, Commit 各做一次 。</li>
<li>設定網路 。</li>
<li>重開機，用隨身碟開機。</li>
<li>用 root 登入。</li>
<li>重開機/關機。</li>
</ol>
<p>以下是詳細的解說。</p>
<p><span id="more-31"></span></p>
<h3>事前準備</h3>
<p>請下載 FreeBSD 7.0-RELEASE 安裝光碟<a href="ftp://ftp.tw.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc1.iso">第一片</a>以及<a href="ftp://ftp.tw.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc2.iso">第二片</a>的光碟映像檔，燒成光碟。</p>
<p>請準備一支隨身碟，大小至少要有 2G 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0000.png"><img class="alignnone size-full wp-image-32" title="0000" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0000.png" alt="" width="404" height="423" /></a><br />
▲將您要操作的電腦主機的 <strong>IP 位址</strong>、<strong>子網路遮罩</strong>、<strong>預設閘道</strong>、以及 <strong>DNS 伺服器</strong>抄起來備用。</p>
<h3>安裝最基本的作業系統</h3>
<p>請將安裝光碟第一片放入光碟機，隨身碟也一起插上去，用光碟開機。關於如何選擇開機裝置，請看您的主機板說明書。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0001.png"><img class="alignnone size-full wp-image-33" title="0001" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0001.png" alt="" width="500" height="277" /></a><br />
▲出現這個畫面時，請<strong>按一下 Enter</strong> 或<strong>等 10 秒鐘</strong>。裝好以後每次開機都會出現這畫面，請比照辦理。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0002.png"><img class="alignnone size-full wp-image-34" title="0002" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0002.png" alt="" width="500" height="277" /></a><br />
▲過一段時間後，就會出現選擇國家的畫面了。請<strong>選擇 215 Taiwan</strong> 並<strong>按一下 Enter</strong> 。（之後要選擇選項的場合，只要沒有特別說明的話，都是一樣用 Enter 按鍵選擇。）</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0003.png"><img class="alignnone size-full wp-image-35" title="0003" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0003.png" alt="" width="500" height="277" /></a><br />
▲選擇鍵盤的形式。這裡請直接選用預設的 <strong>USA ISO</strong> 選項 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0004.png"><img class="alignnone size-full wp-image-36" title="0004" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0004.png" alt="" width="500" height="277" /></a><br />
▲進入了系統安裝的主畫面。因為是裝在 USB 隨身碟上，所以只選擇部份的元件來安裝以節省容量。請選擇 <strong>Custom</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0005.png"><img class="alignnone size-full wp-image-37" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0005.png" alt="" width="500" height="277" /></a><br />
▲這裡一共有 6 個項目，每一項都會做一次。首先請選擇 <strong>2 Options</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0006.png"><img class="alignnone size-full wp-image-38" title="0006" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0006.png" alt="" width="500" height="277" /></a><br />
▲這裡有很多項目可以調整。目前不去改這些選項，請直接按 <strong>Q</strong> 離開此畫面。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0007.png"><img class="alignnone size-full wp-image-39" title="0007" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0007.png" alt="" width="500" height="277" /></a><br />
▲接下來請選 <strong>3 Partition</strong> 進行磁碟分割。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0008.png"><img class="alignnone size-full wp-image-40" title="0008" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0008.png" alt="" width="499" height="324" /></a><br />
▲安裝程式詢問您要對哪些磁碟做分割；其中 ad 開頭的都是 IDE 硬碟，而 da 開頭的才是隨身碟。請選擇 <strong>da0</strong> 的項目。</p>
<p><strong>小心</strong>：請不要選到 ad0 ，否則安裝時將會破壞硬碟上的資料。這裡是整個過程中最需要格外注意的步驟，不要選錯喔。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0009.png"><img class="alignnone size-full wp-image-41" title="0009" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0009.png" alt="" width="499" height="324" /></a><br />
▲硬碟分割的畫面。請先確認一下 Disk name 是否為 <strong>da0</strong> ，以及磁碟容量是否為<strong>您隨身碟的大小</strong>。如果發現磁碟容量是五位數以上的話，就是您選錯磁碟選到硬碟了，請重頭再來一遍。</p>
<p>確認無誤後，請選<strong>不是 unused</strong> 的部份，按一下 <strong>D</strong> 刪除分割區。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0010.png"><img class="alignnone size-full wp-image-42" title="0010" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0010.png" alt="" width="499" height="324" /></a><br />
▲刪除完之後，您應該就只剩下一個 unused 的分割區了。請按一下 <strong>A</strong> 使用整個磁碟。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0011.png"><img class="alignnone size-full wp-image-43" title="0011" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0011.png" alt="" width="499" height="324" /></a><br />
▲安裝程式自動使用了整個磁碟來進行安裝。請按一下 <strong>Q</strong> 離開此畫面。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0012.png"><img class="alignnone size-full wp-image-44" title="0012" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0012.png" alt="" width="500" height="277" /></a><br />
▲安裝程式詢問您是否要使用開機管理程式。因為沒有要弄多重開機系統，請選擇 <strong>Stanrard</strong> 選項，不安裝開機管理程式。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0013.png"><img class="alignnone size-full wp-image-45" title="0013" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0013.png" alt="" width="499" height="324" /></a><br />
▲同樣的畫面又出現了，只不過這次 da0 選項出現了被選起來的 X 符號，表示您已經對 da0 做好了設定。請按 <strong>Tab</strong> 將游標移到 <strong>OK</strong> 的選項上，按一下 <strong>Enter</strong> 。（之後只要是需要選擇下方橫列選項的場合，都請使用 Tab 按鍵來做選擇。）</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0014.png"><img class="alignnone size-full wp-image-46" title="0014" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0014.png" alt="" width="500" height="277" /></a><br />
▲又回到這個地方了。請選擇 <strong>4 Label</strong> 選項進行已分割磁碟空間的分配。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0015.png"><img class="alignnone size-full wp-image-47" title="0015" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0015.png" alt="" width="499" height="324" /></a><br />
▲在此，請直接按一下 <strong>A</strong> ，讓安裝程式自動替您分配空間即可。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0016.png"><img class="alignnone size-full wp-image-48" title="0016" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0016.png" alt="" width="499" height="324" /></a><br />
▲安裝程式自動分配的結果看起來會像是這個樣子。請按一下 <strong>Q</strong> 離開此畫面。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0017.png"><img class="alignnone size-full wp-image-49" title="0017" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0017.png" alt="" width="500" height="277" /></a><br />
▲請選擇 <strong>5 Distributions</strong> 選項，進行安裝元件的選擇。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0018.png"><img class="alignnone size-full wp-image-50" title="0018" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0018.png" alt="" width="500" height="277" /></a><br />
▲請選擇最下面的 <strong>B Custom</strong> 選項，自訂安裝元件的選擇。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0019.png"><img class="alignnone size-full wp-image-51" title="0019" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0019.png" alt="" width="500" height="277" /></a><br />
▲要能夠開機，至少要裝 base 以及 kernels 才行。手冊也很重要，所以 man 也建議您裝起來。請選擇 <strong>base</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0020.png"><img class="alignnone size-full wp-image-52" title="0020" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0020.png" alt="" width="500" height="277" /></a><br />
▲接著請選 <strong>kernels</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0021.png"><img class="alignnone size-full wp-image-53" title="0021" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0021.png" alt="" width="500" height="277" /></a><br />
▲在此要選擇安裝哪一種核心。目前只有一種 <strong>GENERIC</strong> 可選，請選擇這項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0022.png"><img class="alignnone size-full wp-image-54" title="0022" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0022.png" alt="" width="500" height="277" /></a><br />
▲您會發現 GENERIC 項目被選起來了。請按 Tab 選擇 <strong>OK</strong> 選項。（在這裡選 <strong>X Exit</strong> 也一樣可以。）</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0023.png"><img class="alignnone size-full wp-image-55" title="0023" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0023.png" alt="" width="500" height="277" /></a><br />
▲最後，請選擇 <strong>man</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0024.png"><img class="alignnone size-full wp-image-56" title="0024" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0024.png" alt="" width="500" height="277" /></a><br />
▲確認 base 、 kernels 以及 man 都選起來後，請選擇 <strong>X Exit</strong> 回到上一層選單。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0025.png"><img class="alignnone size-full wp-image-57" title="0025" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0025.png" alt="" width="500" height="277" /></a><br />
▲然後再選 <strong>X Exit</strong> 回到上一層選單。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0026.png"><img class="alignnone size-full wp-image-58" title="0026" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0026.png" alt="" width="500" height="277" /></a><br />
▲終於快好啦。請選 <strong>6 Media</strong> 選擇安裝來源。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0027.png"><img class="alignnone size-full wp-image-59" title="0027" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0027.png" alt="" width="500" height="277" /></a><br />
▲請選擇 <strong>1 CD/DVD</strong> 使用光碟來安裝。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0028.png"><img class="alignnone size-full wp-image-60" title="0028" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0028.png" alt="" width="500" height="277" /></a><br />
▲所有的安裝前設定都完成了！請選擇 <strong>7 Commit</strong> 開始進行安裝。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0029.png"><img class="alignnone size-full wp-image-61" title="0029" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0029.png" alt="" width="500" height="277" /></a><br />
▲因為磁碟上原有資料都會全部消除的關係，安裝程式向您進行最終確認。覺得沒問題的話，就請選擇 <strong>Yes</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0030.png"><img class="alignnone size-full wp-image-62" title="0030" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0030.png" alt="" width="500" height="277" /></a><br />
▲正在安裝中，請稍等，休息一下。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0031.png"><img class="alignnone size-full wp-image-63" title="0031" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0031.png" alt="" width="500" height="277" /></a><br />
▲應該不用多久，就會裝好了。安裝程式詢問您是否要做些安裝後的設定，請選擇 <strong>Yes</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0032.png"><img class="alignnone size-full wp-image-64" title="0032" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0032.png" alt="" width="500" height="277" /></a><br />
▲在這裡先進行網路的設定，之後就可以省去一次重開機的麻煩了。請選擇 <strong>Networking</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0033.png"><img class="alignnone size-full wp-image-65" title="0033" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0033.png" alt="" width="500" height="277" /></a><br />
▲請選擇 <strong>Interfaces</strong> 項目，對網路卡進行設定。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0034.png"><img class="alignnone size-full wp-image-66" title="0034" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0034.png" alt="" width="500" height="277" /></a><br />
▲請選擇<strong>網路卡的型號</strong>；以這裡的例子，是選擇 em0 Inter(R) PRO/1000 Ethernet card 。不同的網路卡，看起來可能會不太一樣，請自行判斷一下。通常會是第一個。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0035.png"><img class="alignnone size-full wp-image-67" title="0035" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0035.png" alt="" width="500" height="277" /></a><br />
▲不要使用 IPv6 組態，請選擇 <strong>No</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0036.png"><img class="alignnone size-full wp-image-68" title="0036" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0036.png" alt="" width="500" height="277" /></a><br />
▲不使用 DHCP 組態，請選擇 <strong>No</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0037.png"><img class="alignnone size-full wp-image-69" title="0037" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0037.png" alt="" width="500" height="277" /></a><br />
▲請拿出您之前抄下來的 IP 位址，填入這個表。請使用 <strong>Tab</strong> 以及 <strong>Shift+Tab</strong> 在不同的欄位中移動。</p>
<p>目前 Host 跟 Domain 暫時沒用到，可隨意設定。Extra options to ifconfig 請留空不填寫。</p>
<p>如果您不太了解各項目的意義，這裡有個對照表提供您參考：</p>
<ul>
<li>IPv4 Gateway = 預設閘道</li>
<li>Name server = DNS 伺服器</li>
<li>IPv4 Address = IP 位址</li>
<li>Netmask = 子網路遮罩</li>
</ul>
<p>全部填寫完成後，請選擇 <strong>OK</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0038.png"><img class="alignnone size-full wp-image-70" title="0038" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0038.png" alt="" width="500" height="277" /></a><br />
▲安裝程式詢問您是否要啟動剛剛設定好的網路卡。請選擇 <strong>Yes</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0039.png"><img class="alignnone size-full wp-image-71" title="0039" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0039.png" alt="" width="500" height="277" /></a><br />
▲接著就要結束安裝程式重開機了。請選擇 <strong>X Exit</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0040.png"><img class="alignnone size-full wp-image-72" title="0040" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0040.png" alt="" width="500" height="277" /></a><br />
▲繼續選擇 <strong>X Exit</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0041.png"><img class="alignnone size-full wp-image-73" title="0041" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0041.png" alt="" width="500" height="277" /></a><br />
▲還是選擇 <strong>X Exit</strong> 選項。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0042.png"><img class="alignnone size-full wp-image-74" title="0042" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0042.png" alt="" width="500" height="277" /></a><br />
▲選擇下面的 <strong>X Exit Install</strong> ，離開安裝程式。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0043.png"><img class="alignnone size-full wp-image-75" title="0043" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0043.png" alt="" width="500" height="277" /></a><br />
▲安裝程式向您確認是否真的要離開了。請將光碟拿出來後，選 <strong>Yes</strong> 重開機。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0044.png"><img class="alignnone size-full wp-image-76" title="0044" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0044.png" alt="" width="500" height="277" /></a><br />
▲之後，請用隨身碟開機，直到出現等待登入的畫面。請輸入 <strong>root</strong> ，按 <strong>Enter</strong> 。</p>
<p><a href="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0045.png"><img class="alignnone size-full wp-image-77" title="0045" src="http://shiaobin.dyndns.org/blog/wp-content/uploads/2008/12/0045.png" alt="" width="500" height="277" /></a><br />
▲沒有意外的話，您就會看到登入後的畫面了。恭喜您，您已經成功地將 FreeBSD 裝在 USB 隨身碟上並且確認可開機了。</p>
<h3>如何關機與重開機</h3>
<p>直接按電源鈕關機或重開機，可能會造成資料毀損的問題。請確實依照以下的方法進行關機或重開機。</p>
<h4>重開機</h4>
<p>先執行兩三次 sync ，再執行 reboot 就可以了。您可以將這些指令濃縮成一行，不同的指令用分號隔開，像這樣：</p>
<p><strong>sync;sync;reboot</strong></p>
<h4>關機</h4>
<p>先執行兩三次 sync ，再執行 halt -p 就可以了。您可以將這些指令濃縮成一行，不同的指令用分號隔開，像這樣：</p>
<p><strong>sync;sync;halt -p</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://shiaobin.dyndns.org/blog/archives/31/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/tw/</creativeCommons:license>
	</item>
		<item>
		<title>逢甲大學的公開 Google 日曆</title>
		<link>http://shiaobin.dyndns.org/blog/archives/21</link>
		<comments>http://shiaobin.dyndns.org/blog/archives/21#comments</comments>
		<pubDate>Sun, 23 Dec 2007 13:37:46 +0000</pubDate>
		<dc:creator>小斌</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[技術指南]]></category>
		<category><![CDATA[資訊技術]]></category>

		<guid isPermaLink="false">http://shiaobin.dyndns.org/blog/archives/21</guid>
		<description><![CDATA[對逢甲大學的學生而言，這應該是一個很方便的東西吧。
剛剛在逢甲大學首頁發現有個「校園行事曆」的連結，點進去意外發現是 Google 日曆的形式。如果你是逢甲學生，也跟我一樣有在用 Google 日曆的話，不妨也將學校的行事曆加入到自己的 Google 日曆吧。

本來以為這是公開的行事曆，應該可以搜尋的到；但用「逢甲大學行事曆」去搜尋竟然沒找到。最後稍微研究了一下學校公開的行事曆網址，進而找到了它的 iCal 網址，這下總算可以加入了。

在Google日曆列表的上方，有個新增的選項，點一下後選「依 URL 新增」，然後輸入學校行事曆的 iCal 網址。
http://www.google.com/calendar/ical/webadmin%40fcu.edu.tw/public/basic.ics
再按下新增，以後就可以方便地知道學校的行程囉。
]]></description>
			<content:encoded><![CDATA[<p>對逢甲大學的學生而言，這應該是一個很方便的東西吧。</p>
<p>剛剛在<a href="http://www.fcu.edu.tw/">逢甲大學首頁</a>發現有個「校園行事曆」的連結，點進去意外發現是 <a href="http://www.google.com/calendar/">Google 日曆</a>的形式。如果你是逢甲學生，也跟我一樣有在用 Google 日曆的話，不妨也將學校的行事曆加入到自己的 Google 日曆吧。</p>
<p><span id="more-21"></span></p>
<p>本來以為這是公開的行事曆，應該可以搜尋的到；但用「逢甲大學行事曆」去搜尋竟然沒找到。最後稍微研究了一下學校公開的行事曆網址，進而找到了它的 iCal 網址，這下總算可以加入了。</p>
<p><img src="http://img526.imageshack.us/img526/3818/16517841ee3.png" height="340" width="450" /></p>
<p>在Google日曆列表的上方，有個新增的選項，點一下後選「依 URL 新增」，然後輸入學校行事曆的 iCal 網址。</p>
<blockquote><p>http://www.google.com/calendar/ical/webadmin%40fcu.edu.tw/public/basic.ics</p></blockquote>
<p>再按下新增，以後就可以方便地知道學校的行程囉。</p>
]]></content:encoded>
			<wfw:commentRss>http://shiaobin.dyndns.org/blog/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/tw/</creativeCommons:license>
	</item>
		<item>
		<title>申請 PayPal 帳號 Q&amp;A</title>
		<link>http://shiaobin.dyndns.org/blog/archives/5</link>
		<comments>http://shiaobin.dyndns.org/blog/archives/5#comments</comments>
		<pubDate>Sun, 28 Oct 2007 04:21:05 +0000</pubDate>
		<dc:creator>小斌</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[技術指南]]></category>
		<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://shiaobin.dyndns.org/blog/archives/5</guid>
		<description><![CDATA[為了付款到國外，剛剛申請了一個 PayPal 帳號。
對於在台灣而且沒有信用卡的使用者，申請帳號時可能會碰到一些問題。在此整理一下我解決的方法。


 Home Telephone 的格式
在填寫申請表格時，有一個欄位是 Home Telephone 要輸入電話號碼。假設電話號碼是高雄 8000000，本來以為填入 +886-7-8000000 這樣就可以了；但如果輸入這樣的內容，就會得到錯誤訊息 『Home Telephone: Please enter a valid telephone number.』 ，說號碼不對。這裡正確的號碼格式應該是 78000000 ，直接輸入地區區碼加上話機號碼即可。
銀行帳號的設定
申請完帳號後，在 My Account 頁面中點選 『Withdraw funds to your bank account』 ，就能設定銀行帳號，用來領錢。這部份的 Bank Code, Wire Transfer Branch Code 可以到財政部的網站 (http://www.trdo.gov.tw/mtn201/mtn201.asp) 查詢金融機構代號。金融機構代號一共有七碼，前三碼是 Bank Code ，後四碼是 Wire Transfer Branch Code 。另外 Account Type 請選擇 Savings ， [...]]]></description>
			<content:encoded><![CDATA[<p>為了付款到國外，剛剛申請了一個 <a href="http://www.paypal.com/" title="PayPal">PayPal</a> 帳號。</p>
<p>對於在台灣而且沒有信用卡的使用者，申請帳號時可能會碰到一些問題。在此整理一下我解決的方法。</p>
<p><span id="more-5"></span></p>
<ol>
<li> Home Telephone 的格式<br />
在填寫申請表格時，有一個欄位是 Home Telephone 要輸入電話號碼。假設電話號碼是高雄 8000000，本來以為填入 +886-7-8000000 這樣就可以了；但如果輸入這樣的內容，就會得到錯誤訊息 『Home Telephone: Please enter a valid telephone number.』 ，說號碼不對。這裡正確的號碼格式應該是 78000000 ，直接輸入地區區碼加上話機號碼即可。</li>
<li>銀行帳號的設定<br />
申請完帳號後，在 My Account 頁面中點選 『Withdraw funds to your bank account』 ，就能設定銀行帳號，用來領錢。這部份的 Bank Code, Wire Transfer Branch Code 可以到財政部的網站 (<a href="http://www.trdo.gov.tw/mtn201/mtn201.asp">http://www.trdo.gov.tw/mtn201/mtn201.asp</a>) 查詢金融機構代號。金融機構代號一共有七碼，前三碼是 Bank Code ，後四碼是 Wire Transfer Branch Code 。另外 Account Type 請選擇 Savings ， Account Number 請勿在前面補 0 。</li>
<li>沒有信用卡要怎麼付款？<br />
如果有信用卡的話，就能直接從信用卡帳戶中扣款；沒有的話，就必須要先在 PayPal 戶頭中有餘額才能付款。還好目前在拍賣網站上有賣家提供 PayPal 美金餘額的販賣服務，只要搜尋 PayPal Balance 就能找到。給賣家你的 PayPal E-Mail 帳號後，匯錢過去，他就能把美金餘額轉到你的 PayPal 戶頭中了。目前在 <a href="http://tw.bid.yahoo.com/">Yahoo! 奇摩拍賣</a>以及<a href="http://www.ruten.com.tw/">露天拍賣</a>都有賣家提供這樣的服務。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://shiaobin.dyndns.org/blog/archives/5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/tw/</creativeCommons:license>
	</item>
		<item>
		<title>ニコニコ動画的留言秘訣</title>
		<link>http://shiaobin.dyndns.org/blog/archives/3</link>
		<comments>http://shiaobin.dyndns.org/blog/archives/3#comments</comments>
		<pubDate>Sat, 27 Oct 2007 09:18:05 +0000</pubDate>
		<dc:creator>小斌</dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[ニコニコ動画]]></category>
		<category><![CDATA[技術指南]]></category>
		<category><![CDATA[資訊技術]]></category>

		<guid isPermaLink="false">http://shiaobin.dyndns.org/blog/?p=3</guid>
		<description><![CDATA[我整理了在ニコニコ動画上留言時會用到的指令，畫面限制，以及一些技巧。請利用文中所提到的練習用影片自由地試驗吧。
目前本文對應的是 RC2 版本 。若未來有改版的話，這些東西可能會有不同。


指令

文字大小
big, small
文字位置
ue, shita
文字顏色
red, blue, yellow, orange, pink, puprle, cyan, green
斷行用法
Ctrl+J, Ctrl+Shift+J (IE6)
Alt+10 (IE6以外, 請按鍵盤右方的九宮格數字區)


畫面限制

寬度
big：1613全形字 (3226半形字)
normal:24全形字 (46半形字)
small：32全形字 (60半形字，但無法填滿整行)
行數
big：7行 (16:9時範圍2~7行ue範圍2~7行shita範圍1~6行)
normal：11行 (16:9時ue範圍3~10行shita範圍2~9行)
small：16行 (16:9時範圍3~14行)


符號

→♡♠♣♥♦◊♨☺☻♩♪♫♭♬♭▒▓☜☞◀▶◁▷☼♀♂〄◈◐◑▣▤▥▦▧▨▩★


練習用動畫

初心者版：http://tw.nicovideo.jp/watch/sm849774
上級者版：http://tw.nicovideo.jp/watch/sm866366
120分鐘練習版：http://tw.nicovideo.jp/watch/sm1329629


其他技巧

為了更精準的時機控制，可以先按下暫停，再送出留言。
字串後的一般空白是無效的，但字串前的空白則有效。字串後的空白，可在最後加上隱藏點「ׁ」來達到。這個隱藏點並不會顯示出來。
跑馬燈移動速度會隨著字體大小與字串長度不同而有些微差異。可利用這點來做些特效。



更新情報
2007/10/30:  經過再次實驗發現畫面限制部份有錯誤，故修正了。另加上隱藏點的說明。
]]></description>
			<content:encoded><![CDATA[<p>我整理了在<a href="http://tw.nicovideo.jp/">ニコニコ動画</a>上留言時會用到的指令，畫面限制，以及一些技巧。請利用文中所提到的練習用影片自由地試驗吧。</p>
<p>目前本文對應的是 RC2 版本 。若未來有改版的話，這些東西可能會有不同。</p>
<p><span id="more-3"></span></p>
<ul>
<li>指令
<ul>
<li>文字大小<br />
big, small</li>
<li>文字位置<br />
ue, shita</li>
<li>文字顏色<br />
red, blue, yellow, orange, pink, puprle, cyan, green</li>
<li>斷行用法<br />
Ctrl+J, Ctrl+Shift+J (IE6)<br />
Alt+10 (IE6以外, 請按鍵盤右方的九宮格數字區)</li>
</ul>
</li>
<li>畫面限制
<ul>
<li>寬度<br />
big：<strike>16</strike>13全形字 (<strike>32</strike>26半形字)<br />
normal:24全形字 (46半形字)<br />
small：32全形字 (60半形字，但無法填滿整行)</li>
<li>行數<br />
big：7行 (16:9時<strike>範圍2~7行</strike>ue範圍2~7行shita範圍1~6行)<br />
normal：11行 (16:9時ue範圍3~10行shita範圍2~9行)<br />
small：16行 (16:9時範圍3~14行)</li>
</ul>
</li>
<li>符號
<ul>
<li>→♡♠♣♥♦◊♨☺☻♩♪♫♭♬♭▒▓☜☞◀▶◁▷☼♀♂〄◈◐◑▣▤▥▦▧▨▩★</li>
</ul>
</li>
<li>練習用動畫
<ul>
<li>初心者版：<a href="http://tw.nicovideo.jp/watch/sm849774" target="_blank" class="postlink">http://tw.nicovideo.jp/watch/sm849774</a></li>
<li>上級者版：<a href="http://tw.nicovideo.jp/watch/sm866366" target="_blank" class="postlink">http://tw.nicovideo.jp/watch/sm866366</a></li>
<li>120分鐘練習版：<a href="http://tw.nicovideo.jp/watch/sm1329629" target="_blank" class="postlink">http://tw.nicovideo.jp/watch/sm1329629</a></li>
</ul>
</li>
<li>其他技巧
<ul>
<li>為了更精準的時機控制，可以先按下暫停，再送出留言。</li>
<li>字串後的一般空白是無效的，但字串前的空白則有效。字串後的空白，可在最後加上隱藏點「ׁ」來達到。這個隱藏點並不會顯示出來。</li>
<li>跑馬燈移動速度會隨著字體大小與字串長度不同而有些微差異。可利用這點來做些特效。</li>
</ul>
</li>
</ul>
<p>更新情報</p>
<p>2007/10/30:  經過再次實驗發現畫面限制部份有錯誤，故修正了。另加上隱藏點的說明。</p>
]]></content:encoded>
			<wfw:commentRss>http://shiaobin.dyndns.org/blog/archives/3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.5/tw/</creativeCommons:license>
	</item>
	</channel>
</rss>
