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.

  • 960 Grid System - Another CSS scaffolding system. Nice looking home page, at the very least.
  • The Art & Science of CSS - And speaking of CSS, here’s a free book download from SitePoint. I’ve actually got this one in paper; it’s not bad.
  • GitX 0.5 - This git GUI for OS X is developing nicely.
  • Base - Commercial (£10.00) GUI for SQLite. I should take a look at this one.
  • Skim - Fancy PDF reader and note manager for OS X.
  • The Opposite of Momentum or “Sophie’s Choice” for Rubyists - Another rubyist expresses general malaise about the state of the language.
  • It’s hard to work real effectively when your head is ready to explode. But self-employment doesn’t come with paid sick days.

  • What’s New in Edge Rails: Default Scoping - Ryan Daigle covers some of the latest changes.
  • SQL Injection Cheat Sheet - Read it as things to guard against rather than a cookbook, please.
  • Shoulda for RSpec is Remarkable - Another addition to the growing stable of testing tools.
  • Installing ruby 1.9preview1 on OS X Leopard - How to do it.
  • QBWC-Mini - Experimental Sinatra server for easier QuickBooks integration.
  • « Distribute Your Content With Amazon CloudFront - Amazon’s new CDN. I expect we’ll see Rails integration shortly.
  • Ruby on Rack #2 - The Builder - Pratik is still writing about Rack and how to use it.
  • Tutorial: Reset Passwords with Authlogic - Just what the title says.
  • 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.

    I pushed out some more improvements to both finder_filter and user_event_logger over the weekend.