<?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>The Paradiso</title>
	<atom:link href="http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.samtseng.liho.tw/~samtz/blog</link>
	<description>Everyone has their own paradiso. You may find me on the way to the paradiso.</description>
	<lastBuildDate>Thu, 29 Jul 2010 08:00:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>hdparm notes</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3684</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3684#comments</comments>
		<pubDate>Thu, 29 Jul 2010 08:00:52 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[HPC]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3684</guid>
		<description><![CDATA[# hdparm -t /dev/sdb1 /dev/sdb1: Timing buffered disk reads: 750 MB in 3.01 seconds = 249.58 MB/sec]]></description>
			<content:encoded><![CDATA[<p># hdparm -t /dev/sdb1</p>
<p>/dev/sdb1:<br />
 Timing buffered disk reads:  750 MB in  3.01 seconds = 249.58 MB/sec</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3684</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 檢查檔案系統的 block 大小</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3680</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3680#comments</comments>
		<pubDate>Thu, 29 Jul 2010 07:04:35 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3680</guid>
		<description><![CDATA[方法一 : # echo &#8220;foo&#8221; > bar # du -h bar 4.0K bar 方法二 : # tune2fs -l /dev/sda1 &#124; grep &#8216;Block size&#8217; Block size: 4096 方法三 : # dumpe2fs -h /dev/sda1 &#124; grep &#8216;Block size&#8217; dumpe2fs 1.39 (29-May-2006) Block size: 4096 方法四 : # blockdev &#8211;getbsz /dev/sda1 4096]]></description>
			<content:encoded><![CDATA[<p>方法一 :<br />
# echo &#8220;foo&#8221; > bar<br />
# du -h bar</p>
<blockquote><p>
4.0K    bar
</p></blockquote>
<p>方法二 :<br />
# tune2fs -l /dev/sda1 | grep &#8216;Block size&#8217;</p>
<blockquote><p>
Block size:               4096
</p></blockquote>
<p>方法三 :<br />
# dumpe2fs -h /dev/sda1 | grep &#8216;Block size&#8217;</p>
<blockquote><p>
dumpe2fs 1.39 (29-May-2006)<br />
Block size:               4096
</p></blockquote>
<p>方法四 :<br />
# blockdev &#8211;getbsz /dev/sda1</p>
<blockquote><p>
4096
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3680</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iozone notes</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3678</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3678#comments</comments>
		<pubDate>Thu, 29 Jul 2010 06:35:53 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[HPC]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3678</guid>
		<description><![CDATA[# iozone -a -i 0 -i 1 -f /xxx/xxx/iozone.test -q 64k -n 32M -g 1G > iozone.out # Generate_Graphs iozone.out]]></description>
			<content:encoded><![CDATA[<p># iozone -a -i 0 -i 1 -f /xxx/xxx/iozone.test -q 64k -n 32M -g 1G > iozone.out<br />
# Generate_Graphs iozone.out </p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3678</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple ordered to solve mis-price disputes in Taiwan</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3676</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3676#comments</comments>
		<pubDate>Mon, 26 Jul 2010 15:51:51 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3676</guid>
		<description><![CDATA[FROM : YAHOO TAIPEI (AFP) – Apple was threatened Monday with a fine if it did not act on a dispute in which thousands of visitors to its online store tried to buy computers that were wrongly priced at massive discounts. The Taipei city government said the US giant had mis-priced two models Friday afternoon, [...]]]></description>
			<content:encoded><![CDATA[<p>FROM : <a href="http://news.yahoo.com/s/afp/20100726/ts_alt_afp/taiwanuscomputercompanyapple_20100726132723">YAHOO</a></p>
<p>TAIPEI (AFP) – Apple was threatened Monday with a fine if it did not act on a dispute in which thousands of visitors to its online store tried to buy computers that were wrongly priced at massive discounts.<br />
The Taipei city government said the US giant had mis-priced two models Friday afternoon, with one on sale for a little over 40 percent of what it should have been.<br />
Apple corrected the prices hours later but by that time more than 200,000 units had been ordered, local media said.<br />
The news comes after computer giant Dell was forced to honour the sale of various electronics goods at a third of their price after offering them at a cut price on the Internet in error.<br />
The complaints erupted after the company unilaterally altered the prices of the bargain-hunting orders.<br />
Apple would not say if it would deliver the products on the erroneous prices. And after an initial investigation, the city government&#8217;s Law and Regulation Commission issued an ultimatum to the US computer company.<br />
&#8220;The city government has tried to reach Apple since Friday afternoon but has not yet received any response from it over the more than 30 consumer complaints,&#8221; Yeh Ching-yuan, chief of the commission, said in a statement.<br />
&#8220;Apple has to respond to our order before the end of Tuesday or may face a fine of up to 300,000 Taiwan dollars (9,400 US) according to the consumers&#8217; protection law,&#8221; he warned.<br />
Apple is required to provide details of the alleged mis-pricing, why it happened, the number and value of orders placed on the mis-price basis, and how the company will act to compensate the customers, he said.<br />
Local media said Apple listed its Mac Mini at 19,999 Taiwan dollars (625 US), about 42 percent of its original price tag of 47,710 Taiwan dollars.<br />
Also, the 8-GB version of Mac Mini Snow Leopard Server was priced lower than the 4-GB version, which costs 34,900 Taiwan dollars.<br />
A court in southern Taiwan last month ordered Dell to deliver 18 laptops and 76 flat-panel monitors to 31 consumers for 490,000 Taiwan dollars, less than a third of the normal price, the Taipei-based Apple Daily said.<br />
The company advertised the unusually low prices on its website in June and July, prompting bargain-hunters to place 200,000 orders.<br />
The consumer rights authorities in Taipei also fined Dell one million Taiwan dollars.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3676</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>姑婆芋解毒 專剋咬人狗、咬人貓</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3670</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3670#comments</comments>
		<pubDate>Thu, 22 Jul 2010 23:05:31 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[急救]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3670</guid>
		<description><![CDATA[文章來源 : 自由時報 登山健行，走向戶外，相當有益身體健康。不過，除了常見的蚊蟲叮咬外，「咬人貓」及「咬人狗」是兩種很有名、會造成皮膚傷害的植物。 ●咬人狗，俗稱「恆春咬人狗」、「刺暈」，蘭嶼人稱為「ahateng」，意思就是「避開」。 咬人狗喜歡生長在平地至海拔800公尺以下，日光充足、環境稍濕的山區叢林、河邊或海邊。在台灣多處都有它的蹤跡，墾丁社頂公園、高雄柴山、台南烏山獼猴保護區、綠島、蘭嶼等，都是它常出現的地方。 咬人狗常是單棵或數棵樹獨立生長。其葉片呈卵形或橢圓形，長約20到30公分，寬寬大大的，葉柄長約5至10公分（如圖）。其果實的花托呈白色半透明狀，很像「蒟蒻」。 ●咬人貓，別名「刺草」、「蕁麻」，分佈在低至中、高海拔的山區，溪頭、杉林溪可見它的蹤跡。 咬人貓常呈群聚生長。其葉片呈寬闊的卵圓形，有點像瘦長的心形，長約6到12公分。葉緣呈大大小小的鋸齒狀（如圖）。葉面有密生的粗毛。 咬人狗及咬人貓都是屬於「蕁麻科」的植物。之所以會「咬人」，主要是它們的葉子上，佈滿了透明刺針般的「焮毛」。「焮毛」是由表皮細胞凸起而成，它的下方是一個囊狀物，內含蟻酸。當皮膚接觸到時，蟻酸會刺激皮膚，產生麻、熱及刺痛感，持續時間約數小時，但有時會超過一天。除了用膠帶將刺入皮膚的焮毛黏出外，可儘速就醫，用藥減輕症狀。 ●若在野外被咬人狗或咬人貓「咬」到，無法立刻就醫時，最方便的方法，就是尋找「姑婆芋」（如圖），將其葉片搗碎後敷於皮膚上。 姑婆芋因含「生物鹼」，可中和「蟻酸」，達到消腫的效果。通常有咬人狗及咬人貓的地方，就找得到「姑婆芋」，兩者常相伴而生。天地間相生相剋的道理，真是奇妙！ 下次爬山或生態之旅時，若一時想就地「大解」，手邊又沒有衛生紙，記得要分清楚。如果拿到咬人狗的葉子來擦屁股，後果可能會不堪設想喔！ （作者為高雄市林政賢皮膚科診所醫師）]]></description>
			<content:encoded><![CDATA[<p>文章來源 : <a href="http://tw.news.yahoo.com/article/url/d/a/100722/78/29otu.html">自由時報</a><br />
登山健行，走向戶外，相當有益身體健康。不過，除了常見的蚊蟲叮咬外，「咬人貓」及「咬人狗」是兩種很有名、會造成皮膚傷害的植物。</p>
<p>●咬人狗，俗稱「恆春咬人狗」、「刺暈」，蘭嶼人稱為「ahateng」，意思就是「避開」。</p>
<p>咬人狗喜歡生長在平地至海拔800公尺以下，日光充足、環境稍濕的山區叢林、河邊或海邊。在台灣多處都有它的蹤跡，墾丁社頂公園、高雄柴山、台南烏山獼猴保護區、綠島、蘭嶼等，都是它常出現的地方。</p>
<p>咬人狗常是單棵或數棵樹獨立生長。其葉片呈卵形或橢圓形，長約20到30公分，寬寬大大的，葉柄長約5至10公分（如圖）。其果實的花托呈白色半透明狀，很像「蒟蒻」。</p>
<p>●咬人貓，別名「刺草」、「蕁麻」，分佈在低至中、高海拔的山區，溪頭、杉林溪可見它的蹤跡。</p>
<p>咬人貓常呈群聚生長。其葉片呈寬闊的卵圓形，有點像瘦長的心形，長約6到12公分。葉緣呈大大小小的鋸齒狀（如圖）。葉面有密生的粗毛。</p>
<p>咬人狗及咬人貓都是屬於「蕁麻科」的植物。之所以會「咬人」，主要是它們的葉子上，佈滿了透明刺針般的「焮毛」。「焮毛」是由表皮細胞凸起而成，它的下方是一個囊狀物，內含蟻酸。當皮膚接觸到時，蟻酸會刺激皮膚，產生麻、熱及刺痛感，持續時間約數小時，但有時會超過一天。除了用膠帶將刺入皮膚的焮毛黏出外，可儘速就醫，用藥減輕症狀。</p>
<p>●若在野外被咬人狗或咬人貓「咬」到，無法立刻就醫時，最方便的方法，就是尋找「姑婆芋」（如圖），將其葉片搗碎後敷於皮膚上。</p>
<p>姑婆芋因含「生物鹼」，可中和「蟻酸」，達到消腫的效果。通常有咬人狗及咬人貓的地方，就找得到「姑婆芋」，兩者常相伴而生。天地間相生相剋的道理，真是奇妙！</p>
<p>下次爬山或生態之旅時，若一時想就地「大解」，手邊又沒有衛生紙，記得要分清楚。如果拿到咬人狗的葉子來擦屁股，後果可能會不堪設想喔！</p>
<p>（作者為高雄市林政賢皮膚科診所醫師）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3670</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac mini 教育折價差3萬多台幣!!</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3662</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3662#comments</comments>
		<pubDate>Thu, 22 Jul 2010 15:55:21 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[apple sucks]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3662</guid>
		<description><![CDATA[更新 : 剛剛我在刷一次. 信用卡扣款了. 看來這次是來真的了. 希望蘋果能按照 NT$ 19,900 出貨.. 更新2 : 又變NT$ 47,710 Mac mini Snow Leopard Server 2.66GHz Intel Core 2 Duo 8GB 1066MHz DDR3 SDRAM &#8211; 2x4GB Dual 500GB Serial ATA Drives COUNTRY KIT,K40-TWN User&#8217;s Guide (Traditional Chinese) + Mini DisplayPort to DVI Adapter 這樣多少錢呢??!! NT$ 52,180 含稅 同樣的組態.教育折價多少錢呢?? 才 NT$ 20,900 含稅 [...]]]></description>
			<content:encoded><![CDATA[<p><strong><font color="red">更新 : 剛剛我在刷一次. 信用卡扣款了. 看來這次是來真的了. 希望蘋果能按照 NT$ 19,900 出貨..</font></strong><br />
<strong><font color="red">更新2 : 又變NT$ 47,710</font></strong></p>
<p><strong>Mac mini Snow Leopard Server</strong></p>
<blockquote><p>
2.66GHz Intel Core 2 Duo<br />
8GB 1066MHz DDR3 SDRAM &#8211; 2x4GB<br />
Dual 500GB Serial ATA Drives<br />
COUNTRY KIT,K40-TWN<br />
User&#8217;s Guide (Traditional Chinese)<br />
+<br />
Mini DisplayPort to DVI Adapter
</p></blockquote>
<p>這樣多少錢呢??!!<br />
<a href="http://farm5.static.flickr.com/4079/4818583402_4a6e387b2d_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4079/4818583402_4a6e387b2d.jpg" class="alignnone" width="500" height="348" /></a><br />
<strong>NT$ 52,180</strong> 含稅</p>
<p>同樣的組態.教育折價多少錢呢??<br />
<a href="http://farm5.static.flickr.com/4117/4818551904_9c02a2775a_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4117/4818551904_9c02a2775a.jpg" class="alignnone" width="500" height="349" /></a><br />
才 <strong>NT$ 20,900</strong> 含稅</p>
<p><a href="http://farm5.static.flickr.com/4123/4818552028_f73a3d92f6_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4123/4818552028_f73a3d92f6.jpg" class="alignnone" width="500" height="444" /></a><br />
二話不說.馬上刷卡刷下去!!!!!!</p>
<p><a href="http://farm5.static.flickr.com/4097/4817929407_9e4a03b84c_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4097/4817929407_9e4a03b84c.jpg" class="alignnone" width="500" height="445" /></a><br />
檢查訂單看看有沒有眼花.沒有眼花.這時候我爽到不行.感覺好像中樂透!!</p>
<p><a href="http://farm5.static.flickr.com/4134/4818552110_df7751102f_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4134/4818552110_df7751102f.jpg" class="alignnone" width="500" height="426" /></a><br />
後來再檢查一次..更!!!!!機車壘..原來是個謊子. 只好退貨了!! 理由&#8221;不喜歡這個價格&#8221;!!</p>
<p><a href="http://farm5.static.flickr.com/4141/4817929329_899168d3b9_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4141/4817929329_899168d3b9.jpg" class="alignnone" width="500" height="394" /></a><br />
空歡喜一場&#8230;我目前的電腦.記憶體常常不足.很想買蘋果電腦.但是又夭壽貴.算了!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3662</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>架設 FreeNX server</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3655</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3655#comments</comments>
		<pubDate>Tue, 20 Jul 2010 09:32:06 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3655</guid>
		<description><![CDATA[由於 NoMachine免費版本只能支援 2 個使用者. 在家用當然是足夠. 但是要給多人用就沒辦法了. 只好自己架設免費的 FreeNX server. 在安裝 FreeNX Server 前. 請記得安裝 expect. # yum install expect Loaded plugins: kernel-module sl-base &#124; 1.1 kB 00:00 sl-security &#124; 1.9 kB 00:00 sl-security/primary_db &#124; 1.8 MB 00:02 Setting up Install Process Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction first to [...]]]></description>
			<content:encoded><![CDATA[<p>由於 <a href="http://www.nomachine.com/">NoMachine</a>免費版本只能支援 2 個使用者. 在家用當然是足夠. 但是要給多人用就沒辦法了. 只好自己架設免費的 FreeNX server.</p>
<p>在安裝 FreeNX Server 前. 請記得安裝 expect.<br />
<strong># yum install expect</strong></p>
<blockquote><p>
Loaded plugins: kernel-module<br />
sl-base                                                  | 1.1 kB     00:00<br />
sl-security                                              | 1.9 kB     00:00<br />
sl-security/primary_db                                   | 1.8 MB     00:02<br />
Setting up Install Process<br />
Resolving Dependencies<br />
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.<br />
The program yum-complete-transaction is found in the yum-utils package.<br />
&#8211;> Running transaction check<br />
&#8212;> Package expect.i386 0:5.43.0-5.1 set to be updated<br />
&#8212;> Package expect.x86_64 0:5.43.0-5.1 set to be updated<br />
&#8211;> Finished Dependency Resolution<br />
Beginning Kernel Module Plugin<br />
Finished Kernel Module Plugin</p>
<p>Dependencies Resolved</p>
<p>================================================================================<br />
 Package          Arch             Version              Repository         Size<br />
================================================================================<br />
Installing:<br />
 expect           i386             5.43.0-5.1           sl-base           158 k<br />
 expect           x86_64           5.43.0-5.1           sl-base           160 k</p>
<p>Transaction Summary<br />
================================================================================<br />
Install      2 Package(s)<br />
Update       0 Package(s)<br />
Remove       0 Package(s)         </p>
<p>Total download size: 318 k<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
(1/2): expect-5.43.0-5.1.i386.rpm                        | 158 kB     00:01<br />
(2/2): expect-5.43.0-5.1.x86_64.rpm                      | 160 kB     00:00<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Total                                           153 kB/s | 318 kB     00:02<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Finished Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
  Installing     : expect                                                   1/2<br />
  Installing     : expect                                                   2/2 </p>
<p>Installed:<br />
  expect.i386 0:5.43.0-5.1              expect.x86_64 0:5.43.0-5.1             </p>
<p>Complete!
</p></blockquote>
<p>之後就去下載 FreeNX 和 NoMachine Client 的套件(freenx-0.7.3-4.el5.centos.x86_64.rpm, nx-3.4.0-4.el5.centos.x86_64.rpm and nxclient-3.4.0-7.x86_64.rpm)然後安裝 :<br />
<strong># rpm -ivh freenx-0.7.3-4.el5.centos.x86_64.rpm nx-3.4.0-4.el5.centos.x86_64.rpm nxclient-3.4.0-7.x86_64.rpm </strong></p>
<blockquote><p>
Preparing&#8230;                ########################################### [100%]<br />
   1:nx                     ########################################### [ 33%]<br />
   2:freenx                 ########################################### [ 67%]<br />
Stopping sshd: [  OK  ]<br />
Starting sshd: [  OK  ]<br />
Starting freenx-server:  [  OK  ]</p>
<p>   3:nxclient               ########################################### [100%]<br />
Showing file: /usr/NX/share/documents/client/cups-info</p>
<p> CUPS Printing Backend</p>
<p> The NX Client set-up procedure detected that your &#8220;IPP CUPS&#8221; printing<br />
 backend doesn&#8217;t allow printing from the NX session. In order to have<br />
 printing support in your NX system, you need to set proper permissions<br />
 on the IPP backend. Please execute:</p>
<p>   chmod 755 /usr/lib/cups/backend/ipp
</p></blockquote>
<p>設定 NX server :<br />
<strong># nxsetup &#8211;install &#8211;setup-nomachine-key</strong></p>
<blockquote><p>
Setting up /etc/nxserver &#8230;done<br />
Setting up /var/lib/nxserver/db &#8230;done<br />
Setting up /var/log/nxserver.log &#8230;done<br />
Adding user &#8220;nx&#8221; to group &#8220;utmp&#8221; &#8230;done<br />
Setting up known_hosts and authorized_keys2 &#8230;done<br />
Setting up permissions &#8230;done<br />
Setting up cups nxipp backend &#8230;done</p>
<p>&#8212;-> Testing your nxserver configuration &#8230;<br />
(omit)<br />
<---- done</p>
<p>----> Testing your nxserver connection &#8230;<br />
HELLO NXSERVER &#8211; Version 3.2.0-73 OS (GPL, using backend: not detected)<br />
<--- done</p>
<p>Ok, nxserver is ready.</p>
<p>PAM authentication enabled:<br />
  All users will be able to login with their normal passwords.</p>
<p>  PAM authentication will be done through SSH.<br />
  Please ensure that SSHD on localhost accepts password authentication.</p>
<p>  You can change this behaviour in the /etc/nxserver/node.conf file.<br />
Have Fun!
</p></blockquote>
<p>複製 node.conf.sample 範本檔案到 node.conf :<br />
<strong># cp /etc/nxserver/node.conf.sample /etc/nxserver/node.conf</strong></p>
<p>檢查 FreeNX Server 是否有執行 :<br />
<strong># nxserver &#8211;status</strong></p>
<blockquote><p>
NX> 100 NXSERVER &#8211; Version 3.2.0-73 OS (GPL, using backend: not detected)<br />
NX> 110 NX Server is running<br />
NX> 999 Bye
</p></blockquote>
<p>將 /usr/bin/nxserver &#8211;start 指令放在 /etc/rc.local 內 機器每次開機都執行 FreeNX sever</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3655</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>金火土三連星</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3652</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3652#comments</comments>
		<pubDate>Sun, 18 Jul 2010 14:30:40 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[constellation]]></category>
		<category><![CDATA[星座]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3652</guid>
		<description><![CDATA[金星, 火星, 土星三連星. 昨天看這三顆行星超清楚.剛好西邊沒有什麼雲. 但是昨天忘記拍攝. 今天拍就沒有辦法拍攝得很好. 金星, 火星, 土星三連星&#8230;看得出來是哪三個吧?! 幫大家標示一下 這三個行星剛好在獅子座與處女座交界. 獅子座長這樣 處女座長這樣]]></description>
			<content:encoded><![CDATA[<p>金星, 火星, 土星三連星. 昨天看這三顆行星超清楚.剛好西邊沒有什麼雲. 但是昨天忘記拍攝. 今天拍就沒有辦法拍攝得很好.</p>
<p><a href="http://farm5.static.flickr.com/4114/4804131369_67515ffdd0_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4114/4804131369_67515ffdd0.jpg" class="alignnone" width="500" height="333" /></a><br />
金星, 火星, 土星三連星&#8230;看得出來是哪三個吧?!</p>
<p><a href="http://farm5.static.flickr.com/4079/4805017132_f3dd55c1ea_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4079/4805017132_f3dd55c1ea.jpg" class="alignnone" width="500" height="333" /></a><br />
幫大家標示一下</p>
<p><a href="http://farm5.static.flickr.com/4134/4805016894_ff56a5fe11_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4134/4805016894_ff56a5fe11.jpg" class="alignnone" width="500" height="333" /></a><br />
這三個行星剛好在獅子座與處女座交界.</p>
<p><a href="http://farm5.static.flickr.com/4122/4802978749_b1657074c5_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4122/4802978749_b1657074c5.jpg" class="alignnone" width="500" height="375" /></a><br />
獅子座長這樣</p>
<p><a href="http://farm5.static.flickr.com/4073/4805012358_15d59bd641_b.jpg"><img alt="" src="http://farm5.static.flickr.com/4073/4805012358_15d59bd641.jpg" class="alignnone" width="500" height="375" /></a><br />
處女座長這樣</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3652</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>卡斯楚:台灣有權加入聯合國</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3650</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3650#comments</comments>
		<pubDate>Wed, 14 Jul 2010 01:41:06 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[taiwan]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3650</guid>
		<description><![CDATA[轉貼來源 : 民視新聞 暌違近一年後，古巴前領導人卡斯楚，12日又出現在古巴電視台上，儘管4年前生過重病，83歲的卡斯楚看起來精神奕奕，他在預錄訪談中，對國際情勢侃侃而談，而且還罕見地提到了台灣，表示台灣有權加入聯合國。 古巴國營電視台12日晚間播出對卡斯楚的預錄訪談，卡斯楚先就南北韓衝突和中東情勢，發表了看法，接著他話鋒一轉，提到了台灣。 這是卡斯楚暌違11個月後，首次在電視節目中現身，83歲的他留著招牌落腮鬍，穿著格紋襯衫和藍色夾克，雖然講話速度緩慢，但相當健談，似乎已經恢復了健康。 卡斯楚自從4年前因為消化道出血生病開刀，而將國家大權移交給弟弟拉烏之後，就很少公開露面，他的照片最近出現在古巴媒體上是上周末，當時他正在接見哈瓦那一個智庫團體的員工。(民視新聞綜合報導)]]></description>
			<content:encoded><![CDATA[<p>轉貼來源 : <a href="http://tw.news.yahoo.com/article/url/d/a/100713/11/296ih.html">民視新聞</a></p>
<p>暌違近一年後，古巴前領導人卡斯楚，12日又出現在古巴電視台上，儘管4年前生過重病，83歲的卡斯楚看起來精神奕奕，他在預錄訪談中，對國際情勢侃侃而談，而且還罕見地提到了台灣，表示台灣有權加入聯合國。</p>
<p>古巴國營電視台12日晚間播出對卡斯楚的預錄訪談，卡斯楚先就南北韓衝突和中東情勢，發表了看法，接著他話鋒一轉，提到了台灣。</p>
<p>這是卡斯楚暌違11個月後，首次在電視節目中現身，83歲的他留著招牌落腮鬍，穿著格紋襯衫和藍色夾克，雖然講話速度緩慢，但相當健談，似乎已經恢復了健康。</p>
<p>卡斯楚自從4年前因為消化道出血生病開刀，而將國家大權移交給弟弟拉烏之後，就很少公開露面，他的照片最近出現在古巴媒體上是上周末，當時他正在接見哈瓦那一個智庫團體的員工。(民視新聞綜合報導)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3650</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php dateDiff 顯示兩個時間差多少天?多少分鐘?</title>
		<link>http://www.samtseng.liho.tw/~samtz/blog/?p=3644</link>
		<comments>http://www.samtseng.liho.tw/~samtz/blog/?p=3644#comments</comments>
		<pubDate>Mon, 12 Jul 2010 09:56:09 +0000</pubDate>
		<dc:creator>Sam Tseng</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.samtseng.liho.tw/~samtz/blog/?p=3644</guid>
		<description><![CDATA[差幾天 function 1 2 3 4 5 6 7 8 function dateDiff&#40;$startDate, $endDate&#41; &#123; $startArry = getdate&#40;strtotime&#40;$startDate&#41;&#41;; $endArry = getdate&#40;strtotime&#40;$endDate&#41;&#41;; $start_date = gregoriantojd&#40;$startArry&#91;&#34;mon&#34;&#93;, $startArry&#91;&#34;mday&#34;&#93;, $startArry&#91;&#34;year&#34;&#93;&#41;; $end_date = gregoriantojd&#40;$endArry&#91;&#34;mon&#34;&#93;, $endArry&#91;&#34;mday&#34;&#93;, $endArry&#91;&#34;year&#34;&#93;&#41;; &#160; return round&#40;&#40;$end_date - $start_date&#41;, 0&#41;; &#125; 差幾分鐘 function 1 2 3 4 5 6 function minDiff&#40;$startTime, $endTime&#41; &#123; $start = strtotime&#40;$startTime&#41;; $end = strtotime&#40;$endTime&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>差幾天 function</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> dateDiff<span style="color: #009900;">&#40;</span><span style="color: #000088;">$startDate</span><span style="color: #339933;">,</span> <span style="color: #000088;">$endDate</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$startArry</span> <span style="color: #339933;">=</span> <span style="color: #990000;">getdate</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startDate</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$endArry</span> <span style="color: #339933;">=</span> <span style="color: #990000;">getdate</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$endDate</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$start_date</span> <span style="color: #339933;">=</span> <span style="color: #990000;">gregoriantojd</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startArry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;mon&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$startArry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;mday&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$startArry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;year&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$end_date</span> <span style="color: #339933;">=</span> <span style="color: #990000;">gregoriantojd</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$endArry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;mon&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$endArry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;mday&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$endArry</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;year&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$end_date</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$start_date</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>差幾分鐘 function</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> minDiff<span style="color: #009900;">&#40;</span><span style="color: #000088;">$startTime</span><span style="color: #339933;">,</span> <span style="color: #000088;">$endTime</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$start</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$end</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$endTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$timeDiff</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$end</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$start</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timeDiff</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>差幾天也可以這樣寫 :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> dateDiff<span style="color: #009900;">&#40;</span><span style="color: #000088;">$startTime</span><span style="color: #339933;">,</span> <span style="color: #000088;">$endTime</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$start</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$end</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$endTime</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$timeDiff</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$end</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$start</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$timeDiff</span> <span style="color: #339933;">/</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">24</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.samtseng.liho.tw/~samtz/blog/?feed=rss2&amp;p=3644</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
