Skip to content

{ Category Archives } code

What, no version control?

$WEB_CORP has taken on the maintenance contract of a particular site and the client has asked for some changes to be made along with fixing up some SQL injection vulnerabilities.
My first step was to GET all the site’s scripts via FTP so I could create a local DEV instance of it and was surprised to [...]

$BIG_CORP rides the snake - my first Python script

In between support tasks at $BIG_CORP I’ve been slowly reading through O’Reilly’s Learning Python and trying a few things out with the command-line interpreter.
The first script I’ve written that actually does something useful is countdown.py:
#!/usr/bin/env python
# countdown to 5pm
# 2008 SJW
import datetime
now = datetime.datetime.now()
home = datetime.datetime(now.year, now.month, now.day, 17, 0, 0, 0)
total_secs = (home - [...]

Fun with Photoshop and cross-browser CSS

The consensus wasn't to go live with the new site straight away after all but to create a better impression on the public by waiting on the final design and within no time at all Jordan had worked his graphical magic and delivered the goods.
I was supplied with a .psd mockup and got busy with [...]

Getting ready to launch infurious.com

I’m preparing to push my code for the new Infurious site into production so we can start selling our first application, Rickshaw.
The site’s not too pretty but It Works and our freshly recruited designer Jordan has some interesting ideas for the next iteration. All the important stuff is present: people can download Rickshaw, purchase a [...]

Infurious Update

Just a quick update on what I’ve been working on for Infurious recently.
Since finishing up on configuring Jabber I’ve been developing our website with the specific aim of allowing customers to download our products and purchase licenses for them.
For this I’ve returned to CakePHP and been tinkering with the PHP portion of the AquaticPrime framework [...]

MySQL upgrade

I finally got sick of not being able to use SQL subqueries and decided to upgrade my MySQL installation from 4.0.x to 5.0.x.
I had wanted to do this previously but was afraid I’d end up breaking something and be left without a working development environment or a website either, for that matter, so I resorted [...]

CakePHP 1.2alpha - model validation

I thought I was out of the woods. I upgraded my development copy of MacServ to the alpha version of CakePHP so I could make use of it’s pagination features; I tweaked my views to replace calls to various deprecated html helper functions with the new ones in the form helper, made one or two [...]

Patching CakePHP

I submitted a minor contribution to the CakePHP framework today, a patch to a patch, to be specific. It’s good to give back

Synchronising production and development code with subversion

Now that MacServ has been deployed keeping development and production copies of the code synchronised has become an issue. The app is still very much a work in progress, with daily requests for fixes & tweaks from the technicians using it and instead of keeping track of modified files and then manually updating them via [...]

MacServ deployed

The initial version of my latest project, MacServ, has just been deployed.
MacServ is intended to model the work-flow at Mac-Sys and to replace the existing paperwork.
Deployment was scheduled for close-of-play yesterday and I thought I was home clear: I’d uploaded the scripts, configured the database and at a quick glance things appeared to be working. [...]