User login

Convert Westpac "eStatements" PDF to CSV

Westpac wont let you export more than a few months of QIF/OtherFormat dates, so if you've been lazy in keeping up your banking, you'll need to parse their 'eStatement' PDF's, which is really annoying that they give you a PDF but wont keep a few bytes for you to download directly.. anyway, here goes. Fortunately their PDF's can be parsed with `pdftotext` in layout format, which preserves the widths, so with some grep and cutting of the bytes, you can convert it (hopefully bug free) to CSV format for importing into your favourite accounting package.

One T420S tweak out of the box on XUbuntu

Was having some weird issue where my USB mouse and USB keyboard were timing out / acting weird / stopping intermittently

`dmesg` showed

[ 1011.238846] ehci_hcd 0000:00:1a.0: power state changed by ACPI to D3
[ 1013.296188] ehci_hcd 0000:00:1a.0: power state changed by ACPI to D0
[ 1013.309146] ehci_hcd 0000:00:1a.0: power state changed by ACPI to D0
[ 1013.309280] ehci_hcd 0000:00:1a.0: power state changed by ACPI to D0
[ 1013.309293] ehci_hcd 0000:00:1a.0: power state changed by ACPI to D0

which bought me to..


Using Drupal's hook update with batch reporting

Something handy for running batch run's, good to have it down as a solid example.

function our_migration_update_3(&$sandbox) {
  $sandbox['#finished'] = 0;
  // Multi-part update.
  if (!isset($sandbox['user_from'])) {
    $sandbox['user_from'] = 0;
    $sandbox['user_count'] = 10;
  else {
    $sandbox['#finished'] = $sandbox['user_from']/$sandbox['user_count'];
    $sandbox['user_from'] += 1;
    if ($sandbox['user_from'] == $sandbox['user_count']) {
      $sandbox['#finished'] = 1;
      return t('our migration state 2 complete');

New Laptop! Lenovo T420S with XUbuntu 12

Finally got a new laptop, upgraded from my much loved, and well travelled (not to mention very reliable) - but oldschool HP NC6400 to a Lenovo T420S.
My weapon of choice for development and general clean/fast usage is XUbuntu, I can confirm that the latest Xubuntu 12.04 Precise Pangolin works flawlessly on this Lenovo.

Good to see that this T420S also has Ubuntu Certification.


Using Drupal Migrate to import from a XML feed and save to local files (file field)

Migrating data to Drupal doesn't have to be such a pain thanks to the Migrate module which gives you nice high-water mark, 'update' tagging and batched import, however this one problem, I spent a lot of time trying to figure this out, as the examples in the Drupal migrate module don't quite match what i'm doing here.


Jenkins continuous integration server on debian ubuntu hardy

Recently had to work with a 8.04 debian hardy machine and install Jenkins An extendable open source continuous integration server however it depends on some libs not quite available in JRE6, so Jenkins wont start correctly and you get not found ..

Drupal Ubercart Bitcoin Gateway

I put my hand up to maintain the Drupal ubercart bitcoin payment gateway, really excited to breath some life into this new payment tech.

I've got an initial port of the github code for drupal 6 and drupal 7 running, so let's see where this ends up!

If you like, send me some bitcoinage here 1Cu91rx1tXyihWQVqvUiNsDd535yAcMqzS

Ubuntu 11.10 sucks

I recently tried to upgrade to Ubuntu 11.10, but had some amazingly crap experiences, unfortunately it feels like Ubuntu is now going to way of Gnome and KDE, leaving us Linux desktop users with no real options for a supported desktop, this is indeed a sad time!



Subscribe to Front page feed