收集了一些Cocos2dx里面主要单词的翻译。Toggle:切换Finite:有限Instant:瞬时interval:间隔Flip:翻转place:座位,放置Target:目标reverse:反向Sequence:数列,序列;顺序;连续;片断插曲Repeat:重复Spawn:大量的,引起,酿成;(...
分类:
其他好文 时间:
2015-05-19 16:18:44
阅读次数:
115
简单的登陆脚本这样就不用每次都输入ssh命令了,使用密码还是有些不安全,谨慎使用。#!/usr/bin/expect -f
#filename: auto_login.sh
#author: orangleiu v1.0
# out time is 30 s
set timeout 30#login first server, middle login
spawn ssh erya@221.7.1...
分类:
其他好文 时间:
2015-05-16 23:25:41
阅读次数:
231
转自:http://blog.chinaunix.net/uid-20639775-id-2453085.html Expect是在Tcl基础上创建起来的,它还提供了一些Tcl所没有的命令,它可以用来做一些linux下无法做到交互的一些命令操作,在远程管 理方面发挥很大的作用。 spawn命令激活一...
分类:
其他好文 时间:
2015-05-07 18:30:29
阅读次数:
127
MIT 操作系统实验 MIT JOS lab5
Lab 5: File system, Spawn and Shell
Disk Access
The x86 processor uses the IOPL bits in the EFLAGS register to determine whether protectedmode code is...
分类:
其他好文 时间:
2015-04-28 21:03:12
阅读次数:
310
#!/usr/bin/expect -f
set timeout 10
set name [lindex $argv 0]
set pwd [lindex $argv 1]
set ip [lindex $argv 2]
spawn ssh -l $name $ip
expect "password:"
send "$pwd\r"
interact...
分类:
其他好文 时间:
2015-04-27 11:22:01
阅读次数:
110
#include
#include
#include
int main(int argc, char *argv[])
{
fprintf(stderr, "EACCES : %s\n",strerror(EACCES));
errno = ENOENT;
perror(argv[0]);
return 0;
}函数fprintf:int fprintf(FILE *stream,...
分类:
其他好文 时间:
2015-04-26 22:56:07
阅读次数:
330
Python引入subprocess模块来管理子进程,以取代一些旧模块的方法:如 os.system、os.spawn*、os.popen*、popen2.*、commands.*不但可以调用外部的命令作为子进程,而且可以连接到子进程的input/output/error管道,获取相关的返回信息.....
分类:
编程语言 时间:
2015-04-26 12:21:40
阅读次数:
209
-module(exe5_2).
-export([start/2]).
%Points 是投掷点的个数 Cores是核数,为2的幂
start(Points,Cores)
->spawn(fun()->parent_proces(Points,Cores) end),
io:format("").parent_proces(Points,Cores) ->
Poin...
分类:
其他好文 时间:
2015-04-20 17:06:16
阅读次数:
155
??
BillBoard的使用
auto root = Sprite3D::create();
root ->setNormalizedPosition(Vec2(.5,.25));
addChild(root);
BillBoard / Spawn / Sequence 的使用
auto mode1 = Sprite3D::create("Sprite3DTest/orc...
分类:
其他好文 时间:
2015-04-18 13:09:21
阅读次数:
190
问题
在服务器后台nodejs上使用svn导入变更记录出现“Error: spawn ENOMEM”错误提示,查了下发现是“底层抛了错误,并且设置了errno为ENOMEM,内存不够用”
现象
登录到后台系统,发现有很多svn进程驻留在了后台,于是想着应该是异常情况后svn进程出现了驻留不退出的情况
过程
调试发现了两种情况会出现驻留的情况,一种是用户名使用了邮箱全写,比...
分类:
Web程序 时间:
2015-04-17 11:29:54
阅读次数:
330