Skip to content

{ Category Archives } code

Nano-Apps

Last month Giles Bowkett in the trawls of his hypergraphia wrote a post on Nano-Apps, quirky one page apps which serve up a piece of trivia or answer a question like is George W. Bush still president?
Previously I had put together hometi.me, a little AJAX-y app to let me know how much longer I had [...]

Simple example of accessing the Twitter REST API with Ruby

To date, a lot of interesting applications have been built on top of the Twitter service with new apps being released almost daily, each one more ingenious than the last.
In my spare time I’ve been tinkering with Ruby, my motivation being to learn something new and to see if Ruby lives up the hype that [...]

Home time is a little closer

Before calling it a day last night I pushed out another release of my “toy” web-application, hometi.me. Thank you Capistrano!
I mentioned last month that I was intending on following the “release early, release often” paradigm with this project, but as always, life had other plans and I found myself doing very little hacking outside of [...]

Is it home time yet?

I’ve just released the first iteration of hometi.me which provides an answer to the important question of is it home time yet?
My general dislike of working for a living inspired me to craft a python script during my tenure at $BIG_CORP and last week the creativity bug bit me and I decided to quickly develop [...]

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 [...]