A better way to write config files in PHP

Written on

How many times have you seen something like this in a config file?

How to upgrade or downgrade Node.js using npm

Written on

Need to update your version of Node.js? Here's how you can upgrade or downgrade from the command line using npm.

Adding and removing virtual hosts on Ubuntu 14.04

Written on

Here's a cheat sheet for working with virtual hosts on an Ubuntu server. The instructions assume you're not logged in as the root user. Change example.com to your own domain/subdomain.

Lessons from a failed Kickstarter

Written on

Last week, I launched Particle on Kickstarter. Today, I pulled the plug and canceled the campaign. We had 50 backers and were 5% funded. So why would I do this with 25 days left to go?

Democratizing publishing

Written on

One of the objectives Matt Mullenweg has for WordPress is to democratize publishing, which is excellent. But the very same article states another objective is to "capture the 75 percent of the internet that WordPress doesn't already manage."

Animated CSS hamburger icons

Written on

If you need some tasty CSS hamburger icons that animate in fantastic ways, here you go.

Flushing DNS cache on macOS

Written on

Here's the best way to flush DNS cache on macOS:

A clean fade-in effect for webpages

Written on

Here's a nice way to fade your pages in using CSS and a bit of JavaScript. The solution is clean and smooth, with no flickering on load. If JavaScript is disabled, the page will still load but the fade effect will not occur.

How to remove box shadows from input controls on iOS

Written on

Those default box shadows that appear inside of your input elements on iOS can be pretty annoying, especially if you're going for a flat or subtle look. Here's how to remove them.

Passing data from PHP to JavaScript

Written on

Have you ever needed to send a PHP variable, array, or object to JavaScript? It can get complicated trying to escape the output properly. Here's a way that always works — no escaping necessary.