自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

旁门左道

没有用的技能

  • 博客(105)
  • 收藏
  • 关注

原创 修改linux IO 句柄数的限制

1. 修改 /etc/sysctl.conf         fs.file-max = 655360# /sbin/sysctl -p    //配置生效2. 修改 /etc/security/limits.conf*  soft  nofile  65536* hard nofile 655363. 编辑 /etc/pam.d/loginsession requir

2012-09-07 17:43:26 3512

原创 Dos命令记录

Dos 批处理的转义符是 ^ ,可以转义 & | > 没有启用变量延迟时可用 %variablename%引用 ,启用变量延迟后必须用 !variable! 引用变量,在 for 循环中使用变量一定要启用变量延迟。setlocal EnableDelayedExpansionDos命令连接符& 执行两个命令不管成功与否&& 前面的命令成功后,才执行后面的命令||

2012-09-07 17:28:45 2086

原创 git使用记录

创建一个新的git项目1. # cd yafei2. # git init3. # git add .4. # git commit如果修改了项目代码,做如下气操作1. git add 修改的文件或新增的文件2. git diff3. git status4. git commit5. git lotgit commit -a 可直接提交所有修改,对

2012-09-07 17:13:30 2181

原创 linux动态库搜索顺序

动态链接器(ld.so或ld-linux.so.x),按照下面的顺序来搜索需要的动态库1. ELF可执行文件中动态段中DT_RPATH所指定的路径,编译代码时,可以对gcc加入链接参数"-Wl,rpath"指定动态库搜索路径2. 环境变量 LD_LIBRARY_PATH 指定的路径3. /etc/ld.so.cache 中所缓存的动态路径,可以通过修改/etc/ld.so.conf指定

2012-09-07 16:01:56 2151

原创 Jmeter变量

1. 在测试计划中自定义变量2. 通过${变量名}引用3. 可通过正则表达式提取器提取Server返回的内容,供后续使用4. 提取出来的变量可以被这样引用 ${变量名_g1}[refname]_g#, and # is the group number, where group 0 is the entire match, group 1 is the match from the

2012-09-07 14:58:34 2164

原创 Jmeter记录

▲ Server Mode,调用 Remote Server.jmeter -n -t testplan.jmx -r [-Gprop=val] -X以Server模式运行./jmeter -DServer_port=54321 -S -j jmeter-server.log$SERVER_PORT=54321 ./jmeter-server▲ when runni

2012-09-07 14:43:46 1991

原创 iptables 防火墙使用

删除原有规则1.iptables -F2.iptables -X3. iptables -t nat -F4.iptables -t nat -X5. iptables -P INPUT DROP /阻止所有网络入包6. iptables -A INPUT -i eth0 -j ACCEPT /接受所有网络7. iptables -A INPUT -i

2012-09-07 14:32:05 2064

原创 Jmeter分布式压测布署

Q../jmeter_server 在linux中出现 “Server failed to start: java.rmi.RemoteException:cannot start. linux-lizn is a loopback address. 或者出现 "Server failed to start: java.rmi.RemoteException:cannot start.unable

2012-09-07 11:42:15 5289

原创 Linux java环境设置

1.下载 jdk-1_5_0_05-linux-i586.bin2.执行 ./jdk-x-x.bin3.需要设置的环境变量,PATH,CLASSPATH,JAVA_HOMEJAVA_HOME=/usr/share/jdk/5.0_05PATH=$JAVA_HOME/bin:$PATHCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME

2012-09-07 11:21:46 2012

原创 需求评审关注点

2. 需求目的:为什么要做?要解决什么问题?想达到什么目的?需求要有数据支撑:有大量用户反馈:功能缺失、功能优化?竞争对手、同类产品是否需求中的每一项都能到用户问题领域中找到对应?。。。。。3. 需求的分级需求必须体现层次性:大需求可以分解成多个小的需求,避免一个陈述表达多个需求模糊化。每个小需求都是独立不可再分的各级小需求明确优先级:高、低。

2012-09-07 10:52:35 3795

原创 SL4A eclipse 开发环境搭建

1.安装Pydev"help" -> "Install New Software"配置python路径2.新建一个Pydev Project3.将SL4A的android.py(在手机的/mnt/sdcard/com.googlecode.pythonforandroid/extras/python目录中)放到新建的工程中4.创建一个加载脚本Launch_app

2012-08-28 15:22:34 2816

原创 SL4A安装

Scripting Layer for Android (SL4A) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have a

2012-08-27 16:34:22 6280 1

转载 单元测试准则

译文出处:http://yangyubo.com/unit-testing-guidelines/原文出处:http://geosoft.no/development/unittesting.html译者 (yospaly) 前言:实施单元测试的时候, 如果没有一份经过实践证明的详细规范, 很难掌握测试的 “度”, 范围太小施展不开, 太大又侵犯 “别人的” 地盘. 上帝的归上帝, 凯

2012-08-15 10:07:46 2568

原创 在vs中使用gtest

* 在vs中使用gtest:PROPERTIES::Date: :By: yafeilee:END:** 准备gtest框架 1.下载gtest-1.6.0.zip2.解压后,进入gtest-1.6.0/msvc目录3.打开gtest工程编译4.将编译生成的gtest.lib和gtestd.lib放入gtest-1.6.0/lib中** 创建测试工程

2012-08-15 09:57:29 3302

原创 V8 and Javascript gotchas

Gotcha #1: this keywordGotcha #2: variable scope and variable evaluation strategy Object properties are not iterated in order (V8) Comparing NaN with anything (even NaN) is always fa

2012-08-09 21:23:44 2280

原创 ElasticSearch安装记录

http://blog.csdn.net/laigood12345/article/category/11138681.下载安装包https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.2.zip2.解压root@bt:/opt/elasticsearch-0.1

2012-08-09 21:07:30 2978

原创 JavaScript Performance Rocks

2012-08-09 17:26:41 2260

原创 pagespeed 摘要 - Optimize browser rendering

Use efficient CSS selectors1.Avoid a universal key selector.2.Make your rules as specific as possible.3.Remove redundant qualifiers.4.Avoid using descendant selectors, especially those t

2012-08-09 17:15:25 1918

原创 pagespeed 摘要 - Minimize payload size

Enable compressionNote that gzipping is only beneficial for larger resources. Due to the overhead and latency of compression and decompression, you should only gzip files above acertain size thresho

2012-08-09 17:07:29 2120

原创 pagespeed 摘要 - Minimize request overhead

Minimize request size1500 bytes 1.Use server-side storage for most of the cookie payload.2.Remove unused or duplicated cookie fields. cookie应小于400bytes Serve static content from a cookie

2012-08-09 16:54:42 2270

原创 pagespeed 摘要 - Minimize round-trip times

Minimize DNS lookupsThe optimal number is somewhere between 1 and 5hosts (1 main host plus 4 hosts on which to parallelize cacheable resources). As a rule of thumb, you shouldn't use more than 1 h

2012-08-09 16:49:39 707

原创 pagespeed 摘要 - Optimize caching

Leverage browser caching1.Set caching headers aggressively for all static resources.Set Expires to a minimum of one month, and preferably up to one year, in the future. (We prefer Expires over C

2012-08-09 16:26:45 448

原创 Clojure介绍

What is Clojure?Clojure is a dynamic,LISP-like programming language that runs on the JVm. HomoiconicCode is DataData is CodeEverything is listFairly functionalRuntime p

2012-08-09 15:59:45 431

原创 <<High Performance JavaScript>>读书笔记-10.Tools

JavaScript Profilingvar Timer = {_data: {},start: function(key) {Timer._data[key] = new Date();},stop: function(key) {var time = Timer._data[key];if (time) {Timer._data[key] = new Da

2012-08-09 14:54:16 678

原创 <<High Performance JavaScript>>读书笔记-8.Programming Practices

• Avoid the double evaluation penalty by avoiding the use of eval() and theFunction() constructor. Also, pass functions into setTimeout() and setInterval() instead of strings.• Use object and arra

2012-08-09 14:46:25 371

原创 <<High Performance JavaScript>>读书笔记-7.Ajax

Data TransmissionRequesting DataThere are five general techniques for requesting data from a server:• XMLHttpRequest (XHR)var url = '/data.php';var params = ['id=934875','limit=20'];

2012-08-09 14:37:10 456

原创 <<High Performance JavaScript>>读书笔记-6.Responsive Interfaces

Browser LimitsCallstack size limitLong-running script limit 100ms Yielding with Timersvar button =document.getElementById("my-button");button.onclick =function(){ oneMethod(); set

2012-08-09 14:16:37 478

原创 <<High Performance JavaScript>>读书笔记-5.Strings and Regular Expressions

//跨浏览器,性能稳定if (!String.prototype.trim) {String.prototype.trim = function() {return this.replace(/^\s+/,"").replace(/\s+$/, "");}} // 长字符串操作时变慢String.prototype.trim = function() {retu

2012-08-09 14:05:20 551

原创 <<High Performance JavaScript>>读书笔记-3.DOM Scripting

HTML collections are array-like objects containing DOM node references. • document.getElementsByName()• document.getElementsByClassName()• document.getElementsByTagName()• document.images• d

2012-08-09 11:38:08 517

原创 <<High Performance JavaScript>>读书笔记-2.Data Access

Scope Chains and Identifier Resolutionfunction add(num1, num2){ var sum = num1 + num2; return sum;}Scope Chain Augmentationwith表达式会临时改变execution context中的Scope chain,一个新的包含

2012-08-09 11:05:56 483

原创 <<High Performance JavaScript>>读书笔记-1.Loading and Execution

标签会阻塞页面的解析过程,新的浏览器已经充许标签之间可以并行下载,但仍然会阻塞其它资源的下载 Nonblocking Scripts 1.Deferred Scriptsdefer>ie支持。一个带有defer属性的标签可以放置在文档的任何位置。对应的JavaScript 文件将在被解析时启动下载,但代码不会被执行,直到DOM加载完成(在onload 事件句柄被调用

2012-08-09 10:00:20 657

原创 common test 记录

erlang 字符串连接要用string:concat/2或string:join/2,不能用++以GUI方式启动common testct_run -vts -browser firefox -config cfg/test.cfg -logdir logs/ -dir ./ -erl_args -pa /home/louieli/work/test/itf -s inets sta

2012-08-08 20:03:47 970

原创 工具箱

1. gow 轻量级cygwin替代软件2. Fiddler3. REDbot:Awesome HTTP Testing4. HTTPie is a CLI, cURL-like tool for humans5. Minerva sol文件修改http://blog.coursevector.com/minerva6.ip查询http://counter.sina

2012-08-08 17:32:35 703

原创 Hudson安装

最简单配置1.去http://hudson-ci.org/ 下载最新hudson版本,hudson.war2.运行java -jar hudson.war 启动hudson服务 hudson与tomcat集成1.配置JAVA环境#安装tomcatVM159:/opt# tar zxvf /software/apache-tomcat-6.0.18.tar.gz#安装

2012-08-08 17:19:10 641

原创 正则表达式非

匹配非“非内容”的行的表达式应该写成:^(?!.*非内容).*$

2012-08-08 16:59:35 1386

原创 SVN查找文件

svn list -R --verbose file:///usr/svn/repos | grep 'xxx'

2012-08-08 16:58:21 6932

原创 如何打patch

diff -urN  old/ new/  > mysoft.patch patch -po

2012-08-08 16:54:46 705

原创 Ftp命令行传文件

C:\hudson>type ftp.txtopen 192.168.194.159nobodylamppbinarylcd C:\hudson\workspace\DBANK_TEST\log\piccd stylecheck/picmput *byeC:\hudson>ftp -s:ftp.txt -i//每天0点执行命令C:\hudson>at 0

2012-08-08 16:44:03 533

原创 快速创建大文件

fsutil file createnew  a.txt 2086207400

2012-08-08 15:59:32 444

原创 js 版 tail -f

#!/usr/local/bin/nodevar fs = require('fs');if(process.argv.length < 3){ console.log('usage: ./watch.js filename'); process.exit(0);}fs.watchFile(process.argv[2],function(curr,prev){

2012-08-06 10:13:34 949

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除