问题描述:当我插入一条记录时,在调用save方法的时候出现了异常(记录重复了),导致了后面的commit语句不能执行了。这时我在数据库中删除重复记录时发现该表已经被锁上了。即出现错误。但过了一会再次执行delete,就能成功删除记录了。原因分析:由于commit语句没有执行到,即事务没有提交成功,表...
分类:
数据库 时间:
2015-01-27 20:07:13
阅读次数:
299
fedora18下的xen安装与管理############################# xen installation ##############################关闭防火墙和禁用selinux# iptables -F# service iptables save# vi...
分类:
其他好文 时间:
2015-01-27 19:53:52
阅读次数:
275
Most middleware (like multipart) is no longer bundled with Express and must be installed separately....https://github.com/senchalabs/connect#middleware
版本问题
首先需要安装:
npm install --save connect...
分类:
移动开发 时间:
2015-01-27 18:21:25
阅读次数:
173
启动webStorm之后,点击“FIle"菜单,选择其下的”Settings"2、在左侧的菜单中选择“Editor/Colors & Fonts/Font在右侧Scheme Name后侧的”Save as...“按钮,另存一个设置,然后可以修改字体大小和字体。
分类:
Web程序 时间:
2015-01-27 17:49:46
阅读次数:
369
使用get请求http,查看平均响应时间,以及TPS,code如下:get(){ //get方式接口 //char *errorcode; //int res; //lr_start_transaction("get"); /* web_reg_save_param("Result", "No...
分类:
其他好文 时间:
2015-01-27 17:41:12
阅读次数:
224
To exit Vim type :q! trash all changes :wq save the changesTo delete from the cursor up to the next word type: dwTo delete from the cursor to the ...
分类:
系统相关 时间:
2015-01-26 22:20:20
阅读次数:
182
按按钮截图,图片保存在当前路径为“save.png”:
#include
#include
/********************************************************
功能:指定窗口区域截图,需要包含头文件cairo.h
参数:
area: 需要截图的窗口指针
x, y, w, h: 截图的范围
path_name: 保存图片的路径名字,...
分类:
其他好文 时间:
2015-01-26 19:17:54
阅读次数:
328
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s...
分类:
其他好文 时间:
2015-01-26 07:42:23
阅读次数:
158
今天实现了把模拟状态保存为文件的功能。当前的模拟对话框为:模拟过后只需点 Save Simulation Result,即可保存结果。结果包括初始位置initPos、内部点索引intPntIdx、表面点索引surfPntIdx、每一帧偏移量q、速度v、加速度a、参数值param下一步实现模型的静态解...
分类:
其他好文 时间:
2015-01-26 01:15:59
阅读次数:
154
转载自:http://javascript.ruanyifeng.com/htmlapi/canvas.html目录概述绘图方法图像处理方法drawImage方法getImageData方法,putImageData方法toDataURL方法save方法,restore方法动画像素处理灰度效果复古效...