Global Conditional Compilation with Unity3D

I am developing a Unity(4.3.4) game and need to toggle features on and off between the Lite and Standard version. The Lite version contains ads and is free, while the Standard version costs 99 cents. One technique for doing this in C# is to use preprocessor directives…

Pixel Hero - Windows 8 App Post Mortem

This blog post just didn't want to get out the door so it's being published almost half a year late:) I published a Windows 8 app, Pixel Hero late Saturday night (9/7/2013) into what is now called the Windows Marketplace. Apps published into this marketplace are still commonly…

Nuget Packages You Should Know About

In order to build software quickly we stand on the shoulder of giants. The .NET ecosystem has many great software packages that can be leveraged to speed up your development cycle. Here is a list of packages available via NuGet that will land you in the pit of success if…

MongoDB Utilities

MongoDB comes with several very useful utilities for managing data. You can restore data from a MongoDB dump with the following command: mongorestore dump You can import data from a csv file with the following command: mongoimport --type csv --headerline weather_data.csv -d weather -c data …

Installing MongoDB on Mac OS X

Here is a quick guide for installing MongoDb for developers. Download file curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.7.tgz > mongodb.tgz Extract file tar -zxvf mongodb.tgz Move files to usr/local folder mv mongodb-osx-x86_64-2.4.7/ /usr/local Open your .bashrc file cd…

Understanding Strict Mode in JavaScript

Strict mode is enabled in a JavaScript program by adding a special string constant at the beginning of the program: "use strict"; Also, you can enable strict mode for a function by placing the string constant at the beginning of the function definition. function dodge() { "use strict"; // ... function body } What…

It's Alive!!! Building Objects in JavaScript

It's overwhelming the number of ways you can construct objects in JavaScript. In this article I will tackle the various ways to build objects (including inheritance). The basic techniques for creating objects are: Simple Objects Constructors Simple Inheritance Inheritance method used by CoffeeScript Inheritance method used by TypeScript Object Instantiation…

Grunt Ground Zero

Grunt is a popular task runner in the Node/JavaScript space. Any task you perform repeatedly is a good candidate to be automated via Grunt. On a typical development project you would automate building your SASS, linting your JavaScript, minifying your JavaScript, or compiling your CoffeeScript. Step 1 - Install…