<?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>電腦茶包 Blog &#187; WordPress</title>
	<atom:link href="http://www.minitw.com/archives/category/server/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.minitw.com</link>
	<description>解決資訊問題分享，電腦隨手筆記</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:24:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>讓WordPress可以插入iframe</title>
		<link>http://www.minitw.com/archives/360</link>
		<comments>http://www.minitw.com/archives/360#comments</comments>
		<pubDate>Tue, 21 Apr 2009 02:18:05 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[iframe]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=360</guid>
		<description><![CDATA[WordPress 預設是不支援放入 iframe 的

要可以插入 iframe 必需先裝一個外掛，外掛的名字是  Embed Iframe

你可以選擇用上傳壓縮檔或是直接用網頁的方式安裝

外掛安裝好，使用方式為在發表的內容中加入下面這行樣版

[iframe url width height]

例如本站的即時匯率就是使用 iframe 來完成的，樣版如下

[iframehttps://ebank.landbank.com.tw/infor/infor.aspx 800 700]]]></description>
			<content:encoded><![CDATA[<p>WordPress 預設是不支援放入 iframe 的</p>
<p>要可以插入 iframe 必需先裝一個外掛，外掛的名字是  <a title="造訪外掛首頁" href="http://blog.deskera.com/wordpress-plugin-embed-iframe">Embed Iframe</a></p>
<p>你可以選擇用上傳壓縮檔或是直接用網頁的方式安裝</p>
<p>外掛安裝好，使用方式為在發表的內容中加入下面這行樣版</p>
<p><code>[</code><code>iframe 網址 寬 高</code><code>]</code></p>
<p>例如本站的<a href="http://www.minitw.com/exchange_rate">即時匯率</a>就是使用 iframe 來完成的</p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/360/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用APC加速你的PHP，讓WordPress不再慢吞吞</title>
		<link>http://www.minitw.com/archives/305</link>
		<comments>http://www.minitw.com/archives/305#comments</comments>
		<pubDate>Fri, 10 Apr 2009 04:04:20 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[加速]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=305</guid>
		<description><![CDATA[系統環境為，如果有所出入請自行判斷要修改的地方 Linux Debian 5.0 Apache 2 PHP5 Perl 要完成這個目標必先要裝 PHP APC 這個外掛 怎麼安裝呢?當然是使用無人不知，無人不曉 apt 懶人包已經準備好了，請服用 #! /bin/sh apt-get -y install apache2-threaded-dev php5-dev php-pear perl pecl install apc echo &#34;extension = apc.so&#34; &#62; /etc/php5/conf.d/apc.ini echo &#34;apc.stat=0&#34; &#62;&#62; /etc/php5/conf.d/apc.ini echo &#34;apc.enabled=1&#34; &#62;&#62; /etc/php5/conf.d/apc.ini echo &#34;;apc.shm_size=快取大小，單位：MB&#34; &#62;&#62; /etc/php5/conf.d/apc.ini echo &#34;apc.shm_size=64&#34; &#62;&#62; /etc/php5/conf.d/apc.ini echo &#34;apc.ttl=300&#34; &#62;&#62; /etc/php5/conf.d/apc.ini echo &#34;apc.user_ttl=300&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>系統環境為，如果有所出入請自行判斷要修改的地方<br />
Linux Debian 5.0<br />
Apache 2<br />
PHP5<br />
Perl</p>
<p><a href="http://lh3.ggpht.com/_HUcF0uqL0MM/Sd7D5SdDoLI/AAAAAAAAAZE/qEmSslSme2s/s800/20090410_1.jpg"><img class="alignnone" src="http://lh3.ggpht.com/_HUcF0uqL0MM/Sd7D5SdDoLI/AAAAAAAAAZE/qEmSslSme2s/s800/20090410_1.jpg" alt="" width="472" height="246" /></a></p>
<p>要完成這個目標必先要裝 PHP APC 這個外掛</p>
<p>怎麼安裝呢?當然是使用無人不知，無人不曉 apt</p>
<p>懶人包已經準備好了，請服用</p>
<pre class="brush: php; title: ;">
#! /bin/sh
apt-get -y install apache2-threaded-dev php5-dev php-pear perl
pecl install apc
echo &quot;extension = apc.so&quot; &gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.stat=0&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.enabled=1&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;;apc.shm_size=快取大小，單位：MB&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.shm_size=64&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.ttl=300&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.user_ttl=300&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.num_files_hint=1024&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.mmap_file_mask=/var/tmp/apc.XXXXXX&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.include_once_override = 1&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
echo &quot;apc.enable_cli=1&quot; &gt;&gt; /etc/php5/conf.d/apc.ini
cp /usr/share/php/apc.php /var/www
chown www-data /var/www/apc.php
chgrp www-data /var/www/apc.php
chmod 755 /var/www/apc.php
perl -i -pe &quot;s/\'ADMIN_USERNAME\',\'apc\'/\'ADMIN_USERNAME\',\'admin\'/g&quot; /var/www/apc.php
perl -i -pe &quot;s/\'ADMIN_PASSWORD\',\'password\'/\'ADMIN_PASSWORD\',\'admin123\'/g&quot; /var/www/apc.php
/etc/init.d/apache2 restart
</pre>
<p><span style="color: #ff0000;">首先先以 root 登入系統</span></p>
<p>請把 code 存成 install_apc.sh</p>
<p>然後給予可執行的權限( chmod 755 install_apc.sh)</p>
<p>執行 ./ install_apc.sh</p>
<p>出現以下畫面時，按下 Enter</p>
<p>47 source files, building<br />
running: phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
1. Use apxs to set compile flags (if using APC with Apache)? : yes</p>
<p>1-1, 'all', 'abort', or Enter to continue:</p>
<p>懶人包預設會把 APC 的管理頁面，copy 一份到 /var/www 如果有特殊需求請自已搬移</p>
<p>預設的 APC 管理帳號是 admin  密碼是 admin123</p>
<p>如果要修改請編輯 /var/www/apc.php (<span style="color: #ff0000;">修改後記得重啟 apache2</span>)</p>
<p>defaults('ADMIN_USERNAME','你要的帳號');<br />
defaults('ADMIN_PASSWORD','你要的密碼');</p>
<p>經過測試的結果，真的是差非常多，快到一個不行</p>
<p>如果你發現修改了網頁，可是仍然是顯示舊的，這表是網頁仍在快取中</p>
<p>有2個方法可以解決</p>
<p>1.直接重啟apache2</p>
<p>2.進入APC的管理介面，登入帳密後，點選 Clear opcode Cache</p>
<p>參考資料</p>
<p><a href="http://blog.wu-boy.com/2008/06/05/275/" target="_blank">[FreeBSD] 安裝 PHP APC 加速網頁速度</a></p>
<p><a href="http://twntwn.info/blog/ajer001/archives/2765" target="_blank">PHP APC on Ubuntu 8.04 Hardy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/305/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SyntaxHighlighter-Plus for RouterOS Template</title>
		<link>http://www.minitw.com/archives/252</link>
		<comments>http://www.minitw.com/archives/252#comments</comments>
		<pubDate>Fri, 20 Mar 2009 06:21:18 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[RouterOS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Syntaxhighlighter]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=252</guid>
		<description><![CDATA[RouterOS 看來應該是會一直玩下去了。越玩越順手 先補上在 WordPress 中可以讓 RouterOS 語法高亮的 SyntaxHighlighter-Plus 樣版 使用的方法可以參考之前的文章幫SyntaxHighlighter-Plus加上新的語言樣版 程式碼另存為shBrushRouterOS.js SyntaxHighlighter.brushes.RouterOS = function() { var keywords = 'global local do else for from to step in foreach ' + 'if put while environment nothing set'; var commands = 'add comment disable enable export get move remove unset ' + 'delay edit blink monitor beep [...]]]></description>
			<content:encoded><![CDATA[<p>RouterOS 看來應該是會一直玩下去了。越玩越順手</p>
<p>先補上在 WordPress 中可以讓 RouterOS 語法高亮的 SyntaxHighlighter-Plus 樣版</p>
<p>使用的方法可以參考之前的文章<a href="http://www.minitw.com/archives/230" target="_blank">幫SyntaxHighlighter-Plus加上新的語言樣版</a></p>
<p><span style="color: #ff0000;">程式碼另存為shBrushRouterOS.js</span></p>
<pre class="brush: jscript; title: ;">
SyntaxHighlighter.brushes.RouterOS = function()
{

    var keywords =  'global local do else for from to step in foreach ' +
                    'if put while environment nothing set';

    var commands =  'add comment disable enable export get move remove unset ' +
                    'delay edit blink monitor beep find led len  ' +
                    'list log pick resolve time print toid totime tonum';

        this.regexList = [
                { regex: /#.*$/gm, css: 'comments' },
                { regex: SyntaxHighlighter.regexLib.doubleQuotedString,                 css: 'string' },                // double quoted strings
                { regex: new RegExp(this.getKeywords(keywords), 'gm'),                  css: 'keyword' },               // keywords
                { regex: new RegExp(this.getKeywords(commands), 'gm'),                  css: 'functions' }              // commands
                ];
}

SyntaxHighlighter.brushes.RouterOS.prototype    = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.RouterOS.aliases      = ['ros'];
</pre>
<p>記得要在/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter.php<br />
大約在在112行的位置加入樣版的名子</p>
<p><span style="color: #ff0000;">'RouterOS'=> array('ros'),</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/252/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>幫SyntaxHighlighter-Plus加上新的語言樣版</title>
		<link>http://www.minitw.com/archives/230</link>
		<comments>http://www.minitw.com/archives/230#comments</comments>
		<pubDate>Tue, 17 Mar 2009 02:21:55 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Syntaxhighlighter]]></category>
		<category><![CDATA[樣版]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=230</guid>
		<description><![CDATA[WordPress 的 SyntaxHighlighter-Plus 外掛預設支援下列的語言 * Bash -- `bash`, `sh` * C++ -- `cpp`, `c`, `c++` * C# -- `c#`, `c-sharp`, `csharp` * CSS -- `css` * Delphi -- `delphi`, `pascal` * Diff -- `diff`, `patch` * Groovy -- `groovy` * Java -- `java` * JavaScript -- `js`, `jscript`, `javascript` * PHP -- `php` * Plain [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 的 SyntaxHighlighter-Plus 外掛預設支援下列的語言</p>
<p style="padding-left: 30px;">* Bash -- `bash`, `sh`<br />
* C++ -- `cpp`, `c`, `c++`<br />
* C# -- `c#`, `c-sharp`, `csharp`<br />
* CSS -- `css`<br />
* Delphi -- `delphi`, `pascal`<br />
* Diff -- `diff`, `patch`<br />
* Groovy -- `groovy`<br />
* Java -- `java`<br />
* JavaScript -- `js`, `jscript`, `javascript`<br />
* PHP -- `php`<br />
* Plain text -- `plain`, `text`<br />
* Python -- `py`, `python`<br />
* Ruby -- `rb`, `ruby`, `rails`, `ror`<br />
* SQL -- `sql`<br />
* VB -- `vb`, `vbnet`, `vb.net`<br />
* XML/HTML -- `xml`, `html`, `xhtml`, `xslt`</p>
<p>如果今天想要加入一個新的語言該怎麼怎做呢?</p>
<p>只要2個步驟就可以完成了</p>
<p>1.把適用於SyntaxHighlighter-Plus的語言樣版(JavaScript)放到<br />
/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter/scripts</p>
<p>2.編輯/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter.php<br />
大約在在112行的位置加入樣版的名子</p>
<p style="padding-left: 30px;">$this-&gt;aliases = apply_filters( 'agsyntaxhighlighter_aliases', array(<br />
'Bash'    =&gt; array('bash', 'sh', 'shell'),<br />
'Cpp'     =&gt; array('cpp', 'c', 'c++'),</p>
<p>例如要加入一個批次檔(bat)的樣版，把下面這行加入</p>
<p style="padding-left: 30px;">'Batch'   =&gt; array('batch','dos','bat'),</p>
<p>加入後變成</p>
<p style="padding-left: 30px;">$this-&gt;aliases = apply_filters( 'agsyntaxhighlighter_aliases', array(<br />
'Bash'    =&gt; array('bash', 'sh', 'shell'),<br />
<span style="color: #ff0000;"> 'Batch'   =&gt; array('batch','dos','bat'),</span><br />
'Cpp'     =&gt; array('cpp', 'c', 'c++'),</p>
<p>下面我們用例子來看看。</p>
<p>如果要加入Dos批次檔與Perl的語法樣版</p>
<p>首先，先把下面2個JavaScrip放到</p>
<p>/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter/scripts</p>
<p><span style="color: #ff0000;">程式碼另存為shBrushBatch.js</span></p>
<pre class="brush: jscript; title: ;">
/*shBrushBatch.js*/

SyntaxHighlighter.brushes.Batch = function()
{

var keywords =  'do else for in call choice goto shift pause errorlevel ' +
'if not exist lfnfor start setlocal endlocal echo set';

var commands =  'append attrib cd chdir chkdsk choice cls copy del erase deltree ' +
'dir exit fc comp fdisk find format fsutil help join ' +
'label loadfix md mkdir mem memmaker more move msd pcpark ' +
'print rd rmdir ren scandisk share sort subst sys ' +
'time date tree truename type undelete ver xcopy';

this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLinePerlComments,             css: 'comments' },              // one line comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,                 css: 'string' },                // double quoted strings
{ regex: new RegExp(this.getKeywords(keywords), 'gm'),                  css: 'keyword' },               // keywords
{ regex: new RegExp(this.getKeywords(commands), 'gm'),                  css: 'functions' }              // commands
];
}

SyntaxHighlighter.brushes.Batch.prototype       = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Batch.aliases         = ['dos', 'batch', 'bat'];
</pre>
<p><span style="color: #ff0000;">程式碼另存為shBrushPerl.js</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">
<pre class="brush: jscript; title: ;">&lt;/span&gt;&lt;/span&gt;

程式碼另存為shBrushPerl.js

[code='js']

/*shBrushPerl.js*/

SyntaxHighlighter.brushes.Perl = function()
{
var funcs = 'abs accept alarm atan2 bind binmode bless caller chdir chmod chomp chop chown chr chroot close closedir connect cos crypt dbmclose dbmopen defined delete dump each endgrent endhostent endnetent endprotoent endpwent endservent eof exec exists exp fcntl fileno flock fork format formline getc getgrent getgrgid getgrnam gethostbyaddr gethostbyname gethostent getlogin getnetbyaddr getnetbyname getnetent getpeername getpgrp getppid getpriority getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid getservbyname getservbyport getservent getsockname getsockopt glob gmtime grep hex import index int ioctl join keys kill lc lcfirst length link listen localtime lock log lstat m map mkdir msgctl msgget msgrcv msgsnd no oct open opendir ord pack pipe pop pos print printf prototype push q qq quotemeta qw qx rand read readdir readline readlink readpipe recv ref rename reset reverse rewinddir rindex rmdir scalar seek seekdir semctl semget semop send setgrent sethostent setnetent setpgrp setpriority setprotoent setpwent setservent setsockopt shift shmctl shmget shmread shmwrite shutdown sin sleep socket socketpair sort splice split sprintf sqrt srand stat study sub substr symlink syscall sysopen sysread sysseek system syswrite tell telldir tie tied time times tr truncate uc ucfirst umask undef unlink unpack unshift untie utime values vec waitpid wantarray warn write qr';

var keywords =  's select goto die do package redo require return continue for foreach last next wait while use if else elsif eval exit unless switch case';

var constants   = 'my our local';

this.regexList = [
{ regex: SyntaxHighlighter.regexLib.singleLineCComments,        css: 'comments' },                      // one line comments
{ regex: SyntaxHighlighter.regexLib.multiLineCComments,         css: 'comments' },                      // multiline comments
{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,         css: 'string' },                        // double quoted strings
{ regex: SyntaxHighlighter.regexLib.singleQuotedString,         css: 'string' },                        // single quoted strings
{ regex: /\$\w+/g,                                                                                      css: 'variable' },                      // variables
{ regex: new RegExp(this.getKeywords(funcs), 'gmi'),            css: 'functions' },                     // common functions
{ regex: new RegExp(this.getKeywords(constants), 'gmi'),        css: 'constants' },                     // constants
{ regex: new RegExp(this.getKeywords(keywords), 'gm'),          css: 'keyword' }                        // keyword
];

this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
};
SyntaxHighlighter.brushes.Perl.prototype = new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Perl.aliases  = ['perl','pl'];
</pre>
<p><span style="color: #ff0000;"><span style="color: #000000;">最後在 </span></span>/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter.php 加入</p>
<p>'Batch'   =&gt; array('batch','dos','bat'),<br />
'Perl'    =&gt; array('perl', 'pl'),</p>
<p>大功告成</p>
<p>參考資料：<br />
<a href="http://pcnorb.blogspot.com/2008/10/shbrushbatch-for-google.html">shBrushBatch for Google SyntaxHighlighter</a><br />
<a href="http://beavercreekconsulting.com/blog/2008/12/perl-syntax-highlighter/">Perl Syntax Highlighter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/230/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>為你的Blog加上即時衛星雲圖</title>
		<link>http://www.minitw.com/archives/167</link>
		<comments>http://www.minitw.com/archives/167#comments</comments>
		<pubDate>Fri, 06 Mar 2009 16:11:19 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[衛星雲圖]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=167</guid>
		<description><![CDATA[加入的方式很簡單就只是插入一張圖片而已]]></description>
			<content:encoded><![CDATA[<p>加入的方式很簡單就只是插入一張圖片而已</p>
<p>只要把這行html碼放到你的Blog中就行了</p>
<pre class="brush: xml; title: ;">
&lt;!--本行為註解--&gt;
&lt;!--台灣即時衛星雲圖--&gt;
&lt;a href=&quot;http://www.cwb.gov.tw/V6/observe/satellite/Data/s3p/s3p.jpg&quot;&gt;
&lt;img src=&quot;http://www.cwb.gov.tw/V6/observe/satellite/Data/s3p/s3p.jpg&quot;
alt=&quot;即時衛星雲圖&quot; title=&quot;即時衛星雲圖&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;190&quot; /&gt;
</pre>
<pre id="line367"><span class="attribute-value"><a href="http://www.cwb.gov.tw/V6/observe/satellite/Data/s3p/s3p.jpg"><img class="alignnone" src="http://www.cwb.gov.tw/V6/observe/satellite/Data/s3p/s3p.jpg" alt="" width="210" height="223" /></a></span></pre>
<p>上面這張圖片是"台灣"的</p>
<p>如果你要的是"東亞"的請用這段程式碼</p>
<p><a href="http://www.cwb.gov.tw/V6/observe/satellite/Data/s1p/s1p.jpg"><img class="alignnone" src="http://www.cwb.gov.tw/V6/observe/satellite/Data/s1p/s1p.jpg" alt="" width="208" height="223" /></a></p>
<pre class="brush: xml; title: ;">
&lt;!--本行為註解--&gt;
&lt;!--東亞即時衛星雲圖--&gt;
&lt;a href=&quot;http://www.cwb.gov.tw/V6/observe/satellite/Data/s1p/s1p.jpg&quot;&gt;
&lt;img src=&quot;http://www.cwb.gov.tw/V6/observe/satellite/Data/s1p/s1p.jpg&quot;
alt=&quot;即時衛星雲圖&quot; title=&quot;即時衛星雲圖&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;190&quot; /&gt;
</pre>
<p>如果你要的是"全球"的請用這段程式碼</p>
<p><a href="http://www.cwb.gov.tw/V6/observe/satellite/Data/s0p/s0p.jpg"><img class="alignnone" src="http://www.cwb.gov.tw/V6/observe/satellite/Data/s0p/s0p.jpg" alt="" width="208" height="224" /></a></p>
<pre class="brush: xml; title: ;">
&lt;!--本行為註解--&gt;
&lt;!--全球即時衛星雲圖--&gt;
&lt;a href=&quot;http://www.cwb.gov.tw/V6/observe/satellite/Data/s0p/s0p.jpg&quot;&gt;
&lt;img src=&quot;http://www.cwb.gov.tw/V6/observe/satellite/Data/s0p/s0p.jpg&quot;
alt=&quot;即時衛星雲圖&quot; title=&quot;即時衛星雲圖&quot; border=&quot;0&quot; align=&quot;center&quot; width=&quot;190&quot; /&gt;
</pre>
<p>參考資料來源：<a href="http://blog.xuite.net/frank.hgs/GE/19020801" target="_blank"><span class="titlename">欄位加入多功能中央氣象局衛星雲圖動畫</span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/167/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 WordPress 中安裝IP分析統計外掛</title>
		<link>http://www.minitw.com/archives/141</link>
		<comments>http://www.minitw.com/archives/141#comments</comments>
		<pubDate>Tue, 03 Mar 2009 07:36:33 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[IP分析]]></category>
		<category><![CDATA[IP記錄]]></category>
		<category><![CDATA[外掛]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=141</guid>
		<description><![CDATA[一直想在WordPress中把來訪的人，做個流量與IP統計與分析 又不想用現成的google、yahoo人數統計 今天終於找到一個不錯用的外掛套件 當初選WordPress果然是對的，一堆外掛等你用 這個外掛套件叫wp-slimstat-ex，網站在這邊 下載下來後要改2個地方才能使用 第1個地方 var $external_iptc = 'internal'; 改成 var $external_iptc = 'external'; ------------------------------------------- 第2個地方，在最後一行加上 $GLOBALS['SlimCfg'] =&#38;amp;amp; $SlimCfg; 使其變成下面的程式碼 if(!isset($SlimCfg)) $SlimCfg =&#38;amp;amp; SlimCfg::get_instance(); $GLOBALS['SlimCfg'] =&#38;amp;amp; $SlimCfg; ?&#62; 或是下載我修正後的版本使用也可以 下載後如同一般WordPress外掛套件的安裝即可]]></description>
			<content:encoded><![CDATA[<p>一直想在WordPress中把來訪的人，做個流量與IP統計與分析</p>
<p>又不想用現成的google、yahoo人數統計</p>
<p>今天終於找到一個不錯用的外掛套件</p>
<p>當初選WordPress果然是對的，一堆外掛等你用</p>
<p>這個外掛套件叫wp-slimstat-ex，網站在<a href="http://082net.com/2006/756/wp-slimstat-ex-plugin-en/" target="_blank">這邊</a></p>
<p><a href="http://lh3.ggpht.com/_HUcF0uqL0MM/SazfrP5io0I/AAAAAAAAAM0/q6KFJyHMK2s/s800/20090303_1.JPG"><img class="alignnone" src="http://lh3.ggpht.com/_HUcF0uqL0MM/SazfrP5io0I/AAAAAAAAAM0/q6KFJyHMK2s/s800/20090303_1.JPG" alt="" width="283" height="296" /></a></p>
<p>下載下來後要改2個地方才能使用</p>
<pre class="brush: php; title: ;">
第1個地方

var $external_iptc = 'internal';
改成
var $external_iptc = 'external';

-------------------------------------------

第2個地方，在最後一行加上

$GLOBALS['SlimCfg'] =&amp;amp;amp; $SlimCfg;

使其變成下面的程式碼
if(!isset($SlimCfg))
$SlimCfg =&amp;amp;amp; SlimCfg::get_instance();

$GLOBALS['SlimCfg'] =&amp;amp;amp; $SlimCfg;
?&gt;
</pre>
<p>或是下載我<a href="http://sites.google.com/site/minitwfile/Home/file/wp-slimstat-explugin-v1.6_fix.zip?attredirects=0">修正後的版本</a>使用也可以</p>
<p>下載後如同一般WordPress外掛套件的安裝即可</p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/141/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在 Google 中增加你 WordPress Blog 的曝光率</title>
		<link>http://www.minitw.com/archives/93</link>
		<comments>http://www.minitw.com/archives/93#comments</comments>
		<pubDate>Thu, 26 Feb 2009 00:45:05 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[網站架設]]></category>
		<category><![CDATA[google sitemaps]]></category>
		<category><![CDATA[外掛]]></category>
		<category><![CDATA[曝光率]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=93</guid>
		<description><![CDATA[我們除了可以消極的讓 Google 自動來我們的網站搜尋之外 也可以主動出擊，讓 Google 主動來抓取網站的資料 這個服務叫 Google Sitemaps 運作的原理就是提供一份符合標準XML檔給 Google 讓 Google 依據該XML檔去抓取網站的資料 接下來我們就以 WordPress 所架設的 Blog，配合外掛套件來使用 產生出符合標準的XML檔 首先就是在 WordPress 裡的外掛選項，選擇新增外掛 在安裝外掛裡的搜尋中輸入 Google XML Sitemaps，然後按下搜尋 安裝 Google XML Sitemaps 套件了 安裝完成後這個套件會出現在你的選單中，點選它 基本上我們保持這個外掛套件的預設就行了，接下來就是按下去，產生XML檔了 接下來就是設定 Google Sitemap 了，登入 Sitemap 後首先要先新增一個網站，就是你的Blog 然後 Google Sitemap 會驗證這個網站是不是你所有的，這邊我們選擇使用html檔的方式 先把 Google Sitemap 要求你建立的 html檔案(內容可為空白) 上傳到你的主機後，再按下驗證 驗證完成後接下來就是設定 Sitemap 的位置了。如果你沒修改外掛套件的預設值 就照下面的方式輸入就行了 到此就大功告成了，過個幾天。再去 Google [...]]]></description>
			<content:encoded><![CDATA[<p>我們除了可以消極的讓 Google 自動來我們的網站搜尋之外</p>
<p>也可以主動出擊，讓 Google 主動來抓取網站的資料</p>
<p>這個服務叫 <a id="pa1" href="http://www.google.com/webmasters/sitemaps" target="_blank"><strong>Google</strong> <strong>Sitemaps</strong></a></p>
<p>運作的原理就是提供一份符合<a href="https://www.google.com/webmasters/tools/docs/zh_TW/protocol.html" target="_blank">標準</a>XML檔給 Google</p>
<p>讓 Google 依據該XML檔去抓取網站的資料</p>
<p>接下來我們就以 WordPress 所架設的 Blog，配合外掛套件來使用</p>
<p>產生出符合標準的XML檔</p>
<p>首先就是在 WordPress 裡的外掛選項，選擇新增外掛</p>
<p><a href="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBNObVOUI/AAAAAAAAAIQ/xDFarC4txgM/s800/20090224_1.JPG"><img class="alignnone" src="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBNObVOUI/AAAAAAAAAIQ/xDFarC4txgM/s800/20090224_1.JPG" alt="" width="148" height="141" /></a></p>
<p>在安裝外掛裡的搜尋中輸入   Google XML Sitemaps，然後按下搜尋</p>
<p><a href="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBNEW9w9I/AAAAAAAAAIY/f5AF3qf7Wso/s800/20090224_2.JPG"><img class="alignnone" src="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBNEW9w9I/AAAAAAAAAIY/f5AF3qf7Wso/s800/20090224_2.JPG" alt="" width="294" height="304" /></a></p>
<p>安裝 Google XML Sitemaps 套件了</p>
<p><a href="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBNe1AXOI/AAAAAAAAAIg/Hc-jrBSio1s/s800/20090224_3.JPG"><img class="alignnone" src="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBNe1AXOI/AAAAAAAAAIg/Hc-jrBSio1s/s800/20090224_3.JPG" alt="" width="466" height="151" /></a></p>
<p>安裝完成後這個套件會出現在你的選單中，點選它</p>
<p><a href="http://lh4.ggpht.com/_HUcF0uqL0MM/SaPBNaknIkI/AAAAAAAAAIo/nRVDpefgWDo/s800/20090224_4.JPG"><img class="alignnone" src="http://lh4.ggpht.com/_HUcF0uqL0MM/SaPBNaknIkI/AAAAAAAAAIo/nRVDpefgWDo/s800/20090224_4.JPG" alt="" width="143" height="182" /></a></p>
<p>基本上我們保持這個外掛套件的預設就行了，接下來就是按下去，產生XML檔了</p>
<p><a href="http://lh4.ggpht.com/_HUcF0uqL0MM/SaPBNZanfYI/AAAAAAAAAIw/2EbiVpX9YZY/s800/20090224_5.JPG"><img class="alignnone" src="http://lh4.ggpht.com/_HUcF0uqL0MM/SaPBNZanfYI/AAAAAAAAAIw/2EbiVpX9YZY/s800/20090224_5.JPG" alt="" width="448" height="140" /></a></p>
<p>接下來就是設定 Google Sitemap 了，登入 Sitemap 後首先要先新增一個網站，就是你的Blog</p>
<p><a href="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBRY30bnI/AAAAAAAAAI4/xFNBW3fnaVc/s800/20090224_6.JPG"><img class="alignnone" src="http://lh5.ggpht.com/_HUcF0uqL0MM/SaPBRY30bnI/AAAAAAAAAI4/xFNBW3fnaVc/s800/20090224_6.JPG" alt="" width="462" height="162" /></a></p>
<p>然後 Google Sitemap 會驗證這個網站是不是你所有的，這邊我們選擇使用html檔的方式</p>
<p>先把 Google Sitemap 要求你建立的 html檔案(內容可為空白) 上傳到你的主機後，再按下驗證</p>
<p><a href="http://lh6.ggpht.com/_HUcF0uqL0MM/SaPBRfE5wHI/AAAAAAAAAJA/_u6Hytvg-3w/s800/20090224_7.JPG"><img class="alignnone" src="http://lh6.ggpht.com/_HUcF0uqL0MM/SaPBRfE5wHI/AAAAAAAAAJA/_u6Hytvg-3w/s800/20090224_7.JPG" alt="" width="402" height="422" /></a></p>
<p>驗證完成後接下來就是設定 Sitemap 的位置了。如果你沒修改外掛套件的預設值</p>
<p>就照下面的方式輸入就行了</p>
<p><a href="http://lh3.ggpht.com/_HUcF0uqL0MM/SaPBRqZ1iFI/AAAAAAAAAJI/UsDNo4_5Z-8/s800/20090224_8.JPG"><img class="alignnone" src="http://lh3.ggpht.com/_HUcF0uqL0MM/SaPBRqZ1iFI/AAAAAAAAAJI/UsDNo4_5Z-8/s800/20090224_8.JPG" alt="" width="441" height="302" /></a></p>
<p>到此就大功告成了，過個幾天。再去 Google 就搜尋的到你了</p>
<p>不用再傻傻的等待 Google 來你的網站抓資料了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/93/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在Syntaxhighlighter-Plus中開啟程式碼複製到剪貼簿的功能</title>
		<link>http://www.minitw.com/archives/78</link>
		<comments>http://www.minitw.com/archives/78#comments</comments>
		<pubDate>Tue, 24 Feb 2009 01:34:48 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[網站架設]]></category>
		<category><![CDATA[Syntaxhighlighter]]></category>
		<category><![CDATA[外掛]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=78</guid>
		<description><![CDATA[在 WordPress 中有個外掛套件叫 Syntaxhighlighter-Plus 這個套件是用來做程式碼高亮顯示的 也就是說可以讓你放在網頁上的程式碼比較好閱讀 這個一個 JavaScript 寫的套件 安裝完 Syntaxhighlighter-Plus 這個外掛後 你會發現原本有的程式碼複製到剪貼簿(copyToClipboard)不見了 這是因為預設值是關的，必需手動打開 到wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter/src/ 編輯 shCore.js 這個檔案，找到下面這行程式，大約在第71行 clipboardSwf : null, 以本站為例就改成這樣子 clipboardSwf : 'http://www.minitw.com/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter/scripts/clipboard.swf', 這樣這個功能就打開了 2009/03/11 補充：syntaxhighlighter支援程式語言列表]]></description>
			<content:encoded><![CDATA[<p>在 WordPress 中有個外掛套件叫 Syntaxhighlighter-Plus</p>
<p>這個套件是用來做程式碼高亮顯示的</p>
<p>也就是說可以讓你放在網頁上的程式碼比較好閱讀</p>
<p>這個一個 JavaScript 寫的套件</p>
<p>安裝完 Syntaxhighlighter-Plus 這個外掛後</p>
<p>你會發現原本有的程式碼複製到剪貼簿(copyToClipboard)不見了</p>
<p>這是因為預設值是關的，必需手動打開</p>
<p>到wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter/src/</p>
<p>編輯 shCore.js 這個檔案，找到下面這行程式，大約在第71行<br />
clipboardSwf : null,</p>
<p>以本站為例就改成這樣子<br />
clipboardSwf : 'http://www.minitw.com/wp-content/plugins/syntaxhighlighter-plus/syntaxhighlighter/scripts/clipboard.swf',</p>
<p>這樣這個功能就打開了</p>
<p>2009/03/11 補充：<a href="http://code.google.com/p/syntaxhighlighter/wiki/Languages" target="_blank">syntaxhighlighter支援程式語言列表</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/78/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

