摘要: ------------------来源:http://simpleprogrammer.com/2012/08/19/karma-is-real/Karma is RealThere are two basic kinds of people in this world.Those who live their lives evaluating each individual transaction.Those who live their lives as an investment waiting for dividends to be paid.What is behind these 阅读全文
posted @ 2013-01-06 22:22 VioletPearl 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: --------来源:http://simpleprogrammer.com/2012/12/23/my-end-of-the-world-post/My End of the World PostWith the coming and passing of the predicated date of the Mayan apocalypse, I got to thinking about what kind of final advice I would leave the development world in the event of my untimely departure.I 阅读全文
posted @ 2013-01-06 22:21 VioletPearl 阅读(126) 评论(0) 推荐(0) 编辑
摘要: ----------------------------来源:http://simpleprogrammer.com/2012/11/25/youre-only-a-beginner-once/You’re Only a Beginner OnceI was reading an interesting study last week about how willpower seems to grow like a muscle. In the study they had found that subjects that had successfully stuck to a diet pr 阅读全文
posted @ 2013-01-06 22:16 VioletPearl 阅读(148) 评论(0) 推荐(0) 编辑
摘要: ------------------来源:http://simpleprogrammer.com/2012/10/07/calling-someones-baby-ugly/Calling Someone’s Baby UglyEver since TypeScript was announced, I haven’t been able to stop thinking about public criticism and how bad it is.Allow me a moment to be a hypocrite myself as I publically criticize pu 阅读全文
posted @ 2013-01-06 22:14 VioletPearl 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1、圈定学习范围2、设立目标3、寻找资源4、付诸实践5、专注6、反复摸索---------------------来源:http://simpleprogrammer.com/2012/09/23/learning-to-learn/Learning to LearnI’m not good at many things. Let me rephrase that. I’m not naturally good at many things.There are many people who are smarter than me, process things quicker and ove 阅读全文
posted @ 2013-01-06 22:12 VioletPearl 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1、解决问题的能力2、自我学习的能力3、命名的能力4、与人相处的能力------------------------原文摘自:http://java.dzone.com/articles/4-most-important-skills http://simpleprogrammer.com/2012/12/09/the-4-most-important-skills-for-a-software-developer/The 4 Most Important Skills for a Software DeveloperWith the vast array of technology,... 阅读全文
posted @ 2013-01-06 20:36 VioletPearl 阅读(253) 评论(0) 推荐(0) 编辑
摘要: P19: 有一位先哲说过,社会的需求对科技进步的作用要超过十所大学。 阅读全文
posted @ 2013-01-03 11:14 VioletPearl 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 互联网架构中缓存无处不在,某厂牛人曾经说过:”缓存就像清凉油,哪里不舒服,抹一下就好了”。高品质的存储容量小,价格高;低品质存储容量大,价格低,缓存的目的就在于”扩充”高品质存储的容量。本文探讨缓存相关的一些问题。 LRU替换算法 缓存的技术点包括内存管理和替换算法。LRU是使用最多的替换算法,每次淘汰最久没有使用的元素。LRU缓存实现分为两个部分:Hash表和LRU链表,Hash表用于查找缓存中的元素,LRU链表用于淘汰。内存常以Slab的方式管理。 上图是Memcache的内存管理示意图,Memcache以Slab方式管理内存块,从系统申请1MB大小的大块内存并划分为不同大小的 Ch... 阅读全文
posted @ 2012-11-29 16:57 VioletPearl 阅读(200) 评论(0) 推荐(1) 编辑
摘要: LRU(Least Recent Used)是我们在cache替换算法中最普遍使用的算法,在缓存块已满,而需要缓存新的数据块的时候,这时需要从缓存中找到一个“没有价值”的块用新的数据块去替换它。LRU的特点是简洁高效,但是缺点是LRU的缺点是不能对weak locality的数据进行缓存。a. 如果stack size有1000个块,而一个文件是1001个块的大小,而且每次访问都是从头到尾的访问。则LRU的性能非常差,几乎没有任何缓存。b. 假设我们要邀请学习好的同学到一个容纳10人的会议室开会。如果是LRU算法的话,会邀请90分以上或者80分以上的人,,但是如果没有80分以上的同学则一个都不 阅读全文
posted @ 2012-11-27 20:36 VioletPearl 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 本帖最后由 neeyuese 于 2010-7-8 21:40 编辑 写入放大(WA)是闪存和固态硬盘之间相关联的一个属性,因为闪存必须先删除才能改写(我们也叫“编程“),在执行这些操作的时候,移动(或重写)用户数据和元数据(metadata)不止一次。这些多次的操作,不但增加了写入数据量,减少了SSD的使用寿命,而且还吃光了闪存的带宽(间接地影响了随机写入性能)。许多因素会影响到SSD的写入放大,下面我就来稍微详细的解释一下。早在2008年,Intel公司和SiliconSystems公司(2009 年被西部数字收购)第一次提出了写入放大并在公开稿件里用到这个术语。他们当时的说法是,写入算法 阅读全文
posted @ 2012-11-24 19:14 VioletPearl 阅读(1148) 评论(0) 推荐(0) 编辑