Author Archives: lonnon

Making public key SSH connections in Cygwin

Here’s a trick I had to relearn to get SSH to make a key-authenticated connection in a Cygwin environment. I have my Windows user directory (c:\Users\lonnon) set as my home directory via the HOME environment variable, but many Cygwin programs, like SSH, look for the home directory within Cygwin’s own bizarre little directory structure, at [...]

Running afoul of Windows NTFS stream security

This is the kind of stuff that drives me absolutely bonkers about Windows. I run Console as a command prompt replacement, and I just installed it on a brand new Vista machine. Unfortunately, every time I ran it, I’d get a security warning similar to this:

MySQL with Ruby under Cygwin

I have a brand spanking new laptop, and it needs a brand spanking new Ruby on Rails development environment. This being Windows, the only sane way to get a good pile of development tools and a usable shell is to install Cygwin. I’ve had it set up on the old laptop for a while now, [...]

Fixing git pre-commit hook woes

I’ve had something strange occur when attempting to commit changes to a Git repository located on a flash drive. A pre-commit hook, which is a script Git runs before the git commit command does its thing, prevents me from committing files until I’ve removed whitespace characters from the ends of all the lines in the [...]

Deploying a Sinatra app on Dreamhost

I’ve been down with the flu and confined to the couch for the last couple of days, so what better way to pass the time than learning a new web framework and deploying it to Dreamhost? Only a brain cooked by fever would think something like this might qualify as fun, but my grey matter [...]

Helipad, now on GitHub

The Helipad Ruby interface is now available on GitHub in addition to its original home on RubyForge.

There’s no difference at all between the two, apart from the GitHub copy bearing my name, which is GitHub’s convention for preventing collision between identically-named gems. If you wish to install the gem from GitHub instead of RubyForge, you [...]

Improved dynamic human-readable RESTful routing

Earlier in the week I posted about making dynamic RESTful routes in Rails. At the end of the article, I mentioned that the method I was using might not work in a production environment, and after searching Agile Web Development with Rails for the word “restart,” I confirmed my suspicions. Generating routes on the fly [...]

Crashing InDesign with bookmarks and hyperlinks

After generating a table of contents for a multi-document InDesign book, I tried to export the book to PDF. Adobe InDesign CS3 fell right over, presenting me with the friendly “please tell our developers what the hell you were doing that crashed our fine software” dialog.

When generating the table of contents (Layout > Table of [...]

Dynamic human-readable RESTful routing

I’m slowly becoming a convert to the RESTful routing model in recent versions of Rails, largely because it builds a pile of useful named routes with a tiny amount of code. If I put map.resources :sections in my routes.db file, I instantly get sections_path, edit_section_path, and all their friends. When coding a controller, it’s a [...]

TextMate as a blogging tool

There’s something extraordinarily wrong about this. I just discovered, through Barry Hess’ blog, that TextMate has a blogging bundle. It hooks up to the ubiquitous XML-RPC interfaces sported by modern blogging software (Wordpress, Movable Type, Typo, what-have-you) and lets you use your text editor to create and edit weblog posts.

This is a far more comfortable [...]