Archive for the 'Ruby' Category

On Evernote

Wednesday, April 30th, 2008

Some kind soul was kind enough to give me an invite to Evernote. The features seem cool, such as:A Note management program for Windows and Mac.A somewhat limited Web versionThe Windows client doesn’t require Administrator rights, so I can install it at work!You can send photos from your cell phone camera and send it [...]

When “Convention over Configuration” goes wrong

Monday, April 28th, 2008

Exhibit A:

Passenger solves this problem by implementing user switching. A Rails application is started as the owner of the file config/environment.rb. So if /home/webapps/foo/config/environment.rb is owned by joe, then Passenger will launch the corresponding Rails application as joe as well. It took two experienced programmers an hour and a half to figure this out. I [...]

Another Emacs/Textmate Comparison

Tuesday, March 11th, 2008

While Blaine starting to attend the Church of Emacs I’m sorta having a crisis of the faith. I’ve been working on a Rails project lately and have gotten re-acquainted with Textmate again. I remembered why I liked it so much — it’s project mode is perfect for the many, many files of Rails. [...]

GeoToad

Monday, January 8th, 2007

I discovered GeoToad this weekend.  I haven’t messed with too much, but I already like it.

It’s written in Ruby, so it will run everywhere natively (i.e without Cygwin or a Unix environment).  I’ve been having problems with the geo-* tools that I have raved about before.  They assume that you are using GNU tools and [...]

No Rails “A-Ha” moment yet

Saturday, April 29th, 2006

I took some time tonight and played with some Rails tutorials and yet have had a “A-Ha!” moment. You know, the moment when you say, “Yeah, this is really cool! I can’t wait to use it!” I mean, parts of it are cool, like writing one line of code and you have [...]

An Easier way to install Ruby on Rails on MacOS

Wednesday, April 26th, 2006

Yep, I’m going to do some Rails stuff on this new MacBook Pro. More posts on that later — maybe after I learn a few things.

This page explains how to install it on Tiger by downloading and compiling everything manually. I already had DarwinPorts installed so I decided to use that instead. [...]

A Real Ruby XML script

Friday, February 10th, 2006

Here is a problem that I have been having and I have just solved it via Ruby and REXML:

I have two GPX files that I use for geocaching — one contains all the caches that I want to find and another contains the ones I have already found. Keep track of your finds [...]

A Ruby ConfigParser

Wednesday, February 8th, 2006

It’s high-time I got back to doing some Ruby, right?

I like Python’s ConfigParser and I decided to make my own for Ruby. Not because there isn’t any out there (I’m sure there is) but because I wanted to practice making a class, and a module, etc.

Well, it took me all of 30 minutes, most [...]

My First Real Ruby Script

Wednesday, January 25th, 2006

Here I present my first working Ruby script that actually does something useful. I wrote it yesterday but wanted to do some more testing before presenting it here.

The Problem: I wanted to take the geocaches from the geo-nearest script (see the geo-* scripts which I have talked about before) and put them into my GPX [...]

Ruby, Part 3 — XML

Monday, January 23rd, 2006

Eventually, I have write a script that does something with XML. I used to muck a lot with RSS stuff, but lately it’s been using GPX files. Regardless of the type of XML, I’m always mucking around with it and I’m comfortable with XPATH, DOM, and other accesses. I decided this would [...]