Comments

As part of our journey towards implementing Continous Delivery, I’ve added the Build pipeline for our continous integration server Jenkins.  There are quite a few resources available on the net on how to add the plugin and configure it. This blog is not about how to configure the plugin, but more on how I’ve configured [...]

Continue Reading

Comments

One of the action items I had mentioned in an earlier post, was to setup the  infrastructure for running tests in parallel.
I tried TLB, but stopped on it because it required cluster setup for our CI server i.e. hudson. I was looking for something which was even simpler than TLB, and tried Hydra, but could [...]

Continue Reading

Comments

I know its been almost two weeks since its all over, things may not be fresh in mind. And all of us were very busy with “go live” for one of our client projects. But as its “better later than never”, I am putting my thoughts about the recently concluded RubyConf held in Bangalore on [...]

Continue Reading

Comments

It is common requirement to disable the callbacks like after_save, after_create etc while importing/migrating data. One way to avoid this is by directly importing the data into DB using a command like mysqlimport. But by doing that, the Rails validations etc will not work. We can disable the callbacks using the skip_callback method.  For eg:
User.skip_callback(“create”,:after,:send_confirmation_email)
The above [...]

Continue Reading

Comments

For one of the applications what we’re working on, we had a requirement to merge two DBs which have the same structure.
As tables in both DBs can hold same value for primary keys, we had to offset all the ID fields (including foreign key references). If the data from DB_2 has to be imported to [...]

Continue Reading

Comments

Unit Testing Javascript is great using JSTestDriver and Jasmine, but maintaining HTML fixtures for the same is a pain. One of the approaches for fixing the same issue is by creating the HTML from the controller specs and loading the HTML using AJAX. This approach is mentioned here.
But I could not make it work with [...]

Continue Reading

Rails threadsafe and rake task

Published on 03 November 2010 by Leena in All Posts, Rails

Comments

We’ve got an application which uses JRuby + RoR deployed in Glassfish. We enabled config.threadsafe! in the production.rb file to support multithreaded environment.
The server was working fine, but the rake tasks started failing because of a class loading issue. The immediate fix we had was to disable threadsafe for rake tasks and enable it when the [...]

Continue Reading

Comments

When firewall was introduced within our local network, the Hudson server stopped working with the error:
javax.jmdns.impl.tasks.Prober run
WARNING: run() exception
java.io.IOException: Operation not permitted
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:625)
at javax.jmdns.impl.JmDNSImpl.send(JmDNSImpl.java:1200)
at javax.jmdns.impl.tasks.Prober.run(Prober.java:163)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
And when you access hudson in browser, it stays with the message “Please wait while Hudson is getting ready to work….” forever.
Initially I thought the problem might be [...]

Continue Reading

Lessons learned from Agile Bengaluru 2010

Published on 14 February 2010 by Leena in All Posts, Process

Comments

It was a great feeling after attending the Agile Bengaluru Conf 2010. The theme for this Agile Conference was Post-Modern Agile i.e. what’s next after Agile. Most of the sessions were talking mainly on what needs to be done to make a product a success. Just following agile practices will not make any product a [...]

Continue Reading

Comments

One of the requirements we had was to sign the applet that we built for UserThoughts. We had purchased Comodo’s code signing certificate from KSoftware. When you download the certificate from their site, it automatically gets installed in IE. Follow these steps for converting it into format which you can use with the Java Jarsigner.

Export [...]

Continue Reading