Browse Source

Site updated: 2020-05-24 22:20:50

master
nicksxs 5 years ago
parent
commit
b866ecb68b
35 changed files with 803 additions and 777 deletions
  1. +3
    -3
      2014/12/24/MFC 模态对话框/index.html
  2. +6
    -6
      2014/12/30/Clone-Graph-Part-I/index.html
  3. +4
    -4
      2015/01/04/Path-Sum/index.html
  4. +4
    -4
      2015/01/14/Two-Sum/index.html
  5. +3
    -3
      2015/01/16/pcre-intro-and-a-simple-package/index.html
  6. +4
    -4
      2015/03/11/Number-Of-1-Bits/index.html
  7. +4
    -4
      2015/03/11/Reverse-Bits/index.html
  8. +4
    -4
      2015/03/13/Reverse-Integer/index.html
  9. +2
    -2
      2015/04/14/Add-Two-Number/index.html
  10. +4
    -4
      2015/04/15/Leetcode-No-3/index.html
  11. +4
    -4
      2015/06/22/invert-binary-tree/index.html
  12. +5
    -5
      2016/08/14/34-Search-for-a-Range/index.html
  13. +4
    -4
      2016/09/29/binary-watch/index.html
  14. +4
    -4
      2016/10/11/minimum-size-subarray-sum-209/index.html
  15. +4
    -4
      2016/10/12/summary-ranges-228/index.html
  16. +7
    -7
      2019/12/07/JVM-G1-Part-1/index.html
  17. +6
    -6
      2020/02/09/G1收集器概述/index.html
  18. +2
    -2
      2020/04/26/聊聊-mysql-的-MVCC/index.html
  19. +2
    -2
      2020/05/02/聊聊-mysql-的-MVCC-续篇/index.html
  20. +2
    -2
      2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/index.html
  21. +10
    -3
      2020/05/17/聊聊我理解的分布式事务/index.html
  22. +11
    -11
      atom.xml
  23. +11
    -11
      baidusitemap.xml
  24. +127
    -112
      categories/Java/index.html
  25. +70
    -102
      categories/docker/index.html
  26. +1
    -1
      css/main.css
  27. +15
    -8
      index.html
  28. +1
    -0
      leancloud.memo
  29. +1
    -1
      leancloud_counter_security_urls.json
  30. +2
    -2
      page/2/index.html
  31. +2
    -2
      page/3/index.html
  32. +14
    -14
      sitemap.xml
  33. +152
    -156
      tags/Redis/index.html
  34. +196
    -184
      tags/c/index.html
  35. +112
    -92
      tags/java/index.html

+ 3
- 3
2014/12/24/MFC 模态对话框/index.html View File

@ -301,16 +301,16 @@
<div class="popular-posts-title"><a href="/2015/01/16/pcre-intro-and-a-simple-package/" rel="bookmark">pcre-intro-and-a-simple-package</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
<div class="popular-posts-title"><a href="/2015/01/14/Two-Sum/" rel="bookmark">two sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 6
- 6
2014/12/30/Clone-Graph-Part-I/index.html View File

@ -35,8 +35,8 @@
<meta property="article:published_time" content="2014-12-30T08:50:01.000Z">
<meta property="article:modified_time" content="2020-01-12T13:08:26.997Z">
<meta property="article:author" content="Nicksxs">
<meta property="article:tag" content="leetcode">
<meta property="article:tag" content="C++">
<meta property="article:tag" content="leetcode">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/">
@ -300,16 +300,16 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
<div class="popular-posts-title"><a href="/2020/02/09/G1收集器概述/" rel="bookmark">G1收集器概述</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
@ -356,8 +356,8 @@
<footer class="post-footer">
<div class="post-tags">
<a href="/tags/leetcode/" rel="tag"># leetcode</a>
<a href="/tags/C/" rel="tag"># C++</a>
<a href="/tags/leetcode/" rel="tag"># leetcode</a>
</div>


+ 4
- 4
2015/01/04/Path-Sum/index.html View File

@ -302,19 +302,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
</ul>


+ 4
- 4
2015/01/14/Two-Sum/index.html View File

@ -303,19 +303,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 3
- 3
2015/01/16/pcre-intro-and-a-simple-package/index.html View File

@ -318,13 +318,13 @@
<div class="popular-posts-title"><a href="/2014/12/24/MFC 模态对话框/" rel="bookmark">MFC 模态对话框</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>


+ 4
- 4
2015/03/11/Number-Of-1-Bits/index.html View File

@ -299,19 +299,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
</ul>


+ 4
- 4
2015/03/11/Reverse-Bits/index.html View File

@ -300,19 +300,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
</ul>


+ 4
- 4
2015/03/13/Reverse-Integer/index.html View File

@ -303,19 +303,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 2
- 2
2015/04/14/Add-Two-Number/index.html View File

@ -309,13 +309,13 @@
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 4
- 4
2015/04/15/Leetcode-No-3/index.html View File

@ -300,19 +300,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
</ul>


+ 4
- 4
2015/06/22/invert-binary-tree/index.html View File

@ -309,19 +309,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 5
- 5
2016/08/14/34-Search-for-a-Range/index.html View File

@ -301,10 +301,7 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/14/Add-Two-Number/" rel="bookmark">add-two-number</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
@ -313,7 +310,10 @@
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
</li>
</ul>


+ 4
- 4
2016/09/29/binary-watch/index.html View File

@ -309,19 +309,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
<div class="popular-posts-title"><a href="/2015/06/22/invert-binary-tree/" rel="bookmark">invert-binary-tree</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 4
- 4
2016/10/11/minimum-size-subarray-sum-209/index.html View File

@ -299,19 +299,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/10/12/summary-ranges-228/" rel="bookmark">summary-ranges-228</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 4
- 4
2016/10/12/summary-ranges-228/index.html View File

@ -298,19 +298,19 @@
<div class="popular-posts-header">Related Posts</div>
<ul class="popular-posts">
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/03/13/Reverse-Integer/" rel="bookmark">Reverse Integer</a></div>
<div class="popular-posts-title"><a href="/2016/09/29/binary-watch/" rel="bookmark">binary-watch</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2016/08/14/34-Search-for-a-Range/" rel="bookmark">34_Search_for_a_Range</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/14/Two-Sum/" rel="bookmark">two sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Number-Of-1-Bits/" rel="bookmark">Number of 1 Bits</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/04/15/Leetcode-No-3/" rel="bookmark">leetcode no.3</a></div>
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2015/01/04/Path-Sum/" rel="bookmark">Path Sum</a></div>
<div class="popular-posts-title"><a href="/2015/03/11/Reverse-Bits/" rel="bookmark">Reverse Bits</a></div>
</li>
</ul>


+ 7
- 7
2019/12/07/JVM-G1-Part-1/index.html View File

@ -35,9 +35,9 @@
<meta property="article:published_time" content="2019-12-06T16:54:19.000Z">
<meta property="article:modified_time" content="2019-12-19T16:01:42.000Z">
<meta property="article:author" content="Nicksxs">
<meta property="article:tag" content="C++">
<meta property="article:tag" content="Java">
<meta property="article:tag" content="JVM">
<meta property="article:tag" content="C++">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/2019/12/07/JVM-G1-Part-1/">
@ -247,11 +247,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
@ -323,9 +323,6 @@
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2020/02/09/G1收集器概述/" rel="bookmark">G1收集器概述</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2014/12/30/Clone-Graph-Part-I/" rel="bookmark">Clone Graph Part I</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2020/04/05/Comparator使用小记/" rel="bookmark">Comparator使用小记</a></div>
</li>
@ -335,6 +332,9 @@
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2020/05/22/聊聊我刚学会的应用诊断方法/" rel="bookmark">聊聊我刚学会的应用诊断方法</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2014/12/30/Clone-Graph-Part-I/" rel="bookmark">Clone Graph Part I</a></div>
</li>
</ul>
<div class="reward-container">
@ -377,9 +377,9 @@
<footer class="post-footer">
<div class="post-tags">
<a href="/tags/C/" rel="tag"># C++</a>
<a href="/tags/Java/" rel="tag"># Java</a>
<a href="/tags/JVM/" rel="tag"># JVM</a>
<a href="/tags/C/" rel="tag"># C++</a>
</div>


+ 6
- 6
2020/02/09/G1收集器概述/index.html View File

@ -245,11 +245,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
@ -318,9 +318,6 @@
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2019/12/07/JVM-G1-Part-1/" rel="bookmark">JVM源码分析之G1垃圾收集器分析一</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2014/12/30/Clone-Graph-Part-I/" rel="bookmark">Clone Graph Part I</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2020/04/05/Comparator使用小记/" rel="bookmark">Comparator使用小记</a></div>
</li>
@ -330,6 +327,9 @@
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2020/05/22/聊聊我刚学会的应用诊断方法/" rel="bookmark">聊聊我刚学会的应用诊断方法</a></div>
</li>
<li class="popular-posts-item">
<div class="popular-posts-title"><a href="/2014/12/30/Clone-Graph-Part-I/" rel="bookmark">Clone Graph Part I</a></div>
</li>
</ul>
<div class="reward-container">
@ -372,9 +372,9 @@
<footer class="post-footer">
<div class="post-tags">
<a href="/tags/C/" rel="tag"># C++</a>
<a href="/tags/Java/" rel="tag"># Java</a>
<a href="/tags/JVM/" rel="tag"># JVM</a>
<a href="/tags/C/" rel="tag"># C++</a>
<a href="/tags/G1/" rel="tag"># G1</a>
<a href="/tags/GC/" rel="tag"># GC</a>
<a href="/tags/Garbage-First-Collector/" rel="tag"># Garbage-First Collector</a>


+ 2
- 2
2020/04/26/聊聊-mysql-的-MVCC/index.html View File

@ -252,11 +252,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">


+ 2
- 2
2020/05/02/聊聊-mysql-的-MVCC-续篇/index.html View File

@ -257,11 +257,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">


+ 2
- 2
2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/index.html View File

@ -253,11 +253,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">


+ 10
- 3
2020/05/17/聊聊我理解的分布式事务/index.html View File

@ -34,7 +34,7 @@
<meta property="og:description" content="前面说了mysql数据库的事务相关的,那事务是用来干嘛的,这里得补一下ACID, ACID,是指数据库管理系统(DBMS)在写入或更新资料的过程中,为保证事务(transaction)是正确可靠的,所必须具备的四个特性:原子性(atomicity,或称不可分割性)、一致性(consistency)、隔离性(isolation,又称独立性)、持久性(durability)。 Atomicity">
<meta property="og:image" content="https://mystore-1255223546.cos.ap-chengdu.myqcloud.com/uPic/WX20200517-2127322x.png">
<meta property="article:published_time" content="2020-05-17T15:56:01.000Z">
<meta property="article:modified_time" content="2020-05-17T15:57:30.000Z">
<meta property="article:modified_time" content="2020-05-24T14:18:43.082Z">
<meta property="article:author" content="Nicksxs">
<meta property="article:tag" content="分布式事务">
<meta property="article:tag" content="两阶段提交">
@ -231,10 +231,16 @@
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-05-17 23:56:01 / Modified: 23:57:30" itemprop="dateCreated datePublished" datetime="2020-05-17T23:56:01+08:00">2020-05-17</time>
<time title="Created: 2020-05-17 23:56:01" itemprop="dateCreated datePublished" datetime="2020-05-17T23:56:01+08:00">2020-05-17</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-05-24 22:18:43" itemprop="dateModified" datetime="2020-05-24T22:18:43+08:00">2020-05-24</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
@ -318,6 +324,7 @@
<li>第二是协调者的单点问题,万一挂了,参与者就会在那傻等着</li>
</ul>
<p>所以三阶段提交引入了各节点的超时机制和一个准备阶段,首先是一个<code>can commit</code>阶段,询问下各个节点有没有资源,能不能进行操作,这个阶段不阻塞,只是提前做个摸底,这个阶段其实人畜无害,但是能提高成功率,在这个阶段如果就有节点反馈是不接受的,那就不用执行下去了,也没有锁资源,然后第二阶段是 <code>pre commit</code> ,这个阶段做的事情跟原来的 第一阶段比较类似,然后是第三阶段<code>do commit</code>,其实三阶段提交我个人觉得只是加了个超时,和准备阶段,好像木有根本性的解决的两阶段提交的问题,后续可以再看看一些论文来思考讨论下。</p>
<p>2020年05月24日22:11 更新<br>这里跟朋友讨论了下,好像想通了最核心的一点,对于前面说的那个场景,如果是两阶段提交,如果各个节点中有一个没回应,并且协调者也挂了,这个时候会有什么情况呢,再加一个假设,其实比如这个一阶段其实是检验就失败的,理论上应该大家都释放资源,那么对于这种异常情况,其他的参与者就不知所措了,就傻傻地锁着资源阻塞着,那么三阶段提交的意义就出现了,把第一阶段拆开,那么即使在这个阶段出现上述的异常,即也不会锁定资源,同时参与者也有超时机制,在第二阶段锁定资源出现异常是,其他参与者节点等超时后就自动释放资源了,也就没啥问题了,不过对于那种异常恢复后的一些情况还是没有很好地解决,需要借助 zk 等,后面有空可以讲讲 paxos 跟 raft 等</p>
</div>


+ 11
- 11
atom.xml View File

@ -56,7 +56,7 @@
<link href="https://nicksxs.me/2020/05/17/%E8%81%8A%E8%81%8A%E6%88%91%E7%90%86%E8%A7%A3%E7%9A%84%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/"/>
<id>https://nicksxs.me/2020/05/17/%E8%81%8A%E8%81%8A%E6%88%91%E7%90%86%E8%A7%A3%E7%9A%84%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/</id>
<published>2020-05-17T15:56:01.000Z</published>
<updated>2020-05-17T15:57:30.000Z</updated>
<updated>2020-05-24T14:18:43.082Z</updated>
<summary type="html">
@ -114,10 +114,10 @@
<category term="Mysql" scheme="https://nicksxs.me/categories/Mysql/"/>
<category term="数据结构" scheme="https://nicksxs.me/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
<category term="C" scheme="https://nicksxs.me/categories/C/"/>
<category term="数据结构" scheme="https://nicksxs.me/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
<category term="源码" scheme="https://nicksxs.me/categories/Mysql/%E6%BA%90%E7%A0%81/"/>
<category term="Mysql" scheme="https://nicksxs.me/categories/C/Mysql/"/>
@ -163,10 +163,10 @@
<category term="Mysql" scheme="https://nicksxs.me/categories/Mysql/"/>
<category term="数据结构" scheme="https://nicksxs.me/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
<category term="C" scheme="https://nicksxs.me/categories/C/"/>
<category term="数据结构" scheme="https://nicksxs.me/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
<category term="源码" scheme="https://nicksxs.me/categories/Mysql/%E6%BA%90%E7%A0%81/"/>
<category term="Mysql" scheme="https://nicksxs.me/categories/C/Mysql/"/>
@ -212,10 +212,10 @@
<category term="Mysql" scheme="https://nicksxs.me/categories/Mysql/"/>
<category term="数据结构" scheme="https://nicksxs.me/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
<category term="C" scheme="https://nicksxs.me/categories/C/"/>
<category term="数据结构" scheme="https://nicksxs.me/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/>
<category term="源码" scheme="https://nicksxs.me/categories/Mysql/%E6%BA%90%E7%A0%81/"/>
<category term="Mysql" scheme="https://nicksxs.me/categories/C/Mysql/"/>
@ -614,19 +614,19 @@
<category term="Java" scheme="https://nicksxs.me/categories/Java/"/>
<category term="C++" scheme="https://nicksxs.me/categories/C/"/>
<category term="JVM" scheme="https://nicksxs.me/categories/Java/JVM/"/>
<category term="GC" scheme="https://nicksxs.me/categories/Java/GC/"/>
<category term="C++" scheme="https://nicksxs.me/categories/C/"/>
<category term="GC" scheme="https://nicksxs.me/categories/Java/GC/"/>
<category term="C++" scheme="https://nicksxs.me/tags/C/"/>
<category term="Java" scheme="https://nicksxs.me/tags/Java/"/>
<category term="JVM" scheme="https://nicksxs.me/tags/JVM/"/>
<category term="C++" scheme="https://nicksxs.me/tags/C/"/>
<category term="G1" scheme="https://nicksxs.me/tags/G1/"/>
<category term="GC" scheme="https://nicksxs.me/tags/GC/"/>


+ 11
- 11
baidusitemap.xml View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://nicksxs.me/2020/05/22/%E8%81%8A%E8%81%8A%E6%88%91%E5%88%9A%E5%AD%A6%E4%BC%9A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%8A%E6%96%AD%E6%96%B9%E6%B3%95/</loc>
<loc>https://nicksxs.me/2020/05/17/%E8%81%8A%E8%81%8A%E6%88%91%E7%90%86%E8%A7%A3%E7%9A%84%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/</loc>
<lastmod>2020-05-24</lastmod>
</url> <url>
<loc>https://nicksxs.me/2020/05/17/%E8%81%8A%E8%81%8A%E6%88%91%E7%90%86%E8%A7%A3%E7%9A%84%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/</loc>
<lastmod>2020-05-17</lastmod>
<loc>https://nicksxs.me/2020/05/22/%E8%81%8A%E8%81%8A%E6%88%91%E5%88%9A%E5%AD%A6%E4%BC%9A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%8A%E6%96%AD%E6%96%B9%E6%B3%95/</loc>
<lastmod>2020-05-24</lastmod>
</url> <url>
<loc>https://nicksxs.me/2020/05/10/%E8%81%8A%E8%81%8A-mysql-%E7%9A%84-MVCC-%E7%BB%AD%E7%BB%AD%E7%AF%87%E4%B9%8B%E5%8A%A0%E9%94%81%E5%88%86%E6%9E%90/</loc>
<lastmod>2020-05-10</lastmod>
@ -60,18 +60,18 @@
</url> <url>
<loc>https://nicksxs.me/2020/01/19/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E5%9B%9B/</loc>
<lastmod>2020-01-18</lastmod>
</url> <url>
<loc>https://nicksxs.me/2015/01/14/Two-Sum/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2019/12/10/Redis-Part-1/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2016/09/29/binary-watch/</loc>
<loc>https://nicksxs.me/2015/01/14/Two-Sum/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2016/11/10/php-abstract-class-and-interface/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2016/09/29/binary-watch/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2019/12/26/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D/</loc>
<lastmod>2020-01-12</lastmod>
@ -109,10 +109,10 @@
<loc>https://nicksxs.me/2020/01/10/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%B8%89/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2014/12/23/my-new-post/</loc>
<loc>https://nicksxs.me/2017/03/28/spark-little-tips/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2017/03/28/spark-little-tips/</loc>
<loc>https://nicksxs.me/2014/12/23/my-new-post/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/</loc>
@ -121,10 +121,10 @@
<loc>https://nicksxs.me/2016/07/13/swoole-websocket-test/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2015/06/22/invert-binary-tree/</loc>
<loc>https://nicksxs.me/2016/10/12/summary-ranges-228/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2016/10/12/summary-ranges-228/</loc>
<loc>https://nicksxs.me/2015/06/22/invert-binary-tree/</loc>
<lastmod>2020-01-12</lastmod>
</url> <url>
<loc>https://nicksxs.me/2015/01/04/Path-Sum/</loc>


+ 127
- 112
categories/Java/index.html View File

@ -29,7 +29,7 @@
<meta name="description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="og:type" content="website">
<meta property="og:title" content="Nicksxs&#39;s Blog">
<meta property="og:url" content="https://nicksxs.me/categories/Java/index.html">
<meta property="og:url" content="https://nicksxs.me/categories/java/index.html">
<meta property="og:site_name" content="Nicksxs&#39;s Blog">
<meta property="og:description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="article:author" content="Nicksxs">
@ -40,7 +40,7 @@
<meta property="article:tag" content="森哥">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/categories/Java/">
<link rel="canonical" href="https://nicksxs.me/categories/java/">
<script id="page-configurations">
@ -53,7 +53,7 @@
};
</script>
<title>Category: Java | Nicksxs's Blog</title>
<title>Category: java | Nicksxs's Blog</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-61358619-1"></script>
<script>
@ -207,95 +207,12 @@
<div class="post-block">
<div class="posts-collapse">
<div class="collection-title">
<h2 class="collection-header">Java
<h2 class="collection-header">java
<small>Category</small>
</h2>
</div>
<div class="collection-year">
<span class="collection-header">2020</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-05-22T23:26:50+08:00"
content="2020-05-22">
05-22
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/05/22/%E8%81%8A%E8%81%8A%E6%88%91%E5%88%9A%E5%AD%A6%E4%BC%9A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%8A%E6%96%AD%E6%96%B9%E6%B3%95/" itemprop="url">
<span itemprop="name">聊聊我刚学会的应用诊断方法</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-04-05T21:41:41+08:00"
content="2020-04-05">
04-05
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/04/05/Comparator%E4%BD%BF%E7%94%A8%E5%B0%8F%E8%AE%B0/" itemprop="url">
<span itemprop="name">Comparator使用小记</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-02-16T10:39:42+08:00"
content="2020-02-16">
02-16
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/02/16/Maven%E5%AE%9E%E7%94%A8%E5%B0%8F%E6%8A%80%E5%B7%A7/" itemprop="url">
<span itemprop="name">Maven实用小技巧</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-02-09T20:52:02+08:00"
content="2020-02-09">
02-09
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/02/09/G1%E6%94%B6%E9%9B%86%E5%99%A8%E6%A6%82%E8%BF%B0/" itemprop="url">
<span itemprop="name">G1收集器概述</span>
</a>
</div>
</header>
</article>
<div class="collection-year">
<span class="collection-header">2019</span>
</div>
@ -305,35 +222,15 @@
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2019-12-21T01:03:09+08:00"
content="2019-12-21">
12-21
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2019/12/21/%E8%81%8A%E8%81%8AJava%E4%B8%AD%E7%9A%84%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F/" itemprop="url">
<span itemprop="name">聊聊Java中的单例模式</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2019-12-07T00:54:19+08:00"
content="2019-12-07">
12-07
datetime="2019-09-23T23:40:05+08:00"
content="2019-09-23">
09-23
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2019/12/07/JVM-G1-Part-1/" itemprop="url">
<span itemprop="name">JVM源码分析之G1垃圾收集器分析一</span>
<a class="post-title-link" href="/2019/09/23/AbstractQueuedSynchronizer/" itemprop="url">
<span itemprop="name">AbstractQueuedSynchronizer</span>
</a>
</div>
@ -680,6 +577,124 @@
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink({
timeout : 3000,
priority: true,
ignores : [uri => uri.includes('#'),uri => uri === 'https://nicksxs.me/categories/java/',]
});
});
</script>
<script>
function loadCount() {
var d = document, s = d.createElement('script');
s.src = 'https://nicksxs.disqus.com/count.js';
s.id = 'dsq-count-scr';
(d.head || d.body).appendChild(s);
}
// defer loading until the whole page loading is completed
window.addEventListener('load', loadCount, false);
</script>
</body>
</html>
h(error => {
console.error('LeanCloud Counter Error', error);
});
}
let { app_id, app_key, server_url } = {"enable":true,"app_id":"ysza182Vghlqjdt7QiwGLLJy-gzGzoHsz","app_key":"s9GDqbn7gnGGkusf66YRVccw","server_url":"https://leancloud.cn","security":true};
function fetchData(api_server) {
var Counter = (method, url, data) => {
return fetch(`${api_server}/1.1${url}`, {
method,
headers: {
'X-LC-Id' : app_id,
'X-LC-Key' : app_key,
'Content-Type': 'application/json',
},
body: JSON.stringify(data)
});
};
if (CONFIG.page.isPost) {
if (CONFIG.hostname !== location.hostname) return;
addCount(Counter);
} else if (document.querySelectorAll('.post-title-link').length >= 1) {
showTime(Counter);
}
}
let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
if (api_server) {
fetchData(api_server);
} else {
fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
.then(response => response.json())
.then(({ api_server }) => {
fetchData('https://' + api_server);
});
}
})();
</script>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {


+ 70
- 102
categories/docker/index.html View File

@ -29,7 +29,7 @@
<meta name="description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="og:type" content="website">
<meta property="og:title" content="Nicksxs&#39;s Blog">
<meta property="og:url" content="https://nicksxs.me/categories/docker/index.html">
<meta property="og:url" content="https://nicksxs.me/categories/Docker/index.html">
<meta property="og:site_name" content="Nicksxs&#39;s Blog">
<meta property="og:description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="article:author" content="Nicksxs">
@ -40,7 +40,7 @@
<meta property="article:tag" content="森哥">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/categories/docker/">
<link rel="canonical" href="https://nicksxs.me/categories/Docker/">
<script id="page-configurations">
@ -53,7 +53,7 @@
};
</script>
<title>Category: docker | Nicksxs's Blog</title>
<title>Category: Docker | Nicksxs's Blog</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-61358619-1"></script>
<script>
@ -207,14 +207,14 @@
<div class="post-block">
<div class="posts-collapse">
<div class="collection-title">
<h2 class="collection-header">docker
<h2 class="collection-header">Docker
<small>Category</small>
</h2>
</div>
<div class="collection-year">
<span class="collection-header">2016</span>
<span class="collection-header">2020</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
@ -222,15 +222,75 @@
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2016-08-14T16:51:00+08:00"
content="2016-08-14">
08-14
datetime="2020-03-29T21:48:50+08:00"
content="2020-03-29">
03-29
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2016/08/14/docker-mysql-cluster/" itemprop="url">
<span itemprop="name">docker-mysql-cluster</span>
<a class="post-title-link" href="/2020/03/29/echo%E5%91%BD%E4%BB%A4%E7%9A%84%E4%B8%80%E4%B8%AA%E5%B0%8F%E6%8A%80%E5%B7%A7/" itemprop="url">
<span itemprop="name">docker使用中发现的echo命令的一个小技巧及其他</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-03-21T14:43:39+08:00"
content="2020-03-21">
03-21
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/03/21/docker%E6%AF%94%E4%B8%80%E8%88%AC%E5%A4%9A%E4%B8%80%E7%82%B9%E7%9A%84%E5%88%9D%E5%AD%A6%E8%80%85%E4%BB%8B%E7%BB%8D%E4%B8%89/" itemprop="url">
<span itemprop="name">docker比一般多一点的初学者介绍三</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-03-15T22:33:55+08:00"
content="2020-03-15">
03-15
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/03/15/docker%E6%AF%94%E4%B8%80%E8%88%AC%E5%A4%9A%E4%B8%80%E7%82%B9%E7%9A%84%E5%88%9D%E5%AD%A6%E8%80%85%E4%BB%8B%E7%BB%8D%E4%BA%8C/" itemprop="url">
<span itemprop="name">docker比一般多一点的初学者介绍二</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-03-08T23:25:40+08:00"
content="2020-03-08">
03-08
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/03/08/docker%E6%AF%94%E4%B8%80%E8%88%AC%E5%A4%9A%E4%B8%80%E7%82%B9%E7%9A%84%E5%88%9D%E5%AD%A6%E8%80%85%E4%BB%8B%E7%BB%8D/" itemprop="url">
<span itemprop="name">docker比一般多一点的初学者介绍</span>
</a>
</div>
@ -577,98 +637,6 @@
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink({
timeout : 3000,
priority: true,
ignores : [uri => uri.includes('#'),uri => uri === 'https://nicksxs.me/categories/docker/',]
});
});
</script>
<script>
function loadCount() {
var d = document, s = d.createElement('script');
s.src = 'https://nicksxs.disqus.com/count.js';
s.id = 'dsq-count-scr';
(d.head || d.body).appendChild(s);
}
// defer loading until the whole page loading is completed
window.addEventListener('load', loadCount, false);
</script>
</body>
</html>
id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
if (api_server) {
fetchData(api_server);
} else {
fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
.then(response => response.json())
.then(({ api_server }) => {
fetchData('https://' + api_server);
});
}
})();
</script>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {


+ 1
- 1
css/main.css View File

@ -1262,7 +1262,7 @@ pre .javascript .function {
}
.links-of-author a::before,
.links-of-author span.exturl::before {
background: #0a18b4;
background: #ff4dff;
border-radius: 50%;
content: ' ';
display: inline-block;


+ 15
- 8
index.html View File

@ -338,10 +338,16 @@
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-05-17 23:56:01 / Modified: 23:57:30" itemprop="dateCreated datePublished" datetime="2020-05-17T23:56:01+08:00">2020-05-17</time>
<time title="Created: 2020-05-17 23:56:01" itemprop="dateCreated datePublished" datetime="2020-05-17T23:56:01+08:00">2020-05-17</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">Edited on</span>
<time title="Modified: 2020-05-24 22:18:43" itemprop="dateModified" datetime="2020-05-24T22:18:43+08:00">2020-05-24</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
@ -418,6 +424,7 @@
<li>第二是协调者的单点问题,万一挂了,参与者就会在那傻等着</li>
</ul>
<p>所以三阶段提交引入了各节点的超时机制和一个准备阶段,首先是一个<code>can commit</code>阶段,询问下各个节点有没有资源,能不能进行操作,这个阶段不阻塞,只是提前做个摸底,这个阶段其实人畜无害,但是能提高成功率,在这个阶段如果就有节点反馈是不接受的,那就不用执行下去了,也没有锁资源,然后第二阶段是 <code>pre commit</code> ,这个阶段做的事情跟原来的 第一阶段比较类似,然后是第三阶段<code>do commit</code>,其实三阶段提交我个人觉得只是加了个超时,和准备阶段,好像木有根本性的解决的两阶段提交的问题,后续可以再看看一些论文来思考讨论下。</p>
<p>2020年05月24日22:11 更新<br>这里跟朋友讨论了下,好像想通了最核心的一点,对于前面说的那个场景,如果是两阶段提交,如果各个节点中有一个没回应,并且协调者也挂了,这个时候会有什么情况呢,再加一个假设,其实比如这个一阶段其实是检验就失败的,理论上应该大家都释放资源,那么对于这种异常情况,其他的参与者就不知所措了,就傻傻地锁着资源阻塞着,那么三阶段提交的意义就出现了,把第一阶段拆开,那么即使在这个阶段出现上述的异常,即也不会锁定资源,同时参与者也有超时机制,在第二阶段锁定资源出现异常是,其他参与者节点等超时后就自动释放资源了,也就没啥问题了,不过对于那种异常恢复后的一些情况还是没有很好地解决,需要借助 zk 等,后面有空可以讲讲 paxos 跟 raft 等</p>
</div>
@ -476,11 +483,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
@ -601,11 +608,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
@ -721,11 +728,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C</span></a>
<a href="/categories/Mysql/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" itemprop="url" rel="index"><span itemprop="name">数据结构</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">


+ 1
- 0
leancloud.memo View File

@ -49,4 +49,5 @@
{"title":"聊聊 mysql 的 MVCC 续篇","url":"/2020/05/02/聊聊-mysql-的-MVCC-续篇/"},
{"title":"聊聊 mysql 的 MVCC 续续篇之锁分析","url":"/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/"},
{"title":"聊聊我理解的分布式事务","url":"/2020/05/17/聊聊我理解的分布式事务/"},
{"title":"聊聊我刚学会的应用诊断方法","url":"/2020/05/22/聊聊我刚学会的应用诊断方法/"},
]

+ 1
- 1
leancloud_counter_security_urls.json View File

@ -1 +1 @@
[{"title":"2019年终总结","url":"/2020/02/01/2019年终总结/"},{"title":"34_Search_for_a_Range","url":"/2016/08/14/34-Search-for-a-Range/"},{"title":"AbstractQueuedSynchronizer","url":"/2019/09/23/AbstractQueuedSynchronizer/"},{"title":"add-two-number","url":"/2015/04/14/Add-Two-Number/"},{"title":"Clone Graph Part I","url":"/2014/12/30/Clone-Graph-Part-I/"},{"title":"Comparator使用小记","url":"/2020/04/05/Comparator使用小记/"},{"title":"G1收集器概述","url":"/2020/02/09/G1收集器概述/"},{"title":"村上春树《1Q84》读后感","url":"/2019/12/18/1Q84读后感/"},{"title":"leetcode no.3","url":"/2015/04/15/Leetcode-No-3/"},{"title":"MFC 模态对话框","url":"/2014/12/24/MFC 模态对话框/"},{"title":"Maven实用小技巧","url":"/2020/02/16/Maven实用小技巧/"},{"title":"Path Sum","url":"/2015/01/04/Path-Sum/"},{"title":"Number of 1 Bits","url":"/2015/03/11/Number-Of-1-Bits/"},{"title":"Reverse Bits","url":"/2015/03/11/Reverse-Bits/"},{"title":"Reverse Integer","url":"/2015/03/13/Reverse-Integer/"},{"title":"binary-watch","url":"/2016/09/29/binary-watch/"},{"title":"docker-mysql-cluster","url":"/2016/08/14/docker-mysql-cluster/"},{"title":"docker比一般多一点的初学者介绍","url":"/2020/03/08/docker比一般多一点的初学者介绍/"},{"title":"docker比一般多一点的初学者介绍三","url":"/2020/03/21/docker比一般多一点的初学者介绍三/"},{"title":"docker比一般多一点的初学者介绍二","url":"/2020/03/15/docker比一般多一点的初学者介绍二/"},{"title":"docker使用中发现的echo命令的一个小技巧及其他","url":"/2020/03/29/echo命令的一个小技巧/"},{"title":"gogs使用webhook部署react单页应用","url":"/2020/02/22/gogs使用webhook部署react单页应用/"},{"title":"invert-binary-tree","url":"/2015/06/22/invert-binary-tree/"},{"title":"minimum-size-subarray-sum-209","url":"/2016/10/11/minimum-size-subarray-sum-209/"},{"title":"C++ 指针使用中的一个小问题","url":"/2014/12/23/my-new-post/"},{"title":"openresty","url":"/2019/06/18/openresty/"},{"title":"pcre-intro-and-a-simple-package","url":"/2015/01/16/pcre-intro-and-a-simple-package/"},{"title":"php-abstract-class-and-interface","url":"/2016/11/10/php-abstract-class-and-interface/"},{"title":"rabbitmq-tips","url":"/2017/04/25/rabbitmq-tips/"},{"title":"redis数据结构介绍三-第三部分 整数集合","url":"/2020/01/10/redis数据结构介绍三/"},{"title":"redis数据结构介绍二-第二部分 跳表","url":"/2020/01/04/redis数据结构介绍二/"},{"title":"redis数据结构介绍五-第五部分 对象","url":"/2020/01/20/redis数据结构介绍五/"},{"title":"redis数据结构介绍四-第四部分 压缩表","url":"/2020/01/19/redis数据结构介绍四/"},{"title":"ambari-summary","url":"/2017/05/09/ambari-summary/"},{"title":"Redis_分布式锁","url":"/2019/12/10/Redis-Part-1/"},{"title":"two sum","url":"/2015/01/14/Two-Sum/"},{"title":"spark-little-tips","url":"/2017/03/28/spark-little-tips/"},{"title":"summary-ranges-228","url":"/2016/10/12/summary-ranges-228/"},{"title":"swoole-websocket-test","url":"/2016/07/13/swoole-websocket-test/"},{"title":"聊聊 mysql 的 MVCC 续篇","url":"/2020/05/02/聊聊-mysql-的-MVCC-续篇/"},{"title":"聊聊 mysql 的 MVCC 续续篇之锁分析","url":"/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/"},{"title":"寄生虫观后感","url":"/2020/03/01/寄生虫观后感/"},{"title":"聊聊我理解的分布式事务","url":"/2020/05/17/聊聊我理解的分布式事务/"},{"title":"聊聊Java中的单例模式","url":"/2019/12/21/聊聊Java中的单例模式/"},{"title":"聊聊我刚学会的应用诊断方法","url":"/2020/05/22/聊聊我刚学会的应用诊断方法/"},{"title":"聊聊 mysql 的 MVCC","url":"/2020/04/26/聊聊-mysql-的-MVCC/"},{"title":"redis数据结构介绍-第一部分 SDS,链表,字典","url":"/2019/12/26/redis数据结构介绍/"},{"title":"redis数据结构介绍六 快表","url":"/2020/01/22/redis数据结构介绍六/"},{"title":"redis系列介绍七-过期策略","url":"/2020/04/12/redis系列介绍七/"},{"title":"JVM源码分析之G1垃圾收集器分析一","url":"/2019/12/07/JVM-G1-Part-1/"},{"title":"redis系列介绍八-淘汰策略","url":"/2020/04/18/redis系列介绍八/"}]
[{"title":"2019年终总结","url":"/2020/02/01/2019年终总结/"},{"title":"AbstractQueuedSynchronizer","url":"/2019/09/23/AbstractQueuedSynchronizer/"},{"title":"34_Search_for_a_Range","url":"/2016/08/14/34-Search-for-a-Range/"},{"title":"Comparator使用小记","url":"/2020/04/05/Comparator使用小记/"},{"title":"G1收集器概述","url":"/2020/02/09/G1收集器概述/"},{"title":"leetcode no.3","url":"/2015/04/15/Leetcode-No-3/"},{"title":"MFC 模态对话框","url":"/2014/12/24/MFC 模态对话框/"},{"title":"Maven实用小技巧","url":"/2020/02/16/Maven实用小技巧/"},{"title":"Number of 1 Bits","url":"/2015/03/11/Number-Of-1-Bits/"},{"title":"Path Sum","url":"/2015/01/04/Path-Sum/"},{"title":"Redis_分布式锁","url":"/2019/12/10/Redis-Part-1/"},{"title":"Reverse Bits","url":"/2015/03/11/Reverse-Bits/"},{"title":"Reverse Integer","url":"/2015/03/13/Reverse-Integer/"},{"title":"two sum","url":"/2015/01/14/Two-Sum/"},{"title":"ambari-summary","url":"/2017/05/09/ambari-summary/"},{"title":"binary-watch","url":"/2016/09/29/binary-watch/"},{"title":"docker-mysql-cluster","url":"/2016/08/14/docker-mysql-cluster/"},{"title":"docker比一般多一点的初学者介绍","url":"/2020/03/08/docker比一般多一点的初学者介绍/"},{"title":"docker比一般多一点的初学者介绍三","url":"/2020/03/21/docker比一般多一点的初学者介绍三/"},{"title":"docker比一般多一点的初学者介绍二","url":"/2020/03/15/docker比一般多一点的初学者介绍二/"},{"title":"docker使用中发现的echo命令的一个小技巧及其他","url":"/2020/03/29/echo命令的一个小技巧/"},{"title":"gogs使用webhook部署react单页应用","url":"/2020/02/22/gogs使用webhook部署react单页应用/"},{"title":"invert-binary-tree","url":"/2015/06/22/invert-binary-tree/"},{"title":"minimum-size-subarray-sum-209","url":"/2016/10/11/minimum-size-subarray-sum-209/"},{"title":"C++ 指针使用中的一个小问题","url":"/2014/12/23/my-new-post/"},{"title":"openresty","url":"/2019/06/18/openresty/"},{"title":"pcre-intro-and-a-simple-package","url":"/2015/01/16/pcre-intro-and-a-simple-package/"},{"title":"php-abstract-class-and-interface","url":"/2016/11/10/php-abstract-class-and-interface/"},{"title":"rabbitmq-tips","url":"/2017/04/25/rabbitmq-tips/"},{"title":"redis数据结构介绍三-第三部分 整数集合","url":"/2020/01/10/redis数据结构介绍三/"},{"title":"redis数据结构介绍二-第二部分 跳表","url":"/2020/01/04/redis数据结构介绍二/"},{"title":"redis数据结构介绍五-第五部分 对象","url":"/2020/01/20/redis数据结构介绍五/"},{"title":"redis数据结构介绍四-第四部分 压缩表","url":"/2020/01/19/redis数据结构介绍四/"},{"title":"spark-little-tips","url":"/2017/03/28/spark-little-tips/"},{"title":"summary-ranges-228","url":"/2016/10/12/summary-ranges-228/"},{"title":"swoole-websocket-test","url":"/2016/07/13/swoole-websocket-test/"},{"title":"寄生虫观后感","url":"/2020/03/01/寄生虫观后感/"},{"title":"聊聊 mysql 的 MVCC 续篇","url":"/2020/05/02/聊聊-mysql-的-MVCC-续篇/"},{"title":"聊聊 mysql 的 MVCC 续续篇之锁分析","url":"/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/"},{"title":"聊聊 mysql 的 MVCC","url":"/2020/04/26/聊聊-mysql-的-MVCC/"},{"title":"聊聊Java中的单例模式","url":"/2019/12/21/聊聊Java中的单例模式/"},{"title":"聊聊我刚学会的应用诊断方法","url":"/2020/05/22/聊聊我刚学会的应用诊断方法/"},{"title":"Clone Graph Part I","url":"/2014/12/30/Clone-Graph-Part-I/"},{"title":"add-two-number","url":"/2015/04/14/Add-Two-Number/"},{"title":"村上春树《1Q84》读后感","url":"/2019/12/18/1Q84读后感/"},{"title":"redis数据结构介绍-第一部分 SDS,链表,字典","url":"/2019/12/26/redis数据结构介绍/"},{"title":"redis数据结构介绍六 快表","url":"/2020/01/22/redis数据结构介绍六/"},{"title":"聊聊我理解的分布式事务","url":"/2020/05/17/聊聊我理解的分布式事务/"},{"title":"redis系列介绍七-过期策略","url":"/2020/04/12/redis系列介绍七/"},{"title":"JVM源码分析之G1垃圾收集器分析一","url":"/2019/12/07/JVM-G1-Part-1/"},{"title":"redis系列介绍八-淘汰策略","url":"/2020/04/18/redis系列介绍八/"}]

+ 2
- 2
page/2/index.html View File

@ -833,11 +833,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">


+ 2
- 2
page/3/index.html View File

@ -957,11 +957,11 @@
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/Java/JVM/" itemprop="url" rel="index"><span itemprop="name">JVM</span></a>
<a href="/categories/C/" itemprop="url" rel="index"><span itemprop="name">C++</span></a>
</span>
,
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">


+ 14
- 14
sitemap.xml View File

@ -2,16 +2,16 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://nicksxs.me/2020/05/22/%E8%81%8A%E8%81%8A%E6%88%91%E5%88%9A%E5%AD%A6%E4%BC%9A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%8A%E6%96%AD%E6%96%B9%E6%B3%95/</loc>
<loc>https://nicksxs.me/2020/05/17/%E8%81%8A%E8%81%8A%E6%88%91%E7%90%86%E8%A7%A3%E7%9A%84%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/</loc>
<lastmod>2020-05-24T13:51:43.115Z</lastmod>
<lastmod>2020-05-24T14:18:43.082Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2020/05/17/%E8%81%8A%E8%81%8A%E6%88%91%E7%90%86%E8%A7%A3%E7%9A%84%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/</loc>
<loc>https://nicksxs.me/2020/05/22/%E8%81%8A%E8%81%8A%E6%88%91%E5%88%9A%E5%AD%A6%E4%BC%9A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%8A%E6%96%AD%E6%96%B9%E6%B3%95/</loc>
<lastmod>2020-05-17T15:57:30.000Z</lastmod>
<lastmod>2020-05-24T13:51:43.115Z</lastmod>
</url>
@ -212,42 +212,42 @@
</url>
<url>
<loc>https://nicksxs.me/2015/03/13/Reverse-Integer/</loc>
<loc>https://nicksxs.me/2015/04/14/Add-Two-Number/</loc>
<lastmod>2020-01-12T13:08:27.012Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2015/04/14/Add-Two-Number/</loc>
<loc>https://nicksxs.me/2015/03/13/Reverse-Integer/</loc>
<lastmod>2020-01-12T13:08:27.012Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2014/12/24/MFC%20%E6%A8%A1%E6%80%81%E5%AF%B9%E8%AF%9D%E6%A1%86/</loc>
<loc>https://nicksxs.me/2016/08/14/docker-mysql-cluster/</loc>
<lastmod>2020-01-12T13:08:27.011Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2016/08/14/docker-mysql-cluster/</loc>
<loc>https://nicksxs.me/2014/12/24/MFC%20%E6%A8%A1%E6%80%81%E5%AF%B9%E8%AF%9D%E6%A1%86/</loc>
<lastmod>2020-01-12T13:08:27.011Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2017/05/09/ambari-summary/</loc>
<loc>https://nicksxs.me/2019/06/18/openresty/</loc>
<lastmod>2020-01-12T13:08:27.010Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2019/06/18/openresty/</loc>
<loc>https://nicksxs.me/2017/05/09/ambari-summary/</loc>
<lastmod>2020-01-12T13:08:27.010Z</lastmod>
@ -289,14 +289,14 @@
</url>
<url>
<loc>https://nicksxs.me/2017/03/28/spark-little-tips/</loc>
<loc>https://nicksxs.me/2014/12/23/my-new-post/</loc>
<lastmod>2020-01-12T13:08:26.998Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2014/12/23/my-new-post/</loc>
<loc>https://nicksxs.me/2017/03/28/spark-little-tips/</loc>
<lastmod>2020-01-12T13:08:26.998Z</lastmod>
@ -317,14 +317,14 @@
</url>
<url>
<loc>https://nicksxs.me/2016/10/12/summary-ranges-228/</loc>
<loc>https://nicksxs.me/2015/06/22/invert-binary-tree/</loc>
<lastmod>2020-01-12T13:08:26.994Z</lastmod>
</url>
<url>
<loc>https://nicksxs.me/2015/06/22/invert-binary-tree/</loc>
<loc>https://nicksxs.me/2016/10/12/summary-ranges-228/</loc>
<lastmod>2020-01-12T13:08:26.994Z</lastmod>


+ 152
- 156
tags/Redis/index.html View File

@ -29,7 +29,7 @@
<meta name="description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="og:type" content="website">
<meta property="og:title" content="Nicksxs&#39;s Blog">
<meta property="og:url" content="https://nicksxs.me/tags/Redis/index.html">
<meta property="og:url" content="https://nicksxs.me/tags/redis/index.html">
<meta property="og:site_name" content="Nicksxs&#39;s Blog">
<meta property="og:description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="article:author" content="Nicksxs">
@ -40,7 +40,7 @@
<meta property="article:tag" content="森哥">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/tags/Redis/">
<link rel="canonical" href="https://nicksxs.me/tags/redis/">
<script id="page-configurations">
@ -53,7 +53,7 @@
};
</script>
<title>Tag: Redis | Nicksxs's Blog</title>
<title>Tag: redis | Nicksxs's Blog</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-61358619-1"></script>
<script>
@ -207,12 +207,155 @@
<div class="post-block">
<div class="posts-collapse">
<div class="collection-title">
<h2 class="collection-header">Redis
<h2 class="collection-header">redis
<small>Tag</small>
</h2>
</div>
<div class="collection-year">
<span class="collection-header">2020</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-04-18T23:23:41+08:00"
content="2020-04-18">
04-18
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/04/18/redis%E7%B3%BB%E5%88%97%E4%BB%8B%E7%BB%8D%E5%85%AB/" itemprop="url">
<span itemprop="name">redis系列介绍八-淘汰策略</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-04-12T21:22:00+08:00"
content="2020-04-12">
04-12
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/04/12/redis%E7%B3%BB%E5%88%97%E4%BB%8B%E7%BB%8D%E4%B8%83/" itemprop="url">
<span itemprop="name">redis系列介绍七-过期策略</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-01-22T21:51:30+08:00"
content="2020-01-22">
01-22
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/01/22/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E5%85%AD/" itemprop="url">
<span itemprop="name">redis数据结构介绍六 快表</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-01-20T01:02:48+08:00"
content="2020-01-20">
01-20
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/01/20/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%BA%94/" itemprop="url">
<span itemprop="name">redis数据结构介绍五-第五部分 对象</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-01-19T00:00:22+08:00"
content="2020-01-19">
01-19
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/01/19/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E5%9B%9B/" itemprop="url">
<span itemprop="name">redis数据结构介绍四-第四部分 压缩表</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-01-10T00:54:04+08:00"
content="2020-01-10">
01-10
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/01/10/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%B8%89/" itemprop="url">
<span itemprop="name">redis数据结构介绍三-第三部分 整数集合</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-01-04T00:03:05+08:00"
content="2020-01-04">
01-04
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/01/04/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%BA%8C/" itemprop="url">
<span itemprop="name">redis数据结构介绍二-第二部分 跳表</span>
</a>
</div>
</header>
</article>
<div class="collection-year">
<span class="collection-header">2019</span>
</div>
@ -222,15 +365,15 @@
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2019-12-10T23:26:26+08:00"
content="2019-12-10">
12-10
datetime="2019-12-26T00:03:49+08:00"
content="2019-12-26">
12-26
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2019/12/10/Redis-Part-1/" itemprop="url">
<span itemprop="name">Redis_分布式锁</span>
<a class="post-title-link" href="/2019/12/26/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D/" itemprop="url">
<span itemprop="name">redis数据结构介绍-第一部分 SDS,链表,字典</span>
</a>
</div>
@ -577,153 +720,6 @@
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink({
timeout : 3000,
priority: true,
ignores : [uri => uri.includes('#'),uri => uri === 'https://nicksxs.me/tags/Redis/',]
});
});
</script>
<script>
function loadCount() {
var d = document, s = d.createElement('script');
s.src = 'https://nicksxs.disqus.com/count.js';
s.id = 'dsq-count-scr';
(d.head || d.body).appendChild(s);
}
// defer loading until the whole page loading is completed
window.addEventListener('load', loadCount, false);
</script>
</body>
</html>
ut', '/classes/Counter/' + counter.objectId, { time: { '__op': 'Increment', 'amount': 1 } })
.catch(error => {
console.error('Failed to save visitor count', error);
});
} else {
leancloudSelector(url).innerText = 'Counter not initialized! More info at console err msg.';
console.error('ATTENTION! LeanCloud counter has security bug, see how to solve it here: https://github.com/theme-next/hexo-leancloud-counter-security. \n However, you can still use LeanCloud without security, by setting `security` option to `false`.');
}
})
.catch(error => {
console.error('LeanCloud Counter Error', error);
});
}
function showTime(Counter) {
var visitors = document.querySelectorAll('.leancloud_visitors');
var entries = [...visitors].map(element => {
return decodeURI(element.id);
});
Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url: { '$in': entries } })))
.then(response => response.json())
.then(({ results }) => {
for (let url of entries) {
let target = results.find(item => item.url === url);
leancloudSelector(url).innerText = target ? target.time : 0;
}
})
.catch(error => {
console.error('LeanCloud Counter Error', error);
});
}
let { app_id, app_key, server_url } = {"enable":true,"app_id":"ysza182Vghlqjdt7QiwGLLJy-gzGzoHsz","app_key":"s9GDqbn7gnGGkusf66YRVccw","server_url":"https://leancloud.cn","security":true};
function fetchData(api_server) {
var Counter = (method, url, data) => {
return fetch(`${api_server}/1.1${url}`, {
method,
headers: {
'X-LC-Id' : app_id,
'X-LC-Key' : app_key,
'Content-Type': 'application/json',
},
body: JSON.stringify(data)
});
};
if (CONFIG.page.isPost) {
if (CONFIG.hostname !== location.hostname) return;
addCount(Counter);
} else if (document.querySelectorAll('.post-title-link').length >= 1) {
showTime(Counter);
}
}
let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
if (api_server) {
fetchData(api_server);
} else {
fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
.then(response => response.json())
.then(({ api_server }) => {
fetchData('https://' + api_server);
});
}
})();
</script>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {


+ 196
- 184
tags/c/index.html View File

@ -29,7 +29,7 @@
<meta name="description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="og:type" content="website">
<meta property="og:title" content="Nicksxs&#39;s Blog">
<meta property="og:url" content="https://nicksxs.me/tags/C/index.html">
<meta property="og:url" content="https://nicksxs.me/tags/c/index.html">
<meta property="og:site_name" content="Nicksxs&#39;s Blog">
<meta property="og:description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="article:author" content="Nicksxs">
@ -40,7 +40,7 @@
<meta property="article:tag" content="森哥">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/tags/C/">
<link rel="canonical" href="https://nicksxs.me/tags/c/">
<script id="page-configurations">
@ -53,7 +53,7 @@
};
</script>
<title>Tag: C | Nicksxs's Blog</title>
<title>Tag: c++ | Nicksxs's Blog</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-61358619-1"></script>
<script>
@ -207,14 +207,14 @@
<div class="post-block">
<div class="posts-collapse">
<div class="collection-title">
<h2 class="collection-header">C
<h2 class="collection-header">c++
<small>Tag</small>
</h2>
</div>
<div class="collection-year">
<span class="collection-header">2019</span>
<span class="collection-header">2016</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
@ -222,15 +222,198 @@
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2019-12-10T23:26:26+08:00"
content="2019-12-10">
12-10
datetime="2016-10-12T23:25:17+08:00"
content="2016-10-12">
10-12
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2019/12/10/Redis-Part-1/" itemprop="url">
<span itemprop="name">Redis_分布式锁</span>
<a class="post-title-link" href="/2016/10/12/summary-ranges-228/" itemprop="url">
<span itemprop="name">summary-ranges-228</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2016-10-11T22:04:28+08:00"
content="2016-10-11">
10-11
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2016/10/11/minimum-size-subarray-sum-209/" itemprop="url">
<span itemprop="name">minimum-size-subarray-sum-209</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2016-09-29T23:16:06+08:00"
content="2016-09-29">
09-29
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2016/09/29/binary-watch/" itemprop="url">
<span itemprop="name">binary-watch</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2016-08-14T21:33:24+08:00"
content="2016-08-14">
08-14
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2016/08/14/34-Search-for-a-Range/" itemprop="url">
<span itemprop="name">34_Search_for_a_Range</span>
</a>
</div>
</header>
</article>
<div class="collection-year">
<span class="collection-header">2015</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2015-06-22T10:29:44+08:00"
content="2015-06-22">
06-22
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2015/06/22/invert-binary-tree/" itemprop="url">
<span itemprop="name">invert-binary-tree</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2015-04-15T13:49:00+08:00"
content="2015-04-15">
04-15
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2015/04/15/Leetcode-No-3/" itemprop="url">
<span itemprop="name">leetcode no.3</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2015-04-14T17:40:10+08:00"
content="2015-04-14">
04-14
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2015/04/14/Add-Two-Number/" itemprop="url">
<span itemprop="name">add-two-number</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2015-03-13T17:22:20+08:00"
content="2015-03-13">
03-13
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2015/03/13/Reverse-Integer/" itemprop="url">
<span itemprop="name">Reverse Integer</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2015-03-11T17:35:20+08:00"
content="2015-03-11">
03-11
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2015/03/11/Reverse-Bits/" itemprop="url">
<span itemprop="name">Reverse Bits</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2015-03-11T17:02:58+08:00"
content="2015-03-11">
03-11
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2015/03/11/Number-Of-1-Bits/" itemprop="url">
<span itemprop="name">Number of 1 Bits</span>
</a>
</div>
@ -244,6 +427,9 @@
<nav class="pagination">
<span class="page-number current">1</span><a class="page-number" href="/tags/c/page/2/">2</a><a class="extend next" rel="next" href="/tags/c/page/2/"><i class="fa fa-angle-right" aria-label="Next page"></i></a>
</nav>
@ -577,180 +763,6 @@
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink({
timeout : 3000,
priority: true,
ignores : [uri => uri.includes('#'),uri => uri === 'https://nicksxs.me/tags/C/',]
});
});
</script>
<script>
function loadCount() {
var d = document, s = d.createElement('script');
s.src = 'https://nicksxs.disqus.com/count.js';
s.id = 'dsq-count-scr';
(d.head || d.body).appendChild(s);
}
// defer loading until the whole page loading is completed
window.addEventListener('load', loadCount, false);
</script>
</body>
</html>
</span>
</span>
</div>
<script>
(function() {
function leancloudSelector(url) {
url = encodeURI(url);
return document.getElementById(url).querySelector('.leancloud-visitors-count');
}
function addCount(Counter) {
var visitors = document.querySelector('.leancloud_visitors');
var url = decodeURI(visitors.id);
var title = visitors.dataset.flagTitle;
Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url })))
.then(response => response.json())
.then(({ results }) => {
if (results.length > 0) {
var counter = results[0];
leancloudSelector(url).innerText = counter.time + 1;
Counter('put', '/classes/Counter/' + counter.objectId, { time: { '__op': 'Increment', 'amount': 1 } })
.catch(error => {
console.error('Failed to save visitor count', error);
});
} else {
leancloudSelector(url).innerText = 'Counter not initialized! More info at console err msg.';
console.error('ATTENTION! LeanCloud counter has security bug, see how to solve it here: https://github.com/theme-next/hexo-leancloud-counter-security. \n However, you can still use LeanCloud without security, by setting `security` option to `false`.');
}
})
.catch(error => {
console.error('LeanCloud Counter Error', error);
});
}
function showTime(Counter) {
var visitors = document.querySelectorAll('.leancloud_visitors');
var entries = [...visitors].map(element => {
return decodeURI(element.id);
});
Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url: { '$in': entries } })))
.then(response => response.json())
.then(({ results }) => {
for (let url of entries) {
let target = results.find(item => item.url === url);
leancloudSelector(url).innerText = target ? target.time : 0;
}
})
.catch(error => {
console.error('LeanCloud Counter Error', error);
});
}
let { app_id, app_key, server_url } = {"enable":true,"app_id":"ysza182Vghlqjdt7QiwGLLJy-gzGzoHsz","app_key":"s9GDqbn7gnGGkusf66YRVccw","server_url":"https://leancloud.cn","security":true};
function fetchData(api_server) {
var Counter = (method, url, data) => {
return fetch(`${api_server}/1.1${url}`, {
method,
headers: {
'X-LC-Id' : app_id,
'X-LC-Key' : app_key,
'Content-Type': 'application/json',
},
body: JSON.stringify(data)
});
};
if (CONFIG.page.isPost) {
if (CONFIG.hostname !== location.hostname) return;
addCount(Counter);
} else if (document.querySelectorAll('.post-title-link').length >= 1) {
showTime(Counter);
}
}
let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
if (api_server) {
fetchData(api_server);
} else {
fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
.then(response => response.json())
.then(({ api_server }) => {
fetchData('https://' + api_server);
});
}
})();
</script>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {


+ 112
- 92
tags/java/index.html View File

@ -29,7 +29,7 @@
<meta name="description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="og:type" content="website">
<meta property="og:title" content="Nicksxs&#39;s Blog">
<meta property="og:url" content="https://nicksxs.me/tags/Java/index.html">
<meta property="og:url" content="https://nicksxs.me/tags/java/index.html">
<meta property="og:site_name" content="Nicksxs&#39;s Blog">
<meta property="og:description" content="learn from zero,技术博客,Nicksxs,史学森">
<meta property="article:author" content="Nicksxs">
@ -40,7 +40,7 @@
<meta property="article:tag" content="森哥">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://nicksxs.me/tags/Java/">
<link rel="canonical" href="https://nicksxs.me/tags/java/">
<script id="page-configurations">
@ -53,7 +53,7 @@
};
</script>
<title>Tag: Java | Nicksxs's Blog</title>
<title>Tag: java | Nicksxs's Blog</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-61358619-1"></script>
<script>
@ -207,95 +207,12 @@
<div class="post-block">
<div class="posts-collapse">
<div class="collection-title">
<h2 class="collection-header">Java
<h2 class="collection-header">java
<small>Tag</small>
</h2>
</div>
<div class="collection-year">
<span class="collection-header">2020</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-05-22T23:26:50+08:00"
content="2020-05-22">
05-22
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/05/22/%E8%81%8A%E8%81%8A%E6%88%91%E5%88%9A%E5%AD%A6%E4%BC%9A%E7%9A%84%E5%BA%94%E7%94%A8%E8%AF%8A%E6%96%AD%E6%96%B9%E6%B3%95/" itemprop="url">
<span itemprop="name">聊聊我刚学会的应用诊断方法</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-04-05T21:41:41+08:00"
content="2020-04-05">
04-05
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/04/05/Comparator%E4%BD%BF%E7%94%A8%E5%B0%8F%E8%AE%B0/" itemprop="url">
<span itemprop="name">Comparator使用小记</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-02-16T10:39:42+08:00"
content="2020-02-16">
02-16
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/02/16/Maven%E5%AE%9E%E7%94%A8%E5%B0%8F%E6%8A%80%E5%B7%A7/" itemprop="url">
<span itemprop="name">Maven实用小技巧</span>
</a>
</div>
</header>
</article>
<article itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2020-02-09T20:52:02+08:00"
content="2020-02-09">
02-09
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2020/02/09/G1%E6%94%B6%E9%9B%86%E5%99%A8%E6%A6%82%E8%BF%B0/" itemprop="url">
<span itemprop="name">G1收集器概述</span>
</a>
</div>
</header>
</article>
<div class="collection-year">
<span class="collection-header">2019</span>
</div>
@ -305,15 +222,15 @@
<div class="post-meta">
<time itemprop="dateCreated"
datetime="2019-12-07T00:54:19+08:00"
content="2019-12-07">
12-07
datetime="2019-09-23T23:40:05+08:00"
content="2019-09-23">
09-23
</time>
</div>
<div class="post-title">
<a class="post-title-link" href="/2019/12/07/JVM-G1-Part-1/" itemprop="url">
<span itemprop="name">JVM源码分析之G1垃圾收集器分析一</span>
<a class="post-title-link" href="/2019/09/23/AbstractQueuedSynchronizer/" itemprop="url">
<span itemprop="name">AbstractQueuedSynchronizer</span>
</a>
</div>
@ -660,6 +577,109 @@
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink({
timeout : 3000,
priority: true,
ignores : [uri => uri.includes('#'),uri => uri === 'https://nicksxs.me/tags/java/',]
});
});
</script>
<script>
function loadCount() {
var d = document, s = d.createElement('script');
s.src = 'https://nicksxs.disqus.com/count.js';
s.id = 'dsq-count-scr';
(d.head || d.body).appendChild(s);
}
// defer loading until the whole page loading is completed
window.addEventListener('load', loadCount, false);
</script>
</body>
</html>
body: JSON.stringify(data)
});
};
if (CONFIG.page.isPost) {
if (CONFIG.hostname !== location.hostname) return;
addCount(Counter);
} else if (document.querySelectorAll('.post-title-link').length >= 1) {
showTime(Counter);
}
}
let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
if (api_server) {
fetchData(api_server);
} else {
fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
.then(response => response.json())
.then(({ api_server }) => {
fetchData('https://' + api_server);
});
}
})();
</script>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="//cdn.jsdelivr.net/npm/quicklink@1/dist/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {


Loading…
Cancel
Save