Matt Dwen

Sorter of Shit

PHP CSV import Mk.II

I’ve now written a bespoke CSV data importer, specifically for the data in this particular set. The first thing which surprised me was it’s only 201 lines of code shorter (1185 vs 1386). Having said that, the new importer doesn’t include the 447 lines of rules which describe the dataset to the generic importer. I wasn’t expecting much from the new system. The algorithm is largely the same, though I was able to pre-define and load a number of...

PHP memory management

I’ve recently developed an API for importing data into the framework I’ve developed for Xplore. The core API has multiple implementations which deal with different data sources, e.g. CSV or XML. This allows us write a single set of rules for the data, which the API then uses to translate the raw data into models using the framework ORM, giving me all the existing security, validation and logging. Seems easy enough, right? I started to...

DIVA Gource

So I Gourced DIVA as well. This is the main DIVA source code, since I switched to a Mercirual repository only a few months ago. I find it highly amusing that DIVA has a “big dangly thing”. This is about a years previous development, from the SVN repository. It’s not the complete history. And this is the OS X Client, again since becoming a Mercurial repository.

Gource code visualisation

So I recently discovered Gource and I just had to have a play. It basically takes your source code repository, and turns it into a visual representation of who did what when. This is the main development branch of the framework and CMS I’m writing for Xplore. It’s not from scratch, as I cheated the initial import into Mercurial from SVN about a year ago, by doing a push of the current flat code state,...

ARHT update

Not dead, despite what many may wish. Been sick and rather busy. Work on ARHT has been fragmented, and squeezed into gaps when I’m not working on DIVA. It is largely functional in terms of what it needs to do; only major missing component is the library, which I’m hoping to work on tonight. I did create an installer for it using InstallShield light, but have had all sorts of issues with the results. I...