在不登录远程主机的情况下,可以查看远程主机的服务器操作系统版本(内核)。脚本执行前提:1.拷贝check_snmp到脚本执行的主机中或在此主机中安装nagios;2.保持list.txt中只有一个IP列1#!/bin/bash2#echo"">list_os.txt3\cplist.txtlist_...
                            
                            
                         
                    
                        
                            
                            
                                本文只提供思想。具体可以根椐情况拓展。前提是需要配置远程主机的SNMP协议。主要是共同体哟。脚本使用:1.拷贝check_tcp到脚本执行的主机中或在此主机中安装nagios;2.保持list.txt中只有一个IP列脚本下载地址:http://download.csdn.net/detail/dre...
                            
                            
                         
                    
                        
                            
                            
                                --启用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
                             
                    
                        
                            
                            
                                double cross(Point a,Point b){ return a.x*b.y-a.y*b.x;}double mul(Point p0,Point p1,Point p2){ return cross(p1-p0,p2-p0);}double dis(Point a){ ...
                            
                            
                                分类:
其他好文   时间:
2014-07-03 20:28:07   
                                阅读次数:
195
                             
                    
                        
                            
                            
                                最近发现myeclipse10中有几处bug 比如: Cannot return from outside a function or methodonClick="return check();"出现错误等等 本人略总结了一点小方法,供参考: 方法一:window -->preferences ....
                            
                            
                                分类:
系统相关   时间:
2014-07-02 19:47:38   
                                阅读次数:
307
                             
                    
                        
                            
                            
                                Same Tree 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 i...
                            
                            
                                分类:
其他好文   时间:
2014-07-02 17:56:50   
                                阅读次数:
205
                             
                    
                        
                            
                            
                                通用属性:
    labelSeparator:''//表示fieldLabel后不会显示冒号“:”
    readOnly:true//只读
    focusCls: 'txtHalfInput'//有焦点时的样式
    maxLength:3, enforceMaxLength:true//输入位数check
    fieldStyle: 'margin-top:3px;'...
                            
                            
                                分类:
Web程序   时间:
2014-07-02 15:29:15   
                                阅读次数:
260
                             
                    
                        
                            
                            
                                1.析构函数不继承;派生类对象在析构时,基类析构函数的调用顺序与构造函数相反。
注:派生类对象建立时要调用基类构造函数,派生类对象删除时要调用基类析构,顺序与构造函数严格相反。
2.例子
example 1
#include 
#include 
class Point
{
public:
    Point(double a, double b, doule c)
 ...
                            
                            
                                分类:
编程语言   时间:
2014-07-02 08:26:49   
                                阅读次数:
298
                             
                    
                        
                            
                            
                                判断一个二叉树是否是轴对称的是一个经典的算法问题,下面结合leetcode上的Symmetric Tree给出判断对称树的两种方法。
      先看看问题描述:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, t...
                            
                            
                                分类:
其他好文   时间:
2014-07-02 06:58:05   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                -(UIColor*)colorOfPoint:(CGPoint)point{unsignedcharpixel[4]={0};CGColorSpaceRefcolorSpace=CGColorSpaceCreateDeviceRGB();CGContextRefcontext=CGBitmapContextCreate(pixel,1,1,8,4,colorSpace,kCGImageAlphaPremultipliedLast);CGContextTranslateCTM(context,-point.x..
                            
                            
                                分类:
其他好文   时间:
2014-07-02 06:28:29   
                                阅读次数:
194