http://developer.51cto.com/art/201307/404612.htm150M active users300K Qps (read,
only 6000 write/s)22MB/s triffic800 redis server. (use redis list)内部组...
分类:
Web程序 时间:
2014-05-14 03:50:34
阅读次数:
365
第一步在页面中写OnError方法:protected override void
OnError(EventArgs e){Exception ex =
Server.GetLastError();//在服务器获取最新产生的错误Response.Write("Error"+ex.Message);...
分类:
Web程序 时间:
2014-05-14 03:37:17
阅读次数:
303
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Same Tree
Total Accepted: 15922 Total
Submissions: 38418
Given two binary trees, write a function to check if they are equal o...
分类:
其他好文 时间:
2014-05-14 01:15:40
阅读次数:
293
recv函数会将套接字缓冲区中的内容读出,但不清空,与read函数的区别在此。此函数有一个flag标志位,设为MSG_PEEK。
send函数会将缓冲区中的内容写入到套接字,也不清空,与write函数的区别在此。
用这两个函数可以先接收或发送缓冲区中的内容,然后再用readn(此时缓冲区中的内容依然存在)与write函数去继续判断换行符/n,对缓冲区内容实现换行输出。
echocli.c...
分类:
其他好文 时间:
2014-05-13 23:43:35
阅读次数:
494
FileSystemObject组件应该实例
read="michael.txt"
'获取文件真实路径
read=LEFT(Server.MapPath(Request.ServerVariables("PATH_INFO")),InstrRev(Server.MapPath(Request.ServerVariables("PATH_INF...
分类:
其他好文 时间:
2014-05-13 07:17:51
阅读次数:
283
document.write("**************一.指代当前对象**********************");
function print(str){
document.write(str+"");
};
/*
javascript里面的this可谓是所有语言里最让人费解的了,学习国java或者php的人
在学习javascript的时候会觉得非常莫名其妙,因为...
分类:
编程语言 时间:
2014-05-13 05:15:47
阅读次数:
387
whileCONDITION;dostatementdone进入循环:条件满足退出循环:条件不满足untilCONDITION;dostatment...done#!/bin/bash#read-p"Inputsomething:"STRINGwhile[$STRING!=‘quit‘];doecho$STRING|tr‘a-z‘‘A-Z‘read-p"Inputsomething:"STRINGdone#!/bin/bash#read-p"Inputsomething:..
分类:
系统相关 时间:
2014-05-13 03:58:53
阅读次数:
343
判断shutcut是否安装
"com.android.launcher.permission.READ_SETTINGS"/>
这段代码在模拟器上运行没有问题,但是在htc s510e运行报异常Failed to find provider info for com.android.launcher2.settings
通过但因htc所有包发现htc中的launcher被定制了改名为co...
分类:
移动开发 时间:
2014-05-12 23:58:28
阅读次数:
625
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document; 2)...
分类:
编程语言 时间:
2014-05-12 22:55:47
阅读次数:
409
用JS脚本书写文字的方法,下面是一个简单的例子:
==============================================
脚本代码:
document.write("这是红色的字")
==============================================
效果: 这是红色的字
=======================...
分类:
其他好文 时间:
2014-05-12 22:47:31
阅读次数:
414