Precision number parsing in spreadsheet using ruby.

This blog post is not about how to parse spreadsheets using ruby. If you are looking for that, you are not gonna find that here. This blog post is about a problem I faced while parsing decimal numbers from a spreadsheet, long story short precision related problems. Here are the details (the longer version): Recently … Continue reading Precision number parsing in spreadsheet using ruby.

Tussle of the State Machines

There's no shortage of Ruby state machine libraries (assm, state_machine, etc.). However when we needed to implement dynamic state machine we didn't find one. The Problem We needed a polymorphic class that could have different state machines triggered in it depending on some condition. Basically, here is what we wanted to achieve: Now the problem … Continue reading Tussle of the State Machines

PDF to Plain Text processing using docsplit

As Rubyists, don't we just love searching for gems to do our work for us 🙂 But, that does not always work, does it? There are times when we don't find solution and need to fix it ourselves. Do we remember to contribute back to the community? Here's a similar story and some information about … Continue reading PDF to Plain Text processing using docsplit

Experiencing Ruby – the Scottish way

Held in the exquisite Crieff Hydro, Perthshire, this was another example of an exciting professionally organised Ruby Conference. There will always be a lot of information about the talks, so this is more about my experience there! At a conference, it's very important to ensure that the attendees get to experience the culture in addition … Continue reading Experiencing Ruby – the Scottish way

Generating dynamic QR codes in Rails using Rjb

When I started looking for gems which generate QR code in ruby I found "rqrcode" which generates only HTML code which was not useful to me. I wanted the QR code image so I looked at "qr4r" but here we can not customize the color, background color etc,  so I decided to write my own code … Continue reading Generating dynamic QR codes in Rails using Rjb