<?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>一个程序猿 &#187; wordpress</title>
	<atom:link href="http://www.sunboyu.cn/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sunboyu.cn</link>
	<description>时光不会倒流,脚步总要前进</description>
	<lastBuildDate>Tue, 27 Jul 2010 06:24:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wordpress在不同webserver下的重写规则和配置</title>
		<link>http://www.sunboyu.cn/2009/04/07/wordpress%e5%9c%a8%e4%b8%8d%e5%90%8cwebserver%e4%b8%8b%e7%9a%84%e9%87%8d%e5%86%99%e8%a7%84%e5%88%99%e5%92%8c%e9%85%8d%e7%bd%ae.shtml</link>
		<comments>http://www.sunboyu.cn/2009/04/07/wordpress%e5%9c%a8%e4%b8%8d%e5%90%8cwebserver%e4%b8%8b%e7%9a%84%e9%87%8d%e5%86%99%e8%a7%84%e5%88%99%e5%92%8c%e9%85%8d%e7%bd%ae.shtml#comments</comments>
		<pubDate>Tue, 07 Apr 2009 13:22:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[重写]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=644</guid>
		<description><![CDATA[apache下
#.htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#httpd.conf
Options ExecCGI FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
nginx下
#nginx.conf
location / {
&#160;&#160; &#160; &#160; &#160;if (!-f $request_filename){
&#160;&#160; &#160; &#160; &#160; &#160; &#160;rewrite (.*) /index.php;
&#160;&#160; &#160; &#160; &#160;}
&#160;&#160; &#160;}
]]></description>
			<content:encoded><![CDATA[<p>apache下</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">#.htaccess</li>
<li>RewriteEngine On</li>
<li>RewriteBase /</li>
<li>RewriteCond %{REQUEST_FILENAME} !-f</li>
<li>RewriteCond %{REQUEST_FILENAME} !-d</li>
<li>RewriteRule . /index.php [L]</li>
<li>#httpd.conf</li>
<li>Options ExecCGI FollowSymLinks</li>
<li>AllowOverride All</li>
<li>Order allow,deny</li>
<li>allow from all</li></ol></div>
<p>nginx下</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">#nginx.conf</li>
<li>location / {</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (!-f $request_filename){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rewrite (.*) /index.php;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</li>
<li>&nbsp;&nbsp; &nbsp;}</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2009/04/07/wordpress%e5%9c%a8%e4%b8%8d%e5%90%8cwebserver%e4%b8%8b%e7%9a%84%e9%87%8d%e5%86%99%e8%a7%84%e5%88%99%e5%92%8c%e9%85%8d%e7%bd%ae.shtml/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>博客升级V2.7成功</title>
		<link>http://www.sunboyu.cn/2009/01/02/%e5%8d%9a%e5%ae%a2%e5%8d%87%e7%ba%a7v27%e6%88%90%e5%8a%9f.shtml</link>
		<comments>http://www.sunboyu.cn/2009/01/02/%e5%8d%9a%e5%ae%a2%e5%8d%87%e7%ba%a7v27%e6%88%90%e5%8a%9f.shtml#comments</comments>
		<pubDate>Thu, 01 Jan 2009 18:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[纯属蛋疼]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=441</guid>
		<description><![CDATA[顺便帮助强哥测试新的博客版本，我这里先做个肉鸡，2.7向下兼容很好，无缝切换过来。
新的后台比较强，但也有点花哨。
体验一下再说
后台支持版本，不错
图片上传测试：

flash上传测试:

]]></description>
			<content:encoded><![CDATA[<p>顺便帮助强哥测试新的博客版本，我这里先做个肉鸡，2.7向下兼容很好，无缝切换过来。</p>
<p>新的后台比较强，但也有点花哨。</p>
<p>体验一下再说</p>
<p>后台支持版本，不错</p>
<p>图片上传测试：</p>
<p><img class="alignnone size-medium wp-image-444" title="156236" src="http://www.sunboyu.cn/upfiles/2009/01/156236-202x300.jpg" alt="156236" width="202" height="300" /></p>
<p>flash上传测试:</p>
<p><img class="aligncenter size-full wp-image-447" title="20071223105227536" src="http://www.sunboyu.cn/upfiles/2009/01/20071223105227536.jpg" alt="20071223105227536" width="300" height="450" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2009/01/02/%e5%8d%9a%e5%ae%a2%e5%8d%87%e7%ba%a7v27%e6%88%90%e5%8a%9f.shtml/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用Lucene为WordPress创建索引</title>
		<link>http://www.sunboyu.cn/2008/10/15/%e4%bd%bf%e7%94%a8lucene%e4%b8%bawordpress%e5%88%9b%e5%bb%ba%e7%b4%a2%e5%bc%95.shtml</link>
		<comments>http://www.sunboyu.cn/2008/10/15/%e4%bd%bf%e7%94%a8lucene%e4%b8%bawordpress%e5%88%9b%e5%bb%ba%e7%b4%a2%e5%bc%95.shtml#comments</comments>
		<pubDate>Wed, 15 Oct 2008 07:41:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[lucence]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=346</guid>
		<description><![CDATA[上次说到Lucene的Document模型，现在，我们使用WordPress为例，为其创建索引。
分析wordpress数据库结构，我们只需要为标题内容，即主要的文本内容创建索引即可。
具体语句为:  SELECT ID,post_title,post_content,guid FROM wp_posts ORDER BY ID DESC
如下代码，mysql连接类用的上文的mysql类，代码风格还是很PHP。生成的索引全保存在当前的index文件夹下
E:\java\index 的目录
2008-10-16  14:40
.
2008-10-16  14:40              ..
2008-10-16  14:40                20 segments.gen
2008-10-16  14:40       [...]]]></description>
			<content:encoded><![CDATA[<p>上次说到Lucene的Document模型，现在，我们使用WordPress为例，为其创建索引。</p>
<p>分析wordpress数据库结构，我们只需要为标题内容，即主要的文本内容创建索引即可。</p>
<p>具体语句为:  SELECT ID,post_title,post_content,guid FROM wp_posts ORDER BY ID DESC</p>
<p>如下代码，mysql连接类用的上文的mysql类，代码风格还是很PHP。生成的索引全保存在当前的index文件夹下</p>
<p>E:\java\index 的目录</p>
<p>2008-10-16  14:40</p>
<p>.<br />
2008-10-16  14:40              ..<br />
2008-10-16  14:40                20 segments.gen<br />
2008-10-16  14:40                98 segments_a4<br />
2008-10-16  14:40           268,174 _a0.fdt<br />
2008-10-16  14:40             2,600 _a0.fdx<br />
2008-10-16  14:40                37 _a0.fnm<br />
2008-10-16  14:40            20,990 _a0.frq<br />
2008-10-16  14:40             1,304 _a0.nrm<br />
2008-10-16  14:40            27,210 _a0.prx<br />
2008-10-16  14:40             1,281 _a0.tii<br />
2008-10-16  14:40           130,051 _a0.tis<br />
2008-10-16  14:40               356 _a1.fdt<br />
<span id="more-346"></span><br />
2008-10-16  14:40                 8 _a1.fdx<br />
2008-10-16  14:40                37 _a1.fnm<br />
2008-10-16  14:40                23 _a1.frq<br />
2008-10-16  14:40                 8 _a1.nrm<br />
2008-10-16  14:40                23 _a1.prx<br />
2008-10-16  14:40                35 _a1.tii<br />
2008-10-16  14:40               413 _a1.tis<br />
2008-10-16  14:40             1,362 _a2.fdt<br />
2008-10-16  14:40                 8 _a2.fdx<br />
2008-10-16  14:40                37 _a2.fnm<br />
2008-10-16  14:40                74 _a2.frq<br />
2008-10-16  14:40                 8 _a2.nrm<br />
2008-10-16  14:40                87 _a2.prx<br />
2008-10-16  14:40                35 _a2.tii<br />
2008-10-16  14:40             1,348 _a2.tis<br />
26 个文件        455,627 字节<br />
2 个目录 30,843,887,616 可用字节</p>
<p>E:\java\index</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">import java.io.*;</li>
<li>import org.apache.lucene.document.Document;</li>
<li>import org.apache.lucene.document.Field;</li>
<li>import org.apache.lucene.index.IndexWriter;</li>
<li>import org.apache.lucene.analysis.SimpleAnalyzer;</li>
<li>import org.apache.lucene.analysis.Analyzer;</li>
<li>public class Index</li>
<li>{</li>
<li>private MysqlConn Db = null;</li>
<li>//构造函数</li>
<li>public void Index()</li>
<li>{</li>
<li>}</li>
<li>//建立mysql连接</li>
<li>public void getConn( String conndsn )</li>
<li>{</li>
<li>this.Db = new MysqlConn();</li>
<li>this.Db.SetDsn( conndsn );</li>
<li>}</li>
<li>public static void main( String args[] )</li>
<li>{</li>
<li>Index index = new Index();</li>
<li>index.getConn( &quot;jdbc:mysql://localhost:3306/wp&quot; );</li>
<li>index.Db.SetUserPass( &quot;root&quot; , &quot;123456&quot; );</li>
<li>index.Db.Conn();</li>
<li>String sql = &quot;SELECT ID,post_title,post_content,guid FROM wp_posts ORDER BY ID DESC&quot;;</li>
<li>index.Db.sqlQuery( sql );</li>
<li>try</li>
<li>{</li>
<li>while( index.Db.rs.next() )</li>
<li>{</li>
<li>String ID = index.Db.rs.getString( &quot;ID&quot; );</li>
<li>String post_title = index.Db.rs.getString( &quot;post_title&quot; );</li>
<li>String post_content = index.Db.rs.getString( &quot;post_content&quot; );</li>
<li>String guid = index.Db.rs.getString( &quot;guid&quot; );</li>
<li>Document doc = new Document();</li>
<li>//注释1</li>
<li>Field f1 = new Field(&quot;ID&quot;,ID,Field.Store.YES,Field.Index.TOKENIZED);</li>
<li>Field f2 = new Field(&quot;post_title&quot;,post_title,Field.Store.YES,Field.Index.TOKENIZED);</li>
<li>Field f3 = new Field(&quot;post_content&quot;,post_content,Field.Store.YES,Field.Index.TOKENIZED);</li>
<li>Field f4 = new Field(&quot;guid&quot;,guid,Field.Store.YES,Field.Index.TOKENIZED);</li>
<li>doc.add( f1 );</li>
<li>doc.add( f2 );</li>
<li>doc.add( f3 );</li>
<li>doc.add( f4 );</li>
<li>System.out.println( ID );</li>
<li>try</li>
<li>{</li>
<li>IndexWriter writer = new IndexWriter( &quot;./index&quot; , new SimpleAnalyzer() );</li>
<li>writer.setUseCompoundFile(false);</li>
<li>writer.addDocument( doc );</li>
<li>writer.close();</li>
<li>}</li>
<li>catch (Exception e)</li>
<li>{</li>
<li>System.out.println(&quot;Error : &quot; + e.toString());</li>
<li>}</li>
<li>}</li>
<li>}</li>
<li>catch(Exception e)</li>
<li>{</li>
<li>System.out.println(&quot;Error : &quot; + e.toString());</li>
<li>}</li>
<li>&nbsp;</li>
<li>}</li>
<li>}</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/10/15/%e4%bd%bf%e7%94%a8lucene%e4%b8%bawordpress%e5%88%9b%e5%bb%ba%e7%b4%a2%e5%bc%95.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress奥运风格版正式上线！</title>
		<link>http://www.sunboyu.cn/2008/08/16/wordpress%e5%a5%a5%e8%bf%90%e9%a3%8e%e6%a0%bc%e7%89%88%e6%ad%a3%e5%bc%8f%e4%b8%8a%e7%ba%bf%ef%bc%81.shtml</link>
		<comments>http://www.sunboyu.cn/2008/08/16/wordpress%e5%a5%a5%e8%bf%90%e9%a3%8e%e6%a0%bc%e7%89%88%e6%ad%a3%e5%bc%8f%e4%b8%8a%e7%ba%bf%ef%bc%81.shtml#comments</comments>
		<pubDate>Sat, 16 Aug 2008 07:21:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术存档]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[奥运风格]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=281</guid>
		<description><![CDATA[经过一中午将近两个小时的努力，奥运风格终于上线！
]]></description>
			<content:encoded><![CDATA[<p>经过一中午将近两个小时的努力，奥运风格终于上线！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/08/16/wordpress%e5%a5%a5%e8%bf%90%e9%a3%8e%e6%a0%bc%e7%89%88%e6%ad%a3%e5%bc%8f%e4%b8%8a%e7%ba%bf%ef%bc%81.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress装修进行时</title>
		<link>http://www.sunboyu.cn/2008/06/12/wordpress%e8%a3%85%e4%bf%ae%e8%bf%9b%e8%a1%8c%e6%97%b6.shtml</link>
		<comments>http://www.sunboyu.cn/2008/06/12/wordpress%e8%a3%85%e4%bf%ae%e8%bf%9b%e8%a1%8c%e6%97%b6.shtml#comments</comments>
		<pubDate>Thu, 12 Jun 2008 04:51:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术存档]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[豆瓣]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=76</guid>
		<description><![CDATA[找了个老外的皮肤，简单汉化，修改结构后，开始我的wordpress装修之旅。
字体，皮肤样式，结构，都已经修改。
增加了好多交互性的功能，只是模板中增加，并没有做成插件。
比如增加了一些联系方式，豆瓣，其他api的东西。
学技术的人就是爱得瑟，继续寻找可装修的东西。
不过看到alex排名涨了，我很欣慰。
]]></description>
			<content:encoded><![CDATA[<p>找了个老外的皮肤，简单汉化，修改结构后，开始我的wordpress装修之旅。</p>
<p>字体，皮肤样式，结构，都已经修改。</p>
<p>增加了好多交互性的功能，只是模板中增加，并没有做成插件。</p>
<p>比如增加了一些联系方式，豆瓣，其他api的东西。</p>
<p>学技术的人就是爱得瑟，继续寻找可装修的东西。</p>
<p>不过看到alex排名涨了，我很欣慰。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/06/12/wordpress%e8%a3%85%e4%bf%ae%e8%bf%9b%e8%a1%8c%e6%97%b6.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx下WordPress的重写配置</title>
		<link>http://www.sunboyu.cn/2008/05/18/nginx%e4%b8%8bwordpress%e7%9a%84%e9%87%8d%e5%86%99%e9%85%8d%e7%bd%ae.shtml</link>
		<comments>http://www.sunboyu.cn/2008/05/18/nginx%e4%b8%8bwordpress%e7%9a%84%e9%87%8d%e5%86%99%e9%85%8d%e7%bd%ae.shtml#comments</comments>
		<pubDate>Sun, 18 May 2008 04:30:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[原创技术]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[重写]]></category>

		<guid isPermaLink="false">http://www.sunboyu.cn/?p=11</guid>
		<description><![CDATA[nginx居然不兼容apache的.htaccess文件,无奈在配置文件中修改.
server
{
listen  80;
location / {
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
server_name sunboyu.cn www.sunboyu.cn *.sunboyu.cn somecode.cn www.somecode.cn *.somecode.cn;
index   index.html index.htm index.php;
root    /***/;
access_log  /***/host.access.log;
}
这样即可
]]></description>
			<content:encoded><![CDATA[<p>nginx居然不兼容apache的.htaccess文件,无奈在配置文件中修改.</p>
<p>server<br />
{<br />
listen  80;</p>
<p>location / {<br />
if (!-f $request_filename){<br />
rewrite (.*) /index.php;<br />
}<br />
}</p>
<p>server_name sunboyu.cn www.sunboyu.cn *.sunboyu.cn somecode.cn www.somecode.cn *.somecode.cn;<br />
index   index.html index.htm index.php;<br />
root    /***/;<br />
access_log  /***/host.access.log;<br />
}</p>
<p>这样即可</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunboyu.cn/2008/05/18/nginx%e4%b8%8bwordpress%e7%9a%84%e9%87%8d%e5%86%99%e9%85%8d%e7%bd%ae.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.553 seconds -->
