-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (33 loc) · 30.3 KB
/
index.html
File metadata and controls
33 lines (33 loc) · 30.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html><html lang="en-us"><head><meta charset="utf-8"><meta name="X-UA-Compatible" content="IE=edge"><title> oldmee</title><meta name="description" content="A Blog Powered By Hexo"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="icon" href="/favicon.png"><link rel="stylesheet" href="/css/apollo.css"><link rel="search" type="application/opensearchdescription+xml" href="https://oldmee.github.io/atom.xml" title="oldmee"><meta name="generator" content="Hexo 6.3.0"><link rel="alternate" href="/atom.xml" title="oldmee" type="application/atom+xml">
</head><body><div class="wrap"><header><a href="/" class="logo-link"><img src="/favicon.png" alt="logo"></a><ul class="nav nav-list"><li class="nav-list-item"><a href="/" target="_self" class="nav-list-link active">BLOG</a></li><li class="nav-list-item"><a href="/archives/" target="_self" class="nav-list-link">ARCHIVE</a></li><li class="nav-list-item"><a href="https://github.com/oldmee" target="_blank" class="nav-list-link">GITHUB</a></li><li class="nav-list-item"><a href="/atom.xml" target="_self" class="nav-list-link">RSS</a></li></ul></header><main class="container"><ul class="home post-list"><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/07/29/quick-sort-again/" class="post-title-link">quick-sort-again</a></h2><div class="post-info">Jul 29, 2023</div><div class="post-content"><p>“同学你是做什么的?”<br>“Java”<br>“你呢?”<br>“C#”<br>“那你呢?”<br>“我是GoLang”</p>
<p>为啥程序员要用语言来划分?</p>
<br></div><a href="/2023/07/29/quick-sort-again/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/07/16/how-to-resource-annotation-work-in-spring/" class="post-title-link">how to @Resource work in Spring</a></h2><div class="post-info">Jul 16, 2023</div><div class="post-content"></div><a href="/2023/07/16/how-to-resource-annotation-work-in-spring/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/06/27/parkinson-s-law/" class="post-title-link">parkinson's law</a></h2><div class="post-info">Jun 27, 2023</div><div class="post-content"><p>Elon Musk fired 6,500 employees at Twitter.</p>
<p>A little birdie told me it’s down to:</p>
<ul>
<li>2 designers</li>
<li>6 iOS developers</li>
<li>20 web developers</li>
<li>Around 1,400 sales and operations people</li>
</ul>
<p>How is it possible that we are still using this website?</p>
<p>Two words: </p>
<p><code>Parkinson's Law.</code></p></div><a href="/2023/06/27/parkinson-s-law/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/06/01/thread-pool-executor/" class="post-title-link">线程池运行逻辑</a></h2><div class="post-info">Jun 1, 2023</div><div class="post-content"><blockquote>
<p>线程池的设计思路,你真的了解么?</p>
</blockquote></div><a href="/2023/06/01/thread-pool-executor/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/05/26/treatment-of-rhinitis-method/" class="post-title-link">治疗鼻炎最行之有效的方法</a></h2><div class="post-info">May 26, 2023</div><div class="post-content"></div><a href="/2023/05/26/treatment-of-rhinitis-method/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/05/19/Twelve-home-remedies/" class="post-title-link">Twelve home remedies (12个家庭偏方)</a></h2><div class="post-info">May 19, 2023</div><div class="post-content"><blockquote>
<p>There are several popular home remedies for indigestion. Some may also help ease stomach upset from other sources, such as irritable bowel syndrome.<br>有几种常见的治疗消化不良的家庭疗法。有些还可以帮助缓解其他原因引起的胃部不适,比如肠易激综合症。</p>
</blockquote></div><a href="/2023/05/19/Twelve-home-remedies/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/05/16/%E7%BA%AA%E5%BF%B5%E5%B7%A6%E8%80%B3%E6%9C%B5%E8%80%97%E5%AD%90/" class="post-title-link">纪念左耳朵耗子 (转载)</a></h2><div class="post-info">May 16, 2023</div><div class="post-content"></div><a href="/2023/05/16/%E7%BA%AA%E5%BF%B5%E5%B7%A6%E8%80%B3%E6%9C%B5%E8%80%97%E5%AD%90/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2023/05/16/5-things-I-wish-I-heard-at-the-graduation-I-never-had/" class="post-title-link">5 things I wish I heard at the graduation I never had (transpond)</a></h2><div class="post-info">May 16, 2023</div><div class="post-content"><blockquote><p><img src="/images/pasted-0.png"><br>The advice I shared with the class of 2023 is advice I could have used myself.</p>
</blockquote></div><a href="/2023/05/16/5-things-I-wish-I-heard-at-the-graduation-I-never-had/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2022/08/19/paper-about-PML/" class="post-title-link">paper-about-PML(Casbin论文)</a></h2><div class="post-info">Aug 19, 2022</div><div class="post-content"><blockquote>
<p>PERM modeling language<br>PML:AnInterpreter-BasedAccessControl PolicyLanguageforWebServices<br>找到一篇关于casbin起源的论文,原文链接:<a target="_blank" rel="noopener" href="https://arxiv.org/pdf/1903.09756">Casbin</a></p>
</blockquote></div><a href="/2022/08/19/paper-about-PML/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2022/05/02/process-of-the-sourcecode-compile-into-bytecode-of-Java/" class="post-title-link">process-of-the-sourcecode-compile-into-bytecode-of-Java</a></h2><div class="post-info">May 2, 2022</div><div class="post-content"><p>how to compiler generates the bytecode,let me show you with the simplest words.<br><br></p></div><a href="/2022/05/02/process-of-the-sourcecode-compile-into-bytecode-of-Java/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2021/08/23/Byte-Stuffing-using-Java/" class="post-title-link">数据链路层frame中用Java实现字节填充</a></h2><div class="post-info">Aug 23, 2021</div><div class="post-content"></div><a href="/2021/08/23/Byte-Stuffing-using-Java/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2021/01/17/multitenancy-503/" class="post-title-link">记一次多租户下http请求被503的应对过程</a></h2><div class="post-info">Jan 17, 2021</div><div class="post-content"><p>起因,因为获取数据的服务跟本服务无法在同一个注册中心下,于是没法走RPC只能http调用,这不可避免的会走到nginx上,于是引发了限流,导致503错误</p></div><a href="/2021/01/17/multitenancy-503/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2020/09/06/mybatis-indexOutOfBoundsException/" class="post-title-link">mybatis索引越界问题</a></h2><div class="post-info">Sep 6, 2020</div><div class="post-content"></div><a href="/2020/09/06/mybatis-indexOutOfBoundsException/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2020/06/22/lee-s-algorithm/" class="post-title-link">lee's-algorithm</a></h2><div class="post-info">Jun 22, 2020</div><div class="post-content"></div><a href="/2020/06/22/lee-s-algorithm/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2020/04/08/JavaScript-best-practices/" class="post-title-link">JavaScript最佳实践</a></h2><div class="post-info">Apr 8, 2020</div><div class="post-content"><p>鉴于公司JavaScript写的千奇百怪,整理一篇规范以便参考</p></div><a href="/2020/04/08/JavaScript-best-practices/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/04/04/websocket/" class="post-title-link">websocket</a></h2><div class="post-info">Apr 4, 2019</div><div class="post-content"><p>现在,很多网站为了实现推送技术,所用的技术都是 Ajax 轮询。轮询是在特定的的时间间隔(如每1秒),由浏览器对服务器发出HTTP请求,然后由服务器返回最新的数据给客户端的浏览器。这种传统的模式带来很明显的缺点,即浏览器需要不断的向服务器发出请求,然而HTTP请求可能包含较长的头部,其中真正有效的数据可能只是很小的一部分,显然这样会浪费很多的带宽等资源。</p>
<p>HTML5 定义的 WebSocket 协议,能更好的节省服务器资源和带宽,并且能够更实时地进行通讯。在 WebSocket API 中,浏览器和服务器只需要做一个握手的动作,然后,浏览器和服务器之间就形成了一条快速通道。两者之间就直接可以数据互相传送。<br><img src="/images/ws.png"></p></div><a href="/2019/04/04/websocket/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/04/03/webservice/" class="post-title-link">一秒钟搞懂webservice</a></h2><div class="post-info">Apr 3, 2019</div><div class="post-content"><blockquote><p>虽然现在都是http的api,但是有些老项目依然用的是webservice,如果碰到了也需要用webservice来调用。所以像这种可能会用到的知识,花一秒钟搞懂概念就行,用到的时候再说。</p>
</blockquote></div><a href="/2019/04/03/webservice/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/03/14/KPL-BUG/" class="post-title-link">王者人机模式有Bug</a></h2><div class="post-info">Mar 14, 2019</div><div class="post-content"><p>用米莱迪站在对面水晶与高地塔之间的安全区机器人是看不见的,然后用米莱迪的技能慢慢的把对方的水晶推掉,其他人守塔就行,要赶紧,估计版本更新这个bug也就修复了,那时候再要过人机20级可就难喽~</p></div><a href="/2019/03/14/KPL-BUG/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/26/chain-of-responsibility-pattern/" class="post-title-link">责任链模式</a></h2><div class="post-info">Feb 26, 2019</div><div class="post-content"><p>在这种模式中,通常每个接收者都包含对另一个接收者的引用。如果一个对象不能处理该请求,那么它会把相同的请求传给下一个接收者,依此类推。</p></div><a href="/2019/02/26/chain-of-responsibility-pattern/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/25/hexo-bugs-000/" class="post-title-link">hexo-bugs-000</a></h2><div class="post-info">Feb 25, 2019</div><div class="post-content"><p>在hexo本地服务器模式下,一旦文章内容过多(具体没测试,可以多放些内容试试),则生成的html在本地就会出问题,没有上一页下一页以及脚标信息,在浏览器里查看网页源代码发现都是些小方格,不知道是什么鬼。但是用户不知道啊,我搞了半天,发现原来是个bug,部署到github上一切正常,真的是脑壳痛……</p></div><a href="/2019/02/25/hexo-bugs-000/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/25/protocol-buffers/" class="post-title-link">使用 Protocol Buffers 代替 JSON 的五个原因</a></h2><div class="post-info">Feb 25, 2019</div><div class="post-content"><p><img src="/images/pb.png"></p></div><a href="/2019/02/25/protocol-buffers/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/25/deterministic-finite-automaton/" class="post-title-link">敏感词过滤算法</a></h2><div class="post-info">Feb 25, 2019</div><div class="post-content"><p>在实现文字过滤的算法中,DFA是唯一比较好的实现算法。DFA即Deterministic Finite Automaton,也就是确定有穷自动机,它是是通过event和当前的state得到下一个state,即event+state=nextstate。</p></div><a href="/2019/02/25/deterministic-finite-automaton/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/25/design-high-concurrency-system/" class="post-title-link">如何设计一个高并发系统</a></h2><div class="post-info">Feb 25, 2019</div><div class="post-content"><p>有过高并发实践经验的当然最好了,但事实是这很难,除非是这家公司是匹黑马,你刚去的时候用户不多,但是行业发展好,每月几百万用户用户的增长,你不断的踩坑,不断地升级公司的系统架构,现在不太可能实现了,互联网巨头们都已经尘埃落定,所以大部分人基本上也碰不到这些个情况了,但是互联网公司面试要问呐,咋整?</p></div><a href="/2019/02/25/design-high-concurrency-system/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/25/book-list/" class="post-title-link">图书列表清单</a></h2><div class="post-info">Feb 25, 2019</div><div class="post-content"><blockquote><p>老话说的好:少打王者多读书。</p>
</blockquote></div><a href="/2019/02/25/book-list/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/22/tsy-coding-best-practice/" class="post-title-link">按键精灵编码最佳实践</a></h2><div class="post-info">Feb 22, 2019</div><div class="post-content"><blockquote><p>总来来说就是一次循环就执行一个动作,代码按照界面来操作(到了这个界面应该做什么动作)<br>遵循这个理论下面是具体的执行标准</p>
</blockquote></div><a href="/2019/02/22/tsy-coding-best-practice/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/22/hexo-use/" class="post-title-link">Hexo Admin的使用</a></h2><div class="post-info">Feb 22, 2019</div><div class="post-content"><h3 id="这是一个坑"><a href="#这是一个坑" class="headerlink" title="这是一个坑"></a>这是一个坑</h3><p>安装方式我就不说了,就是按照网上说的那样,我主要说一下Deploy中的脚本怎么配置,网上都是类似这种</p></div><a href="/2019/02/22/hexo-use/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/21/mysql-jdbc-driver-function/" class="post-title-link">Class.forName("jdbc地址")到底在干啥</a></h2><div class="post-info">Feb 21, 2019</div><div class="post-content"><p><img src="/images/mysql.jpg"></p>
<blockquote><p>Talk is cheap,show me the code.</p>
<footer><strong>--老李</strong></footer></blockquote></div><a href="/2019/02/21/mysql-jdbc-driver-function/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2019/02/12/myLife/" class="post-title-link">我的半生感悟</a></h2><div class="post-info">Feb 12, 2019</div><div class="post-content"><p>学平上了年纪,有很多话要说……</p></div><a href="/2019/02/12/myLife/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2018/12/10/JSON-Web-Token/" class="post-title-link">Introduction to JSON Web Tokens</a></h2><div class="post-info">Dec 10, 2018</div><div class="post-content"><h3 id="What-is-JSON-Web-Token"><a href="#What-is-JSON-Web-Token" class="headerlink" title="What is JSON Web Token?"></a>What is JSON Web Token?</h3><p>JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the <strong>HMAC</strong> algorithm) or a public/private key pair using <strong>RSA</strong> or <strong>ECDSA</strong>.</p></div><a href="/2018/12/10/JSON-Web-Token/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2018/10/01/travel-yunnan-erhai/" class="post-title-link">旅游之云南</a></h2><div class="post-info">Oct 1, 2018</div><div class="post-content"><blockquote><p>十一带着家人去看诗和远方。</p>
</blockquote></div><a href="/2018/10/01/travel-yunnan-erhai/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2018/09/12/distributed-transaction/" class="post-title-link">分布式事务</a></h2><div class="post-info">Sep 12, 2018</div><div class="post-content"><p>现在面试,分布式系统成了标配,而分布式系统带来的分布式事务也成了标配了。因为你做系统肯定要用事务吧,如果是分布式系统,肯定要用分布式事务吧。先不说你搞过没有,起码你得明白有哪几种方案,每种方案可能有啥坑?比如 TCC 方案的网络问题、XA 方案的一致性问题。</p></div><a href="/2018/09/12/distributed-transaction/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2018/06/12/we-are-pool-together/" class="post-title-link">我们都一样</a></h2><div class="post-info">Jun 12, 2018</div><div class="post-content"><blockquote><p>我做了一个梦,很梦幻的梦,醒来之后才发现,这只是世界跟我开的一个玩笑,更加可笑的是他跟很多人都开了同一个玩笑。</p>
</blockquote></div><a href="/2018/06/12/we-are-pool-together/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2018/02/26/Hystrix-isolation/" class="post-title-link">Hystrix 的线程池隔离和信号量隔离</a></h2><div class="post-info">Feb 26, 2018</div><div class="post-content"><p>信号量的隔离:<br> it executes on the calling thread and concurrent requests are limited by the semaphore count.</p>
<p>每次调用线程,当前请求通过计数信号量进行限制,当信号大于了最大请求数(maxConcurrentRequests)时,进行限制,调用fallback接口快速返回。</p></div><a href="/2018/02/26/Hystrix-isolation/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2018/02/26/Beanstalk/" class="post-title-link">Beanstalk(内存队列)</a></h2><div class="post-info">Feb 26, 2018</div><div class="post-content"><p>Beanstalk是一个高性能、轻量级的、分布式的、内存型的消息队列系统。最初设计的目的是想通过后台异步执行耗时的任务来降低高容量Web应用系统的页面访问延迟。其实Beanstalkd是典型的类Memcached设计,协议和使用方式都是同样的风格。其基本设计思想很简单:高性能离不开异步,异步离不开队列,而内部都是生产者-消费者模式的。</p></div><a href="/2018/02/26/Beanstalk/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2017/05/10/MyBatis/" class="post-title-link">MyBatis数据库操作空指针异常</a></h2><div class="post-info">May 10, 2017</div><div class="post-content"><blockquote><p>有时候,你认为出问题的地方并不是你想的地方。</p>
</blockquote></div><a href="/2017/05/10/MyBatis/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2017/03/19/Bloom-Filter/" class="post-title-link">Bloom-Filter布隆过滤</a></h2><div class="post-info">Mar 19, 2017</div><div class="post-content"><p>本质上布隆过滤器是一种数据结构,比较巧妙的概率型数据结构(probabilistic data structure),特点是高效地插入和查询,可以用来告诉你 “某样东西一定不存在或者可能存在”。</p></div><a href="/2017/03/19/Bloom-Filter/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2017/03/17/spring-security-oauth2-SSO/" class="post-title-link">spring security+oauth2的SSO方案</a></h2><div class="post-info">Mar 17, 2017</div><div class="post-content"><p>springboot项目加入spring security其实是很简单的事情,主要就是config方法的重写。</p></div><a href="/2017/03/17/spring-security-oauth2-SSO/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2017/03/01/netty/" class="post-title-link">netty</a></h2><div class="post-info">Mar 1, 2017</div><div class="post-content"><p><img src="/images/netty.jpg"><br>Netty 是互联网中间件领域使用最广泛最核心的网络通信框架。上图中可以看到,几乎所有互联网中间件或者大数据领域均离不开 Netty。</p></div><a href="/2017/03/01/netty/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2017/02/26/Spring-REST-Docs/" class="post-title-link">Spring REST Docs 介绍</a></h2><div class="post-info">Feb 26, 2017</div><div class="post-content"><p>Spring REST Docs 是一个为 Spring 项目生成 API 文档的框架,它通过在单元测试中额外添加 API 信息描述,从而自动生成对应的文档片段。</p></div><a href="/2017/02/26/Spring-REST-Docs/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/12/08/qiniu-CDN/" class="post-title-link">七牛云融合CDN到底怎么配置</a></h2><div class="post-info">Dec 8, 2016</div><div class="post-content"><blockquote><p>人生如戏,你得先有故事。</p>
<footer><strong>--老李</strong></footer></blockquote></div><a href="/2016/12/08/qiniu-CDN/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/09/22/Java-singleton-five-methon/" class="post-title-link">Java单例模式的五种写法</a></h2><div class="post-info">Sep 22, 2016</div><div class="post-content"><p>在设计模式中单例模式看上去是最简单的一种模式,但是考虑安全性和性能的话,它并不简单。</p></div><a href="/2016/09/22/Java-singleton-five-methon/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/03/22/%E5%AE%9E%E7%8E%B0%E7%94%9F%E4%BA%A7%E8%80%85%E4%B8%8E%E6%B6%88%E8%B4%B9%E8%80%85%E7%9A%84%E5%87%A0%E7%A7%8D%E6%96%B9%E5%BC%8F/" class="post-title-link">实现生产者与消费者问题的几种方式</a></h2><div class="post-info">Mar 22, 2016</div><div class="post-content"><p>生产者与消费者问题是多线程同步的一个经典问题。生产者和消费者同时使用一块缓冲区,生产者生产商品放入缓冲区,消费者从缓冲区中取出商品。我们需要保证的是,当缓冲区满时,生产者不可生产商品;当缓冲区为空时,消费者不可取出商品。</p></div><a href="/2016/03/22/%E5%AE%9E%E7%8E%B0%E7%94%9F%E4%BA%A7%E8%80%85%E4%B8%8E%E6%B6%88%E8%B4%B9%E8%80%85%E7%9A%84%E5%87%A0%E7%A7%8D%E6%96%B9%E5%BC%8F/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/02/21/zookeeper-ZAB/" class="post-title-link">zookeeper之ZAB协议</a></h2><div class="post-info">Feb 21, 2016</div><div class="post-content"><p>既然说到了zookeeper,那就再来聊聊ZAB(Zookeeper Atomic Broadcast)协议吧。</p></div><a href="/2016/02/21/zookeeper-ZAB/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/02/21/zookeeper/" class="post-title-link">一秒钟搞懂分布式锁</a></h2><div class="post-info">Feb 21, 2016</div><div class="post-content"><p>怎么可能一秒钟,起码也得一分钟吧~</p></div><a href="/2016/02/21/zookeeper/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/05/04/euclid-GCD-algorithm/" class="post-title-link">euclid-GCD-algorithm</a></h2><div class="post-info">May 4, 2015</div><div class="post-content"></div><a href="/2015/05/04/euclid-GCD-algorithm/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/03/17/shiro/" class="post-title-link">Apache Shiro</a></h2><div class="post-info">Mar 17, 2015</div><div class="post-content"><p>Apache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码和会话管理。</p></div><a href="/2015/03/17/shiro/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/03/10/domain-name-resolution/" class="post-title-link">域名解析</a></h2><div class="post-info">Mar 10, 2015</div><div class="post-content"><p>书到用时方恨少。</p></div><a href="/2015/03/10/domain-name-resolution/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/02/26/RPC/" class="post-title-link">RPC框架原理</a></h2><div class="post-info">Feb 26, 2015</div><div class="post-content"><p>所以我给大家一个建议,遇到这类问题,起码从你了解的类似框架的原理入手,自己说说参照 dubbo 的原理,你来设计一下,举个例子,dubbo 不是有那么多分层么?而且每个分层是干啥的,你大概是不是知道?那就按照这个思路大致说一下吧,起码你不能懵逼,要比那些上来就懵,啥也说不出来的人要好一些。</p></div><a href="/2015/02/26/RPC/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2014/03/05/Cross-Domain/" class="post-title-link">跨域问题</a></h2><div class="post-info">Mar 5, 2014</div><div class="post-content"><p>要解决跨域问题先来看看什么是同源策略。</p></div><a href="/2014/03/05/Cross-Domain/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2014/03/04/atement-PreparedStatement/" class="post-title-link">Statement 和 PreparedStatement之间的区别</a></h2><div class="post-info">Mar 4, 2014</div><div class="post-content"><p>Statement执行不带参数的简单SQL语句,并返回它所生成结果的对象,每次执行SQL语句时,数据库都要编译该sql语句</p>
<p>PreparedStatement用来执行带参数的预编译的SQL语句</p></div><a href="/2014/03/04/atement-PreparedStatement/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2014/02/26/sensitive-word-filter/" class="post-title-link">敏感词过滤算法</a></h2><div class="post-info">Feb 26, 2014</div><div class="post-content"><blockquote><p>总的来说,敏感词过滤就是词库匹配,你定义一个词库,里面有很多敏感词,匹配到了就说明这个词是敏感词。<br>所以最简单的办法就是建立一个list,先把所有的敏感词读进这个list,然后再利用list的contains方法,就可以判断某一句话中是否有敏感词,如果有就弹个提示,告诉用户语句中有敏感词,禁止用户发送,但是如果须要把把敏感词屏蔽掉(比如用” * “号代替)这个时候contains方法就不行了,得自己写算法判断敏感词所在的位置并屏蔽掉,实现起来并不那么简单。</p></div><a href="/2014/02/26/sensitive-word-filter/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2014/02/26/sort/" class="post-title-link">倒排索引简介</a></h2><div class="post-info">Feb 26, 2014</div><div class="post-content"><p>正排索引就是扫描所有的文档,然后匹配文档关键字。<br>倒排索引就是只搜索你要查询的关键字,看看跟这个关键字相关的文档有哪些。</p></div><a href="/2014/02/26/sort/" class="read-more">...阅读全文</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2014/02/26/gRPC/" class="post-title-link">gRPC</a></h2><div class="post-info">Feb 26, 2014</div><div class="post-content"><p>gRPC 一开始由 google 开发,是一款语言中立、平台中立、开源的远程过程调用(RPC)系统。</p></div><a href="/2014/02/26/gRPC/" class="read-more">...阅读全文</a></article></li></ul></main><footer><div class="paginator"></div><div class="copyright"><p>© 2012 - 2023 <a href="https://oldmee.github.io">oldmee</a>, powered by <a href="https://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/pinggod/hexo-theme-apollo" target="_blank">hexo-theme-apollo</a>.</p></div></footer></div><script async src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha384-crwIf/BuaWM9rM65iM+dWFldgQ1Un8jWZMuh3puxb8TOY9+linwLoI7ZHZT+aekW" crossorigin="anonymous"></script></body></html>