Syntax Highlighter

Just installed the Syntax Highlighter from Alex Gorbatchev, and like it quite a bit… here’s an example.

public int factorial( int number ) {
  if( number == 1 ) {
    return 1;
  return number * factorial( number - 1 );

The key is to use a name=”code” and class=”java” (or xml, or others…) in your pre-tag. Add the javascript calls required for the feature, and your code shows up nicely on the web page…

For easy copy and paste:

<pre name="code" class="java">


PHP Installation

Just because I find it frustrating how obtuse the install directions for PHP are…

  1. Download and install Apache
  2. Download, install, and configure MySQL
  3. Download PHP and unzip to somewhere like “C:\php5.2”
  4. Update php.ini file in PHP install directory; update or uncomment the following line:
    • extension=php_mysql.dll
    • SMTP = localhost
  5. Copy these two files from the php dir to the apache\bin dir:
    • php5ts.dll
    • libmysql.dll
  6. Update your httpd.conf to have the following lines (they can be at the bottom):

    AddType application/x-httpd-php .php
    PHPIniDir "C:/php5.2/"
    LoadModule php5_module "C:/php5.2/php5apache2_2.dll"
  7. Restart apache service; test with phpinfo()

Backup Software

I’ve been pretty happy with mozy as an intermediate backup solution.  It gives me automatic backups in the background to an offsite, secure location.

Basically I have mozy running a backup of my Outlook and Firefox profile — stuff that changes every day.  Then on the weekends I back everything up to a USB hard drive at home.

You get 2gb for free, or an unlimited amount of storage if you sign up for a $6/mo plan.

Use this link to sign up for an account, and we both get a nice little 256mb bump in both our quotas:

WikiMedia Config

To configure user behavior within WikiMedia software… start with the LocalSettings.php file that is typically in your web root folder.

# Specify who can edit: true means only logged in users may edit pages

$wgWhitelistEdit = true;

# only Sysops can create new accounts

$wgGroupPermissions[‘*’][‘createaccount’] = false;

Related Docs from the official manual/wiki:


Phatch sounds like an interesting application… basically a batch processor for photos.

I’ve been using ImageMagick for a while now, and it seems to have more options, but Phatch might have some good uses for pretty drop-shadows, etc.

Something to play with later…