Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-07-16 23:16:32
阅读次数:
156
Struts2.16与Spring4.x整合出错:Caused by: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.Con...
分类:
移动开发 时间:
2014-07-10 10:51:14
阅读次数:
261
机型:Samsung Galaxy S GT-I9000版本:2.2.1bug:Couldn't create directory for SharedPreferences file xxx.xmlAttempt to read preferences file xxx.xml without p...
分类:
其他好文 时间:
2014-07-10 10:39:02
阅读次数:
311
Foreword
Fortunately, I met “ExtJS” in earlier afternoon, the feeling justlike my encounter with “REST” Actually, at beginning, I had no idea about them,but when I got in touch with REST, I found i...
分类:
Web程序 时间:
2014-06-30 20:09:27
阅读次数:
411
本题要求从输入的N个整数中查找给定的X。如果找到,输出X的位置(从0开始数);如果没有找到,输出“Not Found”。
输入格式:
输入在第1行中给出2个正整数N(
输出格式:
在一行中输出X的位置,或者“Not Found”。
输入样例1:
5 7
3 5 7 1 9
输出样例1:
2
输入样例2:
5 7
3 5 8 1 9
输出样例2:
N...
分类:
其他好文 时间:
2014-06-30 17:26:19
阅读次数:
161
SDK和ADT为22.6.2版本
工程为4.4.2
在编译一个Launcher时,报错如下:
sh ndk-build clean
Cannot run program "sh": Launching failed
Error: Program "sh" not found in PATH
PATH=......
在网上看了一下,一直以为是什么GCC的问题,多次...
分类:
系统相关 时间:
2014-06-30 15:45:40
阅读次数:
1319
header('HTTP/1.1 200 OK');//设置一个404头:header('HTTP/1.1 404 Not Found');//设置地址被永久的重定向header('HTTP/1.1 301 Moved Permanently');//转到一个新地址header('Location:...
分类:
其他好文 时间:
2014-06-30 11:25:04
阅读次数:
198
在发布系统的过程中,曾经遇到过这样的问题,由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法
提供您请求的页面。
错误详情如下:
解决方法:
找到IIS的根节点->右侧“ISAPI和CGI限制”->把禁止的ASP.Net版本项设置为允许。
如下图
总结:通过这个这个问题,我想到了一点:虽然解决了问题,但知其然却不知其所以然,很多...
分类:
Windows程序 时间:
2014-06-30 10:49:07
阅读次数:
13321
Linux下Memcached的安装步骤,如果出现/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory异常在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。...
分类:
系统相关 时间:
2014-06-30 09:20:50
阅读次数:
320
在windows我们习惯性的使用“\”作为文件分隔符,但是在linux上系统不认识这个标识,于是就要引入这个php内置变量了:DIRECTORY_SEPARATOR 路径分隔符windows\ or /linux/ 在 Windows 中,斜线(/)和反斜线(\)都可以用作目录分隔符,在l...
分类:
Web程序 时间:
2014-06-29 18:59:47
阅读次数:
244