/
index.html
640 lines (403 loc) · 21.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
<title>Imatvoid </title>
<link rel="stylesheet" href="https://imatvoid.github.io//styles/main.css">
<script type="text/javascript">
function getCSS(){datetoday=new Date();timenow=datetoday.getTime();datetoday.setTime(timenow);thehour=datetoday.getHours();display="https://imatvoid.github.io//media/scripts/dark.css";display="https://imatvoid.github.io//media/scripts/dark.css";var css='<';css+='link rel="stylesheet" href='+display+' \/';css+='>';document.write(css)}
</script>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
<script type='text/javascript' src='https://imatvoid.github.io//media/scripts/script.js'></script>
<link href="https://cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet" />
<script src="https://cdn.bootcss.com/wow/1.1.2/wow.min.js"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.15.8/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:true,live:true});wow.init();</script>
</head>
<body class="home blog">
<div id="wrapper">
<header id="header" class="site-header" >
<div class="site-branding">
<h1 class="site-title"><a href="https://imatvoid.github.io/" rel="home">Imatvoid </a></h1>
<h2 class="site-description">未曾清贫难成人,不经打击老天真。
自古英雄出炼狱,从来富贵入凡尘。 </h2>
</div>
<nav id="nav-wrapper">
<div class="container">
<div class="nav-toggle">
<div class="bars">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</div><!-- /nav-toggle -->
<div class="clear"></div>
<ul class="dove">
<li>
<a href="https://imatvoid.github.io/"> 首页</a></li>
<li>
<a href="https://imatvoid.github.io//archives"> 归档</a></li>
<li>
<a href="https://imatvoid.github.io//tags"> 标签</a></li>
<li>
<a href="https://imatvoid.github.io//post/about/"> 关于</a></li>
</ul>
</li>
</ul> </div>
</nav><!-- #navigation -->
<div class="jingge">
</header><!-- #masthead -->
<div id="content" class="container">
<div class="row">
<div class="col-md-8 site-main">
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/cao-zuo-xi-tong-ling-kao-bei-he-netty-ling-kao-bei" rel="bookmark">操作系统零拷贝 和 netty 零拷贝</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-10-06 14:52:22" itemprop="datePublished" pubdate="">2019-10-06</time></i>
</div>
<div class="entry-summary">
<p><p><a href=""></a></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/cao-zuo-xi-tong-ling-kao-bei-he-netty-ling-kao-bei" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/leetcode-81-search-in-rotated-sorted-array-ii" rel="bookmark">leetcode -- 81. Search in Rotated Sorted Array II</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-10-03 13:57:51" itemprop="datePublished" pubdate="">2019-10-03</time></i>
</div>
<div class="entry-summary">
<p><p><code>81. Search in Rotated Sorted Array II</code></p>
<p><a href="https://leetcode.com/problems/search-in-rotated-sorted-array-ii/">https://leetcode.com/problems/search-in-rotated-sorted-array-ii/</a></p>
<p><code>81. 搜索旋转排序数组 II</code></p>
<p><a href="https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii/">https://leetcode-cn.com/problems/search-in-rotated-sorted-array-ii/</a></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/leetcode-81-search-in-rotated-sorted-array-ii" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/shi-me-shi-er-jin-zhi-an-quan" rel="bookmark">什么是二进制安全</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-29 11:22:14" itemprop="datePublished" pubdate="">2019-09-29</time></i>
</div>
<div class="entry-summary">
<p><p>二进制安全是一种主要用于字符串操作函数相关的计算机编程术语。一个二进制安全功能(函数),其本质上将输入作为原始的、无任何特殊格式意义的数据流。</p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/shi-me-shi-er-jin-zhi-an-quan" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/fastjson-yu-gson-de-chai-yi" rel="bookmark"> Fastjson与Gson的差异</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-27 20:31:15" itemprop="datePublished" pubdate="">2019-09-27</time></i>
</div>
<div class="entry-summary">
<p></p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/fastjson-yu-gson-de-chai-yi" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/you-ya-ting-fu-wu" rel="bookmark">优雅停服务</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-24 10:39:51" itemprop="datePublished" pubdate="">2019-09-24</time></i>
</div>
<div class="entry-summary">
<p><p>考虑rpc,mq,定时任务,日志的停机实现</p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/you-ya-ting-fu-wu" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/shutdownhook" rel="bookmark">ShutDownHook</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-24 10:38:18" itemprop="datePublished" pubdate="">2019-09-24</time></i>
</div>
<div class="entry-summary">
<p><p>Shutdown Hooks are a special construct that allow developers to plug in a piece of code to be executed when the JVM is shutting down.</p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/shutdownhook" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/fu-zai-jun-heng-suan-fa" rel="bookmark">负载均衡算法</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-22 23:20:10" itemprop="datePublished" pubdate="">2019-09-22</time></i>
</div>
<div class="entry-summary">
<p><p><a href=""></a></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/fu-zai-jun-heng-suan-fa" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/targetsource" rel="bookmark">TargetSource</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-13 14:27:47" itemprop="datePublished" pubdate="">2019-09-13</time></i>
</div>
<div class="entry-summary">
<p></p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/targetsource" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/bu-long-guo-lu-qi" rel="bookmark">布隆过滤器</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-12 13:44:04" itemprop="datePublished" pubdate="">2019-09-12</time></i>
</div>
<div class="entry-summary">
<p><h2 id="介绍">介绍</h2>
<p><strong>mightContains</strong></p>
<p>判断某个值存在时,这个值可能不存在;判断不存在时,那就肯定不存在。</p>
<p><strong>不支持删除</strong></p>
<p>一个bit位置其实是被复用的.</p>
<p><strong>不可逆,无法迁移扩容</strong></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/bu-long-guo-lu-qi" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/huo-qu-dong-tai-dai-li-lei-de-mu-biao-dui-xiang" rel="bookmark">获取动态代理类的目标对象</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-09-09 10:08:46" itemprop="datePublished" pubdate="">2019-09-09</time></i>
</div>
<div class="entry-summary">
<p><p>在目标对象被动态代理后,在一些场景中,我们需要拿到原始的对象</p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/huo-qu-dong-tai-dai-li-lei-de-mu-biao-dui-xiang" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/binlog-ri-zhi-ge-shi" rel="bookmark">binlog日志格式</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-08-31 20:05:17" itemprop="datePublished" pubdate="">2019-08-31</time></i>
</div>
<div class="entry-summary">
<p><p>Statement:每一条会修改数据的sql都会记录在binlog中<br>
Row:不记录sql语句上下文相关信息,仅保存哪条记录被修改<br>
Mixedlevel: 是以上两种level的混合使用,一般的语句修改使用statment格式保存binlog,如一些函数,statement无法完成主从复制的操作,则采用row格式保存binlog</p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/binlog-ri-zhi-ge-shi" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/innodb_autoinc_lock_mode-yu-zhu-cong-fu-zhi" rel="bookmark">innodb_autoinc_lock_mode 与主从复制</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-08-31 19:48:50" itemprop="datePublished" pubdate="">2019-08-31</time></i>
</div>
<div class="entry-summary">
<p><p>当 innodb_autoinc_lock_mode值为2时,可能会造成不同事务中的插⼊语句为AUTO_INCREMENT修饰的列⽣成的值是交叉 的,在有主从复制的场景中是不安全的。</p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/innodb_autoinc_lock_mode-yu-zhu-cong-fu-zhi" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/copy-on-write-xie-shi-fu-zhi" rel="bookmark">Copy on write 写时复制</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-08-26 18:42:14" itemprop="datePublished" pubdate="">2019-08-26</time></i>
</div>
<div class="entry-summary">
<p><p><a href=""></a></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/copy-on-write-xie-shi-fu-zhi" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/sql-cha-xun-cun-zai-yu-yi-ge-biao-er-bu-zai-ling-yi-ge-biao-de-shu-ju" rel="bookmark">sql查询 存在于一个表而不在另一个表的数据</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-08-25 17:45:45" itemprop="datePublished" pubdate="">2019-08-25</time></i>
</div>
<div class="entry-summary">
<p><p><a href=""></a></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/sql-cha-xun-cun-zai-yu-yi-ge-biao-er-bu-zai-ling-yi-ge-biao-de-shu-ju" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
<article class="wow zoomIn post post-index post-318 type-post status-publish format-standard hentry category-uncategorized tag-40 tag-39">
<div class="entry-content">
<h1 class="entry-title"><a href="https://imatvoid.github.io//post/leeetcode-merge-k-sorted-lists" rel="bookmark">leeetcode -- Merge k Sorted Lists</a></h1>
<div class="entry-meta">
<i class="iconfont icon-rili"> <time class="lately-a" datetime="2019-08-23 08:54:42" itemprop="datePublished" pubdate="">2019-08-23</time></i>
</div>
<div class="entry-summary">
<p><p><code>Merge k Sorted Lists</code></p>
<p><a href="https://leetcode.com/problems/merge-k-sorted-lists/">https://leetcode.com/problems/merge-k-sorted-lists/</a></p>
<p><code>23. 合并K个排序链表</code></p>
<p><a href="https://leetcode-cn.com/problems/merge-k-sorted-lists/">https://leetcode-cn.com/problems/merge-k-sorted-lists/</a></p>
</p>
<p class="readmore">
<a href="https://imatvoid.github.io//post/leeetcode-merge-k-sorted-lists" class="link-more">Read more</a>
</p>
</div><!-- .entry-summary -->
</div><!-- entry-content -->
</article><!-- #post-## -->
</div><!-- site-main -->
</div><!-- #end row-->
<nav class="navigation pagination" role="navigation">
<div class="nav-links">
<a class="next page-numbers" href="https://imatvoid.github.io//page/2/">点击查看更多</a></div>
</nav>
<script type="text/javascript">
//点击加载更多
jQuery(document).ready(function($) {
//点击下一页的链接(即那个a标签)
$(' .next').click(function() {
$this = $(this);
$this.addClass('loading').text('正在努力加载'); //给a标签加载一个loading的class属性,用来添加加载效果
var href = $this.attr('href'); //获取下一页的链接地址
if (href != undefined) { //如果地址存在
$.ajax({ //发起ajax请求
url: href,
//请求的地址就是下一页的链接
type: 'get',
//请求类型是get
error: function(request) {
//如果发生错误怎么处理
},
success: function(data) { //请求成功
$this.removeClass('loading').text('点击查看更多'); //移除loading属性
var $res = $(data).find('.post-318 '); //从数据中挑出文章数据,请根据实际情况更改
$('.col-md-8').append($res.fadeIn(500)); //将数据加载加进posts-loop的标签中。
var newhref = $(data).find(' .next').attr('href'); //找出新的下一页链接
if (newhref != undefined) {
$('.next').attr('href', newhref);
} else {
$('.next').remove(); //如果没有下一页了,隐藏
}
}
});
}
return false;
});
});
</script>
</div><!-- #end container-->
<footer id="colophon" class="site-footer">
<div class="container">
<div class="copyright">Powered by <a href="https://github.com/getgridea/gridea" target="_blank">Gridea</a><br>Theme: <a href="https://github.com/alterfang/gridea-theme-pan" target="_blank" title="Pan"><span>Pan</span></a>. Powered by <a href="https://gridea.dev/" target="_blank" title="Gridea"><span>Gridea</span></a></div>
</div><!-- .container -->
</footer><!-- #colophon -->
</div><!-- #end wrapper-->
<script src="https://cdn.bootcss.com/fitvids/1.2.0/jquery.fitvids.min.js"></script>
<script type='text/javascript' src='https://imatvoid.github.io//media/scripts/marlin-scripts.js'></script>
<script src="https://tokinx.github.io/lately/lately.min.js"></script>
<script>jQuery(document).ready(function(){$.lately({'target':'.lately-a,.lately-b,.lately-c'})});</script>
<style type="text/css">a.back_to_top {
text-decoration: none;
position: fixed;
bottom: 40px;
right: 30px;
background: #f0f0f0;
height: 40px;
width: 40px;
border-radius: 50%;
line-height: 36px;
font-size: 18px;
text-align: center;
transition-duration: .5s;
transition-propety: background-color;
display: none;
}
a.back_to_top span {
color: #888;
}
a.back_to_top:hover {
cursor: pointer;
background: #dfdfdf;
}
a.back_to_top:hover span {
color: #555;
}
@media print, screen and (max-width: 580px) {
.back_to_top {
display: none !important;
}
}
</style><a id="back_to_top" href="#" class="back_to_top"><span><i class="iconfont icon-xiangshang"></i></span>
</a>
<script>$(document).ready((function(_this) {
return function() {
var bt;
bt = $('#back_to_top');
if ($(document).width() > 480) {
$(window).scroll(function() {
var st;
st = $(window).scrollTop();
if (st > 30) {
return bt.css('display', 'block');
} else {
return bt.css('display', 'none');
}
});
return bt.click(function() {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
}
};
})(this));
</script>
</body>
</html>