一道数学题,参考了网上的思路,先计算一下每一个zig包含的字符个数,实际上是zigSize =
nRows + nRows –
2然后一行一行的加s中的特定元素就行。第一行和最后一行都只需要加一个字符,每一个zig,而且在s中的index间隔是zigSize。中间每一行需要添加两个字符到结果中去。第...
分类:
其他好文 时间:
2014-06-13 08:32:52
阅读次数:
264
NameSpace+Name作为服务元数据的唯一标示.BindingElement描述Binding的特征.绑定表示通信信道的配置,定义C/S间的协议。分为:传输信道(TCP,HTTP…),消息编码(Text,Binary,MTOM),协议信道(安全,事务,可靠性消息)。绑定由绑定元素组成,不同的绑...
分类:
其他好文 时间:
2014-06-13 06:20:40
阅读次数:
250
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
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-06-10 19:38:39
阅读次数:
199
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
由于Node.js仅支持如下编码:utf8, ucs2, ascii, binary, base64, hex,并不支持中文GBK或GB2312之类的编码,
因此如果要读写中文内容,必须要用额外的模块:iconv-lite
注:Node的iconv模块,仅支持linux,不支持Windows,因此要用纯js的iconv-lite,另:作者说iconv-lite的性能更好,具体参考git站点:i...
分类:
Web程序 时间:
2014-06-10 17:52:42
阅读次数:
255
题目
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
方法
从后往前,每个字符进行判断。
public String addBinary(String a, String...
分类:
其他好文 时间:
2014-06-10 17:50:48
阅读次数:
241