JdbcTemplate.update(sql, ArrayList.toArray()) Connection conn = null; PreparedStatement ps = null; conn = JdbcUtils.getConnection(); String sql = "sel ...
分类:
数据库 时间:
2016-03-24 16:04:34
阅读次数:
139
一、NSThread优缺点 优点:NSThread是最轻量级的 缺点:需要自己管理线程的生命周期,线程同步。线程同步对数据的加锁会有一定的系统开销 二、NSThread的使用 创建线程: + (void)detachNewThreadSelector:(SEL)selector toTarget:(
分类:
编程语言 时间:
2016-03-23 00:52:00
阅读次数:
262
for sel in response.xpath('//ul/li'): item = DmozItem() item['title'] = sel.xpath('a/text()').extract() item['link'] = sel.xpath('a/@href').extract()
分类:
编程语言 时间:
2016-03-20 14:40:32
阅读次数:
185
select APP_NAME ( ) as w --当前会话的应用程序 select @@IDENTITY --返回最后插入的标识值 select USER_NAME() --返回用户数据库用户名 SELECT @@CONNECTIONS --返回自上次SQL启动以来连接或试图连接的次数。 SEL
分类:
数据库 时间:
2016-03-18 13:25:54
阅读次数:
139
给父视图添加背景图片 UIImageView *imgView=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"beijing"]]; //@""里面的为文件名,这样写需要将背景图片拖入工程中才可以 imgView.frame=sel
分类:
其他好文 时间:
2016-03-07 23:57:10
阅读次数:
301
一.消息机制 1.在viewDidLoad中直接用 performSelector:@selector(doSomething) 来调用doSomething方法时,会发现找不到这个方法而奔溃.此时,我们可以在resolveInsantanceMethod:(SEL)see 方法中获取这个所有在运行
分类:
其他好文 时间:
2016-03-07 16:24:43
阅读次数:
157
mutiplexer 数据选择器 1 one-bit wide 2-1 mux wire dout = sel? din1 : din0; // conditional continuous and wire assignment 2 4-1 mux module mux4_1(sel, din0,
分类:
其他好文 时间:
2016-03-07 07:48:24
阅读次数:
250
理解Python命名机制 本文最初发表于恋花蝶的博客(http://blog.csdn.net/lanphaday),欢迎转载,但必须保留此声明且不得用于商业目的。谢谢。 引子 我热情地邀请大家猜测下面这段程序的输出: class A(object): def __init__(self): sel
分类:
编程语言 时间:
2016-03-06 20:55:17
阅读次数:
268
#define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 #include<stdio.h> #include<stdlib.h> typedef int SElemType; typedef struct{ SElemType *base; SEl
分类:
其他好文 时间:
2016-03-06 20:46:30
阅读次数:
121
选择器 ============================================================ 认识选择器(Selector) 1. 选择器(SEL)是一个变量类型,SEL 是oc特有的类型 2. SEL的变量装消息, 类似于函数指针 Objective-C在编译的
分类:
其他好文 时间:
2016-03-04 22:11:53
阅读次数:
205