Highlight all occurrences of selected words
分类:
其他 时间:
2014-03-18 11:45:11
收藏:
0 评论:
0 赞:
0 阅读:
416
软件开发和维护过程中,日志是必不可少的工具,对于一个10万行规模的产品,要分析它的某一部分,最简单的方法是将log4j配置文件的rootLogger的输出级别设置为debug,但这样将使产品的所有部分的debug信息都输出,一方面会对产品性能产生巨大影响,另一方面所关心部分的debug信息会淹没在其...
分类:
其他 时间:
2014-03-18 11:45:14
收藏:
0 评论:
0 赞:
0 阅读:
498
Chapter 3Section "The expect Command":
expect_out(0,string) can NOT be written as "expect_out(0, string)", blank before
"string" will make a mistake;C...
分类:
其他 时间:
2014-03-18 11:45:33
收藏:
0 评论:
0 赞:
0 阅读:
478
Create the following puppet manifest and start
VM with vagrant, you get a base production environment.$
pwd/home/chad/docs/vagrant-prj/gcpserver$ cat ...
分类:
其他 时间:
2014-03-18 11:45:50
收藏:
0 评论:
0 赞:
0 阅读:
534
下面的代码基于NFA算法实现了在多段字符串中匹配正则表达式,对比NFA算法可以看到它将pc由局部变量提升为类成员,以保存中间匹配状态,另外在匹配成功后将pc恢复到null状态。实际使用中,此类还应该增加一个"reset"方法,将pc值置为null,以便用户可以显式要求重新开始匹配。public
cl...
分类:
其他 时间:
2014-03-18 11:45:46
收藏:
0 评论:
0 赞:
0 阅读:
367
tk没有自己的编译环境,Ultraedit中仅3步就可以打造一个tk调试环境: 1.
为UE添加tcl/tk语法高亮支持:从UE的网站上下载tcl/tk的wordfile; 2.
添加编译命令到菜单中:UE主菜单【高级->工具配置】出现“工具配置窗口:在【命令】标签页中:点击按钮“插入”【菜单项目】...
分类:
其他 时间:
2014-03-18 11:46:03
收藏:
0 评论:
0 赞:
0 阅读:
539
Sometimes we need to send some excerpts from
Jenkins console output (job logs) as email, such as test results, etc.Email-ext
plugin of Jenkins can do ...
分类:
其他 时间:
2014-03-18 11:45:59
收藏:
0 评论:
0 赞:
0 阅读:
369
Backup Specified RevisionBackup specified
revision (here is 20):$ cd /opt/svnRepo$ svnadmin dump deployTest/ -r 20 >
deploy-r20.dumpRestore backup:$ m...
分类:
其他 时间:
2014-03-18 11:46:22
收藏:
0 评论:
0 赞:
0 阅读:
531
下面的两个pattern(p1和p2)分别代表了(A or B) and (C or
D)和(A and B) or (C and
D)的跨行匹配结果,当然还可以用正则表达式构建更复杂的pattern,但这个实例证明了Groovy具备跨行匹配复杂逻辑表达式的能力。
值得注意的是,多行匹配文本时需要在...
分类:
其他 时间:
2014-03-18 11:46:32
收藏:
0 评论:
0 赞:
0 阅读:
466
控制反转(Inversion of Control,
IoC)的主要作用是为软件模块解耦,增加可测性,提高模块内部聚合性,依赖注入(Dependency Injection,
DI)是IoC的一种特殊形式,Benjamin J Evans: The Well-Grounded Java Develo...
分类:
其他 时间:
2014-03-18 11:46:38
收藏:
0 评论:
0 赞:
0 阅读:
474
下面的脚本演示了在Ubuntu上安装expect,写一个切换用户的expect脚本,并运行脚本看到效果的过程。root@guserver:~# apt-get
install expect godu@guserver:~$ cat su.exp #!/usr/bin/expect set timeo...
分类:
其他 时间:
2014-03-18 11:46:35
收藏:
0 评论:
0 赞:
0 阅读:
430
经验总结:首先要把cobertura.jar包含ant的classpath路径中,其次要求它包含在测试用例的classpath中;使用cobertura做代码覆盖率测试中出现的问题:覆盖率始终为0,不论是否有可用的测试用例都如此;解决问题的历程:第一步:在被测工程中增加了一个很简单的方法,在测试工程...
分类:
其他 时间:
2014-03-18 11:46:54
收藏:
0 评论:
0 赞:
0 阅读:
902
Check the current sshd status:service sshd
statusStart sshd service:service sshd startSet sshd autostart on system
startupchkconfig sshd onList the cu...
分类:
其他 时间:
2014-03-18 11:46:51
收藏:
0 评论:
0 赞:
0 阅读:
455
hg的配置文件分为全局配置和每个Repo自己的配置,Ubuntu系统下全局配置文件是~/.hgrc,Win7系统下是C:\Users\chad\mercurial.ini,各repo的配置文件是$REPO_PATH/.hg/hgrc。常用配置设置Repo的用户名[ui]
username = You...
分类:
其他 时间:
2014-03-18 11:46:58
收藏:
0 评论:
0 赞:
0 阅读:
475
更换QT版本之后,VS中的包含路径等的宏没有跟着变换VS的宏主要定义的位置有:1.
windows的环境变量2. VS的属性页(Property Manager 中的property sheet)3.
VS的MyProject.vcxproj.user文件中QT版本更换之后,在这里更改才有效。一般自...
分类:
其他 时间:
2014-03-18 11:47:04
收藏:
0 评论:
0 赞:
0 阅读:
451
今天是第三个礼拜上班,每天告诉自己要干什么,可是自己每天的工作量就达不到,从今天开始我的振作起来,不能在这样下去了,赶紧买些书去好好读,在自己的周围都是学校,这么好的条件,为什么不去利用呢!我觉得我的趁这么美好的时间做点有益的事情!别让自己颓废了.......
让自己每天都在进步,让自己每天都很阳光...
分类:
其他 时间:
2014-03-18 11:47:10
收藏:
0 评论:
0 赞:
0 阅读:
325
转自:http://www.timetimetime.net/haoshu/27699.html“每个人心里都有一扇通往自由的们,但都被苦闷的生活所绑,或因惰性所累。”搭车旅行,或许,是每一个内心向往自由和流浪的人都想要去做的事情。我有一个大学同学,攒了一年的工资之后,下定决心辞职,去了西藏和云南,...
分类:
其他 时间:
2014-03-18 11:47:27
收藏:
0 评论:
0 赞:
0 阅读:
474
During unit test I encounter a
"java.lang.NoSuchMethodError:
net.sourceforge.cobertura.coveragedata.ClassData.touchJump(IIZ)V" exception. I
find there...
分类:
其他 时间:
2014-03-18 11:47:52
收藏:
0 评论:
0 赞:
0 阅读:
422
http://www.terracotta.org/confluence/display/docs27/Admin+Console+Guide#AdminConsoleGuide-Roots
分类:
其他 时间:
2014-03-18 11:47:56
收藏:
0 评论:
0 赞:
0 阅读:
344
Java的字符串处理方法trim是如何改变字符串的?下面是一个例子:@Testpublic void
testTrim() { String test = "origin"; String ori = "origin\r\n";
assertFalse(ori.equals(test)); Stri...
分类:
其他 时间:
2014-03-18 11:48:02
收藏:
0 评论:
0 赞:
0 阅读:
562