Development

GNOME 2.16 committed

| Development

没想到这么快……不过已经装了桌面的同学们,hia hia hia

参与评论

Python 2.5的默认地位惨遭否定

| Development

今天终于尘埃落定了。

阅读全文…( 本文约 122 字,阅读大致需要 1 分钟 )

When you can use a different license?

| Development

To quote M. Warner Losh (with permission):

So long as there’s old code, you can’t replace the copyright, unlessthe old code that remains is not protectable by copyright any more(eg, if it is just { and } lines). If you add your own implementation of the 50 lines in question, or move them to a separate file, then you can put your own copyright/license statement on the code you wrote.

阅读全文…( 本文约 156 字,阅读大致需要 1 分钟 )

如何计算不小于给定数的最小的2整数次方幂?

| Development

dengxf同学提到的一个问题,想了一下,想到的一个算法:

xx为已知量,yy为目标量,kk为迭代轮数,

  1. y=x1y=x-1k=0k=0
  2. 对于 yy 右移 2k2^k>0> 0的情形,执行下列操作,直到此条件不符合为止:
    y与前述结果相与;kk累进11
  3. yy累进11

原理:第(2)步的循环将除最高位的所有0均置位。最后一步(3)修正这一值。

阅读全文…( 本文约 199 字,阅读大致需要 1 分钟 )

trac的ticket notification

| Development

半作弊条性质。

找到trac环境目录。

进入其下的conf,揪出trac.ini
编辑,找到下面的段落替换为类似的内容

[notification]
always_notify_owner = true
smtp_always_cc = !!你的邮件列表名字!!
smtp_password = !!密码!!
smtp_enabled = yes
smtp_replyto = !!回复给谁?通常是管理员或留空!!
smtp_port = 25
always_notify_reporter = yes
smtp_server = !!邮件服务器名字!!
smtp_from = !!邮件以谁的身份发出?通常是trac管理员!!
smtp_user = !!登录邮件服务器的用户名!!

阅读全文…( 本文约 223 字,阅读大致需要 1 分钟 )

Patch to replace GNU gzip with NetBSD gzip

| Development

The patch is available at: http://people.freebsd.org/~delphij/for_review/bsd_gzip/. Please note that this is considered experimental and it is preliminary for FreeBSD for now, while I think it is very mature code and has been available on NetBSD for years. Positive and negative feedbacks are all welcome.

参与评论

我准备杀掉GNU gzip

| Development

最近一周FreeBSD发布了多个安全公告,其中有一个gzip的安全问题是Google的人发现的,由于gzip目前已经长期处于无人维护的状态,我认为是时候把这个程序杀掉了。(这次安全更新导致了某些文件无法解压缩)

阅读全文…( 本文约 151 字,阅读大致需要 1 分钟 )

GIF明天就自由了

| Development

今天看到ijliao长辈提到,根据Software Freedom Law Center的说法,明天GIF就是完全自由的了。

参与评论

讲解IPv6的书

| Development

今天Qing LI在-developers邮件列表中介绍了他和神明达哉(Tatuya Jinmei)、Keiichi Shima两位KAME重量级人物共同撰写的关于KAME实现的书。从出版社的介绍来看,这本书将于11月正式发布。[更正:作者说,此书应在10月而非11月发布]

阅读全文…( 本文约 317 字,阅读大致需要 1 分钟 )

Bug fixed in rss.js

| Development

It turns out that just doing a substring “invalid” search within the XML DOM’s responseText is silly and I have replaced it with an explicit compare. This is still imperfect, though, but fairly bullet-proof as I added an “invalid” in recent blog which caused the RSS reader to consider the feed itself is invalid :-(

参与评论