WIKI:http://wiki.nginx.org/HttpLimitReqModule漏桶原理(leakybucket):http://en.wikipedia.org/wiki/Leaky_bucket#以用户二进制IP地址,定义三个漏桶,滴落速率1-3req/sec,桶空间1m,1M能保持大约16000个(IP)状态limit_req_zone$binary_remote_addrzone=qps1:1mrate=1r/..
分类:
Web程序 时间:
2016-10-22 01:04:36
阅读次数:
194
题目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total ...
分类:
其他好文 时间:
2016-10-22 00:03:46
阅读次数:
224
最近工作中遇到,要使用angularJS的post方法来下载excel的情况。网上找到一个帖子:http://stackoverflow.com/questions/22447952/angularjs-http-post-convert-binary-to-excel-file-and-downl ...
分类:
Web程序 时间:
2016-10-21 19:56:02
阅读次数:
272
问题现象:Checking project dependencies...Compiling Project1.dproj (Debug, Android)dcc command line for "Project1.dpr"[DCC Fatal Error] Project1.dpr(1): F1 ...
分类:
移动开发 时间:
2016-10-21 13:04:40
阅读次数:
468
From: http://blog.jobbole.com/73517/ 二分检索是查找有序数组最简单然而最有效的算法之一。现在的问题是,更复杂的算法能不能做的更好?我们先看一下其他方法。 有些情况下,散列整个数据集是不可行的,或者要求既查找位置,又查找数据本身。这个时候,用哈希表就不能实现O(1) ...
分类:
其他好文 时间:
2016-10-21 10:16:14
阅读次数:
197
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique BST' ...
分类:
编程语言 时间:
2016-10-21 01:03:53
阅读次数:
139
Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree [1,null,2,3], return [1,3,2]. Note: Recursive so ...
分类:
编程语言 时间:
2016-10-20 19:23:49
阅读次数:
197
二进制日志语句BinaryLog,我们俗称binlog,记录数据库更改的数据,常用于主从复制环境和恢复备份。开启binlog比较简单,Centos7环境打开my.cnf配置文件,添加server-id=[序列号]
log-bin=[文件名]5.7.3以后版本必须配置server-id,文件名可配置绝对路径,即可开启binlog。binl..
分类:
数据库 时间:
2016-10-20 15:58:06
阅读次数:
6094
Given a complete binary tree, count the number of nodes. http://www.programcreek.com/2014/06/leetcode-count-complete-tree-nodes-java/ ...
分类:
其他好文 时间:
2016-10-20 07:53:17
阅读次数:
154
下面这个链接有比较全的leetcode题目包括锁的 http://www.cnblogs.com/grandyang/p/4606334.html https://leetcode.com/problems/binary-tree-upside-down/ http://blog.csdn.net/ ...
分类:
其他好文 时间:
2016-10-20 07:19:28
阅读次数:
221