exec sp_dboption 'dbname1','single user',‘true’dbcc checkdb('dbname1')dbcc checkdb('dbname1',REPAIR_FAST)dbcc checkdb('dbname1',REPAIR_REBUILD)dbcc ch...
分类:
数据库 时间:
2014-12-27 12:37:11
阅读次数:
218
单一职责原则(SRP:Single responsibility principle)又称单一功能原则,它规定一个类应该只有一个发生变化的原因。如果一个类承担的职责过多,就等于把这些职责耦合在一起了。一个职责的变化可能会削弱或者抑制这个类完成其他职责的能力。这种耦合会导致脆弱的设计,当发生变化时,设...
分类:
其他好文 时间:
2014-12-27 11:20:06
阅读次数:
163
1.先在系统启动的时候提示:press any key to enter menu 时按下e键(其实其他键也可以,只不过我习惯e键而已)2.进入如下界面:3.按上下箭头方向键选中第二项,按e键,进入如下界面:在后面先空格,再追加single,再按回车返回上一个界面,此时再按b键,进入下一个界面:4....
分类:
其他好文 时间:
2014-12-27 00:16:47
阅读次数:
218
题目:(DP,BackTracking, Greedy,String)Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequ...
分类:
其他好文 时间:
2014-12-27 00:13:18
阅读次数:
292
Migrating from Ant to Gradle is very easy with the importBuild method from AntBuilder. We only have to add this single line and reference our existing...
分类:
其他好文 时间:
2014-12-26 20:16:26
阅读次数:
358
在我们写程序时,经常会用到单件模式,单件模式是一个类只拥有一个实例对象(或者拥有多个固定数量的实例对象)。下面我给出一个使用多线程的单件模式demo。
package com;
public class Single {
private static Single _instance = null;
private static Object lock = new...
分类:
编程语言 时间:
2014-12-26 13:06:52
阅读次数:
167
River Crossing
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
Afandi is herding N sheep across the expanses of grassland when he finds himself blocked by a river. A single raft is available for transpo...
分类:
其他好文 时间:
2014-12-26 11:13:47
阅读次数:
242
题目:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without ...
分类:
其他好文 时间:
2014-12-25 23:43:28
阅读次数:
450
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2014-12-25 23:21:17
阅读次数:
197
1.新建一个single?view?application
2.打开?Info.plist,删除里面的??Launch?screen?interface?file....以及?Main?storyboard?file?base?name...
3.删除Main.storyboard以及LaunchScreen.xib
4.在A...
分类:
其他好文 时间:
2014-12-25 18:55:31
阅读次数:
182