ansible-playbook -f 3 endpoint/mysql.yml -e "exec=fileConfig" -e "db_action=setAll" -e "paras={'plugin-load':'semisync_master.so;semisync_slave.so',rp ...
分类:
数据库 时间:
2017-09-28 13:01:44
阅读次数:
239
@echo off setlocal enabledelayedexpansion set infile=free.txt set url=https://www.google.com/?gws_rd=ssl set pl="http://www.66ip.cn/mo.php?sxb=&tqsl=1 ...
分类:
其他好文 时间:
2017-09-28 09:50:39
阅读次数:
171
状态配置 每个应用都可以在不同的情况下设置自己的状态(或者称之为应用场景),并且加载不同的配置文件。 举个例子,你需要在公司和家里分别设置不同的数据库测试环境。那么可以这样处理,在公司环境中,我们在入口文件中定义: define('APP_STATUS','office'); 那么就会自动加载该状态... ...
分类:
Web程序 时间:
2017-09-27 20:48:45
阅读次数:
173
#pragma mark section不悬停 static CGFloat const sectionHeight = 12.0f;//section的高度值 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sect ...
分类:
其他好文 时间:
2017-09-27 18:59:36
阅读次数:
171
单一虚函数继承 class A{public:virtual int foo( ) { return val ; }virtual int funA( ) {}private:int val ;char bit1 ;} ; class B : public A{public:virtual int ...
分类:
编程语言 时间:
2017-09-26 23:40:50
阅读次数:
305
/** * 合并任意个数组 * @param first * @param rest * @param * @return */ public static T[] concat(T[] first, T[]... rest) { int totalLength = first.length; fo... ...
分类:
编程语言 时间:
2017-09-26 23:29:08
阅读次数:
214
ENTITY 实体 在一个甚至多个XML文档中频繁使用某一条数据,我们可以预先定义一个这条数据的“别名”,即一个ENTITY,然后在这些文档中需要该数据的地方调用它。 XML定义了两种类型的ENTITY,一种在XML文档中使用,另一种作为参数在DTD文件中使用。 ENTITY的定义语法: <!DOC ...
分类:
其他好文 时间:
2017-09-26 21:04:27
阅读次数:
281
1.读入待分析的字符串 2.分解提取单词 3.计数字典 4.排除语法型词汇 5.排序 6.输出TOP(20) ...
分类:
其他好文 时间:
2017-09-26 21:04:14
阅读次数:
234
1.时间格式化 a.需要熟悉Date对象的方法; b.使用 getFullYear(),getMonth(),getDate()等方法获取年份,月份等时间数据,然后根据所需要的时间格式可以自行拼接 demo: 下面以 这种格式为例:2017-09-15 15:10:06, 2.移动端页面中出现弹出框 ...
分类:
Web程序 时间:
2017-09-26 13:07:35
阅读次数:
265