在生产环境中,对于高并发架构,我们知道缓存 是最重要的环节,对于大量的高并发。可以采用三层缓存架构来实现,也就是Nginx+Redis+Ehcache 对于中间件Nginx常来做流量分发,同事nginx本身也有自己的缓存机制,但是呢,容量也是有限,我们可以用来缓存热点数据,让用户的请求直接走缓存并返 ...
分类:
系统相关 时间:
2018-06-26 22:39:12
阅读次数:
250
1.step_w、step_h其实就相当于faster中的feat_stride,也就是把这些点从feature map映射回原图,同时也可以看出min_size、max_size这些都是直接在针对原图来讲的 2.以mobileNet-ssd为例子:https://github.com/chuanq ...
分类:
其他好文 时间:
2018-06-26 20:48:57
阅读次数:
636
./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--enable-inline-optimization--disable-debug--disable-rpath--enable-shared--enable-opcache--enable-fpm--with-fpm-user=www--wi
分类:
Web程序 时间:
2018-06-26 11:11:20
阅读次数:
236
主要结构为: python进程发布消息,java进程订阅消息。 依赖环境: python: pip install redis java: jedis 1. python端: PubSub.py sub.py 2. java端 RedisPub.java 参考链接: http://www.cnblo ...
分类:
编程语言 时间:
2018-06-26 00:45:08
阅读次数:
250
Given two sets of integers, the similarity of the sets is defined to be N~c~/N~t~*100%, where N~c~ is the number of distinct common numbers shared by ...
分类:
其他好文 时间:
2018-06-25 21:43:23
阅读次数:
126
1. initial state const initialState = { "recipes": [ { "name": "Omelette" }, { "name": "Waffle" } ], "ingredients": [ { "name": "Eggs", "quantity": 2, ...
分类:
其他好文 时间:
2018-06-25 15:20:03
阅读次数:
211
Android官方指出的数据存储方式总共有五种:Shared Preferences、网络存储、文件存储、外储存储、SQLite,这些存储方式一般都只是在一个单独的应用程序中实现数据的共享,而对于需要操作其他应用程序中的数据时(如媒体库、通讯录等),可能就需要借助ContentProvider了。 ...
分类:
其他好文 时间:
2018-06-25 14:56:19
阅读次数:
167
1. include createStore 2. Establish reducer 3. invoke createStore() code: import { createStore } from 'redux'; const reducer = (state, action) => { sw ...
分类:
其他好文 时间:
2018-06-25 11:01:15
阅读次数:
142
Bean Validation API Apache Commons Lang Aspectj Redis <!-- https://mvnrepository.com/artifact/redis.clients/jedis --> <dependency> <groupId>redis.clie ...
分类:
其他好文 时间:
2018-06-24 22:25:57
阅读次数:
167
HTTP协议 ?HTTP协议的版本有:http/0.9, http/1.0, http/1.1, http/2.0;HTTP协议是无状态的,服务器无法持续追踪客户端的来源,解决HTTP协议无状态的方法有Cookie和Session;一次访问的过程请求(request)和响应(response)为HT ...
分类:
Web程序 时间:
2018-06-24 16:12:36
阅读次数:
256