招数一: 1. 查看被锁的表: 2. select p.spid,c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_obj.....
分类:
数据库 时间:
2015-05-14 11:40:57
阅读次数:
145
题目:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,...
分类:
其他好文 时间:
2015-05-14 11:23:11
阅读次数:
100
Remove OpenCv Opencv2 etc. from your run and build depends (in package.xml) as well as from the line find_package( catkin REQUIRED COMPONENTS .... (in CMakeLists.txt)
With catkin in groovy/hydro Open...
分类:
其他好文 时间:
2015-05-14 10:04:02
阅读次数:
782
1. 对象优先在Eden分配
大多数情况下,对象在新生代Eden区中分配。当Eden区没有足够的空间时,虚拟机将发起一次Minor GC。在如下的测试代码中,尝试分配3个2MB大小和1个4MB大小的对象,在运行时通过参数-Xmx20M,-Xms20M,-Xmn10M这三个参数限制了java堆大小为20MB,不可扩展,其中10MB分配给新生代,剩下的非配给老年代。-XX:SurvivorRatio=8决定了新生代中Eden区与一个Survivor区的比例为8:1,即 Eden: from Survivor:...
分类:
编程语言 时间:
2015-05-14 01:02:54
阅读次数:
134
#!/usr/bin/python
from time import clockl = [(x,x) for x in xrange (10000000)]
d = dict(l) t0 = clock() # 方法一
for i in d:
n = d[i]t1 = clock() # 方法二:最慢
for k,v in d.items():
n = vt2 = clock...
分类:
编程语言 时间:
2015-05-14 01:00:58
阅读次数:
203
题目2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that ...
分类:
其他好文 时间:
2015-05-14 00:58:21
阅读次数:
118
以下代码出错: conn=database('data.db','','','org.sqlite.JDBC','jdbc:sqlite:C:/MATLAB7/work/del_man_voice_from_wave/data.db');
% ping(conn);
% set(conn,'Auto...
分类:
数据库 时间:
2015-05-14 00:57:46
阅读次数:
352
1. 利用row_number()语法:select 字段1,.. row_number() over (order by 字段) as rowno from table where 条件 and rowno >(pageIndex-1)*pageSize and rowno (@pageIndex...
分类:
其他好文 时间:
2015-05-14 00:57:32
阅读次数:
176
1.insert into table1 (p1,p2..) select(p1,p2) from table2 从table2中查出数据然后在插入到table1中 ,table1和table2都是存在的已经定义好的表2.select into table1(p1,p2..) from table2...
分类:
其他好文 时间:
2015-05-14 00:41:57
阅读次数:
123
UILabel *left = [[UILabel alloc] init]; left.text = @" Sent when the application is about to move from active to inactive state."; left....
分类:
其他好文 时间:
2015-05-14 00:40:25
阅读次数:
135