-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1060 lines (627 loc) · 33.2 KB
/
index.html
File metadata and controls
1060 lines (627 loc) · 33.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jae's blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="I'm here to put a dent in the universe. Otherwise why else even be here?">
<meta property="og:type" content="website">
<meta property="og:title" content="Jae's blog">
<meta property="og:url" content="http://jaecoding.github.io/index.html">
<meta property="og:site_name" content="Jae's blog">
<meta property="og:description" content="I'm here to put a dent in the universe. Otherwise why else even be here?">
<meta property="og:locale" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Jae's blog">
<meta name="twitter:description" content="I'm here to put a dent in the universe. Otherwise why else even be here?">
<link rel="alternate" href="/atom.xml" title="Jae's blog" type="application/atom+xml">
<link rel="icon" href="/css/images/mylogo.jpg">
<link rel="apple-touch-icon" href="/css/images/mylogo.jpg">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style type="text/css">
@font-face{font-family:futura-pt; src:url("css/fonts/FuturaPTBold.otf") format("woff");font-weight:500;font-style:normal;}
@font-face{font-family:futura-pt-light; src:url("css/fonts/FuturaPTBook.otf") format("woff");font-weight:lighter;font-style:normal;}
@font-face{font-family:futura-pt-italic; src:url("css/fonts/FuturaPTBookOblique.otf") format("woff");font-weight:400;font-style:italic;}
}
</style>
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/css/bootstrap.css" >
<link rel="stylesheet" href="/css/home.css" >
<link rel="stylesheet" href="/css/vdonate.css" >
</head>
<body>
<header id="header">
<!-- 背景图模式 -->
<div id="intrologo" class="intro-logo" style="background-position:center; background-repeat:no-repeat; background-image: url(); background-size: auto 100%;">
<!-- Support rolling -->
<section class="awSlider">
<div class="carousel slide carousel-fade " data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img id="carousel-img0" src="/css/images/home-bg.jpg">
</div>
<!-- 自适应大图 -->
<script>
var img0 = new Image();
var imageTag0 = document.getElementById("carousel-img0");
img0.src = imageTag0.src;
img0.onload=function(){
if (img0.width / img0.height <= document.body.clientWidth / document.body.clientHeight) {
imageTag0.style.width = document.body.clientWidth + "px";
} else {
imageTag0.style.height = document.body.clientHeight + "px";
imageTag0.style.marginLeft = -(document.body.clientHeight * img0.width / img0.height - document.body.clientWidth) / 2 + "px";
}
};
</script>
<div class="item">
<img id="carousel-img1" src="/css/images/home-bg1.jpg">
</div>
<!-- 自适应大图 -->
<script>
var img1 = new Image();
var imageTag1 = document.getElementById("carousel-img1");
img1.src = imageTag1.src;
img1.onload=function(){
if (img1.width / img1.height <= document.body.clientWidth / document.body.clientHeight) {
imageTag1.style.width = document.body.clientWidth + "px";
} else {
imageTag1.style.height = document.body.clientHeight + "px";
imageTag1.style.marginLeft = -(document.body.clientHeight * img1.width / img1.height - document.body.clientWidth) / 2 + "px";
}
};
</script>
<div class="item">
<img id="carousel-img2" src="/css/images/home-bg2.jpg">
</div>
<!-- 自适应大图 -->
<script>
var img2 = new Image();
var imageTag2 = document.getElementById("carousel-img2");
img2.src = imageTag2.src;
img2.onload=function(){
if (img2.width / img2.height <= document.body.clientWidth / document.body.clientHeight) {
imageTag2.style.width = document.body.clientWidth + "px";
} else {
imageTag2.style.height = document.body.clientHeight + "px";
imageTag2.style.marginLeft = -(document.body.clientHeight * img2.width / img2.height - document.body.clientWidth) / 2 + "px";
}
};
</script>
<div class="item">
<img id="carousel-img3" src="/css/images/home-bg3.jpg">
</div>
<!-- 自适应大图 -->
<script>
var img3 = new Image();
var imageTag3 = document.getElementById("carousel-img3");
img3.src = imageTag3.src;
img3.onload=function(){
if (img3.width / img3.height <= document.body.clientWidth / document.body.clientHeight) {
imageTag3.style.width = document.body.clientWidth + "px";
} else {
imageTag3.style.height = document.body.clientHeight + "px";
imageTag3.style.marginLeft = -(document.body.clientHeight * img3.width / img3.height - document.body.clientWidth) / 2 + "px";
}
};
</script>
</div>
<!-- Controls -->
<a class="left carousel-control" href=".carousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Geri</span>
</a>
<a class="right carousel-control" href=".carousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">İleri</span>
</a>
</div>
</section>
<script>
$('section.awSlider .carousel').carousel({
pause: '',
interval: 5000
});
var startImage = $('section.awSlider .item.active > img').attr('src');
$('section.awSlider .carousel').on('slid.bs.carousel', function () {
var bscn = $(this).find('.item.active > img').attr('src');
$('section.awSlider > img').attr('src', bscn);
});
</script>
<canvas width="100%" height="100%"></canvas>
<script>
var c = document.getElementsByTagName('canvas')[0],
x = c.getContext('2d'),
w = window.innerWidth,
h = window.innerHeight,
pr = window.devicePixelRatio || 1,
f = 90,
q,
m = Math,
r = 0,
u = m.PI*2,
v = m.cos,
z = m.random
c.width = w*pr
c.height = h*pr
x.scale(pr, pr)
x.globalAlpha = 0.6
<!-- 折线Polyline背景 -->
</script>
<div id="homelogo" class="homelogo" style="background: rgba(255,255,255,1);">
<div class="homelogoback" style="border: 1px solid #404040;" >
<h1><a href="#content" id="logo">Jae's blog</a></h1>
<h3>I'm here to put a dent in the universe. Otherwise why else even be here?</h3>
<h5>Jae Peng</h5>
<!-- <p><a href="https://github.com/iTimeTraveler" target="_blank">Github</a></p> -->
</div>
</div>
</div>
<!-- 自适应主页背景大图 -->
<!-- home_logo_image居中 -->
<script>
var homelogodiv = document.getElementById("homelogo");
if (document.all.homelogo.offsetWidth > document.body.clientWidth) {
homelogodiv.style.width = document.body.clientWidth + "px";
homelogodiv.style.marginLeft = document.body.clientWidth * -0.5 + "px";
} else {
homelogodiv.style.width = homelogodiv.clientWidth + "px";
homelogodiv.style.marginLeft = (homelogodiv.clientWidth) * -0.5 + "px";
}
</script>
<div class="intro-navigate">
<p class="navigater-list">
<a id="beautifont" class="main-nav-link" href="index.html">Home</a>
<a id="beautifont" class="main-nav-link" href="/archives">Archives</a>
<a id="beautifont" class="main-nav-link" href="/categories">Categories</a>
<a id="beautifont" class="main-nav-link" href="/tags">Tags</a>
<a id="beautifont" class="main-nav-link" href="/about">About</a>
</p>
</div>
</header>
<div id="container">
<div id="wrap">
<div id="content" class="outer">
<section id="main" style="float:none;">
<article id="post-Spring实战" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/19/Spring实战/">Spring</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/19/Spring实战/" class="article-date">
<time datetime="2018-08-19T01:38:37.000Z" itemprop="datePublished">2018-08-19</time>
</a>
<a class="article-category-link" href="categories/原理/">原理</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
本文全片以问题为导向,阐述Spring的意义
Spring实战Spring的目的简化Java开发问题:很多框架通过强迫应用继承它们的类或实现它们的接口从而导致应用与框架绑死。(侵入式)
Spring构建的应用中,它的类通常没有任何痕迹表明你使用了Spring。最坏的场景是,一个类或许会使用Spring注解,但它依旧是POJO。
1.1.2 依赖注入类相互之间进行协作来完成特定的业务逻辑。就会产生依赖
问题:传统的做法,每个对象负责管理与自己相互协作的对象(即它所依赖的对象)的引用,这将会导...
</p>
<p class="article-more-link">
<a href="2018/08/19/Spring实战/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Netty(一) 之 I-O通信" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/15/Netty(一) 之 I-O通信/">Netty(一) 之 I/O通信</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/15/Netty(一) 之 I-O通信/" class="article-date">
<time datetime="2018-08-15T03:36:31.000Z" itemprop="datePublished">2018-08-15</time>
</a>
<a class="article-category-link" href="categories/原理/">原理</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
Netty(一) 之 I/O通信IO类型介绍BIO通信
一个线程负责连接
一请求一应答
缺乏弹性伸缩能力
由于线程是宝贵的资源,会造成宕机。请求来到,由accpter去针对每个请求申请线程
伪异步IO通信
线程池负责连接
M请求N应答
超过线程池会阻塞,由于限制不会宕机
由线程池来处理所有客户端的接入,
NIO通信
加入了缓冲区Buffer:所有数据由缓冲区处理,读入缓冲区,写入缓冲区。
通道Channel:是双向的,读写可以同时进行
多路复用器Selector:会不断轮询注册在S...
</p>
<p class="article-more-link">
<a href="2018/08/15/Netty(一) 之 I-O通信/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-【Machine Learning】机器学习:简明入门指南" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/14/【Machine Learning】机器学习:简明入门指南/">【Machine Learning】机器学习:简明入门指南</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/14/【Machine Learning】机器学习:简明入门指南/" class="article-date">
<time datetime="2018-08-14T09:32:55.000Z" itemprop="datePublished">2018-08-14</time>
</a>
<a class="article-category-link" href="categories/Machine-Learning/">Machine Learning</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
本文是一篇转载自伯乐在线的译文,英文原文是这里:Machine Learning is Fun! — by Adam Geitgey
在听到人们谈论机器学习的时候,你是不是对它的涵义只有几个模糊的认识呢?你是不是已经厌倦了在和同事交谈时只能一直点头?让我们改变一下吧!
本指南的读者对象是所有对机器学习有求知欲但却不知道如何开头的朋友。我猜很多人已经读过了“机器学习” ——维基百科词条,倍感挫折,以为没人能给出一个高层次的解释。本文就是你们想要的东西。
本文目标在于平易近人,这意味着文中...
</p>
<p class="article-more-link">
<a href="2018/08/14/【Machine Learning】机器学习:简明入门指南/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-分布式一致性 与 CAP理论、BASE理论" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/06/分布式一致性 与 CAP理论、BASE理论/">分布式一致性 与 CAP理论、BASE理论</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/06/分布式一致性 与 CAP理论、BASE理论/" class="article-date">
<time datetime="2018-08-06T08:35:26.000Z" itemprop="datePublished">2018-08-06</time>
</a>
<a class="article-category-link" href="categories/原理/">原理</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
分布式一致性 与 CAP理论、BASE理论转载自 https://www.cnblogs.com/szlbm/p/5588543.html并稍作修改
三种场景1、火车站售票
假如说我们的终端用户是一位经常坐火车的旅行家,通常他是去车站的售票处购买车 票,然后拿着车票去检票口,再坐上火车,开始一段美好的旅行—-一切似乎都是那么和谐。想象一下,如果他选择的目的地是杭州,而某一趟开往杭州的火车 只剩下最后一张车票,可能在同一时刻,不同售票窗口的另一位乘客也购买了同一张车票。假如说售票系统没有进行...
</p>
<p class="article-more-link">
<a href="2018/08/06/分布式一致性 与 CAP理论、BASE理论/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-shuffle()打乱数组的实现" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/04/shuffle()打乱数组的实现/">shuffle()打乱数组的实现</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/04/shuffle()打乱数组的实现/" class="article-date">
<time datetime="2018-08-04T03:23:56.000Z" itemprop="datePublished">2018-08-04</time>
</a>
<a class="article-category-link" href="categories/原理实现/">原理实现</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
shuffle()打乱数组的实现在做快排时,为了保证快排nlogn,会打乱数组。然后想着怎么实现,用随机数需要一点技巧。
注意:Collection.shuffle()只能打乱集合,没法打乱数组
思路:在数组长度n内生成一个随机数r,复制arr1的r到arr2上。arr1的最后一个数组替换到r上,n–。重复进行
123456789101112131415161718192021222324252627282930313233import java.util.Random;/** * @au...
</p>
<p class="article-more-link">
<a href="2018/08/04/shuffle()打乱数组的实现/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Java动态代理原理与实现" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/01/Java动态代理原理与实现/">java动态代理原理与实现</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/01/Java动态代理原理与实现/" class="article-date">
<time datetime="2018-08-01T15:55:35.000Z" itemprop="datePublished">2018-08-01</time>
</a>
<a class="article-category-link" href="categories/技术原理/">技术原理</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
Java动态代理原理与实现特征:代理类与委托类有同样的接口,代理类主要负责为委托类预处理消息、过滤消息、把消息转发给委托类,以及事后处理消息等。
代理类与委托类之间通常会存在关联关系,一个代理类的对象与一个委托类的对象关联,代理类的对象本身并不真正实现服务,而是通过调用委托类的对象的相关方法,来提供特定的服务。(有点像dubbo?)
简单的说就是,我们在访问实际对象时,是通过代理对象来访问的,代理模式就是在访问实际对象时引入一定程度的间接性,因为这种间接性,可以附加多种用途。
静态代理1...
</p>
<p class="article-more-link">
<a href="2018/08/01/Java动态代理原理与实现/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Swwager使用及原理" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/08/01/Swwager使用及原理/">Swwager使用及原理</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/08/01/Swwager使用及原理/" class="article-date">
<time datetime="2018-08-01T09:15:35.000Z" itemprop="datePublished">2018-08-01</time>
</a>
<a class="article-category-link" href="categories/原理/">原理</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
Swwager使用及原理整理一下,Swagger的使用和原理
Spring Boot 整合Swagger官方文档与下载推荐文档
引入依赖12345678910<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2...
</p>
<p class="article-more-link">
<a href="2018/08/01/Swwager使用及原理/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Java WEB与 场景实现" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/07/26/Java WEB与 场景实现/">复习整理————Java WEB</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/07/26/Java WEB与 场景实现/" class="article-date">
<time datetime="2018-07-26T10:15:35.000Z" itemprop="datePublished">2018-07-26</time>
</a>
<a class="article-category-link" href="categories/经验总结/">经验总结</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
Java WEB与 场景实现大数据 找数,排序,计数,去重思想:MapReduce 分治bitmap位图,用小信息代表大信息。如(2-Bitmap(每个数分配2bit,00表示不存在,01表示出现一次,10表示多次,11无意义)就能代表对象是否存在位图方法:使用位图法判断整形数组是否存在重复判断集合中存在重复是常见编程任务之一,当集合中数据量比较大时我们通常希望少进行几次扫描,这时双重循环法就不可取了。
位图法比较适合于这种情况,它的做法是按照集合中最大元素max创建一个长度为max+1...
</p>
<p class="article-more-link">
<a href="2018/07/26/Java WEB与 场景实现/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-Java生产环境下性能监控与调优" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/07/26/Java生产环境下性能监控与调优/">Java生产环境下性能监控与调优</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/07/26/Java生产环境下性能监控与调优/" class="article-date">
<time datetime="2018-07-26T10:15:35.000Z" itemprop="datePublished">2018-07-26</time>
</a>
<a class="article-category-link" href="categories/经验总结/">经验总结</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
Java生产环境下性能监控与调优用于生产环境硬盘,网络,cpu问题
生产环境问题特点:不好定位,不能重启,不能修改
内存溢出如何处理
给服务器分配多少内存
对垃圾收集器 如何性能调优
CPU负载飙高
应用分配多少线程
不加log如何确定是否执行代码
JVM字节码
字符串:添加,StringBUffer i++与++i
熟练使用各种工具监控和调试工具
熟悉JVM字节码
学会自动内存回收机制,GC调优
JVM参数类型基于JDK 命令行工具 的监控JVM的参数类型标准参数:...
</p>
<p class="article-more-link">
<a href="2018/07/26/Java生产环境下性能监控与调优/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-I-O模型与多路复用" class="article article-type-post" itemscope itemprop="blogPost" >
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="2018/07/24/I-O模型与多路复用/">I/O模型与多路复用</a>
</h1>
</header>
<div class="article-meta">
<a href="2018/07/24/I-O模型与多路复用/" class="article-date">
<time datetime="2018-07-24T04:16:37.000Z" itemprop="datePublished">2018-07-24</time>
</a>
<a class="article-category-link" href="categories/原理/">原理</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p class="article-excerpt-content">
I/O模型与多路复用本文转载自这里,并加上了自身理解,感觉更透彻了
同步、异步、阻塞、非阻塞同步 & 异步同步与异步是针对多个事件(线程/进程)来说的。同步和异步关注的是消息通信机制
如果事件A需要等待事件B的完成才能完成,这种串行执行机制可以说是同步的,这是一种可靠的任务序列,要么都成功,要么都失败。
如果事件B的执行不需要依赖事件A的完成结果,这种并行的执行机制可以说是异步的。事件B不确定事件A是否真正完成,所以是不可靠的任务序列。
同步异步可以理解为多个事件的执行方式和执...
</p>
<p class="article-more-link">
<a href="2018/07/24/I-O模型与多路复用/#more">Read More</a>
</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="page/2/">2</a><a class="page-number" href="page/3/">3</a><span class="space">…</span><a class="page-number" href="page/6/">6</a><a class="extend next" rel="next" href="page/2/">Next »</a>
</nav>
</section>
</div>
<div align="center" style="margin-top: 30px;"><hr class="hr" style="margin:0px; height:3px;"></div>
<footer id="footer">
<div class="container">
<div class="row">
<p> Powered by <a href="http://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/iTimeTraveler/hexo-theme-hiker" target="_blank">Hexo-theme-hiker</a> </p>
<p id="copyRightEn">Copyright © 2017 - 2019 Jae's blog All Rights Reserved.</p>
<p class="busuanzi_uv">
UV : <span id="busuanzi_value_site_uv"></span> |
PV : <span id="busuanzi_value_site_pv"></span>
</p>
</div>
</div>
</footer>
<!-- min height -->
<script>
var wrapdiv = document.getElementById("wrap");
var contentdiv = document.getElementById("content");
var allheader = document.getElementById("allheader");
wrapdiv.style.minHeight = document.body.offsetHeight + "px";
if (allheader != null) {
contentdiv.style.minHeight = document.body.offsetHeight - allheader.offsetHeight - document.getElementById("footer").offsetHeight + "px";
} else {
contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("footer").offsetHeight + "px";
}
</script>
</div>
<!-- <nav id="mobile-nav">
<a href="index.html" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
<a href="/categories" class="mobile-nav-link">Categories</a>
<a href="/tags" class="mobile-nav-link">Tags</a>
<a href="/about" class="mobile-nav-link">About</a>
</nav> -->
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<link rel="stylesheet" href="fancybox/jquery.fancybox.css">
<script src="fancybox/jquery.fancybox.pack.js"></script>
<script src="js/scripts.js"></script>
<script src="js/home.js"></script>
<div style="display: none;">
<script src="https://s95.cnzz.com/z_stat.php?id=1260716016&web_id=1260716016" language="JavaScript"></script>
</div>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">