29 July, 2010

meet fred

t got this awesome picture of fred during the soccer game tonight...

26 July, 2010

time for a new saddle?

this looks like the subject of an o'keefe painting during her new mexico days and not something that belongs on a bicycle.

25 July, 2010

24 July, 2010

i love this feature on my bike

gotta hand it to those guys at surly bikes, they think of everything.

my new vacation hat

goin on vacation in a while and i needed a new hat.

22 July, 2010

my ride awaits

had to pull out some of the raingear for this morning's ride. i had my phone out because i decided to try out google tracks on my ride to work, so i snapped this pic.

back to google tracks, it's the best gps tracking app i've used on android, yet. i've tried (and uninstalled) two others. this has been the easiest to use. it's better than you'd expect for a free app.

16 July, 2010

hanging out on the deck

hanging on the deck at my house this evening (until the bugs find us)

12 July, 2010

wide load

hauled a coffee pot into work along with the standard clothrs, lunch, and computer. my REload bag has the capacity, but i'm not sure i want to ride like this every day.

08 July, 2010

That's not gonna work

Woah, what happened to the coffee pot? Did jared scrub it too vigorously?

04 July, 2010

xapian, a pain in the jewels... er... gem

i really want to rant on about ruby gems with native extensions and cross platform pains, but i'd rather solve a problem than perpetuate one. as such, i'll tell my xapian gem story in hopes that others can learn from it.

i'm working on a little side RoR project that requires the xapian gem to be installed. an important thing to mention is that i just recently moved to mac as my development platform, so i am a little new with their build tools, but i understand a lot of it because of time spent on *nix platforms and goofing with cygwin on windows.

anyway, i knew i would need to build and install xapian both the core and the bindings. both of those built just fine. this had me feeling pretty good, someone made sure these guys built on osx as well.

then, i got to what should've been the easy part: sudo gem install xapian

ouch!

first of all, i found the gem was hardcoded to use sed from a location other than where it's installed on snow leopard, so instead of digging through the make, rake, conf, libtool, etc... files, i just created a symlink to the location where the build was looking for it.

it turns out that all of the problems i was going to experience were related to "hard coding" in the gem. it was because the gem's owner/packager packaged up his/her generated libtool script which was for linux, so any of the x-platform dependencies were foobar on my system.

being as i'm new to mac, i continued to pick away at the references in the should-have-been-dynamically-configured-but-wasn't failed gem install directory. i advanced things quite far by finding paths, host, and os references that were linux based (especially in libtool) and fixed them to point to osx resources. this worked just fine until i got to crti.o and friends, which don't have a 1-1 osx to gnu relationship. ugh, a ton learned about gcc on the mac and i was at a dead end. i was going to have to hack way more into c code than i wanted to to get this to compile this way.

then, i had a brilliant idea, see if the source for the gem was online, and there was a link to gitorious on the rubygems page for xapian. well, look at that! there's a commit to make it build on osx.

so, i cloned that repo (not really looking at which files came down) and tried to build it. hey, that won't build, there are only two files in the repo, a Rakefile and extconf.rb. well, there's a little comment in the Rakefile that you need to pay attention to:

# Download the xapian-bindings tarball, extract it, and drop this file in there.
# Then run rake build.
#
# Alternately, gem install xapian. It's on Gemcutter.

well, i have xapian-bindings pulled and already built, plus, i know that xapian gem on gemcutter works like ass on osx, so here's what i did:

  1. i copied the files into my xapian bindings directory
  2. sudo ruby extconf.rb
  3. rake build
  4. cd pkg
  5. sudo gem install xapian -l

and finally....

gem list includes: xapian (1.0.18)

so, if you want to use the xapian gem, learn from from my experience.