Ruby on Rails

I have been a fan of Ruby for four years, but now suddenly Ruby’s cool because of Ruby On Rails. Course I didn’t know how to use Ruby on Rails. So I went from being ahead of the curve to behind the curve in a few short months. But Dreamhost has it, so I dinked around with it. I didn’t create a buzzworthy new web app in a day or two, but I did throw together a silly little database driven application in about 20 minutes.

Feel free to consult the guru, and add your own wisdom (or delete wisdom you don’t approve of). There’s no security or logins or any of that jive yet.

It’s A Sickness

So, my new win/lin laptop, the low end acer dealy… I have a six gig partition set aside whose only purpose is to allow me to try out alternative linux distros and whatnot while causing as little damage as possible to the parts of the machines I actually use for work. Here’s what I’ve done with it so far.

  • GoboLinux. Cool but gaudy and some things didn’t work right.
  • DeMuDi. Rockin cool for what it was designed for.
  • Breezy Badger (Ubuntu unstable) Didn’t work at all.
  • Debian Sarge. All I can say is that as of Sarge, Debian isn’t quite as horribly painful to deal with as it had grown under Woody. But I still wouldn’t really recommend it to anybody when Ubuntu is an option.

Lotta time wasted there.

UPDATE: I went back to Sarge and the more I use it the more I like it. It’s not as smooth an install as the big Ubuntu, but I get sick of “Ubuntu Brown” everything (computers and earth tones don’t go together for me), there are some really sweet fonts and color schemes in a default Debian desktop install… I think I might stay here in Debian for a while. I can always turn to the Ubuntu fora for hints on how to do things too.

GIMP 2.0 and XSane on OS X using Fink

It’s not that hard, but it was hard for me to figure it out how to do, so now that I know, I’m posting it so people who need to do it can find it.

Gimp 2.0 and XSane are both ‘unstable’. If you want to use them, read Q5.8 in the Fink FAQ thoroughly. You do *not* want to enable all of unstable. That way lies madness. You want to snag the .info and .patch files out of the unstable directory and put them in your local directory so you can build them with the least possible use of unstable, have-to-compile packages. I’m not going to go into detail on exactly which packages you need to do this for because I don’t remember all of them. Just do it as much as you need to. It won’t take forever.

Let’s take the Xsane problem first. You can install gimp 1.x from binary. If you want xsane to work as a plugin with your copy of the gimp, you need to install gimp and gimp-dev before you build xsane! If you do not have gimp-dev installed before you build xsane, xsane will happily build and then refuse to work with gimp, because it was compiled without gimp support. It will give you a “gimp support missing” error when you start up gimp. This is frustrating, and it’s hard to find documentation on how to deal with this, which is why I’m writing this blog post. Install xsane using “fink rebuild xsane; fink reinstall xsane” to make sure you get a nice fresh copy with gimp support.

That gets you xsane and gimp 1.x. If you want xsane and gimp 2.x, read on.

If you want gimp2 playing nice with xsane, you do the same thing, but uninstall all the gimp1 stuff, install all the gimp2 stuff (from unstable) (including gimp2-dev), and purge your install of xsane completely. Go edit the local copy of the xsane.info file you copied over from unstable (it should be at something like “/sw/fink/10.4-transitional/local/main/finkinfo/graphics/xsane.info”) and replace ‘gimp’ with ‘gimp2’ everywhere you see it in the file. Then “fink rebuild xsane; fink reinstall xsane” just to be sure.

You should get a working copy of gimp2 with an xsane plugin, and you’ll never have to worry about downloading scanner drivers from the manufacturer again.

(Actually I’m not sure you *have* to blow away your gimp1.x install to get it working with gimp2.x, but if you’ve got gimp2.x, why would you want to keep gimp1.x around? Gimp 2 crushes 1 like a ripe grape.)

Full of Stars

We’re on vacation, sort of. I forgot to ask for time off so I’m going in to work and hanging at the beach cottage in the evening. That’s why I have the laptop with me.

A few weeks ago I saw Stellarium on Freshmeat.net’s OS X section so I downloaded it to my ibook.

Night before last Mary and I stayed up late and watched the stars. There were zillions of ’em and some obvious planets. We figured the super bright and fairly bright planets must be Venus and Jupiter, but weren’t sure beyond that and the Big Dipper. I remembered Stellarium so I ran in and got it and clicked on our location and told it to plot the current time. It showed us a map of the sky as it was then and there, zing zing. We were right about Jupiter. The other really bright star in the sky was Arcturus. We also saw Spica near Jupiter, and Vega, and lots of other great stuff.

The next night we let the kids stay up that late and we showed them all the stars that we’d found out about the night before, bolstering our reputation for parental omniscience.

It was really cool. They’d never really looked at the stars before.

Kudos to Stellarium.