Richard Clayton

PubSub Controller Communication

AngularJS - Communicating Between Controllers - Part 2

In the last post, we discussed communicating between controllers using a controller's scope. This mechanism, however, is limited only to parent-child relationships between controllers (i.e. one controller is nested within another).

A more general way of communicating between controllers is to use Angular's PubSub mechanism.

. . .

Read More

July 01, 2014

Parent/Child Controller Communication

AngularJS - Communicating Between Controllers - Part 1

I've been teaching AngularJS to a couple of friends lately and they almost universally ask the same question:

How do I pass information (state) between controllers?

It's a great question and it's often not obvious to new Angular users. The answer is a lot more complex than one might think (but the . . .

Read More

July 01, 2014

Introducing Nagios-Dropwizard

Super simple Nagios checks via Dropwizard Tasks.

On a project I'm currently working on, I had a need to create a framework to expose Nagios health checks within a Dropwizard service. You can find the framework and a Nagios check script on Github here: Nagios-Dropwizard.

Why not use Dropwizard Health Checks?

The health check facility on Dropwizard . . .

Read More

June 25, 2014

Pipelines in Golang

There's a really good article on the Golang blog about Go Concurrency: Pipelines and cancellation.

I came across the article while learning Go, more specifically, I was building an image processing pipeline for my home security cameras. The examples are great, however, I felt they could be improved a little.

First, it . . .

Read More

June 19, 2014

I'm Quitting Java.

...and probably the JVM as well.

I've been looking for a new language for a long time now...

Java has been my primary language for years, but not because I'm fond of its syntax. The thing Java has going for it is a really large ecosystem. Lately, however, I find the disadvantages of the language outweighing the benefits.

My biggest gripes are:

. . .

Read More

June 18, 2014

Moving to Silvrback.

Goodbye ugly and clunky

If you are here, you are well aware I'm in the process of migrating my old site to here.

Unfortunately, I do not have a whole lot of time on my hands, and I will not be moving the 50+ articles I wrote to this website.

Read More

June 18, 2014