Category: 技术

git遇到的问题

在公司自己搭建的gitlab下拉取代码总是报错 fatal: unable to access 'xxxxxxxx.git/': SSL certificate problem: Invalid certificate chain 后找到解决方案 if you use self generated ssl key, you can try this. git config --global http.sslVerify false
之前在时候看书上都推荐用Collections.synchronizedMap()来保证thread-safety当时就在想为啥不用ConcurrentHashMap; 然后看了下面这篇文章,讲的还是非常清晰的,所以摘抄过来,原文地址http://www.pixelstech.net/article/1394026282-ConcurrentHashMap-vs-Collections-synchronizedMap()
缘起于看某一个类时候注意到的Arrays.copy,以前一直用,却没仔细进去瞅瞅 public static void sort(long[] a) { DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); } DualPivotQuicksort初步看上去是快排的一种,查阅了一下,复杂度是nlogn,但大规模经验数据证明整体性、稳定性不错,引用看到的评论所说:"And this is why we are extreme [...]
原文链接http://stackoverflow.com/questions/11208479/how-do-i-initialize-a-byte-array-in-java 有如下几种 1.jdk6 private static final byte[] CDRIVES = javax.xml.bind.DatatypeConverter.parseHexBinary("e04fd020ea3a6910a2d808002b30309d");

nginx HTTP 错误码499的含义(转)

nginx HTTP 错误码499的含义 原文地址:http://www.blogkid.net/archives/2582.html Web服务器在用着nginx,在日志中偶尔会看到有499这个错误。开始没想明白到底是什么意思,在Twitter上提问也没有得到答案。日志如下: 61.135.249.220 – - [02/Oct/2009:10:28:21 +0000] “GET /subject/93390/ HTTP/1.1″ 499 0 “-” “Mozilla/5.0 (compa [...]
Powered by Typecho. Theme: Motion modified by changyuefeng.版权所有ICP证:浙ICP备20011766号