物理页面 /* * Try to keep the most commonly accessed fields in single cache lines * here (16 bytes or greater). This ordering should be particularly * b.....
分类:
系统相关 时间:
2015-01-22 23:06:34
阅读次数:
208
上传图片时出现的问题:
{ status code: 200, headers {
Connection = "Keep-Alive";
"Content-Encoding" = gzip;
"Content-Length" = 386;
"Content-Type" = "text/html; charset=utf-8";
Date = "W...
分类:
Web程序 时间:
2015-01-21 15:19:12
阅读次数:
171
/** * JavaScript escape/unescape 编码的 Java 实现 * author jackyz * keep this copyright info while using this method by free */public class Escape { pri...
分类:
编程语言 时间:
2015-01-20 17:34:19
阅读次数:
305
TCP下的Keep Alive
我们常说的TCP的keep alive,就是为了保证连接的有效性,在间隔一定的时间发探测包,根据回复来确认该连接是否有效。通常上层应用会自己提供心跳检测机制,而Linux内核本身也提供了从内核态确保连接有效性的方式。
在sock 函数中可以设置是否需要打开keep alive开关,默认建立socket 是关闭keep alive的。代码如下
opt...
分类:
系统相关 时间:
2015-01-14 21:25:08
阅读次数:
319
今天服务器上传大文件,服务器php一直没有响应,响应为0KB,经排查发现是lighttpd的超时设置问题server.max-keep-alive-idle = 5server.max-read-idle = 60server.read-timeout = 0server.max-connectio...
分类:
Web程序 时间:
2015-01-10 13:50:18
阅读次数:
175
python version 2.6.6 ; pexpect 2.3login方法解读:def login (args, cli_username=None, cli_password=None): # I have to keep a separate list of host names ...
分类:
其他好文 时间:
2015-01-09 16:55:31
阅读次数:
158
Java related setup, class path, wherejava, different version and pathsJNI: Java: MainActivity call C function C funciton keep a VM reference and met.....
分类:
移动开发 时间:
2015-01-08 07:04:22
阅读次数:
170
用来练手,顺便自己拿来用。。。 1 /*---------------------------------------- 2 Keep your Notebook awake when Lid is closed. 3 (c) LJN, 2014 4 ...
分类:
其他好文 时间:
2015-01-07 00:35:13
阅读次数:
390
*模拟求导 步长一定要比阈值小,才能得出准确的结果;data Derivation (keep=interval slope); * function y = 1/x only concern about x>0; deltaX = 1e-6; *割线变为切线时x1减小的步长; x...
分类:
其他好文 时间:
2015-01-07 00:24:43
阅读次数:
312
Create a new group
groupadd -g 54321 oracle
Create a new user
useradd -c "Operate Oracle DB" -m -d /home/oracle -g oracle -G sudoers,weblogic,orainstall -s /bin/bash -u 54321 oracleuseradd -u 543...
分类:
系统相关 时间:
2015-01-06 23:16:33
阅读次数:
227