<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Tsung's Blog</title>
	
	<link>http://blog.longwin.com.tw</link>
	<description>個人筆記, 記錄關於 系統、程式、新聞 與 日常生活 等資訊</description>
	<lastBuildDate>Thu, 17 May 2012 17:11:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/tsungblog" /><feedburner:info uri="tsungblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>tsungblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>國家地理頻道 - 關於 高雄 的影片介紹</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/6Yz_j20e01k/</link>
		<comments>http://blog.longwin.com.tw/2012/05/ngc-kaohsiung-intro-2012/#comments</comments>
		<pubDate>Thu, 17 May 2012 17:11:29 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[kaohsiung]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3646</guid>
		<description><![CDATA[國家地理頻道(National Geographic Channel) 對於高雄的介紹影片. 註: 寫此影片主要原因是因為我生長於高雄, 請不要以政治角度來看此篇 或 影片. 國家地理頻道 - 超級城市 - 高雄]]></description>
			<content:encoded><![CDATA[<p>國家地理頻道(National Geographic Channel) 對於高雄的介紹影片.</p>
<p>註: 寫此影片主要原因是因為我生長於高雄, 請不要以政治角度來看此篇 或 影片.</p>
<p><span id="more-3646"></span></p>
<h2>國家地理頻道 - 超級城市 - 高雄</h2>
<iframe class="" src="http://www.youtube.com/embed/hwyeLps5v7A" style="width: 420px; height: 315px; " frameborder="0" scrolling="" onload="scro11me(this)"></iframe><script type="text/javascript">function scro11me(f){f.contentWindow.scrollTo(0,0); }</script>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fngc-kaohsiung-intro-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/6Yz_j20e01k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/ngc-kaohsiung-intro-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/ngc-kaohsiung-intro-2012/</feedburner:origLink></item>
		<item>
		<title>好站: 線上程式編譯 ideone</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/g8uBa66tYHc/</link>
		<comments>http://blog.longwin.com.tw/2012/05/online-ideone-compiler-2012/#comments</comments>
		<pubDate>Wed, 16 May 2012 17:21:57 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[My-Favorite-Site]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3642</guid>
		<description><![CDATA[臨時想要寫個程式做測試, 要建立相關環境有時候還蠻麻煩得, 偶爾要用的話, 可以使用這個網站提供的服務. 網站 線上程式編輯 IDE 與 編譯、執行器 網站詳見: Ideone.com &#124; Online IDE &#38; Debugging Tool &#62;&#62; C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters 此網站提供 40種以上, 會於線上直接做 Compiler 和 執行的動作. 可以丟下述範例進去跑跑看. #include &#60;iostream&#62; using namespace std; &#8230; <a href="http://blog.longwin.com.tw/2012/05/online-ideone-compiler-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>臨時想要寫個程式做測試, 要建立相關環境有時候還蠻麻煩得, 偶爾要用的話, 可以使用這個網站提供的服務.</p>
<p><span id="more-3642"></span></p>
<h2>網站 線上程式編輯 IDE 與 編譯、執行器</h2>
<p>網站詳見: <a title="Ideone.com | Online IDE &amp; Debugging Tool &gt;&gt; C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters" href="http://ideone.com/" target="_blank">Ideone.com | Online IDE &amp; Debugging Tool &gt;&gt; C/C++, Java, PHP, Python, Perl and 40+ compilers and intepreters</a></p>
<p>此網站提供 40種以上, 會於線上直接做 Compiler 和 執行的動作.</p>
<p>可以丟下述範例進去跑跑看. <img src='http://blog.longwin.com.tw/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="syntax escaped cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{
    for (int i = 0; i &lt; 10; i++) {
        cout &lt;&lt; i &lt;&lt; endl;
    }
}</pre>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fonline-ideone-compiler-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/g8uBa66tYHc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/online-ideone-compiler-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/online-ideone-compiler-2012/</feedburner:origLink></item>
		<item>
		<title>Debian / Ubuntu Apache2 security libxml2 問題修復</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/KFLVt5muzOg/</link>
		<comments>http://blog.longwin.com.tw/2012/05/linux-apache2-security-xml-fix-2012/#comments</comments>
		<pubDate>Tue, 15 May 2012 17:53:04 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[My_Note-Unix]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3635</guid>
		<description><![CDATA[Debian / Ubuntu Linux 升級, 遇到下述錯誤訊息(下述把錯誤訊息都統整在一起), 而造成 Apache 無法啟動. The apache2 configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system[warnorking as you'd expect now! ... (warning). /usr/lib/libxml2.so.2: cannot &#8230; <a href="http://blog.longwin.com.tw/2012/05/linux-apache2-security-xml-fix-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Debian / Ubuntu Linux 升級, 遇到下述錯誤訊息(下述把錯誤訊息都統整在一起), 而造成 Apache 無法啟動.</p>
<blockquote><p>The apache2 configtest failed, so we are trying to kill it manually. This is almost certainly suboptimal, so please make sure your system[warnorking as you'd expect now! ... (warning).</p>
<p>/usr/lib/libxml2.so.2: cannot open shared object file: No such file or directory</p>
<p>/etc/apache2/mods-enabled/mod-security.load: Cannot load /usr/lib/libxml2.so.2 into server: /usr/lib/libxml2.so.2: cannot open shared object file: No such file or directory</p></blockquote>
<p><span id="more-3635"></span></p>
<h2>解法</h2>
<p>遇到問題當下的解法, 先註解掉.</p>
<ol>
<li>vim /etc/apache2/mods-enabled/mod-security.load<br />
<blockquote><p>#LoadFile /usr/lib/libxml2.so.2<br />
LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so</p></blockquote>
</li>
</ol>
<p>於此篇有找到正確解法: <a title="#670247 - libapache2-modsecurity: Cannot load /usr/lib/libxml2.so.2 into server - Broken library path" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670247" target="_blank">#670247 - libapache2-modsecurity: Cannot load /usr/lib/libxml2.so.2 into server - Broken library path</a>,下述為此篇的重點摘錄:</p>
<ul>
<li>This bug is only for 64 bit architecture.</li>
<li>原本 LoadFile /usr/lib/libxml2.so.2 的路徑有錯誤</li>
<li>正確路徑: /usr/lib/x86_64-linux-gnu/libxml2.so.2, 所以有下述兩種解法.  (挑其一即可)</li>
<li>一: ln -s /usr/lib/x86_64-linux-gnu/libxml2.so.2 /usr/lib/libxml2.so.2</li>
<li>二: vim /etc/apache2/mods-enabled/mod-security.load<br />
<blockquote><p>#LoadFile /usr/lib/libxml2.so.2<br />
LoadFile /usr/lib/x86_64-linux-gnu/libxml2.so.2<br />
LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so</p></blockquote>
</li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Flinux-apache2-security-xml-fix-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/KFLVt5muzOg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/linux-apache2-security-xml-fix-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/linux-apache2-security-xml-fix-2012/</feedburner:origLink></item>
		<item>
		<title>如何啟用 Google 兩階段驗證密碼 與 問題解決</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/sjPGInuCy88/</link>
		<comments>http://blog.longwin.com.tw/2012/05/howto-google-2step-verify-2012/#comments</comments>
		<pubDate>Mon, 14 May 2012 17:59:49 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[News-Technology]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3633</guid>
		<description><![CDATA[Google 的帳號使用的服務越來越多, 對於相關 Gmail 登入等等都要非常小心. Google 推出兩階段驗證(Using 2-step verification)有段時間了, 知道安全與方便通常是呈反比的, 於上個月還是啟用兩階段驗證的服務了, 於此篇紀錄些心得與問題. Google 兩階段密碼驗證 啟用 啟用是上個月的事情, 已經不太記得, 基本上依照頁面指示照著作就會完成了, 在此指紀錄幾個還記得的項目. 登入 Gmail, 點選照片, 選擇 Account. 找到 兩步驟驗證 -&#62; 點選 開啟 再來就是填 電話... 等等的一些資料, 在來的登入都會經由手機簡訊, 另外填寫即時簡訊密碼. (原始密碼 + 簡訊密碼) 相關新聞: Google開放兩階段驗證功能給所有用戶, 下述摘錄自此篇: &#8230; <a href="http://blog.longwin.com.tw/2012/05/howto-google-2step-verify-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google 的帳號使用的服務越來越多, 對於相關 Gmail 登入等等都要非常小心.</p>
<p>Google 推出兩階段驗證(Using 2-step verification)有段時間了, 知道安全與方便通常是呈反比的, 於上個月還是啟用兩階段驗證的服務了, 於此篇紀錄些心得與問題.</p>
<p><span id="more-3633"></span></p>
<h2>Google 兩階段密碼驗證 啟用</h2>
<p>啟用是上個月的事情, 已經不太記得, 基本上依照頁面指示照著作就會完成了, 在此指紀錄幾個還記得的項目.</p>
<ol>
<li>登入 Gmail, 點選照片, 選擇 Account.</li>
<li>找到 兩步驟驗證 -&gt; 點選 開啟</li>
<li>再來就是填 電話... 等等的一些資料, 在來的登入都會經由手機簡訊, 另外填寫即時簡訊密碼. (原始密碼 + 簡訊密碼)</li>
<li>相關新聞: <a title="Google開放兩階段驗證功能給所有用戶" href="http://www.ithome.com.tw/itadm/article.php?c=65882" target="_blank">Google開放兩階段驗證功能給所有用戶</a>, 下述摘錄自此篇:<br />
<blockquote><p>用戶可以在「Google帳戶」的「個人設定」中啟用該功能，整個設定過程大約需要15分鐘。使用者必須設定兩個電話號碼。</p>
<p>第一個電話可以使用上述行動裝備或者是普通的手機、室內電話，用來產生或接收上述時效限制密碼。第二個電話則是在用戶第一個電話號碼遺失或無法使用使備用，因此Google建議使用家人或好友的電話號碼。</p></blockquote>
</li>
</ol>
<h2>Google 兩階段密碼驗證 新增 Client 程式</h2>
<p>Google 兩階段密碼驗證的重點, 主要有下述幾點:</p>
<ol>
<li>登入網頁 (Gmail)</li>
<li>第一次登入需要搭配手機簡訊, 如果有安裝 App, 會搭配 Google Authenticator 動態數字密碼, 然後可以紀錄 30天(此台電腦, 30天內不用重新輸入動態數字密碼)</li>
<li>http://support.google.com/a/bin/answer.py?hl=en&amp;answer=1037451</li>
<li>註1: 若其他台電腦要登入, 會需要密碼 + 動態數字密碼, 可以決定當下搭配此數字密碼, 或者存 30天, 避免只有依靠一組密碼, 增加安全性.</li>
<li>註2: 30天後, 還是會需要重新輸入 密碼 + 動態數字密碼</li>
<li>註3: 請在設定應用程式後，輸入所產生的驗證碼，然後按一下 [驗證]。</li>
</ol>
<h2>手機安裝 Google Authenticator (智慧型手機: Android、iPhone 等)</h2>
<p>安裝這套在登入時, 如果需要存取動態密碼, 開啟應用程式就可以看到, 如果沒有安裝, 就每次都得要等簡訊通知, 等不到簡訊就無法登入了. XD</p>
<ul>
<li>安裝說明可見官方網頁: <a title="安裝 Google Authenticator" href="https://support.google.com/accounts/bin/answer.py?hl=zh-Hant&amp;answer=1066447" target="_blank">安裝 Google Authenticator</a></li>
<li>iPhone Market 搜尋: Google Authenticator</li>
<li>Android Google play 搜尋: Google Authenticator</li>
<li>註: 即使不在手機服務涵蓋範圍，仍可使用應用程式取得驗證碼。</li>
</ul>
<h2>應用程式 (Client) 登入存取 Google 服務</h2>
<ol>
<li>啟用步驟: Account -&gt; 兩步驟驗證 - 開啟 - 編輯 (點選 "編輯") -&gt; Manage application-specific passwords (電腦或者 Client 服務, 一開始會很常需要到這個頁面)</li>
<li>若有新增新的應用程式, 都會需要到此頁面 <a title="Manage application-specific passwords" href="https://accounts.google.com/b/0/IssuedAuthSubTokens" target="_blank">Manage application-specific passwords</a> 產生新的密碼, 密碼都很長, 而且給這一次使用, 同樣密碼拿去其他還要再次設定, 就無法設定了.</li>
<li>註1: 所有的應用程式都需要授權, 原始密碼是沒有用得.</li>
<li>註2: 手機的應用程式也是需要這種授權, iPhone 行事曆的作法比較特別, 於下述另外紀錄.</li>
</ol>
<h2>兩階段驗證登入遇到的 問題 與 解法</h2>
<ol>
<li>當 啟用 Google 兩階段驗證後, iPhone 的 行事曆就無法更新了, 解決方法如下述步驟:</li>
<li>兩段認證 於 iPhone 行事曆, 可以採用 CalDAV 的方式解決更新問題.</li>
<li>iPhone ical 設定 - <a title="CalDAV 日曆同步功能" href="http://support.google.com/mobile/bin/answer.py?hl=zh-Hant&amp;answer=151674" target="_blank">CalDAV 日曆同步功能</a></li>
<li>第一欄位輸入: google.com</li>
<li>第二欄位輸入: Email 帳號ex:  example@gmail.com</li>
<li>認證的密碼: [密碼] 欄位中，輸入您的「Google 帳戶」或「Google 應用服務」密碼</li>
<li>描述欄位輸入: Google iCal</li>
</ol>
<h3>相關網頁</h3>
<ul>
<li>Android 手機無法登入的問題, 可見此篇: <a title="Google 兩階段驗證心得與問題" href="http://www.mobile01.com/topicdetail.php?f=423&amp;t=2017977" target="_blank">Google 兩階段驗證心得與問題</a></li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fhowto-google-2step-verify-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/sjPGInuCy88" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/howto-google-2step-verify-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/howto-google-2step-verify-2012/</feedburner:origLink></item>
		<item>
		<title>萃取一杯 完美義式咖啡 的 六大黃金要素</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/ql4Lxt1moco/</link>
		<comments>http://blog.longwin.com.tw/2012/05/coffee-perfect-point-2012/#comments</comments>
		<pubDate>Sun, 13 May 2012 17:49:55 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[Document-Ebook]]></category>
		<category><![CDATA[coffee]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3629</guid>
		<description><![CDATA[在找咖啡機時, 到處都會看到 萃取一杯 完美義式咖啡 的 六大黃金要素 等資料, 在此將這些資料作個紀錄. 萃取一杯 完美義式咖啡 的 六大黃金要素 萃取壓力:9 bar (大氣壓力) 萃取時間: 25 sec (秒) 萃取量: 30 cc 咖啡杯溫度: 40 ℃ 萃取水溫: 90 ℃ 萃取後溫度: 67 ℃ 註: 萃取壓力:9 bar 是最佳選項, 壓力並不是越大越好, 所以現在的咖啡機, 很多 15bar 都會調整回 &#8230; <a href="http://blog.longwin.com.tw/2012/05/coffee-perfect-point-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在找咖啡機時, 到處都會看到 萃取一杯 完美義式咖啡 的 六大黃金要素 等資料, 在此將這些資料作個紀錄.</p>
<p><span id="more-3629"></span></p>
<h2>萃取一杯 完美義式咖啡 的 六大黃金要素</h2>
<ul>
<li>萃取壓力:9 bar (大氣壓力)</li>
<li>萃取時間: 25 sec (秒)</li>
<li>萃取量: 30 cc</li>
<li>咖啡杯溫度: 40 ℃</li>
<li>萃取水溫: 90 ℃</li>
<li>萃取後溫度: 67 ℃</li>
<li>註: 萃取壓力:9 bar 是最佳選項, 壓力並不是越大越好, 所以現在的咖啡機, 很多 15bar 都會調整回 9bar (商用的也都是 9bar, 商用咖啡機的壓力表, 甚至 14~15 bar 是紅色危險警示)</li>
</ul>
<h3>義式咖啡機</h3>
<ul>
<li>製作咖啡中一切成果和精華的所在，精密設計與咖啡機的製造在義式咖啡的製作上佔有很重要的席位。</li>
<li>1.幫浦壓力：已負載的沖泡頭出口的壓力測定為 9 bars</li>
<li>2.注射至咖啡粉的水溫為攝氏 88 度，正負誤差攝氏 2 度</li>
<li>* 如超越此溫度：咖啡可以說已被“燒燬”：燒燬香味和口味--苦澀、深色克立瑪 (crema)，泡沫也幾乎隨即消失。</li>
<li>* 如溫度過低：咖啡可以說是“萃取不足”：咖啡較淡、無味和不能持久，克立瑪 (crema) 也不夠厚。</li>
</ul>
<h3>水質</h3>
<ul>
<li>水是咖啡的主要成份，正因如此，我們不能忽略此重要成份。水垢的產生是因為鈣與鎂離子在熱力的催化下結晶而成。現今有一些特定的測試可以偵測到水中鈣與碳酸鎂的含量。此測試為 "水的硬度係數" 或 "KH"。</li>
</ul>
<h3>咖啡豆</h3>
<ul>
<li>烘培商們以產地和品種選擇咖啡豆以確保品質一致。烘培技術能直接影響咖啡的味道。</li>
<li>* 淺烘培：略酸、少苦</li>
<li>* 深烘培：少酸、較苦</li>
</ul>
<h3>磨豆機</h3>
<ul>
<li>磨豆機是製作一杯好的義式咖啡的重要基礎。它是咖啡機不可少的工具，它決定研磨的品質。咖啡研磨應該平均極細以至兩杯份義式咖啡的的平均流經時間為平均為 25-30 秒。</li>
<li>1. 如研磨過細，兩杯份的流經時間會長達 35-40 秒，這時咖啡可以說已被萃取過度：深顏色不穩定泡沫出現- 咖啡太苦。</li>
<li>2. 如研磨過粗，兩杯份的流經時間只有 20 秒，咖啡可以說是“萃取不足”：顏色太淺，泡沫太少- 淡而無味。</li>
</ul>
<h3>咖啡杯</h3>
<ul>
<li>享用義式咖啡本身就是一種藝術，在使用器具上應不可輕率，務求能把咖啡的優點呈現出來。用作盛載義式咖啡的咖啡杯應貯存在攝氏 40 度的溫度左右，厚度為 2 -3mm ， 5 -6cm 高，最大直徑為 5cm ，容量為 70ml ，在任何情況下都不應該被倒入至杯的邊緣。</li>
</ul>
<h3>何謂預浸泡</h3>
<ul>
<li>在咖啡萃取的過程中;先行注入 10--15  cc 的熱水於咖啡粉中浸潤約3-5秒;讓咖啡粉先行浸泡;接著再進入萃取過程；如此咖啡菁華(CREMA)萃取會更加完整順暢;且口感較佳;咖啡層次感(口味)亦更加豐富</li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fcoffee-perfect-point-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/ql4Lxt1moco" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/coffee-perfect-point-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/coffee-perfect-point-2012/</feedburner:origLink></item>
		<item>
		<title>好文: Java 的歷史 與 Timeline</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/lmCiVpRICR8/</link>
		<comments>http://blog.longwin.com.tw/2012/05/ejava-history-timeline-2012/#comments</comments>
		<pubDate>Thu, 10 May 2012 17:51:40 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3624</guid>
		<description><![CDATA[Java 整個非常的龐大, 要學習的話, 建議可以讀讀 歷史演進 與 緣由~ Java 的歷史 與 演進 - Timeline The History of Java Technology The Java History Timeline - 推薦看此篇 The Java IP Story - Java 的歷史演進 Java (programming language) - Wikipedia, the free encyclopedia Java &#8230; <a href="http://blog.longwin.com.tw/2012/05/ejava-history-timeline-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Java 整個非常的龐大, 要學習的話, 建議可以讀讀 歷史演進 與 緣由~ <img src='http://blog.longwin.com.tw/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-3624"></span></p>
<h2>Java 的歷史 與 演進 - Timeline</h2>
<ul>
<li><a title="The History of Java Technology" href="http://www.oracle.com/technetwork/java/javase/overview/javahistory-index-198355.html" target="_blank">The History of Java Technology</a></li>
<li><a title="The Java History Timeline" href="http://oracle.com.edgesuite.net/timeline/java/" target="_blank">The Java History Timeline</a> - 推薦看此篇</li>
<li><a title="The Java IP Story" href="http://dirkriehle.com/2011/06/30/the-java-ip-story/" target="_blank">The Java IP Story</a> - Java 的歷史演進</li>
<li><a title="Java (programming language) - Wikipedia, the free encyclopedia" href="http://en.wikipedia.org/wiki/Java_%28programming_language%29" target="_blank">Java (programming language) - Wikipedia, the free encyclopedia</a></li>
<li><a title="Java version history - Wikipedia, the free encyclopedia" href="http://en.wikipedia.org/wiki/Java_version_history" target="_blank">Java version history - Wikipedia, the free encyclopedia</a></li>
<li><a title="List of JVM languages - Wikipedia, the free encyclopedia" href="http://en.wikipedia.org/wiki/List_of_JVM_languages" target="_blank">List of JVM languages - Wikipedia, the free encyclopedia</a></li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fejava-history-timeline-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/lmCiVpRICR8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/ejava-history-timeline-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/ejava-history-timeline-2012/</feedburner:origLink></item>
		<item>
		<title>為 Apache2 安裝 SPDY Module</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/M7JScyr4Akc/</link>
		<comments>http://blog.longwin.com.tw/2012/05/apache2-spdy-module-google-2012/#comments</comments>
		<pubDate>Wed, 09 May 2012 17:37:17 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[News-Application]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[spdy]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3607</guid>
		<description><![CDATA[Google 發佈 mod_spdy 給 Apache (Web server) 使用. SPDY 講簡單點, 就是讓你的網頁 Loading 速度加快(註), 詳細得請自行參照下述文章: 新聞可見: Add SPDY support to your Apache server with mod_spdy 註1: HTTP協定 換成 SPDY協定, 目前 Chrome、Firefox 支援 (使用 IE 的話, SPDY 不會比較快) 註2: 摘錄自此篇新聞 "SPDY runs &#8230; <a href="http://blog.longwin.com.tw/2012/05/apache2-spdy-module-google-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Google 發佈 mod_spdy 給 Apache (Web server) 使用.</p>
<p><span id="more-3607"></span></p>
<p>SPDY 講簡單點, 就是讓你的網頁 Loading 速度加快(註), 詳細得請自行參照下述文章:</p>
<p>新聞可見: <a title="Add SPDY support to your Apache server with mod_spdy" href="http://googledevelopers.blogspot.com/2012/04/add-spdy-support-to-your-apache-server.html" target="_blank">Add SPDY support to your Apache server with mod_spdy</a></p>
<ul>
<li>註1: HTTP協定 換成 SPDY協定, 目前 Chrome、Firefox 支援 (使用 IE 的話, SPDY 不會比較快)</li>
<li>註2: 摘錄自此篇新聞 "SPDY runs over HTTPS, so any HTTP (non-HTTPS) traffic on your site will not be affected by mod_spdy.". - 現在只有針對 HTTPS 有效用. (2012-04) XD</li>
</ul>
<p>更多的 SPDY 介紹, 可見此篇: <a title="什麼是 SPDY?" href="http://blog.longwin.com.tw/2012/05/what-is-spdy-intro-2012/">什麼是 SPDY?</a></p>
<h2>SPDY(SPeeDY) 說明文件</h2>
<p>SPDY(SPeeDY) 說明可見:</p>
<ul>
<li><a title="SPDY - WikiPedia" href="http://zh.wikipedia.org/wiki/SPDY" target="_blank">SPDY - WikiPedia</a></li>
<li><a title="Life beyond HTTP 1.1: Google's SPDY" href="http://www.igvita.com/2011/04/07/life-beyond-http-11-googles-spdy/" target="_blank">Life beyond HTTP 1.1: Google's SPDY</a> (中譯: <a title="Google SPDY初探：HTTP 1.1之外的世界" href="http://heikezhi.com/2011/05/11/life-beyond-http-11-googles-spdy/" target="_blank">Google SPDY初探：HTTP 1.1之外的世界</a>)</li>
</ul>
<h2>Google 發佈的 Apache2 SPDY Module 安裝步驟</h2>
<p>SPDY Project 首頁: <a title="mod-spdy - Apache SPDY module" href="http://code.google.com/p/mod-spdy/" target="_blank">mod-spdy - Apache SPDY module</a></p>
<ol>
<li>於 <a title="mod_spdy - Google Developers" href="https://developers.google.com/speed/spdy/mod_spdy/" target="_blank">mod_spdy - Google Developers</a> 取得所需套件 (下述是以 Debian / Ubuntu 64bits 為範例)</li>
<li>wget https://dl-ssl.google.com/dl/linux/direct/mod-spdy-beta_current_amd64.deb</li>
<li>dpkg -i mod-spdy-*.deb</li>
<li>sudo service apache2 restart # 到此即完成.</li>
</ol>
<h2>相關網頁</h2>
<ul>
<li><a title="mod_spdy performance testing" href="https://www.modspdy.com/blog/2012/04/16/mod_spdy-performance-testing/" target="_blank">mod_spdy performance testing</a></li>
<li><a title="SPDY Protocol - The Chromium Projects" href="http://dev.chromium.org/spdy/spdy-protocol" target="_blank">SPDY Protocol - The Chromium Projects</a></li>
<li><a title="SPDY performance on mobile networks" href="http://googledevelopers.blogspot.com/2012/05/spdy-performance-on-mobile-networks.html" target="_blank">SPDY performance on mobile networks</a></li>
<li><a title="F5 Application Delivery Optimization" href="http://www.slideshare.net/f5dotcom/f5-ado-slide-share" target="_blank">F5 Application Delivery Optimization</a> - F5 Announces First Integrated SPDY Gateway</li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fapache2-spdy-module-google-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/M7JScyr4Akc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/apache2-spdy-module-google-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/apache2-spdy-module-google-2012/</feedburner:origLink></item>
		<item>
		<title>什麼是 SPDY?</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/2tvm_t3t7po/</link>
		<comments>http://blog.longwin.com.tw/2012/05/what-is-spdy-intro-2012/#comments</comments>
		<pubDate>Tue, 08 May 2012 17:14:50 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[News-Technology]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[spdy]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3601</guid>
		<description><![CDATA[SPDY 的說明文件如下述: SPDY - The Chromium Projects SPDY: An experimental protocol for a faster web 什麼是 SPDY? SPDY 作什麼事情? SPDY 主要是希望可以讓現在 HTTP 加速, 加強 HTTP 的部份摘錄如下述: (取自上述官方文件) SPDY is not the only research to make HTTP faster. There have been &#8230; <a href="http://blog.longwin.com.tw/2012/05/what-is-spdy-intro-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SPDY 的說明文件如下述:</p>
<ul>
<li><a title="SPDY - The Chromium Projects" href="http://dev.chromium.org/spdy" target="_blank">SPDY - The Chromium Projects</a></li>
<li><a title="SPDY: An experimental protocol for a faster web" href="http://dev.chromium.org/spdy/spdy-whitepaper" target="_blank">SPDY: An experimental protocol for a faster web</a></li>
</ul>
<p><span id="more-3601"></span></p>
<h2>什麼是 SPDY? SPDY 作什麼事情?</h2>
<p>SPDY 主要是希望可以讓現在 HTTP 加速, 加強 HTTP 的部份摘錄如下述: (取自上述官方文件)</p>
<blockquote><p>SPDY is not the only research to make HTTP faster. There have been other proposed solutions to web latency, mostly at the level of the transport or session layer:</p>
<ul>
<li><a title="Stream Control Transmission Protocol (SCTP)" href="http://www.sctp.org/" target="_blank">Stream Control Transmission Protocol (SCTP)</a> -- a transport-layer protocol to replace TCP, which provides multiplexed streams and stream-aware congestion control.</li>
<li><a title="draft-natarajan-http-over-sctp-00 - Using SCTP as a Transport Layer Protocol for HTTP" href="http://tools.ietf.org/html/draft-natarajan-http-over-sctp-00" target="_blank">HTTP over SCTP</a> -- a proposal for running HTTP over SCTP. Comparison of HTTP Over SCTP and TCP in High Delay Networks describes a research study comparing the performance over both transport protocols.</li>
<li><a title="Structured Stream Transport (SST)" href="http://pdos.csail.mit.edu/uia/sst/" target="_blank">Structured Stream Transport (SST)</a> -- a protocol which invents "structured streams": lightweight, independent streams to be carried over a common transport. It replaces TCP or runs on top of UDP.</li>
<li><a title="MUX Overview" href="http://www.w3.org/Protocols/MUX/" target="_blank">MUX</a> and <a title="W3C WD: SMUX Protocol Specification" href="http://www.w3.org/TR/WD-mux" target="_blank">SMUX</a> -- intermediate-layer protocols (in between the transport and application layers) that provide multiplexing of streams. They were proposed years ago at the same time as HTTP/1.1.</li>
</ul>
</blockquote>
<p>SPDY 可以幫 HTTP/HTTPS 速度提昇的數據 (摘錄自上述官方文件)</p>
<ul>
<li>The results show a speedup over HTTP of 27% - 60% in page load time over plain TCP (without SSL), and 39% - 55% over SSL.</li>
</ul>
<h2>關於 SPDY 的相關套件與模組</h2>
<ul>
<li><a title="An experimental proof-of-concept SPDY Apache module (in progress)." href="http://code.google.com/p/mod-spdy/" target="_blank">mod-spdy - Apache SPDY module</a></li>
<li><a title="spedye: A reverse proxy for the HTTPS and SPDY protocols" href="https://github.com/pquerna/spedye" target="_blank">spedye: A reverse proxy for the HTTPS and SPDY protocols</a></li>
</ul>
<h2>關於 SPDY 的相關文章、投影片介紹</h2>
<ul>
<li><a title="SPDY -WikiPedia" href="http://zh.wikipedia.org/wiki/SPDY" target="_blank">SPDY -WikiPedia</a></li>
<li><a title="Making the Web Faster with HTTP 2 Protocol" href="http://www.phpclasses.org/blog/post/182-Making-the-Web-Faster-with-HTTP-2-Protocol.html" target="_blank">Making the Web Faster with HTTP 2 Protocol</a></li>
<li><a title="Making the web speedier and safer with SPDY" href="http://googledevelopers.blogspot.com/2012/01/making-web-speedier-and-safer-with-spdy.html" target="_blank">Making the web speedier and safer with SPDY</a></li>
<li><a title="SPDY of the Future Might Blow Your Mind Today « Mike's Lookout" href="http://www.belshe.com/2011/11/17/spdy-of-the-future-might-blow-your-mind-today/" target="_blank">SPDY of the Future Might Blow Your Mind Today « Mike's Lookout</a>, 下述摘錄自此文<br />
<blockquote><p>What is SPDY?<br />
SPDY is a protocol created by Google researchers. Announced first in 2009, it brings some of the original goals proposed by the HTTP-NG group in 1998.</p></blockquote>
</li>
<li><a title="Google 的 SPDY 將可能包含在下一代 HTTP 標準中" href="http://it.solidot.org/article.pl?sid=12/01/25/0912213" target="_blank">Google 的 SPDY 將可能包含在下一代 HTTP 標準中</a>, 下述摘錄自此文:<br />
<blockquote><p>SPDY設計目標在減少 Client 和 Server 之間的延遲。<br />
當資料經過 TCP 連接傳輸，發送端必須先等待接收方確認之後才能發送資料。<br />
接受和確認所需的時間是由往返時間(Round-Trip Time)控制。<br />
Client 和 Server 可能要將大部分時間花在確認上，而不是資料傳輸上。<br />
通過 HTTP Header 壓縮、包優先權 和 reuse 等，SPDY能減少網頁載入時間。<br />
HTTP 工作組 的 主席Mark Nottingham呼籲應該將SPDY包含在下一代HTTP/2.0標準中。</p></blockquote>
</li>
<li><a title="Firefox 將支持 SPDY 協議" href="http://software.solidot.org/article.pl?sid=11/12/04/0227225" target="_blank">Firefox 將支持 SPDY 協議</a>, 下述摘錄自此文:<br />
<blockquote><p>舊的 HTTP 和 TCP Protocol 不能充分利用頻寬，Google 的 SPDY Protocol 是基於TCP的應用層協議，一次會話能復用傳輸多個文件，降低頁面載入時間。</p></blockquote>
</li>
</ul>
<p>投影片: <a title="You Ain't SPDY (Ruby Nation)" href="http://speakerdeck.com/u/chris/p/you-aint-spdy-ruby-nation" target="_blank">You Ain't SPDY (Ruby Nation)</a>, 下述為此投影片的一些重點摘錄:</p>
<ul>
<li>SPDY is a replacement for HTTP</li>
<li>SPDY is backwards compatible with HTTP</li>
<li>SPDY still does HTTP-like things</li>
<li>SPDY is optimized for page load times</li>
<li>SPDY<br />
<blockquote><p>Built on SSL<br />
Binary<br />
Don't send redundant header information<br />
Aggressively compress stuff<br />
Use a single(!) tube<br />
Only pay the warm-up penalty once<br />
Just like downloading an Ubuntu ISO!</p></blockquote>
</li>
<li>SPDY<br />
<blockquote><p>SYN_STREAM<br />
SYN_REPLY<br />
RST_STREAM<br />
SETTINGS<br />
HEADERS<br />
PING<br />
GOAWAY<br />
WINDOW_UPDATE<br />
DATA</p></blockquote>
</li>
</ul>
<h3>相關網頁</h3>
<ul>
<li><a title="Y U No Support SPDY Yet?" href="https://devcentral.f5.com/weblogs/macvittie/archive/2012/05/07/y-u-no-support-spdy-yet.aspx" target="_blank">Y U No Support SPDY Yet?</a></li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fwhat-is-spdy-intro-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/2tvm_t3t7po" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/what-is-spdy-intro-2012/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/what-is-spdy-intro-2012/</feedburner:origLink></item>
		<item>
		<title>PHP CGI 漏洞 與 Facebook 解法 - 2012</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/L5mpFwCLG14/</link>
		<comments>http://blog.longwin.com.tw/2012/05/php-cgi-hole-security-facebook-2012/#comments</comments>
		<pubDate>Mon, 07 May 2012 17:00:40 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[News_Security]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3596</guid>
		<description><![CDATA[PHP 最近被爆出跑 mod_cgi 會有漏洞, 可以看到 PHP code 的原始碼. PHP CGI 漏洞新聞 詳見下述新聞 Critical open hole in PHP creates risks - Update 2 PHP 5.3.12 and PHP 5.4.2 Released! There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are &#8230; <a href="http://blog.longwin.com.tw/2012/05/php-cgi-hole-security-facebook-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>PHP 最近被爆出跑 mod_cgi 會有漏洞, 可以看到 PHP code 的原始碼.</p>
<p><span id="more-3596"></span></p>
<h2>PHP CGI 漏洞新聞</h2>
<p>詳見下述新聞</p>
<ul>
<li><a title="Critical open hole in PHP creates risks - Update 2" href="http://www.h-online.com/open/news/item/Critical-open-hole-in-PHP-creates-risks-Update-2-1567532.html" target="_blank">Critical open hole in PHP creates risks - Update 2</a></li>
<li><a title="PHP 5.3.12 and PHP 5.4.2 Released!" href="http://www.php.net/archive/2012.php#id2012-05-03-1" target="_blank">PHP 5.3.12 and PHP 5.4.2 Released!<br />
</a></p>
<blockquote><p>There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are not affected) that has gone unnoticed for at least 8 years.</p></blockquote>
</li>
</ul>
<h3>CGI 漏洞語法</h3>
<ul>
<li>http://localhost/index.php?-s</li>
</ul>
<h3>暫時於 Apache 使用的修補方式</h3>
<ul>
<li>RewriteCond %{QUERY_STRING} ^(%2d|-)[^=]+$ [NC]</li>
<li>RewriteRule ^(.*) $1? [L]</li>
</ul>
<h3>Facebook 對此漏洞的處理法</h3>
<p>有此漏洞, 自然很多人會想在 Facebook 玩玩看, Facebook 也很爽快的讓大家看到 Source code.</p>
<p>連到 <strong>http://facebook.com/?-s</strong>, 會秀出下述的 Source code:</p>
<blockquote><p>&lt;?php</p>
<p>include_once 'https://www.facebook.com/careers/department?dept=engineering&amp;req=a2KA0000000Lt8LMAS';</p></blockquote>
<p>連到 Source code 寫的 Facebook 的連結頁面, 就可以看到 Security Engineer 的 Apply for this position 按鈕. <img src='http://blog.longwin.com.tw/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<h3>相關網頁</h3>
<ul>
<li><a title="PHP-CGI Vulnerability Exploited in the Wild" href="http://blog.sucuri.net/2012/05/php-cgi-vulnerability-exploited-in-the-wild.html" target="_blank">PHP-CGI Vulnerability Exploited in the Wild</a></li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Fphp-cgi-hole-security-facebook-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/L5mpFwCLG14" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/php-cgi-hole-security-facebook-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/php-cgi-hole-security-facebook-2012/</feedburner:origLink></item>
		<item>
		<title>使用 lsof 監看本機 某個Port 的 對外連線狀況</title>
		<link>http://feedproxy.google.com/~r/tsungblog/~3/6e4kOkiGLlk/</link>
		<comments>http://blog.longwin.com.tw/2012/05/lsof-port-network-2012/#comments</comments>
		<pubDate>Sun, 06 May 2012 17:04:56 +0000</pubDate>
		<dc:creator>Tsung</dc:creator>
				<category><![CDATA[My_Note-Unix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[lsof]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://blog.longwin.com.tw/?p=3582</guid>
		<description><![CDATA[使用 lsof (list open files) 來看某個 Port 的 Connection 狀態, 並且查看此 Port 是被哪支程式佔住了. 註1: netstat 也可以作類似的事情, 但是 lsof 更簡單易懂些. 註2: 主要用此可以查看, 是否有哪些連線是你意想不到的. (會不會是被種了木馬等等的) 使用 lsof 監看本機對外連線指令參數 lsof 命令參數如下述: lsof -i :80 # 80 是 Port number lsof &#124; grep TCP &#8230; <a href="http://blog.longwin.com.tw/2012/05/lsof-port-network-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>使用 lsof (list open files) 來看某個 Port 的 Connection 狀態, 並且查看此 Port 是被哪支程式佔住了.</p>
<ul>
<li>註1: netstat 也可以作類似的事情, 但是 lsof 更簡單易懂些.</li>
<li>註2: 主要用此可以查看, 是否有哪些連線是你意想不到的. (會不會是被種了木馬等等的)</li>
</ul>
<p><span id="more-3582"></span></p>
<h2>使用 lsof 監看本機對外連線指令參數</h2>
<ul>
<li>lsof 命令參數如下述:</li>
<li><strong>lsof -i :80</strong> # 80 是 Port number</li>
<li><strong>lsof | grep TCP</strong> # 看現在有開哪些 TCP port</li>
<li><strong>lsof -Pni |grep ":80"</strong> # 看詳細 80Port 的連線狀況</li>
<li><strong>lsof -i -P | grep -i "LISTEN"</strong> # 看現在有哪些 Port 正在監聽服務</li>
</ul>
<h3>lsof 監看 Port 的操作範例</h3>
<ul>
<li><strong>lsof -i :80</strong> # 本機 80 Port 對外連線的狀況<br />
<blockquote><p>dropbox   2070  user  21u  IPv4  77760      0t0  TCP x220i.local:52980-&gt;xxx.sjc.dropbox.com:http (ESTABLISHED)<br />
ubuntu-ge 2252  user   7u  IPv4  76945      0t0  TCP x220i.local:49170-&gt;xxx.canonical.com:http (CLOSE_WAIT)<br />
unity-sco 2528  user  12u  IPv4  57507      0t0  TCP x220i.local:46337-&gt;xxx.canonical.com:http (CLOSE_WAIT)<br />
unity-sco 2528  user  14u  IPv4  57508      0t0  TCP x220i.local:46338-&gt;xxx.canonical.com:http (CLOSE_WAIT)<br />
firefox   5618  user  60u  IPv4  97736      0t0  TCP x220i.local:46284-&gt;xxx.facebook.com:http (ESTABLISHED)<br />
firefox   5618  user  120u  IPv4  92880      0t0  TCP x220i.local:51870-&gt;xxx.tfbnw.net:http (ESTABLISHED)</p></blockquote>
</li>
<li><strong>lsof -i :22</strong> # 本機 22 Port 對外的連線狀況<br />
<blockquote><p>ssh      3175  user   3u  IPv4    12676      0t0  TCP localhost:53854-&gt;hosted.by.obj.localhost:ssh (ESTABLISHED)<br />
ssh      3227  user   3u  IPv4    12262      0t0  TCP localhost:51271-&gt;hosted.by.obj.localhost:ssh (ESTABLISHED)<br />
ssh      3331  user   3u  IPv4    12815      0t0  TCP localhost:37037-&gt;obj-localhost:ssh (ESTABLISHED)</p></blockquote>
</li>
</ul>
<h3>相關網頁</h3>
<ul>
<li><a title="Unix調試的瑞士軍刀：lsof" href="http://heikezhi.com/2011/06/19/swiss-army-knife-of-unix-debugging-lsof/" target="_blank">Unix調試的瑞士軍刀：lsof</a></li>
</ul>
<div id="fb_send_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.longwin.com.tw%2F2012%2F05%2Flsof-port-network-2012%2F&amp;send=true&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></div><img src="http://feeds.feedburner.com/~r/tsungblog/~4/6e4kOkiGLlk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.longwin.com.tw/2012/05/lsof-port-network-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.longwin.com.tw/2012/05/lsof-port-network-2012/</feedburner:origLink></item>
	</channel>
</rss>

