-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
1494 lines (1123 loc) · 94.5 KB
/
atom.xml
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
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[ZLoves world]]></title>
<link href="http://ZuLove.github.com/atom.xml" rel="self"/>
<link href="http://ZuLove.github.com/"/>
<updated>2013-04-12T11:25:59+08:00</updated>
<id>http://ZuLove.github.com/</id>
<author>
<name><![CDATA[ZLoves world]]></name>
</author>
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[Learn Tex]]></title>
<link href="http://ZuLove.github.com/blog/2013/04/12/learn-tex/"/>
<updated>2013-04-12T00:00:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/04/12/learn-tex</id>
<content type="html"><![CDATA[<p>1、空白、制表符,多个空白<---------->一个空白字符; <br/>
2、句首空白被忽略; <br/>
3、单个空行<---------->一个空白距离; <br/>
4、两个文本行间的一个或多个空白行<-------->一个空白行。即分段; <br/>
5、$、%、<sup>、&、_、{、}<--------->前加\才能正常在输出这些字符;</sup> <br/>
6、<—–>不能在前面加\,\为换行符; <br/>
7、$\backslash$<------>显示为一个‘\’; <br/>
8、LaTex命令<------>大小写敏感,由反斜杠+字母或者反斜杠+非字母字符组成,前者以任何非字母结束;命令后的空字符都会被忽略; <br/>
9、{}阻止LaTex命令吃掉后面的空字符; <br/>
10、LaTex后面可以用一个特殊的空格命令或在{}+空格来显示一个空格; <br/>
11、LaTex命令参数<----->在命令后用{parameter},可选参数在命令后用[parameter];12、%忽略%后该行的内容,或在链接没有空白的较长输入; <br/>
13、段落中原文打印 <----->行间语法\verb[<em>]+text+,’+’可以是除</em>或空格的任何字符 <br/>
14、大范围的原文打印<----->\begin{verbatim[<em>]}text\end{verbatim[</em>]} <br/>
15、数学公式的指数和下标可以能过使用^ 和<em> 两个符号来指定 <br/>
16、平方根 (square root) 输入用\sqrt;n 次根用\sqrt[n] 来得到。根号的大小由LATEX自动决定。如果仅仅需要根号,可以用\surd 得到。 <br/>
17、命令\overline 和\underline 产生水平线,它们会被放在表达式的正上方或是正下方。 <br/>
18、命令\overbrace 和\underbrace 可以在一个表达式的上方或下方生成水平括号<br/>
19、’、得一个’,”、得”; <br/>
20、向量可以通过在一个变量上方添加小箭头(arrow symbols) 来指定。为此,使用\vec 命令即可。\overrightarrow 和\overleftarrow 这两个命令可以用来表示一个从 A 到 B 的向量 <br/>
20、\stackrel 命令会把其第一个参数中的符号以上标大小放在第二个上面,而第二个符号则以正常的位置摆放。 <br/>
21、积分号 (integral operator) 可以用\int 产生,求和号 (sum operator) 用\sum命令,而乘积号 (product operator) 要用\prod 命令。上限和下限用^ 和</em> 来指定,如同上标与下标一样 <br/>
22、\ldots 得到在基线上的点列而\cdots 是上下居中的点列。另外,还有\vdots 命令产生竖直的点列,\ddots 产生对角线的点列。</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[install-Latex]]></title>
<link href="http://ZuLove.github.com/blog/2013/04/03/install-latex/"/>
<updated>2013-04-03T21:16:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/04/03/install-latex</id>
<content type="html"><![CDATA[<h2>1、下载在线安装LaTex脚本:</h2>
<p><a href="http://ftp.ctex.org/mirrors/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz">install-tl-unx.tar.gz</a>
再按如下命令安装:</p>
<pre><code>$tar -xvf install-tl-unx.tar.gz
$cd install-tl-20130402
$sudo ./install-tl
[... messages omitted ...]
Enter command: i
[... when done, see below for post-install ...]
</code></pre>
<p>tips:<br/>
如果以前装过旧版本的Tex,则按如下命令清除:</p>
<pre><code>$sudo rm -rf /usr/local/texlive/2012
$rm -rf ~/.texlive2012
</code></pre>
<p>当然上面安装的方法为text模型安装,下面则为GUI图形界面安装过程:</p>
<pre><code>$tar -xvf install-tl-unx.tar.gz
$cd install-tl-20130402
$sudo apt-get install perl-tk
$sudo ./install-tl --gui=perltk
</code></pre>
<p>接下来就是看图说话咯<br/>
so easy!<br/>
漫长的等待安装结束后基本就算安装成功了,接下来就是环境变量的设置了<br/>
设置方法按如下:</p>
<pre><code>$sudo gvim /etc/profile
</code></pre>
<p>然后在profile中添加如下语句:</p>
<pre><code>export PATH="$PATH:/usr/local/texlive/2012/bin/i386-linux"
export MANPATH="$MANPATH:/usr/local/texlive/2012/texmf/doc/man"
export INFOPATH="$INFOPATH:/usr/local/texlive/2012/texmf/doc/info"
</code></pre>
<p>测试是否安装成功如下:</p>
<pre><code>$tex --version
TeX 3.1415926 (TeX Live 2012)
kpathsea version 6.1.0
Copyright 2012 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
</code></pre>
<p> 使整个系统中能使用<strong>TEXLive</strong>的字体:</p>
<pre><code>$sudo cp /usr/local/texlive/2012/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
$sudo fc-cache -fsv
</code></pre>
<h2>Letex配置中文论文环境.</h2>
<p>查看本机中文字体:</p>
<pre><code>fc-list :lang=zh-cn
</code></pre>
<p>安装Latex中文支持:</p>
<pre><code>sudo apt-get install latex-cjk-all
</code></pre>
<p>注销在登录,
新建文件2.tex输入以下内容:</p>
<figure class='code'><figcaption><span> (2.tex)</span> <a href='http://ZuLove.github.com/downloads/code/2.tex'>download</a></figcaption>
<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>
</pre></td><td class='code'><pre><code class='tex'><span class='line'><span class="k">\documentclass</span><span class="nb">{</span>article<span class="nb">}</span>
</span><span class='line'><span class="k">\usepackage</span><span class="nb">{</span>CJKutf8<span class="nb">}</span>
</span><span class='line'><span class="k">\begin</span><span class="nb">{</span>document<span class="nb">}</span>
</span><span class='line'><span class="k">\begin</span><span class="nb">{</span>CJK<span class="nb">}{</span>UTF8<span class="nb">}{</span>gkai<span class="nb">}</span>
</span><span class='line'>这是一个楷体中文测试,处理简体字。
</span><span class='line'><span class="k">\end</span><span class="nb">{</span>CJK<span class="nb">}</span>
</span><span class='line'><span class="k">\begin</span><span class="nb">{</span>CJK<span class="nb">}{</span>UTF8<span class="nb">}{</span>gbsn<span class="nb">}</span>
</span><span class='line'>这是一个宋体中文测试,处理简体字。
</span><span class='line'><span class="k">\end</span><span class="nb">{</span>CJK<span class="nb">}</span>
</span><span class='line'><span class="k">\begin</span><span class="nb">{</span>CJK<span class="nb">}{</span>UTF8<span class="nb">}{</span>bkai<span class="nb">}</span>
</span><span class='line'>這是一個big5編碼的楷體中文測試,處理繁體文字。
</span><span class='line'><span class="k">\end</span><span class="nb">{</span>CJK<span class="nb">}</span>
</span><span class='line'><span class="k">\begin</span><span class="nb">{</span>CJK<span class="nb">}{</span>UTF8<span class="nb">}{</span>bsmi<span class="nb">}</span>
</span><span class='line'>這是一個个big5編碼的明體中文測試,處理繁體文字。
</span><span class='line'><span class="k">\end</span><span class="nb">{</span>CJK<span class="nb">}</span>
</span><span class='line'><span class="k">\end</span><span class="nb">{</span>document<span class="nb">}</span>
</span></code></pre></td></tr></table></div></figure>
<pre><code>pdflatex 2.tex
google-chrome 2.pdf
</code></pre>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[学习markdown]]></title>
<link href="http://ZuLove.github.com/blog/2013/04/02/learn-markdown/"/>
<updated>2013-04-02T23:23:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/04/02/learn-markdown</id>
<content type="html"><![CDATA[<h2>1、段落,标题,区块引用</h2>
<p>I、Markdown段落就直接写,不能有制表符,
段落之间的空行可以直接按回车键空行即可但不能tab键再回车。<br/>
换行在上一行的结尾添加两个以上的空格<br/>
paragraph example:</p>
<pre><code>Dear ZLove:
This is the first paragraph.
This is the last paragraph .
</code></pre>
<p>Result:<br/>
Dear ZLove:<br/>
This is the first paragraph.</p>
<p>This is the last paragraph .<br/>
II、Markdown标题支持两种标题的语法Setext与axt<br/>
a)、Setext利用底线形式<br/>
’=’顶级标题H1,’-‘二级标题H2<br/>
b)、axt利用在行首如’#’;<br/>
’#’的数量从一到六,表示H1~H6级标题</p>
<p>Title example:</p>
<pre><code>This is one H1 title
==================
This is one H2 title
------------------
#This is another H1 title
##This is another H2 title
........
######This is one H6 title
</code></pre>
<p>reslut:</p>
<h1>This is one H1 title</h1>
<h2>This is one H2 title</h2>
<h1>This is another H1 title</h1>
<h2>This is another H2 title</h2>
<p>……..</p>
<h6>This is one H6 title</h6>
<p>III、Markdown区块引用应用email的’>’尖括号。<br/>
tips:<br/>
区块引用可以嵌套(例如:引用内的引用),只要根据层次加上不同数量的 ‘>’<br/>
引用的区块内可以使用其他的 Markdown 语法,包括标题、列表、代码区块等<br/>
example:</p>
<pre><code>>This is a blockquote.
>This is the second paragraph in the blockquote.
>## This is an H2 in a blockquote
</code></pre>
<p>Result:</p>
<blockquote><p>This is a blockquote.<br/>
This is the second paragraph in the blockquote.</p>
<h2>This is an H2 in a blockquote</h2></blockquote>
<h2>2、列表、区块代码、分隔线</h2>
<p>I、Markdown列表支持有序和无序列表。<br/>
a)、无序列表在行首使用’+’、’-‘、’*’作为列表标记.<br/>
b)、有序列表在行首使用阿拉伯数字1,2,3加.作为列表标记.<br/>
tips:<br/>
有序列表中的数字标记不影响输出的HTML结果<br/>
列表项目可以包含多个段落,每个项目下的段落都必须缩进 4 个空格或是 1 个制表符<br/>
example:</p>
<pre><code>* red
* bule
* gree
5. red
2. bule
3. green
</code></pre>
<p>result一样: <br/>
* red<br/>
* bule<br/>
* green<br/>
tips、如果你想写下面的语句,则需用’\转移</p>
<pre><code>2008. This is a beautiful year
则需写成2008\. This is a beautiful year
</code></pre>
<p>2008. This is a beautiful year</p>
<p>II、区块代码<br/>
Markdown 中建立代码区块很简单,只要简单地留出一空行并在行首缩进 4 个空格或是 1 个制表符就可以,代码区块里面’&’ 、 ‘<’ 和 ‘>’ 会自动转成 HTML 实体,不用理会<br/>
Markdown区块代码语法如下</p>
<pre><code>This is regular paragraph
<code>
</code></pre>
<p>example:</p>
<pre><code>This a regular paragraph
#include<stdio.h>
int main()
{
char name[30];
int n;
scanf("%s %d",name,&n);
printf("%s",name);
return 0;
}
</code></pre>
<p>result:<br/>
This a regular paragraph</p>
<pre><code>#include<stdio.h>
int main()
{
char name[30];
int n;
scanf("%s %d",name,&n);
printf("%s",name);
return 0;
}
</code></pre>
<p>III、分隔线<br/>
Markdown分隔线语法:<br/>
在一行中用三个以上的星号、减号、底线来建立一个分隔线,行内不能有其他东西。你也可以在星号或是减号中间插入空格<br/>
example:</p>
<pre><code>* * * *
---
-----------------
_____________
</code></pre>
<p>result:</p>
<hr />
<h2>3、连接、强调、代码</h2>
<p>I、连接包含两种语法:<br/>
a)、行内式</p>
<pre><code>[link](http://....com "Title")
</code></pre>
<p>b)、参考式</p>
<pre><code>[link][id]
[id]: http://....com "Title"
</code></pre>
<p>tips:<br/>
Title为可选参数;<br/>
链接内容规定如下:<br/>
id可以是字母、数字、空白和标点符号,但是并不区分大小写<br/>
title 属性放到下一行,也可以加一些缩进<br/>
方括号(前面可以选择性地加上至多三个空格来缩进),里面输入链接文字<br/>
接着一个冒号<br/>
接着一个以上的空格或制表符<br/>
接着链接的网址<br/>
选择性地接着 title 内容,可以用单引号、双引号或是括弧包着</p>
<p>example:</p>
<pre><code>This is zulove's [home page](http://zulove.github.com "ZLove").
This is zulove's farovite [sites][hack].
[hack]: https://news.ycombinator.com/ 'ZLove'
</code></pre>
<p>result:<br/>
This is zulove’s <a href="http://zulove.github.com" title="ZLove">home page</a>.</p>
<p>This is zulove’s farovite <a href="https://news.ycombinator.com/" title="ZLove">sites</a>.</p>
<h5>tips:</h5>
<p>隐式链接标记功能让你可以省略指定链接标记,这种情形下,链接标记会视为等同于链接文字,要用隐式链接标记只要在链接文字后面加上一个空的方括号<br/>
链接到同样主机的资源,可以使用相对路径:</p>
<pre><code>[Google][]
[Google]: http://google.com/
See my [About](/about/) page for details.
</code></pre>
<p><a href="http://google.com/">Google</a></p>
<h4>II、强调</h4>
<p>Markdown使用(<em>)和下划线(_)表示强调:<br/>
一个星号(</em>)或一个(_)下划线被认为是[em][/em]<br/>
两个星号(**)或连个下划线(__)被认为是[strong][/strong]<br/>
example:</p>
<pre><code>This is a *human*
This is a big __humman__
</code></pre>
<p>result:<br/>
This is a <em>human</em><br/>
This is a big <strong>humman</strong>
tips:<br/>
如果 * 和 _ 两边都有空白的话,它们就只会被当成普通的符号<br/>
如果要在文字前后直接插入普通的星号或底线,你可以用反斜线</p>
<pre><code>\*this is beautiful\*
</code></pre>
<p>*this is beautiful*<br/>
III、代码<br/>
Markdown标记一小段行内代码用(‘)<br/>
如果要在代码区段内插入反引号,你可以用多个反引号来开启和结束代码区段.<br/>
代码区段的起始和结束端都可以放入一个空白,起始端后面一个,结束端前面一个,这样你就可以在区段的一开始就插入反引号</p>
<pre><code>这个是C打印函数 'printf()' ;
</code></pre>
<p>这个是C打印函数 ‘printf()’ ;</p>
<h2>3)、图片、自动链接、反斜杠</h2>
<p>I、Markdown插入图片有两种方式:行内式和参考式</p>
<pre><code>![Alt text](/path/to/img.jpg)
![Alt text](/path/to/img.jpg "title")
![Alt text][id]
[id]: url/to/image "title"
</code></pre>
<p>tips:<br/>
一个惊叹号 !<br/>
接着一个方括号,里面放上图片的替代文字<br/>
接着一个普通括号,里面放上图片的网址,最后还可以用引号包住并加上 选择性的 ‘title’ 文字。<br/>
[id]是图片参考的名称,图片参考的定义方式则和连结参考一样<br/>
Markdown 没有办法指定图片的宽高,如果你需要的话,你可以使用普通的 <img> 标签<br/>
II、自动连接</p>
<pre><code><http://>
</code></pre>
<p><a href="http://zulove.github.com">http://zulove.github.com</a><br/>
III、反斜杠<br/>
Markdown 可以利用反斜杠来插入一些在语法中有其它意义的符号<br/>
Markdown 支持以下这些符号前面加上反斜杠来帮助插入普通的符号:</p>
<pre><code>\ 反斜线
` 反引号
* 星号
_ 底线
{} 花括号
[] 方括号
() 括弧
# 井字号
+ 加号
- 减号
. 英文句点
! 惊叹号
</code></pre>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[archlinux安装xfce]]></title>
<link href="http://ZuLove.github.com/blog/2013/04/01/archlinux-xface-cn/"/>
<updated>2013-04-01T22:19:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/04/01/archlinux-xface-cn</id>
<content type="html"><![CDATA[<h2>1、安装xfce:</h2>
<p> a)、安装xorg:</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='objc'><span class='line'> <span class="n">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">xorg</span>
</span></code></pre></td></tr></table></div></figure>
<p> b)、安装图形驱动:</p>
<pre><code> 查看本机显卡:
</code></pre>
<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">$</span> <span class="n">lspci</span> <span class="o">|</span> <span class="n">grep</span> <span class="n">VGA</span>
</span><span class='line'> <span class="n">nVidia</span> <span class="n">Corporation</span> <span class="n">GT216</span> <span class="p">[</span><span class="n">GeForce</span> <span class="n">GT</span> <span class="mi">240</span><span class="n">M</span><span class="p">]</span> <span class="p">(</span><span class="n">rev</span> <span class="n">a2</span><span class="p">)</span>
</span></code></pre></td></tr></table></div></figure>
<p> 安装对应驱动:</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='objc'><span class='line'> <span class="err">#</span><span class="n">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">xf86</span><span class="o">-</span><span class="n">video</span><span class="o">-</span><span class="n">nouveau</span>
</span></code></pre></td></tr></table></div></figure>
<p> c)、安装xfce桌面系统</p>
<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">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">xfce4</span>
</span><span class='line'> <span class="n">cp</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">skel</span><span class="o">/</span><span class="n">xinitrc</span> <span class="o">~/</span><span class="p">.</span><span class="n">xinitrc</span>
</span></code></pre></td></tr></table></div></figure>
<p> 在.xinitrc后面添加:</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='objc'><span class='line'> <span class="n">exec</span> <span class="n">startxfce4</span>
</span></code></pre></td></tr></table></div></figure>
<p> 可以在终端手动启动:</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='objc'><span class='line'> <span class="n">$startx</span>
</span></code></pre></td></tr></table></div></figure>
<p> d)、安装登录管理器:</p>
<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="err">#</span> <span class="n">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">slim</span>
</span><span class='line'> <span class="err">#</span> <span class="n">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">slim</span><span class="o">-</span><span class="n">themes</span> <span class="n">archlinux</span><span class="o">-</span><span class="n">themes</span><span class="o">-</span><span class="n">slim</span>
</span></code></pre></td></tr></table></div></figure>
<p> 软件包 archlinux-themes-slim 包含了多个不同主题。可以在 /usr/share/slim/t hemes 中查看。在to see the themes available. Enter the theme name on the current_theme line in /etc/slim.conf:
编辑/etc/slim.conf中的current_theme那行,将”default”改为你想要的主题名:</p>
<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="err">#</span><span class="n">current_theme</span> <span class="k">default</span>
</span><span class='line'> <span class="n">current_theme</span> <span class="n">archlinux</span><span class="o">-</span><span class="n">simplyblack</span>
</span></code></pre></td></tr></table></div></figure>
<p> 要预览一个主题,可以运行</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='objc'><span class='line'> <span class="n">$</span> <span class="n">slim</span> <span class="o">-</span><span class="n">p</span> <span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">share</span><span class="o">/</span><span class="n">slim</span><span class="o">/</span><span class="n">themes</span><span class="o">/<</span><span class="n">theme</span> <span class="n">name</span><span class="o">></span>
</span></code></pre></td></tr></table></div></figure>
<pre><code>要退出,只需在登录行输入 "exit" 并回车。
用system方式使开机自动进入xfce4:
</code></pre>
<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="err">#</span> <span class="n">systemctl</span> <span class="n">enable</span> <span class="n">slim</span><span class="p">.</span><span class="n">service</span>
</span></code></pre></td></tr></table></div></figure>
<h2>2、xfce4 locale本地化:</h2>
<p> a)、 开启所需locales:</p>
<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">$</span> <span class="n">locale</span> <span class="o">-</span><span class="n">a</span> <span class="c1">//查看当前locale</span>
</span><span class='line'> <span class="n">$vi</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">locale</span><span class="p">.</span><span class="n">gen</span>
</span></code></pre></td></tr></table></div></figure>
<pre><code>删除需要的locale前面的#并保存
</code></pre>
<p> me:</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="n">en_US</span><span class="p">.</span><span class="n">UTF</span><span class="o">-</span><span class="mi">8</span> <span class="n">UTF</span><span class="o">-</span><span class="mi">8</span>
</span><span class='line'> <span class="n">en_US</span> <span class="n">ISO</span><span class="o">-</span><span class="mi">8859</span><span class="o">-</span><span class="mi">1</span>
</span><span class='line'> <span class="n">zh_CN</span><span class="p">.</span><span class="n">GB18030</span> <span class="n">GB18030</span>
</span><span class='line'> <span class="n">zh_CN</span><span class="p">.</span><span class="n">GBK</span> <span class="n">GBK</span>
</span><span class='line'> <span class="n">zh_CN</span><span class="p">.</span><span class="n">UTF</span><span class="o">-</span><span class="mi">8</span> <span class="n">UTF</span><span class="o">-</span><span class="mi">8</span>
</span><span class='line'> <span class="n">zh_CN</span> <span class="n">GB2312</span>
</span></code></pre></td></tr></table></div></figure>
<p> b)、运行</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='objc'><span class='line'> <span class="err">#</span> <span class="n">locale</span><span class="o">-</span><span class="n">gen</span>
</span></code></pre></td></tr></table></div></figure>
<p> c)、在.zshrc配置文件中添加:</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='objc'><span class='line'> <span class="n">export</span> <span class="n">LANG</span><span class="o">=</span><span class="n">zh_CN</span><span class="p">.</span><span class="n">utf8</span>
</span></code></pre></td></tr></table></div></figure>
<p> d)、配置locale.conf</p>
<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">touch</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">locale</span><span class="p">.</span><span class="n">conf</span>
</span><span class='line'> <span class="n">vi</span> <span class="o">/</span><span class="n">etc</span><span class="o">/</span><span class="n">locale</span><span class="p">.</span><span class="n">conf</span>
</span></code></pre></td></tr></table></div></figure>
<pre><code> 在locale.conf中添加:
</code></pre>
<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">localectl</span> <span class="n">set</span><span class="o">-</span><span class="n">locale</span> <span class="n">LANG</span><span class="o">=</span><span class="n">zh_CN</span><span class="p">.</span><span class="n">utf8</span>
</span><span class='line'> <span class="n">LANG</span><span class="o">=</span><span class="n">zh_CN</span><span class="p">.</span><span class="n">utf8</span>
</span></code></pre></td></tr></table></div></figure>
<pre><code>保存然后reboot;
</code></pre>
<h2>3、安装yaourt:</h2>
<p> a)、添加源至/etc/pacman.conf:</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="p">[</span><span class="n">archlinuxcn</span><span class="p">]</span>
</span><span class='line'> <span class="err">#</span><span class="n">The</span> <span class="n">Chinese</span> <span class="n">Arch</span> <span class="n">Linux</span> <span class="n">communities</span> <span class="n">packages</span><span class="p">.</span>
</span><span class='line'> <span class="n">Server</span> <span class="o">=</span> <span class="nl">http:</span><span class="c1">//repo.archlinuxcn.org/$arch</span>
</span></code></pre></td></tr></table></div></figure>
<p> b)、同步并安装yaourt:</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='objc'><span class='line'> <span class="n">pacmac</span> <span class="o">-</span><span class="n">Syu</span> <span class="n">yaourt</span>
</span></code></pre></td></tr></table></div></figure>
<h2>4、安装fonts:</h2>
<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">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">wqy</span><span class="o">-</span><span class="n">microhei</span> <span class="n">wqy</span><span class="o">-</span><span class="n">zenhei</span> <span class="n">ttf</span><span class="o">-</span><span class="n">arphic</span><span class="o">-</span><span class="n">ukai</span> <span class="n">ttf</span><span class="o">-</span><span class="n">arphic</span><span class="o">-</span><span class="n">uming</span> <span class="n">opendesktop</span><span class="o">-</span><span class="n">fonts</span> <span class="n">wqy</span><span class="o">-</span><span class="n">bitmapfont</span> <span class="n">ttf</span><span class="o">-</span><span class="n">hannom</span>
</span></code></pre></td></tr></table></div></figure>
<p>查看苹果字体:</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='objc'><span class='line'> <span class="n">yaourt</span> <span class="o">-</span><span class="n">Ss</span> <span class="n">ttf</span><span class="o">-</span><span class="n">mac</span>
</span></code></pre></td></tr></table></div></figure>
<p>安装苹果字体:</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='objc'><span class='line'><span class="n">yaourt</span> <span class="o">-</span><span class="n">S</span> <span class="n">aur</span><span class="o">/</span><span class="n">ttf</span><span class="o">-</span><span class="n">mac</span>
</span></code></pre></td></tr></table></div></figure>
<p><a href="https://wiki.archlinux.org/index.php/Fonts_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
">https://wiki.archlinux.org/index.php/Fonts_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
</a></p>
<h2>5、安装google-chrome:</h2>
<pre><code>查看chrome版本:
</code></pre>
<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">yaourt</span> <span class="o">-</span><span class="n">Ss</span> <span class="n">chrome</span>
</span></code></pre></td></tr></table></div></figure>
<p>安装选定版本:</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='objc'><span class='line'><span class="n">yaourt</span> <span class="o">-</span><span class="n">Ss</span> <span class="n">aur</span><span class="o">/</span><span class="n">google</span><span class="o">-</span><span class="n">chrome</span>
</span></code></pre></td></tr></table></div></figure>
<h2>6、安装Emacs:</h2>
<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">pacman</span> <span class="o">-</span><span class="n">S</span> <span class="n">emacs</span>
</span></code></pre></td></tr></table></div></figure>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Octopress使用Disqus留言系统]]></title>
<link href="http://ZuLove.github.com/blog/2013/03/23/octopress-use-disqus/"/>
<updated>2013-03-23T23:45:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/03/23/octopress-use-disqus</id>
<content type="html"><![CDATA[<p>Octopress没有默认的留言系统,不过,可以使用Disqus。
开启也Disqus留言系统也很简单,
开启也Disqus留言系统也很简单,
首先,需要一个Disqus帐号,注册地址:http://disqus.com/ Disqus功能强大,不仅提供独立的留言系统,还可以显示相关文章。如果你开启,相关文章的广告功能, 甚至可以通过点击量赚钱。
其次,在_config.yml文件中开启Disqus留言系统
如下:</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="cp"># Disqus Comments</span>
</span><span class='line'><span class="nl">disqus_short_name:</span> <span class="n">zulove</span>
</span><span class='line'><span class="nl">disqus_show_comment_count:</span> <span class="n">true</span>
</span></code></pre></td></tr></table></div></figure>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[change blogs bg header fonts]]></title>
<link href="http://ZuLove.github.com/blog/2013/03/23/change-blogs-bg-header-fonts/"/>
<updated>2013-03-23T22:49:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/03/23/change-blogs-bg-header-fonts</id>
<content type="html"><![CDATA[<p> Add “Fork me on GitHub” like this:
I、add some code in ~/octopress/source/_includes/head.html.
II、add pictures into ~/octopress/source/images/forkme.png.</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="o"><</span><span class="n">head</span><span class="o">></span>
</span><span class='line'><span class="o"><</span><span class="n">a</span> <span class="n">href</span><span class="o">=</span><span class="s">"https://github.com/ZuLove/zulove.github.com"</span><span class="o">></span>
</span><span class='line'> <span class="o"><</span><span class="n">img</span> <span class="n">alt</span><span class="o">=</span><span class="s">"Fork me on GitHub"</span> <span class="n">src</span><span class="o">=</span><span class="s">"/images/forkme.png"</span> <span class="n">style</span><span class="o">=</span><span class="s">"position:absolute; top: 0px; right: 0;"</span><span class="o">></span>
</span><span class='line'> <span class="o"></</span><span class="n">a</span><span class="o">></span>
</span></code></pre></td></tr></table></div></figure>
<p>First.change the background colors by adding the following lines to ~/octopress/sass/custom/_colors.scss</p>
<figure class='code'><figcaption><span> (_colors.scss)</span> <a href='http://ZuLove.github.com/downloads/code/_colors.scss'>download</a></figcaption>
<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>
<span class='line-number'>19</span>
<span class='line-number'>20</span>
<span class='line-number'>21</span>
<span class='line-number'>22</span>
<span class='line-number'>23</span>
<span class='line-number'>24</span>
<span class='line-number'>25</span>
<span class='line-number'>26</span>
<span class='line-number'>27</span>
<span class='line-number'>28</span>
<span class='line-number'>29</span>
<span class='line-number'>30</span>
<span class='line-number'>31</span>
<span class='line-number'>32</span>
<span class='line-number'>33</span>
<span class='line-number'>34</span>
<span class='line-number'>35</span>
<span class='line-number'>36</span>
<span class='line-number'>37</span>
<span class='line-number'>38</span>
<span class='line-number'>39</span>
<span class='line-number'>40</span>
<span class='line-number'>41</span>
<span class='line-number'>42</span>
<span class='line-number'>43</span>
<span class='line-number'>44</span>
<span class='line-number'>45</span>
<span class='line-number'>46</span>
</pre></td><td class='code'><pre><code class='scss'><span class='line'><span class="c1">// Here you can easily change your sites's color scheme.</span>
</span><span class='line'><span class="c1">// To give it a try, uncomment some of the lines below rebuild your blog, and see how it works.</span>
</span><span class='line'><span class="c1">// If you need a handy color picker try http://hslpicker.com</span>
</span><span class='line'><span class="na">$page-bg</span><span class="o">:</span> <span class="mh">#8fc17a</span><span class="p">;</span>
</span><span class='line'><span class="c1">//$main-bg:#8fc17a;</span>
</span><span class='line'><span class="na">$header-bg</span><span class="o">:</span> <span class="mh">#8fc17a</span><span class="p">;</span>
</span><span class='line'><span class="c1">//$subtitle-color: lighten($header-bg, 58);</span>
</span><span class='line'><span class="na">$nav-bg</span><span class="o">:</span> <span class="nf">desaturate</span><span class="p">(</span><span class="nf">lighten</span><span class="p">(</span><span class="mh">#8fc17a</span><span class="o">,</span> <span class="mi">18</span><span class="p">)</span><span class="o">,</span> <span class="mi">5</span><span class="p">);</span>
</span><span class='line'><span class="na">$nav-bg-front</span><span class="o">:</span> <span class="nf">image-url</span><span class="p">(</span><span class="s1">'</span><span class="s2">noise.png'</span><span class="p">);</span>
</span><span class='line'><span class="na">$nav-bg-back</span><span class="o">:</span> <span class="nf">linear-gradient</span><span class="p">(</span><span class="nf">lighten</span><span class="p">(</span><span class="nv">$nav-bg</span><span class="o">,</span> <span class="mi">8</span><span class="p">)</span><span class="o">,</span> <span class="nv">$nav-bg</span><span class="o">,</span> <span class="nf">darken</span><span class="p">(</span><span class="nv">$nav-bg</span><span class="o">,</span> <span class="mi">11</span><span class="p">));</span>
</span><span class='line'><span class="na">$sidebar-bg</span><span class="o">:</span> <span class="nf">desaturate</span><span class="p">(</span><span class="mh">#8fc17a</span><span class="o">,</span> <span class="mi">8</span><span class="p">);</span>
</span><span class='line'><span class="c1">//$sidebar-bg: desaturate(#eceff5, 8);</span>
</span><span class='line'><span class="na">$sidebar-link-color</span><span class="o">:</span> <span class="nf">saturate</span><span class="p">(</span><span class="mh">#526f9a</span><span class="o">,</span> <span class="mi">10</span><span class="p">);</span>
</span><span class='line'><span class="na">$sidebar-link-color-hover</span><span class="o">:</span> <span class="nf">darken</span><span class="p">(</span><span class="mh">#7ab662</span><span class="o">,</span> <span class="mi">9</span><span class="p">);</span>
</span><span class='line'><span class="na">$footer-bg</span><span class="o">:</span> <span class="mh">#8fc17a</span><span class="p">;</span>
</span><span class='line'><span class="c1">//$footer-bg: #ccc !default;</span>
</span><span class='line'><span class="na">$footer-bg-front</span><span class="o">:</span> <span class="nf">image-url</span><span class="p">(</span><span class="s1">'</span><span class="s2">noise.png'</span><span class="p">);</span>
</span><span class='line'><span class="na">$footer-bg-back</span><span class="o">:</span> <span class="nf">linear-gradient</span><span class="p">(</span><span class="nf">lighten</span><span class="p">(</span><span class="nv">$footer-bg</span><span class="o">,</span> <span class="mi">8</span><span class="p">)</span><span class="o">,</span> <span class="nv">$footer-bg</span><span class="o">,</span> <span class="nf">darken</span><span class="p">(</span><span class="nv">$footer-bg</span><span class="o">,</span> <span class="mi">11</span><span class="p">));</span>
</span><span class='line'>
</span><span class='line'>
</span><span class='line'><span class="cm">/* To use the light Solarized highlighting theme uncomment the following line */</span>
</span><span class='line'><span class="c1">//$solarized: light;</span>
</span><span class='line'>
</span><span class='line'><span class="cm">/* If you want to tweak the Solarized colors you can do that here */</span>
</span><span class='line'><span class="c1">//$base03: #002b36; //darkest blue</span>
</span><span class='line'><span class="c1">//$base02: #073642; //dark blue</span>
</span><span class='line'><span class="c1">//$base01: #586e75; //darkest gray</span>
</span><span class='line'><span class="c1">//$base00: #657b83; //dark gray</span>
</span><span class='line'><span class="c1">//$base0: #839496; //medium gray</span>
</span><span class='line'><span class="c1">//$base1: #93a1a1; //medium light gray</span>
</span><span class='line'><span class="c1">//$base2: #eee8d5; //cream</span>
</span><span class='line'><span class="c1">//$base3: #fdf6e3; //white</span>
</span><span class='line'><span class="c1">//$solar-yellow: #b58900;</span>
</span><span class='line'><span class="c1">//$solar-orange: #cb4b16;</span>
</span><span class='line'><span class="c1">//$solar-red: #dc322f;</span>
</span><span class='line'><span class="c1">//$solar-magenta: #d33682;</span>
</span><span class='line'><span class="c1">//$solar-violet: #6c71c4;</span>
</span><span class='line'><span class="c1">//$solar-blue: #268bd2;</span>
</span><span class='line'><span class="c1">//$solar-cyan: #2aa198;</span>
</span><span class='line'><span class="c1">//$solar-green: #859900;</span>
</span><span class='line'>
</span><span class='line'>
</span><span class='line'><span class="cm">/* Non highlighted code colors */</span>
</span><span class='line'><span class="c1">//$pre-bg: $base03;</span>
</span><span class='line'><span class="c1">//$pre-border: darken($base02, 5);</span>
</span><span class='line'><span class="c1">//$pre-color: $base1;</span>
</span></code></pre></td></tr></table></div></figure>
<p>Second,change header fonts
(1)、add the font-family CSS to ~/octopress/sass/custom/_fonts.scss thusly:</p>
<figure class='code'><figcaption><span> (_fonts.scss)</span> <a href='http://ZuLove.github.com/downloads/code/_fonts.scss'>download</a></figcaption>
<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='scss'><span class='line'><span class="c1">// Here you can easily change font faces which are used in your site.</span>
</span><span class='line'><span class="c1">// To give it a try, uncomment some of the lines below rebuild your blog, and see how it works. your sites's.</span>
</span><span class='line'><span class="c1">// If you love to use Web Fonts, you also need to add some lines to source/_includes/custom/head.html</span>
</span><span class='line'>
</span><span class='line'><span class="c1">//$sans: "Optima", sans-serif;</span>
</span><span class='line'><span class="c1">//$serif: "Baskerville", serif;</span>
</span><span class='line'><span class="c1">//$mono: "Courier", monospace;</span>
</span><span class='line'><span class="c1">//$heading-font-family: "Verdana", sans-serif;</span>
</span><span class='line'><span class="c1">//$header-title-font-family: "Futura", sans-serif;</span>
</span><span class='line'><span class="c1">//$header-subtitle-font-family: "Futura", sans-serif;</span>
</span><span class='line'><span class="na">$header-title-font-family</span><span class="o">:</span> <span class="s2">"Arvo"</span><span class="o">,</span> <span class="no">serif</span><span class="p">;</span>
</span><span class='line'><span class="na">$header-subtitle-font-family</span><span class="o">:</span> <span class="s2">"Arvo"</span><span class="o">,</span> <span class="no">serif</span><span class="p">;</span>
</span><span class='line'><span class="na">$heading-font-family</span><span class="o">:</span> <span class="s2">"Arvo"</span><span class="o">,</span> <span class="no">serif</span><span class="p">;</span>
</span></code></pre></td></tr></table></div></figure>
<p>(2)、edit ~/octopress/source/_includes/custom/head.html like this:</p>
<figure class='code'><figcaption><span> (head.html)</span> <a href='http://ZuLove.github.com/downloads/code/head.html'>download</a></figcaption>
<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>
</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="c"><!--Fonts from Google"s Web font directory at http://google.com/webfonts --></span>
</span><span class='line'><span class="nt"><link</span> <span class="na">href=</span><span class="s">"http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">type=</span><span class="s">"text/css"</span><span class="nt">></span>
</span><span class='line'><span class="nt"><link</span> <span class="na">href=</span><span class="s">"http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic"</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">type=</span><span class="s">"text/css"</span><span class="nt">></span>
</span><span class='line'><span class="nt"><link</span> <span class="na">href=</span><span class="s">'http://fonts.googleapis.com/css?family=Arvo'</span> <span class="na">rel=</span><span class="s">'stylesheet'</span> <span class="na">type=</span><span class="s">'text/css'</span><span class="nt">></span>
</span></code></pre></td></tr></table></div></figure>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[解决git push遇到的问题]]></title>
<link href="http://ZuLove.github.com/blog/2013/03/12/solve-git-push-problem/"/>
<updated>2013-03-12T00:46:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/03/12/solve-git-push-problem</id>
<content type="html"><![CDATA[
<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="nl">os:</span><span class="n">ubuntu</span> <span class="mf">10.04</span>
</span><span class='line'><span class="nl">shell:</span><span class="n">zsh</span><span class="o">-</span><span class="mf">5.0.0</span>
</span></code></pre></td></tr></table></div></figure>
<p>使用git push origin master时出现如下错误时</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="n">To</span> <span class="n">git</span><span class="err">@</span><span class="n">github</span><span class="p">.</span><span class="nl">com:</span><span class="n">ZuLove</span><span class="o">/</span><span class="n">ZVimrc</span><span class="p">.</span><span class="n">git</span>
</span><span class='line'> <span class="o">!</span> <span class="p">[</span><span class="n">rejected</span><span class="p">]</span> <span class="n">master</span> <span class="o">-></span> <span class="n">master</span> <span class="p">(</span><span class="n">non</span><span class="o">-</span><span class="n">fast</span><span class="o">-</span><span class="n">forward</span><span class="p">)</span>
</span><span class='line'><span class="nl">error:</span> <span class="n">failed</span> <span class="n">to</span> <span class="n">push</span> <span class="n">some</span> <span class="n">refs</span> <span class="n">to</span> <span class="err">'</span><span class="n">git</span><span class="err">@</span><span class="n">github</span><span class="p">.</span><span class="nl">com:</span><span class="n">ZuLove</span><span class="o">/</span><span class="n">ZVimrc</span><span class="p">.</span><span class="n">git</span><span class="err">'</span>
</span><span class='line'><span class="n">To</span> <span class="n">prevent</span> <span class="n">you</span> <span class="n">from</span> <span class="n">losing</span> <span class="n">history</span><span class="p">,</span> <span class="n">non</span><span class="o">-</span><span class="n">fast</span><span class="o">-</span><span class="n">forward</span> <span class="n">updates</span> <span class="n">were</span> <span class="n">rejected</span>
</span><span class='line'><span class="n">Merge</span> <span class="n">the</span> <span class="n">remote</span> <span class="n">changes</span> <span class="n">before</span> <span class="n">pushing</span> <span class="n">again</span><span class="p">.</span> <span class="n">See</span> <span class="n">the</span> <span class="err">'</span><span class="n">Note</span> <span class="n">about</span>
</span><span class='line'><span class="n">fast</span><span class="o">-</span><span class="n">forwards</span><span class="err">'</span> <span class="n">section</span> <span class="n">of</span> <span class="err">'</span><span class="n">git</span> <span class="n">push</span> <span class="o">--</span><span class="n">help</span><span class="err">'</span> <span class="k">for</span> <span class="n">details</span><span class="p">.</span>
</span></code></pre></td></tr></table></div></figure>
<p>解决办法有二:
其一:
打开.git/config设置如下:</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'><span class="p">[</span><span class="n">branch</span> <span class="s">"master"</span><span class="p">]</span>
</span><span class='line'> <span class="n">remote</span> <span class="o">=</span> <span class="n">origin</span>
</span><span class='line'> <span class="n">merge</span> <span class="o">=</span> <span class="n">refs</span><span class="o">/</span><span class="n">heads</span><span class="o">/</span><span class="n">maste</span>
</span></code></pre></td></tr></table></div></figure>
<p>上面配置说明:
1,当你处于master branch, 默认的remote就是origin。
2,当你在master branch上使用git pull时,没有指定remote和branch,那么git就会采用默认的remote(也就是origin)来merge在master branch上所有的改变
其二:
使用如下两句也可解决问题:</p>
<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">$</span> <span class="n">git</span> <span class="n">config</span> <span class="n">branch</span><span class="p">.</span><span class="n">master</span><span class="p">.</span><span class="n">remote</span> <span class="n">origin</span>
</span><span class='line'><span class="n">$</span> <span class="n">git</span> <span class="n">config</span> <span class="n">branch</span><span class="p">.</span><span class="n">master</span><span class="p">.</span><span class="n">merge</span> <span class="n">refs</span><span class="o">/</span><span class="n">heads</span><span class="o">/</span><span class="n">master</span>
</span></code></pre></td></tr></table></div></figure>
<p>最后:</p>
<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">git</span> <span class="n">pull</span>
</span><span class='line'><span class="n">git</span> <span class="n">push</span> <span class="n">origin</span> <span class="n">master</span>
</span></code></pre></td></tr></table></div></figure>
<p>一切OK。</p>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[update_vim_latest]]></title>
<link href="http://ZuLove.github.com/blog/2013/03/08/update-vim-latest/"/>
<updated>2013-03-08T09:51:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/03/08/update-vim-latest</id>
<content type="html"><![CDATA[<p>安装最新的vim release版本后可以依据如下方法将vim更新到最最新的,方法很多详见:</p>
<blockquote><p></p><footer><strong>URL:</strong> <cite><a href='http://www.vim.org/runtime.php'>www.vim.org/runtime.php/…</a></cite></footer></blockquote>
<p>tips:</p>
<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="nl">os:</span><span class="n">ubuntu</span> <span class="mf">10.04</span>
</span><span class='line'><span class="nl">shell:</span><span class="n">zsh</span><span class="o">-</span><span class="mf">5.0.0</span>
</span></code></pre></td></tr></table></div></figure>
<p>1、安装Aap(一種用於下载原始码,编译以及安裝程式的软件开发工具程式):
下载Aap最新版本:http://sourceforge.net/projects/a-a-p/files/</p>
<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>
</pre></td><td class='code'><pre><code class='objc'><span class='line'> <span class="n">cd</span> <span class="o">~/</span><span class="err">下载</span>
</span><span class='line'> <span class="n">unzip</span> <span class="o">-</span><span class="n">n</span> <span class="n">aap</span><span class="o">-</span><span class="mf">1.092</span><span class="p">.</span><span class="n">zip</span> <span class="o">-</span><span class="n">d</span> <span class="o">~/</span><span class="n">software</span><span class="o">/</span><span class="n">aap</span>
</span><span class='line'> <span class="n">cd</span> <span class="o">~/</span><span class="n">software</span><span class="o">/</span><span class="n">app</span>
</span><span class='line'> <span class="n">sudo</span> <span class="p">.</span><span class="o">/</span><span class="n">app</span> <span class="n">install</span>
</span></code></pre></td></tr></table></div></figure>
<p>2、Start Vim and type these commands:</p>
<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="o">:</span><span class="n">cd</span> <span class="n">$VIMRUNTIME</span>
</span><span class='line'> <span class="o">:!</span><span class="n">sudo</span> <span class="n">aap</span> <span class="o">-</span><span class="n">f</span> <span class="nl">ftp:</span><span class="c1">//ftp.vim.org/pub/vim/runtime/main.aap fetch</span>
</span></code></pre></td></tr></table></div></figure>
<blockquote><p>try best,every thing will be best.</p><footer><strong>———————ZLove</strong></footer></blockquote>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Vim_Plugin_clang_complete]]></title>
<link href="http://ZuLove.github.com/blog/2013/03/07/vim-plugin-clang-complete/"/>
<updated>2013-03-07T23:25:00+08:00</updated>
<id>http://ZuLove.github.com/blog/2013/03/07/vim-plugin-clang-complete</id>
<content type="html"><![CDATA[<p>tips:</p>
<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="nl">os:</span><span class="n">ubuntu</span> <span class="mf">10.04</span>