Posted by & filed under CheatSheets.

“Take a whirlwind tour of your next favourite language. Community-driven!”

Basically a great resource for getting up to speed on a new programming language that interests you. It’s like a collection of cheatsheets!


Posted by & filed under Software, Web Development.

Regex Testing Made Easy

I have used a lot of regex testing services online but this one is by far the best out there.
Why? You can easily generate regex code in your favourite language that you can easily copy/paste into your project!
Go To: Tools -> code generator


Posted by & filed under Life, Software.

According to Larry Wall(1), the original author of the Perl programming language, there are three great virtues of a programmer; Laziness, Impatience and Hubris

  • Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
  • Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
  • Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.


Posted by & filed under Life.

“An illustrated guide for programmers and other curious people”

Great read for anyone that wants a refresher on algorithms and for learning the fundamentals of programming.

Best part is, it isn’t boring, you feel like you want to read the entire book in one sitting!



Posted by & filed under Projects.

New projects added with screenshots!

The Projects Menu Item has been updated with some latest projects with screenshots. Feel free to take a look, including 2 new iOS apps: Photo Album and Live Feed!

Enjoy 🙂

Posted by & filed under Projects, Web Development.

Deployed some apps to Heroku:

Will update these with feature list and their own dedicated page on my website soon. Stay tuned!

Posted by & filed under CheatSheets, Web Development.

Some deployment steps for Heroku:

To deploy static html/css project:
1) Create an index.php file with the following content: <?php include_once(“home.html”); ?>
2) Rename your main or index.html to home.html
3) Deploy app

To deploy node.js project:
1) Ensure package.json has a start script and deploy app.
e.g. “scripts”: {
“test”: “echo \”Error: no test specified\” && exit 1″,
“start”: “node app.js”

To deploy to Heroku:
1) Install Heroku toolbelt and login account
2) Run “heroku create” in a git project
3) Run “heroku apps:rename <newProjectName>” to rename your project (optional)
4) Run “git push heroku master” to push project to heroku

Posted by & filed under CheatSheets, Concepts, Web Development.

Mongo DB Commands

A table of some useful mongo commands. These were used and tested on Cloud 9.

Command Description
$ mkdir data
$ echo ‘mongod –bind_ip=$IP –dbpath=data –nojournal –rest “$@”‘ > mongod
$ chmod a+x mongod
Setup Mongo to use a dir “data”
./mongod Start mongo server
mongo Start mongo shell
show dbs Print a list of all databases on the server.
use <dbName> Switch current database to <db>. The mongo shell variable db is set to the current database.
show collections Print a list of all collections for current database.
db.collection.find() Find all documents in the collection and returns a cursor.
db.collection.insert() Insert a new document into the collection. e.g. db.dogs.insert({name: “Victory”})
db.collection.update() Update an existing document in the collection. Insert either a new document or update an existing document in the collection.
db.collection.remove() Delete documents from the collection.
db.collection.drop() Drops or removes completely the collection.
mongod –repair –repairpath <path> Repairs the mongo db if incorrectly shut down.
Other useful mongo Links:

Mongo command reference:

Setup mongo on cloud 9: