Can’t Hack It

An attempt at public introspection

Coding

Detecting broken images with JavaScript

· 2min

Note

A cache of the original can be found here.

I hit an annoying problem with a project at work. It’s not my fault, there’s nothing wrong with the code, but sometimes things will happen: people will delete images out of the backend, not upload the image they …

Coding

I want StringTemplate for PHP

· 1min

Ever since reading Terence Parr’s Enforcing Strict Model-View Separation in Template Engines (PDF), I’ve wanted something like StringTemplate for PHP.

Maybe not something exactly the same, but a templating system that would perform similarly as far as the person developing the templates would be concerned, but the coder …

Coding

I’ve finally found an excuse to use reflection in Java

· 1min

I’ve a project here at work. I need to write a ColdFusion custom tag in Java to talk to a remote server. This tag needs to handle a bunch of different requests and responses, but putting all that code in the one class would be a bit messy, and …

Coding

Listening for file updates on Windows

· 1min

I’d really like to know if there’s a way to set up a callback of some kind that would allow a program to be informed of when a certain file is updated. Not just any file, but a particular file.

I’ve taken a look through MSDN, disorganised …

Coding

Google Code Jam 2004, The Middle

· 2min

Coding’s finished, and I’m not happy with myself.

I was in group 8 and only got one of the problems done. I spent about 30 minutes staring at the problem, trying to understand what they were asking, but for some reason my brain failed to comprehend anything.

Queue …

Coding

Martin Fowler on Closures

· 1min

Martin Fowler’s talking about closures on his blog. I was rather disappointed that he didn’t bring up JavaScript when he was talking about it.

Why do I mention it, besides the fact that I like JS as a language? It’s because it’s given far less credit …

←   newer