在用mvc 的AuthorizeAttribute做身份验证,重写HandleUnauthorizedRequest方法,在Application_Error方法里出现异常System.Web.HttpException (0x80004005): Server cannot set status ...
分类:
Web程序 时间:
2014-07-19 15:28:41
阅读次数:
508
在Java里面,当A类继承B类,在B类里面重写(或叫覆写/override)A类的方法时,有一个规定,那就是:子类的该方法的权限修饰符范围应该是大于等于父类。 class A{ protected method() { } } class B extends A{ private ...
分类:
编程语言 时间:
2014-07-18 20:39:24
阅读次数:
252
1. S The Single Responsibility Principle 单一责任原则 当需要修改某个类的时候原因有且只有一个(THERE SHOULD NEVER BE MORE THAN ONE REASON FOR A CLASS TO CHANGE)。换句话说就是让一个类只做一种类....
分类:
编程语言 时间:
2014-07-18 20:21:29
阅读次数:
210
今天再给Android项目工程中的包重命名时出现了这个错误(之前重命名的时候就没有出现,郁闷): An unexpected exception occurred while creating a change object. see the error log for more details 效...
分类:
其他好文 时间:
2014-07-18 20:05:21
阅读次数:
337
一个constraint如果被定义成deferrable那么这个constraints可以在deferred和imediate两种状态相互转换。deferred只在transaction中有效,也就是只可以在transaction过程中使constraint失效,但如果transaction com...
分类:
其他好文 时间:
2014-07-18 14:21:24
阅读次数:
267
Description
You are not given n non-negative integers
X0, X1,..., Xn-1 less than
220, but they do exist, and their values never change.
I'll gradually provide you some facts about them, and as...
分类:
其他好文 时间:
2014-07-18 13:35:47
阅读次数:
458
..\..\SYSTEM\usart\usart.c(1): error: #5: cannot open source input file "sys.h": No such file or directory
#include "..\sys\sys.h"这样就可以找到路径了
再次编译出现了问题
..\..\SYSTEM\usart\..\sys\sys.h(3): error: ...
分类:
其他好文 时间:
2014-07-18 13:33:31
阅读次数:
311
更改Innodb 数据页大小优化MySQLhttp://www.mysqlsupport.cn/change_innodb_page_size/更改Innodb 数据页大小优化MySQL2009年12月13日Posted bywubx作者:吴炳锡 来源:http://www.mysqlsupport...
分类:
数据库 时间:
2014-07-18 08:34:00
阅读次数:
289
1:删除列ALTER TABLE 【表名字】 DROP 【列名称】2:增加列ALTER TABLE 【表名字】 ADD 【列名称】 INT NOT NULL COMMENT '注释说明'3:修改列的类型信息ALTER TABLE 【表名字】 CHANGE 【列名称】【新列名称(这里可以用和原来列同名...
分类:
数据库 时间:
2014-07-18 00:09:35
阅读次数:
270
1This worked for me:Make a copy of the .xib in the Finder.Open the copied file in a text editor.Change "com.apple.InterfaceBuilder3.CocoaTouch.XIB" to...
分类:
其他好文 时间:
2014-07-17 23:25:55
阅读次数:
275