本地采用12小时一备同时上传异地‘文件备份目录创建auto_bak,我放在/usr/local/目录下[root@localhostlocal]#mkdirauto_bak[root@localhostlocal]#cdauto_bak‘编写备份脚本[root@localhostauto_bak]#viauto_bak_db.sh#!/bin/sh#deleteoldfilerm-rf/usr/local/auto_bak/dbname*#b..
分类:
其他好文 时间:
2014-11-14 01:47:31
阅读次数:
211
在IOS软件开发中我们需要依据NSArray中对象的成员进行排序,我们知道对象中成员比较多,因此如果我们写了多种方法根据不同的成员进行排序,代码量很大,实现起来不是很方便,因此苹果向我们提供了一种快速排序的方法,叫做-(void)sortUsingSelector:(SEL)comparator;本文重视讲诉原理..
分类:
其他好文 时间:
2014-11-14 01:48:32
阅读次数:
238
分类:
其他好文 时间:
2014-11-14 01:46:54
阅读次数:
149
Upvar函数类似于C中的传参,形如upvarlevelotherVarmyVar对于myVar的操作都相当于操作otherVar作用1调用someproc函数时,不能直接使用varname。procsomeprocvarname{upvar1$varnamevarsetvar5}someproca作用2声明一个全局变量,全局变量命名空间的level是0upvar#0foofoo;#equiv..
分类:
其他好文 时间:
2014-11-14 01:46:02
阅读次数:
214
tail-f查看文件尾部,等待显示后续追加至本文件的新内容文本处理:cut,join,sed,awkdatabase:数据库cut:-d:制定字段分隔符,默认是空格-f:指定要显示的字段-f1,3-f1-3
分类:
其他好文 时间:
2014-11-14 01:46:30
阅读次数:
195
关于公司内部邮箱使用Foxmail登陆的方式
分类:
其他好文 时间:
2014-11-14 01:47:09
阅读次数:
179
classsushu
{
publicstaticvoidmain(String[]args)
{
System.out.println("HelloWorld!");
//inttp=0;
for(intx=2;x<=100;x++)
{
inttp=0;
for(inty=2;y<=x-1;y++)
{
if(x%y==0)
{
tp=1;
break;
}
}
if(tp==0)
..
分类:
其他好文 时间:
2014-11-14 01:46:59
阅读次数:
176
#!/bin/bash#################################################thisscriptsiscreatedbyzhangyj#zhangyjQQ:791880666#mobilephone:13716430471#thanksforoldboyteacher#Function:TheScriptsformysql-slave####################################################reloadfunctions..
分类:
其他好文 时间:
2014-11-14 01:43:40
阅读次数:
327
#!/bin/bash#setenvexportLANG="en_US.UTF-8"exportPATH=$PATH:/bin/sbin:/usr/sbin#whetherroottorunninguserif[[$(whoami)!=root]];thenecho"pleasesu-rootrunthescript."fiSERVICE=`whichservice`CHKCONFIG=`whichchkconfig`./etc/init.d/functions#installpackagesinstallT..
分类:
其他好文 时间:
2014-11-14 01:44:19
阅读次数:
189
Problem Description
After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree could easily have the solution. As well, wily 3xian made lots of...
分类:
其他好文 时间:
2014-11-14 01:41:02
阅读次数:
169
Play on Words
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5622 Accepted Submission(s): 1850
Problem Description
Some of the...
分类:
其他好文 时间:
2014-11-14 01:41:30
阅读次数:
252
Description
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is
...
分类:
其他好文 时间:
2014-11-14 01:41:58
阅读次数:
245
Problem Description
Coach Pang is interested in Fibonacci numbers while Uncle Yang wants him to do some research on Spanning Tree. So Coach Pang decides to solve the following problem:
Conside...
分类:
其他好文 时间:
2014-11-14 01:39:47
阅读次数:
230
Crixalis's Equipment
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3073 Accepted Submission(s): 1250
Problem Description
Crixa...
分类:
其他好文 时间:
2014-11-14 01:42:05
阅读次数:
198
Problem Description
Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just em...
分类:
其他好文 时间:
2014-11-14 01:39:15
阅读次数:
218
Objective-C的内存基本管理在OC中每个变量都保存着引用计数器,当这个对象的引用计数器为0的时候该对象会被回收。当使用alloc、new或者copy创建一个对象的时候,对象的引用计数器被置为1.给对象发送一条retain消息,可以使引用计数器+1.给对象发送一条release消息,可以使引用计数器-1.当OC被销毁的时候会发送一条dealloc消息(不要直接调用,由系统调用),可以重写de...
分类:
其他好文 时间:
2014-11-14 01:39:32
阅读次数:
172
ThreadLocal是在是Thread的一个局部变量,今天我来分析了一下这个类...
分类:
其他好文 时间:
2014-11-14 01:38:22
阅读次数:
129