案例: 线上有一数据库,需要每周全备一次,每天差备一次[安全起见还是差备吧,不要增备,不要吝啬磁盘哦,而且差备恢复还很快] 1、每周对数据库hellodb做完全备份 crontab任务计划: 10 01 * * 1 /bin/bash /work/dump-complete-hello.sh ===...
分类:
数据库 时间:
2015-01-25 13:49:01
阅读次数:
311
题意:有N(N>T; while(T--){ scanf("%d",&n); rep(i,1,n){ scanf("%s%d%d",work[i].name,&work[i].deadline,&work[i].days); } ...
分类:
其他好文 时间:
2015-01-25 12:23:01
阅读次数:
155
机器学习的来源和用例:
Machine Learning
- Grew out of work in AI
- New capability for computers
Examples:
- Database mining
Large datasets from growth of automation/web.
E.g., Web click data, medical re...
分类:
系统相关 时间:
2015-01-24 21:27:36
阅读次数:
331
EclEmma是Eclipse里的一个插件,安装简单,覆盖率显示直观。安装EclEmma。打开Eclipse,点击Help → Intall New SofaWare → Work with 输入http://update.eclemma.org/ 回车点击完成结束配置,并开始下载安装插件,安...
分类:
其他好文 时间:
2015-01-24 20:02:05
阅读次数:
194
/* 描述 Mr. B is a famous music composer. One of his most famous work was his set of preludes. These 24 pieces span the 24 musical keys (there are music...
分类:
其他好文 时间:
2015-01-23 19:52:54
阅读次数:
237
程序架构tomcat目录结构:bin:存放启动和关闭tomcat的脚本文件;conf:存放配置文件lib:存放所需的jar文件webapps:存放发布的web程序work:存入tomcat工作时产生的文件1.tomcat配置端口,当默认的8080端口被占用时修改8080端口的位置在tomcat/co...
分类:
Web程序 时间:
2015-01-22 21:50:36
阅读次数:
218
IOS Application Security Testing Cheat Sheet[hide]1DRAFT CHEAT SHEET - WORK IN PROGRESS2Introduction3Information gathering4Application traffic analysi...
分类:
移动开发 时间:
2015-01-21 19:53:40
阅读次数:
327
下面是蜂鸣器的电路图。代码:蜂鸣器代码。/**info:buzzer*author:chenlu*date:2014.11.20*///input the head file so that the program can work normally//iom16v---know the regis...
分类:
其他好文 时间:
2015-01-21 13:17:31
阅读次数:
243
最近在笔记本重新安装了虚拟机,由于在家在公司经常需要切换IP,修改IP配置文件,觉得挺繁琐的,所以就索性的写了一个自动切换IP的脚本,主要是读配置文件修改,详情如下:1、创建配置文件:#catip.conf
[home]
ip=192.168.7.150
gateway=192.168.7.1
[work]
ip=10.7.93.150
g..
分类:
编程语言 时间:
2015-01-21 06:41:48
阅读次数:
322
无论如何使用,都能感觉到使用boost.asio实现服务器,不仅是一件非常轻松的事,而且代码很漂亮,逻辑也相当清晰,这点上很不同于ACE。使用io_service作为处理工作的work pool,可以看到,就是通过io_service.post投递一个Handler到io_service的队列...
分类:
其他好文 时间:
2015-01-20 13:29:41
阅读次数:
389