<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Centeur's Chaos</title>
	
	<link>http://justmymemo.com</link>
	<description>Just My Memo in Life</description>
	<lastBuildDate>Sun, 05 Jul 2009 13:48:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/centeur" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">centeur</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>升级 gcc 出现错误</title>
		<link>http://justmymemo.com/2009/07/gcc-error.html</link>
		<comments>http://justmymemo.com/2009/07/gcc-error.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 13:48:33 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[GCC]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=371</guid>
		<description><![CDATA[在升级到 gcc 4.3.2-r3 时，出现错误，错误信息为 &#8220;emake failed with bootstrap-lean&#8221;，在这里有人提出了解决方法。
LC_ALL=C emerge gcc
试了一下，编译通过了。但原因是什么呢？难道是个 bug？
]]></description>
			<content:encoded><![CDATA[<p>在升级到 gcc 4.3.2-r3 时，出现错误，错误信息为 &#8220;emake failed with bootstrap-lean&#8221;，在<a href="http://bugs.gentoo.org/show_bug.cgi?id=236762" target="_blank">这里</a>有人提出了解决方法。</p>
<blockquote><p>LC_ALL=C emerge gcc</p></blockquote>
<p>试了一下，编译通过了。但原因是什么呢？难道是个 bug？</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=W-qVCPwCdDk:sy-e3pjcs4o:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=W-qVCPwCdDk:sy-e3pjcs4o:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=W-qVCPwCdDk:sy-e3pjcs4o:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=W-qVCPwCdDk:sy-e3pjcs4o:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=W-qVCPwCdDk:sy-e3pjcs4o:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=W-qVCPwCdDk:sy-e3pjcs4o:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=W-qVCPwCdDk:sy-e3pjcs4o:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=W-qVCPwCdDk:sy-e3pjcs4o:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=W-qVCPwCdDk:sy-e3pjcs4o:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=W-qVCPwCdDk:sy-e3pjcs4o:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/07/gcc-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在收到诈骗短信之后</title>
		<link>http://justmymemo.com/2009/06/received-sms-fraud.html</link>
		<comments>http://justmymemo.com/2009/06/received-sms-fraud.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 01:29:43 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[general stuff]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=370</guid>
		<description><![CDATA[现在的诈骗短信层出不穷，周末我就收到了一条，红框里是我的回复，希望骗子看到后，能够荷尔蒙分泌加速，狂奔到银行查询。我止不住的在想，骗子从狂喜到失落的那一瞬间表情的变化，该是何等的精彩，如果扑捉到这一刻，估计也能搞个什么摄影大奖得得。
东风吹，战鼓擂，这个社会谁怕谁？忽悠吧就。

]]></description>
			<content:encoded><![CDATA[<p>现在的诈骗短信层出不穷，周末我就收到了一条，红框里是我的回复，希望骗子看到后，能够荷尔蒙分泌加速，狂奔到银行查询。我止不住的在想，骗子从狂喜到失落的那一瞬间表情的变化，该是何等的精彩，如果扑捉到这一刻，估计也能搞个什么摄影大奖得得。</p>
<p>东风吹，战鼓擂，这个社会谁怕谁？忽悠吧就。</p>
<p><img class="alignnone" title="诈骗短信" src="http://img14.imageshack.us/img14/368/20090622090942.png" alt="" width="320" height="240" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=vNEDil9fAiQ:8hVePc5Vw4s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=vNEDil9fAiQ:8hVePc5Vw4s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=vNEDil9fAiQ:8hVePc5Vw4s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=vNEDil9fAiQ:8hVePc5Vw4s:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=vNEDil9fAiQ:8hVePc5Vw4s:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=vNEDil9fAiQ:8hVePc5Vw4s:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=vNEDil9fAiQ:8hVePc5Vw4s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=vNEDil9fAiQ:8hVePc5Vw4s:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=vNEDil9fAiQ:8hVePc5Vw4s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=vNEDil9fAiQ:8hVePc5Vw4s:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/received-sms-fraud.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>3proxy – 超强代理软件</title>
		<link>http://justmymemo.com/2009/06/3proxy.html</link>
		<comments>http://justmymemo.com/2009/06/3proxy.html#comments</comments>
		<pubDate>Sun, 14 Jun 2009 12:39:13 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[reminder]]></category>
		<category><![CDATA[3proxy]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=369</guid>
		<description><![CDATA[如果还有一个代理软件能称为超强，那么我一定会选择 3proxy，俄国人开发的这款软件可真不是盖的。

它支持 HTTP(S) 代理、SOCKS 代理、POP3 代理、SMTP 代理、FTP 代理、DNS 缓存代理、TCP 和 UDP 端口映射。
支持权限控制、带宽控制、流量控制、代理重定向、代理链，具有日志及日志轮换功能，支持自定义日志格式，方便日志分析软件分析。
跨平台，支持 Windows、FreeBSD、OpenBSD、NetBSD、Linux、Mac OS、Solaris。

唯一的缺点或许就是自带的帮助太简单了，只好到官方网站去看详细的说明。
我的配置如下：
//以 daemon 模式启动
daemon
log /var/log/3proxy.log D
//&#8217;- +_&#8217; 的含义为将空格替换为 &#8216;_&#8217;
logformat &#8220;- +_L%t.%.  %N.%p %E %U %C:%c %R:%r %O %I %h %T&#8221;
//压缩过期的 log 文件
archiver gz /bin/gzip %F
//保留7个压缩的 log 文件
rotate 7
auth iponly
//只允许本机和 192.168.1.101 使用代理
allow * 127.0.0.1,192.168.1.101
//父级代理为 socks5,端口为9999
parent 1000 socks5 127.0.0.1 9999
//将 http 和 ftp 代理重定向到父级 socks [...]]]></description>
			<content:encoded><![CDATA[<p>如果还有一个代理软件能称为超强，那么我一定会选择 <a href="http://3proxy.ru/" target="_blank">3proxy</a>，俄国人开发的这款软件可真不是盖的。</p>
<ol>
<li>它支持 HTTP(S) 代理、SOCKS 代理、POP3 代理、SMTP 代理、FTP 代理、DNS 缓存代理、TCP 和 UDP 端口映射。</li>
<li>支持权限控制、带宽控制、流量控制、代理重定向、代理链，具有日志及日志轮换功能，支持自定义日志格式，方便日志分析软件分析。</li>
<li>跨平台，支持 Windows、FreeBSD、OpenBSD、NetBSD、Linux、Mac OS、Solaris。</li>
</ol>
<p>唯一的缺点或许就是自带的帮助太简单了，只好到官方网站去看详细的说明。</p>
<p>我的配置如下：</p>
<blockquote><p>//以 daemon 模式启动<br />
daemon<br />
log /var/log/3proxy.log D<br />
//&#8217;- +_&#8217; 的含义为将空格替换为 &#8216;_&#8217;<br />
logformat &#8220;- +_L%t.%.  %N.%p %E %U %C:%c %R:%r %O %I %h %T&#8221;<br />
//压缩过期的 log 文件<br />
archiver gz /bin/gzip %F<br />
//保留7个压缩的 log 文件<br />
rotate 7<br />
auth iponly<br />
//只允许本机和 192.168.1.101 使用代理<br />
allow * 127.0.0.1,192.168.1.101<br />
//父级代理为 socks5,端口为9999<br />
parent 1000 socks5 127.0.0.1 9999<br />
//将 http 和 ftp 代理重定向到父级 socks 代理<br />
proxy<br />
ftppr<br />
end</p></blockquote>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=tBzs5BKztzI:IwZaprRYN_s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=tBzs5BKztzI:IwZaprRYN_s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=tBzs5BKztzI:IwZaprRYN_s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=tBzs5BKztzI:IwZaprRYN_s:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=tBzs5BKztzI:IwZaprRYN_s:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=tBzs5BKztzI:IwZaprRYN_s:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=tBzs5BKztzI:IwZaprRYN_s:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=tBzs5BKztzI:IwZaprRYN_s:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=tBzs5BKztzI:IwZaprRYN_s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=tBzs5BKztzI:IwZaprRYN_s:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/3proxy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gentoo sync 镜像无法使用之后</title>
		<link>http://justmymemo.com/2009/06/after-gentoo-sync-service-can-not-be-used.html</link>
		<comments>http://justmymemo.com/2009/06/after-gentoo-sync-service-can-not-be-used.html#comments</comments>
		<pubDate>Sun, 14 Jun 2009 05:06:44 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxychains]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=368</guid>
		<description><![CDATA[换到电信后，原先使用的 sync 镜像无法使用了，速度巨慢不说，还经常超时，那叫一个痛苦，好在还有其它办法可以更新。

 到 gentoo 的镜像列表下载最新的 portage 文件，进行本地更新。
tar -jxvf portage-latest.tar.bz2
rsync -avuz &#8211;del portage/ /usr/portage
利用代理软件。proxychains 能够搭建父级代理为 socks 的 http 代理，特别适用于 tor 或者 ssh 隧道。
//建立 ssh 隧道，端口为 9999
ssh -N -D 9999 -f user@example.com
//修改 /etc/proxychains.conf
socks5  127.0.0.1 9999
//进行更新
proxychains eix-sync
哇，速度是不是特别快？
]]></description>
			<content:encoded><![CDATA[<p>换到电信后，<a href="http://linuxsir.org/bbs/thread263600.html" target="_blank">原先使用的 sync 镜像</a>无法使用了，速度巨慢不说，还经常超时，那叫一个痛苦，好在还有其它办法可以更新。</p>
<ol>
<li> 到 gentoo 的<a href="http://www.gentoo.org/main/en/mirrors2.xml" target="_blank">镜像列表</a>下载最新的 portage 文件，进行本地更新。</li>
<blockquote><p>tar -jxvf portage-latest.tar.bz2<br />
rsync -avuz &#8211;del portage/ /usr/portage</p></blockquote>
<li>利用代理软件。<a href="http://proxychains.sourceforge.net/" target="_blank">proxychains</a> 能够搭建父级代理为 socks 的 http 代理，特别适用于 tor 或者 ssh 隧道。</li>
<blockquote><p>//建立 ssh 隧道，端口为 9999<br />
ssh -N -D 9999 -f user@example.com<br />
//修改 /etc/proxychains.conf<br />
socks5  127.0.0.1 9999<br />
//进行更新<br />
proxychains eix-sync</p></blockquote>
<p>哇，速度是不是特别快？</ol>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=uwY1G2-RHLw:dSrsVBM2Quc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=uwY1G2-RHLw:dSrsVBM2Quc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=uwY1G2-RHLw:dSrsVBM2Quc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=uwY1G2-RHLw:dSrsVBM2Quc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=uwY1G2-RHLw:dSrsVBM2Quc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=uwY1G2-RHLw:dSrsVBM2Quc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=uwY1G2-RHLw:dSrsVBM2Quc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=uwY1G2-RHLw:dSrsVBM2Quc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=uwY1G2-RHLw:dSrsVBM2Quc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=uwY1G2-RHLw:dSrsVBM2Quc:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/after-gentoo-sync-service-can-not-be-used.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在 fcitx 中使用 ibus 的词库</title>
		<link>http://justmymemo.com/2009/06/use-ibus-phrase-in-fcitx.html</link>
		<comments>http://justmymemo.com/2009/06/use-ibus-phrase-in-fcitx.html#comments</comments>
		<pubDate>Sun, 14 Jun 2009 02:40:17 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[fcitx]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ibus]]></category>
		<category><![CDATA[phrase]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=367</guid>
		<description><![CDATA[fcitx 一直是我很喜欢的输入法，不过它的词库词条太少，而前段时间试用过的 ibus 的词库则相对好了很多，怎么在 fcitx 中使用 ibus 的词库呢？其实 ibus 使用的是 open-phrase 的开源词库，我们只要在 fcitx 中使用它就可以了。
wget http://open-phrase.googlecode.com/files/phrase_pinyin_freq_sc_20090402.txt.bz2
bunzip2 phrase_pinyin_freq_sc_20090402.txt.bz2
//按词频由高到低排序
sort -k 3gr -k 2n phrase_pinyin_freq_sc_20090402.txt &#124; awk &#8216;{print $2 &#8221; &#8221; $1}&#8217; &#62; temp
//转化为 GBK 编码
iconv -f UTF-8 -t GBK temp &#62; pyPhrase.org
然后用 pyPhrase.org 覆盖 fcitx 源代码中的同名文件，重新编译即可。
Gentoo 用户可以修改一下 ebuild 文件，在 src_compile 之前加入：
src_unpack() {
unpack ${A}
cd &#8220;${S}&#8221;
cp &#8220;${FILESDIR}&#8221;/pyPhrase.org data/
}
记得把改好的 pyPhrase.org 文件放到 [...]]]></description>
			<content:encoded><![CDATA[<p>fcitx 一直是我很喜欢的输入法，不过它的词库词条太少，而前段时间<a href="http://justmymemo.com/2008/09/ibus-pinyin.html" target="_self">试用过的 ibus</a> 的词库则相对好了很多，怎么在 fcitx 中使用 ibus 的词库呢？其实 ibus 使用的是 <a href="http://code.google.com/p/open-phrase/" target="_blank">open-phrase</a> 的开源词库，我们只要在 fcitx 中使用它就可以了。</p>
<blockquote><p>wget http://open-phrase.googlecode.com/files/phrase_pinyin_freq_sc_20090402.txt.bz2<br />
bunzip2 phrase_pinyin_freq_sc_20090402.txt.bz2<br />
//按词频由高到低排序<br />
sort -k 3gr -k 2n phrase_pinyin_freq_sc_20090402.txt | awk &#8216;{print $2 &#8221; &#8221; $1}&#8217; &gt; temp<br />
//转化为 GBK 编码<br />
iconv -f UTF-8 -t GBK temp &gt; pyPhrase.org</p></blockquote>
<p>然后用 pyPhrase.org 覆盖 fcitx 源代码中的同名文件，重新编译即可。</p>
<p>Gentoo 用户可以修改一下 ebuild 文件，在 src_compile 之前加入：</p>
<blockquote><p>src_unpack() {<br />
unpack ${A}<br />
cd &#8220;${S}&#8221;<br />
cp &#8220;${FILESDIR}&#8221;/pyPhrase.org data/<br />
}</p></blockquote>
<p>记得把改好的 pyPhrase.org 文件放到 /usr/local/portage/app-i18n/fcitx/files 下。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=kKkSyoHFmkM:cgBbC8KXsgA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=kKkSyoHFmkM:cgBbC8KXsgA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=kKkSyoHFmkM:cgBbC8KXsgA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=kKkSyoHFmkM:cgBbC8KXsgA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=kKkSyoHFmkM:cgBbC8KXsgA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=kKkSyoHFmkM:cgBbC8KXsgA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=kKkSyoHFmkM:cgBbC8KXsgA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=kKkSyoHFmkM:cgBbC8KXsgA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=kKkSyoHFmkM:cgBbC8KXsgA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=kKkSyoHFmkM:cgBbC8KXsgA:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/use-ibus-phrase-in-fcitx.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mplayer 的 use 标记 real 的变动</title>
		<link>http://justmymemo.com/2009/06/mplayer-use-real.html</link>
		<comments>http://justmymemo.com/2009/06/mplayer-use-real.html#comments</comments>
		<pubDate>Sat, 13 Jun 2009 15:06:15 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[real]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=366</guid>
		<description><![CDATA[近阶段 mplayer 的 use 标记 real 变动比较频繁，让我也比较困惑，查了一下，摘记如下：

mplayer-1.0_rc2_p28058-r1 之前 mplayer 和 win32codecs 均支持 use 标记 real，当时我写过一篇文章介绍怎样在 mplayer 下利用 win32codecs 的 real 解码器播放 rm、rmvb 格式影片。
mplayer-1.0_rc2_p28058-r1 开始原生支持 RV40，mplayer-1.0_rc2_p28288 开始原生支持 RV30 的回放，貌似这时候 mplayer 和 win32codecs 的 use 标记 real 被 mask 了，原因是 real 解码器存在安全问题。
mplayer-20090226.28734 开始又支持 use 标记 real 了，不过被分割成了两部分，一部分是原生的 real 解码器，另一部分是 media-libs/realcodecs 的解码器。

via Gentoo Forums
]]></description>
			<content:encoded><![CDATA[<p>近阶段 mplayer 的 use 标记 real 变动比较频繁，让我也比较困惑，查了一下，摘记如下：</p>
<ol>
<li>mplayer-1.0_rc2_p28058-r1 之前 mplayer 和 win32codecs 均支持 use 标记 real，当时我<a href="http://justmymemo.com/2008/06/the-way-to-play-rmvb-on-mplayer.html" target="_self">写过一篇文章</a>介绍怎样在 mplayer 下利用 win32codecs 的 real 解码器播放 rm、rmvb 格式影片。</li>
<li>mplayer-1.0_rc2_p28058-r1 <span>开始原生支持 RV40，</span><span>mplayer-1.0_rc2_p28288</span><span> 开始原生支持 RV30 的回放，貌似这时候 mplayer 和 win32codecs 的 use 标记 real 被 mask 了，原因是 real 解码器存在安全问题。</span></li>
<li>mplayer-20090226.28734 开始又支持 use 标记 real 了，不过被分割成了两部分，一部分是原生的 real 解码器，另一部分是 <span>media-libs/realcodecs 的解码器。</span></li>
</ol>
<p>via <a href="http://forums.gentoo.org/viewtopic-p-5263785.html" target="_blank">Gentoo Forums</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=ehpzLCJunz4:2q1AN1aisZI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=ehpzLCJunz4:2q1AN1aisZI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=ehpzLCJunz4:2q1AN1aisZI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=ehpzLCJunz4:2q1AN1aisZI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=ehpzLCJunz4:2q1AN1aisZI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=ehpzLCJunz4:2q1AN1aisZI:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=ehpzLCJunz4:2q1AN1aisZI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=ehpzLCJunz4:2q1AN1aisZI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=ehpzLCJunz4:2q1AN1aisZI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=ehpzLCJunz4:2q1AN1aisZI:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/mplayer-use-real.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>正版微软 Linux</title>
		<link>http://justmymemo.com/2009/06/genuine-microsoft-linux.html</link>
		<comments>http://justmymemo.com/2009/06/genuine-microsoft-linux.html#comments</comments>
		<pubDate>Fri, 12 Jun 2009 08:43:22 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[internet exploration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=365</guid>
		<description><![CDATA[在 Gentoo 中无意中打开了微软的正版验证页面，结果让我眼珠子都快掉下来了。

]]></description>
			<content:encoded><![CDATA[<p>在 Gentoo 中无意中打开了微软的正版验证页面，结果让我眼珠子都快掉下来了。</p>
<p><a href="http://img25.imageshack.us/img25/1435/64880715.png" target="_blank"><img class="alignnone" title="genuine-microsoft-linux" src="http://img25.imageshack.us/img25/1435/64880715.png" alt="genuine-microsoft-linux" width="511" height="430" /></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=8XRaVF7qrYk:egCGGIgH2Uo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=8XRaVF7qrYk:egCGGIgH2Uo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=8XRaVF7qrYk:egCGGIgH2Uo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=8XRaVF7qrYk:egCGGIgH2Uo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=8XRaVF7qrYk:egCGGIgH2Uo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=8XRaVF7qrYk:egCGGIgH2Uo:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=8XRaVF7qrYk:egCGGIgH2Uo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=8XRaVF7qrYk:egCGGIgH2Uo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=8XRaVF7qrYk:egCGGIgH2Uo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=8XRaVF7qrYk:egCGGIgH2Uo:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/genuine-microsoft-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>显示 FeedBurner 订阅数图标的最简单方法</title>
		<link>http://justmymemo.com/2009/06/show-feedburner-count-graphic.html</link>
		<comments>http://justmymemo.com/2009/06/show-feedburner-count-graphic.html#comments</comments>
		<pubDate>Mon, 08 Jun 2009 00:17:21 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[feedburner]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=364</guid>
		<description><![CDATA[基本上所有的虚拟主机都有 curl 这个工具，利用 curl 抓取 FeedBurner 订阅数图标到本地无疑是一个行之有效的方法，避免了每次到 feedburner 请求的等待时间，而且当 FeedBurner 被和谐的时候，该方法依然有效，只要你的服务器还能够 ping 通 FeedBurner。
//添加 cron 任务
0 7 * * * curl -o /the_path_to_store/feeds.gif http://feeds2.feedburner.com/~fc/Centeur?bg=000000\&#38;fg=FFFFFF\&#38;anim=0
上述 cron 任务的含义为每天早上 7 点抓取 FeedBurner 订阅数图标存储到本地，路径为 /the_path_to_store，名称为 feeds.gif，接下来你就可以在你的博客中利用本地的 feeds.gif 显示你的 FeedBurner 订阅数了。一般的虚拟主机都支持添加 cron 任务，所以这个方法具有一定的普适性。
]]></description>
			<content:encoded><![CDATA[<p>基本上所有的虚拟主机都有 curl 这个工具，利用 curl 抓取 FeedBurner 订阅数图标到本地无疑是一个行之有效的方法，避免了每次到 feedburner 请求的等待时间，而且当 FeedBurner 被和谐的时候，该方法依然有效，只要你的服务器还能够 ping 通 FeedBurner。</p>
<blockquote><p>//添加 cron 任务<br />
0 7 * * * curl -o /the_path_to_store/feeds.gif http://feeds2.feedburner.com/~fc/Centeur?bg=000000\&amp;fg=FFFFFF\&amp;anim=0</p></blockquote>
<p>上述 cron 任务的含义为每天早上 7 点抓取 FeedBurner 订阅数图标存储到本地，路径为 /the_path_to_store，名称为 feeds.gif，接下来你就可以在你的博客中利用本地的 feeds.gif 显示你的 FeedBurner 订阅数了。一般的虚拟主机都支持添加 cron 任务，所以这个方法具有一定的普适性。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=mJuwlwWhskI:mR4JUH2vc5w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=mJuwlwWhskI:mR4JUH2vc5w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=mJuwlwWhskI:mR4JUH2vc5w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=mJuwlwWhskI:mR4JUH2vc5w:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=mJuwlwWhskI:mR4JUH2vc5w:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=mJuwlwWhskI:mR4JUH2vc5w:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=mJuwlwWhskI:mR4JUH2vc5w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=mJuwlwWhskI:mR4JUH2vc5w:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=mJuwlwWhskI:mR4JUH2vc5w:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=mJuwlwWhskI:mR4JUH2vc5w:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/show-feedburner-count-graphic.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>缓存 FeedBurner 订阅数</title>
		<link>http://justmymemo.com/2009/06/cache-feedburner-count.html</link>
		<comments>http://justmymemo.com/2009/06/cache-feedburner-count.html#comments</comments>
		<pubDate>Sun, 07 Jun 2009 23:44:57 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[feedburner]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=363</guid>
		<description><![CDATA[上篇文章讲了如何抓取 FeedBurner 的订阅数，后来才发现，居然忘记了缓存，缓存至少有两点好处，一是减轻 google 服务器的压力，google 虽然很大方，但我们也要厚道一点，呵呵，二是可以优化博客页面的响应速度，减少停顿感。下面是采取缓存的 getRssCount 函数：
function getRssCount($rss_link) {
if (!$output = wp_cache_get($rss_link,&#8217;curl_cache&#8217;)){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, &#8216;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&#8217; . $rss_link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$result = curl_exec($ch);
curl_close($ch);
$result = new SimpleXMLElement($result);
$result = $result-&#62;xpath(&#8217;//entry&#8217;);
list( , $node) = each($result);
$xml = $node-&#62;asXML();
$output = substr($xml, 38, 2);
for ($i = 38, $output = $xml[38]; $xml[++$i] != &#8216;&#8221;&#8216;;) {
$output .= $xml[$i];
}
wp_cache_add($rss_link, $output, &#8216;curl_cache&#8217;, 86400);
}
echo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://justmymemo.com/2009/06/show-feedburner-count.html" target="_self">上篇文章</a>讲了如何抓取 FeedBurner 的订阅数，后来才发现，居然忘记了缓存，缓存至少有两点好处，一是减轻 google 服务器的压力，google 虽然很大方，但我们也要厚道一点，呵呵，二是可以优化博客页面的响应速度，减少停顿感。下面是采取缓存的 getRssCount 函数：</p>
<blockquote><p>function getRssCount($rss_link) {<br />
if (!$output = wp_cache_get($rss_link,&#8217;curl_cache&#8217;)){<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_URL, &#8216;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&#8217; . $rss_link);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_TIMEOUT, 60);<br />
$result = curl_exec($ch);<br />
curl_close($ch);<br />
$result = new SimpleXMLElement($result);<br />
$result = $result-&gt;xpath(&#8217;//entry&#8217;);<br />
list( , $node) = each($result);<br />
$xml = $node-&gt;asXML();<br />
<span style="text-decoration: line-through;">$output = substr($xml, 38, 2);</span><br />
for ($i = 38, $output = $xml[38]; $xml[++$i] != &#8216;&#8221;&#8216;;) {<br />
$output .= $xml[$i];<br />
}<br />
wp_cache_add($rss_link, $output, &#8216;curl_cache&#8217;, 86400);<br />
}<br />
echo $output;<br />
}</p></blockquote>
<p>ps：类无法用 serialize() 序列化，所以保存为了 xml。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=QJRZk_gMNcA:KVFErkYuvLc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=QJRZk_gMNcA:KVFErkYuvLc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=QJRZk_gMNcA:KVFErkYuvLc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=QJRZk_gMNcA:KVFErkYuvLc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=QJRZk_gMNcA:KVFErkYuvLc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=QJRZk_gMNcA:KVFErkYuvLc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=QJRZk_gMNcA:KVFErkYuvLc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=QJRZk_gMNcA:KVFErkYuvLc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=QJRZk_gMNcA:KVFErkYuvLc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=QJRZk_gMNcA:KVFErkYuvLc:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/cache-feedburner-count.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何显示 FeedBurner 订阅数</title>
		<link>http://justmymemo.com/2009/06/show-feedburner-count.html</link>
		<comments>http://justmymemo.com/2009/06/show-feedburner-count.html#comments</comments>
		<pubDate>Wed, 03 Jun 2009 00:09:41 +0000</pubDate>
		<dc:creator>Centeur</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://justmymemo.com/?p=362</guid>
		<description><![CDATA[很多人都不喜欢 FeedBurner 订阅数的统计图标，如果抓取到 FeedBurner 的订阅数字，再辅以自己设计的图片，利用 css 就可以打造出属于自己的更富个性的统计图标。
首先，需要到 FeedBurner 激活 Awareness API 服务；

其次，在 functions.php 中添加如下函数：
function getRssCount($rss_link) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, &#8216;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&#8217; . $rss_link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$result = curl_exec($ch);
curl_close($ch);
$result = new SimpleXMLElement($result);
echo $result-&#62;feed-&#62;entry['circulation'];
}
最后，在合适的地方调用：
&#60;?php getRssCount(&#8217;http://feeds2.feedburner.com/centeur&#8217;); ?&#62;
Awareness API 的相关文档可以在这里查看。
]]></description>
			<content:encoded><![CDATA[<p>很多人都不喜欢 FeedBurner 订阅数的统计图标，如果抓取到 FeedBurner 的订阅数字，再辅以自己设计的图片，利用 css 就可以打造出属于自己的更富个性的统计图标。</p>
<p>首先，需要到 FeedBurner 激活 Awareness API 服务；</p>
<p><img class="alignnone" title="Awareness API" src="http://img190.imageshack.us/img190/6084/screenshot1nsr.jpg" alt="" width="504" height="461" /></p>
<p>其次，在 functions.php 中添加如下函数：</p>
<blockquote><p>function getRssCount($rss_link) {<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_URL, &#8216;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=&#8217; . $rss_link);<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_TIMEOUT, 60);<br />
$result = curl_exec($ch);<br />
curl_close($ch);<br />
$result = new SimpleXMLElement($result);<br />
echo $result-&gt;feed-&gt;entry['circulation'];<br />
}</p></blockquote>
<p>最后，在合适的地方调用：</p>
<blockquote><p>&lt;?php getRssCount(&#8217;http://feeds2.feedburner.com/centeur&#8217;); ?&gt;</p></blockquote>
<p>Awareness API 的相关文档可以在<a href="http://code.google.com/intl/zh-CN/apis/feedburner/awareness_api.html" target="_blank">这里</a>查看。</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/centeur?a=82pkA-osjgI:4xiezG8ttrU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/centeur?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=82pkA-osjgI:4xiezG8ttrU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/centeur?i=82pkA-osjgI:4xiezG8ttrU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=82pkA-osjgI:4xiezG8ttrU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/centeur?i=82pkA-osjgI:4xiezG8ttrU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=82pkA-osjgI:4xiezG8ttrU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/centeur?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=82pkA-osjgI:4xiezG8ttrU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/centeur?i=82pkA-osjgI:4xiezG8ttrU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/centeur?a=82pkA-osjgI:4xiezG8ttrU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/centeur?i=82pkA-osjgI:4xiezG8ttrU:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://justmymemo.com/2009/06/show-feedburner-count.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
