found_drama

Tidy up.



    Tag Archive for 'textmate'

    #wrestling with rails

    For various reasons, I decided to give TextMate another try (as I may be hitting Smultron’s upper limits). One of the reasons was to because I felt like trying my hand at a few Rails tutorials and TextMate is supposed to be the de facto standard editing environment for that kind of development1 — and thus begins our chicken-and-egg question.

    Anyway: day one of our TextMate evaluation period and I figure: No time to lose, better get crackin’ on a tutorial or two… In particular, I have my eye on this tutorial from over on the Apple developer site; it seemed to apply most directly to my specific aims in learning the language and appeared to take the most direct approach. A quick install of MySQL and Locomotive later and I’m ready to go…

    But we don’t get very far, do we?

    The instructions in the tutorial conflict with each other and make some assumptions about what you have (or have not done) with respect to setting up your $ENV and $PATH (etc.) On the one hand, they mention Locomotive by name as a “golden-path” method to get up and running and on the other, they’re linking out to the Hivelogic build tutorial. At any rate, there is a disconnect — and I’m fairly convinced it has to do with what is or isn’t in the $PATH; specifically, Rails doesn’t seem to know where to find “rubygems” and I’m pretty confident that it has to do with Locomotive and its “Bundles”. For example:

    1. The article says to set up the project on the command line using rails expenses — but it doesn’t like that. Apparently, “rails” cannot be found. But that’s no problem. Locomotive takes care of this set up on your behalf anyway.
    2. Next it says to throw script/server into the command line. I’ll admit that I skipped this one. Again: Locomotive is more than happy to do this on your behalf.
    3. Where we get into trouble is with the migration generator:

    $ script/generate migration accounts
    ./script/../config/boot.rb:18:in `require': No such file to load -- rubygems (LoadError)
    from ./script/../config/boot.rb:18
    from script/generate:2:in `require'
    from script/generate:2

    …? Not seeing a way to do this through Locomotive, I try to work my way backwards through the code. The error message certainly gives me the right breadcrumbs. Perhaps I’m still too novice with Ruby itself to fully determine what it means. I’ve got enough experience with other languages to make a guess: just like it says, it can’t fine “rubygems” but only because that file isn’t where the script expects it to be. A quick Spotlight search for “rubygems” uncovers 21 files and 8 directories (all buried deep within that “Bundles” directory that Locomotive has installed for itself.

    So why the mismatch?

    At this stage, I’m not certain. Which is a drag because I was expecting a much cleaner install, a much cleaner first impression. How am I supposed to “get” the beauty of this full stack framework when the only thing it wants to do for me is choke and throw errors? Alas, we’ll call it an unsuccessful night and hang up our spurs. For now.

    1. Though their marketing literature would sure have you believe that it’s the de facto standard editor for any geek textnology on OS X.[]

    #links for 2007-01-31


    #Essential OS X Software

    Been toying around with doing this list for a while now. The question: What are the top 10 software applications for OS X (that aren’t out-of-the-box, mind you) that are absolutely essential? The top 10 apps that I couldn’t live without:

    1. [tag]Quicksilver[/tag] (http://quicksilver.blacktree.com/) - The launcher to end all launchers. Is there anything this app can’t do? “Oh, that? There’s a plug-in for that.” Seriously, having used it for a over a year now, I can’t imagine computing without Quicksilver. Not just computing on a Mac without it. Computing. (In other words, Quicksilver is the reason I’ll never be able to go back to the PC.) Some folks say [tag]Spotlight[/tag] can do the same thing. Clearly, they weren’t using Quicksilver to its utmost.
    2. [tag]VoodooPad[/tag] (http://www.flyingmeat.com/) - A personal wiki and info manager. Fast and easy to use, if works the way a notepad app should. Because it’s a wiki at heart. Encryption, backlinks, document-wide searches, categorization, sketching; the list goes on. Also available in “Lite” version.
    3. [tag]Cyberduck[/tag] (http://cyberduck.ch/) - Fully-featured FTP application. Complete with SFTP support. Complete with [tag]Rendezvous[/tag]/[tag]Bonjour[/tag] support. Complete with [tag]AppleScript[/tag] support. Complete with [tag]Keychain[/tag] support. (Insert your localization here.) Oh, and it’s open source. (Honorable mention here: [tag]Fugu[/tag]!)
    4. [tag]OmniGraffle[/tag] (http://www.omnigroup.com/) - Pretty much the perfect diagramming application. And with some sweet drawing capabilities wrapped up in it, too. (Because those are prett intrinsically linked.) Worth the price. And so is the Professional version.
    5. [tag]Camino[/tag] (http://www.caminobrowser.org/) - Don’t get me wrong, [tag]Safari[/tag] is a great browser. (And apparently the first browser to pass the Acid2 test.) But in the “real world” there are plenty of sites that either don’t support it (or that Safari doesn’t support). Politics and rhetoric aside, Camino is a great browser in its own right and the superior Gecko-based browser on OS X. For when you need to (you know) use a WYSIWYG editor like the one in [tag]WordPress[/tag].
    6. [tag]ImageWell[/tag] (http://www.xtralean.com/) - A lightweight image editor for running certain quickie image manipulations. Including the ones that you’d expect to see in [tag]iPhoto[/tag] but didn’t manage to make it there. (And this is another one of those freebies…)
    7. [tag]Lingon[/tag] (http://lingon.sourceforge.net/) - The [tag]launchd[/tag] editor/manager. And it’s open source.
    8. [tag]OnyX[/tag] (http://www.titanium.free.fr/) - A little app that opens up some of OS X’s secret preferences. Like sticking your Dock flush right.
    9. [tag]Flip4Mac[/tag] (http://www.flip4mac.com/) - A plug-in for [tag]Quicktime[/tag] that lets you play Windows Media files. Nothing spectacular here except that it rids you of having to download RealPlayer in order to browse the music on [tag]Amazon.com[/tag]. (And recently made free!)
    10. (insert your [tag]text editor[/tag] here) - A controversial subject, I know… Many folks would shout “[tag]BBEdit[/tag]!” here … but I’m not one of those. I tried it. I could see how someone might fall in love with it. But I had a hard time getting used to it. Didn’t “do it” for me. That said, I’ve recently discovered [tag]TextMate[/tag] and am rather enjoying that. As far as text editors go at least. Also, honorable mention here: [tag]jEdit[/tag] - - a Java-based text editor. Open source and free, it’s pretty powerful and has a slew of awesome plug-ins. I’ve used it for 3 or 4 years now and have been pretty happy with it. Except that (like all Java apps) it’s hella slow…

    Another Honorable Mention: [tag]Adium X[/tag] … a neat little chat client. And (in my experience) a hell of a lot better than [tag]iChat[/tag]. But I don’t include it in the top 10 because frankly, I kind of abhor chat. A.k.a. “latent messenger”…

    currently playing: Chris Connelly “Come Down Here”