码迷,mamicode.com
首页 >  
搜索关键字:check    ( 9197个结果
奇偶校验算法
1即计算出所给数中包含1的个数方法一:每一位分别异或(时间复杂度O(n)n代表数位数)函数功能:如果1的个数为奇数个,则返回1,如果1的个数为偶数个,则返回0。parity_check(unsigned x){int val=0;while(x){val^=x;//val 和x进行异或运算x>>=1...
分类:其他好文   时间:2014-09-01 19:06:53    阅读次数:281
SQL 约束
SQL约束主要有一下几种:NOT NULL,UNIQUE ,PRIMARY KEY,FOREIGN KEY,CHECK,DEFAULT
分类:数据库   时间:2014-09-01 17:13:03    阅读次数:214
nagios:CHECK_NRPE: Error - Could not complete SSL handshake.
1.报错信息:CHECK_NRPE:Error-CouldnotcompleteSSLhandshake.2.原因nrpe配置文件没有授权服务端连接3.解决方法[root@nagiosetc]#vimnrpe.cfgallowed_hosts=192.168.1.21,127.0.0.1[root@nagiosetc]#pkillnrpe[root@nagiosetc]#/usr/local/nagios/bin/nrpe-c/usr/local/nagios/..
分类:移动开发   时间:2014-09-01 15:48:24    阅读次数:258
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 identical and the nodes have the same value. 解决...
分类:其他好文   时间:2014-09-01 15:40:33    阅读次数:146
zabbix 获取不到自定义脚本的值解决
agent端:zabbix 自定义脚本[root@localhost script]# cat check_ping.sh #!/bin/bashresult=$(/usr/local/nagios/libexec/check_icmp -s $1 $2)a=$(echo $result | awk...
分类:其他好文   时间:2014-09-01 14:00:33    阅读次数:600
SQLServer - 约束
一、约束的分类 在SQLServer中,有3种不同类型的约束。 1、实体约束 实体约束是关于行的,比如某一行出现的值就不允许出现在其他行,例如主键。 2、域约束 域约束是关于列的,对于所有行,某一列有那些约束,例如CHECK约束。 3、参照完整性约束 如果某列的值必须与其他...
分类:数据库   时间:2014-09-01 12:08:43    阅读次数:296
玩家移动
玩家移动1.检查位置包auto& mpos = m_spBase->getMapPos(pos.tgtPos);if(!check_move_pos(pos, pl)) return;2.跟新当前位置及方向,更新客户端发过来的位置pl->last_move_mode = EnumMoveMod...
分类:移动开发   时间:2014-08-31 18:35:11    阅读次数:299
How to start a pdf reader from a Linux command line?
Before you do this, you should be in a GOME or KDE environment, then type the following commands to check whether you've stalled the app:$ type evince...
分类:系统相关   时间:2014-08-31 17:01:21    阅读次数:224
linux包之rpm之rpm命令
必须选择下面的基本模式:Query, Verify, Signature Check, Install/Upgrade/Freshen, Uninstall, Initialize Database, Rebuild Database, Resign, Add Signature, Set Owne...
分类:系统相关   时间:2014-08-31 13:11:31    阅读次数:278
SSH+Ajax实现用户名重复检查
1、struts.xml设置 checkresult 2、html和js,在需要提交的form页面中包含两个js文件,jquery.js(随便下载一个版本)和username_check.js(如下)用户名验证用户名var user = { ...
分类:其他好文   时间:2014-08-30 09:56:09    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!