Docker Cheatsheet

This is not by any means a comprehensive list of commands, but are probably the one's I most commonly use when working with Docker. Docker VM...

MongoDB pitfall checklist

Query Issues Concerns while interacting with MongoDB: Queries are case sensitive Either create data in a known-case or use proper case on queries. Mongo doesn't enforce...

OpenVPN Connect - Profile Import Error

"Have you tried turning it off and on again?" This may save someone searching on Google from going mad... So after running OpenVPN Connect on Mac...

AngularJS Concepts

AngularJS has a plethora of features available for developers. While these topics are all available reading in the AngularJS official docs and Developer Guide, I just...

Mac OS X - Unable to sudo delete a file or folder

If you can't edit, modify, or delete a file or folder as root (or via sudo) on your Mac, you've just run into Apple's "Rootless System...

Unit Testing Overview

The continued health of your software is important. With software testing in general, we focus on two types of testing: Unit Testing for testing each single...

Unit Testing PHP with PHPUnit

For a background on Unit Testing in general, check out the post on Unit Testing Overview. Example PHPUnit Tests If you have installed PHPUnit and want...

Test async code using done() with Mocha

When testing asynchronous code in Mocha, we need to be sure that we are letting Mocha know so it can handle the test case correctly. Setting...

Working with Async JavaScript

If you have been programming with most modern programming languages, the first thing you realize when learning how to write JavaScript is that: It isn't procedural...

SQL Optimization for MySQL & MariaDB

Ok, so you have your server configured at optimal performance, a great caching strategy, and your code has been refactored into its best working order. Now...

Strategy Pattern in Java

Concept: A creational pattern. The Strategy Pattern is essentially a way to provide multiple ways to perform some sort of similar action. I've used the Strategy...

Examples of Memcached with Node.js, Python and more

Node.js Additional Documentation var Memcached = require('memcached'); var memcached = new Memcached('127.0.0.1:11211'); var lifetime = 86400; //24hrs // Add first entry to cache...

Singleton Pattern on PHP

Concept: A creational pattern. You basically need one "global-type" object to exist. Implementation is pretty cut-and-dry using PHP. Pros: We can be sure that there is...

Design Patterns

While there's literally tons of books, web sites and courses in the area of design patterns, I wanted to consolidate some of the most common patterns....

Getting Started with Python and Django

Django is a Web Application Framework that was originally released in July of 2005. Since then, it has evolved into a highly-scalable platform for serving up...