The Blog

How to convert ArrayList to array in Java?

I've been working quite a lot in Java. Although this is part of the university course, we actually have some QAs we need to satisfy, and so the quality of the code matters. Every now and again (more often than not actually), I came across painfully annoying constructs which make the code that much harder

Continue Reading

StackOverflow Survey is here

If you haven't seen already, StackOverflow has released their annual survey. It offers a valuable insight into the minds of other programmers, so don't forget to check it out! http://meta.stackoverflow.com/questions/342400/take-the-developer-survey-2017

Continue Reading

Creating a Sequence (or set) in Epsilon

In order to create a sequence (or set) of elements use the following:

Continue Reading

Quick Software Estimator

A simple software estimator, so that you can give a vague number to your boss. The number is an effort Size Type Organic Semi-detached Embedded Effort (in person months)

Continue Reading

The curious case of banner468

On one of my websites, I used a CSS class called "banner468". As the name suggests the original purpose of the class was to hold some ads. I used it for a different purpose. From one day to the next, the functionality contained within the banner468, disappeared. It got hidden. Originally, I thought, this had

Continue Reading

Serializing Anonymous DataMemeber

I've been working win MVC Web API and encountered an annoying problem. It does not, by default serialise anonymous data members.

When you try to serialise this kind of data you get this beautiful exception:

Converting anonymous type to a string also caused exception. But there is also JavaScriptSerializer:

Now using getter,

Continue Reading

One way object binding in JS

This is something I've been putting together this weekend. Due to the fact, that ASP.NET is quite reluctant to get an array of results from a request, I've devised an alternative way of sending data to the server via Web.API. There are already several large frameworks that handle data-binding like Knockout and AngularJS, but these

Continue Reading

Useful Linear Trendline Class in C#

I've searched and searched trying to find a simple class to calculate a slope and intercept from a set of points. Here is the outcome, but I probably modify it to use LINQ rather then loops

Continue Reading

(Remote) File-Based Communication

Scenario: Applications C and P run on the same machines, but are implemented in different programming languages. P contains the functionality that can return a list of addresses given a postcode and C needs to reuse this functionality. If the pieces of code run on the same machines we could implement a file-based communication pattern. We

Continue Reading

Introduction to Services

Large enterprises typically own and operate a large number of software applications either of the shelf, developed in-house or inherited through mergers and acquisitions. Applications can be of heterogeneous e.g. they are written in the same language(s) or they use the same data storage mechanisms and formats. They may also run on the same operating

Continue Reading