Node Module Walk-Through: Get Port

I had a fun idea for a new blog post series. We’ll pick an NPM module and walk through it together! Hopefully learning some cool things along the way. Today’s module is get-port by the awesome Sindresorhus! It’s a very simple module that returns an...

The only bad thing about ES7 async/await

I’ve been using async/await pretty heavily in a side project of mine. It’s been pretty awesome to work with and my code has become much more terse while gaining readability! If you read my previous post, The Long Road to Async/Await in JavaScript, you...

Firefox won’t submit form not in DOM

Ah, differences between browsers. Am I right? Today I learned that Firefox will not allow you to submit a form that hasn’t been attached to the DOM. Let’s take a look at a quick example. (function() { var form = document.createElement('form'); form.method...

Front end form validation with Parsley

Front end validation for your forms is a must have these days! It’s not a good user experience to reload the page after the user hits submit, just to find an error and send them back to the same page! Even worse is if you didn’t store their original...

WordPress combine plugin CSS and JS

If you’re like me, you probably have at least one WordPress site with at least 5 plugins. Honestly, I have about ten different WordPress sites. Some of them have over 10 plugins. While all this functionality is great, it comes at a cost! The Problem You see,...

Getting started with Node.js and bcrypt

For those of you looking for a safe way to store user passwords in your Node.js application, look no further! Introducing bcrypt. This Node package uses the UNIX bcrypt library first invented in 1999. It allows you to hash and encrypt sensitive data like user...

Installing Node.js 4.2 LTS on Debian Wheezy

Normally I download, compile, and install Node from source. However the LTS version of Node requires GCC >= 4.8, whereas Debian Wheezy is stuck at 4.7. Instead of jumping through the hoops to upgrade GCC I figured I’d try installing the binary version....

Passing Parameters in Javascript onClick Event

I ran into a problem today. I was trying to generate a bunch of input buttons with JavaScript and have each of them do something unique onClick. The Wrong Way var temp; var myArr = ["Peter", "Paul", "Tony", "Adam"]; function display(name) { alert(name); } for(var i =...

Introduction to Lodash

Excited to release Lo-Dash, a drop-in Underscore.js replacement that's up to 8x faster http://t.co/7cNwy6rw; screencast http://t.co/MSkupmxY — John-David Dalton (@jdalton) April 23, 2012 Originally forked from Underscore in 2012, Lodash has become the most...

Install ImageMagick with PHP on Debian

I’ve been working on an app lately that involves some image manipulation. Most of the time I useGD for image manipulation but there are a lot of things it just can’t do easily. When I run into prolems GD can’t solve, I turn to ImageMagick....