Next to Richard Stallman

我这个人一般不八卦,你知道的。但是个别时候实在是情难以堪。 Bug 626593 – 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 [...]

Posted in: 自话 by Sunng 7 Comments ,

Douban provider for Alexandria

Alexandra is a desktop book collection manager on gnome written in ruby. With an extensible architecture, Alexandria uses different sources to retrieve book’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’s SPI. Now it’s [...]

Posted in: 广告 by Sunng No Comments , , ,

Virtual Machine Searcher for Gnome Deskbar Applet

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’s what I create the the plugin for. I switched to deskbar because gnome-do’s Do.exe reminds me nightmares when I was a M$ Windows user. [...]

Posted in: 广告 by Sunng 3 Comments , , ,

使用gnome-dictionary和dictd

最近琢磨字典多一些,以前一直不知道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->Preference->Source->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定义 [...]

Posted in: 装备 by Sunng No Comments , , , ,

Patch for Fantasdic Google Source

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’t work any more, so I just picked up [...]

Posted in: 广告 by Sunng No Comments , ,

翻译po

翻译一个po文件。确认安装了gettext工具包。 cd到po目录,创建pot intltool-update –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

Posted in: 把戏 by Sunng No Comments , ,

Emerillon: map viewer for gnome desktop

自从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/

Posted in: 装备 by Sunng No Comments , , ,

Restore Nautilus to open gnome menu after installed PCManFM

After installed PCMan File Manager with LXDE, the gnome “places” 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 “Exec=nautilus” 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 [...]

Posted in: 把戏 by Sunng 2 Comments , ,

Jetty7/JSP, Eclipse/GTK2.18

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

Posted in: 装备 by Sunng 3 Comments , , ,

Gnome Shell

续昨,好吧,这个无聊的国庆假期就献给karmic了。gnome-shell已经可以在软件仓库里找到了,apt-get安装即可。要使用gnome-shell可以执行 gnome-shell –replace 要把gnome-shell作为默认的窗口管理器,打开gnome的配置编辑器,找到/desktop/gnome/session/required_components,把panel和windown-manager全部改成gnome-shell,重新登录即可。 上个图: 当然了,还没有正式release,大家试用尝鲜注意安全第一。

Posted in: 装备 by Sunng 17 Comments , ,