Making the Grade
Time Limit: 1000MS Memory Limit: 65536K
Total Submissions: 4732 Accepted: 2244
DescriptionA straight dirt road connects two fields on FJ’s farm, but it changes elevation mo...
分类:
其他好文 时间:
2015-07-03 10:38:35
阅读次数:
104
OXY OPENCART 商城自适应主题模板 ABC-0020-01 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? OXY FEATURES Layout Foundation Framework – the mo...
分类:
其他好文 时间:
2015-07-01 20:45:23
阅读次数:
231
# -*- coding: utf-8 -*-import pygame#导入pygame库from sys import exit#向sys模块借一个exit函数用来退出程序pygame.init()#初始化pygame,为使用硬件做准备screen = pygame.display.set_mo...
分类:
其他好文 时间:
2015-07-01 11:48:09
阅读次数:
195
添加Cart、Order和OrderDetails模型类购物和结算都要使用某些新的类,在Models文件夹上单击右键添加Cart类(Card.cs),代码如下:using System.ComponentModel.DataAnnotations;namespace MvcMusicStore.Mo...
分类:
其他好文 时间:
2015-06-25 19:22:56
阅读次数:
153
Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is at mo...
分类:
其他好文 时间:
2015-06-25 16:51:29
阅读次数:
142
今天上网查了查资料,之前使用apache的jk模块做负载均衡。后来觉得jk的负载配置有点死板,只能按照负载权重值来进行请求的分发,没有做到比较智能的负载平衡,并且使用mod_jk访问页面发现确实比较慢。可能是jk路由到真正的Node Server上比较费时间吧。结合笔者提出的jk的缺点,今天使用mo...
分类:
Web程序 时间:
2015-06-25 15:21:00
阅读次数:
114
Bootstrap中禁用滚动条的方法逻辑:当点击弹窗按钮后,js会为body元素添加一个modal-open的类,该类主要内容如下.modal-open .modal { overflow-x: hidden; overflow-y: auto;}说明:modal-open使用在body上,mo.....
分类:
其他好文 时间:
2015-06-23 23:11:11
阅读次数:
264
一、概述1.目标:要在Tank的move()方法做时间代理及日志代理(可以设想以后还要增加很多代理处理),且代理间的顺序可活更换2.思路:(1)聚合:由于代理类及被代理类都实现了movable接口,代理类聚合了被代理类,所以可以灵活多变,具体看代码(2)继承:继承不够灵活,具体看代码二、代码1.Mo...
分类:
编程语言 时间:
2015-06-21 13:08:36
阅读次数:
152
大型日志平台搭建
Java 环境部署
网上很多教程,此处只做出测试
java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mo...
分类:
其他好文 时间:
2015-06-17 21:37:56
阅读次数:
284
1. Nginx安装
1)下载Nginx: wget http://nginx.org/download/nginx-1.3.11.tar.gz /opt/
2)安装Nginx:
./configure
--user=www --group=www
--prefix=/usr/local/nginx
--with-http_stub_status_mo...
分类:
其他好文 时间:
2015-06-16 08:01:03
阅读次数:
154