一个很有意思的问题(文本分类)
求一系列字符串的最长公共子串的问题大家都很了解,今天在琢磨垃圾信息的时候突然想到另一个问题。
好比说,5个字符串:
www.domain.com
domain.com
domain.net
www.domain.net
spammer.domain.net
共 367 篇文章。
求一系列字符串的最长公共子串的问题大家都很了解,今天在琢磨垃圾信息的时候突然想到另一个问题。
好比说,5个字符串:
www.domain.com
domain.com
domain.net
www.domain.net
spammer.domain.net
Looking forward to it. Only 1 week left to RELENG_6!
今天偶然发现以前做的一套CMS里面的显示发布日期的功能被干掉了。
这已经不是第一、第二或者第三次在我毫不知情的情况下作的commit了。而且我注意到commit log里面还赫然写着"Approved by: delphij"。
Today Giorgos Keramidas (keramida@) has noted that the following skill that can minimize lock period:
有一天,我们发现了一个bug。
然是有人决定把它workaround掉,大家都很开心。
突然有一天,那个bug被修了。
然后workaround变成了bug……所以说坚决抵制workaround。。。
Murray老大在FreeBSD.org发的一则消息,说……Eric Raymond在巴西举行的FISL (Fórum Internacional de Software Livre,国际软件发布论坛)中提到,“Basically, we don’t need GPL. It’s based on the belief that open source software is weak and needs to be protected. With it, we continue injuring ourselves, cutting ourselves from the economic benefits of BSD license”(基本上,我们并不需要GPL。它是基于认为开源软件非常弱小因而需要保护而产生的。由于它(GPL),我们在不断伤害我们自己,并将我们与BSD授权在经济上的优点割裂开来)。
所以我今天一鼓作气搞到了5.9。还有8个section,余下的loader估计基本上会搞定。
现在可以通过 这里 访问最新的快照。如果有问题记得跟我联系。
kan 2005-06-03 03:29:21 UTC
FreeBSD src repository
src/contrib/gcc - Imported sources
Update of /home/ncvs/src/contrib/gcc
In directory repoman.freebsd.org:/tmp/cvs-serv9201
Log Message:
Gcc 3.4.4 release.
Status:
Vendor Tag: FSF
Release Tags: gcc_3_4_4_20050518I have an idea: let we have “a” is the number to determine.
return ( (0 == (a & (a-1))) && (a > 0))
Despite the style of the code, is there some better solution? Note that a is a native integer type (say, int, long, long long, etc).