Not installing gem documentation by default

Posted on December 03, 2011

Instead of specifying –no-ri –no-rdoc in the gem install command every time, put the following in your local gemrc file located in ~/.gemrc, it will skip installing documentation for all the gem installation by default, which is ideal for production environment.

How to instal mysql or mysql2 Ruby gem for Rails 3.0.x on OS X Lion 2

Posted on July 25, 2011

This hits me every time when I try to install mysql gem on a new OS X machine. Here’s the trick and this should work for Snow Leopard too. Prerequisite Install Xcode 4.x Lion offers free Xcode 4 in Mac App Store. Download and install “x86 64-bit” Mysql DMG (link) Install all supplied packages, it [...]

Quote: Jack Dorsey on “Being a CEO”

Posted on June 27, 2011

Jack Dorsey thinks about being a CEO: “I’ve often spoken to the editorial nature of what I think my job is, I think I’m just an editor, and I think every CEO is an editor. I think every leader in any company is an editor. Taking all of these ideas and you’re editing them down [...]

Quote: Steve Jobs on Programmer Productvity

Posted on June 26, 2011

Steve Jobs was back in 1997 as a “developer advisor” on programmer productivity and his opinions on building good apps as a programmer: The way you get programmer productivity is not by increasing the line of code per programmer per day. That doesn’t work. The way you get programmer productivity is by eliminating the line [...]

spam tags

How Do Spammers Call My Name? 1

Posted on March 31, 2011

People nowadays may have get used to spam emails. Security certainly is one of the concern, but I won’t talk about it in my post. And it won’t be a guide about how to technically avoid spammers, as there are a lot of people blogging these HOWTOs. What interests me is how spammers know my [...]

Posted in Curiosity 1 comment
Sina & Twitter

Confuses users with bad iPhone App Design: Sina Micro Blog

Posted on December 24, 2010

I always like this quote: “Good Designers Copy, Great Designers Steal” The idea of copying other designs must make sure the elements are in the correct context. A designer should always know what type of design may fit into their future work instead of headless copying other people’s great design – product may end badly [...]

yahoo

Delicious and Yahoo! But What about Flickr?

Posted on December 20, 2010

The future of Delicious was caused a lot of arguments on the web. I personally like Delicious as it’s one of the most simple and clean web bookmark management web service out there on the Internet. Certainly, web Bookmark services does not seem to be profitable. The acquisition of Xmark was by LastPass was another [...]

social clusters

新浪微博关系图 – Social Graph of Sina MicoBlog 2

Posted on October 01, 2010

近由于需要数据来测试一些HTML SVG的绘图工具的性能,想到运用新浪微博的API调用个人数据构成‘朋友’和‘粉丝’的关系图。假设以个人为中心,我的朋友和粉丝是与自己相连的节点… 每一个人代表一个节点,我个人位于中间的节点。在这个数据组里面,连接自己的节点数量较多,中心的点weight递加之后,便形成较大的节点。图1有遗漏一些信息,比如节点并不能说明这个粉丝也同时是我的朋友,也许此人是我的粉丝而我们却没有互相关注。图2和图3就可以显示出更近一部的关系 [...]

github-merge

GitHub – Merge in a Fork

Posted on September 28, 2010

Fork is a great way to start a new routine of software feature or improvement. There are situations when you would like to merge your current forked version with a latest/ongoing branch. The following code is an example of how to pull from another branch. The ‘project directory’ is your current git project root. The [...]

applescript

Launch and Hide Applications at Login with AppleScript

Posted on August 13, 2010

There are situations when we would like to launch an application but also hide the view once it has been launched. This can be achieved with simple AppleScript: This sample code will first launch “Things” application and tells the “Finder” to hide the window. In order to run this script at login as well as [...]