2014-09-25 BaoXinjian一、摘要在官方文档《oracle performance tuning guide》中提到Connecting to the database is an expensive operation that is highly unscalable。数据库的连...
分类:
数据库 时间:
2014-10-14 22:50:39
阅读次数:
222
mysql 服务器是目前比较流行的开源数据库服务器,下面介绍如何使用docker来做一个mysql数据库服务从网站直接 pull 一个 mysql 的镜像core@localhost ~/base $ docker pull dl.dockerpool.com:5000/mysql:5.7
Pulling repository dl.dockerpool.com:5000/mysql
e95cbb...
分类:
数据库 时间:
2014-10-14 19:26:09
阅读次数:
269
为了性能测试需要,写一个了简单的jsp页面: docker is 在测试过程中,发现jvm堆内存有泄露情况!这个实在让人费解啊...经过百度发现装载JSP的tomcat每接受一次请求,就会为这个请求开一个Session,而这个Sessio...
分类:
Web程序 时间:
2014-10-14 14:43:28
阅读次数:
131
下载官方镜像core@localhost ~ $ docker pull ubuntu:14.04
#如果官方下载较慢,可到www.dockerpool.com下载标准镜像
core@localhost ~ $ docker pull dl.dockerpool.com:5000/ubuntu:14.04
core@localhost ~ $ docker tag dl.dockerpool.co...
分类:
系统相关 时间:
2014-10-14 13:21:18
阅读次数:
316
HDU 3397 Sequence operation
题目链接
题意:给定一个01序列,有5种操作
0 a b [a.b]区间置为0
1 a b [a,b]区间置为1
2 a b [a,b]区间0变成1,1变成0
3 a b 查询[a,b]区间1的个数
4 a b 查询[a,b]区间连续1最长的长度
思路:线段树线段合并,需要两个延迟标记一个置为01,一个翻转,然后由...
分类:
其他好文 时间:
2014-10-13 22:18:57
阅读次数:
278
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:...
分类:
其他好文 时间:
2014-10-13 20:08:07
阅读次数:
188
指令的一般格式为INSTRUCTION arguments,指令包括FROM、MAINTAINER、RUN等。
FROM
格式为FROM 或FROM :。
第一条指令必须为FROM指令。并且,如果在同一个Dockerfile中创建多个镜像时,可以使用多个FROM指令(每个镜像一次)。
MAINTAINER
格式为MAINTAINER ,指定维护者信息。
RUN
格式为RUN 或RUN...
分类:
其他好文 时间:
2014-10-13 13:28:19
阅读次数:
202
Docker是啥 Docker是一个程序运行、测试、交付的开放平台,Docker被设计为能够使你快速地交付应用。在Docker中,你可以将你的程序分为不同的 基础部分,对于每一个基础部分都可以当做一个应用程序来管理。Docker能...
分类:
其他好文 时间:
2014-10-13 12:08:49
阅读次数:
263
Problem Description
You have an array consisting of n integers: a1=1,a2=2,a3=3,…,an=n.
Then give you m operators, you should process all the operators in order. Each operator is one of four types...
分类:
其他好文 时间:
2014-10-12 22:56:58
阅读次数:
311