Self-Signed, Trusted Certificates for Node.js & Express.js

If you want to fully replicate an https/SSL Node.js/Express app server locally you’ll need a self-signed AND trusted certificate setup. More often than not I see dev’s settle with an untrusted state for their localhost, which is an annoying and frustrating work around. I don’t want to tell Chrome and Safari that I trust the website every single time I open it up. Luckily there’s a way around this, just follow the steps below on your mac to get `https://localhost` serving your Express.js Node app loading with SSL locally.

JSON POST Requests: $_POST Won’t Work

Receiving JSON POST data in PHP is a common scenario I come across when building custom WordPress API’s. If you’re working with JSON API’s powered by PHP you may find that $_POST is not working with JSON, and you may…

Built-in WordPress Taxonomy & Post Type Reference

Below is a list of WordPress built in taxonomy names and built-in post type names. Never name your custom taxonomies and post types with one these to avoid collisions. Taxonomies category — Categories (Posts) post_tag — Tags (Posts) nav_menu —…

Angular On Enter Key Directive

I’ve been doing a lot work with Angular.js lately, and I continue to find directives more and more useful. Here’s a common directive I frequently use to trigger a scope method when the `ENTER` key is pressed.

Pulsating Text with CSS3 Animations

The following snippet of HTML, CSS and JavaScript will provide you with a pulsating text effect that fades in and out infitately over a 3 seconds. This is nothing new or spectacular, but it was hard for me to find…

JavaScript Object Comparisons

The lodash library’s isEqual() method provides a deep comparison between two JavaScript objects: var user1 = { name : “nerd”, org: “dev” }; var user2 = { name : “nerd”, org: “dev” }; ( user1 == user2 ) // returns…

SiteOrigin Page Builder Content Conditional

I’ve been working with the Site Origin Page Builder plugin a lot lately, which is wonderful and I highly recommend it for WordPress CMS development. I found myself in need of a basic SiteOrigin Page Builder conditional function to check…

Static Site Engines with Node.js + Express

Last night (February 13, 2015) I presented at the Boston Node.js Meetup hosted by LogMeIn. I shared an approach I’ve used working to build a static site engine using Node.js for MIT Technology Review. It was a fun experience, I…

Wildcard Find & Replace in Sublime Text

This should have been easier for me to understand, but regex still gives me headaches. For anyone wanting to run a search and replace in Sublime Text that contains wildcard values this can be used: [^<]+ For example, we could…

A Simple Node Static Server

Serving static HTML, images, stylesheets and scripts with Node.js isn’t as out of the box as you might expect. Most developers coming from a PHP or Rails background might be surprise to find that you’ll need to configure a static…

WordPress Sample Content

When you’re designing or developing a WordPress theme it’s important to provide the proper CSS styles for the various elements that the TinyMCE editor can output. Use this sample WordPress content to quickly test out the way headings, lists, paragraphs,…

WordPress Themes, Meta Boxes & Modern Layouts

Modern websites have many different templates and page layouts. Quite often these templates can’t be effectively managed using just a WYSIWYG editor. To build a successful custom WordPress theme you need to make managing modern page layouts as easy as…