一.定义: 依赖倒置原则(Dependecy Inversion Principle) 原文为: High level modules shouldnot depend upon low level modules.Both should depend upon abstractions.Abstr ...
分类:
编程语言 时间:
2020-03-02 14:26:10
阅读次数:
89
We are getting random NetworkExceptions and TimeoutExceptions in our production environment: Brokers: 3 Zookeepers: 3 Servers: 3 Kafka: 0.10.0.1 Zooke ...
分类:
Web程序 时间:
2020-03-02 12:49:05
阅读次数:
90
Given a m x n grid. Each cell of the grid has a sign pointing to the next cell you should visit if you are currently in this cell. The sign of grid[i] ...
分类:
其他好文 时间:
2020-03-02 10:51:12
阅读次数:
71
Array LeetCode Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and i.... ...
分类:
其他好文 时间:
2020-03-01 14:18:51
阅读次数:
71
Junit是一个用于单元测试的小框架 从 开始 在某个测试程序的方法名上加上注解 ,不需要main函数,可以直接点击测试方法上的Run As Junit Test,表示运行该测试程序,其它的不运行。 需要注意的是方法权限只能是public,不能用static修饰 如果有多个,点击类旁边的Run即可r ...
分类:
编程语言 时间:
2020-02-29 00:25:27
阅读次数:
64
https://www.alsa-project.org/alsa-doc/alsa-lib/pcm_external_plugins.html External Plugin: I/O Plugin The I/O-type plugin is a PCM plugin to work as th ...
分类:
其他好文 时间:
2020-02-28 01:03:06
阅读次数:
85
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.Your algorithm should run in O(n) complexity.Example... ...
分类:
其他好文 时间:
2020-02-27 11:41:45
阅读次数:
73
Stack Code: PDF417 Matrix Code: Data Matrix ECC200,QR Code,Micro QR Code,Aztec Code 3种识别模式:standard mode,enhanced mode,maximum recognition mode create ...
分类:
其他好文 时间:
2020-02-25 20:16:48
阅读次数:
198
开篇闲扯 在工作中,相信很多人都有这种体会,与其修改别人代码,宁愿自己重写。 为什么? 先说为什么愿意自己写: 从0-1的过程,是建立在自己已有认知基础上,去用自己熟悉的方式构建一件作品。也就是说, 1.对目标的认知是熟悉的(当然每个人水平可能不一样,也有可能是错的,这不重要,重要的是自认为是符合的 ...
分类:
编程语言 时间:
2020-02-23 18:29:30
阅读次数:
85
模型并行:以模型为主,把模型拆分成几个功能部分,输入的数据相同;
数据并行:以数据为主(早点把数据吃完),模型一样。
考虑硬件的水平,目前主要以数据并行为主。 ...
分类:
其他好文 时间:
2020-02-23 09:56:05
阅读次数:
79