12.08.11 Posted in Blog by admin
ruby-oci8 is the gem to use Oracle as the database for your Rails 3.1 application. Getting it to work can be a ‘little’ tricky. In this post, I’ll try to summarize how to get it to work on Ubuntu for a Rails 3.1 application. Well, let’s start with the basics. Before you try your luck [...]
11.29.11 Posted in Blog by admin
Developers don’t like databases (usually). Especially enterprise-y ones (read Oracle). I started my career as a DBA and shockingly enough, I happen to enjoy working on DBs. That said, this write-up is originally for my current project team and it works out for all developers ‘forced’ to work on Oracle for their clients. This one [...]
10.31.11 Posted in Uncategorized by admin
Mobile Developer Summit 2011 is here. It’s by the people from SaltMarch Media. Two days of back-to-back iOS/Android/WinMo development sessions. Mostly excited about the sessions covering Titanium & Phonegap. I’ve been working on Corona lately. And although I don’t see Corona figure anywhere on the Mods2011 Agenda, I’m still quite excited to explore my options. [...]
09.16.11 Posted in Blog by admin
I’ve always been convinced about the efficacy of ‘hackathons’ – 24 to 48 hr code marathons, working on an idea or something you feel passionately about. And I’ve had so many occasions where I almost participated in one, but didn’t. But, last weekend I finally did get to participate in one and well.. ended up winning it! [...]
09.06.11 Posted in Blog by admin
I’ve been working quite extensively with jqGrid. Its nicely done, very flexible and is documented decently enough. That said, it does have its fair share of issues. Some issues involve spelling mistakes, even. But I’ve moved past all those and hit a big solid roadblock on the jqGrid Inline Edit. The default behavior of inline [...]
08.24.10 Posted in Blog by admin
A very common pattern observed in Rails models is a series of “is_{attribute}?” instance methods. Here, ‘attribute’ is usually a boolean column. I got tired of defining these similar methods. And adding to the misery, if the model structure changes to add another boolean field, you need to define another clone of the same method! [...]
07.27.10 Posted in Blog by admin
I worked my way around an interesting information tidbit discovery yesterday. The use case seemed pretty simple and direct. I needed to display the “n hours ago” text in my view. I used the awesome view helper ‘time_ago_in_words’ to do that and it worked, well almost. Here’s what I’m talking about: In console, time_string = [...]
07.13.10 Posted in Blog by admin
I find a frequent scenario in Ruby on Rails code base. A local hash variable is assigned a partial subset of an ActiveRecord object, or worse the variable gets the entire AR object. And may be you don’t already do it the way I have seen it, but its still worth discussing, being as frequent [...]
07.02.10 Posted in Blog by admin
I discovered this interesting nugget of oddity today. While normal Ruby arrays are ‘comma separated” and space agnostic ie. >> array = [2,3 ,4, 5] => [2, 3, 4, 5] >> array.size => 4 >> array_spaces = [2 , 3 , 4 , 5] => [2, 3, 4, 5] >> array_spaces.size => 4 In case [...]
05.20.10 Posted in Blog by admin
Ruby on Rails community is fast growing. Too much is happening, and too fast. Its important to keep ourselves abreast of the latest in our community. Following are some RSS feeds I follow religiously [ well, I try]. So configure your favorite Reader and put on your reading caps: Always begin by looking at RoR [...]