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 day and my computer said “UNIX” all over it!
这句有力的证明了我曾经看到的一句箴言,给女生装linux,对她们、对电脑、对linux都是一种折磨。

接下来搞笑开始了。一楼就是一位极缺乏幽默感的大叔:
Akhil Laddha 2010-08-11 06:45:46 UTC
This is a GNOME bug tracking system, not any family consultancy.

二楼是位好心人,提出了一个Linux week计划,还一厢情愿整了个交易计划:
for each bug you report, he has to spend one night with you without the computer.

八楼精华:
David Liang 2010-08-12 08:53:16 UTC
不得不顶

九楼亮出一个家属俱乐部的邮件列表:
gnome-women-list@gnome.org,说你要是在家属圈子里麻将打得无敌手,自然你的boyfriend就崇拜你了,到时你就是爷了

高潮在十楼出现了,“你不说这男的是谁我们怎么帮你?”

紧接着十一楼一位神秘人士笑而不语。

十四楼比较直接
#apt-get remove boyfriend –purge

十九楼知道宁拆十座庙的道理,建议先查看一下情况再说:
cat /dev/boyfriend | grep love

最冷的是十六楼说咱们有这么个项目的:
http://projects.gnome.org/outreach/women/

你以为故事就这么结束了,你错了。
没想到男主人公的网站被我不经意间人肉出来了:
http://zachgoldberg.com

一上来第一篇就说这事:
HELP! My Girlfriend Learned How To Use A Bug Tracker

I never thought it would happen.

此男字字珠玑:
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.

于是他发现自己上了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.

最后他说他要开一个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!

哈哈哈哈

补充个精华链接:http://www.reddit.com/r/linux/comments/d02j6/bug_626593_gnome_ate_my_boyfriend/

最后daf同学总结性地指出,她不会学习使用bug tracker。

The post is brought to you by lekhonee v0.7

beanstalkd

beanstalkd是一个极轻量级的消息队列服务,作者的说法叫做Work Queue。

概念

Beanstalkd里包含以下几个概念:

  • Producer
  • Worker
  • Job
  • Tube

Producer 与传统的消息队列服务中的概念类似,是Job的生产者。这个角色通过put命令来创建Job。

Worker 即消费者,worker通过reserve / release / bury / delete 等命令操作job的生命周期。

Job 是beanstalkd中的基本单元,一个job包含id和body,从属于一个tube。Job的生命周期是beanstalkd中的核心概念,它包含DELAYED / READY / RESERVED / BURIED / DELETED等状态。beanstalkd文档中的这个图对Job的声明周期进行了说明:
http://github.com/kr/beanstalkd/blob/master/doc/protocol.txt#L81

Tube 是类似namespace的概念,Producer在生产Job前通过use指定相应的Tube。而Worker通过watch / Ignore命令来决定从哪些Tube中获得Job。

安装

Beanstalkd 可以通过很多Linux发行版的包管理器直接安装。依赖libevent 1.4.1 以上版本。
通过以下命令启动即可

beanstalkd -d -p <PORT>

协议

Beanstalkd在各方面都继承memcached的风格,协议也与memcached类似,同样是基于文本的:

命令 参数 [参数...] [命令体字节数]\r\n
[命令体]\r\n

beanstalkd很多命令的返回是yaml格式,但是系统对命令体的格式并没有限制。

客户端

Beanstalkd协议见简单,有各种语言的客户端实现。python有一个非常简单的beanstalkc,可以通过easy_install安装。不过,这个客户端缺少断线重连机制,正式发布的0.2.0版本也有一些严重的bug。可以从github上下载源代码安装,并在使用时控制重连。

The post is brought to you by lekhonee v0.7

近况

  1. Exaile豆瓣电台插件发布一个多月,github和googlecode的下载量加载一起大约有190次左右。考虑的这两个用户群的交集有限,这个数字应该算是超乎期望了,呵呵。等下载量超过500的时候,我。。。
  2. 本来计划三周做完的项目,后台服务调用的中间件,做了刚一周整个流程刚跑通就被砍了。最近工作得很不顺心,公司各种产品之间结构松散,模型各不相同,想要all in one谈何容易。不愉快就容易萌生去意,可是看了JavaEye robbin的这篇,就彷徨了。
  3. 上面一节原本写了不少,但考虑到说出来不太合适,就删了。你懂的。
  4. 最近听豆瓣电台非常喜欢苏阳、野孩子这些西北味的歌,我毕竟还是干旱地区的人,听着就有共鸣。苏阳的长在银川我很喜欢,我喜欢这种带着地名的歌。有西北的味道,能让我想起小时候。“我的家住在,同心路边上” ,如果有机会,能去考察一下就太他妈好了。
  5. 今天图灵把八月份的新书列出来,发现这么一本《我编程,我快乐》。本来评价不错的书,起这么个名字,你说谁还敢买,买了还不被同事鄙视死。编辑同志您做到了!
  6. 最近某公司的电子书宣传力度很大,连CEO都请自上阵的(请注意右侧第二条)。我突然想买个Kindle,上周五在Amazon.com上订了到了最后一步,结果是地址不能邮寄。看来还得想其他办法,今天貌似关于国际网购邮寄有了新的规定

The post is brought to you by lekhonee v0.7

Exaile-doubanfm-plugin for exaile 0.3.2

Ubuntu 10.04的Exaile还停留在0.3.1,而Fedora 13上已经升级到0.3.2了。为此我更新了豆瓣电台插件,现在这个版本可以在0.3.2上正常工作。

可以到github的下载页面获取 doubanfm-0.0.3a-exaile032.tar.gz
http://github.com/sunng87/exaile-doubanfm-plugin/downloads

此外for exaile 0.3.1的版本也有一个优化和bugfix release, Ubuntu用户可以获取
doubanfm-0.0.3-exaile031.tar.gz

接下来三周又有项目了,难度比较大,估计豆瓣插件近期不会有什么新的惊喜了。

The post is brought to you by lekhonee v0.7