先记下来,空了去看看 //开始备份 with adoquery1 do begin close; sql.Clear; sql.Add('Backup database library to disk=:p1 with init'); parameters.ParamByName('p1').Val...
分类:
数据库 时间:
2014-07-11 12:05:22
阅读次数:
252
一、for循环for var in [ list ]do #code blockdone$var是循环控制变量,[list]是var需要遍历的一个集合,do/done对包含了循环体。如果do和for被写在同一行,必须在do前面加上“;”,如:for $var in [list]; do例如:#!/....
分类:
其他好文 时间:
2014-07-11 10:39:39
阅读次数:
178
1. onAttach ------called once the fragment is associated with its activity2. onCreate-------called to do initial creation of the fragment3. onCreateVi...
分类:
移动开发 时间:
2014-07-11 10:23:34
阅读次数:
252
原题:ZOJ 3768http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3768一个结论:一个正整数总能用不超过三个前n项相加表示。先找一个的,在找两个,三个的,二分找,用lower_bound函数。代码:#include #i...
分类:
其他好文 时间:
2014-07-11 10:13:33
阅读次数:
223
实现部分代码关于view的德国国旗实现@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, ...
分类:
其他好文 时间:
2014-07-11 09:46:07
阅读次数:
200
原题:ZOJ 3772http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3772这题算是长见识了,还从没坐过矩阵+线段树的题目呢,不要以为矩阵就一定配合快速幂来解递推式的哦。由F(x)=F(x-1)+F(x-2)*A[x],转化...
分类:
其他好文 时间:
2014-07-11 09:03:35
阅读次数:
236
在运行项目的时候,eclipse弹出提示框“Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.”
在终端输入:netstat -ano ...
分类:
其他好文 时间:
2014-07-10 23:03:07
阅读次数:
432
如果for循环命令中带有一些符号,需要用()括起来。
for i in {1..4}; do (python /data/UGCRobot/manage/Scheduler.py 1.log > /dev/null 2>&1 &); done...
分类:
系统相关 时间:
2014-07-10 22:30:56
阅读次数:
387
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder it t...
分类:
其他好文 时间:
2014-07-10 20:43:37
阅读次数:
210
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIView *redView = [[UIView...
分类:
其他好文 时间:
2014-07-10 16:50:02
阅读次数:
185