May 2012

Cat Photography with iPhone 4s

It has been a while since Yunyao got her iPhone 4s, which is known for its "superb" camera --- "8MP camera with all-new optics also shoots 1080p HD video". 8MP on a cell phone sounds really impressive, does it? Maybe she finally can leave her big heavy Pentax for a while?

So she tested its performance with her favoriate model: Mayori.

First, let's test it under natural light setting:

"What's up?"

Mayori

"I am sad ..."

"I am really really sad"

Count Number of Maps: First Exercises of Conceptual Mathematics in Clojure

As previously mentioned, I am learning category theory, beginning with Lawvere's Conceptual Mathematics book. This is a very elementry book that assumes almost nothing as a background. However, it is still a math book, which requires doing some exercises. Since the book provides no answer to exercises, I decide to make my own and post them here as I did them. Hopefully someone will find them useful. Continue reading »

Install Vim with Homebrew Python on OS X

For people that need full features of vim, the default installation of vim on Mac OS X is definitely not enough. For example, I need to use vim to post to this blog, which requires a version of vim with python support. I also prefer terminal version of vim to the GUI version, so MacVim is less desirable.

One way to get what I want is to compile a version of vim with homebrew. Homebrew does not officially have a vim fomula, because that would be a duplicate of the system version. Fortunately, we can grab an unofficial formula at
https://raw.github.com/Homebrew/homebrew-dupes/master/vim.rb Continue reading »

Nice place