Loading data from multiple files in Ruby using Hash

Loading data into Database reading from multiple files was never easy. I have been working on different projects lately, which required such exercise often. A general technique I followed to do that is explained here. In a gist, this is what it looks like: require ‘rubygems’ require ‘fastercsv’ files.each do |key, value| file = “#{RAILS_ROOT}/db/drugsatfda/” […]

Adding close link to flash messages

The flash provides a way to pass temporary objects between actions. Anything you place in the flash will be exposed to the very next action and then cleared out. This is a great way of doing notices and alerts, such as a create action that sets flash[:notice] = “Successfully created” before redirecting to a display […]

2010 in review

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health: The Blog-Health-o-Meter™ reads Wow. Crunchy numbers The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 210,000 times in 2010. If it were an exhibit at […]

I don’t owe you shit

Originally uploaded by urbanwide The question was “What happened to the release????” on ruby-forum. But, what followed was furious, funny replies. As an example check this out: > and it’s now 24 July, I don’t think it’s inappropriate to get impatient > for a release or an explanation of the delay. �Heck, if they asked […]

Would I Survive No Internet for a Whole Month?

Can any one, of the current generation, survive without Internet nowadays? I don't know. But if you ask me, the answer is plain simple NO. Google Classic: Please Allow 30 Days for your Search Results No. Not for a month. If there is no Internet there is no work. If there is no work there […]

Reach Your Doctor

The latest from Mapunity, Reach Your Doctor is a simple Patient, Appointment & Consultation Management Software for your practice. Everything you need to get your practice online, track your appointments, consultation details and client interactions in one convenient, secure and easy to use place. Help your clients find you and book online 24/7. What’s Reach […]