Posts

bugzilla之中文化

最近还在忙这个 不知道换了个公司,我还是否需要这样做 不过据我推测,中国软件公司员工的英语水平应该都挺高 anyway,记一下思路。 三个问题: 1. Bugzilla/BugMail.pm需要打个补丁 --- Bugzilla/BugMail.pm.bak     2006-12-06 09:19:08.000000000 +0800 +++ Bugzilla/BugMail.pm 2006-12-06 17:55: 03.000000000 +0800 @@ -46,6 +46,8 @@  use MIME::Parser;  use Mail::Address;   +use Encode qw(encode_utf8); +  # We need these strings for the X-Bugzilla-Reasons header  # Note: this hash uses "," rather than "=>" to avoid auto-quoting of the LHS.  my %rel_names = (REL_ASSIGNEE          , "AssignedTo", @@ -636,7 +638,7 @@      my $headers;        if (Param('utf8') and (!is_7bit_clean($header) or !is_7bit_clean($body))) { -        ($headers, $body) = encode_message($msg); +        ($headers, $body) = encode_message(encode_utf8($msg));      } else {          my @header_lines = split(/\n/, $header);          $headers = new Mail::Header \@header_lines, Modify => 0; 2. 网上现有最新的汉化包是2.20, 内容和正在使用的2.22有差距。使用中文界面时,已知的可导致的问题有,不能删除产品和模块。 3. 如果bug的

suspend2-sources-2.6.19 not ready yet

I haven't got enough time to investigate what is going on. In order to try the new kernel, I emerged gentoo-sources-2.6.19-r1 and compiled/installed it. It works well so far. I didn't enable libata, as it is said that its support for pata is still experimental and I don't have sata disk. However I can't hibernate in it. So just halt. But I like hibernate, so I will return to suspend2-sources-2.6.18 and stay there before new version is out. PS: It seems that suspend2 patchset for 2.6.19 is ready now, http://forums.gentoo.org/viewtopic-t-521430.html?sid=4e52af07455eb15db7133bc20b1d89dd

汉化bugzilla以及在没有任何可用用户和可反向解析的ip地址的情况下重新获得bugzilla的控制权

Bugzilla的汉化其实很简单。不过如果你是在中国大陆,而且你正在用一个比较新的版本bugzilla的时候,就要费点周折。因为你不能直接登录sourceforge,而bugzilla汉化项目bugzilla-cn在sourceforge上。这时就需要tor+privoxy了。下载下来后,把cn_UTF8.zip里的default目录放到template/en里,并更名为custom。 第二个问题,缘起于忘记了super user的密码。没有可反向解析的ip,意味着sendmail发的信到不了目的地。这样注册的新用户就得不到注册时随机产生的密码。要解决这个问题,可以把data/params里的mail_delivery_method改成testfile,这样就不会通过MTA来发信,而是把信件内容保存在data/mailer.testfile里。这样就的到了一个可用的普通用户。然后在mysql控制台里,把bugs数据库里的profiles表里的这个用户的userid改成1,那么这个用户就变成了super user。完事。

媒体的力量

媒体的力量真的太强大了 特别是权威媒体 在Linux和自由软件领域里,lwn.net无疑是这样的一个权威媒体 有些事,经它一报道,可能就会使整个舆论转向 比如最近的gaia事件 gaia是个开源的google earth,可是却被google叫停了 一看到这种事情,很多人都是膝跳反射式的数落google的不是 其实这件事上google有自己的苦衷 http://lwn.net/Articles/211153/

用链表申请专利被批准!

其实这篇文章是想谈谈软件专利。 首先声明我不是一个律师。这是一个很常见的声明,英文里常用这个缩写IANAL。 先来看一个软件专利具体例子。链表,一个最最基础的数据结构,2006年4月11日在美国被批准为专利。 http://www.patentstorm.us/patents/7028023-fulltext.html 知道什么是链表的人看到这里恐怕会禁不住笑起来。但是担忧是不必的。 就这个例子,我们来看看软件专利的一些基本特性。首先,专利意味着什么?如果我申请到了一个专利,如果你实现了这个专利,那么你就要付给我专利费。这是一种很高明竞争方式,兵不血刃。中国的整个DVD产业就是毁灭于国外相关组织的专利武器之下。我们花费血本搞TD-SCDMA也是不希望3G的舞台被外国人所独占。怎么对抗专利?一个是找到prior art。他不是说是他发明的么?我们就找证据证明在他之前就有人这么用。所以链表的专利是可以无视的。或者,我们也搞专利,让他避不过,你要告我,我也告你。具体到软件专利,值得注意的一点是不是所有的国家都承认软件专利。美国承认软件专利。但是在欧盟,软件专利是不存在的。中国跟随美国。所以才有联想把从/proc获取机器硬件信息来做为专利来申请。很多方面技术上的差距是天壤之别,但是在专利的sb程度上却是半斤八两。有人会想链表这样已经被人用了几十年的数据结构,怎么还可能被批准为专利呢?这就是另一个问题了,就是据说专利局的人批的专利数量和自己获益多少是正相关的,他们才不会去查prior art。美国几乎每个软件公司都有他们自己的patent portfolio,否则就无法生存。因为很多专利是很难避过的,为了不让别人告自己,自己也需要掌握别人无法避过的专利。有一些公司什么都不生产,唯一的产品就是专利,坐收专利费,这种公司被称为patent trolls。他们有一个优点,就是他们自己没有产品,所以没有可能侵犯任何人的专利,不怕别人来告,但他们可以随便告别人,只要对方用了他们的专利而未交专利费。微软就建立过至少一个这样的patent troll。Linux是否使用了别人的专利?是可能的。有人研究过,提出了很多,而且分属于不同的公司。但是到现在没有人追究,因为Linux如果没有了,对任何人,除了微软,恐怕都没有好处。事实上,如果每一个软件专利都严格的追究下去的话,整个软件产业就马上玩

Microsoft/Novell deal: something happened on a Chinese Linux forum

Image
I write this in English so that all people around the world could get a chance to know what's going on in one of the biggest Chinese Linux forum linuxsir.org . On SUSE Linux sub-forum of linuxsir.org, there were some threads talking about MS and Novell's deal recently. But unfortunately, someone with high privilege in the forum combined these threads and moved them to a place that few people visit. So people won't see it in its original place. Moreover, people can't found it through the link provided in the reply-notification email linuxsir.org mailed to them. The pictures below illustrate this: Unless you are familiar with the operation of vBulletin or use search function of the forum you won't see it again. So the discussion discontinued, or rather _stopped_ by external and yet irresistible force. Then someone expressed angriness about this in SUSE sub-forum, and more people followed him. The discussion went on. However, this thread again is "combined" n

Novell: We disagree

http://www.novell.com/linux/microsoft/community_open_letter.html Highlights: We disagree with the recent statements made by Microsoft on the topic of Linux and patents. Importantly, our agreement with Microsoft is in no way an acknowledgment that Linux infringes upon any Microsoft intellectual property. When we entered the patent cooperation agreement with Microsoft, Novell did not agree or admit that Linux or any other Novell offering violates Microsoft patents. Backgrouds: Ballmer on Novell, Linux and patents http://blog.seattlepi.nwsource.com/microsoft/archives/108806.asp?source=rss