Disable WordPress Post Revisions

Add the following lines to your wp-config.php

Setting Up Virtual Hosts on Mac OSX

Working locally is key to faster development, and setting up PHP and MySQL to run on my local machine was the first step in establishing a solid development environment. A next, and often overlooked, step is to configure apache with virtual hosts. Virtual hosts alow you to create custom domains from which to serve your […]

Show Off Your Instagram Photos On Your Own Site

This article is just a stub. More to come soon… I am planning to develop a Joomla module to display Instagram photos. I’ll be using the Instagram API and will document the process below for posterity. To get started you’ll need an account. Log in to the developer site and set up a new application. […]

iOS Safari web clip icons for home screens

Create custom web clip icons or “app logos” in various sizes to be displayed (instead of the default site snapshot) when users save your site to their Home screens. Across Safari iOS devices. Add in the in the same place you call your normal browser favicons. See the Apple Developer Docs to get it from […]

Simple Mobile and Smartphone Detection

Though an old post, this is my solution that’s been pieced together from various comments on this article.

.htaccess Basic Authenticaton

To restrict access to everything in a directory and everything below it, set up an .htaccess file and a corresponding password file. Generating the .htpass file Method 1 The -c directive creates a file .htpass in the directory somepath/outside/of/root/ containing a username user1. Be careful as this will overwrite an existing file of the same […]