一、所需jar包 commons-dbcp commons-pool 二、Java代码 二、配置文件(db.properties) ...
分类:
数据库 时间:
2016-05-28 17:16:35
阅读次数:
159
1 #include <iostream> 2 #include<string> 3 #include<map> 4 #include<vector> 5 #include"thread_pool.h" 6 7 8 using namespace std; 9 template<class T> 1 ...
分类:
编程语言 时间:
2016-05-27 16:29:23
阅读次数:
145
1.什么是幂等 数学 f(n) = 1^n 就是一个幂等函数 编程 任意多次执行所产生的影响与一次执行相同,不用担心重复执行会对系统造成改变 2.为什么要做幂等 故障: 保底系统因为线上swallow消息重复发送,产生了三个线上问题: a、ts-treasure-pool大面积告警,全部为db主键冲 ...
分类:
其他好文 时间:
2016-05-26 21:50:02
阅读次数:
355
#!/bin/bash
source/etc/profile
back_base_dir=/data/svn_backup
svn_base_dir=/data/svn_pool
log_file=$back_base_dir/svn_backup.log
dayofweek=$(date+%u)
forprojectinAndroidIOSUIfarmproduct官网;do
REPOS_DIR=$svn_base_dir/$project
REPOS_BAK_DIR=$back_base_dir/$p..
分类:
系统相关 时间:
2016-05-26 19:07:17
阅读次数:
285
通常来说,只需要配置URL、username、password以及MaxActive(最大连接数)就可以了。 PS: 如果用Oracle,则把poolPreparedStatements配置为true,mysql可以配置为false。分库分表较多的数据库,建议配置为false。 ...
分类:
其他好文 时间:
2016-05-26 14:34:11
阅读次数:
142
2.Ceph与OpenStack整合(与glance整合)创建:linhaifeng,最新修改:昨天4:18下午思路:1.ceph集群monitor节点创建存储池p_w_picpaths-pool,创建访问该存储池的用户p_w_picpaths,导出秘钥文件ceph.client.p_w_picpaths.keyring,发送ceph.conf和ceph.client.p_w_picpaths.keyr..
分类:
其他好文 时间:
2016-05-26 11:42:27
阅读次数:
535
1.fabulous a。①寓言式的 ②极为巨大的 ③极好的 2.graduate n大学毕业生,获学士学位者 vi接受学位,毕业 3.inhabit vt居住,栖息 habitual a习惯的,惯常的 4.constant a①连续的,不断的 ②永恒的,不变得 ③坚定的,忠实的 n常数,恒量 5. ...
分类:
其他好文 时间:
2016-05-25 22:11:44
阅读次数:
128
#!/bin/bashntpdate0.asia.pool.ntp.orgclock-wdateclock
分类:
系统相关 时间:
2016-05-25 11:33:13
阅读次数:
173
1. Preface Constant buffer是我们在编写shader的时候,打交道最多的一种buffer resource了。constant表明了constant buffer中的数据,在一次draw call的执行过程中都是不变的;而在不同的draw call之间,我们可以修改其中的数据 ...
分类:
其他好文 时间:
2016-05-23 06:33:05
阅读次数:
277
Definition: The #define Directive You can use the #define directive to give a meaningful name to a constant in your program. The two forms of the synt ...
分类:
其他好文 时间:
2016-05-22 22:48:01
阅读次数:
272