diff --git a/2014/12/24/MFC 模态对话框/index.html b/2014/12/24/MFC 模态对话框/index.html index 47789d2228..15e99d9abb 100644 --- a/2014/12/24/MFC 模态对话框/index.html +++ b/2014/12/24/MFC 模态对话框/index.html @@ -301,16 +301,16 @@ diff --git a/2014/12/30/Clone-Graph-Part-I/index.html b/2014/12/30/Clone-Graph-Part-I/index.html index 5e7a7660e3..5d43a9f665 100644 --- a/2014/12/30/Clone-Graph-Part-I/index.html +++ b/2014/12/30/Clone-Graph-Part-I/index.html @@ -35,8 +35,8 @@ - + @@ -300,16 +300,16 @@ diff --git a/2015/04/15/Leetcode-No-3/index.html b/2015/04/15/Leetcode-No-3/index.html index 98f741ce09..8adb011565 100644 --- a/2015/04/15/Leetcode-No-3/index.html +++ b/2015/04/15/Leetcode-No-3/index.html @@ -300,19 +300,19 @@ diff --git a/2015/06/22/invert-binary-tree/index.html b/2015/06/22/invert-binary-tree/index.html index fe5c2e77d7..82dbe2edf2 100644 --- a/2015/06/22/invert-binary-tree/index.html +++ b/2015/06/22/invert-binary-tree/index.html @@ -309,19 +309,19 @@ diff --git a/2016/08/14/34-Search-for-a-Range/index.html b/2016/08/14/34-Search-for-a-Range/index.html index eb5c8f0249..0c78d46a0e 100644 --- a/2016/08/14/34-Search-for-a-Range/index.html +++ b/2016/08/14/34-Search-for-a-Range/index.html @@ -301,10 +301,7 @@ diff --git a/2016/09/29/binary-watch/index.html b/2016/09/29/binary-watch/index.html index 37d84d7159..5d45d2e955 100644 --- a/2016/09/29/binary-watch/index.html +++ b/2016/09/29/binary-watch/index.html @@ -309,19 +309,19 @@ diff --git a/2016/10/11/minimum-size-subarray-sum-209/index.html b/2016/10/11/minimum-size-subarray-sum-209/index.html index 6f9a2eaa5e..30de6c421f 100644 --- a/2016/10/11/minimum-size-subarray-sum-209/index.html +++ b/2016/10/11/minimum-size-subarray-sum-209/index.html @@ -299,19 +299,19 @@ diff --git a/2016/10/12/summary-ranges-228/index.html b/2016/10/12/summary-ranges-228/index.html index 5b665bcb01..8193d23fe7 100644 --- a/2016/10/12/summary-ranges-228/index.html +++ b/2016/10/12/summary-ranges-228/index.html @@ -298,19 +298,19 @@ diff --git a/2019/12/07/JVM-G1-Part-1/index.html b/2019/12/07/JVM-G1-Part-1/index.html index 3cab6b0761..faa3852de7 100644 --- a/2019/12/07/JVM-G1-Part-1/index.html +++ b/2019/12/07/JVM-G1-Part-1/index.html @@ -35,9 +35,9 @@ - + @@ -247,11 +247,11 @@ , - + , - + , @@ -323,9 +323,6 @@ - @@ -335,6 +332,9 @@ +
@@ -377,9 +377,9 @@
diff --git a/2020/02/09/G1收集器概述/index.html b/2020/02/09/G1收集器概述/index.html index e13e9c1657..a795c13bba 100644 --- a/2020/02/09/G1收集器概述/index.html +++ b/2020/02/09/G1收集器概述/index.html @@ -245,11 +245,11 @@ , - + , - + , @@ -318,9 +318,6 @@ - @@ -330,6 +327,9 @@ +
@@ -372,9 +372,9 @@
diff --git a/atom.xml b/atom.xml index 2127bb12a3..6c4400bc61 100644 --- a/atom.xml +++ b/atom.xml @@ -56,7 +56,7 @@ 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/ 2020-05-17T15:56:01.000Z - 2020-05-17T15:57:30.000Z + 2020-05-24T14:18:43.082Z @@ -114,10 +114,10 @@ - - + + @@ -163,10 +163,10 @@ - - + + @@ -212,10 +212,10 @@ - - + + @@ -614,19 +614,19 @@ - - - + + - + + diff --git a/baidusitemap.xml b/baidusitemap.xml index f151dce51f..5212df4074 100644 --- a/baidusitemap.xml +++ b/baidusitemap.xml @@ -1,11 +1,11 @@ - 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/ + 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/ 2020-05-24 - 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/ - 2020-05-17 + 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/ + 2020-05-24 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/ 2020-05-10 @@ -60,18 +60,18 @@ 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/ 2020-01-18 - - https://nicksxs.me/2015/01/14/Two-Sum/ - 2020-01-12 https://nicksxs.me/2019/12/10/Redis-Part-1/ 2020-01-12 - https://nicksxs.me/2016/09/29/binary-watch/ + https://nicksxs.me/2015/01/14/Two-Sum/ 2020-01-12 https://nicksxs.me/2016/11/10/php-abstract-class-and-interface/ 2020-01-12 + + https://nicksxs.me/2016/09/29/binary-watch/ + 2020-01-12 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/ 2020-01-12 @@ -109,10 +109,10 @@ 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/ 2020-01-12 - https://nicksxs.me/2014/12/23/my-new-post/ + https://nicksxs.me/2017/03/28/spark-little-tips/ 2020-01-12 - https://nicksxs.me/2017/03/28/spark-little-tips/ + https://nicksxs.me/2014/12/23/my-new-post/ 2020-01-12 https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/ @@ -121,10 +121,10 @@ https://nicksxs.me/2016/07/13/swoole-websocket-test/ 2020-01-12 - https://nicksxs.me/2015/06/22/invert-binary-tree/ + https://nicksxs.me/2016/10/12/summary-ranges-228/ 2020-01-12 - https://nicksxs.me/2016/10/12/summary-ranges-228/ + https://nicksxs.me/2015/06/22/invert-binary-tree/ 2020-01-12 https://nicksxs.me/2015/01/04/Path-Sum/ diff --git a/categories/Java/index.html b/categories/Java/index.html index 90e94c42f0..f10a730495 100644 --- a/categories/Java/index.html +++ b/categories/Java/index.html @@ -29,7 +29,7 @@ - + @@ -40,7 +40,7 @@ - + - Category: Java | Nicksxs's Blog + Category: java | Nicksxs's Blog + + + + + + +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); + }); + } + })(); + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Category: docker | Nicksxs's Blog + Category: Docker | Nicksxs's Blog - - - - - - -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); - }); - } - })(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tag: Redis | Nicksxs's Blog + Tag: redis | Nicksxs's Blog - - - - - - -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); - }); - } - })(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tag: C | Nicksxs's Blog + Tag: c++ | Nicksxs's Blog - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tag: Java | Nicksxs's Blog + Tag: java | Nicksxs's Blog + + + + + + + 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); + }); + } + })(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +