<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/wordpress-mu-1.1.1" -->
<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/"
	>

<channel>
	<title>王斌的Blog</title>
	<link>http://my.donews.com/wangbin1979</link>
	<description>想飞之心，永远不死！</description>
	<pubDate>Sun, 24 Feb 2008 16:49:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=wordpress-mu-1.1.1</generator>
	<language>en</language>
			<item>
		<title>gentoo上mt-daapd的bug</title>
		<link>http://my.donews.com/wangbin1979/2008/02/25/post-080225-003903-626/</link>
		<comments>http://my.donews.com/wangbin1979/2008/02/25/post-080225-003903-626/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 16:41:04 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[gentoo]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2008/02/25/post-080225-003903-626/</guid>
		<description><![CDATA[在家里的server上装了个mt-daapd来共享音乐，结果emerge之后却启动不起来，显示错误信息如下：
shushan music # /etc/init.d/mt-daapd start
mDNSResponder
 * ERROR:  Some services needed are missing.  Run
 *         './mt-daapd b... ]]></description>
			<content:encoded><![CDATA[<p>在家里的server上装了个mt-daapd来共享音乐，结果emerge之后却启动不起来，显示错误信息如下：</p>
<p><code>shushan music # /etc/init.d/mt-daapd start<br />
mDNSResponder<br />
 * ERROR:  Some services needed are missing.  Run<br />
 *         './mt-daapd broken' for a list of those<br />
 *         services.  mt-daapd was not started.<br />
shushan music # emerge -pv mt-daapd<br />
</code></p>
<p>上<a href="http://www.gentoo.org">gentoo</a>的<a href="http://forums.gentoo.org/">论坛</a>上一搜，发现有人已经发现了这个问题，并有人提供了<a href="http://forums.gentoo.org/viewtopic-t-628046-highlight-mtdaapd+broken.html">解决的方法</a>：</p>
<p>编辑/etc/init.d/mt-daapd，替换下面的行：</p>
<p>need mDNSResponder </p>
<p>为：</p>
<p>need mDNSResponderPosix</p>
<p>然后就可以正常启动了。</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2008/02/25/post-080225-003903-626/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VritualBox支持宽屏</title>
		<link>http://my.donews.com/wangbin1979/2008/02/24/post-080224-174133-944/</link>
		<comments>http://my.donews.com/wangbin1979/2008/02/24/post-080224-174133-944/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 09:47:30 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2008/02/24/post-080224-174133-944/</guid>
		<description><![CDATA[最近因为需要使用Windows，就在笔记本上装了一个VirtualBox，不过分辨率最大只有1024&#215;768，而我的笔记本是宽屏的，看起来很不舒服，就搜索了一下，发现VritualBox是支持宽屏的，不过需要安装g... ]]></description>
			<content:encoded><![CDATA[<p>最近因为需要使用Windows，就在笔记本上装了一个VirtualBox，不过分辨率最大只有1024&#215;768，而我的笔记本是宽屏的，看起来很不舒服，就搜索了一下，发现VritualBox是支持宽屏的，不过需要安装guest additions，而ubuntu gutsy默认并没有装，可以点击 &#8220;菜单/Devices/Install Gust Aditions&#8221;，会出现提示要你下载相应版本的iso，下载后放到/usr/lib/virtualbox/下，注意要将iso文件改名，去掉版本号，然后再点击 &#8220;菜单/Devices/Install Gust Aditions&#8221;就会安装了，安装完重启windows，就是全屏显示了，不需要额外的配置，还是挺方便的。</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2008/02/24/post-080224-174133-944/feed/</wfw:commentRss>
		</item>
		<item>
		<title>自勉</title>
		<link>http://my.donews.com/wangbin1979/2007/08/01/post-070801-123939-540/</link>
		<comments>http://my.donews.com/wangbin1979/2007/08/01/post-070801-123939-540/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 04:41:55 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/08/01/post-070801-123939-540/</guid>
		<description><![CDATA[招摇生事，树大招风，在一些人身上是件愚行，但在一些人身上而反是明智之举。大动就是静，人巧反而拙。一个艺高胆大、聪明才智的人，就像一把锥子跟一堆钝器都放在口袋里一般，迟早... ]]></description>
			<content:encoded><![CDATA[<p><em>招摇生事，树大招风，在一些人身上是件愚行，但在一些人身上而反是明智之举。大动就是静，人巧反而拙。一个艺高胆大、聪明才智的人，就像一把锥子跟一堆钝器都放在口袋里一般，迟早会割破布袋露出锋芒。但所谓”迟早“，那是可迟可早的事，有些人能等，有些人不能。把姿势扳高一些，当然会给人当作箭靶，但既能成箭靶，就成了明显的目。想要扬名立万，这无疑是条捷径。不然，想要沉潜应战，也得要沉潜得起才成：否则，江湖后浪逐前浪，武林新叶摧落叶，小成小败，不成器局，死了丧了败了亡了，也没人知、无人晓。对一些人来说，一生宁愿匆匆也不愿淡淡，即使从笑出人到骂由人至笑骂由人，只要率性而为、大痛大快，则又何如！</em></p>
<p>——温瑞安 《惊艳一枪》</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/08/01/post-070801-123939-540/feed/</wfw:commentRss>
		</item>
		<item>
		<title>python的csv模块有excel dialect</title>
		<link>http://my.donews.com/wangbin1979/2007/07/19/post-070719-144548-492/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/19/post-070719-144548-492/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 06:49:17 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/19/post-070719-144548-492/</guid>
		<description><![CDATA[只是一个小tip，从同事的code review comments中看到的，一般来说，我们生成csv文件，是为了给客户使用的，而绝大多数时候客户使用M$ Office来打开csv文件，而python的csv模块有excel dialect，所以在创... ]]></description>
			<content:encoded><![CDATA[<p>只是一个小tip，从同事的code review comments中看到的，一般来说，我们生成csv文件，是为了给客户使用的，而绝大多数时候客户使用M$ Office来打开csv文件，而python的csv模块有excel dialect，所以在创建csv.weiter实例的时候，指定dialect=csv.excel是个不错的选择。</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/19/post-070719-144548-492/feed/</wfw:commentRss>
		</item>
		<item>
		<title>pyblosxom 1.4 已经发布了</title>
		<link>http://my.donews.com/wangbin1979/2007/07/11/post-070711-120617-438/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/11/post-070711-120617-438/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 04:19:27 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[linux]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/11/post-070711-120617-438/</guid>
		<description><![CDATA[我今天刚刚看到，其实7月2号就已经发布了，前一段时间在家里的机器上装了一个，十分爱不释手。于是就有一段时间没在donews上写blog了，现在是先用emacs23+muse写好，svn 到家里的机器上发布，... ]]></description>
			<content:encoded><![CDATA[<p>我今天刚刚看到，其实7月2号就已经发布了，前一段时间在家里的机器上装了一个，十分爱不释手。于是就有一段时间没在donews上写blog了，现在是先用emacs23+muse写好，svn 到家里的机器上发布，然后再把生成的html代码直接帖到donews上。</p>
<p>查了一下gentoo的portage中还没有新版本，有时间试着改个ebuild来，装上尝尝鲜:P</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/11/post-070711-120617-438/feed/</wfw:commentRss>
		</item>
		<item>
		<title>小企鹅输入法终止开发</title>
		<link>http://my.donews.com/wangbin1979/2007/07/10/post-070710-155236-194/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/10/post-070710-155236-194/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 08:04:41 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[linux]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/10/post-070710-155236-194/</guid>
		<description><![CDATA[
今天在Fcitx小企鹅输入法的主页上看到作者Yuking宣布停止开发了，作者还发了一篇文章做了解释。


从开始接触Linux开始就在用fcitx了，感觉非常顺手，现在停止开发了，真是可惜啊。不过作为... ]]></description>
			<content:encoded><![CDATA[<p>
今天在Fcitx小企鹅输入法的<a href="http://www.fcitx.org/main/">主页</a>上看到作者Yuking宣布停止开发了，作者还发了一篇<a href="http://www.fcitx.org/main/?q=node/123">文章</a>做了解释。
</p>
<p>
从开始接触Linux开始就在用fcitx了，感觉非常顺手，现在停止开发了，真是可惜啊。不过作为一个开源项目，开发6年之久，作者也不容易，希望有人能够接手Fcitx项目，也希望作者能够在一段时间调整之后，能够回来继续维护这个项目，毕竟自己6年的心血，放弃了太可惜了。</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/10/post-070710-155236-194/feed/</wfw:commentRss>
		</item>
		<item>
		<title>有趣的shell脚本</title>
		<link>http://my.donews.com/wangbin1979/2007/07/10/post-070710-154507-139/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/10/post-070710-154507-139/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 07:47:26 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[shell]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/10/post-070710-154507-139/</guid>
		<description><![CDATA[从ubuntu-cn irc 上看到的，非常好玩：


while : ;do for i in 0_0 o_O -_O -_o -_- o_- O_- O_o ; do clear;echo $i;sleep .1 ;done;done;
... ]]></description>
			<content:encoded><![CDATA[<p>从ubuntu-cn irc 上看到的，非常好玩：</p>
<p>
<code><br />
while : ;do for i in 0_0 o_O -_O -_o -_- o_- O_- O_o ; do clear;echo $i;sleep .1 ;done;done;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/10/post-070710-154507-139/feed/</wfw:commentRss>
		</item>
		<item>
		<title>aptitude new options</title>
		<link>http://my.donews.com/wangbin1979/2007/07/07/post-070707-131155-920/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/07/post-070707-131155-920/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 05:12:27 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[debian]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/07/post-070707-131155-920/</guid>
		<description><![CDATA[今天更新系统，发现用 aptitude update 的时候有提示说

W: The "upgrade" command is deprecated; use "safe-upgrade" instead.

原来最近aptitude升级到了0.4.5.4，用 safe-upgrade 代替了原来的 upgrade ，用 full-upgrade 代替了... ]]></description>
			<content:encoded><![CDATA[<p>今天更新系统，发现用 <strong>aptitude update</strong> 的时候有提示说</p>
<pre>
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
</pre>
<p>原来最近aptitude升级到了0.4.5.4，用 <strong>safe-upgrade</strong> 代替了原来的 <strong>upgrade</strong> ，用 <strong>full-upgrade</strong> 代替了原来的 <strong>dist-upgrade</strong>。</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/07/post-070707-131155-920/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Gentoo的编译参数</title>
		<link>http://my.donews.com/wangbin1979/2007/07/03/post-070703-232809-578/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/03/post-070703-232809-578/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 15:28:52 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[gentoo]]></category>

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

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/03/post-070703-232809-578/</guid>
		<description><![CDATA[Gentoo一个最大的好处就在于其文档相当的全面，今天在maillist上看到有人提到这篇Compilation Optimization Guide，读过之后对gentoo系统的认识又深入了一点，记几点心得。

CFLAGS 是为编译C语言编写的... ]]></description>
			<content:encoded><![CDATA[<p>Gentoo一个最大的好处就在于其文档相当的全面，今天在maillist上看到有人提到这篇<a href="http://www.gentoo.org/doc/en/gcc-optimization.xml">Compilation Optimization Guide</a>，读过之后对gentoo系统的认识又深入了一点，记几点心得。</p>
<ol>
<li><strong>CFLAGS</strong> 是为编译C语言编写的代码所设置的环境变量， <strong>CXXFLAGS</strong> 是为编译C++代码所设置的环境变量。</li>
<li><strong>-march</strong> 参数告诉编译器为指定的cpu架构做优化，只有当没有合适的 <strong>-march</strong> 参数时，才会用到 <strong>-mcpu</strong> 和 <strong>-mtune</strong>，因为后二者都不是为指定的cpu优化的，更generic一些，其中 <strong>-mtune</strong> 比 <strong>-mcpu</strong> 更generic。</li>
<li><strong>-O2</strong> 是推荐的参数， <strong>-O3</strong> 并不适合 <strong>GCC4.x</strong>。 <strong>-Os</strong> 算是 <strong>-O2</strong> 的加强版，但是只用于硬盘或者cpu cache非常小的情况。 <strong>-O</strong> 参数的最高级别就是3,原文甚至给出了gcc的源码来证明，即使设成 <strong>-O9</strong> 也没有效果。</li>
<li><strong>-pipe</strong> 参数会加快编译速度。</li>
<li><strong>-fomit-frame-pointer</strong> 会减小编译出来的代码，但是有一定的风险，会是调试程序变得困难，特别是调试java程序。</li>
<li>其余参数都可以忽略不计，只要设置好上面的参数，就是最安全的。</li>
</ol>
<p>我的参数设置：</p>
<pre>
CFLAGS=&quot;-march=athlon-xp -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/03/post-070703-232809-578/feed/</wfw:commentRss>
		</item>
		<item>
		<title>在emacs中将一块代码注释掉</title>
		<link>http://my.donews.com/wangbin1979/2007/07/03/post-070703-011124-885/</link>
		<comments>http://my.donews.com/wangbin1979/2007/07/03/post-070703-011124-885/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 17:11:55 +0000</pubDate>
		<dc:creator>Wang Bin</dc:creator>
		
		<category><![CDATA[emacs]]></category>

		<guid isPermaLink="false">http://my.donews.com/wangbin1979/2007/07/03/post-070703-011124-885/</guid>
		<description><![CDATA[在emacs中注释掉一块代码，可以选中要注释掉的代码块，然后

M+x comment-region

另外emacs还有 comment-or-uncomment-region 命令，十分方便。... ]]></description>
			<content:encoded><![CDATA[<p>在emacs中注释掉一块代码，可以选中要注释掉的代码块，然后</p>
<p><code><br />
M+x comment-region<br />
</code></p>
<p>另外emacs还有 <strong>comment-or-uncomment-region</strong> 命令，十分方便。</p>
]]></content:encoded>
			<wfw:commentRss>http://my.donews.com/wangbin1979/2007/07/03/post-070703-011124-885/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
