摘要: .ssh/config文件:host imspringhostname 182.92.153.2IdentityFile ~/.ssh/id_rsaport 22 阅读全文
posted @ 2015-01-09 09:55 wcp_spring 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 在windows上压缩的文件,是以系统默认编码中文来压缩文件。由于zip文件中没有声明其编码,所以linux上的unzip一般以默认编码解压,中文文件名会出现乱码。 有两种方式解决问题:(建议采用方法一) 1. 通过unzip行命令解压,指定字符集:(用GBK, GB18030也可以) unzip... 阅读全文
posted @ 2014-11-18 19:36 wcp_spring 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 群里有人说实现类似add(1)(2)(3)调用方式的方法,结果马上有人回答:var add = function(a){ return function(b){ return function(c){ return a+b+c; }; };};add(1)(2)(3); //6没错!那要是add(1... 阅读全文
posted @ 2014-09-28 22:40 wcp_spring 阅读(2081) 评论(0) 推荐(0) 编辑
摘要: -webkit-tap-highlight-color: transparent; Mobile上点击链接高亮的时候设置颜色为透明-webkit-user-select: none; 设置为无法选择文本-webkit-touch-callout: none; 长按时不触发系统的菜单, 可用在图片上加... 阅读全文
posted @ 2014-08-21 19:10 wcp_spring 阅读(300) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ghostfromheaven/article/details/7671853自认为第一个最好理解 阅读全文
posted @ 2014-08-13 23:35 wcp_spring 阅读(138) 评论(0) 推荐(0) 编辑
摘要: http://www.w3cfuns.com/blog-5425789-5399326.html 阅读全文
posted @ 2014-07-30 22:24 wcp_spring 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 现如今比较流行的JS测试工具:Qunit 和Jasmine;比较如下:http://www.cnblogs.com/frostbelt/archive/2012/08/03/2622302.html期望值与结果不符,测试不通过。 阅读全文
posted @ 2014-07-30 22:02 wcp_spring 阅读(444) 评论(0) 推荐(0) 编辑
摘要: CREATE DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 阅读全文
posted @ 2014-07-22 14:20 wcp_spring 阅读(128) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/pythoner/archive/2011/07/30/2121599.html 阅读全文
posted @ 2014-07-15 23:16 wcp_spring 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 在python中所有都是对象,在python中只有list和dict是可变对象,其他都是不可变对象。具体参照:http://www.cnblogs.com/lovemo1314/archive/2012/07/18/2597111.html 阅读全文
posted @ 2014-05-12 22:40 wcp_spring 阅读(365) 评论(0) 推荐(0) 编辑