-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
880 lines (489 loc) · 29.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>skywalking's blog</title>
<meta name="author" content="Chang-Wu Chen">
<meta name="description" content="阿福 使用技巧 iTunes 指令:its itunes://ax.search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?term={query} Mac App Store 指令:mas macappstore://ax. …">
<meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1">
<link href="/atom.xml" rel="alternate" title="skywalking's blog" type="application/atom+xml">
<link rel="canonical" href="">
<link href="/favicon.png" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<header class="inner"><h1 class="left"><a href="/">skywalking's blog</a></h1>
<nav class="menu left"><ul class="main">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<div class="right">
<form class="search right" action="http://google.com/search" method="get">
<input class="left" type="text" name="q" results="0">
<input type="hidden" name="q" value="site:changwu-tw.github.com">
</form>
<div class="social right">
<a class="google" href="https://plus.google.com/110359138388555199313" title="Google+">Google+</a>
<a class="rss" href="/atom.xml" title="RSS">RSS</a>
</div>
</div>
</header>
<div id="content" class="inner">
<article class="post">
<h1 class="title"><a href="/blog/2012/05/29/how-to-use-toggle-alfred/">阿福</a></h1>
<div class="entry">
<h1>使用技巧</h1>
<h2>iTunes</h2>
<p>指令:<code>its</code></p>
<blockquote><p>itunes://ax.search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?term={query}</p></blockquote>
<h2>Mac App Store</h2>
<p>指令:<code>mas</code></p>
<blockquote><p>macappstore://ax.search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?q={query}</p></blockquote>
<ul>
<li><a href="http://alfredtips.com/s/popular/1/">更多有關阿福的搜尋技巧</a></li>
</ul>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-05-29T20:06:00+08:00" pubdate data-updated="true">May 29<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/alfred/'>Alfred</a>, <a class='category' href='/blog/categories/app/'>app</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/05/29/how-to-use-toggle-alfred/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/05/29/jailbreak-for-iphone/">iPhone 越獄</a></h1>
<div class="entry">
<h1>Jailbreak</h1>
<p>版本:iOS 5.1.1</p>
<p>破解工具:<a href="http://greenpois0n.com/">Absinthe 2.0.2</a></p>
<p>管理韌體檔案工具:<a href="http://www.macupdate.com/app/mac/38235/ipswdownloader">ipswDownloader</a></p>
<blockquote><p>提供各種機型版本的韌體下載,並且告知是否有相對應的破解工具</p></blockquote>
<h1>Cydia</h1>
<h2>Add source</h2>
<ol>
<li>http://cydia.hackulo.us</li>
<li>http://apt.iphone4.tw</li>
<li>http://apt.weiphone.com/</li>
<li>http://repo.insanelyi.com/</li>
<li>http://apt.178.com</li>
</ol>
<h2>Install</h2>
<ul>
<li>Installous 4 <code>安裝 cydia.hackulo.us 版本</code></li>
<li>Appsync for 5.0+ <code>安裝 cydia.hackulo.us 版本</code></li>
<li>Optimized Zhuyin (*)</li>
<li>蝦米</li>
<li>SBSettings</li>
<li>Remove Background</li>
<li>3G Unrestrictor 5 (*)</li>
<li>WeatherIcon</li>
<li>xGPS</li>
<li>Kuaidial</li>
<li>Cydelete</li>
</ul>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-05-29T15:51:00+08:00" pubdate data-updated="true">May 29<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/iphone/'>iphone</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/05/29/jailbreak-for-iphone/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/05/18/the-pictorial-history-of-taiwan-from-the-pre-historical-periods-to-1945/">[筆記] 臺灣歷史圖說:史前至一九四五年</a></h1>
<div class="entry">
<h1>史前時代的台灣</h1>
<p>早期「台灣人」出現的年代,最遠可追溯到三至五萬年前</p>
<p><img src="http://f.cl.ly/items/061Z0p0V1s1W0S3Q1Y1u/p23.gif" alt="台灣地區史前文化的時空架構" />
<a href="http://twstudy.sinica.edu.tw/twstudy/history/Gif_html/p23_ico.html">圖片來源:劉益昌1996(台灣歷史圖說 P.13)</a></p>
<ul>
<li><a href="http://zh.wikipedia.org/wiki/%E5%9C%93%E5%B1%B1%E9%81%BA%E5%9D%80">圓山遺址</a>(圓山公園區)</li>
<li><a href="http://zh.wikipedia.org/wiki/%E5%8D%81%E4%B8%89%E8%A1%8C%E6%96%87%E5%8C%96">十三行文化</a>(台北縣八里鄉) - 金屬器時代</li>
</ul>
<h1>原住民與南島語系</h1>
<p><img src="http://f.cl.ly/items/2q1e1i1b2s071M0x1S3w/A403.jpg" alt="台灣土著民族分佈圖" />
<a href="http://www.ypjh.tn.edu.tw/dioxin/a/a4.htm">圖片來源:李壬癸1996(台灣歷史圖說 P.25)</a></p>
<h2>台灣土著民族一般分為<strong>高山族</strong>與<strong>平埔族</strong></h2>
<h3>高山族</h3>
<ol>
<li>泰雅族(Atayal; Tayal)</li>
<li>賽夏族(Saisiyat; Saisiat)</li>
<li>布農族(Bunun)</li>
<li>鄒族(Tsou; Cou)</li>
<li>魯凱族(Rukai)</li>
<li>排灣族(Paiwan)</li>
<li>卑南族(Puyume)</li>
<li>阿美族(Pangcah; Amis)</li>
<li>達悟族(Tao; Yami)</li>
<li>太魯閣族(Taroko)</li>
<li>撒奇萊雅族(Sakizaya)</li>
<li>邵族(Ita Thao)</li>
<li>賽德克族(Seediq)</li>
<li>噶瑪蘭 (高山族or平埔族)(Kavalan)</li>
</ol>
<blockquote><p>傳統上高山族包括九個族群,近年來經過一些原住民爭取,「高山族」的範圍有所增加,已達到十多個族群</p></blockquote>
<h3>平埔族</h3>
<ol>
<li>凱達格蘭族(Ketagalan)</li>
<li>噶瑪蘭族(Kavarawan)</li>
<li>道卡斯族(Taokas)</li>
<li>巴宰族(Pazzehe)</li>
<li>巴布拉族(Vupuran)</li>
<li>巴布薩族(Poavosa)</li>
<li>阿立昆族(Arikun)</li>
<li>羅亞族(Lloa)</li>
<li>西拉雅族(Siraiya)</li>
<li>馬卡道族(Makattao)</li>
</ol>
<blockquote><p>台灣的高山族與平埔族的語言都屬於南島語系(Austronesian language family),又稱馬來亞玻利尼西亞語系(Malayo-Polynesian language family)。南島語是世界上種類最多(約五百種)的語系,也是地理分布最廣的語言,全世界大約有一億七千一百萬的人講這類語言。也就是說,台灣土著民族講的語言與馬來語(印尼語),菲律賓諸語言,屬於同個語系,遠古時代同出一源。<a href="http://www.books.com.tw/exep/prod/booksfile.php?item=0010457145">以上文字引用自《台灣歷史圖說》</a></p></blockquote>
<h1>美麗島的出現</h1>
<h2>歐洲人的發現與進入</h2>
<p><a href="http://zh.wikipedia.org/wiki/%E7%A6%8F%E7%88%BE%E6%91%A9%E6%B2%99">福爾摩沙</a>的由來,一般認為是葡萄牙水手航經台灣島時的驚嘆之語,葡萄牙語 - Ilha Formosa 遂指<strong>美麗之島</strong>。</p>
<h2>中國古藉中相關疑似台灣的記載</h2>
<ol>
<li>《三國志,吳書》〈孫權傳〉 夷洲</li>
<li>《隋書》〈東夷列傳〉【流求國傳】 流求(亦有一說是指澎湖)</li>
</ol>
<h2>台灣與澎湖</h2>
<p>今天台灣與澎湖是一體的,但在明鄭之前,台灣與澎湖各自有自己的歷史脈絡。澎湖與中國的關係起源於宋朝,在元朝時,正式成為元帝國的一部分。台灣則到清代才納入版圖,成為中國的一部分。</p>
<h1>漢人的原鄉與移墾社會</h1>
<p><img src="http://f.cl.ly/items/271E2x220Z092Q0A1w33/A402.jpg" alt="台灣漢人移民的原鄉" />
<a href="http://www.ypjh.tn.edu.tw/dioxin/a/a4.htm">圖片來源:(康軒社會乙版P.85)</a></p>
<h1>漢人與原住民的關係</h1>
<p>篳路藍縷,以啟山林</p>
<h1>改朝換代</h1>
<p>西元1894年,中日甲午戰爭,日本輕易地戰勝致力於自強運動的中國,為求戰敗講和,不得不進行割地賠款,遂由李鴻章與伊藤博文在<a href="http://zh.wikipedia.org/wiki/%E6%98%A5%E5%B8%86%E6%A8%93">春帆樓</a>簽訂<a href="http://zh.wikipedia.org/wiki/%E9%A6%AC%E9%97%9C%E6%A2%9D%E7%B4%84">馬關條約</a>,將台灣割讓給日本。然而日本取得台灣的過程並不順利,遭遇台灣人民頑強的抵抗,前後花了約五個月。日本領台之初,有主動與日本人合作的,也有掛起日本明治君作主旗號的人,顯然台灣人並非團結一致對抗日軍,但到處都有民眾奮起抵抗日軍。</p>
<blockquote><p>公視曾推出一部歷史戲劇<a href="http://zh.wikipedia.org/wiki/%E4%BA%82%E4%B8%96%E8%B1%AA%E9%96%80">亂世豪門</a>,敘述1895年前後的乙未戰爭與台灣日治時期初期動亂</p></blockquote>
<div class="video-container">
<iframe width="420" height="315" src="http://www.youtube.com/embed/jmf6dN__L60" frameborder="0" allowfullscreen></iframe>
</div>
<h1>兩大反抗事件</h1>
<p>引用自維基百科:<a href="http://zh.wikipedia.org/wiki/%E4%BD%99%E6%B8%85%E8%8A%B3%E4%BA%8B%E4%BB%B6">噍吧哖事件</a></p>
<blockquote><p>西來庵事件又稱余清芳事件、噍吧哖事件或玉井事件,是發生於1915年的武力抗日事件,領導人為余清芳、羅俊、江定等人。西來庵事件是臺灣日治時期諸多起事之中規模最大、犧牲人數最多的一次,同時也是臺灣人第一次以宗教力量抗日的重要事件,更是臺灣漢人最後一次武裝抗日。</p></blockquote>
<p>引用自維基百科:<a href="http://zh.wikipedia.org/wiki/%E9%9C%A7%E7%A4%BE%E4%BA%8B%E4%BB%B6">霧社事件</a></p>
<blockquote><p>霧社事件是發生於1930年日治臺灣的原住民抗暴及出草行動,地點在臺中州能高郡霧社(今屬南投縣仁愛鄉)。事件是由於當地賽德克族德克達亞群的馬赫坡等部落,因為不滿總督府的壓迫而聯合起事,在霧社運動會上殺死134名日本人,隨即遭到總督府攻討,原住民犧牲人數近千人,僅次於西來庵事件。事件重要人物莫那·魯道自殺外,參與行動的部落幾遭滅族,餘生者被強制遷至川中島(今清流部落)。</p></blockquote>
<h1>殖民地化與近代化</h1>
<p>引用自維基百科:<a href="http://zh.wikipedia.org/wiki/%E5%8F%B0%E7%81%A3%E6%97%A5%E6%B2%BB%E6%99%82%E6%9C%9F">日治時期</a></p>
<blockquote><p>根據馬關條約第5條內文:居住於台灣的漢人若不願意被日本政府統治,可在訂約後兩年攜帶家產離開。由此觀點,其他人若留在台灣接受日本統治,法理認定屬自願性質。據此支持「日治時期」的用法。</p></blockquote>
<h1>戰爭下的台灣</h1>
<p>皇民化運動</p>
<ol>
<li>國語運動</li>
<li>改姓名</li>
<li>志願兵制度</li>
<li>宗教社會風俗改革</li>
</ol>
<h1>心得</h1>
<p>整本書非常簡潔卻又不失其完整性,以一種跳脫的思維去看待台灣這塊土地的歷史,擺脫過去以漢人角度為主的歷史觀,值得一讀。</p>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-05-18T13:32:00+08:00" pubdate data-updated="true">May 18<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/taiwan/'>Taiwan</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/05/18/the-pictorial-history-of-taiwan-from-the-pre-historical-periods-to-1945/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/05/02/take-it-easy/">Take It Easy</a></h1>
<div class="entry">
<ol>
<li>Pull yourself together. 振作起來</li>
<li>Keep your chin up. 別灰心</li>
<li>Don’t let it get you down. It will be over with soon. 別為此煩惱。事情很快就會過去的</li>
<li>Don’t be so miserable! 別愁眉苦臉的</li>
<li>Cheer up! things will work out for the best. 高興點兒。事情會有好結果的</li>
<li>Take heart- we’ll find a way out. 振作起來,我們會有辦法的</li>
<li>Keep trying! Don’t give up the ship. 繼續努力! 別輕易放棄!</li>
<li>Loosen up! It’s not worth getting upset about. 放鬆點兒!不值得為這件事苦惱</li>
<li>Hang in there. Things will get better. 堅持住,情況會好起來</li>
<li>Keep smiling! things will calm down. 樂觀一點,事情會平息下來的</li>
<li>It’s not as bad as all that. 事情沒有那麼糟</li>
<li>Things are never as bad as they seem. 事情往往不像看上去的那麼糟</li>
<li>Win a few, lose a few. That’s life. 有得也有失,生活就是如此</li>
<li>Let’s look on the bright side. 我們來看看它好的一面</li>
<li>Every cloud has a silver lining. 守的雲開見明月</li>
<li>When god closes a door, he opens a window. 山不轉水轉</li>
<li>Tomorrow is another day. 有明天就有希望</li>
<li>Stop carrying the weight of the world on your shoulders. 別太操心了,沒有你地球照樣轉
<blockquote><p>carry the weight of the world on one’s shoulders 自以為重任在肩</p></blockquote></li>
</ol>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-05-02T11:02:00+08:00" pubdate data-updated="true">May 2<span>nd</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/english/'>English</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/05/02/take-it-easy/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/05/01/install-ruby-on-rails-on-mac-os-x/">Install Ruby on Rails on Mac OS X</a></h1>
<div class="entry">
<h2>開發環境</h2>
<ul>
<li>Mac OS X 10.7.3</li>
<li>Ruby 1.9.3</li>
<li>RubyGems 1.8.22</li>
<li>Rails 3.2.3</li>
<li>SQLite 3.7.10</li>
</ul>
<h2>Xcode 4.3.2</h2>
<ul>
<li>安裝 Command Line Tools</li>
</ul>
<p><img src="http://f.cl.ly/items/423w1D040l171q1F2H2q/2012-05-02.png"></p>
<h2>安裝 Homebrew</h2>
<p><a href="http://mxcl.github.com/homebrew/">Homebrew</a></p>
<figure class='code'><figcaption><span></span></figcaption><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='bash'><span class='line'>/usr/bin/ruby -e <span class="s2">"$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"</span>
</span></code></pre></td></tr></table></div></figure>
<h2>安裝 git & sqlite</h2>
<figure class='code'><figcaption><span></span></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>
</pre></td><td class='code'><pre><code class='bash'><span class='line'><span class="nv">$ </span>brew install git
</span><span class='line'><span class="nv">$ </span>brew install sqlite
</span><span class='line'><span class="nv">$ </span>brew update
</span></code></pre></td></tr></table></div></figure>
<h2>安裝 RVM</h2>
<p><a href="https://rvm.io/rvm/install/">RVM</a></p>
<figure class='code'><figcaption><span></span></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='bash'><span class='line'><span class="nv">$ </span>curl -L get.rvm.io | bash -s stable
</span><span class='line'><span class="nv">$ </span><span class="nb">source</span> ~/.rvm/scripts/rvm
</span><span class='line'><span class="nv">$ </span>rvm install 1.9.3
</span><span class='line'><span class="nv">$ </span>rvm 1.9.3 --default
</span></code></pre></td></tr></table></div></figure>
<h2>安裝 sqlite3 & rails</h2>
<figure class='code'><figcaption><span></span></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>
</pre></td><td class='code'><pre><code class='bash'><span class='line'><span class="nv">$ </span>gem install sqlite3 --no-ri --no-rdoc
</span><span class='line'><span class="nv">$ </span>gem install rails --no-ri --no-rdoc
</span><span class='line'><span class="nv">$ </span>gem update --system
</span></code></pre></td></tr></table></div></figure>
<ul>
<li>新增 ~/.gemrc,內容如下,預設就不會產生文件:</li>
</ul>
<p><code>--no-ri --no-rdoc</code></p>
<h2>安裝 Pow</h2>
<p><a href="http://pow.cx/">Pow</a></p>
<figure class='code'><figcaption><span></span></figcaption><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='bash'><span class='line'><span class="nv">$ </span>curl get.pow.cx | sh
</span></code></pre></td></tr></table></div></figure>
<ul>
<li>使用方式</li>
</ul>
<figure class='code'><figcaption><span></span></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>
</pre></td><td class='code'><pre><code class='bash'><span class='line'><span class="nv">$ </span><span class="nb">cd</span> ~/.pow
</span><span class='line'><span class="nv">$ </span>ln -s /path/to/myapp project-name
</span></code></pre></td></tr></table></div></figure>
<p>開啟 http://project-name.dev 就可存取網頁了</p>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-05-01T16:03:00+08:00" pubdate data-updated="true">May 1<span>st</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/rails/'>Rails</a>, <a class='category' href='/blog/categories/ruby/'>Ruby</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/05/01/install-ruby-on-rails-on-mac-os-x/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/04/27/sqlite3-and-ruby/">Sqlite3 and Ruby</a></h1>
<div class="entry">
<h2>Create a database</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=''><span class='line'>$ sqlite3 DATABASE_NAME # 產生資料庫</span></code></pre></td></tr></table></div></figure>
<h2>Create a table</h2>
<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>
</pre></td><td class='code'><pre><code class=''><span class='line'>CREATE TABLE TABLE_NAME (
</span><span class='line'> id INTEGER PRIMARY KEY,
</span><span class='line'> field1 TEXT NOT NULL,
</span><span class='line'> field2 REAL NOT NULL
</span><span class='line'>);</span></code></pre></td></tr></table></div></figure>
<h2>Insert data</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=''><span class='line'>INSERT INTO TABLE_NAME VALUES (null, ?, ?);</span></code></pre></td></tr></table></div></figure>
<h2>Import CSV data into SQLite table</h2>
<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=''><span class='line'>sqlite> .separator "," # 指定分隔符號,預設為 |
</span><span class='line'>sqlite> .import CSV_FILE TABLE_NAME # 匯入 CSV 檔案至特定表格</span></code></pre></td></tr></table></div></figure>
<h2>List the tables</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=''><span class='line'>sqlite> .tables # 顯示所有表格</span></code></pre></td></tr></table></div></figure>
<h2>Show SQLite schema</h2>
<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=''><span class='line'>sqlite> .schema TABLE_NAME # 單一表格的 schema
</span><span class='line'>sqlite> .schema '%' # 所有表格的 schema</span></code></pre></td></tr></table></div></figure>
<h2>Dump database</h2>
<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=''><span class='line'>sqlite> .dump TABLE_NAME # 輸出單一表格
</span><span class='line'>sqlite> .output FILE_NAME.sql # 匯出資料庫檔案
</span><span class='line'>sqlite> .dump # 輸出整個資料庫</span></code></pre></td></tr></table></div></figure>
<h2>Links</h2>
<ol>
<li><a href="http://zetcode.com/db/sqliteruby/">SQLite Ruby tutorial</a></li>
<li><a href="http://sqlite-ruby.rubyforge.org/sqlite3/faq.html">SQLite/Ruby FAQ</a></li>
<li><a href="http://viewsourcecode.org/why/hacking/aQuickGuideToSQLite.html">A Quick Guide to SQLite and Ruby</a></li>
</ol>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-04-27T13:09:00+08:00" pubdate data-updated="true">Apr 27<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/ruby/'>Ruby</a>, <a class='category' href='/blog/categories/sqlite/'>Sqlite</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/04/27/sqlite3-and-ruby/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/04/22/2012-movie/">2012 Movie</a></h1>
<div class="entry">
<ol>
<li>The Graduate (1967) - 畢業生</li>
<li>Rear Window (1954) - 後窗</li>
<li>Dog Day Afternoon (1975) - 熱天午後</li>
<li>Cape Fear (1991) - 海角驚魂/ 恐怖角</li>
<li>A Brighter Summer Day (1991) - 牯嶺街少年殺人事件</li>
<li>Billy Elliot (2001) - 舞動人生</li>
<li>Midnight in Paris (2011) - 午夜巴黎</li>
<li>The Adventures of Tin Tin: Secret of the Unicorn (2011) - 丁丁歷險記</li>
<li>Mission: Impossible Ghost Protocol (2011) - 不可能的任務4: 鬼影行動</li>
<li>The Girl with the Dragon Tattoo (2011) - 千禧三部曲I: 龍紋身的女孩</li>
<li>Sherlock Holmes: A Game of Shadows (2011) - 福爾摩斯2: 詭影遊戲</li>
<li>The Descendants (2011) - 繼承人生</li>
<li>Jump Ashin (2011) - 翻滾吧!阿信</li>
<li>Mirror, Mirror (2012) - 魔鏡,魔鏡</li>
<li>You Are the Apple of My Eye (2012) - 那些年,我們一起追的女孩</li>
</ol>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-04-22T22:04:00+08:00" pubdate data-updated="true">Apr 22<span>nd</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/movie/'>Movie</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/04/22/2012-movie/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/04/21/love-taiwan/">嘸通嫌台灣 / 詞:林央敏 / 曲:蕭泰然</a></h1>
<div class="entry">
<div class="video-container">
<iframe width="420" height="315" src="http://www.youtube.com/embed/SprIeJxHrmY" frameborder="0" allowfullscreen></iframe>
</div>
<p>《嘸通嫌台灣》</p>
<p>詞/林央敏 曲/蕭泰然</p>
<p>女高音/葉君儀 鋼琴/王愛倫</p>
<p>咱若愛祖先 請你嘸通嫌台灣 土地雖然有卡隘</p>
<p>阿爸的汗 阿母的血 沃落鄉土滿四界</p>
<p>咱若愛子孫 請你嘸通嫌台灣 也有田園也有山</p>
<p>果籽的甜 五穀的香 乎咱後代吃未空</p>
<p>咱若愛故鄉 請你嘸通嫌台灣 雖然討趁無輕鬆</p>
<p>認真打拚 前途有望 咱的幸福未輸人</p>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-04-21T13:34:00+08:00" pubdate data-updated="true">Apr 21<span>st</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/taiwan/'>Taiwan</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/04/21/love-taiwan/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/04/17/think-more/">Think More, Talk Less</a></h1>
<div class="entry">
<p><img src="http://joba.cc/~skywalking/pic/think-more.jpg" alt="Think More, Talk Less" /></p>
<blockquote><p>As Stephen Hawking said, “Quiet people have the loudest minds.”</p></blockquote>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-04-17T11:36:00+08:00" pubdate data-updated="true">Apr 17<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/proverbs/'>Proverbs</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/04/17/think-more/#disqus_thread">Comments</a></span>
</div>
</article>
<article class="post">
<h1 class="title"><a href="/blog/2012/03/30/2012-0330/">[轉錄] 想成為知法自保者,你我都應該做的練習題</a></h1>
<div class="entry">
<p>文章出處:<a href="https://www.facebook.com/notes/viv-chou/%E9%9A%A8%E5%AF%AB-%E6%83%B3%E6%88%90%E7%82%BA%E7%9F%A5%E6%B3%95%E8%87%AA%E4%BF%9D%E8%80%85%E4%BD%A0%E6%88%91%E9%83%BD%E6%87%89%E8%A9%B2%E5%81%9A%E7%9A%84%E7%B7%B4%E7%BF%92%E9%A1%8C/10150777576976303">by Viv Chou</a></p>
<p>因為文林苑事件讓工作進度延緩,剛搭小黃回家,路上司機跟我閒聊文林苑一事,劈頭就說這些釘子戶好貪,要五億真不要臉……你以為我會生氣?錯了,我沒有。我只淺淺的說那是王家為了讓建商知難而退,故意開高價,但他們沒拿一毛錢。</p>
<p>接下來我也就沒仔細聽這位大哥到底在說些什麼了。</p>
<p>回到家打開臉書,看到很多類似張同學的「理性文」、「中肯文」與「專業文」,有人批評聲援者民粹、理盲,有人支持某名嘴所說的「鍵盤評論者」有多可笑,他們高唱著為公眾利益所著想,多數人的權益,本來就不應為少數人犧牲……</p>
<p>我只是靜默的微笑。</p>
<p><img src="https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash3/s720x720/551582_10150896884888776_630183775_12637857_191452714_n.jpg"></p>
<p>相片轉自台灣立報/黃士航。</p>
<a href="/blog/2012/03/30/2012-0330/" class="more-link">Read on →</a>
</div>
<div class="meta">
<div class="date">
<time datetime="2012-03-30T17:05:00+08:00" pubdate data-updated="true">Mar 30<span>th</span>, 2012</time></div>
<div class="tags">
<div class="cat">
<a class='category' href='/blog/categories/life/'>Life</a>, <a class='category' href='/blog/categories/taiwan/'>Taiwan</a>
</div>
</div>
<span class="comments"><a href="/blog/2012/03/30/2012-0330/#disqus_thread">Comments</a></span>
</div>
</article>
<nav id="pagenavi">
<a href="/blog/page/2/" class="next">Next</a>
<a href="/blog/archives" class="center">Blog Archives</a>
</nav></div>
<footer class="inner">Copyright © 2012 skywalking's blog</footer>
<script src="/javascripts/jquery.fancybox.pack.js"></script>
<script src="/javascripts/slash.js"></script>
<script type="text/javascript">
var disqus_shortname = 'skyworking';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
</body>
</html>