This example demonstrates how to brighten or darken an RGB buffered image by scaling the red, green, and blue values in the image. If the image is not ...
分类:
其他好文 时间:
2018-09-03 00:01:08
阅读次数:
188
We can define a class to be Singleton or Prototype. If the class was defined as Prototype, then everytime when we use new keyword, it will create a ne ...
分类:
其他好文 时间:
2018-09-02 13:58:59
阅读次数:
149
开启Spring Boot 之旅 1、Spring Boot 简介 简化Spring应用开发的一个框架; 整个Spring技术栈的一个大整合; JavaEE开发的一站式解决方案。 2、微服务 Martion Fowler 的一篇长长的文章https://martinfowler.com/micros ...
分类:
编程语言 时间:
2018-09-01 12:09:48
阅读次数:
337
React Native之获取通讯录信息并实现类通讯录列表(ios android) 一,需求分析 1,获取通讯录信息,筛选出通讯录里有多少好友在使用某个应用。 2,获取通讯录信息,实现类通讯录,可拨打电话 发短信等。 二,技术介绍与配置 2.1 技术介绍 1,react-native-contac ...
分类:
移动开发 时间:
2018-08-31 12:34:35
阅读次数:
290
Android提供了MediaPlayer播放器播放媒体文件,其实MediaPlyer只是对Android Media包下的MediaCodec和MediaExtractor进行了包装,方便使用。但是最好理解下Android媒体文件的解码,编码和渲染流程。 使用 包下的MediaCodec和Medi ...
分类:
移动开发 时间:
2018-08-31 10:45:32
阅读次数:
284
一、题意: 在H * W的地图上有N个奶酪工厂,分别生产硬度为1-N的奶酪。有一只吃货老鼠准备从老鼠洞出发吃遍每一个工厂的奶酪。老鼠有一个体力值,初始时为1,每吃一个工厂的奶酪体力值增加1(每个工厂只能吃一次),且老鼠只能吃硬度不大于当前体力值的奶酪。老鼠从当前格走到相邻的无障碍物的格(上下左右)需 ...
分类:
其他好文 时间:
2018-08-30 22:11:49
阅读次数:
176
邮箱是Actor模型的一个重要组成部分,负责接收发过来的消息,并保存起来,等待Actor处理。邮箱中维护着两种队列,一种是存系统消息,另一个是存用户消息,系统省是指Started,Stoping,Stoped之类的,用户当然指我们自定义的Actor。 另外,我们可以通过实现IMailboxStati... ...
#include #include #include using namespace std; /* 求最小公倍数 */ vector Decomposition(int digit) { int actor = digit; vector arr; for (int i = 2;i Get(vec... ...
分类:
其他好文 时间:
2018-08-30 00:08:43
阅读次数:
157
PID对象是代表Actor对象的进程,是能过Actor.Spawn(props)获取的;它有什么成员呢?既然代理Actor,首先有一个ID,标识自己是谁,Actor在Spawn时可以命名这个ID,否则会自动生成。还有三种向邮箱发消息的方法,Tell(),Request(),RequestAsync(... ...
spring cloud网关集成了zuul和熔断器,因此网关天生具有负载均衡和熔断的功能。因此spring cloud的负载均衡算法,就是ribbon的负载均衡算法。在ribbon中,负载均衡默认了轮询的方法。如果想采用一致性哈希算法,实现负载均衡,那应该怎么办呢? 这里我才用guava的一致性哈希 ...
分类:
编程语言 时间:
2018-08-28 21:17:02
阅读次数:
1018