DOS Paths

DOS requires you to put a path in quotes if it contains spaces.

If you try to run: C:\Documents and Settings\user\My Documents\foo.exe

You receive the error: C:\Documents is not recognized as an internal or external command, operable program or batch file.

However, if you try to run: “C:\Documents and Settings\user\My Documents\foo.exe”

It will work fine. This also applies to many other command line based applications.

Sepia Tone Images with Photoshop

It’s rather rare that I need to apply a sepia tone to any image, but every now and then I do have to. Many digital cameras offer this effect, but not always. So in the rare chance that you do need to create a sepia tone on an RGB image, here’s how to do it with Photoshop.

  1. Open the image in Photoshop.
  2. If the image is in color, go to Image > Adjust > Desaturate and skipt to step 4.
  3. If the image is in grayscale, go to Image > Mode > RGB Color.
  4. Go to Image > Adjust > Variations.
  5. Move the Fine <--> Course slider down one notch less than the middle.
  6. Click on More Yellow once.
  7. Click on More Red once.
  8. Click OK.


  • Use the Save… button in the Variations dialog to save the sepia tone settings. The next time time you want to use it, just load the saved settings.
  • Use Desaturate and experiment with Variations to apply ohter color tints to your photos.

Activating ActiveX Controls

Internet Explorer forces you to “Click to activate and use this control” when encountering items such as Flash, Java Applets, Media Players and other objects.

There are a number of ways to fix this issue, Google it. But if you’re lazy and want an answer here and now, you’re in luck.

You will need to download 2 JavaScript files (linked below) and slightly modify the object tag (<object>) as shown below.

Continue reading Activating ActiveX Controls

Guide to .htaccess Password Protection

Sometimes you need to password protect a directory and your only available option is using .htaccess. This comprehensive guide will show you how to do that as well as using .htaccess for other things such as preventing hot linking and blocking bots.

You can also prevent image hot linking with PHP and mod_rewrite.