Jan 8

January 8, 2016

A Question of Style

Going through legacy code and I find this: if (docs != null) { if (docs.size() > 0) { … } } Since there is no else is there a good reason to not just have a single if statement? if (docs != null && docs.size() > 0) { … } Thoughts?

Posted in Java | By

Mar 27

March 27, 2015

Ubuntu, Metal as a Service (MaaS) and Juju

For the last few weeks I have been looking at solutions for managing physical hardware in a remote data center.  I live several hours from the data center, and although we have people who are responsible for purchasing the hardware and installing it, configuring it for use is another story.  The company is small but growing and often needs to respond quickly to new requirements.  Most of our servers run on Ubuntu, and are web, application or database servers.  The…

Posted in JuJu, Linux, MaaS | By

Sep 9

September 9, 2014

Java timezone madness

I was recently working on a legacy java servlet application and ran into an interesting problem. It seems that somewhere between Java 5 and Java 7 there were some changes to the way timezones are handled. The application was reading and writing dates to the database, and web page, but for some reason the time was fluctuating by 1 hour in the database. Ordinarily this wouldn’t have been a big deal since we really only worried about the date portion…

Posted in Java, Web Application Programming | By

Mar 13

March 13, 2014

Using play2-war plugin with Play 2.2.2

I recently worked on a project which used the Django framework, I learned a few things along the way: Development frameworks make things a lot faster and easier. I don’t really care for Python When my next project came along I started looking at Java frameworks, and I stumbled across the Play Framework.  It did everything I wanted it to do and then some.  It used established technologies with good abstractions so I didn’t have to try to learn all…

Posted in Web Application Programming | By

Feb 23

February 23, 2014

Getting Started

I have been told I have some good ideas and I need to share them, be patient I am just getting started and it is a long story…

Posted in Blogging | By