<?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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Caspar Ant</title>
	
	<link>http://www.CasparAnt.com</link>
	<description>Life beyond Linux and Programming</description>
	<lastBuildDate>Fri, 20 Aug 2010 08:47:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<image>
<link>http://www.CasparAnt.com</link>
<url>http://www.CasparAnt.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Caspar Ant</title>
</image>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CasparAnt" /><feedburner:info uri="casparant" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license><item>
		<title>libfprint finally supports Thinkpad T410</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/HcVZqIuRjnY/libfprint-finally-supports-thinkpad-t410.html</link>
		<comments>http://www.CasparAnt.com/libfprint-finally-supports-thinkpad-t410.html#comments</comments>
		<pubDate>Fri, 20 Aug 2010 08:38:21 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[fprint]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[t410]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=368</guid>
		<description><![CDATA[I have been keeping tracking of this RHBZ for long, and I am happy to see libfprint finally supports my fingerprint reader on T410. Seems that the original author Daniel(dsd) was very busy so that another developer in Red Hat, Bastien Nocera, took this project instead. He moved the libfprint git repo to freedesktop.org, with [...... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/czWO2trc6nRlJVo_AZYnzb2vFdc/0/da"><img src="http://feedads.g.doubleclick.net/~a/czWO2trc6nRlJVo_AZYnzb2vFdc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/czWO2trc6nRlJVo_AZYnzb2vFdc/1/da"><img src="http://feedads.g.doubleclick.net/~a/czWO2trc6nRlJVo_AZYnzb2vFdc/1/di" border="0" ismap="true"></img></a></p><div class='fp'>I have been keeping tracking of <a href="https://bugzilla.redhat.com/show_bug.cgi?id=504399" target="_blank">this RHBZ</a> for long, and I am happy to see libfprint finally supports my fingerprint reader on T410. Seems that the original author Daniel(dsd) was very busy so that another developer in Red Hat, Bastien Nocera, took this project instead. He moved the libfprint git repo to freedesktop.org, with the newest patches applied. You can find the new git repo <a href="http://cgit.freedesktop.org/libfprint/libfprint/" target="_blank">here</a>, and new libfprint release(0.2.0) <a href="http://freedesktop.org/~hadess/libfprint-0.2.0.tar.bz2" target="_blank">here</a>. Bastien Nocera is also maintaining <a href="http://www.reactivated.net/fprint/wiki/Fprintd" target="_blank">fprintd</a>, "a D-Bus daemon that offers libfprint functionality over the D-Bus interprocess communication bus". The git repo and new release are located <a href="http://cgit.freedesktop.org/libfprint/fprintd/" target="_blank">here</a> and <a href="http://freedesktop.org/~hadess/fprintd-0.2.0.tar.bz2" target="_blank">here</a>.</div><p></p>
<p>Besides the RHBZ mentioned above, you should be able to get more information from this <a href="http://lists.reactivated.net/pipermail/fprint/2010-August/001530.html" target="_blank">message</a> in fprint mailing list.</p>
<p>I updated my gentoo overlay in github, too. You can emerge libfprint and fprintd after you synchronized <a href="http://github.com/casparant/caspar-gentoo" target="_blank">this</a> overlay.</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/gentoo" title="Gentoo" rel="tag">Gentoo</a>, <a href="http://www.CasparAnt.com/tag/t410" title="t410" rel="tag">t410</a>, <a href="http://www.CasparAnt.com/tag/fprint" title="fprint" rel="tag">fprint</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/enable-fingerprint-in-thinkpad-t410-under-gentoo.html" title="Enable fingerprint in Thinkpad T410 under Gentoo (2010年08月6日)">Enable fingerprint in Thinkpad T410 under Gentoo</a> (4)</li>
	<li><a href="http://www.CasparAnt.com/back-to-gentoo-again.html" title="重新装回Gentoo (2010年07月2日)">重新装回Gentoo</a> (3)</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> (13)</li>
	<li><a href="http://www.CasparAnt.com/install-and-configure-gentoo-milestone1.html" title="折腾Gentoo Milestone1 (2009年03月22日)">折腾Gentoo Milestone1</a> (0)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/HcVZqIuRjnY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/libfprint-finally-supports-thinkpad-t410.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/libfprint-finally-supports-thinkpad-t410.html</feedburner:origLink></item>
		<item>
		<title>Enable fingerprint in Thinkpad T410 under Gentoo</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/fbQ-MfJywwI/enable-fingerprint-in-thinkpad-t410-under-gentoo.html</link>
		<comments>http://www.CasparAnt.com/enable-fingerprint-in-thinkpad-t410-under-gentoo.html#comments</comments>
		<pubDate>Thu, 05 Aug 2010 16:34:53 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[fingerprint]]></category>
		<category><![CDATA[fprint]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[upek]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=365</guid>
		<description><![CDATA[As I mentioned in the previous post, I couldn't get my fingerprint reader work in Gentoo. Now this problem has been solved. Before starting, here're some useful links may help those who are suffering from similar fingerprint issues like me: If you're using a fingerprint with USB id "147e:2016", you can have a look at [...... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/OTr_Odi-iULQ-HWV9_1fadYnflI/0/da"><img src="http://feedads.g.doubleclick.net/~a/OTr_Odi-iULQ-HWV9_1fadYnflI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/OTr_Odi-iULQ-HWV9_1fadYnflI/1/da"><img src="http://feedads.g.doubleclick.net/~a/OTr_Odi-iULQ-HWV9_1fadYnflI/1/di" border="0" ismap="true"></img></a></p><div class='fp'>As I mentioned in the <a href="http://www.casparant.com/back-to-gentoo-again.html" target="_blank">previous post</a>, I couldn't get my fingerprint reader work in Gentoo. Now this problem has been solved. <img src='http://www.CasparAnt.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </div><p></p>
<p>Before starting, here're some useful links may help those who are suffering from similar fingerprint issues like me:</p>
<p>If you're using a fingerprint with USB id "147e:2016", you can have a look at <a href="http://www.thinkwiki.org/wiki/Integrated_Fingerprint_Reader" target="blank">this thinkwiki link</a>, The "147e:2016" item is updated recently: a Red Hat Bugzilla URL added.</p>
<p>This <a href="https://bugzilla.redhat.com/show_bug.cgi?id=504399" target="blank">RHBZ</a> link tried to enable TCRD4C devices, but seemed that my fingerprint was another different type since it still did not work after applied all the patches attached.</p>
<p>------>8------ Cutting, Let's enable T410 fingerprint ------>8------</p>
<p>Using <a href="http://www.n-view.net/Appliance/fingerprint/" target="_blank">Fingerprint-GUI</a> and <a href="http://www.upek.com/solutions/pc_and_networking/sdks/linux/" target="_blank">UPEK SDK</a> can easily enable fingerprint reader in T410. Fingerprint-GUI provides an integration of setup GUI, authentication plugin, PAM module and the UPEK library, all of the GUI parts are written with QT4 (I don't like it :-\), released under GPL-v3 licence. However, UPEK SDK library is EULA copyrighted and seems never to release the code to us.</p>
<p><span id="more-365"></span>Notice that you still need have <a href="http://reactivated.net/fprint/wiki/Libfprint" target="_blank">libfprint</a> installed, what's more, a version >= 1.0_pre is necessary, according to the manual of Fingerprint.</p>
<p>Since A PAM module is integrated in Fingerprint-GUI so that your fingerprint driver can work in GDM, sudo, gnome-screensave, etc, you must remove other fingerprint PAM modules like pam_fprint or pam_thinkfinger.</p>
<p>Here's a picture showing how Fingerprint-GUI works:</p>
<p><a href='http://www.tuhigh.com/photo/p/1765496'><img src='http://photo.tuhigh.com/pics/1032/0805/270072t-1081134842_o.jpg'></a></p>
<p>For Gentoo users, I have finished two ebuilds for this application. You can find them in <a href="http://github.com/casparant/caspar-gentoo" target="_blank">my github repo</a>, fprint is also included in the repo.</p>
<p>I'm not good at writing ebuilds, any suggestions are welcomed.</p>
<p>P.S. Is there anybody know how to assert the existence of a kernel module in a ebuild? I need to judge whether `uinput.ko' exists or not among current kernel modules. Thanks.</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/fingerprint" title="fingerprint" rel="tag">fingerprint</a>, <a href="http://www.CasparAnt.com/tag/fprint" title="fprint" rel="tag">fprint</a>, <a href="http://www.CasparAnt.com/tag/thinkpad" title="thinkpad" rel="tag">thinkpad</a>, <a href="http://www.CasparAnt.com/tag/upek" title="upek" rel="tag">upek</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/libfprint-finally-supports-thinkpad-t410.html" title="libfprint finally supports Thinkpad T410 (2010年08月20日)">libfprint finally supports Thinkpad T410</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/back-to-gentoo-again.html" title="重新装回Gentoo (2010年07月2日)">重新装回Gentoo</a> (3)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/fbQ-MfJywwI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/enable-fingerprint-in-thinkpad-t410-under-gentoo.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/enable-fingerprint-in-thinkpad-t410-under-gentoo.html</feedburner:origLink></item>
		<item>
		<title>重新装回Gentoo</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/9FQ0Nrdw1gQ/back-to-gentoo-again.html</link>
		<comments>http://www.CasparAnt.com/back-to-gentoo-again.html#comments</comments>
		<pubDate>Fri, 02 Jul 2010 09:22:31 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Z-Turn]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[hotkey]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[thinkvantage]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=362</guid>
		<description><![CDATA[最近到手T410，先是折腾了几天把里面的正版Win7 Pro通过无损分区移到角落里，然后是装了个RHEL6.0用来做测试，最后重新开始折腾Gentoo。 这次没有纠结于选择哪个桌面环境上，我一点也不嫌弃GNOME的臃肿，于是装了个gnome-light。USE Flag把以前用过的拿过来修改了一下，顺便提一句，在我不用Gentoo的这段时间听说hal被干掉了，所以我也追风把hal标记给去掉了。 启动的时候使用grub2，本来打了915resolution补丁来使grub宽屏显示，但是打的补丁和grub-1.98似乎不是特别搭配，导致启动grub前后各有5秒停滞时间，加上grub启动过后仍然会有一个分辨率只有640x480的屏幕，我干脆就不用915resolution补丁了。使用grub2，配上ext4分区，就可以不使用initramfs了，关键在两点，一是内核中ACHI选项要编译进内核，二是kernel行参数中不要使用UUID。 说一下一些Thinkpad相关的配置： 一是声卡驱动。Thinkpad T410的声卡应该是CONEXANT的，但是选择这个驱动后内核还是不认我的声卡。最后只好选择了通用驱... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/AOJ88Xl0uknQ124IHvUxX6JWsd4/0/da"><img src="http://feedads.g.doubleclick.net/~a/AOJ88Xl0uknQ124IHvUxX6JWsd4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AOJ88Xl0uknQ124IHvUxX6JWsd4/1/da"><img src="http://feedads.g.doubleclick.net/~a/AOJ88Xl0uknQ124IHvUxX6JWsd4/1/di" border="0" ismap="true"></img></a></p><div class='fp'>最近到手T410，先是折腾了几天把里面的正版Win7 Pro通过无损分区移到角落里，然后是装了个RHEL6.0用来做测试，最后重新开始折腾Gentoo。</div><p></p>
<p>这次没有纠结于选择哪个桌面环境上，我一点也不嫌弃GNOME的臃肿，于是装了个gnome-light。USE Flag把以前用过的拿过来修改了一下，顺便提一句，在我不用Gentoo的这段时间听说hal被干掉了，所以我也追风把hal标记给去掉了。</p>
<p>启动的时候使用grub2，本来打了915resolution补丁来使grub宽屏显示，但是打的补丁和grub-1.98似乎不是特别搭配，导致启动grub前后各有5秒停滞时间，加上grub启动过后仍然会有一个分辨率只有640x480的屏幕，我干脆就不用915resolution补丁了。使用grub2，配上ext4分区，就可以不使用initramfs了，关键在两点，一是内核中ACHI选项要编译进内核，二是kernel行参数中不要使用UUID。</p>
<p>说一下一些Thinkpad相关的配置：</p>
<p>一是声卡驱动。Thinkpad T410的声卡应该是CONEXANT的，但是选择这个驱动后内核还是不认我的声卡。最后只好选择了通用驱动。</p>
<p>二是hdaps，所谓的硬盘防震保护系统。portage里面相关的三个包，一个是hdaps模块，一个是GNOME的Applet，还有一个是OpenGL绘制的小程序，用来展示你的笔记本目前的水平状态。</p>
<p><span id="more-362"></span>三是Thinkpad相关的快捷键。目前键盘上展示的快捷键基本上都能用，除了Fn+F6的“摄像头、耳机”、Fn+F8的“触摸板、小红点切换”还有麦克风静音三个按钮不能工作。根据Thinkwiki的<a href="http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work" target="_blank">这里</a>说，Fn+F8可以通过thinkpad-acpi或者tps使之工作，其他两个目前还没办法。不过我连Fn+F8都没搞定，只是自己写了个脚本，用来切换触摸板的开关（用小红点的时候肯定很讨厌触摸板开着）：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">status</span>=<span style="color: #000000; font-weight: bold;">`</span>synclient <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> TouchpadOff <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $3}'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$status</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
    synclient <span style="color: #007800;">TouchpadOff</span>=<span style="color: #000000;">1</span>
    notify-send <span style="color: #ff0000;">&quot;Touchpad is disabled!&quot;</span>
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$status</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
    synclient <span style="color: #007800;">TouchpadOff</span>=<span style="color: #000000;">0</span>
    notify-send <span style="color: #ff0000;">&quot;Touchpad is enabled&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>把它保存为脚本，加上x权限，通过GNOME的键盘快捷键来控制，比如Win+Space。</p>
<p>另外我给蓝牙设置了一个快捷键。笔记本上那个蓝色的ThinkVantage按钮没用到，就把它绑定了一个ACPI事件，设置为给蓝牙控制开关。事件代码如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">event</span>=ibm<span style="color: #000000; font-weight: bold;">/</span>hotkey HKEY 00000080 00001018
<span style="color: #007800;">action</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>caspar<span style="color: #000000; font-weight: bold;">/</span>.local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>bluetooth.sh</pre></div></div>

<p>上述代码保存为ACPI事件文件，如/etc/acpi/events/bluetooth。快捷键对应的KEY CODE可以到Thinkwiki上面去找，也可以看内核的:Documentation/laptop/thinkpad-acpi.txt文档。至于用于控制的bluetooth.sh脚本，则如下(代码来源仍旧是ThinkWiki，看<a href="http://www.thinkwiki.org/wiki/How_to_setup_Bluetooth" target="_blank">这里</a>)：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">NAME</span>=<span style="color: #ff0000;">&quot;tpacpi_bluetooth_sw&quot;</span>
&nbsp;
find_by_name<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #007800;">NAME</span>=<span style="color: #ff0000;">&quot;$1&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${NAME}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
    <span style="color: #007800;">SYSFS_NAME</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-P</span> <span style="color: #000000; font-weight: bold;">/</span>sys <span style="color: #660033;">-name</span> name <span style="color: #660033;">-path</span> <span style="color: #ff0000;">&quot;*/rfkill/*&quot;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-l</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${NAME}</span>&quot;</span> \<span style="color: #7a0874; font-weight: bold;">&#123;</span>\<span style="color: #7a0874; font-weight: bold;">&#125;</span> + <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SYSFS_NAME}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SYSFS_NAME/%name/state}</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #007800;">RESULT</span>=<span style="color: #800000;">${SYSFS_NAME%%/name}</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$RESULT</span>
        <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">0</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
    <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #007800;">SYSFS</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$(find_by_name &quot;${NAME}&quot;)</span>&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SYSFS}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SYSFS}</span>/state&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(cat &quot;${SYSFS}/state&quot;)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
        <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SYSFS}</span>/state&quot;</span>
            <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SYSFS}</span>/state&quot;</span>
            <span style="color: #000000; font-weight: bold;">;;</span>
    <span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>重启ACPI服务就可以看到蓝牙可以被ThinkVantage按钮控制了。</p>
<p>目前还不能工作的设备有：指纹识别器，从lshw中看到似乎还有HECI控制器(Intel似乎不想管这个咚咚了？）、温度检测设备(Thermal Subsystem)和一个Ricoh的外围设备。</p>
<p>最后向使用Thinkpad的同学严重推荐<a href="http://www.thinkwiki.org" target="_blank">ThinkWiki</a>。</p>
<p>P.S. 设置充电阈值：据说如果电池不怎么经常使用的话，充电不充满有利于延长电池寿命（Win7下的配套软件是这么说的），所以可以设置一个充电阈值，把下面命令放到/etc/conf.d/local.start去：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">95</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>smapi<span style="color: #000000; font-weight: bold;">/</span>BAT0<span style="color: #000000; font-weight: bold;">/</span>stop_charge_thresh</pre></div></div>

</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/thinkvantage" title="thinkvantage" rel="tag">thinkvantage</a>, <a href="http://www.CasparAnt.com/tag/thinkpad" title="thinkpad" rel="tag">thinkpad</a>, <a href="http://www.CasparAnt.com/tag/hotkey" title="hotkey" rel="tag">hotkey</a>, <a href="http://www.CasparAnt.com/tag/gentoo" title="Gentoo" rel="tag">Gentoo</a>, <a href="http://www.CasparAnt.com/tag/acpi" title="acpi" rel="tag">acpi</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/using-gentoo-milestone-3.html" title="Gentoo折腾 Milestone3 (2009年06月16日)">Gentoo折腾 Milestone3</a> (13)</li>
	<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/gentoo-or-ubuntu.html" title="Gentoo还是Ubuntu? (2008年08月18日)">Gentoo还是Ubuntu?</a> (8)</li>
	<li><a href="http://www.CasparAnt.com/libfprint-finally-supports-thinkpad-t410.html" title="libfprint finally supports Thinkpad T410 (2010年08月20日)">libfprint finally supports Thinkpad T410</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/enable-fingerprint-in-thinkpad-t410-under-gentoo.html" title="Enable fingerprint in Thinkpad T410 under Gentoo (2010年08月6日)">Enable fingerprint in Thinkpad T410 under Gentoo</a> (4)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/9FQ0Nrdw1gQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/back-to-gentoo-again.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/back-to-gentoo-again.html</feedburner:origLink></item>
		<item>
		<title>ya-bupt-thesis-bachelor-1.0-Alpha-1 Released</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/99BriaKvY2M/ya-bupt-thesis-bachelor-1-0-alpha-1-released.html</link>
		<comments>http://www.CasparAnt.com/ya-bupt-thesis-bachelor-1-0-alpha-1-released.html#comments</comments>
		<pubDate>Sun, 16 May 2010 12:30:55 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bupt]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=358</guid>
		<description><![CDATA[这个东西总算是做了一大半了。因为拖了两个星期，论文还没开始写，接下来只能一边写论文一边改模板了。 简要介绍一下这个模板。 缘起是@yegle曾经推荐过他的同学梵高(cnMuggle)的一个北邮本科毕业论文模板，我看了一下觉得不太符合我的需求，最主要是他用了CTeX，这玩意儿在我的机子上水土不服。作为一个Linux+XeTeX+xeCJK党，我就自己动手开始写。 期间参考了梵高同学的模板，当然也参考了@gnawux(apt)同学的，还有DazzleZhang在apt的基础上改进的，还有老牌的ThuThesis。当然最主要还是依靠Google和CTeX论坛，把一些稀奇古怪的问题给解决了。 今天又解决了几个大问题，同时也把插入图片、插入表格、插入公式的格式整理了一下，所以就发布Alpha-1版本了。地址在Google Code上。接下来要完成的主要工作就是参考文献的排版。我一看其他模板的bst文件，几千行的代码，吓坏了。下次再搞好了。 欢迎提Bug~ TagsLatex, thesis, bupt, template Related Posts 开始学习LaTeX (0) 使用XeTeX，CJK无... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/edrnqfxK8iJncaKCs9NqFhuY69c/0/da"><img src="http://feedads.g.doubleclick.net/~a/edrnqfxK8iJncaKCs9NqFhuY69c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/edrnqfxK8iJncaKCs9NqFhuY69c/1/da"><img src="http://feedads.g.doubleclick.net/~a/edrnqfxK8iJncaKCs9NqFhuY69c/1/di" border="0" ismap="true"></img></a></p><div class='fp'>这个东西总算是做了一大半了。因为拖了两个星期，论文还没开始写，接下来只能一边写论文一边改模板了。</div><p></p>
<p>简要介绍一下这个模板。</p>
<p>缘起是@yegle曾经推荐过他的同学梵高(cnMuggle)的一个<a href="http://code.google.com/p/buptthesis-bachelor/" target="_blank">北邮本科毕业论文模板</a>，我看了一下觉得不太符合我的需求，最主要是他用了CTeX，这玩意儿在我的机子上水土不服。作为一个Linux+XeTeX+xeCJK党，我就自己动手开始写。</p>
<p>期间参考了梵高同学的模板，当然也参考了<a href="http://wangxu.me" target="_blank">@gnawux(apt)</a>同学<a href="http://code.google.com/p/latex-bupt/" target="_blank">的</a>，还有DazzleZhang在apt的基础上改进<a href="http://code.google.com/p/buptthesis/" target="blank">的</a>，还有老牌的<a href="http://sourceforge.net/projects/thuthesis/" target="_blank">ThuThesis</a>。当然最主要还是依靠Google和CTeX论坛，把一些稀奇古怪的问题给解决了。</p>
<p>今天又解决了几个大问题，同时也把插入图片、插入表格、插入公式的格式整理了一下，所以就发布Alpha-1版本了。地址在<a href="http://code.google.com/p/yet-another-bupt-thesis-bachelor/" target="_blank">Google Code</a>上。接下来要完成的主要工作就是参考文献的排版。我一看其他模板的bst文件，几千行的代码，吓坏了。下次再搞好了。</p>
<p>欢迎提Bug~</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/latex" title="Latex" rel="tag">Latex</a>, <a href="http://www.CasparAnt.com/tag/bupt" title="bupt" rel="tag">bupt</a>, <a href="http://www.CasparAnt.com/tag/template" title="template" rel="tag">template</a>, <a href="http://www.CasparAnt.com/tag/thesis" title="thesis" rel="tag">thesis</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/using-latex.html" title="开始学习LaTeX (2008年04月7日)">开始学习LaTeX</a> (0)</li>
	<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/know-how-to-make-a-latex-beamer-template.html" title="搞定LaTeX Beamer模板 (2010年04月3日)">搞定LaTeX Beamer模板</a> (18)</li>
	<li><a href="http://www.CasparAnt.com/latex-resume-templates.html" title="LaTeX Resume Templates (2009年04月23日)">LaTeX Resume Templates</a> (5)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/99BriaKvY2M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/ya-bupt-thesis-bachelor-1-0-alpha-1-released.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/ya-bupt-thesis-bachelor-1-0-alpha-1-released.html</feedburner:origLink></item>
		<item>
		<title>Red Hat 内核测试组 DUP测试职位急招</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/v0fcgCkdx2Q/dup-testing-in-red-hat.html</link>
		<comments>http://www.CasparAnt.com/dup-testing-in-red-hat.html#comments</comments>
		<pubDate>Mon, 19 Apr 2010 06:43:51 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[No Category]]></category>
		<category><![CDATA[hiring]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[Red Hat]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=355</guid>
		<description><![CDATA[The Quality Engineering team at Red Hat is looking for engineers to search for, analyze, report, track defects and verify bug fixes. This position will primarily focus on testing and verifying proper operation of driver updates to the linux kernel. Responsibilities include developing test scripts for automated testing, executing test cases, debugging software problems, and [...... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/0q8ZbCj8_T11UJ0Iy_pjU8-3gOY/0/da"><img src="http://feedads.g.doubleclick.net/~a/0q8ZbCj8_T11UJ0Iy_pjU8-3gOY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0q8ZbCj8_T11UJ0Iy_pjU8-3gOY/1/da"><img src="http://feedads.g.doubleclick.net/~a/0q8ZbCj8_T11UJ0Iy_pjU8-3gOY/1/di" border="0" ismap="true"></img></a></p><div class='fp'>The Quality Engineering team at Red Hat is looking for engineers to search for, analyze, report, track defects and verify bug fixes. This position will primarily focus on testing and verifying proper operation of driver updates to the linux kernel. Responsibilities include developing test scripts for automated testing, executing test cases, debugging software problems, and operating automated test tools.</div><p></p>
<p>Job Requirements:</p>
<blockquote><p>
- College degree in a technical field and/or relevant experience.<br />
- Strong skills and background in Linux.<br />
- Strong debugging, troubleshooting, analytical skills.<br />
- Intermediate scripting skills.<br />
- Intermediate written and spoken English skills.<br />
- Must be a flexible self-starter who can come up to speed quickly with new technologies and can adapt to a growing and evolving team.<br />
- Strong passion and desire for testing and examining how things work internally.<br />
- Direct experience testing software under Unix/Linux.
</p></blockquote>
<p>有意者发中英文简历到：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">ZW5nLWNoaW5hLXJlY3J1aXRAcmVkaGF0LmNvbQo</span>= <span style="color: #000000; font-weight: bold;">|</span> base64 <span style="color: #660033;">-d</span></pre></div></div>

<p>P.S. 实习亦可。邮件标题请注明应聘实习还是应聘正式员工。</p>
<p>P.P.S 内核测试组实习生项目链接： <a href="http://jobs.zhaopin.com/P4/CC1362/4353/J902/501/CC136243538J90250171000.htm" target="_blank">http://jobs.zhaopin.com/P4/CC1362/4353/J902/501/CC136243538J90250171000.htm</a></p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/hiring" title="hiring" rel="tag">hiring</a>, <a href="http://www.CasparAnt.com/tag/red-hat" title="Red Hat" rel="tag">Red Hat</a>, <a href="http://www.CasparAnt.com/tag/job" title="job" rel="tag">job</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/first-day-at-work.html" title="第一天上班 (2009年07月13日)">第一天上班</a> (14)</li>
	<li><a href="http://www.CasparAnt.com/signed-the-labour-contract.html" title="卖身给Red Hat成功，非主流求职经历分享 (2010年01月7日)">卖身给Red Hat成功，非主流求职经历分享</a> (18)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/v0fcgCkdx2Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/dup-testing-in-red-hat.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/dup-testing-in-red-hat.html</feedburner:origLink></item>
		<item>
		<title>生活在信息膨胀的社会</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/DnIY4mRqs6Y/how-to-organize-your-information.html</link>
		<comments>http://www.CasparAnt.com/how-to-organize-your-information.html#comments</comments>
		<pubDate>Wed, 07 Apr 2010 12:35:13 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Z-Turn]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[friendfeed]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=354</guid>
		<description><![CDATA[现在上网的，没下列东东都不好意思说自己是混互联网的： 个人博客（BSP/独立的至少得有一个吧），twitter（以及其他各种围脖们），豆瓣，facebook，Google Reader（或者其他rss订阅工具），feedburner/feedsky，flickr相册(或者picasaweb,或者国内的oo和xx），lastfm, youtube订阅，friendfeed…… 在这个信息膨胀的社会，如何获取信息是个头疼的问题。下面列一下自己是如何把这些信息来源整合起来的，以供参考： 整合所有信息的核心就是feed/rss，所以首先要把博客搞一个托管，或者干脆直接用自带的feed（前者的好处是，换了博客可以不用通知别人修改你的rss地址）。我主要采用feedburner，在wordpress里用了feedred这个插件，把自带的feed重定向到了feedburner上。因为很久很久以前feedburner被墙了，所以feedsky也用过。 然后就是Twitter，作为一个重度Twitter患者，巴不得把自己博客更新、Google Reader分享、豆瓣新鲜事、新拍的照片等一堆东西同步到Twitter上。这里有两种解决方案： 1. 使用TwitterF... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/V3J-wGXoDCYh8YUQ-ocpyPOfvq8/0/da"><img src="http://feedads.g.doubleclick.net/~a/V3J-wGXoDCYh8YUQ-ocpyPOfvq8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/V3J-wGXoDCYh8YUQ-ocpyPOfvq8/1/da"><img src="http://feedads.g.doubleclick.net/~a/V3J-wGXoDCYh8YUQ-ocpyPOfvq8/1/di" border="0" ismap="true"></img></a></p><div class='fp'>现在上网的，没下列东东都不好意思说自己是混互联网的：</div><p></p>
<blockquote><p>
<a href="http://www.casparant.com">个人博客</a>（BSP/独立的至少得有一个吧），<a href="http://twitter.com/casparant" target="_blank">twitter</a>（以及其他各种围脖们），<a href="http://www.douban.com/people/casparant/" target="_blank">豆瓣</a>，<a href="http://www.facebook.com/casparant" target="_blank">facebook</a>，<a href="https://www.google.com/reader/shared/casparant" target="_blank">Google Reader</a>（或者其他rss订阅工具），<a href="http://feeds.feedburner.com/casparant" target="_blank">feedburner</a>/<a href="http://feed.feedsky.com/casparant" target="_blank">feedsky</a>，<a href="http://www.flickr.com/photos/ant-veil/" target="_blank">flickr相册</a>(或者picasaweb,或者国内的oo和xx），<a href="http://cn.last.fm/user/casparant" target="_blank">lastfm</a>, youtube订阅，friendfeed……
</p></blockquote>
<p>在这个信息膨胀的社会，如何获取信息是个头疼的问题。下面列一下自己是如何把这些信息来源整合起来的，以供参考：</p>
<p>整合所有信息的核心就是feed/rss，所以首先要把博客搞一个托管，或者干脆直接用自带的feed（前者的好处是，换了博客可以不用通知别人修改你的rss地址）。我主要采用feedburner，在wordpress里用了<a href="http://vonye.com/projects/feedred">feedred</a>这个插件，把自带的feed重定向到了feedburner上。因为很久很久以前feedburner被墙了，所以feedsky也用过。</p>
<p>然后就是Twitter，作为一个重度Twitter患者，巴不得把自己博客更新、Google Reader分享、豆瓣新鲜事、新拍的照片等一堆东西同步到Twitter上。这里有两种解决方案：</p>
<p>1. 使用<a href="http://twitterfeed.com">TwitterFeed.com</a></p>
<p>2. 使用FeedBurner。</p>
<p>前者自己摸索就好了，我更推荐后者，因为自己有种感觉FeedBurner同步速度很快，莫非它采用了每分钟轮询的策略？Orz……在FeedBurner管理界面的"Publicize"中有个"Socialize"，里面可以设置把当前feed同步到Twitter上。</p>
<p><span id="more-354"></span>因此只要你的信息源有feed，就可以同步到Twitter上。</p>
<p>接下来是facebook、校内这类社交网站，把twitter同步到facebook/校内上。</p>
<p>校内的话，狗狗<a href="http://yegle.net/2009/04/21/use-bash-to-update-xiaonei-status-and-blog/" target="_blank">写过一个脚本</a>，请自行取用。facebook的话，也有两种方式：</p>
<p>1. 使用friendfeed（已被facebook收购鸟），</p>
<p>2.使用facebook app</p>
<p>后者据<a href="http://twitter.com/luopf" target="_blank">lpf</a>同学反映，密码老是不对。我自己是很早很早以前设置的，忘了。建议有问题的同学使用第一种方案。friendfeed因为被facebook收购了，也就更好地集成在了facebook中（不好意思我忘了怎么集成了，自己摸索一下吧>_<）。需要注意的是friendfeed除了可以从twitter同步，还可以从其他源同步，这些源可能会和你之前设定的Twitter集成重复。</p>
<p>其他的，比如同步到<a href="http://www.williamlong.info/archives/1962.html" target="_blank">新浪围脖</a>，请自行查阅。</p>
<p>还有什么需要补充，欢迎留言。</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/twitter" title="twitter" rel="tag">twitter</a>, <a href="http://www.CasparAnt.com/tag/feedburner" title="feedburner" rel="tag">feedburner</a>, <a href="http://www.CasparAnt.com/tag/facebook" title="facebook" rel="tag">facebook</a>, <a href="http://www.CasparAnt.com/tag/friendfeed" title="friendfeed" rel="tag">friendfeed</a>, <a href="http://www.CasparAnt.com/tag/feed" title="feed" rel="tag">feed</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<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/migrate-feedburner-account-to-google-succeeded.html" title="完成feedburner到Google帐户的迁移 (2008年09月5日)">完成feedburner到Google帐户的迁移</a> (7)</li>
	<li><a href="http://www.CasparAnt.com/feed-test-in-new-host.html" title="博客搬家后Feed测试 (2009年11月6日)">博客搬家后Feed测试</a> (5)</li>
	<li><a href="http://www.CasparAnt.com/a-collection-of-twitter-clients.html" title="Twitter客户端一箩筐 (2009年05月1日)">Twitter客户端一箩筐</a> (8)</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>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/DnIY4mRqs6Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/how-to-organize-your-information.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/how-to-organize-your-information.html</feedburner:origLink></item>
		<item>
		<title>当系统调用不存在……</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/oTQ4tx3SkEI/when-the-system-call-does-not-exist.html</link>
		<comments>http://www.CasparAnt.com/when-the-system-call-does-not-exist.html#comments</comments>
		<pubDate>Wed, 07 Apr 2010 11:57:58 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ltp]]></category>
		<category><![CDATA[makefile]]></category>
		<category><![CDATA[pre define]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=353</guid>
		<description><![CDATA[最近在一个项目上卡了几天，整理出来主要碰到的问题，以备自己查阅。 具体的问题抽象出来就是这么一种情况： 有一堆分层的目录，里面全是系统调用的相关测试代码+Makefile，结构大致如下： ├── wait4 │   ├── Makefile │   ├── wait401.c │   └── wait402.c ├── waitid │   ├── waitid01 │   │   ├── Makefile │   │   └── waitid01.c │   ├── waitid02 │   │   ├── Makefile │   │   └── waitid02.c ├── waitpid │   │   ├── Makefile │   │   └── waitpid_err_test.c ..... 现在要把这堆系统调用的测试代码移植到各硬件平台和各发行版上，因此要考虑内核版本、glibc版本等等问题。比如说getcpu这个东东只在2.6.19及以后版本中存在并且只有x86_64 and i386架构才可用。而编译这堆系统调用使用的Makefile大致如下： 1 2 3 [...... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/rq_pcRLgO4toarKLOBYjHXXq8ho/0/da"><img src="http://feedads.g.doubleclick.net/~a/rq_pcRLgO4toarKLOBYjHXXq8ho/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rq_pcRLgO4toarKLOBYjHXXq8ho/1/da"><img src="http://feedads.g.doubleclick.net/~a/rq_pcRLgO4toarKLOBYjHXXq8ho/1/di" border="0" ismap="true"></img></a></p><div class='fp'>最近在一个项目上卡了几天，整理出来主要碰到的问题，以备自己查阅。</div><p></p>
<p>具体的问题抽象出来就是这么一种情况：</p>
<p>有一堆分层的目录，里面全是系统调用的相关测试代码+Makefile，结构大致如下：</p>
<blockquote><p>
├── wait4<br />
│   ├── Makefile<br />
│   ├── wait401.c<br />
│   └── wait402.c<br />
├── waitid<br />
│   ├── waitid01<br />
│   │   ├── Makefile<br />
│   │   └── waitid01.c<br />
│   ├── waitid02<br />
│   │   ├── Makefile<br />
│   │   └── waitid02.c<br />
├── waitpid<br />
│   │   ├── Makefile<br />
│   │   └── waitpid_err_test.c<br />
.....</p></blockquote>
<p><span id="more-353"></span>现在要把这堆系统调用的测试代码移植到各硬件平台和各发行版上，因此要考虑内核版本、glibc版本等等问题。比如说getcpu这个东东只在2.6.19及以后版本中存在并且只有x86_64 and i386架构才可用。而编译这堆系统调用使用的Makefile大致如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">MAKEFILES_FOR_TESTCASES = $<span style="color: #7a0874; font-weight: bold;">&#40;</span>shell <span style="color: #c20cb9; font-weight: bold;">find</span> testcases <span style="color: #660033;">-name</span> Makefile<span style="color: #7a0874; font-weight: bold;">&#41;</span>
TESTCASES_BY_MAKE = $<span style="color: #7a0874; font-weight: bold;">&#40;</span>addsuffix <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">test</span>,$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dir</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>MAKEFILES_FOR_TESTCASES<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
$<span style="color: #7a0874; font-weight: bold;">&#40;</span>TESTCASES_BY_MAKE<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
        $<span style="color: #7a0874; font-weight: bold;">&#40;</span>MAKE<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-C</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dir</span> $<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">test</span></pre></td></tr></table></div>

<p>因此可能的解决方案有如下几种：</p>
<h4>1. 修改Makefile，禁止编译会出错的测试用例</h4>

<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="bash" style="font-family:monospace;">FILTER_OUT_CASES = testcase1 testcase2 testcase3
ALL_MAKEFILES = $<span style="color: #7a0874; font-weight: bold;">&#40;</span>shell <span style="color: #c20cb9; font-weight: bold;">find</span> testcases <span style="color: #660033;">-name</span> Makefile<span style="color: #7a0874; font-weight: bold;">&#41;</span>
FILTER_OUT_MAKEFILES = $<span style="color: #7a0874; font-weight: bold;">&#40;</span>wildcard $<span style="color: #7a0874; font-weight: bold;">&#40;</span>foreach filename,$<span style="color: #7a0874; font-weight: bold;">&#40;</span>FILTER_OUT_CASES<span style="color: #7a0874; font-weight: bold;">&#41;</span>,testcases<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span>filename<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span>Makefile<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
MAKEFILES_FOR_TESTCASES = $<span style="color: #7a0874; font-weight: bold;">&#40;</span>filter-out $<span style="color: #7a0874; font-weight: bold;">&#40;</span>FILTER_OUT_MAKEFILES<span style="color: #7a0874; font-weight: bold;">&#41;</span>,$<span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL_MAKEFILES<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
TESTCASES_BY_MAKE = $<span style="color: #7a0874; font-weight: bold;">&#40;</span>addsuffix <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">test</span>,$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dir</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span>MAKEFILES_FOR_TESTCASES<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
$<span style="color: #7a0874; font-weight: bold;">&#40;</span>TESTCASES_BY_MAKE<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
        $<span style="color: #7a0874; font-weight: bold;">&#40;</span>MAKE<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-C</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dir</span> $<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">test</span></pre></td></tr></table></div>

<p>代码很平淡无奇，之所以贴出这段代码是为了温习一下Makefile中wildcard,filter-out和foreach的用法 <img src='http://www.CasparAnt.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h4>2.修改c代码，使用预处理判断是否存在</h4>
<p>这种办法在<a href="ltp.sf.net/" target="_blank">ltp</a>上应用十分广泛，ltp中自动从configure文件中生成include/config.h，生成的config.h包含了一系列预处理，例如：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #ff0000; font-style: italic;">/* Define to 1 if you have the &lt;sys/signalfd.h&gt; header file. */</span>
<span style="color: #339900;">#undef HAVE_SYS_SIGNALFD_H</span>
&nbsp;
<span style="color: #ff0000; font-style: italic;">/* Define to 1 if you have the &lt;sys/stat.h&gt; header file. */</span>
<span style="color: #339900;">#define HAVE_SYS_STAT_H 1</span></pre></td></tr></table></div>

<p>当内核版本不同导致系统调用不存在时，可以设置undef预处理；如果系统调用存在，则define一下。</p>
<p>接下去可以修改源代码，在可能会在不同内核版本上出现分歧的代码前后加上：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#ifdef HAVE_SYS_SIGNALFD_H</span>
...
<span style="color: #339900;">#else</span>
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  <span style="color: #0000dd;">printf</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;syscall not exists in this platform<span style="color: #000099; font-weight: bold;">\&quot;</span>);
  return 1;
}
#endif</span></pre></td></tr></table></div>

<p>同时ltp还在C代码中判断内核版本，内核版本在<sys/utsname.h>中有声明。</p>
<p>如果不使用configure文件，可以自己写一个shell脚本来生成，例如：</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
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;">CONFIG_PATH</span>=.<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>config.h
<span style="color: #007800;">KVER</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'-'</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">KMAJVER</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$KVER</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'.'</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span>-<span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">KMINVER</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$KVER</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'.'</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$KMAJVER</span>&quot;</span> = <span style="color: #ff0000;">&quot;2.6&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$KMINVER</span> <span style="color: #660033;">-ge</span> <span style="color: #000000;">19</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;
<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'#define HAVE_SYS_EPOLL_H 1'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$CONFIG_PATH</span>
<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'#ifdef HAVE_SYS_EPOLL_H'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$CONFIG_PATH</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'#  undef HAVE_SYS_EPOLL_H'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$CONFIG_PATH</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'#endif'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$CONFIG_PATH</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/pre-define" title="pre define" rel="tag">pre define</a>, <a href="http://www.CasparAnt.com/tag/makefile" title="makefile" rel="tag">makefile</a>, <a href="http://www.CasparAnt.com/tag/ltp" title="ltp" rel="tag">ltp</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li>No related posts</li>
	</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/oTQ4tx3SkEI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/when-the-system-call-does-not-exist.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/when-the-system-call-does-not-exist.html</feedburner:origLink></item>
		<item>
		<title>搞定LaTeX Beamer模板</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/PR1uMruXGw4/know-how-to-make-a-latex-beamer-template.html</link>
		<comments>http://www.CasparAnt.com/know-how-to-make-a-latex-beamer-template.html#comments</comments>
		<pubDate>Sat, 03 Apr 2010 09:37:17 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[beamer]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=352</guid>
		<description><![CDATA[过一段时间公司和学校都得做presentation，所以现在就得好好开始准备slides。以前我就用Beamer做过一次slide，而且是匆匆忙忙用了默认模板搞定的。这次借着再做slides的机会，我得自己搞个模板。 需求如下，非常简单： 1. 要在合适的位置打上Logo（一般是左上角或者右上角）; 2. 要能自定义页脚 3. 首页要有背景 经过半个白天加一个晚上的折腾，基本上解决了上述问题： 要打Logo，并且自定义位置，可以使用如下语句： \logo{\pgfputat{\pgfxy(#1,#2)}{\pgfbox[center,base]{\includegraphics[height=0.5cm]{#3}}}} 事先要包含pgf宏包，#1,#2是Logo坐标，#3是Logo路径。关于坐标，我发现用pdflatex编译和用xelatex编译时坐标表示的实际位置是不同的，反正自己手工慢慢调就是了。也可以把上述代码加个\newcommand，做成一个带参数的命令直接调用。 自定义页脚，我参考了beamer guide和beamer里面的某个宏包的写法： %% Custom footer \usefoottemplate{ \hbox{\tinycolouredline{structure}{ \begin{beamercolorbox}[wd=0.22\paperwidth,ht=2.4ex,dp... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Afyhm7kOgSBpmRuuWrWwdyw1pGg/0/da"><img src="http://feedads.g.doubleclick.net/~a/Afyhm7kOgSBpmRuuWrWwdyw1pGg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Afyhm7kOgSBpmRuuWrWwdyw1pGg/1/da"><img src="http://feedads.g.doubleclick.net/~a/Afyhm7kOgSBpmRuuWrWwdyw1pGg/1/di" border="0" ismap="true"></img></a></p><div class='fp'>过一段时间公司和学校都得做presentation，所以现在就得好好开始准备slides。以前我就用Beamer做过一次slide，而且是匆匆忙忙用了默认模板搞定的。这次借着再做slides的机会，我得自己搞个模板。</div><p></p>
<p>需求如下，非常简单：</p>
<blockquote><p>1. 要在合适的位置打上Logo（一般是左上角或者右上角）;<br />
2. 要能自定义页脚<br />
3. 首页要有背景</p></blockquote>
<p>经过半个白天加一个晚上的折腾，基本上解决了上述问题：</p>
<p>要打Logo，并且自定义位置，可以使用如下语句：</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"> <span style="color: #800000; font-weight: normal;">\logo</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pgfputat</span><span style="color: #E02020; ">{</span><span style="color: #800000; font-weight: normal;">\pgfxy</span>(#1,#2)</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\pgfbox</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">center,base</span><span style="color: #E02020; ">]{</span><span style="color: #800000; font-weight: normal;">\includegraphics</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">height=0.5cm</span><span style="color: #E02020; ">]{</span>#3</span><span style="color: #E02020; ">}}}}</span></pre></div></div>

<p>事先要包含pgf宏包，#1,#2是Logo坐标，#3是Logo路径。关于坐标，我发现用pdflatex编译和用xelatex编译时坐标表示的实际位置是不同的，反正自己手工慢慢调就是了。也可以把上述代码加个\newcommand，做成一个带参数的命令直接调用。</p>
<p>自定义页脚，我参考了beamer guide和beamer里面的某个宏包的写法：</p>
<p><span id="more-352"></span></p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">%% Custom footer</span>
<span style="color: #800000; font-weight: normal;">\usefoottemplate</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
    <span style="color: #800000; font-weight: normal;">\hbox</span><span style="color: #E02020; ">{</span><span style="color: #800000; font-weight: normal;">\tinycolouredline</span><span style="color: #E02020; ">{</span>structure</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;">beamercolorbox</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">wd=0.22<span style="color: #800000; font-weight: normal;">\paperwidth</span>,ht=2.4ex,dp=1.2ex,left</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">author in head/foot</span><span style="color: #E02020; ">}</span><span style="color: #2C922C; font-style: italic;">%</span>
        <span style="color: #800000; font-weight: normal;">\usebeamerfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">author in head/foot</span><span style="color: #E02020; ">}</span><span style="color: #800000; font-weight: normal;">\insertshortauthor</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;">beamercolorbox</span></span><span style="color: #E02020; ">}</span><span style="color: #2C922C; font-style: italic;">%</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">beamercolorbox</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">wd=0.5<span style="color: #800000; font-weight: normal;">\paperwidth</span>,ht=2.4ex,dp=1.2ex,center</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">title in head/foot</span><span style="color: #E02020; ">}</span><span style="color: #2C922C; font-style: italic;">%</span>
        <span style="color: #800000; font-weight: normal;">\usebeamerfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">title in head/foot</span><span style="color: #E02020; ">}</span><span style="color: #800000; font-weight: normal;">\insertshorttitle</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;">beamercolorbox</span></span><span style="color: #E02020; ">}</span><span style="color: #2C922C; font-style: italic;">%</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">beamercolorbox</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">wd=0.28<span style="color: #800000; font-weight: normal;">\paperwidth</span>,ht=2.4ex,dp=1.2ex,right</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">date in head/foot</span><span style="color: #E02020; ">}</span><span style="color: #2C922C; font-style: italic;">%</span>
        <span style="color: #800000; font-weight: normal;">\usebeamerfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">date in head/foot</span><span style="color: #E02020; ">}</span><span style="color: #800000; font-weight: normal;">\insertshortdate</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">}<span style="color: #800000; font-weight: normal;">\hspace*</span><span style="color: #E02020; ">{</span>0.8em</span><span style="color: #E02020; ">}</span>
        <span style="color: #800000; font-weight: normal;">\insertframenumber</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">} / <span style="color: #800000; font-weight: normal;">\inserttotalframenumber</span><span style="color: #800000; font-weight: normal;">\hspace*</span><span style="color: #E02020; ">{</span>4.5ex</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;">beamercolorbox</span></span><span style="color: #E02020; ">}}}</span><span style="color: #2C922C; font-style: italic;">%</span>
<span style="color: #E02020; ">}</span></pre></div></div>

<p>需要说明的是，我始终搞不懂\tinycolouredline的第一个参数structure还能用什么代替，而且上述方案有个及其大的BUG，在页脚最左边的那列的左边有1em的空白，如果要给这列填充了和那个空白区与不一样的背景色，就会很难看。我也没找到消除那列空白的代码。</p>
<p>首页加背景就太简单了，我直接用wallpaper宏包，然后在第一页加入：</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\ThisCenterWallPaper</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">inc/cover</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>不管是加Logo也好，加墙纸也好，它们都很容易被colortheme中定义的背景色覆盖，这可以通过\setbeamercolor来去掉背景色，基本语法如下：</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\setbeamercolor</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">background canvas</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">bg=</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\setbeamercolor</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">title</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">fg=black, bg=lightgray!80!white</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>最后放出模板，<a href="https://docs.google.com/leaf?id=0B-GDvj9JsmanZjUzZDI4M2MtYzE3MS00YTNjLWEyZjUtYjFhMzY5MzY5NWVi&#038;hl=zh_CN">点此下载>>>></a></p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/beamer" title="beamer" rel="tag">beamer</a>, <a href="http://www.CasparAnt.com/tag/logo" title="logo" rel="tag">logo</a>, <a href="http://www.CasparAnt.com/tag/footer" title="footer" rel="tag">footer</a>, <a href="http://www.CasparAnt.com/tag/latex" title="Latex" rel="tag">Latex</a>, <a href="http://www.CasparAnt.com/tag/template" title="template" rel="tag">template</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/using-latex.html" title="开始学习LaTeX (2008年04月7日)">开始学习LaTeX</a> (0)</li>
	<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/ya-bupt-thesis-bachelor-1-0-alpha-1-released.html" title="ya-bupt-thesis-bachelor-1.0-Alpha-1 Released (2010年05月16日)">ya-bupt-thesis-bachelor-1.0-Alpha-1 Released</a> (3)</li>
	<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>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/PR1uMruXGw4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/know-how-to-make-a-latex-beamer-template.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/know-how-to-make-a-latex-beamer-template.html</feedburner:origLink></item>
		<item>
		<title>Chrowety - A Chrome Twitter Extension</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/HrQMcXLSEAo/chrowety-a-chrome-twitter-extension.html</link>
		<comments>http://www.CasparAnt.com/chrowety-a-chrome-twitter-extension.html#comments</comments>
		<pubDate>Sat, 27 Mar 2010 15:22:15 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[chrome extension]]></category>
		<category><![CDATA[chrowety]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=349</guid>
		<description><![CDATA[事先承认，我是土星人+火星人，最近才知道Chrowety这等利器，又能用Twitter API，又能官方RT，又能有声音提示，界面做得还不错。为了拯救广大比我还火星的朋友们，特推荐此扩展。 由于本人推荐之心实在很强烈，所以几乎就要把这篇可怜不到100字的最新文章发表。幸好发表前我强忍住了，于是找点其他东西凑数，列几个其他的Chrome扩展供大家讨论。因为最近工作和平时使用浏览器都在Chrome上了，同时越来越觉得Firefox不好用了。 代理自动切换：不得不承认AutoProxy这等生活在西朝鲜屁民共和国的使用Firefox的我们的必备工具还是很好用的，在Chrome上迄今没找到同样利索的工具，只有用Switch Proxy + 自己在 autoproxy2pac.appspot.com（已被墙）上下的pac文件凑合一下。 书签同步：在使用了前一个扩展的前提下，使用XMarks。 看Alexa和Google PR排名：Chrome SEO，功能很齐全。 其他的诸如Google官方应用的扩展就不再赘述。 谢谢小瓜瓜的提醒，我想起来还有几个： GMAIL Web扩展：Better G... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/TwlwWOiLUHu46YwCZJIFkXJYfw8/0/da"><img src="http://feedads.g.doubleclick.net/~a/TwlwWOiLUHu46YwCZJIFkXJYfw8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TwlwWOiLUHu46YwCZJIFkXJYfw8/1/da"><img src="http://feedads.g.doubleclick.net/~a/TwlwWOiLUHu46YwCZJIFkXJYfw8/1/di" border="0" ismap="true"></img></a></p><div class='fp'>事先承认，我是土星人+火星人，最近才知道Chrowety这等利器，又能用Twitter API，又能官方RT，又能有声音提示，界面做得还不错。为了拯救广大比我还火星的朋友们，特推荐此扩展。</div><p></p>
<p>由于本人推荐之心实在很强烈，所以几乎就要把这篇可怜不到100字的最新文章发表。幸好发表前我强忍住了，于是找点其他东西凑数，列几个其他的Chrome扩展供大家讨论。因为最近工作和平时使用浏览器都在Chrome上了，同时越来越觉得Firefox不好用了。</p>
<p>代理自动切换：不得不承认AutoProxy这等生活在西朝鲜屁民共和国的使用Firefox的我们的必备工具还是很好用的，在Chrome上迄今没找到同样利索的工具，只有用Switch Proxy + 自己在 <a href="http://autoproxy2pac.appspot.com/">autoproxy2pac.appspot.com（已被墙）</a>上下的pac文件凑合一下。</p>
<p>书签同步：在使用了前一个扩展的前提下，使用XMarks。</p>
<p>看Alexa和Google PR排名：Chrome SEO，功能很齐全。</p>
<p>其他的诸如Google官方应用的扩展就不再赘述。</p>
<p><span id="more-349"></span>谢谢<a href="http://www.mellonwand.com" target="_blank">小瓜瓜</a>的提醒，我想起来还有几个：</p>
<p>GMAIL Web扩展：Better GMail 2 + Folders4Gmail。</p>
<p>鼠标手势+文字选中/链接拖拽：Smooth Gestures + Yet Another Drag and Go(Drag and Go很不好用，还是这个好)。</p>
<p>欢迎向我推荐其他更好用的Chrome扩展。</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/chrowety" title="chrowety" rel="tag">chrowety</a>, <a href="http://www.CasparAnt.com/tag/chrome-extension" title="chrome extension" rel="tag">chrome extension</a>, <a href="http://www.CasparAnt.com/tag/chrome" title="chrome" rel="tag">chrome</a>

	<h4>Related Posts</h4>
	<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>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/HrQMcXLSEAo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/chrowety-a-chrome-twitter-extension.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/chrowety-a-chrome-twitter-extension.html</feedburner:origLink></item>
		<item>
		<title>D3000安装裂像屏的惨痛经历</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/_6PYZwHFzdI/the-painful-experience-of-installing-split-image-screen-on-d3000.html</link>
		<comments>http://www.CasparAnt.com/the-painful-experience-of-installing-split-image-screen-on-d3000.html#comments</comments>
		<pubDate>Sun, 14 Mar 2010 15:22:11 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[d3000]]></category>
		<category><![CDATA[split image screen]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=347</guid>
		<description><![CDATA[下午实在等不住晚一天拿到裂像屏，就自己冒雪跑上地取了，汗。设备是在淘宝上一个叫“对焦工厂”的店里买的，他那对焦设备还挺齐全，连D3000这种超低端机的裂像屏都有，价格在110-190都有。我买了个最好的裂像屏，再买了个取景放大器。回到家中鞋子都没甩干就开始安装。 按照网上的说明，机身倒放，打开弹簧钢丝卡扣。结果手指指甲刚剪掉，伸进去扳不开卡扣，用了镊子挑，还把周围的塑料刮花了。没想到的是这就成了今天装裂像屏的惨痛开端。 终于把钢丝卡扣打开了，把原来的屏倒出来，把对焦屏放进去。然后想把卡扣卡回去。用了手指按，按不下去。用包了橡胶的镊子按，使不上力。一急之下把橡胶给去掉继续用镊子按，结果手一滑，镊子在对焦屏上划过……留下两条道道。顿时觉得这一百多大洋买的东西就这么被我给毁了，心痛万分。 后来找到窍门了，还是需要指甲，看看自己右手食指指甲昨天没剪太短，伸进去，一按一推，终于把钢丝推... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/qCfFQ_kTUlvCvXecoXdXo5_Ui08/0/da"><img src="http://feedads.g.doubleclick.net/~a/qCfFQ_kTUlvCvXecoXdXo5_Ui08/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qCfFQ_kTUlvCvXecoXdXo5_Ui08/1/da"><img src="http://feedads.g.doubleclick.net/~a/qCfFQ_kTUlvCvXecoXdXo5_Ui08/1/di" border="0" ismap="true"></img></a></p><div class='fp'>下午实在等不住晚一天拿到裂像屏，就自己冒雪跑上地取了，汗。设备是在淘宝上一个叫“对焦工厂”的店里买的，他那对焦设备还挺齐全，连D3000这种超低端机的裂像屏都有，价格在110-190都有。我买了个最好的裂像屏，再买了个取景放大器。回到家中鞋子都没甩干就开始安装。</div><p></p>
<p>按照网上的说明，机身倒放，打开弹簧钢丝卡扣。结果手指指甲刚剪掉，伸进去扳不开卡扣，用了镊子挑，还把周围的塑料刮花了。没想到的是这就成了今天装裂像屏的惨痛开端。</p>
<p>终于把钢丝卡扣打开了，把原来的屏倒出来，把对焦屏放进去。然后想把卡扣卡回去。用了手指按，按不下去。用包了橡胶的镊子按，使不上力。一急之下把橡胶给去掉继续用镊子按，结果手一滑，镊子在对焦屏上划过……留下两条道道。顿时觉得这一百多大洋买的东西就这么被我给毁了，心痛万分。</p>
<p>后来找到窍门了，还是需要指甲，看看自己右手食指指甲昨天没剪太短，伸进去，一按一推，终于把钢丝推回去了。</p>
<p>打开相机，取景器里面一看，两条道道清晰可见，以后只能在拍照的时候视而不见了，痛苦万分。再仔细观察对焦屏，居然有两颗巨大的灰尘，取下镜头一看，还是在里侧，只好再次打开弹簧卡扣，用气吹吹掉，再放回去。这两下折腾，钢丝似乎都被我弄变形了。</p>
<p><span id="more-347"></span>最后总算是安装完成了，没有灰卡，找了个钢尺测试对焦，裂像重合的时候正好合焦，对焦还是很准确的。</p>
<p>使用感受：D3000机器实在是比较小，取景器也好小，我安装了一个取景放大器看起来都不够大，在被摄体对比不明显的时候，中间裂像的圆圈容易被取景器中间对焦点的圆矩形方框盖住，很难观察清楚被摄体的裂像。另外D3000机器拆装对焦屏太折腾了，远没有网上介绍的那么容易拆卸。不过现在对安装裂像屏的效果下断言还太早，拍几天试试吧。</p>
<p>经验教训：拆卸弹簧钢丝卡扣的时候，不要心急，钢丝外侧的正中间卡在塑料扣的下方，往外稍微用力把钢丝拉离塑料扣就可以了，实在不行仔细地用极细的针挑出来也可以。对焦屏取出来可以用来倒，放回去要注意防呆设计，屏上长边的突起朝左外侧。用镊子的时候一定要包好橡胶。卡口推回去要找准地方，可以用指甲往塑料扣方向按下去，然后推向相机里侧。总之一定不能心急，心急吃不了臭豆腐，还会弄坏零件T_T</p>
<p>P.S. 新建Photography分类，记录摄影相关文章。</p>
<p>------ 0318 分割线 ------</p>
<p>终于忍不住重新买了块屏，所谓“大眼睛”，裂像特别大，直径占了取景器短边的70%左右。在公司收到快递，花了一分钟就组装好了，这次特别麻利。大裂像果然用起来特别舒服，哇哈哈。不过问题还是有的，一个是上下两个半圆居然不是平分在中心对焦点两侧，而是偏上方一点点，不过还好裂像比较大，没什么关系。<del datetime="2010-03-18T16:13:39+00:00">就是比较影响测光，减了0.7ev差不多正常。因为在公司，没法仔细检测测光，回家后再测吧。</del></p>
<p>那块废掉的屏，呜呜呜……就当我在路上走路丢了200块钱吧……</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/d3000" title="d3000" rel="tag">d3000</a>, <a href="http://www.CasparAnt.com/tag/split-image-screen" title="split image screen" rel="tag">split image screen</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li>No related posts</li>
	</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/_6PYZwHFzdI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/the-painful-experience-of-installing-split-image-screen-on-d3000.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/the-painful-experience-of-installing-split-image-screen-on-d3000.html</feedburner:origLink></item>
		<item>
		<title>图海,一个国内的相册服务</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/CLRQZp0sKGw/tuhigh-a-new-album-serivce.html</link>
		<comments>http://www.CasparAnt.com/tuhigh-a-new-album-serivce.html#comments</comments>
		<pubDate>Wed, 03 Mar 2010 18:22:52 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Blog Affair]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[tuhigh]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=344</guid>
		<description><![CDATA[我用过若干相册服务，picasaweb由于比较众所周知的原因，不能在天朝继续方便使用了，flickr由于太出色了，在天朝某些网络（比如北京网通）内已经被fuck了几个farmX.static服务器，国内的用过巴巴变，个人觉得有点模仿flickr（更加印证了一个优秀的非本土服务都会在本土有个克隆版本的理论），还用过图虫，这算是个专业摄影相册，不是什么图片都能在上面保留的。我一直比较懒于改变现状，picasa就让它在那烂掉算了，本来也就在里面放点手机拍的照片而已；flickr里算是我的一些摄影习作，就是能自称为“作品“的东东，但是没在flickr上购买pro账户，每个月上传有限额，所以就只能从作品里挑一部分传上去；而图虫的账户似乎是没这个限制，但是没有打包上传功能，所以也就懒得维护这个账户了；巴巴变账户，用来放我和我女朋友的照片，属于私人账户。 跑题了，今天介绍的相册服务是图海。 缘由是昨天收到来自图海的邮件，说送我个VIP账户，其实我前几天... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/lpOVedFSg9z6LJ4kvjAMt9pJbgU/0/da"><img src="http://feedads.g.doubleclick.net/~a/lpOVedFSg9z6LJ4kvjAMt9pJbgU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lpOVedFSg9z6LJ4kvjAMt9pJbgU/1/da"><img src="http://feedads.g.doubleclick.net/~a/lpOVedFSg9z6LJ4kvjAMt9pJbgU/1/di" border="0" ismap="true"></img></a></p><div class='fp'>我用过若干相册服务，<a href="http://picasaweb.google.com/casparant" target="_blank">picasaweb</a>由于比较众所周知的原因，不能在天朝继续方便使用了，<a href="http://www.flickr.com/photos/ant-veil" target="_blank">flickr</a>由于太出色了，在天朝某些网络（比如北京网通）内已经被fuck了几个farmX.static服务器，国内的用过<a href="http://ant_and_amelie.bababian.com/" target="_blank">巴巴变</a>，个人觉得有点模仿flickr（更加印证了一个优秀的非本土服务都会在本土有个克隆版本的理论），还用过<a href="http://caspar.tuchong.com" target="_blank">图虫</a>，这算是个专业摄影相册，不是什么图片都能在上面保留的。我一直比较懒于改变现状，picasa就让它在那烂掉算了，本来也就在里面放点手机拍的照片而已；flickr里算是我的一些摄影习作，就是能自称为“作品“的东东，但是没在flickr上购买pro账户，每个月上传有限额，所以就只能从作品里挑一部分传上去；而图虫的账户似乎是没这个限制，但是没有打包上传功能，所以也就懒得维护这个账户了；巴巴变账户，用来放我和我女朋友的照片，属于私人账户。</div><p></p>
<p>跑题了，今天介绍的相册服务是图海。</p>
<p>缘由是昨天收到来自<a href="http://www.tuhigh.com" target="_blank">图海</a>的邮件，说送我个VIP账户，其实我前几天就关注过这个相册服务，图海不仅可以放自己的摄影作品(GP, Good Photos)，还可以放NP(non-photos)，对于非VIP账户，NP占所有照片的比例是有限制的，而且不能外链NP(这就相当于如果不是VIP这个账户就只能当摄影收藏夹用了）。而VIP是不受这些限制的，现在送我个VIP我当然愿意接受了。</p>
<p><span id="more-344"></span>拿到帐号后体验了一下图海的服务，发现网站似乎还在建设阶段，上传压缩包的时候有时候会碰到“Can't Upload"的提示；在网站美工上，和以前用过的其他服务也有点差距（当然是个人感觉）；界面的用户体验也不是特别好，比如修改标题：在flickr, bababian甚至图虫上，我想修改标题，只要点一下标题文字就可以修改内容，而在图海上，描述部分倒是有这个功能，但是想修改标题还得折腾一番找到“整理相片“的链接才行。在用户体验方面，还得借鉴一下其他服务啊。</p>
<p>另外还有一个严重问题，今天晚上8点钟左右的时候服务器宕机了一次，先是速度很慢，然后是图片打不开，然后是密码错误，然后是Access Denied，然后是Service  Unavailable，然后是不能建立连接。好在很快就恢复了。不过这还是让人担心服务器的质量。另外整个系统使用的是JSF框架，但是使用IIS，也就是说是在一台Windows服务器上跑的，我觉得这相当不可靠。</p>
<p>不过图海最主要的优点就是现在给了我个VIP，可以不怎么折腾地把这里当摄影练习收藏夹和外链图库。所以我还是决定把两个博客的图片全部挪到图海上作NP，然后把自己的摄影练习也搬过去作GP，毕竟在功能本身上，图海能满足我这两个夙愿。希望图海的服务器以后能稳定点，这样我也可以放心点。</p>
<p>P.S. 欢迎访问<a href="http://casparant.tuhigh.com" target="_blank">我的图海页面</a>。</p>
<p><del datetime="2010-03-04T05:57:19+00:00">P.P.S. 图海还给了我3个VIP邀请码，有兴趣的跟贴索取吧，我会发到前三个发帖者的E-mail中（不知道能不能多要几个）。</del> 发完了，木有了</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/album" title="album" rel="tag">album</a>, <a href="http://www.CasparAnt.com/tag/tuhigh" title="tuhigh" rel="tag">tuhigh</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li>No related posts</li>
	</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/CLRQZp0sKGw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/tuhigh-a-new-album-serivce.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/tuhigh-a-new-album-serivce.html</feedburner:origLink></item>
		<item>
		<title>卖身给Red Hat成功，非主流求职经历分享</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/ZZem_xJ-sxQ/signed-the-labour-contract.html</link>
		<comments>http://www.CasparAnt.com/signed-the-labour-contract.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 15:58:54 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[career]]></category>
		<category><![CDATA[Red Hat]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=319</guid>
		<description><![CDATA[到今天下午为止，我的找工作之路正式结束了，算是有了个圆满的结果吧。发篇文章，回顾一下。我的实习和找工作关系比较密切，就一起写了。文章想到哪里写到哪里，有点乱，凑合着看一下吧。 今年4月初，也就是大三末期，开始找实习。找实习的目标很明确，要找Linux相关的职位。在学校论坛的Linux版转悠发现IBM CSTL的HPC招实习生，于是匆匆写了简历投了。一个星期之后通知我去面试，结果挂了。现在想起来真是可惜，第一次面试就献给这么nb的地方而且被问了一堆nb的问题，基本都是脚本、操作系统和内核的问题，没有问任何项目经历。其实当时要是认真复习上课学习的操作系统内容，说不定还能通过呢，可惜可惜。 知道被默拒之后低迷了相当长一段时间，这期间IBM的蓝色之路报名也没参加，其他地方的简历也没投。想到自己靠着高中的老本还会点算法，就改了改简历，投了Yahoo和百度，结果也是石沉大海。发现简历关都没过后，再也没对算法类的职位... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/9GlZlCa5SWGdmpDVhDspnNwoa1g/0/da"><img src="http://feedads.g.doubleclick.net/~a/9GlZlCa5SWGdmpDVhDspnNwoa1g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9GlZlCa5SWGdmpDVhDspnNwoa1g/1/da"><img src="http://feedads.g.doubleclick.net/~a/9GlZlCa5SWGdmpDVhDspnNwoa1g/1/di" border="0" ismap="true"></img></a></p><div class='fp'>到今天下午为止，我的找工作之路正式结束了，算是有了个圆满的结果吧。发篇文章，回顾一下。我的实习和找工作关系比较密切，就一起写了。文章想到哪里写到哪里，有点乱，凑合着看一下吧。</div><p></p>
<p>今年4月初，也就是大三末期，开始找实习。找实习的目标很明确，要找Linux相关的职位。在学校论坛的Linux版转悠发现IBM CSTL的HPC招实习生，于是匆匆写了简历投了。一个星期之后通知我去面试，结果挂了。现在想起来真是可惜，第一次面试就献给这么nb的地方而且被问了一堆nb的问题，基本都是脚本、操作系统和内核的问题，没有问任何项目经历。其实当时要是认真复习上课学习的操作系统内容，说不定还能通过呢，可惜可惜。</p>
<p>知道被默拒之后低迷了相当长一段时间，这期间IBM的蓝色之路报名也没参加，其他地方的简历也没投。想到自己靠着高中的老本还会点算法，就改了改简历，投了Yahoo和百度，结果也是石沉大海。发现简历关都没过后，再也没对算法类的职位抱什么希望了。继续找Linux相关公司。过了几天看到Red Hat招收实习生，于是修改简历，填了一大堆个人信息。本来害怕Kernel测试职位水平要求太高不敢投，脑子一转，胆子一大也就投了这个职位。</p>
<p>Red Hat R&#038;D部门实习生笔试题不难，100个英文选择题，涵盖了计算机基础、算法基础、Linux基础、编程基础、硬件基础、测试基础、脚本基础，我在1个小时内正好全部做完。之后没过几天面试官就让我去公司面试。面试的内容不难，没有在技术细节上发问，基本上就是了解一下我的Linux水平、内核水平，然后考一考做测试的时候需要具备的基本技能，比如安装系统、编译安装内核什么的，还问了一下对开源的理解。整个面试过程和聊天很像，一个花了一个半小时，面试完感觉不错，遂回去等通知。</p>
<p><span id="more-319"></span>在等待Red Hat笔试结果中，我还投了一下VMWare内核测试的职位。VMWare似乎更亲睐研究生，等到论坛上其他研究生面试都完了，我还没接到面试通知。就在觉得要被默拒的时候，电面通知来了。半个小时的电面，面试官发问的难度介于IBM和Red Hat之间，我觉得我应对得都还行，包括一个用英语介绍自己的项目经历的问题。其他的问题包括进程调度、竞争、内存管理等等，都是操作系统基础内容。幸亏那时候我已经在实验室复习了好久操作系统。电面完了还是让我等通知。</p>
<p>等通知的过程是惴惴不安的。因为有同学已经拿到实习Offer了，而我手上只有两个未知因素。</p>
<p>进入7月份的时候好运来了，Red Hat直接给实习Offer了，看来我跟Red Hat有缘。又过了半个月，VMWare二面通知来了。我想了一下，还是拒掉了。</p>
<p>7月中旬<a href="http://www.casparant.com/first-day-at-work.html">开始在Red Hat实习</a>，发现这里的气氛很好，也能学到很多东西，于是就不想为校园招聘伤神了，想争取转正。不过中途还是投了两份简历，腾讯和百度的。腾讯的又把我BS了，百度的让我过了笔试，不过在面试的时候挂了。问了一些网络优化方面的东西，都没有答上来。另外觉得百度对自主学习能力特别强调，那种勤勤恳恳跟着老师的进度学习而从不自己动手创新的人恐怕挺难得到肯定。</p>
<p>百度腾讯都挂了之后就安心做我的实习生，等待转正。我的Leader，就是当初面试我的面试官，每个两周对我的工作进度做一次检查。到了12月初，询问我的去留意向，12月下旬给了口头Offer，那个时间也正好是校园招聘面试时间。等老外那边圣诞节假期过了之后，公司就开始签Offer，今天下午我就签了。</p>
<p>等待公司的转正Offer期间，我也去了解了一些校园招聘的情况。就我了解到的信息来看，校园招聘笔试面试难度比实习招聘难度大多了，如果没有经过很好的准备，是很容易被问倒的。还是要好好准备一下操作系统、脚本和内核的相关知识，因为Red Hat大部分都是测试职位，所以软件测试也要好好复习一下。</p>
<p>总体来说我的求职经历还是很顺利的，作为一个小本，Red Hat给我的待遇我也很满意。而作为从实习生转正这个途径又在茫茫求职同路人中显得有点非主流，不过我觉得参考意义还是有的。</p>
<p>作为实习生，公司在实习期对你的肯定比对直接校园招聘的同学要了解全面，除非是MSRA, IBM这种实习生项目和校园招聘泾渭分明的公司，当实习生能为你留在这个公司增加很大的筹码。在公司实习期间，你也可以更全面地认识公司实际情况，了解公司的文化氛围。总之这样对公司和自身的双向选择都很有利。在公司招聘期间，肯定也会优先考虑实习生的转正。</p>
<p>再说一下外企应聘中的一些普遍性的问题，比如关于求职简历。每次投简历之后我都做过一些修改，尽量做到有针对性。在面试百度的时候那位面试官从简历角度也给了我很多指导。简历修改的要点其实很多人都说过，就是要突出重点。比如投Red Hat的话就要突出自己在操作系统、Linux、软件测试方面的技能。简历的篇幅我觉得在一页之内就行了。投外企的话最好用pdf格式，中英文双语的，并且英文优先。如果简历发往HR的邮箱最好加几段个人求职陈述。</p>
<p>英语方面，口语上最起码要达到能说的水平，虽然我的口语水平比较一般，但是有时候参加一些开源活动听一些老外的发言，了解大意还是没问题的，有和能老外交流的机会我也能说上两句，说得高兴了词汇障碍也就没有了。红帽的笔试题都是英文的，所以一些计算机术语的英文一定要了解，面试的时候有可能会用英文提问，这时候就要看自己口语和听说的积累了。</p>
<p>还有就是面试过程，参加了一些面试，觉得本科生应聘最重要的是理论知识要扎实，面试官不一定会问项目经历，但是肯定会问基础问题，比如操作系统课中常考的进程调度算法之类的。而面试官看中应聘者的品质不是当前掌握的技能有多精，而是学习能力有多强，基础知识扎实的前提下加上自己一两个值得说的项目作为点睛，就比较能获得面试官的认可。当然我参加的面试基本上都是实习生项目，和校园招聘比还是有差距的- -b</p>
<p>最后说一下Red Hat这个公司。Red Hat作为一个企业级Linux厂商，实在是太对我胃口了，开源界很多大牛很多都在全球各地的Red Hat公司工作，公司里也都是充满激情的同事。红帽的工作环境也还是挺不错的，没有着装要求，夏天的时候见到很多工程师同事都是拖鞋+短裤；工作时间非常自由，早上不必打卡，准时上下班，不强制加班（加班的情况还是有的，一个是任务很紧自愿加班完成任务，一个是要和隔了12个小时时差的外国同事电话会议）；遇到送快递、等医生等情况，还可以在家办公。今年Red Hat的业绩持续上升，所以刚入职的同学们待遇都挺好的。具体待遇因为要保密就不说了，户口方面所有的外企都差不多，没有100%保证的。红帽给本科生和研究生的待遇差不多，基本上对本科生没有偏见，果然是个重技术的公司。</p>
<p>最后的最后，是鸣谢时间：</p>
<p>感谢父母一如既往的支持，感谢女朋友默默的鼓励。</p>
<p>感谢Light Sun老大、zwz师兄对我职业生涯规划的点拨和启发，还有zwz推荐给我的好多应聘机会。</p>
<p>感谢周老师对求职、入职手续过程中遇到的问题的解答。</p>
<p>感谢周围给我提供参考意见的同学。</p>
<p>感谢D08宿舍，感谢BOSS成员，感谢Twitter上众推油，就不一一鸣谢了。</p>
<p>P.S. 附简历一份：点此查看 <a href='http://docs.google.com/fileview?id=0B-GDvj9JsmanY2YwM2EyMjctNWQ5ZS00MGRjLTk3YjYtYzAwMjZhY2E2ODQ1&#038;hl=zh_CN' target="_blank">EN</a> <a href='http://docs.google.com/fileview?id=0B-GDvj9JsmanOTZkZWRmMmUtNjUxMy00YzRkLWJjOTItMmMzNGIyMDU5MWM5&#038;hl=zh_CN' target="_blank">CN</a></p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/red-hat" title="Red Hat" rel="tag">Red Hat</a>, <a href="http://www.CasparAnt.com/tag/career" title="career" rel="tag">career</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/dup-testing-in-red-hat.html" title="Red Hat 内核测试组 DUP测试职位急招 (2010年04月19日)">Red Hat 内核测试组 DUP测试职位急招</a> (3)</li>
	<li><a href="http://www.CasparAnt.com/first-day-at-work.html" title="第一天上班 (2009年07月13日)">第一天上班</a> (14)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/ZZem_xJ-sxQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/signed-the-labour-contract.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/signed-the-labour-contract.html</feedburner:origLink></item>
		<item>
		<title>试用GIMP的单窗口模式</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/_VubJRhpZyI/try-gimp-single-window-mode.html</link>
		<comments>http://www.CasparAnt.com/try-gimp-single-window-mode.html#comments</comments>
		<pubDate>Tue, 05 Jan 2010 16:17:08 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[single window]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=316</guid>
		<description><![CDATA[嗯，期盼了好久的GIMP单窗口模式终于在新的开发版本里面出现了，尝试一下。 我在Gentoo下用的是9999版本，但是portage中的9999版本有编译错误，在bugzilla上看到可以使用的arcon这个overlay,遂换之，安装顺利完成。 打开之后发现默认并没有启用单窗口模式，得在“窗口”菜单栏中勾选“启用单窗口模式”。效果如图： 另外还发现这个开发版本中的单窗口模式不是特别好用，每启用一个新的窗口（比如图层、通道、路径），默认都不是停靠在主窗口上，而是要取消勾选然后重新勾选“单窗口模式”。另外每次退出之后这个单窗口布局就消失了，下次得自己重新布局。 其实说白了这个单窗口模式也就是一个用户体验问题，对功能没什么影响，不过有了单窗口之后，我个人就觉得GIMP这个软件比以前专业了，心理作用--&#124;&#124;&#124; P.S. Adobe Photoshop CS5的功能太强大了：http://is.gd/5MSzM P.P.S. 炫耀一下，明天，我就要签卖身契咯～～ Tagsgimp, single window Related Posts Linux下与相片... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/dfGbjVJWp9inKlJ2viYpUon23y0/0/da"><img src="http://feedads.g.doubleclick.net/~a/dfGbjVJWp9inKlJ2viYpUon23y0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dfGbjVJWp9inKlJ2viYpUon23y0/1/da"><img src="http://feedads.g.doubleclick.net/~a/dfGbjVJWp9inKlJ2viYpUon23y0/1/di" border="0" ismap="true"></img></a></p><div class='fp'>嗯，期盼了好久的GIMP单窗口模式终于在新的开发版本里面出现了，尝试一下。</div><p></p>
<p>我在Gentoo下用的是9999版本，但是portage中的9999版本有编译错误，在bugzilla上看到可以使用的arcon这个overlay,遂换之，安装顺利完成。</p>
<p>打开之后发现默认并没有启用单窗口模式，得在“窗口”菜单栏中勾选“启用单窗口模式”。效果如图：</p>
<p><a href='http://www.tuhigh.com/photo/p/1253437'><img src='http://photo.tuhigh.com/pics/1010/0304/270072t1540803563_c.jpg' class='aligncenter'></a></p>
<p><span id="more-316"></span>另外还发现这个开发版本中的单窗口模式不是特别好用，每启用一个新的窗口（比如图层、通道、路径），默认都不是停靠在主窗口上，而是要取消勾选然后重新勾选“单窗口模式”。另外每次退出之后这个单窗口布局就消失了，下次得自己重新布局。</p>
<p>其实说白了这个单窗口模式也就是一个用户体验问题，对功能没什么影响，不过有了单窗口之后，我个人就觉得GIMP这个软件比以前专业了，心理作用--|||</p>
<p>P.S. Adobe Photoshop CS5的功能太强大了：<a href="http://is.gd/5MSzM">http://is.gd/5MSzM</a></p>
<p>P.P.S. 炫耀一下，明天，我就要签卖身契咯～～</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/single-window" title="single window" rel="tag">single window</a>, <a href="http://www.CasparAnt.com/tag/gimp" title="gimp" rel="tag">gimp</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/photograph-related-tools-under-linux.html" title="Linux下与相片有关的工具 (2009年12月3日)">Linux下与相片有关的工具</a> (6)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/_VubJRhpZyI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/try-gimp-single-window-mode.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/try-gimp-single-window-mode.html</feedburner:origLink></item>
		<item>
		<title>路过某山寨Linux发行版</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/D96eRxbHitw/trial-of-ylmf-linux-distributions.html</link>
		<comments>http://www.CasparAnt.com/trial-of-ylmf-linux-distributions.html#comments</comments>
		<pubDate>Fri, 25 Dec 2009 05:16:37 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Insight]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ylmf]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=309</guid>
		<description><![CDATA[今天圣诞节，老外们都度假去了，有没有趁机留下活儿给中国区这边我不知道，反正我自己手头是有活儿的……TT 今天在Twitter上发现YLMF发布了自己的Linux发行版，YLMF OS，特地去他们官网上瞅了瞅。瞅完第一眼，我对具有中国特色的“山寨”产品有了更具体的认识，据说他们还有了一个xp.com域名，果然是要把山寨进行到底。其实我对YLMF这个团队印象还好，即便当年他们打包的产品中一直包含广告。 这个发行版是基于Ubuntu 9.10的，按照YLMF的传统，主要就是修改界面和添加软件然后重新打包分发。我觉得这种不涉及源代码的修改应该不涉及License问题吧(后来觉得改的那个界面图标可能会涉及版权问题)，不知道有没有人去了解过这个问题。下载完了镜像，在虚拟机里路过了一下，放几个截图： 光盘启动画面： 安装： 安装结束，重启登录界面(太山寨了- -&#124;&#124;&#124;)： 桌面： 路过的时候专门开了一下Firefox，果然首页被改成了广告页面，这传统保持的够好的。 字... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/2Ry-lYgR8783dRjzhujd969tbBM/0/da"><img src="http://feedads.g.doubleclick.net/~a/2Ry-lYgR8783dRjzhujd969tbBM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2Ry-lYgR8783dRjzhujd969tbBM/1/da"><img src="http://feedads.g.doubleclick.net/~a/2Ry-lYgR8783dRjzhujd969tbBM/1/di" border="0" ismap="true"></img></a></p><div class='fp'>今天圣诞节，老外们都度假去了，有没有趁机留下活儿给中国区这边我不知道，反正我自己手头是有活儿的……TT</div><p></p>
<p>今天在Twitter上发现YLMF发布了自己的Linux发行版，<a href="http://www.ylmf.org">YLMF OS</a>，特地去他们官网上瞅了瞅。瞅完第一眼，我对具有中国特色的“山寨”产品有了更具体的认识，据说他们还有了一个xp.com域名，果然是要把山寨进行到底。其实我对YLMF这个团队印象还好，即便当年他们打包的产品中一直包含广告。</p>
<p>这个发行版是基于Ubuntu 9.10的，按照YLMF的传统，主要就是修改界面和添加软件然后重新打包分发。我觉得这种不涉及源代码的修改应该不涉及License问题吧(后来觉得改的那个界面图标可能会涉及版权问题)，不知道有没有人去了解过这个问题。下载完了镜像，在虚拟机里路过了一下，放几个截图：</p>
<p>光盘启动画面：</p>
<p><a href='http://www.tuhigh.com/photo/p/1253433'><img src='http://photo.tuhigh.com/pics/1010/0304/270072t252216179_c.jpg' class='aligncenter'></a></p>
<p><span id="more-309"></span>安装：</p>
<p><a href='http://www.tuhigh.com/photo/p/1253434'><img src='http://photo.tuhigh.com/pics/1010/0304/270072t2120511102_c.jpg' class='aligncenter'></a></p>
<p>安装结束，重启登录界面(太山寨了- -|||)：</p>
<p><a href='http://www.tuhigh.com/photo/p/1253435'><img src='http://photo.tuhigh.com/pics/1010/0304/270072t-1100533360_c.jpg' class='aligncenter'></a></p>
<p>桌面：</p>
<p><a href='http://www.tuhigh.com/photo/p/1253436'><img src='http://photo.tuhigh.com/pics/1010/0304/270072t909207165_c.jpg' class='aligncenter'></a></p>
<p>路过的时候专门开了一下Firefox，果然首页被改成了广告页面，这传统保持的够好的。</p>
<p>字体上，使用的是文泉驿带点阵的正黑体，不知道开启点阵是不是还是Ubuntu的默认配置，不过正好，XP用户看惯了点阵，这过来体验也没什么不习惯的。软件上，集成了Wine、OOo、WebQQ、WebMSN、SMPlayer，而没有集成VIM、build-essential这类开发工具，显然这次打包是为日常使用定制而非为开发者准备的。而且里面的源配置都不完整，还得自己手动去弄源。</p>
<p>体验完了，总体感觉还凑合。</p>
<p>然后说点题外话。我觉得Linux初学者有三类：一类是什么都不懂的刚接触电脑的人，他们想学电脑，可以教他们使用Linux，当然前提是这个人不是冲着Windows游戏而学电脑的，这类用户的例子可以是：我爸；第二类是需要在Linux下做开发的人，比方他们实验室要在Linux下做开发，于是他们就要挑发行版、学命令行……他们不会关心界面美丑，Linux对他们来说跟Matlab是一个级别的，都是应用软件，我也无意去教化这样的人把日常使用放到Linux上来，但是他们连源都不会配置这一点实在是让我太郁闷了……跑题了，回来。YLMF的定制显然不是专门面向这两类人的；第三类人就是Windows习惯用户，他们整天打打游戏，看看网页，偷偷菜，聊聊天，用用迅雷，听听歌，看看AV，上上草榴啥的。YLMF估计就是要面向这样的群众，于是先改界面，拉近他们之间的距离，然后集成Wine以方便他们打游戏，集成QQ以方便他们聊天，集成SMPlayer以方便他们看片。他们要证明Windows能做的，Linux一样能做，当然我不知道YLMF是否真的怀有这么远大的理想，但是他们的做法确实能潜在地推广Linux在中国的普及，这个还是值得从正面肯定的。Windows用户会不会买账，那就是另外一回事了。</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/linux" title="Linux" rel="tag">Linux</a>, <a href="http://www.CasparAnt.com/tag/ylmf" title="ylmf" rel="tag">ylmf</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/know-something-about-linux.html" title="初学Linux漫谈 (2007年12月23日)">初学Linux漫谈</a> (2)</li>
	<li><a href="http://www.CasparAnt.com/linux-notebook.html" title="Linux学习笔记(1) (2008年02月3日)">Linux学习笔记(1)</a> (1)</li>
	<li><a href="http://www.CasparAnt.com/flippancy-and-habit.html" title="浮躁与习惯 (2008年09月28日)">浮躁与习惯</a> (10)</li>
	<li><a href="http://www.CasparAnt.com/linux-about-boot.html" title="Linux启动时的一些闲言碎语 (2008年01月21日)">Linux启动时的一些闲言碎语</a> (3)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/D96eRxbHitw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/trial-of-ylmf-linux-distributions.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/trial-of-ylmf-linux-distributions.html</feedburner:origLink></item>
		<item>
		<title>新近摆弄WP的一点备忘</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/9-uuBm5X1kQ/some-notes-of-building-wordpress-blog.html</link>
		<comments>http://www.CasparAnt.com/some-notes-of-building-wordpress-blog.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 12:11:30 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Blog Affair]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wp2.9]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/?p=308</guid>
		<description><![CDATA[最近在加班之余还把自己的Blog整理了一遍，整理过程中发现这不知不觉就过去了一年。一年改变了好多东西，唯有折腾精神不变。 首先是升级WP到了2.9，然后把Blog主题换了，在网上选了一款比较清爽的主题，mg12的elegant box主题。这位主题作者的设计很对我胃口，上次用了他大名鼎鼎的iNove，感觉良好，情绪稳定。 然后就整理了一下插件，自己hack了一下主题。原本辛辛苦苦hack了好几个小时的代码，把wp-thread-comment的回复样式弄得跟原生界面一样了，结果发现elegant box主题在页面上不能正确回复评论，而且不能正确显示分页。看了代码才发现，从wp2.7开始好像就自带了嵌套回复、评论分页功能，从这个版本开始主题模板中的comments.php就和以前不一样了。新的主题模板有仿佛和wp-thread-comment冲突。不过wp-thread-comment里面用的parent字段和wp原生嵌套功能的字段是一样的，所以关闭了wp-thread-comment之后嵌套评论还在。只是没有了邮件发送通知功能，网上再搜搜，发现denishua... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/HWjcGHjQluNJ55fj0fSF4Bl7Qb8/0/da"><img src="http://feedads.g.doubleclick.net/~a/HWjcGHjQluNJ55fj0fSF4Bl7Qb8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HWjcGHjQluNJ55fj0fSF4Bl7Qb8/1/da"><img src="http://feedads.g.doubleclick.net/~a/HWjcGHjQluNJ55fj0fSF4Bl7Qb8/1/di" border="0" ismap="true"></img></a></p><div class='fp'>最近在加班之余还把自己的Blog整理了一遍，整理过程中发现这不知不觉就过去了一年。一年改变了好多东西，唯有折腾精神不变。</div><p></p>
<p>首先是升级WP到了2.9，然后把Blog主题换了，在网上选了一款比较清爽的主题，<a href="http://www.neoease.com" target="_blank">mg12</a>的elegant box主题。这位主题作者的设计很对我胃口，上次用了他大名鼎鼎的iNove，感觉良好，情绪稳定。</p>
<p>然后就整理了一下插件，自己hack了一下主题。原本辛辛苦苦hack了好几个小时的代码，把wp-thread-comment的回复样式弄得跟原生界面一样了，结果发现elegant box主题在页面上不能正确回复评论，而且不能正确显示分页。看了代码才发现，从wp2.7开始好像就自带了嵌套回复、评论分页功能，从这个版本开始主题模板中的comments.php就和以前不一样了。新的主题模板有仿佛和wp-thread-comment冲突。不过wp-thread-comment里面用的parent字段和wp原生嵌套功能的字段是一样的，所以关闭了wp-thread-comment之后嵌套评论还在。只是没有了邮件发送通知功能，网上再搜搜，发现<a href="http://fairyfish.net" target="_blank">denishua</a>的<a href="http://fairyfish.net/2008/11/03/comment-reply-notification/" target="_blank">Comment Reply Notification</a>把邮件发送功能从wp-thread-comment中抽取出来单独而成的，正和我意，于是装上。然后又发现评论上方自带了引言功能，那么Quoter这个插件也可以下课了。看来好久没有折腾wp，那是相当Out啊。</p>
<p>装了几个锦上添花的插件：<a href="http://wordpress.org/extend/plugins/wp-recentcomments/" target="_blank">WP-RecentComments</a>, <a href="http://wordpress.org/extend/plugins/wp-multicollinks/" target="_blank">WP-MultiColLinks</a>, <a href="http://wordpress.org/extend/plugins/wp-easyarchives/" target="_blank">WP-EasyArchives</a>，作者都是mg12，主要是让版面排得更好看一些，其实不用也没太大影响。</p>
<p><span id="more-308"></span>接下去把侧边栏hack了一下，把文章页面的侧边栏内容和首页分开了。我觉得首页放一些站外共享的内容挺好，比如Google Friend Connect，Twitter，豆瓣分享什么的，但是在文章页读者想看的应该是和文章相关的内容，比如关联日志、同分类日志、Top10日志、随机日志等等。于是在sidebar.php里面加了一个判断，is_single()的时候，调用自己手动写的一个侧边栏文件，不通过Widgets来配置。这也算是用户体验上的一个改进吧，不过话说我的Blog应该是光订阅不访问的人比较多，现在日IP估计连50都没。</p>
<p>最后做的一件事情就是以前经常干的：删文章。最开始出于这个那个的原因，转载了一些现在都没什么兴趣了的文章，现在看看实在扎眼，删了。</p>
<p>P.S. wp2.9有了回收站功能和图片编辑功能，用了一下感觉很好。推荐大家升级。</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/theme" title="theme" rel="tag">theme</a>, <a href="http://www.CasparAnt.com/tag/wp2-9" title="wp2.9" rel="tag">wp2.9</a>, <a href="http://www.CasparAnt.com/tag/wp" title="Wordpress" rel="tag">Wordpress</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/modified-quoter.html" title="改进/倒退了的Quoter (2008年04月1日)">改进/倒退了的Quoter</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/recommending-a-series-of-ubuntu-themes.html" title="推荐一套Ubuntu主题 (2008年09月4日)">推荐一套Ubuntu主题</a> (6)</li>
	<li><a href="http://www.CasparAnt.com/amarok2-and-wp27-released.html" title="Amarok2 and WP2.7 Released (2008年12月11日)">Amarok2 and WP2.7 Released</a> (2)</li>
	<li><a href="http://www.CasparAnt.com/wordpress-25.html" title="WordPress 2.5使用感受 (2008年03月30日)">WordPress 2.5使用感受</a> (2)</li>
	<li><a href="http://www.CasparAnt.com/wordpress-26released.html" title="WordPress 2.6 发布 (2008年07月16日)">WordPress 2.6 发布</a> (1)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/9-uuBm5X1kQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/some-notes-of-building-wordpress-blog.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/some-notes-of-building-wordpress-blog.html</feedburner:origLink></item>
		<item>
		<title>你有两个缺点哦～</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/-8WxNCmseAE/a-junk-website.html</link>
		<comments>http://www.CasparAnt.com/a-junk-website.html#comments</comments>
		<pubDate>Thu, 17 Dec 2009 03:10:25 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Complains]]></category>
		<category><![CDATA[我就是不写你这个网站的名字]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/a-junk-website.html</guid>
		<description><![CDATA[以前找工作的时候，在一些招聘网站上注册了帐号，还填写了详细的个人信息。可是朋友在gtalk上说我发了一封邮件给她，如图： 可恨的小破网站，竟然盗用我的名字，伪造我的邮箱地址，以某种我不知道的方式窃取我联系人的邮箱（我从来没在这个网站放过其他人的联系方式）…… 而且它还要逼我再登录一次那个网站，去修改资料。然后发现邮箱地址绑定了，居然不能修改，果然流氓本色毕露啊。于是只好修改简历。 最后简历修改完毕，下次再有这种情况，有人再收到邮件也不会误以为是我了： 考证了一下，神兽是南美洲的，嗯～ doubanclaimbd793bd6fd29d082 Tags我就是不写你这个网站的名字 Related Posts No related post... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/817V4pLycfL0ahTv3nFK9xL4IhE/0/da"><img src="http://feedads.g.doubleclick.net/~a/817V4pLycfL0ahTv3nFK9xL4IhE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/817V4pLycfL0ahTv3nFK9xL4IhE/1/da"><img src="http://feedads.g.doubleclick.net/~a/817V4pLycfL0ahTv3nFK9xL4IhE/1/di" border="0" ismap="true"></img></a></p><div class='fp'>以前找工作的时候，在一些招聘网站上注册了帐号，还填写了详细的个人信息。可是朋友在gtalk上说我发了一封邮件给她，如图：</div><p></p>
<p><img alt="" src="http://photo.tuhigh.com/pics/1010/0304/270072t345372430_o.jpg" title="mail" class="aligncenter" width="464" height="656" /></p>
<p><span id="more-301"></span>可恨的小破网站，竟然盗用我的名字，伪造我的邮箱地址，以某种我不知道的方式窃取我联系人的邮箱（我从来没在这个网站放过其他人的联系方式）……</p>
<p>而且它还要逼我再登录一次那个网站，去修改资料。然后发现邮箱地址绑定了，居然不能修改，果然流氓本色毕露啊。于是只好修改简历。</p>
<p>最后简历修改完毕，下次再有这种情况，有人再收到邮件也不会误以为是我了：<br />
<a href='http://www.tuhigh.com/photo/p/1253432'><img src='http://photo.tuhigh.com/pics/1010/0304/270072t-2020405339_c.jpg' class='aligncenter'></a></p>
<p>考证了一下，神兽是南美洲的，嗯～</p>
<p>doubanclaimbd793bd6fd29d082</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/%e6%88%91%e5%b0%b1%e6%98%af%e4%b8%8d%e5%86%99%e4%bd%a0%e8%bf%99%e4%b8%aa%e7%bd%91%e7%ab%99%e7%9a%84%e5%90%8d%e5%ad%97" title="我就是不写你这个网站的名字" rel="tag">我就是不写你这个网站的名字</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li>No related posts</li>
	</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/-8WxNCmseAE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/a-junk-website.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/a-junk-website.html</feedburner:origLink></item>
		<item>
		<title>Linux下与相片有关的工具</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/KZUE5a8bvsQ/photograph-related-tools-under-linux.html</link>
		<comments>http://www.CasparAnt.com/photograph-related-tools-under-linux.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 09:58:37 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
				<category><![CDATA[Softwares]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[picasa]]></category>
		<category><![CDATA[ufraw]]></category>

		<guid isPermaLink="false">http://www.CasparAnt.com/photograph-related-tools-under-linux.html</guid>
		<description><![CDATA[前段时间入手了一台入门单反，看网上都是使用光影啊、PS啊、Nikon光盘自带的ViewNX等工具来处理相片，我就想在Linux找到类似的软件。 PS这个好说，GIMP可以搞定。不过强烈期盼GIMP的单一窗口模式早点出来啊～ 相片管理软件只好暂时用用Wine的Picasa了，同样期待Linux下原生的Picasa，不过这个希望相当渺茫……其实wine的Picasa还是很好用的，修正照片功能也不错，Google招牌式的I'm feeling lucky按钮，对于我等懒人，效果极佳。 光影类的软件，我迄今为止没有找到。我主要喜欢光影的加框功能。Linux下尝试过f-spot，最后放弃，主要是修改完出片的时候根本没有压缩，遂怀疑这个软件的相片修正功能是否真正可用，而且没有加框的插件。还发现几个KDE的程序，但是因为要编译安装kdebase-lib这种大块头，我宁愿wine一个光影魔术手……现在调曝光拉曲线加框出片基本上都是靠wine的光影，痛苦啊T_T不过批量操作的时候还是用Picasa～ 然后就是RAW出片的问题。我在虚拟机上运行ViewNX... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/hWdXywS9wPfEHommApyVaJ4f4mM/0/da"><img src="http://feedads.g.doubleclick.net/~a/hWdXywS9wPfEHommApyVaJ4f4mM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hWdXywS9wPfEHommApyVaJ4f4mM/1/da"><img src="http://feedads.g.doubleclick.net/~a/hWdXywS9wPfEHommApyVaJ4f4mM/1/di" border="0" ismap="true"></img></a></p><div class='fp'>前段时间入手了一台入门单反，看网上都是使用光影啊、PS啊、Nikon光盘自带的ViewNX等工具来处理相片，我就想在Linux找到类似的软件。</div><p></p>
<p>PS这个好说，GIMP可以搞定。不过强烈期盼<a href="http://www.gimpusers.com/news/2009-09-19/single-window-mode-gimp-2-8-confirmed.html" target="new">GIMP的单一窗口模式</a>早点出来啊～</p>
<p>相片管理软件只好暂时用用Wine的Picasa了，同样期待Linux下原生的Picasa，不过这个希望相当渺茫……其实wine的Picasa还是很好用的，修正照片功能也不错，Google招牌式的I'm feeling lucky按钮，对于我等懒人，效果极佳。</p>
<p>光影类的软件，我迄今为止没有找到。我主要喜欢光影的加框功能。Linux下尝试过f-spot，最后放弃，主要是修改完出片的时候根本没有压缩，遂怀疑这个软件的相片修正功能是否真正可用，而且没有加框的插件。还发现几个KDE的程序，但是因为要编译安装kdebase-lib这种大块头，我宁愿wine一个光影魔术手……现在调曝光拉曲线加框出片基本上都是靠wine的光影，痛苦啊T_T不过批量操作的时候还是用Picasa～</p>
<p>然后就是RAW出片的问题。我在虚拟机上运行ViewNX来修改RAW的片子居然把虚拟机搞假死了，RAW片果然不是省油的灯……只好转战Linux平台，找了许久之后发现这个工具：<a href="http://ufraw.sourceforge.net/" target="new">UFRaw</a>，发现其功能还是很强大的，拉曲线、白平衡、曝光补偿、去噪、裁切缩放都有，而且它能认出我的D3000，在Gentoo中加上gimp的USE Flag后可以在处理完片子后在GIMP中继续编辑。目前没有发现这个软件在功能上的缺失，而且平时因为RAW出片不多，所以对这个功能的研究也比较少。</p>
<p>其他工具正在继续发掘中，有类似经历的朋友欢迎推荐好用的工具。总体来说Linux下处理相片的工具还是有的，就是找到它们需要一些时间～</p>
<p><span id="more-298"></span>====== 我是分割线 ======</p>
<p>最近人比较懒，Blog更新非常不勤快。在搬家之后，我思考了一下这个Blog未来的定位，最后觉得以后应该侧重于这么几个方面：</p>
<p>1. Linux下的软件或者其他平台的开源软件的介绍（当然都是生活中常用的软件，那种跟我八杆子打不着的软件，我也不会因为它是开源的就一个劲儿宣传）</p>
<p>2. 编程，这个永远是Blog中应该出现的话题，虽然我已经好久没有编程了。</p>
<p>3. 因为最近折腾系统比较少了，所以关于Linux系统配置等文章，以后基本上不会出现了。而跟Linux系统有关的软件，当我有兴趣研究之后我会作为话题发上来。</p>
<p>暂时就想到这么多，以后本Blog尽量不那么杂乱，好好耕耘，完毕～</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/gimp" title="gimp" rel="tag">gimp</a>, <a href="http://www.CasparAnt.com/tag/picasa" title="picasa" rel="tag">picasa</a>, <a href="http://www.CasparAnt.com/tag/ufraw" title="ufraw" rel="tag">ufraw</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/try-gimp-single-window-mode.html" title="试用GIMP的单窗口模式 (2010年01月6日)">试用GIMP的单窗口模式</a> (2)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/KZUE5a8bvsQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/photograph-related-tools-under-linux.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/photograph-related-tools-under-linux.html</feedburner:origLink></item>
		<item>
		<title>博客搬家后Feed测试</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/yhLWeAAgx2c/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 Tagsfeed Related Posts 生活在信息膨胀的社会 (4) 原来这就是我在FeedBurner的界面呀 (13) FeedCat: 一个新的FEED托管 (4) [推荐]grnotify-1.0.0-RC1 released (0... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/mDdF3JDLYNc2tFNND-IArlA8ifQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/mDdF3JDLYNc2tFNND-IArlA8ifQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mDdF3JDLYNc2tFNND-IArlA8ifQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/mDdF3JDLYNc2tFNND-IArlA8ifQ/1/di" border="0" ismap="true"></img></a></p><div class='fp'>换到<a href="http://www.gegehost.com">hugege</a>的site5主机了，不过feed和页面都出现了很多问题。测试一下。</div><p></p>
<p>重新验证验证Feedsky: 1975e338</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/feed" title="feed" rel="tag">feed</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/how-to-organize-your-information.html" title="生活在信息膨胀的社会 (2010年04月7日)">生活在信息膨胀的社会</a> (4)</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/feedcat-a-new-feed-agent.html" title="FeedCat: 一个新的FEED托管 (2008年08月20日)">FeedCat: 一个新的FEED托管</a> (4)</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>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/yhLWeAAgx2c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/feed-test-in-new-host.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/feed-test-in-new-host.html</feedburner:origLink></item>
		<item>
		<title>更新到了xorg-server-1.7</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/LOSiCVW0An0/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[Z-Turn]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[xorg-server]]></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吧。 Tagsxorg-server, upgrade Related Posts 更新了KDE 4.3 (0) WordPress 2.5使用感受 (2... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/4wZuLqQFsh0Fj-KvrS2_lnDHcX4/0/da"><img src="http://feedads.g.doubleclick.net/~a/4wZuLqQFsh0Fj-KvrS2_lnDHcX4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/4wZuLqQFsh0Fj-KvrS2_lnDHcX4/1/da"><img src="http://feedads.g.doubleclick.net/~a/4wZuLqQFsh0Fj-KvrS2_lnDHcX4/1/di" border="0" ismap="true"></img></a></p><div class='fp'>Unmask了xorg-server，然后有一堆x11-libs和x11-protos的包要升级，而且都是给mask了的，于是统统unmask掉，编译。</div><p></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>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/xorg-server" title="xorg-server" rel="tag">xorg-server</a>, <a href="http://www.CasparAnt.com/tag/upgrade" title="upgrade" rel="tag">upgrade</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.CasparAnt.com/upgraded-to-kde-4-3.html" title="更新了KDE 4.3 (2009年08月5日)">更新了KDE 4.3</a> (0)</li>
	<li><a href="http://www.CasparAnt.com/wordpress-25.html" title="WordPress 2.5使用感受 (2008年03月30日)">WordPress 2.5使用感受</a> (2)</li>
</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/LOSiCVW0An0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/update-to-xorg-server-1-7.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/update-to-xorg-server-1-7.html</feedburner:origLink></item>
		<item>
		<title>让gnome-power-manager使用notify-osd通知</title>
		<link>http://feedproxy.google.com/~r/CasparAnt/~3/WoNn0p280dk/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[Hacks]]></category>
		<category><![CDATA[gnome-power-manager]]></category>
		<category><![CDATA[gpm]]></category>
		<category><![CDATA[notify-osd]]></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接管所有桌面通知任重而道远啊~ Tagsgnome-power-manager, notify-osd, gpm Related Posts No related post... ]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/7jpvJqAxnJgbvv1xI4-KAjPqcvA/0/da"><img src="http://feedads.g.doubleclick.net/~a/7jpvJqAxnJgbvv1xI4-KAjPqcvA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7jpvJqAxnJgbvv1xI4-KAjPqcvA/1/da"><img src="http://feedads.g.doubleclick.net/~a/7jpvJqAxnJgbvv1xI4-KAjPqcvA/1/di" border="0" ismap="true"></img></a></p><div 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，一拔电源就跳出窗口让人不爽，上网搜索，终于找到了解决方案。</div><p></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><img alt="" src="http://photo.tuhigh.com/pics/1010/0304/270072t202833730_o.png" title="gpm" class="aligncenter" width="306" height="116" /></p>
<p>补充一个网址<a href="https://wiki.ubuntu.com/NotifyOSD" target="new">https://wiki.ubuntu.com/NotifyOSD</a>，看来Notify-OSD接管所有桌面通知任重而道远啊~</p>
</p>
	<h4>Tags</h4><a href="http://www.CasparAnt.com/tag/gnome-power-manager" title="gnome-power-manager" rel="tag">gnome-power-manager</a>, <a href="http://www.CasparAnt.com/tag/notify-osd" title="notify-osd" rel="tag">notify-osd</a>, <a href="http://www.CasparAnt.com/tag/gpm" title="gpm" rel="tag">gpm</a>

	<h4>Related Posts</h4>
	<ul class="st-related-posts">
	<li>No related posts</li>
	</ul>

<img src="http://feeds.feedburner.com/~r/CasparAnt/~4/WoNn0p280dk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.CasparAnt.com/make-gpm-use-notify-osd.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.CasparAnt.com/make-gpm-use-notify-osd.html</feedburner:origLink></item>
	</channel>
</rss>
