在MySQL线上环境我们一般只打开了binary log,slow log,有时我们需要查看general log呢?因为该log记录所有的请求,打开该日志肯定给磁盘造成很大压力,IO能力有所下降,所以该日志线上一般不打开的,这就到tcpdump闪亮登场了。 tcpdump用法也不算复杂,输出就比较 ...
分类:
数据库 时间:
2017-10-11 15:20:14
阅读次数:
188
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes. The lowest common ancestor is the node with larg ...
分类:
其他好文 时间:
2017-10-11 14:04:20
阅读次数:
175
如果您一直关注OneCoder,我们之前有两篇文章介绍关于Netty消息连续收发的问题。( 《Java NIO框架Netty教程(五) 消息收发次数不匹配的问题 》、《 Java NIO框架Netty教程(七)-再谈收发信息次数问题 》)。如果您经常的“怀疑”和思考,我们刚介绍过了Object的传递 ...
分类:
编程语言 时间:
2017-10-11 00:46:13
阅读次数:
168
Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the roo... ...
分类:
其他好文 时间:
2017-10-10 21:50:19
阅读次数:
162
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 方法一:迭代 方法二:递归 ...
分类:
其他好文 时间:
2017-10-10 19:20:19
阅读次数:
147
读取整个文件内容,结果如下: 读取整个文件内容,以列表方式显示,结果如下: ...
分类:
编程语言 时间:
2017-10-10 13:05:51
阅读次数:
234
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, Given nums = [0, 1,... ...
分类:
其他好文 时间:
2017-10-10 10:08:11
阅读次数:
196
PE文件格式详解,第一讲,DOS头文件格式 今天讲解PE文件格式的DOS头文件格式 首先我们要理解,什么是文件格式,我们常说的EXE可执行程序,就是一个文件格式,那么我们要了解它里面到底存了什么内容 简短的说明. 我们要知道,PE文件格式,是微软半公开的,因为微软并没有说明这个文件格式.但是微软有定 ...
分类:
其他好文 时间:
2017-10-10 10:03:09
阅读次数:
213
Given a Binary Tree, write a function to check whether the given Binary Tree is a prefect Binary Tree or not. A Binary tree is Perfect Binary Tree in ...
分类:
其他好文 时间:
2017-10-10 09:57:35
阅读次数:
138
Given a binary tree, you need to check whether sum of all covered elements is equal to sum of all uncovered elements or not. In a binary tree, a node ...
分类:
其他好文 时间:
2017-10-10 09:56:01
阅读次数:
192