September 2009
1 post
SecureRandom -- Stop writing your own random... →
Sep 24th
August 2009
1 post
Working With Multiple Ruby Versions Has Never Been... →
Aug 27th
July 2009
1 post
Inspecting a MySQL database's storage engine
Ever wonder what engine your MySQL database tables are stored in? Each table has its own engine setting, it’s not global per database. Use this query to find out what engine each of your tables is using: SELECT table_name,engine FROM information_schema.tables; And if you want to, for example, update the users table to use the InnoDB engine, use something like this: ALTER TABLE users...
Jul 10th
June 2009
3 posts
Condition Building made easy →
Just used this technique to build a page which can handle one or more optional conditions. This is definitely the best way I’ve seen to build a set of complex conditions into a single query.
Jun 24th
What If A Key/Value Store Mated With A Relational... →
“I find the best way to describe Mongo is the best features of key/values stores, document databases and RDBMS in one.” Sounds very compelling, but still in its early stages as far as Rails support goes.
Jun 7th
Is It JRuby? →
A simple community site that tells you whether or not a gem is compatible with JRuby.
Jun 1st
May 2009
3 posts
The Ruby Toolbox →
May 18th
Tips & Tricks for IRB →
Most of these I was familiar with except for utility_belt, which is awesome because it lets you edit IRB code using your favourite text editor like TextMate! Just type “mate”, put in all your code in the new window, close when done, and IRB will give you the result. Just one of many tricks in utility_belt’s bag.
May 14th
A re-introduction to JavaScript - MDC →
May 11th
April 2009
3 posts
What you don't know about regular expressions in... →
Using ^ and $ to signify the start and end of an expression can result in expected behaviour, and even presents a security risk.
Apr 26th
Prototyping @ Startup Weekend SF
I spent this weekend at Startup Weekend SF 2, and found one more reason to love rails: prototyping. There were at least 5 occasions where I stopped programming, looked over at my teammates and said, “have i mentioned i love rails?”. I’m no DHH fanatic, but the joy of being able to build out a fully functional app with all my business models and logic implemented in less than 2...
Apr 9th
Vim eye for the rails guy →
If you’re a ruby/rails programmer looking to get into the hang of vim (or alternatively macvim), this is a handy cheat sheet you can print out for reference. It’s not a list of every command in the book, rather it’s a condensed list to help you get into the swing of things.
Apr 9th
March 2009
2 posts
The rubber duck method of debugging →
Mar 11th
Speed up gem installs (no options necessary) →
Mar 1st
February 2009
10 posts
Ruby case statement comparison: apparently a... →
The case statement actually does its comparison using the ruby “===” operator, and as a result can sometimes give unexpected results.
Feb 25th
Extending route recognition →
An old post by Jamis Buck which outlines an excellent approach to extending rails route recognition. The post gives you a quick rundown of how to add support for additional parameters in your route declarations, allowing you to restrict those routes to a specific host, domain, or any other variable you define. I just used this trick to restrict some of our routes to a particular platform. Awesome...
Feb 13th
Easy Ruby Benchmarking →
The Benchmark module in ruby is not nearly as famous as it should be. Use it to easily check the execution time of a single method call, or specify multiple blocks to compare them against each other. What are you waiting for? Fire up that console and start optimizing!
Feb 12th
Cache-Money →
Recently, we integrated nkallen’s cache-money into our app. Cache-money is an awesome library built on top of ActiveRecord, with the intent of being the complete caching solution for your app. Definitely worth a look if you use memcached in rails.
Feb 12th
1 note
“Visor for OSX provides a systemwide terminal window accessible via a hot-key,...”
– darwin’s visor at master - GitHub
Feb 11th
1 note
Feb 9th
Redo Rules →
Very interesting articule on the redo keyword.  I have never used redo in a real app, but this gives some awesome ideas.
Feb 7th
Connect to your running Java web application with... →
Short gist by Nick Sieger outlining a technique for wrapping an IRB session around a deployed WAR’s servlet context.
Feb 5th
Closures in Ruby →
An executable ruby script summarizing the 7 different syntaxes for closures along with the 4 core types.
Feb 5th
The LinkedIn Blog » Blog Archive JDBC Connection... →
A very useful post by the LinkedIn engineering team for JRuby Glassfish users looking to leverage JDBC connection pooling with Rails apps.
Feb 5th