-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathother.html
More file actions
357 lines (230 loc) · 15.2 KB
/
other.html
File metadata and controls
357 lines (230 loc) · 15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
other - 余瓞归的博客
</title>
<meta name="description" content="ruby, rails, html, css, linux,javascript">
<link href="atom.xml" rel="alternate" title="余瓞归的博客" type="application/atom+xml">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:600,800" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="asset/image/favicon.png">
<link rel="stylesheet" href="asset/css/base.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-k2/8zcNbxVIh5mnQ52A0r3a6jAgMGxFJFE2707UxGCk= sha512-ZV9KawG2Legkwp3nAlxLIVFudTauWuBpC10uEafMHYL0Sarrz5A7G79kXh5+5+woxQ5HM559XX2UZjMJ36Wplg==" crossorigin="anonymous">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/styles/default.min.css">
</head>
<body>
<div class="container">
<div class="eleven columns content">
<div id="home">
<p><i class="fa fa-book"></i> 最新发表<a href="./"></p>
<article class="post">
<h1 class="title">
<a href="14913797670808.html">Jenkins集成Ruby on Rails单元测试</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2016-01-16T16:09:27+08:00">2016/1/16</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>Jenkins集成Rails单元测试关键是安装ruby环境,jenkins可以通过插件安装ruby运行环境,但是安装的ruby版本是j-ruby,和我们使用的标准ruby有一定区别不推荐安装。<br/>
我们需要通过ruby版本控制工具安装rvm或者rbenv安装需要的ruby版本。这里选择rvm来安装。</p>
<a href="14913797670808.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14910403462980.html">Jenkins与Gitlab集成</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2016-01-15T17:52:26+08:00">2016/1/15</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>Jenkins和Gitlab集成主要目的是将Jenkins作为Gitlab持续集成工具,版本库有提交或者合并时能够触发Jenkins自动build</p>
<a href="14910403462980.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14913797809069.html">为什么你的代码如此难以理解</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2014-11-23T16:09:40+08:00">2014/11/23</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>无意间读了一篇博客<a href="https://medium.com/on-coding/why-your-code-is-so-hard-to-understand-83057c115a2b">《Why your code is so hard to understand》</a> 恰好最近遇到这些问题,引起了一些思考和共鸣。作为工程师你是如何看待代码的好与坏?该文章中提到的几点我觉得特别有道理,如,过度复杂的心智模型(overly complex mental models),从语义模型到代码的糟糕转化(poor translation of semantic models into code)和隐晦的用法(obscured usage)等等。今天我结合自己的工作谈谈看法。</p>
<a href="14913797809069.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14913797844730.html">提高你水平git命令</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2014-11-16T16:09:44+08:00">2014/11/16</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>我们在使用Git常用的add, commit和merge等命令来处理我们日常的工作。本文介绍几个不常用,但是能给你带来极大的效率提高同时也能让你Git水平提高一个档次。</p>
<a href="14913797844730.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14913797880850.html">字符编码</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2014-11-02T16:09:48+08:00">2014/11/2</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>乱码是我们在使用计算机(不止编程)中经常遇到,如,网页显示乱码,Linux文本文件到Windows中乱码。最近花时间研究了一番,在这里做个总结。</p>
<a href="14913797880850.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14914441437461.html">Redis主键失效原理</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2014-08-24T10:02:23+08:00">2014/8/24</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>Redis中设置主键失效的命令有:EXPIRE、EXPIREAT、PEXPIRE、PEXPIREAT、SETEX和PSETEX。一旦key设置的过期时间到期<br/>
就会删除该key-value。那么Redis是如何让key失效的呢?</p>
<a href="14914441437461.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14914442350852.html">Git中的撤销操作</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2014-07-20T10:03:55+08:00">2014/7/20</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>在使用Git的时候,有时候我们需要对已有的修改进行撤销操作, 接下来介绍一些基本的撤消操作相关的命令。</p>
<h3 id="toc_0">git commit --amend修改最后一次提交</h3>
<p>这个命名用于修改你最后的一次提交。如果在commit之后发现自己写错说明,或者漏掉某个文件,这个时候你可以用--amend重新提交一次。--amend使用与你刚才提交相同的快照进行修改,就相当于手动修改刚才的提交。<br/>
当你执行--amend时,git会启动你的编辑器,你可以修改刚才的注释,如果有遗忘的文件没有提交,可以先缓存然后在执行--amend。</p>
<pre><code class="language-ruby">git add test.rb
git commit --amend
</code></pre>
<a href="14914442350852.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14914443947913.html">Disqus评论参数说明</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2014-06-21T10:06:34+08:00">2014/6/21</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>在博客中引入Disqus评论功能时, 默认只需要添加一个 <strong>disqus_shortname</strong> 参数就可以, 这个参数是你在申请comments组是的标识。代码如下:</p>
<a href="14914443947913.html#more" class="more-link">阅读 →</a>
</div>
</article>
<article class="post">
<h1 class="title">
<a href="14914444932741.html">博客改版小结</a>
</h1>
<div class="meta">
<div class="date">
发表于:<time datetime="2013-04-16T10:08:13+08:00">2013/4/16</time>
<a class='category' href='other.html'>other</a>
</div>
</div>
<div class="desc-content">
<p>开始<a href="http://jekyllrb.com/">Jekyll</a>的时候,朋友推荐用<a href="http://octopress.org/">Octopress</a>的<a href="https://github.com/panks/fabric">fabric</a>主题。用了一段时间之后发不是十分喜欢灰色基调。其次,Jekyll本身是个很简单的东西,经过Octopress封装之后反而感觉繁琐,想简化它。</p>
<a href="14914444932741.html#more" class="more-link">阅读 →</a>
</div>
</article>
</div>
<div id="post-pagination" class="pagination">
<p class="previous disabled">
</p>
<p class="next">
</p>
</div>
</div> <div class="four columns sidebar">
<nav>
<a href="./">
<img src="asset/image/logo.png" id="logo" alt="Blog logo" width="80" />
</a>
<h2>
<a href="./living.html">生活</a>
<a href="./technology.html">技术</a>
</h2>
<div id="bio">
<p style="text-align:center">欢迎访问我的个人博客.</p>
<p>
我是余瓞归,一个懒惰挑剔的Ruby程序员。现居上海浦东,在一家电子商务公司从事系统架构工作。
</p>
</div>
<div id="social">
Follow me:
<div id="stalker">
<a title="nateyu on Github" href="https://github.com/nateyu">
<i class="fa fa-github-square"></i>
</a>
<a title="Atom feed" id="atom" href="./atom.xml">
<i class="fa fa-rss-square"></i>
</a>
<a title="Email" id="email" href="mailto: yudiegui@gmail.com">
<i class="fa fa-envelope"></i>
</a>
</div>
</div>
</nav>
</div> <div class="footer">
<div class="disclaimer">
<p>
本网站文章为个人所有,未经作者认许请勿转载
</p>
<p>
© 余瓞归, 2017 — built with <a href="http://jekyllrb.com/">Jekyll</a> using <a href="https://github.com/swanson/lagom">Lagom theme</a>
</p>
</div>
</div>
</div>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.10.0/highlight.min.js"></script>
<script type="text/javascript">hljs.initHighlightingOnLoad();</script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?01179477135d9e37e18df55d2011d072";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>