Dependencies Maven Java 7 SDK RabbitMQ (Instructions provided below) Building 1. Checkout from Github 2. RabbitMQ As described in the Hydra Readme.mdown, Hydra uses rabbitmq for low volume commands and control message exchanges. On a modern Linux systems apt-get install rabbitmq-server and running with the default settings is adequate in most cases. For Mac OS (my environment), I used Homebrew to install it. Super easy […]
Category: Software Development
County Housing Search
From Mar 27, 2012 I recently wrote a job to identify the counties with the most houses for sale (according to the 2010 Census). To do so, I ingested the data from the Census Bureau, and wrote a MapReduce job. My goal was to have all counties and the total houses for sale in ascending […]
Using Java’s URLEncoder
We developers really should heed the warnings of deprecations. Java’s URLEncoder.encode(String); throws the deprecated warning, encouraging us to use URLEncoder.encode(String,String);. I use this tool to encode the special characters in parameters on an URL to prevent a misunderstanding with a server. Want to finally do the right thing and use that method? Here’s what you […]
Enabling Password-less SSH
In setting up a local Hadoop stack, you’ll need to enable SSH access to your machine from your machine. This is also useful for other systems, so a good thing to know in general. The following instructions will guide you through setting it up on a Linux box, but can also be applied to Mac […]
Markdown Overview
Markdown is the technology behind the README files seen on Github and elsewhere. The file extension is .md, and the output when rendered in a browser follows a consistent syntax. The goal of Markdown is foremost readability.[1] Even in a non-HTML rendered state, it can be read and understood. This is achieved by using punctuation characters as markers for what a text represents.
Getting displays for IDs in EXT-JS
How to get the value from a combobox to use as a display text
Jobs in Hydra
Continuing in Hydra land, one of the pinnacle objects is the Job. These jobs represent the construction of information from a source. Think of it as the worker, milling away to create the DataTree. IJob The IJob interface lays the foundation. It has many properties defining the characteristics of a job, such as start time, […]
Accessing Spring Properties
Spring’s IoC is wonderful, and annotating classes for auto-configuration and wiring is exceptionally useful. But when you have a primitive value to set on an object, it can be tedious to manually define the bean in your context.xml. Here is an example: Now, I could set the host as a bean in the context.xml: But, […]
Events for EXT-JS
There are many events in EXT-JS to which you can ascribe listeners to do some neat things. But to which event should you attach functionality? Well, some are pretty clear, such as the select event on the selection model of a grid, allowing you to do things with a row selection. Or using mouseover to […]
Creating Displayable Text
Working on cycling through the fields of an object, and programmatically building a user friendly display text for each. To simplify my life, I’m using reflection, and the following method to capitalize the field name, and insert spaces appropriately (for camel-case field names):