-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
1716 lines (732 loc) · 66.9 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 class="theme-next pisces use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />
<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />
<meta name="keywords" content="Hexo, NexT" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.0" />
<meta name="description" content="Skadoosh!">
<meta property="og:type" content="website">
<meta property="og:title" content="不厌其烦">
<meta property="og:url" content="http://blog.yiyu.me/index.html">
<meta property="og:site_name" content="不厌其烦">
<meta property="og:description" content="Skadoosh!">
<meta property="og:locale" content="zh-Hans">
<meta name="twitter:card" content="summary">
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Pisces',
sidebar: {"position":"left","display":"post"},
fancybox: true,
motion: true,
duoshuo: {
userId: '0',
author: '博主'
},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<link rel="canonical" href="http://blog.yiyu.me/"/>
<title> 不厌其烦 </title>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container one-collumn sidebar-position-left
page-home
">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">不厌其烦</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle"></p>
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br />
首页
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
归档
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags" rel="section">
<i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
标签
</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<section id="posts" class="posts-expand">
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<link itemprop="mainEntityOfPage" href="http://blog.yiyu.me/2021/01/01/2020-year-end/">
<span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="erain">
<meta itemprop="description" content="">
<meta itemprop="image" content="https://c3.staticflickr.com/1/324/31155363554_68e1071037.jpg">
</span>
<span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="不厌其烦">
<span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<img style="display:none;" itemprop="url image" alt="不厌其烦" src="">
</span>
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2021/01/01/2020-year-end/" itemprop="url">
2020年终总结
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="Post created" itemprop="dateCreated datePublished" datetime="2021-01-01T10:52:19-05:00">
2021-01-01
</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><img src="https://storage.googleapis.com/11-technology-static/2020-year-end.jpg" alt="2020 Year End"></p>
<p>2020年就这样过去了。</p>
<p>在1990年代还在上小学的我会在作文里幻想,到2020年我应该被机器人助手叫醒,然后坐着小型私人智能飞船去火星上班。真实的2020年没有机器人也没有飞船,只有全世界几十亿人类全都被关在家里刷手机看社交网络的各种负面新闻觉得世界就要毁灭了。</p>
<p>但回想起来,2020年还算是善待了我(相比起对待其他人而言)。所以我不准备抱怨它。</p>
<h3 id="生活"><a href="#生活" class="headerlink" title="生活"></a><center>生活</center></h3><p>2020年生活的关键词对于绝大多数的人,尤其是身处海外的人,来说是因为COVID-19的“隔离”。对我来说却是“家人”。</p>
<p>我的父母19年末来到加拿大看望我,原本的计划是20年2月回国。结果因为国内COVID-19的爆发,“太危险了!”,所以我们毅然决然的取消了回国的机票(事实上,航司几乎在同时也决定了取消航班)。结果等到国内的疫情得到有效控制,和我们一样身处海外的中国人反而变成了危险源而很难回去了…</p>
<p>所以,在我2004年离开家门去上大学以后,在2020年又一次与父母生活在了一起一整年。只不过这次从三口之家变成了四口之家,各自的身份角色也发生了变化——父母终于不再是“家长”,而只是“父母”。两代人住在一起总会有习惯和理念的不同,但能借着这样一个奇怪的机会长时间陪伴彼此总是一件值得感恩的事情。在秋天的时候,加拿大疫情稍缓,我们会每周随机找一个附近的城市开车过去,准备吃的喝的,找一些人少的地方逛上一整天,其乐融融。</p>
<p>对生活的其它方面,“隔离”其实并不使我太难受。我在大学期间在南宁和北京都分别住院过一次,而回想起来住院的那段时间都是我觉得最平静的时候。这次因为疫情的隔离虽然不一样,但也有类似的地方,希望多年后想起来的感受也是同样是平静。</p>
<h3 id="工作"><a href="#工作" class="headerlink" title="工作"></a><center>工作</center></h3><p>2020年是我在Google工作的第四年,也是我开始工作后的第十年。如我之前所说,Google是我到目前为止唯一一家在工作一年之后完全没有“是不是该换家公司啦”感觉的公司,也是第一家让我觉得“在这里干到退休也不错”的公司。</p>
<p>今年的工作出乎意外的顺利,也出乎意外的忙,当然这两者之间也许有因果关系。工作内容还是在Kubernetes这个我最喜欢的技术领域,只不过侧重点从之前的Multi-Tenancy(多租户)转到了Observability(可观测性)以及Multi-/Hybrid-Cloud(多云托管/混合云)。因为Multi-/Hybrid-Cloud是云计算的新形态,因此Observability的问题就变成了格外突出;另一方面Observability是一个相对较“软”的技术方向,所以如何在技术上给自己和团队找到一些有挑战、有影响力、成体系的项目就变得格外重要。</p>
<p>工作方法上,我越来越体会到Opinionated的好处。Opinionated中文并不好翻译,通常译作“自以为是的”,实际的意思是“有强烈倾向性意见的”。这是因为,在很多时候做决策的时候并没有最优解——不光自己没有最优解,别的甚至是高级别的人也不会有最优解,所以就会出现几个高级别的人彼此之间给出的决策建议是相反的情况。自己作为决策的实际执行者其实是最了解问题细节的人,只有自己Opinionated并且敢于做决策,才有最大的概率把决策作对。反过来,A Wrong Decision Is Better Than Indecision(错误的决定优于没有决定),“快速试错”也是产品迭代以及自身成长的好方法之一。</p>
<p>本来想在入职纪念日那天写一篇博客“Google四年”,结果拖延症一下子就到了现在。让我们拭目以待那篇博客会出现还是会变成“Google五年”。:smile:</p>
<h3 id="艺术家"><a href="#艺术家" class="headerlink" title="艺术家"></a><center>艺术家</center></h3><p>这一节的标题是“艺术家”,其实是今年我对自身定位的目标——所谓艺术家,是审视自身的独特性并且重视内容输出的人。我想更多的输出内容。</p>
<p>缘起是有一次看到小唐老师在群里闲聊的时候说“我觉得这世界上没有第二个人能和我一样弹吉他”,心里非常羡慕。那句话的意思当然不是小唐是世界第一吉他手——虽然小唐弹得也非常好——那句话的意思是他在“弹吉他”这个事情上的自身的独特性。我又想起了自己在各种社交网络的影响下,变得越来越习惯消费碎片内容而非输出内容。消费碎片只会让自身变成碎片,人生只有几十年,我不想变成碎片,我想变成一个哪怕微不足道但独特的“我”。</p>
<p>今年开启了两个视频内容项目。一个是<a href="https://weibo.com/u/1082251714?tabtype=video&layerid=4587816065964701" target="_blank" rel="noopener">#程序员问程序员</a>系列,这是一个程序员的访谈节目。它起源于我在每天工作中要开大量的视频会议,于是我就想着找一些不算熟悉的程序员小伙伴能够进行线上闲聊。我是一个特别爱说话的人,在做节目的过程中要让自己学会更多的听人说话,这是一个意想不到的事情。另一个是更私人的<a href="https://weibo.com/u/1082251714?tabtype=video&layerid=4588367250988274" target="_blank" rel="noopener">#同一首歌</a>系列,主要分享我一些音乐视频,自己作为一个吉他手和歌手,哪怕是三流的,也要有自己的声音吧。</p>
<h3 id="愿望"><a href="#愿望" class="headerlink" title="愿望"></a><center>愿望</center></h3><p>如果2020年是人的话,它肯定过得很委屈:“为什么都在赶我走?”事实上,日历上的时间从2020年12月31日变成2021年1月1日,世界仍然按照它固有的节奏运转——疫情依然严重,居家隔离不知道还要维持多久…</p>
<p>所以,我的2021新年愿望是:希望在2021年能离开家门,不用任何担心地坐一次飞机去某个地方吧。这个新年愿望换句话说就是:世界和平。</p>
<p><img src="https://storage.googleapis.com/11-technology-static/2020-year-end-3.jpg" alt="2020 Year End"></p>
</div>
<div>
</div>
<div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<link itemprop="mainEntityOfPage" href="http://blog.yiyu.me/2020/09/25/remember-lao-luo/">
<span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="erain">
<meta itemprop="description" content="">
<meta itemprop="image" content="https://c3.staticflickr.com/1/324/31155363554_68e1071037.jpg">
</span>
<span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="不厌其烦">
<span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<img style="display:none;" itemprop="url image" alt="不厌其烦" src="">
</span>
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2020/09/25/remember-lao-luo/" itemprop="url">
纪念我的老师罗卫国
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="Post created" itemprop="dateCreated datePublished" datetime="2020-09-25T21:04:38-04:00">
2020-09-25
</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>我还是想叫他老罗。</p>
<p>老罗走了,2020年9月24日,年仅58岁。对很多人,他是罗校长、罗书记。对于我和柳州八中98(10)班的同学来说,他是老罗,我们的班主任和数学老师老罗,我们的老罗。</p>
<p>久未有人发言的初中班级群里突然炸了锅,26号周六追悼会,大家都张罗着要给老罗告别。有一些同学在柳州或者能回到柳州参加追悼会,给花店打电话定花圈,还没开口,那边就问:“是给罗老师的吧?”</p>
<p>大家又讨论给老罗什么挽联。在几条深情而又中正的提议以后,其中一个说:“完了,我想的非常不正经…主要是,我觉得正经八百的,不是他。”然后画风就变了。</p>
<p>“全世界最洒脱不羁的美男子走了,希望下辈子还做你的学生。——致最好的老师与挚友”</p>
<p>“最潇洒不羁的美男子走了,今生音容难觅;最真诚恳挚的师生情仍然,来世还望赐教”——兼顾了严肃和活泼?</p>
<p>“深切怀念我们最敬爱的良师益友‘老罗’,师恩如海,永生难忘。”</p>
<p>……</p>
<p>我并记不清老罗教过什么具体的知识或者人生道理了。隐隐约约记得他说过数学就是底下只有几条最基本的公理,上面高深的知识都可以从这最基本的几条一层一层推导出来。他的神情和样子却栩栩如生:高高大大,永远带着和蔼的微笑,循循善诱的样子。班里的同学有时当着他的面一不小心就把“罗老师”叫成“老罗”,他听后会哈哈一笑。而我的名字他的发音老是不标准,总是把我叫做“易易”:“易易,你来说说这道题。”</p>
<p>我心里还有老罗的一个片段。时间应该是2000年我们刚初二升初三的那个暑假,他在一个新装修的电教室给我们讲了一些奥数。然后老罗突然就把电教室的灯光全部关掉了,打开了投影仪,然后给我们播放了一场现场演奏——The Eagles乐队1992年那场永恒的不插电经典“Hotel California”。当年的我并不知道这个乐队和这首歌,但马上注意到教室里还有两个在当年听来音质堪称完美的高保真音箱。在黑漆漆的教室中,老罗和我们坐在一起,沉默无言,很快大家都沉浸到优美的木吉他和苍凉又动听的歌声中了。一曲终了,我心里充满了一种异样的感动。</p>
<p>2011年2月,我在新加坡看到了Eagles的演唱会,开场就又听到这首歌,我心中闪过一个念头“要是老罗能在这个现场听到这首歌该有多好啊!”今天,我又听着这首歌,想写下一点点关于老罗的这个也许只有我还记得的片段。</p>
<p>电影《寻梦环游记(Coco)》说人的一生会死掉三次,第一次是心脏停止,第二次是人们出席葬礼,第三次是当世界上最后一个记得你的人把你忘记——这时人才真正死去。愿我这篇微不足道的只言片语,能变成这个数字时代里永远不会忘记老罗的一点点数据。</p>
<p>老罗,再见。</p>
</div>
<div>
</div>
<div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<link itemprop="mainEntityOfPage" href="http://blog.yiyu.me/2020/03/28/world-peace/">
<span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="erain">
<meta itemprop="description" content="">
<meta itemprop="image" content="https://c3.staticflickr.com/1/324/31155363554_68e1071037.jpg">
</span>
<span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="不厌其烦">
<span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<img style="display:none;" itemprop="url image" alt="不厌其烦" src="">
</span>
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2020/03/28/world-peace/" itemprop="url">
山海
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="Post created" itemprop="dateCreated datePublished" datetime="2020-03-28T15:04:22-04:00">
2020-03-28
</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p><img src="https://storage.googleapis.com/11-technology-static/sea-mountain.JPG" alt="山海"></p>
<h3 id="壹"><a href="#壹" class="headerlink" title="壹"></a><center>壹</center></h3><p>小时候我一直对“外国人”感到既好奇又陌生,总觉得那是一群说着英语、金发碧眼、生活优越的人。开始学习英语之后对于这样的印象甚至是加深了,如果遇到有“外教”到访的课堂,就支支吾吾躲在人群里不敢说话。</p>
<p>真正开始逐渐改变这样的印象,是到了北京之后,在大学里面不务正业搞音乐。一次在清华独峰书屋办演出,来了一只外国人乐队,演出结束之后,老板请大家吃Pizza,老外纷纷上手一人拿一块张嘴大啃。我有点疑惑:Pizza就应该这样吃么?老外回答,那当然,用刀叉吃Pizza,“We call it ZhuangBi.(我们把那叫“装逼”)”于是大家哈哈大笑。</p>
<p>在毕业前最后一年终于和认识很久的华山熟络起来了。和他一块儿夜里绕着紫操跑步的时候,听他用七八种语言唱“国际歌”,说起各个语言版本的区别,第一次对“语言”而非“外语”心向往之。他还带着我去后海参加了一个老外的Party,哪国都有的一大群人在一个酒吧吃饭喝酒唱歌,我还上台唱了几首,记不得唱了什么了,只记得那天夜里骑车经过的新街口。</p>
<p>有一天华山让我帮他弹吉他伴奏一首俄语歌曲。原来2009年是“中国俄语年”,俄国大使馆在清华举办了一场庆祝活动。我们上台,表演,台下响起了掌声。华山这个时候对着话筒说了一句:“Общение приносит мир,交流带来和平。”</p>
<h3 id="貳"><a href="#貳" class="headerlink" title="貳"></a><center>貳</center></h3><p>离开北京之后,走过的地方逐渐变多了起来。新加坡住了5年多,加拿大西部的温哥华住了2年,如今已经在加拿大东部的滑铁卢住了超过3年。而仅仅在Google的3年多,我就已经去过了Google在不同国家和地区的15个不同办公室。年轻时候向往的看一看更大的世界的愿望也得到了满足——无论是陈绮贞的“旅行的意义”,还是许巍的“曾梦想仗剑走天涯,看一看世界的繁华”。</p>
<p>随着走过的地方越来越多,英语也渐渐从我的“外语”变成了我的“语言”。“老外”这个大而朦胧的概念也逐渐瓦解,变成一个又一个具体的国家和地区的一个又一个具体的人。</p>
<p>新加坡隔壁实验室的印度师兄,带我们去吃任意给钱的印度咖喱自助餐,并且和我讲了半天印度教里的孙悟空——是一只拿着巨锤的猴子王。Google同一个组的约旦大哥,绘声绘色的说起他老爸买了一辆小轿车,为了省钱只买了一侧的后视镜……我才第一次知道阿拉伯除了不差钱的土豪也有抠门的普通人。在Amazon时候有一天我看了一个纪录片之后激动的跑去问南非小哥:“你认识Rodriguez么?”他高兴的回答:“当然啦,Sugarman嘛!”那一刻我是如此的由衷的感到开心!(纪录片是《Searching for Sugar Man》,强烈推荐。)</p>
<p>王朔在一篇小说里说过:“没有人,没有人民,只有张三、李四、王二麻子。”说的正是这样笼统概念的瓦解和变成具象的过程。但另一方面,在国内的的时候,在不同的城市里都会有相似感,脑海里就会出现一句大白话——“我的祖国到处都一样。”出国之后,国内的相似感被异国情调所取代,但脑海里又忍不住出现另外一句大白话——“世界上还是好人多啊。”</p>
<h3 id="叁"><a href="#叁" class="headerlink" title="叁"></a><center>叁</center></h3><p>2020年新冠(COVID19)袭击全球。作为“中国人打上半场,外国人打下半场,海外华人打全场”里面“打全场”的一员,我的心情几乎就没有放松过。时至今日,各国该采取的措施也差不多该上了,大家宅在家里不出门病毒也不至于找上门来。</p>
<p>然而有另外一种不是病毒的东西却让我心情更加沉重,就是那些宣扬国内外对立和割裂的信息,而且往往这些信息都表现为极为劣质的公众号文章——什么外国间谍在地铁里抹口水投毒啦,什么外国死的人太多就地焚烧啦。最让我震惊的往往不是这些信息本身,而是这些信息会因为有人的相信而流传甚广。甚至,我在国内家人和朋友会给我发消息,让我尽早买枪保护自己……</p>
<p>逐条反驳这些荒谬的信息是很低效的——在逻辑学里面从一个假的前提里什么都能推理出来,你反驳了这一条还会有下一条。我也很仅仅只是想和每个家人和朋友说:“我们这里一切都好,大家都宅家等待着疫情尽快过去。和你们一个月以前做的一模一样。”但又会收到回复:“但是我看到一个公众号说啊你们那边……”</p>
<p>于是我写下这篇文章,不吐不快。没有外国,没有外国人,只有一个又一个和你、我一样活生生有血有肉有喜怒哀乐的人。并不是有坏人,但是绝大多数都是优缺点的好人。我们并没有什么不同。</p>
<p>就像,看到那片山和海,你会感到由衷的开心。就像,总有一天,你会融入在人群中间,去看同样的一片山和海。</p>
</div>
<div>
</div>
<div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<link itemprop="mainEntityOfPage" href="http://blog.yiyu.me/2019/03/31/vmware-vm-settings/">
<span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="erain">
<meta itemprop="description" content="">
<meta itemprop="image" content="https://c3.staticflickr.com/1/324/31155363554_68e1071037.jpg">
</span>
<span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="不厌其烦">
<span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<img style="display:none;" itemprop="url image" alt="不厌其烦" src="">
</span>
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2019/03/31/vmware-vm-settings/" itemprop="url">
VMWare虚拟机设置
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="Post created" itemprop="dateCreated datePublished" datetime="2019-03-31T08:10:14-04:00">
2019-03-31
</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>因为不想要有多个不同的开发环境,所以这么多年我的主力开发环境一直是Mac。但是有很多情况下又必须使用Linux,比如一些Linux Only的软件的开发比如<a href="https://github.com/containerd/containerd" target="_blank" rel="noopener">Containerd</a>,或者需要搭建一个K8s集群。VMWare虚拟机在这种情况下就是很方便的选择,这篇博客就记录一下一些常用的VMWare虚拟机设置。假定Host是macOS,VMWare版本是VMWare Fusion Pro。</p>
<h3 id="静态IP设置"><a href="#静态IP设置" class="headerlink" title="静态IP设置"></a>静态IP设置</h3><p>VMWare默认是通过DHCP动态分配IP,这就造成了假设如果我们想要假设一个K8s集群,Master和Nodes没办法得到一个固定的IP进行通信。</p>
<p>想要设定固定IP也很容易,只要修改一个虚拟网卡的DHCP设置就行了。这个方法来源于<a href="https://willwarren.com/2015/04/02/set-static-ip-address-in-vmware-fusion-7/" target="_blank" rel="noopener">Set a Static IP Address in VMware Fusion 7</a></p>
<p>首先获得一个虚拟机网卡的MAC地址,如下图所示:</p>
<p><img src="https://willwarren.com/images/2015/04/Screenshot%202015-04-03%2010.55.45.png" alt="VMWare-VM-Mac-Address"></p>
<p>然后,在VMWare的默认<code>vmnet8</code>网卡的DHCP设置里增加针对这个MAC地址的静态IP设置。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"> /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf</span></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line"></span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line">host vm0 {</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line"> hardware ethernet 00:0C:29:72:88:46;</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">5</span></pre></td><td class="code"><pre><span class="line"> fixed-address 172.16.76.130; # IPs available are 172.16.76.128~254</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">6</span></pre></td><td class="code"><pre><span class="line">}</span></pre></td></tr></table></figure>
<p>重启虚拟机和VMWare即可。</p>
<h3 id="Linux与Host共享目录"><a href="#Linux与Host共享目录" class="headerlink" title="Linux与Host共享目录"></a>Linux与Host共享目录</h3><p>如果是有图形界面的Linux,装上VMWare Tools之后就可以看到贡献的目录了。</p>
<p>对于没有图形界面的Linux:</p>
<ol>
<li><a href="https://docs.vmware.com/en/VMware-Workstation-Pro/15.0/com.vmware.ws.using.doc/GUID-08BB9465-D40A-4E16-9E15-8C016CC8166F.html" target="_blank" rel="noopener">命令行安装VMWare Tools</a>。</li>
<li><p>在VMWare中共享目录<br><img src="https://storage.googleapis.com/11-technology-static/Screen%20Shot%202019-03-31%20at%208.56.44%20AM.png" alt="vmware-fusion-share-folder"></p>
</li>
<li><p>在<code>/etc/fstab</code>中增加相应的mount point:</p>
</li>
</ol>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">.host:/src /home/yiyu/go/src fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0</span></pre></td></tr></table></figure>
</div>
<div>
</div>
<div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<link itemprop="mainEntityOfPage" href="http://blog.yiyu.me/2019/03/29/hello-2019/">
<span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="erain">
<meta itemprop="description" content="">
<meta itemprop="image" content="https://c3.staticflickr.com/1/324/31155363554_68e1071037.jpg">
</span>
<span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="不厌其烦">
<span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<img style="display:none;" itemprop="url image" alt="不厌其烦" src="">
</span>
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2019/03/29/hello-2019/" itemprop="url">
Hello World 2019
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="Post created" itemprop="dateCreated datePublished" datetime="2019-03-29T09:35:00-04:00">
2019-03-29
</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>很久不来,博客都快长草了。</p>
<p>还发现前一段因为github免费了private repo,我把存放博客的repo改成了private,结果现在无法访问了…尝试一下推一个新的commit吧看看能不能恢复,如果不能的话再想办法。</p>
<p>今年是准备开始一个新的博客系列,生活平静而安逸没有什么可以写的,准备写写每周的技术总结。在公司里需要写的周总结叫<code>snippet</code>,博客这个系列也沿用这个名字吧。</p>
</div>
<div>
</div>
<div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<link itemprop="mainEntityOfPage" href="http://blog.yiyu.me/2018/01/28/blog-work-flow/">
<span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="erain">
<meta itemprop="description" content="">
<meta itemprop="image" content="https://c3.staticflickr.com/1/324/31155363554_68e1071037.jpg">
</span>
<span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="不厌其烦">
<span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
<img style="display:none;" itemprop="url image" alt="不厌其烦" src="">
</span>
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2018/01/28/blog-work-flow/" itemprop="url">
Hexo博客Workflow
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="Post created" itemprop="dateCreated datePublished" datetime="2018-01-28T20:32:46-05:00">
2018-01-28
</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<p>定下了2018年的新年愿望为“多写博客”后,上一次更新还是一年以前…连<a href="https://hexo.io" target="_blank" rel="noopener">hexo</a>如何使用都已经忘了。幸好之前的设置代码都还保存在Bitbucket里面,花了一点时间才把才把博客在本地架起来。</p>
<p>这篇博客记录了这个<code>hexo-based</code>博客的workflow。</p>
<h3 id="安装hexo,同步repo"><a href="#安装hexo,同步repo" class="headerlink" title="安装hexo,同步repo"></a>安装hexo,同步repo</h3><p>安装Hexo的方法很简单,首先要保证系统中安装了<a href="https://www.npmjs.com" target="_blank" rel="noopener">npm</a>。然后:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g</span></pre></td></tr></table></figure>
<p>我用的是theme是修改过的<a href="https://github.com/theme-next/hexo-theme-next" target="_blank" rel="noopener">next</a>。如果需要修改:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> [email protected]:erain/hexo-theme-next-erain.git</span></pre></td></tr></table></figure>
<p>博客代码中已经把theme加成了<a href="https://github.com/blog/2104-working-with-submodules" target="_blank" rel="noopener">git submodule</a>。因此,如果不需要修改theme的时候,只需要:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> [email protected]:erain/src-blog-yiyu-me.git</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line"><span class="built_in">cd</span> src-blog-yiyu-me</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line">git submodule init</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line">git submodule update</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">5</span></pre></td><td class="code"><pre><span class="line">npm install</span></pre></td></tr></table></figure>
<h3 id="写作、部署"><a href="#写作、部署" class="headerlink" title="写作、部署"></a>写作、部署</h3><p>要写一篇新博客、预览</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">hexo new new-blog-name</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line">hexo server</span></pre></td></tr></table></figure>
<p>发布新的博客</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span></pre></td><td class="code"><pre><span class="line">hexo clean</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">2</span></pre></td><td class="code"><pre><span class="line">hexo deploy</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">3</span></pre></td><td class="code"><pre><span class="line"># also commit in the blog source</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">4</span></pre></td><td class="code"><pre><span class="line">git commit -am "add a new blog"</span></pre></td></tr><tr><td class="gutter"><pre><span class="line">5</span></pre></td><td class="code"><pre><span class="line">git push origin master</span></pre></td></tr></table></figure>
</div>
<div>
</div>