The Graceful Exits blog

  • Save BBC 6Music and Asian Network

    jp.stacey 2 March 2010

    It's our BBC. It's your BBC. Tell the Trust what you want.

    Everyone in a particular demographic will now know that the BBC director general, Mark Thompson, has announced a plan to close two of the most Reithian of radio stations, 6Music and the Asian Network. If you're up in arms about these closures, you can still do something about it.

  • Automated backups to S3

    jp.stacey 8 February 2010

    Wrapping python-boto in scriptable magic to back up your websites to S3

    Simon Willison put together an excellent short-and-simple backup script over a year ago now, and I've used it intermittently to make backups. It takes files, whole directories, or the output of shell commands, and wraps it all up into a datestamped gzip file, before sending the whole thing up to an Amazon S3 account. It's a nice little piece of kit, in other words.

  • Change of plan at OGN16

    jp.stacey 5 January 2010

    Social media meets being social.

    There's been a change in the speakers for Oxford Geek Night 16 on Wednesday 17 February. We're really happy that Chris Thorpe will still be giving his keynote talk, about how social media is all about the social and not about the media. Alongside Chris' talk will be a keynote from Oxford's very own Garrett Coakley, who will be talking about how to run a successful online community.

  • Oxford Geek Night 16 date confirmed

    jp.stacey 19 December 2009

    Wednesday 17 February: stick it in your diaries.

    After a slightly longer break between Oxford Geek Nights to make room for Christmas and the rest, I'm pleased to announce the sixteenth Oxford Geek Night will be on Wednesday 17 February, 2010. That's next year! Well, in just under two months' time.

  • Render any block in Drupal 5

    jp.stacey 8 December 2009

    Blocks are a bit neglected in Drupal: here's one way to use them more flexibly

    Blocks aren't what you might call "first-class citizens" in Drupal 5 or 6 (or 7, as far as I'm aware). Block functionality is provided by a range of functions and database tables, but ultimately there's no thingness, no Ding an sich tying them together as an object the way that a node of content or a user might be.

  • Basic theme preprocess hooks in Drupal 5

    jp.stacey 24 November 2009

    You can move much of your theme logic out of template.php in Drupal 5, by following Drupal 6 code patterns

    One of the useful aspects of Drupal 6's themeing is theme preprocessing. This occurs in between a module (or Drupal core) calling theme() and rendering the actual template file (or function), and arbitrarily alter the variables passed between the module layer and the theme layer. In this way preprocess hooks act much like Django's context preprocessors, providing ways for modules to "communicate" at the point of themeing.

  • Building pages in Drupal with Panels

    jp.stacey 16 November 2009

    Panels and panes are like regions and blocks, done properly if a bit madly

    When finished this site will implement several different layouts: blogposts, "static" pages, short "nuggets", blog archives, taxonomy listing and probably a bespoke front page. Although these will all have the same underlying seven-column layout, that can still present some problems that are usually solved in Drupal with many different theme files and a lot of "regions" in which you can put "blocks" of content.

  • Oxford Geek Night 15: open government and web marketing

    jp.stacey 15 November 2009

    You might think it's coincidence, but we plan all of these clever yet subtle connections meticulously. Honest.

    OGN15 is in a bit over a week's time, on Wednesday 25 November. It promises to be a great evening as usual, with varied keynote and microslot talks and the usual Oxford(shire) geek chat and networking.

  • Implementing a columnar grid system on Graceful Exits

    jp.stacey 7 November 2009

    Hierarchical grid comes next. And some proper design chops, maybe.

    In the spirit of getting it out there, I've now begun implementing a columnar grid system on my site. As discussed in Mark Boulton's excellent talk at DrupalCon Paris 2009, and reported briefly in my live notes from the conference. such grid systems are a basic underpinning of consistency and visual clarity on a site. You start at the grid, then decide how your actual page elements are going to fit into it.

  • Python 3 for Absolute Beginners is here

    jp.stacey 4 November 2009

    The book you've all been waiting for, when you've not been waiting for Mark Pilgrim's.

    I'm ridiculously excited that the book I co-authored with Tim Hall, Python 3 For Absolute Beginners, has been published. Apress very kindly sent me some complimentary copies last week and I immediately took photos of it and posted them on Flickr.

    I blogged about how glad I was to be asked to work alongside Tim on the project back in January, and said among other things: