apscheduler.triggers.cronAPITrigger alias for add_job(): cronclass apscheduler.triggers.cron.CronTrigger(year=None, month=None, day=None, week=None, d...
代码如下:$smarty = new Smarty; $smarty->assign('yesterday', strtotime('-1 day')); $smarty->display('index.tpl'); index.tpl: {$smarty.now|date_format} {$sm...
分类:
其他好文 时间:
2014-08-22 12:22:36
阅读次数:
218
Rem Backup Mysql Binlog
Rem Backup Yesterday and RAR
Rem Backup every day 00:01 begin backup yesterday and now binlog @set curPath=%~dp0
@set SourcePa...
分类:
其他好文 时间:
2014-08-22 10:45:55
阅读次数:
318
java定时任务,每天定时执行任务。 public class TimerManager { //时间间隔 private static final long PERIOD_DAY = 24 * 60 * 60 * 1000; public TimerManager() { Calenda...
分类:
编程语言 时间:
2014-08-22 10:39:56
阅读次数:
214
小猪的Android入门之路 Day 7 part 3
Android的数据存储与访问之——SQLite
前两part中我们学习了使用文件与SharedPreference来保存数据,但是在很多情况下,
文件并不一定是有效的,如多线程并发访问是相关的;app要处理可能变化的复杂数据结构等等!
比如银行的存钱与取钱!对于这些情况就需要用到数据库了!而Android也给我们提供了内置
的SQLite数据库支持,SQLite非常精巧,不像Oracle,MSSQL或者MySql那样需要安装,启动服务
才能使用;SQ...
分类:
移动开发 时间:
2014-08-21 13:23:34
阅读次数:
311
Description
Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so it ma...
分类:
其他好文 时间:
2014-08-19 22:28:45
阅读次数:
278
【意义】Class是一种类型type,定义类的格式与struct相似,但能在定义体内添加操作;【定义】class Date{ int year; //数据成员 int month; int day; public: //成员函数 void set(i...
分类:
编程语言 时间:
2014-08-19 18:41:25
阅读次数:
422
java使用Calendar类获得指定日期关于指定日期的获取,是根据指定日期和当前日期相差的天数,然后使用set方法设置Calendar.DAY_OF_MONTH的值。 Calendar cal = Calendar.getInstance(); cal.set(Calendar.DAY_OF_.....
分类:
其他好文 时间:
2014-08-19 14:16:34
阅读次数:
289
题意:有n对新人要在同一天结婚。结婚时间为Ti到Di,这里有时长为Si的一个仪式需要神父出席。神父可以在Ti-(Ti+Si)这段时间出席也可以在(Di-Si)-Si这段时间。问神父能否出席所有仪式,如果可以输出一组时间安排。思路:2-SAT。神父可以在开始出席也可以在结束时候出席,要求与其他出席时间...
分类:
其他好文 时间:
2014-08-18 20:17:22
阅读次数:
247
小猪的Android入门之路 Day 7 part 1
Android的数据存储与访问之——shareference
在Part 1中我们学会了Android中文件的读写,而在Part 2中我们会介绍一个轻量级的存储类——
SharedPreferences(偏好参数保存),就是用来保存软件中用户的一些设置,比如一个游戏的app,用户
可以自己设置是否开游戏音,是否自动登录等!下次启动app时就不用用户再次设置了!我们都知道
在Windows系统下的软件通常使用ini文件作为配置文件,而在J2SE中使用pr...
分类:
移动开发 时间:
2014-08-18 18:42:32
阅读次数:
251