filter(function, sequence):对sequence中的item依次执行function(item),将执行结果为True的item组成一个List/String/Tuple(取决于sequence的类型)返回:>>> def f(x): return x % 2 != 0 an...
分类:
编程语言 时间:
2014-07-15 08:41:24
阅读次数:
292
自动清除firefox缓存1.在firefox的地址栏上输入about:config回车2.找到browser.cache.check_doc_frequency选项,双击将3改成1保存即可。选项每个值都是什么含义的。请看下面的解释:0: Once per session 每个进程一次 每次启动Fi...
分类:
其他好文 时间:
2014-07-13 22:51:53
阅读次数:
280
Implement a function to check if a binary tree is a binary search tree./* The inorder travel of a BST is strictly increasing. We track the pre node of...
分类:
其他好文 时间:
2014-07-13 22:27:09
阅读次数:
344
HDMI,全称为(High Definition Multimedia Interface)高清多媒体接口,主要用于传输高清音视频信号。HDMI引脚:HDMI有A,B,C,D,E五种引脚类型,目前市面中比较常见的就是Type A:其中 1-9都是TMDS数据传输实际上用到的引脚,分为0,1,2三组....
分类:
其他好文 时间:
2014-07-13 21:57:21
阅读次数:
341
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:...
分类:
其他好文 时间:
2014-07-13 17:13:49
阅读次数:
213
这里记录下堆的相关操作。
op 1:
'''
@ data: the heap array
@ p : index of parent item
@ n : number of data
@@ Swap p and it's son items, make p the largest of them
'''
def swapForMaxHeap(data, n, p):
l...
分类:
其他好文 时间:
2014-07-13 17:07:15
阅读次数:
223
前言:nagios界面上,看到监控mysql服务报错如下:Warning:NRPE: Unable to read output 1,去nagios监控服务器上check下1.1,执行check_nrpe命令远程调用在监控端nagios服务器上执行check_nrpe检查mysql状态报错如下:[root@mysqlvm2 ~]# /usr/lib/nagios/plugins/check_nr...
分类:
移动开发 时间:
2014-07-13 16:40:37
阅读次数:
232
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
/**
* Defin...
分类:
其他好文 时间:
2014-07-13 15:50:25
阅读次数:
158
1.先用表格列举一下我的监控对象和阀值:监控对象监控阀值主机资源主机存活:check_ping-w3000.0,80%-c5000.0,100%-p5(3000毫秒响应时间内,丢包率超过80%报警告,5000毫秒响应时间内,丢包率超过100%报危急,一共发送5个包)登录用户:check_user-w5-c10(w为警告,c为危急)系..
分类:
移动开发 时间:
2014-07-13 14:38:23
阅读次数:
587
1、数据插入2、数据更新3、数据删除4、更新和删除的指导原则1、数据插入-INSERT插入数据可以使用以下几种方式:插入完整的行插入行的一部分插入多行插入某些查询的结果Syntax:
INSERT[LOW_PRIORITY|DELAYED|HIGH_PRIORITY][IGNORE]
[INTO]tbl_name[(col_name,...)]
{VALUES|VAL..
分类:
数据库 时间:
2014-07-13 14:35:05
阅读次数:
328