Hello, I am Will Laurance

I am a Professional Software Developer, Entrepreneur, and Human Being.

Will Laurance at Yosemite National Park
22 Apr 2017

Mongoose Tip $Push

I've been working with Mongodb for the last year at my software engineering job. At first, I was hesitant. To be frank, I was a bit of a Mongodb hater (for no good reason).

[read more]

11 Sep 2016

Node.js PostgreSQL Transactions and Query Examples

Transactions in computer programming are essential for data integrity. Transactions provide primitives for guaranteeing your query logic succeeds or fails gracefully. A transaction contains any number of statements. At any point you can rollback if an error occurs or your logic fail conditions trigger.

[read more]

20 Jun 2015

A New Start

It is a wonderful feeling to start a new chapter in life. Change is always a bit scary, but in my experience, the benefits always outweigh any interim anxiety created.

[read more]

08 Jan 2015

2014 - Lessons Learned

2014 was a great year. I grew my freelancing business, built some small products, and had fun. Here are three lessons I am taking with me in 2015.

[read more]

30 Jul 2013

node.js -e vs node.js -p

The difference between node -e and node -p is p will run the script through the interpreter and print the results. The -e will only evaluate the script. The time -e will print anything is if something writes to stdout or stderr.

[read more]

16 Aug 2012

NGINX redirect for multiple virtual hosts

If you want to redirect traffic to a different subdomain, you can add a rewrite clause into each of your server{} entries in /etc/nginx/sites-avaliable/default or where ever you keep your available sites located.

[read more]

11 Jul 2012

Node.js documentation app

I am currently working on a node.js documentation app similar to andnodejs. I really like andnodejs but the versions of node are not being updated with the app. But I figured why not just let the user choose which versions of node they would like to have installed. Nodoroid solves this problem by allowing the user to choose which version of the node documentation they have. It also supports having as many versions as you would like. The view of docs will be in a similar manner to andnodejs.

[read more]