一、创建多线程的五种方式
1.开启线程的方法一
NSThread * thread=[[NSThread alloc] initWithTarget:self selector:@selector(_update) object:nil];
2.开启线程的方法二
[NSThread detachNewThreadSelector:@sele...
分类:
移动开发 时间:
2015-04-22 15:16:02
阅读次数:
111
代码函数import hashlibdef md5(str):
m = hashlib.md5()
m.update(str)
return m.hexdigest()f = open('idfa.csv','r')
result = open('test.csv','w')
for line in f.readlines():
encrypt...
分类:
编程语言 时间:
2015-04-22 14:00:05
阅读次数:
180
http://blog.javachen.com/2014/03/03/solr-query-syntax/查询参数常用:q - 查询字符串,必须的。fl - 指定返回那些字段内容,用逗号或空格分隔多个。start - 返回第一条记录在完整找到结果中的偏移位置,0开始,一般分页用。rows - 指定...
分类:
其他好文 时间:
2015-04-22 13:38:33
阅读次数:
182
PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?"); pstmt.setBigDecimal(1, 153833.00) pstmt.setInt(2, 1105...
分类:
数据库 时间:
2015-04-22 13:38:08
阅读次数:
362
Play provides a set of very useful helpers to simplify the management of your JPA entities.Notethat you can still go back to the plain JPA API wheneve...
分类:
其他好文 时间:
2015-04-22 13:35:18
阅读次数:
201
第一步:实现一个调用类: /** * 有回调的查询 */ public T query(String sql,MyHandler mh){ T t = null; //声明conn Connection con = null; try{ con = ds.getConnection(); //执行....
分类:
其他好文 时间:
2015-04-22 13:32:27
阅读次数:
125
status = show status like ‘%%' [例:show status like 'Com_select']variables = show variables like ‘%%' [例:show variables like 'query_cache_size']1、MySQL...
分类:
数据库 时间:
2015-04-22 13:31:03
阅读次数:
156
一 、只有一行执行语句的触发器
trigger触发器是由事件来触发某些操作,这些事件包括insert / delete / update等
例如:
create trigger t_user_trig before insert
on t_user for each row
insert into trigger_time values(now());
意思...
分类:
数据库 时间:
2015-04-22 11:43:23
阅读次数:
172
var shake=4000,
last_update=0,
count=0,
x=y=z=last_x=last_y=last_z=0;
if(window.DeviceMotionEvent){
window.addEventListener("devicemotion",deviceM...
分类:
移动开发 时间:
2015-04-22 11:38:33
阅读次数:
187
下载,安装ubuntu 12.04
http://releases.ubuntu.com/12.04/
安装JDK
Android L版本需要openjdk 7.0以上版本,KK版本需要oracle jdk 1.6.26以上版本
$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
配置默认运行的...
分类:
移动开发 时间:
2015-04-22 11:37:06
阅读次数:
355