<?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"
	>

<channel>
	<title>catch the digital flow｜北极冰仔部落格</title>
	<atom:link href="http://hellobmw.com/feed" rel="self" type="application/rss+xml" />
	<link>http://hellobmw.com</link>
	<description>饿时掉馅饼，睡时掉老婆</description>
	<pubDate>Tue, 06 May 2008 01:12:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>你走吧（转自武大珞珈山水BBS站）</title>
		<link>http://hellobmw.com/archives/ni-zou-ba.html</link>
		<comments>http://hellobmw.com/archives/ni-zou-ba.html#comments</comments>
		<pubDate>Tue, 06 May 2008 00:48:52 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[Living]]></category>

		<category><![CDATA[Love]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1045</guid>
		<description><![CDATA[<p>发信人: lincrydog (狗儿☆醉圣K寺之K小可~谁将流年偷换), 信区: Love<br />
标  题: 你走吧<br />
发信站: 珞珈山水BBS站 (Sun May  4 13:03:37 2008), 转信</p>
<p>你还是要走了。</p>
<p>你说你曾经很爱过她，我说我也曾经不爱过或者很爱过某一些他。但是命运终于把我们捆绑在一起。从认识你，到相识，到熟悉，再到分离，再次相见，再到恋爱，争吵，分手，再和好，温暖，现在，你的离开。这其间，我见过很多人，坐下，交流，微笑，或者哭泣，然后起身离开，抬头看看远方，真的，居然又见到了你的脸。于是，这一次，我相信缘份。好像一条长长的过山车，在黝黑的地洞里，我握着你的手，看不到未来，也无法回望过去，只能随着呼啸的列车飞驰而去。有露水从洞顶滴下，我无法躲避，淌在我的脸颊上，不知道是因为喜悦还是悲伤而流泪。</p>
<p>终于你就要走了。就像故事里说。我终于还只是一个灰姑娘，十二点响起。我拖着我的土布灰裙子狼狈而逃。这一次，你没有追我，你只是微笑的说。5年，等我5年。你还是我的公主。</p>
<p>你走吧。等待5年，大概是你我唯一的选择。</p>
<p>一直都觉得自己需要很多很多的爱，因为一直都缺乏很多很多的爱，于是把每一次的暧昧都当作真爱，以为自己会头脑盲目的一股脑扎进去，却终于发现自己一直都置身事外，因为害怕爱，害怕被爱，害怕付出爱。</p>
<p>就好像有的时候。一出生的时候。有一些注定要爱你疼你呵护你的人，而你也认定会被他们疼爱的人，到头来，其实只是一个幻觉。最后发现可以爱可以依靠的人其实是自己。而终于有一天。希望可以依靠一个人的时候。觉得可以依靠的时候。发现自己实际上缺乏的就是依靠一个人的能力。如果最后还是一个人呢，大概是被打回原形吧。</p>
<p>朋友一直在告诫说，5年的分别，所有的感情都将归于平淡，爱情终究敌不过时间和距离。</p>
<p>就好像一直努力在日落前向山顶爬，然后终于在最后一秒钟又狠狠跌到山底。如果结局会是这样。还需要一直的努力爬么。。。</p>
<p>可你说，你相信我么？</p>
<p>而我终于点点头。</p>
<p>我等你。5年为期。</p>
<p>如若我们赢了时间，我今生将是你的唯一，陪你不离不弃，一辈子终身相守，爱你将是我最大的信仰，如若我们终究敌不过距离，这将是我最后一次相信爱情，最后一次用毕生的精力来景仰和期待很多很多的爱。</p>
<p>因为，爱。</p>
<p>因为，你。</p>
<p>因为，爱你。</p>
<p>你走吧。</p>
<p>记得回来。</p>
<p>（<a href="http://bbs.whu.edu.cn/bbscon.php?board=Love&#038;id=1102940191" class="external">原文链接</a>）</p>
<div class="entry-related"><h3>Related Posts</h3><ul></li>No Related Posts</li></ul>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/ni-zou-ba.html">原文地址</a>｜<a href="http://hellobmw.com/archives/ni-zou-ba.html#comments">6 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>发信人: lincrydog (狗儿☆醉圣K寺之K小可~谁将流年偷换), 信区: Love<br />
标  题: 你走吧<br />
发信站: 珞珈山水BBS站 (Sun May  4 13:03:37 2008), 转信</p>
<p>你还是要走了。</p>
<p>你说你曾经很爱过她，我说我也曾经不爱过或者很爱过某一些他。但是命运终于把我们捆绑在一起。从认识你，到相识，到熟悉，再到分离，再次相见，再到恋爱，争吵，分手，再和好，温暖，现在，你的离开。这其间，我见过很多人，坐下，交流，微笑，或者哭泣，然后起身离开，抬头看看远方，真的，居然又见到了你的脸。于是，这一次，我相信缘份。好像一条长长的过山车，在黝黑的地洞里，我握着你的手，看不到未来，也无法回望过去，只能随着呼啸的列车飞驰而去。有露水从洞顶滴下，我无法躲避，淌在我的脸颊上，不知道是因为喜悦还是悲伤而流泪。</p>
<p>终于你就要走了。就像故事里说。我终于还只是一个灰姑娘，十二点响起。我拖着我的土布灰裙子狼狈而逃。这一次，你没有追我，你只是微笑的说。5年，等我5年。你还是我的公主。</p>
<p>你走吧。等待5年，大概是你我唯一的选择。</p>
<p>一直都觉得自己需要很多很多的爱，因为一直都缺乏很多很多的爱，于是把每一次的暧昧都当作真爱，以为自己会头脑盲目的一股脑扎进去，却终于发现自己一直都置身事外，因为害怕爱，害怕被爱，害怕付出爱。</p>
<p>就好像有的时候。一出生的时候。有一些注定要爱你疼你呵护你的人，而你也认定会被他们疼爱的人，到头来，其实只是一个幻觉。最后发现可以爱可以依靠的人其实是自己。而终于有一天。希望可以依靠一个人的时候。觉得可以依靠的时候。发现自己实际上缺乏的就是依靠一个人的能力。如果最后还是一个人呢，大概是被打回原形吧。</p>
<p>朋友一直在告诫说，5年的分别，所有的感情都将归于平淡，爱情终究敌不过时间和距离。</p>
<p>就好像一直努力在日落前向山顶爬，然后终于在最后一秒钟又狠狠跌到山底。如果结局会是这样。还需要一直的努力爬么。。。</p>
<p>可你说，你相信我么？</p>
<p>而我终于点点头。</p>
<p>我等你。5年为期。</p>
<p>如若我们赢了时间，我今生将是你的唯一，陪你不离不弃，一辈子终身相守，爱你将是我最大的信仰，如若我们终究敌不过距离，这将是我最后一次相信爱情，最后一次用毕生的精力来景仰和期待很多很多的爱。</p>
<p>因为，爱。</p>
<p>因为，你。</p>
<p>因为，爱你。</p>
<p>你走吧。</p>
<p>记得回来。</p>
<p>（<a href="http://bbs.whu.edu.cn/bbscon.php?board=Love&#038;id=1102940191" class="external">原文链接</a>）</p>
<div class="entry-related"><h3>Related Posts</h3><ul></li>No Related Posts</li></ul>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/ni-zou-ba.html">原文地址</a>｜<a href="http://hellobmw.com/archives/ni-zou-ba.html#comments">6 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/ni-zou-ba.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>我的 PR 升到 6 了吗</title>
		<link>http://hellobmw.com/archives/my-pagerank-6.html</link>
		<comments>http://hellobmw.com/archives/my-pagerank-6.html#comments</comments>
		<pubDate>Wed, 30 Apr 2008 13:20:26 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[PageRank]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1043</guid>
		<description><![CDATA[<p>无意中发现自己的 PR 已经从 5 升至 6，有点不可思议，刚才使用 <a href="http://www.prchecker.info/check_page_rank.php" class="external">PR Checker</a> 确认了一下，的确是 6 了。<br />
<img src="http://hellobmw.com/wp-content/uploads/showimagephp.gif" alt="My PageRank 6" title="My PageRank 6" width="70" height="20" class="alignnone size-full wp-image-1044" /></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/google-pagerank-updated-2007-10-27.html" title="Google PageRank 终于更新！！！">Google PageRank 终于更新！！！</a></li><li><a href="http://hellobmw.com/archives/show-off-rankings-on-your-blog.html" title="在你的blog上显示各项排名">在你的blog上显示各项排名</a></li><li><a href="http://hellobmw.com/archives/16-online-pagerank-tools.html" title="16个查看PageRank的在线工具">16个查看PageRank的在线工具</a></li><li><a href="http://hellobmw.com/archives/the-calculation-of-pagerank-completed.html" title="PageRank已经计算完成">PageRank已经计算完成</a></li><li><a href="http://hellobmw.com/archives/should-google-remove-the-toolbar-pagerank-score.html" title="Google有意不再显示工具列上的PageRank？">Google有意不再显示工具列上的PageRank？</a></li><li><a href="http://hellobmw.com/archives/google-pagerank-is-updating.html" title="Google PageRank将在近两天内更新">Google PageRank将在近两天内更新</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/my-pagerank-6.html">原文地址</a>｜<a href="http://hellobmw.com/archives/my-pagerank-6.html#comments">14 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>无意中发现自己的 PR 已经从 5 升至 6，有点不可思议，刚才使用 <a href="http://www.prchecker.info/check_page_rank.php" class="external">PR Checker</a> 确认了一下，的确是 6 了。<br />
<img src="http://hellobmw.com/wp-content/uploads/showimagephp.gif" alt="My PageRank 6" title="My PageRank 6" width="70" height="20" class="alignnone size-full wp-image-1044" /></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/google-pagerank-updated-2007-10-27.html" title="Google PageRank 终于更新！！！">Google PageRank 终于更新！！！</a></li><li><a href="http://hellobmw.com/archives/show-off-rankings-on-your-blog.html" title="在你的blog上显示各项排名">在你的blog上显示各项排名</a></li><li><a href="http://hellobmw.com/archives/16-online-pagerank-tools.html" title="16个查看PageRank的在线工具">16个查看PageRank的在线工具</a></li><li><a href="http://hellobmw.com/archives/the-calculation-of-pagerank-completed.html" title="PageRank已经计算完成">PageRank已经计算完成</a></li><li><a href="http://hellobmw.com/archives/should-google-remove-the-toolbar-pagerank-score.html" title="Google有意不再显示工具列上的PageRank？">Google有意不再显示工具列上的PageRank？</a></li><li><a href="http://hellobmw.com/archives/google-pagerank-is-updating.html" title="Google PageRank将在近两天内更新">Google PageRank将在近两天内更新</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/my-pagerank-6.html">原文地址</a>｜<a href="http://hellobmw.com/archives/my-pagerank-6.html#comments">14 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/my-pagerank-6.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>我的答案：北大ACM#1007（DNA Sorting）</title>
		<link>http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html</link>
		<comments>http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html#comments</comments>
		<pubDate>Mon, 14 Apr 2008 01:23:35 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[C/C++]]></category>

		<category><![CDATA[程序设计]]></category>

		<category><![CDATA[ACM]]></category>

		<category><![CDATA[DNA Sorting]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1041</guid>
		<description><![CDATA[<p>好久没做 ACM 了，昨晚又跑到北大的上面做了一题（没敢去浙大的，ZOJ 的判定比北大严格得多），题目就不抄了，自己去看吧， <a href="http://acm.pku.edu.cn/JudgeOnline/problem?id=1007" class="external">1007 - DNA Sorting</a>。</p>
<p>下面我把自己的答案贴出来，说实话我这个代码非常烂，虽然 Accepted，但占用内存 300K，耗时 375 MS，代码长度 2261B，跟排在前面的高手的解决方法完全不能比——第 1 名：占用内存 4K，耗时 0 MS，代码长度 847B……第 20 名，占用内存 12K，耗时 0 MS，代码长度 554B——可能是我写的代码太过于 C++ 了，不仅有类，还用了模板，相当依赖 STL。如果有高手看到我这个帖子，希望能多多指教。</p>
<div class="syntax_hilite">
<div id="cpp-1">
<div class="cpp"><span style="color: #339900;">#include &lt;stdio.h&gt;</span><br />
<span style="color: #339900;">#include &lt;iostream&gt;</span><br />
<span style="color: #339900;">#include &lt;string&gt;</span><br />
<span style="color: #339900;">#include &lt;vector&gt;</span></p>
<p><span style="color: #0000ff;">class</span> MySequence<br />
<span style="color: #000000;">&#123;</span><br />
<span style="color: #0000ff;">public</span>:<br />
&nbsp; &nbsp; <span style="color: #0000ff;">explicit</span> MySequence<span style="color: #000000;">&#40;</span>std::<span style="color: #00eeff;">string</span> strSequence<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; _strSequence = strSequence;<br />
&nbsp; &nbsp; &nbsp; &nbsp; _nUnsortedness = <span style="color: #0000dd;">0</span>;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
&nbsp; &nbsp; MySequence<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; : _strSequence<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; , _nUnsortedness<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
&nbsp; &nbsp; ~MySequence<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>;<br />
<span style="color: #0000ff;">public</span>:<br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span> getUnsortedness<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; _nUnsortedness = <span style="color: #0000dd;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">int</span> nStrLength = _strSequence.<span style="color: #00eeff;">length</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> i = <span style="color: #0000dd;">0</span>; i &lt;nStrLength; i++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">// strSequence[i] stands for every letter</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> j = i+<span style="color: #0000dd;">1</span>; j &lt;nStrLength; j++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>_strSequence<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>&gt; _strSequence<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _nUnsortedness++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">return</span> _nUnsortedness;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">inline</span> std::<span style="color: #00eeff;">string</span> getSequence<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">return</span> _strSequence;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
<span style="color: #0000ff;">private</span>:<br />
&nbsp; &nbsp; std::<span style="color: #00eeff;">string</span>&nbsp;_strSequence;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span>&nbsp;&nbsp;&nbsp;_nUnsortedness;<br />
<span style="color: #000000;">&#125;</span>;</p>
<p>std::<span style="color: #00eeff;">vector</span>&lt;MySequence&gt; vecSequenceList;</p>
<p><span style="color: #0000ff;">void</span> setInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span> nSequenceLength = <span style="color: #0000dd;">0</span>, nVectorSize = <span style="color: #0000dd;">0</span>, nIndex = <span style="color: #0000dd;">0</span>;<br />
&nbsp; &nbsp; std::<span style="color: #00eeff;">string</span> strInput;<br />
&nbsp; &nbsp; std::<span style="color: #00eeff;">cin</span>&gt;&gt; nSequenceLength&gt;&gt; nVectorSize;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">while</span> <span style="color: #000000;">&#40;</span>nIndex &lt;nVectorSize<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; std::<span style="color: #00eeff;">cin</span>&gt;&gt; strInput;<br />
&nbsp; &nbsp; &nbsp; &nbsp; MySequence msSequence<span style="color: #000000;">&#40;</span>strInput<span style="color: #000000;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; vecSequenceList.<span style="color: #00eeff;">push_back</span><span style="color: #000000;">&#40;</span>msSequence<span style="color: #000000;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; nIndex++;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></p>
<p><span style="color: #0000ff;">int</span> main<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span>* argv<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">// 输入序列</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">//</span><br />
&nbsp; &nbsp; setInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #ff0000;">// 计算序列的逆序数并按规则排序</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">//</span><br />
&nbsp; &nbsp; MySequence msTemp;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> i = <span style="color: #0000dd;">0</span>; i &lt;vecSequenceList.<span style="color: #00eeff;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; i++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> j = <span style="color: #0000dd;">0</span>; j &lt;vecSequenceList.<span style="color: #00eeff;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>-i-<span style="color: #0000dd;">1</span>; j++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>vecSequenceList<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">getUnsortedness</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>&gt; vecSequenceList<span style="color: #000000;">&#91;</span>j+<span style="color: #0000dd;">1</span><span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">getUnsortedness</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msTemp = vecSequenceList<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vecSequenceList<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span> = vecSequenceList<span style="color: #000000;">&#91;</span>j+<span style="color: #0000dd;">1</span><span style="color: #000000;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vecSequenceList<span style="color: #000000;">&#91;</span>j+<span style="color: #0000dd;">1</span><span style="color: #000000;">&#93;</span> = msTemp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></p>
<p>&nbsp; &nbsp; <span style="color: #ff0000;">// 输出序列</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">//</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> i = <span style="color: #0000dd;">0</span>; i &lt;vecSequenceList.<span style="color: #00eeff;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; i++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; std::<span style="color: #0000dd;">cout</span> &lt;&lt;vecSequenceList<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">getSequence</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &lt;&lt;std::<span style="color: #00eeff;">endl</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span>;<br />
<span style="color: #000000;">&#125;</span></div>
</div>
</div>
<p></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/playing-acm-on-zoj.html" title="这几天在干嘛……">这几天在干嘛……</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html">原文地址</a>｜<a href="http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html#comments">10 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>好久没做 ACM 了，昨晚又跑到北大的上面做了一题（没敢去浙大的，ZOJ 的判定比北大严格得多），题目就不抄了，自己去看吧， <a href="http://acm.pku.edu.cn/JudgeOnline/problem?id=1007" class="external">1007 - DNA Sorting</a>。</p>
<p>下面我把自己的答案贴出来，说实话我这个代码非常烂，虽然 Accepted，但占用内存 300K，耗时 375 MS，代码长度 2261B，跟排在前面的高手的解决方法完全不能比——第 1 名：占用内存 4K，耗时 0 MS，代码长度 847B……第 20 名，占用内存 12K，耗时 0 MS，代码长度 554B——可能是我写的代码太过于 C++ 了，不仅有类，还用了模板，相当依赖 STL。如果有高手看到我这个帖子，希望能多多指教。</p>
<div class="syntax_hilite">
<div id="cpp-2">
<div class="cpp"><span style="color: #339900;">#include &lt;stdio.h&gt;</span><br />
<span style="color: #339900;">#include &lt;iostream&gt;</span><br />
<span style="color: #339900;">#include &lt;string&gt;</span><br />
<span style="color: #339900;">#include &lt;vector&gt;</span></p>
<p><span style="color: #0000ff;">class</span> MySequence<br />
<span style="color: #000000;">&#123;</span><br />
<span style="color: #0000ff;">public</span>:<br />
&nbsp; &nbsp; <span style="color: #0000ff;">explicit</span> MySequence<span style="color: #000000;">&#40;</span>std::<span style="color: #00eeff;">string</span> strSequence<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; _strSequence = strSequence;<br />
&nbsp; &nbsp; &nbsp; &nbsp; _nUnsortedness = <span style="color: #0000dd;">0</span>;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
&nbsp; &nbsp; MySequence<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; : _strSequence<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; , _nUnsortedness<span style="color: #000000;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
&nbsp; &nbsp; ~MySequence<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">void</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>;<br />
<span style="color: #0000ff;">public</span>:<br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span> getUnsortedness<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; _nUnsortedness = <span style="color: #0000dd;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">int</span> nStrLength = _strSequence.<span style="color: #00eeff;">length</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> i = <span style="color: #0000dd;">0</span>; i &lt;nStrLength; i++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">// strSequence[i] stands for every letter</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> j = i+<span style="color: #0000dd;">1</span>; j &lt;nStrLength; j++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>_strSequence<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>&gt; _strSequence<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _nUnsortedness++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">return</span> _nUnsortedness;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">inline</span> std::<span style="color: #00eeff;">string</span> getSequence<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">return</span> _strSequence;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>;<br />
<span style="color: #0000ff;">private</span>:<br />
&nbsp; &nbsp; std::<span style="color: #00eeff;">string</span>&nbsp;_strSequence;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span>&nbsp;&nbsp;&nbsp;_nUnsortedness;<br />
<span style="color: #000000;">&#125;</span>;</p>
<p>std::<span style="color: #00eeff;">vector</span>&lt;MySequence&gt; vecSequenceList;</p>
<p><span style="color: #0000ff;">void</span> setInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">int</span> nSequenceLength = <span style="color: #0000dd;">0</span>, nVectorSize = <span style="color: #0000dd;">0</span>, nIndex = <span style="color: #0000dd;">0</span>;<br />
&nbsp; &nbsp; std::<span style="color: #00eeff;">string</span> strInput;<br />
&nbsp; &nbsp; std::<span style="color: #00eeff;">cin</span>&gt;&gt; nSequenceLength&gt;&gt; nVectorSize;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">while</span> <span style="color: #000000;">&#40;</span>nIndex &lt;nVectorSize<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; std::<span style="color: #00eeff;">cin</span>&gt;&gt; strInput;<br />
&nbsp; &nbsp; &nbsp; &nbsp; MySequence msSequence<span style="color: #000000;">&#40;</span>strInput<span style="color: #000000;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; vecSequenceList.<span style="color: #00eeff;">push_back</span><span style="color: #000000;">&#40;</span>msSequence<span style="color: #000000;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; nIndex++;<br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></p>
<p><span style="color: #0000ff;">int</span> main<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span>* argv<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />
<span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">// 输入序列</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">//</span><br />
&nbsp; &nbsp; setInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #ff0000;">// 计算序列的逆序数并按规则排序</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">//</span><br />
&nbsp; &nbsp; MySequence msTemp;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> i = <span style="color: #0000dd;">0</span>; i &lt;vecSequenceList.<span style="color: #00eeff;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; i++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> j = <span style="color: #0000dd;">0</span>; j &lt;vecSequenceList.<span style="color: #00eeff;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>-i-<span style="color: #0000dd;">1</span>; j++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">if</span> <span style="color: #000000;">&#40;</span>vecSequenceList<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">getUnsortedness</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>&gt; vecSequenceList<span style="color: #000000;">&#91;</span>j+<span style="color: #0000dd;">1</span><span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">getUnsortedness</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msTemp = vecSequenceList<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vecSequenceList<span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span> = vecSequenceList<span style="color: #000000;">&#91;</span>j+<span style="color: #0000dd;">1</span><span style="color: #000000;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vecSequenceList<span style="color: #000000;">&#91;</span>j+<span style="color: #0000dd;">1</span><span style="color: #000000;">&#93;</span> = msTemp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></p>
<p>&nbsp; &nbsp; <span style="color: #ff0000;">// 输出序列</span><br />
&nbsp; &nbsp; <span style="color: #ff0000;">//</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #0000ff;">int</span> i = <span style="color: #0000dd;">0</span>; i &lt;vecSequenceList.<span style="color: #00eeff;">size</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; i++<span style="color: #000000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; std::<span style="color: #0000dd;">cout</span> &lt;&lt;vecSequenceList<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.<span style="color: #00eeff;">getSequence</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &lt;&lt;std::<span style="color: #00eeff;">endl</span>;</p>
<p>&nbsp; &nbsp; <span style="color: #0000ff;">return</span> <span style="color: #0000dd;">0</span>;<br />
<span style="color: #000000;">&#125;</span></div>
</div>
</div>
<p></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/playing-acm-on-zoj.html" title="这几天在干嘛……">这几天在干嘛……</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html">原文地址</a>｜<a href="http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html#comments">10 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/dna-sorting-pku-acm-1007.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Plain Theme For WordPress</title>
		<link>http://hellobmw.com/archives/plain-theme-for-wordpress.html</link>
		<comments>http://hellobmw.com/archives/plain-theme-for-wordpress.html#comments</comments>
		<pubDate>Fri, 11 Apr 2008 10:31:45 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[Themes]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Plain]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1032</guid>
		<description><![CDATA[<h3>Plain Theme For WordPress</h3>
<p><img src="http://hellobmw.com/wp-content/uploads/screenshot2.png" alt="wp-plain-theme" title="screenshot of wp-plain-theme" width="302" height="226" /></p>
<h3>- FEATURES -</h3>
<ul>
<li><strong>WordPress 2.5 Compatible.</strong></li>
<li>3 columns.</li>
<li>White.</li>
<li>Fixed width.</li>
<li>Right sidebar.</li>
<li>No images.</li>
<li>Plugins required.</li>
<li>Widgets NOT supported.</li>
<li>Customized 404 page.</li>
<li><strong>Ajax comments.</strong></li>
<li>Driven by jQuery.</li>
<li><strong>Native gravatars support.</strong></li>
<li>Validates XHTML 1.1.</li>
<li>Validates CSS 2.1.</li>
</ul>
<h3>- DEPENDENT PLUGINS -</h3>
<ul>
<li><a href="http://hellobmw.com/archives/rthanks-plus-thanks-to-all-referring-sites.html">RThanks Plus</a></li>
<li><a href="http://meidell.dk/archives/category/wordpress/latest-comments/" class="external">Brian's latest comments</a></li>
<li><a href="http://alexking.org/projects/wordpress" class="external">Popularity Contest</a></li>
<li><a href="http://yskin.net/2006/10/wisdom-title.html" class="external">Wisdom Title</a></li>
<li><a href="http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/" class="external">Related Post</a></li>
<li><a href="http://lesterchan.net/wordpress/readme/wp-pagenavi.html" class="external">WP-PageNavi</a></li>
</ul>
<h3>- DOWNLOAD -</h3>
<ul>
<li><a href="http://hellobmw.com/downloads/wp-plain-theme.zip">wp-plain-theme.zip</a></li>
</ul>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html" title="有人喜欢我现在这套 WordPress 主题吗">有人喜欢我现在这套 WordPress 主题吗</a></li><li><a href="http://hellobmw.com/archives/current-theme-modified.html" title="主题终于改好了">主题终于改好了</a></li><li><a href="http://hellobmw.com/archives/a-smashing-wordpress-theme-dilectio.html" title="难得好主题：Dilectio ">难得好主题：Dilectio </a></li><li><a href="http://hellobmw.com/archives/lcd-is-necessary-for-wordpress-designer.html" title="设计 WordPress 主题的一个必要条件">设计 WordPress 主题的一个必要条件</a></li><li><a href="http://hellobmw.com/archives/wordpress-theme-woodpress.html" title="WordPress 主题推荐：WoodPress">WordPress 主题推荐：WoodPress</a></li><li><a href="http://hellobmw.com/archives/wordpress-unity-tricolor-theme-release.html" title="WordPress 主题发布：Unity Tricolor">WordPress 主题发布：Unity Tricolor</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html">原文地址</a>｜<a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html#comments">16 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<h3>Plain Theme For WordPress</h3>
<p><img src="http://hellobmw.com/wp-content/uploads/screenshot2.png" alt="wp-plain-theme" title="screenshot of wp-plain-theme" width="302" height="226" /></p>
<h3>- FEATURES -</h3>
<ul>
<li><strong>WordPress 2.5 Compatible.</strong></li>
<li>3 columns.</li>
<li>White.</li>
<li>Fixed width.</li>
<li>Right sidebar.</li>
<li>No images.</li>
<li>Plugins required.</li>
<li>Widgets NOT supported.</li>
<li>Customized 404 page.</li>
<li><strong>Ajax comments.</strong></li>
<li>Driven by jQuery.</li>
<li><strong>Native gravatars support.</strong></li>
<li>Validates XHTML 1.1.</li>
<li>Validates CSS 2.1.</li>
</ul>
<h3>- DEPENDENT PLUGINS -</h3>
<ul>
<li><a href="http://hellobmw.com/archives/rthanks-plus-thanks-to-all-referring-sites.html">RThanks Plus</a></li>
<li><a href="http://meidell.dk/archives/category/wordpress/latest-comments/" class="external">Brian's latest comments</a></li>
<li><a href="http://alexking.org/projects/wordpress" class="external">Popularity Contest</a></li>
<li><a href="http://yskin.net/2006/10/wisdom-title.html" class="external">Wisdom Title</a></li>
<li><a href="http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/" class="external">Related Post</a></li>
<li><a href="http://lesterchan.net/wordpress/readme/wp-pagenavi.html" class="external">WP-PageNavi</a></li>
</ul>
<h3>- DOWNLOAD -</h3>
<ul>
<li><a href="http://hellobmw.com/downloads/wp-plain-theme.zip">wp-plain-theme.zip</a></li>
</ul>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html" title="有人喜欢我现在这套 WordPress 主题吗">有人喜欢我现在这套 WordPress 主题吗</a></li><li><a href="http://hellobmw.com/archives/current-theme-modified.html" title="主题终于改好了">主题终于改好了</a></li><li><a href="http://hellobmw.com/archives/a-smashing-wordpress-theme-dilectio.html" title="难得好主题：Dilectio ">难得好主题：Dilectio </a></li><li><a href="http://hellobmw.com/archives/lcd-is-necessary-for-wordpress-designer.html" title="设计 WordPress 主题的一个必要条件">设计 WordPress 主题的一个必要条件</a></li><li><a href="http://hellobmw.com/archives/wordpress-theme-woodpress.html" title="WordPress 主题推荐：WoodPress">WordPress 主题推荐：WoodPress</a></li><li><a href="http://hellobmw.com/archives/wordpress-unity-tricolor-theme-release.html" title="WordPress 主题发布：Unity Tricolor">WordPress 主题发布：Unity Tricolor</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html">原文地址</a>｜<a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html#comments">16 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/plain-theme-for-wordpress.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>人类和黑猩猩，谁更聪明</title>
		<link>http://hellobmw.com/archives/humans-vs-chimps.html</link>
		<comments>http://hellobmw.com/archives/humans-vs-chimps.html#comments</comments>
		<pubDate>Tue, 08 Apr 2008 01:58:33 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[Living]]></category>

		<category><![CDATA[retentivity]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1039</guid>
		<description><![CDATA[<p>看过王晓峰<a href="http://www.wangxiaofeng.net/" class="external">《不许联想》</a>的一定都知道“黑猩猩”，但是，黑猩猩真的比人类笨吗？印象中是这样，事实上呢？</p>
<p>先来玩阅微堂的一个游戏吧，规则只有一条，快速记忆屏幕上的数字，然后按照从小到大的顺序在屏幕上点出来，10 个题目之后就能<a href="http://zhiqiang.org/blog/posts/test-age-of-your-brain.html" class="external">测到你的脑年龄</a>了，据说越小越好。我自己测了三遍，最好的成绩是 20 岁，估计不会再有什么突破了，应该属于中等水平吧。</p>
<p>一楼的 wangyancan 给出了一个视频：<br />
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/cPiDHXtM0VA&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/cPiDHXtM0VA&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>看完之后你还会认为黑猩猩笨吗？</p>
<div class="entry-related"><h3>Related Posts</h3><ul></li>No Related Posts</li></ul>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/humans-vs-chimps.html">原文地址</a>｜<a href="http://hellobmw.com/archives/humans-vs-chimps.html#comments">2 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>看过王晓峰<a href="http://www.wangxiaofeng.net/" class="external">《不许联想》</a>的一定都知道“黑猩猩”，但是，黑猩猩真的比人类笨吗？印象中是这样，事实上呢？</p>
<p>先来玩阅微堂的一个游戏吧，规则只有一条，快速记忆屏幕上的数字，然后按照从小到大的顺序在屏幕上点出来，10 个题目之后就能<a href="http://zhiqiang.org/blog/posts/test-age-of-your-brain.html" class="external">测到你的脑年龄</a>了，据说越小越好。我自己测了三遍，最好的成绩是 20 岁，估计不会再有什么突破了，应该属于中等水平吧。</p>
<p>一楼的 wangyancan 给出了一个视频：<br />
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/cPiDHXtM0VA&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/cPiDHXtM0VA&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>看完之后你还会认为黑猩猩笨吗？</p>
<div class="entry-related"><h3>Related Posts</h3><ul></li>No Related Posts</li></ul>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/humans-vs-chimps.html">原文地址</a>｜<a href="http://hellobmw.com/archives/humans-vs-chimps.html#comments">2 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/humans-vs-chimps.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>有人喜欢我现在这套 WordPress 主题吗</title>
		<link>http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html</link>
		<comments>http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html#comments</comments>
		<pubDate>Mon, 07 Apr 2008 11:15:07 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[Themes]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1038</guid>
		<description><![CDATA[<p>对，就是现在这套，看上去非常素的。我知道一定有很多人不喜欢，不过我想知道的是，有没有人喜欢（想用），或者不想用只是想看代码的？</p>
<p>欢迎各位把自己的想法留在下面，喜欢、不喜欢、只想要代码统统都可以，就当我做个调查。当然了，如果喜欢的人还不少，我认为很值得花点时间仔细整理一下放出来。 <img src='http://hellobmw.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html" title="Plain Theme For WordPress">Plain Theme For WordPress</a></li><li><a href="http://hellobmw.com/archives/current-theme-modified.html" title="主题终于改好了">主题终于改好了</a></li><li><a href="http://hellobmw.com/archives/a-smashing-wordpress-theme-dilectio.html" title="难得好主题：Dilectio ">难得好主题：Dilectio </a></li><li><a href="http://hellobmw.com/archives/lcd-is-necessary-for-wordpress-designer.html" title="设计 WordPress 主题的一个必要条件">设计 WordPress 主题的一个必要条件</a></li><li><a href="http://hellobmw.com/archives/wordpress-theme-woodpress.html" title="WordPress 主题推荐：WoodPress">WordPress 主题推荐：WoodPress</a></li><li><a href="http://hellobmw.com/archives/wordpress-unity-tricolor-theme-release.html" title="WordPress 主题发布：Unity Tricolor">WordPress 主题发布：Unity Tricolor</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html">原文地址</a>｜<a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html#comments">30 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>对，就是现在这套，看上去非常素的。我知道一定有很多人不喜欢，不过我想知道的是，有没有人喜欢（想用），或者不想用只是想看代码的？</p>
<p>欢迎各位把自己的想法留在下面，喜欢、不喜欢、只想要代码统统都可以，就当我做个调查。当然了，如果喜欢的人还不少，我认为很值得花点时间仔细整理一下放出来。 <img src='http://hellobmw.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html" title="Plain Theme For WordPress">Plain Theme For WordPress</a></li><li><a href="http://hellobmw.com/archives/current-theme-modified.html" title="主题终于改好了">主题终于改好了</a></li><li><a href="http://hellobmw.com/archives/a-smashing-wordpress-theme-dilectio.html" title="难得好主题：Dilectio ">难得好主题：Dilectio </a></li><li><a href="http://hellobmw.com/archives/lcd-is-necessary-for-wordpress-designer.html" title="设计 WordPress 主题的一个必要条件">设计 WordPress 主题的一个必要条件</a></li><li><a href="http://hellobmw.com/archives/wordpress-theme-woodpress.html" title="WordPress 主题推荐：WoodPress">WordPress 主题推荐：WoodPress</a></li><li><a href="http://hellobmw.com/archives/wordpress-unity-tricolor-theme-release.html" title="WordPress 主题发布：Unity Tricolor">WordPress 主题发布：Unity Tricolor</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html">原文地址</a>｜<a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html#comments">30 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mozilla Firefox, Portable Edition 3 Beta 5</title>
		<link>http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html</link>
		<comments>http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 06:07:26 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[Firefox扩展]]></category>

		<category><![CDATA[Firefox]]></category>

		<category><![CDATA[Mozilla]]></category>

		<category><![CDATA[Portable]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1037</guid>
		<description><![CDATA[<p>Mozilla Firefox, Portable Edition 3 Beta 5 发布了。现在我这里，Portable 版已经基本上代替了官方版，非常好用。<br />
<img src="http://pic.yupoo.com/evitc/80555558134b/c7etota4.jpg" alt="Mozilla Firefox Portable Edition 3 Beta 5" /></p>
<p>+ 这篇日志跟“Firefox 扩展”无关，但还是放在这个目录下了。见谅。</p>
<p><a href="http://portableapps.com/apps/internet/firefox_portable/test" class="external">下载 Portable Edition 3 Beta 5</a></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/google-adsense-firefox-referral-removed.html" title="撤下 Google 的 Firefox 推介">撤下 Google 的 Firefox 推介</a></li><li><a href="http://hellobmw.com/archives/old-extensions-in-firefox3.html" title="让旧扩展也支持 Firefox3">让旧扩展也支持 Firefox3</a></li><li><a href="http://hellobmw.com/archives/tidy-firefox-crashes-firefox-when-using-gmail.html" title="Firefox 扩展导致新版 Gmail 崩溃浏览器">Firefox 扩展导致新版 Gmail 崩溃浏览器</a></li><li><a href="http://hellobmw.com/archives/ie7-like-firefox-theme-vista-aero.html" title="Firefox 主题推荐：Vista-Aero">Firefox 主题推荐：Vista-Aero</a></li><li><a href="http://hellobmw.com/archives/firefox-20011.html" title="Firefox 2 又又又升级了……">Firefox 2 又又又升级了……</a></li><li><a href="http://hellobmw.com/archives/firefox-addon-searchstatus.html" title="Firefox扩展：SearchStatus">Firefox扩展：SearchStatus</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html">原文地址</a>｜<a href="http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html#comments">7 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>Mozilla Firefox, Portable Edition 3 Beta 5 发布了。现在我这里，Portable 版已经基本上代替了官方版，非常好用。<br />
<img src="http://pic.yupoo.com/evitc/80555558134b/c7etota4.jpg" alt="Mozilla Firefox Portable Edition 3 Beta 5" /></p>
<p>+ 这篇日志跟“Firefox 扩展”无关，但还是放在这个目录下了。见谅。</p>
<p><a href="http://portableapps.com/apps/internet/firefox_portable/test" class="external">下载 Portable Edition 3 Beta 5</a></p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/google-adsense-firefox-referral-removed.html" title="撤下 Google 的 Firefox 推介">撤下 Google 的 Firefox 推介</a></li><li><a href="http://hellobmw.com/archives/old-extensions-in-firefox3.html" title="让旧扩展也支持 Firefox3">让旧扩展也支持 Firefox3</a></li><li><a href="http://hellobmw.com/archives/tidy-firefox-crashes-firefox-when-using-gmail.html" title="Firefox 扩展导致新版 Gmail 崩溃浏览器">Firefox 扩展导致新版 Gmail 崩溃浏览器</a></li><li><a href="http://hellobmw.com/archives/ie7-like-firefox-theme-vista-aero.html" title="Firefox 主题推荐：Vista-Aero">Firefox 主题推荐：Vista-Aero</a></li><li><a href="http://hellobmw.com/archives/firefox-20011.html" title="Firefox 2 又又又升级了……">Firefox 2 又又又升级了……</a></li><li><a href="http://hellobmw.com/archives/firefox-addon-searchstatus.html" title="Firefox扩展：SearchStatus">Firefox扩展：SearchStatus</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html">原文地址</a>｜<a href="http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html#comments">7 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/mozilla-firefox-portable-edition-3-beta-5.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>FeedSky April Fools 2008</title>
		<link>http://hellobmw.com/archives/feedsky-april-fools-2008.html</link>
		<comments>http://hellobmw.com/archives/feedsky-april-fools-2008.html#comments</comments>
		<pubDate>Tue, 01 Apr 2008 05:24:51 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[Living]]></category>

		<category><![CDATA[April Fools]]></category>

		<category><![CDATA[FeedSky]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1036</guid>
		<description><![CDATA[<p><img src="http://pic.yupoo.com/evitc/586625553bd3/3wwrjobd.jpg" alt="FeedSky April Fools 2008" /><br />
<img src="http://www.feedsky.com/feed/hellobmwdotcom/sc/gif" alt="FeedSky April Fools 2008" /><br />
实际上我的订阅数恰好是这个数的百分之一，貌似这个数字还是随机的，刚才又跳成 2 万多了，要是哪一天真有这么多订阅数就好了。XD</p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/new-look-of-feedsky-feeds-manager.html" title="FeedSky 后台管理改版了">FeedSky 后台管理改版了</a></li><li><a href="http://hellobmw.com/archives/feedsky-blogging-challenge.html" title="FeedSky 博客挑战赛">FeedSky 博客挑战赛</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/feedsky-april-fools-2008.html">原文地址</a>｜<a href="http://hellobmw.com/archives/feedsky-april-fools-2008.html#comments">5 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://pic.yupoo.com/evitc/586625553bd3/3wwrjobd.jpg" alt="FeedSky April Fools 2008" /><br />
<img src="http://www.feedsky.com/feed/hellobmwdotcom/sc/gif" alt="FeedSky April Fools 2008" /><br />
实际上我的订阅数恰好是这个数的百分之一，貌似这个数字还是随机的，刚才又跳成 2 万多了，要是哪一天真有这么多订阅数就好了。XD</p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/new-look-of-feedsky-feeds-manager.html" title="FeedSky 后台管理改版了">FeedSky 后台管理改版了</a></li><li><a href="http://hellobmw.com/archives/feedsky-blogging-challenge.html" title="FeedSky 博客挑战赛">FeedSky 博客挑战赛</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/feedsky-april-fools-2008.html">原文地址</a>｜<a href="http://hellobmw.com/archives/feedsky-april-fools-2008.html#comments">5 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/feedsky-april-fools-2008.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>利用插件转换老 WordPress 数据库表编码</title>
		<link>http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html</link>
		<comments>http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html#comments</comments>
		<pubDate>Fri, 28 Mar 2008 08:54:57 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Charset]]></category>

		<category><![CDATA[Database]]></category>

		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1031</guid>
		<description><![CDATA[<p>众所周知，老版本的 WordPress 生成的数据库表的编码是 latin1，也就是 ISO-8859-1，这种编码对中文支持不好，直接的影响就是使用 phpMyAdmin 备份出来的表里面中文全部是乱码，上次我还<a href="http://hellobmw.com/archives/a-plugin-which-old-wordpress-users-must-use.html">专门介绍</a>了 wp-db-backup 这个插件，用它才能成功地将老 WordPress 的数据库备份出来，前提是不破坏中文。</p>
<p>今天我们将利用它备份出来的数据库，彻底地将 WordPress 的<strong>十</strong>个表的编码从 <strong>latin1-swedish-ci</strong> 转为 <strong>utf8-general-ci</strong>。下面我以 step by step 的形式列一下步骤：</p>
<ol>
<li>使用 wp-db-backup 备份<strong>所有</strong>数据库表，以防操作失败造成毁灭性后果。</li>
<li>确认第一步备份的数据库可用。压缩包在下载过程中很容易损坏。</li>
<li>解压出 SQL 文件，使用 UltraEdit 之类<strong>强大</strong>一点的文本编辑器打开。</li>
<li>查找“DEFAULT CHARSET=latin1”，把 WordPress 自己的十个表的这个字符串改为“DEFAULT CHARSET=utf8”。插件建立的表就不要改了。</li>
<li><strong>危险的一步！</strong>使用 phpMyAdmin 将 WordPress 的数据库所有表全部 Drop 掉！</li>
<li>导入你刚才修改过的 SQL，phpMyAdmin 支持 zip 或 gz 压缩过的，最好压缩一下再传，速度快些。</li>
<li>点击 phpMyAdmin 的 structure 查看数据库结构，那十个表的编码应该已经变为“utf8-general-ci”了。</li>
<li>最后一步。修改 wp-config.php 文件，添加这样一行，如果已经存在就改一下：<code>define('DB_CHARSET', 'utf8');</code>，OK 了啦~</li>
</ol>
<p>完成上面的步骤以后，老 WordPress 用户也可以扔掉拐杖啦（如果实在想扔的话），现在用 phpMyAdmin 备份也不会出现乱码啦。</p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/a-plugin-which-old-wordpress-users-must-use.html" title="一个老 WordPress 用户不得不用的插件">一个老 WordPress 用户不得不用的插件</a></li><li><a href="http://hellobmw.com/archives/wordpress-plugin-wp-dbmanager.html" title="WordPress插件：WP-DBManager">WordPress插件：WP-DBManager</a></li><li><a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html" title="Plain Theme For WordPress">Plain Theme For WordPress</a></li><li><a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html" title="有人喜欢我现在这套 WordPress 主题吗">有人喜欢我现在这套 WordPress 主题吗</a></li><li><a href="http://hellobmw.com/archives/wordpress-25-rc2.html" title="WordPress 2.5 RC2 也来了">WordPress 2.5 RC2 也来了</a></li><li><a href="http://hellobmw.com/archives/using-gravatar-in-wordpress-25.html" title="在 WordPress 2.5 中使用 Gravatar">在 WordPress 2.5 中使用 Gravatar</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html">原文地址</a>｜<a href="http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html#comments">7 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>众所周知，老版本的 WordPress 生成的数据库表的编码是 latin1，也就是 ISO-8859-1，这种编码对中文支持不好，直接的影响就是使用 phpMyAdmin 备份出来的表里面中文全部是乱码，上次我还<a href="http://hellobmw.com/archives/a-plugin-which-old-wordpress-users-must-use.html">专门介绍</a>了 wp-db-backup 这个插件，用它才能成功地将老 WordPress 的数据库备份出来，前提是不破坏中文。</p>
<p>今天我们将利用它备份出来的数据库，彻底地将 WordPress 的<strong>十</strong>个表的编码从 <strong>latin1-swedish-ci</strong> 转为 <strong>utf8-general-ci</strong>。下面我以 step by step 的形式列一下步骤：</p>
<ol>
<li>使用 wp-db-backup 备份<strong>所有</strong>数据库表，以防操作失败造成毁灭性后果。</li>
<li>确认第一步备份的数据库可用。压缩包在下载过程中很容易损坏。</li>
<li>解压出 SQL 文件，使用 UltraEdit 之类<strong>强大</strong>一点的文本编辑器打开。</li>
<li>查找“DEFAULT CHARSET=latin1”，把 WordPress 自己的十个表的这个字符串改为“DEFAULT CHARSET=utf8”。插件建立的表就不要改了。</li>
<li><strong>危险的一步！</strong>使用 phpMyAdmin 将 WordPress 的数据库所有表全部 Drop 掉！</li>
<li>导入你刚才修改过的 SQL，phpMyAdmin 支持 zip 或 gz 压缩过的，最好压缩一下再传，速度快些。</li>
<li>点击 phpMyAdmin 的 structure 查看数据库结构，那十个表的编码应该已经变为“utf8-general-ci”了。</li>
<li>最后一步。修改 wp-config.php 文件，添加这样一行，如果已经存在就改一下：<code>define('DB_CHARSET', 'utf8');</code>，OK 了啦~</li>
</ol>
<p>完成上面的步骤以后，老 WordPress 用户也可以扔掉拐杖啦（如果实在想扔的话），现在用 phpMyAdmin 备份也不会出现乱码啦。</p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/a-plugin-which-old-wordpress-users-must-use.html" title="一个老 WordPress 用户不得不用的插件">一个老 WordPress 用户不得不用的插件</a></li><li><a href="http://hellobmw.com/archives/wordpress-plugin-wp-dbmanager.html" title="WordPress插件：WP-DBManager">WordPress插件：WP-DBManager</a></li><li><a href="http://hellobmw.com/archives/plain-theme-for-wordpress.html" title="Plain Theme For WordPress">Plain Theme For WordPress</a></li><li><a href="http://hellobmw.com/archives/do-you-like-my-present-wordpress-theme.html" title="有人喜欢我现在这套 WordPress 主题吗">有人喜欢我现在这套 WordPress 主题吗</a></li><li><a href="http://hellobmw.com/archives/wordpress-25-rc2.html" title="WordPress 2.5 RC2 也来了">WordPress 2.5 RC2 也来了</a></li><li><a href="http://hellobmw.com/archives/using-gravatar-in-wordpress-25.html" title="在 WordPress 2.5 中使用 Gravatar">在 WordPress 2.5 中使用 Gravatar</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html">原文地址</a>｜<a href="http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html#comments">7 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/change-charset-of-old-wordpress-database-tables.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>关闭了 Dreamhost 的帐户</title>
		<link>http://hellobmw.com/archives/dreamhost-account-closed.html</link>
		<comments>http://hellobmw.com/archives/dreamhost-account-closed.html#comments</comments>
		<pubDate>Fri, 28 Mar 2008 06:34:00 +0000</pubDate>
		<dc:creator>北极冰仔</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[dreamhost]]></category>

		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://hellobmw.com/?p=1035</guid>
		<description><![CDATA[<p>还有半个月不到，一年的 <a href="http://www.dreamhost.com/" class="external">Dreamhost</a> 帐号就要到期了，既然现在已经在 <a href="http://hellobmw.com/go/bluehost.php">Bluehost（好消息，BH 首页暂时解封了）</a>安了家，有用的数据也全做了备份，那就提前把 Dreamhost 的帐号关掉吧。</p>
<p>说心里话，离开 Dreamhost 有些不舍。在关闭帐户的操作页面上，第一行看到的字就是“<strong>Please don't go!</strong>”，心里感觉酸酸的，在这一年时间里，Dreamhost 表现得很出色，也许是像别人说的那样，我运气好被分在了一台新主机上，可是不管怎么说，从我自己的角度来评价，Dreamhost 的服务真的很棒，别的抛开不讲，只拿中途发生的那次 IP 撞 Wall 事件来说（当然错不在 DH），我最后的解决方法仅仅是在 Dreamhost 后台把撞墙的域名重新绑定换到一个新的 IP 上，如此简单。这事要搁在包括 Bluehost 在内的众多主机商这儿，可能唯一的解决方法就只有购买独立 IP 了。另外就是 Dreamhost 的 panel，易用性绝对在使用 cPanel 的其它主机商之上，之前 Shawn 还跟我讲起，他至今还在怀念 Dreamhost 的 panel。</p>
<p>要离开 Dreamhost 了，在评价一栏，我选择了“I'm crazy, but I must!”，是的，如果它的价格不是那么贵，可能我也不会想换到 Bluehost 上来，我很庆幸 Dreamhost 在我心里留下的是个好印象。当然，如果我不是现在离开，而是某天我所在的那台主机不再“新”，跟别人一样报怨“Dreamhost sucks”的时候再被迫离开，恐怕又是另一番景象吧！</p>
<p>再见了，Dreamhost！</p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/moved-to-bluehost.html" title="已经彻底搬到新家 Bluehost 了">已经彻底搬到新家 Bluehost 了</a></li><li><a href="http://hellobmw.com/archives/bluehost-purchased.html" title="Bluehost 已经购买">Bluehost 已经购买</a></li><li><a href="http://hellobmw.com/archives/moving.html" title="要搬家了">要搬家了</a></li><li><a href="http://hellobmw.com/archives/to-change-hosting-provider-next-year.html" title="明年打算换主机">明年打算换主机</a></li><li><a href="http://hellobmw.com/archives/birthday-google-dreamhost.html" title="Birthday: Google & Dreamhost">Birthday: Google & Dreamhost</a></li><li><a href="http://hellobmw.com/archives/about-referrals-of-dreamhost-promo-code.html" title="Dreamhost的Promo Code优惠码推介">Dreamhost的Promo Code优惠码推介</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/dreamhost-account-closed.html">原文地址</a>｜<a href="http://hellobmw.com/archives/dreamhost-account-closed.html#comments">16 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>
]]></description>
			<content:encoded><![CDATA[<p>还有半个月不到，一年的 <a href="http://www.dreamhost.com/" class="external">Dreamhost</a> 帐号就要到期了，既然现在已经在 <a href="http://hellobmw.com/go/bluehost.php">Bluehost（好消息，BH 首页暂时解封了）</a>安了家，有用的数据也全做了备份，那就提前把 Dreamhost 的帐号关掉吧。</p>
<p>说心里话，离开 Dreamhost 有些不舍。在关闭帐户的操作页面上，第一行看到的字就是“<strong>Please don't go!</strong>”，心里感觉酸酸的，在这一年时间里，Dreamhost 表现得很出色，也许是像别人说的那样，我运气好被分在了一台新主机上，可是不管怎么说，从我自己的角度来评价，Dreamhost 的服务真的很棒，别的抛开不讲，只拿中途发生的那次 IP 撞 Wall 事件来说（当然错不在 DH），我最后的解决方法仅仅是在 Dreamhost 后台把撞墙的域名重新绑定换到一个新的 IP 上，如此简单。这事要搁在包括 Bluehost 在内的众多主机商这儿，可能唯一的解决方法就只有购买独立 IP 了。另外就是 Dreamhost 的 panel，易用性绝对在使用 cPanel 的其它主机商之上，之前 Shawn 还跟我讲起，他至今还在怀念 Dreamhost 的 panel。</p>
<p>要离开 Dreamhost 了，在评价一栏，我选择了“I'm crazy, but I must!”，是的，如果它的价格不是那么贵，可能我也不会想换到 Bluehost 上来，我很庆幸 Dreamhost 在我心里留下的是个好印象。当然，如果我不是现在离开，而是某天我所在的那台主机不再“新”，跟别人一样报怨“Dreamhost sucks”的时候再被迫离开，恐怕又是另一番景象吧！</p>
<p>再见了，Dreamhost！</p>
<div class="entry-related"><h3>Related Posts</h3><ul><li><a href="http://hellobmw.com/archives/moved-to-bluehost.html" title="已经彻底搬到新家 Bluehost 了">已经彻底搬到新家 Bluehost 了</a></li><li><a href="http://hellobmw.com/archives/bluehost-purchased.html" title="Bluehost 已经购买">Bluehost 已经购买</a></li><li><a href="http://hellobmw.com/archives/moving.html" title="要搬家了">要搬家了</a></li><li><a href="http://hellobmw.com/archives/to-change-hosting-provider-next-year.html" title="明年打算换主机">明年打算换主机</a></li><li><a href="http://hellobmw.com/archives/birthday-google-dreamhost.html" title="Birthday: Google & Dreamhost">Birthday: Google & Dreamhost</a></li><li><a href="http://hellobmw.com/archives/about-referrals-of-dreamhost-promo-code.html" title="Dreamhost的Promo Code优惠码推介">Dreamhost的Promo Code优惠码推介</a></li></ul></div>	<hr noshade style="margin:0;height:1px" />
	<p><small>&copy; <a href="http://hellobmw.com">北极冰仔</a>, 2008.｜<a href="http://hellobmw.com/archives/dreamhost-account-closed.html">原文地址</a>｜<a href="http://hellobmw.com/archives/dreamhost-account-closed.html#comments">16 comments</a></small></p>
	<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"rel="license"  class="external">Creative Commons License</a>｜Digital FingerPrint: 7b7911f00ecf2c9541e8c7ccd3cf7317</small></p>]]></content:encoded>
			<wfw:commentRss>http://hellobmw.com/archives/dreamhost-account-closed.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
