Archive for the 'Programming' Category

Curved corners script for Photoshop

I’ve been looking for an excuse to play around with scripting in Photoshop. Today I found one. I came across a series of actions that rounded off the corners of an image to get it ready for uploading to a web site. The problem is that it was a series of actions. [...]

Event tracking with JavaScript

A while back Google added event tracking to Analytics so you could keep track of Javascript and Flash events.  Pretty cool feature.
Being the stat junkie that I wanted to use this to keep track of outgoing clicks on a photography forum of mine.  But I didn’t want to have to go through every link prior [...]

How to wrap a SMF forum in WordPress

After spending the better part of yesterday getting a forum setup with the same layout as its parent WordPress site I thought I’d share a couple of tips along the way.
And I picked a less efficient way, including wp-blog-header.php in the forum code, because it was far easier. At some point I may go back [...]

WordPress – Redirecting to the first child page

I've been redesigning the website for a web application I am writing.  The site uses WordPress because I wanted a blog section and wanted visitors to be able to easily leave comments on any page.  So the entire site is backed with WordPress with most of the content on pages rather than posts.
One of the [...]

Aptana on Vista 64bit – Black Screen

I've been having issues with Aptana putting a huge black box over the code window on Vista 64.  And it seems many others are having the same issue as well, which is a shame because it's an otherwise great program.
It appears to have something to do with the preview tabs.  I could open up as [...]

isPalindrome function in Python

I've started playing around with Python, and the more I do the more I like it.  Python makes it very easy to do simple, scripty type stuff, but also has the ability to do OOP if that need arises.
Here's a quick little function to determine if a string passed is a palindrome or not.
PLAIN TEXT
PYTHON:

def [...]

ProofBuddy 1.0 released

One of my web projects met a milestone a few days ago with the 1.0 release. It took me over 2 years working part time, but 1.0 finally contains the full feature set that I wanted when I started writing ProofBuddy in the fall of 2005.

ForumsBlogsWikis.com

Yup, another blog.
If you read back through the archives here you'll see that I have a real problem with starting new projects. Not that I have a problem starting one. I have a problem starting too many. Right now I've got 2 forums, 1 eCommerce site, and 6 blogs (only 3 of [...]

Download script using PHP

This is a short PHP script that I use on my DailyFont.com site to handle downloads. Sure it's easy to just link to the zip, but this allows me to keep track of how many times each file has been downloaded which I then use to rank the fonts on popularity.
PLAIN TEXT
PHP:

<?php

include('shared.inc.php');

 

if (!is_numeric($_GET['id']))

{

die();

}

 

$rs = [...]

osCommerce and duplicate content

If you've got an osCommerce store set up you are probably fighting a duplicate content problem with the search engines. The problem is that OSC has an almost limitless number of ways to view any one particular product page - 1 for each category that the product is in plus one without any category [...]