Highcharts with MVC

Highcharts are an amazing jquery library for displaying any type of data quickly and cleverly. Here is a quick & basic tutorial for applying a chart to MVC (in this example I have used grails) I have shown an example from the dashboards from my work as a Genomic lab automation architect. They illustrate median… Continue reading Highcharts with MVC

Work offline using Application cache and Local Storage

If we want to work offline we should be able to. This is a simple sentence and until recently quite difficult, but now very achievable. Using two new browser features (html5 compatible browsers) this can be accomplished. Local Storage: This is just a two dimensional array that allows storage of data pairs within a clients browser.Application… Continue reading Work offline using Application cache and Local Storage

Groovy Inversion Of Control & Unit Testing (IOC)

By adding IOC all objects are instantiated by Dependency Injection i.e. they are injected into each constructor by the IOC factory. So we can switch multiple implementations in without changing code. Formally: the code calling an object is not responsible for instantiating the object, so you would never use def blah = new Blah() 1.… Continue reading Groovy Inversion Of Control & Unit Testing (IOC)

Local cache implementation while developing

The brilliance of abstracting out implementations from built in framework is sometimes underestimated. In the following example I create my own implementation of ICacheProvider which gives me centralized control as well as the ability to be able to switch in different implementations. So while I am developing (building/rebuilding etc.) I use an implementation that saves… Continue reading Local cache implementation while developing

Getting started with Grails for .net developers

I have been using the .Net framework for the past 12 years and my new career choice (Bioinformatics) requires me to use Linux and open source things like grails (Groovy on RAILS). Setting up grails and IntelliJ was quite tough and there was very little (end to end) step by step help available so I thought I… Continue reading Getting started with Grails for .net developers

A simple SignalR message broadcaster

I know every one already knows what SignalR is and how awesome it is. If you don’t, it can be described simply …. a mechanism for sending messages to the web clients (browsers) from the server and visa versa. It does this via the magic of web sockets*. *in IE8 and below it uses old school… Continue reading A simple SignalR message broadcaster

Complex numbers 101 and some code to make them cool

After reading a post from Phil Haack on number systems I decided to start a little series on my favorite maths topic, complex numbers. Here is some basic info: Real numbers are pretty much every number you can think of: 26, ⅘, √22, 11.23, 7² etc. Think about that last number, as we know all… Continue reading Complex numbers 101 and some code to make them cool

Caching F# using Memoization

In bioinformatics (dynamic programming algorithms) and molecular modelling (large amount of states/molecule collisions to be calculated), it is handy to be able to speed this up by not repeating computationally heavy calculations. Molecular modelling currently takes far to long to simulate folding even a small peptide (see protein folding).Functional languages such as F# can be… Continue reading Caching F# using Memoization