Posts
2012
Drupalcamp Manchester - A retrospective
·577 words·3 mins
A lot has happened since the last Drupalcamp in Manchester, and when I say a lot I mean a hell of a lot. It’s been quite a few years since (over 3 years in fact!
Find and Replace with QueryPath in PHP
·22 words·1 min
To find and replace using querypath without destroying existing context you can use the following:
$temp = qp($output, 'table')->addclass('table'); $output = $temp->top('body')->innerHTML();
Coder Manifest
·38 words·1 min
Herein lies the coder manifest.
Thou shalt not commit debug to production Thou shalt create test for everything Thou shalt not commit code to production and not deploy Database shall not be kept it thy repository control system
Managing CLI config accross multiple servers/desktops
·154 words·1 min
After using CLI for more than three years I’ve amassed multiple .*rc files for configuration.
When I bring a new server/desktop online I needed a way to quickly import all my settings and get up and running.
Blocking Twitter Trends and User Recommendations using Adblock Plus
·49 words·1 min
To block twitters really annoying trends and user recommendations use the following custom filter:
Updated via @emaleroland
twitter.com##div[class*="flex-module trends-container context-trends-container"] Old:
twitter.com##div[data-component-term="user_recommendations"] twitter.com##div[data-component-term="trends"] I’ve created a filter list you can import into adblock plus.
Using Jenkins CI and Drupal
·714 words·4 mins
While building my Drupal 7 profile I started playing around with Jenkins CI. My reasons for doing so were two fold:
Code Quality I believe in code quality, there are multiple tools out there that will analyse code and report back using various different metrics.
My first Drupal 7 Distribution and what I learnt
·1072 words·6 mins
I’ve been using Tumblr for a few months now as a simple way of sharing the images I find interesting and beautiful (can be found at ayil.co.uk). I found it was lacking in a few features that would be nice, being a Drupal developer I thought hell why not try and recreate it in Drupal 7.
2011
Git log between tags
·26 words·1 min
This has been bugging me for a while, the cheap and easy way to make changelogs:
git log 6.x-1.0-beta8...6.x-1.0-beta9 --pretty=format:'%h was %an, message: %s' > ~/changelog.txt
Lazy Mans guide to Aeropress - Part Zwei
·338 words·2 mins
After having quite a few months off from coffee I’m finally back into it and brewing again.
This is an updated method I use for brewing Aeropress without any hassle and only the minimum amount of effort.
Using ack with Drupal projects
·46 words·1 min
I decided to move to Ack for searching as it has nice switches like –php and –nosql.
By default ack doesn’t recognise .module, .install or .inc files so you have to add them.