<?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>Eternity</title>
	<atom:link href="http://blog.tinlans.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tinlans.org</link>
	<description></description>
	<lastBuildDate>Wed, 21 Mar 2012 16:58:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3-beta1-18972</generator>
		<item>
		<title>FreeBSD 的 boost-1.45.0 沒辦法用 gcc 4.7 編譯的問題</title>
		<link>http://blog.tinlans.org/2012/03/11/freebsd-%e7%9a%84-boost-1-45-0-%e6%b2%92%e8%be%a6%e6%b3%95%e7%94%a8-gcc-4-7-%e7%b7%a8%e8%ad%af%e7%9a%84%e5%95%8f%e9%a1%8c/</link>
		<comments>http://blog.tinlans.org/2012/03/11/freebsd-%e7%9a%84-boost-1-45-0-%e6%b2%92%e8%be%a6%e6%b3%95%e7%94%a8-gcc-4-7-%e7%b7%a8%e8%ad%af%e7%9a%84%e5%95%8f%e9%a1%8c/#comments</comments>
		<pubDate>Sat, 10 Mar 2012 22:19:26 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[boost]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[GCC]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1921</guid>
		<description><![CDATA[<p>因為最近還是很忙，所以就常話短說。</p> <p>拿 GCC 4.7 當編譯 ports 用的 compiler 去 build boost-1.45.0 的時候，會遇上這個錯誤：</p> <p>./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"</p> <p>遇到的話，請直接殺進 devel/boost-libs/work/boost_1_45_0/boost/config/stdlib 改libstdcpp3.hpp。 改法在 boost 官方的 tickets 裡已經有人提供了：https://svn.boost.org/trac/boost/attachment/ticket/6165/libstdcpp3.hpp.patch</p> ?View Code DIFF--- libstdcpp3.hpp.orig 2010-10-01 17:19:44.000000000 +0800 +++ libstdcpp3.hpp 2012-03-21 05:20:04.000000000 +0800 @@ -31,7 +31,8 @@ &#160; #ifdef __GLIBCXX__ // gcc 3.4 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2012/03/11/freebsd-%e7%9a%84-boost-1-45-0-%e6%b2%92%e8%be%a6%e6%b3%95%e7%94%a8-gcc-4-7-%e7%b7%a8%e8%ad%af%e7%9a%84%e5%95%8f%e9%a1%8c/">FreeBSD 的 boost-1.45.0 沒辦法用 gcc 4.7 編譯的問題</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2012/03/11/freebsd-%e7%9a%84-boost-1-45-0-%e6%b2%92%e8%be%a6%e6%b3%95%e7%94%a8-gcc-4-7-%e7%b7%a8%e8%ad%af%e7%9a%84%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>這速度實在是...</title>
		<link>http://blog.tinlans.org/2011/12/27/%e9%80%99%e9%80%9f%e5%ba%a6%e5%af%a6%e5%9c%a8%e6%98%af/</link>
		<comments>http://blog.tinlans.org/2011/12/27/%e9%80%99%e9%80%9f%e5%ba%a6%e5%af%a6%e5%9c%a8%e6%98%af/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 06:01:37 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[diary]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1916</guid>
		<description><![CDATA[<p>自從把大部分的東西外移以後，已經很久沒有用清大的網路了。 今天要幫學弟開 svn repository，去抓個 llvm source，結果看到了有趣的速度： </p> <p>偉哉... 我拿家用 10m/2m 的 VDSL 抓下來傳上去還比這快，實在是太了不起了。 已經懶得再說什麼，單純發一篇久違的抱怨文。</p> ]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2011/12/27/%e9%80%99%e9%80%9f%e5%ba%a6%e5%af%a6%e5%9c%a8%e6%98%af/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>用 gcc-4.3+ 編 graphics/graphviz 遇到 libgvc.so: undefined reference to `sincos&#039; 錯誤時的解法</title>
		<link>http://blog.tinlans.org/2011/08/28/%e7%94%a8-gcc-4-3-%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-libgvc-so-undefined-reference-to-sincos-%e9%8c%af%e8%aa%a4%e6%99%82%e7%9a%84%e8%a7%a3%e6%b3%95/</link>
		<comments>http://blog.tinlans.org/2011/08/28/%e7%94%a8-gcc-4-3-%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-libgvc-so-undefined-reference-to-sincos-%e9%8c%af%e8%aa%a4%e6%99%82%e7%9a%84%e8%a7%a3%e6%b3%95/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 15:39:05 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[graphviz]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1910</guid>
		<description><![CDATA[<p>錯誤訊息：</p> <p>gmake[3]: Entering directory `/usr/ports/graphics/graphviz/work/graphviz-2.28.0/cmd/dot' CC dot-dot.o CC dot-no_builtins.o CC dot_builtins-dot.o CC dot_builtins-dot_builtins.o CCLD dot_builtins CCLD dot ../../lib/gvc/.libs/libgvc.so: undefined reference to `sincos' collect2: ld returned 1 exit status gmake[3]: *** [dot] Error 1</p> <p>FreeBSD 的 libm 裡目前還沒有實作 sincos 這個函式。 autoconf 產生出的 configure script 測出來會說有，是因為它的測試參數下得跟實際編譯時不一樣，會用到 GCC 的 built-in function。 這個老外已經有說解法了： http://markmail.org/thread/okslhtdmwckdweed#query:+page:1+mid:okslhtdmwckdweed+state:results 就是跑完 configure 之後直接把測試結果 edit 掉。 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2011/08/28/%e7%94%a8-gcc-4-3-%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-libgvc-so-undefined-reference-to-sincos-%e9%8c%af%e8%aa%a4%e6%99%82%e7%9a%84%e8%a7%a3%e6%b3%95/">用 gcc-4.3+ 編 graphics/graphviz 遇到 libgvc.so: undefined reference to `sincos' 錯誤時的解法</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2011/08/28/%e7%94%a8-gcc-4-3-%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-libgvc-so-undefined-reference-to-sincos-%e9%8c%af%e8%aa%a4%e6%99%82%e7%9a%84%e8%a7%a3%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用 X server 遠端執行 VirtualBox 時一進入設定就會 Segmentation fault</title>
		<link>http://blog.tinlans.org/2011/04/18/%e4%bd%bf%e7%94%a8-x-server-%e9%81%a0%e7%ab%af%e5%9f%b7%e8%a1%8c-virtualbox-%e6%99%82%e4%b8%80%e9%80%b2%e5%85%a5%e8%a8%ad%e5%ae%9a%e5%b0%b1%e6%9c%83-segmentation-fault/</link>
		<comments>http://blog.tinlans.org/2011/04/18/%e4%bd%bf%e7%94%a8-x-server-%e9%81%a0%e7%ab%af%e5%9f%b7%e8%a1%8c-virtualbox-%e6%99%82%e4%b8%80%e9%80%b2%e5%85%a5%e8%a8%ad%e5%ae%9a%e5%b0%b1%e6%9c%83-segmentation-fault/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 07:14:38 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1903</guid>
		<description><![CDATA[<p>這個問題是在 FreeBSD 8.2-STABLE 上遇到的，但我想其實跟 OS 無關。 主要是 Windows 上的 X server 不支援 OpenGL 加速，然後 VirtualBox 裡有一段測試 OpenGL 是否能運作的 code 沒寫好，結果就掛了。 會看到的錯誤訊息如下：</p> <p>WARNING: QGLContext::makeCurrent(): Cannot make invalid context current Segmentation fault</p> <p>稍微看了一下，相關的判斷部分，都是透過檢查 QGLContext::makeCurrent() 的 return value 是否為 0 來判斷。 不過稍微 Google 一下就會發現，其實應該使用 QGLWidget::isValid() 來判斷才對。</p> <p>我本身只會使用 X server 遠端從 shell 啟動 VirtualBox，沒有從 console 上執行的打算，所以上面這些部分都可以不管它。 在 emulators/virtualbox-ose 裡 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2011/04/18/%e4%bd%bf%e7%94%a8-x-server-%e9%81%a0%e7%ab%af%e5%9f%b7%e8%a1%8c-virtualbox-%e6%99%82%e4%b8%80%e9%80%b2%e5%85%a5%e8%a8%ad%e5%ae%9a%e5%b0%b1%e6%9c%83-segmentation-fault/">使用 X server 遠端執行 VirtualBox 時一進入設定就會 Segmentation fault</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2011/04/18/%e4%bd%bf%e7%94%a8-x-server-%e9%81%a0%e7%ab%af%e5%9f%b7%e8%a1%8c-virtualbox-%e6%99%82%e4%b8%80%e9%80%b2%e5%85%a5%e8%a8%ad%e5%ae%9a%e5%b0%b1%e6%9c%83-segmentation-fault/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FreeBSD 在 mysql55-{server,client} 改用 CMake 建置後某些編譯選項無法傳遞</title>
		<link>http://blog.tinlans.org/2011/04/08/freebsd-%e5%9c%a8-mysql55-serverclient-%e6%94%b9%e7%94%a8-cmake-%e5%bb%ba%e7%bd%ae%e5%be%8c%e6%9f%90%e4%ba%9b%e7%b7%a8%e8%ad%af%e9%81%b8%e9%a0%85%e7%84%a1%e6%b3%95%e5%82%b3%e9%81%9e/</link>
		<comments>http://blog.tinlans.org/2011/04/08/freebsd-%e5%9c%a8-mysql55-serverclient-%e6%94%b9%e7%94%a8-cmake-%e5%bb%ba%e7%bd%ae%e5%be%8c%e6%9f%90%e4%ba%9b%e7%b7%a8%e8%ad%af%e9%81%b8%e9%a0%85%e7%84%a1%e6%b3%95%e5%82%b3%e9%81%9e/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 06:42:12 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1896</guid>
		<description><![CDATA[<p>以往在 FreeBSD 編譯 databases/mysql55-{server,client} 時，要下這樣的參數：</p> ?View Code TEXTmake WITH_CHARSET=utf8 WITH_COLLATION=utf8_general_ci WITH_XCHARSET=complex install <p>不過因為在 MySQL 5.5.8 後的 build system 改成了 CMake，導致 ports maintainer 必須重新設計 Makefile。 而目前的 Makefile 尚未設計完善，所以想把這些 options 傳遞給 CMake 的話，只能直接改 Makefile 解決：</p> ?View Code DIFF--- mysql55-server/Makefile.orig 2011-03-19 21:13:47.000000000 +0800 +++ mysql55-server/Makefile 2011-04-08 14:31:05.815962791 +0800 @@ -39,7 +39,10 @@ -DINSTALL_SQLBENCHDIR=&#34;share/mysql&#34; \ -DINSTALL_SUPPORTFILESDIR=&#34;share/mysql&#34; \ -DWITH_LIBEDIT=0 \ <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2011/04/08/freebsd-%e5%9c%a8-mysql55-serverclient-%e6%94%b9%e7%94%a8-cmake-%e5%bb%ba%e7%bd%ae%e5%be%8c%e6%9f%90%e4%ba%9b%e7%b7%a8%e8%ad%af%e9%81%b8%e9%a0%85%e7%84%a1%e6%b3%95%e5%82%b3%e9%81%9e/">FreeBSD 在 mysql55-{server,client} 改用 CMake 建置後某些編譯選項無法傳遞</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2011/04/08/freebsd-%e5%9c%a8-mysql55-serverclient-%e6%94%b9%e7%94%a8-cmake-%e5%bb%ba%e7%bd%ae%e5%be%8c%e6%9f%90%e4%ba%9b%e7%b7%a8%e8%ad%af%e9%81%b8%e9%a0%85%e7%84%a1%e6%b3%95%e5%82%b3%e9%81%9e/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apache 從 2.2.12 開始支援 SNI</title>
		<link>http://blog.tinlans.org/2010/11/02/apache-%e5%be%9e-2-2-12-%e9%96%8b%e5%a7%8b%e6%94%af%e6%8f%b4-sni/</link>
		<comments>http://blog.tinlans.org/2010/11/02/apache-%e5%be%9e-2-2-12-%e9%96%8b%e5%a7%8b%e6%94%af%e6%8f%b4-sni/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 22:48:15 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[SNI]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[virtual host]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1862</guid>
		<description><![CDATA[<p>其實這資訊 lag 了一年多了吧 (現在都 2.2.17 了)。 前幾週被人問到 SSL 時丟相關資訊給他， 才發現 wikipedia 的 SNI 那頁更新過了：Server Name Indication</p> <p>這功能是從 Apache 2.3 merge 回來的：#34607 - Support for Server Name Indication 設定範例可以參考 Apache 的 wiki：SSL with Virtual Hosts Using SNI 其實設定上沒什麼新東西要注意， 一切都恢復到過去設 SSL vhost 的方式即可。 最多就是記得要擺 NameVirtualHost *:443 和 SSLStrictSNIVHostCheck off 這兩行吧。</p> <p>說起來好像外國人流行用 MoinMoinWiki？ 像是 GCC Wiki 和 FreeBSD <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/11/02/apache-%e5%be%9e-2-2-12-%e9%96%8b%e5%a7%8b%e6%94%af%e6%8f%b4-sni/">Apache 從 2.2.12 開始支援 SNI</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/11/02/apache-%e5%be%9e-2-2-12-%e9%96%8b%e5%a7%8b%e6%94%af%e6%8f%b4-sni/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>拖稿很久的 LLVM 使用文</title>
		<link>http://blog.tinlans.org/2010/09/10/%e6%8b%96%e7%a8%bf%e5%be%88%e4%b9%85%e7%9a%84-llvm-%e4%bd%bf%e7%94%a8%e6%96%87/</link>
		<comments>http://blog.tinlans.org/2010/09/10/%e6%8b%96%e7%a8%bf%e5%be%88%e4%b9%85%e7%9a%84-llvm-%e4%bd%bf%e7%94%a8%e6%96%87/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 23:38:06 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[LLVM]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1667</guid>
		<description><![CDATA[<p>因為單純就是使用也沒有去動內部的東西， 所以這篇文從 llvm-2.1 一路拖到 2.7 才終於想寫。 對一些早就在用的人來說這內容應該也 lag 好幾年了， 總之都是些沒什麼技術性的東西。 所以我也不分類在 programming 而是 system diary 了。</p> <p> 下載和準備工作 <p>先到這個網頁點進到最新版的 download 連結： http://llvm.org/releases/ 然後抓 LLVM source code 和 Clang source code 這兩個檔案。 接著把 LLVM source code 解開， 再把 Clang source code 解開丟到 llvm 的 tools 目錄下。 Clang source code 解開的目錄名是 clang-2.7 之類的話把它改成 clang， 雖然我也沒有去測試不改會怎樣。</p> 打算使用 clang++ <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/09/10/%e6%8b%96%e7%a8%bf%e5%be%88%e4%b9%85%e7%9a%84-llvm-%e4%bd%bf%e7%94%a8%e6%96%87/">拖稿很久的 LLVM 使用文</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/09/10/%e6%8b%96%e7%a8%bf%e5%be%88%e4%b9%85%e7%9a%84-llvm-%e4%bd%bf%e7%94%a8%e6%96%87/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>電機電子群高工學生失落的知識：電工數學</title>
		<link>http://blog.tinlans.org/2010/09/02/%e9%9b%bb%e6%a9%9f%e9%9b%bb%e5%ad%90%e7%be%a4%e9%ab%98%e5%b7%a5%e5%ad%b8%e7%94%9f%e5%a4%b1%e8%90%bd%e7%9a%84%e7%9f%a5%e8%ad%98%ef%bc%9a%e9%9b%bb%e5%b7%a5%e6%95%b8%e5%ad%b8/</link>
		<comments>http://blog.tinlans.org/2010/09/02/%e9%9b%bb%e6%a9%9f%e9%9b%bb%e5%ad%90%e7%be%a4%e9%ab%98%e5%b7%a5%e5%ad%b8%e7%94%9f%e5%a4%b1%e8%90%bd%e7%9a%84%e7%9f%a5%e8%ad%98%ef%bc%9a%e9%9b%bb%e5%b7%a5%e6%95%b8%e5%ad%b8/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 11:28:44 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[diary]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1593</guid>
		<description><![CDATA[<p>今天在某板看到一篇有趣的文章： </p> <p>我並非天龍國或大安國的國民， 也不是該國國境內某八大省工之一的名校學生， 所以我也無從得知他們現在的老師是否有教這些東西； 但是這些東西其實是電機電子群的高工學生們原本就有機會學到的。</p> <p>只是這門課因為各式各樣的原因， 所以早在相當久遠的年代以前就慘遭諸多學校以暗黑兵法給做掉了。 這門課的課名就叫做電工數學。</p> <p>當然會求長進的學校絕對不是沒有， 所以即使現在真的還有學校在教這種東西， 我也一點都不感到意外。</p> <p>本篇文章並非在爭論高職生該不該學電工數學， 也並非在闡述高職就會這種像是大學工數的東西有多麼了不起； 更何況它實際上也沒有大學工數那麼博大精深。</p> <p>只是因為以往太多人問或是對此感到訝異， 所以特別開一篇來讓大家明白這門課其實沒有那麼高深和神秘。 數學這種東西到了應用領域其實可以很應用化， 學生甚至可以把它單純地視為一種算術。 當然有興趣的學生也可以進一步瞭解它背後的數學意涵。</p> <p>比起科大/技術學院裡號稱應用科學領域的學科， 高職的電工數學可稱得上是真‧應用科學； 它就僅僅是在應用於電工方面的計算上， 而不會掛羊頭賣狗肉地要你學一堆證明 (這其中也牽涉到技職高教化、教師背景多為高教體系、教材選擇比照高教體系等方面的學界亂象)。</p> <p>事實上在大專院校裡一門名字帶有數學這種 suffix 的課程， 如果教科書開宗明義就告訴你學這東西的目的只是為了應用和求解， 那麼它就有很高的機率被偉大學者們認定是個不入流的教材。 因此雖然我不能說這門課是否一定要在高職階段講授， 但它顯然也無法登得上目前國內科大/技術學院的殿堂。 最後由於這門課遭到升學導向化的高職跟高教化的科大/技術學院前後夾殺， 使得它成為了多數高工裡鮮為人知的究極傳說。</p> <p>綜合以上種種理由， 這裡不會講任何學術性的東西， 只是貼貼圖來滿足一些人的好奇心而已。 即使你單純只是好奇高職生學這些東西到底能拿來幹嘛， 這裡掃的幾張圖應該也多多少少能滿足你的好奇心。</p> <p>首先我們來看看這本不到三百頁的課本封面： 版權頁及課本常見的基價標示法： 翻開封面後就可看到的編輯大意： </p> <p>本書設有貼心的第零章。 它可以幫助已把相關數學基礎忘得差不多的學生先做個複習， 這樣就不會一進到第一章就馬上陣亡一大半。</p> <p>目錄： </p> <p>第零章開頭的學習指引： ↑ 很明確的畫出最終目的都是電路的應用與求解，事實上目的也僅止於此；和大學範圍廣泛的工數相較起來應用範圍更侷限於電工，當然也幾乎不需要學太多證明</p> <p>微分方程的應用： </p> <p>傅立葉級數： </p> <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/09/02/%e9%9b%bb%e6%a9%9f%e9%9b%bb%e5%ad%90%e7%be%a4%e9%ab%98%e5%b7%a5%e5%ad%b8%e7%94%9f%e5%a4%b1%e8%90%bd%e7%9a%84%e7%9f%a5%e8%ad%98%ef%bc%9a%e9%9b%bb%e5%b7%a5%e6%95%b8%e5%ad%b8/">電機電子群高工學生失落的知識：電工數學</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/09/02/%e9%9b%bb%e6%a9%9f%e9%9b%bb%e5%ad%90%e7%be%a4%e9%ab%98%e5%b7%a5%e5%ad%b8%e7%94%9f%e5%a4%b1%e8%90%bd%e7%9a%84%e7%9f%a5%e8%ad%98%ef%bc%9a%e9%9b%bb%e5%b7%a5%e6%95%b8%e5%ad%b8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>並不是在不高興</title>
		<link>http://blog.tinlans.org/2010/08/26/%e4%b8%a6%e4%b8%8d%e6%98%af%e5%9c%a8%e4%b8%8d%e9%ab%98%e8%88%88/</link>
		<comments>http://blog.tinlans.org/2010/08/26/%e4%b8%a6%e4%b8%8d%e6%98%af%e5%9c%a8%e4%b8%8d%e9%ab%98%e8%88%88/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 17:35:39 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[diary]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1567</guid>
		<description><![CDATA[<p>偶而會聽到有一些人覺得我回技術性的文章， 或是在面對面回答問題時看起來不太高興； 但我只能說這是必要之惡。</p> <p>一方面是我平常也不是個講話多嚴肅多正經的老古板， 所以為了讓人知道我是認真在強調這件事的重要性， 我必須使用比較不輕鬆的語氣來 highlight 一下。</p> <p>另一方面則是需要思考一下， 現在以這種態度面對問題和試圖解決問題的可是一名至少 17 歲的大學生。 如果今天你看到他的學習方式或態度是有問題的， 在這之前他也是至少經歷了 10 年以上的學習生涯， 很多方法和態度早已養成習慣難以改變。 也許他以往用這套學習方法讀到大學甚至大學畢業又獲得了不錯的成績， 要告訴他這樣是不對的， 光靠和顏悅色地勸導其實完全沒有什麼意義。 雖然也不到疾言厲色的程度， 但是應該用比純粹 highlight 更重一點的語氣去製造一點情感刺激及壓力， 畢竟我們必須面對的現實就是人類並非理性的動物而是感性的動物。 也許當下可能會使這人有一些負面反應產生， 但這最起碼已經在他心中刻下了一點小小的痕跡， 就算它是傷痕其實我也覺得無妨。</p> <p>再怎麼說人性這種東西由別人強迫或自我強迫都不可能真正改變， 即使是慢慢地潛移默化大部分也只是給了人一張比較牢靠的面具。 當名為時間的藉口或是惰性在這人心中佔贏面的時候， 他還是會私底下偷偷地依然故我。</p> <p>旁人所能做的只是在這些人慢慢一點一點地刻下痕跡。 日後隨著此人自我心智的成長以及歷練的增加， 這些最初由旁人所刻下的痕跡將有可能轉變為契機。 儘管這麼順利發展的機率微乎其微， 但是如果一開始就被打垮或是永遠長不大的人來說... 我也算是做了善事及早輔導他轉行。</p> <p>更何況這些大學生很多還是高教體系的學生， 當初選大學的科系有不少都是看考多少分來選學校再決定科系的， 也有不少是看科系的熱門度來填志願的， 甚至還有根本就是全程由家長填完志願而自己沒有決定權的。</p> <p>只能說每個人都有擅長和不擅長的事。 如果今天說他的學習方法和態度有問題的讓他感到很不服氣， 那麼這代表他確實在過去的學習階段裡用這樣的方法獲得過一些成功， 因此多多少少還是對自己的方法有些自信。 此時一個很有可能的狀況就是 -- 適合他的地方不是這裡。 說實話... 真正有興趣或是把理想/夢想放在這上面的， 就算是一兩個傷痕也擊不倒他。 何況我身邊還不乏一些成天故意跑來討罵的， 相較之下那種一罵就走的把這當成輔導轉行其實也沒多壞。 至於被我唸幾句就開始極度不爽卻又不想轉行的其實也不錯， <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/26/%e4%b8%a6%e4%b8%8d%e6%98%af%e5%9c%a8%e4%b8%8d%e9%ab%98%e8%88%88/">並不是在不高興</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/26/%e4%b8%a6%e4%b8%8d%e6%98%af%e5%9c%a8%e4%b8%8d%e9%ab%98%e8%88%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>透過 pf 來限制某國 IP 才能存取某些 ports 的方法</title>
		<link>http://blog.tinlans.org/2010/08/08/%e9%80%8f%e9%81%8e-pf-%e4%be%86%e9%99%90%e5%88%b6%e6%9f%90%e5%9c%8b-ip-%e6%89%8d%e8%83%bd%e5%ad%98%e5%8f%96%e6%9f%90%e4%ba%9b-ports-%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.tinlans.org/2010/08/08/%e9%80%8f%e9%81%8e-pf-%e4%be%86%e9%99%90%e5%88%b6%e6%9f%90%e5%9c%8b-ip-%e6%89%8d%e8%83%bd%e5%ad%98%e5%8f%96%e6%9f%90%e4%ba%9b-ports-%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 01:23:18 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[pf]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1510</guid>
		<description><![CDATA[<p>簡單說就是鎖國啦。 這個上一手資訊來自機八林餅幹， 忘記他是從哪邊看來的。 反正幾乎沒在出國的話把 ssh port 之類的鎖起來可以省很多力氣。</p> <p>先去裝 net-mgmt/netmask， 然後執行這個命令：</p> ?View Code TEXTnetmask `wget -qO- http://ftp.apnic.net/stats/apnic/delegated-apnic-latest &#124; awk -F'&#124;' '/TW\&#124;ipv4/ {print $4&#34;:+&#34;($5-1)}'` &#62; /etc/TAIWANIP <p>再去 /etc/pf.conf 加點東西：</p> ?View Code CONFtable &#60;TAIWANIP&#62; persist file &#34;/etc/TAIWANIP&#34; pass in quick on $ext_if proto tcp from &#60;TAIWANIP&#62; to any port 22 label &#34;login allowed&#34; block in quick on $ext_if <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/08/%e9%80%8f%e9%81%8e-pf-%e4%be%86%e9%99%90%e5%88%b6%e6%9f%90%e5%9c%8b-ip-%e6%89%8d%e8%83%bd%e5%ad%98%e5%8f%96%e6%9f%90%e4%ba%9b-ports-%e7%9a%84%e6%96%b9%e6%b3%95/">透過 pf 來限制某國 IP 才能存取某些 ports 的方法</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/08/%e9%80%8f%e9%81%8e-pf-%e4%be%86%e9%99%90%e5%88%b6%e6%9f%90%e5%9c%8b-ip-%e6%89%8d%e8%83%bd%e5%ad%98%e5%8f%96%e6%9f%90%e4%ba%9b-ports-%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sshguard</title>
		<link>http://blog.tinlans.org/2010/08/08/sshguard/</link>
		<comments>http://blog.tinlans.org/2010/08/08/sshguard/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 01:01:16 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[pf]]></category>
		<category><![CDATA[sshguard]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1498</guid>
		<description><![CDATA[<p>又是一篇遲來的文章。 但是還是寫一下免得被人一問再問。 如果成天看到有相同 IP 沒事在那邊一直狂 try ssh login 的， 可以裝個 sshguard 直接搞定。</p> <p>FreeBSD 的裝法非常簡單， 假設系統用的防火牆是 pf， 就直接去 /usr/ports/security/sshguard-pf 裝。 裝完去 /etc/syslog.conf 把檔頭被註解起來的那行打開就行了。 沒意外的話應該是長這樣：</p> ?View Code CONFauth.info;authpriv.info &#124;exec /usr/local/sbin/sshguard <p>再來就先做個 /etc/rc.d/syslogd reload， 然後在 /etc/pf.conf 加點東西：</p> ?View Code CONFtable &#60;sshguard&#62; persist block in quick on $ext_if from &#60;sshguard&#62; label &#34;ssh bruteforce&#34; <p>最後做 /etc/rc.d/pf reload 就完成了。</p> <p>Gentoo 的裝法大同小異。 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/08/sshguard/">sshguard</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/08/sshguard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sequence point</title>
		<link>http://blog.tinlans.org/2010/08/06/sequence-point/</link>
		<comments>http://blog.tinlans.org/2010/08/06/sequence-point/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 03:15:48 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1465</guid>
		<description><![CDATA[<p>這個名詞就算是國內做 compiler 的實驗室成員可能也未必聽過， 畢竟國內沒什麼教授有種去帶領自己的團隊寫一套新的 compiler； 這原因除了短視近利等心理因素外， 也還牽涉到不得不短視近利(或說隨波逐流)的民生問題。 這個名詞其實也沒有那麼重要， 原則上來說只要負責實作 compiler parser 部分的人懂就好了。 實作 compiler 但不負責寫 parser 的人不懂其實也沒差， 只是要做好被外面不懂工作細節的人取笑的心理準備就是了。</p> <p>實務上沒有什麼人會真的去寫到非得注意這東西的程式碼， 如果真的有的話他的同事會先讓他整個人黏在牆壁上。 簡而言之這東西的用途除了跟 compiler 內部的最佳化機制有關外， 在使用方面來說就單純只是測試 compiler 到底是否完全符合語言標準， 以及可憐一下那些初學程式設計的新手而給他們一個可以依歸的準則。 國內最容易讓人重新注意到這類問題的主要亂源， 反而是不懂又亂出考題的學校老師和公司的面試官 (雖然我相信有很小一部份是真的故意出來考人)， 其次的亂源是自以為把程式寫到讓大家看不懂或容易看錯就代表很強的神經病。</p> <p>要記憶就要先理解是我的一貫準則， 所以先來做個名詞解釋。 為什麼 sequence point 要叫做 sequence point？ 叫 sequence 難道只是因為它看起來比較帥， 還是說感覺比較學術化所以會比較容易投上 paper 嗎？ 當然都不是。</p> <p>在這個連小學生都能輕鬆撰寫平行程式的 2010 年， 要解釋這個名詞我想是再容易不過了。 講到這裡應該很多人明白了， 非 sequence 指的就是 parallel。 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/06/sequence-point/">sequence point</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/06/sequence-point/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在 FreeBSD 安裝 TeX Live 2009</title>
		<link>http://blog.tinlans.org/2010/08/06/%e5%9c%a8-freebsd-%e5%ae%89%e8%a3%9d-tex-live-2009/</link>
		<comments>http://blog.tinlans.org/2010/08/06/%e5%9c%a8-freebsd-%e5%ae%89%e8%a3%9d-tex-live-2009/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 23:17:23 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1461</guid>
		<description><![CDATA[<p>因為等不到支援 binary installation 的 TeX Live 2010， 所以決定先用之前善心人士提供的方案來裝 Tex Live 2009： http://forums.freebsd.org/showpost.php?p=51315&#038;postcount=13 總之請注意， 本文內的所有連結及安裝操作方式只保證在 TeX Live 2010 出來之前有效。</p> <p>首先就是要抓東西， 從上面的網頁應該能找到這個連結： http://anthesphoria.net/FreeBSD/TeXLive-2009/bin/ 想知道一些細節的可以先看一下它的 README.txt。 這裡提供的只是 Tex Live 2009 裡 executable 的部分， i386 跟 amd64 在各種 FreeBSD 版本裡都有一份預先編譯好的； 以 FreeBSD-8.x i386 來說就是抓 i386-freebsd8-tl2009.build02.tar.xz。</p> <p>再來就是去 TeX Live 的官網抓 ISO image： http://mirror.unl.edu/ctan/systems/texlive/Images/ 這邊應該沒有什麼好挑的， 抓 texlive2009.iso.xz 這個檔案就對了， 目前看起來它只是另一個 texlive2009-20091107.iso.xz 檔的 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/06/%e5%9c%a8-freebsd-%e5%ae%89%e8%a3%9d-tex-live-2009/">在 FreeBSD 安裝 TeX Live 2009</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/06/%e5%9c%a8-freebsd-%e5%ae%89%e8%a3%9d-tex-live-2009/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>編 editors/koffice-kde4 的時候系統上不能有 qt3</title>
		<link>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-editorskoffice-kde4-%e7%9a%84%e6%99%82%e5%80%99%e7%b3%bb%e7%b5%b1%e4%b8%8a%e4%b8%8d%e8%83%bd%e6%9c%89%e5%ae%89%e8%a3%9d-qt3/</link>
		<comments>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-editorskoffice-kde4-%e7%9a%84%e6%99%82%e5%80%99%e7%b3%bb%e7%b5%b1%e4%b8%8a%e4%b8%8d%e8%83%bd%e6%9c%89%e5%ae%89%e8%a3%9d-qt3/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 11:55:41 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[KDE]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1450</guid>
		<description><![CDATA[<p>簡單來說就是編完 KDE4 之後如果想編 KOffice 的話就會遇上， 錯誤訊息大概會長這樣：</p> <p>[ 44%] Building CXX object filters/kspread/latex/export/CMakeFiles/kspreadlatexexport.dir/cell.o In file included from /usr/ports/editors/koffice- kde4/work/koffice-2.2.0/filters/kspread/latex/export/xmlparser.h:28, from /usr/ports/editors/koffice- kde4/work/koffice-2.2.0/filters/kspread/latex/export/format.h:30, from /usr/ports/editors/koffice- kde4/work/koffice-2.2.0/filters/kspread/latex/export/cell.h:30, from /usr/ports/editors/koffice- kde4/work/koffice-2.2.0/filters/kspread/latex/export/cell.cc:25: /usr/local/include/qdom.h:97: error: function definition does not declare parameters /usr/local/include/qdom.h:122: error: function definition does not declare ...</p> <p>這個問題主要的原因就在於有人裝瘋仔： http://www.mail-archive.com/kde-freebsd@kde.org/msg08277.html 所以請先用 pkg_delete 移除 qt-copy-3.x.x. 這個套件再編 koffice-kde4， 最後再把 qt-copy-3.x.x 裝回去。 不想重編的話可以先用 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/01/%e7%b7%a8-editorskoffice-kde4-%e7%9a%84%e6%99%82%e5%80%99%e7%b3%bb%e7%b5%b1%e4%b8%8a%e4%b8%8d%e8%83%bd%e6%9c%89%e5%ae%89%e8%a3%9d-qt3/">編 editors/koffice-kde4 的時候系統上不能有 qt3</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-editorskoffice-kde4-%e7%9a%84%e6%99%82%e5%80%99%e7%b3%bb%e7%b5%b1%e4%b8%8a%e4%b8%8d%e8%83%bd%e6%9c%89%e5%ae%89%e8%a3%9d-qt3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>emerge 時遇到 ---! //var/lib/texmf/web2c/tex.fmt doesn&#039;t match tex.pool 的解決方法</title>
		<link>http://blog.tinlans.org/2010/08/01/emerge-%e6%99%82%e9%81%87%e5%88%b0-varlibtexmfweb2ctex-fmt-doesnt-match-tex-pool-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.tinlans.org/2010/08/01/emerge-%e6%99%82%e9%81%87%e5%88%b0-varlibtexmfweb2ctex-fmt-doesnt-match-tex-pool-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 10:02:05 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1448</guid>
		<description><![CDATA[<p>像是在 emerge --update jadetex 的時候偶爾會遇到：</p> <p>tex jadetex.ins This is TeX, Version 3.1415926 (Web2C 2009) ---! //var/lib/texmf/web2c/tex.fmt doesn't match tex.pool (Fatal format file error; I'm stymied) make: *** [basic] Error 1</p> <p>解法是把那個目錄砍掉重練：</p> <p>1. rm -rf /var/lib/texmf/web2c 2. texmf-update</p> <p>參考連結： http://bugs.gentoo.org/show_bug.cgi?id=240346 http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml#doc_chap4</p> ]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/emerge-%e6%99%82%e9%81%87%e5%88%b0-varlibtexmfweb2ctex-fmt-doesnt-match-tex-pool-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>編 Gentoo 的 app-python/docutils 時 locale 不能是 POSIX</title>
		<link>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-gentoo-%e7%9a%84-app-pythondocutils-%e6%99%82-locale-%e4%b8%8d%e8%83%bd%e6%98%af-posix/</link>
		<comments>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-gentoo-%e7%9a%84-app-pythondocutils-%e6%99%82-locale-%e4%b8%8d%e8%83%bd%e6%98%af-posix/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 09:51:18 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1446</guid>
		<description><![CDATA[<p>不然編到一半會出現錯誤， 可以先 setenv LC_ALL en_US 或 en_US.UTF-8 (bash 請改用 export 來做)， 或是用 env 送暫時的環境變數給 emerge (bash 可以直接送不需要加 env)。</p> <p>參考連結： http://forums.gentoo.org/viewtopic-p-6367138.html?sid=80f7c31e82fe782a3d22f5e1ff3d618a</p> ]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-gentoo-%e7%9a%84-app-pythondocutils-%e6%99%82-locale-%e4%b8%8d%e8%83%bd%e6%98%af-posix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>編 ports 時跑到 xmlto 時出現 I/O error : Attempt to load network entity http://xxx</title>
		<link>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-ports-%e6%99%82%e8%b7%91%e5%88%b0-xmlto-%e6%99%82%e5%87%ba%e7%8f%be-io-error-attempt-to-load-network-entity-httpxxx/</link>
		<comments>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-ports-%e6%99%82%e8%b7%91%e5%88%b0-xmlto-%e6%99%82%e5%87%ba%e7%8f%be-io-error-attempt-to-load-network-entity-httpxxx/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 07:25:24 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1444</guid>
		<description><![CDATA[<p>去 textproc/docbook 做 make deinstall install clean 就行了， 確切原因不明。 只知道裝別的東西時照相依套件自動裝到它的話會自動缺東西， 即使 make config 的內容原本就是全勾。</p> <p>參考連結： http://lists.freebsd.org/pipermail/freebsd-questions/2010-March/213683.html</p> ]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-ports-%e6%99%82%e8%b7%91%e5%88%b0-xmlto-%e6%99%82%e5%87%ba%e7%8f%be-io-error-attempt-to-load-network-entity-httpxxx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>編 graphics/graphviz 遇到 &#039;tsrm_ls&#039; undeclared 的解決方法</title>
		<link>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-tsrm_ls-undeclared-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/</link>
		<comments>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-tsrm_ls-undeclared-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 18:57:12 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[system diary]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[graphviz]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1441</guid>
		<description><![CDATA[<p>這個也算是萬年 bug 了， 因為常常有人更新 ports 時會跑來哭， 所以趁這次更新遇到的時候來記錄一下。</p> <p>並不是每個人都會遇到這個問題， 這要看裝 graphviz 時有沒有勾選到某些語言的 bindings 而定， 目前已知就算不勾 TCL 和 TK 也會遇到下面的錯誤訊息：</p> <p> libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -DDEMAND_LOADING=1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -I/usr/local/include/php/Zend -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT libgv_php_la-gv_php_init.lo -MD -MP -MF .deps/libgv_php_la-gv_php_init.Tpo -c gv_php_init.c -fPIC <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/01/%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-tsrm_ls-undeclared-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/">編 graphics/graphviz 遇到 'tsrm_ls' undeclared 的解決方法</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/%e7%b7%a8-graphicsgraphviz-%e9%81%87%e5%88%b0-tsrm_ls-undeclared-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 FreeBSD 裝了 squid 後記得調整 shutdown timeout 的長度</title>
		<link>http://blog.tinlans.org/2010/08/01/%e5%9c%a8-freebsd-%e8%a3%9d%e4%ba%86-squid-%e5%be%8c%e8%a8%98%e5%be%97%e8%aa%bf%e6%95%b4-shutdown-timeout-%e7%9a%84%e9%95%b7%e5%ba%a6/</link>
		<comments>http://blog.tinlans.org/2010/08/01/%e5%9c%a8-freebsd-%e8%a3%9d%e4%ba%86-squid-%e5%be%8c%e8%a8%98%e5%be%97%e8%aa%bf%e6%95%b4-shutdown-timeout-%e7%9a%84%e9%95%b7%e5%ba%a6/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 18:46:36 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[proxy]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1439</guid>
		<description><![CDATA[<p>有裝過 squid 的應該多多少少會有印象， 每次 restart squid 的時候如果有人在使用就會等 30 秒才會停掉。 關機或重開時更是會卡在 squid 等不到 30 秒就被強制中斷關機程序， 其它 daemons 會被逕行終止造成系統變成不正常關機狀態。</p> <p>造成這個問題的設定有兩個。 一個是 /usr/local/etc/squid/squid.conf 的 shutdown_lifetime， 它的預設值是 30 seconds。 而最重要的另一個設定就是 /etc/rc.conf 的 rcshutdown_timeout， 它的預設值恰巧跟 squid 一樣是 30 秒。 很顯然停止其它 services 需要的時間不可能是 0 秒， 所以常常輪到等待 squid 終止的途中整個關機程序就被強制中斷掉了。</p> <p>我的解法很簡單， 就是直接加大 /etc/rc.conf 裡 rcshutdown_timeout 的值：</p> ?View Code CONFrcshutdown_timeout=&#34;90&#34; <p>畢竟關機等久一點是沒差， 重點還是穩定就好。</p> ]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/%e5%9c%a8-freebsd-%e8%a3%9d%e4%ba%86-squid-%e5%be%8c%e8%a8%98%e5%be%97%e8%aa%bf%e6%95%b4-shutdown-timeout-%e7%9a%84%e9%95%b7%e5%ba%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 上的 LDAP server 和 client 在同一台的時候記得設定啟動順序</title>
		<link>http://blog.tinlans.org/2010/08/01/freebsd-%e4%b8%8a%e7%9a%84-ldap-server-%e5%92%8c-client-%e5%9c%a8%e5%90%8c%e4%b8%80%e5%8f%b0%e7%9a%84%e6%99%82%e5%80%99%e8%a8%98%e5%be%97%e8%a8%ad%e5%ae%9a%e5%95%9f%e5%8b%95%e9%a0%86%e5%ba%8f/</link>
		<comments>http://blog.tinlans.org/2010/08/01/freebsd-%e4%b8%8a%e7%9a%84-ldap-server-%e5%92%8c-client-%e5%9c%a8%e5%90%8c%e4%b8%80%e5%8f%b0%e7%9a%84%e6%99%82%e5%80%99%e8%a8%98%e5%be%97%e8%a8%ad%e5%ae%9a%e5%95%9f%e5%8b%95%e9%a0%86%e5%ba%8f/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 18:34:10 +0000</pubDate>
		<dc:creator>uranus</dc:creator>
				<category><![CDATA[LDAP]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://blog.tinlans.org/?p=1435</guid>
		<description><![CDATA[<p>雖然這個算是超級 FAQ 了， 不過趁還想寫的時候來寫一下。 畢竟現在的硬體配備都不差， 為了充分利用硬體資源很少人會把 LDAP server 單獨放在獨立的機器上。 結果常常開機時某些 service 比 slapd 先起來， 關機或重開時這些 service 又會比 slapd 晚停止， 造成了一個不大也不小的困擾。</p> <p>FreeBSD 的 rc scripts 啟動順序是看檔案內的註解來決定的， 不像某些系統用檔名前面的數字來決定。 相關資料直接翻這兩個網頁應該就很夠了： http://www.freebsd.org/doc/handbook/configtuning-rcd.html http://www.freebsd.org/cgi/man.cgi?query=rcorder&#038;sektion=8</p> <p>打開 /usr/local/etc/rc.d/slapd 應該會在檔案開頭看到下面這種註解：</p> ?View Code CONF# PROVIDE: slapd # REQUIRE: NETWORKING SERVERS # BEFORE: securelevel # KEYWORD: shutdown <p>簡單來說就是把必須比 slapd 晚的 service 全部填在 BEFORE: 後面就行了。 不過這個檔案在下次重裝 <span style="color:#777"> . . . &#8594; Read More: <a href="http://blog.tinlans.org/2010/08/01/freebsd-%e4%b8%8a%e7%9a%84-ldap-server-%e5%92%8c-client-%e5%9c%a8%e5%90%8c%e4%b8%80%e5%8f%b0%e7%9a%84%e6%99%82%e5%80%99%e8%a8%98%e5%be%97%e8%a8%ad%e5%ae%9a%e5%95%9f%e5%8b%95%e9%a0%86%e5%ba%8f/">FreeBSD 上的 LDAP server 和 client 在同一台的時候記得設定啟動順序</a></span>]]></description>
		<wfw:commentRss>http://blog.tinlans.org/2010/08/01/freebsd-%e4%b8%8a%e7%9a%84-ldap-server-%e5%92%8c-client-%e5%9c%a8%e5%90%8c%e4%b8%80%e5%8f%b0%e7%9a%84%e6%99%82%e5%80%99%e8%a8%98%e5%be%97%e8%a8%ad%e5%ae%9a%e5%95%9f%e5%8b%95%e9%a0%86%e5%ba%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

