码迷,mamicode.com
首页 >  
搜索关键字:expect    ( 1278个结果
expect实现配置机器信任关系
利用expect的交互功能,自动配置信任机器之间的信任关系。代码里会判断机器是否生成了秘钥,如果没有生成过,则自动帮助你执行 ssh-keygen 1 #!/bin/sh 2 3 expect_ssh_copy_id() 4 { 5 if [ "$#" -ne "5" ]; then...
分类:其他好文   时间:2014-06-02 21:46:37    阅读次数:357
Creating a Timer
【Creating a Timer】 Even if you specify a leeway value of 0, you should never expect a timer to fire at the exact nanosecond you requested. The system....
分类:其他好文   时间:2014-05-26 16:21:39    阅读次数:338
JavaScript Patterns 2.5 (Not) Augmenting Build-in Prototypes
Other developers using your code will probably expect the built-in JavaScript methods to work consistently and will not expect your additions. And pro...
分类:编程语言   时间:2014-05-22 02:21:49    阅读次数:298
介绍EasyMock
你能够依据调用次序来mock同一个办法:EasyMock.expect(request.getParameter("userName")).andReturn("trilogy").once();EasyMock.expect(request.getParameter("userName")).an...
分类:其他好文   时间:2014-05-21 22:17:46    阅读次数:248
linux中的likely与unlikely
likely() 与 unlikely()是内核(2.6的版本应该都有)中定义的两个宏。位于/include/linux/compiler.h中, 具体定义如下: #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) __builtin_expect是gcc...
分类:系统相关   时间:2014-05-21 06:36:34    阅读次数:368
expect简单用法
1 #!/usr/expect/bin/expect -f 2 3 4 set loginuser [lrange $argv 0 0] 5 set loginpass [lrange $argv 1 1] 6 set ipaddr [lrange $argv 2 2] 7 set port ...
分类:其他好文   时间:2014-05-15 16:59:19    阅读次数:332
学习nodejs -02
断言:学java的时候学过断言,但一直用的很少,node中也有varassert=require(‘assert‘) console.info(‘.......startapp.......‘); varactual=1; varexpect=‘1‘ vara; //判断是否为真 assert(a,‘isnotvalid‘); assert.ok(0,‘isnoteffective‘); //arg[0]为真实值,arg[1]期望值,a..
分类:Web程序   时间:2014-05-15 09:09:47    阅读次数:373
Conceptual blockbusting- chap2 perceptual blocks
Page 30Perceptual blocks are obstacles that prevent the problem-solver from clearly perceiving either the problem itself or the information needed to ...
分类:其他好文   时间:2014-04-28 00:54:37    阅读次数:403
1278条   上一页 1 ... 126 127 128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!