forked from FosWu/xiaolai.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
801 lines (409 loc) · 33.6 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
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>xiaolai</title>
<meta name="author" content="xiaolai">
<meta name="description" content="2013年,我会开始对外公开做一系列的TOEFL/SAT教师培训。有意参加者,请先加入QQ群:288399549。 申请加入之前,请发email至lixiaolai@gm&# …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="http://xiaolai.github.com/">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/stylesheets/custom.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="xiaolai" type="application/atom+xml">
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script src="/javascripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="/javascripts/jquery.tableofcontents.min.js" type="text/javascript"></script>
<script type="text/javascript">
// Revert jQuery's '$' alias, to avoid clashes with ender.js. NOTE: Use
// jQuery(...), instead of $(...) from here on.
jQuery.noConflict();
</script>
<script src="/javascripts/generate-toc.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1452494-20']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body >
<header role="banner"><hgroup>
<div id="logo">
<div id="logoLeft">{</div>
<div id="logoText">am</div>
<div id="logoRight">}</div>
<div class="clear"></div>
</div>
<h1><a href="/">xiaolai</a></h1>
<h2>寓学于教: 教是最好的学习方法……</h2>
<div class="clear"></div>
</hgroup>
</header>
<nav role="navigation"><ul class="subscription" data-subscription="rss">
<li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
</ul>
<form action="http://google.com/search" method="get">
<fieldset role="search">
<input type="hidden" name="q" value="site:xiaolai.github.com" />
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
</fieldset>
</form>
<ul class="main-navigation">
<li><a href="/">博客</a></li>
<li><a href="/blog/archives">归档</a></li>
<li><a href="/alpha">阿尔法</a></li>
<li><a href="http://wordpress.lixiaolai.com">老站存档</a></li>
</ul>
</nav>
<div id="main">
<div id="content">
<div class="blog-index">
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/12/23/on-training-of-teaching-sat-toefl/">关于TOEFL/SAT教师培训(2013)</a></h1>
<p class="meta">
<time datetime="2012-12-23T12:15:00+08:00" pubdate data-updated="true">Dec 23<span>rd</span>, 2012</time>
| <a href="/blog/2012/12/23/on-training-of-teaching-sat-toefl/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>2013年,我会开始对外公开做一系列的TOEFL/SAT教师培训。有意参加者,请先加入QQ群:288399549。</p>
<p>申请加入之前,请发email至<a href="mailto:lixiaolai@gmail.com">lixiaolai@gmail.com</a>,标题请注明:“申请加入TOEFL/SAT教师QQ群”。</p>
<p>email中请提交以下信息:</p>
<ul>
<li>真实姓名</li>
<li>QQ号码</li>
<li>身份证号码</li>
<li>移动电话号码</li>
<li>常用电子邮件地址</li>
<li>TOEFL成绩</li>
<li>SAT成绩</li>
<li>(可选:其它简历信息)</li>
</ul>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/12/06/ang-lee-told-a-disgusting-version-of-a-story/">李安讲了一个下流的故事</a></h1>
<p class="meta">
<time datetime="2012-12-06T14:49:00+08:00" pubdate data-updated="true">Dec 6<span>th</span>, 2012</time>
| <a href="/blog/2012/12/06/ang-lee-told-a-disgusting-version-of-a-story/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>看《Life of Pi》之前并没看过原著。这两天也没抽出时间看——不过,看过电影之后,却被恶心坏了。</p>
<p>电影的画面很漂亮。前一个半小时,作为观众,没想到李安要讲的究竟是什么,只是觉得他总是想往宗教上靠——只是觉得有点好笑。两个日本调查员出现之后,第二个版本的故事开讲,我才反应过来李安到底要说什么(或者,他自己要说的可能是另外一会事儿,但最终说出来的竟然如此):</p>
<blockquote>
<p>无论多恶心的事儿,为了活命都可以干,因为那是神的指引(管它哪个神)——只要活下来就行。别人会怎么看无所谓,反正他们会选那个听起来不错的版本。</p>
</blockquote>
<p>这是一部画面美丽,故事下流的电影。</p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/12/01/yong-shen-cha-zhi-du-wei-ji-de-li-yi-zhe-bian-hu-shi-bu-hou-dao-de/">用审查制度为既得利益者辩护是不厚道的</a></h1>
<p class="meta">
<time datetime="2012-12-01T15:08:00+08:00" pubdate data-updated="true">Dec 1<span>st</span>, 2012</time>
| <a href="/blog/2012/12/01/yong-shen-cha-zhi-du-wei-ji-de-li-yi-zhe-bian-hu-shi-bu-hou-dao-de/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>陆川的《王的盛宴》上映了。对这个抄袭剽窃的家伙拍的电影,当然不会有任何兴趣(<a href="http://ent.sina.com.cn/r/m/2002-06-05/86360.html">《寻枪》vs.《野良犬》</a>;<a href="http://video.sina.com.cn/v/b/11617811-1309656292.html">《可可西里》vs.《我的藏羚羊》</a>)。只是多了一个慨叹,在这个时代,我们见过太多的剽窃犯因欺世盗名而越发嚣张、越发得意(歌手比如台湾的黄舒骏、大陆的花儿乐队;作家比如郭敬明、韩寒……)。</p>
<p>另外一端,冯小刚的《一九四二》也根本无法看好。尽管刘震云的文笔,我个人觉得,要比莫言强多了。审查制度的存在,确实使这部小说没办法在银幕上发挥它原本的力量。可这也不能完全怪审查制度的存在。(根本没去看。问了一下看过的朋友,“是不是一个特没故事的电影啊?”得到的答案是万分肯定的。)</p>
<p>冯小刚也好,陆川也罢,根本就是这个审查制度下的既得利益者——尽管他们(含且不止含他们俩)一而再再而三地哭诉“自己到底有多么不容易”。事实是,如果没有审查制度,以他们这个水平,当今世界上最炫的艺术形式——电影——就根本没他们什么事儿。</p>
<p>对冯小刚的批评,被骂得最多的,是“有本事你拍1962啊!”——这种批评确实该骂——肏,有本事你直接骂该骂的人或机构啊!你不敢,没人说不可以,可你凭什么要求别人勇敢?!</p>
<p>而冯小刚的本性使得,在这样的环境里,他这么做;但是,如若没有审查制度,在那样的环境里,他肯定会有另外一个选择。他是所谓的达人,鸡贼得很——这是令很多人(比如,没出息时的我)羡慕的一种能力。</p>
<p>陆川则不同,丫没才气,只不过是一小偷。如若这是另外一番气候,如果有审查制度,如果真的全靠能力竞争,丫早就该死了。</p>
<p>最终,制度决定格调。</p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/11/08/sharing-location-on-ios/">使用iPhone共享当前位置</a></h1>
<p class="meta">
<time datetime="2012-11-08T11:21:00+08:00" pubdate data-updated="true">Nov 8<span>th</span>, 2012</time>
| <a href="/blog/2012/11/08/sharing-location-on-ios/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>你与朋友有约,到了附近却相互找不到,这样的时候,iPhone的地图共享功能就会帮你大忙。好玩的是,好像很多人并不知道iPhone的这个神器。很多次,我跟朋友说,你把位置共享给我呗?结果,对方给我发来地图的截图……可截图是不可能导航的啊!</p>
<p><img class="center" src="http://lixiaolai.com/images/ios-map-sharing-01.png" title="" /></p>
<p><img class="center" src="http://lixiaolai.com/images/ios-map-sharing-02.png" title="" /></p>
<p><img class="center" src="http://lixiaolai.com/images/ios-map-sharing-03.png" title="" /></p>
<p><img class="center" src="http://lixiaolai.com/images/ios-map-sharing-04.png" title="" /></p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/11/02/on-plagiarism/">关于剽窃</a></h1>
<p class="meta">
<time datetime="2012-11-02T11:31:00+08:00" pubdate data-updated="true">Nov 2<span>nd</span>, 2012</time>
| <a href="/blog/2012/11/02/on-plagiarism/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p><a href="http://v2ex.com/t/51189">v2ex上的一个帖子</a>,引来大量回复,起因是一剽窃事件。</p>
<p>国人对剽窃的宽容,大概是举世闻名的。在阅读帖子与回复的过程中,我曾有过幻觉:“还是有不少人能够分辨是非的!”可今早醒来,想起来很可能存在另外一种情况:“有更多的人其实持另外一种态度,只不过,他们也知道这种态度‘不宜公开’,于是选择了沉默……”怎么想都觉得沉默的是大多数。不禁黯然。</p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/10/31/setting-up-mysql-through-homebrew-on-mac/">Setting Up Mysql Through Homebrew on Mac</a></h1>
<p class="meta">
<time datetime="2012-10-31T07:39:00+08:00" pubdate data-updated="true">Oct 31<span>st</span>, 2012</time>
| <a href="/blog/2012/10/31/setting-up-mysql-through-homebrew-on-mac/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content">
<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>terminal </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>
<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>
</pre></td><td class="code"><pre><code class="bash"><span class="line"><span class="c">#安装</span>
</span><span class="line">brew install mysql
</span><span class="line"><span class="c">#配置</span>
</span><span class="line">mkdir ~/Library/LaunchAgents/
</span><span class="line">cp /usr/local/Cellar/mysql/5.5.27/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/aunchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
</span><span class="line"><span class="nb">unset </span>TMPDIR
</span><span class="line">mysql_install_db --verbose --user<span class="o">=</span><span class="sb">`</span>whoami<span class="sb">`</span> --basedir<span class="o">=</span><span class="s2">"$(brew --prefix mysql)"</span> --datadir<span class="o">=</span>/usr/local/var/mysql --tmpdir<span class="o">=</span>/tmp
</span><span class="line">/usr/local/opt/mysql/bin/mysql_secure_installation
</span><span class="line"><span class="c">#基本使用</span>
</span><span class="line">mysql.server start
</span><span class="line">mysql.server stop
</span><span class="line">mysql.server restart
</span></code></pre></td></tr></table></div></figure></notextile></div>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/10/28/english-phonetics-keyboard-layout-for-mac-os-x/">English Phonetics Keyboard Layout for Mac OS X</a></h1>
<p class="meta">
<time datetime="2012-10-28T23:13:00+08:00" pubdate data-updated="true">Oct 28<span>th</span>, 2012</time>
| <a href="/blog/2012/10/28/english-phonetics-keyboard-layout-for-mac-os-x/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>前几天写了个TextMate Bundle,用来输入国际音标的HTML Entities,托管在github: <a href="https://github.com/xiaolai/ipa-html-entities-tmbundle">ipa-html-entities-tmbundle</a>。后来发现鼠须管有一个IPA Schema,不过,用过之后,发现对于只需要输入英语音标的需求来说,并不是很方便。</p>
<p>今天花了十几分钟,用<a href="http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele">Ukelele</a>编写了一个<a href="http://www.lixiaolai.com/files/English-Phonetics.keylayout">English Phonetics Keyboard Layout</a>(点击鼠标右键选择‘另存为…’)。下载之后,放进 <code>/Library/Keyboard Layouts/</code> 目录,而后就可以像添加输入法一样调用了:</p>
<p><img class="center" src="http://www.lixiaolai.com/images/input-sources.png" /></p>
<p>键盘布局如下:</p>
<p><img class="center" src="http://www.lixiaolai.com/images/epk.png" /></p>
<p><img class="center" src="http://www.lixiaolai.com/images/epk-shift.png" /></p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/10/22/rime-mac-shang-de-shen-ji-shu-ru-fa/">Rime: 被称为‘神一样的输入法’ —— Squirrel (OS X)</a></h1>
<p class="meta">
<time datetime="2012-10-22T23:36:00+08:00" pubdate data-updated="true">Oct 22<span>nd</span>, 2012</time>
| <a href="/blog/2012/10/22/rime-mac-shang-de-shen-ji-shu-ru-fa/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>早就有人向我推荐鼠须管输入法,可惜我愚笨,试了一下没学会,就放下了。昨天因为不想在新机器上安装百度、QQ、搜狗之类的输入法,就想起重新试试鼠须管。幸好Gtalk上能联络到作者佛振,在他的帮忙下终于搞定。</p>
<p>这款输入法的名字是<a href="http://code.google.com/p/rimeime/wiki/Downloads">Rime</a>,Linux版叫“中州韵”(ibus-rime),Windows版叫“小狼毫”(Weasel),Mac OS版叫“鼠须管”(Squirrel)。</p>
<p>下载安装很容易,配置,由于没有图形化界面(GUI),所以稍微麻烦一点点。(事实上,只是因为我的需求稍微特殊一点,如果过去一直是使用全拼、简拼的话,其实完全没必要进行什么设置,下载安装之后就可以直接用了……另,如果你用全拼,但需要打开模糊音设置,那就创建<a href="https://gist.github.com/2320943">这个文件</a>;如果你需要其它输入方案,那就创建<a href="https://gist.github.com/2309739">这个文件</a>)</p>
<p>我的需求如下:</p>
<ul>
<li>微软双拼方案(当年选择微软拼音的时候,还是所谓“万码奔腾”的时代,那时候它还真是当时最好的中文输入法。)</li>
<li>模糊音设置(只需区分 z/zh、c/ch、s/sh —— 这是十多年前为了提高输入速度而养成的习惯,还真的很难改回来……)</li>
</ul>
<blockquote>
<p>话说当年选个输入法真的不容易,因为没有一个方案是完善的——其实到今天也一样,只不过,算法及计算能力的改善使得键位方案没那么重要了……</p>
<p>微软拼音(其实是哈尔滨工业大学开发,后来被微软购买的)在当年算是最好的方案了。当年花了一下午时间适应了双拼之后,觉得输入速度大幅度提高(毕竟两键一字啊!)后来,发现还有一个提高速度的方法,就是打开模糊音,不区分z/zh、c/ch、s/sh。这样的话,可以调整左右手搭配。比如,输入“是啊”这两个字的时候,如果不打开模糊音,那么就是<code>u</code> <code>i</code> <code>o</code> <code>a</code>,连续三个右手动作,而后一个左手动作;可如果打开模糊音了的话,就可以输入 <code>s</code> <code>i</code> <code>o</code> <code>a</code>,这样就是左右手交替,左右左右,明显更容易有节奏。(记得当年选择微软拼音输入方案的另外一个原因是,它的选字方法有个很智能的地方,就是方向键移动光标到右侧尽头之后,光标会循环显示至最左侧——这个小功能无比体贴;还有,它的整句输入在当时是革命性的……)</p>
<p>这一用,就用了十多年,到了Mac上才意识到苹果是不可能提供微软拼音方案的……这一年多以来,各种输入法之间徘徊,每一个都是凑合着用……直到现在,有了鼠须管……</p>
</blockquote>
<h1 id="section">启用微软双拼方案</h1>
<p>在<code>~/Library/Rime</code>目录下创建<code>default.custom.yaml</code>文件,添加如下内容:</p>
<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>default.custom.yaml </span><a href="https://github.com/xiaolai/rime-settings/blob/master/default.custom.yaml">code </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="python"><span class="line"><span class="n">patch</span><span class="p">:</span>
</span><span class="line"> <span class="s">"menu/page_size"</span><span class="p">:</span> <span class="mi">5</span>
</span><span class="line"> <span class="n">schema_list</span><span class="p">:</span>
</span><span class="line"> <span class="o">-</span> <span class="n">schema</span><span class="p">:</span> <span class="n">double_pinyin_mspy</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<p>而后,deploy(点击系统菜单栏上的输入法图标,之后选择“deploy”)…… <code>~/Library/Rime</code>目录下会生成几个新的文件,其中包括<code>double_pinyin_mspy.schema.yaml</code>…… 下一步启用模糊音设置,就是要修改这个文件。</p>
<h1 id="section-1">设置模糊音</h1>
<p>(我尝试创建一个<code>double_pinyin_mspy.custom.yaml</code>文件,而后进行设置,并未成功。佛振先生说,因为目前还不能给list文件打patch……似懂非懂,不明觉厉)</p>
<p>打开<code>double_pinyin_mspy.schema.yaml</code>,在第52行之后,输入(注意缩进对齐——这是python语言,缩进很重要):</p>
<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>double_pinyin_mspy.schema.yaml </span><a href="https://github.com/xiaolai/rime-settings/blob/master/double_pinyin_mspy.schema.yaml">code </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>
</pre></td><td class="code"><pre><code class="python"><span class="line"> <span class="o">-</span> <span class="n">derive</span><span class="o">/^</span><span class="p">([</span><span class="n">zcs</span><span class="p">])</span><span class="n">h</span><span class="o">/</span><span class="err">$</span><span class="mi">1</span><span class="o">/</span> <span class="c"># zh, ch, sh => z, c, s</span>
</span><span class="line"> <span class="o">-</span> <span class="n">derive</span><span class="o">/^</span><span class="p">([</span><span class="n">zcs</span><span class="p">])([</span><span class="o">^</span><span class="n">h</span><span class="p">])</span><span class="o">/</span><span class="err">$</span><span class="mi">1</span><span class="n">h</span><span class="err">$</span><span class="mi">2</span><span class="o">/</span> <span class="c"># z, c, s => zh, ch, sh</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<h1 id="section-2">在特定程序中起始状态为非中文</h1>
<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>squirrel.custom.yaml </span><a href="https://github.com/xiaolai/rime-settings/blob/master/squirrel.custom.yaml">code </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>
</pre></td><td class="code"><pre><code class="python"><span class="line"><span class="n">patch</span><span class="p">:</span>
</span><span class="line"> <span class="n">app_options</span><span class="o">/</span><span class="n">com</span><span class="o">.</span><span class="n">apple</span><span class="o">.</span><span class="n">Terminal</span><span class="p">:</span>
</span><span class="line"> <span class="n">ascii_mode</span><span class="p">:</span> <span class="n">true</span>
</span><span class="line"> <span class="n">app_options</span><span class="o">/</span><span class="n">com</span><span class="o">.</span><span class="n">apple</span><span class="o">.</span><span class="n">Safari</span><span class="p">:</span>
</span><span class="line"> <span class="n">ascii_mode</span><span class="p">:</span> <span class="n">true</span>
</span><span class="line"> <span class="n">app_options</span><span class="o">/</span><span class="n">com</span><span class="o">.</span><span class="n">macromates</span><span class="o">.</span><span class="n">TextMate</span><span class="o">.</span><span class="n">preview</span><span class="p">:</span>
</span><span class="line"> <span class="n">ascii_mode</span><span class="p">:</span> <span class="n">true</span>
</span><span class="line"> <span class="n">app_options</span><span class="o">/</span><span class="n">com</span><span class="o">.</span><span class="n">sublimetext</span><span class="o">.</span><span class="mi">2</span><span class="p">:</span>
</span><span class="line"> <span class="n">ascii_mode</span><span class="p">:</span> <span class="n">true</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<h1 id="section-3">更换图标</h1>
<p>鼠须管的图标比较难看,我随便在网上找了一个适合放在菜单条上的黑白图标:<a href="https://github.com/xiaolai/rime-settings/raw/master/rime.icns">https://github.com/xiaolai/rime-settings/raw/master/rime.icns</a>,用来替换<code>/Library/Input\ Methods/Squirrel.app/Contents/Resources/rime.icns</code>.</p>
<h1 id="section-4">导入各种词库</h1>
<p>我自己没空折腾这个,基本上自带的词库对我来说已经够用了。不过,这里有一篇很详细的文章,应该够用了:<a href="http://www.ukuang.com/2012/10/13/鼠须管输入法导入搜狗细胞词库/">鼠须管输入法导入搜狗细胞词库</a>.</p>
<h1 id="section-5">补充</h1>
<p>用了几天之后才发现鼠须管居然带着一个国际音标输入方案,这对我来说实在太有用了!打开之前用过的default.custom.yaml文件,添加这个方案:</p>
<div class="bogus-wrapper"><notextile><figure class="code"><figcaption><span>default.custom.yaml </span><a href="https://github.com/xiaolai/rime-settings/blob/master/default.custom.yaml">code </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>
</pre></td><td class="code"><pre><code class="python"><span class="line"><span class="n">patch</span><span class="p">:</span>
</span><span class="line"> <span class="s">"menu/page_size"</span><span class="p">:</span> <span class="mi">5</span>
</span><span class="line"> <span class="n">schema_list</span><span class="p">:</span>
</span><span class="line"> <span class="o">-</span> <span class="n">schema</span><span class="p">:</span> <span class="n">double_pinyin_mspy</span>
</span><span class="line"> <span class="o">-</span> <span class="n">schema</span><span class="p">:</span> <span class="n">ipa_xsampa</span>
</span></code></pre></td></tr></table></div></figure></notextile></div>
<p>而后deploy(部署),control + ` 再选就可以更换到这个输入方案。</p>
<p>另外,我自己前几天写了个TextMate Bundle,用来输入国际音标的HTML Entities,托管在github: <a href="https://github.com/xiaolai/ipa-html-entities-tmbundle">ipa-html-entities-tmbundle</a>,也许对一些人有用。</p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/10/20/Rewrite-Everyone-Can-Use-English/">重写《人人都能用英语》</a></h1>
<p class="meta">
<time datetime="2012-10-20T13:25:00+08:00" pubdate data-updated="true">Oct 20<span>th</span>, 2012</time>
| <a href="/blog/2012/10/20/Rewrite-Everyone-Can-Use-English/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>两年前,着手写《人人都能用英语》,成稿一段时间后,由于种种原因,并没有正式出版。随后只因事物繁忙,搁置至今。最近在<a href="http://lixiaolai.com/blog/2012/10/15/ruby-on-rails-is-my-new-start/">学Ruby on Rails</a>、以及写《<a href="http://lixiaolai.com/alpha/on-learning/">学习学习再学习</a>》的过程中,又重新审视了之前的文稿,有点庆幸当初并未出版。我将花几周时间做准备,然后重新开始写——不过,确定的是,坚决不再使用传统出版渠道——只发表在互联网上,甚至应该做成一个互联网应用才好。</p>
</div>
</article>
<article>
<header>
<!-- Now we're back to normal posts. Note the links used under href in both headers.-->
<h1 class="entry-title"><a href="/blog/2012/10/15/ruby-on-rails-is-my-new-start/">新的起点Ruby on Rails</a></h1>
<p class="meta">
<time datetime="2012-10-15T10:20:00+08:00" pubdate data-updated="true">Oct 15<span>th</span>, 2012</time>
| <a href="/blog/2012/10/15/ruby-on-rails-is-my-new-start/#disqus_thread">Comments</a>
</p>
</header>
<div class="entry-content"><p>一直在说,“偷懒的唯一方法是不偷懒”。结果,一晃好几年过去,在一个重要的领域,自己犯了这个错误。</p>
<p>2007年的时候,知道了ROR的存在,研究了一小下,没学会。然后就想,我毕竟不需要自己写代码的吧?于是,四处找人帮忙,也找过各种外包……最终,自己想要做的网站一直就没有做出来。这中间“偷懒地”用了很多工具,WordPress, Drupal…等等,都差强人意。</p>
<p>一晃接近5年过去,时间也虚度了(在这方面),钱也花了很多——真的不少,随便找个外包就是几万块但也不见得做出自己想要的东西(主要问题并不在外包,而在于自己的需求和想法在不断地变化)……到了八月份,痛定思痛,决定自己动手。</p>
<p>真的开始玩命学了,就会知道,难依旧很难,但其实也没有多难——起码不会“不可逾越”。两个月过去,期间各种杂事忙碌,主要是国庆长假期间有大把的时间折腾。慢慢开朗了一些,找到一些感觉。祝我顺利!</p>
</div>
</article>
<div class="pagination">
<a class="prev" href="/blog/page/2/">← Older</a>
<a href="/blog/archives">Blog Archives</a>
</div>
</div>
<aside class="sidebar">
<section>
<h1>About Me</h1>
just another life-long learner …
</section>
<section>
<h1>On Delicious</h1>
<div id="delicious"></div>
<script type="text/javascript" src="http://feeds.delicious.com/v2/json/xiaolai?count=3&sort=date&callback=renderDeliciousLinks"></script>
<p><a href="http://delicious.com/xiaolai">My Delicious Bookmarks »</a></p>
</section>
<section>
<h1>Recent Posts</h1>
<ul id="recent_posts">
<li class="post">
<a href="/blog/2012/12/23/on-training-of-teaching-sat-toefl/">关于TOEFL/SAT教师培训(2013)</a>
</li>
<li class="post">
<a href="/blog/2012/12/06/ang-lee-told-a-disgusting-version-of-a-story/">李安讲了一个下流的故事</a>
</li>
<li class="post">
<a href="/blog/2012/12/01/yong-shen-cha-zhi-du-wei-ji-de-li-yi-zhe-bian-hu-shi-bu-hou-dao-de/">用审查制度为既得利益者辩护是不厚道的</a>
</li>
<li class="post">
<a href="/blog/2012/11/08/sharing-location-on-ios/">使用iPhone共享当前位置</a>
</li>
<li class="post">
<a href="/blog/2012/11/02/on-plagiarism/">关于剽窃</a>
</li>
</ul>
</section>
<a href="http://twitter.com/xiaolai" class="twitter-follow-button" data-show-count="true">Follow @xiaolai</a>
</aside>
</div>
</div>
<footer role="contentinfo"><p>
Copyright © 2012 - xiaolai -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
</footer>
<script type="text/javascript">
var disqus_shortname = 'xiaolaigithub';
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>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
</body>
</html>