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
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…
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
-
-
# Based on Prototype Window Class Helper (http://pwc-helper.xurdeonrails.com)
-
-
module LitboxHelper
-
-
def params_for_javascript(params) #options_for_javascript doesn’t works fine
-
‘{’ + params.map {|k, v| "#{k}: #{
-
case v
-
when Hash then params_for_javascript( v )
-
when String then "‘#{v}’"
-
else v #Isn’t neither Hash or String
-
end }"}.sort.join(‘, ‘) + ‘}’
-
end
-
-
-
# Returns a default LITBox window.
-
def litbox_window(link_text, href, html_options={}, params={})
-
prefix = "<a "
-
# Add all html options as key="value" pairs
-
html_options.each do |k, v|
-
prefix += "#{k}=\"#{v}\" "
-
end
-
prefix += "href=\"javascript:void(null);\" onclick=\""
-
-
# JS Payload
-
payload = "new LITBox(’#{href}’, #{params_for_javascript(params)});"
-
-
# Rest of the stuff including link text
-
suffix = "\">#{link_text}</a>"
-
-
return prefix + payload + suffix
-
end
-
-
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
- 9pm - Back from office
- 10pm - dinner
- 11pm - Start work on ApnaBill.com - pack a solid 3 hours of work - feature/bug fixes.
- 3am - Plan to watch a movie - search Rama’s collection.
- 5am - Yawwn! Lets sleep now, tomorrow’s office afterall…
- 10:30am - Waky waky!
- 12noon - Office… (no breakfast most of the weekdays)
- 1:30pm - lunch
- 4pm - Tea break
- 6pm - Snacks
- 9pm - Start for home - repeat the process.
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)
- Fixed a typo in recharge layout, a div tag was left open…
- Added type=text/css attribute to many style tags.
- Corrected CSS markups, removed dups.
- Added type=text/javascript attribute
- Cleaned up recharge layout, removed closing slash in self ending tags.
- Moved critical developer comments into ruby comments
- Moved hover box font=+2 to CSS
- Added invite section to navbar, removed the top-left badge.
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)