Rails, Firefox, Anime, Mac
In: Neat Stuff|Ruby
12 Aug 2006A 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 [...]
In: Blogging
11 Aug 2006If 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 [...]
In: Ruby|Ruby on Rails
10 Aug 2006For 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 = [...]
In: Ruby
9 Aug 2006Just 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) [...]