上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页
摘要: 转载:海量数据处理 算法总结.http://blog.csdn.net/wusuopuBUPT/article/details/8882420.2013-05-131. Bloom Filter【Bloom Filter】Bloom Filter(BF)是一种空间效率很高的随机数据结构,它利用位数组很简洁地表示一个集合,并能判断一个元素是否属于这个集合。它是一个判断元素是否存在集合的快速的概率算法。Bloom Filter有可能会出现错误判断,但不会漏掉判断。也就是Bloom Filter判断元素不再集合,那肯定不在。如果判断元素存在集合中,有一定的概率判断错误。因此,Bloom Fil... 阅读全文
posted @ 2013-05-13 09:39 长城的草 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 1、获取字符字节长度(双字节换算为两个单字节)// 获取字符字节长度(双字节换算为两个单字节)function getStrActualLen(sChars){ return sChars.replace(/[^\x00-\xff]/g,"xx").length;} 阅读全文
posted @ 2013-05-10 14:45 长城的草 阅读(144) 评论(0) 推荐(0) 编辑
摘要: int(0)==string(f) : truestring(0)==string(f) : falseint(0)==int(1) : falseint(1)==sting(f) : false 阅读全文
posted @ 2013-05-10 14:44 长城的草 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1、常用限定符(重复)(贪婪模式)代码/语法说明*重复零次或更多次+重复一次或更多次?重复零次或一次{n}重复n次{n,}重复n次或更多次{n,m}重复n到m次2、懒惰限定符(重复)代码/语法说明*?重复任意次,但尽可能少重复+?重复1次或更多次,但尽可能少重复??重复0次或1次,但尽可能少重复{n... 阅读全文
posted @ 2013-05-09 08:44 长城的草 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 在rhel4updae8系统是使用cp命令覆盖文件总是提示要输入yes或no,即使加上-f参数也无法强行覆盖。[2]方法一:输入alias命令,看到系统内部使用的是cp的别名。#aliasalias cp='cp -i'输入unalias cp命令,解除别名。unalias cp #(这只是临时... 阅读全文
posted @ 2013-05-03 09:59 长城的草 阅读(1433) 评论(0) 推荐(1) 编辑
摘要: 1、npm 目录配置:查看当前目录设:npm config ls -l设置某项属性:npm config set 属性名 属性值 #npm config set prefix "C:\123\"读取某一项配置:npm config get prefix参考:[1]nodejs npm目录配置方法.http://node-js.diandian.com/post/2012-07-02/40030910495.2013-04-29 阅读全文
posted @ 2013-04-29 19:20 长城的草 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 第一种:#test{ height:auto!important; height:500px; min-height:500px; }第二种:#test { min-height:100px; background:#BBB; _height:100px; overflow: visible; } 参考:[1] 技术分享 IE6不支持min-height的解决办法.http://developer.51cto.com/art/201008/220386.htm.2013-04-28 阅读全文
posted @ 2013-04-28 09:10 长城的草 阅读(152) 评论(0) 推荐(0) 编辑
摘要: alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(document.body).outerHeight(true));//浏览器当前窗口文档body的总高度 包括border padding margin alert($(window).width()); //浏览器当前窗口可视区域宽度 alert($(document).width());//浏览器当 阅读全文
posted @ 2013-04-28 09:05 长城的草 阅读(162) 评论(0) 推荐(0) 编辑
摘要: general log :mysql打开general log之后,所有的查询语句都可以在general log文件中以可读的方式得到,但是这样general log文件会非常大,所以默认都是关闭的。查看general:show global variables like "%genera%";如图... 阅读全文
posted @ 2013-04-20 16:34 长城的草 阅读(548) 评论(0) 推荐(0) 编辑
摘要: .publish{ width:27px; height:131px; background:url(publish.png) no-repeat; cursor:pointer; position:fixed; top:180px; right:0; _position:absolute; _top:expression(eval(document.documentElement.scrollTop+180)); _right:0;} 阅读全文
posted @ 2013-04-20 15:39 长城的草 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页