1.引入pymssql包import pymssql2.建立连接: conn = pymssql.connect(server=conf['db_address'], port="1433",user=conf['db_username'], password=conf['db_pass...
分类:
数据库 时间:
2014-07-22 22:50:12
阅读次数:
339
http://people.freedesktop.org/~david/gio-gdbus-codegen-20110412/ch29.htmlConceptual differencesThe central concepts of D-Bus are modelled in a very si...
分类:
数据库 时间:
2014-07-22 22:47:15
阅读次数:
443
For the one pass solution... first I tried to build white\blue from red, but not working anyway. Then I referred someone' code, to build red\blue from...
分类:
其他好文 时间:
2014-07-22 22:42:54
阅读次数:
212
冒泡排序代码:
#include
#include
using namespace std;
template
void bubbleSort(ItemType theArray[], int n)
{
bool sorted = false; // False when swaps occur
int pass = 1;
while (!sorted && (pass...
分类:
其他好文 时间:
2014-07-22 00:32:35
阅读次数:
363
Activity When you are creating a new instance of Activity via Intent, you can pass some extra data to the Activity. Data are stored in Bundle and can be retrieved by calling?getIntent().getExtras...
分类:
移动开发 时间:
2014-07-21 10:11:31
阅读次数:
272
Inter IC Bus 由PHILIPS公司推出的,是近年来为d...
分类:
其他好文 时间:
2014-07-19 23:25:29
阅读次数:
429
Using cron seems
to add another entry point into your application, while Quartz would
integrate into it. So you would be forced to deal with some inter-process communication if you wanted to pass...
分类:
其他好文 时间:
2014-07-19 11:11:44
阅读次数:
373
struts2支持一种stream类型的Result,这种类型的Result可以直接向客户端浏览器响应二进制,文本等,
我们可以再action里面生成文本响应,然后在客户端页面动态加载该响应即可。
直接看例子:
public class LoginAction {
private String user;
private String pass;
private ...
分类:
其他好文 时间:
2014-07-18 18:10:54
阅读次数:
311
A relational database, like mysql, provides transactions to wrap several operations in one unit, make them all pass or all fail. All isolation levels ...
分类:
其他好文 时间:
2014-07-18 17:21:39
阅读次数:
287
即使resource_limit = false, password的 资源限制也会生效...
分类:
其他好文 时间:
2014-07-18 14:09:03
阅读次数:
185