<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>keanu@wordpress.com</title>
	<atom:link href="http://keanu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://keanu.wordpress.com</link>
	<description>living today for tomorrow</description>
	<lastBuildDate>Fri, 02 Sep 2011 14:44:34 +0000</lastBuildDate>
	<language>zh-tw</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='keanu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>keanu@wordpress.com</title>
		<link>http://keanu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://keanu.wordpress.com/osd.xml" title="keanu@wordpress.com" />
	<atom:link rel='hub' href='http://keanu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>JDOM XPath 的 Namespace 處理</title>
		<link>http://keanu.wordpress.com/2010/03/04/jdom-xpath-%e7%9a%84-namespace-%e8%99%95%e7%90%86/</link>
		<comments>http://keanu.wordpress.com/2010/03/04/jdom-xpath-%e7%9a%84-namespace-%e8%99%95%e7%90%86/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 11:20:12 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=325</guid>
		<description><![CDATA[JDOM 的 XPath 並沒有辦法處理含有 Namespace 的 XML Document 物件，這使得在處理 XML 資料時往往沒辦法用 XPath 來快速抓取節點，因為 selectSingleNode()/selectNodes() 取回來的物件或集合都為空，昨天發狠決定要找出解決的方式，總算這問題有解了。 Jaxen 的 JDOMXPath 類別是 XPath 介面的實作，專門給 JDOM 的 XML Document 來進行 XPath 運算，這個介面有提供一個 method 叫 setNamespaceContext() 可以來傳入自訂的 Namespace 資訊，將 Namespace 的 prefix 與 URI 組成一 Map 後建立 SimpleNamespaceContext 類別並傳入即可︰ map = new HashMap(); map.put("hpMain", "http://www.daisy.org/z3986/2005/ncx/"); XPath itemXPath = new JDOMXPath("//hpMain:content"); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=325&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2010/03/04/jdom-xpath-%e7%9a%84-namespace-%e8%99%95%e7%90%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>Lucene 後分類功能</title>
		<link>http://keanu.wordpress.com/2010/02/15/lucene-%e5%be%8c%e5%88%86%e9%a1%9e%e5%8a%9f%e8%83%bd/</link>
		<comments>http://keanu.wordpress.com/2010/02/15/lucene-%e5%be%8c%e5%88%86%e9%a1%9e%e5%8a%9f%e8%83%bd/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 17:22:34 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=319</guid>
		<description><![CDATA[全文檢索在實務上有許多不同的應用，例如查詢的相關度分數處理、查詢詞的相關提示字元、查詢結果的自動分群與相關詞、查詢結果排名與分數回饋等等，但真正最具有價值的算是查詢結果後分類這個功能，也就是所謂的 Faceted Search。 在 Lucene 上，若也想要有查詢結果能依指定索引欄位進行後分類，那麼 Solr 會是最佳選擇，不必去碰底層的 Lucene，所有的查詢動作都透過 XML/JSON 等 HTTP 方式向 Search Server 查詢，並取回查詢結果，也支援 Faceted Search 功能。當然，要刻程式去呼叫 Search Server 也成，用 Solrj 沒有什麼事是辦不到的。 如果一切都想自己來而不想用 Solr 的話，那麼底層放 Lucene，一般的建索引跟查詢動作都沒問題，要後分類功能時，再補上 bobo-browse 套件就萬事俱備，照著網站提供的範例，就輕鬆擁有後分類的功能了，不過事情如果那麼單純就不會有這篇文的出現了。 遇到的狀況是，設定好要後分類的索引欄位，經過查詢後的確可以拿到後分類的結果，也就是分好類的 item 集合，但是 item 相關的後分類數卻都是為零，看起來應該是在每次分類時，沒有把 hitCount 值做累加，造成值永遠為零的囧境。 臨時的解法是自己手動改 com.browseengine.bobo.api.BrowseResult 這支 class，多加上一個 public method，用來把後分類的 item 集合重新 collect() 過 hitCount 值，確保每個 item 都能被算到︰ public void collect(String facet_field) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=319&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2010/02/15/lucene-%e5%be%8c%e5%88%86%e9%a1%9e%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>Sphinx 與中文檢索</title>
		<link>http://keanu.wordpress.com/2010/02/14/sphinx-%e8%88%87%e4%b8%ad%e6%96%87%e6%aa%a2%e7%b4%a2/</link>
		<comments>http://keanu.wordpress.com/2010/02/14/sphinx-%e8%88%87%e4%b8%ad%e6%96%87%e6%aa%a2%e7%b4%a2/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 19:07:06 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=314</guid>
		<description><![CDATA[MySQL 雖然本身有提供 全文檢索 的功能 (MyISAM engine)，但無奈的是對於中文字元的處理仍停滯不前，要讓 MySQL 上的資料能進行中文全文檢索功能，最快的方式是接 Sphinx，那麼只要經過簡易的設定，便可以達成我們所要的目標。 前提是資料庫的 charset 設定理所當然必須是 utf8，然後修改 sphinx.conf 設定檔，在索引的設定區塊中設定該索引的 charset_type 為 utf-8、ngram_len 值設為 1、最後也是最重要的是設定 ngram_chars 值為如下︰ U+4E00..U+9FBB, U+3400..U+4DB5, U+20000..U+2A6D6, U+FA0E, U+FA0F, \ U+FA11, U+FA13, U+FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27, U+FA28, U+FA29, \ U+3105..U+312C, U+31A0..U+31B7, U+3041, U+3043, U+3045, U+3047, U+3049, U+304B, \ U+304D, U+304F, U+3051, U+3053, U+3055, U+3057, U+3059, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=314&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2010/02/14/sphinx-%e8%88%87%e4%b8%ad%e6%96%87%e6%aa%a2%e7%b4%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>在 IIS7 顯示 ASP 錯誤訊息</title>
		<link>http://keanu.wordpress.com/2009/08/02/%e5%9c%a8-iis7-%e9%a1%af%e7%a4%ba-asp-%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af/</link>
		<comments>http://keanu.wordpress.com/2009/08/02/%e5%9c%a8-iis7-%e9%a1%af%e7%a4%ba-asp-%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 16:34:48 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=308</guid>
		<description><![CDATA[在 IIS5/IIS6 時寫 classic asp code 如果發生錯誤 IIS 會直接將錯誤原因顯示出來，長久以來都習慣這樣的方式進行除錯；然而到了 Windows Server 2008 的時代，IIS7 預設就會做程式碼的安全保護，也就是程式發生錯誤時只會丟這樣的訊息︰ An error occurred on the server when processing the URL. Please contact the system administrator 不過還是得想辦法知道問題原因才能修正程式，可以透過在 cmd 執行如下的指令︰ %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true 設定 scriptErrorSentToBrowser 為 true 時，IIS7 的處理行為就會回到 5/6 時一樣錯在哪為什麼錯統統都會告訴你。這次的狀況因為系統已經裝在正式環境上，所以修正完程式後便馬上改回 false 避免有安全性的問題。 相關文章︰Classic ASP: Security is Painful Posted in work<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=308&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/08/02/%e5%9c%a8-iis7-%e9%a1%af%e7%a4%ba-asp-%e9%8c%af%e8%aa%a4%e8%a8%8a%e6%81%af/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>結束的時候總要來一下的曲: Appalachian Springs</title>
		<link>http://keanu.wordpress.com/2009/07/11/%e7%b5%90%e6%9d%9f%e7%9a%84%e6%99%82%e5%80%99%e7%b8%bd%e8%a6%81%e4%be%86%e4%b8%80%e4%b8%8b%e7%9a%84%e6%9b%b2-appalachian-springs/</link>
		<comments>http://keanu.wordpress.com/2009/07/11/%e7%b5%90%e6%9d%9f%e7%9a%84%e6%99%82%e5%80%99%e7%b8%bd%e8%a6%81%e4%be%86%e4%b8%80%e4%b8%8b%e7%9a%84%e6%9b%b2-appalachian-springs/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 17:02:26 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=306</guid>
		<description><![CDATA[Posted in Music<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=306&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/07/11/%e7%b5%90%e6%9d%9f%e7%9a%84%e6%99%82%e5%80%99%e7%b8%bd%e8%a6%81%e4%be%86%e4%b8%80%e4%b8%8b%e7%9a%84%e6%9b%b2-appalachian-springs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>[GNOME] 推荐 Window Applets</title>
		<link>http://keanu.wordpress.com/2009/07/10/gnome-%e6%8e%a8%e8%8d%90-window-applets/</link>
		<comments>http://keanu.wordpress.com/2009/07/10/gnome-%e6%8e%a8%e8%8d%90-window-applets/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:45:24 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=301</guid>
		<description><![CDATA[Window Applets 是前陣子看到的一個小玩意，它的作用是在 panel 上顯示視窗的按鈕，當作用中的視窗不是處在最大化的狀態時，一切正常沒有任何事發生，而當作用中的視窗被放到最大化後，Window Applets 便會安靜的跑了出來，視窗的 title bar 被隱藏住，與視窗互動的按鈕就轉到 Window Applets 在 panel 上的三個按鈕來控制了，於是程式的視窗在外觀上就會緊緊貼著 panel，看起來也更美觀，完全是擊中了我內心的甜蜜點啊。 先來個正常圖︰ 將視窗最大化後，原本的按鈕就會跑到 panel 上顯示，而視窗的 title bar 也跟著消失了，一整個很美麗啊︰ 速速至 gnome-look.org 下載安裝 Window Applets，或者用 PPA 跟著最新穩定版走 http://launchpad.net/~nekoreeve/+archive/ppa 也 ok。 Posted in Linux<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=301&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/07/10/gnome-%e6%8e%a8%e8%8d%90-window-applets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3260/3704087333_803829942c.jpg?v=0" medium="image">
			<media:title type="html">01</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2503/3704087471_40880d596d.jpg?v=0" medium="image">
			<media:title type="html">02</media:title>
		</media:content>
	</item>
		<item>
		<title>到此為止的生活</title>
		<link>http://keanu.wordpress.com/2009/07/04/%e5%88%b0%e6%ad%a4%e7%82%ba%e6%ad%a2%e7%9a%84%e7%94%9f%e6%b4%bb/</link>
		<comments>http://keanu.wordpress.com/2009/07/04/%e5%88%b0%e6%ad%a4%e7%82%ba%e6%ad%a2%e7%9a%84%e7%94%9f%e6%b4%bb/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 16:38:46 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Diary]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=299</guid>
		<description><![CDATA[一個月後的生活，雖然看似一切正常，但我想應該是時候到此為止了吧，這個障礙太大也跨不去，一直都沒有跟對方嘗試溝通也許是我的錯，就姑且原諒我的自私吧。 最痛苦的莫過週五下班後的夜晚，都會不禁深思自己究竟是不是那樣的不被受信任，想著想著就天亮了，仍然得繼續裝做正常地面對人群，即使身心都相當疲累，刻意保持的距離更突顯我們那尷尬的友好關係。 OK，就這樣結束了吧，我的生活，到此為止。 Posted in Diary<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=299&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/07/04/%e5%88%b0%e6%ad%a4%e7%82%ba%e6%ad%a2%e7%9a%84%e7%94%9f%e6%b4%bb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>回味一下好了: The Verve &#8211; Weeping Willow</title>
		<link>http://keanu.wordpress.com/2009/06/13/%e5%9b%9e%e5%91%b3%e4%b8%80%e4%b8%8b%e5%a5%bd%e4%ba%86-the-verve-weeping-willow/</link>
		<comments>http://keanu.wordpress.com/2009/06/13/%e5%9b%9e%e5%91%b3%e4%b8%80%e4%b8%8b%e5%a5%bd%e4%ba%86-the-verve-weeping-willow/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 06:51:54 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=296</guid>
		<description><![CDATA[Posted in Music<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=296&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/06/13/%e5%9b%9e%e5%91%b3%e4%b8%80%e4%b8%8b%e5%a5%bd%e4%ba%86-the-verve-weeping-willow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>三種不同不理智的人</title>
		<link>http://keanu.wordpress.com/2009/04/11/%e4%b8%89%e7%a8%ae%e4%b8%8d%e5%90%8c%e4%b8%8d%e7%90%86%e6%99%ba%e7%9a%84%e4%ba%ba/</link>
		<comments>http://keanu.wordpress.com/2009/04/11/%e4%b8%89%e7%a8%ae%e4%b8%8d%e5%90%8c%e4%b8%8d%e7%90%86%e6%99%ba%e7%9a%84%e4%ba%ba/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 06:56:05 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Talk]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=294</guid>
		<description><![CDATA[第一種是明明想跟你很要好，卻又故意一直給你壞口氣，要求你答應這個答應那個，辦不到的話又會爆炸像喫炸藥的怪異咖。 第二種是見你事情比較好，所以看不過去決定不停的攻擊你酸你質疑你，誠實否認會被說是騙人，虛心承認又會繼續言語挑撥。 第三種是什麼事都想跟你計較，有做的事會被說成不重視朋友，沒做的事會被說成難相處。 到底我要繼續乖乖給你們玩耍還是乾脆跟你們三位 say goodbye 謝謝不聯絡，只能說應該是我太乖乖牌了&#8230; Orz Posted in Talk<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=294&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/04/11/%e4%b8%89%e7%a8%ae%e4%b8%8d%e5%90%8c%e4%b8%8d%e7%90%86%e6%99%ba%e7%9a%84%e4%ba%ba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
		<item>
		<title>be open, again</title>
		<link>http://keanu.wordpress.com/2009/02/13/be-open-again/</link>
		<comments>http://keanu.wordpress.com/2009/02/13/be-open-again/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 16:06:26 +0000</pubDate>
		<dc:creator>Keanu</dc:creator>
				<category><![CDATA[Talk]]></category>

		<guid isPermaLink="false">http://keanu.wordpress.com/?p=289</guid>
		<description><![CDATA[這個夜晚，好似夏天。 我一直覺得自己不斷的往前邁進中，雖然這個過程跌倒了不少次，有時還摔得滿慘的，但如果硬要否定我自身的存在，似乎又太武斷了點。 經歷的事情越多，得到的想法就會越豐盛，於是看到的事物便會是一個大方向，細微的特質似乎就不小心的被遺忘掉了；所以趁難得的機會，提醒自己，要細心耐心平常心，不管外頭的雜音有多混亂，做的還是自己，別走偏了。 Posted in Talk<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=keanu.wordpress.com&amp;blog=6079&amp;post=289&amp;subd=keanu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://keanu.wordpress.com/2009/02/13/be-open-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07d01028d4602c3ae95c2275af19e6aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">keanu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
