<?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>小惡魔 - 電腦技術 - 生活日記 - 美食介紹 - AppleBOY &#187; www</title>
	<atom:link href="http://blog.wu-boy.com/category/%e9%9b%bb%e8%85%a6%e6%8a%80%e8%a1%93/www/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wu-boy.com</link>
	<description>介紹一堆美食日記，生活日記，電腦筆記</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:04:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[編輯器] CKeditor 更換 background-color and font-size</title>
		<link>http://blog.wu-boy.com/2010/03/30/2099/</link>
		<comments>http://blog.wu-boy.com/2010/03/30/2099/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 12:21:52 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[CKeditor]]></category>
		<category><![CDATA[FCKeditor]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=2099</guid>
		<description><![CDATA[相信大家在製作 Web 過程，一定會用到編輯器，然而 CKeditor 前身 FCKeditor 非常有名，FCKeditor 運行了六年之久，在去年2009年的時候，轉換成了 CKeditor，目前開發團隊也專注於此版本，現在已經推出到 CKEditor 3.2 released!，可以參考 CKEditor 3.x &#8211; Developer&#8217;s Guide，裡面也整合了 jQuery，替很多開發者想到更多管道去整合網站，然而今天設計網站，需要改變編輯器的背景顏色，預設是白色背景，但是並非所有網站都是白色呈現，所以才需要動到背景顏色，這樣好讓使用者可以融入整個背景，在 Plurk 發表了這問題，也找了官方論壇，都沒有發現正確解答，官方論壇有篇類似問題：Change the background color of the CKEditor text area，這篇自己試過是沒有用的，正確解法可以參考 CKeditor 的 API:contentsCss。
<span class="readmore"><a href="http://blog.wu-boy.com/2010/03/30/2099/" title="[編輯器] CKeditor 更換 background-color and font-size" target="_blank">...詳全文（共1405字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/appleboy/4476260884/" title="Flickr 上 appleboy46 的 logo"><img src="http://farm5.static.flickr.com/4024/4476260884_a9464cf0e5_o.png" width="182" height="134" alt="logo" /></a><br />
相信大家在製作 Web 過程，一定會用到編輯器，然而 <a href="http://ckeditor.com/">CKeditor</a> 前身 <a href="http://zh.wikipedia.org/zh-tw/FCKeditor">FCKeditor</a> 非常有名，FCKeditor 運行了六年之久，在去年2009年的時候，轉換成了 CKeditor，目前開發團隊也專注於此版本，現在已經推出到 <a href="http://ckeditor.com/blog/CKEditor_3.2_released">CKEditor 3.2 released!</a>，可以參考 <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide">CKEditor 3.x &#8211; Developer&#8217;s Guide</a>，裡面也整合了 <a href="http://jquery.com/">jQuery</a>，替很多開發者想到更多管道去整合網站，然而今天設計網站，需要改變編輯器的背景顏色，預設是白色背景，但是並非所有網站都是白色呈現，所以才需要動到背景顏色，這樣好讓使用者可以融入整個背景，在 <a href="http://plurk.com">Plurk</a> 發表了這問題，也找了官方論壇，都沒有發現正確解答，官方論壇有篇類似問題：<a href="http://goo.gl/3iyL">Change the background color of the CKEditor text area</a>，這篇自己試過是沒有用的，正確解法可以參考 CKeditor 的 <a href="http://docs.cksource.com/ckeditor_api/">API</a>:<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.contentsCss">contentsCss</a>。</p>
<p>1. 首先在 CKeditor 根目錄建立新檔案：mysitestyles.css</p>
<div class="codecolorer-container css " style="overflow:auto;white-space:nowrap;width:580px"><div class="css codecolorer" style="font-family:Monaco,Lucida Console,monospace">body<br />
<span class="br0">&#123;</span><br />
&nbsp; <span class="coMULTI">/* Font */</span><br />
&nbsp; <span class="kw1">font-family</span><span class="sy0">:</span> Arial<span class="sy0">,</span> Verdana<span class="sy0">,</span> <span class="kw2">sans-serif</span><span class="sy0">;</span><br />
&nbsp; <span class="kw1">font-size</span><span class="sy0">:</span> <span class="re3">12px</span><span class="sy0">;</span><br />
<br />
&nbsp; <span class="coMULTI">/* Text color */</span><br />
&nbsp; <span class="kw1">color</span><span class="sy0">:</span> <span class="re0">#f0f0f0</span><span class="sy0">;</span><br />
<br />
&nbsp; <span class="coMULTI">/* Remove the background color to make it transparent */</span><br />
&nbsp; <span class="kw1">background-color</span><span class="sy0">:</span> <span class="re0">#353c42</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
<br />
html<br />
<span class="br0">&#123;</span><br />
&nbsp; <span class="coMULTI">/* #3658: [IE6] Editor document has horizontal scrollbar on long lines<br />
&nbsp; To prevent this misbehavior, we show the scrollbar always */</span><br />
&nbsp; _overflow-y<span class="sy0">:</span> <span class="kw2">scroll</span><br />
<span class="br0">&#125;</span><br />
<br />
img<span class="re2"><span class="sy0">:</span>-moz-broken<br />
</span><span class="br0">&#123;</span><br />
&nbsp; -moz-force-broken-image-<span class="kw2">icon</span> <span class="sy0">:</span> <span class="nu0">1</span><span class="sy0">;</span><br />
&nbsp; <span class="kw1">width</span> <span class="sy0">:</span> <span class="re3">24px</span><span class="sy0">;</span><br />
&nbsp; <span class="kw1">height</span> <span class="sy0">:</span> <span class="re3">24px</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><br />
img<span class="sy0">,</span> input<span class="sy0">,</span> textarea<br />
<span class="br0">&#123;</span><br />
&nbsp; <span class="kw1">cursor</span><span class="sy0">:</span> <span class="kw2">default</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div></div>
<p>2. 設定 config.js 檔案(Ckeditor 目錄裡面)</p>
<div class="codecolorer-container javascript " style="overflow:auto;white-space:nowrap;width:580px"><div class="javascript codecolorer" style="font-family:Monaco,Lucida Console,monospace">CKEDITOR.<span class="me1">editorConfig</span> <span class="sy0">=</span> <span class="kw2">function</span><span class="br0">&#40;</span> config <span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="co1">// Define changes to default configuration here. For example:</span><br />
&nbsp; &nbsp; <span class="co1">// config.language = 'fr';</span><br />
&nbsp; &nbsp; config.<span class="me1">uiColor</span> <span class="sy0">=</span> <span class="st0">'#AADC6E'</span><span class="sy0">;</span><br />
&nbsp; &nbsp; config.<span class="me1">contentsCss</span> <span class="sy0">=</span> <span class="st0">'/path/ckeditor/mysitestyles.css'</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span><span class="sy0">;</span></div></div>
<p>重點在於 <span style="color:green">config.contentsCss = &#8216;/path/ckeditor/mysitestyles.css&#8217;;</span> 這行，在 Path 部份，請注意由根目錄開始寫起喔。</p>
<p>另外解法，就是用 <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/jQuery_Adapter">jQuery Adapter</a>，header 加入：</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:580px"><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;/ckeditor/ckeditor.js&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;/ckeditor/adapters/jquery.js&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span></div></div>
<p>使用 Ckeditor 方式如下：<br />
html:</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:580px"><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sc2">&lt;<a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;test&quot;</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;test&quot;</span> <span class="kw3">style</span><span class="sy0">=</span><span class="st0">&quot;width: 400px; height: 200px&quot;</span> <span class="sy0">/</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a>&gt;</span></div></div>
<p>javascript</p>
<div class="codecolorer-container javascript " style="overflow:auto;white-space:nowrap;width:580px"><div class="javascript codecolorer" style="font-family:Monaco,Lucida Console,monospace">$<span class="br0">&#40;</span><span class="st0">'#test'</span><span class="br0">&#41;</span>.<span class="me1">ckeditor</span><span class="br0">&#40;</span><span class="br0">&#123;</span> contentCss<span class="sy0">:</span> <span class="st0">'/path/ckeditor/mysitestyles.css'</span> <span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></div></div>
<p>就提供這兩種解法給大家參考。</p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2008/10/17/546/" title="[PHP]好用的FCKeditor">[PHP]好用的FCKeditor (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2010/03/30/2099/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[FreeBSD]high performance caching reverse proxy: Varnish (安裝架設篇)</title>
		<link>http://blog.wu-boy.com/2010/03/21/2054/</link>
		<comments>http://blog.wu-boy.com/2010/03/21/2054/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 16:12:44 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[生活日記]]></category>
		<category><![CDATA[HAProxy]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[Varnish]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=2054</guid>
		<description><![CDATA[在上禮拜跟 DarkHero 兄聊到 How To Build a Scalable Web Site (3/6) 的上課講義，互相討論了 MySQL Load balance 以及 http reverse proxy 的方式，以前自己有用 HAProxy 當作 Web 平衡負載，順便紀錄了 HAProxy FreeBSD 安裝方式，這次要來介紹今天重點：Varnish Cache Server，在近幾年流行的 Caching 機制，大家會想到 Squid，只要您設定良好的 Squid 參數，它一定運作的非常穩定，然而它的核心依然是 forward proxy，要架設成 Reverse Proxy 還必需要設定一些參數才可以達到，是有一定的困難性，然而 Varnish Cache Server 底層就是高效能 caching reverse proxy，也因為 Squid 是 1980 年發展出來的，程式架構過於老舊，可以參考 ArchitectNotes 瞭解這部份詳情。也許您會問到 Varnish 可以架設成  forward proxy 嗎？答案是可以的，但是您也許不會這麼做，因為它需要 DNS 技術，以及需要一個非常大且複雜的 Varnish VCL(Varnish Configuration Language) file。
<span class="readmore"><a href="http://blog.wu-boy.com/2010/03/21/2054/" title="[FreeBSD]high performance caching reverse proxy: Varnish (安裝架設篇)" target="_blank">...詳全文（共3029字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/appleboy/4445679996/" title="Flickr 上 appleboy46 的 varnish-logo-red-64"><img src="http://farm3.static.flickr.com/2695/4445679996_0a9d597a94_o.gif" width="235" height="64" alt="varnish-logo-red-64" /></a><br />
在上禮拜跟 <a href="http://blog.darkhero.net">DarkHero</a> 兄聊到 <a href="http://blog.darkhero.net/?p=391">How To Build a Scalable Web Site (3/6)</a> 的上課講義，互相討論了 MySQL Load balance 以及 http <a href="http://en.wikipedia.org/wiki/Reverse_proxy">reverse proxy</a> 的方式，以前自己有用 <a href="http://haproxy.1wt.eu/">HAProxy</a> 當作 Web 平衡負載，順便紀錄了 <a href="http://blog.wu-boy.com/2008/06/23/283/">HAProxy FreeBSD 安裝方式</a>，這次要來介紹今天重點：<a href="http://varnish-cache.org/">Varnish Cache Server</a>，在近幾年流行的 Caching 機制，大家會想到 Squid，只要您設定良好的 Squid 參數，它一定運作的非常穩定，然而它的核心依然是 forward proxy，要架設成 Reverse Proxy 還必需要設定一些參數才可以達到，是有一定的困難性，然而 Varnish Cache Server 底層就是高效能 caching reverse proxy，也因為 Squid 是 1980 年發展出來的，程式架構過於老舊，可以參考 <a href="http://varnish-cache.org/wiki/ArchitectNotes">ArchitectNotes</a> 瞭解這部份詳情。也許您會問到 Varnish 可以架設成  forward proxy 嗎？答案是可以的，但是您也許不會這麼做，因為它需要 DNS 技術，以及需要一個非常大且複雜的 Varnish VCL(Varnish Configuration Language) file。</p>
<p>1. 今天要介紹如何在 FreeBSD 系統安裝，在介紹之前，系統必須先安裝好 apache，這樣才可以正確啟動，利用 ports 安裝：</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw3">cd</span> <span class="sy0">/</span>usr<span class="sy0">/</span>ports<span class="sy0">/</span>www<span class="sy0">/</span>varnish<span class="sy0">/</span><br />
<span class="kw2">make</span> <span class="kw2">install</span> clean</div></div>
<p>2. 修改 /etc/rc.conf</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="co0"># varnishd</span><br />
<span class="re2">varnishd_enable</span>=<span class="st0">&quot;YES&quot;</span><br />
<span class="re2">varnishd_listen</span>=<span class="st0">&quot;:80&quot;</span><br />
<span class="re2">varnishd_admin</span>=<span class="st0">&quot;:81&quot;</span><br />
<span class="re2">varnishd_backend</span>=<span class="st0">&quot;:5566&quot;</span><br />
<span class="re2">varnishd_config</span>=<span class="st0">&quot;/usr/local/etc/varnish/default.vcl&quot;</span></div></div>
<p>上面設定意思是說 Varnish listen on port 80，傳送 traffic 到後端 5566 port，管理連接埠是 81，也可以使用指令方式：</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace">varnishd <span class="re5">-a</span> :<span class="nu0">80</span> <span class="re5">-b</span> localhost:<span class="nu0">8080</span> <span class="re5">-T</span> localhost:<span class="nu0">6082</span></div></div>
<blockquote><p>Varnishd listen on port 80，and forwarding traffic to a web server listen on localhost port 8080. It also turns on the management interface on port 6082.</p></blockquote>
<p>3. 修改 default.vcl (Varnish Configuration Language)<br />
VCL 檔案告訴 Varnishd 正確的處理每個 request processing，包含在接受到 request 之前所處理的行為 vcl_recv()，另外還有 vcl_hit()、vcl_miss() 等&#8230;，都是用來處理 cache 如果存在或者是不存在時的情境 request。FreeBSD 預設放在 <span style="color:green">/usr/local/etc/varnish/default.vcl</span>。打開此檔案，您會看到：</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace">backend default <span class="br0">&#123;</span><br />
&nbsp; &nbsp;.host = <span class="st0">&quot;127.0.0.1&quot;</span>;<br />
&nbsp; &nbsp;.port = <span class="st0">&quot;80&quot;</span>;<br />
<span class="br0">&#125;</span></div></div>
<p>您只要把 host = &#8220;127.0.0.1&#8243; 改成你後端要連接的 ip 或者是 host，這樣 Varnish 會 forward traffic 到您的 web server。接下來只要啟動 apache 跟 Varnish 就算是初步架設完成。</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>etc<span class="sy0">/</span>rc.d<span class="sy0">/</span>apache22 restart<br />
<span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span><span class="sy0">/</span>etc<span class="sy0">/</span>rc.d<span class="sy0">/</span>varnishd restart</div></div>
<p><a href="http://www.flickr.com/photos/appleboy/4448204616/" title="Flickr 上 appleboy46 的 Varnish_01"><img src="http://farm3.static.flickr.com/2726/4448204616_8668e2d8b3.jpg" width="500" height="170" alt="Varnish_01" /></a><br />
大家可以看到 61.*.*.* 連到本機 80 port，接下來 Varnish 在開啟隨機 57475 port 連接到 Web Server 5566 port。</p>
<p><strong>Q:如何讓 apache 紀錄正確的 Client IP 到 log 檔案呢？</strong><br />
1. 打開 Vcl config 檔案，寫入<br />
Varnish configuration:</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace">sub vcl_recv <span class="br0">&#123;</span><br />
&nbsp; <span class="co0"># Add a unique header containing the client address</span><br />
&nbsp; remove req.http.X-Forwarded-For;<br />
&nbsp; <span class="kw1">set</span> &nbsp; &nbsp;req.http.X-Forwarded-For = client.ip;<br />
&nbsp; <span class="co0"># [...]</span><br />
<span class="br0">&#125;</span></div></div>
<p>2. 開啟 apache httpd.conf 加入此行：</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace">LogFormat <span class="st0">&quot;%{X-Forwarded-For}i %l %u %t <span class="es1">\&quot;</span>%r<span class="es1">\&quot;</span> %&gt;s %b <span class="es1">\&quot;</span>%{Referer}i<span class="es1">\&quot;</span> <span class="es1">\&quot;</span>%{User-Agent}i<span class="es1">\&quot;</span>&quot;</span> varnishcombined</div></div>
<p><a href="http://www.flickr.com/photos/appleboy/4448227216/" title="Flickr 上 appleboy46 的 Varnish_02"><img src="http://farm3.static.flickr.com/2694/4448227216_99663d5959.jpg" width="500" height="156" alt="Varnish_02" /></a></p>
<p><strong>Q:如何讓 PHP 程式紀錄正確的 Client IP？</strong><br />
可以參考底下程式碼就可以完全抓到 Proxy 後面真正使用者IP，否則您的 Web 只會抓到 Reverse Proxy 的 IP Address。</p>
<div class="codecolorer-container php " style="overflow:auto;white-space:nowrap;width:580px"><div class="php codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw2">function</span> getIP<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>validip<span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_CLIENT_IP&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_CLIENT_IP&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span><br />
&nbsp; <span class="kw1">foreach</span><span class="br0">&#40;</span><a href="http://www.php.net/explode"><span class="kw3">explode</span></a><span class="br0">&#40;</span><span class="st0">&quot;,&quot;</span><span class="sy0">,</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_X_FORWARDED_FOR&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="kw1">as</span> <span class="re0">$ip</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>validip<span class="br0">&#40;</span><a href="http://www.php.net/trim"><span class="kw3">trim</span></a><span class="br0">&#40;</span><span class="re0">$ip</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><span class="kw1">return</span> <span class="re0">$ip</span><span class="sy0">;</span><span class="br0">&#125;</span><br />
&nbsp; <span class="br0">&#125;</span><br />
&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>validip<span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_X_FORWARDED&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <br />
&nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_X_FORWARDED&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span><br />
&nbsp; <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>validip<span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_FORWARDED_FOR&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <br />
&nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_FORWARDED_FOR&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span> <br />
&nbsp; <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>validip<span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_FORWARDED&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <br />
&nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_FORWARDED&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span> <br />
&nbsp; <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>validip<span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_X_FORWARDED&quot;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <br />
&nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;HTTP_X_FORWARDED&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span> <br />
&nbsp; <span class="kw1">else</span> <br />
&nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&quot;REMOTE_ADDR&quot;</span><span class="br0">&#93;</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<br />
<span class="kw2">function</span> validip<span class="br0">&#40;</span><span class="re0">$ip</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="sy0">!</span><a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$ip</span><span class="br0">&#41;</span> <span class="sy0">&amp;&amp;</span> <a href="http://www.php.net/ip2long"><span class="kw3">ip2long</span></a><span class="br0">&#40;</span><span class="re0">$ip</span><span class="br0">&#41;</span><span class="sy0">!=-</span><span class="nu0">1</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="re0">$reserved_ips</span> <span class="sy0">=</span> <a href="http://www.php.net/array"><span class="kw3">array</span></a> <span class="br0">&#40;</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">'10.0.0.0'</span><span class="sy0">,</span><span class="st_h">'10.255.255.255'</span><span class="br0">&#41;</span><span class="sy0">,</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">'127.0.0.0'</span><span class="sy0">,</span><span class="st_h">'127.255.255.255'</span><span class="br0">&#41;</span><span class="sy0">,</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">'169.254.0.0'</span><span class="sy0">,</span><span class="st_h">'169.254.255.255'</span><span class="br0">&#41;</span><span class="sy0">,</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">'172.16.0.0'</span><span class="sy0">,</span><span class="st_h">'172.31.255.255'</span><span class="br0">&#41;</span><span class="sy0">,</span><br />
&nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st_h">'192.168.0.0'</span><span class="sy0">,</span><span class="st_h">'192.168.255.255'</span><span class="br0">&#41;</span><span class="sy0">,</span><br />
&nbsp; &nbsp; <span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$reserved_ips</span> <span class="kw1">as</span> <span class="re0">$r</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span class="re0">$min</span> <span class="sy0">=</span> <a href="http://www.php.net/ip2long"><span class="kw3">ip2long</span></a><span class="br0">&#40;</span><span class="re0">$r</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; <span class="re0">$max</span> <span class="sy0">=</span> <a href="http://www.php.net/ip2long"><span class="kw3">ip2long</span></a><span class="br0">&#40;</span><span class="re0">$r</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span><a href="http://www.php.net/ip2long"><span class="kw3">ip2long</span></a><span class="br0">&#40;</span><span class="re0">$ip</span><span class="br0">&#41;</span> <span class="sy0">&gt;=</span> <span class="re0">$min</span><span class="br0">&#41;</span> <span class="sy0">&amp;&amp;</span> <span class="br0">&#40;</span><a href="http://www.php.net/ip2long"><span class="kw3">ip2long</span></a><span class="br0">&#40;</span><span class="re0">$ip</span><span class="br0">&#41;</span> <span class="sy0">&lt;=</span> <span class="re0">$max</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">true</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span> <br />
&nbsp; <span class="kw1">else</span> <br />
&nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">false</span><span class="sy0">;</span><br />
&nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div></div>
<p><strong>Q:rotate Varnish log file every day？</strong><br />
打開 /etc/newsyslog.conf，加入底下兩行</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:580px"><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>varnish.log &nbsp; &nbsp; &nbsp; &nbsp;<span class="nu0">640</span> &nbsp; &nbsp; <span class="nu0">7</span> &nbsp; <span class="sy0">*</span> &nbsp; <span class="sy0">@</span>T00 &nbsp; &nbsp;JB &nbsp;<span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>varnishlog.pid<br />
<span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>varnishncsa.log &nbsp; &nbsp;<span class="nu0">640</span> &nbsp; &nbsp; <span class="nu0">7</span> &nbsp; <span class="sy0">*</span> &nbsp; <span class="sy0">@</span>T00 &nbsp; &nbsp;JB &nbsp;<span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>varnishncsa.pid</div></div>
<p>每天12點進行 log 備份，使用 gzip 壓縮 log 檔案。</p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2010/06/23/2240/" title="[FreeBSD] update apache -> 2.2.15, PHP -> 5.3.2, and MySQL downgrade to 5.1.9">[FreeBSD] update apache -> 2.2.15, PHP -> 5.3.2, and MySQL downgrade to 5.1.9 (0)</a></li><li><a href="http://blog.wu-boy.com/2010/03/26/2087/" title="Apache 取得透過 Reverse Proxy (Varnish) 的 Client 真正 IP (mod_rpaf)">Apache 取得透過 Reverse Proxy (Varnish) 的 Client 真正 IP (mod_rpaf) (0)</a></li><li><a href="http://blog.wu-boy.com/2008/09/13/388/" title="[FreeBSD]安裝 apache2 (worker) + PHP5.2.6 + mod_fastcgi + php5-fcgi">[FreeBSD]安裝 apache2 (worker) + PHP5.2.6 + mod_fastcgi + php5-fcgi (3)</a></li><li><a href="http://blog.wu-boy.com/2008/07/22/297/" title="[Linux] CentOS 5.1 安裝 Lighttpd + PHP5 + FastCgi + eaccelerator">[Linux] CentOS 5.1 安裝 Lighttpd + PHP5 + FastCgi + eaccelerator (3)</a></li><li><a href="http://blog.wu-boy.com/2008/07/10/293/" title="[轉貼] RoR：Ruby on Rails的部署方案選擇">[轉貼] RoR：Ruby on Rails的部署方案選擇 (0)</a></li><li><a href="http://blog.wu-boy.com/2008/07/03/287/" title="[FreeBSD]Lighttpd + php5 + 解決 wordpress Permalinks mod_write">[FreeBSD]Lighttpd + php5 + 解決 wordpress Permalinks mod_write (1)</a></li><li><a href="http://blog.wu-boy.com/2008/07/01/286/" title="[FreeBSD]Apache 噴出 signal Segmentation fault (11)">[FreeBSD]Apache 噴出 signal Segmentation fault (11) (1)</a></li><li><a href="http://blog.wu-boy.com/2008/06/23/283/" title="[FreeBSD &#038; Linux]網站分流：簡易架設 HAProxy 伺服器">[FreeBSD &#038; Linux]網站分流：簡易架設 HAProxy 伺服器 (1)</a></li><li><a href="http://blog.wu-boy.com/2008/06/18/281/" title="基本優化 tuning apache 跟 tuning mysql 跟 php 效能 ">基本優化 tuning apache 跟 tuning mysql 跟 php 效能  (5)</a></li><li><a href="http://blog.wu-boy.com/2008/06/05/275/" title="[FreeBSD] 安裝 PHP APC 加速網頁速度">[FreeBSD] 安裝 PHP APC 加速網頁速度 (2)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2010/03/21/2054/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Google Chrome 支援超過 40,000 Extensions! with Greasemonkey</title>
		<link>http://blog.wu-boy.com/2010/02/03/1997/</link>
		<comments>http://blog.wu-boy.com/2010/02/03/1997/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:33:13 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1997</guid>
		<description><![CDATA[看到 Google Chrome Blog 發表的Google Chrome 支援超過 40,000 Extensions!，當 Google Chrome 瀏覽器剛出來的時候，造成 Web Developer 一些震撼，因為 Chrome 強調的是擁有快速的 Javascript 引擎，以及快速的啟動，Fast start-up、Fast loading、Fast search，也因此讓很多設計網站的工程師必須把 Chrome 的支援性考慮進去，但是由於剛推出的瀏覽器，沒有任何外掛功能，我本身用 FireFox 瀏覽器很多年了，FireFox 的附加元件讓許多程式設計師投入開發，也製造出很多方便的附加元件來讓大家使用，例如：FireBug、Gmail Manager、Greasemonkey…，然而 FireFox 最方便的就是 Greasemonkey 此附加元件，使用者可以撰寫簡單 Javascript 語言來跟指定網站進行元件控制，現在 Google 工程師聽到我們的聲音了，Google Chrome 4 加入 Greasemonkey user scripts 功能，大家可以到 userscripts.org 下載超過 40,000 script 安裝到 Chrome 瀏覽器。您可以在 blogger 使用 emoticons，大家可以去參考看看。
<span class="readmore"><a href="http://blog.wu-boy.com/2010/02/03/1997/" title="Google Chrome 支援超過 40,000 Extensions! with Greasemonkey" target="_blank">...詳全文（共823字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>看到 <a href="http://blog.chromium.org/">Google Chrome Blo</a>g 發表的<a href="http://blog.chromium.org/2010/02/40000-more-extensions.html">Google Chrome 支援超過 40,000 Extensions!</a>，當 <a href="http://www.google.com/chrome">Google Chrome</a> 瀏覽器剛出來的時候，造成 Web Developer 一些震撼，因為 Chrome 強調的是擁有快速的 Javascript 引擎，以及快速的啟動，Fast start-up、Fast loading、Fast search，也因此讓很多設計網站的工程師必須把 Chrome 的支援性考慮進去，但是由於剛推出的瀏覽器，沒有任何外掛功能，我本身用 <a href="http://www.mozilla.com/en-US/firefox/upgrade.html">FireFox</a> 瀏覽器很多年了，FireFox 的<a href="https://addons.mozilla.org/zh-TW/firefox/">附加元件</a>讓許多程式設計師投入開發，也製造出很多方便的附加元件來讓大家使用，例如：<a href="https://addons.mozilla.org/zh-TW/firefox/addon/1843">FireBug</a>、<a href="https://addons.mozilla.org/zh-TW/firefox/addon/1320">Gmail Manager</a>、<a href="https://addons.mozilla.org/zh-TW/firefox/addon/748">Greasemonkey</a>…，然而 FireFox 最方便的就是 <a href="http://en.wikipedia.org/wiki/Greasemonkey">Greasemonkey</a> 此附加元件，使用者可以撰寫簡單 Javascript 語言來跟指定網站進行元件控制，現在 Google 工程師聽到我們的聲音了，Google Chrome 4 加入 Greasemonkey user scripts 功能，大家可以到 <a href="http://www.userscripts.org/">userscripts.org</a> 下載超過 40,000 script 安裝到 Chrome 瀏覽器。您可以在 blogger 使用 <a href="http://userscripts.org/scripts/show/67384">emoticons</a>，大家可以去參考看看。</p>
<p>由於 Chrome 支援了 Greasemonkey，所以趕快把 FireFox 所安裝的 script，也安裝到 Chrome，可是我發現之前 <a href="http://blog.gslin.org">DarkKiller</a> 大神寫的 <a href="http://userscripts.org/scripts/show/12267">Wretch Album Expander</a> 已經不能用了，所以我將它實做到 Chrome，可以從這裡下載安裝：<a href="http://userscripts.org/scripts/show/67929">Wretch Album Expander for Google Chrome or FireFox</a>，平時自己偶而會看看<a href="http://www.wretch.cc">無名小站</a>，所以也是方便自己觀看照片，此 script 也可以安裝在 FireFox 喔。這樣大家就不用再看圖片還要一張一張慢慢點，只要負責按換頁就可以了 ^^。</p>
<p>來測試看看，隨便找一本無名相簿：<a href="http://www.wretch.cc/album/album.php?id=lafiteho&#038;book=53&#038;page=2">馬甲‧小葵 </a>，畫面：<a href="http://farm3.static.flickr.com/2744/4327379085_f9a2834b1d_o.gif" title="馬甲‧小葵 - 2010-02-03 23 27 25 (by appleboy46)">點我觀看</a></p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2009/03/03/910/" title="[Wordpress] post 文章不能使用 javascript 語法 ">[Wordpress] post 文章不能使用 javascript 語法  (1)</a></li><li><a href="http://blog.wu-boy.com/2009/02/11/754/" title="[FireFox] 安裝 google toolbar 使用 chrome Start page">[FireFox] 安裝 google toolbar 使用 chrome Start page (0)</a></li><li><a href="http://blog.wu-boy.com/2008/08/14/308/" title="[教學]網頁簡體繁體轉換程式(Google AJAX Language API)">[教學]網頁簡體繁體轉換程式(Google AJAX Language API) (0)</a></li><li><a href="http://blog.wu-boy.com/2010/05/08/2152/" title="[筆記] iframe 父頁子頁呼叫函式 parent call function">[筆記] iframe 父頁子頁呼叫函式 parent call function (0)</a></li><li><a href="http://blog.wu-boy.com/2010/05/02/2145/" title="[jQuery] 解決 IE6 PNG 透明背景 (Supersleight jQuery Plugin for Transparent PNGs in IE6)">[jQuery] 解決 IE6 PNG 透明背景 (Supersleight jQuery Plugin for Transparent PNGs in IE6) (2)</a></li><li><a href="http://blog.wu-boy.com/2010/04/13/2130/" title="[jQuery] AjaxFileUpload : Multiple File Upload plugin">[jQuery] AjaxFileUpload : Multiple File Upload plugin (5)</a></li><li><a href="http://blog.wu-boy.com/2010/01/29/1972/" title="Google Chrome 推出 4.0 穩定版 &#038; Mozilla 推出 FireFox 3.6">Google Chrome 推出 4.0 穩定版 &#038; Mozilla 推出 FireFox 3.6 (0)</a></li><li><a href="http://blog.wu-boy.com/2010/01/17/1957/" title="How to install Google Web Toolkit  with Eclipse">How to install Google Web Toolkit  with Eclipse (2)</a></li><li><a href="http://blog.wu-boy.com/2010/01/05/1943/" title="Using firebug for firefox 除錯 javascript">Using firebug for firefox 除錯 javascript (1)</a></li><li><a href="http://blog.wu-boy.com/2009/11/25/1861/" title="[Javascript] 在函數裡設定參數預設值">[Javascript] 在函數裡設定參數預設值 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2010/02/03/1997/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>phpBB 3.1 版本將不再支援 PHP4</title>
		<link>http://blog.wu-boy.com/2010/02/01/1994/</link>
		<comments>http://blog.wu-boy.com/2010/02/01/1994/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 16:40:24 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[www]]></category>
		<category><![CDATA[PHPBB]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1994</guid>
		<description><![CDATA[在 phpBB 官方網站看到這篇：『phpBB 3.1 to discontinue support for PHP versions below 5.2』，內容大致上是說 phpBB 3.0 &#8220;Olympus&#8221; 系列的版本將是 phpBB 支援 php 4 最後一個版本，之後所推出的 phpBB 3.1 &#8220;Ascraeus&#8221; 版本，PHP 需要 5.2 或者是更高才可以正確執行。隨著 3.1 版本的推出，3.0 將會繼續維護 6~9 個月的時間，這版本將會繼續維持相容於 php 4 系統。
<span class="readmore"><a href="http://blog.wu-boy.com/2010/02/01/1994/" title="phpBB 3.1 版本將不再支援 PHP4" target="_blank">...詳全文（共361字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在 <a href="http://www.phpbb.com/">phpBB</a> 官方網站看到這篇：『<a href="http://www.phpbb.com/community/viewtopic.php?f=14&#038;t=1958605">phpBB 3.1 to discontinue support for PHP versions below 5.2</a>』，內容大致上是說 phpBB 3.0 &#8220;Olympus&#8221; 系列的版本將是 phpBB 支援 php 4 最後一個版本，之後所推出的 phpBB 3.1 &#8220;Ascraeus&#8221; 版本，PHP 需要 5.2 或者是更高才可以正確執行。隨著 3.1 版本的推出，3.0 將會繼續維護 6~9 個月的時間，這版本將會繼續維持相容於 php 4 系統。</p>
<p>由於 phpBB 3.1 還處於開發的階段，尚未決定發布日期，所以大家還是有很多時間可以將 php 升級到 5.2.0 或者是更高。看到 phpBB 可以捨棄 php 4 還蠻高興的，自己本身玩 phpBB 多年，看到 2.0 到 3.0 的變化蠻大的，php 4 安全姓做的非常不好，所以導致 code 非常隴長，希望 3.1 可以快點推出。 </p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2009/03/30/1116/" title="MySQL count(&#8221;欄位&#8221;) vs mysql_num_rows 速度？">MySQL count(&#8221;欄位&#8221;) vs mysql_num_rows 速度？ (5)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2010/02/01/1994/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome 推出 4.0 穩定版 &amp; Mozilla 推出 FireFox 3.6</title>
		<link>http://blog.wu-boy.com/2010/01/29/1972/</link>
		<comments>http://blog.wu-boy.com/2010/01/29/1972/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 04:07:55 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[Chrmoe]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1972</guid>
		<description><![CDATA[Mozilla 在上禮拜 (2010.01.22) 推出了 FireFox 3.6，大家可以下載測試效能如何，也可以 follow 狐耳摩莎的 Plurk 來收到 MozTW 的最新資訊，這篇重點不是在 FireFox，而是 Google 正式推出 Windows 版本 new Chrome 4.0 stable release，4.0 版本已經可以正式使用 Google Extensions，之前在3.0版本，只能安裝 Chrome Beta 版本才可以使用 extension，現在只要將 Windows Google Chrome 升級成 Stable 版本，就可以全面使用 Extensions，可以使用手動升級，或者是在下禮拜就會自動 update 到最新版本。
<span class="readmore"><a href="http://blog.wu-boy.com/2010/01/29/1972/" title="Google Chrome 推出 4.0 穩定版 &#038; Mozilla 推出 FireFox 3.6" target="_blank">...詳全文（共424字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mozilla.com/">Mozilla</a> 在上禮拜 (2010.01.22) 推出了 <a href="http://moztw.org/firefox/releases/3.6/">FireFox 3.6</a>，大家可以下載測試效能如何，也可以 follow <a href="http://www.plurk.com/foxmosa">狐耳摩莎的 Plurk</a> 來收到 MozTW 的最新資訊，這篇重點不是在 FireFox，而是 <a href="http://www.google.com">Google</a> 正式推出 Windows 版本 <a href="http://chrome.blogspot.com/2010/01/over-1500-new-features-for-google.html">new Chrome 4.0 stable release</a>，4.0 版本已經可以正式使用 <a href="http://code.google.com/chrome/extensions/">Google Extensions</a>，之前在3.0版本，只能安裝 <a href="http://www.google.com/landing/chrome/beta/">Chrome Beta</a> 版本才可以使用 extension，現在只要將 Windows Google Chrome 升級成 Stable 版本，就可以全面使用 Extensions，可以使用<a href="http://www.google.com/support/chrome/bin/answer.py?hl=en&#038;answer=95414">手動升級</a>，或者是在下禮拜就會自動 update 到最新版本。</p>
<p><a href="http://www.flickr.com/photos/appleboy/4305644720/" title="Google Chrome 4.0 (by appleboy46)"><img src="http://farm3.static.flickr.com/2710/4305644720_fde6433a9c.jpg" title="Google Chrome 4.0 (by appleboy46)" alt="Google Chrome 4.0 (by appleboy46)" width="500" height="249" /></a></p>
<p>最後可以參考 <a href="http://blog.ericsk.org/">ericsk</a> 大大所寫的<a href="http://blog.ericsk.org/archives/1389">從開發者角度看 Chrome 4 的推出</a></p>
<p>Reference:<br />
<a href="http://googlecode.blogspot.com/2010/01/extensibility-new-html-and-javascript.html">Extensibility + new HTML and JavaScript APIs for Google Chrome</a><br />
<a href="http://blog.chromium.org/2010/01/more-resources-for-developers.html">More Resources for Developers</a></p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2010/02/03/1997/" title="Google Chrome 支援超過 40,000 Extensions! with Greasemonkey">Google Chrome 支援超過 40,000 Extensions! with Greasemonkey (1)</a></li><li><a href="http://blog.wu-boy.com/2010/01/17/1957/" title="How to install Google Web Toolkit  with Eclipse">How to install Google Web Toolkit  with Eclipse (2)</a></li><li><a href="http://blog.wu-boy.com/2009/06/06/1421/" title="[Gmail] 最近發布的功能：進階搜尋，預覽收件夾，郵件內容語言轉換">[Gmail] 最近發布的功能：進階搜尋，預覽收件夾，郵件內容語言轉換 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/04/05/1129/" title="New in Labs:Gmail search autocomplete 快速找尋使用者 email 跟附件檔案">New in Labs:Gmail search autocomplete 快速找尋使用者 email 跟附件檔案 (2)</a></li><li><a href="http://blog.wu-boy.com/2009/03/27/1081/" title="[PHP] Zend 使用 Google Calendar API &#8211; 瀏覽事件">[PHP] Zend 使用 Google Calendar API &#8211; 瀏覽事件 (3)</a></li><li><a href="http://blog.wu-boy.com/2009/03/26/1075/" title="[PHP] Zend 使用 Google Calendar API &#8211; 環境建立架設">[PHP] Zend 使用 Google Calendar API &#8211; 環境建立架設 (3)</a></li><li><a href="http://blog.wu-boy.com/2009/03/07/940/" title=" Google App Engine SDK：python 基本教學安裝"> Google App Engine SDK：python 基本教學安裝 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/03/03/910/" title="[Wordpress] post 文章不能使用 javascript 語法 ">[Wordpress] post 文章不能使用 javascript 語法  (1)</a></li><li><a href="http://blog.wu-boy.com/2009/02/27/840/" title="[Google]Gmail 支援選擇多重檔案上傳跟進度狀況狀態 multi-select and progress bars">[Google]Gmail 支援選擇多重檔案上傳跟進度狀況狀態 multi-select and progress bars (2)</a></li><li><a href="http://blog.wu-boy.com/2009/02/21/819/" title="[google] Gmail Multiple Inboxes 支援多重資料夾">[google] Gmail Multiple Inboxes 支援多重資料夾 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2010/01/29/1972/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Google Web Toolkit  with Eclipse</title>
		<link>http://blog.wu-boy.com/2010/01/17/1957/</link>
		<comments>http://blog.wu-boy.com/2010/01/17/1957/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 11:27:12 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google Web Toolkit]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1957</guid>
		<description><![CDATA[Google Web Toolkit (簡稱：GWT)是先以 Java 語言編寫 AJAX 應用程式網頁，然後在編譯成最佳化 Javascript，不但幫助了剛入門 Javascrit，然後又需要撰寫 AJAX 應用程式的工程師很大的幫助，不僅如此，Google App Engine 也提供了 Java 跟 Python 環境，整合了 GWT，讓您可以上傳到 GAE 的空間進行測試，GWT 目的是產生具有高效能性的 Web 應用程式，您不需要是 Javascript 專家也可以做到，GWT 用在 Google 相當多的服務，例如 Google Wave, 新版的 Google AdWords 可以參考這裡更多實際範例。它是開放姓原始碼(open source)，完全免費，您也可以參與 GWT 的開發。
<span class="readmore"><a href="http://blog.wu-boy.com/2010/01/17/1957/" title="How to install Google Web Toolkit  with Eclipse" target="_blank">...詳全文（共615字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/webtoolkit/">Google Web Toolkit</a> (簡稱：GWT)是先以 Java 語言編寫 AJAX 應用程式網頁，然後在編譯成最佳化 Javascript，不但幫助了剛入門 Javascrit，然後又需要撰寫 AJAX 應用程式的工程師很大的幫助，不僅如此，<a href="http://code.google.com/appengine/">Google App Engine</a> 也提供了 Java 跟 Python 環境，整合了 GWT，讓您可以上傳到 GAE 的空間進行測試，GWT 目的是產生具有高效能性的 Web 應用程式，您不需要是 Javascript 專家也可以做到，GWT 用在 Google 相當多的服務，例如 <a href="https://wave.google.com/">Google Wave</a>, 新版的 <a href="https://adwords.google.com/">Google AdWords</a> 可以參考<a href="http://code.google.com/webtoolkit/examples/#real-world-projects" target="_blank">這裡</a>更多實際範例。它是開放姓原始碼(open source)，完全免費，您也可以參與 GWT 的開發。</p>
<p><a href="http://code.google.com/intl/en/eclipse/index.html">Google Plugin for Eclipse</a> 支援 <a href="http://code.google.com/webtoolkit">Google Web Toolkit</a> 跟 <a href="http://code.google.com/appengine">Google App Engine</a> 開發，我們可以直接安裝此 Plugin 就可以開始上手 GWT，當製作完成之後，就可以上傳到 GAE，直接打開提供的網址就可以看到成果了。</p>
<p>首先安裝 <a href="http://code.google.com/intl/en/eclipse/index.html">Google Plugin for Eclipse</a>，先去下載 Eclipse 3.5 (Galileo) 最新版，打開 Eclipse</p>
<p>1. 選擇 Help -&gt; Install New Software<br />
<a title="Google Web Toolkit (by appleboy46)" href="http://www.flickr.com/photos/appleboy/4279125424/"><img title="Google Web Toolkit (by appleboy46)" src="http://farm5.static.flickr.com/4006/4279125424_e4a129185e.jpg" alt="Google Web Toolkit (by appleboy46)" width="500" height="281" /></a><br />
2. 在 Work With: 填入 http://dl.google.com/eclipse/plugin/3.5<br />
<a title="Google Web Toolkit (by appleboy46)" href="http://www.flickr.com/photos/appleboy/4278377917/"><img title="Google Web Toolkit (by appleboy46)" src="http://farm3.static.flickr.com/2683/4278377917_2d4dbd0a4c.jpg" alt="Google Web Toolkit (by appleboy46)" width="500" height="428" /></a><br />
3. 將 Plugin 跟 SDKS 全部選取，接下來按下一步就可以完成</p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2010/02/03/1997/" title="Google Chrome 支援超過 40,000 Extensions! with Greasemonkey">Google Chrome 支援超過 40,000 Extensions! with Greasemonkey (1)</a></li><li><a href="http://blog.wu-boy.com/2010/01/29/1972/" title="Google Chrome 推出 4.0 穩定版 &#038; Mozilla 推出 FireFox 3.6">Google Chrome 推出 4.0 穩定版 &#038; Mozilla 推出 FireFox 3.6 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/06/06/1421/" title="[Gmail] 最近發布的功能：進階搜尋，預覽收件夾，郵件內容語言轉換">[Gmail] 最近發布的功能：進階搜尋，預覽收件夾，郵件內容語言轉換 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/04/05/1129/" title="New in Labs:Gmail search autocomplete 快速找尋使用者 email 跟附件檔案">New in Labs:Gmail search autocomplete 快速找尋使用者 email 跟附件檔案 (2)</a></li><li><a href="http://blog.wu-boy.com/2009/03/27/1081/" title="[PHP] Zend 使用 Google Calendar API &#8211; 瀏覽事件">[PHP] Zend 使用 Google Calendar API &#8211; 瀏覽事件 (3)</a></li><li><a href="http://blog.wu-boy.com/2009/03/26/1075/" title="[PHP] Zend 使用 Google Calendar API &#8211; 環境建立架設">[PHP] Zend 使用 Google Calendar API &#8211; 環境建立架設 (3)</a></li><li><a href="http://blog.wu-boy.com/2009/03/07/940/" title=" Google App Engine SDK：python 基本教學安裝"> Google App Engine SDK：python 基本教學安裝 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/03/03/910/" title="[Wordpress] post 文章不能使用 javascript 語法 ">[Wordpress] post 文章不能使用 javascript 語法  (1)</a></li><li><a href="http://blog.wu-boy.com/2009/02/27/840/" title="[Google]Gmail 支援選擇多重檔案上傳跟進度狀況狀態 multi-select and progress bars">[Google]Gmail 支援選擇多重檔案上傳跟進度狀況狀態 multi-select and progress bars (2)</a></li><li><a href="http://blog.wu-boy.com/2009/02/21/819/" title="[google] Gmail Multiple Inboxes 支援多重資料夾">[google] Gmail Multiple Inboxes 支援多重資料夾 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2010/01/17/1957/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>國外 VPS 虛擬主機效能比較</title>
		<link>http://blog.wu-boy.com/2009/12/01/1875/</link>
		<comments>http://blog.wu-boy.com/2009/12/01/1875/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 02:45:53 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[www]]></category>
		<category><![CDATA[Linode]]></category>
		<category><![CDATA[Prgmr]]></category>
		<category><![CDATA[Rackspace]]></category>
		<category><![CDATA[Slicehost]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1875</guid>
		<description><![CDATA[在 Dk 大神那邊看到國外一篇 VPS 效能比較：『VPS Performance Comparison』，DK 對於這篇也寫了一些心得，Eivind Uggedal 針對國外比較有名的虛擬主機(包含 Amazon EC2、Linode、Prgmr、Rackspace、Slicehost )進行了效能測試，原作者寫了一些測試效能的 Python 程式，也公開程式碼在 GitHub repository，底下就來看看幾張作者測試效能產生的圖表。
<span class="readmore"><a href="http://blog.wu-boy.com/2009/12/01/1875/" title="國外 VPS 虛擬主機效能比較" target="_blank">...詳全文（共584字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在 <a href="http://blog.gslin.org">Dk 大神</a>那邊看到國外一篇 VPS 效能比較：『<a href="http://journal.uggedal.com/vps-performance-comparison">VPS Performance Comparison</a>』，DK 對於這篇也寫了一些<a href="http://blog.gslin.org/archives/2009/11/30/2173/">心得</a>，<a href="http://journal.uggedal.com/">Eivind Uggedal</a> 針對國外比較有名的虛擬主機(包含 <a href="http://aws.amazon.com/ec2/">Amazon EC2</a>、<a href="http://www.linode.com/">Linode</a>、<a href="http://prgmr.com/xen/">Prgmr</a>、<a href="http://www.rackspacecloud.com/">Rackspace</a>、<a href="http://www.slicehost.com/">Slicehost</a> )進行了效能測試，原作者寫了一些測試效能的 <a href="http://zh.wikipedia.org/wiki/Python">Python</a> 程式，也公開程式碼在 <a href="http://github.com/uggedal/vpsbench">GitHub repository</a>，底下就來看看幾張作者測試效能產生的圖表。</p>
<p><a title="Flickr 上 appleboy46 的 Journal of Eivind Uggedal- VPS Performance Comparison_1259631315742" href="http://www.flickr.com/photos/appleboy/4148337783/"><img src="http://farm3.static.flickr.com/2614/4148337783_bf25c7df56.jpg" alt="Journal of Eivind Uggedal- VPS Performance Comparison_1259631315742" width="500" height="144" /></a><br />
針對虛擬主機的 Memory、Monthly cost、Storage、Transfer，價格方面大家都差不多，Linode 贏在每個月給的流量，Amazon 雖然記憶體給的很高，但是相對的價格很貴，在流量($0.17/$0.10 out/inn per GB of bandwidth)也是另外計費的，所以比較起來 Linode 大勝。</p>
<p><a title="Flickr 上 appleboy46 的 Journal of Eivind Uggedal- VPS Performance Comparison_1259631363322" href="http://www.flickr.com/photos/appleboy/4148337917/"><img src="http://farm3.static.flickr.com/2623/4148337917_3b1e425fed_o.png" alt="Journal of Eivind Uggedal- VPS Performance Comparison_1259631363322" width="462" height="176" /></a><br />
比較 CPU 方面，Linode 提供了 32/64 位元的 CPU 架構讓您使用，Linode、Slicehost、Rackspace 提供四個虛擬 CPU，相對於 Amazon 只提供 32位元架構以及單顆 CPU，比較下來，還是 Linode 大勝。</p>
<p><a title="Journal of Eivind Uggedal- VPS Performance Comparison_1259632886853 (by appleboy46)" href="http://www.flickr.com/photos/appleboy/4148338025/"><img title="Journal of Eivind Uggedal- VPS Performance Comparison_1259632886853 (by appleboy46)" src="http://farm3.static.flickr.com/2713/4148338025_0c39573b01.jpg" alt="Journal of Eivind Uggedal- VPS Performance Comparison_1259632886853 (by appleboy46)" width="500" height="323" /></a><br />
<a title="Journal of Eivind Uggedal- VPS Performance Comparison_1259632896568 (by appleboy46)" href="http://www.flickr.com/photos/appleboy/4149097680/"><img title="Journal of Eivind Uggedal- VPS Performance Comparison_1259632896568 (by appleboy46)" src="http://farm3.static.flickr.com/2527/4149097680_e2d265a856.jpg" alt="Journal of Eivind Uggedal- VPS Performance Comparison_1259632896568 (by appleboy46)" width="500" height="333" /></a><br />
這兩張效能圖，很顯然的都是 Linode 大勝，所以本篇報導結論：買 Linode 就是對的，便宜又可以得到好的虛擬主機(VPS)效能。</p>
<p>延伸閱讀：<a href="http://journal.uggedal.com/vps-comparison-between-slicehost-and-prgmr">VPS Comparison between Slicehost and Prgmr</a> </p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2009/05/21/1360/" title="[VPS] 虛擬主機 Linode 720 使用心得 (一)">[VPS] 虛擬主機 Linode 720 使用心得 (一) (9)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2009/12/01/1875/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[Gmail] offline Gmail 根據 Labels 自訂選擇下載郵件備份</title>
		<link>http://blog.wu-boy.com/2009/11/17/1836/</link>
		<comments>http://blog.wu-boy.com/2009/11/17/1836/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 03:08:04 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[Gmail]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1836</guid>
		<description><![CDATA[在 Gmail Lab 裡面講到這篇：『Choose which messages get downloaded for offline use』，內容是說之前 Gmail 開發出來可以離線瀏覽 Email 信件的 Offline Gmail 功能，不管你在任何地方您都可以任意去瀏覽之前收過的 mail 郵件，我想這功能相當方便，但是如果您的信件如果很多，有些不想同步到自己私人電腦，是不是覺得有些不方便，而想根據 Gmail 設定的 Label 來同步郵件呢，所以 Gmail 幫您考慮到的此點，也針對 Offline 做了設定改善。首先你必須先啟動 Offline Gmail 的功能，接下來在 Settings 的 Offline tab 裡面進行設定您想要下載同步的 Labels 郵件，畫面大致上如下，我想非常容易設定。
<span class="readmore"><a href="http://blog.wu-boy.com/2009/11/17/1836/" title="[Gmail] offline Gmail 根據 Labels 自訂選擇下載郵件備份" target="_blank">...詳全文（共329字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在 <a href="http://gmailblog.blogspot.com/">Gmail Lab</a> 裡面講到這篇：『<a href="http://gmailblog.blogspot.com/2009/11/choose-which-messages-get-downloaded.html">Choose which messages get downloaded for offline use</a>』，內容是說之前 <a href="https://mail.google.com/">Gmail</a> 開發出來可以離線瀏覽 Email 信件的 <a href="http://gmailblog.blogspot.com/2009/01/new-in-labs-offline-gmail.html">Offline Gmail</a> 功能，不管你在任何地方您都可以任意去瀏覽之前收過的 mail 郵件，我想這功能相當方便，但是如果您的信件如果很多，有些不想同步到自己私人電腦，是不是覺得有些不方便，而想根據 Gmail 設定的 Label 來同步郵件呢，所以 Gmail 幫您考慮到的此點，也針對 Offline 做了設定改善。首先你必須先啟動 Offline Gmail 的功能，接下來在 Settings 的 Offline tab 裡面進行設定您想要下載同步的 Labels 郵件，畫面大致上如下，我想非常容易設定。<br />
<a href="http://www.flickr.com/photos/appleboy/4110524433/" title="Settings - appleboy.tw@gmail.com - Gmail_1258426240802 (by appleboy46)"><img src="http://farm3.static.flickr.com/2563/4110524433_ee951dbb88.jpg" title="Settings - appleboy.tw@gmail.com - Gmail_1258426240802 (by appleboy46)" alt="Settings - appleboy.tw@gmail.com - Gmail_1258426240802 (by appleboy46)" width="500" height="483" /></a></p>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2009/06/06/1421/" title="[Gmail] 最近發布的功能：進階搜尋，預覽收件夾，郵件內容語言轉換">[Gmail] 最近發布的功能：進階搜尋，預覽收件夾，郵件內容語言轉換 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/04/05/1129/" title="New in Labs:Gmail search autocomplete 快速找尋使用者 email 跟附件檔案">New in Labs:Gmail search autocomplete 快速找尋使用者 email 跟附件檔案 (2)</a></li><li><a href="http://blog.wu-boy.com/2009/03/20/1041/" title="Gmail Lab：新功能 取消寄信 Undo Send mail">Gmail Lab：新功能 取消寄信 Undo Send mail (0)</a></li><li><a href="http://blog.wu-boy.com/2009/03/19/1034/" title="Gmail Lab:快速瀏覽 YouTube videos, Picasa and Flickr links in Gmail">Gmail Lab:快速瀏覽 YouTube videos, Picasa and Flickr links in Gmail (0)</a></li><li><a href="http://blog.wu-boy.com/2009/02/27/840/" title="[Google]Gmail 支援選擇多重檔案上傳跟進度狀況狀態 multi-select and progress bars">[Google]Gmail 支援選擇多重檔案上傳跟進度狀況狀態 multi-select and progress bars (2)</a></li><li><a href="http://blog.wu-boy.com/2009/02/21/819/" title="[google] Gmail Multiple Inboxes 支援多重資料夾">[google] Gmail Multiple Inboxes 支援多重資料夾 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/01/29/742/" title="[Google]Offline Gmail 新功能  ">[Google]Offline Gmail 新功能   (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2009/11/17/1836/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[網站] 好站連結 (三)</title>
		<link>http://blog.wu-boy.com/2009/06/11/1386/</link>
		<comments>http://blog.wu-boy.com/2009/06/11/1386/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 03:01:12 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[www]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[好站連結]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1386</guid>
		<description><![CDATA[jQuery

解析jQuery Selectors的效能
How to: Optimize your jQuery selectors
Demystifying the jQuery selectors optimization
<span class="readmore"><a href="http://blog.wu-boy.com/2009/06/11/1386/" title="[網站] 好站連結 (三)" target="_blank">...詳全文（共1036字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><span id="more-1386"></span><br />
jQuery</p>
<ul>
<li><a class="entry-title-link" href="http://feedproxy.google.com/%7Er/IdeaGrapes/%7E3/y6ZP7pJddKo/" target="_blank">解析jQuery Selectors的效能</a></li>
<li><a href="http://www.no-margin-for-errors.com/projects/how-to-optimize-jquery-selectors/">How to: Optimize your jQuery selectors</a></li>
<li><a title="Permanent Link to Demystifying the jQuery selectors optimization" rel="bookmark" href="http://www.no-margin-for-errors.com/2009/04/28/demystifying-the-jquery-selectors-optimization/">Demystifying the jQuery selectors optimization</a></li>
<li><a href="http://wiki.jqueryui.com/Essential-Controls-List" target="_blank">jQuery UI Development &amp; Planning Wiki / Essential Controls List</a></li>
<li><a class="entry-title-link" href="http://feedproxy.google.com/~r/ElectricToolboxBlog/~3/p2DcR7XZfMw/" target="_blank">jQuery: show plain text in a password field and then make it a regular password field on focus</a></li>
</ul>
<p>Linux</p>
<ul>
<li><a class="entry-title-link" href="http://fourdollars.blogspot.com/2009/05/ssh-p-xxxx-usernamehostcom-ssh-host.html" target="_blank">mod_wsgi 與 .htaccess</a></li>
<li><a class="entry-title-link" href="http://fourdollars.blogspot.com/2009/05/ssh-p-xxxx-usernamehostcom-ssh-host.html" target="_blank">減少打字 ssh -p xxxx username@host.com -&gt; ssh host</a></li>
<li><a href="http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=thread&amp;topic_id=14152&amp;forum=22&amp;post_id=73021">Remastersys 客製化光碟備份 Linux</a></li>
<li><a class="entry-title-link" href="http://plog.longwin.com.tw/my_note-unix/2009/05/20/git-learn-test-command-2009" target="_blank">Git 初學筆記 &#8211; 實作測試</a></li>
<li><a href="http://kernelnewbies.org/">Linux Kernel Newbies</a></li>
</ul>
<p>FreeBSD</p>
<ul>
<li><a href="http://www.cyberciti.biz/faq/linux-unix-bsd-postfix-forward-email-to-another-account/">FreeBSD Change User Password Shell Script</a></li>
<li><a href="http://www.cyberciti.biz/faq/linux-unix-bsd-postfix-forward-email-to-another-account/">Postfix Forward Email To Another Email Account</a></li>
<li><a href="http://www.cyberciti.biz/faq/postfix-remove-hide-hostnames-ip-addresses/">Postfix Hide Client (MUA) System IP Address / Hostname</a></li>
</ul>
<p>javascript</p>
<ul>
<li><a href="http://www.phatfusion.net/imagemenu/">javascript and flash development: image menu</a></li>
</ul>
<p>CSS</p>
<ul>
<li><a href="http://feedproxy.google.com/%7Er/josephj/%7E3/lvgwbYzyPlo/entry.php" target="_blank">browscap CSS Hack，解決網站 CSS 相容性問題</a></li>
<li><a href="http://www.oswd.org/designs/browse/">Open Source Web Design &#8211; Browse Free Web Design Templates</a></li>
</ul>
<p>Wordpress</p>
<ul>
<li><a href="http://blog.ijliao.info/archives/2009/05/23/3873/">Google Analytics 告訴你參觀人數</a></li>
<li><a href="http://wordpress.org/extend/plugins/google-analyticator/">Google Analyticator</a></li>
</ul>
<p>PHP</p>
<ul>
<li><a href="http://www.phpro.org/classes/Two-Way-Encryption-With-PHP-Mcrypt.html">Two Way Encryption With PHP Mcrypt</a></li>
<li><a class="entry-title-link" href="http://plog.longwin.com.tw/my_note-programming/2009/05/22/php-windows-vista-chinese-name-mkdir-directory-2009" target="_blank">PHP 在 Windows Vista 開 中文名稱 資料夾 該用何種編碼</a></li>
<li><a href="http://blog.herbert.groot.jebbink.nl/">PHP &amp; SQL on Google App Engine</a></li>
<li><a href="http://blog.csdn.net/royal_coffee/archive/2007/05/10/1602933.aspx">在 Windows 下安裝 ImageMagick</a></li>
<li><a class="entry-title-link" href="http://feedproxy.google.com/~r/ElectricToolboxBlog/~3/3FpcjziJmFw/" target="_blank">Get the included files with PHP</a></li>
<li><a href="http://www.electrictoolbox.com/php-autoload/" target="_blank">How to use PHP&#8217;s __autoload function</a></li>
</ul>
<p>C/C++</p>
<ul>
<li><a href="http://fred-zone.blogspot.com/2009/06/blog-post.html">值得玩味的程式作業多項式相乘的程式</a></li>
</ul>
<p>Ruby</p>
<ul>
<li><a title="Permanent Link: YellowPages.com — 使用 Ruby on Rails 進行 Big Rewrite 背後的故事" rel="bookmark" href="http://blog.xdite.net/?p=1250">YellowPages.com — 使用 Ruby on Rails 進行 Big Rewrite 背後的故事</a></li>
</ul>
<p>html</p>
<ul>
<li><a href="http://josephj.com/entry.php?id=209">Image Optimization 讀書心得</a></li>
</ul>
<p>CodeIgniter</p>
<ul>
<li><a title="Building an RSS Feed in Code Igniter" href="http://derekallard.com/blog/post/building-an-rss-feed-in-code-igniter/">Building an RSS Feed in Code Igniter</a></li>
<li><a href="http://codeigniter.com/forums/viewthread/45813/P15/">RSS Feed plugin</a></li>
<li><a href="http://chisflorinel.blogspot.com/2008/12/codeigniter-rss-powered-by-zend.html">CodeIgniter rss powered by Zend Framework Zend_Feed</a></li>
<li><a href="http://tzangms.com/codeigniter/1026">Simplepie in CodeIgniter</a></li>
</ul>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2009/07/28/1441/" title="[網站] 好站連結 (四)">[網站] 好站連結 (四) (0)</a></li><li><a href="http://blog.wu-boy.com/2010/06/23/2240/" title="[FreeBSD] update apache -> 2.2.15, PHP -> 5.3.2, and MySQL downgrade to 5.1.9">[FreeBSD] update apache -> 2.2.15, PHP -> 5.3.2, and MySQL downgrade to 5.1.9 (0)</a></li><li><a href="http://blog.wu-boy.com/2010/05/02/2145/" title="[jQuery] 解決 IE6 PNG 透明背景 (Supersleight jQuery Plugin for Transparent PNGs in IE6)">[jQuery] 解決 IE6 PNG 透明背景 (Supersleight jQuery Plugin for Transparent PNGs in IE6) (2)</a></li><li><a href="http://blog.wu-boy.com/2009/05/28/1307/" title="[網站] 好站連結 (二)">[網站] 好站連結 (二) (3)</a></li><li><a href="http://blog.wu-boy.com/2009/02/23/829/" title="[FreeBSD] 利用 portmaster 升級 PHP 5.26 -> 5.28">[FreeBSD] 利用 portmaster 升級 PHP 5.26 -> 5.28 (2)</a></li><li><a href="http://blog.wu-boy.com/2009/02/18/795/" title="[jQuery] Confirm Plugin 動態新增表單欄位">[jQuery] Confirm Plugin 動態新增表單欄位 (0)</a></li><li><a href="http://blog.wu-boy.com/2008/09/13/388/" title="[FreeBSD]安裝 apache2 (worker) + PHP5.2.6 + mod_fastcgi + php5-fcgi">[FreeBSD]安裝 apache2 (worker) + PHP5.2.6 + mod_fastcgi + php5-fcgi (3)</a></li><li><a href="http://blog.wu-boy.com/2008/07/01/286/" title="[FreeBSD]Apache 噴出 signal Segmentation fault (11)">[FreeBSD]Apache 噴出 signal Segmentation fault (11) (1)</a></li><li><a href="http://blog.wu-boy.com/2008/06/05/275/" title="[FreeBSD] 安裝 PHP APC 加速網頁速度">[FreeBSD] 安裝 PHP APC 加速網頁速度 (2)</a></li><li><a href="http://blog.wu-boy.com/2010/06/07/2182/" title="[PHP] 好用 Debug PHP 工具 FirePHP for FireFox on CodeIgniter">[PHP] 好用 Debug PHP 工具 FirePHP for FireFox on CodeIgniter (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2009/06/11/1386/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[網站] 好站連結 (二)</title>
		<link>http://blog.wu-boy.com/2009/05/28/1307/</link>
		<comments>http://blog.wu-boy.com/2009/05/28/1307/#comments</comments>
		<pubDate>Thu, 28 May 2009 05:29:35 +0000</pubDate>
		<dc:creator>appleboy</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[好站連結]]></category>

		<guid isPermaLink="false">http://blog.wu-boy.com/?p=1307</guid>
		<description><![CDATA[PHP

TimThumb：PHP縮圖程式
如何將 Centos 5.3 php 5.1.6 升級到 php 5.2.9
Installing PHP 5.2.x on RedHat ES5, CentOS 5, etc
<span class="readmore"><a href="http://blog.wu-boy.com/2009/05/28/1307/" title="[網站] 好站連結 (二)" target="_blank">...詳全文（共1281字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><span id="more-1307"></span><br />
PHP</p>
<ul>
<li><a class="entry-title-link" href="http://feedproxy.google.com/%7Er/IdeaGrapes/%7E3/Zrw7YrK7_Wc/" target="_blank">TimThumb：PHP縮圖程式</a></li>
<li><a href="http://gogo2man.world.edoors.com/CeR8uEH5D4xQ" target="_blank">如何將 Centos 5.3 php 5.1.6 升級到 php 5.2.9</a></li>
<li><a rel="bookmark" href="http://bluhaloit.wordpress.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/">Installing PHP 5.2.x on RedHat ES5, CentOS 5, etc</a></li>
<li><a title="Permanent Link to &quot;CentOS下用yum 安裝 php+mysql+apache&quot;" rel="bookmark" href="http://blog.24reader.com/vincentlam/2008/08/30/centos%e4%b8%8b%e7%94%a8yum-%e5%ae%89%e8%a3%9d-phpmysqlapache/">CentOS下用yum 安裝 php+mysql+apache</a></li>
<li><a href="http://teethgrinder.co.uk/open-flash-chart/" target="_blank">Open Flash Chart</a></li>
<li><a href="http://www.krahn.org/2009/05/8-good-php-tools-to-create-and-test-web-applications/" target="_blank">8 Good PHP Tools and Libraries to Create and Test Web Applications</a></li>
<li><a href="http://www.unravelthemusic.com/blog/view/9" target="_blank">Partial-page caching with Memcached and PHP in 3 easy steps</a></li>
<li><a href="http://www.phpro.org/examples/Validate-Date-Using-PHP.html" target="_blank">Validate Date Using PHP</a></li>
<li><a href="http://www.phpro.org/examples/Calculate-Age-With-PHP.html">Calculate Age With PHP</a></li>
<li><a title="Permanent Link to a web server in php" rel="bookmark" href="http://www.rawseo.com/news/2009/05/20/a-web-server-in-php/">a web server in php</a></li>
<li><a title="Permanent Link to An ftp server written in PHP" rel="bookmark" href="http://www.rawseo.com/news/2009/05/18/an-ftp-server-written-in-php/">An ftp server written in PHP</a></li>
<li><a title="Permanent Link to How to use the digg API" rel="bookmark" href="http://www.rawseo.com/news/2009/05/06/how-to-use-the-digg-api/">How to use the digg API</a></li>
<li><a title="Permanent Link to How to turn a php script to an exe..for free" rel="bookmark" href="http://www.rawseo.com/news/2009/05/13/how-to-turn-a-php-script-to-an-exefor-free/">How to turn a php script to an exe..for free</a></li>
<li><a title="Permanent Link to 2-way encryption in PHP" rel="bookmark" href="http://www.rawseo.com/news/2009/05/05/2-way-encryption-in-php/">2-way encryption in PHP</a></li>
<li><a title="Permanent Link to Free php library for the google analytics API" rel="bookmark" href="http://www.rawseo.com/news/2009/05/01/free-php-library-for-the-google-analytics-api/">Free php library for the google analytics API</a></li>
</ul>
<p>MySQL</p>
<ul>
<li><a href="http://www.linuxquestions.org/questions/slackware-14/error-install-mysql-initial-database-715576/" target="_blank"><strong>Error install MySql initial database</strong></a></li>
</ul>
<p>WWW</p>
<ul>
<li><a href="http://delayer.pixnet.net/blog/post/23263247">Windows Server 2000/2003 遠端連線只能同時2人連線數問題</a></li>
<li><a href="http://github.com/guides/pull-requests" target="_blank">Git Guides: Pull Requests</a></li>
<li>
<p class="post-title"><a title="Permanent Link to Git 原始碼管理" rel="bookmark" href="http://www.qweruiop.org/nchcrails/posts/49">Git 原始碼管理</a></p>
</li>
<li>
<p class="entry-title"><a class="entry-title-link" href="http://feedproxy.google.com/%7Er/ihower/%7E3/g6yybi2qws0/2620" target="_blank">Git 版本控制系統(2) 開 branch 分支和操作遠端 repo</a></p>
</li>
<li>
<p class="title"><a href="http://plog.longwin.com.tw/my_note-unix/2009/05/15/git-initial-env-setup-2009" target="_blank">Git 基礎設定 (帳號的環境參數設定)</a></p>
</li>
</ul>
<p>jQuery</p>
<ul>
<li><a rel="bookmark" href="http://spaceforaname.com/galleryview">GalleryView 2.0: A jQuery Content Gallery Plugin</a></li>
<li><a href="http://www.logicbox.net/jquery/simplyscroll/">simplyScroll &#8211; A jQuery Plugin</a></li>
<li><a title="Permanent Link to Demystifying the jQuery selectors optimization" rel="bookmark" href="http://www.no-margin-for-errors.com/2009/04/28/demystifying-the-jquery-selectors-optimization/">Demystifying the jQuery selectors optimization</a></li>
<li><a href="http://www.no-margin-for-errors.com/projects/how-to-optimize-jquery-selectors/" target="_blank">How to: Optimize your jQuery selectors</a></li>
<li><a href="http://ithelp.ithome.com.tw/question/10019707" target="_blank">jQuery取Radio的值</a></li>
</ul>
<p>html</p>
<ul>
<li><a href="http://www.iconseeker.com">icon search</a></li>
<li><a href="http://www.iconlet.com">icon let 搜尋小圖</a></li>
<li><a href="http://www.iconlook.com/" target="_blank">icon look 小圖</a></li>
</ul>
<p>FreeBSD</p>
<ul>
<li><a href="http://bojack.pixnet.net/blog/post/23885117" target="_blank">【FreeBSD】LDAP Server &#8211; 安裝篇</a></li>
<li><a href="http://www.cyberciti.biz/faq/freebsd-disable-ps-sockstat-command-information-leakage/">FreeBSD Prevent Users From Seeing Information About Processes Owned by Other Users</a></li>
<li><a href="http://im.nuk.edu.tw/~lee/rrdtool/" target="_blank">FreeBSD RRDtool Tutorial</a></li>
<li><a href="http://im.nuk.edu.tw/~lee/rrdtool/" target="_blank">FreeBSD RRDtool <span style="font-size: x-small;">written by LEE</span></a></li>
</ul>
<p>javascript</p>
<ul>
<li><a class="entry-title-link" href="http://feedproxy.google.com/%7Er/IdeaGrapes/%7E3/gvyR3CJ3Oa0/" target="_blank">多行 JavaScript</a></li>
</ul>
<p>MySQL</p>
<ul>
<li><a href="http://dev.mysql.com/doc/refman/5.0/en/explain.html">EXPLAIN Syntax</a></li>
<li><a href="http://www.jpipes.com/index.php?/archives/231-Join-fu-The-Art-of-SQL-Tuning.html">Join-fu: The Art of SQL Tuning</a></li>
<li><a href="http://www.jpipes.com/index.php?/archives/239-Slides-for-Join-Fu-The-Art-of-SQL-I-and-II.html">Slides for Join-Fu: The Art of SQL (I and II)</a></li>
</ul>
<p>Linux</p>
<ul>
<li><a title="Permalink to IRC by IRSSI, with Big5/UTF-8 recode" rel="bookmark" href="http://www.jeffhung.net/blog/articles/jeffhung/742/">IRC by IRSSI, with Big5/UTF-8 recode</a></li>
<li><a href="http://lzy-blah.blogspot.com/2007/08/screen-irssi-irc-q.html">用 screen  + irssi 上 irc 之鄉民版教學 (含Q&amp;A)</a></li>
<li><a class="entry-title-link" href="http://www.krahn.org/2009/05/how-to-install-an-ubuntu-based-web-server/" target="_blank">How to install an Ubuntu based Web Server</a></li>
<li><a class="entry-title-link" href="http://fourdollars.blogspot.com/2009/05/ssh-p-xxxx-usernamehostcom-ssh-host.html" target="_blank">FourDollars: 減少打字 ssh -p xxxx username@host.com -&gt; ssh host</a></li>
<li><a href="http://redmine.lighttpd.net/wiki/lighttpd/Docs:Performance" target="_blank">Lighttpd Description &#8211; Performance Issues</a></li>
<li><a class="entry-title-link" href="http://www.cyberciti.biz/tips/rhel-fedora-centos-debian-ubuntu-lighttpd-mod_rrdtool.html" target="_blank">Lighttpd mod_rrdtool: Monitor The Load, Requests Per Seconds and Traffic</a></li>
</ul>
<h3>Related View</h3><ul class="related_post"><li><a href="http://blog.wu-boy.com/2009/07/28/1441/" title="[網站] 好站連結 (四)">[網站] 好站連結 (四) (0)</a></li><li><a href="http://blog.wu-boy.com/2009/06/11/1386/" title="[網站] 好站連結 (三)">[網站] 好站連結 (三) (0)</a></li><li><a href="http://blog.wu-boy.com/2006/09/19/16/" title="FreeBSD + Lighttpd + php + mysql 安裝過程">FreeBSD + Lighttpd + php + mysql 安裝過程 (0)</a></li><li><a href="http://blog.wu-boy.com/2010/06/23/2240/" title="[FreeBSD] update apache -> 2.2.15, PHP -> 5.3.2, and MySQL downgrade to 5.1.9">[FreeBSD] update apache -> 2.2.15, PHP -> 5.3.2, and MySQL downgrade to 5.1.9 (0)</a></li><li><a href="http://blog.wu-boy.com/2009/03/09/948/" title="mydumper 取代 mysqldump 效能">mydumper 取代 mysqldump 效能 (1)</a></li><li><a href="http://blog.wu-boy.com/2008/12/30/667/" title="[MySQL] 實做 MySQL Master-Master Replication 同步">[MySQL] 實做 MySQL Master-Master Replication 同步 (0)</a></li><li><a href="http://blog.wu-boy.com/2008/09/13/388/" title="[FreeBSD]安裝 apache2 (worker) + PHP5.2.6 + mod_fastcgi + php5-fcgi">[FreeBSD]安裝 apache2 (worker) + PHP5.2.6 + mod_fastcgi + php5-fcgi (3)</a></li><li><a href="http://blog.wu-boy.com/2008/07/10/293/" title="[轉貼] RoR：Ruby on Rails的部署方案選擇">[轉貼] RoR：Ruby on Rails的部署方案選擇 (0)</a></li><li><a href="http://blog.wu-boy.com/2008/07/10/291/" title="[FreeBSD] Lighttpd + PHP + mod_proxy + FastCGI">[FreeBSD] Lighttpd + PHP + mod_proxy + FastCGI (1)</a></li><li><a href="http://blog.wu-boy.com/2010/07/07/2276/" title="ProFTPD UseEncoding 繁體中文亂碼解決 Localization">ProFTPD UseEncoding 繁體中文亂碼解決 Localization (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.wu-boy.com/2009/05/28/1307/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
