<?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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>Caspar Ant</title>
	
	<link>http://www.CasparAnt.com</link>
	<description>Life beyond Linux and Programming</description>
	<lastBuildDate>Fri, 06 Nov 2009 02:33:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/CasparAnt" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>博客搬家后Feed测试</title>
		<link>http://www.CasparAnt.com/feed-test-in-new-host.html</link>
		<comments>http://www.CasparAnt.com/feed-test-in-new-host.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 20:13:54 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Blog Affair]]></category>
		<category><![CDATA[feed]]></category>

		<guid isPermaLink="false">http://CasparAnt.com/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6%e5%90%8efeed%e6%b5%8b%e8%af%95.html</guid>
		<description><![CDATA[换到hugege的site5主机了，不过feed和页面都出现了很多问题。测试一下。
重新验证验证Feedsky: 1975e338

	日志标签feed

	相关日志
	
	重新验证Feed Source@Feedsky (2)
	原来这就是我在FeedBurner的界面呀 (13)
	[推荐]grnotify-1.0.0-RC1 released (0)
	FeedCat: 一个新的FEED托管 (4)

... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>换到<a href="http://www.gegehost.com">hugege</a>的site5主机了，不过<a href="http://www.CasparAnt.com/tag/feed" class="st_tag internal_tag" rel="tag" title="标签 feed 下的日志">feed</a>和页面都出现了很多问题。测试一下。</p>
<p>重新验证验证Feedsky: 1975e338</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/feed" title="feed" rel="tag">feed</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/reconfirm-feedsky-feed.html" title="重新验证Feed Source@Feedsky (2008-09-17)">重新验证Feed Source@Feedsky</a> (2)</li>
	<li><a href="http://www.CasparAnt.com/i-finally-see-my-feedburner-page.html" title="原来这就是我在FeedBurner的界面呀 (2008-09-13)">原来这就是我在FeedBurner的界面呀</a> (13)</li>
	<li><a href="http://www.CasparAnt.com/grnotify-100-rc1-released.html" title="[推荐]grnotify-1.0.0-RC1 released (2008-05-13)">[推荐]grnotify-1.0.0-RC1 released</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/feedcat-a-new-feed-agent.html" title="FeedCat: 一个新的FEED托管 (2008-08-20)">FeedCat: 一个新的FEED托管</a> (4)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/ZwzjzRnRi3Ab7wInRB-AaPFH3oE/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZwzjzRnRi3Ab7wInRB-AaPFH3oE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZwzjzRnRi3Ab7wInRB-AaPFH3oE/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZwzjzRnRi3Ab7wInRB-AaPFH3oE/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/feed-test-in-new-host.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>更新到了xorg-server-1.7</title>
		<link>http://www.CasparAnt.com/update-to-xorg-server-1-7.html</link>
		<comments>http://www.CasparAnt.com/update-to-xorg-server-1-7.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 09:03:24 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Desktop Using]]></category>

		<guid isPermaLink="false">http://www.casparant.com/update-to-xorg-server-1-7.html</guid>
		<description><![CDATA[Unmask了xorg-server，然后有一堆x11-libs和x11-protos的包要升级，而且都是给mask了的，于是统统unmask掉，编译。
关于X相关组件的编译，这里再提一下@gnawux说过的：
先编译mesa-libs,再编译mesa，再编译xorg-server，再编译x11-drivers。其中一个升级了，它后面的软件都得重新依次编译。
我现在是升级xorg-server，所以编译完之后要重新编译驱动，尤其是像这种1.6到1.7的跨大版本的更新。其中发现除了udev有一个新版本之外，其他的驱动都是老版本。
编译完了之后发现/etc/X11/xorg.conf的格式有一点点改变，几乎没有影响，有没有增减字段我就不知道了。进了X之后，使用起来没有什么变化。
就这样。
P.S. 今天去面试了某互联网公司，一塌糊涂。看来我真的不适合这样的公司，还是老老实实做我的Linux吧。
该日志未加标签
	相关日志
	
	没有相关日志
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>Unmask了xorg-server，然后有一堆x11-libs和x11-protos的包要升级，而且都是给mask了的，于是统统unmask掉，编译。</p>
<p>关于X相关组件的编译，这里再提一下<a href="http://labs.chinamobile.com/mblog/225">@gnawux</a>说过的：</p>
<blockquote><p>先编译mesa-libs,再编译mesa，再编译xorg-server，再编译x11-drivers。其中一个升级了，它后面的软件都得重新依次编译。</p></blockquote>
<p>我现在是升级xorg-server，所以编译完之后要重新编译驱动，尤其是像这种1.6到1.7的跨大版本的更新。其中发现除了udev有一个新版本之外，其他的驱动都是老版本。</p>
<p>编译完了之后发现/etc/X11/xorg.conf的格式有一点点改变，几乎没有影响，有没有增减字段我就不知道了。进了X之后，使用起来没有什么变化。</p>
<p>就这样。</p>
<p>P.S. 今天去面试了某互联网公司，一塌糊涂。看来我真的不适合这样的公司，还是老老实实做我的Linux吧。</p>
</p>该日志未加标签
	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/JsMJb-E7qivbdgCXl2Zcax_BNTQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/JsMJb-E7qivbdgCXl2Zcax_BNTQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JsMJb-E7qivbdgCXl2Zcax_BNTQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/JsMJb-E7qivbdgCXl2Zcax_BNTQ/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/update-to-xorg-server-1-7.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>让gnome-power-manager使用notify-osd通知</title>
		<link>http://www.CasparAnt.com/make-gpm-use-notify-osd.html</link>
		<comments>http://www.CasparAnt.com/make-gpm-use-notify-osd.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 09:00:39 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Desktop Using]]></category>

		<guid isPermaLink="false">http://www.casparant.com/make-gpm-use-notify-osd.html</guid>
		<description><![CDATA[感谢Tualatrix同学对Notify-OSD, pidgin-libnotify, notification-daemon等包的hack，让我用上了Ubuntu下的Notify-OSD特性。不过因为笔记本经常要拔电源，这gnome-power-manager的事件通知还不能使用notify-osd，一拔电源就跳出窗口让人不爽，上网搜索，终于找到了解决方案。
在AUR里面找到了这个: http://aur.archlinux.org/packages.php?ID=24699, 里面包含了notify-osd的补丁。可惜这是for 2.24的gpm的，直接patch会报错。我把它下载下来，修改了一下，让它能用在2.26.4的gpm上。修改后的patch可以从我在github上的overlay里下到：http://github.com/casparant/caspar-gentoo/tree/master。
现在gpm已经正常使用notify-osd了。至少拔除电源的时候能正确通知，不知道其他情况下如何。

补充一个网址https://wiki.ubuntu.com/NotifyOSD，看来Notify-OSD接管所有桌面通知任重而道远啊~
该日志未加标签
	相关日志
	
	没有相关日志
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>感谢<a href="http://imtx.cn" target="new">Tualatrix</a>同学对Notify-OSD, pidgin-libnotify, notification-daemon等包的hack，让我用上了Ubuntu下的Notify-OSD特性。不过因为笔记本经常要拔电源，这gnome-power-manager的事件通知还不能使用notify-osd，一拔电源就跳出窗口让人不爽，上网搜索，终于找到了解决方案。</p>
<p>在AUR里面找到了这个: <a href="http://aur.archlinux.org/packages.php?ID=24699" target="new" >http://aur.archlinux.org/packages.php?ID=24699</a>, 里面包含了notify-osd的补丁。可惜这是for 2.24的gpm的，直接patch会报错。我把它下载下来，修改了一下，让它能用在2.26.4的gpm上。修改后的patch可以从我在github上的overlay里下到：<a href="http://github.com/casparant/caspar-gentoo/tree/master" target="new">http://github.com/casparant/caspar-gentoo/tree/master</a>。</p>
<p>现在gpm已经正常使用notify-osd了。至少拔除电源的时候能正确通知，不知道其他情况下如何。</p>
<p><a href="http://www.casparant.com/wp-content/uploads/2009/08/Screenshot-2009-08-29-165948.png"><img src="http://www.casparant.com/wp-content/uploads/2009/08/Screenshot-2009-08-29-165948.png" alt="Screenshot-2009-08-29-16:59:48" title="Screenshot-2009-08-29-16:59:48" width="306" height="116" class="aligncenter size-full wp-image-294" /></a></p>
<p>补充一个网址<a href="https://wiki.ubuntu.com/NotifyOSD" target="new">https://wiki.ubuntu.com/NotifyOSD</a>，看来Notify-OSD接管所有桌面通知任重而道远啊~</p>
</p>该日志未加标签
	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/K52Y1OurHULtbiaZSG5vkarB-qM/0/da"><img src="http://feedads.g.doubleclick.net/~a/K52Y1OurHULtbiaZSG5vkarB-qM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/K52Y1OurHULtbiaZSG5vkarB-qM/1/da"><img src="http://feedads.g.doubleclick.net/~a/K52Y1OurHULtbiaZSG5vkarB-qM/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/make-gpm-use-notify-osd.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>更新了KDE 4.3</title>
		<link>http://www.CasparAnt.com/upgraded-to-kde-4-3.html</link>
		<comments>http://www.CasparAnt.com/upgraded-to-kde-4-3.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:04:35 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Desktop Using]]></category>

		<guid isPermaLink="false">http://www.casparant.com/upgraded-to-kde-4-3.html</guid>
		<description><![CDATA[发现portage里已经有了KDE4.3，只是mask掉了。思忖再三决定装上。没有好方法把kde4.3的东西一次性unmask掉，只好手动从/usr/portage/profiles/package.mask里面把kde4.3相关的每个包给unmask掉。解决了几个比较难缠的block问题，就进入漫长的80+个包的更新过程。幸好手头有一堆BUG要VERIFY，等下午开完会，发现已经装好了。
重启之后略略有些失望，Plasma用了Air，浅色的主题看起来不习惯了。换回Oxygen去- -b
然后打开一个窗口，原先KWin启用了很zb的摇摆特效，在KDE4.3中居然像一坨泥巴一样不停往下掉，往下掉，往下掉……从最大化恢复到小窗口后，整个窗口又好像被人从下面卷起来卷到了窗口顶部，总之这个效果绝非摇摆特效正常的效果。还是少zb一点，把这个不会提高工作效率的特效关掉吧。
右下角的systray，居然有了“隐藏不活动的图标”，向MS靠拢么？
其他features没有体验到太多，用几天希望有新的好的感受吧。
对了，KDE菜单又消失了，解决方法如下：
emerge gnome-menus->emerge -... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>发现portage里已经有了KDE4.3，只是mask掉了。思忖再三决定装上。没有好方法把kde4.3的东西一次性unmask掉，只好手动从/usr/portage/profiles/package.mask里面把kde4.3相关的每个包给unmask掉。解决了几个比较难缠的block问题，就进入漫长的80+个包的更新过程。幸好手头有一堆BUG要VERIFY，等下午开完会，发现已经装好了。</p>
<p>重启之后略略有些失望，Plasma用了Air，浅色的主题看起来不习惯了。换回Oxygen去- -b</p>
<p>然后打开一个窗口，原先KWin启用了很zb的摇摆特效，在KDE4.3中居然像一坨泥巴一样不停往下掉，往下掉，往下掉……从最大化恢复到小窗口后，整个窗口又好像被人从下面卷起来卷到了窗口顶部，总之这个效果绝非摇摆特效正常的效果。还是少zb一点，把这个不会提高工作效率的特效关掉吧。</p>
<p>右下角的systray，居然有了“隐藏不活动的图标”，向MS靠拢么？</p>
<p>其他features没有体验到太多，用几天希望有新的好的感受吧。</p>
<p>对了，KDE菜单又消失了，解决方法如下：</p>
<p>emerge gnome-menus->emerge -C gnome-menus->cd /etc/xdg/menus->用vim打开里面的文件，一个一个爱抚一遍->心里骂几遍该死的菜单->重启->ok了。</p>
</p>该日志未加标签
	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/tBUB-c8cDcNb8Nelj4NmDarNoBg/0/da"><img src="http://feedads.g.doubleclick.net/~a/tBUB-c8cDcNb8Nelj4NmDarNoBg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/tBUB-c8cDcNb8Nelj4NmDarNoBg/1/da"><img src="http://feedads.g.doubleclick.net/~a/tBUB-c8cDcNb8Nelj4NmDarNoBg/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/upgraded-to-kde-4-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>第一天上班</title>
		<link>http://www.CasparAnt.com/first-day-at-work.html</link>
		<comments>http://www.CasparAnt.com/first-day-at-work.html#comments</comments>
		<pubDate>Mon, 13 Jul 2009 15:14:01 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[*Nix Life]]></category>

		<guid isPermaLink="false">http://www.casparant.com/first-day-at-work.html</guid>
		<description><![CDATA[早上去得太早了，Team Leader都没来，甚至连前台都没来- -&#124;&#124;&#124;。先是很nice的清洁工阿姨招呼我们去会议室等着，然后是一位很nice的MM，另一组的Leader把我们带到自己的座位。座位上躺着若干没拆封的机子，她让我们随便挑几台拆了装好。装上一看这机子居然自带Suse11.2，Dell真是太汗了。不过机子性能很好，4核4G，21寸LCD。
10点多的时候我们组的Leader过来了，告诉我们可以重装系统，装Fedora或者RHEL都行。结果没想到重装了无数次系统，今天这重装系统真是折磨人，先是通过NIC进行网络启动安装，结果找不到安装时的repo；后来用netinstall光盘，结果耗费了半个小时还是装不上。看看表都11点半了，乖乖跟着Leader去吃饭，真贵啊。
吃完饭Leader带着我们转了一圈，发现有免费零食吃额，HOHOHO....然后继续折腾我那机子。刻了一F11的DVD，结果给别人装可以，给我装我的光驱就不认。然后再找人刻一张盘，到最后给刻废了。平时都不会发生的事情现在统统在我身上... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>早上去得太早了，Team Leader都没来，甚至连前台都没来- -|||。先是很nice的清洁工阿姨招呼我们去会议室等着，然后是一位很nice的MM，另一组的Leader把我们带到自己的座位。座位上躺着若干没拆封的机子，她让我们随便挑几台拆了装好。装上一看这机子居然自带Suse11.2，Dell真是太汗了。不过机子性能很好，4核4G，21寸LCD。</p>
<p>10点多的时候我们组的Leader过来了，告诉我们可以重装系统，装Fedora或者RHEL都行。结果没想到重装了无数次系统，今天这重装系统真是折磨人，先是通过NIC进行网络启动安装，结果找不到安装时的repo；后来用netinstall光盘，结果耗费了半个小时还是装不上。看看表都11点半了，乖乖跟着Leader去吃饭，真贵啊。</p>
<p>吃完饭Leader带着我们转了一圈，发现有免费零食吃额，HOHOHO....然后继续折腾我那机子。刻了一F11的DVD，结果给别人装可以，给我装我的光驱就不认。然后再找人刻一张盘，到最后给刻废了。平时都不会发生的事情现在统统在我身上发生了，哭死。最后抱着侥幸心理再去打印室拿了一张空白盘，再刻一回，结果最后checksum的时候又报错了。不过拿了这张盘塞进光驱居然还能用，最后好歹是给装上了。</p>
<p>折腾新系统期间，看到了<a href="http://kongove.cn" target="blank">kongove</a>的位子，过去聊了几句。他带着我认识了一圈人，娃哈哈，好亲切。</p>
<p>今天真折腾坏了，加上路太远，来回奔波的，累啊。我要租房我要租房！</p>
</p>该日志未加标签
	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/viqMkK5B3OoYMLvcSm6-P3yFaCs/0/da"><img src="http://feedads.g.doubleclick.net/~a/viqMkK5B3OoYMLvcSm6-P3yFaCs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/viqMkK5B3OoYMLvcSm6-P3yFaCs/1/da"><img src="http://feedads.g.doubleclick.net/~a/viqMkK5B3OoYMLvcSm6-P3yFaCs/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/first-day-at-work.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>更新：GCALDaemon与KDE套件集成</title>
		<link>http://www.CasparAnt.com/gcaldaemon-to-sync-with-kde.html</link>
		<comments>http://www.CasparAnt.com/gcaldaemon-to-sync-with-kde.html#comments</comments>
		<pubDate>Wed, 17 Jun 2009 17:38:10 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>

		<guid isPermaLink="false">http://www.casparant.com/%e6%9b%b4%e6%96%b0%ef%bc%9agcaldaemon%e4%b8%8ekde%e5%a5%97%e4%bb%b6%e9%9b%86%e6%88%90.html</guid>
		<description><![CDATA[前面翻译了一篇关于GCALDaemon的文章，发现上次写的东西太没条理了，正好这次把KOrganizer和KAddressbook都搞定了，所以重新写一篇。
文章主要参考的还是GCALDaemon的usage页面，本文主要介绍使用GCALDaemon将KOrganizer和Google Calendar同步、将KAddressbook和GMAIL地址簿同步。
上次使用远程文件的方式在Arch下确实搞定了，但是今天在Gentoo下又搞不定了。而且要使用远程资源的话，要装kdepim-kresources这个包。对于我这个有洁癖的人，当然是包越少越好了。如果有兴趣使用远程文件的，看完本文，参考前面那篇文章和GCALDaemon的官方主页吧。
首先是下载GCALDaemon，下载完之后解压缩到/opt下，不知道GCALDaemon的开发人员刚开始怎么想的，居然想要解压缩到/usr/local/sbin下，囧。不过还要改三个文件，因为路径和预设的不一样了。使用sed命令：

sed -i &#34;s&#124;^GCALDIR=.*$&#124;GCALDIR=/opt/gcaldaemon&#124;g&#34; bin/password-encoder.sh
sed -i &#34;s&#124;^GCALDIR=.*$&#124;GCALDIR=/opt/gcaldaemon&#124;g&#34; bin/standalone-start.sh
sed... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>前面翻译了一篇<a href="http://www.casparant.com/sync-google-calendar-to-korganizer-with-gcaldaemon.html">关于GCALDaemon的文章</a>，发现上次写的东西太没条理了，正好这次把KOrganizer和KAddressbook都搞定了，所以重新写一篇。</p>
<p>文章主要参考的还是<a href="http://gcaldaemon.sourceforge.net/usage.html">GCALDaemon的usage页面</a>，本文主要介绍使用GCALDaemon将KOrganizer和<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar同步、将KAddressbook和GMAIL地址簿同步。</p>
<p>上次使用远程文件的方式在Arch下确实搞定了，但是今天在<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>下又搞不定了。而且要使用远程资源的话，要装kdepim-kresources这个包。对于我这个有洁癖的人，当然是包越少越好了。如果有兴趣使用远程文件的，看完本文，参考前面那篇文章和GCALDaemon的官方主页吧。</p>
<p>首先是下载GCALDaemon，下载完之后解压缩到/opt下，不知道GCALDaemon的开发人员刚开始怎么想的，居然想要解压缩到/usr/local/sbin下，囧。不过还要改三个文件，因为路径和预设的不一样了。使用sed命令：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;s|^GCALDIR=.*$|GCALDIR=/opt/gcaldaemon|g&quot;</span> bin<span style="color: #000000; font-weight: bold;">/</span>password-encoder.sh
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;s|^GCALDIR=.*$|GCALDIR=/opt/gcaldaemon|g&quot;</span> bin<span style="color: #000000; font-weight: bold;">/</span>standalone-start.sh
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;s|^GCALDIR=.*$|GCALDIR=/opt/gcaldaemon|g&quot;</span> bin<span style="color: #000000; font-weight: bold;">/</span>sync-now.sh</pre></div></div>

<p>之后可以把dev文件夹删掉，因为用不着，然后把bin/下面的*.sh文件都给增加可执行权限。</p>
<p><a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">gentoo</a>用户可以去<a href="http://bugs.gentoo.org/237336">gentoo bugs</a>下载ebuild文件，或者用我的这个改过一些内容的：<a href='http://www.casparant.com/wp-content/uploads/2009/06/gcaldaemon-1.0_beta16.ebuild'>点此下载>>></a></p>
<p>之后可以选择用root权限启动config-editor.sh（当然也可以按照官方网站上说的那样，chown到当前用户下，用普通用户权限执行），进行配置。</p>
<p><span id="more-291"></span>配置的时候关闭http同步，开启文件同步，关联好<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>账户之后，在<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar项选择你要同步的日历，在iCal file里面选择一个你的日历文件（一般可以在<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar里面把你的private ical文件下下来后保存，然后在这里添加进去。当然也可以新建一个空的ics文件）。配置完为KOrganizer准备的同步后，配置LDAP服务器，关联好<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>账户，其他都默认即可。</p>
<p>接下来要启动GCALDaemon应用程序。还是以root权限启动（或者如前面所说，改了owner之后用普通用户权限启动），可以自己写一个启动脚本，比如<a href='http://www.casparant.com/wp-content/uploads/2009/06/gcaldaemon'>点击这里</a>下我写的<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>下的启动脚本。</p>
<p>然后就是在应用程序里面配置了。</p>
<p>打开KOrganizer，左下角“日历”处新建一个日历。从本地文件添加，找到刚才你配置时填写的本地文件，自己取个名字，确定即可。如果没有RP问题的话，应该就可以看到你在<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar上面的事件了。你可以在上面增删事件，对应的修改马上会保存到本地ics文件中。但是GCALDaemon会按照你在config-editor.sh里预设的时间间隔同步到<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">google</a>上去，最少的间隔都要10分钟，所以这段时间里面要谨慎到Web上修改日历。</p>
<p>打开KAddressbook，左下角“地址簿”处新建一个地址簿。从LDAP添加，只用填写主机和端口，主机为localhost，端口为你在config-editor.sh里面填写的端口，默认为9080。然后就可以同步了。不过我发现一个问题，在KAddressBook里面删除，不能更新Gmail。似乎是LDAP不支持。</p>
<p>通过以上配置，可顺利将<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>的若干服务与KDE集成。当然，配上IMAP的KMail收发Gmail，Aggregator导入<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Reader条目，这样就更完整了。</p>
<p>不过，我还是十分看好<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>的，现在我已经不习惯用本地客户端来收发Mail了，GMail太方便了。所以上述配置对我来说最有用的，还只是KOrganizer而已。什么时候我养成了看TODO上Web的习惯，那这些配置也就彻底不需要了。</p>
</p>该日志未加标签
	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/ZxWse_yhy1PxQVdKUHCuscsTmh0/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZxWse_yhy1PxQVdKUHCuscsTmh0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZxWse_yhy1PxQVdKUHCuscsTmh0/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZxWse_yhy1PxQVdKUHCuscsTmh0/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/gcaldaemon-to-sync-with-kde.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>可怜的笔记本</title>
		<link>http://www.CasparAnt.com/poor-my-notebook.html</link>
		<comments>http://www.CasparAnt.com/poor-my-notebook.html#comments</comments>
		<pubDate>Wed, 17 Jun 2009 15:30:46 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[No Category]]></category>

		<guid isPermaLink="false">http://www.casparant.com/poor-my-notebook.html</guid>
		<description><![CDATA[昨晚呢，由于一瓶水泼到了键盘上……
1.5秒之后，当机立断拔掉电源和电池，把笔记本倒扣。
30分钟之后，键盘被拆下，甩了甩，各种出水。
为了确认笔记本别处没有进水，遂决定把整个笔记本都拆开。





发件人 手机随拍


拆开后发现，电脑前面触摸屏、多媒体按键和两个扩音器进水了；光驱位顶上有一点水迹，应该没进水；南桥芯片（应该是南桥）上有一滴水；集成电路没有水迹；SD卡卡槽有水。情况还不算糟糕。
顺便把风扇和散热片清理了一下。还有屏幕转轴那好脏啊……





发件人 手机随拍


清理完毕，装回去。结果发现多了一个螺丝……天哪，我居然犯这种错误。不过我估计到哪个地方缺螺丝了，是在主板中间。没那么好工夫去再拆一遍螺丝把这个拧上，就这么放着算了。
键盘用吹风机吹了半天，看看里面差不多干了，接回去，还是不行。索性把每个键帽都给卸了，卸了我整整半个小时。发现Dell的键帽塑料质量还不错，怎么扯都不断。可惜后... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>昨晚呢，由于一瓶水泼到了键盘上……</p>
<p>1.5秒之后，当机立断拔掉电源和电池，把笔记本倒扣。</p>
<p>30分钟之后，键盘被拆下，甩了甩，各种出水。</p>
<p>为了确认笔记本别处没有进水，遂决定把整个笔记本都拆开。</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/PHs4KnIgnGOGBDYnOLnWaw?feat=embedwebsite"><img src="http://lh6.ggpht.com/_GO0_cDn05ew/SjeitEeKzSI/AAAAAAAABUM/oLy_7c8H2eo/s288/20090616316.jpg" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">发件人 <a href="http://picasaweb.google.com/casparant/nkDJYC?feat=embedwebsite">手机随拍</a></td>
</tr>
</table>
<p><span id="more-288"></span>拆开后发现，电脑前面触摸屏、多媒体按键和两个扩音器进水了；光驱位顶上有一点水迹，应该没进水；南桥芯片（应该是南桥）上有一滴水；集成电路没有水迹；SD卡卡槽有水。情况还不算糟糕。</p>
<p>顺便把风扇和散热片清理了一下。还有屏幕转轴那好脏啊……</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/NQMQ1v-fe89wT-6SoG3-mQ?feat=embedwebsite"><img src="http://lh4.ggpht.com/_GO0_cDn05ew/SjkLVVHpRrI/AAAAAAAABUs/yOilPdoL9UY/s288/DSCN5075.JPG" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">发件人 <a href="http://picasaweb.google.com/casparant/nkDJYC?feat=embedwebsite">手机随拍</a></td>
</tr>
</table>
<p>清理完毕，装回去。结果发现多了一个螺丝……天哪，我居然犯这种错误。不过我估计到哪个地方缺螺丝了，是在主板中间。没那么好工夫去再拆一遍螺丝把这个拧上，就这么放着算了。</p>
<p>键盘用吹风机吹了半天，看看里面差不多干了，接回去，还是不行。索性把每个键帽都给卸了，卸了我整整半个小时。发现Dell的键帽塑料质量还不错，怎么扯都不断。可惜后来过于暴力Esc键还是被我给弄坏了。键帽卸掉之后，发现里面的油漆电路挂了，看来键盘必须得换了。</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/pX1PIUib2XWkDJp7TQBG2g?feat=embedwebsite"><img src="http://lh3.ggpht.com/_GO0_cDn05ew/SjkLU2Z6DxI/AAAAAAAABUk/BxDXTjH26dc/s288/DSCN5077.JPG" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">发件人 <a href="http://picasaweb.google.com/casparant/nkDJYC?feat=embedwebsite">手机随拍</a></td>
</tr>
</table>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/MEjOi5Wfczng858OxpElBA?feat=embedwebsite"><img src="http://lh4.ggpht.com/_GO0_cDn05ew/SjkLUvcAg-I/AAAAAAAABUg/9B0Ghpje2M0/s288/DSCN5079.JPG" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">发件人 <a href="http://picasaweb.google.com/casparant/nkDJYC?feat=embedwebsite">手机随拍</a></td>
</tr>
</table>
<p>今天买了新键盘，估计被杀猪了5555</p>
<p>然后突然决定再拆一次，把螺丝都给拧好。</p>
<p>结果拆到触摸板到主板的排线的时候，发现排线右边有两根脱落了- -|||，我估计触摸板那里有个功能要坏了。试了一下，果然，右键坏了。这下完蛋，代价太大了。正准备明天去村里要根新的排线，觉得这两根线还是可以用，用小刀把两个线的位置调整了一下，小心地插回去，反复试了几次，终于成功了。</p>
<p>至于这排线为什么会坏呢？都怪我自己不熟悉这种排线插槽，这种插槽末端有个可以插拔的卡口，拔出就可以拆卸排线，插入就可以固定排线，可是昨晚不知道，用蛮力把它拔下来了，更要命的是，我用蛮力把它插回去了- -|||排线末尾都被我给弄弯曲了，那么细的电线会脱落也就不奇怪了。不过还好现在凑合着能用了，而且估计也不会容易坏。</p>
<p>再把零件装回去，发现居然少了两颗螺丝，还多出一颗拧不上的螺丝。丢脸丢到家了T_T</p>
<p>不过不管怎么说，现在电脑是重新能用了，阿门。</p>
<table style="width:auto;">
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/CkbKjRa_QDip5lMKtkwcsg?feat=embedwebsite"><img src="http://lh6.ggpht.com/_GO0_cDn05ew/SjjKme6QgDI/AAAAAAAABUY/EB7Q2fjlbL0/s288/20090617320.jpg" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">发件人 <a href="http://picasaweb.google.com/casparant/nkDJYC?feat=embedwebsite">手机随拍</a></td>
</tr>
</table>
</p>该日志未加标签
	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/AybqrO9L2iXTb52YJ9P1Ws0zZO0/0/da"><img src="http://feedads.g.doubleclick.net/~a/AybqrO9L2iXTb52YJ9P1Ws0zZO0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AybqrO9L2iXTb52YJ9P1Ws0zZO0/1/da"><img src="http://feedads.g.doubleclick.net/~a/AybqrO9L2iXTb52YJ9P1Ws0zZO0/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/poor-my-notebook.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Gentoo折腾 Milestone3</title>
		<link>http://www.CasparAnt.com/using-gentoo-milestone-3.html</link>
		<comments>http://www.CasparAnt.com/using-gentoo-milestone-3.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 16:24:06 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[*Nix Distros]]></category>
		<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://www.casparant.com/gentoo%e6%8a%98%e8%85%be-milestone3.html</guid>
		<description><![CDATA[上次几位说我从Gentoo叛逃到Arch我就已经心生愧疚。本来嘛，选择Arch等于选择免编译的便捷，选择Gentoo等于选择了完全定制的自由。在便捷和自由的交锋中，伴随着我一次手欠的操作，最终后者胜了，我重新回到了Gentoo的怀抱。
先说说那个手欠的操作。
我不小心新建了一个名字为~的文件夹，然后发现不对，文件名弄错了。于是想要删除之。于是执行了 rm ~ -rf。就这样。等待了10秒中之后，还没意识到什么问题，居然还加了sudo再执行了一次那个命令- -&#124;&#124;&#124; 然后pwd，发现路径不存在。然后cd，发现路径还是不存在。于是我哭了。幸好在服务器上有半个月前的数据备份，最重要的数据都给找回来了，这半个月写的代码也都凭着记忆给补回来一些了（说明我这半个月基本上没编码，哈哈，万幸）。
数据回来之后一不做二不休，全盘格，直接回Gentoo了。
可爱的Arch就这么被我抛弃了。
上来直接上ext4分区。以前碰到过grub能认分区，但是kernel panic的情况，后来发... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>上次几位说我从<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>叛逃到Arch我就已经心生愧疚。本来嘛，选择Arch等于选择免编译的便捷，选择<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>等于选择了完全定制的自由。在便捷和自由的交锋中，伴随着我一次手欠的操作，最终后者胜了，我重新回到了<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>的怀抱。</p>
<p>先说说那个手欠的操作。</p>
<p>我不小心新建了一个名字为~的文件夹，然后发现不对，文件名弄错了。于是想要删除之。于是执行了 rm ~ -rf。就这样。等待了10秒中之后，还没意识到什么问题，居然还加了sudo再执行了一次那个命令- -||| 然后pwd，发现路径不存在。然后cd，发现路径还是不存在。于是我哭了。幸好在服务器上有半个月前的数据备份，最重要的数据都给找回来了，这半个月写的代码也都凭着记忆给补回来一些了（说明我这半个月基本上没编码，哈哈，万幸）。</p>
<p>数据回来之后一不做二不休，全盘格，直接回<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>了。</p>
<p>可爱的Arch就这么被我抛弃了。</p>
<p>上来直接上ext4分区。以前碰到过grub能认分区，但是kernel panic的情况，后来发现原来是要从ext4分区启动，需要initramfs。于是genkernel --menuconfig all手动配置完内核，生成了initramfs(我目前只会这个方法，囧，谁能告诉我怎么样生成initramfs）。</p>
<p>回顾一下历史遗留问题：</p>
<p><span id="more-287"></span><br />
<blockquote>
[E] 挂起、休眠恢复后死机，黑屏，键盘鼠标无任何响应。<br />
[E] KDE4注销后黑屏，不能重新进入KDM界面<br />
[H] Python, Perl的GUI程序乱码；<br />
[H] GEM间歇性不能开启<br />
[H] 有时候关机出现循环提示：mount-ro: wait for killproc<br />
[M] 配置KMS<br />
[M] 配置宽屏控制台
</p></blockquote>
<p>1。挂起、休眠恢复的问题解决。2.6.30内核似乎使用了tuxonice补丁，当然这个问题的修复和tuxonice补丁没关系，以前用了还是死机。这次不知道怎么回事莫名其妙就好了。</p>
<p>2。注销后黑屏。估计是konsolekit这个服务的问题吧，忘了上次有没有启动这个服务了。反正这次启动这个服务之后，注销就能重新回到kdm界面了。</p>
<p>3。Perl GUI乱码，尚未解决，估计是CPAN里的某个包的问题。</p>
<p>4。GEM间歇性不能开启。现在一切正常</p>
<p>5。mount-ro: wait for killproc。现在一切正常。顺便说一句fbsplash真不错。</p>
<p>6。KMS，还是不行，甚至比上次还糟糕，花屏过后直接键盘无响应了。</p>
<p>7。宽屏控制台，还是没调出来。。。uvesafb真的能行么？</p>
<p>当然还碰到了新的问题，慢慢解决吧。</p>
<p>P.S. 雅黑字体其实挺不错的……</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/gentoo" title="Gentoo" rel="tag">Gentoo</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/install-and-configure-gentoo-milestone1.html" title="折腾Gentoo Milestone1 (2009-03-22)">折腾Gentoo Milestone1</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/stop-trying-gentoo.html" title="咱先不折腾了 (2008-09-03)">咱先不折腾了</a> (17)</li>
	<li><a href="http://www.CasparAnt.com/gentoo-or-ubuntu.html" title="Gentoo还是Ubuntu? (2008-08-18)">Gentoo还是Ubuntu?</a> (8)</li>
	<li><a href="http://www.CasparAnt.com/solved-some-problems-on-gentoo-and-new-ones-come-up.html" title="Gentoo新老问题-Milestone2 (2009-03-26)">Gentoo新老问题-Milestone2</a> (0)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/uZYIc4laeTmacvsh1ihHqBDJ2kk/0/da"><img src="http://feedads.g.doubleclick.net/~a/uZYIc4laeTmacvsh1ihHqBDJ2kk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uZYIc4laeTmacvsh1ihHqBDJ2kk/1/da"><img src="http://feedads.g.doubleclick.net/~a/uZYIc4laeTmacvsh1ihHqBDJ2kk/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/using-gentoo-milestone-3.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>用gcaldaemon同步Google Calendar到KOrganizer上</title>
		<link>http://www.CasparAnt.com/sync-google-calendar-to-korganizer-with-gcaldaemon.html</link>
		<comments>http://www.CasparAnt.com/sync-google-calendar-to-korganizer-with-gcaldaemon.html#comments</comments>
		<pubDate>Thu, 04 Jun 2009 14:15:43 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[gcaldaemon]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[korganizer]]></category>

		<guid isPermaLink="false">http://www.casparant.com/sync-google-calendar-to-korganizer-with-gcaldaemon.html</guid>
		<description><![CDATA[按：该文思路混乱，欲看系统性文章，请至：http://www.casparant.com/gcaldaemon-to-sync-with-kde.html
具体不多说，原文在这里，2007年的帖子，我又火星了。
翻译一下那段关于Google Calendar同步到KOrganizer上的步骤，方便那些一看英文就头大的同学吧：
Calendaring: Google Calendar and KOrganizer
Once you have your mail application and server working together, you can move on to your calendar. Unfortunately, Google hasn't officially announced a two-way sync for Google Calendar, but you can still use KOrganizer with Google Calendar if you use a Java runtime environment and GCALDaemon. Download the Unix/Linux/AIX/Mac OS [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>按：该文思路混乱，欲看系统性文章，请至：<a href="http://www.casparant.com/gcaldaemon-to-sync-with-kde.html">http://www.casparant.com/gcaldaemon-to-sync-with-kde.html</a></p>
<p>具体不多说，原文在<a href="http://www.linux.com/archive/feature/122054">这里</a>，2007年的帖子，我又火星了。</p>
<p>翻译一下那段关于<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar同步到KOrganizer上的步骤，方便那些一看英文就头大的同学吧：</p>
<p>Calendaring: <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar and KOrganizer</p>
<p>Once you have your mail application and server working together, you can move on to your calendar. Unfortunately, <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> hasn't officially announced a two-way sync for <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar, but you can still use KOrganizer with <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar if you use a Java runtime environment and GCALDaemon. Download the Unix/Linux/AIX/Mac OS X compatible ZIP archive from the GCALDaemon download site. Log in as root and unzip the archive to /usr/local/sbin (if that directory doesn't exist you can create it). Allow all users to access the daemon by running the command chmod 777 /usr/local/sbin/GCALDaemon. Then run /usr/local/sbin/GCALDaemon/bin/standalone-start.sh (you may want to add it to your startup process by adding a shortcut to it in ~/.kde/Autostart/).</p>
<p>Now you have to find your private iCal URL by going to <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar and clicking Settings -> Calendars -> Your Calendar and clicking the ICAL button at the bottom. Create a new KOrganizer calendar by going to the Calendar tab, clicking the Add button, selecting "Calendar in Remote File," giving it a name (e.g. Andrew's Calendar), and pasting the private URL in the "Download to" and "Upload to" fields -- but you must replace http://www.<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">google</a>.com with http://localhost:9090. Click OK, and your calendar should load. When asked for your user name and password, enter your email address (e.g. johnsmith@gmail.com) and your password.</p>
<p><span id="more-285"></span>KOrganizer and <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar work well together, with one odd exception: when you delete an event in <a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar, it won't delete in KOrganizer, and vice versa.</p>
<p>—————— 译文 ——————</p>
<p>日历软件：<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar 和 KOrganizer</p>
<p>（接上文）当你把你使邮件程序和服务都正常工作后，你就可以开始配置你的日历了。很不幸的是<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>暂时还没官方支持<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar的双向同步，不过如果你有JRE和GCALDaemon，你仍然可以用KOrganizer同步<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar。你需要从<a href="http://gcaldaemon.sourceforge.net/download.html">GCALDaemon的下载站</a>下载"Unix/Linux/AIX/Mac OS X compatible ZIP archive"版本，然后以root权限登陆并把压缩包解压到<del datetime="2009-06-04T13:47:16+00:00">/usr/local/sbin</del>/opt下(如果目录不存在你可以创建之)。运行chmod 777 <del datetime="2009-06-04T13:47:16+00:00">/usr/local/sbin/GCALDaemon</del>/opt/GCALDaemon使得所有用户都能访问它。</del> 然后运行/usr/local/sbin/GCALDaemon/bin/standalone-start.sh(你可能会想把它放到你的启动进程列表中去，创建一个软链到~/.kde/Autostart/即可）（以上步骤有待商榷，我是直接在Arch里yaourt gcaldaemon装的，运行的也不是这个脚本，是config-editor.sh脚本，GUI界面的，最后还要把/etc/rc.d/gcaldaemon加入启动菜单中）。</p>
<p>现在你在你的<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar里点击设置->日历-><你的日历>，点击底部的“ICAL”按钮，就能找到你的private iCal URL。在KOrganizer中（默认是左下角）的日历标签上点击+按钮来创建一个新的日历，选择“远程文件中的日历”，给新日历取个名字（比如Andrew's Calendar)，然后把刚才的private URL粘贴到“下载自”、“上传至”两个字段中，不过你必须把www.<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">google</a>.com替换成localhost:9090(这里对于某些默认启用了防火墙的操作系统，要注意打开端口）。点击“确定”，你的日历就会被加载了。当提示你输入你的用户名和密码时，输入你的电子邮箱（例如 johnsmith@gmail.com)和你的密码。</p>
<p>KOrganizer和<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar的衔接很不错（因为iCal标准吧…），除了一个异常：当你在<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Calendar里删除一个事件，KOrganizer里不会对应删除，反之亦不会。（这个问题在我这里没有碰到，估计那是两年前GCALDaemon的BUG吧，记住更新完事件要手动刷新日历）。</p>
<p>—————— 翻译完毕 ——————</p>
<p>谈一下自己使用GCALDaemon的感受，刚开始觉得很兴奋，终于有个能把我在线Task和本机Todo统一起来的软件了(Taskque和Remember the Milk不算，一是因为它是GTK软件，二是因为Taskque BUG还太多），不过后来发现它只能同步Event，不能同步Todo，也就是说我要么以后把我的Todo给全部换成Event，要么就没辙……对于我这种区分Event和Todo比较严格的人来说，这点让我很不爽。不过GCALDaemon的这个功能已经很不错了。</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/gcaldaemon" title="gcaldaemon" rel="tag">gcaldaemon</a>, <a href="http://www.CasparAnt.com/tag/calendar" title="calendar" rel="tag">calendar</a>, <a href="http://www.CasparAnt.com/tag/google" title="google" rel="tag">google</a>, <a href="http://www.CasparAnt.com/tag/korganizer" title="korganizer" rel="tag">korganizer</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/using-chrome-under-windows.html" title="跟风Chrome (2008-09-22)">跟风Chrome</a> (11)</li>
	<li><a href="http://www.CasparAnt.com/synchronize-your-mobile-with-gmail.html" title="把你的手机和Gmail同步起来！ (2009-02-10)">把你的手机和Gmail同步起来！</a> (2)</li>
	<li><a href="http://www.CasparAnt.com/migrate-feedburner-account-to-google-succeeded.html" title="完成feedburner到Google帐户的迁移 (2008-09-05)">完成feedburner到Google帐户的迁移</a> (7)</li>
	<li><a href="http://www.CasparAnt.com/i-finally-see-my-feedburner-page.html" title="原来这就是我在FeedBurner的界面呀 (2008-09-13)">原来这就是我在FeedBurner的界面呀</a> (13)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/LuE2rDvyh-XkQS_k59LF9g8Qu1Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/LuE2rDvyh-XkQS_k59LF9g8Qu1Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LuE2rDvyh-XkQS_k59LF9g8Qu1Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/LuE2rDvyh-XkQS_k59LF9g8Qu1Y/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/sync-google-calendar-to-korganizer-with-gcaldaemon.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>小试ArchLinux</title>
		<link>http://www.CasparAnt.com/arch-beginner.html</link>
		<comments>http://www.CasparAnt.com/arch-beginner.html#comments</comments>
		<pubDate>Tue, 02 Jun 2009 02:29:45 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[*Nix Distros]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[archlinux]]></category>
		<category><![CDATA[pkgbuild]]></category>

		<guid isPermaLink="false">http://www.casparant.com/arch-beginner.html</guid>
		<description><![CDATA[夏日来临，再隔三差五地emerge一次估计我的电脑寿命将迅速缩短，短期内还没钱买新本，只好决定放弃Gentoo投奔Arch的怀抱。
话说用了Gentoo之后，装其他发行版全部是驾轻就熟，就算是配置相对比较麻烦的Arch都轻松搞定。装好之后发现一些疑难杂症，比如不能待机、glxgears分数过低、checkgmail乱码、注销后不能重新启动kdm等等，都不治而愈了。看来Gentoo的可定制性太强了，有些设置我都完全不知道。
由于刚开始不熟悉pacman和aur的包机制，不小心把一些自己不需要的包当依赖关系给装上了，下次有空一定要好好清理一遍。
正在慢慢适应AUR中，这种管理方式感觉有点混乱，毕竟是成千上万的Arch用户都往里面塞东西。莫非我真的有洁癖？哈哈。昨天给Monkey's Audio Codec包打了个补丁，提交PKGBUILD却发现不能覆盖已有的包，郁闷。
PKGBUILD太凌乱了，还是怀念USE flag啊。
二进制包虽方便，有的用着还是不太爽，可能是心理作用，但是我的KNotes已经崩溃N次了。
先用一段时间... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>夏日来临，再隔三差五地emerge一次估计我的电脑寿命将迅速缩短，短期内还没钱买新本，只好决定放弃<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>投奔Arch的怀抱。</p>
<p>话说用了<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>之后，装其他发行版全部是驾轻就熟，就算是配置相对比较麻烦的Arch都轻松搞定。装好之后发现一些疑难杂症，比如不能待机、glxgears分数过低、checkgmail乱码、注销后不能重新启动kdm等等，都不治而愈了。看来<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>的可定制性太强了，有些设置我都完全不知道。</p>
<p>由于刚开始不熟悉pacman和aur的包机制，不小心把一些自己不需要的包当依赖关系给装上了，下次有空一定要好好清理一遍。</p>
<p>正在慢慢适应AUR中，这种管理方式感觉有点混乱，毕竟是成千上万的Arch用户都往里面塞东西。莫非我真的有洁癖？哈哈。昨天给Monkey's Audio Codec包打了个补丁，提交PKGBUILD却发现不能覆盖已有的包，郁闷。</p>
<p>PKGBUILD太凌乱了，还是怀念USE flag啊。</p>
<p>二进制包虽方便，有的用着还是不太爽，可能是心理作用，但是我的KNotes已经崩溃N次了。</p>
<p>先用一段时间再看看。总体来说除了GentooUSE flag把我养得快有洁癖和偏执了，以至于Arch的PKGBUILD让我不爽，其他的Arch做得都不错。</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/archlinux" title="archlinux" rel="tag">archlinux</a>, <a href="http://www.CasparAnt.com/tag/arch" title="arch" rel="tag">arch</a>, <a href="http://www.CasparAnt.com/tag/pkgbuild" title="pkgbuild" rel="tag">pkgbuild</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/C_BU-aHOSC2hCTc6rM-ASpcYpZc/0/da"><img src="http://feedads.g.doubleclick.net/~a/C_BU-aHOSC2hCTc6rM-ASpcYpZc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/C_BU-aHOSC2hCTc6rM-ASpcYpZc/1/da"><img src="http://feedads.g.doubleclick.net/~a/C_BU-aHOSC2hCTc6rM-ASpcYpZc/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/arch-beginner.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>我也软文一枚:GeekCook</title>
		<link>http://www.CasparAnt.com/geekcook-tee-ad.html</link>
		<comments>http://www.CasparAnt.com/geekcook-tee-ad.html#comments</comments>
		<pubDate>Sun, 10 May 2009 06:51:56 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Blog Affair]]></category>
		<category><![CDATA[geekcook]]></category>
		<category><![CDATA[tee]]></category>

		<guid isPermaLink="false">http://www.casparant.com/geekcook-tee-ad.html</guid>
		<description><![CDATA[从狗狗那里发现的一个好地方，GeekCook@blogspot，被墙了，新地址：GeekCook.org，卖T恤和卫衣的。店主说了，写软文可以免运费，那我就撰软文一篇，把运费赚回来吧。
话说店主的东西不多，样式都很棒。可惜狗狗已经抢了两件[1,2]，Amelie同学也抢了一件，我能选择的余地就太少了～暂定那件稀有元素的吧，话说当年背元素周期表我可是顺背如流啊。那件Ps的也不错，只可惜自己用的是GIMP不是Ps，希望店主多推出点GNU的产品哦。
不管了，撞衫就撞衫，我也要Twitter那件了！
上图两张：... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>从<a href="http://yegle.net/2009/05/06/just-ad" target="new">狗狗</a>那里发现的一个好地方，<del datetime="2009-05-18T04:09:04+00:00"><a href="http://geekcook.blogspot.com" target="new">GeekCook@blogspot</a></del>，被墙了，新地址：<a href="http://www.geekcook.org/">GeekCook.org</a>，卖T恤和卫衣的。店主说了，写软文可以免运费，那我就撰软文一篇，把运费赚回来吧。</p>
<p>话说店主的东西不多，样式都很棒。可惜狗狗已经抢了两件[<a href="http://www.geekcook.org/?p=44" target="new">1</a>,<a href="http://www.geekcook.org/?p=50" target="new">2</a>]，Amelie同学也抢了<a href="http://www.geekcook.org/?p=52" target="new">一件</a>，我能选择的余地就太少了～暂定那件<a href="http://www.geekcook.org/?p=48" target="new">稀有元素</a>的吧，话说当年背元素周期表我可是顺背如流啊。那件<a href="http://www.geekcook.org/?p=33" target="new">Ps</a>的也不错，只可惜自己用的是GIMP不是Ps，希望店主多推出点GNU的产品哦。</p>
<p>不管了，撞衫就撞衫，我也要Twitter那件了！</p>
<p>上图两张：</p>
<p><span id="more-283"></span><div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.geekcook.org/?p=44"><img alt="Twitter Tee" src="http://www.geekcook.org/wordpress/wp-content/uploads/2009/05/tee-twitter-tbicon.jpg" title="Twitter" width="500" height="500" /></a><p class="wp-caption-text">Twitter Tee</p></div></p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.geekcook.org/?p=48"><img alt="稀有金属，没有雷死你吧？" src="http://www.geekcook.org/wordpress/wp-content/uploads/2009/05/tee-e-tbicon.jpg" title="稀有金属，没有雷死你吧" width="500" height="500" /></a><p class="wp-caption-text">稀有金属，没有雷死你吧？</p></div>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/geekcook" title="geekcook" rel="tag">geekcook</a>, <a href="http://www.CasparAnt.com/tag/tee" title="tee" rel="tag">tee</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/vdMbgqgWsdaYa2NcxUDG7MHnLM8/0/da"><img src="http://feedads.g.doubleclick.net/~a/vdMbgqgWsdaYa2NcxUDG7MHnLM8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vdMbgqgWsdaYa2NcxUDG7MHnLM8/1/da"><img src="http://feedads.g.doubleclick.net/~a/vdMbgqgWsdaYa2NcxUDG7MHnLM8/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/geekcook-tee-ad.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Twitter客户端一箩筐</title>
		<link>http://www.CasparAnt.com/a-collection-of-twitter-clients.html</link>
		<comments>http://www.CasparAnt.com/a-collection-of-twitter-clients.html#comments</comments>
		<pubDate>Fri, 01 May 2009 12:08:40 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Desktop Using]]></category>
		<category><![CDATA[mbpurple]]></category>
		<category><![CDATA[qtwitter]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter client]]></category>

		<guid isPermaLink="false">http://www.casparant.com/a-collection-of-twitter-clients.html</guid>
		<description><![CDATA[今天更新portage的时候注意到又有一个twitter客户端出现了，名字叫qTwitter，标记为N，说明是刚进的portage。好奇之下装上一用，感觉不错。结合以前用过的若干twitter客户端，在这里网罗总结一下：


1. qTwitter
界面做得相当漂亮，有点像twitterfox，功能上也挺齐全，还能换肤色，支持多个帐号同时登录，支持RT和短地址（这两个功能不支持那也太落伍了……），现在刚上手，还没发现什么不好的地方。
2. qwit
不知道为什么我eix qwit的时候提示找不到这个软件了，可能是我不小心把一个相关的overlay给删除了吧。现在qwit已经推出0.8了，据Summer大人说支持RT了，但是我还在用的0.6版本没有RT功能。
qwit的最大缺点，如果用户是gif头像，会显示不正常。不知道0.8版本里面解决这个问题了没有。
3. choqoK
这个软件前段时间用得挺爽，不过它要用kwallet来管理密钥，每次打开软件，还得输一遍kwallet的密码，相当麻烦。最近使用更加郁闷了，我输入帐号密码，直接告诉我“认证失败... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>今天更新portage的时候注意到又有一个twitter客户端出现了，名字叫qTwitter，标记为N，说明是刚进的portage。好奇之下装上一用，感觉不错。结合以前用过的若干twitter客户端，在这里网罗总结一下：</p>
<p><span id="more-282"></span>
<ul>
<li>1. <a href="http://blog.ayoy.net/qtwitter">qTwitter</a>
<p>界面做得相当漂亮，有点像<a href="http://twitterfox.net/">twitterfox</a>，功能上也挺齐全，还能换肤色，支持多个帐号同时登录，支持RT和短地址（这两个功能不支持那也太落伍了……），现在刚上手，还没发现什么不好的地方。</li>
<li>2. <a href="http://code.google.com/p/qwit/">qwit</a>
<p>不知道为什么我eix qwit的时候提示找不到这个软件了，可能是我不小心把一个相关的overlay给删除了吧。现在qwit已经推出0.8了，据Summer大人说支持RT了，但是我还在用的0.6版本没有RT功能。</p>
<p>qwit的最大缺点，如果用户是gif头像，会显示不正常。不知道0.8版本里面解决这个问题了没有。</li>
<li>3. <a href="http://choqok.gnufolks.org/">choqoK</a>
<p>这个软件前段时间用得挺爽，不过它要用kwallet来管理密钥，每次打开软件，还得输一遍kwallet的密码，相当麻烦。最近使用更加郁闷了，我输入帐号密码，直接告诉我“认证失败”，就是密码错误的那个提示。所以现在一直都用不了这个软件了。</li>
<li>4. <a href="http://code.google.com/p/microblog-purple/">mbpurple</a>
<p>看名字就知道这个东东和pidgin有关。它确实是一个pidgin的插件，前几个版本如果单独编译，会出现莫名其妙的错误，最新的svn版能顺利编译通过了，使用起来也比以前稳定了，以前pidgin经常被它弄崩溃，现在使用mbpurple从来没有发生过崩溃现象。这个插件在插件选项里面配置以下，能支持RT和收藏。</li>
<li>5. <a href="http://www.vim.org/scripts/script.php?script_id=2204">TwitVIM</a>
<p>详见另外一篇<a href="http://www.casparant.com/twitvim-a-good-twitter-client-under-vim.html">Blog</a>。</li>
<li>6. gtwitter等GTK的twitter客户端
<p>用过，觉得不好用。加上自己现在用的是KDE桌面，所以一直没有用了，也不知道发展得如何了。</li>
</ul>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/twitter" title="twitter" rel="tag">twitter</a>, <a href="http://www.CasparAnt.com/tag/mbpurple" title="mbpurple" rel="tag">mbpurple</a>, <a href="http://www.CasparAnt.com/tag/qtwitter" title="qtwitter" rel="tag">qtwitter</a>, <a href="http://www.CasparAnt.com/tag/twitter-client" title="twitter client" rel="tag">twitter client</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/net-union.html" title="所谓“网络共同体”？ (2008-05-01)">所谓“网络共同体”？</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/twitvim-a-good-twitter-client-under-vim.html" title="VIM里的Twitter: TwitVIM (2009-02-25)">VIM里的Twitter: TwitVIM</a> (11)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/mW8eknTKG8m8L_R6MAkPUTOEw_g/0/da"><img src="http://feedads.g.doubleclick.net/~a/mW8eknTKG8m8L_R6MAkPUTOEw_g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mW8eknTKG8m8L_R6MAkPUTOEw_g/1/da"><img src="http://feedads.g.doubleclick.net/~a/mW8eknTKG8m8L_R6MAkPUTOEw_g/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/a-collection-of-twitter-clients.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>LaTeX Resume Templates</title>
		<link>http://www.CasparAnt.com/latex-resume-templates.html</link>
		<comments>http://www.CasparAnt.com/latex-resume-templates.html#comments</comments>
		<pubDate>Thu, 23 Apr 2009 14:04:35 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[shading]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[xetex]]></category>

		<guid isPermaLink="false">http://www.casparant.com/latex-resume-templates.html</guid>
		<description><![CDATA[用LaTeX上瘾之后，什么东西都想用LaTeX来做。前段时间由于经验不足，折腾LaTeX版的实验报告模板未果，这次在写LaTeX简历之前，足足做好了功课，最后总算是做出来了，感觉很棒。
推荐几个LaTeX模板，一个是以前找到的，不过我最后没采用。点此下载>>>
另外一个是在这里找到的：http://www.davidgrant.ca/latex_resume_template，作者使用了shading宏包，但是我用了XeTeX包后shading包似乎就不起作用了，后来在作者文章后面发现一个留言，似乎是个变通的办法，但是shading是有了，边框却没了。最后去smth上的TeX版求助，可爱的版主大人瞬间就回帖告诉我，用\fcolorbox等比较常见的包中的命令就能搞定，于是我就搞定了。经过我修改后的LaTeX模板，我只贴一个文件\begin{document}前面的那部分吧，因为简历的内容真的是不好意思拿出手-。-和我下载的那个网页的主人比起来，真是汗颜啊~~
这部分改动还是挺多的，特别是修改了几个命令，请注意自己替换，并且请使用xelatex命令编译。
—... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>用LaTeX上瘾之后，什么东西都想用LaTeX来做。前段时间由于经验不足，折腾LaTeX版的实验报告模板未果，这次在写LaTeX简历之前，足足做好了功课，最后总算是做出来了，感觉很棒。</p>
<p>推荐几个LaTeX模板，一个是以前找到的，不过我最后没采用。<a href='http://www.casparant.com/wp-content/uploads/2009/04/resume.7z'>点此下载>>></a></p>
<p>另外一个是在这里找到的：<a href="http://www.davidgrant.ca/latex_resume_template">http://www.davidgrant.ca/latex_resume_template</a>，作者使用了shading宏包，但是我用了XeTeX包后shading包似乎就不起作用了，后来在作者文章后面发现一个留言，似乎是个变通的办法，但是shading是有了，边框却没了。最后去smth上的TeX版求助，可爱的版主大人瞬间就回帖告诉我，用\fcolorbox等比较常见的包中的命令就能搞定，于是我就搞定了。经过我修改后的LaTeX模板，我只贴一个文件\begin{document}前面的那部分吧，因为简历的内容真的是不好意思拿出手-。-和我下载的那个网页的主人比起来，真是汗颜啊~~</p>
<p>这部分改动还是挺多的，特别是修改了几个命令，请注意自己替换，并且请使用xelatex命令编译。</p>
<p><span id="more-280"></span>———————————— 分割线 ————————————</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">% resume.tex</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #2C922C; font-style: italic;">% (c) 2002 Matthew Boedicker &lt;mboedick(AT)mboedick(DOT)org&gt; (original author) http://mboedick.org</span>
<span style="color: #2C922C; font-style: italic;">% (c) 2003-2007 David J. Grant &lt;davidgrant-at-gmail.com&gt; http://www.davidgrant.ca</span>
<span style="color: #2C922C; font-style: italic;">% (c) 2009 Caspar Zhang &lt;casparant(AT)gmail(DOT)com&gt; http://www.casparant.com</span>
<span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #2C922C; font-style: italic;">% This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.</span>
<span style="color: #2C922C; font-style: italic;">% To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/ or send a</span>
<span style="color: #2C922C; font-style: italic;">% letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% Commented by Caspar Zhang: This tex file should be compiled under XeTeX environment if you use CJK.</span>
<span style="color: #2C922C; font-style: italic;">% $ xelatex resume.tex</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a4paper,11pt</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Margins %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>
<span style="color: #2C922C; font-style: italic;">% usage : \setmargin{top}{bottom}{left}{right}</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\setmargin</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">4</span><span style="color: #E02020; ">]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #800000; font-weight: normal;">\headheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">13.6pt</span><span style="color: #E02020; ">}</span>
&nbsp;
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\topmargin</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">#1</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\topmargin</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-1in</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\voffset</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0mm</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\paperheight</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-<span style="color: #800000; font-weight: normal;">\headheight</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-<span style="color: #800000; font-weight: normal;">\headsep</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-<span style="color: #800000; font-weight: normal;">\footskip</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-#1</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textheight</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-#2</span><span style="color: #E02020; ">}</span>
&nbsp;
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">#3</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-1in</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\evensidemargin</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\oddsidemargin</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\hoffset</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0mm</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\paperwidth</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-#3</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\addtolength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">-#4</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\setmargin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">0cm</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0cm</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">1in</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">1in</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Page and Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>
<span style="color: #800000; font-weight: normal;">\pagestyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">empty</span><span style="color: #E02020; ">}</span>           <span style="color: #2C922C; font-style: italic;">% no headings</span>
<span style="color: #800000; font-weight: normal;">\raggedbottom</span>               <span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">raggedright</span></span>                <span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #800000; font-weight: normal;">\setlength</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\tabcolsep</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0in</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">BoldFont, SlantFont</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">xeCJK</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% xeCJK package</span>
<span style="color: #800000; font-weight: normal;">\CJKlanguage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">zh-cn</span><span style="color: #E02020; ">}</span>                     <span style="color: #2C922C; font-style: italic;">% set language</span>
<span style="color: #800000; font-weight: normal;">\setmainfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Times New Roman</span><span style="color: #E02020; ">}</span>           <span style="color: #2C922C; font-style: italic;">% main font</span>
<span style="color: #800000; font-weight: normal;">\setCJKmainfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">SimSun</span><span style="color: #E02020; ">}</span>                 <span style="color: #2C922C; font-style: italic;">% cjk main font</span>
<span style="color: #800000; font-weight: normal;">\setCJKfamilyfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">song</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">SimSun</span><span style="color: #E02020; ">}</span>         <span style="color: #2C922C; font-style: italic;">% cjk family font</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">svgnames</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">xcolor</span><span style="color: #E02020; ">}</span>           <span style="color: #2C922C; font-style: italic;">% xcolor package</span>
<span style="color: #800000; font-weight: normal;">\definecolor</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">shadecolor</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">gray</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0.90</span><span style="color: #E02020; ">}</span>    <span style="color: #2C922C; font-style: italic;">% Background color of section bars</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Custom Commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>
<span style="color: #2C922C; font-style: italic;">% Usage : ressection{section item}</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ressection</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\fcolorbox</span><span style="color: #E02020; ">{</span>black</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">shadecolor</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\vbox</span><span style="color: #E02020; ">{</span><span style="color: #800000; font-weight: normal;">\hsize</span> 0.98<span style="color: #800000; font-weight: normal;">\textwidth</span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">mbox</span></span><span style="color: #E02020; ">{</span>~</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\large</span> #1</span><span style="color: #E02020; ">}</span> <span style="color: #800000; font-weight: normal;">\vphantom</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">p\^{E</span><span style="color: #E02020; ">}}}}}}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% Usage : ressubsection{item1}{comment1}{item2}{comment2}</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ressubsection</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">4</span><span style="color: #E02020; ">]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tabular*</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0.9<span style="color: #800000; font-weight: normal;">\textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">l@{<span style="color: #800000; font-weight: normal;">\extracolsep</span><span style="color: #800000; font-weight: normal;">\fill</span></span><span style="color: #E02020; ">}</span>r<span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">#1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> #2 <span style="color: #E02020; ">\\</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textit</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">#3</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textit</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">#4</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\\</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular*</span></span><span style="color: #E02020; ">}</span><span style="color: #800000; font-weight: normal;">\vspace</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">-6pt</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% Usage : resrowitemlr{item}{comment}</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\resrowitemlr</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">2</span><span style="color: #E02020; ">]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tabular*</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">0.9<span style="color: #800000; font-weight: normal;">\textwidth</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">l@{<span style="color: #800000; font-weight: normal;">\extracolsep</span><span style="color: #800000; font-weight: normal;">\fill</span></span><span style="color: #E02020; ">}</span>r<span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">#1</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">&amp;</span> #2 <span style="color: #E02020; ">\\</span>
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">tabular*</span></span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #2C922C; font-style: italic;">% Usage : resitem{item}</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\resitem</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]</span>
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> #1 <span style="color: #800000; font-weight: normal;">\vspace</span><span style="color: #E02020; ">{</span>-2pt</span><span style="color: #E02020; ">}}</span></pre></td></tr></table></div>

</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/resume" title="resume" rel="tag">resume</a>, <a href="http://www.CasparAnt.com/tag/template" title="template" rel="tag">template</a>, <a href="http://www.CasparAnt.com/tag/tex" title="tex" rel="tag">tex</a>, <a href="http://www.CasparAnt.com/tag/shading" title="shading" rel="tag">shading</a>, <a href="http://www.CasparAnt.com/tag/latex" title="Latex" rel="tag">Latex</a>, <a href="http://www.CasparAnt.com/tag/xetex" title="xetex" rel="tag">xetex</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/xetex-makes-cjk-and-fonts-easier-to-use.html" title="使用XeTeX，CJK无忧，字体无忧 (2009-04-22)">使用XeTeX，CJK无忧，字体无忧</a> (2)</li>
	<li><a href="http://www.CasparAnt.com/using-latex.html" title="Using Latex (2008-04-07)">Using Latex</a> (0)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/nC5eTQrFP5SNWdCFwSKERj4tH1o/0/da"><img src="http://feedads.g.doubleclick.net/~a/nC5eTQrFP5SNWdCFwSKERj4tH1o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/nC5eTQrFP5SNWdCFwSKERj4tH1o/1/da"><img src="http://feedads.g.doubleclick.net/~a/nC5eTQrFP5SNWdCFwSKERj4tH1o/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/latex-resume-templates.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>使用XeTeX，CJK无忧，字体无忧</title>
		<link>http://www.CasparAnt.com/xetex-makes-cjk-and-fonts-easier-to-use.html</link>
		<comments>http://www.CasparAnt.com/xetex-makes-cjk-and-fonts-easier-to-use.html#comments</comments>
		<pubDate>Wed, 22 Apr 2009 06:45:41 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[texlive]]></category>
		<category><![CDATA[xecjk]]></category>
		<category><![CDATA[xetex]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=277</guid>
		<description><![CDATA[曾经的曾经，为了折腾LaTeX中的中文字体，我参照了Monnand和TualatriX童鞋的配置方式，装好CJKutf8宏包，然后用fontforge制作Type1字体，然后才算搞定。一切皆因为LaTeX默认不支持Unicode，也不能支持Truetype字体。
最近一段时间一直听到XeTeX的相关消息，在BYR上，在linuxsir上，都听说了，只是安逸于自己的CJKutf8，不想去折腾。可是昨天写简历的时候，发现没有斜体字，看来我制作的Type1字体没有包含斜体字。为了把斜体弄出来，上网狂Google，就在熄灯前的几秒钟，我看到了网上对XeTeX原生Unicode支持的评价很高，尤其是它可以直接使用Truetype字体，顿时心里痒痒。今天起床后，趁着做实验的空档，把XeTeX装好，果然很惊喜啊。
首先了解一下什么是XeTeX吧，其官方主页：http://www.tug.org/xetex/. 网页开篇即说：XeTeX is "a typesetting system based on a merger of Donald Knuth's TeX system with Unicode and modern font technologies."，正合我意。
不过虽然XeTeX支持了Unicode和OpenType(查看其wiki可以知道OpenType是一种... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>曾经的曾经，为了折腾LaTeX中的中文字体，我参照了<a href="http://blog.linuxsky.org/58/viewspace-3824.html">Monnand</a>和<a href="http://linuxdesktop.cn/2008/02/26/config-texlive-cjk-under-ubuntu.html">TualatriX</a>童鞋的配置方式，装好CJKutf8宏包，然后用fontforge制作<a href="http://en.wikipedia.org/wiki/Type_1_and_Type_3_fonts">Type1</a>字体，然后才算搞定。一切皆因为LaTeX默认不支持Unicode，也不能支持<a href="http://en.wikipedia.org/wiki/TrueType">Truetype</a>字体。</p>
<p>最近一段时间一直听到XeTeX的相关消息，在BYR上，在linuxsir上，都听说了，只是安逸于自己的CJKutf8，不想去折腾。可是昨天写简历的时候，发现没有斜体字，看来我制作的Type1字体没有包含斜体字。为了把斜体弄出来，上网狂<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>，就在熄灯前的几秒钟，我看到了网上对XeTeX原生Unicode支持的评价很高，尤其是它可以直接使用Truetype字体，顿时心里痒痒。今天起床后，趁着做实验的空档，把XeTeX装好，果然很惊喜啊。</p>
<p>首先了解一下什么是XeTeX吧，其官方主页：<a href="http://www.tug.org/xetex/">http://www.tug.org/xetex/</a>. 网页开篇即说：XeTeX is "a typesetting system based on a merger of Donald Knuth's TeX system with <strong>Unicode</strong> and <strong>modern font technologies</strong>."，正合我意。</p>
<p><span id="more-277"></span>不过虽然XeTeX支持了Unicode和<a href="http://en.wikipedia.org/wiki/OpenType">OpenType</a>(查看其wiki可以知道OpenType是一种同时包含了Truetype和Type1两种字体的字体)，但是它没说可以完美支持中文字体和中文排版，所以现在推荐孙文昌老师开发的<a href="http://bbs.ctex.org/viewthread.php?tid=40232&#038;extra=&#038;page=1">xeCJK宏包</a>（当然还有一种是zhspacing，不过我不太喜欢用），可以完美支持中文。具体的使用方法，可以看附件里的文档。</p>
<p>从文档里可以找到我所需要的斜体字，嘿嘿。</p>
<p>接下来说说怎么安装XeTeX和相关的宏包。</p>
<p>linuxsir的精华区有一篇文章讲了怎么在texlive-2007下安装XeTeX和xeCJK，由于xeCJK和zhspacing这两个中文处理宏包需要XeTeX-0.997以上版本，所以需要hack一下texlive-2007，而我现在<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>中最新的portage里的texlive已经是2008-r4，XeTeX的版本是0.999，所以不需要hack了，而xeCJK和zhspacing在<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">gentoo</a>-china的overlay里跟进很快，所以直接emerge zhspacing xecjk就可以了。</p>
<p>Fedora，如果是DVD版的Fedora10，<del datetime="2009-05-01T12:33:15+00:00">那就不用装<a href="http://www.tug.org/texlive/">texlive</a>了，不过texlive版本是2007，里面的XeTeX版本应该不到0.997，所以大概需要上XeTeX网站上下最新版本，安装覆盖原来的版本。不过我没试过，有哪位童鞋装好的可以传授经验。</del>需要去texlive官方网站上把最新的texlive2008的镜像下下来，装好后去下孙老师的xeCJK包，这样是最快最保险的做法。</p>
<p>另外还有Ubuntu，也因为没有环境所以无法测试。不过我最后一次用Ubuntu记得里面的texlive版本也是2007。</p>
<p>最后提一句，搞不清楚texlive, tex, latex, xetex, oo_and_xxtex之间的关系的童鞋，请去<a href="http://www.tug.org/texlive/doc.html">http://www.tug.org/texlive/doc.html</a>，里面有文档，看了就会清楚很多了。</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/latex" title="Latex" rel="tag">Latex</a>, <a href="http://www.CasparAnt.com/tag/texlive" title="texlive" rel="tag">texlive</a>, <a href="http://www.CasparAnt.com/tag/xetex" title="xetex" rel="tag">xetex</a>, <a href="http://www.CasparAnt.com/tag/xecjk" title="xecjk" rel="tag">xecjk</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/latex-resume-templates.html" title="LaTeX Resume Templates (2009-04-23)">LaTeX Resume Templates</a> (5)</li>
	<li><a href="http://www.CasparAnt.com/using-latex.html" title="Using Latex (2008-04-07)">Using Latex</a> (0)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/O8eEE-puaFpZypUrpe6IA8t-SiA/0/da"><img src="http://feedads.g.doubleclick.net/~a/O8eEE-puaFpZypUrpe6IA8t-SiA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/O8eEE-puaFpZypUrpe6IA8t-SiA/1/da"><img src="http://feedads.g.doubleclick.net/~a/O8eEE-puaFpZypUrpe6IA8t-SiA/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/xetex-makes-cjk-and-fonts-easier-to-use.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>当年日志里的两个主角</title>
		<link>http://www.CasparAnt.com/sun-is-acquired-by-oracle.html</link>
		<comments>http://www.CasparAnt.com/sun-is-acquired-by-oracle.html#comments</comments>
		<pubDate>Mon, 20 Apr 2009 13:39:05 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Copid Entries]]></category>
		<category><![CDATA[IT Insight]]></category>
		<category><![CDATA[acquire]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://www.casparant.com/sun-is-acquired-by-oracle.html</guid>
		<description><![CDATA[请看我当年的日志：http://www.casparant.com/some-acquires.html，两个主角，Oracle收购BEA, SUN收购MySQL。
现在的事情……唉……我当年那心仪的SUN公司啊……
以下还是转自纽约时报：
http://www.nytimes.com/2009/04/21/technology/companies/21sun.html?ref=technology
———————————— 转载的分割线 ————————————
Oracle Agrees to Acquire Sun Microsystems
Article Tools Sponsored By
By ASHLEE VANCE
Published: April 20, 2009
The Oracle Corporation, the technology information company, announced Monday that it would acquire a rival, Sun Microsystems, for $9.50 a share, or about $7.4 billion.
The agreement with Oracle came about two weeks after I.B.M. ended its talks with Sun. [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>请看我当年的日志：<a href="http://www.casparant.com/some-acquires.html">http://www.casparant.com/some-acquires.html</a>，两个主角，Oracle收购BEA, <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">SUN</a>收购MySQL。</p>
<p>现在的事情……唉……我当年那心仪的<a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">SUN</a>公司啊……</p>
<p>以下<em>还是</em>转自<a href="http://www.casparant.com/some-acquires.html">纽约时报</a>：</p>
<p><a href="http://www.nytimes.com/2009/04/21/technology/companies/21sun.html?ref=technology">http://www.nytimes.com/2009/04/21/technology/companies/21sun.html?ref=technology</a></p>
<p>———————————— 转载的分割线 ————————————</p>
<p><strong>Oracle Agrees to Acquire <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> Microsystems</strong></p>
<p><em>Article Tools Sponsored By</p>
<p>By ASHLEE VANCE</p>
<p>Published: April 20, 2009</em></p>
<p><span id="more-276"></span>The Oracle Corporation, the technology information company, announced Monday that it would acquire a rival, <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> Microsystems, for $9.50 a share, or about $7.4 billion.</p>
<p>The agreement with Oracle came about two weeks after I.B.M. ended its talks with <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>. The <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> board balked at that deal after I.B.M. lowered its offer to $9.40 a share from $10. Still, Monday’s deal represented a 42 percent premium over <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s closing price of $6.69 on Friday.</p>
<p>Oracle and <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> said in a statement that net of <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s cash and debt, the deal was valued at $5.6 billion.</p>
<p>Lawrence J. Ellison, Oracle’s co-founder and chief executive, and Scott G. McNealy, <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s co-founder and chairman, have been two of Silicon Valley’s closest allies over the last 20 years. Their companies turned into two of the superstars of the Internet build out, and both executives made ribbing rival Microsoft a favored pastime.</p>
<p>Historically, most of Oracle’s database sales have occurred in tandem with <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s servers. Over the past few years, however, Oracle has moved to make Hewlett-Packs and Dell stronger allies, as <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s business has declined.</p>
<p>“This combination is a natural evolution of our relationship and will be an industry-defining event,” Mr. McNealy said.</p>
<p><a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s directors have unanimously approved the transaction. It is anticipated to close this summer, subject to <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> stockholder approval, the companies said in a statement.</p>
<p>Oracle said it expected the purchase to add at least 15 cents a share to its adjusted earnings in the first year after the deal closes. The company also estimated that <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> would contribute more than $1.5 billion to Oracle’s adjusted profit in the first year and more than $2 billion in the second year.</p>
<p><a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> shares rose as high as $9.20 in premarket trading after closing Friday at $6.69, while Oracle shares fell as low as $18.34 after closing Friday at $19.06.</p>
<p>The deal immediately disrupts the traditional relationships formed between some of the technology industry’s largest players and thrusts Oracle into the hardware business.</p>
<p>Oracle, for example, has long-standing partnerships with <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>’s rivals, including Hewlett-Packard and Dell. These sellers of server computers work to fine tune Oracle’s database and business software for their computers.</p>
<p>I.B.M., which competes against Oracle in the software market, also comes under new threats with the deal.</p>
<p>For years, I.B.M. has used it homemade servers as leverage for selling higher-profit database and business software. With <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>, Oracle opens up the same opportunity and gains access to thousands of existing <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> customers.</p>
<p>In addition, Oracle has now obtained the MySQL database, which <a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> acquired last year for $1 billion. The open-source software has proved popular with companies looking to expand their Internet operations.</p>
<p>Last year, Oracle began a flirtation with the hardware market. It started reselling a server computer from H.P. that relied on its software for managing and analyzing large volumes of data.</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/oracle" title="oracle" rel="tag">oracle</a>, <a href="http://www.CasparAnt.com/tag/acquire" title="acquire" rel="tag">acquire</a>, <a href="http://www.CasparAnt.com/tag/sun" title="Sun" rel="tag">Sun</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/some-acquires.html" title="两个收购，N个收购 (2008-01-17)">两个收购，N个收购</a> (1)</li>
	<li><a href="http://www.CasparAnt.com/lazy-me.html" title="我是被养懒了的人 (2008-07-19)">我是被养懒了的人</a> (5)</li>
	<li><a href="http://www.CasparAnt.com/letter-from-ballmer-to-yahoo.html" title="[转]鲍尔默给杨致远的信 (2008-05-04)">[转]鲍尔默给杨致远的信</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/how-open-source-make-money.html" title="[转]开源软件逐渐融入市场并开始走向赢利 (2008-03-28)">[转]开源软件逐渐融入市场并开始走向赢利</a> (0)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/0Pij6A16fuFeBk_qEpkCNIoUxDQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/0Pij6A16fuFeBk_qEpkCNIoUxDQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0Pij6A16fuFeBk_qEpkCNIoUxDQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/0Pij6A16fuFeBk_qEpkCNIoUxDQ/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/sun-is-acquired-by-oracle.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>每一次实验和大作业都是学习的过程</title>
		<link>http://www.CasparAnt.com/a-practice-is-a-progress.html</link>
		<comments>http://www.CasparAnt.com/a-practice-is-a-progress.html#comments</comments>
		<pubDate>Mon, 20 Apr 2009 13:33:21 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[ebadf]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[struct]]></category>

		<guid isPermaLink="false">http://www.casparant.com/a-practice-is-a-progress.html</guid>
		<description><![CDATA[这次学会了结构体的对齐，记录锁和QT的基本操作。顺便强烈推荐使用qt-creator进行开发。
当然还碰到个囧事，一个文件用r方式打开了，然后想往上面加写锁，加了半天就是报“错误的文件描述符”，郁闷之下man了下fcntl的内容，顿悟：
EBADF  fd is not an open file descriptor, or the command was  F_SETLK  or  F_SETLKW
              and  the  file  descriptor  open  mode  doesn't  match with the type of lock
    [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>这次学会了<a href="http://www.google.com/search?q=%E7%BB%93%E6%9E%84%E4%BD%93%E7%9A%84%E5%AF%B9%E9%BD%90">结构体的对齐</a>，记录锁和QT的基本操作。顺便强烈推荐使用qt-creator进行开发。</p>
<p>当然还碰到个囧事，一个文件用r方式打开了，然后想往上面加写锁，加了半天就是报“错误的文件描述符”，郁闷之下man了下fcntl的内容，顿悟：</p>
<blockquote><p>EBADF  fd is not an open file descriptor, <strong>or the command was  F_SETLK  or  F_SETLKW<br />
              and  the  file  descriptor  open  mode  doesn't  match with the type of lock<br />
              requested.</strong></p></blockquote>
<p>其实本来想写很多的，但是因为这个东西做的时间太长了，又忘了随手记，就只能写出这么多了……</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/lock" title="lock" rel="tag">lock</a>, <a href="http://www.CasparAnt.com/tag/struct" title="struct" rel="tag">struct</a>, <a href="http://www.CasparAnt.com/tag/qt" title="qt" rel="tag">qt</a>, <a href="http://www.CasparAnt.com/tag/ebadf" title="ebadf" rel="tag">ebadf</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/how-to-create-a-qt-project.html" title="如何创建QT工程 (2009-03-30)">如何创建QT工程</a> (6)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/hiISy2GqHAenK1png0oS5RD3xkg/0/da"><img src="http://feedads.g.doubleclick.net/~a/hiISy2GqHAenK1png0oS5RD3xkg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hiISy2GqHAenK1png0oS5RD3xkg/1/da"><img src="http://feedads.g.doubleclick.net/~a/hiISy2GqHAenK1png0oS5RD3xkg/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/a-practice-is-a-progress.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>我的高PV结束了</title>
		<link>http://www.CasparAnt.com/high-pv-ended.html</link>
		<comments>http://www.CasparAnt.com/high-pv-ended.html#comments</comments>
		<pubDate>Sat, 11 Apr 2009 06:19:08 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Blog Affair]]></category>
		<category><![CDATA[google friend connect]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[pv]]></category>

		<guid isPermaLink="false">http://www.casparant.com/high-pv-ended.html</guid>
		<description><![CDATA[最近一直有很高很高的PV，yahoo stat里面一看就猜到是某个页面重重复访问（事实上是重复刷新）得到的结果。因为自己用的FF3一直没有出现问题，就没从自己网站上去找症结。不过最近网站访问速度很慢，有时候数据库连接还出错，问了Paveo，他说我MySQL资源超标。虽然不知道是怎么回事（现在知道了，页面重复刷新不断请求MySQL资源），但是怀疑跟那个重复访问的页面有关。从yahoo stat里面找到了那个页面，稍微一看，我靠，居然是侧边栏的Google Friend Connect在搞鬼。那个重复访问的页面URL的GET数据就是我的Google Friend Connect里的参数。
于是去Google Friend Connect网站重新按步骤操作了一次，发现原来是我上次清理Blog的文件，把根目录下的canvas.html和rpc_relay.html这两个文件给删掉了。补上之后，到今天一直没问题。
刚才YuLei师兄告诉我，页面终于能留言了，我就奇怪了，以前不能留言么。他说他用IE和Chrome访问我的页面就一个劲刷新，根本没法浏览，更别提留言了。于... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>最近一直有很高很高的PV，<a href="http://tongji.cn.yahoo.com/report.html?unit_id=472876">yahoo stat</a>里面一看就猜到是某个页面重重复访问（事实上是重复刷新）得到的结果。因为自己用的FF3一直没有出现问题，就没从自己网站上去找症结。不过最近网站访问速度很慢，有时候数据库连接还出错，问了Paveo，他说我MySQL资源超标。虽然不知道是怎么回事（现在知道了，页面重复刷新不断请求MySQL资源），但是怀疑跟那个重复访问的页面有关。从yahoo stat里面找到了那个页面，稍微一看，我靠，居然是侧边栏的<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Friend Connect在搞鬼。那个重复访问的页面URL的GET数据就是我的<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Friend Connect里的参数。</p>
<p>于是去<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Friend Connect网站重新按步骤操作了一次，发现原来是我上次清理Blog的文件，把根目录下的canvas.html和rpc_relay.html这两个文件给删掉了。补上之后，到今天一直没问题。</p>
<p>刚才YuLei师兄告诉我，页面终于能留言了，我就奇怪了，以前不能留言么。他说他用IE和Chrome访问我的页面就一个劲刷新，根本没法浏览，更别提留言了。于是真相大白……原来缺了那两个文件，页面就不停刷新，不停从MySQL请求数据，我网站就资源超标，访问过慢。</p>
<p>不过这段时间每天有近1000PV呢，可惜了，嘿嘿。</p>
<p><span id="more-274"></span>另外说几个事。一个是交换友情链接，我昨天更新了一下友情链接列表，发现一年多过去，好多人的Blog都因为域名到期之类的问题关闭了。所以我就删除了你们的链接。如果你们换了域名，请跟我联系，我会补上。另外申请友情链接的，给我Mail或者在留言页面留言都可以。我的PR不高，所以对对方的PR也没要求。</p>
<p>还有一个就是，我终于把<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Friend Connect的留言板弄起来了，娃哈哈……大家可以在那上面灌水，嗯。</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/pv" title="pv" rel="tag">pv</a>, <a href="http://www.CasparAnt.com/tag/google-friend-connect" title="google friend connect" rel="tag">google friend connect</a>, <a href="http://www.CasparAnt.com/tag/links" title="links" rel="tag">links</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/exxp54FUDhQ0Scz4Ps6v1pzude0/0/da"><img src="http://feedads.g.doubleclick.net/~a/exxp54FUDhQ0Scz4Ps6v1pzude0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/exxp54FUDhQ0Scz4Ps6v1pzude0/1/da"><img src="http://feedads.g.doubleclick.net/~a/exxp54FUDhQ0Scz4Ps6v1pzude0/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/high-pv-ended.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何创建QT工程</title>
		<link>http://www.CasparAnt.com/how-to-create-a-qt-project.html</link>
		<comments>http://www.CasparAnt.com/how-to-create-a-qt-project.html#comments</comments>
		<pubDate>Mon, 30 Mar 2009 14:57:57 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[designer]]></category>
		<category><![CDATA[moc]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://www.casparant.com/how-to-create-a-qt-project.html</guid>
		<description><![CDATA[刚才打了一大段字，不小心给其他页面覆盖了……看来WP的自动保存功能还是得开启……
最近有心学一下GUI编程，在GTK, wxWidgets和QT之间选择，最后因为QT Designer和喜欢C++的缘故选择了QT。当然QT4 Designer也不是那么傻瓜化的东西，有很多步骤都需要自己来完成。经过一番Google上的学习之后，我总算完成了一个简单的QT工程的创建，因此以这个工程为例，记录一下创建过程，以供参考。

项目名称：POS
主程序名：main.cpp
主窗口及SIGNAL/SLOT处理：POSMainWindow[.h, .cpp]
界面文件：ui_POSMainWindow.h, POSMainWindow.ui
Meta Object Compiler文件：moc_POSMainWindow[.h, .cpp]

1. 新建界面配置文件(POSMainWindow.ui)
通过在QT4 Designer中拖拽拖拽就能生成一个基本的.ui配置文件了。
2. 生成ui头文件(ui_POSMainWindow.h)

uic POSMainWindow.ui -o ui_POSMainWindow.h

3. 编写主窗口及SIGNAL/SLOT处理文件(POSMainWindow.h, POSMainWindow.cpp)
POSMainWindow.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _POSMAINWINDOW_H_
#define _POSMAINWINDOW_H_
&#160;
#include &#60;qmain... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>刚才打了一大段字，不小心给其他页面覆盖了……看来WP的自动保存功能还是得开启……</p>
<p>最近有心学一下GUI编程，在GTK, wxWidgets和QT之间选择，最后因为QT Designer和喜欢C++的缘故选择了QT。当然QT4 Designer也不是那么傻瓜化的东西，有很多步骤都需要自己来完成。经过一番<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a>上的学习之后，我总算完成了一个简单的QT工程的创建，因此以这个工程为例，记录一下创建过程，以供参考。</p>
<blockquote><p>
项目名称：POS<br />
主程序名：main.cpp<br />
主窗口及SIGNAL/SLOT处理：POSMainWindow[.h, .cpp]<br />
界面文件：ui_POSMainWindow.h, POSMainWindow.ui<br />
<a href="http://www.qiliang.net/qt/moc.html">Meta Object Compiler</a>文件：moc_POSMainWindow[.h, .cpp]
</p></blockquote>
<p>1. 新建界面配置文件(POSMainWindow.ui)</p>
<p><span id="more-273"></span>通过在QT4 Designer中拖拽拖拽就能生成一个基本的.ui配置文件了。</p>
<p>2. 生成ui头文件(ui_POSMainWindow.h)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">uic POSMainWindow.ui <span style="color: #660033;">-o</span> ui_POSMainWindow.h</pre></div></div>

<p>3. 编写主窗口及SIGNAL/SLOT处理文件(POSMainWindow.h, POSMainWindow.cpp)</p>
<p>POSMainWindow.h</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#ifndef _POSMAINWINDOW_H_</span>
<span style="color: #339900;">#define _POSMAINWINDOW_H_</span>
&nbsp;
<span style="color: #339900;">#include &lt;qmainwindow.h&gt;</span>
<span style="color: #339900;">#include &quot;ui_POSMainWindow.h&quot;</span>
&nbsp;
<span style="color: #0000ff;">class</span> POSMainWindow <span style="color: #008080;">:</span> 
    <span style="color: #0000ff;">public</span> QMainWindow, <span style="color: #0000ff;">public</span> Ui<span style="color: #008080;">::</span><span style="color: #007788;">POSMainWindow</span>
<span style="color: #008000;">&#123;</span>
    Q_OBJECT
    <span style="color: #0000ff;">public</span><span style="color: #008080;">:</span>
        POSMainWindow<span style="color: #008000;">&#40;</span>QMainWindow <span style="color: #000040;">*</span>parent <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000ff;">public</span> slots<span style="color: #008080;">:</span>
        <span style="color: #666666;">// your own slots</span>
<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #339900;">#endif /*_POSMAINWINDOW_H_*/</span></pre></td></tr></table></div>

<p>POSMainWindow.cpp</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &quot;POSMainWindow.h&quot;</span>
&nbsp;
POSMainWindow<span style="color: #008080;">::</span><span style="color: #007788;">POSMainWindow</span><span style="color: #008000;">&#40;</span>QMainWindow <span style="color: #000040;">*</span>parent<span style="color: #008000;">&#41;</span> <span style="color: #008080;">:</span> 
    QMainWindow<span style="color: #008000;">&#40;</span>parent<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    setupUi<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">this</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    this<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>show<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #666666;">//    connect(panel, SIGNAL(...()), this, SLOT(...()));</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #666666;">//void POSMainWindow::SLOT()</span>
<span style="color: #666666;">//{</span>
<span style="color: #666666;">//    ...........</span>
<span style="color: #666666;">//}</span></pre></td></tr></table></div>

<p>4. 生成MOC文件(moc_POSMainWindow.h, moc_POSMainWindow.cpp)</p>
<p>因为自定义SLOT之前需要使用Q_OBJECT宏，而这个宏<a href="http://www.qiliang.net/qt/moc.html">跟元对象编译器有关</a>，因此要生成对应的moc文件才不至于在link的时候报错。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">moc MainWindow.h <span style="color: #660033;">-o</span> moc_MainWindow.h</pre></div></div>

<p>之后生成了两个moc前缀的文件。</p>
<p>5. 生成主程序(main.cpp)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &quot;POSMainWindow.h&quot;</span>
&nbsp;
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> argc, <span style="color: #0000ff;">char</span> <span style="color: #000040;">*</span>argv<span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    QApplication app<span style="color: #008000;">&#40;</span>argc, argv<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    <span style="color: #0000dd;">new</span> POSMainWindow<span style="color: #008080;">;</span>
    <span style="color: #0000ff;">return</span> app.<span style="color: #007788;">exec</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>6. 生成Makefile</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">qmake <span style="color: #660033;">-project</span>
qmake
<span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p>7. 试试看</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>POS</pre></div></div>

</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/qt" title="qt" rel="tag">qt</a>, <a href="http://www.CasparAnt.com/tag/designer" title="designer" rel="tag">designer</a>, <a href="http://www.CasparAnt.com/tag/moc" title="moc" rel="tag">moc</a>, <a href="http://www.CasparAnt.com/tag/ui" title="ui" rel="tag">ui</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/a-practice-is-a-progress.html" title="每一次实验和大作业都是学习的过程 (2009-04-20)">每一次实验和大作业都是学习的过程</a> (4)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/uhoqk6CzHQlUKV5Q60tzD1MgS3M/0/da"><img src="http://feedads.g.doubleclick.net/~a/uhoqk6CzHQlUKV5Q60tzD1MgS3M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uhoqk6CzHQlUKV5Q60tzD1MgS3M/1/da"><img src="http://feedads.g.doubleclick.net/~a/uhoqk6CzHQlUKV5Q60tzD1MgS3M/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/how-to-create-a-qt-project.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mesa和OpenGL的那点破事|有第三者</title>
		<link>http://www.CasparAnt.com/mesa-and-opengl-problems.html</link>
		<comments>http://www.CasparAnt.com/mesa-and-opengl-problems.html#comments</comments>
		<pubDate>Mon, 30 Mar 2009 04:16:32 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Desktop Using]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mesa]]></category>
		<category><![CDATA[opengl]]></category>

		<guid isPermaLink="false">http://www.casparant.com/mesa-and-opengl-problems.html</guid>
		<description><![CDATA[刚才在折腾Mesa，因为早上更新系统的时候发现mesa7.4放出了。上次升级mesa到svn版的时候发现glxgears只到100+，就给降级了。这次看到mesa7.4正式版已出，侥幸心理作怪下继续升级。结果跟上次一样，100+的glxgears，wine下打CS卡死，但是Google Earth一切正常。
降级回7.3之后，Google Earth一如往常地卡，但是glxgears恢复了400+。
后来glxinfo了一下，发现：
OpenGL version string: 1.4 Mesa 7.4
OpenGL version string: 2.1 Mesa 7.4
这是几次折腾中的两次OpenGL版本对比。
难道glxgears和wine使用的都是OpenGL1.4版本，而Google Earth支持OpenGL2.1?
Mesa和OpenGL的破事，真TM难理清。
———————————— 3月31日更新 ————————————
今天早上--sync的时候发现要升级libdrm，在Linux@BUPT上也看到了大牛的回复。这才发现原来是GEM没有开启。没想到原来以为是Mesa和OpenGL俩人的勾当，竟然是因为第三者GEM的原因……o(╯□╰)o
更新libdrm，glxgears回到500+，Google Earth开始小卡。
记得TX同学说过GEM对Google Earth的显示... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>刚才在折腾Mesa，因为早上更新系统的时候发现mesa7.4放出了。上次升级mesa到svn版的时候发现glxgears只到100+，就给降级了。这次看到mesa7.4正式版已出，侥幸心理作怪下继续升级。结果跟上次一样，100+的glxgears，wine下打CS卡死，但是<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Earth一切正常。</p>
<p>降级回7.3之后，<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Earth一如往常地卡，但是glxgears恢复了400+。</p>
<p>后来glxinfo了一下，发现：</p>
<p>OpenGL version string: 1.4 Mesa 7.4</p>
<p>OpenGL version string: 2.1 Mesa 7.4</p>
<p>这是几次折腾中的两次OpenGL版本对比。</p>
<p><del datetime="2009-03-31T03:26:10+00:00">难道glxgears和wine使用的都是OpenGL1.4版本，而<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Earth支持OpenGL2.1?</del></p>
<p>Mesa和OpenGL的破事，真TM难理清。</p>
<p>———————————— 3月31日更新 ————————————</p>
<p>今天早上--sync的时候发现要升级libdrm，在Linux@BUPT上也看到了大牛的回复。这才发现原来是GEM没有开启。没想到原来以为是Mesa和OpenGL俩人的勾当，竟然是因为第三者GEM的原因……o(╯□╰)o</p>
<p>更新libdrm，glxgears回到500+，<a href="http://www.CasparAnt.com/tag/google" class="st_tag internal_tag" rel="tag" title="标签 google 下的日志">Google</a> Earth开始小卡。</p>
<p>记得TX同学说过<a href="http://www.imtx.cn/archives/1111.html">GEM对Google Earth的显示效果有改进</a>啊，怎么我不开启GEM的时候反而更好一些呢……</p>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/opengl" title="opengl" rel="tag">opengl</a>, <a href="http://www.CasparAnt.com/tag/mesa" title="mesa" rel="tag">mesa</a>, <a href="http://www.CasparAnt.com/tag/gem" title="gem" rel="tag">gem</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li>没有相关日志</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/IvPdEIX9z_4hEW2nMJMaUoIl-6A/0/da"><img src="http://feedads.g.doubleclick.net/~a/IvPdEIX9z_4hEW2nMJMaUoIl-6A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IvPdEIX9z_4hEW2nMJMaUoIl-6A/1/da"><img src="http://feedads.g.doubleclick.net/~a/IvPdEIX9z_4hEW2nMJMaUoIl-6A/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/mesa-and-opengl-problems.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo新老问题-Milestone2</title>
		<link>http://www.CasparAnt.com/solved-some-problems-on-gentoo-and-new-ones-come-up.html</link>
		<comments>http://www.CasparAnt.com/solved-some-problems-on-gentoo-and-new-ones-come-up.html#comments</comments>
		<pubDate>Thu, 26 Mar 2009 01:05:50 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[*Nix Distros]]></category>
		<category><![CDATA[amarok2]]></category>
		<category><![CDATA[checkgmail]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=269</guid>
		<description><![CDATA[昨天晚上已经用上2.6.29的内核了，而且也解决了部分上次提到的问题，写出来，权当折腾Gentoo之Milestone2吧。
1. Amarok安装成功：
今天更新了overlay，发现svn版的amarok已经把qtscriptgenerator给单独分出来做成一个包了，顿时感觉有戏，赶紧emerge一把，结果还是出错，不过错误提示和以前不太一样：
/usr/lib/mysql/libmysqld.a(sql_parse.o): In function `mysql_parse(THD*, char const*, unsigned int, char const**)':
(.text+0xaadb): undefined reference to `clock_gettime'
/usr/lib/mysql/libmysqld.a(sql_parse.o): In function `mysql_parse(THD*, char const*, unsigned int, char const**)':
(.text+0xabcc): undefined reference to `clock_gettime'
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_reset(THD*, char*)':
(.text+0x1dad): undefined reference to `clock_gettime'
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_reset(THD*, char*)':
(.text+0x1ef6): undefined reference to `clock_gettime'
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_fetch(THD*, char*, unsigned int)':
(.text+0x20e8): undefined reference to... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>昨天晚上已经用上2.6.29的内核了，而且也解决了部分上次提到的问题，写出来，权当折腾<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>之Milestone2吧。</p>
<p>1. Amarok安装成功：</p>
<p>今天更新了overlay，发现svn版的amarok已经把qtscriptgenerator给单独分出来做成一个包了，顿时感觉有戏，赶紧emerge一把，结果还是出错，不过错误提示和以前不太一样：</p>
<blockquote><p>/usr/lib/mysql/libmysqld.a(sql_parse.o): In function `mysql_parse(THD*, char const*, unsigned int, char const**)':<br />
(.text+0xaadb): undefined reference to `clock_gettime'<br />
/usr/lib/mysql/libmysqld.a(sql_parse.o): In function `mysql_parse(THD*, char const*, unsigned int, char const**)':<br />
(.text+0xabcc): undefined reference to `clock_gettime'<br />
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_reset(THD*, char*)':<br />
(.text+0x1dad): undefined reference to `clock_gettime'<br />
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_reset(THD*, char*)':<br />
(.text+0x1ef6): undefined reference to `clock_gettime'<br />
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_fetch(THD*, char*, unsigned int)':<br />
(.text+0x20e8): undefined reference to `clock_gettime'<br />
/usr/lib/mysql/libmysqld.a(sql_prepare.o):(.text+0x2273): more undefined references to `clock_gettime' follow<br />
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.<br />
collect2: ld returned 1 exit status<br />
make[2]: *** [lib/libamarok_collection-sqlcollection.so] Error 1<br />
make[1]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Error 2<br />
make[1]: *** Waiting for unfinished jobs....                                                                                              </p></blockquote>
<p><span id="more-269"></span>很明显是ld的时候没有设定flag。上网搜了一通发现了-lrt参数，加到LDFLAGS中，重新emerge，搞定了。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">&quot; -lrt &quot;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> emerge amarok</pre></div></div>

<p>2. eclipse启动失败</p>
<p>都删了~/workspace好几次了，还是在~/workspace/.metadata/.log中提示：</p>
<blockquote><p>!SESSION 2009-03-25 21:31:44.627 -----------------------------------------------<br />
eclipse.buildId=I20080617-2000<br />
java.version=1.6.0_12<br />
java.vendor=<a href="http://www.CasparAnt.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a> Microsystems Inc.<br />
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_CN<br />
Command-line arguments:  -os linux -ws gtk -arch x86</p>
<p>!ENTRY org.eclipse.ui.workbench 4 0 2009-03-25 21:31:53.869<br />
!<strong>MESSAGE Widget disposed too early!</strong><br />
!STACK 0<br />
java.lang.RuntimeException: Widget disposed too early!</p></blockquote>
<p>上网搜索，发现只需在eclipse.ini的-vmargs参数后加上</p>
<pre>-Dorg.eclipse.swt.browser.XULRunnerPath=</pre>
<p>即可</p>
<p>3. checkgmail占用CPU100%</p>
<p>因为前面一直有Python/Perl的GUI程序出现麻将牌的乱码，而checkgmail在启动的时候遇到乱码会重新往./lang.xml文件中写一遍文件（当然还是乱码），几次之后这个文件就能达到几十MB，然后再继续就会造成CPU占用率过高。</p>
<p>(0226) 4. 硬盘间、文件夹间复制文件速度太慢。复制到移动硬盘1M/s，同分区文件夹之间复制4M/s，远低于正常速度。</p>
<p>原来是内核没配置好，先多配几个选项，以后慢慢研究吧。</p>
<p>遗留问题：</p>
<blockquote><p>
[E] 挂起、休眠恢复后死机，黑屏，键盘鼠标无任何响应。<br />
[E] KDE4注销后黑屏，不能重新进入KDM界面<br />
[H] Python, Perl的GUI程序乱码；<br />
[H] GEM间歇性不能开启<br />
[H] 有时候关机出现循环提示：mount-ro: wait for killproc<br />
[M] 配置KMS<br />
[M] 配置宽屏控制台<br />
[M] wine-gecko在QQ和迅雷中造成程序崩溃（其实不是<a href="http://www.CasparAnt.com/tag/gentoo" class="st_tag internal_tag" rel="tag" title="标签 Gentoo 下的日志">Gentoo</a>的问题，以前在Ubuntu里也碰到过这种问题）<br />
[L] 如何在weblogic中配置jdbc-mysql
</p></blockquote>
</p>
	<h2>日志标签</h2><ul class="linkcat"><li><a href="http://www.CasparAnt.com/tag/checkgmail" title="checkgmail" rel="tag">checkgmail</a>, <a href="http://www.CasparAnt.com/tag/eclipse" title="eclipse" rel="tag">eclipse</a>, <a href="http://www.CasparAnt.com/tag/gentoo" title="Gentoo" rel="tag">Gentoo</a>, <a href="http://www.CasparAnt.com/tag/amarok2" title="amarok2" rel="tag">amarok2</a></li></ul>

	<h2>相关日志</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/install-and-configure-gentoo-milestone1.html" title="折腾Gentoo Milestone1 (2009-03-22)">折腾Gentoo Milestone1</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/stop-trying-gentoo.html" title="咱先不折腾了 (2008-09-03)">咱先不折腾了</a> (17)</li>
	<li><a href="http://www.CasparAnt.com/using-ubuntu-jaunty-alpha5.html" title="[白鼠六]Ubuntu Jaunty Aplha5试用 (2009-03-03)">[白鼠六]Ubuntu Jaunty Aplha5试用</a> (10)</li>
	<li><a href="http://www.CasparAnt.com/gentoo-or-ubuntu.html" title="Gentoo还是Ubuntu? (2008-08-18)">Gentoo还是Ubuntu?</a> (8)</li>
	<li><a href="http://www.CasparAnt.com/using-gentoo-milestone-3.html" title="Gentoo折腾 Milestone3 (2009-06-16)">Gentoo折腾 Milestone3</a> (8)</li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/YAk7L4hIRQD2h7yyrTNxOhDTPro/0/da"><img src="http://feedads.g.doubleclick.net/~a/YAk7L4hIRQD2h7yyrTNxOhDTPro/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YAk7L4hIRQD2h7yyrTNxOhDTPro/1/da"><img src="http://feedads.g.doubleclick.net/~a/YAk7L4hIRQD2h7yyrTNxOhDTPro/1/di" border="0" ismap="true"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/solved-some-problems-on-gentoo-and-new-ones-come-up.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
