以下注释的源代码都在memcached项目的assoc.c文件中 1 /* how many powers of 2's worth of buckets we use */ 2 unsigned int hashpower = HASHPOWER_DEFAULT; /* 哈希表bucket的级.....
分类:
其他好文 时间:
2014-07-18 15:20:11
阅读次数:
344
# pacman -S apache-ant参考:http://blog.csdn.net/linshutao/article/details/6638116
分类:
其他好文 时间:
2014-07-18 14:35:23
阅读次数:
241
1、Dom4j概述dom4j is an easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework a...
分类:
其他好文 时间:
2014-07-18 14:15:07
阅读次数:
249
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314
E - Easy TaskDescriptionCalculating the derivation of a polynomial is an easy task. Given a function f(x) , we use (f(x))' to denote its derivation. W...
分类:
其他好文 时间:
2014-07-18 00:15:29
阅读次数:
262
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight...
分类:
其他好文 时间:
2014-07-17 23:34:02
阅读次数:
486
--创建数据库createdatabase数据库go--打开数据库use数据库--删除数据库dropdatabase数据库Go--创建数据表createtable数据表(列名1数据类型1限定条件(是否是主外键、是否为空),列名2数据类型2限定条件(是否是主外键、是否为空))go--删除数据表drop...
分类:
数据库 时间:
2014-07-17 23:11:37
阅读次数:
381
连接数据库 输入值 存入数据库 关闭import stringimport mysql.connectorconn=mysql.connector.connect(user='root',password='test',database='dalian',use_unicode=True)curso...
分类:
数据库 时间:
2014-07-17 22:02:37
阅读次数:
412
今天用eclipse,当打算run一个带有main函数的class时,出现editor does not contain a main type的错误框。
baidu了一下,迅速解决问题:原来这个class所在包没有被添加到build path中。
解决方法:在左侧的package explorer中右击这个class所在包的上一级目录--build path--use as source f...
分类:
其他好文 时间:
2014-07-17 20:36:18
阅读次数:
225
如果没有以下命令,可以先去添加一个http://repoforge.org/use/ 的yum源。
ifstat命令
ifstat可以监控网络接口,比较简单地查看网络流量
ifstat默认是不监控回环接口的流量的流量的单位是KB/s
使用ifstat -a可以监控所有的接口
-l 监测环路网络接口(lo)。缺省情况下,ifstat监测活动的所有非环路网络接口...
分类:
其他好文 时间:
2014-07-17 19:10:38
阅读次数:
238