Saturday, August 25, 2007

PuneRuby August Meet

Around 20+ rubyists got together on a rainy evening of Saturday to take part in PuneRuby's August Meet
.
The evening started with quick round of introductions. There were college students, fairly new rubyists and some expert Railers.

Prototype demo of COEP college website using Hobo


The first session of the day was by web team of COEP College where they demonstrated the usage of Hobo for developing an internal CMS college website. Amongst other features they explained DRYML and Rapid tag library of hobo which allows creation of user defined tags which can be reused across different views.
With just few commands, for creating rails application skeleton and then for creating migrations for database tables, one can very quickly develop an application which has out-of-the-box support for user authentication, layouts, live search etc. It sounded like default admin interface provided by Django framework.
When asked why did they not choose something on the lines of Drupal for CMS. the answer was sweet, they wanted to learn something new and have been hearing about Rail from a while.

ActiveScafold - Ajax on Rails


The second session of the evening was by Gautam Rege of Josh consultants where he talked about ActiveScaffold(AS) plugin. he explained how easy it was for him to really have all those Ajaxy features in his Rails application with just 5 lines of code in his controllers.
The negatives that he(or audience) shared about ActiveScaffold included,
1. Experienced perf issues for loading the list page with not so many entries. The benefit of doubt here goes to Active Scaffold because Gautam was running on Webrick.
2. Although AS has neat extension module, it can become a pain in the ass if you do not understand the internals of AS.
3. Scaffold is generally not recommended for production systems. so AS could fall in to that category. but what it surely gives is a headstart.

Using YSLOW & Migration test helper


Raghavendra Shet started explaining about Migration test helper, which he had used in one of his projects. he shared the problems and their solutions that he had faced while working with migration test helper plugin.
About testing migrations I had mixed feelings. Is it really worth spending time testing your migrations? I mean how many times have you run the down method of your migrations?

Raghavendra then explained about a plugin to Mozilla Firefox by Yahoo called YSLOW which can be used to find performance issues in your webpage. he explained about 11 points which YSLOW stresses upon.
One of the points was making fewer HTTP connections, which can be accomplished by combining all your javascripts and all your stylesheets in to one file respectively. Asset packager can be used to do so.
Not having inline styles and javascripts was another point Raghavendra explained.


During the end of meet, their were discussions about JRuby. Amitabh told that how similar projects in Python, like Jython and Iron Python were not as successful as Python.
Steve explained how personally he thought it was not a good idea to use extensions to Java with in your JRuby application. He told that projects like Rubinius and Ruby VM could certainly overcome the perf issues and how difficult things would be if you had to remove those Java linkages when you moved to these Interpreters.


Freeman asked about the plans of PuneRuby group going forward. I answered him saying that the outcome I was looking for from such meets was some projects, plugins that some of us can do together in our
leisure time.

For all the beginners to Ruby language, there is a good news. Our very own PuneRuby group member Satish Talim is going to conduct online Ruby classes starting 27th Of August. More details are here.

We are going to meet again on 29th September. so see you there.

Thursday, August 16, 2007

Upgrading to Capistrano2

From capify,
"Capistrano 2.0 is the first significant update to Capistrano in a year. It represents a major refactoring of the tool's internals, as well as a complete reworking of the deployment recipes."

All you need to do for upgrading your existing Rails app using cap1.x is to,

a. Capify your Rails app,
capify .

b. Not mandatory step:you can easily update those previous deployments to use Capistrano 2's new per-deploy REVISION file:,
cap -f upgrade -f Capfile upgrade:revisions

On first attempt to upgrade I got following error,
subversion.rb:56:in `query_revision': undefined method `[]

resolution to which has been given by Jamis here,

http://www.mail-archive.com/capistrano@googlegroups.com/msg01123.html


From the updates to Capistrano 2.0, I love the feature to have namespaces and event framework for extending tasks.

Monday, August 06, 2007

Tata Indicom broadband service sucks

Yes they suck big time. its been 1 month and 10 days since I had submitted my application and still the Internet is not up.
I submitted my application along with a cheque for the payment to Tata Indicom after the service agent had done and confirmed to me that it will be done within a weeks time.
After 10 days, this agent is not traceable, the only contact of him I have is his phone number, which is constantly coming SWITCHED OFF!
I tried syncing up with customer care of Tata-indicom and they say they CANNOT DO ANYTHING about it since they haven't received the application; I tell them "hey isn't the agent your employee? can't you trace him down?" to that they say NO. seriously WTF?

After 15 days the agent's cell is reachable and he says that he went for a VACATION and now he is working on for getting the connection up for me and is just a matter of 2 days.
Another week passes, frustrations building up, and now the agent's cellphone is again SWITCHED OFF.

After about a month the agent calls me and says due to laying of optical fibers my application was delayed( WHAT STOPPED HIM FROM COMMUNICATING THIS EARLIER?)..he gets the wiring done and tells me that next day a technical person from Tata Indicom would come to install the service on my machine. Its been more than a week and there are no signs of that technical person.. and guess what..Agent's cell is again switched off.


I have realized over time that almost all of these broadband providers are very careless about customer service with BSNL topping the list. This has some implications for the city and country. These sort of things make a city less conducive for Internet businesses, startups to be more precise.

I have been reading about comparisons of Pune with Bangalore for Internet startups where people claim that Pune is coming close to Bangalore for the conducive environment the city provides for technological companies. with this experience, I beg to differ.
On a similar note, I have also been talking to BSNL since January(yes 8 months now)for getting the Broadband connection and they have one comment every month, "Its going to be in place next month".

All the best to those poor souls who indulge themselves with these companies.

Update: The technical person arrived finally today and the now this update is from new broadband connection :). so it took me 1 month 10 days to get this resolved.