摘要: 在使用Git客户端的过程中遇到的问题以及解决方案分享。 我之前已经安装Git客户端并且使用Git开发过公司项目,也已经正确生成PublicKey并且添加到SSH keys on github of my account,但是当我想从github上克隆另一个客户端push的代码的时候一直报错: 在开发 阅读全文
posted @ 2017-02-19 18:35 Hypocrite 阅读(136) 评论(0) 推荐(0) 编辑
摘要: -- Copy From Thinking in Java Fourth Edition 阅读全文
posted @ 2016-01-21 13:36 Hypocrite 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Strategy Pattern: The Strategy Pattern definesa family of algorithms,encapsulates each one,and makes them interchangeable. Strategy lets the algorith... 阅读全文
posted @ 2015-06-03 15:08 Hypocrite 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-05-26 21:16 Hypocrite 阅读(783) 评论(0) 推荐(0) 编辑
摘要: refered from http://www.cyberciti.biz/faq/key-differences-between-tcp-and-udp-protocols/TCPUDPReliability: TCP is connection-oriented protocol. When a... 阅读全文
posted @ 2015-03-25 10:55 Hypocrite 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 总结分享这个近期开发解决的一个Bug。 Javascript的Date对象具有容错性,会自动根据当年的日期根据设置的属性值转换,也就是说Date对象的setDate会影响setMonth,month会影响到setFullYear。 JavaScript的Date对象容错性 如果单独使用... 阅读全文
posted @ 2014-08-01 00:22 Hypocrite 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 数字函数 abs(n):用于返回数字n的绝对值 ceil(n):返回大于等于数字n的最小整数 floor(n):返回小于等于数字n的最大整数 mod(m,n):返回m/n数字相除后的余数,如果n=0,则返回m round(n,[m]):执行四舍五入运算,如果省略m则四... 阅读全文
posted @ 2014-07-13 23:06 Hypocrite 阅读(800) 评论(0) 推荐(0) 编辑
摘要: Java批量处理数据import java.sql.Connection;import java.sql.PreparedStatement;//importString sql = "insert into employee (name, city, phone) values (?, ?, ?)... 阅读全文
posted @ 2014-06-22 22:37 Hypocrite 阅读(710) 评论(0) 推荐(0) 编辑
摘要: JavaScript的Date对象有容错性,可将随意给定的日期的年月日自动生成正确的日期时间//JavaScript中Date对象容错性function dateCheck(){ var date = new Date(); date.setDate(date.getDate()+13)... 阅读全文
posted @ 2014-05-22 22:20 Hypocrite 阅读(3605) 评论(0) 推荐(0) 编辑
摘要: 整理使用Javascript函数将数值保留两位小数: 1.num.toFixed(2) //进位 2.(Math.round(num * 100) / 100).toFixed(2) //进位 3.(Math.floor(num * 100) / 100).toFixed(2) //不进... 阅读全文
posted @ 2014-05-19 22:43 Hypocrite 阅读(624) 评论(0) 推荐(0) 编辑