Friday, October 8, 2010

Friday, August 13, 2010

Thursday, July 29, 2010

Installing Ruby 1.9.2 via rvm on OS X

It took me a bit of digging to figure this out (it kept failing with readline errors, and then iconv went missing), so I thought I'd share:

rvm package install readline
rvm package install iconv
rvm install 1.9.2 -C --enable-shared,--with-iconv-dir=$HOME/.rvm/usr,\
--with-readline-dir=$HOME/.rvm/usr,--build=x86_64-apple-darwin10

For Jessica

For Jessica:

"A couple of weeks ago, a friend of mine and I were talking about a study she'd just read, which concluded that people without children were happier than people with children; or, to put it more precisely, despite what conventional wisdom holds, the study found that having children did not increase anyone's happiness.



At which all I could do was burst out laughing. Because, well. Duh.



Only an academic would undertake a study like this, defining happiness as something along the lines of "satisfaction with life" and "feeling rewarded by your work." If there's an occupation more likely to make you feel incompetent and unrewarded than being a parent, I have never heard of it."

Monday, July 5, 2010

Michigan Rain



[Flash 9 is required to listen to audio.]

Michigan Rain



Michigan Rain

Friday, June 18, 2010

OS X Screen Sharing over SSH

I recently set up a Mac Mini at home, and have found using Screen Sharing to access it invaluable. Not wanting to open up anything other than SSH on my home router, I created the following script to open up a Screen Sharing session over SSH:

Thursday, February 4, 2010

Opera 10 Anchor Tag Rendering Bug

For some time now, Wesabe's transaction edit dialog has been broken in Opera (10.10 as of this writing). Since it was fine in all other major browsers, and none of us were Opera users, fixing it was never high priority. I thought I'd take a look at it again tonight, though, and just when I was about to give up and go to bed, I managed to track it down.

If you have an anchor (<a>) tag that contains block-level elements (which is technically not allowed, but all other browsers seem to be ok with it), such as <p> or <div>, the anchor will close itself before the elements it is supposed to contain. E.g.:

<a>
<p>hello</p>
</a>

Will render as:

<a> </a>
<p>hello</p>


If you give the anchor an href, though, even if it is just a blank string (<a href="">...), it renders fine.

Here's a page that demonstrates the bug: http://footle.org/misc/opera-bug.html.

Anyway, I filed a bug with the Opera folks. Time for bed.