<?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; Leaf Duo</title>
	<atom:link href="http://blog.leafduo.com/author/admin/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.leafduo.com</link>
	<description>All About My Life and Information Technology</description>
	<lastBuildDate>Sun, 28 Feb 2010 14:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>开学前一天</title>
		<link>http://blog.leafduo.com/29/one-day-before-study</link>
		<comments>http://blog.leafduo.com/29/one-day-before-study#comments</comments>
		<pubDate>Sun, 28 Feb 2010 14:39:29 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=223</guid>
		<description><![CDATA[今天是大一下开学前一天，宿舍里的网络该买卡续了，我们这是包月的卡，每月换。
我们宿舍就一个能用校园网上网的，而且旁边的超市没开，于是就准备去淘宝买，看好货，拍下，付款，卡通余额不足……不知道啥时候卡上已经没钱了……
于是去存钱，我是带了点现金来学校，没有往卡上打钱，于是冒雪来到新主楼，插卡，输密码，然后发现存款和取款那里都打着叉号……仔细一看发现，ATM 机上写着“本积攒不提供存款和取款功能”，不能存款取款叫什么存取款一体机？我抑郁。
于是冒着大学来到大运村招行，插卡，输密码，这 ATM 机漏电！每输一个数字被电一下，我被电 n 下后终于把钱存好了，出门，突然想再存 100，有前车之鉴，准备换一个 ATM 机，不料这个 ATM 机的触摸屏极其难用，废了九牛二虎之类终于存上了 100 块钱……
回去的路上准备买个包子吃，然后人家说卖完了……
希望现在把霉运都用完吧……开学了，加油！
]]></description>
			<content:encoded><![CDATA[<p>今天是大一下开学前一天，宿舍里的网络该买卡续了，我们这是包月的卡，每月换。</p>
<p>我们宿舍就一个能用校园网上网的，而且旁边的超市没开，于是就准备去淘宝买，看好货，拍下，付款，卡通余额不足……不知道啥时候卡上已经没钱了……</p>
<p>于是去存钱，我是带了点现金来学校，没有往卡上打钱，于是冒雪来到新主楼，插卡，输密码，然后发现存款和取款那里都打着叉号……仔细一看发现，ATM 机上写着“本积攒不提供存款和取款功能”，不能存款取款叫什么存取款一体机？我抑郁。</p>
<p>于是冒着大学来到大运村招行，插卡，输密码，这 ATM 机漏电！每输一个数字被电一下，我被电 n 下后终于把钱存好了，出门，突然想再存 100，有前车之鉴，准备换一个 ATM 机，不料这个 ATM 机的触摸屏极其难用，废了九牛二虎之类终于存上了 100 块钱……</p>
<p>回去的路上准备买个包子吃，然后人家说卖完了……</p>
<p>希望现在把霉运都用完吧……开学了，加油！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/29/one-day-before-study/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>新网 -&gt; GoDaddy</title>
		<link>http://blog.leafduo.com/13/xinnet-godaddy</link>
		<comments>http://blog.leafduo.com/13/xinnet-godaddy#comments</comments>
		<pubDate>Fri, 26 Feb 2010 08:59:13 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[xinnet]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=222</guid>
		<description><![CDATA[我也在国内呆烦了，虽然没有国内主机，但是域名放在国内还是有点……于是搬出去了。
先来看此人的悲惨经历：http://blog.s135.com/domain_transfer/ （仅供对照用……）
我以为代理商得捞一笔钱吧，不捞钱的话起码也得让你寄点材料啥的，比如申请表啦，身份证复印件啦，然后就是等邮政的速度……（上面链接里用快递公司寄过去是否违反邮政专营的规定？）然后等待代理商给你转移码，之后就简单了，GoDaddy 转入，5 天的等待就 OK 了。
没想到这个代理商出奇的有良，我问：“新网域名转出需要啥手续？”他说不需要手续，然后问我域名和邮箱，之后转移码就出现在我的邮箱里了……我顿时就震惊了……瞬间转入 GoDaddy，等待 5 天，生效了……
现在查 whois 就已经是 GoDaddy 下面的了。
强烈曝光下这有良的代理商：http://yikay.taobao.com/ （广告自重……）
有良的代理为我省了一年的域名费用，邮寄资料的费用和好多天的时间，thx。
PS: GoDaddy 的后台好像不支持 Chrome，我不是很喜欢它那个后台。
]]></description>
			<content:encoded><![CDATA[<p>我也在国内呆烦了，虽然没有国内主机，但是域名放在国内还是有点……于是搬出去了。</p>
<p>先来看此人的悲惨经历：<a href="http://blog.s135.com/domain_transfer/">http://blog.s135.com/domain_transfer/</a> （仅供对照用……）</p>
<p>我以为代理商得捞一笔钱吧，不捞钱的话起码也得让你寄点材料啥的，比如申请表啦，身份证复印件啦，然后就是等邮政的速度……（上面链接里用快递公司寄过去是否违反邮政专营的规定？）然后等待代理商给你转移码，之后就简单了，GoDaddy 转入，5 天的等待就 OK 了。</p>
<p>没想到这个代理商出奇的有良，我问：“新网域名转出需要啥手续？”他说不需要手续，然后问我域名和邮箱，之后转移码就出现在我的邮箱里了……我顿时就震惊了……瞬间转入 GoDaddy，等待 5 天，生效了……</p>
<p>现在查 whois 就已经是 GoDaddy 下面的了。</p>
<p>强烈曝光下这有良的代理商：<a href="http://yikay.taobao.com/">http://yikay.taobao.com/</a> （广告自重……）</p>
<p>有良的代理为我省了一年的域名费用，邮寄资料的费用和好多天的时间，thx。</p>
<p>PS: GoDaddy 的后台好像不支持 Chrome，我不是很喜欢它那个后台。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/13/xinnet-godaddy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用 mod_rewrite 重定向 WordPress 的 RSS</title>
		<link>http://blog.leafduo.com/34/redirect-rss-of-wordpress-using-mod_rewrite</link>
		<comments>http://blog.leafduo.com/34/redirect-rss-of-wordpress-using-mod_rewrite#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:36:34 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=221</guid>
		<description><![CDATA[不知道为啥，原来的重定向失效了……
似乎现在没有什么好用的重定向插件，要么是不支持 Feedsky，要么没法用自定义域名，咱不太会 PHP，也懒得 hack 了，所以就祭出 Apache 来做这件事，当然 mod_rewrite 是少不了了。
先说方法，后说其他。在 .htaccess 的最上面加这么几行：

1
2
3
4
5
6
7
8
9
10
# BEGIN user-defined
&#60;IfModule mod_rewrite.c&#62;
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner&#124;FeedValidator&#124;feedsky) [NC]
RewriteCond %{REQUEST_URI} ^/feed.* [NC]
RewriteRule .* http://feed.leafduo.com/ [NC,L,R=301]
&#60;/IfModule&#62;
&#160;
#END user-defined

感觉用 mod_rewrite 做这件事比较合适，不用经过 WP 不说，效果还比较好，所有访问原先 feed 的都被重定向了。
大家都知道，Feedsky 爬虫的 UA 是这样的："Mozilla 5.0 (compatible; Feedsky 1.0; http://www.feedsky.com)"，所以我们就能通过过滤 UA 来分别对待爬虫和其他访问者，对于爬虫不做重定向，其他访问者一律重定向。
需要一点正则表达式知识和一点 Apache 的配置，先是参考了这个，说了一大堆，没仔细看，然后准备自己写。找到一个 mod_rewrite 的 Cheat Sheet，感觉比 Apache 的文档好懂多了。
然后就写出来了，一开始是放在了 .htaccess 的最下面，发现怎么都不起作用，后来挪到最上面了，应该是跟 WP-SuperCache 的 rewrite [...]]]></description>
			<content:encoded><![CDATA[<p>不知道为啥，原来的重定向失效了……</p>
<p>似乎现在没有什么好用的重定向插件，要么是不支持 Feedsky，要么没法用自定义域名，咱不太会 PHP，也懒得 hack 了，所以就祭出 Apache 来做这件事，当然 mod_rewrite 是少不了了。</p>
<p>先说方法，后说其他。在 .htaccess 的最上面加这么几行：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># BEGIN user-defined</span>
&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_rewrite.c&gt;
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span>
<span style="color: #00007f;">RewriteBase</span> /
<span style="color: #00007f;">RewriteCond</span> %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator|feedsky) [NC]
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_URI} ^/feed.* [NC]
<span style="color: #00007f;">RewriteRule</span> .* http://feed.leafduo.com/ [NC,L,R=<span style="color: #ff0000;">301</span>]
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;
&nbsp;
<span style="color: #adadad; font-style: italic;">#END user-defined</span></pre></td></tr></table></div>

<p>感觉用 mod_rewrite 做这件事比较合适，不用经过 WP 不说，效果还比较好，所有访问原先 feed 的都被重定向了。</p>
<p>大家都知道，Feedsky 爬虫的 UA 是这样的："Mozilla 5.0 (compatible; Feedsky 1.0; http://www.feedsky.com)"，所以我们就能通过过滤 UA 来分别对待爬虫和其他访问者，对于爬虫不做重定向，其他访问者一律重定向。</p>
<p>需要一点正则表达式知识和一点 Apache 的配置，先是参考了<a href="http://www.askapache.com/htaccess/redirecting-wordpress-feeds-to-feedburner.html">这个</a>，说了一大堆，没仔细看，然后准备自己写。找到一个 mod_rewrite 的 <a href="http://borkweb.com/story/apache-rewrite-cheatsheet">Cheat Sheet</a>，感觉比 Apache 的文档好懂多了。</p>
<p>然后就写出来了，一开始是放在了 .htaccess 的最下面，发现怎么都不起作用，后来挪到最上面了，应该是跟 WP-SuperCache 的 rewrite 规则冲突了，看到它的规则里有带 [L] 的。</p>
<p>目前看来工作良好。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/34/redirect-rss-of-wordpress-using-mod_rewrite/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mac 下将 CNNIC 根证书设为不信任</title>
		<link>http://blog.leafduo.com/32/disable-cnnic-root-on-mac</link>
		<comments>http://blog.leafduo.com/32/disable-cnnic-root-on-mac#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:43:32 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[CA]]></category>
		<category><![CDATA[CNNIC]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=220</guid>
		<description><![CDATA[只说方法，不说其他。
打开 Keychain Access.app（在 Utilities 里面），点左边 System Roots，找到 CNNIC ROOT，双击点开，展开 Trust，When using this certificate 改成 Never Trust，关闭窗口，会让你输入密码，然后就 OK 了。点开 https://www.enum.cn/ 测试一下，Safari 会让你点一堆 Continue， Chrome 直接就是一片红，这样就 OK 了。
配图一张：（不要问为什么显示不出来）





From blog


为啥呢，可能 CNNIC 做了太多不该做的吧。
PS：Windows 的同学来这里看吧（感谢原作者）。
]]></description>
			<content:encoded><![CDATA[<p>只说方法，不说其他。</p>
<p>打开 Keychain Access.app（在 Utilities 里面），点左边 System Roots，找到 CNNIC ROOT，双击点开，展开 Trust，When using this certificate 改成 Never Trust，关闭窗口，会让你输入密码，然后就 OK 了。点开 <a href="https://www.enum.cn/">https://www.enum.cn/</a> 测试一下，Safari 会让你点一堆 Continue， Chrome 直接就是一片红，这样就 OK 了。</p>
<p>配图一张：（不要问为什么显示不出来）</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/QLtCv1iO3E6oWhLqWY1KNQ?feat=embedwebsite"><img src="http://lh5.ggpht.com/_7Y_7M0vQVWs/S2BC02u1uOI/AAAAAAAACSw/vjAHgZ7SOvk/s400/Screen%20shot%202010-01-27%20at%209.40.40%20PM.png" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/LeafDuo/Blog?feat=embedwebsite">blog</a></td>
</tr>
</table>
<p>为啥呢，可能 CNNIC 做了太多不该做的吧。</p>
<p>PS：Windows 的同学来<a href="http://blog.lzzxt.com/394">这里</a>看吧（感谢原作者）。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/32/disable-cnnic-root-on-mac/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009 总结 &amp; 2010 展望（伪）</title>
		<link>http://blog.leafduo.com/04/2009-2010-fake</link>
		<comments>http://blog.leafduo.com/04/2009-2010-fake#comments</comments>
		<pubDate>Fri, 01 Jan 2010 13:58:04 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=219</guid>
		<description><![CDATA[2009 年 1 月 3 日，考完保送考试，之后知道结果，之后玩到 9 月，嗯，这总结够简单，要说上半年做了什么正事的话，或许就是拿到了驾照了吧？下半年，开学了，忙碌，不过也很快乐，不过觉得很多事情没有做好，很多该做的事情没有做。
2010 年，先考好期末考试吧……其他的，好好学习，天天向上吧。提高效率，学的更深更多，省下更多时间，用来干啥呢，嗯，当然是玩。
已经说了是“伪”，所以还是等寒假再来写总结与展望吧，现在还是专心搞好期末考试。
喜欢这个默认主题，就是 font-size 应该调整一下，来适应中文。
祝福我吧。  
]]></description>
			<content:encoded><![CDATA[<p>2009 年 1 月 3 日，考完保送考试，之后知道结果，之后玩到 9 月，嗯，这总结够简单，要说上半年做了什么正事的话，或许就是拿到了驾照了吧？下半年，开学了，忙碌，不过也很快乐，不过觉得很多事情没有做好，很多该做的事情没有做。</p>
<p>2010 年，先考好期末考试吧……其他的，好好学习，天天向上吧。提高效率，学的更深更多，省下更多时间，用来干啥呢，嗯，当然是玩。</p>
<p>已经说了是“伪”，所以还是等寒假再来写总结与展望吧，现在还是专心搞好期末考试。</p>
<p>喜欢这个默认主题，就是 font-size 应该调整一下，来适应中文。</p>
<p>祝福我吧。 <img src='http://blog.leafduo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/04/2009-2010-fake/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google 翻译活动</title>
		<link>http://blog.leafduo.com/40/google-translate-event</link>
		<comments>http://blog.leafduo.com/40/google-translate-event#comments</comments>
		<pubDate>Fri, 18 Dec 2009 09:06:40 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[buaa]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Camp]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=217</guid>
		<description><![CDATA[（可能是手残了，这篇忘了发出来，这个是××天前写的……）
Google 翻译发布了一些新功能，于是乎 Google 就找北航和北邮的 Google Camp 的一些人去参加一个活动，试用&#038;推广下。作为北航 Google Camp 的一员，我有幸去 Google 中国总部参加活动……时间定的是上周四。
一大早我们一行人就起床了，7:30 就到绿园东北角集合了，然后我们进行了一个大活动前的小活动，这个活动是由猥琐的某人提出的──用落叶摆出 Google Camp 的造型，恰逢那天是 Thanks Giving Day，所以我们又摆了一个简略的 Thanks Giving 出来。活动比想象的顺利，没有收到保安、大妈的阻拦，落叶也顺利地收集到了。我有一些真相放在下面，更多真相请看北航 GC 校内（人人？）相册。
然后我们就步行（其实是跑步，因为时间有点晚……）前往 Google 中国总部，进去之后领了一张贴纸，贴在身上，上面有名字和访问时间，走的时候贴在大厅里的一个贴满贴纸的圆球上……等待了一会之后（北邮有人还没到），我们穿过一个个门，刷开门禁，进了一个会议室。
有几个工程师和一个领我们进来的 MM 跟我们一起活动，首先是一个台湾工程师讲人生经验，讲了两条，是第一条和第二条。然后另一个工程师来讲解&#038;演示 Google 翻译的新功能。之后是个小活动，6人一组，要求大家根据发的纸条上的任务做一个小表演，都是跟 Google 翻译相关的任务，我们的表演是×××××××；然后 MM 说要我们做翻译策划，要跟 Google 翻译有关，然后如果做的好的话会实现出来，我们组的策划是××××××××。最后是发 Google Logo 的 T-shirt，我领了两件，一件 M 号的绿色，一件 XL 号的红色，然后就结束啦。我这的真相还是不多，看真相还是移步北航 GC 校内的相册。
Google 没管饭，我们自己花钱吃的中午饭……（说是人太多……）
说点随便看见的东西：Google 的冬枣很好吃，我回来都想买冬枣了……忘了多吃点。门禁很多，似乎到处都是。标识一般都是双语的，也有的只有英语，也有些只有中文。会议室门外的打印机叫王羲之，会议室对面的房间（似乎是工作室之类）门上牌子上写着生化危机（我觉得可以写个生化危险，再画上医院里生化危险的标志）。
明天策划被选中的组（北航的另一个组）的成员去 Google 吃饭&#038;商量具体活动情况，杯具啊……
PS：你看我给了 Google Camp 的校内多少链接，给了 Google 多少链接，可不可以给劳务费？


]]></description>
			<content:encoded><![CDATA[<p>（可能是手残了，这篇忘了发出来，这个是××天前写的……）</p>
<p>Google 翻译发布了一些<a href="http://googlechinablog.com/2009/11/google_24.html">新功能</a>，于是乎 Google 就找北航和北邮的 Google Camp 的一些人去参加一个活动，试用&#038;推广下。作为北航 Google Camp 的一员，我有幸去 Google 中国总部参加活动……时间定的是上周四。</p>
<p>一大早我们一行人就起床了，7:30 就到<a href="http://maps.google.com/maps?q=39.98462,116.34768&#038;num=1&#038;sll=39.904667,116.408198&#038;sspn=0.548898,1.024475&#038;ie=UTF8&#038;ll=39.984605,116.34765&#038;spn=0.001328,0.002838&#038;z=19&#038;iwloc=near">绿园东北角</a>集合了，然后我们进行了一个大活动前的小活动，这个活动是由猥琐的<a href="http://twitter.com/victorhu_cn">某人</a>提出的──用落叶摆出 Google Camp 的造型，恰逢那天是 Thanks Giving Day，所以我们又摆了一个简略的 Thanks Giving 出来。活动比想象的顺利，没有收到保安、大妈的阻拦，落叶也顺利地收集到了。我有一些真相放在下面，更多真相请看<a href="http://renren.com/profile.do?id=280450736">北航 GC 校内</a>（人人？）<a href="http://photo.renren.com/getalbum.do?id=341734646&#038;owner=280450736&#038;ref=minifeed">相册</a>。</p>
<p>然后我们就步行（其实是跑步，因为时间有点晚……）前往 <a href="http://maps.google.com/maps/mm?ie=UTF8&#038;hl=en&#038;ll=39.993236,116.32984&#038;spn=0.001327,0.00386&#038;z=19">Google 中国总部</a>，进去之后领了一张贴纸，贴在身上，上面有名字和访问时间，走的时候贴在大厅里的一个贴满贴纸的圆球上……等待了一会之后（北邮有人还没到），我们穿过一个个门，刷开门禁，进了一个会议室。</p>
<p>有几个工程师和一个领我们进来的 MM 跟我们一起活动，首先是一个台湾工程师讲人生经验，讲了两条，是第一条和第二条。然后另一个工程师来讲解&#038;演示 Google 翻译的<a href="http://googlechinablog.com/2009/11/google_24.html">新功能</a>。之后是个小活动，6人一组，要求大家根据发的纸条上的任务做一个小表演，都是跟 Google 翻译相关的任务，我们的表演是×××××××；然后 MM 说要我们做翻译策划，要跟 Google 翻译有关，然后如果做的好的话会实现出来，我们组的策划是××××××××。最后是发 Google Logo 的 T-shirt，我领了两件，一件 M 号的绿色，一件 XL 号的红色，然后就结束啦。我这的真相还是不多，看真相还是移步<a href="http://renren.com/profile.do?id=280450736">北航 GC 校内</a>的<a href="http://photo.renren.com/getalbum.do?id=341755916&#038;owner=280450736&#038;ref=minifeed">相册</a>。</p>
<p>Google 没管饭，我们自己花钱吃的中午饭……（说是人太多……）</p>
<p>说点随便看见的东西：Google 的冬枣很好吃，我回来都想买冬枣了……忘了多吃点。门禁很多，似乎到处都是。标识一般都是双语的，也有的只有英语，也有些只有中文。会议室门外的打印机叫王羲之，会议室对面的房间（似乎是工作室之类）门上牌子上写着生化危机（我觉得可以写个生化危险，再画上医院里生化危险的标志）。</p>
<p>明天策划被选中的组（北航的另一个组）的成员去 Google 吃饭&#038;商量具体活动情况，杯具啊……</p>
<p>PS：你看我给了 Google Camp 的校内多少链接，给了 Google 多少链接，可不可以给劳务费？</p>
<p><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.com&#038;captions=1&#038;hl=en_US&#038;feat=flashalbum&#038;RGB=0x000000&#038;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2FLeafDuo%2Falbumid%2F5410967076316253169%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
<p><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.com&#038;captions=1&#038;hl=en_US&#038;feat=flashalbum&#038;RGB=0x000000&#038;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2FLeafDuo%2Falbumid%2F5410966824692161953%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/40/google-translate-event/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Invitation</title>
		<link>http://blog.leafduo.com/47/invitation</link>
		<comments>http://blog.leafduo.com/47/invitation#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:00:47 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=216</guid>
		<description><![CDATA[Dear Miss Alice,
  Our team is going to publish a new product, something totally new. The product is about a new way of advertisement publishing system based on the Internet, a cross-platform client software and, most important, a new thought about the relationship of people, especially friends and families. Other aspects, like the future [...]]]></description>
			<content:encoded><![CDATA[<p>Dear Miss Alice,<br />
  Our team is going to publish a new product, something totally new. The product is about a new way of advertisement publishing system based on the Internet, a cross-platform client software and, most important, a new thought about the relationship of people, especially friends and families. Other aspects, like the future of our team, will be involved.<br />
We have decided to have a party in honor of the occasion. We sincerely hope you can attend the party, may I have the honor of your company? The reception will be held on the second floor of  XXX Hotel, which is located in the downtown of Beijing, on next Sunday's evening. The party will last approximately 3 hours, from 6p.m. to 9p.m. I hope you're not too busy to come. Please confirm your participation at your earliest convenience, The favor of a reply is requested.<br />
                                                                                            XXX team</p>
<p>PS: This is my English homework.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/47/invitation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>学焊接&amp;别人的杯具</title>
		<link>http://blog.leafduo.com/39/beiju</link>
		<comments>http://blog.leafduo.com/39/beiju#comments</comments>
		<pubDate>Thu, 19 Nov 2009 15:14:39 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[life]]></category>
		<category><![CDATA[beiju]]></category>
		<category><![CDATA[buaa]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=215</guid>
		<description><![CDATA[今天电子科技协会教焊接，虽然大部分人都是二系的，但我还是去凑了凑热闹，交三块钱，给元件和电路图，然后就可以开工焊接了，焊出来是两个LED交替亮的电路板，自我感觉良好，有图有真相（没有效果图，效果要接3V电源，接两节干电池样子太猥琐……在实验室忘照了）：

另贴他人杯具一枚，希望不要发生在我身上，不备份的后果（晚上拿手电+G1照的，谅解……）：





From 焊接


]]></description>
			<content:encoded><![CDATA[<p>今天电子科技协会教焊接，虽然大部分人都是二系的，但我还是去凑了凑热闹，交三块钱，给元件和电路图，然后就可以开工焊接了，焊出来是两个LED交替亮的电路板，自我感觉良好，有图有真相（没有效果图，效果要接3V电源，接两节干电池样子太猥琐……在实验室忘照了）：</p>
<p><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.com&#038;captions=1&#038;hl=en_US&#038;feat=flashalbum&#038;RGB=0x000000&#038;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2FLeafDuo%2Falbumid%2F5405829388407222833%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
<p>另贴他人杯具一枚，希望不要发生在我身上，不备份的后果（晚上拿手电+G1照的，谅解……）：</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/TW84xHQfD3P9sA3ZEsWAcg?feat=embedwebsite"><img src="http://lh6.ggpht.com/_7Y_7M0vQVWs/SwVf8MLgIPI/AAAAAAAABi4/MPJUMaMnuoU/s400/2009-11-19%2022.34.48.jpg" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/LeafDuo/jogWUG?feat=embedwebsite">焊接</a></td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/39/beiju/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PDFViewer on G1</title>
		<link>http://blog.leafduo.com/20/pdfviewer-on-g1</link>
		<comments>http://blog.leafduo.com/20/pdfviewer-on-g1#comments</comments>
		<pubDate>Sat, 12 Sep 2009 15:02:20 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[G1]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=214</guid>
		<description><![CDATA[HTC 开发了一个基于 Adobe Reader LE 2.5 的 PDFViewer，不过 G1 上直接安装这个 apk 不管用，说是只能 PDFViewer  只能运行在 HTC 设备上。我说 HTC 啊，G1 不是自家的孩子啊……歧视啊……
不过还是有强人有了 hack 的办法：
首先下载 libpdfreader.so、FilePicker.apk、PDFViewer.apk 三个文件，然后把前两个文件分别放到 /system/lib、/system/app 就 OK 了（记得先 remount /system），最后 PDFViewer.apk 按正常方法安装就行，可以用 adb，也可以先复制到 SD 卡，再用 terminal 复制到位置。
下载 &#038; 参考：
http://forum.xda-developers.com/showthread.php?p=3782880
http://strazzere.com/blog/?p=266
]]></description>
			<content:encoded><![CDATA[<p>HTC 开发了一个基于 Adobe Reader LE 2.5 的 PDFViewer，不过 G1 上直接安装这个 apk 不管用，说是只能 PDFViewer  只能运行在 HTC 设备上。我说 HTC 啊，G1 不是自家的孩子啊……歧视啊……</p>
<p>不过还是有强人有了 hack 的办法：</p>
<p>首先下载 libpdfreader.so、FilePicker.apk、PDFViewer.apk 三个文件，然后把前两个文件分别放到 /system/lib、/system/app 就 OK 了（记得先 remount /system），最后 PDFViewer.apk 按正常方法安装就行，可以用 adb，也可以先复制到 SD 卡，再用 terminal 复制到位置。</p>
<p>下载 &#038; 参考：</p>
<p><a href="http://forum.xda-developers.com/showthread.php?p=3782880">http://forum.xda-developers.com/showthread.php?p=3782880</a><br />
<a href="http://strazzere.com/blog/?p=266">http://strazzere.com/blog/?p=266</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/20/pdfviewer-on-g1/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blog 小搬家</title>
		<link>http://blog.leafduo.com/39/blog-moved-2</link>
		<comments>http://blog.leafduo.com/39/blog-moved-2#comments</comments>
		<pubDate>Sun, 06 Sep 2009 06:41:39 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[blogging]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=213</guid>
		<description><![CDATA[Blog 小搬家一次，搬到了 http://blog.leafduo.com/，原先的地址做了 301 重定向，不过还是劳烦有链接的同学修改一下，万分感谢。
传说中的 feedsky 验证：8e9446ad
]]></description>
			<content:encoded><![CDATA[<p>Blog 小搬家一次，搬到了 <a href="http://blog.leafduo.com/">http://blog.leafduo.com/</a>，原先的地址做了 301 重定向，不过还是劳烦有链接的同学修改一下，万分感谢。</p>
<p>传说中的 feedsky 验证：8e9446ad</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/39/blog-moved-2/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Xinnet sucks &amp; OpenDNS rocks</title>
		<link>http://blog.leafduo.com/42/xinnet-sucks-opendns-rocks</link>
		<comments>http://blog.leafduo.com/42/xinnet-sucks-opendns-rocks#comments</comments>
		<pubDate>Sun, 06 Sep 2009 06:35:42 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[OpenDNS]]></category>
		<category><![CDATA[xinnet]]></category>

		<guid isPermaLink="false">http://blog.leafduo.com/?p=212</guid>
		<description><![CDATA[最近折腾了折腾，发现了几个问题。
leafduo.com 是在新网注册的，然后每次改 DNS 改 A record 当然都得去新网那里。IE only 的管理界面就先不说了，这个管理的逻辑也非常有问题……首先如果你给顶级域加了 DNS 之后就不能删除了，造成顶级域有 5 个 DNS 服务器（新网两个，DH 三个），这也就算了，不过最让人恶心的是自己添加的 DNS 服务器不起作用，还是只有新网的两个 DNS 起作用。添加之后不能删除，而且又不起作用……
顺便问一下哪个国外的注册商服务比较好，价格也比较合理，准备域名到期的时候转出去。
之后又发现了 OpenDNS 的一个很有用的小功能──CacheCheck，能手动刷新 DNS，而不管 TTL 之类的东西，这样当你改了自己网站的 DNS 服务器或者 A 记录的时候，手动刷新一下就可以看到结果了，而不用等 N 个小时全球刷 DNS。当然不用 OpenDNS 的还得等 DNS 刷新的。
]]></description>
			<content:encoded><![CDATA[<p>最近折腾了折腾，发现了几个问题。</p>
<p>leafduo.com 是在<a href="http://www.xinnet.com/index.html">新网</a>注册的，然后每次改 DNS 改 A record 当然都得去新网那里。IE only 的管理界面就先不说了，这个管理的逻辑也非常有问题……首先如果你给顶级域加了 DNS 之后就不能删除了，造成顶级域有 5 个 DNS 服务器（新网两个，DH 三个），这也就算了，不过最让人恶心的是自己添加的 DNS 服务器不起作用，还是只有新网的两个 DNS 起作用。添加之后不能删除，而且又不起作用……</p>
<p>顺便问一下哪个国外的注册商服务比较好，价格也比较合理，准备域名到期的时候转出去。</p>
<p>之后又发现了 <a href="http://www.opendns.com/">OpenDNS</a> 的一个很有用的小功能──<a href="http://www.opendns.com/support/cache/">CacheCheck</a>，能手动刷新 DNS，而不管 TTL 之类的东西，这样当你改了自己网站的 DNS 服务器或者 A 记录的时候，手动刷新一下就可以看到结果了，而不用等 N 个小时全球刷 DNS。当然不用 OpenDNS 的还得等 DNS 刷新的。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/42/xinnet-sucks-opendns-rocks/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>某著名搜索引擎被封半小时</title>
		<link>http://blog.leafduo.com/18/i-have-nothing-to-say</link>
		<comments>http://blog.leafduo.com/18/i-have-nothing-to-say#comments</comments>
		<pubDate>Thu, 03 Sep 2009 09:41:18 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=211</guid>
		<description><![CDATA[某著名搜索引擎被封半小时，包括搜索引擎及旗下各项服务。
大概是从今天下午 5 点到 5 点半。
我不知道某些人的脑子到底被什么东西挤了。
]]></description>
			<content:encoded><![CDATA[<p>某著名搜索引擎被封半小时，包括搜索引擎及旗下各项服务。</p>
<p>大概是从今天下午 5 点到 5 点半。</p>
<p>我不知道某些人的脑子到底被什么东西挤了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/18/i-have-nothing-to-say/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Gentoo Linux on Macbook Pro</title>
		<link>http://blog.leafduo.com/04/installing-gentoo-linux-on-macbook-pro</link>
		<comments>http://blog.leafduo.com/04/installing-gentoo-linux-on-macbook-pro#comments</comments>
		<pubDate>Sun, 26 Jul 2009 12:14:04 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Macbook Pro]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=209</guid>
		<description><![CDATA[那是公元某年某月某日，我开始在 MBP 上装 Gentoo……
其实不是个很简单的活，所以来记录下，没装过 Gentoo 的先回家去看安装手册。（这不是 Linux 入门教程）
首先说一下配置，2008 年的 Macbook Pro 5,1，型号是 MB471LL/A，配置不一样的话底下的过程也酌情修改。
然后小补一点知识，Macbook Pro 没有 BIOS，而是采用了 EFI。因而也没有常用的分区表格式 MBR，而是采用了 GPT。GPT 传说中能放很多分区（而不是最多四个），fdisk 传说中不支持 GPT（不过好像有人用 fdisk 成功过）。
正式开始了：

说明一下，我要保留 Mac OS X，因为我觉得 Mac OS X 也很好用，呵呵。
事先准备好 Gentoo Minimal Install CD、stage3 和 snapshot 备用（直接用最新的 stage，我用的是 amd64 的 CD 和 stage）
在 Mac OS X 里安装 rEFIt。
分区，这里我用 Mac OS X 自带的 Disk Utility，先 [...]]]></description>
			<content:encoded><![CDATA[<p>那是公元某年某月某日，我开始在 MBP 上装 Gentoo……</p>
<p>其实不是个很简单的活，所以来记录下，没装过 Gentoo 的先回家去看<a href="http://www.gentoo.org/doc/en/handbook/index.xml">安装手册</a>。<em>（这不是 Linux 入门教程）</em></p>
<p>首先说一下配置，2008 年的 Macbook Pro 5,1，型号是 MB471LL/A，配置不一样的话底下的过程也酌情修改。</p>
<p>然后小补一点知识，Macbook Pro 没有 BIOS，而是采用了 <a href="http://en.wikipedia.org/wiki/Extensible_Firmware_Interface">EFI</a>。因而也没有常用的分区表格式 MBR，而是采用了 <a href="http://en.wikipedia.org/wiki/GUID_Partition_Table">GPT</a>。GPT 传说中能放很多分区（而不是最多四个），fdisk 传说中不支持 GPT（不过好像有人用 fdisk 成功过）。</p>
<p>正式开始了：</p>
<ol>
<li>说明一下，我要保留 Mac OS X，因为我觉得 Mac OS X 也很好用，呵呵。</li>
<li>事先准备好 Gentoo Minimal Install CD、stage3 和 snapshot 备用（直接用最新的 stage，我用的是 amd64 的 CD 和 stage）</li>
<li>在 Mac OS X 里安装 <a href="http://refit.sourceforge.net/">rEFIt</a>。</li>
<li>分区，这里我用 Mac OS X 自带的 Disk Utility，先 resize HFS+ 分区，给 Gentoo 留出空间，然后新建几个 FAT 分区，具体怎么分你自己定吧。</li>
<li>插入 Gentoo Minimal Install CD，重启，开机时按住 Option 键，等一会应该会出现一个光盘下面写着 Windows，不管它写的是什么了，从这个光盘启动。</li>
<li>启动之后，用 parted 改下分区表，把 FAT 改成 Linux 的分区（注意有一个大约 200MB 的 EFI 分区，不要搞掉），然后关机，开机（注意不要 reboot），进到 rEFIt 之后同步一下分区表。</li>
<li>再次从光盘启动，安装 Gentoo。</li>
<li>配内核的时候可以参考一下 <a href="http://en.gentoo-wiki.com/wiki/Apple_Macbook_Pro/Configuration_Files/Kernel">Gentoo Linux Wiki</a>。</li>
<li>make.conf 我是这样写的：<br />
<blockquote><p>CFLAGS="-O2 -march=core2 -pipe -msse4.1"<br />
CXXFLAGS="${CFLAGS}"<br />
MAKEOPTS="-j3"</p></blockquote>
</li>
<li>装 Grub 的时候请注意，不要装到 /dev/sda，装到 /boot 的分区上吧。</li>
</ol>
<p>鉴于 Macbook Pro 有很多诡异的设备，我们来说一下万恶的驱动：</p>
<ol>
<li>alsa 不出声
<p>alsa 编成模块，/etc/modprobe.d/alsa.conf 里面加一行 </p>
<blockquote><p>options snd-hda-intel model=mbp3</p></blockquote>
<p>然后运行 update-modules。（<a href="http://www.linuxsir.org/bbs/showthread.php?p=1724248">via</a>）</li>
<li>触摸板无法使用<br />
2.6.29-r5 里不知道 bcm5974 还是 usbhid 有问题，反正是有问题，touchpad 没法正常工作，升级到 2.6.30-r4 后就正常了（2.6.28-r5 好像也正常），注意 2.6.30-r4 目前还是 ~amd，相应的，x11-drivers/nvidia-drivers 也要用 ~amd64 里的。</p>
<p>bcm5974 还是很好的。</li>
<li>无线网卡的驱动
<p>portage 里面有，不过是 ~amd64 的，叫 net-wireless/broadcom-sta。</li>
<li>键盘背光
<p>portage 里有 app-laptop/macbook-backlight，用这个包就 OK 了。
</li>
</ol>
<p>写得不是很详细，有什么问题可以在下面留言或者 email 我，不过要先问 Google 和各大发行版的相关内容。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/04/installing-gentoo-linux-on-macbook-pro/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>《UNIX 实用教程》笔记</title>
		<link>http://blog.leafduo.com/46/just-enough-unix-note</link>
		<comments>http://blog.leafduo.com/46/just-enough-unix-note#comments</comments>
		<pubDate>Wed, 01 Jul 2009 11:06:46 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=210</guid>
		<description><![CDATA[感觉这本书比较适合初学者，什么都不懂的也可以看，简单易懂，有的时候一样的话会重复很多遍……
推荐对 *nix 有兴趣或者有需求的人看下。
和以前一样，还是只记我不知道的。

ls -l 第二列是链接数；

有 tee 这么个东西；（不知道的请自行查阅手册）

~jack 是 jack 的主目录；

命令行编辑（command-line editing）挺好玩，如果是 bash 和 vi，那么 set -o vi；

还有个东西叫 finger；

ssh 里 ~? 能列出转义序列；

221 页 forwarded 翻译成前面了，应该是转发；


后面的 shell 脚本我只是略懂皮毛，awk 一窍不通，Perl 暂时没兴趣，C/C++ 基本略过，所以也没什么好写的了。
]]></description>
			<content:encoded><![CDATA[<p>感觉<a href="http://www.douban.com/subject/2364802/">这本书</a>比较适合初学者，什么都不懂的也可以看，简单易懂，有的时候一样的话会重复很多遍……</p>
<p>推荐对 *nix 有兴趣或者有需求的人看下。</p>
<p>和以前一样，还是只记我不知道的。</p>
<ol>
<li>ls -l 第二列是链接数；
</li>
<li>有 tee 这么个东西；（不知道的请自行查阅手册）
</li>
<li>~jack 是 jack 的主目录；
</li>
<li>命令行编辑（command-line editing）挺好玩，如果是 bash 和 vi，那么 set -o vi；
</li>
<li>还有个东西叫 finger；
</li>
<li>ssh 里 ~? 能列出转义序列；
</li>
<li>221 页 forwarded 翻译成前面了，应该是转发；
</li>
</ol>
<p>后面的 shell 脚本我只是略懂皮毛，awk 一窍不通，Perl 暂时没兴趣，C/C++ 基本略过，所以也没什么好写的了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/46/just-enough-unix-note/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>祝福高考的同学们</title>
		<link>http://blog.leafduo.com/55/good-luck-my-friends</link>
		<comments>http://blog.leafduo.com/55/good-luck-my-friends#comments</comments>
		<pubDate>Sat, 06 Jun 2009 13:36:55 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=208</guid>
		<description><![CDATA[收获的时候到了，大家加油吧，虽然参加高考的同学们现在应该看不到这些，但是还是祝你们成功！
放松心情，放手一博吧！
]]></description>
			<content:encoded><![CDATA[<p>收获的时候到了，大家加油吧，虽然参加高考的同学们现在应该看不到这些，但是还是祝你们成功！</p>
<p>放松心情，放手一博吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/55/good-luck-my-friends/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>开启 Comment Moderation</title>
		<link>http://blog.leafduo.com/01/comment-moderation-enabled</link>
		<comments>http://blog.leafduo.com/01/comment-moderation-enabled#comments</comments>
		<pubDate>Wed, 03 Jun 2009 13:34:01 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=207</guid>
		<description><![CDATA[由于技术原因，需要开启 Comment Moderation，恢复时间不可预知。
]]></description>
			<content:encoded><![CDATA[<p>由于技术原因，需要开启 Comment Moderation，恢复时间不可预知。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/01/comment-moderation-enabled/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>计算任意日期是星期几的方法──蔡勒公式（Zeller&#039;s congruence）</title>
		<link>http://blog.leafduo.com/34/computing-day-of-week-of-a-given-date-zellers-congruence</link>
		<comments>http://blog.leafduo.com/34/computing-day-of-week-of-a-given-date-zellers-congruence#comments</comments>
		<pubDate>Tue, 07 Apr 2009 12:43:34 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[calendar]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=205</guid>
		<description><![CDATA[我们经常需要计算一个日期是星期几，比较好想的方法是知道一个日期是星期几（比如 1900 年 1 月 1 日是周一），然后一天一天地数……效率有点低，呵呵。改进一点可以一次数一个月或者数一年，不过貌似得用到什么偏移表什么的，不够麻烦的。
来，我们说说蔡勒公式。形式非常诡异和神奇：

这里我写的是一种比较适用于计算机计算的公式，其他的形式可以参看维基百科。
上式中，y 是年份，m 是月份，d 是日期，dayOfWeek 就是星期几了（以 0 为星期六，1 为星期日，依此类推）。特别注意，如果月份是一月或者二月，要把它们当作上一年的十三月、十四月。
当然，这个公式只适用于格里历，很久以前的事它就管不了了。
]]></description>
			<content:encoded><![CDATA[<p>我们经常需要计算一个日期是星期几，比较好想的方法是知道一个日期是星期几（比如 1900 年 1 月 1 日是周一），然后一天一天地数……效率有点低，呵呵。改进一点可以一次数一个月或者数一年，不过貌似得用到什么偏移表什么的，不够麻烦的。</p>
<p>来，我们说说蔡勒公式。形式非常诡异和神奇：</p>
<p><img src='/latexrender/pictures/3b8e21954e26a0840957681ce5ba8b9e.gif' title='$$dayOfWeek = \left(d + \left\lfloor\frac{26(m+1)}{10}\right\rfloor + y + \left\lfloor\frac{y}{4}\right\rfloor + 6 \left\lfloor\frac{y}{100}\right\rfloor + \left\lfloor\frac{y}{400}\right\rfloor\right) \mod 7$$' alt='$$dayOfWeek = \left(d + \left\lfloor\frac{26(m+1)}{10}\right\rfloor + y + \left\lfloor\frac{y}{4}\right\rfloor + 6 \left\lfloor\frac{y}{100}\right\rfloor + \left\lfloor\frac{y}{400}\right\rfloor\right) \mod 7$$' align=absmiddle></p>
<p>这里我写的是一种比较适用于计算机计算的公式，其他的形式可以参看<a href="http://en.wikipedia.org/wiki/Zeller%27s_congruence">维基百科</a>。</p>
<p>上式中，y 是年份，m 是月份，d 是日期，dayOfWeek 就是星期几了（以 0 为星期六，1 为星期日，依此类推）。特别注意，如果月份是一月或者二月，要把它们当作上一年的十三月、十四月。</p>
<p>当然，这个公式只适用于格里历，很久以前的事它就管不了了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/34/computing-day-of-week-of-a-given-date-zellers-congruence/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>怎样废弃 PGP 密钥</title>
		<link>http://blog.leafduo.com/22/how-to-revoke-a-pgp-key</link>
		<comments>http://blog.leafduo.com/22/how-to-revoke-a-pgp-key#comments</comments>
		<pubDate>Tue, 07 Apr 2009 06:24:22 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[PGP]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=204</guid>
		<description><![CDATA[由于种种原因，比如密钥已经泄露，或者你改了名字或者 email，你很可能需要废弃以前使用的 PGP 密钥，简单地不用它总不太好吧，我们来告诉别人你已经不再用这个密钥了。
以 GnuPG 为例：
首先，我们需要拿到 PGP 密钥的废弃证书：
gpg -o revoke.asc --gen-revoke user-id（替换成你自己的 user-id）
这样我们就把废弃证书写到 revoke.asc 里了。其实废弃密钥应该在产生密钥对的时候就生成，然后放在安全的地方，当然我比较懒……
之后我们导入废弃证书：
gpg --import revoke.asc
这样我们就废弃了这个证书，最后我们把废弃掉的 PGP 公钥发到 keyserver 上。
gpg --send-key key-id
（用 gpg --list-keys 列出 key-id）
好了，这样大家就都知道你的 PGP 密钥已经 revoked 了。
]]></description>
			<content:encoded><![CDATA[<p>由于种种原因，比如密钥已经泄露，或者你改了名字或者 email，你很可能需要废弃以前使用的 PGP 密钥，简单地不用它总不太好吧，我们来告诉别人你已经不再用这个密钥了。</p>
<p>以 GnuPG 为例：</p>
<p>首先，我们需要拿到 PGP 密钥的废弃证书：</p>
<blockquote><p>gpg -o revoke.asc --gen-revoke user-id（替换成你自己的 user-id）</p></blockquote>
<p>这样我们就把废弃证书写到 revoke.asc 里了。其实废弃密钥应该在产生密钥对的时候就生成，然后放在安全的地方，当然我比较懒……</p>
<p>之后我们导入废弃证书：</p>
<blockquote><p>gpg --import revoke.asc</p></blockquote>
<p>这样我们就废弃了这个证书，最后我们把废弃掉的 PGP 公钥发到 keyserver 上。</p>
<blockquote><p>gpg --send-key key-id</p></blockquote>
<p>（用 gpg --list-keys 列出 key-id）</p>
<p>好了，这样大家就都知道你的 PGP 密钥已经 revoked 了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/22/how-to-revoke-a-pgp-key/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WoW</title>
		<link>http://blog.leafduo.com/36/wow</link>
		<comments>http://blog.leafduo.com/36/wow#comments</comments>
		<pubDate>Sat, 28 Mar 2009 15:47:36 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[game]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[WoW]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=203</guid>
		<description><![CDATA[





From WoW


]]></description>
			<content:encoded><![CDATA[<p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/FGQJWb5QYnLki0dqS477HA?feat=embedwebsite"><img src="http://lh6.ggpht.com/_7Y_7M0vQVWs/Sc5EtXu6jfI/AAAAAAAABKk/x60o-zK90fc/s800/ScreenShot_032809_170428.jpg" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/LeafDuo/WoW?feat=embedwebsite">WoW</a></td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/36/wow/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#039;long long long&#039; is too long for GCC</title>
		<link>http://blog.leafduo.com/10/long-long-long-is-too-long-for-gcc</link>
		<comments>http://blog.leafduo.com/10/long-long-long-is-too-long-for-gcc#comments</comments>
		<pubDate>Fri, 27 Mar 2009 05:11:10 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=202</guid>
		<description><![CDATA[





From blog








From blog


]]></description>
			<content:encoded><![CDATA[<p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/FR7bm4j-jWJ9PWAqhF7fpw?feat=embedwebsite"><img src="http://lh3.ggpht.com/_7Y_7M0vQVWs/ScxYNTVR9XI/AAAAAAAABJ0/mKBw0FuHSk4/s800/Picture%202.png" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/LeafDuo/Blog?feat=embedwebsite">blog</a></td>
</tr>
</table>
<p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/cztw8b0Potb41qczPraJQw?feat=embedwebsite"><img src="http://lh3.ggpht.com/_7Y_7M0vQVWs/ScxYNm1QbsI/AAAAAAAABJ8/WSSfcO-nNJ8/s800/Picture%203.png" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/LeafDuo/Blog?feat=embedwebsite">blog</a></td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/10/long-long-long-is-too-long-for-gcc/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
