<?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>Phanix's Blog &#187; 研究</title>
	<atom:link href="http://blog.phanix.idv.tw/archives/category/%e5%ad%b8%e7%bf%92%e5%b7%a5%e4%bd%9c/%e7%a0%94%e7%a9%b6/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.phanix.idv.tw</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 01:03:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>C# Wrapping Library of Google AJAX Search API</title>
		<link>http://blog.phanix.idv.tw/archives/2009/11/26/734/</link>
		<comments>http://blog.phanix.idv.tw/archives/2009/11/26/734/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 06:57:59 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2009/11/26/734/</guid>
		<description><![CDATA[以前在程式裡頭用到 Google Search 的機會比較少，所以都是直接把 search term 丟給 Google search，然後 parsing 回傳 page 這樣土法硬幹的方式。 不過最近使用量比較大，所以就乾脆來找 Google Search API ，沒想到 Google 說現在一般的 Search API 已經不接受申請了，比較建議使用 AJAX API。 看了一下說明文件，對於要寫網頁程式的話確實蠻方便的，不過對於要寫 Windows / Console 程式來說就不是這麼好用&#8230; 「該不會要自己來寫一個 library 把這個 AJAX Search API 包起來吧？」 正當腦子裡才冒出這個念頭的時候，另外一個聲音響起，「不對，這事情一定也有人想過，然後很好心地做出來了」&#8230; 果不其然，找了一下就找到了 http://gapidotnet.codeplex.com/ 這個 wrapping api&#8230; 真是太棒了&#8230; XD]]></description>
			<content:encoded><![CDATA[<p>以前在程式裡頭用到 Google Search 的機會比較少，所以都是直接把 search term 丟給 Google search，然後 parsing 回傳 page 這樣土法硬幹的方式。</p>
<p>不過最近使用量比較大，所以就乾脆來找 Google Search API ，沒想到 Google 說現在一般的 Search API 已經不接受申請了，比較建議使用 AJAX API。</p>
<p>看了一下說明文件，對於要寫網頁程式的話確實蠻方便的，不過對於要寫 Windows / Console 程式來說就不是這麼好用&#8230; 「該不會要自己來寫一個 library 把這個 AJAX Search API 包起來吧？」</p>
<p>正當腦子裡才冒出這個念頭的時候，另外一個聲音響起，「不對，這事情一定也有人想過，然後很好心地做出來了」&#8230; 果不其然，找了一下就找到了 <a href="http://gapidotnet.codeplex.com/" target="_blank">http://gapidotnet.codeplex.com/</a> 這個 wrapping api&#8230; 真是太棒了&#8230; XD</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7434619175264093";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2009/11/26/734/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The recent days after back to TW</title>
		<link>http://blog.phanix.idv.tw/archives/2009/07/05/704/</link>
		<comments>http://blog.phanix.idv.tw/archives/2009/07/05/704/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 08:06:43 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[唸書]]></category>
		<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[生活點滴]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[閒聊嘴炮]]></category>
		<category><![CDATA[diary]]></category>
		<category><![CDATA[murmuring]]></category>
		<category><![CDATA[生活]]></category>
		<category><![CDATA[雜記]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2009/07/05/704/</guid>
		<description><![CDATA[Just wake up from noon break, I think I have to write down some day-to-day things. Moving Because the dormitory I live will be re-furnished, I have to move to the other place for this summer, and move back after the summer vacation. I decide to move stuff for winter time back to my home, [...]]]></description>
			<content:encoded><![CDATA[<p>Just wake up from noon break, I think I have to write down some day-to-day things.</p>
<p><span id="more-704"></span></p>
<ol>
<li>Moving
<ul>
<li>Because the dormitory I live will be re-furnished, I have to move to the other place for this summer, and move back after the summer vacation.</li>
<li>I decide to move stuff for winter time back to my home, so I drive about 500km/week in the past 3 weeks. Tired.</li>
<li>I hate moving&#8230; =___=</li>
</ul>
</li>
<li>Wine tasting
<ul>
<li>Although the price of wines in Taiwan is not as cheap as in USA, I still keep wine tasting, sharing wines with friends and hosting wine tasting activities.</li>
<li>Some whites from Rhone region are really weird.</li>
<li>Some whites from Bordeaux region have dry-salty plum aroma, very interesting.</li>
<li>I have to utilize the time for writing down the notes.</li>
</ul>
</li>
<li>Go to some place for internship.
<ul>
<li>That is a place you are not allowed to use 3G/GPRS/PHS cellphone, USB device, notebook, camera, etc.</li>
<li>That is a company earns more than 90% in the same industry.</li>
<li>Do not ask me how I find this opportunity. Actually, I had worked as a part-time there, and around April or May, the supervisor sent me a mail said that he had a summer internship headcount, so he listed my name.</li>
</ul>
</li>
<li>Research works
<ul>
<li>Three working papers and one proposal.</li>
<li>Some professors do not check email daily, even in the weekday.</li>
<li>One program project for next research topic.</li>
</ul>
</li>
<li>Prepare trips
<ul>
<li>I think it&#8217;s hard to have a great conversation in English with another non-native English speaker.</li>
<li>Some foreigners, or I can say some people, do not check email everyday. They even check email weekly. But, if they just check weekly, why nobody answers my phone or reply my voice message?</li>
<li>Dealing with trip plan takes a lot of time.</li>
<li>I still can not decide when is O.K. for me to visit the eastern Taiwan. <img src='http://blog.phanix.idv.tw/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2009/07/05/704/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using XPath to select nodes with namespace in C# / 在C#中用XPath選取具有namespace之節點</title>
		<link>http://blog.phanix.idv.tw/archives/2009/05/09/674/</link>
		<comments>http://blog.phanix.idv.tw/archives/2009/05/09/674/#comments</comments>
		<pubDate>Sat, 09 May 2009 07:37:12 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[namespace]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XPath]]></category>
		<category><![CDATA[程式設計]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2009/05/09/674/</guid>
		<description><![CDATA[處理 XML 文件資料時，利用 XPath 來選取文件中節點是蠻常見的方式，可是當這個節點是具有 namespace 時，該怎麼辦呢？ 一般情況(選取沒有 namespace 之節點 / select nodes without namespace) XmlDocument xd = new XmlDocument(); XmlNodeList xnl; xd.Load(xmlfile);  xnl = xd.SelectNodes(XPath_expression);  選取有 namespace 之節點 / select nodes with namespace XmlDocument xd = new XmlDocument(); XmlNodeList xnl; XmlNamespaceManager xnm; xd.Load(xmlfile);  xnm = new XmlNamespaceManager(xd.NameTable); xnm.AddNamespace(&#34;smh&#34;, &#34;http://www.google.com/history/&#34;);  xnl = xd.SelectNodes(XPath_expression, xnm); &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>處理 XML 文件資料時，利用 XPath 來選取文件中節點是蠻常見的方式，可是當這個節點是具有 namespace 時，該怎麼辦呢？</p>
<p><span id="more-674"></span></p>
<h2>一般情況(選取沒有 namespace 之節點 / select nodes without namespace)</h2>
<p style="padding-left: 30px;">XmlDocument xd = new XmlDocument();<br />
XmlNodeList xnl;<br />
xd.Load(<em>xmlfile</em>); <br />
xnl = xd.SelectNodes(<em>XPath_expression</em>); </p>
<h2>選取有 namespace 之節點 / select nodes with namespace</h2>
<p style="padding-left: 30px;">XmlDocument xd = new XmlDocument();<br />
XmlNodeList xnl;<br />
XmlNamespaceManager xnm;<br />
xd.Load(xmlfile); <br />
xnm = new XmlNamespaceManager(xd.NameTable);<br />
xnm.AddNamespace(&#34;<em>smh</em>&#34;, &#34;<em>http://www.google.com/history/</em>&#34;); <br />
xnl = xd.SelectNodes(XPath_expression, xnm);</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Ref: <a href="http://weblogs.asp.net/wallen/archive/2003/04/02/4725.aspx" target="_blank">http://weblogs.asp.net/wallen/archive/2003/04/02/4725.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2009/05/09/674/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abandoned World</title>
		<link>http://blog.phanix.idv.tw/archives/2009/04/10/645/</link>
		<comments>http://blog.phanix.idv.tw/archives/2009/04/10/645/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:32:46 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[閒聊嘴炮]]></category>
		<category><![CDATA[電腦網路]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[California]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Santa Cruz]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[USA]]></category>
		<category><![CDATA[加州]]></category>
		<category><![CDATA[服務中斷]]></category>
		<category><![CDATA[網路]]></category>
		<category><![CDATA[美國]]></category>
		<category><![CDATA[通訊]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2009/04/10/645/</guid>
		<description><![CDATA[Early this morning, a fiber optic cable from Santa Cruz to San Francisco area is severed. When I woke up at 5 a.m. (Apr. 9, 2009) for water, I found the network is down for a while, but I had no idea about what is wrong actually. After I got to the lab, the network [...]]]></description>
			<content:encoded><![CDATA[<p>Early this morning, a fiber optic cable from Santa Cruz to San Francisco area is severed.</p>
<p><span id="more-645"></span></p>
<p>When I woke up at 5 a.m. (Apr. 9, 2009) for water, I found the network is down for a while, but I had no idea about what is wrong actually. After I got to the lab, the network connection was still not work. I checked the connection status, and traceroute results tell me that the network is down out of UCSC.</p>
<p>The official website of UCSC said that a cable is severed, and the network was only available inter UCSC. I pondered there may be a place in downtown able to access Internet, so I took the bus, got off campus and asked several coffee shops. Disappointedly, all shops said the network was all down in the whole downtown, including the tele-network. So, the whole Santa Cruz county became an Abandoned world virtually.</p>
<p>I finally decided to stay in a coffee shop to do some console works. During those hours, I found some interesting phenomenon, there were fewer customers using computers, and nobody using a cellphone for communication on street. Instead, more people talked and read and listened to the radio broadcast.</p>
<p>It is an interesting and joyful scene, and indeed another kind of peace. However, I still hope the network service can come back as soon as possible. (Well, the network is back around midnight&#8230;)</p>
<p>BTW, I think this is the day I listen to the radio for longest time during my stay in USA.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2009/04/10/645/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[murmur] 囧rz 的 meeting</title>
		<link>http://blog.phanix.idv.tw/archives/2009/01/30/557/</link>
		<comments>http://blog.phanix.idv.tw/archives/2009/01/30/557/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 01:01:01 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[唸書]]></category>
		<category><![CDATA[學習工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[閒聊嘴炮]]></category>
		<category><![CDATA[murmuring]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[search log]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/?p=557</guid>
		<description><![CDATA[&#8220;I am not sure how many sessions I should check whether each of them has single or multiple information need.&#8221; &#8220;So, how many sessions you&#8217;ve checked?&#8221; &#8220;about 2000.&#8221; &#8220;Wao&#8230; that&#8217;s enough, much more than necessary.&#8221; &#8220;囧rz&#8230;&#8221; &#8220;Another question is, how many sessions I should used for experiment? I am not sure how many is enough.&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>&#8220;I am not sure how many sessions I should check whether each of them has single or multiple information need.&#8221;</strong></p>
<p><em>&#8220;So, how many sessions you&#8217;ve checked?&#8221;</em></p>
<p><strong>&#8220;about 2000.&#8221;</strong></p>
<p><em>&#8220;Wao&#8230; that&#8217;s enough, much more than necessary.&#8221;</em></p>
<p><strong>&#8220;囧rz&#8230;&#8221;</strong></p>
<p><strong>&#8220;Another question is, how many sessions I should used for experiment? I am not sure how many is enough.&#8221;</strong></p>
<p><em>&#8220;How many do you have now?&#8221;</em></p>
<p><strong>&#8220;About 50000. Including the data needed for checking information need.&#8221;</strong></p>
<p><em>&#8220;Oh, that quite a lot. Actually, I think 50 or 100 are enough.&#8221; </em></p>
<p><strong>&#8220;囧rz&#8230; 囧rz&#8230; 囧rz&#8230; 囧rz&#8230;&#8221;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2009/01/30/557/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Note] Import Data in SQL Server 2005 (匯入資料)</title>
		<link>http://blog.phanix.idv.tw/archives/2009/01/09/523/</link>
		<comments>http://blog.phanix.idv.tw/archives/2009/01/09/523/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 01:39:54 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[軟體]]></category>
		<category><![CDATA[電腦網路]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[資料匯入]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/?p=523</guid>
		<description><![CDATA[Remeber to check the item &#8220;Integration Services&#8221; (SSIS) in the install process, or you will fail and get a error message like &#8220;product level is insufficient for components&#8221; while importing data from txt, excel, etc. files into a SQL server 2005 database. Related: porduct level is insufficient for components]]></description>
			<content:encoded><![CDATA[<p>Remeber to check the item &#8220;Integration Services&#8221; (SSIS) in the install process, or you will fail and get a error message like &#8220;product level is insufficient for components&#8221; while importing data from txt, excel, etc. files into a SQL server 2005 database.</p>
<p>Related: <a href="http://sql-server-performance.com/Community/forums/p/616/1428.aspx" target="_blank">porduct level is insufficient for components</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2009/01/09/523/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Memo] 整理一下最近寫程式用到的東西</title>
		<link>http://blog.phanix.idv.tw/archives/2008/12/04/492/</link>
		<comments>http://blog.phanix.idv.tw/archives/2008/12/04/492/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 05:52:35 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[學習工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[threading]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[程式設計]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/?p=492</guid>
		<description><![CDATA[免得以後要找很麻煩。都是 C# 的程式。 Threading 中作 output 到 textbox 中 delegate void SetTextCallback(TextBox tb, string text); private void SetText(TextBox tb, string text) { &#160;&#160;&#160;&#160;if (tb.InvokeRequired) &#160;&#160;&#160;&#160;{ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;SetTextCallback d = new SetTextCallback(SetText); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this.Invoke(d, new object[] { tb, text }); &#160;&#160;&#160;&#160;} &#160;&#160;&#160;&#160;else &#160;&#160;&#160;&#160;{ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;tb.Text = text; &#160;&#160;&#160;&#160;} } Extract text in &#60;body&#62; tag strpage = &#34;&#34;; // Store [...]]]></description>
			<content:encoded><![CDATA[<p>免得以後要找很麻煩。都是 C# 的程式。</p>
<p><!&#45;&#45;more&#45;&#45;></p>
<p>Threading 中作 output 到 textbox 中</p>
<blockquote><p>delegate void SetTextCallback(TextBox tb, string text);</p>
<p>private void SetText(TextBox tb, string text)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (tb.InvokeRequired)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetTextCallback d = new SetTextCallback(SetText);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.Invoke(d, new object[] { tb, text });<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tb.Text = text;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</p></blockquote>
<p>Extract text in &lt;body&gt; tag</p>
<blockquote><p>strpage = &#34;&#34;; // Store The HTML Source<br />
strtext = &#34;&#34;;</p>
<p>// only fetch text between &lt;body&gt;<br />
ibodystart = strpage.ToLower().IndexOf(&#34;&lt;body&#34;);<br />
ibodyend = strpage.ToLower().IndexOf(&#34;&lt;/body&gt;&#34;);</p>
<p>if (ibodystart &lt; 0) return;<br />
if (ibodyend &lt; 0) ibodyend = strpage.Length;</p>
<p>// j and k are used to quote text between continous tags<br />
j = strpage.IndexOf(&#34;&gt;&#34;, ibodystart);</p>
<p>sw = new StreamWriter([FILENAME], false, Encoding.UTF8);</p>
<p>#region filter out html tags, css and scripts, and then just keep plaintext<br />
while (j &gt; 0 &#038;&#038; j &lt; ibodyend)<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;// j and k are used to quote text between continous tags<br />
&nbsp;&nbsp;&nbsp;&nbsp;k = strpage.IndexOf(&#34;&lt;&#34;, j);<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;// read text between tags, and store in strtmp<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (k &lt; 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strtmp = strpage.Substring(j + 1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strtmp = strpage.Substring(j + 1, k &#45; j &#45; 1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;strtmp = HttpUtility.HtmlDecode(strtmp).Trim();<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;// concate strtext and strtmp<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (strtmp != &#34;&#34;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (strtext == &#34;&#34;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(strtmp);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strtext = strtmp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sw.WriteLine(&#34; &#34; + strtmp);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;// find out next j<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (k &lt; 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = &#45;1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//check comment<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (strpage.Substring(k).Length &lt;= 7)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = &#45;1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (strpage.Substring(k, 4) == &#34;&lt;!&#45;&#45;&#34;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.IndexOf(&#34;&#45;&#45;&gt;&#34;, k);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (j &gt;= 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.IndexOf(&#34;&gt;&#34;, j);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (strpage.ToLower().Substring(k, 7) == &#34;&lt;script&#34;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.ToLower().IndexOf(&#34;&lt;/script&gt;&#34;, k);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (j &gt;= 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.IndexOf(&#34;&gt;&#34;, j);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else if (strpage.ToLower().Substring(k, 6) == &#34;&lt;style&#34;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.ToLower().IndexOf(&#34;&lt;/style&gt;&#34;, k);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (j &gt;= 0)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.IndexOf(&#34;&gt;&#34;, j);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j = strpage.IndexOf(&#34;>&#34;, k);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}<br />
#endregion</p>
<p>sw.Close();</p></blockquote>
<p>Execute the other .exe with parameters from command line (without showing the window). This example uses WordNet.</p>
<blockquote><p>Process p = new Process();<br />
string strwn1, strwn2;</p>
<p>#region Call wn.exe for wordnet hypernym<br />
p.StartInfo.UseShellExecute = false;<br />
p.StartInfo.RedirectStandardOutput = true;<br />
p.StartInfo.CreateNoWindow = true;</p>
<p>// word 1<br />
p.StartInfo.FileName = @&#34;C:\Program Files\WordNet\2.1\bin\wn.exe&#34;;<br />
p.StartInfo.Arguments = @&#34;&#34; + w1 + &#34; &#45;hypen&#34;;  // w1 is a word</p>
<p>p.Start();</p>
<p>strwn1 = p.StandardOutput.ReadToEnd();</p>
<p>p.WaitForExit();</p>
<p>// word 2<br />
p.StartInfo.FileName = @&#34;C:\Program Files\WordNet\2.1\bin\wn.exe&#34;;<br />
p.StartInfo.Arguments = @&#34;&#34; + w2 + &#34; &#45;hypen&#34;;  // w2 is the other word</p>
<p>p.Start();</p>
<p>strwn2 = p.StandardOutput.ReadToEnd();</p>
<p>p.WaitForExit();</p>
<p>#endregion</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2008/12/04/492/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>William Liu&#8217;s talk in NCTU</title>
		<link>http://blog.phanix.idv.tw/archives/2008/02/21/302/</link>
		<comments>http://blog.phanix.idv.tw/archives/2008/02/21/302/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 05:48:46 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[唸書]]></category>
		<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[閒聊嘴炮]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2008/02/21/302/</guid>
		<description><![CDATA[跟過去有些相關的人&#8230; 世界真的很小&#8230; the success of a web 2.0 website (for example, facebook) sweet spot (the first burst, the beginning of 2006) stickiness (the second burst, the sharp climbing in the mid 2007) the difference of web site today and in the past in the past: user web site today: user sharer/prosumer web site SWR (sharing-watching-ratio) [...]]]></description>
			<content:encoded><![CDATA[<p>跟過去有些相關的人&#8230; 世界真的很小&#8230;</p>
<p><span id="more-302"></span></p>
<ul>
<li>the success of a web 2.0 website (for example, facebook)</li>
<ul>
<li>sweet spot (the first burst, the beginning of 2006)</li>
<li>stickiness (the second burst, the sharp climbing in the mid 2007)</li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="500">
<tr>
<td><a href="http://www.flickr.com/photos/phanix/2281332508/" title="facebook alexa (by Phanix)"><img src="http://farm4.static.flickr.com/3214/2281332508_56b91a2e06.jpg" title="facebook alexa (by Phanix)" alt="facebook alexa (by Phanix)" width="500" height="287" /></a></td>
</tr>
</table>
<li>the difference of web site today and in the past</li>
<ul>
<li>in the past: user <-> web site</li>
<li>today: user <-> sharer/prosumer <-> web site</li>
</ul>
<li>SWR (sharing-watching-ratio)</li>
<ul>
<li>提高SWR真的有利嗎？SWR高真的好嗎？</li>
<li>如果是低SWR，而watching user非常多，那不是也很好？(such as flickr)</li>
<li>high quality content, make sense的使用介面或許是提高watching user的重點</li>
</ul>
<li>about B.P. (創業計畫)</li>
<ul>
<li>主要包含 market analysis, product, customer</li>
<li>但是要注意，BP另外的重點是要對審查BP的人表演，所以最好要瞭解這些人是怎麼樣的人？要能夠在開頭幾頁內打到審查人員的sweet spot。(跟一般的presentation與報告好像不太一樣)</li>
</ul>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2008/02/21/302/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Correlation Coefficient</title>
		<link>http://blog.phanix.idv.tw/archives/2008/01/21/281/</link>
		<comments>http://blog.phanix.idv.tw/archives/2008/01/21/281/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 03:30:38 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[唸書]]></category>
		<category><![CDATA[學習工作]]></category>
		<category><![CDATA[研究]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2008/01/21/281/</guid>
		<description><![CDATA[多種相關係數, 下面有一些參考 link &#038; formulas。相關係數可以拿來判斷哪一個 feature 和結果有高度的關係。 http://www.stat.nctu.edu.tw/subhtml/source/course/course92_2/SCM/SCM2.2.ppt http://webclass.ncu.edu.tw/~tang0/Chap8/sas8.htm http://163.29.37.193/webdesign/001/006/week2_introduction.htm http://el.mdu.edu.tw/datacos//09410121035A/%E7%9B%B8%E9%97%9C%E4%BF%82%E6%95%B8%E7%A8%AE%E9%A1%9E.doc http://cclearn.npue.edu.tw/tuition/ccchen-web/%E6%95%99%E8%82%B2%E7%B5%B1%E8%A8%88%E5%AD%B8/7.pdf]]></description>
			<content:encoded><![CDATA[<p>多種相關係數, 下面有一些參考 link &#038; formulas。相關係數可以拿來判斷哪一個 feature 和結果有高度的關係。</p>
<p><img src="http://www.tnstate.edu/ganter/BIO311-Ch12-Eq8.gif" width="400" border="0" /></p>
<p><a href="http://www.stat.nctu.edu.tw/subhtml/source/course/course92_2/SCM/SCM2.2.ppt">http://www.stat.nctu.edu.tw/subhtml/source/course/course92_2/SCM/SCM2.2.ppt</a></p>
<p><a href="http://webclass.ncu.edu.tw/~tang0/Chap8/sas8.htm">http://webclass.ncu.edu.tw/~tang0/Chap8/sas8.htm</a></p>
<p><a href="http://163.29.37.193/webdesign/001/006/week2_introduction.htm">http://163.29.37.193/webdesign/001/006/week2_introduction.htm</a></p>
<p><a href="http://el.mdu.edu.tw/datacos//09410121035A/%E7%9B%B8%E9%97%9C%E4%BF%82%E6%95%B8%E7%A8%AE%E9%A1%9E.doc">http://el.mdu.edu.tw/datacos//09410121035A/%E7%9B%B8%E9%97%9C%E4%BF%82%E6%95%B8%E7%A8%AE%E9%A1%9E.doc</a></p>
<p><a href="http://cclearn.npue.edu.tw/tuition/ccchen-web/%E6%95%99%E8%82%B2%E7%B5%B1%E8%A8%88%E5%AD%B8/7.pdf">http://cclearn.npue.edu.tw/tuition/ccchen-web/%E6%95%99%E8%82%B2%E7%B5%B1%E8%A8%88%E5%AD%B8/7.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2008/01/21/281/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>嶄新的十二月</title>
		<link>http://blog.phanix.idv.tw/archives/2007/12/03/254/</link>
		<comments>http://blog.phanix.idv.tw/archives/2007/12/03/254/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 14:23:39 +0000</pubDate>
		<dc:creator>Phanix</dc:creator>
				<category><![CDATA[唸書]]></category>
		<category><![CDATA[學習工作]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[研究]]></category>
		<category><![CDATA[閒聊嘴炮]]></category>

		<guid isPermaLink="false">http://blog.phanix.idv.tw/archives/2007/12/03/254/</guid>
		<description><![CDATA[許多事情都是新的，也不管我願不願意? T________T 在上個月的最後一天，得到了國科會的消息，順利通過千里馬計畫的申請(名冊pdf)。雖然最近一陣子比較沒有動力，所以對於出國這件事情比較不是那麼放在心上；也或許是因為才剛從日本回來不久，所以在出國這個項目的需求上被滿足不少，所以才有這樣的想法；當然，也可能是有其他在意的事情或佔據心裡頭的事物，所以沒有放太多心思在這上面。 前一陣子甚至在想，如果沒有申請過的話，就去申請日本大學的暑期intern或者是試試看google暑期intern好了。若是前者就有藉口可以去拍夏天的京都，後者可以去一窺世界級公司的一些內部，其實都是不錯的選擇。 得知通過千里馬申請的高興情緒其實並沒有持續太久，今天早上到實驗室突然發現電腦硬碟壞了，目前看起來是所有的資料都付諸流水，不太期望能夠救得回來 。從大一一直保留到現在的作業、報告等資料就這樣不見了，還有寫到一半的paper，還有一些實驗數據，看來又得花上一些時間把備份找出來，把資料補齊。 不過這樣也好，終於下定決心換了台電腦，還有 raid&#8230;? 如此一來，文件資料和大量的照片 raw file 應該就不用愁了吧？?]]></description>
			<content:encoded><![CDATA[<p>許多事情都是新的，也不管我願不願意? T________T</p>
<p><span id="more-254"></span></p>
<p>在上個月的最後一天，得到了國科會的消息，順利通過千里馬計畫的申請(<a target="_blank" href="http://www.nsc.gov.tw/files/bulletin/5555/%BA%F4%AF%B8%A4%BD%A7i%A6W%A5U(%B3%D5%A5%CD)961130.pdf">名冊pdf</a>)。雖然最近一陣子比較沒有動力，所以對於出國這件事情比較不是那麼放在心上；也或許是因為才剛從日本回來不久，所以在出國這個項目的需求上被滿足不少，所以才有這樣的想法；當然，也可能是有其他在意的事情或佔據心裡頭的事物，所以沒有放太多心思在這上面。</p>
<p>前一陣子甚至在想，如果沒有申請過的話，就去<a target="_blank" href="http://www.nsc.gov.tw/_newfiles/bulletin.asp?RecNo=5553&#038;PageNo=1">申請日本大學的暑期intern</a>或者是試試看google暑期intern好了。若是前者就有藉口可以去拍夏天的京都，後者可以去一窺世界級公司的一些內部，其實都是不錯的選擇。</p>
<p>得知通過千里馬申請的高興情緒其實並沒有持續太久，今天早上到實驗室突然發現電腦硬碟壞了，目前看起來是所有的資料都付諸流水，不太期望能夠救得回來 <img src='http://blog.phanix.idv.tw/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  。從大一一直保留到現在的作業、報告等資料就這樣不見了，還有寫到一半的paper，還有一些實驗數據，看來又得花上一些時間把備份找出來，把資料補齊。</p>
<p>不過這樣也好，終於下定決心換了台電腦，還有 raid&#8230;? 如此一來，文件資料和大量的照片 raw file 應該就不用愁了吧？? <img src='http://blog.phanix.idv.tw/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phanix.idv.tw/archives/2007/12/03/254/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

