一、产生背景 今天咱不去长篇大论特别详细地讲解consistent hash,我争取用最轻松的方式告诉你consistent hash算法是什么,如果需要深入,Google一下~。 举个栗子吧: 比如有 N 个 cache 服务器,需要将一个object 映射到 N 个 cache 上,我们可以用类 ...
分类:
编程语言 时间:
2018-08-05 21:25:20
阅读次数:
189
Mom Poodwaddle Life clock Dad Poodwaddlw Life clock Happiness is the meaning and the purpose of life, the whole aim and end of human existence - Arist ...
分类:
其他好文 时间:
2018-06-30 11:08:40
阅读次数:
191
ifconfig查看网卡信息的各项说明:eth0表示第一块以太网卡Linkencap表示该网卡位于OSI物理层(PhysicalLayer)的名称HWaddr表示网卡的MAC地址(HardwareAddress)inetaddr表示该网卡在TCP/IP网络中的IP地址Bcast表示广播地址(BroadAddress)Mask表示子网掩码(SubnetMask)MTU表示最大传送单元,不同局域网类型
分类:
其他好文 时间:
2018-06-28 14:41:51
阅读次数:
233
先上个效果图 自己写了无限滑块的类 继承UIView 直接使用 init 方法 可以定义每个标题 的颜色 下划线 颜色 选中的颜色 和frame 标题的font 直接上代码: EJ_sliderHeader.h #import <UIKit/UIKit.h> @interface EJ_slider ...
分类:
移动开发 时间:
2018-06-27 14:03:06
阅读次数:
256
拓扑图如下 路由器0 Router>en Router#conf t Router(config)#hostname router1 router1(config)#interface g0/0 router1(config-if)#ip address 192.168.1.1 255.255.25 ...
分类:
其他好文 时间:
2018-06-26 20:04:45
阅读次数:
180
拓扑图如下 路由器0的配置 Router>en Router#conf t Router(config)#hostname Router1 Router1(config)#int l0 Router1(config-if)#ip addr 1.1.1.1 255.255.255.0 Router1( ...
分类:
其他好文 时间:
2018-06-26 19:26:26
阅读次数:
169
1.创建一个新的repository: 先在github上创建并写好相关名字,描述。 $cd ~/hello-world //到hello-world目录 $git init //初始化 $git add . //把所有文件加入到索引(不想把所有文件加入,可以用gitignore或add 具体文件) ...
分类:
系统相关 时间:
2018-06-21 21:08:47
阅读次数:
216
自定义布局的RecycleView需要自己实现Adapter,ViewHolder和布局; 自定义Adapter继承RecycleView.Adapter,重写getItemCount(),onBindViewHolder()和onCreateViewHolder(); 自定义ViewHolder继 ...
分类:
移动开发 时间:
2018-06-17 22:25:54
阅读次数:
248
词根vad-来源于拉丁文vadere一词,表示“行走;走动(to go)”之意。单词invade由前缀in-和词根vade-构成,字面意思是“(未经许可)走进去”,引申为“侵略;入侵”之意,还可以是“蜂拥;大批进入”之意。基于v和w的辅音转换,vad形成了wad的变体。单词wade就是根词的形式,意 ...
分类:
其他好文 时间:
2017-07-26 10:42:05
阅读次数:
164
开发云服务程序,如果使用Local stroage存储我们临时生成的日志或者文件并将它们自动上传到BLOB中,可以通过WAD来实现,具体如下:1.配置webrole,开启Local stroage功能:2.修改wadcfgx文件,添加DataSources属性:3.添加上传到local storag...
分类:
Web程序 时间:
2015-08-03 20:37:02
阅读次数:
181