AWS Application Load Balancers and WordPress

You had a problem recently where a WordPress site that used an AWS Application Load Balancer didn’t load over HTTPS. We kept seeing alot of mixed-content:blocked errors when the site loaded and even though all the usual settings within WordPress were set to use HTTPS, things like JavaScript files and stylesheets were still being requested over http. Context We’d set up our application load balancer to serve HTTPS (port 443) traffic to the client but have the connection between the load balancer and the web servers over HTTP (port 80).

Maslow - how to spin up the GOV.UK Needs API

Caveat: This post should’ve been written back in October 2014 but life got in the way and I’ve forgotten most of it, however, like all good developers I wrote myself some great documentation (not) so this should be a breeze right? (possibly not). Either way, I’ll try and make it easy to follow! To bring you up to speed, GDS built an application called Maslow to capture and manage the user needs that GOV.

The challenge of definition

Over the past few weeks we’ve been researching and designing the intranet for LGSS, the local government shared service and its multiple customers. One thing that became obvious very quickly is the contrast in language, terms and general vocabulary used in organisation. How do you approach that kind of issue? What other challenges does it stir up? The answers to those questions is something we’re yet to figure out but one thing thats come out of the work so far is a demonstration of how much of an issue definition and clarity is within the public sector.

Personal hopes for 2015

À la Dave Briggs, I didn’t want to make any resolutions this year (like Dave, I feel like making resolutions means failure) but what I did want to do is get down some hopes, aims and aspirations, so here goes; Write more, share more I would say I’m going to try and write every day this year, but we all know that’ll last about 3 days and sail off into the distance as a ridiculous pipe dream but one can try.

Not a year in review post

Each Christmas the usual songs get played on the radio and most people tend to get into the spirit of things. One of my particular favourites is Stop The Cavalry by Jona Lewie. I’ve no idea why it’s up there on my list as one of the great Christmas songs but one thing I will say is the ‘dab-a-dab-a-dums’ get me every time, chuntering along I’ll sing like a wailing idiot in the car on the way home which helps me for a brief moment get over the frustrating and overwhelming time that is the Christmas holidays.

Graham Williamson Research Award

Back in September I applied for the Graham Williamson Research Award offered through Socitm. I was lucky enough to be chosen as the winner and was presented with the award at an awards dinner in October. My full proposal is available below and details the ideas and reasons behind the project. All in all I’m hoping to offer not only some research but create some practical outputs too and I’ll share everything in as many places as I can.

Reusing GDS Assets

This week we’ve been working on ways to improve the data we capture about users of our online services. We have reports coming out of our ears from phone systems, CRM systems, the CMS and Google analytics but one thing we haven’t been measuring until recently is how users flow through individual transactions online. A few months back I attended a Local Digital Campaign day about the GOV.UK Performance Platform and the exciting things that are being put together to better understand the performance of services.

The Law of Two Feet

To ‘be British’ is often and stereotypically regarded as being overly polite and frustratingly apologetic; apologising when someone bumps into you, saying sorry for tripping over bag left in the aisle of a train and simply pretending you’ve heard what someone’s said because asking them to repeat it for a third time is just awkward. There’s a time and a place for this behaviour, I actually don’t mind it too much as it often keeps the world a bit more free flowing and easy to bare.

Hack the hack day

It’s been just over a week since the LocalGov Digital Makers hack day and the last few days have given me time to think things over in a bit more context. I enjoyed the hack day last week, it was a good experience and it’s kicked off some great projects that are all set to continue over the coming weeks and months, however, the LocalGov Digital Makers hack day didn’t have the same kind of output as a typical hack day.

LocalGov Digital Makers Hack Day

As a fringe event to LocalGovCamp the LocalGov Digital Makers hack day was set to be a chance for people to “prototype solutions to problems local government currently faces.” A great opportunity to see what we could come up with in just 5 hours, whether it be a technical prototype or presentation on the bigger picture to inform and give direction to some existing ideas. There were three challenges on offer; a combined local government search, a place to share and collaborate on schemas, documents and APIs and a digital inclusion challenge aimed at improving accesiblility to local government services.

A sign of things to come?

At the beginning of this week, Individual Electoral Registration went live on GOV.UK and I was quite surprised how underplayed this was in many Local Government circles. After seeing the launch promoted on twitter by Ben Terret I asked if the register to vote process was informing local registers. I hadn’t been involved in the implementation personally and I was curious how it all worked. In true GDS style, Ben got back to me in minutes and brought in Pete Herlihy on the conversation.

Interactive Mapping

Recently I was set the challenge of replacing an interactive mapping application that we ran for Northampton Borough Council. The product I was to replace had an annual support fee and upgrade cost attached to it and we were at a point where an alternative was needed. With no budget and a limited brief, prototyping something quickly and iterating seemed like a good plan; I’ve found it’s been easier for the product owner to critque and comment on something that they can play with and point at.

Solving Amazon EC2 Memory Issues

Often with the Amazon micro instances, and other instances with low memory allocations, your web server will ‘crash’, especially where MySQL’s involved. After a few page requests the MySQL engine can lock up because it doesn’t have enough memory. Amazons micro instances don’t come with any swap memory by default so if you experience issues and don’t want the costs of bumping your server to the next instance size, adding some swap space can improve performance of the micro instances no end:

LAMP stack on Amazon EC2: Part 1

Amazon Web Services offer a free tier of most of their services allowing you to host a full blown server in the cloud within their usage limits which can be pretty useful for trying things out and getting used to the options available without it costing you anything. The next few steps is the process I went through to set up an empty server on Amazon EC2. First, sign up to Amazon Web Services and head over to the EC2 pages from your services dashboard.

LAMP stack on Amazon EC2: Part 2

I’m kind of assuming you’ve set up an EC2 instance as per ‘Setting up your first EC2 instance,’ or at least something similar. Now, we’ve got an EC2 instance up and running it’s time to make use of it. First we’ll install the bits and pieces we need to get going, Apache, MySQL and PHP. Install SSH into your instance using your key-pair file Now we want to tell yum to update all the packages currently installed, if you’re doing this step straight off the back of setting up your instance you won’t need to run this step again.

What's all this about Channel Shift?

Even before the publishing of the ‘Digital by Default’ paper by Martha Lane-Fox, public services, particularly local authorities have embarked on a mission to ‘channel shift’ their customers to more cost-effective means. — 2012 Socitm research To put things in context, on average it costs local authorities £8.62 to deal with a person face-to-face, £2.83 on the phone but just £0.15 per digital transaction*. When you view things from a purely financial perspective, it seems obvious that you’d want more customers using the economically efficient online channels than you do coming through your doors to see someone face to face.

Build a Java WAR file with Ant

I’d never really used Ant build files directly until we moved to using Jenkins as a separate build server. Prior to moving to Jenkins we were just exporting our built projects from Eclipse and deploying a .war file directly into Tomcat. The interesting part came when we had to hand off the build step to Apache Ant because Eclipse was no longer responsible for building our projects. The team had grown, our code was now stored centrally and Eclipse became our development tool, TFS became our version control system and Apache Ant would build out the project on a remote server as an entirely separate process.