Talha’s Stuff

I can’t think of a tagline

A foolproof way of removing all local gems

leave a comment »

For completely removing all local gems, no hassle, this is the only method that worked for me foolproof:

gem list | cut -d" " -f1 | sudo xargs gem uninstall -aIx

Written by talhasyed

February 6, 2009 at 5:10 pm

Posted in ruby, rubygems

Error Notification and Tracking with Merb + Hoptoad

leave a comment »

Our merb app needed some kind of exception notification. We could have gone the route we chose with our older Rails apps, ie, just mail all exceptions to some kind of alias like errors@ourcompany.com.

But that approach would leave us with no way to centrally review all errors from a web page short of sending them to a central exception notification app via REST or something. Surely there had to be a tool of some sort that already did this, right?

After some investigation, I happened upon Hoptoad, an app by the folks at thoughtbot.

And it turned out that there a great merb plugin for Hoptoad too (by http://atmos.org/)!

It’s easy to set up, and once you have it up and running, all your errors go into a central Hoptoad project repository.

The Project List

The Project List

A project page in Hoptoad gives you a convenient summary of all the errors that have occurred in your app with an error summary and error count.

Project Error List

Project Error List

The detailed error page show you the environment variables, a backtrace, as well as many other useful details.

Error Details

Error Details

All in all, using hoptoad is a great way to set your app up for error notification and tracking. It’s easy too – the whole process took me an hour, from signing up with hoptoad to setting up merb_hoptoad_notifier, to getting error notification emails!

Written by talhasyed

January 22, 2009 at 4:50 pm

Posted in merb, tools, Uncategorized

puts “Hello world”

leave a comment »

I’ve decided to jot down my thoughts, experiences on (web) development in blog format, so here we are!

Written by talhasyed

December 30, 2008 at 9:09 pm

Posted in hello-world

Follow

Get every new post delivered to your Inbox.