Richard Clayton

Deploying Triggers in MarkLogic Roxy

Let me save you three hours of annoyance.

Over the last two weeks, I've been building a RESTful backend in MarkLogic (ML) using the Roxy framework. If you're unfamiliar with MarkLogic, it's a pretty excellent XML database, search engine, and application host (where the app is written in xQuery). That's an extraordinary complement because I generally prefer JSON or . . .

Read More

July 10, 2014

Passing State via Services

AngularJS - Communicating Between Controllers - Part 4

This is the 4th and final discussion of Communicating Between Controllers in AngularJS. In the previous three posts, I discussed using nested state, PubSub, and the router as mediums for passing state between controllers. In this post, I will discuss perhaps the most obvious (but least thought of in Angular); using an independent service . . .

Read More

July 04, 2014

Passing State via Routes

AngularJS - Communicating Between Controllers - Part 3

In the previous two articles, we discussed passing state using scope variables and Angular's PubSub mechanism.

Another, often overlooked mechanism, is the URL.

I'm going to assume you already understand the concept of URL routing in an client side application. If you don't, I suggest you do some precursor . . .

Read More

July 02, 2014

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 check_url.py 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

Archive

This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.

Got It!