- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] init...
分类:
移动开发 时间:
2014-07-06 23:04:31
阅读次数:
270
有时候在操作Session时,系统会抛出如下异常java.lang.IllegalStateException: Cannot create a session after the response has been committed原因1:Session 的创建语句:HttpSession se...
分类:
编程语言 时间:
2014-07-06 20:38:38
阅读次数:
298
有时启或无缘无故的就会出来数据库连不上的问题。1.重启服务器2.出现了mysql未连接上,3.重新启动mysql,出现5024.执行/etc/init.d/php-fpm start,出现数据库无法连接5.执行service mysqld restart,重启数据库如果=====nginx错====...
分类:
数据库 时间:
2014-07-06 15:49:55
阅读次数:
317
不知道怎么回事,实验室的电脑在同学搞过之后,每次启动都报错rpcbind: cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (no such file or directory)rpcbind: cannot open...
分类:
其他好文 时间:
2014-07-06 14:45:46
阅读次数:
301
第一篇转载自csdn vipclx编写Linux驱动八步骤一、建立Linux驱动框架(装载、卸载Linux驱动) Linux内核在使用驱动时首先要装载驱动,在装载过程中进行一些初始化动作(建立设备文件、分配内存等),在驱动程序中需提供相应函数来处理驱动初始化工作,该函数须使用module_init....
分类:
系统相关 时间:
2014-07-06 13:02:17
阅读次数:
246
Description
Little John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission. Luckily, he notice that there were N trees...
分类:
其他好文 时间:
2014-07-06 10:39:09
阅读次数:
188
class BTNode:
def __init__(self, val):
self.left = None
self.right = None
self.val = val
'''
@ construct tree by inorder & preorder
'''
def constructByInPre(inorder, instart, inend, preorde...
分类:
其他好文 时间:
2014-07-06 00:34:00
阅读次数:
234
单链表的反转可以使用循环,也可以使用递归的方式
1.循环反转单链表
循环的方法中,使用pre指向前一个结点,cur指向当前结点,每次把cur->next指向pre即可。
代码:
class ListNode:
def __init__(self,x):
self.val=x;
self.next=None;
def nonrecurse(he...
分类:
编程语言 时间:
2014-07-06 00:24:52
阅读次数:
331
执行启动nginx:/usr/local/nginx/sbin/nginx
错误:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
查找:[roo...
分类:
其他好文 时间:
2014-07-06 00:11:52
阅读次数:
205
1 function Deferred () { 2 return this.init(); 3 }//设置默认的成功函数与失败函数 4 Deferred.ok = function(x) {return x} 5 Deferred.ng = function(x) {throw x} 6 D...
分类:
Web程序 时间:
2014-07-05 20:50:56
阅读次数:
291