<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><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" version="2.0">

<channel>
	<title>Caspar Ant</title>
	
	<link>http://www.casparant.com</link>
	<description>Linux, Open Source, Programming, Software Engineering</description>
	<pubDate>Sat, 19 Jul 2008 10:09:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/CasparAnt" type="application/rss+xml" /><item>
		<title>我是菜鸟之pkg-config命令</title>
		<link>http://www.casparant.com/pkg-config.html</link>
		<comments>http://www.casparant.com/pkg-config.html#comments</comments>
		<pubDate>Sat, 19 Jul 2008 10:09:15 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Linux World]]></category>

		<category><![CDATA[Unix World]]></category>

		<category><![CDATA[config]]></category>

		<category><![CDATA[libgnomeui]]></category>

		<category><![CDATA[pkg-config]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=120</guid>
		<description><![CDATA[接着凌晨的文章说。
昨天说自己被Ubuntu养懒了，确实懒了，懒得自己连系统的某些工具的用处都不知道。比如pkg-config
以前一直不知道，Linux下那么多库，在./configure时时怎么判断它们存不存在的，难道是靠递归搜索？现在我才知道我zt了，pkg-config这个命令和/*/lib/pkgconfig下的一些.pc文件才是主角。
每个.pc文件定义了库的名字、路径、编译选项等，比如glib-2.0.pc文件：

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include
glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums
Name: Glib
Description: C Utilitiy Library
Version: 2.14.4
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include

configure到某个时刻的时候，pkg-config命令会首先去PKG_CONFIG_PATH定义好的路径下搜索库名字对应的.pc文件，找到了就行了，等会儿make的时候就可以通过正则表达式取出libs和cflags的值来使用，否则的话就报错。
刚才pkg-config提示没有libgnomeui-2.0的库，我找了一下，找到... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>接着凌晨的文章说。</p>
<p>昨天说自己被Ubuntu养懒了，确实懒了，懒得自己连系统的某些工具的用处都不知道。比如pkg-<a href="http://www.casparant.com/tag/config" class="st_tag internal_tag" rel="tag" title="标签 config 下的日志">config</a></p>
<p>以前一直不知道，Linux下那么多库，在./configure时时怎么判断它们存不存在的，难道是靠递归搜索？现在我才知道我zt了，pkg-<a href="http://www.casparant.com/tag/config" class="st_tag internal_tag" rel="tag" title="标签 config 下的日志">config</a>这个命令和/*/lib/pkgconfig下的一些.pc文件才是主角。</p>
<p>每个.pc文件定义了库的名字、路径、编译选项等，比如glib-2.0.pc文件：</p>
<blockquote><p>
prefix=/usr<br />
exec_prefix=${prefix}<br />
libdir=/usr/lib<br />
includedir=${prefix}/include</p>
<p>glib_genmarshal=glib-genmarshal<br />
gobject_query=gobject-query<br />
glib_mkenums=glib-mkenums</p>
<p>Name: Glib<br />
Description: C Utilitiy Library<br />
Version: 2.14.4<br />
Libs: -L${libdir} -lglib-2.0<br />
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
</p></blockquote>
<p><span id="more-120"></span>configure到某个时刻的时候，pkg-<a href="http://www.casparant.com/tag/config" class="st_tag internal_tag" rel="tag" title="标签 config 下的日志">config</a>命令会首先去PKG_CONFIG_PATH定义好的路径下搜索库名字对应的.pc文件，找到了就行了，等会儿make的时候就可以通过正则表达式取出libs和cflags的值来使用，否则的话就报错。</p>
<p>刚才pkg-<a href="http://www.casparant.com/tag/config" class="st_tag internal_tag" rel="tag" title="标签 config 下的日志">config</a>提示没有libgnomeui-2.0的库，我找了一下，找到了这个.pc文件呀，但是pkg-<a href="http://www.casparant.com/tag/config" class="st_tag internal_tag" rel="tag" title="标签 config 下的日志">config</a>就是说找不到。我脑子抽筋了那么几分钟，终于意识到，在~/.bashrc中，添加libgnomeui-2.0所在的文件夹路径到PKG_CONFIG_PATH下：</p>
<blockquote><p>
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
</p></blockquote>
<p>然后source ~/.bashrc就可以了。</p>
<p>顺便说一句，编译真是个惊心动魄的过程啊，不亚于看恐怖小说。</p>
<p>凌晨的时候系统坏了，现在重装好，配置好，恢复到了凌晨的状态了，sigh - b</p>
</p>
	标签：<a href="http://www.casparant.com/tag/config" title="config" rel="tag">config</a>, <a href="http://www.casparant.com/tag/libgnomeui" title="libgnomeui" rel="tag">libgnomeui</a>, <a href="http://www.casparant.com/tag/pkg-config" title="pkg-config" rel="tag">pkg-config</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/opera-font-config.html" title="[转]Ubuntu下Opera字体配置 (2008-02-21)">[转]Ubuntu下Opera字体配置</a> (2)</li>
	<li><a href="http://www.casparant.com/ubuntu-server-config.html" title="Ubuntu Server搭建服务器 (2008-03-26)">Ubuntu Server搭建服务器</a> (0)</li>
	<li><a href="http://www.casparant.com/ubuntu-hardy-config.html" title="Ubuntu 8.04配置指南(29日完成，不断更新) (2008-04-29)">Ubuntu 8.04配置指南(29日完成，不断更新)</a> (2)</li>
	<li><a href="http://www.casparant.com/ubuntu-gutsy-config.html" title="Ubuntu 7.10 新手配置 (2008-01-20)">Ubuntu 7.10 新手配置</a> (1)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=BcinmU"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=BcinmU" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/pkg-config.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>我是被养懒了的人</title>
		<link>http://www.casparant.com/lazy-me.html</link>
		<comments>http://www.casparant.com/lazy-me.html#comments</comments>
		<pubDate>Fri, 18 Jul 2008 19:13:21 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[No Category]]></category>

		<category><![CDATA[compile]]></category>

		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=119</guid>
		<description><![CDATA[曾经俊俊在Ubuntu下吭哧吭哧地下源码包来编译安装，我还笑他小题大做，Ubuntu的源里不是有很多库么。
没想到我也开始吭哧吭哧地找源码包，手动解决依赖关系了。
而且源码还真不好找。现在已经不管版本问题了，找到哪个算那个。
刚才一度卡在某处郁闷死了。
后来配合sunfreeware的软件和google，突然就顺利起来了。昏昏沉沉的大脑也马上兴奋了不少。
所以才有空上来发个日志牢骚牢骚。
下午去了Sun公司，再次感叹一下Sun的环境真不错。

	标签：compile, Sun

	Related Posts
	
	编译错误索引 (2)
	两个收购，N个收购 (1)
	[转]开源软件逐渐融入市场并开始走向赢利 (0)
	Linux扫盲 (1)

... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>曾经俊俊在Ubuntu下吭哧吭哧地下源码包来编译安装，我还笑他小题大做，Ubuntu的源里不是有很多库么。</p>
<p>没想到我也开始吭哧吭哧地找源码包，手动解决依赖关系了。</p>
<p>而且源码还真不好找。现在已经不管版本问题了，找到哪个算那个。</p>
<p>刚才一度卡在某处郁闷死了。</p>
<p>后来配合sunfreeware的软件和google，突然就顺利起来了。昏昏沉沉的大脑也马上兴奋了不少。</p>
<p>所以才有空上来发个日志牢骚牢骚。</p>
<p>下午去了<a href="http://www.casparant.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>公司，再次感叹一下<a href="http://www.casparant.com/tag/sun" class="st_tag internal_tag" rel="tag" title="标签 Sun 下的日志">Sun</a>的环境真不错。</p>
</p>
	标签：<a href="http://www.casparant.com/tag/compile" title="compile" rel="tag">compile</a>, <a href="http://www.casparant.com/tag/sun" title="Sun" rel="tag">Sun</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/compile-error-index.html" title="编译错误索引 (2008-02-03)">编译错误索引</a> (2)</li>
	<li><a href="http://www.casparant.com/some-acquires.html" title="两个收购，N个收购 (2008-01-17)">两个收购，N个收购</a> (1)</li>
	<li><a href="http://www.casparant.com/how-open-source-make-money.html" title="[转]开源软件逐渐融入市场并开始走向赢利 (2008-03-28)">[转]开源软件逐渐融入市场并开始走向赢利</a> (0)</li>
	<li><a href="http://www.casparant.com/linux-faq.html" title="Linux扫盲 (2008-02-03)">Linux扫盲</a> (1)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=6qEA7Y"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=6qEA7Y" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/lazy-me.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress 2.6 发布</title>
		<link>http://www.casparant.com/wordpress-26released.html</link>
		<comments>http://www.casparant.com/wordpress-26released.html#comments</comments>
		<pubDate>Wed, 16 Jul 2008 06:46:21 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[2.6]]></category>

		<category><![CDATA[released]]></category>

		<category><![CDATA[wp2.6]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=117</guid>
		<description><![CDATA[昨天就装上了。虽然听说有修订历史那么一个不好的功能还是装上了。
然后就在很多网站上找到了去除修订历史的方法：
修改wp-config.php文件，添加一行：

define&#40;'WP_POST_REVISIONS', false&#41;;

过了不多久yegle同学说WP2.6在Opera下的WYSIWYG编辑器可以正常用了。
中文包昨天我装上的时候还没出来。有些新功能就没有被汉化，比如发表日志时旁边的Shortcuts功能和Word count功能。等下去wordpress社区看看汉化包出来没。
另外，插件有更新的时候，在右上角“插件”链接上会有提示，更加方便了。
既然修订历史的功能可以被关闭了，又有这么多改进，有什么理由不换到2.6版本呢？
不过某人说得好（忘了是谁说的了），WP功能强大了，方便使用才是最好的。什么时候能把必要插件整合起来，比如2.5里的gravatars集成一样，这样我的WP就不显得那么臃肿，也不用花那么多时间去配置了。
———————————— 测试的分割线 ————————————
这里是测试用的，用于测... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>昨天就装上了。虽然听说有修订历史那么一个不好的功能还是装上了。</p>
<p>然后就在很多网站上找到了去除修订历史的方法：</p>
<p>修改wp-<a href="http://www.casparant.com/tag/config" class="st_tag internal_tag" rel="tag" title="标签 config 下的日志">config</a>.php文件，添加一行：</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>过了不多久<a href="http://yegle.net" target="_blank">yegle</a>同学说WP2.6在<a href="http://www.casparant.com/tag/opera" class="st_tag internal_tag" rel="tag" title="标签 opera 下的日志">Opera</a>下的WYSIWYG编辑器<a href="http://yegle.net/2008/07/15/wordpress-26-released/" target="_blank">可以正常用了。</a></p>
<p>中文包昨天我装上的时候还没出来。有些新功能就没有被汉化，比如发表日志时旁边的Shortcuts功能和Word count功能。等下去<a href="http://www.casparant.com/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 wordpress 下的日志">wordpress</a>社区看看汉化包出来没。</p>
<p>另外，插件有更新的时候，在右上角“插件”链接上会有提示，更加方便了。</p>
<p>既然修订历史的功能可以被关闭了，又有这么多改进，有什么理由不换到2.6版本呢？</p>
<p>不过某人说得好（忘了是谁说的了），WP功能强大了，方便使用才是最好的。什么时候能把必要插件整合起来，比如2.5里的gravatars集成一样，这样我的WP就不显得那么臃肿，也不用花那么多时间去配置了。</p>
<p><span id="more-117"></span>———————————— 测试的分割线 ————————————</p>
<p>这里是测试用的，用于测试修订历史功能是否被关闭了。</p>
<p>———————————— 测试很成功 ————————————</p>
<p>果然把修订历史给关闭了，嗯。</p>
<p>P.S.我现在在数据库里。</p>
</p>
	标签：<a href="http://www.casparant.com/tag/26" title="2.6" rel="tag">2.6</a>, <a href="http://www.casparant.com/tag/released" title="released" rel="tag">released</a>, <a href="http://www.casparant.com/tag/wordpress" title="wordpress" rel="tag">wordpress</a>, <a href="http://www.casparant.com/tag/wp26" title="wp2.6" rel="tag">wp2.6</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/wordpress-functions.html" title="[转]Wordpress常用函数 (2008-03-07)">[转]Wordpress常用函数</a> (1)</li>
	<li><a href="http://www.casparant.com/grnotify-100-rc1-released.html" title="[推荐]grnotify-1.0.0-RC1 released (2008-05-13)">[推荐]grnotify-1.0.0-RC1 released</a> (0)</li>
	<li><a href="http://www.casparant.com/wordpress-25.html" title="Wordpress 2.5使用感受 (2008-03-30)">Wordpress 2.5使用感受</a> (2)</li>
	<li><a href="http://www.casparant.com/wine-10-released.html" title="Wine 1.0 Released (2008-06-18)">Wine 1.0 Released</a> (0)</li>
	<li><a href="http://www.casparant.com/ubuntu-hardy-released.html" title="Ubuntu 8.04发布 (2008-04-24)">Ubuntu 8.04发布</a> (0)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=SnFfBu"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=SnFfBu" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/wordpress-26released.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>搞定OpenSolaris上网</title>
		<link>http://www.casparant.com/visit-internet-in-opensolaris.html</link>
		<comments>http://www.casparant.com/visit-internet-in-opensolaris.html#comments</comments>
		<pubDate>Fri, 11 Jul 2008 11:06:04 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Unix World]]></category>

		<category><![CDATA[440x]]></category>

		<category><![CDATA[bfe]]></category>

		<category><![CDATA[broadcom]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[Opensolaris]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=116</guid>
		<description><![CDATA[装好OpenSolaris后，居然有线网卡不能识别，上网看了一下，很多人都有这个问题。翻了一下网上的资料，自己总结了一下。
我的机子是Dell 640m，
有线网卡是Broadcom 440x 10/100 Integrated Controller；
无线网卡是Intel PRO/Wireless 3945ABG。
系统安装好之后，无线网卡可以被识别。在自动配置服务(Network Auto-Magic, NWAM)打开的情况下，搜索到无线网络，可以很方便配置好。
但是有线网卡不能被识别，按照北邮人论坛上的一篇文章：http://forum.byr.edu.cn/wForum/disparticle.php?boardName=Linux&#38;ID=49780&#38;pos=23的提示，我到这里下载了自己的驱动bfe-2.6.0a：http://homepage2.nifty.com/mrym3/taiyodo/eng/
下载完了之后解压缩，按照README的提示开始安装。
结果发现OpenSolaris2008.05的LiveCD没有自带gcc - -b
于是到http://www.sunfreeware.com/programlistintel10.html上下载了gcc-3.4.6，还有它的依赖包libiconv-1.11。
gunzip命令解压缩，pkgadd -d命令安装。
完成后正式开始安装驱动。步骤在README中有，非常详细，在此不再赘述。
配置网络IP... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>装好OpenSolaris后，居然有线网卡不能识别，上网看了一下，很多人都有这个问题。翻了一下网上的资料，自己总结了一下。</p>
<p>我的机子是Dell 640m，</p>
<p>有线网卡是Broadcom 440x 10/100 Integrated Controller；</p>
<p>无线网卡是Intel PRO/Wireless 3945ABG。</p>
<p>系统安装好之后，无线网卡可以被识别。在自动配置服务(Network Auto-Magic, NWAM)打开的情况下，搜索到无线网络，可以很方便配置好。</p>
<p>但是有线网卡不能被识别，按照北邮人论坛上的一篇文章：<a href="http://forum.byr.edu.cn/wForum/disparticle.php?boardName=Linux&amp;ID=49780&amp;pos=23">http://forum.byr.edu.cn/wForum/disparticle.php?boardName=Linux&amp;ID=49780&amp;pos=23</a>的提示，我到<a href="http://solaris-x86.org/software/drivers/">这里</a>下载了自己的驱动bfe-2.6.0a：<a href="http://homepage2.nifty.com/mrym3/taiyodo/eng/">http://homepage2.nifty.com/mrym3/taiyodo/eng/</a></p>
<p>下载完了之后解压缩，按照README的提示开始安装。</p>
<p>结果发现OpenSolaris2008.05的LiveCD没有自带gcc - -b</p>
<p>于是到<a href="http://www.sunfreeware.com/programlistintel10.html">http://www.sunfreeware.com/programlistintel10.html</a>上下载了gcc-3.4.6，还有它的依赖包libiconv-1.11。</p>
<p>gunzip命令解压缩，pkgadd -d命令安装。</p>
<p>完成后正式开始安装驱动。步骤在README中有，非常详细，在此不再赘述。</p>
<p>配置网络IP我使用的是固定IP，没有用dhcp。然而不管是dhcp还是固定IP，都需要先关闭NWAM服务：</p>
<blockquote><p>svcadm disable nwam</p></blockquote>
<p>我比较懒，使用network-admin来配置IP，把IP，Netmask，Gateway，DNS都给修改好了。</p>
<p><span id="more-116"></span>其对应的/etc下的文件操作如下：</p>
<p>1.hosts文件</p>
<p>在其中自定义一个解析条目为：IP domain。</p>
<p>2.hostname.interface文件</p>
<p>我的无线interface名为wpi0，有线interface名为bfe0，所以就有hostname.wpi0,hostname.bfe0两个文件。</p>
<p>其中的内容是自己的主机名(前提是在hosts文件中定义了)，或者自己固定的IP。</p>
<p>3.nodename文件</p>
<p>添加内容同样为主机名</p>
<p>4.netmasks文件</p>
<p>添加内容为 network-number netmask</p>
<p>5.defaultrouter文件</p>
<p>内容为Gateway</p>
<p>6.resolv.conf文件</p>
<p>内容为 nameserver DNS地址</p>
<p>7.在<a href="http://www.unix-center.net/bbs/viewthread.php?tid=4797&amp;extra=page%3D1">这里</a>还说需要修改/etc/nsswitch.conf文件，在hosts及ipnodes后加入dns和mdns，即：</p>
<blockquote><p>hosts:      files        dns        mdns<br />
ipnodes:    files        dns        mdns</p></blockquote>
<p>为了开机启动网络，需要启用服务：svcadm enable svc:/network/physical:default</p>
</p>
	标签：<a href="http://www.casparant.com/tag/440x" title="440x" rel="tag">440x</a>, <a href="http://www.casparant.com/tag/bfe" title="bfe" rel="tag">bfe</a>, <a href="http://www.casparant.com/tag/broadcom" title="broadcom" rel="tag">broadcom</a>, <a href="http://www.casparant.com/tag/internet" title="internet" rel="tag">internet</a>, <a href="http://www.casparant.com/tag/opensolaris" title="Opensolaris" rel="tag">Opensolaris</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/net-union.html" title="所谓“网络共同体”？ (2008-05-01)">所谓“网络共同体”？</a> (0)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=ZHA9nX"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=ZHA9nX" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/visit-internet-in-opensolaris.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>对awn-applet的notification area的一个小改动</title>
		<link>http://www.casparant.com/a-hack-of-notification-area-in-awn-applet.html</link>
		<comments>http://www.casparant.com/a-hack-of-notification-area-in-awn-applet.html#comments</comments>
		<pubDate>Fri, 04 Jul 2008 04:15:20 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[applet]]></category>

		<category><![CDATA[avant window navigator]]></category>

		<category><![CDATA[awn]]></category>

		<category><![CDATA[awn-applet]]></category>

		<category><![CDATA[change]]></category>

		<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=113</guid>
		<description><![CDATA[话说，用了awn-extra-applet之后，腰不疼了，腿不酸了，吃饭也香了，身体也有劲儿了……还能做两个半俯卧撑了……
不过有点不爽的就是，awn applets里面的notification area(用来代替panel上的notification area的东东)显示图标有问题。当某程序的status icon使用的是高像素图标(比如128x128)时，整个notification area就被撑满了，高度也撑破了。
如下图：

于是好好的一个awn的美观就被破坏殆尽。
最近对代码有点犯怵，不过还是去看了看notification area的代码，发现只有三个文件。
在applet.c中，找到这么一段代码：


1
2
3
4
5
6
7
height = awn_applet_get_height &#40;applet&#41;;
gtk_widget_set_size_request &#40;GTK_WIDGET &#40;applet&#41;, -1, height* 2 &#41;;
&#160;
table = gtk_table_new &#40;1, 1, FALSE&#41;;
app-&#62;table = table;
gtk_table_set_col_spacings &#40;GTK_TABLE &#40;table&#41;, 2&#41;;
gtk_table_set_row_spacings &#40;GTK_TABLE &#40;table&#41;, 1&#41;;

第一行说明notification area中显示的图标高度是由applet的实际高度决定的。applet的实际高度可以很高，比... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>话说，用了awn-extra-applet之后，腰不疼了，腿不酸了，吃饭也香了，身体也有劲儿了……还能做两个半俯卧撑了……</p>
<p>不过有点不爽的就是，awn applets里面的notification area(用来代替panel上的notification area的东东)显示图标有问题。当某程序的status icon使用的是高像素图标(比如128x128)时，整个notification area就被撑满了，高度也撑破了。</p>
<p>如下图：<br />
<a href='http://www.casparant.com/wp-content/uploads/2008/07/notification-area.png'><img src="http://www.casparant.com/wp-content/uploads/2008/07/notification-area.png" alt="" title="notification-area" width="499" height="148" class="aligncenter size-medium wp-image-114" /></a></p>
<p>于是好好的一个awn的美观就被破坏殆尽。</p>
<p>最近对代码有点犯怵，不过还是去看了看notification area的代码，发现只有三个文件。</p>
<p>在applet.c中，找到这么一段代码：</p>
<p><span id="more-113"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="cpp">height <span style="color: #000080;">=</span> awn_applet_get_height <span style="color: #008000;">&#40;</span>applet<span style="color: #008000;">&#41;</span>;
gtk_widget_set_size_request <span style="color: #008000;">&#40;</span>GTK_WIDGET <span style="color: #008000;">&#40;</span>applet<span style="color: #008000;">&#41;</span>, <span style="color: #0000dd;">-1</span>, height<span style="color: #000040;">*</span> <span style="color: #0000dd;">2</span> <span style="color: #008000;">&#41;</span>;
&nbsp;
table <span style="color: #000080;">=</span> gtk_table_new <span style="color: #008000;">&#40;</span><span style="color: #0000dd;">1</span>, <span style="color: #0000dd;">1</span>, <span style="color: #0000ff;">FALSE</span><span style="color: #008000;">&#41;</span>;
app<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>table <span style="color: #000080;">=</span> table;
gtk_table_set_col_spacings <span style="color: #008000;">&#40;</span>GTK_TABLE <span style="color: #008000;">&#40;</span>table<span style="color: #008000;">&#41;</span>, <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span>;
gtk_table_set_row_spacings <span style="color: #008000;">&#40;</span>GTK_TABLE <span style="color: #008000;">&#40;</span>table<span style="color: #008000;">&#41;</span>, <span style="color: #0000dd;">1</span><span style="color: #008000;">&#41;</span>;</pre></td></tr></table></div>

<p>第一行说明notification area中显示的图标高度是由applet的实际高度决定的。applet的实际高度可以很高，比如128的那个更新图标之类的。</p>
<p>于是修改起来也很简单，把第一行注释掉，再在开头height声明时初始化为24即可。</p>
<p>声明部分：</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"><span style="color: #0000ff;">static</span> GQuark new_quark <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span>;
<span style="color: #0000ff;">static</span> GQuark del_quark <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span>;
<span style="color: #0000ff;">static</span> gint   n_rows    <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span>;
<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">int</span>   height    <span style="color: #000080;">=</span> <span style="color: #0000dd;">24</span>;  <span style="color: #666666;">//原来这里是0</span>
<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">int</span>   icon_size <span style="color: #000080;">=</span> <span style="color: #0000dd;">24</span>;</pre></td></tr></table></div>

<p>改完后重新编译，重新使用awn后，图标果然正常了。</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/07/notification-area-changed.png'><img src="http://www.casparant.com/wp-content/uploads/2008/07/notification-area-changed.png" alt="" title="notification-area-changed" width="352" height="87" class="aligncenter size-medium wp-image-115" /></a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/applet" title="applet" rel="tag">applet</a>, <a href="http://www.casparant.com/tag/avant-window-navigator" title="avant window navigator" rel="tag">avant window navigator</a>, <a href="http://www.casparant.com/tag/awn" title="awn" rel="tag">awn</a>, <a href="http://www.casparant.com/tag/awn-applet" title="awn-applet" rel="tag">awn-applet</a>, <a href="http://www.casparant.com/tag/change" title="change" rel="tag">change</a>, <a href="http://www.casparant.com/tag/hack" title="hack" rel="tag">hack</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=gInl2D"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=gInl2D" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/a-hack-of-notification-area-in-awn-applet.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>宏福校区访问北邮人论坛不显示教育网IP的解决方案</title>
		<link>http://www.casparant.com/use-cernet-ip-to-visit-byr.html</link>
		<comments>http://www.casparant.com/use-cernet-ip-to-visit-byr.html#comments</comments>
		<pubDate>Mon, 30 Jun 2008 03:08:48 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[No Category]]></category>

		<category><![CDATA[cernet]]></category>

		<category><![CDATA[dns]]></category>

		<category><![CDATA[host]]></category>

		<category><![CDATA[ip]]></category>

		<category><![CDATA[resolv]]></category>

		<category><![CDATA[route]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=112</guid>
		<description><![CDATA[问题综述：
从本学期开始，北邮人论坛采用了教育网(211.68.71.66)/网通(123.127.134.62)双线路，宏福校区一直使用教育网/电信双线路。此前在宏福校区访问论坛显示的IP均为教育网IP，此后均显示电信IP。这给某些同学某些操作带来了不便(比如我们的jinkeng同学)，当然还有更实际的麻烦，比如走了电信路线后，访问速度缓慢。
问题分析：
cat结果发现，宏福校区的DNS有两个，教育网(59.64.164.22)的和电信(202.106.196.115)的
caspar@caspar-ubuntu:~$ cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by:  NetworkManager
# Process:      /usr/bin/NetworkManager
# Process_id:   5064
#
### END INFO
nameserver 59.64.164.22
nameserver 202.106.196.115
由于种种原因，宏福校区不管是访问教育网还是电信，使用的都是电信的那个DNS进行解析。在论坛采用双线之前，论坛仅有教育网IP，宏福校区访问论坛走的是教育网。在论坛使用双线后，会对访问者使用的DNS来决定对访问者返回电信IP还是教育网IP，因为宏福校区使用了电信的DNS，故论坛返回... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>问题综述：</p>
<p>从本学期开始，北邮人论坛采用了教育网(211.68.71.66)/网通(123.127.134.62)双线路，宏福校区一直使用教育网/电信双线路。此前在宏福校区访问论坛显示的IP均为教育网IP，此后均显示电信IP。这给某些同学某些操作带来了不便(比如我们的jinkeng同学)，当然还有更实际的麻烦，比如走了电信路线后，访问速度缓慢。</p>
<p>问题分析：</p>
<p>cat结果发现，宏福校区的DNS有两个，教育网(59.64.164.22)的和电信(202.106.196.115)的</p>
<blockquote><p>caspar@caspar-ubuntu:~$ cat /etc/resolv.conf<br />
### BEGIN INFO<br />
#<br />
# Modified_by:  NetworkManager<br />
# Process:      /usr/bin/NetworkManager<br />
# Process_id:   5064<br />
#<br />
### END INFO</p>
<p>nameserver 59.64.164.22<br />
nameserver 202.106.196.115</p></blockquote>
<p><span id="more-112"></span>由于种种原因，宏福校区不管是访问教育网还是电信，使用的都是电信的那个DNS进行解析。在论坛采用双线之前，论坛仅有教育网IP，宏福校区访问论坛走的是教育网。在论坛使用双线后，会对访问者使用的DNS来决定对访问者返回电信IP还是教育网IP，因为宏福校区使用了电信的DNS，故论坛返回了网通的IP，这使得宏福校区网络在出口时检索路由表采取了走外网的方式。</p>
<p>解决方案：</p>
<p>1.联系宏福校区网络中心更换DNS</p>
<p>这个方案不现实，相当不现实。但是如果能够实施，可以从根本上解决问题。</p>
<p>2.联系宏福校区网络中心将论坛的网通IP在路由表中更改为走教育网线路</p>
<p>这个方案勉强可行，不过只能解决具体问题，对于其他类似问题就不能解决了。</p>
<p>3.直接用IP访问，强制以教育网方式访问。</p>
<p>论坛的教育网IP地址是：211.68.71.66</p>
<p>4.如果你嫌IP太难记，自己手动修改hosts文件吧。</p>
<p>hosts文件的作用是使计算机绕过DNS直接应用文件中的域名解析规则(如果文件中定义了相关的域名的话)。</p>
<p>具体操作<a href="http://www.casparant.com/visit-blogspot.html">参照这篇文章</a>，修改文件如下：</p>
<blockquote><p>Linux下，修改/etc/hosts文件，添加一行：<br />
211.68.71.66    forum.byr.edu.cn<br />
Windows下，修改C:\windows\system32\drivers\etc\hosts<br />
添加同样一行文字。</p></blockquote>
<p>保存退出即可。</p>
<p>在此多谢chit老大的技术指导～</p>
<p>P.S. 这个方法也可以用于恢复使用本部代理。关于本部代理的IP地址，这里就不公布了～～</p>
</p>
	标签：<a href="http://www.casparant.com/tag/cernet" title="cernet" rel="tag">cernet</a>, <a href="http://www.casparant.com/tag/dns" title="dns" rel="tag">dns</a>, <a href="http://www.casparant.com/tag/host" title="host" rel="tag">host</a>, <a href="http://www.casparant.com/tag/ip" title="ip" rel="tag">ip</a>, <a href="http://www.casparant.com/tag/resolv" title="resolv" rel="tag">resolv</a>, <a href="http://www.casparant.com/tag/route" title="route" rel="tag">route</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=0MbKQW"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=0MbKQW" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/use-cernet-ip-to-visit-byr.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>0x5f3759df</title>
		<link>http://www.casparant.com/0x5f3759df.html</link>
		<comments>http://www.casparant.com/0x5f3759df.html#comments</comments>
		<pubDate>Sun, 29 Jun 2008 08:48:08 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Copid Entries]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[0x5f3759df]]></category>

		<category><![CDATA[0x5f375a86]]></category>

		<category><![CDATA[magic number]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=111</guid>
		<description><![CDATA[Quake III的代码里面找出来的一段飞速计算平方根的倒数的代码。算法是牛顿迭代法的无限逼近，亮点在标题的这个0x5f3759df，被称为“Magic Number”，这个东东让计算平方根比一般的牛顿逼近快了4倍。又据说，0x5f375a86这个数比0x5f3759df效率更高。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
float Q_rsqrt&#40; float number &#41;
&#123;
  long i;
  float x2, y;
  const float threehalfs = 1.5F;
&#160;
  x2 = number * 0.5F;
  y  = number;
  i  = * &#40; long * &#41; &#38;y;  // evil floating point bit level hacking
  i  = 0x5f3759df - [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>Quake III的代码里面找出来的一段飞速计算平方根的倒数的代码。算法是牛顿迭代法的无限逼近，亮点在标题的这个0x5f3759df，被称为“Magic Number”，这个东东让计算平方根比一般的牛顿逼近快了4倍。又据说，0x5f375a86这个数比0x5f3759df效率更高。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="cpp"><span style="color: #0000ff;">float</span> Q_rsqrt<span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">float</span> number <span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  <span style="color: #0000ff;">long</span> i;
  <span style="color: #0000ff;">float</span> x2, y;
  <span style="color: #0000ff;">const</span> <span style="color: #0000ff;">float</span> threehalfs <span style="color: #000080;">=</span> <span style="color: #0000dd;">1</span>.5F;
&nbsp;
  x2 <span style="color: #000080;">=</span> number <span style="color: #000040;">*</span> <span style="color: #0000dd;">0</span>.5F;
  y  <span style="color: #000080;">=</span> number;
  i  <span style="color: #000080;">=</span> <span style="color: #000040;">*</span> <span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">long</span> <span style="color: #000040;">*</span> <span style="color: #008000;">&#41;</span> <span style="color: #000040;">&amp;</span>y;  <span style="color: #666666;">// evil floating point bit level hacking</span>
  i  <span style="color: #000080;">=</span> 0x5f3759df <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span> i <span style="color: #000080;">&gt;&gt;</span> <span style="color: #0000dd;">1</span> <span style="color: #008000;">&#41;</span>; <span style="color: #666666;">// what the fuck?</span>
  y  <span style="color: #000080;">=</span> <span style="color: #000040;">*</span> <span style="color: #008000;">&#40;</span> <span style="color: #0000ff;">float</span> <span style="color: #000040;">*</span> <span style="color: #008000;">&#41;</span> <span style="color: #000040;">&amp;</span>i;
  y  <span style="color: #000080;">=</span> y <span style="color: #000040;">*</span> <span style="color: #008000;">&#40;</span> threehalfs <span style="color: #000040;">-</span> <span style="color: #008000;">&#40;</span> x2 <span style="color: #000040;">*</span> y <span style="color: #000040;">*</span> y <span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#41;</span>; <span style="color: #666666;">// 1st iteration</span>
  <span style="color: #666666;">// y  = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed</span>
&nbsp;
  <span style="color: #339900;">#ifndef Q3_VM</span>
  <span style="color: #339900;">#ifdef __linux__</span>
    <span style="color: #0000dd;">assert</span><span style="color: #008000;">&#40;</span> <span style="color: #000040;">!</span>isnan<span style="color: #008000;">&#40;</span>y<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#41;</span>; <span style="color: #666666;">// bk010122 - FPE?</span>
  <span style="color: #339900;">#endif</span>
  <span style="color: #339900;">#endif</span>
  <span style="color: #0000ff;">return</span> y;
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-111"></span>此文仅供存档之用。火星勿怪。<br />
来源：<br />
Matrix67 : http://www.matrix67.com/blog/archives/362<br />
Code Maestro : http://www.codemaestro.com/reviews/9</p>
</p>
	标签：<a href="http://www.casparant.com/tag/0x5f3759df" title="0x5f3759df" rel="tag">0x5f3759df</a>, <a href="http://www.casparant.com/tag/0x5f375a86" title="0x5f375a86" rel="tag">0x5f375a86</a>, <a href="http://www.casparant.com/tag/magic-number" title="magic number" rel="tag">magic number</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=gN4mhz"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=gN4mhz" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/0x5f3759df.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>诡异的收费政策</title>
		<link>http://www.casparant.com/banks-requires-money-makes-me-angry.html</link>
		<comments>http://www.casparant.com/banks-requires-money-makes-me-angry.html#comments</comments>
		<pubDate>Sat, 28 Jun 2008 16:41:23 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[No Category]]></category>

		<category><![CDATA[bank]]></category>

		<category><![CDATA[years' fee]]></category>

		<category><![CDATA[农行]]></category>

		<category><![CDATA[年费]]></category>

		<category><![CDATA[销卡]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=110</guid>
		<description><![CDATA[我艹！
农业银行的金穗通宝卡异地刷卡消费不收手续费
1.年费 帐户内扣10元每年
2.挂失手续费收现金 10元
3.ATM本行异地取现 帐户内扣 收取交易金额的1%最低1元
4.ATM同城跨行取现 帐户内扣 2元每笔
5.ATM异地跨行取现 帐户内扣 交易金额的1%+2元每笔
6.省内异地柜台取现 收取交易金额的1%,最低1元,最高50元
7.省内异地柜台存现 收取交易金额的千分之五,最低1元,最高50元
8.省内异地柜台转帐支出 收取交易金额的千分之五,最低10元,最高50元
9.省内异地柜台转帐存入 收取交易金额的千分之五,最低1元,最高40元
10.跨省异地柜台取现 收取交易金额的1%,最低1元,最高100元
11.跨省异地柜台存现 收取交易金额的千分之五,最低1元,最高100元
12.跨省异地柜台转帐支出 收取交易金额的千分之五,最低10元,最高60元
13.跨省异地柜台转帐存入 收取交易金额的千分之五,最低1元,最高50元
中国果真大，异地存取款是都要收取手续费的……我的补贴每个月600，存入的时候扣除3块，取钱的时候扣除... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>我艹！</p>
<blockquote><p>农业银行的金穗通宝卡异地刷卡消费不收手续费<br />
1.年费 帐户内扣10元每年<br />
2.挂失手续费收现金 10元<br />
3.ATM本行异地取现 帐户内扣 收取交易金额的1%最低1元<br />
4.ATM同城跨行取现 帐户内扣 2元每笔<br />
5.ATM异地跨行取现 帐户内扣 交易金额的1%+2元每笔<br />
6.省内异地柜台取现 收取交易金额的1%,最低1元,最高50元<br />
7.省内异地柜台存现 收取交易金额的千分之五,最低1元,最高50元<br />
8.省内异地柜台转帐支出 收取交易金额的千分之五,最低10元,最高50元<br />
9.省内异地柜台转帐存入 收取交易金额的千分之五,最低1元,最高40元<br />
10.跨省异地柜台取现 收取交易金额的1%,最低1元,最高100元<br />
11.跨省异地柜台存现 收取交易金额的千分之五,最低1元,最高100元<br />
12.跨省异地柜台转帐支出 收取交易金额的千分之五,最低10元,最高60元<br />
13.跨省异地柜台转帐存入 收取交易金额的千分之五,最低1元,最高50元</p></blockquote>
<p><span id="more-110"></span>中国果真大，异地存取款是都要收取手续费的……我的补贴每个月600，存入的时候扣除3块，取钱的时候扣除6块。每个月近10块钱给了银行。这年头，存钱一不小心反倒贴！</p>
<p>登录农行网上银行看了下自己的帐号，还剩￥5.5，过年才能回家销卡，也就是到时候还得倒贴农行5块钱……无奈，去支付宝看了看，没钱。再去alimama看了下，还有点钱，取了7块钱出来，打到支付宝去，支付宝再提现到农行卡里。这样过年就不用惨兮兮掏钱给柜台了(虽然实质上是一样的)，而且还能省下两块钱坐公交车……</p>
<p>至于销卡的必要性，是今天才在网上看到的。高中时候办了三张卡，后来不用了就闲在了家里。看来寒假回家还得一起销卡销掉，防止它年费一直扣下去。估计还得叫上我爸，有两张卡是他的身份证名字……上次去衢州问过，得本人亲自来销卡。这制度，我彻底拜服……</p>
<p>顺便查了一下自己在中行的信用卡状态，幸好果真是销掉了，嗯。</p>
<p>接着用自己的招行信用卡吧。赶明儿去北门后头的农行办张新的农行卡，免得领补贴还要出冤枉钱。</p>
<p>洗枣去，睡觉！</p>
</p>
	标签：<a href="http://www.casparant.com/tag/bank" title="bank" rel="tag">bank</a>, <a href="http://www.casparant.com/tag/years-fee" title="years' fee" rel="tag">years' fee</a>, <a href="http://www.casparant.com/tag/%e5%86%9c%e8%a1%8c" title="农行" rel="tag">农行</a>, <a href="http://www.casparant.com/tag/%e5%b9%b4%e8%b4%b9" title="年费" rel="tag">年费</a>, <a href="http://www.casparant.com/tag/%e9%94%80%e5%8d%a1" title="销卡" rel="tag">销卡</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=tv0MsW"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=tv0MsW" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/banks-requires-money-makes-me-angry.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Diablo III Officially Announced - Trailers and Screenshots Available</title>
		<link>http://www.casparant.com/diablo-iii-officially-announced.html</link>
		<comments>http://www.casparant.com/diablo-iii-officially-announced.html#comments</comments>
		<pubDate>Sat, 28 Jun 2008 15:06:18 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Copid Entries]]></category>

		<category><![CDATA[diablo]]></category>

		<category><![CDATA[diablo III]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=108</guid>
		<description><![CDATA[话说高二的时候有次吃过饭在刷碗，同学说：“听说大菠萝III要出来了诶～”于是翘首期盼。这一转眼大二都结束了……前几天流言放出，说大菠萝三真的要出了。那几天正在重温II，也没怎么在意。没想到就在没在意的时候，暴雪说话了。
转载自：http://news.softpedia.com/news/Diablo-3-Officially-Announced-Trailers-and-Screnshots-Available-88819.shtml
———————————— 分割线 ————————————
All the conspiracy theories can be put aside now because it’s here: Diablo III has been officially announced. The splash screen from Blizzard’s site has made everyone go berserk and until today everything seemed possible, even a merger between the Diablo and the Warcraft universes.
The Blizzard Invitational was to be the perfect opportunity [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>话说高二的时候有次吃过饭在刷碗，同学说：“听说大菠萝III要出来了诶～”于是翘首期盼。这一转眼大二都结束了……前几天流言放出，说大菠萝三真的要出了。那几天正在重温II，也没怎么在意。没想到就在没在意的时候，暴雪说话了。</p>
<p>转载自：http://news.softpedia.com/news/Diablo-3-Officially-Announced-Trailers-and-Screnshots-Available-88819.shtml</p>
<p>———————————— 分割线 ————————————</p>
<p>All the conspiracy theories can be put aside now because it’s here: Diablo III has been officially announced. The splash screen from Blizzard’s site has made everyone go berserk and until today everything seemed possible, even a merger between the Diablo and the Warcraft universes.</p>
<p>The Blizzard Invitational was to be the perfect opportunity for a Diablo III announcement as it fitted right in the timeframe, with Diablo 2 launched on June 29, 2000 and the Lord of Destruction Expansion on June 29, 2001. True, it’s a day early, but nevertheless we will be seeing Diablo III. The game looks quite good although it wasn’t as mind-blowing as I would have expected. It seems to run on the same engine as Starcraft II (especially in terms of fire effects and splash damage) and the interface remains largely the same with mana and health spheres and the same kind of gameplay we were used to. One addition I find more than interesting consists of the red orbs some enemies will leave behind; these will restore your health without you having to resort to potions. </p>
<p><span id="more-108"></span>Diablo III still uses an isometric perspective, despite several rumors, but the engine is completely 3D at first glance and supports full physics (some curtains moved when an axe went past them). For the first time ever, players can even use part of the environment against their targets, by collapsing walls and doing other mischievous actions. In the gameplay demo, Blizzard introduced a brand new class, called the Witch Doctor, to show off the cooperative features. This character has power over minds, can summon pets and control disease and it makes for one hell of a sidekick for the barbarian. </p>
<p>Perhaps some will be disappointed that Blizzard hasn’t been more innovative and pushed the Diablo games into a new direction, possibly a 3D perspective like Hellgate London, but I for one am sure they made the perfect choice. It has all the chances to become even more addictive than Diablo II and, if they don’t delay the launch for too long, I’m sure it will be an amazing success. You should check out the trailers below for more goodies. Have Fun!</p>
<p>发一个截图，其他的大家去源网站上找吧～</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/diablo-3-officially-announced-trailers-and-screnshots-available-5.jpg'><img src="http://www.casparant.com/wp-content/uploads/2008/06/diablo-3-officially-announced-trailers-and-screnshots-available-5-600x450.jpg" alt="" title="diablo-3-officially-announced-trailers-and-screnshots-available-5" width="600" height="450" class="aligncenter size-medium wp-image-109" /></a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/diablo" title="diablo" rel="tag">diablo</a>, <a href="http://www.casparant.com/tag/diablo-iii" title="diablo III" rel="tag">diablo III</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=eevgYt"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=eevgYt" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/diablo-iii-officially-announced.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wine M$ Office 2003 成功</title>
		<link>http://www.casparant.com/ms-office-2003-under-wine.html</link>
		<comments>http://www.casparant.com/ms-office-2003-under-wine.html#comments</comments>
		<pubDate>Sat, 28 Jun 2008 09:19:48 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Linux Softwares]]></category>

		<category><![CDATA[microsoft]]></category>

		<category><![CDATA[ms office]]></category>

		<category><![CDATA[office]]></category>

		<category><![CDATA[office 2003]]></category>

		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=107</guid>
		<description><![CDATA[都有人把M$ Office 2007给Wine成功了，我这篇文章看起来异常火星。
当初我不Wine Office的原因很简单，字体。我当时不知道M$ Office自己带有一个很庞大的字体包，我怕装好后出现中文不能显示等问题，干脆就没来装了。结果装好了之后，发现效果非常好。
下面简单说一下How To，其实网上很多教程，WineHQ 官方WIKI上就有。
1. 将richedit20.dll和richedit32.dll还有msxml3.dll三个文件在winecfg里面设为native(windows).
2.上网下载以上三个文件的安装包：
http://media.codeweavers.com/pub/crossover/office/support/richedit30.exe
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&#038;FamilyID=28494391-052b-42ff-9674-f752bdca9582
3.执行安装

wine richedit30.exe
wine msiexec /i msxml3.msi
4.运行Office的Setup.exe
建议安装选择查看细节，把“输入法”那块给取消掉，要不然会安装微软拼音，退出OFFICE后不会退出输入法，得手动结束ctfmon.exe进程。
okay, enjoy~

	标签：microsoft, ms office, office, office 2003, wine

	Related Posts
	
	[转]鲍尔默给杨致远的... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>都有人把M$ Office 2007给<a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">Wine</a>成功了，我这篇文章看起来异常火星。</p>
<p>当初我不<a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">Wine</a> Office的原因很简单，字体。我当时不知道M$ Office自己带有一个很庞大的字体包，我怕装好后出现中文不能显示等问题，干脆就没来装了。结果装好了之后，发现效果非常好。</p>
<p>下面简单说一下How To，其实网上很多教程，WineHQ 官方WIKI上就有。</p>
<p>1. 将richedit20.dll和richedit32.dll还有msxml3.dll三个文件在winecfg里面设为native(windows).</p>
<p>2.上网下载以上三个文件的安装包：</p>
<p><a href="http://media.codeweavers.com/pub/crossover/office/support/richedit30.exe">http://media.codeweavers.com/pub/crossover/office/support/richedit30.exe</a></p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&#038;FamilyID=28494391-052b-42ff-9674-f752bdca9582">http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&#038;FamilyID=28494391-052b-42ff-9674-f752bdca9582</a></p>
<p>3.执行安装<br />
<span id="more-107"></span><br />
<blockquote><a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">wine</a> richedit30.exe<br />
<a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">wine</a> msiexec /i msxml3.msi</p></blockquote>
<p>4.运行Office的Setup.exe</p>
<p>建议安装选择查看细节，把“输入法”那块给取消掉，要不然会安装微软拼音，退出OFFICE后不会退出输入法，得手动结束ctfmon.exe进程。</p>
<p>okay, enjoy~</p>
</p>
	标签：<a href="http://www.casparant.com/tag/microsoft" title="microsoft" rel="tag">microsoft</a>, <a href="http://www.casparant.com/tag/ms-office" title="ms office" rel="tag">ms office</a>, <a href="http://www.casparant.com/tag/office" title="office" rel="tag">office</a>, <a href="http://www.casparant.com/tag/office-2003" title="office 2003" rel="tag">office 2003</a>, <a href="http://www.casparant.com/tag/wine" title="wine" rel="tag">wine</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/letter-from-ballmer-to-yahoo.html" title="[转]鲍尔默给杨致远的信 (2008-05-04)">[转]鲍尔默给杨致远的信</a> (0)</li>
	<li><a href="http://www.casparant.com/ooxml-become-standard.html" title="[转]微软OOXML正式成为国际标准 (2008-04-02)">[转]微软OOXML正式成为国际标准</a> (0)</li>
	<li><a href="http://www.casparant.com/wine-in-ubuntu.html" title="Wine在Ubuntu下的优异表现 (2008-01-26)">Wine在Ubuntu下的优异表现</a> (7)</li>
	<li><a href="http://www.casparant.com/wine-10-released.html" title="Wine 1.0 Released (2008-06-18)">Wine 1.0 Released</a> (0)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=PHd3zX"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=PHd3zX" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/ms-office-2003-under-wine.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>好玩的Real Desktop</title>
		<link>http://www.casparant.com/funny-real-desktop.html</link>
		<comments>http://www.casparant.com/funny-real-desktop.html#comments</comments>
		<pubDate>Wed, 25 Jun 2008 13:52:48 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[No Category]]></category>

		<category><![CDATA[desktop]]></category>

		<category><![CDATA[real]]></category>

		<category><![CDATA[realdesktop]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=105</guid>
		<description><![CDATA[很早以前看到有人在触摸屏电脑上演示像在真正的桌子上拿东西一样拖拽桌面图标，可以把图标扔来扔去玩。当时配上了触摸屏的效果，显得特别炫。今天看到云鹏他们在show，也拷来看了一下。
此软件仅在Windows下运行……下载地址么，我就不给了，大家上网搜"Real Desktop"就可以了。
不知道Linux上有没有对应的软件^.^
上个图吧～


	标签：desktop, real, realdesktop, windows

	Related Posts
	
	No Related Post to This Entry.
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>很早以前看到有人在触摸屏电脑上演示像在真正的桌子上拿东西一样拖拽桌面图标，可以把图标扔来扔去玩。当时配上了触摸屏的效果，显得特别炫。今天看到云鹏他们在show，也拷来看了一下。</p>
<p>此软件仅在Windows下运行……下载地址么，我就不给了，大家上网搜"Real Desktop"就可以了。</p>
<p>不知道Linux上有没有对应的软件^.^</p>
<p>上个图吧～</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/realdesktop.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/realdesktop-600x375.png" alt="" title="realdesktop" width="600" height="375" class="aligncenter size-medium wp-image-106" /></a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/desktop" title="desktop" rel="tag">desktop</a>, <a href="http://www.casparant.com/tag/real" title="real" rel="tag">real</a>, <a href="http://www.casparant.com/tag/realdesktop" title="realdesktop" rel="tag">realdesktop</a>, <a href="http://www.casparant.com/tag/windows" title="windows" rel="tag">windows</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=nlz8yg"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=nlz8yg" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/funny-real-desktop.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wine 1.0 Released</title>
		<link>http://www.casparant.com/wine-10-released.html</link>
		<comments>http://www.casparant.com/wine-10-released.html#comments</comments>
		<pubDate>Wed, 18 Jun 2008 13:54:35 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Linux Softwares]]></category>

		<category><![CDATA[15 years]]></category>

		<category><![CDATA[released]]></category>

		<category><![CDATA[wine]]></category>

		<category><![CDATA[wine1.0]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=102</guid>
		<description><![CDATA[最近忙着考试复习，第三次错过了第一时间发布（至少是同步发布）消息的时机，sigh~
The Wine team is proud to announce that Wine 1.0 is now available. This is the first stable release of Wine after 15 years of development and beta testing. Many thanks to everybody who helped us along that long road!
While compatibility is not perfect yet, thousands of applications have been reported to work very well. [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>最近忙着考试复习，第三次错过了第一时间发布（至少是同步发布）消息的时机，sigh~</p>
<blockquote><p>The <a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">Wine</a> team is proud to announce that <a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">Wine</a> 1.0 is now available. This is the first stable release of <a href="http://www.casparant.com/tag/wine" class="st_tag internal_tag" rel="tag" title="标签 wine 下的日志">Wine</a> after 15 years of development and beta testing. Many thanks to everybody who helped us along that long road!</p>
<p>While compatibility is not perfect yet, thousands of applications have been reported to work very well. Check http://appdb.winehq.org to see the details for your favorite applications.</p>
<p>The source is available now. Binary packages are in the process of being built, and will appear soon at their respective download locations.</p></blockquote>
<p>15年，赞毅力，别的不说了，嗯。</p>
</p>
	标签：<a href="http://www.casparant.com/tag/15-years" title="15 years" rel="tag">15 years</a>, <a href="http://www.casparant.com/tag/released" title="released" rel="tag">released</a>, <a href="http://www.casparant.com/tag/wine" title="wine" rel="tag">wine</a>, <a href="http://www.casparant.com/tag/wine10" title="wine1.0" rel="tag">wine1.0</a><br />

	<h2>Related Posts</h2>
	<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/wordpress-26released.html" title="Wordpress 2.6 发布 (2008-07-16)">Wordpress 2.6 发布</a> (1)</li>
	<li><a href="http://www.casparant.com/wine-in-ubuntu.html" title="Wine在Ubuntu下的优异表现 (2008-01-26)">Wine在Ubuntu下的优异表现</a> (7)</li>
	<li><a href="http://www.casparant.com/ms-office-2003-under-wine.html" title="Wine M$ Office 2003 成功 (2008-06-28)">Wine M$ Office 2003 成功</a> (2)</li>
	<li><a href="http://www.casparant.com/ubuntu-hardy-released.html" title="Ubuntu 8.04发布 (2008-04-24)">Ubuntu 8.04发布</a> (0)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=aSX3fW"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=aSX3fW" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/wine-10-released.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>纯发泄，Java考点</title>
		<link>http://www.casparant.com/java-tips.html</link>
		<comments>http://www.casparant.com/java-tips.html#comments</comments>
		<pubDate>Tue, 10 Jun 2008 07:15:42 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[exam]]></category>

		<category><![CDATA[initiallize]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[nullpointexception]]></category>

		<category><![CDATA[tostring]]></category>

		<category><![CDATA[数组初始化]]></category>

		<category><![CDATA[自动调用]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=101</guid>
		<description><![CDATA[自动调用toString方法——

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//A.java
public class A extends B
&#123;
	public String toString&#40;&#41;
	&#123;
		return &#34;A&#34;;
	&#125;
&#125;
&#160;
//B.java
public class B
&#123;
	public String toString&#40;&#41;
	&#123;
		return &#34;B&#34;;
	&#125;
&#125;
&#160;
//C.java
public class C
&#123;
	public static void main&#40;String&#91;&#93; args&#41;
	&#123;
		Object o&#91;&#93; = &#123;new A&#40;&#41;, new B&#40;&#41;&#125;;
&#160;
		System.out.print&#40;o&#91;0&#93;&#41;;
		System.out.print&#40;o&#91;1&#93;&#41;;
	&#125;
&#125;


结果是啥？
现在我知道了，是AB！
当时自作聪明地回答了一个类似于“A@a90653B@de6ced”的答案，唉……4分
数组自动初始化——

1
2
3
4
5
6
7
8
public class Test
&#123;
	public static void main&#40;String&#91;&#93; args&#41;
	&#123;
		int a&#91;&#93; = new int&#91;7&#93;;
		System.out.println&#40;&#34;a[0] = &#34; + a&#91;0&#93;&#41;;
	&#125;	
&#125;

答案是0，我只是说明一下，我zt了，Too Complexed, Sometime Overwised.
我的答案是：java.lang.NullPointException... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>自动调用toString方法——</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="java"><span style="color: #666666; font-style: italic;">//A.java</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> A <span style="color: #000000; font-weight: bold;">extends</span> B
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> toString<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #0000ff;">&quot;A&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//B.java</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> B
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">String</span> toString<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #0000ff;">&quot;B&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//C.java</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> C
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">Object</span> o<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">new</span> A<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, <span style="color: #000000; font-weight: bold;">new</span> B<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-101"></span><br />
结果是啥？</p>
<p>现在我知道了，是AB！</p>
<p>当时自作聪明地回答了一个类似于“A@a90653B@de6ced”的答案，唉……4分</p>
<p>数组自动初始化——</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="java"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Test
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">int</span> a<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">int</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;a[0] = &quot;</span> <span style="color: #339933;">+</span> a<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>	
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>答案是0，我只是说明一下，我zt了，Too Complexed, Sometime Overwised.</p>
<p>我的答案是：java.lang.NullPointException</p>
<p>听天由命吧，希望老师看在我平时编程还算不zt的份上，给我一个85+吧……</p>
<p>我早该想到，作为一个很常规的老师，程老师是不会出那种稀奇古怪的题目的，可惜我想得太复杂了……</p>
</p>
	标签：<a href="http://www.casparant.com/tag/exam" title="exam" rel="tag">exam</a>, <a href="http://www.casparant.com/tag/initiallize" title="initiallize" rel="tag">initiallize</a>, <a href="http://www.casparant.com/tag/java" title="java" rel="tag">java</a>, <a href="http://www.casparant.com/tag/nullpointexception" title="nullpointexception" rel="tag">nullpointexception</a>, <a href="http://www.casparant.com/tag/tostring" title="tostring" rel="tag">tostring</a>, <a href="http://www.casparant.com/tag/%e6%95%b0%e7%bb%84%e5%88%9d%e5%a7%8b%e5%8c%96" title="数组初始化" rel="tag">数组初始化</a>, <a href="http://www.casparant.com/tag/%e8%87%aa%e5%8a%a8%e8%b0%83%e7%94%a8" title="自动调用" rel="tag">自动调用</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=c3Exac"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=c3Exac" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/java-tips.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>俺也汇编一下：EMU8086</title>
		<link>http://www.casparant.com/asm-by-emu8086.html</link>
		<comments>http://www.casparant.com/asm-by-emu8086.html#comments</comments>
		<pubDate>Sun, 08 Jun 2008 17:33:30 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[asm]]></category>

		<category><![CDATA[bug]]></category>

		<category><![CDATA[deadcorner]]></category>

		<category><![CDATA[emu 8086]]></category>

		<category><![CDATA[robot]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=93</guid>
		<description><![CDATA[对不住各位看官了……这个EMU8086模拟器是Windows下的，还是破解的……我只是为了完成计组老师的作业而已。只是有道题比较有意思，我深深地想了好久，发现一些问题，估计老师不会认真改我的作业，我把它发上来发泄发泄，嗯。
话说EMU8086预先弄了几个PORT，其中PORT9就是实现了一个机器人的东东。具体描述如下：在一个9X6的地图内，有墙、灯、机器人三种东西。机器人碰到墙和灯都过不去，但是碰到灯的时候会自动改变灯的状态，也就是关灯或者开灯。
现在在地图上画一个地图，机器人使用给定的算法会产生死角，问怎么样消除死角。
话说原来给定的代码太弱了，一眼看出破绽：机器人碰墙只能单纯地朝一个方向转，那么碰到开了一口的闭合空间时，一旦进去就出不来了(如图)，必然得改进。改进的方法有两个，一个是把行走改成随机方向，那么机器人再怎么囧最后也能走出去，可是老师不提倡随机，那么只好接着改了。

在不使用随机走法的情况下，使... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>对不住各位看官了……这个EMU8086模拟器是Windows下的，还是破解的……我只是为了完成计组老师的作业而已。只是有道题比较有意思，我深深地想了好久，发现一些问题，估计老师不会认真改我的作业，我把它发上来发泄发泄，嗯。</p>
<p>话说EMU8086预先弄了几个PORT，其中PORT9就是实现了一个机器人的东东。具体描述如下：在一个9X6的地图内，有墙、灯、机器人三种东西。机器人碰到墙和灯都过不去，但是碰到灯的时候会自动改变灯的状态，也就是关灯或者开灯。<br />
现在在地图上画一个地图，机器人使用给定的算法会产生死角，问怎么样消除死角。</p>
<p>话说原来给定的代码太弱了，一眼看出破绽：机器人碰墙只能单纯地朝一个方向转，那么碰到开了一口的闭合空间时，一旦进去就出不来了(如图)，必然得改进。改进的方法有两个，一个是把行走改成随机方向，那么机器人再怎么囧最后也能走出去，可是老师不提倡随机，那么只好接着改了。</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/1.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/1.png" alt="" title="1" width="305" height="293" class="aligncenter size-medium wp-image-94" /></a></p>
<p><span id="more-93"></span>在不使用随机走法的情况下，使用回溯法是更好的解决方案。回溯法用在走迷宫的时候比较实用，遵循“右手法则”地回溯搜索路径，最后走出死角。</p>
<p>然而一般“右手法则”下的回溯会产生另一个问题，就是在空白面积比较大的时候，会出现“绕某点打转”的现象，如下图：</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/2.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/2.png" alt="" title="2" width="307" height="295" class="aligncenter size-medium wp-image-99" /></a></p>
<p>这在机器人行走中是致命的。</p>
<p>我原计划采用的是“撒米标记法”解决此问题。<strong>但是由于对数组的使用不熟悉，没有解决这个问题。</strong>(关键在这，- -b)在这里仅写出思路：“撒米标记法”。使用一个数组来记录当前点是否已经被车子移到过，如果当前点在之前已经在同个方向上被访问过，则机器人不再继续前进，而是直接选择一个其他方向，继续按照右手法则行走。</p>
<p>第二个死角的产生比较麻烦，是软件本身产生的“副作用”。此“副作用”在如下情况下执行关灯/开灯操作时出现：<br />
当程序员手动执行机器人转向操作时，软件会记录这一次转向。一次左转和一次右转会抵消。不连续的两次转向不相关。所以转向结束后，会有一个“净转向”值。此时机器人如果正好面对一盏灯，在执行关灯/开灯操作之后，机器人会自动逆着“净转向”的方向转动相应次数。例如下图：</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/3.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/3.png" alt="" title="3" width="305" height="293" class="alignnone size-medium wp-image-96" /></a></p>
<p>机器人在两次右转之后，面对的是灯。在关完灯的同时，机器人会自动向左转两次，恢复到原来状态。<br />
了解了转向的副作用，便可知下图会产生一个死角：</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/4.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/4.png" alt="" title="4" width="305" height="293" class="aligncenter size-medium wp-image-97" /></a></p>
<p>为了解决这个死角，可以采用“抵消副作用”法。对于以上右手法则，可以很容易获得其状态机：(其实这个状态机挺扯的，原谅我自动机课没学好T_T)</p>
<p><a href='http://www.casparant.com/wp-content/uploads/2008/06/5.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/5.png" alt="" title="5" width="482" height="187" class="aligncenter size-medium wp-image-98" /></a></p>
<p>圈内数字表示当前状态下的净转向值。<br />
具体解法可看附件的代码。</p>
<pre lang=asm>
#MAKE_BIN#
#CS = 500#
#DS = 500#
#SS = 500#    ; stack is set
#SP = FFFF#   ; automatically.
#IP = 0#
R_PORT 		EQU 9

;BL	255: turned left
;	0: turned none
;	1: turned right

;BH	0: initial state
;	1: try right
;	2: try ahead
;	3: try left
;	4: try back
;	when it moves ahead, BH should be 0

eternal_loop:
	CALL	WAIT_ROBOT
	MOV	AL, 4
	OUT	R_PORT, AL
	CMP	BH, 0		; judge if initial state
	JE	first_step	; first_step
	CALL	WAIT_EXAM	; else judge how to move
	IN	AL, R_PORT + 1
	CMP	AL, 0		; nothing?
	JE	forward		; so, forward
	CMP	AL, 255 	; wall?
	JE	meet_wall	; so, turn right
	CMP	AL, 7		; switched-on lamp?
	JE	switch_off	; so, switch it off and do something
	CMP	AL, 8		; switched-off lamp?
	JE	switch_on	; so, switch it on and do something

first_step:
	ADD	BH, 1
	MOV	BL, 1
	JMP	turn_right

meet_wall:
	ADD	BH, 1
	SUB	BL, 1
	JMP	turn_left

meet_lamp:
	ADD	BH, 1
	CMP	BL, 255
	JE	turn_around
	SUB	BL, 1
	CMP	BL, 0
	JE	eternal_loop
	JMP	turn_left

turn_left:
	CALL	WAIT_ROBOT	; turn left operation
	MOV	AL, 2
	OUT	R_PORT, AL
	JMP	eternal_loop	; go again

forward:
	MOV	BH, 0		; when forward, back to initial state
	MOV	BL, 0		; no turn mark
	CALL	WAIT_ROBOT	; go ahead
	MOV	AL, 1
	OUT	R_PORT, AL
	JMP	eternal_loop	; go again!

switch_off:
	CALL	WAIT_ROBOT	; turn off the lamp
	MOV	AL, 6
	OUT	R_PORT, AL

	JMP	meet_lamp

switch_on:
	CALL	WAIT_ROBOT	; turn on the lamp
	MOV	AL, 5
	OUT	R_PORT, AL

	JMP	meet_lamp

turn_right:
	CALL	WAIT_ROBOT	; turn right operation
	MOV	AL, 3
	OUT	R_PORT, AL
	JMP	eternal_loop	; go again

turn_around:
	CALL	WAIT_ROBOT	; turn right twice to turn around
	MOV	AL, 3
	OUT	R_PORT, AL

	CALL	WAIT_ROBOT
	MOV	AL, 3
	OUT	R_PORT, AL

	JMP	eternal_loop	; go again

WAIT_ROBOT	PROC
busy:
	IN	AL, R_PORT+2
	TEST	AL, 00000010b
	JNZ	busy ; busy, so wait.
	RET
WAIT_ROBOT	ENDP

WAIT_EXAM	PROC
busy2:
	IN	AL, R_PORT+2
	TEST	AL, 00000001b
	JZ	busy2 ; no new data, so wait.
	RET
WAIT_EXAM	ENDP
</pre>
<p>写完了。反正问题就在，会绕圈……</p>
<p>等考完事再来看。估计也就是几个register的问题。</p>
<p>最后附上一个可启动的小东东：<a href='http://www.casparant.com/wp-content/uploads/2008/06/operatingsystem.boot'>打字训练</a>——所谓的“操作系统”作业，Orz。专门为某打字不按指法的家伙准备的。</p>
<p>谢帆说还要把Loader和Kernel分开写，我继续Orz了，这个小东西填MBR的牙缝都不够呢，还分开……</p>
</p>
	标签：<a href="http://www.casparant.com/tag/asm" title="asm" rel="tag">asm</a>, <a href="http://www.casparant.com/tag/bug" title="bug" rel="tag">bug</a>, <a href="http://www.casparant.com/tag/deadcorner" title="deadcorner" rel="tag">deadcorner</a>, <a href="http://www.casparant.com/tag/emu-8086" title="emu 8086" rel="tag">emu 8086</a>, <a href="http://www.casparant.com/tag/robot" title="robot" rel="tag">robot</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=xVjegB"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=xVjegB" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/asm-by-emu8086.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>终于被百度收录了</title>
		<link>http://www.casparant.com/baidu-records-me.html</link>
		<comments>http://www.casparant.com/baidu-records-me.html#comments</comments>
		<pubDate>Sun, 08 Jun 2008 14:56:15 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[baidu]]></category>

		<category><![CDATA[record]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=92</guid>
		<description><![CDATA[今天发现侧边栏上有人在百度直接通过关键字"Ant"访问到了我的网站，顿时一惊。自己搜了一下，果然如此，而且还在第一页。这种词汇都能在百度显示我的网站，服了……再搜Caspar，第一个就是我的网站，哈。不知道百度的关键字排名是怎么弄的……
不过搜"GMAIL LAB"，中文Google第一页第二条就是我的网站，百度上就出现不了。看来我的网站在Google上的人品还是比较好的……

	标签：baidu, blog, record

	Related Posts
	
	No Related Post to This Entry.
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>今天发现侧边栏上有人在百度直接通过关键字"Ant"访问到了我的网站，顿时一惊。自己搜了一下，果然如此，而且还在第一页。这种词汇都能在百度显示我的网站，服了……再搜Caspar，第一个就是我的网站，哈。不知道百度的关键字排名是怎么弄的……</p>
<p>不过搜"GMAIL LAB"，中文Google第一页第二条就是我的网站，百度上就出现不了。看来我的网站在Google上的人品还是比较好的……</p>
</p>
	标签：<a href="http://www.casparant.com/tag/baidu" title="baidu" rel="tag">baidu</a>, <a href="http://www.casparant.com/tag/blog" title="blog" rel="tag">blog</a>, <a href="http://www.casparant.com/tag/record" title="record" rel="tag">record</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=iptFIk"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=iptFIk" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/baidu-records-me.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Gmail Lab的13个新特性</title>
		<link>http://www.casparant.com/gmail-lab-new-features.html</link>
		<comments>http://www.casparant.com/gmail-lab-new-features.html#comments</comments>
		<pubDate>Fri, 06 Jun 2008 08:36:38 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Web Tech]]></category>

		<category><![CDATA[feature]]></category>

		<category><![CDATA[gmail]]></category>

		<category><![CDATA[gmail lab]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=90</guid>
		<description><![CDATA[这是Gmail Lab推出的一个实验版本，有13个新特性被加入Gmail中，用户可以在设置里面选择启用哪些新特性。
在Lifehacker上看到的这个消息，有兴趣的可以去试试。话说Google在用户体验上做得确实很到位，新加的特性里面，如自定义快捷键、多样化星标等，看起来不是很震撼人心的功能，但是确实很实用。
在Opera中因为不支持GMAIL的最新版本，所以不能开启Lab模式，在Firefox中一切非常好用。
完整的特性列表如下：
Quick Links
by Dan P
Adds a box to the left column that gives you 1-click access to any bookmarkable URL in Gmail. You can use it for saving frequent searches, important individual messages, and more.	

Superstars
by Kai H &#038; Julie W
Adds additional star icons. After enabling this feature, you can choose which icons you wish to [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>这是Gmail Lab推出的一个实验版本，有13个新特性被加入Gmail中，用户可以在设置里面选择启用哪些新特性。</p>
<p>在<a href="http://lifehacker.com/395211/gmail-gets-13-experimental-new-features-tonight">Lifehacker</a>上看到的这个消息，有兴趣的可以去试试。话说Google在用户体验上做得确实很到位，新加的特性里面，如自定义快捷键、多样化星标等，看起来不是很震撼人心的功能，但是确实很实用。</p>
<p>在<a href="http://www.casparant.com/tag/opera" class="st_tag internal_tag" rel="tag" title="标签 opera 下的日志">Opera</a>中因为不支持GMAIL的最新版本，所以不能开启Lab模式，在Firefox中一切非常好用。</p>
<p>完整的特性列表如下：</p>
<blockquote><p><strong>Quick Links</strong><br />
by Dan P</p>
<p>Adds a box to the left column that gives you 1-click access to any bookmarkable URL in Gmail. You can use it for saving frequent searches, important individual messages, and more.	</p></blockquote>
<p><span id="more-90"></span><br />
<blockquote><strong>Superstars</strong><br />
by Kai H &#038; Julie W</p>
<p>Adds additional star icons. After enabling this feature, you can choose which icons you wish to use in the "General" Settings page.
</p></blockquote>
<blockquote><p><strong>Pictures in chat</strong><br />
by Dave C</p>
<p>See your friends' profile pictures when you chat with them.</p></blockquote>
<blockquote><p><strong>Fixed width <a href="http://www.casparant.com/tag/font" class="st_tag internal_tag" rel="tag" title="标签 font 下的日志">font</a></strong><br />
by Keith C</p>
<p>Adds an option to the reply dropdown menu that lets you view a message in fixed width <a href="http://www.casparant.com/tag/font" class="st_tag internal_tag" rel="tag" title="标签 font 下的日志">font</a>.	</p></blockquote>
<blockquote><p><strong>Custom keyboard shortcuts</strong><br />
by Alan S</p>
<p>Lets you customize keyboard shortcut mappings. Adds a new Settings tab from which you can remap keys to various actions.	</p></blockquote>
<blockquote><p><strong>Mouse gestures</strong><br />
by Erik A</p>
<p>Use your mouse to navigate with gestures. Hold right-click and move the mouse left to go to a previous conversation, move it right to go to the next conversation, and move up to go back to the inbox view. Works best on Windows.	</p></blockquote>
<blockquote><p><strong>Signature tweaks</strong><br />
by Keith C and Dave C</p>
<p>Places your signature before the quoted text in a reply, and removes the "--" line that appears before signatures. Can't use this and the "Random signature" Labs feature at the same time.	</p></blockquote>
<blockquote><p><strong>Random signature</strong><br />
by Chad P</p>
<p>Rotates among random quotations for your email signature. Can't use this and the "Signature tweaks" Labs feature at the same time.	</p></blockquote>
<blockquote><p><strong>Custom date formats</strong><br />
by Emil E</p>
<p>Adds options to the general settings page allowing the date and time format to be changed independent of language. For example, you can use a 24-hour clock (14:57) or show dates with the day first (31/12/07).	</p></blockquote>
<blockquote><p><strong>Muzzle</strong><br />
by Chad P</p>
<p>Conserves screen real estate by hiding your friends' status messages.</p></blockquote>
<blockquote><p><strong>Old Snakey</strong>（囧rz）<br />
by Dave C</p>
<p>Kick it old school with Old Snakey! Enable keyboard shortcuts and hit '&#038;' from the main page to play a game of snake.	</p></blockquote>
<blockquote><p><strong>Email Addict</strong>（汗、、、防沉迷啊……）<br />
by Michael D</p>
<p>Lets you take a break from email and chat by blocking the screen for fifteen minutes and making you invisible in chat.	</p></blockquote>
<blockquote><p><strong>Hide Unread Counts</strong><br />
by Matt M</p>
<p>Hides the unread counts for inbox, labels, etc.</p></blockquote>
<p>放个截图吧，Gmail Lab设置界面：<br />
<a href='http://www.casparant.com/wp-content/uploads/2008/06/gmail-lab.png'><img src="http://www.casparant.com/wp-content/uploads/2008/06/gmail-lab-600x317.png" alt="" title="gmail-lab" width="600" height="317" class="aligncenter size-medium wp-image-91" /></a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/feature" title="feature" rel="tag">feature</a>, <a href="http://www.casparant.com/tag/gmail" title="gmail" rel="tag">gmail</a>, <a href="http://www.casparant.com/tag/gmail-lab" title="gmail lab" rel="tag">gmail lab</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=A6pM1g"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=A6pM1g" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/gmail-lab-new-features.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>网站居然Suspend了</title>
		<link>http://www.casparant.com/site-suspende.html</link>
		<comments>http://www.casparant.com/site-suspende.html#comments</comments>
		<pubDate>Wed, 04 Jun 2008 18:58:46 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[suspend]]></category>

		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=88</guid>
		<description><![CDATA[因为网站数据库持续CPU高占用，囧。
还好现在恢复了。
呼………
72pines工作人员的效率还是挺高的，哈。赞～

	标签：suspend, website

	Related Posts
	
	No Related Post to This Entry.
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>因为网站数据库持续CPU高占用，囧。</p>
<p>还好现在恢复了。</p>
<p>呼………</p>
<p>72pines工作人员的效率还是挺高的，哈。赞～</p>
</p>
	标签：<a href="http://www.casparant.com/tag/suspend" title="suspend" rel="tag">suspend</a>, <a href="http://www.casparant.com/tag/website" title="website" rel="tag">website</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=u27SFm"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=u27SFm" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/site-suspende.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>终于能删除文件了</title>
		<link>http://www.casparant.com/delete-file-on-direct-admin-server.html</link>
		<comments>http://www.casparant.com/delete-file-on-direct-admin-server.html#comments</comments>
		<pubDate>Fri, 23 May 2008 08:29:22 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[directadmin]]></category>

		<category><![CDATA[ownership]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=87</guid>
		<description><![CDATA[记得在这篇文章上写过，image scaler这个插件在我服务器上建立的缩略图文件不能删除，当时把我郁闷得……
结果发现删除文件很简单……
托管的网站服务器用的是Direct Admin管理的，在"File"里面，可以显示自己账户下所有文件和目录结构。
找到不能删除的文件，可以发现此文件的GID和UID是apache，所以不能删除。
在此文件对应的Action栏，可以找到一个命令：Reset Ownership，把归属权还给自己帐户。
这样就能删除了～

	标签：directadmin, ownership

	Related Posts
	
	No Related Post to This Entry.
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>记得在<a href="http://www.casparant.com/feel-bad.html">这篇文章</a>上写过，image scaler这个插件在我服务器上建立的缩略图文件不能删除，当时把我郁闷得……</p>
<p>结果发现删除文件很简单……</p>
<p>托管的网站服务器用的是Direct Admin管理的，在"File"里面，可以显示自己账户下所有文件和目录结构。</p>
<p>找到不能删除的文件，可以发现此文件的GID和UID是apache，所以不能删除。</p>
<p>在此文件对应的Action栏，可以找到一个命令：Reset Ownership，把归属权还给自己帐户。</p>
<p>这样就能删除了～</p>
</p>
	标签：<a href="http://www.casparant.com/tag/directadmin" title="directadmin" rel="tag">directadmin</a>, <a href="http://www.casparant.com/tag/ownership" title="ownership" rel="tag">ownership</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=jq3YCL"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=jq3YCL" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/delete-file-on-direct-admin-server.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[转]如何绕墙访问blogspot</title>
		<link>http://www.casparant.com/visit-blogspot.html</link>
		<comments>http://www.casparant.com/visit-blogspot.html#comments</comments>
		<pubDate>Wed, 14 May 2008 10:26:09 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Copid Entries]]></category>

		<category><![CDATA[blogspot]]></category>

		<category><![CDATA[gfw]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=82</guid>
		<description><![CDATA[不知道BlogSpot碰到了GFW的哪根神经，Google刚买下它就触了GFW的霉头。幸好有一个服务器是可以直接访问的，可以在不带套的情况下直接访问之。感谢xiefan的分享～
原文转自：http://xiefan198877.blogspot.com/2008/05/google-blog.html
———————————— 转载的分割线 ————————————
贴一下登陆被封blogspot的方法：
1，windows下，在windows/system32/drivers/etc/hosts 里面添加一条
72.14.219.190 &#60;你的用户名&#62;.blogspot.com
2，linux下，在/etc/hosts里面添加一条
72.14.219.190 &#60;你的用户名&#62;.blogspot.com
这样你就可以登上blogspot了

	标签：blogspot, gfw

	Related Posts
	
	No Related Post to This Entry.
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>不知道BlogSpot碰到了GFW的哪根神经，Google刚买下它就触了GFW的霉头。幸好有一个服务器是可以直接访问的，可以在不带套的情况下直接访问之。感谢xiefan的分享～</p>
<p>原文转自：<a href="http://xiefan198877.blogspot.com/2008/05/google-blog.html">http://xiefan198877.blogspot.com/2008/05/google-blog.html</a></p>
<p>———————————— 转载的分割线 ————————————</p>
<p>贴一下登陆被封blogspot的方法：<br />
1，windows下，在windows/system32/drivers/etc/hosts 里面添加一条<br />
72.14.219.190 &lt;你的用户名&gt;.blogspot.com<br />
2，linux下，在/etc/hosts里面添加一条<br />
72.14.219.190 &lt;你的用户名&gt;.blogspot.com<br />
这样你就可以登上blogspot了</p>
</p>
	标签：<a href="http://www.casparant.com/tag/blogspot" title="blogspot" rel="tag">blogspot</a>, <a href="http://www.casparant.com/tag/gfw" title="gfw" rel="tag">gfw</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=kFZqCu"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=kFZqCu" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/visit-blogspot.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Fedora9 正式发布</title>
		<link>http://www.casparant.com/fedora9-released.html</link>
		<comments>http://www.casparant.com/fedora9-released.html#comments</comments>
		<pubDate>Wed, 14 May 2008 01:05:22 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Linux World]]></category>

		<category><![CDATA[fedora 9]]></category>

		<category><![CDATA[Fedora Linux]]></category>

		<category><![CDATA[fedora releases]]></category>

		<category><![CDATA[released]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=80</guid>
		<description><![CDATA[不用说，我肯定又火星了。本来是昨天就发布的，由于时差或者其他什么原因，没有看到下载。而且我用的是Ubuntu，对我来说Fedora9发布也没太大的关系。
不过想想，Redhat桌面版也才到9(:D)，Fedora这么快也就9了，发展真迅猛～
下载地址：http://fedoraproject.org/zh_CN/get-fedora

	标签：fedora 9, Fedora Linux, fedora releases, released

	Related Posts
	
	[转]为Canon PIXMA iP1000喷墨打印机安装驱动程序 (0)
	[转]“不再为安装软件而烦恼”——北邮校内yum的设置 (0)
	[推荐]grnotify-1.0.0-RC1 released (0)
	Wordpress 2.6 发布 (1)
	Wine 1.0 Released (0)

... ]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.casparant.com/wp-content/uploads/2008/05/f9release.png'><img src="http://www.casparant.com/wp-content/uploads/2008/05/f9release.png" alt="" title="f9release" width="200" height="100" class="alignleft size-medium wp-image-81" /></a>不用说，我肯定又火星了。本来是昨天就发布的，由于时差或者其他什么原因，没有看到下载。而且我用的是Ubuntu，对我来说Fedora9发布也没太大的关系。</p>
<p>不过想想，Redhat桌面版也才到9(:D)，Fedora这么快也就9了，发展真迅猛～</p>
<p>下载地址：<a href="http://fedoraproject.org/zh_CN/get-fedora">http://fedoraproject.org/zh_CN/get-fedora</a></p>

	标签：<a href="http://www.casparant.com/tag/fedora-9" title="fedora 9" rel="tag">fedora 9</a>, <a href="http://www.casparant.com/tag/fedora-linux" title="Fedora Linux" rel="tag">Fedora Linux</a>, <a href="http://www.casparant.com/tag/fedora-releases" title="fedora releases" rel="tag">fedora releases</a>, <a href="http://www.casparant.com/tag/released" title="released" rel="tag">released</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/ip1000-on-fedora.html" title="[转]为Canon PIXMA iP1000喷墨打印机安装驱动程序 (2008-02-24)">[转]为Canon PIXMA iP1000喷墨打印机安装驱动程序</a> (0)</li>
	<li><a href="http://www.casparant.com/fedora-yum.html" title="[转]“不再为安装软件而烦恼”——北邮校内yum的设置 (2008-02-27)">[转]“不再为安装软件而烦恼”——北邮校内yum的设置</a> (0)</li>
	<li><a href="http://www.casparant.com/grnotify-100-rc1-released.html" title="[推荐]grnotify-1.0.0-RC1 released (2008-05-13)">[推荐]grnotify-1.0.0-RC1 released</a> (0)</li>
	<li><a href="http://www.casparant.com/wordpress-26released.html" title="Wordpress 2.6 发布 (2008-07-16)">Wordpress 2.6 发布</a> (1)</li>
	<li><a href="http://www.casparant.com/wine-10-released.html" title="Wine 1.0 Released (2008-06-18)">Wine 1.0 Released</a> (0)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=mNFhlH"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=mNFhlH" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/fedora9-released.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[推荐]grnotify-1.0.0-RC1 released</title>
		<link>http://www.casparant.com/grnotify-100-rc1-released.html</link>
		<comments>http://www.casparant.com/grnotify-100-rc1-released.html#comments</comments>
		<pubDate>Tue, 13 May 2008 03:08:37 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Linux Softwares]]></category>

		<category><![CDATA[feed]]></category>

		<category><![CDATA[grnotify]]></category>

		<category><![CDATA[released]]></category>

		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=78</guid>
		<description><![CDATA[Google Reader是最流行的订阅器之一，很早的时候LinuxToy就介绍了GrNotify这款软件(http://linuxtoy.org/archives/grnotify.html)，使用了之后觉得很不错，但是当时相当不稳定，功能很少。和CheckGmail比起来，同是为Google产品定制的软件，功能上，使用感受上都差了不少。但是GrNotify一直在改进，不断Fix Bugs，到后期，隔几天就发布一个新版本，今天早上，在SourceForge上，它更是直接从0.4.5版本直接跳到了1.0RC1，如此大手笔的发布，让我们看看它有了一些什么改进。
GrNotify在SourceForge上的Release Notes:
GrNotify is a simple Python written tray application that will allow you to know when there are new items in the Google Reader. 
GrNotify is written by Kristof Bamps bamps.kristofgmail.com
- And maintained by Bram Bonne and Eric Lembregts 
Current Release: 1.0.0 Release Candidate (11-May-2008) 
New Features:
- You can now mark all items [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>Google Reader是最流行的订阅器之一，很早的时候<a href="http://linuxtoy.org">LinuxToy</a>就介绍了GrNotify这款软件(<a href="http://linuxtoy.org/archives/grnotify.html">http://linuxtoy.org/archives/grnotify.html</a>)，使用了之后觉得很不错，但是当时相当不稳定，功能很少。和CheckGmail比起来，同是为Google产品定制的软件，功能上，使用感受上都差了不少。但是GrNotify一直在改进，不断Fix Bugs，到后期，隔几天就发布一个新版本，今天早上，在SourceForge上，它更是直接从0.4.5版本直接跳到了1.0RC1，如此大手笔的发布，让我们看看它有了一些什么改进。</p>
<p>GrNotify在SourceForge上的Release Notes:</p>
<blockquote><p>GrNotify is a simple Python written tray application that will allow you to know when there are new items in the Google Reader. </p>
<p>GrNotify is written by Kristof Bamps bamps.kristofgmail.com<br />
- And maintained by Bram Bonne and Eric Lembregts </p>
<p>Current Release: 1.0.0 Release Candidate (11-May-2008) </p>
<p>New Features:<br />
<strong>- You can now mark all items as read<br />
- You can now view your Google Reader items directly from within grnotify</strong></p>
<p>Bug Fixes:<br />
- Several bugfixes</p></blockquote>
<p><span id="more-78"></span>不愧是1.0版本，在稳定性、功能、用户体验上都有了进步。</p>
<p>稳定性上，0.4.*版本经常在systray上无响应，需要kill process，尤其是在左击图标打开网页的时候容易僵死。1.0版本在这一点上稳定许多，迄今没发现过僵死的情况。</p>
<p>在功能上，如Release Notes的黑体部分所述，增加了“全部标记为已读”按钮和不登录网页而查看feed条目的功能。</p>
<p>另外，在0.4.5版本，GrNotify就出现了一个"Subscribe to feed"选项，但是功能不似Google Reader那么强大，不能自动从网址识别feed，如果直接输入网址，在Google Reader上不能正确识别并添加。</p>
<p>在用户体验上，GrNotify做得已经很人性化了，例如点击图标打开页面后，会自动刷新。</p>
<p>总体来说，这个软件和CheckGmail的易用性已经不相上下了，强烈推荐用户下载。</p>
<p>下载网址：<a href="http://sourceforge.net/project/showfiles.php?group_id=217132">http://sourceforge.net/project/showfiles.php?group_id=217132</a></p>
<p>软件截图：<br />
<a href='http://www.casparant.com/wp-content/uploads/2008/05/grnotify.png'><img src="http://www.casparant.com/wp-content/uploads/2008/05/grnotify-600x240.png" alt="" title="grnotify" width="600" height="240" class="alignnone size-medium wp-image-79" /></a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/feed" title="feed" rel="tag">feed</a>, <a href="http://www.casparant.com/tag/grnotify" title="grnotify" rel="tag">grnotify</a>, <a href="http://www.casparant.com/tag/released" title="released" rel="tag">released</a>, <a href="http://www.casparant.com/tag/rss" title="rss" rel="tag">rss</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/wordpress-26released.html" title="Wordpress 2.6 发布 (2008-07-16)">Wordpress 2.6 发布</a> (1)</li>
	<li><a href="http://www.casparant.com/wine-10-released.html" title="Wine 1.0 Released (2008-06-18)">Wine 1.0 Released</a> (0)</li>
	<li><a href="http://www.casparant.com/ubuntu-hardy-released.html" title="Ubuntu 8.04发布 (2008-04-24)">Ubuntu 8.04发布</a> (0)</li>
	<li><a href="http://www.casparant.com/pidgin-241-released.html" title="pidgin-2.4.1发布 (2008-04-01)">pidgin-2.4.1发布</a> (0)</li>
	<li><a href="http://www.casparant.com/have-you-rssed-today.html" title="Have You RSSed Today? (2008-05-01)">Have You RSSed Today?</a> (0)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=ZgYlQc"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=ZgYlQc" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/grnotify-100-rc1-released.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>[转]鲍尔默给杨致远的信</title>
		<link>http://www.casparant.com/letter-from-ballmer-to-yahoo.html</link>
		<comments>http://www.casparant.com/letter-from-ballmer-to-yahoo.html#comments</comments>
		<pubDate>Sun, 04 May 2008 03:16:44 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[Copid Entries]]></category>

		<category><![CDATA[IT Insight]]></category>

		<category><![CDATA[acquire]]></category>

		<category><![CDATA[fail]]></category>

		<category><![CDATA[microsoft]]></category>

		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=77</guid>
		<description><![CDATA[和上次一样，不发表什么评论了。
转自：
NY Times http://dealbook.blogs.nytimes.com/2008/05/03/microsofts-letter-to-yahoo-2/
———————————— 分割线 ————————————
May 3, 2008
Mr. Jerry Yang
CEO and Chief Yahoo
Yahoo! Inc.
701 First Avenue
Sunnyvale, CA 94089
Dear Jerry:
After over three months, we have reached the conclusion of the process regarding a possible combination of Microsoft and Yahoo!. 
I first want to convey my personal thanks to you, your management team, and Yahoo!’s Board of Directors [...... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>和上次一样，不发表什么评论了。</p>
<p>转自：</p>
<p>NY Times <a href="http://dealbook.blogs.nytimes.com/2008/05/03/microsofts-letter-to-yahoo-2/">http://dealbook.blogs.nytimes.com/2008/05/03/microsofts-letter-to-yahoo-2/</a></p>
<p>———————————— 分割线 ————————————</p>
<p>May 3, 2008</p>
<p>Mr. Jerry Yang<br />
CEO and Chief Yahoo<br />
Yahoo! Inc.<br />
701 First Avenue<br />
Sunnyvale, CA 94089</p>
<p>Dear Jerry:</p>
<p>After over three months, we have reached the conclusion of the process regarding a possible combination of <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a> and Yahoo!. </p>
<p><span id="more-77"></span>I first want to convey my personal thanks to you, your management team, and Yahoo!’s Board of Directors for your consideration of our proposal. I appreciate the time and attention all of you have given to this matter, and I especially appreciate the time that you have invested personally. I feel that our discussions this week have been particularly useful, providing me for the first time with real clarity on what is and is not possible.</p>
<p>I am disappointed that Yahoo! has not moved towards accepting our offer. I first called you with our offer on January 31 because I believed that a combination of our two companies would have created real value for our respective shareholders and would have provided consumers, publishers, and advertisers with greater innovation and choice in the marketplace. Our decision to offer a 62 percent premium at that time reflected the strength of these convictions. </p>
<p>In our conversations this week, we conveyed our willingness to raise our offer to $33.00 per share, reflecting again our belief in this collective opportunity. This increase would have added approximately another $5 billion of value to your shareholders, compared to the current value of our initial offer. It also would have reflected a premium of over 70 percent compared to the price at which your stock closed on January 31. Yet it has proven insufficient, as your final position insisted on <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a> paying yet another $5 billion or more, or at least another $4 per share above our $33.00 offer.</p>
<p>Also, after giving this week’s conversations further thought, it is clear to me that it is not sensible for <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a> to take our offer directly to your shareholders. This approach would necessarily involve a protracted proxy contest and eventually an exchange offer. Our discussions with you have led us to conclude that, in the interim, you would take steps that would make Yahoo! undesirable as an acquisition for <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a>.</p>
<p>We regard with particular concern your apparent planning to respond to a “hostile” bid by pursuing a new arrangement that would involve or lead to the outsourcing to Google of key paid <a href="http://www.casparant.com/tag/internet" class="st_tag internal_tag" rel="tag" title="标签 internet 下的日志">Internet</a> search terms offered by Yahoo! today. In our view, such an arrangement with the dominant search provider would make an acquisition of Yahoo! undesirable to us for a number of reasons:</p>
<p>* First, it would fundamentally undermine Yahoo!’s own strategy and long-term viability by encouraging advertisers to use Google as opposed to your Panama paid search system. This would also fragment your search advertising and display advertising strategies and the ecosystem surrounding them. This would undermine the reliance on your display advertising business to fuel future growth. </p>
<p>* Given this, it would impair Yahoo’s ability to retain the talented engineers working on advertising systems that are important to our interest in a combination of our companies. </p>
<p>* In addition, it would raise a host of regulatory and legal problems that no acquirer, including <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a>, would want to inherit. Among other things, this would consolidate market share with the already-dominant paid search provider in a manner that would reduce competition and choice in the marketplace. </p>
<p>* This would also effectively enable Google to set the prices for key search terms on both their and your search platforms and, in the process, raise prices charged to advertisers on Yahoo. In addition to whatever resulting legal problems, this seems unwise from a business perspective unless in fact one simply wishes to use this as a vehicle to exit the paid search business in favor of Google.</p>
<p>* It could foreclose any chance of a combination with any other search provider that is not already relying on Google’s search services.</p>
<p>Accordingly, your apparent plan to pursue such an arrangement in the event of a proxy contest or exchange offer leads me to the firm decision not to pursue such a path. Instead, I hereby formally withdraw <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a>’s proposal to <a href="http://www.casparant.com/tag/acquire" class="st_tag internal_tag" rel="tag" title="标签 acquire 下的日志">acquire</a> Yahoo!. </p>
<p>We will move forward and will continue to innovate and grow our business at <a href="http://www.casparant.com/tag/microsoft" class="st_tag internal_tag" rel="tag" title="标签 microsoft 下的日志">Microsoft</a> with the talented team we have in place and potentially through strategic transactions with other business partners. </p>
<p>I still believe even today that our offer remains the only alternative put forward that provides your stockholders full and fair value for their shares. By failing to reach an agreement with us, you and your stockholders have left significant value on the table. </p>
<p>But clearly a deal is not to be.</p>
<p>Thank you again for the time we have spent together discussing this.</p>
<p>Sincerely yours,<br />
Steven A. Ballmer</p>
<p>———————————— 分割线完毕 ————————————</p>
<p>另外有篇文章，太长了，就不贴了，给出地址：</p>
<p>PC World <a href="http://www.pcworld.com/businesscenter/article/145471/microsoft_abandons_yahoo_acquisition.html">http://www.pcworld.com/businesscenter/article/145471/microsoft_abandons_yahoo_acquisition.html</a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/acquire" title="acquire" rel="tag">acquire</a>, <a href="http://www.casparant.com/tag/fail" title="fail" rel="tag">fail</a>, <a href="http://www.casparant.com/tag/microsoft" title="microsoft" rel="tag">microsoft</a>, <a href="http://www.casparant.com/tag/yahoo" title="yahoo" rel="tag">yahoo</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/some-acquires.html" title="两个收购，N个收购 (2008-01-17)">两个收购，N个收购</a> (1)</li>
	<li><a href="http://www.casparant.com/ooxml-become-standard.html" title="[转]微软OOXML正式成为国际标准 (2008-04-02)">[转]微软OOXML正式成为国际标准</a> (0)</li>
	<li><a href="http://www.casparant.com/ms-office-2003-under-wine.html" title="Wine M$ Office 2003 成功 (2008-06-28)">Wine M$ Office 2003 成功</a> (2)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=nUqgVF"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=nUqgVF" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/letter-from-ballmer-to-yahoo.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>本站PR值升为3</title>
		<link>http://www.casparant.com/rp-reach-3.html</link>
		<comments>http://www.casparant.com/rp-reach-3.html#comments</comments>
		<pubDate>Sat, 03 May 2008 11:52:35 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[page ranking]]></category>

		<category><![CDATA[pr]]></category>

		<category><![CDATA[pr 3]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=76</guid>
		<description><![CDATA[Google PR排名果然更新了，在连续N天犯2之后，本站的PR值直接越过了2而达到了3，可喜可贺～
特别是在更换域名、频繁更改永久连接、数据丢失的大背景下……实属幸运。
那么再接再励了，嗯。
P.S. 这次似乎是PR大放送……sy那个N天不更新的Blog都1了……是不是我链了他的博客的缘故啊？
P.S.2. 出去逛了一圈，发现大家都纷纷3了……高兴之情顿减……

	标签：page ranking, pr, pr 3

	Related Posts
	
	No Related Post to This Entry.
	
... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>Google PR排名果然更新了，在连续N天犯2之后，本站的PR值直接越过了2而达到了3，可喜可贺～</p>
<p>特别是在更换域名、频繁更改永久连接、数据丢失的大背景下……实属幸运。</p>
<p>那么再接再励了，嗯。</p>
<p>P.S. 这次似乎是PR大放送……sy那个N天<a href="http://www.yshi.org">不更新的Blog</a>都1了……是不是我链了他的博客的缘故啊？</p>
<p>P.S.2. 出去逛了一圈，发现大家都纷纷3了……高兴之情顿减……</p>
</p>
	标签：<a href="http://www.casparant.com/tag/page-ranking" title="page ranking" rel="tag">page ranking</a>, <a href="http://www.casparant.com/tag/pr" title="pr" rel="tag">pr</a>, <a href="http://www.casparant.com/tag/pr-3" title="pr 3" rel="tag">pr 3</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li>No Related Post to This Entry.</li>
	</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=fGkCLy"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=fGkCLy" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/rp-reach-3.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>所谓“网络共同体”？</title>
		<link>http://www.casparant.com/net-union.html</link>
		<comments>http://www.casparant.com/net-union.html#comments</comments>
		<pubDate>Thu, 01 May 2008 10:59:49 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[IT Insight]]></category>

		<category><![CDATA[facebook]]></category>

		<category><![CDATA[flckr]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[last.fm]]></category>

		<category><![CDATA[twitter]]></category>

		<category><![CDATA[union]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=74</guid>
		<description><![CDATA[果然是Web2.0时代，越来越多的东西都可以联合了。
想起自己刚上网的时候，再看看现在的生活，和以前大不相同了。
刚写了篇RSS的文章，我个人认为现在的网络资源、信息的高度联合应该就是通过RSS来实现的。这不，我在twitter更新了我的miniblog，在facebook上就能接收到；我在8box上评价了一首音乐，twitter上就能更新；我在msn里改了一下qmd，fanfou就能捕获。当然，还有自己的wp博客，更新了之后，facebook,豆瓣等网站也都更新了，这就是赤裸裸的RSS通知了吧。
那看来这篇文章可以作为RSS Awareness Day撰文的补充了，嗯。
在Web2.0的大环境下，这种“共同体”的资源共享方式，肯定会越来越普遍，不仅网页，IM，手机，只要是能连上网络的东西，最后肯定能互通消息。网络共同体，的确是个彪悍的东西。
视、听、写作，就这么被联系起来了。
顺便show一下我最近去的站点：
facebook：恐怕周围的人知道的更多的是校内，我不知道校内有没有抄袭它——
http://www.facebook.com
twitt... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>果然是Web2.0时代，越来越多的东西都可以联合了。</p>
<p>想起自己刚上网的时候，再看看现在的生活，和以前大不相同了。</p>
<p>刚写了篇<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>的文章，我个人认为现在的网络资源、信息的高度联合应该就是通过<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>来实现的。这不，我在twitter更新了我的miniblog，在facebook上就能接收到；我在8box上评价了一首音乐，twitter上就能更新；我在msn里改了一下qmd，fanfou就能捕获。当然，还有自己的wp博客，更新了之后，facebook,豆瓣等网站也都更新了，这就是赤裸裸的<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>通知了吧。</p>
<p>那看来这篇文章可以作为<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a> Awareness Day撰文的补充了，嗯。</p>
<p>在Web2.0的大环境下，这种“共同体”的资源共享方式，肯定会越来越普遍，不仅网页，IM，手机，只要是能连上网络的东西，最后肯定能互通消息。网络共同体，的确是个彪悍的东西。</p>
<p>视、听、写作，就这么被联系起来了。</p>
<p>顺便show一下我最近去的站点：</p>
<p><span id="more-74"></span>facebook：恐怕周围的人知道的更多的是校内，我不知道校内有没有抄袭它——<br />
<a href="http://www.facebook.com" target=new>http://www.facebook.com</a></p>
<p>twitter：一个迷你博客<br />
<a href="http://twitter.com/casparant" target=new>http://twitter.com/casparant</a></p>
<p>饭否：我同时怀疑它抄袭twitter<br />
<a href="http://fanfou.com/casparant" target=new>http://fanfou.com/casparant</a></p>
<p>flickr：一个网络相册，主要它有现成的wp插件，所以就抛弃了picasaweb...<br />
<a href="http://www.flickr.com/photos/26039452@N07/" target=new>http://www.flickr.com/photos/26039452@N07/</a></p>
<p>Last.fm：刚注册，还没熟悉<br />
<a href="http://cn.last.fm/user/casparant/" target=new>http://cn.last.fm/user/casparant/</a></p>
<p>音乐八宝盒：有了上面两个怀疑抄袭的例子，我现在也怀疑一下它和Last.fm的关系好了，不过我确实是先熟悉8box的……<br />
<a href="http://www.8box.cn/user/casparant" target=new>http://www.8box.cn/user/casparant</a></p>
<p>豆瓣：文档分享网站<br />
<a href="http://www.douban.com/people/casparant/" target=new>http://www.douban.com/people/casparant/</a></p>
</p>
	标签：<a href="http://www.casparant.com/tag/facebook" title="facebook" rel="tag">facebook</a>, <a href="http://www.casparant.com/tag/flckr" title="flckr" rel="tag">flckr</a>, <a href="http://www.casparant.com/tag/internet" title="internet" rel="tag">internet</a>, <a href="http://www.casparant.com/tag/lastfm" title="last.fm" rel="tag">last.fm</a>, <a href="http://www.casparant.com/tag/twitter" title="twitter" rel="tag">twitter</a>, <a href="http://www.casparant.com/tag/union" title="union" rel="tag">union</a><br />

	<h2>Related Posts</h2>
	<ul class="st-related-posts">
	<li><a href="http://www.casparant.com/visit-internet-in-opensolaris.html" title="搞定OpenSolaris上网 (2008-07-11)">搞定OpenSolaris上网</a> (2)</li>
</ul>


<p><a href="http://feeds.feedburner.com/~a/CasparAnt?a=S8ZiZo"><img src="http://feeds.feedburner.com/~a/CasparAnt?i=S8ZiZo" border="0"></img></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.casparant.com/net-union.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Have You RSSed Today?</title>
		<link>http://www.casparant.com/have-you-rssed-today.html</link>
		<comments>http://www.casparant.com/have-you-rssed-today.html#comments</comments>
		<pubDate>Thu, 01 May 2008 07:46:58 +0000</pubDate>
		<dc:creator>Ant</dc:creator>
		
		<category><![CDATA[IT Insight]]></category>

		<category><![CDATA[rss]]></category>

		<category><![CDATA[rss day]]></category>

		<category><![CDATA[subscription]]></category>

		<guid isPermaLink="false">http://www.casparant.com/?p=64</guid>
		<description><![CDATA[Have You RSSed Today?
——为五月一日“RSS 推广节”而撰
只要你经常上网，或多或少都会和这个LOGO混个脸熟，当然你也可能已经知道了它的名字叫RSS(Really Simple Syndication)。然而你是否知道这个小小的标志，在Web2.0的今天发挥的重要角色？你是否会用RSS来提高你的效率呢？
所谓Really Simple Syndication，通常被翻译为“聚合内容”，顾名思义，它的作用就是聚合一些网站上的内容，让用户以最快最直接的方式获取自己想知道的信息。RSS当前广泛应用于博客、新闻频道、软件更新站点。这些网站有一个特点，更新频繁。如果用户有大量需要关注的类似站点，在普通情况下，就只能在收藏夹里记录所有网站，然后每隔一段时间逐个访问。RSS的出现，改变了这种枯燥乏味的现状，用户可以选择一个特定的RSS阅读器，指定一个更新间隔，获取要关注的网站的RSS地址，每个需要关注的网站的最新动态就可以及时通知给用户了。
然而知道和使用RSS的人太少，到现在，全球也只有约7000... ]]></description>
			<content:encoded><![CDATA[<p class='fp'>Have You RSSed Today?</p>
<p style="text-align: right;">——为五月一日“<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a> 推广节”而撰</p>
<p><a href="http://www.casparant.com/wp-content/uploads/2008/05/rss_big.jpg"><img class="alignleft size-medium wp-image-65" title="rss_big" src="http://www.casparant.com/wp-content/uploads/2008/05/rss_big.jpg" alt="" width="100" height="100" /></a>只要你经常上网，或多或少都会和这个LOGO<a href="http://www.casparant.com/wp-content/uploads/2008/05/rss.gif"><img class="alignnone size-medium wp-image-66" title="rss" src="http://www.casparant.com/wp-content/uploads/2008/05/rss.gif" alt="" width="12" height="12" /></a>混个脸熟，当然你也可能已经知道了它的名字叫<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>(Really Simple Syndication)。然而你是否知道这个小小的标志，在Web2.0的今天发挥的重要角色？你是否会用<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>来提高你的效率呢？</p>
<p>所谓Really Simple Syndication，通常被翻译为“聚合内容”，顾名思义，它的作用就是聚合一些网站上的内容，让用户以最快最直接的方式获取自己想知道的信息。<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>当前广泛应用于博客、新闻频道、软件更新站点。这些网站有一个特点，更新频繁。如果用户有大量需要关注的类似站点，在普通情况下，就只能在收藏夹里记录所有网站，然后每隔一段时间逐个访问。<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>的出现，改变了这种枯燥乏味的现状，用户可以选择一个特定的<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>阅读器，指定一个更新间隔，获取要关注的网站的<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>地址，每个需要关注的网站的最新动态就可以及时通知给用户了。</p>
<p>然而知道和使用<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>的人太少，到现在，全球也只有约7000万人使用<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>来获取信息，更多的人还是把时间耗费在等待数十个网站的读进度条过程中。因此在RSSday.org网站上，公布了定每年五月一日为“<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a> Awareness Day”的消息。以下摘自RSSday.org上的话：</p>
<p><span id="more-64"></span></p>
<blockquote><p>“By creating the <a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a> Awareness Day and celebrating it every year we should be able to get the general public exposed to this format, hopefully increasing the usage of <a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a> feeds and related applications among <a href="http://www.casparant.com/tag/internet" class="st_tag internal_tag" rel="tag" title="标签 internet 下的日志">Internet</a> users.”</p></blockquote>
<p>那么，让我们加入<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>使用者行列吧！</p>
<p>在几乎所有博客和新闻网站上，都提供了<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>链接，这些链接一般都有一个醒目的标志，比如网易博客、新浪博客和cnBeta：</p>
<p><a href="http://www.casparant.com/wp-content/uploads/2008/05/rss-163.jpg"><img class="alignnone size-medium wp-image-67" title="rss-163" src="http://www.casparant.com/wp-content/uploads/2008/05/rss-163.jpg" alt="" width="80" height="33" /></a><a href="http://www.casparant.com/wp-content/uploads/2008/05/rss-sina.jpg"><img class="alignnone size-medium wp-image-68" title="rss-sina" src="http://www.casparant.com/wp-content/uploads/2008/05/rss-sina.jpg" alt="" width="80" height="33" /></a><a href="http://www.casparant.com/wp-content/uploads/2008/05/rss-cnbeta.jpg"><img class="alignnone size-medium wp-image-69" title="rss-cnbeta" src="http://www.casparant.com/wp-content/uploads/2008/05/rss-cnbeta.jpg" alt="" width="120" height="33" /></a></p>
<p>点击他们就可以链接到相应的<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>地址，此地址包含一个XML文件，如果你的浏览器具有订阅功能（比如Firefox, <a href="http://www.casparant.com/tag/opera" class="st_tag internal_tag" rel="tag" title="标签 opera 下的日志">Opera</a>,Maxthon等)，就会自动启动订阅功能完成订阅，如下图（<a href="http://www.casparant.com/tag/opera" class="st_tag internal_tag" rel="tag" title="标签 opera 下的日志">Opera</a>浏览器）：</p>
<p><a href="http://www.casparant.com/wp-content/uploads/2008/05/rss-subscription.png"><img class="aligncenter size-medium wp-image-73" title="rss-subscription" src="http://www.casparant.com/wp-content/uploads/2008/05/rss-subscription.png" alt="" width="445" height="162" /></a></p>
<p>另外，如果你使用Firefox浏览器或者IE内核的Maxthon等，浏览器本身可以提示此网站是否有<a href="http://www.casparant.com/tag/rss" class="st_tag internal_tag" rel="tag" title="标签 rss 下的日志">RSS</a>订阅功能，如下图：</p>
<p><a href="http://www.casparant.com/wp-content/uploads/2008/05/rss-firefox.jpg"><img class="alignnone size-medium wp-image-70" title="rss-firefox" src="http://www.casparant.com/wp-content/uploads/2008/05/rss-firefox.jp