-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
719 lines (326 loc) · 39.9 KB
/
index.html
File metadata and controls
719 lines (326 loc) · 39.9 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>DY.Feng's Blog 叶毅锋的博客</title>
<meta name="description" content="在Linux下做一个简单的秒表 Sep 1st, 2012 Tags: stopwatch, linux, bash 因为要比较clang和gcc哪个编译效率更高,我把我的一个项目分别用这两种编译器编译,还比较了添加-j4后的编译时间。可我的apt-get仓库下没发现有什么好的秒表或者计时器, …" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link rel="stylesheet" href="/stylesheets/screen.css" />
<link rel="stylesheet" href="/stylesheets/pygments.css" />
<link rel="alternate" href="/atom.xml" type="application/atom+xml" />
<script>var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-34028290-1"]),_gaq.push(["_addOrganic","baidu","wd"]),_gaq.push(["_trackPageview"]),location.hostname!=="localhost"&&function(){var a=document.createElement("script");a.async=!0,a.src="http://www.google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()</script>
</head>
<body>
<!--[if IE]>
html,body{height:100%;overflow:hidden}
<div class="ie-go-away">My blog does not support the IE!</div>
<![endif]-->
<!-- 黑长直 -->
<nav class="black-long-straight">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/blog/archives">Archives</a></li>
<li><a href="/atom.xml">RSS</a></li>
<li><a href="/about">About Me</a></li>
<li><a href="####">目录</a></li>
<li>
<form action="http://google.com/search" method="get" target="_blank">
<input type="hidden" name="q" value="site:www.dyfeng.org" />
<input type="text" name="q" class="search" placeholder="Search" x-webkit-speech />
</form>
</li>
</ul>
</nav>
<header class="my-nickname"><em title="">(≧▼≦) 喵喵</em></header>
<section class="main-wrap clearfix">
<article>
<header>
<h1 class="entry-title"><a href="/2012/09/01/stopwatch-in-linux/">在Linux下做一个简单的秒表</a></h1>
<p class="meta">
<time datetime="2012-09-01T10:00:00+08:00" pubdate="pubdate" data-updated="true">Sep 1<span>st</span>, 2012</time>
<span class="tags">
Tags:
<a href='/tags/stopwatch/'>stopwatch</a>, <a href='/tags/linux/'>linux</a>, <a href='/tags/bash/'>bash</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=在Linux下做一个简单的秒表 - &url=http://www.dyfeng.org/2012/09/01/stopwatch-in-linux/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=在Linux下做一个简单的秒表 - &url=http://www.dyfeng.org/2012/09/01/stopwatch-in-linux/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=在Linux下做一个简单的秒表 - http://www.dyfeng.org/2012/09/01/stopwatch-in-linux/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>因为要比较<code>clang</code>和<code>gcc</code>哪个编译效率更高,我把我的一个项目分别用这两种编译器编译,还比较了添加<code>-j4</code>后的编译时间。可我的<code>apt-get</code>仓库下没发现有什么好的<code>秒表</code>或者<code>计时器</code>,有的计时器是用来定时执行任务的。不过山人自有妙计,我用一行命令也做了一个秒表,Linux下没有不可能的事情。</p>
<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=''><span class='line'>$ time read -n1</span></code></pre></td></tr></table></div></figure>
<p>结束后按回车,就能看到运行时间了,而且还精确到0.002秒哦亲。话说回来,clang比gcc没快多少,差不多的样子而已。加了<code>j4</code>,效率也没有提高4倍,加之前36秒,加之后25秒的样子,当然这个还得具体看项目的依赖关系。</p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/24/something-about-nginx-configuration/">关于nginx的一些配置</a></h1>
<p class="meta">
<time datetime="2012-08-24T01:10:00+08:00" pubdate="pubdate" data-updated="true">Aug 24<span>th</span>, 2012</time>
<span class="tags">
Tag:
<a href='/tags/nginx/'>nginx</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=关于nginx的一些配置 - &url=http://www.dyfeng.org/2012/08/24/something-about-nginx-configuration/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=关于nginx的一些配置 - &url=http://www.dyfeng.org/2012/08/24/something-about-nginx-configuration/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=关于nginx的一些配置 - http://www.dyfeng.org/2012/08/24/something-about-nginx-configuration/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>今天帮人配置了下nginx,主要是二级域名以对应文件夹为根目录。主要的问题是在<code>Windows</code>环境下配置的,而小生一直都是在<code>Linux</code>环境下工作的,对<code>Windows</code>不大了解,记录下今天学到的小技巧。</p>
</div>
<footer class="align-r">
<a href="/2012/08/24/something-about-nginx-configuration/#ContinueReading">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/23/menu-does-not-popup-and-right-click-does-not-work-in-firefox/">解决Firefox菜单不弹出和右键失效的问题</a></h1>
<p class="meta">
<time datetime="2012-08-23T13:19:00+08:00" pubdate="pubdate" data-updated="true">Aug 23<span>rd</span>, 2012</time>
<span class="tags">
Tags:
<a href='/tags/firefox/'>firefox</a>, <a href='/tags/ubuntu/'>ubuntu</a>, <a href='/tags/fcitx/'>fcitx</a>, <a href='/tags/kde/'>kde</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=解决Firefox菜单不弹出和右键失效的问题 - &url=http://www.dyfeng.org/2012/08/23/menu-does-not-popup-and-right-click-does-not-work-in-firefox/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=解决Firefox菜单不弹出和右键失效的问题 - &url=http://www.dyfeng.org/2012/08/23/menu-does-not-popup-and-right-click-does-not-work-in-firefox/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=解决Firefox菜单不弹出和右键失效的问题 - http://www.dyfeng.org/2012/08/23/menu-does-not-popup-and-right-click-does-not-work-in-firefox/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>最近一次kubuntu升级后,我发现一个很奇怪的现象,我的Firefox某些时候菜单栏不能弹出,右键也失灵了。准确来说,是弹出了,又很快地焦点转移,导致他又关闭了。Google下发现遇到这个问题的童鞋还真不少,而且解决的方法各有不同,看来这个问题是Firefox一直存在的。</p>
</div>
<footer class="align-r">
<a href="/2012/08/23/menu-does-not-popup-and-right-click-does-not-work-in-firefox/#ContinueReading">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/18/change-the-pygment-lexer-of-octopress/">修改octopress的pygment语法</a></h1>
<p class="meta">
<time datetime="2012-08-18T18:43:00+08:00" pubdate="pubdate" data-updated="true">Aug 18<span>th</span>, 2012</time>
<span class="tags">
Tags:
<a href='/tags/octopress/'>octopress</a>, <a href='/tags/pygement/'>pygement</a>, <a href='/tags/python/'>python</a>, <a href='/tags/regular-expression/'>regular expression</a>, <a href='/tags/lexer/'>lexer</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=修改octopress的pygment语法 - &url=http://www.dyfeng.org/2012/08/18/change-the-pygment-lexer-of-octopress/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=修改octopress的pygment语法 - &url=http://www.dyfeng.org/2012/08/18/change-the-pygment-lexer-of-octopress/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=修改octopress的pygment语法 - http://www.dyfeng.org/2012/08/18/change-the-pygment-lexer-of-octopress/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>最近我在写一篇关于Git使用的文章,里面贴了大量<code>bash</code>命令。我的语法高亮是用Octopress自带的<code>pygements.rb</code>,用起来总觉得不大爽,因为他高亮的地方实在是太少了,只有少量的命令有高亮。自己动手丰衣足食,下面记录我修改的过程:</p>
</div>
<footer class="align-r">
<a href="/2012/08/18/change-the-pygment-lexer-of-octopress/#ContinueReading">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/12/all-about-git/">Git深入浅出学习</a></h1>
<p class="meta">
<time datetime="2012-08-12T00:38:00+08:00" pubdate="pubdate" data-updated="true">Aug 12<span>th</span>, 2012</time>
<span class="tags">
Tag:
<a href='/tags/git/'>git</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=Git深入浅出学习 - &url=http://www.dyfeng.org/2012/08/12/all-about-git/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=Git深入浅出学习 - &url=http://www.dyfeng.org/2012/08/12/all-about-git/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=Git深入浅出学习 - http://www.dyfeng.org/2012/08/12/all-about-git/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>在看这篇文章之前…</p>
<ul>
<li><p>如果你只是在找Git的使用命令,而不是想深入学习Git,请绕道。</p>
<p>Git和Linux一样,不是学几个命令就能理解到他的精髓的。</p></li>
<li><p>什么?你在Windows下?那你一定懂Cygwin了。不知道Cygwin?那你看这篇文章就有点吃力了。还不会用命令行?那你可以绕道了,这篇文章对你来说是天书。</p></li>
<li><p>请先忘记你之前所了解关于Git的一切,因为网络上的文章有99%都是以纰传纰的!!</p></li>
<li><p>请先忘记你所有学的其他版本管理系统。</p>
<p>请统统忘记<code>Svn</code>、<code>Cvs</code>、<code>Mercury</code>等,因为Git的思想跟实现跟他们有天大的区别!!</p></li>
<li><p>请不要急于求成,网上99%速成的教程都是有速度没质量的。</p>
<p>我不是说他们写的质量差,而是因为很多东西他都给简化掉了,让人有个错觉:这个很简单。其实这是不利于学习的。</p></li>
<li><p>请先从<code>最基础</code>的学起,而不是直接看操作命令,否则你只会只其然而不知其所以然,最后看到一头雾水。</p></li>
<li><p>我一开始将不会讲解任何关于使用Git的命令,而是先讲解Git的<code>底层原理</code>,如果你耐不住性子的请不要看。但我相信,这会是最快入门Git的方法之一。</p></li>
<li><p>你大概需要几天时间来消化和试验,所以不用急,慢慢看。反正你都误用了这么长时间了,花点时间来正确认识Git还是值得的。</p></li>
</ul>
<!-- 因为囊括的东西比较多,所以我这篇文章比较。对于一个作者来说,罗列知识点很容易,但你要把知识点组织起来,让人思路清晰,脉络通畅,那就是难点了。 -->
<!-- -->
<!-- 建议阅读方法: -->
<!-- -->
<!-- 0. 你可以先大概浏览一下`Local本地使用`和`Remote远程相关使用`这两章,感受一下Git的大概使用,这两章是讲述Git的在各种使用场景下的命令,不必精读。如果只是想查找命令的童鞋,看这章就可以了。 -->
<!-- 1. 再看看第一章`Git基础讲解`,最基本的概念和Git的运作方式会在这里讲述。 -->
<!-- 2. 当你遇到有不明白的术语或者词汇,不妨到`相关术语以及本文翻译`那章找找。 -->
<!-- 3. 再回来`Local本地使用`和`Remote远程相关使用`这两章。相信这个时候你应该能通过这命令,而知道他们底层究竟是做了什么操作。 -->
<!-- 4. 有空的时候可以看看`小技巧` -->
<!-- 5. 如果对Git的使用还有什么疑问,可以留言。本人也是初学Git,可以共同探讨学习。 -->
</div>
<footer class="align-r">
<a href="/2012/08/12/all-about-git/#ContinueReading">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/12/bash-completion-for-rake/">为rake添加命令补全</a></h1>
<p class="meta">
<time datetime="2012-08-12T00:32:00+08:00" pubdate="pubdate" data-updated="true">Aug 12<span>th</span>, 2012</time>
<span class="tags">
Tags:
<a href='/tags/linux/'>linux</a>, <a href='/tags/bash/'>bash</a>, <a href='/tags/completion/'>completion</a>, <a href='/tags/rake/'>rake</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=为rake添加命令补全 - &url=http://www.dyfeng.org/2012/08/12/bash-completion-for-rake/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=为rake添加命令补全 - &url=http://www.dyfeng.org/2012/08/12/bash-completion-for-rake/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=为rake添加命令补全 - http://www.dyfeng.org/2012/08/12/bash-completion-for-rake/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>为了用上Octopress,最近我没有少跟rake打交道。不过用起来始终有点不爽–命令补全没有了,没有make用得那么爽。虽然用<code>rake -T</code>可以列出所有的任务,但是始终没有一个Tab键补全方便。</p>
<p>幸亏觉得不方便的不止我一个人,Google了下,发现已经有人写出了基于bash-completion的<a href="http://turadg.aleahmad.net/2011/02/bash-completion-for-rake-tasks/">补全插件</a>,还带缓存的。</p>
</div>
<footer class="align-r">
<a href="/2012/08/12/bash-completion-for-rake/#ContinueReading">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/12/using-octopress-as-github-blog/">Using Octopress as Github Blog on Ubuntu 12.04</a></h1>
<p class="meta">
<time datetime="2012-08-12T00:00:00+08:00" pubdate="pubdate" data-updated="true">Aug 12<span>th</span>, 2012</time>
<span class="tags">
Tags:
<a href='/tags/github/'>github</a>, <a href='/tags/octopress/'>octopress</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=Using Octopress as Github Blog on Ubuntu 12.04 - &url=http://www.dyfeng.org/2012/08/12/using-octopress-as-github-blog/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=Using Octopress as Github Blog on Ubuntu 12.04 - &url=http://www.dyfeng.org/2012/08/12/using-octopress-as-github-blog/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=Using Octopress as Github Blog on Ubuntu 12.04 - http://www.dyfeng.org/2012/08/12/using-octopress-as-github-blog/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>本来我的Github blog是使用<code>Jekyll-Bootstrap</code>作为生成引擎。不过他是把文章发给Github解析的,由于Github出于安全考虑,限制ruby脚本的运行,这样就导致很多功能实现不了。这时候我发现了<code>Octopress</code>引擎,他把你的branch分成两个,一个master,负责放置静态的页面,一个是source,放置程序本身和Markdown日志。</p>
</div>
<footer class="align-r">
<a href="/2012/08/12/using-octopress-as-github-blog/#ContinueReading">Read on →</a>
</footer>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/11/first-post-on-github/">First Post on Github</a></h1>
<p class="meta">
<time datetime="2012-08-11T00:00:00+08:00" pubdate="pubdate" data-updated="true">Aug 11<span>th</span>, 2012</time>
<span class="tags">
Tag:
<a href='/tags/github/'>github</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=First Post on Github - &url=http://www.dyfeng.org/2012/08/11/first-post-on-github/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=First Post on Github - &url=http://www.dyfeng.org/2012/08/11/first-post-on-github/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=First Post on Github - http://www.dyfeng.org/2012/08/11/first-post-on-github/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>Included file ‘JB/setup’ not found in _includes directory</p>
<p>终于出炉了!!这是我第一篇用github做blog的文章!!小生愚钝,在Win7下弄了4个小时才弄出来。遇到了cygwin和gem不兼容、gem源被墙、jekyll在Win7下各种奇怪的症状…得感叹下在Windows下生活的孩子不容易吖。</p>
<p>因为在Windows下操作,入乡随俗地下载了个Github的Windows客户端,那界面很炫,很有Win8 feel,难道这就是传说中的WinForm。可惜就是push的时候太慢了点,感觉要比命令行下要慢半拍。而且他在界面里不叫push,叫sync,这个名词更容易让人理解。</p>
<p>下面是各种华丽的Markdown测试</p>
<pre class="prettyprint">
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
</pre>
<pre class="prettyprint">
##大标题
###小标题
####小小标题
#####小小小标题
######你还能再小点不
#######其实我能一直地小,只是css没有定义到了
</pre>
<h2>大标题</h2>
<h3>小标题</h3>
<h4>小小标题</h4>
<h5>小小小标题</h5>
<h6>你还能再小点不</h6>
<h6>#其实我能一直地小,只是css没有定义到了</h6>
<pre class="prettyprint">
*强调一下*
**再强调一下**
***我次次强调我容易吗我***
</pre>
<p><em>强调一下</em></p>
<p><strong>再强调一下</strong></p>
<p><strong><em>我次次强调我容易吗我</em></strong></p>
</div>
</article>
<article>
<header>
<h1 class="entry-title"><a href="/2012/08/11/decrease-threads-with-xampp/">减少xampp内存占用</a></h1>
<p class="meta">
<time datetime="2012-08-11T00:00:00+08:00" pubdate="pubdate" data-updated="true">Aug 11<span>th</span>, 2012</time>
<span class="tags">
Tags:
<a href='/tags/linux/'>linux</a>, <a href='/tags/xampp/'>xampp</a>, <a href='/tags/apache/'>apache</a>, <a href='/tags/moodle/'>moodle</a>
</span>
<span class="share-to-weibo">
<a href="javascript:void(0)" onclick="window.open('http://service.weibo.com/share/share.php?appkey=&ralateUid=&title=减少xampp内存占用 - &url=http://www.dyfeng.org/2012/08/11/decrease-threads-with-xampp/', null, 'width=615,height=505,toolbar=0,status=0')" class="sina-weibo" title="分享到新浪微博"></a>
<a href="javascript:void(0)" onclick="window.open('http://share.v.t.qq.com/index.php?c=share&a=index&appkey=&title=减少xampp内存占用 - &url=http://www.dyfeng.org/2012/08/11/decrease-threads-with-xampp/', null, 'width=700,height=680,toolbar=0,status=0')" class="tencent-weibo" title="分享到腾讯微博"></a>
<a href="javascript:void(0)" onclick="window.open('https://twitter.com/intent/tweet?text=减少xampp内存占用 - http://www.dyfeng.org/2012/08/11/decrease-threads-with-xampp/', null, 'width=600,height=300,toolbar=0,status=0')" class="twitter" title="分享到Twitter"></a>
</span>
</p>
</header>
<div class="entry-content typo"><p>最近有个改写moodle系统插件的项目,所以我又重操起php的老行当。moodle是一个非常不错的考试系统,多种题型,多种计分方式,唯一的缺点就是文档太少,非常的缺…开发人员列表里面也看到了好几个中国人的名字。</p>
<p>下载,放到htdocs,<code>sudo lampp start</code>,结果发现他竟然要求php5.3以上。我的php还是5.1的老版本,那没法,唯有下载个最新的xampp吧。一切还算顺利,除了xampp好像怪怪的。因为我改了配置文件后,再重启,他竟然好像没有反应,这个到现在还是个不解之谜。</p>
<p>在开发的过程中,我还发现电脑卡了很多,<code>ps -A|grep httpd</code>一看,哇的一刷。内存给我用了几百兆了,虽然我有4G也不是这样浪费的嘛,我只是开发而已,没有必要开这么线程。下面记录一下给xampp减少线程的方法。</p>
</div>
<footer class="align-r">
<a href="/2012/08/11/decrease-threads-with-xampp/#ContinueReading">Read on →</a>
</footer>
</article>
</section>
<footer class="footer">
©2012 (≧▼≦) 喵喵
-
Powered by <a href="http://octopress.org" target="_blank">Octopress</a>
</footer>
<ul id="social-links">
<!-- GitHub -->
<li>
<a href="https://github.com/DYFeng" target="_blank">
<svg width="40" height="40" class="github" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path fill="#f9f9f9" d="M28.436,15.099C27.235,14.897,25.985,14.764,24.97,14.728L24.791,14.722C24.832,14.632,24.863,14.571,24.873,14.562C24.895,14.543999999999999,24.913,14.468,24.915000000000003,14.394C24.915000000000003,14.353,24.933000000000003,14.22,24.961000000000002,14.044C25.236,14.054,25.601000000000003,14.062000000000001,25.999000000000002,14.065000000000001C27.536,14.077000000000002,29.144000000000002,14.201,30.247000000000003,14.396C30.904000000000003,14.512,31.121000000000002,14.508000000000001,30.636000000000003,14.39C30.145000000000003,14.271,28.689000000000004,14.096,27.529000000000003,14.020000000000001C26.750000000000004,13.967,25.633000000000003,13.947000000000001,24.975000000000005,13.958000000000002C24.994000000000003,13.844000000000001,25.016000000000005,13.717000000000002,25.039000000000005,13.587000000000002C25.132000000000005,13.084000000000001,25.163000000000004,12.578000000000001,25.165000000000006,11.571000000000002C25.167000000000005,10.009000000000002,25.083000000000006,9.579,24.574000000000005,8.546000000000001C24.367000000000004,8.124,24.133000000000006,7.766000000000001,23.850000000000005,7.442000000000001C24.097000000000005,6.713000000000001,24.091000000000005,5.584000000000001,23.835000000000004,4.594000000000001C23.624000000000006,3.782000000000001,23.550000000000004,3.7300000000000013,22.814000000000004,3.886000000000001C22.19,4.019,21.69,4.2,21.049,4.523C20.746,4.675999999999999,20.328,4.914,20.025,5.101C19.235,4.823,18.418,4.639,17.546,4.54C16.662,4.44,14.495,4.496,13.725999999999999,4.638C12.973999999999998,4.777,12.296999999999999,4.947,11.684,5.149C11.378,4.96,10.934,4.705,10.616999999999999,4.545C9.973,4.221,9.473,4.041,8.847,3.908C8.113,3.751,8.036999999999999,3.804,7.827,4.616C7.567,5.619,7.5649999999999995,6.7669999999999995,7.822,7.494C7.852,7.577,7.87,7.636,7.877,7.682C6.835,8.994,6.495,10.462,6.721,12.511C6.78,13.045,6.871,13.535,6.998,13.984C6.333,13.98,5.3870000000000005,14.004,4.704000000000001,14.048C3.5420000000000007,14.125,2.0860000000000007,14.298,1.5950000000000006,14.417C1.1110000000000007,14.535,1.3260000000000005,14.539,1.9840000000000007,14.424C3.0870000000000006,14.229999999999999,4.696000000000001,14.104,6.232000000000001,14.093C6.522000000000001,14.092,6.793000000000001,14.086,7.026000000000002,14.08C7.096000000000002,14.317,7.176000000000002,14.543,7.267000000000001,14.758000000000001L7.26,14.759C6.245,14.794,4.996,14.927,3.795,15.129C2.894,15.28,1.564,15.581999999999999,1.4089999999999998,15.669C1.2459999999999998,15.76,1.3789999999999998,15.74,2.077,15.563C3.3499999999999996,15.241000000000001,5.005,14.994,7.055,14.822000000000001L7.284,14.802000000000001C7.724,15.824000000000002,8.402,16.604000000000003,9.36,17.212000000000003C9.946,17.585000000000004,10.885,17.968000000000004,11.357999999999999,18.028000000000002C11.488,18.044,11.866,18.122000000000003,12.197999999999999,18.200000000000003C12.530999999999999,18.278000000000002,13.181999999999999,18.395000000000003,13.643999999999998,18.462000000000003H13.654999999999998C13.645999999999997,18.468000000000004,13.637999999999998,18.472000000000005,13.629999999999997,18.478C13.069999999999997,18.769000000000002,12.705999999999998,19.222,12.460999999999997,19.935000000000002C12.350999999999997,19.968000000000004,12.213999999999997,20.013,12.065999999999997,20.064000000000004C11.536999999999997,20.244000000000003,11.330999999999998,20.281000000000002,10.794999999999998,20.285000000000004C10.238999999999997,20.289000000000005,10.106999999999998,20.265000000000004,9.774999999999999,20.109000000000005C9.291999999999998,19.884000000000004,8.841999999999999,19.470000000000006,8.541999999999998,18.976000000000006C8.040999999999999,18.150000000000006,7.174999999999998,17.566000000000006,6.452999999999998,17.566000000000006C5.835999999999998,17.566000000000006,5.718999999999998,17.816000000000006,6.164999999999997,18.181000000000004C6.836999999999997,18.730000000000004,7.338999999999997,19.290000000000006,7.544999999999997,19.718000000000004C7.660999999999997,19.958000000000002,7.838999999999997,20.329000000000004,7.9419999999999975,20.542000000000005C8.050999999999998,20.769000000000005,8.283999999999997,21.077000000000005,8.505999999999997,21.290000000000006C9.027999999999997,21.788000000000007,9.531999999999996,22.026000000000007,10.283999999999997,22.138000000000005C10.787999999999997,22.212000000000007,10.911999999999997,22.212000000000007,11.506999999999998,22.136000000000006C11.793999999999999,22.101000000000006,12.035999999999998,22.060000000000006,12.252999999999998,22.009000000000007C12.252999999999998,22.253000000000007,12.252999999999998,22.534000000000006,12.252999999999998,22.864000000000008C12.252999999999998,24.63000000000001,12.231999999999998,25.198000000000008,12.161999999999999,25.364000000000008C12.03,25.680000000000007,11.733999999999998,26.00500000000001,11.446,26.151000000000007C11.158999999999999,26.297000000000008,11.07,26.458000000000006,11.190999999999999,26.606000000000005C11.258,26.686000000000003,11.386999999999999,26.700000000000006,11.819999999999999,26.672000000000004C12.641999999999998,26.621000000000006,13.222999999999999,26.317000000000004,13.518999999999998,25.781000000000006C13.613999999999999,25.609000000000005,13.636,25.263000000000005,13.665999999999999,23.463000000000005C13.697999999999999,21.510000000000005,13.711999999999998,21.322000000000003,13.838999999999999,21.043000000000006C13.915999999999999,20.877000000000006,14.027,20.697000000000006,14.088999999999999,20.648000000000007C14.192999999999998,20.56200000000001,14.2,20.732000000000006,14.2,23.068000000000005C14.199,25.646000000000004,14.173,25.957000000000004,13.915,26.453000000000003C13.857,26.566000000000003,13.747,26.713000000000005,13.67,26.783C13.535,26.906000000000002,13.478,27.221,13.572,27.316000000000003C13.726999999999999,27.470000000000002,14.504,27.228,14.927999999999999,26.894000000000002C15.649999999999999,26.322000000000003,15.735999999999999,25.849000000000004,15.741999999999999,22.433L15.745,20.429L15.963999999999999,20.45L16.183,20.47L16.219,23.090999999999998C16.26,26.041999999999998,16.266000000000002,26.084999999999997,16.768,26.654999999999998C17.053,26.976999999999997,17.34,27.154999999999998,17.807000000000002,27.293999999999997C18.432000000000002,27.481999999999996,18.62,27.191999999999997,18.200000000000003,26.688999999999997C17.743000000000002,26.141999999999996,17.721000000000004,25.932999999999996,17.746000000000002,22.694999999999997C17.763,20.618999999999996,17.763,20.618999999999996,17.897000000000002,20.739999999999995C18.179000000000002,20.995999999999995,18.233,21.415999999999993,18.233,23.362999999999996C18.233,25.780999999999995,18.302,26.010999999999996,19.156,26.432999999999996C19.555,26.627999999999997,19.666999999999998,26.651999999999997,20.177999999999997,26.653999999999996C20.721999999999998,26.655999999999995,20.754999999999995,26.647999999999996,20.775,26.505999999999997C20.791999999999998,26.391,20.724999999999998,26.312999999999995,20.471,26.157999999999998C20.138,25.953,19.907,25.691,19.762,25.360999999999997C19.707,25.233999999999998,19.67,24.401999999999997,19.645,22.688999999999997C19.608999999999998,20.295999999999996,19.601,20.186999999999998,19.451999999999998,19.811999999999998C19.250999999999998,19.307999999999996,18.944,18.909999999999997,18.555,18.645999999999997C18.454,18.58,18.352999999999998,18.525,18.222,18.483999999999998C18.383000000000003,18.468,18.539,18.450999999999997,18.69,18.429C20.262,18.22,21.093,18.046,21.76,17.787999999999997C23.171000000000003,17.244999999999997,24.125,16.342999999999996,24.642000000000003,15.063999999999997C24.688000000000002,14.949999999999996,24.734,14.841999999999997,24.773000000000003,14.754999999999997L25.171000000000003,14.787999999999997C27.222,14.960999999999997,28.877000000000002,15.207999999999997,30.150000000000002,15.530999999999997C30.848000000000003,15.707999999999997,30.981,15.728999999999997,30.818,15.635999999999997C30.666,15.551,29.336,15.25,28.436,15.099ZM22.422,15.068C22.189,15.58,21.539,16.238,21.014,16.496C20.496,16.752,19.683999999999997,16.947,18.764,17.04C18.134999999999998,17.104,14.626999999999999,17.122999999999998,14.047999999999998,17.066C12.130999999999998,16.878,11.056999999999999,16.509,10.264999999999999,15.77C9.514999999999999,15.068,9.165,14.115,9.225999999999999,12.942C9.264999999999999,12.208,9.441999999999998,11.747,9.905,11.187000000000001C10.325999999999999,10.677000000000001,10.769,10.362000000000002,11.290999999999999,10.202000000000002C11.727999999999998,10.068000000000001,13.068999999999999,10.056000000000001,14.871999999999998,10.172000000000002C15.668999999999999,10.223000000000003,16.328,10.223000000000003,17.124,10.172000000000002C19.009999999999998,10.053000000000003,20.269,10.066000000000003,20.733999999999998,10.210000000000003C21.465,10.436000000000003,22.130999999999997,11.044000000000002,22.531,11.854000000000003C22.711,12.216000000000003,22.746,12.370000000000003,22.772,12.929000000000002C22.808,13.699,22.675,14.517,22.422,15.068ZM12.912,11.762C11.839,11.574,11.226,13.411000000000001,12.049000000000001,14.349C12.440000000000001,14.794,12.787,14.867,13.221000000000002,14.597C13.623000000000001,14.346,13.841000000000001,13.876999999999999,13.841000000000001,13.269C13.841,12.458,13.472,11.862,12.912,11.762ZM19.425,11.872C18.352,11.684,17.738,13.519,18.561,14.458C18.953,14.903,19.299,14.977,19.734,14.705C20.135,14.455,20.354000000000003,13.985,20.354000000000003,13.377C20.354,12.569,19.985,11.971,19.425,11.872ZM16.539,15.484C16.516000000000002,15.558,16.404,15.668,16.291,15.727C16.005,15.874,15.799,15.823,15.497,15.548C15.31,15.379,15.225,15.29,15.168,15.467C15.114999999999998,15.631,15.447999999999999,15.96,15.705,16.061C15.941,16.155,16.11,16.158,16.366,16.051C16.62,15.944999999999999,16.842,15.659999999999998,16.842,15.474999999999998C16.842,15.303,16.595,15.311,16.539,15.484ZM16.222,14.909C16.385,14.765,16.422,14.469000000000001,16.266000000000002,14.312000000000001S15.793000000000001,14.179000000000002,15.669000000000002,14.355C15.525000000000002,14.561,15.602000000000002,14.718,15.705000000000002,14.885C15.865,15.009,16.08,15.034,16.222,14.909Z" />
</svg>
</a>
</li>
<!-- Sina Weibo -->
<li>
<a href="http://weibo.com/dyfeng" target="_blank">
<svg width="40" height="40" class="sina-weibo" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path fill="#f9f9f9" d="M9.641,17.231c-3.799,0.374-7.079-1.343-7.326-3.838c-0.246-2.494,2.634-4.82,6.434-5.196 c3.798-0.377,7.079,1.34,7.326,3.835C16.32,14.529,13.44,16.855,9.641,17.231 M17.24,8.952c-0.322-0.098-0.544-0.163-0.375-0.587 c0.365-0.921,0.403-1.718,0.007-2.286c-0.745-1.063-2.783-1.005-5.12-0.027c0-0.002-0.734,0.321-0.546-0.261 c0.359-1.156,0.305-2.123-0.254-2.682c-1.267-1.271-4.639,0.047-7.53,2.936C1.257,8.209,0,10.504,0,12.488 c0,3.796,4.866,6.104,9.628,6.104c6.241,0,10.393-3.627,10.393-6.506C20.021,10.347,18.557,9.358,17.24,8.952" />
<path fill="#f9f9f9" d="M21.384,2.005c-1.507-1.671-3.73-2.308-5.782-1.872l0,0c-0.475,0.102-0.778,0.569-0.676,1.043 c0.101,0.473,0.567,0.777,1.043,0.674c1.459-0.31,3.039,0.145,4.111,1.332c1.069,1.188,1.362,2.806,0.902,4.225v0.001 c-0.149,0.462,0.104,0.957,0.566,1.106c0.461,0.149,0.956-0.104,1.105-0.565c0,0,0-0.002,0-0.004 C23.299,5.95,22.894,3.674,21.384,2.005" />
<path fill="#f9f9f9" d="M19.07,4.094c-0.734-0.814-1.817-1.123-2.817-0.912c-0.409,0.088-0.671,0.49-0.581,0.899 c0.088,0.407,0.489,0.67,0.896,0.58v0.001c0.488-0.104,1.019,0.047,1.379,0.445c0.359,0.398,0.455,0.941,0.301,1.416l0,0 c-0.127,0.398,0.09,0.825,0.488,0.954c0.396,0.127,0.824-0.091,0.952-0.488C20,6.017,19.805,4.908,19.07,4.094" />
<path fill="#f9f9f9" d="M9.85,12.713c-0.132,0.229-0.426,0.338-0.656,0.242c-0.227-0.094-0.297-0.348-0.169-0.572 c0.132-0.221,0.416-0.328,0.64-0.239C9.895,12.227,9.978,12.483,9.85,12.713 M8.64,14.268c-0.367,0.586-1.154,0.843-1.747,0.57 c-0.584-0.265-0.756-0.945-0.389-1.518c0.362-0.568,1.124-0.824,1.712-0.574C8.811,12.998,9.001,13.675,8.64,14.268 M10.021,10.118 c-1.808-0.47-3.852,0.431-4.637,2.023c-0.8,1.624-0.026,3.428,1.801,4.017c1.892,0.612,4.122-0.324,4.898-2.078 C12.848,12.367,11.891,10.602,10.021,10.118" />
</svg>
</a>
</li>
<!-- Twitter -->
<li>
<a href="https://twitter.com/#!/dyfeng88625" target="_blank">
<svg width="40" height="40" class="twitter" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path fill="#f9f9f9" d="M14.605,13.11C15.518,10.259,16.634,8.411999999999999,17.918,7.071999999999999C18.877,6.071999999999999,19.371,5.755999999999999,18.808999999999997,6.855999999999999C19.058999999999997,6.656999999999999,19.415,6.391999999999999,19.694,6.2509999999999994C21.249,5.518,21.136,6.132,20.067,6.7909999999999995C22.990000000000002,5.7459999999999996,22.887,7.076999999999999,19.796,7.739999999999999C22.323,7.786999999999999,25.009999999999998,9.395999999999999,25.783,12.817C25.888,13.291,25.762,13.245000000000001,26.247,13.331C27.294,13.517,28.277,13.504999999999999,29.238,13.200999999999999C29.134,13.908999999999999,28.198999999999998,14.367999999999999,26.741,14.671999999999999C26.2,14.783999999999999,26.09,14.754999999999999,26.736,14.900999999999998C27.535,15.079999999999998,28.426000000000002,15.126999999999999,29.37,15.082999999999998C28.636000000000003,15.928999999999998,27.465,16.360999999999997,26.016000000000002,16.378999999999998C25.112000000000002,19.688,23.040000000000003,22.057,20.42,23.543C14.268,27.035,5.312000000000001,26.527,0.8210000000000015,20.183999999999997C3.7680000000000016,22.496,8.133000000000003,23.005,11.376000000000001,19.782999999999998C9.251000000000001,19.782999999999998,8.702000000000002,18.191999999999997,10.386000000000001,17.333999999999996C8.791,17.316999999999997,7.7780000000000005,16.812999999999995,7.183000000000002,15.899999999999997C6.957000000000002,15.552999999999997,6.9540000000000015,15.525999999999996,7.323000000000001,15.259999999999996C7.7280000000000015,14.966999999999997,8.281,14.836999999999996,8.851,14.792999999999996C7.200000000000001,14.319999999999995,6.191000000000001,13.457999999999995,5.8420000000000005,12.301999999999996C5.726000000000001,11.919999999999996,5.708,11.938999999999997,6.098000000000001,11.839999999999996C6.478000000000001,11.742999999999997,6.968000000000001,11.691999999999997,7.407000000000001,11.669999999999996C6.11,10.88,5.336,9.917,5.139,8.852C4.953,7.846,5.144,8.104000000000001,5.897,8.392C9.263,9.68,12.619,11.062,14.605,13.11L14.605,13.11Z" />
</svg>
</a>
</li>
</ul>
<script src="/javascripts/application.js"></script>
<iframe src="/offline-cache.html" style="display:none"></iframe>
</body>
</html>