<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Abend &#187; das Blog</title>
	<atom:link href="http://evenrain.com/archives/category/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://evenrain.com</link>
	<description>in English, exception; in German, evening.</description>
	<lastBuildDate>Tue, 06 Dec 2011 09:23:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
		<item>
		<title>用 WordPress 來備份你的 twitter</title>
		<link>http://evenrain.com/archives/374</link>
		<comments>http://evenrain.com/archives/374#comments</comments>
		<pubDate>Fri, 25 Jun 2010 04:09:03 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[p2]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter tools]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://evenrain.com/?p=374</guid>
		<description><![CDATA[原先我備份 twitter 是使用總理大人 @tzangms 寫的 choc 服務，但似乎因為 twitter API 的問題從 5/26 後就再也收不到推訊了。昨天下午，推友 @jonxberg 問有沒有辦法把推訊同步到 WordPress 上，找了幾個可能的解法，順利地運作起我自己的 twitter 備份+小型的微網誌。成果可以看這裡。 首先當然是要先安裝 WordPress，基本上 WordPress 的安裝非常簡單，只要到 WordPress.org 下載最新版本 (目前是 3.0)，上傳到你的虛擬空間，接著按照步驟一下子就裝完了。詳細的步驟不在本篇的討論範圍，可以參考這篇。 安裝好你的 WordPress 後，接著要安裝 Twitter Tools 這個外掛。你可以透過新增外掛的搜尋介面輸入 Twitter Tools 來進行自動安裝，或是到 Twitter Tools 的外掛頁面下載檔案，並上傳到 /wp-content/plugins 目錄中。 安裝完 Twitter &#8230; <a href="http://evenrain.com/archives/374">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="WordPress" src="http://lh6.ggpht.com/_fGpEqoRIW94/TCQQUXgA4FI/AAAAAAAAP28/TwmGS962lMQ/s400/wordpress-logo-stacked-rgb.png" alt="" width="400" height="248" />原先我備份 <a href="http://twitter.com/">twitter</a> 是使用總理大人 @<a href="http://twitter.com/tzangms">tzangms</a> 寫的 <a href="http://choc.appspot.com/">choc</a> 服務，但似乎因為 twitter API 的問題從 5/26 後就再也收不到推訊了。昨天下午，推友 @<a href="http://twitter.com/jonxberg">jonxberg</a> 問有沒有辦法把推訊同步到 <a href="http://tw.wordpress.org/">WordPress</a> 上，找了幾個可能的解法，順利地運作起我自己的 twitter 備份+小型的微網誌。成果可以看<a href="http://evenrain.com/tweets/">這裡</a>。</p>
<p><span id="more-374"></span>首先當然是要先安裝 WordPress，基本上 WordPress 的安裝非常簡單，只要到 <a href="http://tw.wordpress.org/">WordPress.org</a> 下載最新版本 (目前是 <a href="http://tw.wordpress.org/wordpress-3.0-zh_TW.zip">3.0</a>)，上傳到你的虛擬空間，接著按照步驟一下子就裝完了。詳細的步驟不在本篇的討論範圍，可以參考<a href="http://www.datasprings.com/Resources/ArticlesInformation/Wordpress30InstallationGuide.aspx">這篇</a>。</p>
<p style="text-align: center;"><img class="aligncenter" title="twittertools" src="http://lh3.ggpht.com/_fGpEqoRIW94/TCQX6ev1ldI/AAAAAAAAP3M/5Q3QdvMvf_4/s800/twittertools.png" alt="" /></p>
<p>安裝好你的 WordPress 後，接著要安裝 <a href="http://wordpress.org/extend/plugins/twitter-tools/">Twitter Tools</a> 這個外掛。你可以透過新增外掛的搜尋介面輸入 Twitter Tools 來進行自動安裝，或是到 Twitter Tools 的<a href="http://wordpress.org/extend/plugins/twitter-tools/">外掛頁面</a>下載檔案，並上傳到 /wp-content/plugins 目錄中。</p>
<p style="text-align: center;"><img class="aligncenter" title="twitter tools" src="http://lh6.ggpht.com/_fGpEqoRIW94/TCQbec7EQCI/AAAAAAAAP3U/449igQqsQtw/s800/twittertoolsextra.png" alt="" width="255" height="274" /></p>
<p>安裝完 Twitter Tools 回到外掛頁面會發現，實際上一起安裝了四個 plugin，下面三個是發文時同步發布到 twitter 時用的，如果你只打算拿來備份 twitter，這三個是不需要啟用的。</p>
<p style="text-align: center;"><img class="aligncenter" title="twitter tools" src="http://lh4.ggpht.com/_fGpEqoRIW94/TCQbevtRwDI/AAAAAAAAP3Y/xPKgbJ-WdDU/s800/twittertoolsoption1.png" alt="" width="600" /></p>
<p>接著要來設定 Twitter Tools，我只針對幾個備份 twitter 需要的選項作說明。</p>
<ul>
<li><strong>Twitter Username/Password</strong><br />
輸入你的 twitter 帳號密碼，因為有密碼的關係，即便你的 twitter 是上鎖的狀態，仍然可以順利地備份到你的推訊。</li>
<li><strong>Create a blog post from each of your tweets?</strong><br />
我希望把每則推訊都獨立做為一則 blog 文備份，所以我這邊是選 Yes，如果你希望的是做日彙整或是週彙整，這邊就選 No。</li>
<li><strong>Category for tweet posts / Tag(s) for your tweet posts / Author for tweet posts</strong><br />
推文的目錄、標籤以及推文顯示的作者，我想這三個選項應該沒什麼問題。</li>
<li><strong>Exclude @reply tweets in your sidebar, digests and created blog posts?</strong><br />
如果你想排除掉回給別人的文，這邊就選 Yes。</li>
</ul>
<p style="text-align: center;"><span style="font-size: medium;"><span style="line-height: 24px;"><img class="aligncenter" title="twitter tools" src="http://lh3.ggpht.com/_fGpEqoRIW94/TCQbetAAiRI/AAAAAAAAP3c/mwiDVwQTdZY/s800/twittertoolsoption2.png" alt="" width="600" /></span></span></p>
<p><span style="font-size: medium;"><span style="line-height: 24px;">這邊是還在實驗性質的選項，但如前面所說，這邊是做日彙整或是週彙整用。</span></span></p>
<p style="text-align: center;"><span style="font-size: medium;"><span style="line-height: 24px;"><img class="aligncenter" title="twentyten" src="http://lh4.ggpht.com/_fGpEqoRIW94/TCQlPx6ERZI/AAAAAAAAP3s/D4GfoysJ8Bk/s800/twentyten.png" alt="" width="600" /></span></span></p>
<p style="text-align: left;"><span style="font-size: medium;"><span style="line-height: 24px;">設定完之後，會先抓出最近幾筆推訊，接著大約每15分鐘更新一次。不過搭配 WordPress 3.0 預設的 Twenty Ten</span> 佈景主題一整個很沒有 feel，所以接著要來改變一下佈景主題。</span></p>
<p style="text-align: center;"><span style="font-size: medium;"><img class="aligncenter" title="p2" src="http://lh4.ggpht.com/_fGpEqoRIW94/TCQiv0WIOQI/AAAAAAAAP3k/IHZ8eyXQJl8/s800/p2.png" alt="" width="443" height="675" /></span></p>
<p style="text-align: left;"><span style="line-height: 27px; font-size: medium;">你可以透過管理介面的安裝佈景主題搜尋 p2，或是到 p2 的<a href="http://wordpress.org/extend/themes/p2">下載頁面</a>下載，並上傳至 /wp-content/themes目錄中。</span></p>
<p style="text-align: center;"><span style="line-height: 27px; font-size: medium;"><img class="aligncenter" title="p2" src="http://lh4.ggpht.com/_fGpEqoRIW94/TCQl0WYOPzI/AAAAAAAAP3w/UVNF1R9SqaY/s800/p2_2.png" alt="" width="600" /></span></p>
<p style="text-align: left;"><span style="line-height: 27px; font-size: medium;">套用佈景主題之後就算大功完成了。P2 這個佈景主題還可以讓你把在前台直接發表文章，如果你選擇用 Quote 發文的話，還會有特別的 CSS 效果；有人在你的文章留言的話，也會直接在底下顯示。</span></p>
<p style="text-align: center;"><span style="line-height: 27px; font-size: medium;"><img class="aligncenter" title="p2" src="http://lh3.ggpht.com/_fGpEqoRIW94/TCQp34vTWgI/AAAAAAAAP38/fdGp1NHlV-M/s800/p2_3.png" alt="" width="600" /></span></p>
<p style="text-align: left;"><span style="line-height: 27px; font-size: medium;">如果在頁面上停留，有新的文章時也會自動更新，並以不同顏色顯示。有沒有很像自己的一個微網誌？</span></p>
<p style="text-align: left;"><span style="line-height: 27px; font-size: medium;">整個安裝的過程，不計上傳 WordPress 的時間，應該花不到 30 分鐘 (可能連 15 分鐘都不到&#8230;)，趕快去試試看吧 :)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/374/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>魔獸簽名圖與MyMiniCity Widgets暫停服務</title>
		<link>http://evenrain.com/archives/262</link>
		<comments>http://evenrain.com/archives/262#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:22:02 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[魔獸簽名圖]]></category>
		<category><![CDATA[MyMiniCity]]></category>

		<guid isPermaLink="false">http://evenrain.com/?p=262</guid>
		<description><![CDATA[今天一早發現這個 Blog 進不來，不過其他的網站倒是還滿正常的。寫了信去問主機商 DreamHost，得到的答覆簡單來說就是我的某服務吃掉太多資源了導致這個 Blog 的 Process 被終止。 我先用 FTP 把幾個沒在用的 plugin 砍掉，然後暫時先停掉我猜很吃資源的魔獸簽名圖跟MyMiniCity Widgets。目前看來我的 Blog 是回來了(廢話，不然怎麼PO文 XD)，但是這兩個服務在我想到能搬去哪前就先無限期暫停服務吧&#8230;]]></description>
			<content:encoded><![CDATA[<p>今天一早發現這個 Blog 進不來，不過其他的網站倒是還滿正常的。寫了信去問主機商 DreamHost，得到的答覆簡單來說就是我的某服務吃掉太多資源了導致這個 Blog 的 Process 被終止。</p>
<p>我先用 FTP 把幾個沒在用的 plugin 砍掉，然後暫時先停掉我猜很吃資源的<a href="http://evenrain.com/archives/93">魔獸簽名圖</a>跟<a href="http://evenrain.com/archives/110">MyMiniCity Widgets</a>。目前看來我的 Blog 是回來了(廢話，不然怎麼PO文 XD)，但是這兩個服務在我想到能搬去哪前就先無限期暫停服務吧&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/262/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>更新至 WordPress 2.8</title>
		<link>http://evenrain.com/archives/243</link>
		<comments>http://evenrain.com/archives/243#comments</comments>
		<pubDate>Thu, 11 Jun 2009 04:49:03 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[Baker]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://evenrain.com/?p=243</guid>
		<description><![CDATA[WordPress 在今天發佈了代稱為 Baker 的 2.8 最新版本。DreamHost 後台也看到了更新的選項，按下了 Upgrade to 2.8 之後幾分鐘，很快的就裝好了。進後台更新了資料庫，稍微晃了一下除了 On This Day 這個 Plugin 不能用了之外沒出現什麼異常，順手連女友的也一併更新到 2.8。 這次主要的變更有： 佈景主題可從後台上傳或是刪除，也多了方便的介面可以查詢或是安裝新的佈景主題。 程式碼編輯器高亮度顯示。 更方便的 Widget 使用介面。 後台每一頁右上角的顯示選項多了一些選項，如果你螢幕夠寬，甚至可以將管理首頁的欄位數增加到四個。 完整的更新與 Bug Fix 列表，請看這邊。想知道你的 Plugin 還能不能用，請看這裡。]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="WordPress" src="http://evenrain.com/wp-admin/images/logo-login.gif" alt="" width="310" height="70" /></p>
<p>WordPress 在今天<a href="http://wordpress.org/development/2009/06/wordpress-28/">發佈</a>了代稱為 Baker 的 2.8 最新版本。DreamHost 後台也看到了更新的選項，按下了 Upgrade to 2.8 之後幾分鐘，很快的就裝好了。進後台更新了資料庫，稍微晃了一下除了 <a href="http://wordpress.org/extend/plugins/on-this-day/">On This Day</a> 這個 Plugin 不能用了之外沒出現什麼異常，順手連女友的也一併更新到 2.8。</p>
<p><span id="more-243"></span>這次主要的變更有：</p>
<ul>
<li>佈景主題可從後台上傳或是刪除，也多了方便的介面可以查詢或是安裝新的佈景主題。</li>
<li>程式碼編輯器高亮度顯示。</li>
<li>更方便的 Widget 使用介面。</li>
<li>後台每一頁右上角的顯示選項多了一些選項，如果你螢幕夠寬，甚至可以將管理首頁的欄位數增加到四個。</li>
</ul>
<p>完整的更新與 Bug Fix 列表，請看<a href="http://codex.wordpress.org/Version_2.8">這邊</a>。想知道你的 Plugin 還能不能用，請看<a href="http://plugincheck.bravenewcode.com/">這裡</a>。</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="224" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://v.wordpress.com/Pu3T4X8l" /><embed type="application/x-shockwave-flash" width="400" height="224" src="http://v.wordpress.com/Pu3T4X8l"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/243/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>我的輪播牆</title>
		<link>http://evenrain.com/archives/232</link>
		<comments>http://evenrain.com/archives/232#comments</comments>
		<pubDate>Mon, 25 May 2009 04:38:43 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[google ajax feed api]]></category>
		<category><![CDATA[HeartRails]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://evenrain.com/?p=232</guid>
		<description><![CDATA[換了新版型之後，總是特別想加點什麼。就花了點時間把之前一直想做的輪播牆給搞定了。原先的想法就是希望可以把後台設定的鏈結用圖像的方式表現出來，並加上該 Blog 最新的一則文章。成品就像下圖那樣，或是可以連到我的 Blogroll 分頁去觀看。 一開始是想先找找看有沒有現成的 plugin 可以用，如果有人造了車子我就不需要自己刻輪子了。找到最接近我需求的是 WordPress MyLinks 這個 plugin。但是看了一下要改成我想要的樣子還是需要費點功夫，與其這樣那倒不如我自己改可能自由度還比較高一點。 取出鏈結的部分相當簡單，只要透過 WordPress 內建的函式 get_bookmarks() 即可取得我需要的資料。然後再用迴圈跑一下就可以跑出大致上的樣子： PLAIN TEXT PHP: &#60;ul id="linkbox"&#62;&#60;?php &#160; &#160; &#160; $linklist = get_bookmarks&#40;'category=2'&#41;; &#160; &#160; foreach &#40;$linklist as $site&#41; &#123; &#160; &#160; echo "&#60;li&#62;"; &#160; &#8230; <a href="http://evenrain.com/archives/232">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>換了<a href="http://evenrain.com/archives/188">新版型</a>之後，總是特別想加點什麼。就花了點時間把之前一直想做的輪播牆給搞定了。原先的想法就是希望可以把後台設定的鏈結用圖像的方式表現出來，並加上該 Blog 最新的一則文章。成品就像下圖那樣，或是可以連到我的 <a href="http://evenrain.com/blogroll">Blogroll</a> 分頁去觀看。</p>
<p><img class="alignnone" title="blogroll" src="http://lh6.ggpht.com/_fGpEqoRIW94/Shn7o3dhPuI/AAAAAAAALoE/L4onh6I0-7s/s400/%E5%85%A8%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%202009525%20%E4%B8%8A%E5%8D%88%20095052.png" alt="" width="400" height="393" /></p>
<p><span id="more-232"></span>一開始是想先找找看有沒有現成的 plugin 可以用，如果有人造了車子我就不需要自己刻輪子了。找到最接近我需求的是 <a href="http://wordpress.org/extend/plugins/mylinks/">WordPress MyLinks</a> 這個 plugin。但是看了一下要改成我想要的樣子還是需要費點功夫，與其這樣那倒不如我自己改可能自由度還比較高一點。</p>
<p>取出鏈結的部分相當簡單，只要透過 WordPress 內建的函式 <strong>get_bookmarks()</strong> 即可取得我需要的資料。然後再用迴圈跑一下就可以跑出大致上的樣子：</p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;ul id=<span style="color:#FF0000;">"linkbox"</span>&gt;&lt;?php </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$linklist</span> = get_bookmarks<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'category=2'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$linklist</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$site</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;li&gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;div class='linkname'&gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;a href='"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_url</span>.<span style="color:#FF0000;">"' title='"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_name</span>.<span style="color:#FF0000;">"' rel='me'&gt;"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_name</span>.<span style="color:#FF0000;">"&lt;/a&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/div&gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_image</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;<span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;div class='linkimage'&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;a href='"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_url</span>.<span style="color:#FF0000;">"' title='"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_name</span>.<span style="color:#FF0000;">"'&gt;&lt;img src='"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_image</span>.<span style="color:#FF0000;">"' alt='"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_name</span>.<span style="color:#FF0000;">"'/&gt;&lt;/a&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/div&gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;div class='linkimage'&gt;&lt;/div&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$objname</span> = <span style="color:#FF0000;">"rp_"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_id</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;div class='linkrss' id='"</span>.<span style="color:#0000FF;">$objname</span>.<span style="color:#FF0000;">"'&gt;&lt;/div&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/li&gt;<span style="color:#000099; font-weight:bold;">\n</span><span style="color:#000099; font-weight:bold;">\r</span>"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; ?&gt;&lt;/ul&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>然後網站的截圖部分，我一開始是用 <a href="http://www.websnapr.com/">websnapr</a> 這個網站的服務，把呼叫 API 產生縮圖的網址丟進鏈結的圖片位址這個欄位，不過沒多久圖片就被 limit exceeded 的訊息圖片取代，看了一下<a href="http://www.websnapr.com/support/">說明</a>，理論上我應該還沒有超過一個月 10,000 張縮圖的 request 才對，不懂。不過出現這樣的問題，所以我還是去找了一下其他的替代方案。最後找到日本的 <a href="http://capture.heartrails.com/">Heartrails  Capture</a> 這個網站，試用了一下感覺還滿不錯的，不需要註冊，感覺也沒甚麼限制，使用也很方便，於是就把所有鏈結的圖片位址換成類似 http://capture.heartrails.com/medium?http://evenrain.com 這樣的 URL，就會自動產生一張 200x150 的縮圖。</p>
<p>blog 的最新文章部分，我則是透過 <a href="http://code.google.com/apis/ajaxfeeds/">Google Ajax Feed API</a> 來做。我將 Sample 稍稍改為下面這樣以符合我的需求，並使用 <a href="http://blog.stevenlevithan.com/">Steven Levithan</a> 寫的<a href="http://blog.stevenlevithan.com/archives/date-time-format"> javascript date format 函式庫</a>來解決 rss 顯示日期的問題</p>
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showPlainTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color:#CC0000;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; google.<span style="">load</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"feeds"</span>, <span style="color:#CC0000;">"1"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; function getfeed<span style="color:#006600; font-weight:bold;">&#40;</span>objname, url<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; var feed = new google.<span style="">feeds</span>.<span style="">Feed</span><span style="color:#006600; font-weight:bold;">&#40;</span>url<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; feed.<span style="">setNumEntries</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; feed.<span style="">load</span><span style="color:#006600; font-weight:bold;">&#40;</span>function<span style="color:#006600; font-weight:bold;">&#40;</span>result<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; if <span style="color:#006600; font-weight:bold;">&#40;</span>!result.<span style="">error</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var container = document.<span style="">getElementById</span><span style="color:#006600; font-weight:bold;">&#40;</span>objname<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for <span style="color:#006600; font-weight:bold;">&#40;</span>var i = <span style="color:#800000;color:#800000;">0</span>; i &lt;result.<span style="">feed</span>.<span style="">entries</span>.<span style="">length</span>; i++<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var entry = result.<span style="">feed</span>.<span style="">entries</span><span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var mydate = new Date<span style="color:#006600; font-weight:bold;">&#40;</span>entry.<span style="">publishedDate</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mydate = mydate.<span style="">format</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"mediumDate"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container.<span style="">innerHTML</span> = mydate+<span style="color:#CC0000;">":&lt;br/&gt;&lt;a href='"</span>+entry.<span style="">link</span>+<span style="color:#CC0000;">"'&gt;"</span>+entry.<span style="">title</span>+<span style="color:#CC0000;">"&lt;/a&gt;"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>最後在頁面的最底下再跑一次迴圈，針對有設定RSS 位址的鏈結呼叫上面寫的函式</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">foreach</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$linklist</span> <span style="color:#616100;">as</span> <span style="color:#0000FF;">$site</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_rss</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;<span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$objname</span> = <span style="color:#FF0000;">"rp_"</span>.<span style="color:#0000FF;">$site</span>-&gt;<span style="color:#006600;">link_id</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; getfeed<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'&lt;?=$objname?&gt;'</span>,<span style="color:#FF0000;">'&lt;?=$site-&gt;link_rss?&gt;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>這只是個人小小的野人獻曝，並沒有用到太多高深的技巧，程式碼也還有些地方要修改，暫且就做個紀錄 :)</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/232/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>換網址、換版型、升級</title>
		<link>http://evenrain.com/archives/188</link>
		<comments>http://evenrain.com/archives/188#comments</comments>
		<pubDate>Thu, 30 Apr 2009 09:41:13 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[evenrain]]></category>
		<category><![CDATA[跟標題無關的結論]]></category>
		<category><![CDATA[FeedBurner]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://evenrain.com/?p=188</guid>
		<description><![CDATA[如你們所見的，我的 Blog 網址改為 http://evenrain.com 了，從 RSS 看我 Blog 的應該可以無痛轉移，FeedBurner 那邊的資料我已經改好了，至於直接連進來看的朋友，我也從 Dreamhost 後台設了轉址，希望不會造成大家太多的困擾。 為什麼要換 Domain Name? 去年六月中買到 evenrain.com 這個網域後，一直沒啥在使用，今天就趁著換版型+升級 WordPress 時，一併把網址改到 http://evenrain.com。為什麼要改我也說不上來，就當作是一時心血來潮吧 XD 換版型 &#38; 升級 我想換版型想很久了，一來人懶沒藥醫，二來也沒看到喜歡的，這次在換 Domain 安裝拖了很久沒升級的 2.7.1 時剛好看到現在這個版型，感覺還不錯就換掉了，所以很多事還是要一鼓作氣才比較容易成功啊 (誤) 最近這陣子可能還會陸續調整版型跟邊欄上的東西，那麼，就祝大家勞動節快樂啦~ XD]]></description>
			<content:encoded><![CDATA[<p>如你們所見的，我的 Blog 網址改為 http://evenrain.com 了，從 RSS 看我 Blog 的應該可以無痛轉移，FeedBurner 那邊的資料我已經改好了，至於直接連進來看的朋友，我也從 Dreamhost 後台設了轉址，希望不會造成大家太多的困擾。</p>
<p><strong>為什麼要換 Domain Name?</strong></p>
<p><a href="http://evenrain.com/archives/132">去年六月中</a>買到 evenrain.com 這個網域後，一直沒啥在使用，今天就趁著換版型+升級 WordPress 時，一併把網址改到 http://evenrain.com。為什麼要改我也說不上來，就當作是一時心血來潮吧 XD</p>
<p><strong>換版型 &amp; 升級</strong></p>
<p>我想換版型想很久了，一來人懶沒藥醫，二來也沒看到喜歡的，這次在換 Domain 安裝拖了很久沒升級的 2.7.1 時剛好看到現在這個版型，感覺還不錯就換掉了，所以很多事還是要一鼓作氣才比較容易成功啊 (誤)</p>
<div class="wp-caption alignnone" style="width: 410px"><img title="舊版型紀念" src="http://lh4.ggpht.com/_fGpEqoRIW94/SflqZrUYjMI/AAAAAAAALVw/kuAvFFbNY6E/s400/%E5%85%A8%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%202009430%20%E4%B8%8B%E5%8D%88%20050658.jpg" alt="" width="400" height="266" /><p class="wp-caption-text">舊版型紀念</p></div>
<p>最近這陣子可能還會陸續調整版型跟邊欄上的東西，那麼，就祝大家勞動節快樂啦~ XD</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/188/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>%BEG_OF_TITLE%最近迴響%END_OF_TITLE%</title>
		<link>http://evenrain.com/archives/171</link>
		<comments>http://evenrain.com/archives/171#comments</comments>
		<pubDate>Thu, 19 Feb 2009 04:19:12 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[get recent comments]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.evenrain.net/?p=171</guid>
		<description><![CDATA[前陣子陸續有發現我的 WordPress 使用的一個 plugin: Get Recent Comments 在邊欄的 title 都會變成「%BEG_OF_TITLE%最近迴響%END_OF_TITLE%」這個樣子，但是有時候又好好的沒事。這不算是太大的困擾，所以遲遲沒有處理。 今天心血來潮 Google 了一下，這似乎是 Get Recent Comments 的 bug。解決的方法有兩種，一個是發現出問題的時候，到後台的 Settings -&#62; Recent Comments 然後點擊 Update Recent Comment Options 按鈕，這個方法的缺點是每次發生問題都要這樣做一次。另外一個方法是一樣到 Settings -&#62; Recent Comments -&#62; Misc 然後取消 cache the output 的勾選。不過因為沒 cache，所以會增加對 &#8230; <a href="http://evenrain.com/archives/171">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>前陣子陸續有發現我的 WordPress 使用的一個 plugin: <a href="http://blog.jodies.de/2004/11/recent-comments/">Get Recent Comments</a> 在邊欄的 title 都會變成「%BEG_OF_TITLE%最近迴響%END_OF_TITLE%」這個樣子，但是有時候又好好的沒事。這不算是太大的困擾，所以遲遲沒有處理。</p>
<p>今天心血來潮 Google 了一下，這似乎是 Get Recent Comments 的 bug。解決的方法有兩種，一個是發現出問題的時候，到後台的 <strong>Settings</strong> -&gt; <strong>Recent Comments</strong> 然後點擊 <strong>Update Recent Comment Options</strong> 按鈕，這個方法的缺點是每次發生問題都要這樣做一次。另外一個方法是一樣到 <strong>Settings</strong> -&gt; <strong>Recent Comments </strong>-&gt;<strong> Misc </strong>然後取消 <strong>cache the output</strong> 的勾選。不過因為沒 cache，所以會增加對 database 的 query 次數，要用哪種方法就見仁見智囉 :)</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/171/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>最近頻繁出現的 500 error</title>
		<link>http://evenrain.com/archives/151</link>
		<comments>http://evenrain.com/archives/151#comments</comments>
		<pubDate>Sun, 09 Nov 2008 18:24:28 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[500 error]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.evenrain.net/?p=151</guid>
		<description><![CDATA[剛從兩個多月的米蟲生活回到職場，到現在才剛滿一個月沒多久，所以忙到有點無暇照顧 Blog。最近發現我的 Blog 常出現 500 error，求助於 Dreamhost 的 support，結果竟然是直接把我的 plugin 目錄更名就恢復正常了，根據 Dreamhost 的說法好像是某個 plugin 造成記憶體消耗超過我可以使用的範圍。 我自己嘗試了幾次之後發現，如果出現 500 error，就用 FTP 去把 /wp-content/cache 裡的檔案全部砍掉就可以恢復正常，不過老是要這樣砍好像也不是辦法...orz 不曉得是哪個 plugin 造成 wp-cache 的錯誤，或是 wp-cache 本來就在 Dreamhost 的環境上會有問題，反正目前的解決方法是先停掉 wp-cache，看看後續還會不會有相同的問題產生。]]></description>
			<content:encoded><![CDATA[<p>剛從兩個多月的米蟲生活回到職場，到現在才剛滿一個月沒多久，所以忙到有點無暇照顧 Blog。最近發現我的 Blog 常出現 500 error，求助於 Dreamhost 的 support，結果竟然是直接把我的 plugin 目錄更名就恢復正常了，根據 Dreamhost 的說法好像是某個 plugin 造成記憶體消耗超過我可以使用的範圍。</p>
<p>我自己嘗試了幾次之後發現，如果出現 500 error，就用 FTP 去把 /wp-content/cache 裡的檔案全部砍掉就可以恢復正常，不過老是要這樣砍好像也不是辦法...orz</p>
<p>不曉得是哪個 plugin 造成 wp-cache 的錯誤，或是 wp-cache 本來就在 Dreamhost 的環境上會有問題，反正目前的解決方法是先停掉 wp-cache，看看後續還會不會有相同的問題產生。</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/151/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>WordPress 升級至 2.5.1</title>
		<link>http://evenrain.com/archives/129</link>
		<comments>http://evenrain.com/archives/129#comments</comments>
		<pubDate>Tue, 10 Jun 2008 02:45:26 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.evenrain.net/?p=126</guid>
		<description><![CDATA[距離 2.5.1 釋出已經一個多了，我的 Blog 還停留在 2.3.3 的版本。其實也就是一個懶字，才一直拖到今天把 WordPress 升級。 升級的步驟如下： 備份檔案 (資料庫的備份系統商有定期在做，所以省略) 到後台關閉所有 Plugin 將下載的 2.5.1 檔案上傳至伺服器 (wp-config.php 除外) 利用新功能自動更新 Plugin，並開啟所有 Plugin 至前台檢查有無異狀 就這麼簡單。]]></description>
			<content:encoded><![CDATA[<p>距離 2.5.1 釋出已經一個多了，我的 Blog 還停留在 2.3.3 的版本。其實也就是一個懶字，才一直拖到今天把 WordPress 升級。</p>
<p>升級的步驟如下：</p>
<ul>
<li>備份檔案 (資料庫的備份系統商有定期在做，所以省略)</li>
<li>到後台關閉所有 Plugin</li>
<li>將下載的 2.5.1 檔案上傳至伺服器 (wp-config.php 除外)</li>
<li>利用新功能自動更新 Plugin，並開啟所有 Plugin</li>
<li>至前台檢查有無異狀</li>
</ul>
<p>就這麼簡單。</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/129/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>藍眼觀注</title>
		<link>http://evenrain.com/archives/116</link>
		<comments>http://evenrain.com/archives/116#comments</comments>
		<pubDate>Fri, 29 Feb 2008 19:29:46 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[bloglook]]></category>
		<category><![CDATA[藍眼觀注]]></category>
		<category><![CDATA[MyMiniCity]]></category>

		<guid isPermaLink="false">http://blog.evenrain.net/archives/113</guid>
		<description><![CDATA[半夜睡不著覺，深陷於美國眾神的劇情無法自拔。暫告一段落上線看一下 blog 與 twitter 準備就寢時，再次從 refer 發現第34 次藍眼觀注已經悄悄地放榜了。繼莫名其妙的入圍後，現在變成莫名其妙的得獎了 XD 其實以我寫 blog 的隨性與惰性，照道理來說是沒啥觀眾的。大概是拜前陣子為 myminicity 寫的 widget 所賜人氣爆增，雖然說過很多次，還是得說這個 widget 的發展真是遠超乎我的預料啊。謝謝投票給我的各位，也謝謝你們對 myminicity-widgets 的愛用與支持。 我已經準備好明天 (其實是今天) 喝完大學同學的喜酒後，來去地下街買 Soma Bringer 當做最近公司大加班以及藍眼觀注得獎給自己的獎勵了 :p 是說現在放這張圖好像太晚了...]]></description>
			<content:encoded><![CDATA[<p>半夜睡不著覺，深陷於<a href="http://www.anobii.com/books/%E7%BE%8E%E5%9C%8B%E7%9C%BE%E7%A5%9E/9789867399847/0116dadd9922ff27d6/">美國眾神</a>的劇情無法自拔。暫告一段落上線看一下 blog 與 twitter 準備就寢時，<a href="http://twitter.com/evenrain/statuses/724867382">再次</a>從 refer 發現第34 次藍眼觀注已經悄悄地<a href="http://lookurs.blogspot.com/2008/03/34.html">放榜</a>了。繼莫名其妙的入圍後，現在變成莫名其妙的得獎了 XD</p>
<p>其實以我寫 blog 的隨性與惰性，照道理來說是沒啥觀眾的。大概是拜前陣子為 myminicity 寫的 widget <a href="http://blog.evenrain.net/archives/107">所</a><a href="http://blog.evenrain.net/archives/110">賜</a>人氣爆增，雖然說過很多次，還是得說這個 widget 的發展真是遠超乎我的預料啊。謝謝投票給我的各位，也謝謝你們對 <a href="http://code.google.com/p/myminicity-widgets/">myminicity-widgets</a> 的愛用與支持。</p>
<p>我已經準備好明天 (其實是今天) 喝完大學同學的喜酒後，來去地下街買 <a href="http://newodin.gamer.com.tw/7/12367.html">Soma Bringer</a> 當做最近公司大加班以及藍眼觀注得獎給自己的獎勵了 :p</p>
<p><img src="http://blog.chieh.tw/lookblue_120x60.png" height="60" width="120" /></p>
<p>是說現在放這張圖好像太晚了...</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/116/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
		<item>
		<title>[Widget] MyMiniCity Image</title>
		<link>http://evenrain.com/archives/113</link>
		<comments>http://evenrain.com/archives/113#comments</comments>
		<pubDate>Thu, 24 Jan 2008 10:32:10 +0000</pubDate>
		<dc:creator>evenrain</dc:creator>
				<category><![CDATA[das Blog]]></category>
		<category><![CDATA[MyMiniCity]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://blog.evenrain.net/archives/110</guid>
		<description><![CDATA[特別感謝名單：(依照 ID 排序) lwind: widget 背景圖製作 --- 以下是正文 --- 有鑑於部分網友的部落格不支援 JavaScript，且 Flash 吃的資源較多，讓我動起了做圖片 Widget 的念頭。 今天趁著空，花了點時間把圖片式的 Widget 做出來了，實際的結果大概像這樣： 使用的方法很簡單，將以下的 HTML 碼加到你想放的地方即可。 PLAIN TEXT CODE: &#60;a href="http://widgets.evenrain.net/myminicity_direct.php?city=evenrain" target="_myminicity"&#62;&#60;img src="http://widgets.evenrain.net/myminicity2.php?city=evenrain" border="0" alt="" width="150" height="150" /&#62;&#60;/a&#62; 連結的部分，會自動判斷城市的狀況轉到不同的網址。越缺乏的將會優先建設，一樣缺乏的時候，治安 &#62; 失業 &#62; 交通 &#62; 污染，如果都不缺乏建設，則會增加人口。 &#8230; <a href="http://evenrain.com/archives/113">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>特別感謝名單</strong>：(依照 ID 排序)<br />
<a href="http://lwind.evenrain.net">lwind</a>: widget 背景圖製作</p>
<p><strong>--- 以下是正文 ---</strong></p>
<p>有鑑於部分網友的部落格不支援 JavaScript，且 Flash 吃的資源較多，讓我動起了做圖片 Widget 的念頭。</p>
<p>今天趁著空，花了點時間把圖片式的 Widget 做出來了，實際的結果大概像這樣：</p>
<p><img src="http://lh3.ggpht.com/_fGpEqoRIW94/R5hpDHZitiI/AAAAAAAAEUE/JoBRpgzHzrA/s800/evenrain.png" border="0" alt="" width="150" height="150" /></p>
<p>使用的方法很簡單，將以下的 HTML 碼加到你想放的地方即可。</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;a href=<span style="color:#CC0000;">"http://widgets.evenrain.net/myminicity_direct.php?city=evenrain"</span> target=<span style="color:#CC0000;">"_myminicity"</span>&gt;&lt;img src=<span style="color:#CC0000;">"http://widgets.evenrain.net/myminicity2.php?city=evenrain"</span> border=<span style="color:#CC0000;">"0"</span> alt=<span style="color:#CC0000;">""</span> width=<span style="color:#CC0000;">"150"</span> height=<span style="color:#CC0000;">"150"</span> /&gt;&lt;/a&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>連結的部分，會自動判斷城市的狀況轉到不同的網址。越缺乏的將會優先建設，一樣缺乏的時候，治安 &gt; 失業 &gt; 交通 &gt; 污染，如果都不缺乏建設，則會增加人口。</p>
<p>目前這個 Widget 仍算是測試中，如有任何問題或建議都歡迎於底下留言喔。</p>
]]></content:encoded>
			<wfw:commentRss>http://evenrain.com/archives/113/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/tw/</creativeCommons:license>
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
