-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
523 lines (308 loc) · 21.3 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
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Blogging Time</title>
<meta name="author" content="BridgeEast">
<meta name="description" content="1、不要看到别人的回复,第一句话就说:给个代码吧!你应该想想为什么。当你自己想出来再参考别人的提示,就会知道自己和别人思路的差异。 2、初学者请不要看太多的书,那会误人子弟的,先找一本好书系统的学习。很多人用了很久都是只对部分功能熟悉而已,不系统还是不够的。 3、看帮助。不要因为很难, …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://BridgeEast.github.io">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Blogging Time" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="./javascripts/lib/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
</head>
<body >
<header role="banner"><hgroup>
<h1><a href="/">Blogging Time</a></h1>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:BridgeEast.github.io" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
<li><a href="/about-me">AboutMe</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<h1 class="entry-title"><a href="/blog/2014/10/22/read-every-day/">每天读一遍,思考一下:我是否浮躁</a></h1>
<p class="meta">
<time datetime="2014-10-22T22:14:00+08:00" pubdate data-updated="true">Oct 22<span>nd</span>, 2014</time>
</p>
</header>
<div class="entry-content"><p>1、不要看到别人的回复,第一句话就说:给个代码吧!你应该想想为什么。当你自己想出来再参考别人的提示,就会知道自己和别人思路的差异。</p>
<p>2、初学者请不要看太多的书,那会误人子弟的,先找一本好书系统的学习。很多人用了很久都是只对部分功能熟悉而已,不系统还是不够的。</p>
<p>3、看帮助。不要因为很难,而自己又是初学者所以就不看。帮助永远是最好的参考手册,虽然帮助的文字有时候很难看懂,或不够直观。</p>
<p>4、不要被一些专用词汇所迷惑,最根本的是先了解最基础知识。</p>
<p>5、不要放过任何一个看上去很简单的小问题--它们往往并不那么简单,或者可以引申出很多知识点,不会举一反三你就永远学不会。</p>
<p>6、知道一点东西,并不能说明你会用,会用是需要实践经验和时间积累的。</p>
<p>7、入门并不难,难的是长期坚持实践和不遗余力的学习和实践。</p>
<p>8、看再多的书是学不会用的,要多实践,多动手。</p>
<p>9、把时髦的技术挂在嘴边,还不如把基本的技术记在心里。</p>
<p>10、在任何时刻都不要认为自己手中的书已经足够了。</p>
</div>
<footer>
<a rel="full-article" href="/blog/2014/10/22/read-every-day/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2014/04/19/setup-ruby-on-rails-on-ubuntu14-dot-04/">Setup Ruby on Rails on ubuntu14.04</a></h1>
<p class="meta">
<time datetime="2014-04-19T16:11:00+08:00" pubdate data-updated="true">Apr 19<span>th</span>, 2014</time>
</p>
</header>
<div class="entry-content"><p>昨天刚发布的ubuntu14.04,今天就想体验下新系统的新鲜感,于是折腾了一下,配上ruby on rails的开发环境。失败了很多次,因为是新系统,默认的更新源里没有全面的依赖。</p>
<h2>所以安装前先更新源。</h2>
<ul>
<li>先备份源列表:</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="n">sudo</span> <span class="n">cp</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">apt</span><span class="o">/</span><span class="n">sources</span><span class="p">.</span><span class="n">list</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">apt</span><span class="o">/</span><span class="n">sources</span><span class="p">.</span><span class="n">list_backup</span>
</span></code></pre></td></tr></table></div></figure>
<ul>
<li>然后打开 sources.list</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="n">sudo</span> <span class="n">vim</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">apt</span><span class="o">/</span><span class="n">sources</span><span class="p">.</span><span class="n">list</span>
</span></code></pre></td></tr></table></div></figure>
<ul>
<li>替换为官方提供的更新源:</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
<span class='line-number'>13</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse</span>
</span><span class='line'> <span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="nl">http:</span><span class="c1">//archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse</span>
</span><span class='line'> <span class="n">Ubuntu</span><span class="err">官方提供的其他软件(第三方闭源软件等):</span>
</span><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//archive.canonical.com/ubuntu/ trusty partner</span>
</span><span class='line'> <span class="n">deb</span> <span class="nl">http:</span><span class="c1">//extras.ubuntu.com/ubuntu/ trusty main</span>
</span></code></pre></td></tr></table></div></figure>
<h2>然后就可以参考12.04的方法安装了</h2>
<ul>
<li>其它一些依赖</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="n">sudo</span> <span class="n">apt</span><span class="o">-</span><span class="n">get</span> <span class="n">install</span> <span class="n">bison</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span> <span class="n">libreadline5</span><span class="o">-</span><span class="n">dev</span> <span class="n">libxml2</span><span class="o">-</span><span class="n">dev</span> <span class="n">build</span><span class="o">-</span><span class="n">essential</span> <span class="n">openssl</span> <span class="n">libreadline6</span> <span class="n">libreadline6</span><span class="o">-</span><span class="n">dev</span> <span class="n">curl</span> <span class="n">git</span><span class="o">-</span><span class="n">core</span> <span class="n">zlib1g</span> <span class="n">zlib1g</span><span class="o">-</span><span class="n">dev</span> <span class="n">libssl</span><span class="o">-</span><span class="n">dev</span> <span class="n">libyaml</span><span class="o">-</span><span class="n">dev</span> <span class="n">libsqlite3</span><span class="o">-</span><span class="mi">0</span> <span class="n">libsqlite3</span><span class="o">-</span><span class="n">dev</span> <span class="n">sqlite3</span> <span class="n">libxml2</span><span class="o">-</span><span class="n">dev</span> <span class="n">libxslt</span><span class="o">-</span><span class="n">dev</span> <span class="n">autoconf</span> <span class="n">libc6</span><span class="o">-</span><span class="n">dev</span> <span class="n">ncurses</span><span class="o">-</span><span class="n">dev</span> <span class="n">automake</span> <span class="n">libtool</span> <span class="n">bison</span> <span class="n">subversion</span>
</span></code></pre></td></tr></table></div></figure>
</div>
<footer>
<a rel="full-article" href="/blog/2014/04/19/setup-ruby-on-rails-on-ubuntu14-dot-04/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/12/16/octopresstian-jia-xin-lang-wei-bo-xiu/">Octopress添加新浪微博秀</a></h1>
<p class="meta">
<time datetime="2013-12-16T20:00:00+08:00" pubdate data-updated="true">Dec 16<span>th</span>, 2013</time>
</p>
</header>
<div class="entry-content"><ul>
<li><p>首先在自己的新浪微博首页中—-设置—-我的工具—-新浪微博秀提取嵌入式代码</p></li>
<li><p>在source/_includes/asides/添加weibo.html</p></li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
<span class='line-number'>13</span>
<span class='line-number'>14</span>
<span class='line-number'>15</span>
<span class='line-number'>16</span>
<span class='line-number'>17</span>
<span class='line-number'>18</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="p">{</span><span class="n">_</span><span class="o">%</span> <span class="k">if</span> <span class="n">site</span><span class="p">.</span><span class="n">weibo_uid</span> <span class="o">%</span><span class="p">}</span>
</span><span class='line'> <span class="o"><</span><span class="n">section</span><span class="o">></span>
</span><span class='line'> <span class="o"><</span><span class="n">h1</span><span class="o">></span><span class="err">新浪微博</span><span class="o"></</span><span class="n">h1</span><span class="o">></span>
</span><span class='line'> <span class="o"><</span><span class="n">ul</span> <span class="kt">id</span><span class="o">=</span><span class="s">"weibo"</span><span class="o">></span>
</span><span class='line'> <span class="o"><</span><span class="n">li</span><span class="o">></span>
</span><span class='line'> <span class="o"><</span><span class="n">iframe</span>
</span><span class='line'> <span class="n">width</span><span class="o">=</span><span class="s">"100%"</span>
</span><span class='line'> <span class="n">height</span><span class="o">=</span><span class="s">"550"</span>
</span><span class='line'> <span class="n">class</span><span class="o">=</span><span class="s">"share_self"</span>
</span><span class='line'> <span class="n">frameborder</span><span class="o">=</span><span class="s">"0"</span>
</span><span class='line'> <span class="n">scrolling</span><span class="o">=</span><span class="s">"no"</span>
</span><span class='line'> <span class="n">src</span><span class="o">=</span><span class="s">"http://widget.weibo.com/weiboshow/index.php?width=0&height=550&ptype=1&speed=0&skin=&isTitle=0&noborder=1&isWeibo=1&isFans=&uid=2394612557&verifier=03cd9a29"</span><span class="o">></span>
</span><span class='line'> <span class="o"></</span><span class="n">iframe</span><span class="o">></span>
</span><span class='line'> <span class="o"></</span><span class="n">li</span><span class="o">></span>
</span><span class='line'> <span class="o"></</span><span class="n">ul</span><span class="o">></span>
</span><span class='line'> <span class="o"></</span><span class="n">section</span><span class="o">></span>
</span><span class='line'> <span class="p">{</span><span class="n">_</span><span class="o">%</span> <span class="n">endif</span> <span class="o">%</span><span class="p">}</span>
</span><span class='line'>
</span></code></pre></td></tr></table></div></figure>
</div>
<footer>
<a rel="full-article" href="/blog/2013/12/16/octopresstian-jia-xin-lang-wei-bo-xiu/">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/blog/2013/11/16/octopressge-ren-bo-ke/">Octopress个人博客搭建</a></h1>
<p class="meta">
<time datetime="2013-11-16T16:57:00+08:00" pubdate data-updated="true">Nov 16<span>th</span>, 2013</time>
</p>
</header>
<div class="entry-content"><p>octopress搭建个人博客的方法在网上有很多,在<a href="http://octopress.org/">octopress</a>网站上也有详细介绍,
只要参照教程,很容易就能理解搭建的流程,个人的实现方法如下:</p>
<ul>
<li><p>安装好ruby和git(已经有ruby开发环境的就不用了)</p></li>
<li><p>克隆octopress项目,并进行配置</p></li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="n">git</span> <span class="n">clone</span> <span class="nl">git:</span><span class="c1">//github.com/imathis/octopress.git blog </span>
</span></code></pre></td></tr></table></div></figure>
<ul>
<li>设置默认ruby版本(如果不使用rvm则不需要),更新相应的gem</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="n">rvm</span> <span class="n">use</span> <span class="mf">1.9.3</span><span class="o">-</span><span class="n">p374</span>
</span><span class='line'><span class="n">bundle</span> <span class="n">update</span>
</span></code></pre></td></tr></table></div></figure>
<ul>
<li>安装默认主题</li>
</ul>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="n">rake</span> <span class="n">install</span>
</span></code></pre></td></tr></table></div></figure>
</div>
<footer>
<a rel="full-article" href="/blog/2013/11/16/octopressge-ren-bo-ke/">Read on →</a>
</footer>
</article>
<div class="pagination">
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2014/10/22/read-every-day/">每天读一遍,思考一下:我是否浮躁</a>
</li>
<li class="post">
<a href="/blog/2014/04/19/setup-ruby-on-rails-on-ubuntu14-dot-04/">Setup Ruby on Rails on ubuntu14.04</a>
</li>
<li class="post">
<a href="/blog/2013/12/16/octopresstian-jia-xin-lang-wei-bo-xiu/">Octopress添加新浪微博秀</a>
</li>
<li class="post">
<a href="/blog/2013/11/16/octopressge-ren-bo-ke/">Octopress个人博客搭建</a>
</li>
</ul>
</section>
<section>
<h1>GitHub Repos</h1>
<ul id="gh_repos">
<li class="loading">Status updating…</li>
</ul>
<a href="https://github.com/BridgeEast">@BridgeEast</a> on GitHub
<script type="text/javascript">
$(document).ready(function(){
if (!window.jXHR){
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
}
github.showRepos({
user: 'BridgeEast',
count: 0,
skip_forks: true,
target: '#gh_repos'
});
});
</script>
<script src="/javascripts/github.js" type="text/javascript"> </script>
</section>
<section>
<h1>新浪微博</h1>
<ul id="weibo">
<li>
<iframe
width="100%"
height="550"
class="share_self"
frameborder="0"
scrolling="no"
src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=&isTitle=0&noborder=1&isWeibo=1&isFans=1&uid=2394612557&verifier=03cd9a29&dpc=1">
</iframe>
</li>
</ul>
</section>
<section class="googleplus">
<h1>
<a href="https://plus.google.com/dongqiaoruby@gmail.com?rel=author">
<img src="http://www.google.com/images/icons/ui/gprofile_button-32.png" width="32" height="32">
Google+
</a>
</h1>
</section>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2014 - BridgeEast -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
</body>
</html>