本文只提供思想。具体可以根椐情况拓展。前提是需要配置远程主机的SNMP协议。主要是共同体哟。脚本使用:1.拷贝check_tcp到脚本执行的主机中或在此主机中安装nagios;2.保持list.txt中只有一个IP列脚本下载地址:http://download.csdn.net/detail/dre...
Android自定义spinner(背景、字体颜色) (2012-07-04 17:04:44)1、准备两张图片,并做好9.png2、在drawable中定义spinner_selector.xml3、style中定义4、调用5、在layout中定义simple_spinner_item.xml6、...
分类:
移动开发 时间:
2014-07-07 10:41:51
阅读次数:
361
--启用or禁用指定表所有外键约束 alter table tbname NOCHECK constraint all alter table tbname CHECK constraint all--查看约束select name , is_disabled from sys.forei...
分类:
数据库 时间:
2014-07-03 22:41:58
阅读次数:
416
About PythonPythonis an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures,...
分类:
编程语言 时间:
2014-07-03 22:24:34
阅读次数:
287
Given two binary trees, write a function to check if they are equal or not.
分类:
其他好文 时间:
2014-07-03 19:26:46
阅读次数:
213
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
分类:
其他好文 时间:
2014-07-03 19:20:42
阅读次数:
189
题目大意:
求在m个串中同时出现两次以上且不覆盖的子串的长度。
思路分析:
二分答案,然后check是否满足,判断不覆盖的方法就是用up down 来处理边界。
#include
#include
#include
#include
#include
#include
#define maxn 110005
using namespace std;
char ...
分类:
其他好文 时间:
2014-07-03 16:55:30
阅读次数:
350
题目链接:uva 10539 - Almost Prime Numbers
题目大意:给出范围low~high,问说在这个范围内有多少个数满足n=pb,(p为素数).
解题思路:首先处理出1e6以内的素数,然后对于每个范围,用solve(high)?solve(low?1),solve(n)用来处理小于n的满足要求的数的个数。枚举素数,判断即可。
#include
#include...
分类:
其他好文 时间:
2014-07-03 16:50:09
阅读次数:
190
Java层的Binder对象模型:
IBinder
IBinder是Binder通信机制中的核心部分(Base interface for a remotable object, the core part of a lightweight remote procedure call mechanism designed for high performance when pe...
分类:
其他好文 时间:
2014-07-03 16:46:20
阅读次数:
204
选择排序
定义:依次选择最小的元素放在相应的位置上
特点:比较次数是 N(N-1)/2 交换次数是 N (each exchange puts an item into its ?nal position, so the number of exchanges is N. Thus, the running time is dominated by the number of
com...
分类:
其他好文 时间:
2014-07-03 15:44:01
阅读次数:
259