You are currently browsing the tag archive for the 'os x' tag.
There are times when I’m glad I’m not a big wheel in the Ruby community. Saves me all sorts of angst, apparently.
It’s hard to work real effectively when your head is ready to explode. But self-employment doesn’t come with paid sick days.
Now I know that getting to the Rapleaf API from Rails is trivial. I may never need this knowledge again.
- Tunnel 1.1 - Nothing to do with Rails, really; just a cute game for MacBooks that uses the accelerometer as a control device.
- Is the Hourly Model Broken? - Musings from RedMonk’s Stephen O’Grady. He’s writing from the analyst perspective, but this applies just as much to developers.
- Release 0.8.0 - Of the Mack framework, that is.
- Splitting models into several smaller files in Rails - I’m personally not convinced big models are a problem (I’d rather look in one large file than 6 small ones when tracing code). But if you disagree, here’s a solution for loading the pieces.
- Can’t activate rubyforge (=0.4.5) problems - Adding a bit of Google juice to this solution (uninstall and reinstall) since I ran smack into the problem tonight.
I’m too lazy to build from source if there’s not a good reason, and for running MySQL on OS X, I’ve yet to come across a good reason. So, I just use the MySQL Community downloads. Over the weekend I upgraded from 5.0.37 to the latest 5.1 download, because I was hard up against a MySQL bug that was fixed in later builds.
Unfortunately, while just running the installer for 5.1 worked great, it pointed the new server at a brand new set of databases - orphaning the couple of dozen databases I was working with. This was Not Good. The fix comes in two parts.
First, create /etc/my.cnf, with a single entry pointing to the old database files:
[mysqld]
datadir=/usr/local/mysql-5.0.37-osx10.4-i686/data
Second, tell MySQL to upgrade the files:
sudo mysql_upgrade -u root
The default merging behavior of git is pretty good - until it blows chunks and litters your merged file with dozens of >>>> markers. I had this happen to me again this weekend, and was finally motivated to do something about it.
To change the default merging behavior in git, you run
git config –global merge.tool toolname
To see the list of available tools, type
git mergetool
Most of the tools that git understands are unix-y. There is one OS X tool on the list: opendiff, which launches the FileMerge tool. But honestly, I’ve never been that impressed with FileMerge’s merge algorithm.
Fortunately, xxdiff is a pretty good tool, and it’s available as a Darwin port. So, assuming you already have your OS X box set up to install ports, you can have this as your default git merge user interface by running:
sudo port install xxdiff
git config –global merge.tool xxdiff
Now files needing a merge will open in the xxdiff user interface - which is an ugly XWindows thing, but it’s powerful. I’d love to see git hook up to something like Araxis Merge or Changes (when their 2.0 version with 3-way merge comes out), but I’m not nearly motivated enough to hack around in the git source yet.
Yesterday’s fun was getting started with cucumber, as some of the links below will tell you.
- Thin 1.0 - Another project hits “release”.
- What ToDo - The next stop in my quest to find an OS X task manager that thinks the way I do.
- Cucumber for Ruby on Rails - Instructions on what to install to get started.
- WebRat - Non-browser tool for web page acceptance testing that works with Cucumber.
- Cucumber - Next Generation RSpec Story Runner - Some of the basics.
- TextMate Bundle for Cucumber and TextMate Bundle for Webrat - Useful adjuncts.
- Shoulda 2.0 - Big upgrade to one of the other BDD tools.
- Woulda - Plugin-specific tests for Shoulda. Can Coulda be far behind?
I pushed out some more improvements to both finder_filter and user_event_logger over the weekend.
- Rails 2.1.1 - A bugfix release.
- Get a Free License for Today! - Today is a little Mac menubar app that helps track your tasks & calendar. It’s not bad, and if you’re a blogger you can get it for free.
- Map Rails Kit - Geocoding and Google Maps plotting in one abstract API, for $199. I’ve done this work myself, and I’m pretty sure I charged my client more than $199 for it.
- Ruby on Struts - A contrarian view about RESTful routes in Rails.
- ActsAsOrderedTree - Coming in handy on a project for me currently. Seems to fit my brain better than BetterNestedSet.
- acts_as_ferret tutorial - A good introduction.
- Asset Versioning in Rails - Understanding why Rails tacks that querystring on to your images.
- Inspect My SQL - Another tool for performance-tuning in Rails.
- DB Fixtures Replacement Step by Step - How to move to factory_girl for testing. I’m starting to feel this itch myself.

