Main Contents
October 31, 2008
Leopard has a really annoying behavior. When you disconnect your macbook from the external monitor, all your windows move over, which is to be expected. But when you reconnect the macbook to your external display, it doesn’t move the windows over.
Apparently the only fix right now is to hit the F7 button on [...]
Filed under: Everything |
Comments (0)
September 3, 2008
I had a pdf of a scanned book, unfortunately, each pdf page was two scanned book pages, and each page needed to be rotated too.
First, I used pdfimages to extract the scanned images, but you can probably do it with ghostscript or netpbm or one of the other tools out there.
# had to install poppler [...]
Filed under: Everything |
Comments (0)
June 11, 2008
When people think of the inevitable spread of humanity to space and the colonization of it, they tend to think of people living on the Moon and Mars.
The problem with colonizing the various moons and planets is that they are huge gravity holes. We are having far too much trouble climbing out of Earth’s [...]
Filed under: Everything |
Comments (3)
June 3, 2008
I am making this comparison because the similarities between these two people, one real and one fictional are too good to pass up.
First of all, Eckhart Tolle is the author of a new york bestseller called ‘The Power of NOW’. This book seems to me to be a repackaging of basic buddhistic principles [...]
Filed under: Everything |
Comments (4)
April 8, 2008
This is going to sound a little weird. But here goes.
I discovered this trick myself. It often works on the first or second try.
The basic mechanics of this trick is to swallow some air, but trap it in the throat, and then swallow on top of that. The second swallow [...]
Filed under: Everything |
Comments (2)
March 11, 2008
I personally dislike the current naming scheme of partials. Right now they follow the format of _somepartial.html.erb (Rails 2.*). I find it rather distracting and hard to find what I want when I am in a directory full of partial files following that naming format.
My suggestion is to use .perb for partials. [...]
Filed under: Everything |
Comments (3)
March 9, 2008
I was trying to figure out how to run a specific version of a gem, in this case, capistrano. I had capistrano 2.2.0 and 1.4.1 installed and I wanted to run the older version.
Trying to run /opt/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/bin/cap only gave me an error:
undefined method `execute!’ for Capistrano::CLI:Class (NoMethodError).
Turns out the trick is to use:
cap _1.4.1_ [...]
Filed under: Everything |
Comments (1)
March 9, 2008
28384376 * 1024 = 29065601024
The 1024 is repeated in the answer. I initially thought it was a bug in my program, but double-checked, and I thought it was pretty cool how the 1024 ends up at the end, with a buffer (the zero) between it and the rest of the number.
Perhaps alife could be [...]
Filed under: Everything |
Comments (0)
March 7, 2008
for i in ` git st | grep deleted | awk ‘{print $3}’ ` ; do git rm $i; done
Filed under: Everything |
Comments (1)
March 6, 2008
I just figured this out from YouTube and made my very first video by using my macbook’s built-in webcam and the iMovie HD software that comes with Mac OS X. No worries, I’m not a Mac fanboy, that’s just what I happen to have.
Fast Version:
Slow Version:
Download (right click with mouse & choose ’save as’): [...]
Filed under: Everything |
Comments (0)