-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1101 lines (731 loc) · 45 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
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 lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.1.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css" integrity="sha256-jTIdiMuX/e3DGJUGwl3pKSxuc6YOuqtJYkM0bGQESA4=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">
<script class="next-config" data-name="main" type="application/json">{"hostname":"jackeggie.github.io","root":"/","images":"/images","scheme":"Muse","darkmode":false,"version":"8.10.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"Searching...","empty":"We didn't find any results for the search: ${query}","hits_time":"${hits} results found in ${time} ms","hits":"${hits} results found"}}</script><script src="/js/config.js"></script>
<meta property="og:type" content="website">
<meta property="og:title" content="蛋卷的博客">
<meta property="og:url" content="http://jackeggie.github.io/index.html">
<meta property="og:site_name" content="蛋卷的博客">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="蛋卷">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://jackeggie.github.io/">
<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":true,"isPost":false,"lang":"zh-cn","comments":"","permalink":"","path":"index.html","title":""}</script>
<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>蛋卷的博客</title>
<noscript>
<link rel="stylesheet" href="/css/noscript.css">
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
<div class="headband"></div>
<main class="main">
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="Toggle navigation bar" role="button">
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<i class="logo-line"></i>
<h1 class="site-title">蛋卷的博客</h1>
<i class="logo-line"></i>
</a>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
</div>
<div class="toggle sidebar-toggle" role="button">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner sidebar-overview-active">
<ul class="sidebar-nav">
<li class="sidebar-nav-toc">
Table of Contents
</li>
<li class="sidebar-nav-overview">
Overview
</li>
</ul>
<div class="sidebar-panel-container">
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
<p class="site-author-name" itemprop="name">蛋卷</p>
<div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">25</span>
<span class="site-state-item-name">posts</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<span class="site-state-item-count">23</span>
<span class="site-state-item-name">tags</span>
</div>
</nav>
</div>
</div>
</div>
</div>
</aside>
<div class="sidebar-dimmer"></div>
</header>
<div class="back-to-top" role="button" aria-label="Back to top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<noscript>
<div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>
<div class="main-inner index posts-expand">
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/my-2019-summary/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/my-2019-summary/" class="post-title-link" itemprop="url">蛋卷的 2019 年度总结</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2020-01-01 13:56:08" itemprop="dateCreated datePublished" datetime="2020-01-01T13:56:08+00:00">2020-01-01</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>2019 年对于蛋卷来说,是一个重要的人生转折点。在过去的这一年中,我开启了全新的生活方式。告别了父母的管束,可以和 Grace 一起支配属于我们自己的时间。由于有了时间支配上的自由,我在人生的不同方面都有了新的发展。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/my-2019-summary/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/a-bird-s-eye-view-of-go/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/a-bird-s-eye-view-of-go/" class="post-title-link" itemprop="url">【译】Go 语言概览</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-07-25 18:49:21" itemprop="dateCreated datePublished" datetime="2019-07-25T18:49:21+00:00">2019-07-25</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<blockquote>
<ul>
<li>原文地址:<a target="_blank" rel="noopener" href="https://blog.merovius.de/2019/06/12/birdseye-go.html">A bird’s eye view of Go</a></li>
<li>原文作者:<a target="_blank" rel="noopener" href="https://blog.merovius.de/">Axel Wagner</a></li>
<li>译文出自:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner">掘金翻译计划</a></li>
<li>本文永久链接:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/birdseye-go.md">https://github.com/xitu/gold-miner/blob/master/TODO1/birdseye-go.md</a></li>
<li>译者:<a target="_blank" rel="noopener" href="https://github.com/JackEggie">JackEggie</a></li>
<li>校对者:<a target="_blank" rel="noopener" href="https://github.com/40m41h42t">40m41h42t</a>, <a target="_blank" rel="noopener" href="https://github.com/JalanJiang">JalanJiang</a></li>
</ul>
</blockquote>
<h1 id="Go-语言概览"><a href="#Go-语言概览" class="headerlink" title="Go 语言概览"></a>Go 语言概览</h1><p><strong>本文摘要:本文非常笼统地总结了 Go 语言的定义、生态系统和实现方式,也尽力给出了与不同的需求所对应的参考文档,详情参见本文末尾。</strong></p>
<p>每当我们说起“Go 语言”的时候,可能会因为场景的不同聊到很多完全不同的东西。因此,我尝试着对 Go 语言和其生态系统做一个概述,并在各部分内容中都列出相关的文档(这可能有点像是大杂烩,其中还包含了我最近实际遇到的许多问题)。让我们开始吧:</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/a-bird-s-eye-view-of-go/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/binary-form-of-int-in-java/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/binary-form-of-int-in-java/" class="post-title-link" itemprop="url">Java 中 int 类型的二进制表示</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-07-21 17:55:51" itemprop="dateCreated datePublished" datetime="2019-07-21T17:55:51+00:00">2019-07-21</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="原理"><a href="#原理" class="headerlink" title="原理"></a>原理</h2><p>可通过 Integer.MAX_VALUE 和 Integer.MIN_VALUE 查看 int 类型的最大和最小值,分别为 0x7fffffff(2^31-1) 和 0x80000000(2^31),其中 0 即为 0,正数的最高位为 0,负数的最高位为 1。</p>
<p>Java 中负数的表示方式为正数的补码(例:原码 00,反码 11,补码 00,补码的计算方式为反码加一,此处丢弃溢出位)。采用这种方式的原因是 0 的交叉(zero crossing)问题,即 0 和 -0 需要用同一种方式表示,见补码计算例子。如果采用反码表示负数的话,0 就会有两种表示:所有位全为 0、所有位全为 1。</p>
<p>因此 Java 中 0 的所有位全为 0,1 为 0000…0001,-1 的所有位全为 1,Integer.MAX_VALUE 为 0111…1111,Integer.MIN_VALUE 为 1000…0000。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/binary-form-of-int-in-java/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/what-we-ve-learned-about-hiring-engineering-managers/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/what-we-ve-learned-about-hiring-engineering-managers/" class="post-title-link" itemprop="url">【译】我们从招聘技术经理的过程中学到了什么</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-05-16 13:32:55" itemprop="dateCreated datePublished" datetime="2019-05-16T13:32:55+00:00">2019-05-16</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<blockquote>
<ul>
<li>原文地址:<a target="_blank" rel="noopener" href="https://circleci.com/blog/what-we-ve-learned-about-hiring-engineering-managers/?utm_source=cooperpress&utm_medium=newsletter&utm_campaign=feb19&utm_content=javascript-weekly">What we’ve learned about hiring engineering managers</a></li>
<li>原文作者:<a target="_blank" rel="noopener" href="https://twitter.com/lrnrd">Lena Reinhard</a></li>
<li>译文出自:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner">掘金翻译计划</a></li>
<li>本文永久链接:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/what-we-ve-learned-about-hiring-engineering-managers.md">https://github.com/xitu/gold-miner/blob/master/TODO1/what-we-ve-learned-about-hiring-engineering-managers.md</a></li>
<li>译者:<a target="_blank" rel="noopener" href="https://github.com/JackEggie">JackEggie</a></li>
<li>校对者:<a target="_blank" rel="noopener" href="https://github.com/portandbridge">portandbridge</a>, <a target="_blank" rel="noopener" href="https://github.com/Baddyo">Baddyo</a></li>
</ul>
</blockquote>
<h1 id="我们从招聘技术经理的过程中学到了什么"><a href="#我们从招聘技术经理的过程中学到了什么" class="headerlink" title="我们从招聘技术经理的过程中学到了什么"></a>我们从招聘技术经理的过程中学到了什么</h1><p><img src="https://circleci.com/blog/media/EngineeringManagers.png"></p>
<p>在过去的一年里,我们对于理解负责 CircleCI 的技术经理所需的优秀品质有了重要的转变,并从中了解到我们作为一个组织的需求和价值观。我们大幅改变了招聘流程,通过这些努力,我们聘用了一些出色的人才,使我们技术管理团队的人数翻了一番。现在,我们想和大家分享这些经验。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/what-we-ve-learned-about-hiring-engineering-managers/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/distributed-transactions-in-spring-with-and-without-xa-part-1/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/distributed-transactions-in-spring-with-and-without-xa-part-1/" class="post-title-link" itemprop="url">【译】Spring 的分布式事务实现 — 使用和不使用 XA — 第一部分</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-05-04 10:24:09" itemprop="dateCreated datePublished" datetime="2019-05-04T10:24:09+00:00">2019-05-04</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<blockquote>
<ul>
<li>原文地址:<a target="_blank" rel="noopener" href="https://www.javaworld.com/article/2077963/distributed-transactions-in-spring--with-and-without-xa.html">Distributed transactions in Spring, with and without XA - Part I</a></li>
<li>原文作者:<a href="mailto:[email protected]">David Syer</a></li>
<li>译文出自:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner">掘金翻译计划</a></li>
<li>本文永久链接:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/distributed-transactions-in-spring-with-and-without-xa-part-1.md">https://github.com/xitu/gold-miner/blob/master/TODO1/distributed-transactions-in-spring-with-and-without-xa-part-1.md</a></li>
<li>译者:<a target="_blank" rel="noopener" href="https://github.com/JackEggie">JackEggie</a></li>
<li>校对者:<a target="_blank" rel="noopener" href="https://github.com/fireairforce">fireairforce</a></li>
</ul>
</blockquote>
<h1 id="Spring-的分布式事务实现-—-使用和不使用-XA-—-第一部分"><a href="#Spring-的分布式事务实现-—-使用和不使用-XA-—-第一部分" class="headerlink" title="Spring 的分布式事务实现 — 使用和不使用 XA — 第一部分"></a>Spring 的分布式事务实现 — 使用和不使用 XA — 第一部分</h1><blockquote>
<ul>
<li><a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/distributed-transactions-in-spring-with-and-without-xa-part-1.md">Spring 的分布式事务实现 — 使用和不使用 XA — 第一部分</a></li>
<li><a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/distributed-transactions-in-spring-with-and-without-xa-part-2.md">Spring 的分布式事务实现 — 使用和不使用 XA — 第二部分</a></li>
<li><a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/distributed-transactions-in-spring-with-and-without-xa-part-3.md">Spring 的分布式事务实现 — 使用和不使用 XA — 第三部分</a></li>
</ul>
</blockquote>
<blockquote>
<p>Spring 的 7 种事务处理模式</p>
</blockquote>
<p>虽然在 Spring 中分布式事务通常使用 Java Transaction API 和 XA 协议实现,但也有其他的实现方式。最好的实现方式取决于应用程序所使用资源的类型,以及你是否愿意在性能、安全性、可靠性和数据完整性之间做出权衡。针对这个 Java 中的典型问题,Spring 的开发者 David Syer 将会介绍 7 种 Spring 分布式应用的实现方式,其中 3 种实现使用了 XA 协议,另外 4 种使用了其他的实现方式。(中级知识点)</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/distributed-transactions-in-spring-with-and-without-xa-part-1/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/my-first-psychological-counseling/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/my-first-psychological-counseling/" class="post-title-link" itemprop="url">聊聊我的第一次心理咨询体验</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-04-22 13:01:04" itemprop="dateCreated datePublished" datetime="2019-04-22T13:01:04+00:00">2019-04-22</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>从去年开始筹备婚礼之后,自己的情绪就变得逐渐“难以控制”起来。在以前,即使偶尔和父母有矛盾,也仅仅只是不开心,很少有能够影响好几天的情况发生。而现在,一旦因为某些事情不顺心,可以被悲观的情绪影响好多天。被消极的想法支配的感觉真的很不好。</p>
<p>在被悲观情绪支配的情况愈演愈烈之后,我极度想要做出一些改变。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/my-first-psychological-counseling/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/your-first-cli-tool-with-rust/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/your-first-cli-tool-with-rust/" class="post-title-link" itemprop="url">【译】用 Rust 打造你的第一个命令行工具</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-04-14 10:40:13" itemprop="dateCreated datePublished" datetime="2019-04-14T10:40:13+00:00">2019-04-14</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<blockquote>
<ul>
<li>原文地址:<a target="_blank" rel="noopener" href="https://www.demainilpleut.fr/your-first-cli-tool-with-rust/">Your first CLI tool with Rust</a></li>
<li>原文作者:<a target="_blank" rel="noopener" href="https://www.demainilpleut.fr/authors/jveillet">Jérémie Veillet</a></li>
<li>译文出自:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner">掘金翻译计划</a></li>
<li>本文永久链接:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/your-first-cli-tool-with-rust.md">https://github.com/xitu/gold-miner/blob/master/TODO1/your-first-cli-tool-with-rust.md</a></li>
<li>译者:<a target="_blank" rel="noopener" href="https://github.com/JackEggie">JackEggie</a></li>
<li>校对者:<a target="_blank" rel="noopener" href="https://github.com/TloveYing">TloveYing</a></li>
</ul>
</blockquote>
<h1 id="用-Rust-打造你的第一个命令行工具"><a href="#用-Rust-打造你的第一个命令行工具" class="headerlink" title="用 Rust 打造你的第一个命令行工具"></a>用 Rust 打造你的第一个命令行工具</h1><p>在精彩的编程世界里,你可能听说过这种名为 Rust 的新语言。它是一种开源的系统级编程语言。它专注于性能、内存安全和并行性。你可以像 C/C++ 那样用它编写底层应用程序。</p>
<p>你可能已经在 <a target="_blank" rel="noopener" href="https://webassembly.org/">Web Assembly</a> 网站上见到过它了。Rust 能够编译 WASM 应用程序,你可以在 <a target="_blank" rel="noopener" href="https://webassembly.org/docs/use-cases/">Web Assembly FAQ</a> 上找到很多例子。它也被认为是 <a target="_blank" rel="noopener" href="https://servo.org/">servo</a> 的基石,servo 是一个在 Firefox 中实现的高性能浏览器引擎。</p>
<p>这可能会让你望而却步,但这不是我们要在这里讨论的内容。我们将介绍如何使用它构建命令行工具,而你可能会从中发现很多有意思的东西。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/your-first-cli-tool-with-rust/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/how-to-build-your-own-neural-network-from-scratch-in-python/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/how-to-build-your-own-neural-network-from-scratch-in-python/" class="post-title-link" itemprop="url">【译】如何用 Python 从零开始构建你自己的神经网络</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2019-03-02 10:34:00" itemprop="dateCreated datePublished" datetime="2019-03-02T10:34:00+00:00">2019-03-02</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<blockquote>
<ul>
<li>原文地址:<a target="_blank" rel="noopener" href="https://towardsdatascience.com/how-to-build-your-own-neural-network-from-scratch-in-python-68998a08e4f6">How to build your own Neural Network from scratch in Python</a></li>
<li>原文作者:<a target="_blank" rel="noopener" href="https://towardsdatascience.com/@jamesloyys">James Loy</a></li>
<li>译文出自:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner">掘金翻译计划</a></li>
<li>本文永久链接:<a target="_blank" rel="noopener" href="https://github.com/xitu/gold-miner/blob/master/TODO1/how-to-build-your-own-neural-network-from-scratch-in-python.md">https://github.com/xitu/gold-miner/blob/master/TODO1/how-to-build-your-own-neural-network-from-scratch-in-python.md</a></li>
<li>译者:<a target="_blank" rel="noopener" href="https://github.com/JackEggie">JackEggie</a></li>
<li>校对者:<a target="_blank" rel="noopener" href="https://github.com/lsvih">lsvih</a>, <a target="_blank" rel="noopener" href="https://github.com/xionglong58">xionglong58</a></li>
</ul>
</blockquote>
<h1 id="如何用-Python-从零开始构建你自己的神经网络"><a href="#如何用-Python-从零开始构建你自己的神经网络" class="headerlink" title="如何用 Python 从零开始构建你自己的神经网络"></a>如何用 Python 从零开始构建你自己的神经网络</h1><blockquote>
<p>一个帮助初学者理解深度神经网络内部工作机制的指南</p>
</blockquote>
<p><strong>写作动机:</strong> 为了使我自己可以更好地理解深度学习,我决定在没有像 TensorFlow 这样的深度学习库的情况下,从零开始构建一个神经网络。我相信,理解神经网络的内部工作原理对任何有追求的数据科学家来说都很重要。</p>
<p>这篇文章包含了我所学到的东西,希望对你们也有用。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/how-to-build-your-own-neural-network-from-scratch-in-python/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/talk-about-double-locking-problem/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/talk-about-double-locking-problem/" class="post-title-link" itemprop="url">Java 中的双重检查锁(Double-Checked Locking)的问题</a>
</h2>
<div class="post-meta-container">
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">Posted on</span>
<time title="Created: 2018-10-08 13:22:54" itemprop="dateCreated datePublished" datetime="2018-10-08T13:22:54+00:00">2018-10-08</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: 2022-03-17 03:29:44" itemprop="dateModified" datetime="2022-03-17T03:29:44+00:00">2022-03-17</time>
</span>
</div>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h3 id="Java-中的双重检查锁"><a href="#Java-中的双重检查锁" class="headerlink" title="Java 中的双重检查锁"></a>Java 中的双重检查锁</h3><p>不知道从什么时候开始,双重锁检机制开始在 Java 程序员中流传开来,并被一些不成熟的程序员所称道。然而,双重锁检机制无论在 Java 的什么年代,都是一个不折不扣的代码陷阱。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// double-checked-locking - don't do this!</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">private</span> <span class="keyword">static</span> <span class="type">Something</span> <span class="variable">instance</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> Something <span class="title function_">getInstance</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">if</span> (instance == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">synchronized</span> (<span class="built_in">this</span>) {</span><br><span class="line"> <span class="keyword">if</span> (instance == <span class="literal">null</span>)</span><br><span class="line"> instance = <span class="keyword">new</span> <span class="title class_">Something</span>();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> instance;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<p>这段代码粗看上去使用了很“神奇”的 Java 多线程技巧,“巧妙”利用重复地两次检查对象是否为空来避免了大部分情况下 synchronized 关键字的性能消耗。</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/talk-about-double-locking-problem/#more" rel="contents">
Read more »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<div class="post-block">
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="">
<link itemprop="mainEntityOfPage" href="http://jackeggie.github.io/intro-to-search-engine/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="蛋卷">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="蛋卷的博客">
<meta itemprop="description" content="">
</span>
<span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="name" content="undefined | 蛋卷的博客">
<meta itemprop="description" content="">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">