上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

2013年2月27日

http://alibench.com

摘要: http://alibench.com 阅读全文

posted @ 2013-02-27 10:28 李玉龙 阅读(190) 评论(0) 推荐(0)

2013年1月30日

常用正则表达式,来自新浪微博的js

摘要: STK.register("common.setting.rule", function(a) { var b = {}; b.isEmpty = function(a) { return /^\s*$/g.test(a.replace(/^\s+|\s+$/g, "")) }; b.isNumber = function(a) { return /^[+\-]?\d+(\.\d+)?$/.test(a) }; b.isName = function(a) { return /^[0-9a-zA-Z\u4e00-\u... 阅读全文

posted @ 2013-01-30 10:33 李玉龙 阅读(391) 评论(0) 推荐(0)

2013年1月29日

c++的正则库 pcre

摘要: pcre 阅读全文

posted @ 2013-01-29 17:28 李玉龙 阅读(183) 评论(0) 推荐(0)

2012年11月21日

mysql的反向

摘要: desc table然后按读表的方式解析字段即可perl的格式化输出 printf("%-10s",$xxx)perl的简单正则匹配$Type =~ /.*big.*$/输出大量文本my $content = sprintf <<FLAG_CONTENT;aaaaaaaaaaaaFLAG_CONTENT 阅读全文

posted @ 2012-11-21 11:37 李玉龙 阅读(174) 评论(0) 推荐(0)

2012年11月12日

xpath中的转义字符

摘要: xpath中只转义单引号和双引号两个字符//you may want to use constants like HtmlTextWriter.SingleQuoteChar and//HtmlTextWriter.DoubleQuoteChar intead of strings like "'" and "\""private static string GenerateConcatForXPath(string a_xPathQueryString){ string returnString = string.Empty; str 阅读全文

posted @ 2012-11-12 10:14 李玉龙 阅读(4306) 评论(0) 推荐(0)

2012年10月23日

youku html5上传的代码

摘要: b.slice ? i = b.slice(a, a + 10485760) : b.webkitSlice ? i = b.webkitSlice(a, a + 10485760) : b.mozSlice ? i = b.mozSlice(a, a + 10485760) : (i = b, a = 0, this.loaded = c) 阅读全文

posted @ 2012-10-23 18:30 李玉龙 阅读(185) 评论(0) 推荐(0)

匹配ip

摘要: .*?(\d*\.\d*\.\d*\.\d*).*? 阅读全文

posted @ 2012-10-23 09:21 李玉龙 阅读(122) 评论(0) 推荐(0)

2012年10月12日

mysql导出数据的方法

摘要: mysql -hxxx -uroot -pxxx xxxx --skip-column-names -e "select (CASE WHEN xx<60 THEN 1 WHEN (xx>=60 and xx<90) THEN 2 ELSE 4 END) t from xxx where xxx>=unix_timestamp('2012-10-10')" > /tmp/xxx.txt | sort -n | uniq -c; 阅读全文

posted @ 2012-10-12 19:15 李玉龙 阅读(151) 评论(0) 推荐(0)

2012年10月10日

linux库冲突的解决方法

摘要: 今天有个程序使用两个静态库,静态库无源码,但是执行时发现库函数名有冲突解决方法:把其中一个静态库变成动态库,并设置为只是用自身的符号表具体过程:1、先把.a文件分解成.o文件: ar -x liba.a2、再用gcc重新链接成so:gcc -shared -fPIC -Wl,-Bsymbolic-o liba.so *.o注:-Bsymbolic的意思是只是用自身的符号表 阅读全文

posted @ 2012-10-10 17:41 李玉龙 阅读(1531) 评论(0) 推荐(0)

2012年10月5日

jquery的跨域post

摘要: 注:似乎是我搞错了,这样还是get的,不是post,可能需要用iframe + 代理的方式。。$.post("http://xxxx.com/xxxx?xxx=xxx&callback=", {}, your_callback_function,"jsonp");1. 如果url中有callback=,那么jquery会自动填充后面的回调函数为一个随机字符串,例如jquery发送给服务的url可能是http://xxxx.com/xxxx?xxx=xxx&callback=jquery12356812222. 服务器需要遵守这个协定,回包 阅读全文

posted @ 2012-10-05 11:08 李玉龙 阅读(360) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

导航