#!/bin/sh#Author: OpalTODAY=`date +%Y%m%d`YESTERDAY=`date -d"-1 day" +%Y%m%d`mkdir -p /var/backups/etc.${TODAY}/cp -r /etc/* /var/backups/etc.${TODA.....
分类:
系统相关 时间:
2014-08-12 10:15:03
阅读次数:
230
//////取得某月的第一天//////要取得月份第一天的时间///privateDateTimeFirstDayOfMonth(DateTimedatetime){returndatetime.AddDays(1-datetime.Day);}///////取得某月的最后一天//////要取得月份...
分类:
其他好文 时间:
2014-08-11 20:41:52
阅读次数:
208
全期望公式:全概率公式:POJ 2096HDU 4405HDU 4035HDU 3853POJ 3071SGU 495ZOJ 3640POJ 3744
分类:
其他好文 时间:
2014-08-11 17:26:42
阅读次数:
152
小猪的Android入门之路 Day 5 - part 2
Activity片段:Fragment(碎片)
在part 1中我们对android的基本单元Activity进行了详细的解析,而在part 2中我们将会讲解
Activity片段:Fragment(碎片),一开始是为了简化大屏幕手机或者平板电脑的UI设计,但是现在也普遍用于
普通手机,比如Fragment + slideMenu实现侧滑效果,在网上有很多相关的例子,掌握了Fragment的基本用法
可以更加容易地去理解使用Fragment实现的一...
分类:
移动开发 时间:
2014-08-11 15:10:24
阅读次数:
254
the apple tree
A long time ago, there was a huge apple tree.
A little boy loved to come and lay around it every day. He climbed to the tree top, ate
-the apples, took a nap under the shadow... He l...
分类:
移动开发 时间:
2014-08-11 06:19:12
阅读次数:
265
Bear and FloodlightTime Limit:4000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]DescriptionOne day a bear lived on th...
分类:
其他好文 时间:
2014-08-11 00:14:51
阅读次数:
275
链接上一篇日志,下面介绍下C++里面的其他内容 补充上一届里面的异常处理代码: try { cout >oneday.year >> oneday.month >> oneday.day; return oneday;}void show(Date oneday){ cout 变量成员。(*p). ...
分类:
编程语言 时间:
2014-08-11 00:09:11
阅读次数:
343
小猪的Android入门之路 Day 5 - part 1
基本程序单元:Activity(活动)
本节引言:
经过前面的学习,我们已经可以开发出一个自定义简单UI界面以及具有简单逻辑业务的App了,
不过都是在一个界面上完成的,而现在大部分的app都是拥有多个界面的,所以我们有必要继续深入地
学习,而这些所谓的界面,窗口,在Android我们把他们叫做Activity(活动),他也是Android四大组件的其中
一个,是基本的程序单元!在本节中我们要理解Activity是什么,它的生命周期,以及如何去新建...
分类:
移动开发 时间:
2014-08-09 21:31:09
阅读次数:
314
Compress String
时间限制:2000 ms | 内存限制:65535 KB
难度:3
描述
One day,a beautiful girl ask LYH to help her complete a complicated task—using a new compression method similar to Run Length Encod...
分类:
其他好文 时间:
2014-08-09 18:46:18
阅读次数:
284
One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better it is. Alex disagrees. Alex thinks that there are two laptops,...
分类:
其他好文 时间:
2014-08-09 11:47:17
阅读次数:
276