一道数学题,参考了网上的思路,先计算一下每一个zig包含的字符个数,实际上是zigSize =
nRows + nRows –
2然后一行一行的加s中的特定元素就行。第一行和最后一行都只需要加一个字符,每一个zig,而且在s中的index间隔是zigSize。中间每一行需要添加两个字符到结果中去。第...
分类:
其他好文 时间:
2014-06-13 08:32:52
阅读次数:
264
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
使用System.Data.SQLite下载地址:http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki得到System.Data.SQLite.dll添加到工程引用;建表,插入操作C#代码staticvoidMai...
分类:
数据库 时间:
2014-06-10 21:40:17
阅读次数:
367
z-index这个属性其实在挺多地方都会用到,在百度上搜索也有大量关于z-index的篇幅去阐述这个属性,特别是在ie6下的z-index处理有更多的相关文章,本文就不再围绕z-index这一属性的基础展开叙述。这里要讨论的是最近在项目上对z-index在ie6下自己的一个认识,希望能帮助在z-.....
分类:
其他好文 时间:
2014-06-10 20:59:37
阅读次数:
211
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
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
一、首先安装JDKJDK:http://www.oracle.com/technetwork/cn/java/javase/downloads/index.html根据操作系统选择相应的版本二、打开
这台电脑 - 系统 - 属性三、打开 高级系统设置四、打开 环境变量 - 新建系统变量 确定变量名:...