码迷,mamicode.com
首页 >  
搜索关键字:nslookup dns request time out    ( 115112个结果
java中获取路径的几种方式
总是忘记, 备份一下,方便下次用.第一种:File directory = new File("");//参数为空String courseFile = directory.getCanonicalPath() ;System.out.println(courseFile);结果:C:\Docume...
分类:编程语言   时间:2014-05-08 12:43:50    阅读次数:343
node.js使用iconv-lite和zlib解决gzip压缩和gbk乱码
安装插件request,iconv-lite。zlib內置。1、设置请求参数中的encoding为null,这样传入回调函数中的body将是一个buffer。(默认为utf8编码)2、用zlib.gunzip()方法对body进行解压,解压的到的依然是个buffer。request({ uri: u...
分类:Web程序   时间:2014-05-08 12:19:22    阅读次数:851
mysq访问方式
mysql -h10.81.32.196 -P5152 -Dns_map_data_new -uwangyuchuan_r -p3DLg15rhSsm0O7Nsselect uid,name from t_area_info where uid=1960;
分类:其他好文   时间:2014-05-08 12:00:24    阅读次数:247
亲戚
亲戚Time Limit:1000MSMemory Limit:65535KBSubmissions:214Accepted:82Description若某个家族人员过于庞大,要判断两个是否是亲戚,确实还很不容易,现在给出某个亲戚关系图,求任意给出的两个人是否具有亲戚关系。 规定:x和y是亲戚,y和...
分类:其他好文   时间:2014-05-08 11:21:14    阅读次数:307
杭电acm2030--汉字统计
汉字统计Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22508Accepted Submission(s): 12255Problem Desc...
分类:其他好文   时间:2014-05-08 10:04:00    阅读次数:306
poj 2104:K-th Number(划分树,经典题)
K-th NumberTime Limit:20000MSMemory Limit:65536KTotal Submissions:35653Accepted:11382Case Time Limit:2000MSDescriptionYou are working for Macrohard co...
分类:其他好文   时间:2014-05-08 05:24:50    阅读次数:387
ZOJ3640之简单慨率DP
Help Me Escape Time Limit: 2 Seconds      Memory Limit: 32768 KB Background     If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto the...
分类:其他好文   时间:2014-05-08 01:37:02    阅读次数:353
java实现——004替换空格
1.创建新的字符串 1 public class T004 { 2 public static void main(String[] args){ 3 System.out.println(replaceBlank("we are happy")); 4 } 5 ...
分类:编程语言   时间:2014-05-08 01:08:18    阅读次数:364
python subprocess
defgetResult(cmd,timeout=2):#命令超时时间 deadline=time.time()+timeout r=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE) whiletime.time()<deadlineandr.poll()isNone: time.sleep(0.1) ifr.poll()isNone:#检查子进程 r.kill() r.wait() return‘‘ r.wait() ..
分类:编程语言   时间:2014-05-07 22:30:17    阅读次数:504
org.apache.catalina.connector.Request.parseParameters(Request.java:2446) NullPointerException异常处理
1、环境 tomcat6.0.8 + jdk6 + struts1  2、问题的产生 页面有两个异常的请求 http://127.0.0.1/project/a.action?do=testA&m=10 http://127.0.0.1/project/a.action?do=testB&m=10 两个请求几乎同步到达server。结果出现异常: java.lang.NullP...
分类:编程语言   时间:2014-05-07 21:36:43    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!