最近要在页面上加一个时间段的选择控件,便上网搜寻一番,但找到的答案大都没有考虑时间段跨年的情况,所以做了些修改本周的开始和结束日期```javascript//当前日期var
now = new Date();//今天是一周的第几天var nowDayForWeek = now.getDay(...
分类:
编程语言 时间:
2014-05-16 03:27:59
阅读次数:
798
最近,在联想的G480 32位的机子上安装了CentOS 6.5。发现,有线网络始终是无法使用。
必须安装必要的驱动,搜集了资料,安装步骤如下:
1. 必备的软件
安装前,需要下列的软件依赖包.
sudo yum install gcc gcc-c++ kernel-headers kernel-devel autoconf automake libtool c...
分类:
其他好文 时间:
2014-05-15 19:51:20
阅读次数:
321
opCookie:function(){ var setCookie= function
(name,value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() +
D...
分类:
Web程序 时间:
2014-05-15 17:38:12
阅读次数:
406
一、环境ubuntu12.04.4nginx 1.6.0mariadb 10.0更新系统补丁sudo
apt-get updatesudo apt-get dist-upgrade -y挂载swap分区dd
if=/dev/zeroof=/media/fasthdd/swapfile.img bs=...
分类:
数据库 时间:
2014-05-15 17:23:21
阅读次数:
1622
维基百科上SSH的定义如下
Secure Shell(縮寫为SSH),由IETF的網路工作小組(Network Working Group)所制定;SSH為一项建立在应用层和传输层基础上的安全协议,为计算机上的Shell(壳层)提供安全的传输和使用环境。
安装ssh服务器
安装openssh-server
$sudo apt-get install openssh-server
安装成功...
分类:
其他好文 时间:
2014-05-15 13:02:56
阅读次数:
310
http://subclipse.tigris.org/update_1.8.x
分类:
系统相关 时间:
2014-05-15 11:47:53
阅读次数:
359
void GregorianDay(struct rtc_time * tm){ int
leapsToDate; int lastYear; int day; int MonthOffset[] = {
0,31,59,90,120,151,181,212,243,273,304,334 }; l...
分类:
其他好文 时间:
2014-05-15 11:38:36
阅读次数:
488
当月的数据select * from MOPICK where
dateDiff(m,getdate(),START_DATE)=0
分类:
数据库 时间:
2014-05-15 11:37:10
阅读次数:
562
初学者一枚,代码都是模仿网上的。亲测可用~运行脚本的前提是本机安装了httplib2模块#!/usr/bin/python
importos
importre
importstring
importurllib
#author:reed
#date:2014-05-14
defGetWebPictures():
url=raw_input(‘pleaseinputthewebsiteyouwanttodownload:‘)
imgconte..
分类:
编程语言 时间:
2014-05-15 09:03:42
阅读次数:
385
An problem about date
时间限制:2000 ms | 内存限制:65535 KB
难度:2
描述
acm的iphxer经常忘记某天是星期几,但是他记那天的具体日期,他希望你能写个程序帮帮他。
输入每行有三个整数 year,month,day,日期在1600年1月1日到9600年1月1日之间;
输出输出对应的星期,用一个整...
分类:
其他好文 时间:
2014-05-15 00:19:14
阅读次数:
380