Category Archives: Development

iTunes backup using rsync

When the music died After one particular iTunes upgrade, all of my music disappeared. Deleted from the drive they were stored on. It’s OK because I got it back but it was a process, and in the spirit of not getting hosed again, I’m writing down what I did and what I’m now doing to […]

Site backup script example

This handy script will backup a directory and database. To use, create a new file on your server, probably in your user’s root, called backup.sh and add the below, making sure to update the source and destination path varaibles and database name. To run the script, do this:

Write and Rewrite

Whenever I’m adding a new feature and I start poking around, the goal is always to get something working and turned around in a hurry. Unfortunately, a lot of my code does not start out with adaptablitiy and extensibility in mind, so this rarely happens. Instead of doing things right the first time, I’m usually […]

Update or Install Joomla over SSH

This procedure comes in handy if, like me, you have trouble using the one-click Joomla updater on some servers. First, find out the web address of the upgrade or install package that you need straight from joomla.org. Make a note of the URL of the package. Next, shell into your server and cd to the […]

Reset all user passwords in Joomla!

I found myself needing this script for some nonsense reason involving tech-averse users an an intranet. I decided to document it below for posterity. It’s real dirty, so use at your own risk.

Change the default Joomla! database table prefix

Don’t be a sucker. The easiest way to give a hacker a head start on your Joomla installation is to use the default table prefix for your database. In the 1.5 days, the installation process always defaulted to “jos_”, but nowadays, I think they’ve eliminated this security risk by generating a unique prefix for you. […]

Customizing the WordPress Backend

A custom login page is a really nice touch. There are plugins out there that can do this, but why bother when all you need to do is to drop this into your theme’s functions.php file. It will override the default WordPress login css styles and allow you to customize the logo and background. Totally fresh.

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. […]