第一种:查Slow query的SQL语法: ?log_slow_queries = /var/log/mysql/mysql-slow.log long_query_time = 2 (超过2秒的SQL语法记录起来,设短一点来记录除错也是一种方法.) 第二种:设MySQL Replication用binlog: ?...
分类:
数据库 时间:
2014-08-14 11:04:48
阅读次数:
313
在redis2.8版本中有一个tcp-backlog配置, 说明如下:# TCP listen() backlog.## In high requests-per-second environments you need an high backlog in order# to avoid slow...
分类:
其他好文 时间:
2014-08-14 01:26:17
阅读次数:
867
1、show()显示效果 语法:show(speed,callback) Number/String,Function speend为动画执行时间,单位为毫秒。也可以为slow","normal","fast" callback可选,为当动画完成时执行的函数。 show(speed,[e...
分类:
Web程序 时间:
2014-08-13 14:30:56
阅读次数:
271
Problem Description
FSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from crossing a map by building traps to slow them down and towers which...
分类:
其他好文 时间:
2014-08-13 13:14:47
阅读次数:
196
转载地址:http://wasabi.iteye.com/blog/318962 mysql有以下几种日志: 错误日志: -log-err 查询日志: -log 慢查询日志: -log-slow-queries 更新日志: -log-update 二进制日志: -log-bin 是否启用了...
分类:
数据库 时间:
2014-08-12 13:03:44
阅读次数:
332
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:使用两个指针slow和fast,分别以1和2的速度遍历链表。若链表中存在环,则...
分类:
其他好文 时间:
2014-08-11 20:45:12
阅读次数:
230
mysql有以下几种日志:
错误日志: log-err
查询日志: log
慢查询日志: log-slow-queries
更新日志: log-update
二进制日志: log-bin
要把日志生成在 /var/log 目录下(是系统日志存放的地方,只有 root 账号有写权限),需要 MySQL进程对这个目录有读写权限,一般是不这么做的,...
分类:
数据库 时间:
2014-08-11 17:51:02
阅读次数:
443
enum Speed{ STOP, SLOW, NORMAL, FAST}Speed s = Speed.SLOW;switch(s) { case SLOW: break; }参考文献: Java Quick Syntax Reference by Mikael Olsson
分类:
编程语言 时间:
2014-08-09 04:53:16
阅读次数:
295
电源管理模块具有正常模式(NORMAL MODE)、慢速模式(SLOW MODE)、空闲模式(IDLE MODE)、掉电模式(POWER_OFF MODE)共四种工作模式。
产生的时钟信号有
1、MPLL时钟(锁相环);
2、UPLL时钟(USB时钟)
3、HCLK(连接到AHB总线上外围高速组件使用的时钟)
4、PCLK时钟(连接到APB总线上外围组件使用的时钟)
5、FCLK时钟(...
分类:
其他好文 时间:
2014-08-06 02:05:20
阅读次数:
458
On most of the Linux distribution IPv6 is enabled by default, which may cause your internet is workding slow, so If your network do not supportor do not setup IPv6 network, you should better to dis...
分类:
Web程序 时间:
2014-08-05 11:40:29
阅读次数:
348