I have been working on Scala in my spare time for the past ~3 months now and I absolutely love it! It is extremely powerful, the syntax is sleek and it has an API for almost every basic operation! My choice of IDE so far has been Eclipse which I am a big fan of while [...]![]()
Sometime earlier this year, I read a blog and an article. These are interesting thoughts and coming from the Java space of enterprise applications, I know exactly how bad performance and unmaintainable the code can get. Scala’s claim of reducing the code by a factor of 2 or 3 is extremely tempting! Add to that a lot [...]![]()
Another new experience – Git. I looked at it because it looks like github is a cool thing these days, and well I have to admit that it does look a bit cool I thought I would play with Git and see for what its worth. Having worked with various version control systems – VSS [...]![]()
I came across an interesting problem today that got 3 hrs wasted for no good reason. In my application, I have templates and I replace variables with values that are read from a file. And I use the plain old String.replaceAll to do the job. So it happened this afternoon that I landed upon the [...]![]()
Whatever the search results say, you probably don’t need a plugin. I had a hard time trying to make parseexcel work and it kept reading my excel file all wrong. I finally have used win32ole which comes bundled up with rails 3. Here’s the source code There are two problems with this: firstly, you need [...]![]()
1. Removing a column from a table in SQLite There’s no straight forward way in SQLite so you need to copy the contents into a new table drop and recreate the table and put the data back in. In short, its a big mess. Thankfully rails manages that for us. 2. Creating static data I [...]![]()
Implementing pagination in Rails is dead easy. I used a plug in called will_paginate. The usual one that’s downloaded when you say “gem install mislav-will_paginate” didn’t work for me. It kept on escaping the HTML so all I got was garbled text on the screen. The one that did work was ”gem install agnostic-will_paginate”. Once you [...]![]()
Since my last post, I got busy with some pressing project work and Ruby on Rails took the backseat. But I picked it up again last week and, as promised, tried a “real” app. Now Ruby is all cool and stuff, but there are gotchas everywhere and I noticed a few that I thought I’ll [...]![]()
I have recently started working on Ruby and I am trying to pick up the technique via resources available on the net. there are a lot but not many look of much use. Many are screencasts (MPEGs embedded in webpages) but i dont put on head phones at work and letting the speaker on would [...]![]()
Ever wondered how you could increase the speed of execution of test cases that run against a database? Or how you could unit test without impacting the data in your database? The obvious answer to the latter is to use a seperate database schema, but speed? How about an in-memory database? See, now we are [...]![]()
Introduction We have recently implemented WSRP using Oracle’s Weblogic Portal technology for our selfcare customer experiene for a client. This application had been in production for over 4 years and we had started to face severe challenges around its scalability and maintainability. The application had grown huge, was packaged in a single enterprise archive (EAR) [...]![]()