Archive for August, 2006

A bunch of cool stuff I found over the weekend that didn’t individually deserve a blog post, but I thought would be worth sharing. Extract Any Archive with Ruby This is really neat if you could never remember what commands or command-line arguments you need to extracting archives (.zip, .tar.gz, .tar.bz2 – those kinds of [...]

Moved to Rimuhosting

In: Blogging

11 Aug 2006

If you’re seeing this, that means the new DNS settings have finally resolved and you’re being served by a plain old Mongrel server instance on my Rimuhosting VPS. It’s so much faster than before. Before you start lecturing me on running just Mongrel, let me just say that now isn’t right time to get a [...]

After being plagued with performance issues running Typo (the blog software on which this blog currently runs) on Dreamhost, I decided it was time to give in and get a VPS once again. I was previously with Linode.com (they have a great control panel where you can drop in the distro you want – still [...]

For anyone who cares or who runs a production site on Rails, DHH just announced the release of Rails 1.1.5 with an undisclosed security patch. Time to gem install rails and update your config/environment.rb to use the Rails 1.1.5 # Specifies gem version of Rails to use when # vendor/rails is not present RAILS_GEM_VERSION = [...]

Just some notes on reflection and introspection in Ruby someString = ‘http://google.com’ # Print the object’s class, methods, superclass and # ancestors (mixins and superclasses), p someString.class p someString.methods p someString.class.superclass p someString.class.ancestors # Print the methods of the String class. p String.private_instance_methods(false) p String.public_instance_methods(false) # Pass true to recurse into parent classes. p String.public_instance_methods(true) [...]