-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
347 lines (295 loc) · 15.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>samuel</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure-min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/grids-responsive-min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://samuelololol.github.io/theme/css/main.css" />
<link href="https://samuelololol.github.io/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="samuel Full Atom Feed" />
</head>
<body>
<div class="navigation pure-menu pure-menu-horizontal">
<a href="https://samuelololol.github.io/" class="pure-menu-heading pure-menu-link">samuel</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"></li>
<li class="pure-menu-item"><a href="https://samuelololol.github.io/category/blog.html" class="pure-menu-link">blog</a></li>
</ul>
</div>
<div class="main-container">
<div class="pure-g">
<div class="pure-u-1 pure-u-lg-2-3">
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2018-02-25T17:30:00+08:00">Sun 25 February 2018</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2018/02/study.html" rel="bookmark" title="Permalink to 一天35頁">一天35頁</a></h2>
<div class="post-content">
<p>居然在 2013 年的筆記看到,沒想到現在還是沒有切確的執行,真是汗顏 >"<
希望在<a href="https://samuelololol.github.io/tag/2018review.html">#2018review</a>時候可以有點成績
<br><br></p>
<blockquote>
<p><strong>如果你每兩個月讀完一本程式設計相關的好書,</strong>
<strong>大約是一天讀 35 頁,</strong>
<strong>你很快就能對整個產業有清楚的理解,</strong>
<strong>並且將能你和你身邊其他人清楚的區分出來。</strong>
-- Steve McConnel, 軟體建構之道
<br><br>
<img alt="study" src="/images/study.png" style="max-width: 100%;"></p>
</blockquote>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2018-01-02T10:30:00+08:00">Tue 02 January 2018</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2018/01/sf2.html" rel="bookmark" title="Permalink to Street Fighter II">Street Fighter II</a></h2>
<div class="post-content">
<p>懷念的 SFII,讓我用一張龍的「二陪」來懷舊一下!
<br/><br/>
<img alt="sf2" src="/images/sf2.png" style="max-width: 100%;"></p>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2018-01-02T01:30:00+08:00">Tue 02 January 2018</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2018/01/docker-pelican.html" rel="bookmark" title="Permalink to docker-pelican">docker-pelican</a></h2>
<div class="post-content">
<p>終於想到要把 pelican 塞進去 docker 來做事了!</p>
<p>Link: <a href="https://hub.docker.com/r/samuelololol/docker-pelican/" style="color: blue;">https://hub.docker.com/r/samuelololol/docker-pelican/</a></p>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2017-03-09T13:00:00+08:00">Thu 09 March 2017</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2017/03/core_value.html" rel="bookmark" title="Permalink to 問題的本質">問題的本質</a></h2>
<div class="post-content">
<blockquote>
<p><strong>當你真正的洞悉問題的本質時,你所做出的解答就會以那個最簡潔的形式呈現。</strong>
-<a href="https://twitter.com/qing_wang/status/839509480161214464">tweet from Qing</a></p>
</blockquote>
<p>講的實在是太好了!</p>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2017-02-21T22:30:00+08:00">Tue 21 February 2017</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2017/02/check_sshd_config.html" rel="bookmark" title="Permalink to 檢查 sshd_config">檢查 sshd_config</a></h2>
<div class="post-content">
<p>在設定 Raspberry pi 設定的時候,往往都是 remote ssh 因為灌好之後,
幾乎不會有人把它直接拿來接螢幕作設定。但是當你要修改的是 <code>sshd_config</code>
的時候,千萬要很小心,因為一個不小心設定失誤就斷線了。</p>
<p>為了預防這個雷,在重啟 sshd service 之前用這個 script 就能檢查是否有問題了</p>
<div class="highlight"><pre><span></span>$ sudo /usr/sbin/sshd -t
</pre></div>
<p>一行結束,如果有問題就會把問題印出來,如果沒問題就船過水無痕囉!</p>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2017-02-20T23:00:00+08:00">Mon 20 February 2017</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2017/02/code review.html" rel="bookmark" title="Permalink to Code Review">Code Review</a></h2>
<div class="post-content">
<p>Code Review 在軟體開發是佔很重要的一個環節,通常聽到的情況是在要 commit code 前、pull request 之前,或是
fixing tracker 之前的一個動作,確保新增、修改的部分不會影響既有的架構,也不會產生額外的問題。</p>
<p>如果是 fixing tracker ,抓緊幾個問題:</p>
<ul>
<li>為什麼要修?</li>
<li>修了哪些東西?</li>
<li>和之前差別是什麼?</li>
<li>有沒有影響到其他的地方?</li>
<li>為什麼修這樣就修的好?</li>
</ul>
<p>今天某匿名大神同事分享了幾個重點</p>
<ol>
<li>Reviewer 要了解問題是什麼,如果不清楚,不是 requester 沒有寫清楚的話,要請 requester 解釋清楚</li>
<li>如果是 workaround 要問清楚採取 workaround 的原因</li>
<li>Reviewer 從自己的理解,看看新的 design or implementation 有沒有問題。特別注意一般容易會被忽略的地方,eg, error handling, boundary, etc 以及會不會造成其他 side effects</li>
<li>要了解一下之前沒有被測到的原因</li>
</ol>
<p>以往修 tracker 大家都是憑直覺修,但是像這樣具體列出來,拳拳到肉真的很有感覺!</p>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2017-02-18T02:00:00+08:00">Sat 18 February 2017</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2017/02/pelican-article-link.html" rel="bookmark" title="Permalink to pelican article link">pelican article link</a></h2>
<div class="post-content">
<p>預設文章連結網址會變成這樣(已改)</p>
<blockquote>
<p>http://samuelololol.github.io/2017/02/zhun-bei-gai-ban.html</p>
</blockquote>
<p>怎麼會是拼音 -_-|||,無法忍受啊!看起來是 <code>pelicanconf.py</code> 裡面的設定</p>
<div class="highlight"><pre><span></span>ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
</pre></div>
<p>然後搭配文章(markdown)裡面的設定</p>
<div class="highlight"><pre><span></span><span class="n">slug</span><span class="o">:</span> <span class="n">pelican</span><span class="o">-</span><span class="n">article</span><span class="o">-</span><span class="n">link</span>
</pre></div>
<p>這樣就可以改成你要的uri, 不過有點麻煩,又怕衝到,看來之後再加日期當 prefix 好了</p>
<p>詳細設定可以看這邊
<a href="http://docs.getpelican.com/en/3.6.3/content.html#translations">Translations</a></p>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2017-02-18T01:00:00+08:00">Sat 18 February 2017</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2017/02/medius.html" rel="bookmark" title="Permalink to 準備改版成 Medius">準備改版成 Medius</a></h2>
<div class="post-content">
<h2>Medius</h2>
<p>參考的 template/theme 來自於<a href="https://onur.github.io/medius/medius.html">Medius demo website</a>(<a href="https://github.com/onur/medius">source</a>),
是基於 medium 的 design 在 pelican 上面實作的一個 theme. 想要來試試看,順便修改一些自己的東西在上面。</p>
<p>改版目標:</p>
<ol>
<li>換 theme</li>
<li>改成首頁全展開,不要 "read more..",然後文章連結還是繼續留著這樣</li>
<li>加個免費的 google analytics</li>
<li>Disqus?</li>
<li>其他再想想 ...</li>
</ol>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2015-12-10T00:00:00+08:00">Thu 10 December 2015</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2015/12/try-it.html" rel="bookmark" title="Permalink to try it">try it</a></h2>
<div class="post-content">
<div class="highlight"><pre><span></span><span class="k">print</span> <span class="s1">'hello pelican'</span>
</pre></div>
</div>
</div>
<div class="post">
<div class="post-meta pure-g">
<div class="pure-u">
<img src="http://samuelololol.github.io/images/cover.jpg" class="post-avatar" alt="blog">
</div>
<div class="pure-u-3-4 meta-data">
<a href="https://samuelololol.github.io/category/blog.html" class="category">blog</a><br />
<a class="author" href="https://samuelololol.github.io/author/samuelololol.html">samuelololol</a>
— <abbr title="2008-12-30T00:00:00+08:00">Tue 30 December 2008</abbr>
</div> </div>
<h2><a href="https://samuelololol.github.io/2008/12/revolution-renaissance.html" rel="bookmark" title="Permalink to Revolution Renaissance">Revolution Renaissance</a></h2>
<div class="post-content">
<p>Timo Tolkki's new album:</p>
<blockquote>
<p>Revolution Renaissance</p>
</blockquote>
<p>Recommanded:</p>
<ul>
<li>Heroes</li>
<li>I did it my way</li>
<li>Keep the flame alive</li>
<li>Last night on earth</li>
</ul>
</div>
</div>
<div class="pagination">
<div class="post-meta pure-g">
<div class="pure-u-1-2 left">
</div>
<div class="pure-u-1-2 right">
</div>
</div>
</div>
</div>
<div class="pure-u-1 pure-u-lg-1-3">
<div class="right-container">
<div class="right-bar">
<div class="right-head">
Tags
</div>
<div class="tags">
<a href="https://samuelololol.github.io/tag/pelican.html">pelican</a>
<a href="https://samuelololol.github.io/tag/blog.html">blog</a>
<a href="https://samuelololol.github.io/tag/study.html">study</a>
<a href="https://samuelololol.github.io/tag/35pages.html">35pages</a>
<a href="https://samuelololol.github.io/tag/2018review.html">2018review</a>
<a href="https://samuelololol.github.io/tag/game.html">game</a>
<a href="https://samuelololol.github.io/tag/sf2.html">sf2</a>
<a href="https://samuelololol.github.io/tag/docker.html">docker</a>
<a href="https://samuelololol.github.io/tag/quote.html">quote</a>
<a href="https://samuelololol.github.io/tag/twitter.html">twitter</a>
<a href="https://samuelololol.github.io/tag/raspberry-pi.html">raspberry pi</a>
<a href="https://samuelololol.github.io/tag/linux.html">linux</a>
<a href="https://samuelololol.github.io/tag/ssh.html">ssh</a>
<a href="https://samuelololol.github.io/tag/code-review.html">code review</a>
<a href="https://samuelololol.github.io/tag/work.html">work</a>
<a href="https://samuelololol.github.io/tag/python.html">python</a>
<a href="https://samuelololol.github.io/tag/medius.html">medius</a>
<a href="https://samuelololol.github.io/tag/music.html">music</a>
<a href="https://samuelololol.github.io/tag/metal.html">metal</a>
<a href="https://samuelololol.github.io/tag/stratovarius.html">stratovarius</a>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="index-footer">
<a href="https://samuelololol.github.io/" title="samuel">samuel</a>
<a href="https://samuelololol.github.io/category/blog.html">blog</a>
</footer>
</body>
</html>