Automatically Switch Your Google Maps API Key To The Correct Environment Using PHP

Date June 26, 2007

The Google Maps API requires a unique key for each domain where maps will be rendered. This means the key you generate for your production environment won’t work on dev or qa (assuming your dev and qa environments are not served from within your production root).

I typically do my dev work locally, push changes to a qa server, and eventually push the final product to production.

In order to get my google maps to render across all three environments, I use a switcher that feeds the google maps API the correct key based on which server is asking for it.

Read the rest of this entry »

Adobe Photoshop CS8 File Name Size Limit

Date June 24, 2007

Adobe Photoshop CS 8.0 has a nasty habit of truncating filenames longer than 31 characters when you use the “Save for Web…” feature. There are settings that control this behavior, but they are kinda hard to find.

To prevent Photoshop from chopping off the end of your filenames:

  1. Create or open a file
  2. Select “Save for Web…” (Alt-Shift-Ctrl-S) from the File menu
  3. Next to the “Preset” select there’s a circle with an arrow through it. Click it and select “Edit Output Settings…”

    Step 3 - Open the output settings dialog

Read the rest of this entry »

Updating A Remote Subversion Workspace With Password-less Authentication

Date June 21, 2007

This tutorial will show you how to execute a command on a remote server using password-less authentication.

This particular example demonstrates updating a remote subversion (svn) workspace, though it can easily be adapted to any command you may require.

I’ve layered it into 4 steps- the final step being what I consider the most elegant and optimized solution to the problem.

Read the rest of this entry »