Archive for April, 2008

How do 300 svn commits feel like?

April 28th, 2008

ApnaBill.com SVN repository has seen some real hard work in past few days. We have had over 300 svn commits and 87 live bugs - 22 of which are still open (in new/assigned/lingering state).

These figures make me feel elated, happy - and confident that our release would be devoid of atleast these 87 bugs :D

Time and again, people have questioned me about these bugfixes in ApnaBill.com code - “Is your code that buggy?” - erhm, well no.

We track both bugs and new feature requests together (a skill that I picked up while working with Red Hat), thereby giving us a uniform outlook of the pending tasks. Besides, new features when tracked via bug reports produce a quality changelog. What was done, how and why - its important that these changes get documented while the feature is still in development phase. Makes future debugging a whole lot easier…

The road ahead, now has a crystal clear view of the destination!
All what we need to reach there is - “Focus“.

We are planning a special discount program for our Beta registrants (though cannot promise on that yet!) - So please signup for our Beta Launch - if you havn’t done so.

Back to squashing more bugs for now… ;)

Posted in A strong urge to blog..., ApnaBill, Life, Startups | Comments (3)

LITBox helper for Rails

April 24th, 2008

Introducing - LITBox Helper for Rails!

Disclaimer: This is a work in progress and is available on “as is” basis.

For long, I was trying to integrate Criag Ambros’s RedBox plugin into ApnaBill.com project for implementing modal dialogs but somehow, the CSS always used to get upset, rendering the lightbox in such a way that the content which is to be shown inside it, shows below it.

Then I came across Ryan J Lowe’s LITBox(The site seems to down, try Google cache)- and boy, it rocks! Just 10 seconds setup, very light weight and looks brilliant! The code is nicely written too. But the only drawback was that it was plain JS stuff - so that means no Rails helpers available.

So, once the test implementation was done with, I decided to write a small helper myself. I’ve seen how Jorge’s Prototype Window Class’s rails helper works - so decided to base my code on the same lines. And since he’s already written the Ruby->JS part for converting between optional arguments, this didn’t seemed a daunting task even for a Wednesday night :)

  1.  
  2. # Based on Prototype Window Class Helper (http://pwc-helper.xurdeonrails.com)
  3.  
  4. module LitboxHelper
  5.  
  6.     def params_for_javascript(params) #options_for_javascript doesn’t works fine
  7.         ‘{’ + params.map {|k, v| "#{k}: #{
  8.        case v
  9.          when Hash then params_for_javascript( v )
  10.          when String then "‘#{v}’"          
  11.        else v   #Isn’t neither Hash or String
  12.        end }"}.sort.join(‘, ‘) + ‘}’
  13.     end
  14.    
  15.  
  16.     # Returns a default LITBox window.
  17.     def litbox_window(link_text, href, html_options={}, params={})
  18.       prefix = "<a "
  19.       # Add all html options as key="value" pairs
  20.       html_options.each do |k, v|
  21.         prefix += "#{k}=\"#{v}\" "
  22.       end
  23.       prefix += "href=\"javascript:void(null);\" onclick=\""
  24.      
  25.       # JS Payload
  26.       payload = "new LITBox(’#{href}’, #{params_for_javascript(params)});"
  27.      
  28.       # Rest of the stuff including link text
  29.       suffix = "\">#{link_text}</a>"
  30.      
  31.       return prefix + payload + suffix
  32.     end
  33.  
  34. end

I’m trying to make it feature complete so that I can make it available for download.

Till then… happy hacking!

Posted in ApnaBill, Rails, Ruby, Web 2.0 | Comments (5)

So what is an {ab}normal day like?

April 23rd, 2008

Considering that I am more of a night person, my day starts at 9pm

So its almost 2:30am now - and guess what? Movie time ;)

Shubhu is watching Highlander off the DVD - too bad, i’ll have to plan for some other flick…

Posted in ApnaBill, Life in Pune | Comments (1)

Meeting Entrip.com guys…

April 19th, 2008

The day was very hectic… was up @ 10 AM, saw “Horton hears a who” @ 11 AM, had a quick breakfast @ 1PM, started for LCG meeting @ 3PM and then finally met the Entrip.com guys at 6PM - all as I planned yesternight :)

…and by now I am dead tired - just enough of me left to write this post ;)

The meeting with Entrip.com founders was special because we were kind’of resonating at the same frequency, the same enthusiasm and that energy. Of course, the thread which tied us all together was Rails ;)

EnTrip is an integrated travel utility which enables you to:

  • Plan or map out your entire trip, using our intuitive map-based interface
  • Capture the experiences and vivid memories that make up your trip, within their geographical context
  • Easily share your adventures with friends and family around the world, in a meaningful way

If you are interested in how it works, try out the founding team’s trip to India.

I wish them a ton of good luck for their project.

Posted in ApnaBill, GNU/Linux, Startups, Web 2.0 | Comments (1)

Back to the basics - validating HTML anyone?

April 19th, 2008

Its almost 4 AM now & past 3 hours saw a lot of commits going into ApnaBill.com code. After realizing that we were not generating (X)HTML code, the effort was targeted at containment, if not eradication ;)

Many thanks to Zundra for pointing this out to me.

Due to an open div tag, the new (& slick looking) navbar wasn’t showing up on IE. HTML cleanup frenzy atleast solved that problem…

Here is what’ve changed in the code so far (straight out of our changelog)

Phew! Thats enough work for the night… onto some hollywood flick now!

Oh yes, btw, tomorrow’s a pretty hectic day. I’m watching “Horton Hears a Who” at 11AM, then going for LCG Meet at 3PM and meeting folks from www.entrip.com at 6PM. Wow! Now thats some schedule!

Posted in ApnaBill, Rails, Startups, Web 2.0 | Comments (2)