<?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>花生's BLOG &#187; 技术</title>
	<atom:link href="http://www.huashengke.org/category/web-tech/feed" rel="self" type="application/rss+xml" />
	<link>http://www.huashengke.org</link>
	<description>花生 @ Weblog：Stay Hungry; Stay Foolish</description>
	<lastBuildDate>Sun, 11 Jul 2010 15:19:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>发布一个WP小插件</title>
		<link>http://www.huashengke.org/web-tech/fanpress.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=fanpress</link>
		<comments>http://www.huashengke.org/web-tech/fanpress.html#comments</comments>
		<pubDate>Thu, 12 Jun 2008 04:41:06 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[fanfou]]></category>
		<category><![CDATA[Plug-in]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/?p=185</guid>
		<description><![CDATA[偶然看到老外有人做了一个可以把发布的日志通知到Twitter的插件，发布新日志后会自动发一条消息到Twitter，包含日志的标题和链接，方便Twitter上的人看到。好像国内还是用饭否的人多些，至... ]]></description>
			<content:encoded><![CDATA[<p>偶然看到老外有人做了一个可以把发布的日志通知到<a href="http://twitter.com/" target="_blank">Twitter</a>的插件，发布新日志后会自动发一条消息到Twitter，包含日志的标题和链接，方便Twitter上的人看到。好像国内还是用<a href="http://fanfou.com" target="_blank">饭否</a>的人多些，至少我用的是饭否，没有Twitter的帐号，而好像没有类似功能通知到饭否的插件，于是就研究了 一下Twitter的插件，改成了饭否的:)</p>
<p>好了，插件的功能不用多说了，安装设置也很简单：</p>
<p>1. 下载解压之后会有一个fanpress的目录，将整个目录上传至/wp-content/plugins目录;<br />
2. 在WordPress的管理后台的插件界面激活此插件（fanpress）;<br />
3. WordPress的管理后台，在管理界面下的fanpress菜单下设定好你的饭否的用户名和密码；<br />
4、OK，enjoy it:)</p>
<p>发布到饭否的效果见图：<br />
<img class="alignnone size-full wp-image-188" title="fanfou-message" src="http://www.huashengke.org/wp-content/uploads/2008/06/fanfou-message.png" alt="" width="500" height="119" /></p>
<p>下载在<a href="http://www.huashengke.org/wp-content/uploads/2008/06/fanpress.rar">这里</a>，有问题可以留言，呵呵</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/fanpress.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress恢复手记</title>
		<link>http://www.huashengke.org/web-tech/wordpress-recovery.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-recovery</link>
		<comments>http://www.huashengke.org/web-tech/wordpress-recovery.html#comments</comments>
		<pubDate>Sat, 26 Apr 2008 06:16:22 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Plug-in]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/?p=152</guid>
		<description><![CDATA[前两天莫名其妙的不知道怎么回事，WordPress所有的留言就都看不到了，只能看到评论的人，看不到内容。但登录到后台就能看到留言，数据库也没什么问题。一开始怀疑是主题的原因，不过换... ]]></description>
			<content:encoded><![CDATA[<p>前两天莫名其妙的不知道怎么回事，WordPress所有的留言就都看不到了，只能看到评论的人，看不到内容。但登录到后台就能看到留言，数据库也没什么问题。一开始怀疑是主题的原因，不过换了几个主题问题也还是依旧，看了半天与评论相关的几个文件也没有什么异常，实在是没有头绪。今天一看又正好赶上2.5.1升级，于是一怒之下决定重建wordpress。</p>
<p>不过先得庆幸我用了<a title="Visit plugin homepage" href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a> 这个插件，而且我设置的是每天备份，备份数据自动发送到我的信箱里面……。重建过程还算顺利：先用phpmyadmin把数据库删掉，然后把wordpress所有的程序文件也都删了。之后重新上传2.5.1的文件；重新建了数据库，安装wordpress；这些都设置好之后再回到phpmyadmin，把之前wordpress database backup 自动备份的文件导入数据库，再回到wordpress的时候会提示数据库升级，确认然后几分钟之后就ok了。</p>
<p>重新打开blog，留言评论什么的终于正常了。不过为了保险起见，我用的是上周末的备份数据恢复的，所以可能有些浏览信息可能就没了，所幸这周忙的要命，没来得及写什么东西。这周的评论我是用在备份文件中找到然后手动插入的办法也算解决了……</p>
<p>看来WordPress数据每天备份还是很有必要的，强烈推荐<a title="Visit plugin homepage" href="http://www.ilfilosofo.com/blog/wp-db-backup">WordPress Database Backup</a> 插件……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/wordpress-recovery.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>解决Paged comments的冲突</title>
		<link>http://www.huashengke.org/web-tech/paged-comments-conflicts.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=paged-comments-conflicts</link>
		<comments>http://www.huashengke.org/web-tech/paged-comments-conflicts.html#comments</comments>
		<pubDate>Sat, 12 Apr 2008 11:09:24 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Plug-in]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/?p=143</guid>
		<description><![CDATA[Paged Comments是WordPress常用的一个评论插件，其作用是可以把留言本和日志的评论分页显示，免得留言多了还是长长的一页不利于浏览。插件的效果可以看我的留言本。其实我的BLOG的留言评论也... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.keyvan.net/code/paged-comments/" target="_blank">Paged Comments</a>是WordPress常用的一个评论插件，其作用是可以把留言本和日志的评论分页显示，免得留言多了还是长长的一页不利于浏览。插件的效果可以看<a href="http://www.huashengke.org/guestbook" target="_blank">我的留言本</a>。其实我的BLOG的留言评论也多不到哪儿去，不过因为我的留言本是用<a href="http://www.alleba.com/blog/2006/09/21/wordpress-guestbook-generator-plugin/" target="_blank">Guestbook Generator</a>生成的,而偏偏这个插件需要Paged Comments支持才成。</p>
<p>不过Paged Comments插件有个问题，其样式与主题日志的评论样式冲突，也就是说默认打开这个插件之后主题的评论样式就被覆盖了，变成了系统原来的评论样式，折腾了半天，解决的办法其实很简单：</p>
<p>Paged Comments插件没有在WP后台做选项设置，不过在插件目录下有一个配置文件，paged-comments-config.php。打开这个文件，第一个参数就是设置插件对页面还是日志起作用的，默认是True，就是都起作用，如果想保留日志的评论样式的话改为false即可，即：&#8221;<em>$paged_comments-&gt;all_posts = false</em>&#8220;；另外第三个参数&#8221;<em>$paged_comments-&gt;per_page = xx</em>&#8220;即是设置分页的评论数的，默认是15个评论分页。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/paged-comments-conflicts.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google Analytics for WordPress插件</title>
		<link>http://www.huashengke.org/web-tech/google-analytics-for-wordpress.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=google-analytics-for-wordpress</link>
		<comments>http://www.huashengke.org/web-tech/google-analytics-for-wordpress.html#comments</comments>
		<pubDate>Wed, 09 Apr 2008 03:22:39 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Plug-in]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/?p=139</guid>
		<description><![CDATA[之前一直用StatTraq插件做WP的统计分析，StatTraq插件的确是一个非常强大统计分析插件，不过最近整理空间的时候发现才做了不几个月的统计StatTraq在数据库中居然占用了10几M的空间，WordPress数据... ]]></description>
			<content:encoded><![CDATA[<p>之前一直用StatTraq插件做WP的统计分析，StatTraq插件的确是一个非常强大统计分析插件，不过最近整理空间的时候发现才做了不几个月的统计StatTraq在数据库中居然占用了10几M的空间，WordPress数据库基本上90%的空间都是这个插件占用的，于是决定忍痛去之……</p>
<p>然后找到了开源的统计<a href="http://piwik.org/" target="_blank">Piwik</a>，功能也很强大的样子，而且看上去界面做的很漂亮，不过折腾半天，安装的时候发现Piwik需要MySQL的几个组件，而我的空间上没有安装，于是只能放弃。转了一圈还是老老实实的回到了<a href="http://www.google.cn/analytics/zh-CN/#utm_source=zh_CN-ha-global-google&amp;utm_medium=ha&amp;utm_campaign=zh-CN" target="_blank">Google Analytics</a>上了，好在<a href="http://www.joostdevalk.nl/wordpress/google-analytics/" target="_blank">Google Analytics for WordPress</a>这个插件还不错，可以很方便的插入Google Analytics, 然后还可以跟踪分析导出链接，跟踪下载, 跟踪Adsense点击，跟踪图像搜索关键词和跟踪附加的搜索信息……</p>
<p>插件的安装没什么特别的，安装之后在插件管理里面就能看到多了一个“Google Analytics”，进去之后设置好Analytics的帐户就可以了，这个帐户名就是Google Analytics插入代码里面的那个&#8221;UA-xxx&#8221;字段。</p>
<p>除了附加的一些功能之外，其实这个插件最大的好处就是免去了手动在header里面插入Google Analytics代码的麻烦，换主题什么的方便些了……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/google-analytics-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>加了一个自己的网络相册</title>
		<link>http://www.huashengke.org/web-tech/mygallery.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mygallery</link>
		<comments>http://www.huashengke.org/web-tech/mygallery.html#comments</comments>
		<pubDate>Tue, 08 Apr 2008 05:54:30 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[4images]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/?p=138</guid>
		<description><![CDATA[在这个空间除了WordPress BLOG之外我又先后用MediaWiki搭了一个准备做知识管理的WIKI，用Gregarius做了一个RSS聚合阅读器，然后现在又加了一个个人的网络相册。 跟BLOG类似，我的网络相册也是几经折... ]]></description>
			<content:encoded><![CDATA[<p>在这个空间除了<a href="http://www.wordpress.org" target="_blank">WordPress</a> BLOG之外我又先后用MediaWiki搭了一个准备做知识管理的<a title="花生's WIKI" href="http://wiki.huashengke.org" target="_blank">WIKI</a>，用<a class="liexternal" href="http://gregarius.net/" target="_blank">Gregarius</a>做了一个<a title="花生's RSS" href="http://rss.huashengke.org" target="_blank">RSS聚合</a>阅读器，然后现在又加了一个个人的<a href="http://www.huashengke.org/gallery/index.php" target="_blank">网络相册</a>。</p>
<p>跟BLOG类似，我的网络相册也是几经折腾，最开始是用大名鼎鼎的<a href="http://flickr.com" target="_blank">Flickr</a>，后来<a href="http://flickr.com" target="_blank">Flickr</a>莫名其妙的撞墙了，虽然用Firefox加<a href="https://addons.mozilla.org/en-US/firefox/addon/4286" target="_blank">Access Flickr!</a>插件可以爬墙，不过毕竟不太方便。后来转到国内学<a href="http://flickr.com" target="_blank">Flickr</a>学的最像的<a href="http://www.yupoo.com/" target="_blank">Yupoo</a>，不过<a href="http://www.yupoo.com/" target="_blank">Yupoo</a>慢的要死，最近又莫名其妙的动不动就没有通过审查，于是索性自己搭一个自己的相册算了，反正空间还有地方。</p>
<p>相册用的是<a href="http://www.4homepages.de" target="_blank">4images</a>，是一个德国的开源PHP+MySQL相册程序，功能也很强大。安装过程比较简单，从官方网站下载最新的1.7.6程序，解压上传，新建一个MySQL数据库。然后在浏览器下到4images目录，自动就会开始安装，设定好数据库的名字、主机、用户名、密码、管理员信箱就ok了。<a title="花生's 图片库" href="http://www.huashengke.org/gallery/" target="_blank">点击进入我的4images相册</a>，呵呵，可以注册试用看看:)</p>
<p>Tips：</p>
<ol>
<li>程序默认是德文，安装时先在右上角选英文或者在上传前之间将lang目录下的德文删掉，然后安装完成进入控制面板的setting里面将语言设成英语；</li>
<li>Administrator用户登录后，底部有一个链接，才是进行管理界面的链接，各种管理功能还是很方便的；</li>
<li>默认4images首页只显示一行图片，images设定的rows好像不起作用，需要到index.php里面找到“ $num_new_images = $config['image_cells'];”，然后新增加一行 $num_new_images = xx;</li>
<li>4images默认的界面比较丑，不过网上有很多模板，其<a href="http://www.4homepages.de/forum/index.php" target="_blank">论坛</a>里面也有一些。附上一些我找到模板：</li>
</ol>
<p> </p>
<p>4images的一些模板资源：</p>
<p><strong>4images Templates by Rustynet:</strong><br />
<a href="http://www.rustynet.de/" target="_blank">http://www.rustynet.de/</a></p>
<p><strong>Bali Web Design:</strong><br />
<a href="http://www.vierstra.com/4images.htm" target="_blank">http://www.vierstra.com/4images.htm</a><br />
<a href="http://www.vierstra.com/4images2.htm" target="_blank">http://www.vierstra.com/4images2.htm</a><br />
<a href="http://www.vierstra.com/4images3.htm" target="_blank">http://www.vierstra.com/4images3.htm</a><br />
<a href="http://www.vierstra.com/4images_templates.htm" target="_blank">http://www.vierstra.com/4images_templates.htm</a><br />
<a href="http://www.vierstra.com/4images_templates_2.htm" target="_blank">http://www.vierstra.com/4images_templates_2.htm</a><br />
<a href="http://www.vierstra.com/4templates.htm" target="_blank">http://www.vierstra.com/4templates.htm</a></p>
<p><strong>4images Templates by kw:</strong><br />
<a href="http://4images.malediven-bilder.de/index.php" target="_blank">http://4images.malediven-bilder.de/index.php</a></p>
<p><strong>Dezina 4images Templates:</strong><br />
<a href="http://www.dezina.co.uk/modules.php?name=Gallery&amp;file=categories&amp;cat_id=4" target="_blank">http://www.dezina.co.uk/modules.php?name=Gallery&amp;file=categories&amp;cat_id=4</a></p>
<p><strong>7dana 4i Templates:</strong><br />
<a href="http://www.7dana.com/download/pafiledb.php?action=file&amp;id=43" target="_blank">http://www.7dana.com/download/pafiledb.php?action=file&amp;id=43</a></p>
<p><strong>Art4Heart &#8211; Free to download Templates:</strong><br />
<a href="http://www.art4heart.info/testgallery/categories.php?cat_id=2" target="_blank">http://www.art4heart.info/testgallery/categories.php?cat_id=2</a></p>
<p><strong>Begoodbe 4images Templates:</strong><br />
<a href="http://www.begoodbe.com/webmaster/4images_template/begoodbe.html" target="_blank">http://www.begoodbe.com/webmaster/4images_template/begoodbe.html</a></p>
<p><strong>Mantradream 4images Templates</strong><br />
<a href="http://www.mantradream.com/dreamdesign/catpage.php?cat_id=1" target="_blank">http://www.mantradream.com/dreamdesign/catpage.php?cat_id=1</a></p>
<p><strong>DenoixDesign</strong><br />
<a href="http://www.deonixdesign.com/index.php?action=browser&amp;catid=20" target="_blank">http://www.deonixdesign.com/index.php?action=browser&amp;catid=20</a></p>
<p><strong>templates.decopix.de &#8211; free 4images templates</strong><br />
<a href="http://templates.decopix.de/" target="_blank">http://templates.decopix.de/</a></p>
<p><strong>manurom&#8217;s 4images templates</strong><br />
<a href="http://templates.ami07.info/" target="_blank">http://templates.ami07.info/</a></p>
<p><strong>OS Designer 4images Templates</strong><br />
<a href="http://www.osdesigner.net/category/4images-templates/" target="_blank">http://www.osdesigner.net/category/4images-templates/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/mygallery.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>升级WordPress2.5</title>
		<link>http://www.huashengke.org/web-tech/wordpress25.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress25</link>
		<comments>http://www.huashengke.org/web-tech/wordpress25.html#comments</comments>
		<pubDate>Mon, 31 Mar 2008 08:07:38 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/?p=129</guid>
		<description><![CDATA[前两天刚看到WordPress 2.5 RC1发布，今天上来发现WordPress2.5居然正式发布了，于是一没忍住就折腾着升级到了2.5: 升级过程很顺利，把数据备份了一下，禁用所有插件，上传覆盖相关文件，运行了... ]]></description>
			<content:encoded><![CDATA[<p>前两天刚看到WordPress 2.5 RC1发布，今天上来发现WordPress2.5居然正式发布了，于是一没忍住就折腾着升级到了2.5:</p>
<ol>
<li>升级过程很顺利，把数据备份了一下，禁用所有插件，上传覆盖相关文件，运行了一下update，然后再进入控制台已经是新版的后台界面了；</li>
<li>进入后台之后，首先是管理界面的首页更简洁更方便了，新加了一个外部链接的功能，可以根据Google Blog Search来查找到有多少外部链接；</li>
<li>好像我所用的所有的插件都没发现兼容性问题，看官方文档说<a href="http://www.herewithme.fr/wordpress-plugins/simple-tags" target="_blank">Simple Tags</a>有个问题，需要<a href="http://code.google.com/p/simple-tags/issues/detail?id=13&amp;can=1" target="_blank">更改代码</a>才能在WordPress 2.5下使用，但我没遇到，好像没什么问题；</li>
<li>如大家所言，新版本主要是管理后台变化比较大，我还比较喜欢：界面美观了很多；组织结构也更简洁了，把功能划分成撰写、管理、设计、评论4大块；</li>
<li>WordPress 2.5的撰写界面做了一些改进：可以很方便的增加各种媒体文件了；日志写完标题之后就会自动在标题下面生成一个永久链接，编辑更方便了，不用像以前那样去编辑smug了；</li>
<li>WordPress 2.5的插件可以自动更新了，这个也是很方便的一些改进；</li>
</ol>
<p>另外，升级WordPress的时候发现了一个比较有用的插件，<a href="http://www.zirona.com/software/wordpress-instant-upgrade/" target="_blank">InstantUpgrade</a>，可以自动的升级WordPress程序，插件enble之后在设置里面设好FTP的用户名密码和WordPress程序路径就可以了，这样比用FTP上传方便了许多……</p>
<p>嗯，WordPress 2.5还不错。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/wordpress25.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>搭建自己的RSS聚合器</title>
		<link>http://www.huashengke.org/web-tech/rss-gregarius.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss-gregarius</link>
		<comments>http://www.huashengke.org/web-tech/rss-gregarius.html#comments</comments>
		<pubDate>Wed, 12 Mar 2008 16:36:26 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/tech/opensoftware/rss-gregarius.html</guid>
		<description><![CDATA[开始的时候一直用Bloglines来做RSS订阅，后来Bloglines越来越不好用了，就转到了Google Reader，Google Reader做的也还不错，还算方便。 前段时间曾看到有人在自己的BLOG里面集成了一个自己的RSS聚合，... ]]></description>
			<content:encoded><![CDATA[<p>开始的时候一直用Bloglines来做RSS订阅，后来Bloglines越来越不好用了，就<a href="http://www.huashengke.org/websurf/rssreader.html" target="_blank">转到了Google Reader</a>，Google Reader做的也还不错，还算方便。</p>
<p>前段时间曾看到有人在自己的BLOG里面集成了一个自己的RSS聚合，觉得不错，不过没弄明白是怎么做的。昨天才无意中看到了<a href="http://gregarius.net/" target="_blank">Gregarius</a>，这个开源的RSS聚合程序。于是我也在BLOG里面搭了这个<a href="http://rss.huashengke.org/" target="_blank">我的RSS订阅</a>，呵呵。过程很简单，从官网<a href="http://downloads.sourceforge.net/gregarius/gregarius-0.5.4.zip?modtime=1147719769&amp;big_mirror=0" target="_blank">下载</a>程序，解压后编辑dbinit.php.sample成dbinit.php，设好数据库的名称，用户名，密码，传到空间上去。然后把从Google Reader导出的RSS列表导入<a href="http://rss.huashengke.org/" target="_blank">Gregarius</a>就是了。不过导入的时候出了n次“2006 mysql server has gone away”错误，逼得我不得不一点一点的分段导入。</p>
<p>呵呵，到现在，这个个人站点基本上算是弄好了：</p>
<ol>
<li>用WordPress做个人日志<a href="http://www.huashengke.org/" target="_blank">BLOG</a>；</li>
<li>用<a href="http://www.huashengke.org/tech/mediawiki.html" target="_blank">MediaWIKI</a>做<a href="http://wiki.huashengke.org/" target="_blank">个人知识收集和管理</a>；</li>
<li>用Gregarius做<a href="http://rss.huashengke.org/" target="_blank">个人的RSS订阅</a>聚合；</li>
<li>最后还比较无聊的把<a href="http://fanfou.com/" target="_blank">饭否</a>的迷你博客也<a href="http://www.huashengke.org/doing" target="_blank">集成进来</a>，无聊的时候发点只言片语打P:)。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/rss-gregarius.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MediaWiki URL静态化</title>
		<link>http://www.huashengke.org/web-tech/mediawiki-url.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mediawiki-url</link>
		<comments>http://www.huashengke.org/web-tech/mediawiki-url.html#comments</comments>
		<pubDate>Sun, 27 Jan 2008 16:17:46 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/tech/web/mediawiki-url.html</guid>
		<description><![CDATA[MediaWiki 的默认链接是动态链接，格式类似于index.php?title=xxxxx，不太好看，据说也很不利于SEO。Allwiki提供了几种方法都是修改Apache的配置文件，这对于虚拟空间来说显然有点不太现实，于是Google... ]]></description>
			<content:encoded><![CDATA[<p>MediaWiki 的默认链接是动态链接，格式类似于index.php?title=xxxxx，不太好看，据说也很不利于SEO。<a href="http://www.allwiki.com" target="_blank">Allwiki</a>提供了几种方法都是修改Apache的配置文件，这对于虚拟空间来说显然有点不太现实，于是Google到了另外一种方法，配置.htaccess文件：</p>
<p>在 .htaccess 中添加以下规则<br />
RewriteEngine on<br />
RewriteRule show/(.+) /pathtoWiki/index.php?title=$1<br />
然后修改LocalSettings.php 中 $wgArticlePath 的值$wgArticlePath = &#8220;$wgScriptPath/show/$1&#8243;;</p>
<p>好像还有一种效率更高的方法，用&#8221;ForceType application/x-httpd-php&#8221;，不过在尝试的时候Mediawiki出了&#8221;PHP 5.0.x is buggy on your 64-bit system; you must upgrade to PHP 5.1.x or higher&#8230;&#8221; 错误，暂时不折腾了，先这样用着吧。</p>
<p>简单尝试了一下搭建的WIKI系统，可能Wiki的优势还是在于多人的编辑和共享，作为知识管理系统还是有一些不太方便的地方：</p>
<p>1.所见即所得编辑功能太弱：虽然现在medidawiki有一些扩展如<a href="http://www.fckeditor.net/" target="_blank">FCKediotr</a>，<a href="http://tinymce.moxiecode.com/" target="_blank">TinyMCE</a>，FCKeditor甚至还专门为mediawiki启动了一个<a href="http://mediawiki.fckeditor.net/index.php/Main_Page" target="_blank">Project</a>，但可用性不高；Wiki的语法虽然不复杂，但不能所见即所得的编辑还是提高了WIKI用户贡献内容的门槛；</p>
<p>2.文章的收集不方便：其实跟1是类似的问题，如果想收集一篇文章的话，基本上想简单的ctrl+c/v是不行的，必须要进行一些格式的编辑和调整，无形之中降低了效率；</p>
<p>3.条目的后续编辑智能程度弱：对已有的条目，如果改变了这个条目的名字的话，则所有这个条目的链接都会变成无效了，需要手动重新编辑，也是很大的不方便；</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/mediawiki-url.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WIKI进展</title>
		<link>http://www.huashengke.org/web-tech/mediawiki.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mediawiki</link>
		<comments>http://www.huashengke.org/web-tech/mediawiki.html#comments</comments>
		<pubDate>Thu, 17 Jan 2008 16:18:12 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/tech/mediawiki.html</guid>
		<description><![CDATA[Wiki站 整个架构算是基本搭建好了，整体的结构基本上就这样了，不会做大的改动了，剩下的就是维护使用，添加内容了。之前一直用Firefox的scrapbook插件做信息的收集工作，使用起来倒是非常... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.huashengke.org" target="_blank">Wiki站 </a>整个架构算是基本搭建好了，整体的结构基本上就这样了，不会做大的改动了，剩下的就是维护使用，添加内容了。之前一直用Firefox的scrapbook插件做信息的收集工作，使用起来倒是非常方便快捷，看到合适的内容，右键获取就可以了。不过慢慢积累多了发现scrapbook收集的东西的后续整理是一件非常头疼的事情，我现在scrapbook的文件夹有400多M，很多东西都是放在那儿没有消化整理，所以这次尝试用wiki来做个人的知识管理系统，看看是不是会好一些。另外也想看看个人wiki的运作情况如何。 简单看了一下现在流行的wiki系统，最后选的是mediawiki，使用最广，安装设置都非常简单，只是速度稍有些慢。</p>
<p>Wiki以及Mediawiki的一些常用资源：</p>
<p>1. <a href="http://www.allwiki.com" target="_blank">天下维客 </a>:  一个开放的电脑知识网站，同时也是一个Wiki的推广站的，包括诸如<a href="http://www.allwiki.com/wiki/Mediawiki%E7%AE%80%E6%98%8E%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B" target="_blank">Mediawiki简明安装教程</a>，<a href="http://www.allwiki.com/wiki/Mediawiki%E7%AE%80%E6%98%8E%E8%AE%BE%E7%BD%AE%E6%95%99%E7%A8%8B" target="_blank">Mediawiki简明设置教程</a>，<a href="http://www.allwiki.com/wiki/Mediawiki%E7%AE%80%E6%98%8E%E7%BC%96%E8%BE%91%E6%95%99%E7%A8%8B" target="_blank">Mediawiki简明编辑教程</a>和<a href="http://www.allwiki.com/wiki/Mediawiki" target="_blank">Mediawiki汉化版下载</a>等很多Mediawiki的教程指导；</p>
<p>2. <a href="http://www.cnic.org" target="_blank">网络天书</a>: 国内很早的Wiki站点，提供一个叫<a href="http://www.cnic.org/wiki/Wikichina%E6%9C%8D%E5%8A%A1" target="_blank">WikiChina</a>的服务，来推广Wiki站点，包括一份<a href="http://www.cnic.org/wiki/%E7%BB%B4%E5%AE%A2%E7%AB%99%E7%82%B9%E5%A4%A7%E5%85%A8" target="_blank">Wiki站点大全</a></p>
<p>3. <a href="http://wiki.huashengke.org/index.php?title=Wiki%E7%9B%B8%E5%85%B3" target="_blank">花生&#8217;s Wiki</a>: 呵呵，我的Wiki虽然刚刚建立，对于WIKI也还在慢慢学习中，不过也会逐渐收集整理一些Wiki的资料，打算整理一份Wiki编辑一分钟上手指南，便于新手入门；另外也收集了一些<a href="http://wiki.huashengke.org/index.php?title=MediaWiki%E7%BC%96%E8%BE%91Tips" target="_blank">mediawiki设置编辑的Tips</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/mediawiki.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress搭建Step by Step</title>
		<link>http://www.huashengke.org/web-tech/wordpress-setup-step-by-step.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-setup-step-by-step</link>
		<comments>http://www.huashengke.org/web-tech/wordpress-setup-step-by-step.html#comments</comments>
		<pubDate>Sun, 06 Jan 2008 09:03:30 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/2008/01/06/wordpress%e6%90%ad%e5%bb%bastep-by-step/</guid>
		<description><![CDATA[这个BLOG从元旦前买了域名和空间，然后前天开始折腾WordPress，折腾了大半天，这两天又做了一些调整，虽然还有些小问题，不过基本上也就这样了，不想在这上面花太多的精力。于是记录一下... ]]></description>
			<content:encoded><![CDATA[<p>这个BLOG从元旦前买了域名和空间，然后前天开始折腾WordPress，折腾了大半天，这两天又做了一些调整，虽然还有些小问题，不过基本上也就这样了，不想在这上面花太多的精力。于是记录一下这个过程吧，其实也说不上是Step by Step。</p>
<p>1.域名和空间</p>
<p>域名国内可以在新网和万网买，不过域名猫腻也不少，我对他们也不信任，所以我是在<a href="http://www.godaddy.com" target="_blank">Godaddy</a>买的，网上有很多它的coupon code，我找了一个$6.95的，顺便买了两个还不错的商业域名，备用。不过在<a href="http://www.godaddy.com" target="_blank">Godaddy</a>买域名如果不用他们的空间的话在设DNS的时候要注意要选customer NS，然后可以用一些免费的DNS来解析，我是用的<a href="http://www.dnspod.net" target="_blank">DNSPOD</a>。用<a href="http://www.godaddy.com" target="_blank">Godaddy</a>默认的DNS服务在国内解析有问题，最开始就是因为这个折腾了半天，不过<a href="http://www.godaddy.com" target="_blank">Godaddy</a>的客服还不错，响应很及时，即便是在元旦holiday的时候:)</p>
<p>空间就更好说了，n多的虚拟主机提供商，我用的是<a href="http://www.meyu.net/" target="_blank">meyu</a>的空间，100M空间，15G/月的流量，速度也还说的过去，不过不支持SSH，FTP也很慢。</p>
<p>2. WordPress</p>
<p>安装倒是很简单，从官方下载最新的程序，传到空间上，建好数据库，然后install做一些设置，OK，BLOG就搞定了。然后就是最主要的主题和插件了，其实基本上都是一直在折腾这两个东西。主题找来找去，试来试去，折腾了n个，最后决定的就是现在这个<a href="http://www.letsmint.com/downloads/" target="_blank">Lorem Ipsum</a> 主题了。因为大部分主题都是英文的，要用来显示中文的话基本上都需要做一些改动：</p>
<ul>
<li>原主题带GOOGLE 广告，我不喜欢，去掉了，打开PHP文件，找到相应的部分，删掉即可；</li>
<li>在CSS里面把显示字体改大了，原来的设置可能对英文合适，对中文来说就太小了，看着累；</li>
<li>把一些主要的提示信息，显示什么的，都相应的改成了中文；</li>
<li>不喜欢原来的留言板，用Guesbook Generator插件生成现在的留言；</li>
<li>替换了存档的模板，现在的模板是<a href="http://blog.2i2j.com/" target="_blank">偶爱偶家</a>作者的模板，觉得还不错；</li>
<li>不记得了……</li>
</ul>
<p>插件也折腾了n久，同样了试了n多插件，折腾过的插件：</p>
<ul>
<li><a title="访问插件主页" href="http://yanfeng.org/blog/wordpress/kit" target="_blank">中文 WordPress 工具箱</a>：<cite><a title="访问作者主页" href="http://yanfeng.org/blog">桑葚</a></cite>这个几乎是中文WordPress必装的一个插件了，优化WordPess对中文的显示什么的；</li>
<li><a title="访问插件主页" href="http://akismet.com/" target="_blank">Akismet</a>：WordPress自带的防spam插件；</li>
<li><a title="访问插件主页" href="http://www.chroder.com/archives/2005/12/28/wordpress-plugin-inline-collapsible-more-link/" target="_blank"><span style="text-decoration: line-through;">Collapsible More Link</span></a>：可以把长文章折叠的插件，后来觉得不是很方便，还是用more了；</li>
<li><span style="text-decoration: line-through;"><a title="访问插件主页" href="http://www.sonsofskadi.net/extended-live-archive/">Extended Live Archives</a></span>：生成按年月的文章归档，现在没用这个插件；</li>
<li><a title="访问插件主页" href="http://www.coolcode.cn/?p=26">CoolCode</a>：便于在文章中格式化代码；</li>
<li><a title="访问插件主页" href="http://cavemonkey50.com/code/full-feed/">Full Text Feed</a>：Feed全文输出插件；</li>
<li><a title="访问插件主页" href="http://www.arnebrachhold.de/redir/sitemap-home/">Google XML Sitemaps</a>：生产Google的Sitemap；</li>
<li><a title="访问插件主页" href="http://www.alleba.com/blog/2006/09/21/wordpress-guestbook-generator-plugin/">Guestbook Generator</a>：就是现在的Guestbook；</li>
<li><a title="访问插件主页" href="http://vapourtrails.ca/wp-keywords">Jerome&#8217;s Keywords</a>：Tag插件</li>
<li><a title="访问插件主页" href="http://www.randypeterman.com/StatTraq/">StatTraq</a>：BLOG的访问统计，一开始有乱码，修改MySQL的编码格式为UTF后解决，然后在IE下面有一个BUG，<a href="http://www.huashengke.org/2008/01/05/stattraq%E5%9C%A8ie%E4%B8%8B%E7%9A%84%E4%B8%80%E4%B8%AAbug/" target="_blank">自己试着解决了</a>；</li>
<li><a title="访问插件主页" href="http://wordpress.org/extend/plugins/simple-tags">Simple Tags</a>：Tag插件</li>
<li><a title="访问插件主页" href="http://www.rene-ade.de/inhalte/wordpress-plugin-relatedposts.html" target="_blank">Related Posts</a>：相关文章插件，好像有点问题，显示的文章不算相关；</li>
<li><a title="访问插件主页" href="http://mtdewvirus.com/code/wordpress-plugins/">Recent Posts</a>：最新文章插件；</li>
<li><a title="访问插件主页" href="http://mtdewvirus.com/code/wordpress-plugins/" target="_blank">Recent Comments</a>：最新评论插件；</li>
<li><a title="访问插件主页" href="http://wordpress.org/extend/plugins/random-redirect/" target="_blank">Random Redirect</a>：文章后面显示的随机文章，格式有点问题，懒得折腾了；</li>
<li><a title="访问插件主页" href="http://yanfeng.org/blog/index.php?p=373" target="_blank">Random Posts for Chinese</a>：侧边栏的随机文章，好像这个插件会把页面也做为文章随机显示，另外没有标题，我用一个txt的widgets解决了；</li>
<li><span style="text-decoration: line-through;"><a title="访问插件主页" href="http://familypress.net/photopress/" target="_blank">Photopress</a></span>：好像是图片相关的，也没有使用；</li>
<li><a title="访问插件主页" href="http://www.keyvan.net/code/paged-comments/" target="_blank">Paged Comments</a>：这个装了，不知道效果怎么样；</li>
<li><a title="访问插件主页" href="http://wiki.creativecommons.org/WpLicense" target="_blank">wpLicense</a>：就是页面最下面的这个license标记；</li>
<li><a title="访问插件主页" href="http://mnm.uib.es/gallir/wp-cache-2/" target="_blank">wp-cache</a>：WP cache，据说可以加快访问速度；</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/wordpress-setup-step-by-step.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress的时间函数和参数</title>
		<link>http://www.huashengke.org/web-tech/wordpress-timefunction.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-timefunction</link>
		<comments>http://www.huashengke.org/web-tech/wordpress-timefunction.html#comments</comments>
		<pubDate>Sat, 05 Jan 2008 05:31:37 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/2008/01/05/wordpress%e7%9a%84%e6%97%b6%e9%97%b4%e5%87%bd%e6%95%b0%e5%92%8c%e5%8f%82%e6%95%b0/</guid>
		<description><![CDATA[因为原本的模板是英文的，很多小地方都需要做一些改动调整，比如时间显示。顺手查了一下WordPress的时间函数，以及调用的时候的时间参数： 所谓时间参数，是WordPress应用时间函数时所调用... ]]></description>
			<content:encoded><![CDATA[<p>因为原本的模板是英文的，很多小地方都需要做一些改动调整，比如时间显示。顺手查了一下WordPress的时间函数，以及调用的时候的时间参数：</p>
<p>所谓时间参数，是WordPress应用时间函数时所调用的参数，基于WordPress的博客平台通常会在文章的标题处调用时间函数来显示文章的发表时间。</p>
<p>* 文章的时间函数为：&lt;?php the_time() ?&gt;<br />
* 评论的时间函数为： &lt;?php comment_date() ?&gt;<br />
* 评论的日期函数为：&lt;?php comment_time() ?&gt;</p>
<p>一个典型的时间函数实例为以下代码:</p>
<p>&lt;?php the_time(’F jS, Y’) ?&gt;</p>
<p>在这里，单引号内的代码即为时间参数:</p>
<p>WordPress的全部时间参数及显示效果：</p>
<p>* a代表小写的英语的上下午，如am、pm<br />
* A代表大写的英语的上下午，如AM、PM<br />
* d代表英语的日期（小于10仍为两位数写法），如05、12<br />
* D代表中文的星期，如五、七<br />
* F代表中文的月份（包括“月”这个字），如五月、十二月<br />
* g代表英语的小时（小于10为一位数写法），如5、12<br />
* G代表英语的小时（小于10仍为两位数写法），如05、12<br />
* h代表英语的分钟（小于10为一位数写法），如5、12<br />
* H代表英语的分钟（小于10仍为两位数写法），如05、12<br />
* j代表英语的日期（小于10为一位数写法），如05、12<br />
* l代表中文的星期（包括“星期”这两个字），如星期五、星期七<br />
* m代表英语的月份（小于10仍为两位数写法），如05、12<br />
* M代表英语的月份（以单词的形式显示），如Jun<br />
* n代表英语的月份（小于10为一位数写法），如5、12<br />
* O代表英语的时区，如+0800<br />
* r代表完整的日期时间，如Tue, 06 Jun 2006 18:37:11 +0800<br />
* S代表日期的序数后缀，如st、th<br />
* T代表英语的时区（以单词的形式显示），如CST<br />
* w代表英语的星期，如5、7<br />
* W代表周数，如23<br />
* y代表两位数年份，如07、08<br />
* Y代表四位数年份，如2007、2008<br />
* z代表天数，如156</p>
<p>原来模板的发布时间是英文格式，要改成现在这样的中文格式，在模板的Single.php 和Index.php里面相应的把&lt;?php the_time(&#8216;M jS, Y&#8217;) ?&gt; 替换为&lt;?php the_time(Y年n月d日) ?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/wordpress-timefunction.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stattraq在IE下的一个BUG</title>
		<link>http://www.huashengke.org/web-tech/stattraq-bug-ie.html#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=stattraq-bug-ie</link>
		<comments>http://www.huashengke.org/web-tech/stattraq-bug-ie.html#comments</comments>
		<pubDate>Sat, 05 Jan 2008 04:21:15 +0000</pubDate>
		<dc:creator>花生</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.huashengke.org/2008/01/05/stattraq%e5%9c%a8ie%e4%b8%8b%e7%9a%84%e4%b8%80%e4%b8%aabug/</guid>
		<description><![CDATA[装了Stattraq插件，在Firefox下面没有任何问题，但用IE7打开，在页面最下角有一个Error： &#8220;Fatal error: Function name must be a string in &#8230;/wp-content/plugins/stattraq.php on line 90&#8243; Google了一下也没找到... ]]></description>
			<content:encoded><![CDATA[<p>装了Stattraq插件，在Firefox下面没有任何问题，但用IE7打开，在页面最下角有一个Error：</p>
<p>&#8220;Fatal error: Function name must be a string in &#8230;/wp-content/plugins/stattraq.php on line 90&#8243;</p>
<p>Google了一下也没找到问题所在，索性打开报错的文件看了一下，发现应该是作者的一个Typo，一个小bug：</p>
<p>stattraq.php Line90:</p>
<p>else if($strpos($ua, &#8216;MSIE 2&#8242;) !== false)<br />
$ver = 2;</p>
<p>虽然不懂PHP，不过显然<strong>strpos</strong>应该是个系统函数，<span style="color: #ff0000;">$</span>估计是作者打错了，去掉<span style="color: #ff0000;">$</span>，问题消失。</p>
<p>本想跟作者反馈一下，发现作者的主页访问不了……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.huashengke.org/web-tech/stattraq-bug-ie.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
