[root@localhost~]#cat/proc/statcpu16752256999502358213331010000cpu019144520627886199205000cpu1222941425627946918300000cpu219662623627955246200000cpu3202931170627932767500000cpu420061555627983914001000cpu5247321495627849663500000cpu620914651628005212600000cp..
分类:
其他好文 时间:
2015-02-13 10:12:25
阅读次数:
144
一、Java通过反射可以获取方法的参数名称吗?
不能!!!
二、测试示例代码:
import java.lang.reflect.Method;
class T {
public void print(String username) {
System.out.println(username);
}
}
public class Test {
public stat...
分类:
其他好文 时间:
2015-02-12 18:28:15
阅读次数:
146
1、错误描述
java.sql.SQLException:Column Index out of range,0
2、错误原因
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
Statement stat = null;
ResultSet rs = null;
try
{...
分类:
数据库 时间:
2015-02-11 21:58:43
阅读次数:
177
1、错误描述
java.sql.SQLException:Can not issue data manipulation statements with executeQuery()
2、错误原因
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
Statement stat = null;
Resul...
分类:
数据库 时间:
2015-02-11 21:58:22
阅读次数:
175
1、错误描述
java.sql.SQLException:No suitable driver found for http://localhost:3306/school
2、错误原因
Class.forName("com.mysql.jdbc.Driver");
Connection conn = null;
Statement stat = null;
ResultSet ...
分类:
数据库 时间:
2015-02-11 21:58:19
阅读次数:
237
一、配置NFS服务NFS服务使用端口:2049此外还使用以下RPC服务的随机端口:RPC使用端口111:远程进程调用rpc.lock:随机端口rpc.mount:随机端口rpc.stat:随机端口在RHEL6中,以上随机端口需要设置固定的端口,而RHEL7中则以更简单的方式管理:查看本机开放的NFS端口,当重启NFS..
分类:
其他好文 时间:
2015-02-11 18:56:08
阅读次数:
249
--查询阻塞的sql(?死锁了,没有执行通过的sql?)
select?*?from?pg_stat_activity?aa,
(
select?a.locktype,a.database,a.pid,a.mode,a.relation,b.relname?from?pg_locks?a?join?pg_class?b?on?...
分类:
数据库 时间:
2015-02-10 19:00:37
阅读次数:
207
查询相关表当前的活动进程:SELECT * FROM pg_stat_activity where query ~ 'table_name';SELECT pg_terminate_backend(pid) FROM pg_stat_activity where query ~ 'table_nam...
分类:
数据库 时间:
2015-02-10 12:48:32
阅读次数:
1679
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2015-02-09 15:30:36
阅读次数:
112
图像识别领域的一些code转自:http://blog.163.com/pz124578@126/blog/static/23522694201343110495537/ps:里面的一些方法都是目前最新的。每个领域当然可以做大量扩充,根据需要嘛。Non-exhaustive list of stat...
分类:
其他好文 时间:
2015-02-08 18:08:31
阅读次数:
378