需求是我们需要对服务器上的流量进行监控,网络上有个流传的check_traffic.sh,它需要被监控机开启snmp。但是感觉都使用上了nagios还要开snmp。。。有点斧子剪刀一起用的感觉,所以就动手写了个监控流量的shell:#!/bin/shusage()
{ echo "Usage: $0...
分类:
移动开发 时间:
2014-05-06 08:46:56
阅读次数:
361
Problem DescriptionGiven n integers.You have two
operations:U A B: replace the Ath number by B. (index counting from 0)Q A B:
output the length of the...
分类:
其他好文 时间:
2014-05-06 01:20:33
阅读次数:
332
ORACLE中有一张系统数据库表DUAL用来访问系统的相关信息SELECT SYSDATE
FROM DUAL;
--返回当前系统日期-----------------------------------------------------------------------------------...
分类:
数据库 时间:
2014-05-06 00:33:06
阅读次数:
897
3 30 1000 false Test false 100 null false 60 3 60
15 100 3 root password select id from test where id=1 300 false true root false
con_test 30000 30 .....
分类:
其他好文 时间:
2014-05-06 00:31:10
阅读次数:
258
Given a binary tree containing digits from 0-9
only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-05-05 23:55:36
阅读次数:
407
遇到的问题:input{1,1,1}, output{1,1}, expected{1},
原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next,
这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
分类:
其他好文 时间:
2014-05-05 22:47:08
阅读次数:
454
Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked
list from positionmton. Do it in-place and in one-pass.For example:Given1...
分类:
其他好文 时间:
2014-05-05 22:46:11
阅读次数:
411
视图(View)实际上是一张或者多张表上的预定义查询,这些表称为基表。从视图中查询信息与从表中查询信息的方法完全相同。只需要简单的 SELECT…FROM
即可。视图具有以下优点:1. 可以限制用户只能通过视图检索数据。这样就可以对最终用户屏蔽建表时底层的基表。2. 可以将复杂的查询保存为视图。.....
分类:
其他好文 时间:
2014-05-05 22:38:28
阅读次数:
332
Struts2实现文件上传
文件上传成功后结果页面
result.jsp:
...
分类:
其他好文 时间:
2014-05-05 13:06:13
阅读次数:
265
BeautifulSoup 善于网页数据分析 ,但是 python for android : BeautifulSoup 有 bug ,
text = h4.a.text 只能取得 None,所以我写了function: getText()
来fix this bug.
例如: 抓取CSDN极客头条内容 soup.py
import urllib2, re
from Beau...
分类:
移动开发 时间:
2014-05-03 17:33:08
阅读次数:
427