<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss">

<channel>
	<title>Here comes the Sun &#187; gnome</title>
	<atom:link href="http://sunng.info/blog/tag/gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunng.info/blog</link>
	<description>Life ramblings</description>
	<lastBuildDate>Thu, 02 Sep 2010 12:29:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Next to Richard Stallman</title>
		<link>http://sunng.info/blog/2010/08/next-to-richard-stallman/</link>
		<comments>http://sunng.info/blog/2010/08/next-to-richard-stallman/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 06:23:50 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[自话]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/2010/08/next-to-richard-stallman/</guid>
		<description><![CDATA[我这个人一般不八卦，你知道的。但是个别时候实在是情难以堪。 Bug 626593 &#8211; Gnome ate my boyfriend! Help! https://bugzilla.gnome.org/show_bug.cgi?id=626593 这位女士在GNOME bugzilla上提交bug，bug提交在empathy项目下。（注 dict empathy: 心意相通） 先不看正文，备注信息就极具幽默感： Status: RESOLVED INVALID Product: empathy Component: User Guide Version: unspecified OS: Windows Importance: Normal critical 是不是真的RESOLVED就不知道了。 事情的直接原因是上周海牙GUADEC，此男cancel了周末和这位reporter的约会。此女不堪长期忍受此男、Linux、Maemo、C等等，彻底爆发了。 He even tried to put Linux on my computer and I simply could not take it. I came home from work one [...]]]></description>
			<content:encoded><![CDATA[<p>我这个人一般不八卦，你知道的。但是个别时候实在是情难以堪。</p>
<p>Bug 626593 &#8211; Gnome ate my boyfriend! Help!<br />
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=626593">https://bugzilla.gnome.org/show_bug.cgi?id=626593</a></p>
<p>这位女士在GNOME bugzilla上提交bug，bug提交在empathy项目下。（注 dict empathy: 心意相通）</p>
<p>先不看正文，备注信息就极具幽默感：<br />
Status:  	 RESOLVED INVALID<br />
Product: 	empathy<br />
Component: 	User Guide<br />
Version: 	unspecified<br />
OS: 	Windows<br />
Importance:  	Normal critical </p>
<p>是不是真的RESOLVED就不知道了。</p>
<p>事情的直接原因是上周海牙GUADEC，此男cancel了周末和这位reporter的约会。此女不堪长期忍受此男、Linux、Maemo、C等等，彻底爆发了。</p>
<p>He even tried to put Linux on my computer and I simply could not take it.  I came home from work one day and my computer said &#8220;UNIX&#8221; all over it!<br />
这句有力的证明了我曾经看到的一句箴言，给女生装linux，对她们、对电脑、对linux都是一种折磨。</p>
<p>接下来搞笑开始了。一楼就是一位极缺乏幽默感的大叔：<br />
Akhil Laddha      2010-08-11 06:45:46 UTC<br />
This is a GNOME bug tracking system, not any family consultancy.</p>
<p>二楼是位好心人，提出了一个Linux week计划，还一厢情愿整了个交易计划：<br />
for each bug you report, he has to spend one night with you without the computer.</p>
<p>八楼精华：<br />
 David Liang      2010-08-12 08:53:16 UTC<br />
不得不顶</p>
<p>九楼亮出一个家属俱乐部的邮件列表：<br />
gnome-women-list@gnome.org，说你要是在家属圈子里麻将打得无敌手，自然你的boyfriend就崇拜你了，到时你就是爷了</p>
<p>高潮在十楼出现了，“你不说这男的是谁我们怎么帮你？”</p>
<p>紧接着十一楼一位神秘人士笑而不语。</p>
<p>十四楼比较直接<br />
#apt-get remove boyfriend &#8211;purge</p>
<p>十九楼知道宁拆十座庙的道理，建议先查看一下情况再说：<br />
cat /dev/boyfriend | grep love</p>
<p>最冷的是十六楼说咱们有这么个项目的：<br />
<a href="http://projects.gnome.org/outreach/women/">http://projects.gnome.org/outreach/women/</a></p>
<p>你以为故事就这么结束了，你错了。<br />
没想到男主人公的网站被我不经意间人肉出来了：<br />
<a href="http://zachgoldberg.com">http://zachgoldberg.com</a></p>
<p>一上来第一篇就说这事：<br />
<a href="http://zachgoldberg.com/2010/08/12/help-my-girlfriend-learned-how-to-use-a-bug-tracker/">HELP! My Girlfriend Learned How To Use A Bug Tracker</a></p>
<p>I never thought it would happen.</p>
<p>此男字字珠玑：<br />
It all started one night when I got home very late from work (where I get to play with Linux all day… who would ever go home?).  I got the usual “you need to pay more attention to me” and “Linux will never have sex with you!”.  I sat through it all and when it was over she went to sleep and I…. opened up my Laptop (running Ubuntu Linux, of course) and started hacking.  All is right with the world.</p>
<p>于是他发现自己上了LWN的Quote of the Week，和RMS的新闻并列，然后又被转载到hacker news, geek.com, slashdot。他感叹道 I never imagined my entry into the “slashdot number of zero” (think Erdos or Kevin Bacon) club would happen in this way.</p>
<p>最后他说他要开一个bugs.zachgoldberg.com专门解决这类的问题，If you want your own component in the bugtracker to help you and your loved one vent your problems all you need to do is ask!</p>
<p>哈哈哈哈</p>
<p>补充个精华链接：http://www.reddit.com/r/linux/comments/d02j6/bug_626593_gnome_ate_my_boyfriend/</p>
<p>最后daf同学总结性地指出，她不会学习使用bug tracker。</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.7</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/08/next-to-richard-stallman/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Douban provider for Alexandria</title>
		<link>http://sunng.info/blog/2010/04/douban-provider-for-alexandria/</link>
		<comments>http://sunng.info/blog/2010/04/douban-provider-for-alexandria/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 11:25:33 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[广告]]></category>
		<category><![CDATA[Douban]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=559</guid>
		<description><![CDATA[Alexandra is a desktop book collection manager on gnome written in ruby. With an extensible architecture, Alexandria uses different sources to retrieve book&#8217;s data, including Amazon and many local sites. Douban.com is considered to be most applicable data source for books published in Chinese. So I write this provider according to Alexandria&#8217;s SPI. Now it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://alexandria.rubyforge.org/">Alexandra</a> is a desktop book collection manager on gnome written in ruby. With an extensible architecture, Alexandria uses different sources to retrieve book&#8217;s data, including Amazon and many local sites.</p>
<p>Douban.com is considered to be most applicable data source for books published in Chinese. So I write this provider according to Alexandria&#8217;s SPI. Now it&#8217;s possible to add Chinese books and manage reading lists.</p>
<p><a href="http://www.flickr.com/photos/40741608@N08/4564768299/" title="alexandria by 贝小塔, on Flickr"><img src="http://farm5.static.flickr.com/4046/4564768299_f424dc2be9.jpg" width="500" height="388" alt="alexandria" /></a></p>
<p>Now the code can be found in Alexandria&#8217;s bug tracker:<br />
<a href="http://rubyforge.org/tracker/index.php?func=detail&#038;aid=28160&#038;group_id=205&#038;atid=865">http://rubyforge.org/tracker/index.php?func=detail&#038;aid=28160&#038;group_id=205&#038;atid=865</a></p>
<p>However, the patch file of book_providers.rb in that list is for svn trunk head version only. To use it with currently stable version of Ubuntu, first, make sure you have Alexandria version <strong>0.6.5-0ubuntu1</strong> and <strong>libjson-ruby1.8</strong> installed.</p>
<p>Download douban.rb from rubyforge:<br />
<a href="http://rubyforge.org/tracker/download.php/205/865/28160/4923/douban.rb">http://rubyforge.org/tracker/download.php/205/865/28160/4923/douban.rb</a><br />
Copy the file to /usr/lib/ruby/1.8/alexandria/book_providers/ with super user privileges.<br />
Use this patch to /usr/lib/ruby/1.8/alexandria/book_providers.rb</p>
<div class="codecolorer-container ruby default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">310a311,<span style="color:#006666;">323</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">begin</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">begin</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'json'</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">rescue</span> <span style="color:#CC00FF; font-weight:bold;">LoadError</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'json'</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'alexandria/book_providers/douban'</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">rescue</span> <span style="color:#CC00FF; font-weight:bold;">LoadError</span> =<span style="color:#006600; font-weight:bold;">&lt;</span> ex<br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; log.<span style="color:#9900CC;">error</span><span style="color:#006600; font-weight:bold;">&#123;</span>ex<span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; &nbsp; log.<span style="color:#9900CC;">warn</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">'Fail to load douban as provider'</span><span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span> &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#006600; font-weight:bold;">&lt;</span></div></div>
<p>Feel free to report issue here.</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/04/douban-provider-for-alexandria/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Virtual Machine Searcher for Gnome Deskbar Applet</title>
		<link>http://sunng.info/blog/2010/02/virtual-machine-searcher-for-gnome-deskbar-applet/</link>
		<comments>http://sunng.info/blog/2010/02/virtual-machine-searcher-for-gnome-deskbar-applet/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 08:18:33 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[广告]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=475</guid>
		<description><![CDATA[Very glad to announce another daily-coding work: an extension for gnome deskbar applet to search and launch virtual machine. There is a plugin for gnome-do that does the same job. That&#8217;s what I create the the plugin for. I switched to deskbar because gnome-do&#8217;s Do.exe reminds me nightmares when I was a M$ Windows user. [...]]]></description>
			<content:encoded><![CDATA[<p>Very glad to announce another daily-coding work: an extension for gnome deskbar applet to search and launch virtual machine. There is a plugin for gnome-do that does the same job. That&#8217;s what I create the the plugin for. I switched to deskbar because gnome-do&#8217;s Do.exe reminds me nightmares when I was a M$ Windows user. The deskbar applet has been a great replacement, however, the virtualbox plugin in Do is really impressive while deskbar doesn&#8217;t provide me the same functionality.</p>
<p>You can ignore words above and just take a look at the screenshot:<br />
<a title="deskbar-virtualbox by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4350951202/"><img src="http://farm5.static.flickr.com/4062/4350951202_9ede9c4318_o.png" alt="deskbar-virtualbox" width="560" height="400" /></a></p>
<h3>Download</h3>
<p>Download the extension from (the highlighted one):<br />
<a href="http://bitbucket.org/sunng/daily-coding/downloads/?highlight=8792">http://bitbucket.org/sunng/daily-coding/downloads/?highlight=5137</a></p>
<p>You can also trace the development at bitbucket project. However, the repository is mixed with other small code snippets. Currently, mercurial doesn&#8217;t support subdirectory pull. So there is no way to grab the deskbar-applet individually.</p>
<h3>Installation</h3>
<p>copy this file to <em>/usr/lib/deskbar-applet/deskbar-applet/modules-2.20-compatible/</em> (Ubuntu installation for example) with super user privilege. Right click desktbar applet, select Preference, Searchers tab, hit &#8220;Reload&#8221; button, then check the Virtualbox Deskbar Module.<br />
<a title="deskbar-preference by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4350219097/"><img src="http://farm5.static.flickr.com/4006/4350219097_126cdb3c8d.jpg" alt="deskbar-preference" width="500" height="346" /></a></p>
<h3>Issue</h3>
<p>Feel free the report issues on bitbucket:<br />
<a href="http://bitbucket.org/sunng/daily-coding/issues/">http://bitbucket.org/sunng/daily-coding/issues/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/virtual-machine-searcher-for-gnome-deskbar-applet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>使用gnome-dictionary和dictd</title>
		<link>http://sunng.info/blog/2010/02/%e4%bd%bf%e7%94%a8gnome-dictionary%e5%92%8cdictd/</link>
		<comments>http://sunng.info/blog/2010/02/%e4%bd%bf%e7%94%a8gnome-dictionary%e5%92%8cdictd/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 10:57:20 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[dictd]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=447</guid>
		<description><![CDATA[最近琢磨字典多一些，以前一直不知道gnome自带的gnome-dictionary如何使用，因为默认的字典源里都没有中文字典，而且离线更是无法使用。其实不然，字典服务可以自架，并且可以使用自己的字典。 在自己的机器上架设dictionary server，以ubuntu为例： 安装dictd / dict sudo apt-get install dictd dict 前者是字典服务器，后者是字典服务客户端。还可以从仓库里安装已经打包好的字典，如 sudo apt-get install dict-stardic 是一个英汉字典 dictd安装好后会默认自启动，也可以通过 sudo service dictd start 来控制dictd的启动、重启和关闭。 通过dict测试服务的状况 dict -D 命令会列出可用的数据库（即字典） 在gnome-dictionary中添加字典源 Edit-&#62;Preference-&#62;Source-&#62;Add Name: 自定义的字典名 Transport: Dictionary Source Hostname: 127.0.0.1 Port: 2628 Close之后可以到主界面打开侧边栏，在Dictionary Source中双击选定此字典，在Aailable Dictionaries里双击选中目标字典，于是就可以在gnome-dictionary里使用本地的字典服务了。 接下来安装自己的字典。stardict的网站上有很多中文字典，上面也都标示了授权协议。要在dictd里使用这些字典，需要进行一个简单的格式转换。安装一个工具 sudo apt-get install dictconv 它的使用方法： dictconv -o OUTPUT_FILE INPUT_FILE 在input_file指定stardict的.ifo文件，在output_file指定要生成的dictd的.index文件。这个转换非常耗时，需要有足够的耐心。这个操作将会生成.index和.dict文件。对.dict文件进行压缩： dictzip OUT.dict 转换完成后，编辑/var/lib/dictd/db.list文件，在其中添加一个database定义 [...]]]></description>
			<content:encoded><![CDATA[<p>最近琢磨字典多一些，以前一直不知道gnome自带的gnome-dictionary如何使用，因为默认的字典源里都没有中文字典，而且离线更是无法使用。其实不然，字典服务可以自架，并且可以使用自己的字典。</p>
<p>在自己的机器上架设dictionary server，以ubuntu为例：</p>
<p>安装dictd / dict<br />
<em>sudo apt-get install dictd dict</em></p>
<p>前者是字典服务器，后者是字典服务客户端。还可以从仓库里安装已经打包好的字典，如<br />
<em>sudo apt-get install dict-stardic</em><br />
是一个英汉字典</p>
<p>dictd安装好后会默认自启动，也可以通过<br />
<em>sudo service dictd start</em><br />
来控制dictd的启动、重启和关闭。</p>
<p>通过dict测试服务的状况<br />
<em>dict -D</em><br />
命令会列出可用的数据库（即字典）</p>
<p>在gnome-dictionary中添加字典源 Edit-&gt;Preference-&gt;Source-&gt;Add<br />
Name: 自定义的字典名<br />
Transport: Dictionary Source<br />
Hostname: 127.0.0.1<br />
Port: 2628</p>
<p>Close之后可以到主界面打开侧边栏，在Dictionary Source中双击选定此字典，在Aailable Dictionaries里双击选中目标字典，于是就可以在gnome-dictionary里使用本地的字典服务了。</p>
<p>接下来安装自己的字典。stardict的<a href="http://stardict.sourceforge.net/Dictionaries_zh_CN.php">网站</a>上有很多中文字典，上面也都标示了授权协议。要在dictd里使用这些字典，需要进行一个简单的格式转换。安装一个工具<br />
<em>sudo apt-get install dictconv</em></p>
<p><em>它的使用方法：<br />
dictconv -o OUTPUT_FILE INPUT_FILE</em></p>
<p>在input_file指定stardict的.ifo文件，在output_file指定要生成的dictd的.index文件。这个转换非常耗时，需要有足够的耐心。这个操作将会生成.index和.dict文件。对.dict文件进行压缩：<br />
<em>dictzip OUT.dict</em></p>
<p>转换完成后，编辑<em>/var/lib/dictd/db.list</em>文件，在其中添加一个database定义<br />
<em>database YOUR_DB_NAME{<br />
data PATH_TO_DICT_DZ<br />
index PATH_TO_INDEX<br />
}</em></p>
<p>其中PATH_TO_DICT_DZ是上一步的.dz文件，PATH_TO_INDEX是到上一步生成的.index文件的路径。编辑完成后，重启dictd服务<br />
<em>sudo service dictd restart</em></p>
<p>使用dict -D可以查看启用的字典。</p>
<p>建议备份<em>/var/lib/dictd/db.list</em>文件，因为每次从apt-get安装字典后，这个文件都会被覆盖。</p>
<p>dictd服务也可以在fantasdic里访问。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/%e4%bd%bf%e7%94%a8gnome-dictionary%e5%92%8cdictd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Patch for Fantasdic Google Source</title>
		<link>http://sunng.info/blog/2010/02/patch-for-fantadic-google-source/</link>
		<comments>http://sunng.info/blog/2010/02/patch-for-fantadic-google-source/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 14:15:40 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[广告]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=439</guid>
		<description><![CDATA[I found fantasdic a great powerful dictionary tool with friendly UI and supports multiply sources. Unfortunately, this project seems to be no longer maintained. The latest version is 1.0-beta7. The google translate source was created in 2007. As the google translate service page changed, this module doesn&#8217;t work any more, so I just picked up [...]]]></description>
			<content:encoded><![CDATA[<p>I found fantasdic a great powerful dictionary tool with friendly UI and supports multiply sources. Unfortunately, this project seems to be no longer maintained. The latest version is 1.0-beta7.<br />
<a title="fantasdic-google by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4324570353/"><img src="http://farm5.static.flickr.com/4049/4324570353_c1f79ac6dc.jpg" alt="fantasdic-google" width="500" height="362" /></a></p>
<p>The google translate source was created in 2007. As the google translate service page changed, this module doesn&#8217;t work any more, so I just picked up my vim then created this patch for those still want to use it.</p>
<p>This patch has dependency with ruby&#8217;s json module, so before you apply it, run:<br />
<em>sudo gem install json</em><br />
or<br />
<em>sudo apt-get install libjson-ruby1.8</em></p>
<p>Download the patch at:<br />
<a href="https://bugzilla.gnome.org/attachment.cgi?id=152835">https://bugzilla.gnome.org/attachment.cgi?id=152835</a></p>
<p>Patch it (Ubuntu installation as example):<br />
<em>cd /usr/lib/ruby/1.8/fantasdic/sources/<br />
sudo patch google_translate.rb /home/sun/google_translate.rb.diff</em></p>
<p>Restart fantasdic, then your get it works! And this bug is tracked at:<br />
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=605641">https://bugzilla.gnome.org/show_bug.cgi?id=605641</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/patch-for-fantadic-google-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>翻译po</title>
		<link>http://sunng.info/blog/2010/01/%e7%bf%bb%e8%af%91po/</link>
		<comments>http://sunng.info/blog/2010/01/%e7%bf%bb%e8%af%91po/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 15:05:49 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[把戏]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=437</guid>
		<description><![CDATA[翻译一个po文件。确认安装了gettext工具包。 cd到po目录，创建pot intltool-update &#8211;pot 创建相应的语言文件，例如zh_CN msginit -l zh_CN.utf8 程序会提示选择或输入邮箱，之后就会生成zh_CN.po文件，打开文件，逐条编辑msgstr即可。 手动编辑LINGUAS文件，按顺序将zh_CN添加到其中。 可以通过这个命令查看翻译的进度 msgfmt -cv zh_CN.po 对于更新pot更新的情况，可以使用命令更新po文件 intltool-update zh_CN 参考： http://live.gnome.org/TranslationProject/LocalisationGuidezh http://blog.chinaunix.net/u1/37261/showart_476642.html]]></description>
			<content:encoded><![CDATA[<p>翻译一个po文件。确认安装了gettext工具包。</p>
<p>cd到po目录，创建pot<br />
<em>intltool-update &#8211;pot</em></p>
<p>创建相应的语言文件，例如zh_CN<br />
<em>msginit -l zh_CN.utf8</em></p>
<p>程序会提示选择或输入邮箱，之后就会生成zh_CN.po文件，打开文件，逐条编辑msgstr即可。</p>
<p>手动编辑LINGUAS文件，按顺序将zh_CN添加到其中。</p>
<p>可以通过这个命令查看翻译的进度<br />
<em>msgfmt -cv zh_CN.po</em></p>
<p>对于更新pot更新的情况，可以使用命令更新po文件<br />
<em>intltool-update zh_CN</em></p>
<p>参考：</p>
<ul>
<li><a href="http://live.gnome.org/TranslationProject/LocalisationGuidezh">http://live.gnome.org/TranslationProject/LocalisationGuidezh</a></li>
<li><a href="http://blog.chinaunix.net/u1/37261/showart_476642.html">http://blog.chinaunix.net/u1/37261/showart_476642.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/01/%e7%bf%bb%e8%af%91po/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Emerillon: map viewer for gnome desktop</title>
		<link>http://sunng.info/blog/2010/01/emerillon-map-viewer-for-gnome-desktop/</link>
		<comments>http://sunng.info/blog/2010/01/emerillon-map-viewer-for-gnome-desktop/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:03:47 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[OSM]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=435</guid>
		<description><![CDATA[自从libchamplain / geoclue等库发布之后，gnome桌面的地理信息工具和支持发展很迅速：例如之前提到过的eye-of-gnome的地理信息插件，根据EXIF信息在地图上显示。现在gnome桌面上终于有一个专门的地图查看器了，仍然是基于libchamplain，名字叫做emerillon 仍然是使用open street maps，这两年上海的地图发展的非常不错，连最新的二号线东延都已经被标注出来了。相比之下，南京的地图就还是一片空白。 在Ubuntu上安装emerillon，可以从其网站上下载源码编译安装： http://www.novopia.com/emerillon/download.html emerillon的几个主要依赖： libchamplain librest ethos libchamplain在ubuntu 9.10的仓库已经包含 librest也在软件仓库中，不过需要注意的是ubuntu将librest安装在pkg-config里时的名字叫做rest.pc，而emerillon查找的是rest-0.6.pc，所以需要手动建立一个软连接： sudo ln -s /usr/lib/pkgconfig/rest.pc /usr/lib/pkgconfig/rest-0.6.pc ethos是一个Gtk的插件框架，目前还不在软件仓库中，需要从网站下载代码编译： http://git.dronelabs.com/ethos/ ethos网站上提到的PPA源中的版本偏旧，不建议使用。 实际上也可以直接添加emerillon的PPA源： deb http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main deb-src http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main 另外，也可以通过Ubuntu Tweak安装。 作者Blog： http://blog.pierlux.com/en/]]></description>
			<content:encoded><![CDATA[<p>自从libchamplain / geoclue等库发布之后，gnome桌面的地理信息工具和支持发展很迅速：例如之前提到过的eye-of-gnome的地理信息插件，根据EXIF信息在地图上显示。现在gnome桌面上终于有一个专门的地图查看器了，仍然是基于libchamplain，名字叫做<a href="http://www.novopia.com/emerillon/" target="_blank">emerillon</a></p>
<p><a title="Emerillon Map Viewer by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4315412541/"><img src="http://farm5.static.flickr.com/4021/4315412541_d34e08d02b.jpg" alt="Emerillon Map Viewer" width="500" height="286" /></a></p>
<p>仍然是使用open street maps，这两年上海的地图发展的非常不错，连最新的二号线东延都已经被标注出来了。相比之下，南京的地图就还是一片空白。</p>
<p>在Ubuntu上安装emerillon，可以从其网站上下载源码编译安装：<br />
<a href="http://www.novopia.com/emerillon/download.html">http://www.novopia.com/emerillon/download.html</a></p>
<p>emerillon的几个主要依赖：</p>
<ul>
<li>libchamplain</li>
<li>librest</li>
<li>ethos</li>
</ul>
<p>libchamplain在ubuntu 9.10的仓库已经包含</p>
<p>librest也在软件仓库中，不过需要注意的是ubuntu将librest安装在pkg-config里时的名字叫做rest.pc，而emerillon查找的是rest-0.6.pc，所以需要手动建立一个软连接：<br />
<em>sudo ln -s /usr/lib/pkgconfig/rest.pc /usr/lib/pkgconfig/rest-0.6.pc</em></p>
<p>ethos是一个Gtk的插件框架，目前还不在软件仓库中，需要从网站下载代码编译：<br />
<a href="http://git.dronelabs.com/ethos/" target="_blank">http://git.dronelabs.com/ethos/</a><br />
ethos网站上提到的PPA源中的版本偏旧，不建议使用。</p>
<p><em>实际上也可以直接添加emerillon的PPA源：<br />
deb http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main<br />
deb-src http://ppa.launchpad.net/mathieu-tl/emerillon/ubuntu karmic main</em></p>
<p>另外，也可以通过Ubuntu Tweak安装。</p>
<p>作者Blog：<br />
<a href="http://blog.pierlux.com/en/">http://blog.pierlux.com/en/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/01/emerillon-map-viewer-for-gnome-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Restore Nautilus to open gnome menu after installed PCManFM</title>
		<link>http://sunng.info/blog/2009/10/restore-nautilus-to-open-gnome-menu-after-installed-pcmanfm/</link>
		<comments>http://sunng.info/blog/2009/10/restore-nautilus-to-open-gnome-menu-after-installed-pcmanfm/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 03:22:54 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[把戏]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=296</guid>
		<description><![CDATA[After installed PCMan File Manager with LXDE, the gnome &#8220;places&#8221; menu items were opened by PCManFM as default. To switch back to nautilus, follow these steps: check /usr/share/applications/nautilus-folder-hanlder.desktop make sure the line &#8220;Exec=nautilus&#8221; is not modified. (There are lots of hack article that teach user to change default file manager by modify this) check /usr/share/applications/defaults.list [...]]]></description>
			<content:encoded><![CDATA[<p>After installed PCMan File Manager with LXDE,  the gnome &#8220;places&#8221; menu items were opened by PCManFM as default. To switch back to nautilus, follow these steps:</p>
<ol>
<li>check <em>/usr/share/applications/nautilus-folder-hanlder.desktop</em><br />
make sure the line &#8220;<em>Exec=nautilus</em>&#8221; is not modified. (There are lots of hack article that teach user to change default file manager by modify this)</li>
<li>check <em>/usr/share/applications/defaults.list</em><br />
grep the line &#8220;x-directory&#8221; by<br />
<em>cat /usr/share/applications/defaults.list | grep x-directory </em><br />
make sure the value was kept as &#8220;nautilus-folder-handler.desktop&#8221;, if not, restore it.<br />
Then grep the line &#8220;inode&#8221; by<br />
<em>cat /usr/share/applications/defaults.list | grep inode</em><br />
also be sure about the result &#8220;nautilus-folder-handler.desktop&#8221;. if not, restore it again.</li>
<li>So it must be your own configuration that has been changed. check <em>~/.local/share/applications/defaults.list</em><br />
grep the two lines described above, it must be changed to &#8220;pcmanfm-folder-handler.desktop&#8221;, so replace them by &#8220;nautilus-folder-handler.desktop&#8221;</li>
</ol>
<p>To check the result, click menu item at once (no restart or logout needed), again, you see the slow file manager&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/10/restore-nautilus-to-open-gnome-menu-after-installed-pcmanfm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jetty7/JSP, Eclipse/GTK2.18</title>
		<link>http://sunng.info/blog/2009/10/jettyjsp-eclipsegtk2-18/</link>
		<comments>http://sunng.info/blog/2009/10/jettyjsp-eclipsegtk2-18/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 13:13:50 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[jetty]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=270</guid>
		<description><![CDATA[Jetty7.0上周发布了，这是jetty迁进eclipse社区之后的第一个正式版本。但是下载之后发现这个版本居然没有jsp支持。原来，jetty的jsp实现一直使用的是glassfish的实现，嵌入eclipse社区之后，这变成了一个问题。功能完全的版本（hightide）依然可以从codehaus的镜像里下载： http://dist.codehaus.org/jetty/ 比较一下大小就能看出，eclipse的版本只有2.1M，hightide的版本15M。为此，社区里有详细的讨论： http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg00198.html Gnome2.28发布了，但是Eclipse在Gtk2.18上工作时，会发生按钮失灵的问题，主要集中在finish next和ok等关键的按钮。简单的解决方法是焦点在按钮上时通过按回车来执行。比较彻底的方法是在eclipse执行的环境中，设置环境变量GDK_NATIVE_WINDOWS=true 这个bug被报告在这里： https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257]]></description>
			<content:encoded><![CDATA[<p>Jetty7.0上周发布了，这是jetty迁进eclipse社区之后的第一个正式版本。但是下载之后发现这个版本居然没有jsp支持。原来，jetty的jsp实现一直使用的是glassfish的实现，嵌入eclipse社区之后，这变成了一个问题。功能完全的版本（hightide）依然可以从codehaus的镜像里下载：<br />
<a href="http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg00198.html">http://dist.codehaus.org/jetty/</a></p>
<p>比较一下大小就能看出，eclipse的版本只有2.1M，hightide的版本15M。为此，社区里有详细的讨论：<br />
<a href="http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg00198.html">http://dev.eclipse.org/mhonarc/lists/jetty-dev/msg00198.html</a></p>
<p>Gnome2.28发布了，但是Eclipse在Gtk2.18上工作时，会发生按钮失灵的问题，主要集中在finish next和ok等关键的按钮。简单的解决方法是焦点在按钮上时通过按回车来执行。比较彻底的方法是在eclipse执行的环境中，设置环境变量<em>GDK_NATIVE_WINDOWS=true</em></p>
<p>这个bug被报告在这里：<br />
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257">https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/10/jettyjsp-eclipsegtk2-18/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Gnome Shell</title>
		<link>http://sunng.info/blog/2009/10/gnome-shell/</link>
		<comments>http://sunng.info/blog/2009/10/gnome-shell/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 06:43:04 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=227</guid>
		<description><![CDATA[续昨，好吧，这个无聊的国庆假期就献给karmic了。gnome-shell已经可以在软件仓库里找到了，apt-get安装即可。要使用gnome-shell可以执行 gnome-shell &#8211;replace 要把gnome-shell作为默认的窗口管理器，打开gnome的配置编辑器，找到/desktop/gnome/session/required_components，把panel和windown-manager全部改成gnome-shell，重新登录即可。 上个图： 当然了，还没有正式release，大家试用尝鲜注意安全第一。]]></description>
			<content:encoded><![CDATA[<p>续昨，好吧，这个无聊的国庆假期就献给karmic了。gnome-shell已经可以在软件仓库里找到了，apt-get安装即可。要使用gnome-shell可以执行<br />
<em>gnome-shell &#8211;replace</em></p>
<p>要把gnome-shell作为默认的窗口管理器，打开gnome的配置编辑器，找到/desktop/gnome/session/required_components，把panel和windown-manager全部改成gnome-shell，重新登录即可。</p>
<p>上个图：<br />
<img class="alignnone" src="http://pic.yupoo.com/classicning/0026182bb7d6/medium.jpg" alt="" width="500" height="313" /></p>
<p>当然了，还没有正式release，大家试用尝鲜注意安全第一。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/10/gnome-shell/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
