首页 > 2014年03月18日 > 全部分享
Notes about "Exploring Expect"
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 Virtual Machines with Vagrant and Puppet
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算法实现了在多段字符串中匹配正则表达式,对比NFA算法可以看到它将pc由局部变量提升为类成员,以保存中间匹配状态,另外在匹配成功后将pc恢复到null状态。实际使用中,此类还应该增加一个"reset"方法,将pc值置为null,以便用户可以显式要求重新开始匹配。public cl...
分类:其他   时间:2014-03-18 11:45:46    收藏:0  评论:0  赞:0  阅读:367
Python包安装过程
以下是paramiko-1.7.7.1的安装过程,可以看到整个过程分为步,第一步是build,就是拷贝源文件到build文件夹里,F:\VMFiles\tmpFiles\paramiko-1.7.7.1>F:\Software\Python27\python.exe setup.py install...
分类:编程语言   时间:2014-03-18 11:45:56    收藏:0  评论:0  赞:0  阅读:420
用Ultraedit调试tk程序
tk没有自己的编译环境,Ultraedit中仅3步就可以打造一个tk调试环境: 1. 为UE添加tcl/tk语法高亮支持:从UE的网站上下载tcl/tk的wordfile; 2. 添加编译命令到菜单中:UE主菜单【高级->工具配置】出现“工具配置窗口:在【命令】标签页中:点击按钮“插入”【菜单项目】...
分类:其他   时间:2014-03-18 11:46:03    收藏:0  评论:0  赞:0  阅读:539
Send Excerpts from Jenkins Console Output as Email Contents
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
为VIM添加Python扩展
VIM的自带的脚本功能很强,但只能用在VIM自己上,如果让它支持Python脚本,那简直就无敌了,这个想法当然不是我想出来的,应该说英雄所见略同,于是乎vim7.2就内建了对python2.4的支持,这么有前途的功能当然得尝尝鲜啦,下面就是实现过程: 1 检查vim是否支持python;用:vers...
分类:编程语言   时间:2014-03-18 11:46:19    收藏:0  评论:0  赞:0  阅读:502
Subversion Backup and Restore
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
Groovy正则表达式复杂逻辑判断实例
下面的两个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
用expect做自动运行脚本
下面的脚本演示了在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
Build a ZenTao Server on Linux
Download xampp for linux on Apache Friends, file name: xampp-linux-1.8.3-2-installer.run;Intallation guide: Linux FAQs on Apache Friends$ chmod 755 xa...
分类:系统服务   时间:2014-03-18 11:46:48    收藏:0  评论:0  赞:0  阅读:687
使用Cobertura做代码覆盖率测试
经验总结:首先要把cobertura.jar包含ant的classpath路径中,其次要求它包含在测试用例的classpath中;使用cobertura做代码覆盖率测试中出现的问题:覆盖率始终为0,不论是否有可用的测试用例都如此;解决问题的历程:第一步:在被测工程中增加了一个很简单的方法,在测试工程...
分类:其他   时间:2014-03-18 11:46:54    收藏:0  评论:0  赞:0  阅读:902
Manage sshd Service on CentOS
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的常用配置
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
更换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
Change Default Application on Linux Mint Xfce
Alt-F3 -> Preferred Application
分类:移动平台   时间:2014-03-18 11:47:14    收藏:0  评论:0  赞:0  阅读:523
Speed up Downloading Files on Linux
Compared aria2c, axel and wget, aria2c is the best. It support multi-thread download (with "-s ") and resume partially downloaded files automatically ...
分类:系统服务   时间:2014-03-18 11:47:20    收藏:0  评论:0  赞:0  阅读:591
[转]一路且行且思考
转自:http://www.timetimetime.net/haoshu/27699.html“每个人心里都有一扇通往自由的们,但都被苦闷的生活所绑,或因惰性所累。”搭车旅行,或许,是每一个内心向往自由和流浪的人都想要去做的事情。我有一个大学同学,攒了一年的工资之后,下定决心辞职,去了西藏和云南,...
分类:其他   时间:2014-03-18 11:47:27    收藏:0  评论:0  赞:0  阅读:474
1561条   上一页 1 ... 31 32 33 34 35 ... 79 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!