物理页面 /* * 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
使在layout 中实现文字滚动效果 也就是走马灯的效果只需要在响应控件里面加上这几行代码就可以 android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" an...
分类:
移动开发 时间:
2015-01-21 22:15:43
阅读次数:
231
上传图片时出现的问题:
{ 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
题解:线性基?类似于向量上的基底。此题题解戳这里:http://blog.csdn.net/wyfcyx_forever/article/details/39477673代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #inc...
分类:
其他好文 时间:
2015-01-18 18:32:15
阅读次数:
208
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
今天坐在右边的同事忽然欣喜的跟我说:嘿,推荐你个好东西,用PM2试试,比forever高端多了。表示一向落后于时尚的科技前沿的我认真的回答:什么?PM2.5还这么严重,PM2又出来了!
要不是都已习惯了我的二,这气氛还真要囧好一会儿~~呵呵……
先说说平时我都是怎么部署程...
分类:
Web程序 时间:
2015-01-07 20:27:27
阅读次数:
830