笔记
文章平均质量分 84
议题一玩到
硅谷码农
展开
-
#Thinking in Java#读书笔记
最近在看Thinking in Java, 在这个贴子里整理一下书中的----------------------------------------------------------------------------------------- (This UML diagram indicates composition with the filled diamond原创 2014-12-06 05:58:42 · 1057 阅读 · 0 评论 -
Python学习笔记
工作需要熟悉一下Python, 在看Learn Python the hard way, 记点笔记-------------------------------------------------------------------------------------------------------- What is the difference between %r and %s?原创 2017-12-11 16:18:48 · 331 阅读 · 0 评论 -
#work note# consistant hashing
需要做一个 account bucket,1% ~ 10% 与 10% ~ 20% 是不同的,实现方法就是 对 account_id hash,然后 mod 100, 取余数,即此 account_id 对应的 account_bucket 最开始我的实现是,sha256(account_id) --> 转换成 string --> 获取string的hashCode(...原创 2019-01-09 07:53:16 · 201 阅读 · 0 评论