<?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>Leaf Duo &#187; Uncategorized</title>
	<atom:link href="http://blog.leafduo.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.leafduo.com</link>
	<description>All About My Life and Information Technology</description>
	<lastBuildDate>Mon, 13 Feb 2012 12:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>VMWare Fusion 装 Gentoo⋯⋯</title>
		<link>http://blog.leafduo.com/06/installing-gentoo-on-vmware-fusion/</link>
		<comments>http://blog.leafduo.com/06/installing-gentoo-on-vmware-fusion/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 07:26:06 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=282</guid>
		<description><![CDATA[发现其它发行版真的没法胜任开发工作，而我又不喜欢自己编译，Ubuntu 里面的 nginx 缺少我需要用的模块，真伤心，本来想在虚拟机里弄一个不用编译的发行版来着，看样子还是得 Gentoo 出马。 VMWare Fusion 又傲娇了，又是驱动问题，偷懒用 genkernel 就好了，可谁让我这么勤奋呢？ lspci 告诉我们，VMWare 有个设备叫 00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)，查到对应的内核选项是 CONFIG_FUSION，记得选上。这样就解决了启动的时候找不到分区的问题⋯⋯ 还有一个问题是，启动到一半说 Freeing unused kernel memory，然后就死掉了，是新引入的 OpenRC 的问题，解决办法在这里。 Happy &#8230; <a href="http://blog.leafduo.com/06/installing-gentoo-on-vmware-fusion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>发现其它发行版真的没法胜任开发工作，而我又不喜欢自己编译，Ubuntu 里面的 nginx 缺少我需要用的模块，真伤心，本来想在虚拟机里弄一个不用编译的发行版来着，看样子还是得 Gentoo 出马。</p>
<p>VMWare Fusion 又傲娇了，又是驱动问题，偷懒用 genkernel 就好了，可谁让我这么勤奋呢？</p>
<p>lspci 告诉我们，VMWare 有个设备叫 00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)，查到对应的内核选项是 <a href="http://cateee.net/lkddb/web-lkddb/FUSION.html">CONFIG_FUSION</a>，记得选上。这样就解决了启动的时候找不到分区的问题⋯⋯</p>
<p>还有一个问题是，启动到一半说 Freeing unused kernel memory，然后就死掉了，是新引入的 OpenRC 的问题，解决办法在<a href="http://dev.gentoo.org/~a3li/openrc.txt">这里</a>。</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/06/installing-gentoo-on-vmware-fusion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python 判断一个变量是否是字符串</title>
		<link>http://blog.leafduo.com/31/python-tell-if-a-variable-is-a-string/</link>
		<comments>http://blog.leafduo.com/31/python-tell-if-a-variable-is-a-string/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 15:00:31 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=270</guid>
		<description><![CDATA[忏悔啊，就写了一个类还出了 bug⋯⋯ 写了单元测试还出了 bug⋯⋯ type(data) == type("") 这种办法是不行的，因为 "" 是 str 类型，如果 data 是 unicode 的话这种判断就不成立了，而应该采用这种办法：isinstance(data, basestring)，其中 basestring 是 str 和 unicode 两个类的父类。 期待 python 3k⋯⋯]]></description>
			<content:encoded><![CDATA[<p>忏悔啊，就写了一个类还出了 bug⋯⋯</p>
<p>写了单元测试还出了 bug⋯⋯</p>
<p><code>type(data) == type("")</code> 这种办法是不行的，因为 "" 是 str 类型，如果 data 是 unicode 的话这种判断就不成立了，而应该采用这种办法：<code>isinstance(data, basestring)</code>，其中 basestring 是 str 和 unicode 两个类的父类。</p>
<p>期待 python 3k⋯⋯</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/31/python-tell-if-a-variable-is-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://blog.leafduo.com/23/hello-world/</link>
		<comments>http://blog.leafduo.com/23/hello-world/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 10:19:23 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blogging]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/23/hello-world/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

