/** * 查找数组中是否存在某项,并返回指定的字符串,可用于检查复选,单选等 * @param $id * @param $ids * @param string $returnstr * @return string */function check_in($id,$ids,$returnstr...
分类:
编程语言 时间:
2015-02-01 19:10:17
阅读次数:
160
For 2008-2010 model years, the function of the turn signal flasher was incorporated into the software of the Smart Power Distribution Junction Box (SP...
分类:
其他好文 时间:
2015-01-30 17:35:00
阅读次数:
169
问题:
在使用线程池处理客户端请求时发现不能获取到客户端的ip!
原因:
由于在server_loop注循环中只把连接字sock加到queue队列中,并没有客户端IP,所以每一次queue回调函数只能取得sock连接字,没有客户端的ip
解决方法:
在将sock加入queue队列的同时把ip也加入到ips队列中,ips队列的长度和queue相同,而且存的数据下标要...
分类:
编程语言 时间:
2015-01-24 15:56:49
阅读次数:
290
委托可以将方法作为参数进行传递。 public delegate void DGFillAreas(string ids,string names); //定义委托 //定义委托就是确定这个委托对象里面可以存储那一种签名(返回值/参数)的方法 //如这个委托就说明了以后这种类型的...
public interface IFillAreas { void FillAreas(string ids, string names); //接口中定义方法签名 } public partial class FrmPerson : Form,inter...
转自:http://www.cnblogs.com/kathmi/archive/2010/08/09/1795405.htmlSnort是著名的开源入侵检测工具,不仅它的嗅探功能极佳,在服务器安全方面也可提供安全防护。近期因为涉及此项内容,故记录下来。使用的软件如下:Snort_2_8_6_Ins...
分类:
其他好文 时间:
2015-01-23 22:52:18
阅读次数:
866
Copied fromhttp://stackoverflow.com/questions/6472533/xquery-and-node-ids;WITH XMLNAMESPACES( DEFAULT 'urn:schemas-microsoft-com:office:spreadsheet...
分类:
其他好文 时间:
2015-01-23 15:56:49
阅读次数:
122
1 var ids=[];2 ids=getChildren(ids, treeNode);//TreeNode是选中节点,ids是子节点id数组,格式:123,223,4,551.获取直接子节点的id//返回值包含选中节点的id,即ids[0]function getChildren(ids, t...
分类:
其他好文 时间:
2015-01-21 21:58:05
阅读次数:
206
//java进行ip号码段正则匹配
public static boolean IPMatch(List ips, String ip) {
if (ips.contains(ip)) {
return true;
}
for (int i = 0; i < ips.size(); i++) {
L...
分类:
编程语言 时间:
2015-01-21 11:33:27
阅读次数:
273
centos ip bonding 一个网卡多个ips,多个网口一个ip1,配置一个网卡多ips的情况cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0DEVICE="eth...
分类:
其他好文 时间:
2015-01-19 19:00:33
阅读次数:
160