A Library for Drawing a Separator Line, NO Kidding! 18 Feb 2014

Last week I read a post: Objective-C libraries and Unix philosophy.

It was such an inspiring reading that I was encouraged to extract an NSView subclass from my disk dust, and release it as a library via CocoaPods: KASeparatorLine.

I believe this is the smallest open source project I’ve ever put on GitHub. Just one Objectiv...

Gmail Notifr 0.9.0 and 1.0 have been released! 31 Jan 2014

These two versions contain some bug fixes and performance optimization.

Version 0.9.0 will be the final free release and ...

再见了五笔 26 Jan 2014

约二十年前我还在念中学。家境一般,周边又没有接触 PC 的环境,就央求父亲去城里买了一台小霸王学习机。

在这台机器上,我自学自会了英文输入、五笔字型输入和最基本的 BASIC 编程。这二十年来,我一直是用五笔来输入的。

确切的说,用的是 86 版五笔输入。从抛弃 Windows 改用 OS X 后,就没用到过一个完美的五笔输入法。目前用的是清歌,非常不错,但感觉跟十几年前的还是有差距(兴许仅仅是因为初恋总是最美好的吧)。

吴军博士在《数学之美》第 21 章《拼音输入法的数学原理》中说:

...

Safari 日语学习插件: Safarikai 08 Jan 2014

网页上遇到不认识的日文时,如果是假名偶尔还会查查字典,若是漢字一般就直接跳过并假设知其义了(当然实际情况是很多与中文写法相同或相近但意思相去甚远)。要是有一个工具可以即指即译,兴许对学习日语会有一定帮助。

这样的工具(浏览器插件)有而且非常好用,Firefox 下的是 Rikaichan,Chrome 下的是 rikaikun(前者的 port)。不过我自己一直使用 Safari, 不能日常使用这些工具非常残念。

13年底大假来临之际决定自己写一下。初步成果是这个 Safari 插件:Safarika...

雾霾 14 Dec 2013

2007年前后在北京工作生活一年有余,对首都的不良印象中最严重的一条是空气实在太差。每每觉得双眼前蒙着一层黄沙,随即感到无法顺畅地呼吸。

后来回老家居住,发现萧山的空气也不是记忆中的那般干净了。

在日本,基本上只要是晴日,天空便是透蓝的。感觉秋、冬两季的青い空尤其亮澈;出门抬头望一眼蓝天心情便格外舒畅。

蓝天

最近国内雾霾和...

Do you understand documentation? 14 Dec 2012

OS X Developers fool as me can’t read this doc well:

locationManager:didUpdateToLocation:fromLocation:

Discussion
Implementation of this method is optional. You should implement this method, however.

I wonder ...

Shoot yourself in the foot with Bundler and Capistrano 02 Dec 2011

In which I explain why you should not set your system time manually.

I almost ruined my Friday by deploying to our production servers before the office hours ended.

The application is on Rails 3.0.x and we use Bundler and Capistrano - old...

Learn Ruby on Rails 21 Aug 2011

I started to learn Ruby on Rails in 2006, when I was still a full time .NET developer. At that time many ASP.NET and C# projects had began to implement features borrowed from Rails, since I had some Ruby experience back in 2003 I...