int stable_partition(vector& a, int s, int e) { if (s >= e) return s; vector b(a.size()); int pa1, pa2, pb1, pb2; pa1 = pb1 = s; pa2 = pb2 = e; int st... ...
分类:
其他好文 时间:
2017-07-27 23:33:20
阅读次数:
262
MYSQL数据库设计规范 1、数据库命名规范 采用26个英文字母(区分大小写)和0-9的自然数(经常不需要)加上下划线'_'组成; 命名简洁明确(长度不能超过30个字符); 例如:user, stat, log, 也可以wifi_user, wifi_stat, wifi_log给数据库加个前缀; ...
分类:
数据库 时间:
2017-07-27 23:33:10
阅读次数:
313
[goforit ~]$ name="玖零後大叔" [goforit~]$ echo $name 玖零後大叔 [goforit ~]$ echo "$name" 玖零後大叔 [goforit ~]$ echo '$name' $name [goforit ~]$ echo "'"$name"'" '... ...
分类:
系统相关 时间:
2017-07-27 23:31:42
阅读次数:
318
Zabbix故障现象:ZabbixagentonZabbixserverisunreachablefor5minutes故障!zabbix版本号:3.0.9zabbix-检测中-事件查看如下:查看more/var/log/zabbix/zabbix_agentd.log20916:20170726:200017.136thesystemtimehasbeenpushedback,adjustingactivecheckschedule20916:20170727:..
分类:
其他好文 时间:
2017-07-27 22:41:42
阅读次数:
1145
一、清除二进制日志文件方法一:resetmaster;方法二:purgebinarylogsto‘*.bin‘或者purgebinarylogsbefore‘date‘或setglobalexpire_logs_days=3;注意:log_bin为静态参数,不能在线修改,expire_logs_days为全局参数二、修改/etc/my.cnf文件,找到下面两行并注释#log-bin=mysql..
分类:
数据库 时间:
2017-07-27 22:40:49
阅读次数:
289
一、概念 每一趟从待排序的数据元素中选出最小(最大)的一个元素,放在已排好序的最前(最后),直到全部待排序的数据元素排完。 二、复杂度 三、代码实现 ...
分类:
编程语言 时间:
2017-07-27 22:37:37
阅读次数:
187
Question: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, giv ...
分类:
其他好文 时间:
2017-07-27 22:29:25
阅读次数:
179
cat>/etc/my.cnf<<EOF
[client]
port=3306
socket=/tmp/mysql.sock
[mysqld]
port=3306
socket=/tmp/mysql.sock
basedir=/usr/local/mysql
datadir=/usr/local/mysql/data
pid-file=/tmp/mysql.pid
log-error=/var/log/mysqld_err.log
log-bin=/var/log/mysqld_bin.bi..
分类:
其他好文 时间:
2017-07-27 22:28:08
阅读次数:
163
[USF-XSim 62]‘compile’ step failed with error(s). Please check the Tcl console output or 'E:/Vivado/工程路径/sim_1/behav/xvlog.log'file for more informati ...
分类:
其他好文 时间:
2017-07-27 22:27:27
阅读次数:
1360
一 使用CEF的NanUI 《NanUI for Winform发布,让Winform界面设计拥有无限可能》,从此使用html+css开发winform程序 http://www.cnblogs.com/linxuanchen/p/ChromiumFX-based-NanUI-for-Winform ...
分类:
其他好文 时间:
2017-07-27 21:25:14
阅读次数:
195