Echographia

making things better, making better things

Saturday, April 25, 2009

Rails 2.3 backtraces and emacs

This morning I exhumed an old Rails project and started cranking it forward from Rails 1.2.2 to the current version, 2.3.2. That’s about two years of Rails develpopment. This afternoon I got all the tests passing except for two (and I think they’re failing because Yahoo has changed its geocoder)… and then I found the other stash of tests. So, still working on it.

I spent some time tonight sidetracked by tools. In Emacs, thanks to Ryan Davis, I can shift-mouse-3 on pretty much any line in a stack trace and be taken to the right line in the right file. But under Rails 2.3 it doesn’t always work: (more…)

posted by erik at 9:54 pm  

Saturday, April 18, 2009

I’m at GoGaRuCo

… the Golden Gate Ruby Conference. Three talks I like so far, for different reasons: (more…)

posted by erik at 12:07 pm  

Thursday, April 9, 2009

RubyMine (IDEA for Ruby)

Quick thoughts on trying out the RubyMine IDE (based on IntelliJ IDEA) today: (more…)

posted by erik at 11:13 pm  

Sunday, February 22, 2009

compliments

After the Barefoot site launched, I got a lot of nice feedback about it, mostly from people who work for the cafe.  “Looks great!” they said, and I wasn’t quite sure how to react.  I was proud of how the site worked, but the look of the site, I thought, was entirely thanks to Conrad Altmann, the designer.

(more…)

posted by erik at 2:14 pm  

Sunday, February 8, 2009

dynamic Dock menus, HotCocoa version

Here’s a simpler version of that last post using Rich Kilmer’s HotCocoa library. I also use the approach I suggested at the end of the last post: Build a menu each time it’s requested, instead of trying to keep one at the ready.
(more…)

posted by erik at 6:48 pm  

Sunday, February 8, 2009

dynamic Dock menus in MacRuby

I’ve been wanting to write a Mac application since I got this computer a year or so ago. Still haven’t, but today I ran through a MacRuby/Cocoa tutorial, and I’m hoping to find the time to code the app I have in mind soon, before I forget whatever I just learned. More about that if it happens.

My original plan was to make the app accessible from the global menu bar, but then I learned that Apple’s Human Interface Guidelines discourage it, and you know how I love guidelines. And humans. So instead I’m going to use a Dock menu. The main advantage of both, for my purposes, is that after you take some action, control returns immediately to whatever application you were using; perfect for programs you use for a moment now and then, but don’t really spend time in.

Anyway, I thought I’d share what I learned about implementing Dock menus in MacRuby. (more…)

posted by erik at 2:48 am  

Monday, February 2, 2009

backup from dreamhost

Yesterday was the first day of February Album Writing Month, so of course I kicked things off by sinking three hours into writing a script that I could have found on the Internet somewhere. See, last week I cleaned out my GMail inbox. Since I haven’t done that, like, ever, that meant reading a lot of old and unimportant mail - like, for example, the July 2008 DreamHost newsletter, which mentioned their Entire Account Backup service, which gives you a downloadable copy of all your data for a given account. I love backups, so in the interest of being able to archive that newsletter, I kicked off a backup right then and there.
(more…)

posted by erik at 9:48 am  

Monday, January 26, 2009

where I’ve been

For my two readers, an update:  Yesterday we launched a new web site for Barefoot Coffee.  I’m really excited about it because it’s the first time I’ve been involved with something like this from start to finish (although it’s not really finished - I’m just in denial about the Phase 2 document I haven’t read yet).

It’s also the first time in several years I’ve worked as a truly independent contractor.  The team was very small:  Graphic design by Conrad Altmann; vision and many, many words by Andy Newbom; and technical implementation by me.  We used Radiant, which is mostly a joy to work with, especially once you get a couple of useful extensions installed.  The markup’s pretty clean, the CSS is somewhat comprehensible, and I wrote a custom Radiant extension and some jQuery scripts for a couple of things that weren’t easy to do out of the box.  I’m proud of this project.

What else is going on:  A couple of Rails applications for a tiny startup; version 2 of the Tin Cat web site; and an academic project that’s suffering from neglect since I noticed the recent drop in my bank balance.  Plus, you know, the band, and an intermittent life.

I’m hoping to start posting here someday.  We’ll see.

posted by erik at 4:47 pm  

Tuesday, July 29, 2008

Capistrano deployment from an internal svn server

A few months ago, I had to move a project I was working on to a new production environment, and I had some trouble getting Capistrano to deploy our code. The problem was basically this: (more…)

posted by erik at 1:11 am  

Sunday, July 20, 2008

special bonus tip: unbreak wordpress

If you’ve just installed WordPress, say, for example, at http://echographia.com/blog, and then you started checking out the options, and you accidentally changed the WordPress address, say, for example, to http://echographia.com/, and now your CSS is all missing and if you try to change the settings you get redirected to a login script that doesn’t exist… and if you can get direct access to the SQL database… try something like this:

show tables;

Note the table whose name ends with options. I’m on a DreamHost one-click install of Wordpress, so I don’t know what it’s called in a standard installation. Let’s just say it’s called options.

update options set option_value = 'http://www.echographia.com/blog' where option_name = 'siteurl';

posted by erik at 11:10 pm  
« Previous PageNext Page »

Powered by WordPress