1. 字符串与整型的相互转换 String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int 2,得到当前方法的名字 public cl...
分类:
编程语言 时间:
2014-07-19 17:09:09
阅读次数:
206
在用mvc 的AuthorizeAttribute做身份验证,重写HandleUnauthorizedRequest方法,在Application_Error方法里出现异常System.Web.HttpException (0x80004005): Server cannot set status ...
分类:
Web程序 时间:
2014-07-19 15:28:41
阅读次数:
508
1、yum install vsftpd;2、vi /etc/vsftpd/vsftpd.conf 将userlist_enable=YES改为NO3、vi /etc/vsftpd/ftpuser 将root注释掉4、如果提示 500 OOPS cannot change directory:/ro...
分类:
系统相关 时间:
2014-07-19 15:28:00
阅读次数:
349
不涉及语音识别~~ namespace KinectRecordAudio{ /// /// Interaction logic for MainWindow.xaml /// public partial cl...
分类:
其他好文 时间:
2014-07-19 12:24:04
阅读次数:
193
前沿: 索引器:索引器允许类或结构的实例就像数组一样进行索引。 索引器类似于属性,不同之处在于它们的访问器采用参数。 正文: 在看索引器前,我们先看看C#的属性,面向对象设计和编程的重要原则之一就是数据封装,也就是我们在类中定义的字段永远不应该对外公开,假如我们定义了下面一个类public cl.....
分类:
其他好文 时间:
2014-07-19 12:18:23
阅读次数:
207
最新对mac 10.10的强大功能好奇,于是将系统升级到了10.10,结果发现使用pod出现了下面的问题:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such fil...
分类:
其他好文 时间:
2014-07-19 12:04:58
阅读次数:
195
1、问题现象2、解决方法原因分析:cannot be resolved to a type 基本上是该类没有被识别出来,编译的时候,编译路径下没有该类对应的库文件,可以通过下面几步解决:1、拷贝类对应的jar到tomcat lib目录下:C:\Program Files\Java\apache-to...
分类:
Web程序 时间:
2014-07-19 11:28:46
阅读次数:
482
一个constraint如果被定义成deferrable那么这个constraints可以在deferred和imediate两种状态相互转换。deferred只在transaction中有效,也就是只可以在transaction过程中使constraint失效,但如果transaction com...
分类:
其他好文 时间:
2014-07-18 14:21:24
阅读次数:
267
keyword: Visual CPP Team, C++ *** Language Features in Visual C++ *** 有些bug是因为对对编译器的特性不熟悉造成的. 不同版本的VS,编译器版本也不同(可以通过cl.exe的输出看见其版本号, 或者 _MSC_VER). Ther...
分类:
其他好文 时间:
2014-07-18 13:36:18
阅读次数:
171
..\..\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