开发

Simple is the best

When I use NSURLConnection to get file, the expectedContentLength alway return -1. After look lots of similary problem it looks like never send the Content-Length. Checking the code below, you will get a surprise:  re...

发布 0 条评论

由于Oracle11G的新特性所致,经常会遇到使用sqlplus登陆oracle数据库时提示“ORA-28002: 7 天之后口令将过期”等情况。 在Oracle 11G 创建用户时缺省密码过期限制是180天, 如果超过180天用户密码未做修改则该用户无法登录,提示“ORA-28...

发布 0 条评论

1 START SQL> connect system/manager as sysdba; SQL> startup open INSTANCE_NAME OR: SQL> connect system/manager as sysdba; SQL> startup mount INSTANCE_NAME; SQL> alter database open; 2 STOP SQL> conne...

发布 0 条评论

  Only an easy http request class for freshman in objective-c. HttpHelper.h #import <Foundation/Foundation.h> @interface HttpHelper : NSObject + (NSString *)getHtml: (NSString *)url; + (NSString *)getHtml: ...

发布 0 条评论

wordpress前台或后台出现Fatal error: Allowed memory size of xxx bytes exhausted (tried to allocate xxx bytes) in xxx.php on line xxx的解决办法 打开wp-includes目录下default-constants.php文件,找到如下代码 // set memory ...

发布 0 条评论

近几天研究了有关验证码识别的一些问题,后来先选取了校内比较简单的验证码来开刀了。。。 以下是最终成果图: 用c#编写的,其实这个验证码十分简单,只用分割好了即可完成识别工作,由于不等间距,所以分割时得加些参数在里面。最...

发布 6 条评论

最近研究了ASP.NET,发现一个问题,比方说在页面里面有个Button,要点击以后要打开新窗口,而且新窗口的URL是根据用户选择结果动态产生的。LinkButton的代码这样写: protected void ServiceManHistoryButton_Click(object sender, Eve...

发布 0 条评论

最近在做软件登陆校内网的软件,今天突然不好用了,可能校内改版了,让我的软件出现了错误: 服务器提交了协议冲突.Section=ResponseHeader Detail=CR 后面必须是LF 这个错误貌似是微软没有容忍不符合RFC 822中的httpHeader必须以CRLF...

发布 0 条评论

最近研究了ASP.NET,发现一个问题,比方说在页面里面有个Button,要点击以后要打开新窗口,而且新窗口的URL是根据用户选择结果动态产生的。LinkButton的代码这样写: protected void ServiceManHistoryButton_Click(object sender, Eve...

发布 0 条评论

今天开了下JIRA准备查看一下有啥要关注的,发现了个错误,怎么搞都搞不好。。。 The jira.home directory 'C:\Program Files\Atlassian\Application Data\JIRA' is already locked. Please see the JIRA documentation for more infor...

发布 0 条评论