原文:09. 约束与索引的联系之所以把约束和索引放到一起来看,主要是因为主键约束和唯一键约束,它们会自动创建一个对应的索引,先分别看下数据库中的几个约束。一 约束在关系型数据库里,通常有5种约束,示例如下:use tempdbgocreate table s(sid varchar(20),snam...
分类:
其他好文 时间:
2014-06-25 22:54:26
阅读次数:
214
在集成扫描二维码功能时候,我使用的是系统在iOS7.0 之后才支持的扫描二维码功能类。刚开始创建代码是这么写的 1 -(void)setUpCamera 2 { 3 self.device = [AVCaptureDevice defaultDeviceWithMediaType:AVMed...
分类:
移动开发 时间:
2014-06-25 20:54:51
阅读次数:
258
Peterson's algorithm (AKA Peterson's solution) is a concurrent
programming algorithm for mutual
exclusion that allows two processes to share a single-use resource without conflict, using only shar...
分类:
编程语言 时间:
2014-06-25 19:38:19
阅读次数:
748
人生苦短,我用python,最近实习一直在用工作,因为我做的工作涉及到海量数据,程序跑下来用上代理,一个月可能也跑不完,但是我快要回去考试两周,作为一个强迫症的coder,我必须要得知我的程序怎么了!!!所以我让我的程序成功执行一段时间,但是我又是非常“懒惰”的人(其实优秀的程序员都要很“懒惰”呢!坚决写简洁的代码,如果可以,越短越好,所以前短时间写了个160行的py 2048.),看了好多版本,...
分类:
编程语言 时间:
2014-06-24 19:42:11
阅读次数:
205
1.在Android开发中调用adb命令进行应用安装,将应用安装到 /system/app目录下
/**
* install the app in use adb command,this style is silent
*
*/
private void adbInstallTheAPP(){
//adb push cor...
分类:
移动开发 时间:
2014-06-24 18:04:18
阅读次数:
291
Gnuplot is a light-weight and easy to use scientific plotting tool. Its has enough functionalities to deal with most of my demands on visualizing expe...
分类:
其他好文 时间:
2014-06-24 14:07:48
阅读次数:
236
60款开源云应用【Part 3】(60 Open Source Apps You Can Use in the Cloud)
本篇翻译自http://www.datamation.com/open-source/60-open-source-apps-you-can-use-in-the-cloud-3.html,原作者Cynthia Harvey,翻译者hcbbt,转载请注明。
如果有翻...
分类:
移动开发 时间:
2014-06-22 22:43:48
阅读次数:
614
今天是2014-06-18,在复制数据的时候出现如下错误:
RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
操作过程如下:
[oracle@dg1 dbs]$ rman target sys/root@...
分类:
其他好文 时间:
2014-06-22 19:13:14
阅读次数:
306
XStream is a simple library to serialize objects to XML and back again.FeaturesEase of use.A high level facade is supplied that simplifies common use ...
分类:
Web程序 时间:
2014-06-22 13:31:51
阅读次数:
285
CCache is a compiler cache for C/C++. It speeds up recompilation by caching the result of previous compilations and detecting
when the same compilation is being done again. We can use this tool to s...
分类:
移动开发 时间:
2014-06-21 21:13:40
阅读次数:
318