Developer / Photographer

Ruby on Rails Performance Tuning


For something that is touted as being an “easy” to use framework, Rails is a pretty complex beast. Over the years it has progressed from a seemingly simple framework that “anyone” can learn to the intricate collection of add-ons, gems and extensions that make it the power house it is now.

Optimization is an overlooked aspect of Rails development that often isn’t covered in the tutorials you find online.  With the sheer simplicity of snapping in a few gems, throwing together some quick Active Record queries, pushing to Heroku and forgetting about the rest, it’s all too easy to find your application running slow and sluggish, before long you need to backtrack and try to figure out what exactly you did that caused the slow down.

Writing better, leaner code is often the answer, although this article isn’t a coding guide, instead I’m going to list a few simple things you can do to get better performance from your application.  These might not be applicable for everyone, but merely some tricks that iv learned that have helped me squeeze a bit more performance out of some recent projects of mine. Read More

Sending Private Information Over The Web


If you read this blog, then chances are you’ve had to at some time send passwords, server details, social security numbers or any other number of sensitive bits of information over email or instant messenger.

Don’t deny it, you know you’ve done it. I know I have. It’s not something to be proud of, but it’s a necessary need sometimes.
It’s not always feasible to try and talk your client through setting up encrypted email for a one time transfer of a password or a social security number. Read More

jQuery Google Analytics Event Tracking Using HTML Attributes


Setting up Google Analytics event tracking can be a pain sometimes. Often you may want to track a dozen or so clicks on a page that doesn’t make and post backs so you end up with a bunch of spaghetti JS, wiring up events and click handlers.

It’s just messy. So I write this little bit of script that allows you to enable events to be fired on clicked elements with simple HTML attributes.
Read More

Newer Posts