MySQL Ruby 1.9 Adapter on OS X Leopard

July 2nd, 2009

First you need to get the latest MySQL adapter source. As far as I can tell, that’s all there is right now: no gem. You can grab it here. Extract it and hop in the new directory in your terminal. Here are the magic commands:

ruby1.9 extconf.rb --with-mysql-dir=/usr/local/mysql
make
make clean
sudo make install

This is assuming that your ruby 1.9 binary is called “ruby1.9″. That’s how MacPorts installs it, but if you built if from source back before MacPorts had it, it may be called ruby19. Also, make sure you clean before installing. I don’t usually do that and I got some really nasty errors that took a while to track down until I cleaned and re-installed.

Phil Programming ,

Screenshot Sharing with Dropbox and Applescript

June 3rd, 2009

It can sometimes be very handy to have a quick way to share screenshots. There are services out there, such as Grabup, that will use a client application to grab any screenshots you create, upload them to their server, and put the resulting URL in your clipboard for easy sharing. Or you can use Hazel and Dropbox. But there’s an even easier way to do it with just some Applescript and a Dropbox account.

Read more…

Phil Programming

Wave Makes Google the New Microsoft?

May 30th, 2009

Well, that’s what Mary Foley seems to think. And why would she think something like that? Apparently because “you need to write yet another protocol, not protocols or standards that already exist.” Even if that were true (which it isn’t, by the way, the Wave protocol is an extension of XMPP – an open protocol over a decade old) Google would have to lock the whole thing up and sell it to enterprises for thousands a license. And if this is such a “Microsoft” thing to do, where can I get my hands on Exchange Server and Outlook source code?

Read more…

Phil technology ,

Garmin nüvi 255 Review

February 22nd, 2009

The 255 is a GPS, I’d assume, like any other. It lets you get in the car and turn off your brain with regard to navigation. Not that that’s necessarily a good thing. Sometimes, while I’m blindly doing what it tells me, I think about the reports of truckers driving halfway across Europe in the wrong direction or of Michael Scott driving into a lake. It’s not perfect, but I’ve yet to come across anything that would make me wish I hadn’t bought it, or had purchased a different model instead.

Read more…

Phil Reviews , , ,

Stopping Wordpress Comment Spam

February 19th, 2009

Stopping any kind of spam is a daunting task. You can’t ever stop all of it. And even stopping 99% of it will still result in some quantity of unwanted spams getting through. But what if you don’t want to stop all the spam? What if you only want to stop the spam that’s coming into your blog? Well, in that case you can be nearly 100% effective, as long as you’re willing to get a little dirty.

Read more…

Phil Programming , , , ,