php连接数据库分两种,一种是IP,一种是unix sock,即localhost,如果是连接本地mysql,用localhost较好,也方便后期的管理,如果用于连接非本地数据库,则要通过IP了。php连接mysql代码打开网页后出现下面代码cannot connect mysqlCan't con...
分类:
Web程序 时间:
2014-07-09 23:20:47
阅读次数:
277
fillInStackTrace 方法的作用就是一追可以追溯到栈的底部。
转载一个测试类:
package com.exception;
/**
* Created with IntelliJ IDEA.
* User: 菜鸟大明
* Date: 14-7-7
* Time: 下午10:42
* To change this template use File | Settin...
分类:
其他好文 时间:
2014-07-08 17:47:01
阅读次数:
265
Method 1: Add one list into the other list.
For example, if list1is {22, 33, 44, 55} and list2 is {66, 77, 88, 99},then append(list1, list2)will change list1to {22, 33, 44, 55, 44, 66, 77, 88, 99}.
...
分类:
其他好文 时间:
2014-07-08 16:18:22
阅读次数:
196
这题坑了,我真该吃翔啊,居然一开始方程设错了而且没有去想连列的问题,我真是坑货,做不出就该重新理一下嘛,操蛋,
题意:给了N组x,y,z然后 问你是否存在两个或者两个以上的id,是的 id%x的值在区间[y,z]之间,若有则输出Cannot Take off
否则你懂得
根据题意 那么 列出 :
a*x1 + y1
b * x2 + y2
假设有解的话,那么这两个区...
分类:
其他好文 时间:
2014-07-08 15:20:37
阅读次数:
144
情景:在一台真机中运行项目。
提示:Could not change executable permissions on the application.
解决:真机中已经有一个同名的应用。bundle identifier 一样。删掉那个应用就可以了。
参考:http://stackoverflow.com/questions/12547706/could-not-change-execu...
分类:
移动开发 时间:
2014-07-08 14:22:34
阅读次数:
289
有时候在操作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. Block Change Tracking 启用块修改跟踪特性,0级的增量备份肯定还得扫描所有数据文件,不过其后依赖这一0级备份集创建的增量备份就可以通过块修改跟踪文件来获取修改过的块了。 修改跟踪文件是基于整个数据库的,如果使用了OMF,该文件创建于DB_CREATE_FILE_DEST参数...
分类:
其他好文 时间:
2014-07-06 20:14:04
阅读次数:
175
不知道怎么回事,实验室的电脑在同学搞过之后,每次启动都报错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
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
执行启动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