开始录制会话终端:script -t 2> timing.log -a output.sessiontype commands................exit其中timing.log 用于存储时序信息;output.session用于存储命令输出.-t 选项用于将时序导入error 2>则用...
分类:
其他好文 时间:
2014-12-19 00:27:19
阅读次数:
153
一、生成ip 二.在场景中使用IP 欺骗 1.runtime setting 2.勾选“Scenario”--“Enable IP spoofer”; 3.勾选“Tools”—“Export Mode”; 4.“Tools”—“Options”—“General” Multiple IP addre...
分类:
其他好文 时间:
2014-12-18 22:00:23
阅读次数:
205
Thanks tophoenixhelp I was able to setup multiple default routes, or a default route per network/interface to be precise, in Debian/Linux it is as sim...
分类:
其他好文 时间:
2014-12-18 18:24:20
阅读次数:
211
1. 取模运算时,将两个数字从double 转换为long,因为c语言中%运算只能用于整数。
分类:
其他好文 时间:
2014-12-18 13:14:04
阅读次数:
174
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple peaks, in ...
分类:
其他好文 时间:
2014-12-18 00:17:44
阅读次数:
146
【题目】
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remai...
分类:
其他好文 时间:
2014-12-17 18:37:28
阅读次数:
188
[root@ ~]# mysql -h 192.168.0.* -uroot -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 8174Serv....
分类:
数据库 时间:
2014-12-17 14:34:00
阅读次数:
235
提高性能
短语和邻近度查询比简单的match查询在性能上更昂贵。match查询只是查看词条是否存在于倒排索引(Inverted Index)中,而match_phrase查询则需要计算和比较多个可能重复词条(Multiple possibly repeated)的位置。
在Lucene Nightly Benchmarks中,显示了一个简单的term查询比一个短语查询快大概10倍,比一...
分类:
其他好文 时间:
2014-12-17 12:54:34
阅读次数:
290
3. Day-to-day use3.1 Everyday commandsMost of the common commands you will need are in the SmartSVN toolbar:UpdateCommitAddRemoveMoveRevertDeleteFixCh...
分类:
其他好文 时间:
2014-12-16 18:39:54
阅读次数:
410
解决办法: This has helped me in installing aufs, run the following commands: sudo apt-get install lxc wget bsdtar curl
sudo apt-get install linux-image-extra-$(uname -r)
sudo modprobe aufs...
分类:
其他好文 时间:
2014-12-16 11:55:27
阅读次数:
241