Sometimes TDD requires a hammer

While there are myriad mocking libraries available for the Java platform, only a select few of these nifty frameworks is capable of mocking the non-mock-friendly modifiers of static and final . Static (or class) methods, while handy...

08/04/2013

Imbibing the fluency of Mockito

Sometimes you've just got to mock -- and when you do, Mockito is a Java-based mocking framework that can make general-purpose mocking go down easier.

08/01/2013

Swipe gestures in jQuery Mobile apps

I find that swipe gestures for navigating between screens in a mobile app quite nice .

07/30/2013

Introducing Android migrations

Have you ever worked with Rails’ migrations ? They make database changes a breeze , don’t they? While every software release doesn’t necessarily involve a migration, when one does happen to make use of one, I’m always pleased on how...

07/24/2013

MongoDB pro tip: field projections

Did you ever learn that select * from table in RDBMS-land is bad? Of course, you did! If you’re only looking for the email address of a user and not the other 15 columns worth of data, then why ask for that data and incur a penalty?...

07/15/2013

Sampling Redis keys for memory consumption

We run a farm of Redis instances for storing real time analytics. Because Redis stores objects in memory, it happens to be an extremely fast way to retrieve data; thus, most of our charts and graphs pull data from various Redis...

07/03/2013

Mobile for the masses: Words and gestures with Overheard Word

The fourth article in IBM developerWorks ’ series Mobile for the Masses has been published! This copasetic article shows you how to take the Overheard Word demo app up a level with a JSON-based word engine and some prebaked,...

07/01/2013

Android tip: ListView becomes black when scrolling

One of my Android apps recently suffered from a nefariously ugly UI glitch that, embarrassingly, a user reported to me. Strangely, this phenomenon did not surface itself in local testing on either emulators or devices when I first...

06/27/2013

MongoDB primary keys are your friend

All documents in a MongoDB collection have a primary key dubbed _id . This field is automatically assigned to a document upon insert, so there’s rarely a need to provide it. What’s interesting about the _id field is that it is time...

06/22/2013

Lickety-split custom validations in Rails

Have a highly specific, yet custom validation for a particular field on one of your Rails model objects? Don’t want to create a ActiveModel::Validator type? Not a problem!

06/12/2013

Backgrounding tasks in Heroku with Delayed Job

Long running web requests are bad.

06/10/2013

Backgrounding tasks in Heroku with Delayed Job

Long running web requests are bad.

06/10/2013

MongoDB to CSV

Every once in a while, I need to give a non-technical user (like a business analyst) data residing in MongoDB ; consequently, I export the target data as a CSV file (which they can presumably slice and dice once they import it into...

06/07/2013

MongoDB to CSV

Every once in a while, I need to give a non-technical user (like a business analyst) data residing in MongoDB ; consequently, I export the target data as a CSV file (which they can presumably slice and dice once they import it into...

06/07/2013

Callbacks in Appcelerator Titanium modules

I recently found myself implementing both an Android and iOS Appcelerator module for App47 ’s respective Agent libraries .

05/29/2013

Callbacks in Appcelerator Titanium modules

I recently found myself implementing both an Android and iOS Appcelerator module for App47 ’s respective Agent libraries .

05/29/2013

Mobile for the Masses: Activities and icons in your Android application lifecycle

My third article in IBM developerWorks ’ series Mobile for the Masses is now out!

05/28/2013

Mobile for the Masses: Activities and icons in your Android application lifecycle

My third article in IBM developerWorks ’ series Mobile for the Masses is now out!

05/28/2013

ElasticSearch on EC2 in less than 60 seconds

Curious to see what all the ElasticSearch hubbub is about? Wanna see it in action without a lot of elbow grease? Then look no further, friend – in less than 60 seconds, I’ll show you how to install ElasticSearch on an AWS AMI .

05/17/2013

ElasticSearch on EC2 in less than 60 seconds

Curious to see what all the ElasticSearch hubbub is about? Wanna see it in action without a lot of elbow grease? Then look no further, friend – in less than 60 seconds, I’ll show you how to install ElasticSearch on an AWS AMI .

05/17/2013

Load More