一道数学题,参考了网上的思路,先计算一下每一个zig包含的字符个数,实际上是zigSize =
nRows + nRows –
2然后一行一行的加s中的特定元素就行。第一行和最后一行都只需要加一个字符,每一个zig,而且在s中的index间隔是zigSize。中间每一行需要添加两个字符到结果中去。第...
分类:
其他好文 时间:
2014-06-13 08:32:52
阅读次数:
264
有这样一个业务场景,需要在2个表里比较存在于A表,不存在于B表的数据。表结构如下:T_SETTINGS_BACKUP | CREATE TABLE
`T_SETTINGS_BACKUP` ( `FID` bigint(20) NOT NULL AUTO_INCREMENT, `FUSERID` .....
分类:
数据库 时间:
2014-06-12 21:32:15
阅读次数:
453
JS记录错误日志/捕捉错误
//onerror提供异常信息,文件路径和发生错误代码的行数的三个参数。window.onerror = function(e,url,index){
var msg = e.message || e|| "未知错误"; alert("错误信息:"+msg+",错误路...
分类:
Web程序 时间:
2014-06-12 21:29:30
阅读次数:
488
错误:org.apache.jasper.JasperException:/index.jsp(2,0)UnabletoreadTLD"META-INF/c.tld"fromJARfile"file:/D:/svnframe/web/WEB-INF/lib/standard-1.1.2.jar":解决:移除lib下的jsp-api.jar和servlet-api.jar即可
分类:
其他好文 时间:
2014-06-10 23:46:20
阅读次数:
312
http://w3.insidepacket.net/index.php/16-softlayer-ipsec-4Recently,oneSoftlayercustomercomplainedthattheyhaveissuewhentheserversonthecorporatenetworktalktoVMguestonSoftlayer.TheyfoundthattheirVMguestsinSoftlayeralwaysseethesamesourceIPwhendifferenthostsfromt..
分类:
其他好文 时间:
2014-06-10 23:18:52
阅读次数:
209
vector split(const string& src, const
string& separator){vectordest;string str = src;string
substring;string::size_type start = 0, index;do{index = st...
分类:
其他好文 时间:
2014-06-10 20:35:36
阅读次数:
238
补上作业,MariaDB10和MySQL5.6社区版压力测试,见下图:sysbench(10.8.8.43)MySQL5.6和MariaDB10.0.11(10.8.8.100)压力测试参数:sysbench--test=oltp--mysql-table-engine=innodb
--oltp-table-size=10000000--max-requests=0--max-time=900
--num-threads=512--mysql-ho..
分类:
数据库 时间:
2014-06-10 18:52:48
阅读次数:
384
git可以add to index-->commit。但在pull的时候出现: org.eclipse.jgit.api.errors.transportexception。
解决办法:
Eclipse windows-->preferences-->general-->security-->secure storage-->contents-->GIT.
选中ssh后点击delete。
...
分类:
系统相关 时间:
2014-06-10 18:29:59
阅读次数:
3547
百度了一下vlookup的语法规则:
该函数的语法规则如下:
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
参数
简单说明
输入数据类型
lookup_value
要查找的值
数值、引用或文本字符串
...
分类:
其他好文 时间:
2014-06-10 18:13:53
阅读次数:
253
測试结论mysql版本号 5.1 表类型: innodb,
row_format=compact (这是默认的行格式) 插入超过10个blob, blob的数据量非常小(768字节), 插入失败:报 Got error
139 from storage engine。 注意,假设mysqlse...
分类:
数据库 时间:
2014-06-10 16:33:07
阅读次数:
276