选择chaos这个词是因为~~实在很难找到一个更合适的词来形容这儿了……
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
Read more...
move them to a separate file, then you can put your own
copyright/license statement on the code you wrote.
FreeBSD基金会 又一次面临501(c)(3)资格问题。建议有此财力的人适当捐一些来帮助基金会达到募捐的要求。详情请参见首页。
Read more...参加人员:delphij, nemo, quakelee, 黑山老妖, 端木, liu8han, 蛇s, 丁舜佳, liukang, monkeyfu。
地点:九门大胡同
时间:2006年10月11日 19:00左右。
请密切注意此处的通知。
Read more...dengxf同学提到的一个问题,想了一下,想到的一个算法:
令x为已知量,y为目标量,k为迭代轮数,
1: 令y=x-1,k=0
2: 对于 y 右移 2^k 位 > 0的情形,执行下列操作,直到此条件不符合为止:
y与前述结果相与;k累进1。
3: y累进1。
原理:第(2)步的循环将除最高位的所有0均置位。最后一步(3)修正这一值。
但是感觉不太好,有没有更好的办法呢?
Read more...半作弊条性质。
找到trac环境目录。
进入其下的conf,揪出trac.ini
编辑,找到下面的段落替换为类似的内容
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 = !!登录邮件服务器的用户名!!
调试:
\[logging\]
log_file = trac.log
log_level = DEBUG
log_type = none
中的log_type=改为= file,然后去log/trac.log蹲点。调好改回。
今天突发奇想找到的。
我们是共产主义接班人,
继承革命先辈光荣传统,
爱祖国,爱人民,
鲜艳的红领巾飘扬在前胸。
不怕困难,不怕牺牲,顽强学习,
坚决斗争,向着胜利勇敢前进,
向着胜利勇敢前进,前进,
向着胜利勇敢前进,
我们是共产主义接班人。
For those who does not track FreeBSD-CURRENT -current@, Andre Opperamann (andre@) has just posted a new progress for his TCP/IP optimization:
This is a continuation of the previous postings with similiar titles. New is a specific soreceive_stream() function for stream protocols (primarily TCP)
Read more...
that does only one socket buffer lock per socket read instead of one per data mbuf
copied to userland. When doing netperf tests with WITNESS (full lock tracking and
validation enabled) the receive performance increases from ~360Mbit/s to ~520Mbit/s.
Without WITNESS I could not measure any statistically significant improvement on a
otherwise unloaded machine. The reason is two-fold: 1) per packet we do a wakeup
and readv() is pretty much as many times as packets come it, thus the general over-
head dominates; 2) the packet input path has a pretty high overhead too. On heavily
loaded machines which do a lot of high speed receives a performance increase should
be measureable.
An internal discussion happened in -developers@ has finally decided that we put ULE scheduler back to the “experimental” state, in order to reduce the number of reports about crashes and other bad things for it.
Currently the fact that ULE is not being actively maintained is the cause of this change. We hope that we can find someone who has interest on it. Additionally, it is worthy to have a look at David Xu’s new “CORE” scheduler (a ULE fork, using Linux’s algorithm).
Read more...以下内容为作弊条,仅供参考;只保证在FreeBSD下能用。
为postfix配置TLS的关键是产生自己的CA证书,并签署一年一续的服务证书。注意一定要保管好前者的私钥!
第一步,创建自签名CA:
mkdir /usr/local/etc/ca
cd /usr/local/etc/ca
mkdir certs crl newcerts private
echo 「01」 > serial
cp /dev/null index.txt
cp /etc/ssl/openssl.cnf openssl.cnf
vi openssl.cnf
之前zoomq同学说trac-dev版本很好用,不过我总觉得在如此重要的生产系统上玩CURRENT一类的东西是给自己找麻烦,可是trac的发行版本一直都没有出,直到前几天扫描PR,发现宋政隆同学已经提交了一个patch,于是直接升级了。
没听说过trac,专职做开发的同学请自觉面壁一分钟 :P
Read more...