Blog


Emailing in Node.js with Nodemailer

Emailing in Node.js is easy to do with the Nodemailer module. Nodemailer supports plain text content, HTML content, attachments, different transport methods, etc. The official documentation can be found on github. Getting Started Lets start off by creating our directory. mkdir EmailExample cd EmailExample Creating package.json In the EmailExample directory we just created, run npm […]




Signature Pad with HTML5

I was recently asked to create a signature pad for desktop and mobile browsers to save customer signatures. The solution included using the <canvas> element and adding event listeners for both mouse and touch events to draw the signature lines on the canvas. First thing is we have to create a canvas element. <canvas id=”canvas” […]



Flat Buttons – An iOS Control for a Flat UI

With the announcement on iOS 7 and the growing trend towards flat UI, I decided to create a simple iOS control to create flat buttons. The control can be downloaded from Github and can be used in any iOS project. Using the control is as simple as it gets. Once you download the project, copy […]




MemoryCache doesn’t persist when attached to Visual Studio Debugger

With .NET 4.0, System.Runtime.Caching MemoryCache can be used to persist large object collections for better performance. This works great when your web application is published to a server. When debugging in Visual Studio, you’ll find that the cache object will be empty at random times. This is apparently caused by a bug in .NET 4.0. […]




ASP.NET MVC Validation with Twitter’s Bootstrap

To all ASP.NET MVC developers who use Twitter’s bootstrap, here’s a quick script you can drop into your web apps to integrate “MVC type” validation with Bootstrap styling. Keep in mind, I didn’t write this from scratch. I found several snippets on StackOverflow and dumped them into a js file so it may need tweaking […]




NPM Cheat Sheet

Node Package Manager (NPM) is an awesome tool that installs nodeJS programs. It also makes it easier to specify and link dependencies. All nodeJS developers have used NPM one time or another. If you haven’t then you must be some sort of genius. I’ve put together my own personal cheat sheet of useful NPM commands […]




Nide – An IDE for Node.js

While scouring the internet looking for Node.js tools, I came across Nide. Nide is a web-based IDE designed specifically for Node.js. The Nide IDE is available both as a command-line tool and as a standalone Mac app. I’ve been trying out Nide for the past few days and I absolutely recommend it to anyone developing […]