摘要: 这些函数在所有知名的库中可能都可以看到。它们提供了柯里化的方法,可通过编写不同的函数来实现功能。优秀的 JavaScript 开发者可以随时说出这三个函数的用法。 本质上,它们是函数的原型方法,通过改变行为来实现某些功能。根据 JS 开发者 Chad 的说法,它们的用法是这样的: 当希望延迟调用带有 阅读全文
posted @ 2019-03-18 16:54 冬之夜 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 查看文档/etc/passwd 文档并删除2,5行[root@localhost yaotameng]# nl /etc/passwd |sed '2,5d' 1 root:x:0:0:root:/root:/bin/bash 6 sync:x:5:0:sync:/sbin:/bin/sync 7 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown 8 halt:x:7:0:halt:/sbin:/sbin/halt 9 mail:x:8:12:mail:/var/spool/mail:/sbin/nolo... 阅读全文
posted @ 2013-04-16 16:58 冬之夜 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1.搜索特定字符串[root@localhost ~]# grep 'the' anaconda-ks.cfg (在anaconda-ks.cfg中查找包含the的行)[root@localhost ~]# grep -n 'the' anaconda-ks.cfg (-n显示行号)反选,即不包含the的行[root@localhost ~]# grep -vn 'the' anaconda-ks.cfg取得不分大小写的the[root@localhost ~]# grep -in 'the' anaconda-ks.cfg2.[ 阅读全文
posted @ 2013-04-10 17:11 冬之夜 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 变量定义的基本规则:1.变量名和变量内容以一个“=”来连接 如 myname=zhangsan2.等号两边不能直接接空格,如下为错误的myname = zhangsan 或者 myname=zhang san3.变量名可以为字母或数字,但不能以数字开头,如下是错误的2myname=zhangsan4.变量内容有空格可以使用“”双引号或者‘’单引号将变量内容结合起来,但双引号内的特殊字符如$等,可以保留原有特性单引号内的特殊字符仅为一般内容,纯文本 如[root@www ~]# name=VBird [root@www ~]# echo $name VBird [root@www ~... 阅读全文
posted @ 2013-04-08 09:47 冬之夜 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 于一些数据量较大的系统,面临的问题除了是查询效率低下,还有一个很重要的问题就是插入时间长。我们就有一个业务系统,每天的数据导入需要4-5个钟。这种费时的操作其实是很有风险的,假设程序出了问题,想重跑操作那是一件痛苦的事情。因此,提高大数据量系统的MySQLinsert效率是很有必要的。 经过对MySQL的测试,发现一些可以提高insert效率的方法,供大家参考参考。 1、一条SQL语句插入多条数据。 常用的插入语句如:INSERT INTO `insert_table` (`datetime`, `uid`, `content`, `type`) VALUES ('0', &# 阅读全文
posted @ 2013-04-02 10:49 冬之夜 阅读(300) 评论(0) 推荐(0) 编辑
摘要: loadrunner 中数组的定义:lr_save_string("www.google.com","website_1");lr_save_string("www.baidu.com","website_2");lr_save_string("www.163.com","website_3");lr_save_string("www.sina.com","website_4");lr_save_string("4" 阅读全文
posted @ 2013-03-28 13:53 冬之夜 阅读(318) 评论(0) 推荐(0) 编辑
摘要: web_link("test","TEXT={param}",last)web_link()要求,第一个逗号前的内容必须是字符串。所以如需参数化需要如下:web_link(lr_eval_string("param"),"TEXT={param}",last) 阅读全文
posted @ 2013-03-27 15:28 冬之夜 阅读(249) 评论(0) 推荐(0) 编辑
摘要: free命令详解[root@localhost ~]# free total used free shared buffers cachedMem: 1016672 152640 864032 0 12536 40168-/+ buffers/cache: 99936 916736Swap: 1023992 0 1023992 -buffers/cache:等于第1行的(used-buffers-ca... 阅读全文
posted @ 2013-03-27 10:53 冬之夜 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 在监控系统资源的时候要关闭防火墙,否则会出现以下错误:Monitor name :UNIX Resources. Cannot initialize the monitoring on 192.168.136.143. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to cr 阅读全文
posted @ 2013-03-26 10:24 冬之夜 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 安装make编译器下载地址: http://www.gnu.org/software/make/tarzxvfmake-3.82.tar.gzcdmake-3.82./configuremakemakeinstall注释:centos中不需要安装.2 C++编译器http://www.gnu.org/software/gcc/tarzxvfgcc-c++-4.4.4.tar.gzcdgcc-c++-4.4.4./configuremakemakeinstall注释:centos系统可直接运行: yum install gcc-c++ 安装3 和分析器bison下载地址: http://ww 阅读全文
posted @ 2013-03-26 10:18 冬之夜 阅读(281) 评论(0) 推荐(0) 编辑