-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
745 lines (440 loc) · 26.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="回田园">
<title>回田园</title>
<meta name="author" content="子回(John Wu)">
<link rel="alternate" type="application/atom+xml" title="RSS" href="/atom.xml">
<script type="application/ld+json">{"@context":"http://schema.org","@type":"Website","@id":"http://blog.leapoahead.com","author":{"@type":"Person","name":"子回(John Wu)","sameAs":["https://github.com/tjwudi","https://twitter.com/leapoahead","https://facebook.com/leapoahead","https://www.linkedin.com/profile/view?id=AAIAAA6vTjkB-WP5j_3sqqGoM4mQmCquhPb9x0A","mailto:[email protected]"],"image":"https://www.gravatar.com/avatar/1380392c951c5d3edc96146b1d5b877b"},"name":"回田园","description":"这里写满了有关我和编程、设计和产品的所有故事","url":"http://blog.leapoahead.com"}</script>
<meta name="description" content="这里写满了有关我和编程、设计和产品的所有故事">
<meta property="og:type" content="blog">
<meta property="og:title" content="回田园">
<meta property="og:url" content="http://blog.leapoahead.com/index.html">
<meta property="og:site_name" content="回田园">
<meta property="og:description" content="这里写满了有关我和编程、设计和产品的所有故事">
<meta property="og:locale" content="en">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="回田园">
<meta name="twitter:description" content="这里写满了有关我和编程、设计和产品的所有故事">
<meta name="twitter:creator" content="@leapoahead">
<meta property="og:image" content="https://www.gravatar.com/avatar/1380392c951c5d3edc96146b1d5b877b?s=640"/>
<!--STYLES-->
<link rel="stylesheet" href="/assets/css/style-ofaazzmie6zorbkvxsyjh4p3coouliollv7rrwszuqeqxzl7trwkzzisuvjp.min.css">
<!--STYLES END-->
<script type="text/javascript">
if (location.host.indexOf('leapoahead.com') > 0) {
// Only send online traffic
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-50843289-7']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
}
</script>
</head>
<body>
<div id="blog">
<!-- Define author's picture -->
<header id="header" data-behavior="1">
<i id="btn-open-sidebar" class="fa fa-lg fa-bars"></i>
<div class="header-title">
<a class="header-title-link" href="/ ">回田园</a>
</div>
<a class="header-right-picture "
href="#about">
<img class="header-picture" src="https://www.gravatar.com/avatar/1380392c951c5d3edc96146b1d5b877b?s=90" alt="Author's picture"/>
</a>
</header>
<nav id="sidebar" data-behavior="1">
<div class="sidebar-container">
<div class="sidebar-profile">
<a href="/#about">
<img class="sidebar-profile-picture" src="https://www.gravatar.com/avatar/1380392c951c5d3edc96146b1d5b877b?s=110" alt="Author's picture"/>
</a>
<h4 class="sidebar-profile-name">子回(John Wu)</h4>
<h5 class="sidebar-profile-bio"><p>Strong opinion, weakly held.</p>
</h5>
</div>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link "
href="/ "
title="主页"
>
<i class="sidebar-button-icon fa fa-lg fa-home" aria-hidden="true"></i>
<span class="sidebar-button-desc">主页</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link "
href="/all-categories"
title="分类"
>
<i class="sidebar-button-icon fa fa-lg fa-bookmark" aria-hidden="true"></i>
<span class="sidebar-button-desc">分类</span>
</a>
</li>
</ul>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://github.com/tjwudi" target="_blank" rel="noopener" title="GitHub">
<i class="sidebar-button-icon fa fa-lg fa-github" aria-hidden="true"></i>
<span class="sidebar-button-desc">GitHub</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://twitter.com/leapoahead" target="_blank" rel="noopener" title="Twitter">
<i class="sidebar-button-icon fa fa-lg fa-twitter" aria-hidden="true"></i>
<span class="sidebar-button-desc">Twitter</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://facebook.com/leapoahead" target="_blank" rel="noopener" title="Facebook">
<i class="sidebar-button-icon fa fa-lg fa-facebook" aria-hidden="true"></i>
<span class="sidebar-button-desc">Facebook</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://www.linkedin.com/profile/view?id=AAIAAA6vTjkB-WP5j_3sqqGoM4mQmCquhPb9x0A" target="_blank" rel="noopener" title="LinkedIn">
<i class="sidebar-button-icon fa fa-lg fa-linkedin" aria-hidden="true"></i>
<span class="sidebar-button-desc">LinkedIn</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="mailto:[email protected]" target="_blank" rel="noopener" title="Email">
<i class="sidebar-button-icon fa fa-lg fa-envelope-o" aria-hidden="true"></i>
<span class="sidebar-button-desc">Email</span>
</a>
</li>
</ul>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link "
href="/atom.xml"
title="RSS"
>
<i class="sidebar-button-icon fa fa-lg fa-rss" aria-hidden="true"></i>
<span class="sidebar-button-desc">RSS</span>
</a>
</li>
</ul>
</div>
</nav>
<div id="main" data-behavior="1"
class="
hasCoverMetaIn
">
<section class="postShorten-group main-content-wrap">
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2017/03/10/credential-management-api/">
用Credential Management API加强跨设备用户认证
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2017-03-10T21:16:02+08:00">
Mar 10, 2017
</time>
<span>in </span>
<a class="category-link" href="/categories/Engineering/">Engineering</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>Credential Management API是截至目前(17年3月)仍在W3C草案阶段的标准,它允许网站开发者将用户认证信息(如用户名和密码)存储在浏览器中,从而可以让用户在一个设备登录后在其他设备上被自动登录,而无需再填写认证信息。在2016年4月份Chrome<a href="https://developers.google.com/web/updates/2016/04/credential-management-api" target="_blank" rel="noopener">发布</a>了一个W3C Credential Management API的最初实现。</p>
<a href="/2017/03/10/credential-management-api/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
<a href="/2017/03/10/credential-management-api/">
<div class="postShorten-thumbnailimg">
<img alt="" src="http://blog.leapoahead.com/2017/03/10/credential-management-api/tn.png"/>
</div>
</a>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2016/10/25/python-function-variations/">
Function variations in Python
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2016-10-25T21:00:08+08:00">
Oct 25, 2016
</time>
<span>in </span>
<a class="category-link" href="/categories/Engineering/">Engineering</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>In Object Oriented Programming, we deal with classes and their variations. A subclass is conceptually a more concrete realization of it’s superclass. Subclasses appear to be a family of classes with certain extent of variation.</p>
<p>Variations are also introduced in functions. A function can derive a family of functions that are similar but with the same purpose. We will use Python functions as example to demonstrate the use of function variations, and effectively how it changes our way of writing clean code and tests.</p>
<a href="/2016/10/25/python-function-variations/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2016/10/04/code-review-one-step-further/">
让代码审查扮演更好的角色
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2016-10-04T23:17:23+08:00">
Oct 04, 2016
</time>
<span>in </span>
<a class="category-link" href="/categories/Engineering/">Engineering</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>代码审查(Code Review)是很多大公司里面都有的一个流程。它指的是一个人编码,另有几个人负责审查,并提出修改意见。代码审查在大多数情况下对公司整体的工程质量是有提高的,但是如果使用不当的话,很可能反倒会降低工程质量。代码审查究竟在一个组织里面是有正面效应或者是负面效应取决于很多因素,而我认为其中最重要的是代码审查在开发过程中扮演的角色。</p>
<a href="/2016/10/04/code-review-one-step-further/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
<a href="/2016/10/04/code-review-one-step-further/">
<div class="postShorten-thumbnailimg">
<img alt="" src="http://blog.leapoahead.com/2016/10/04/code-review-one-step-further/1.jpg"/>
</div>
</a>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2016/03/02/introduction-to-reactive-programming/">
指路Reactive Programming
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2016-03-02T19:58:21+08:00">
Mar 02, 2016
</time>
<span>in </span>
<a class="category-link" href="/categories/Engineering/">Engineering</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>我在工作中采用Reactive Programming(RP)已经有一年了,对于这个“新鲜”的辞藻或许有一些人还不甚熟悉,这里就和大家说说关于RP我的理解。希望在读完本文后,你能够用Reactive Extension进行RP。</p>
<a href="/2016/03/02/introduction-to-reactive-programming/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
<a href="/2016/03/02/introduction-to-reactive-programming/">
<div class="postShorten-thumbnailimg">
<img alt="" src="http://blog.leapoahead.com/2016/03/02/introduction-to-reactive-programming/4.png"/>
</div>
</a>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2016/01/03/iterative-recursive-process/">
迭代、递归与Tail Call Optimization
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2016-01-03T17:59:13+08:00">
Jan 03, 2016
</time>
<span>in </span>
<a class="category-link" href="/categories/Engineering/">Engineering</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>在程序设计的世界里面有两种很基本的设计模式,那就是迭代(iterative)和递归(recursive)。这两种模式之间存在着很强的一致性和对称性。</p>
<a href="/2016/01/03/iterative-recursive-process/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
<a href="/2016/01/03/iterative-recursive-process/">
<div class="postShorten-thumbnailimg">
<img alt="" src="http://blog.leapoahead.com/2016/01/03/iterative-recursive-process/2.jpg"/>
</div>
</a>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2015/12/27/thinking-in-silicon-valley/">
硅谷夜谈
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2015-12-27T22:45:32+08:00">
Dec 27, 2015
</time>
<span>in </span>
<a class="category-link" href="/categories/life/">Life</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>旧金山严格意义上不算是硅谷的一部分,它其实坐落于硅谷以北。城市的占地面积不大,百分之九十是一马平川的居民区。东北角的Financial District是这里唯一高楼耸立的区域,人如川流,在他们之中不少都是科技工作者。贯穿整个Financial District的是Market Street,好似是旧金山的脊柱一般,撑着这个科技之都鲜活的躯体。</p>
<a href="/2015/12/27/thinking-in-silicon-valley/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2015/11/27/debugging-with-strace/">
Debugging with strace
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2015-11-27T00:32:56+08:00">
Nov 27, 2015
</time>
<span>in </span>
<a class="category-link" href="/categories/tools/">Tools</a>
</div>
</div>
<div class="postShorten-excerpt">
<p><a href="http://linux.die.net/man/1/strace" target="_blank" rel="noopener">strace</a> is a tool that helps to inspect system calls your application makes. I found it really useful this week when I debugging a complex python application. I am not going through my original problem though, but will show you some typical examples as proof of concept.</p>
<a href="/2015/11/27/debugging-with-strace/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2015/10/23/intro-to-galley/">
Galley - 为基于Docker架构本地开发与测试提速
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2015-10-23T00:40:01+08:00">
Oct 23, 2015
</time>
<span>in </span>
<a class="category-link" href="/categories/DevOps/">DevOps</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>(本文投稿于<a href="www.infoq.com/cn/">InfoQ</a>,无论其是否刊登,其他第三方转载请务必注明出处)</p>
<p>现如今,Docker已经成为了很多公司部署应用、服务的首选方案。依靠容器技术,我们能在不同的体系结构之上轻松部署几乎任何种类的应用。在洛杉矶时间2015年10月21日于旧金山展开的Twitter Flight开发者大会上,来自Fabric的工程师Joan Smith再次谈到了这一点。</p>
<a href="/2015/10/23/intro-to-galley/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2015/10/07/docker-lessons-learned-md/">
我从开源项目中学习到的Docker经验
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2015-10-07T19:42:44+08:00">
Oct 07, 2015
</time>
<span>in </span>
<a class="category-link" href="/categories/DevOps/">DevOps</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>最近几周从一个Web开发俨然摇身一变成了“运维”,在GitHub上面为<a href="https://github.com/EverythingMe/redash" target="_blank" rel="noopener">re:dash</a>做Docker化的支持。在整个Code Review的过程中汲取了一些Docker的经验。</p>
<a href="/2015/10/07/docker-lessons-learned-md/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-right">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title">
<a class="link-unstyled" href="/2015/09/19/function-as-first-class-citizen/">
“函数是一等公民”背后的含义
</a>
</h1>
<div class="postShorten-meta">
<time datetime="2015-09-19T01:37:41+08:00">
Sep 19, 2015
</time>
<span>in </span>
<a class="category-link" href="/categories/Engineering/">Engineering</a>
</div>
</div>
<div class="postShorten-excerpt">
<p>在学习一些语言的时候,你经常会听到“函数是一等公民”这样的描述。那么究竟函数在这类语言中扮演着怎么样的一个角色?它和函数式编程、无状态设计、封装抽象有什么千丝万缕的联系?</p>
<a href="/2015/09/19/function-as-first-class-citizen/" class="postShorten-excerpt_link link">
Continue reading
</a>
</div>
</div>
</article>
<div class="pagination-bar">
<ul class="pagination">
<li class="pagination-next">
<a class="btn btn--default btn--small" href="/page/2/">
<span>OLDER POSTS</span>
<i class="fa fa-angle-right text-base icon-ml"></i>
</a>
</li>
<li class="pagination-number">page 1 of 3</li>
</ul>
</div>
</section>
<footer id="footer" class="main-content-wrap">
<span class="copyrights">
Copyrights © 2018 子回(John Wu). All Rights Reserved.
</span>
</footer>
</div>
</div>
<div id="about">
<div id="about-card">
<div id="about-btn-close">
<i class="fa fa-remove"></i>
</div>
<img id="about-card-picture" src="https://www.gravatar.com/avatar/1380392c951c5d3edc96146b1d5b877b?s=110" alt="Author's picture"/>
<h4 id="about-card-name">子回(John Wu)</h4>
<div id="about-card-bio"><p>Strong opinion, weakly held.</p>
</div>
<div id="about-card-job">
<i class="fa fa-briefcase"></i>
<br/>
<p>Software Engineer at Facebook</p>
</div>
<div id="about-card-location">
<i class="fa fa-map-marker"></i>
<br/>
San Francisco, CA
</div>
</div>
</div>
<div id="cover" style="background-image:url('/assets/images/cover.jpg');"></div>
<!--SCRIPTS-->
<script src="/assets/js/script-plvqpdisosqesdacqcnrardusldtgvjkw3tfmpjbhf0aa6t4lalcoshprtxn.min.js"></script>
<!--SCRIPTS END-->
</body>
</html>