Tomorrow I will be getting up at silly o’clock to drive to Cambridge, park, walk 2 miles to the station, train to Kings Cross, tube to Victoria and a walk to Microsofts UK HQ. It’ll take about 3.5 hours, but, based on the reports from last year, worth every minute.
UK GovCamp 2012 official logo
This will be my first year attending UKGovCamp (read more about UKGovCamp here), and also my first “unconference“. From the pre-event chatter on Twitter (#ukgc12), Facebook/ukgovcamp and the official site there are going to be some excellent sessions covering a huge range of topics related to digital / IT in the Public Sector.

If this sounds interesting you can “listen in” on the day and after on the UKGovCamp12 Buzz page, including a livestream and liveblog of the first session. I’ll also be posting a followup after the event, and possible during as well.

On a related note I just picked up a pair of Goldring NS1000 active noise cancelling headphones and I’m looking forward to giving them their first real test on the journey to and from London.

There seems to be a problem/oversight in WordPress at the moment (afaik).

You can generate Custom Post Types (CTP) easily enough, and have them visible on any page using templates/the loop, but when you click through to a single CTP WordPress assigns the current_page_parent to the default posts page. For many that will mean highlighting the News or Blog pages of their site.
After a lot of searching, and finding lots of people asking the same question but no solutions (except hacks), I found a reply by jonny_williams to a post about this on the wordpress.org/support forum. His solution at least runs from functions.php (and so before the content is displayed) rather than being accomplished through javascript like many others.

After a couple of modifications I settled on this:

function fix_portfolio_parent($menu){
	global $post;
	if ( 'projects' == get_post_type() )
	{
		$menu = str_replace( 'current_page_parent', '', $menu ); // remove all current_page_parent classes
		$menu = str_replace( 'menu-item-XXX', 'current_page_parent menu-item-XXX', $menu ); // add the current_page_parent class to the page you want
	}
	return $menu;
}
add_filter( 'nav_menu_css_class', 'fix_portfolio_parent', 0 );

Just replace the XXX with the number of the parent page you want to highlight, and 'projects' with the name of your CTP. As always, make sure you function name is unique and relevant. If you have multiple CTPs, either duplicate this for each, or extend the if (I haven’t looked at the performance differences of these options).

I’m a big fan of WordPress – it’s both easy to use as an author and easy to develop for. There are also a huge amount of free (and paid) plugins to extend the core functionality.
Unfortunately there is a downside – most plugins do not conditionally load their files only on pages that call them. It is all to easy to end up with every page loading a string of Javascript and CSS files slowing the site to a crawl, when they are only actually required on specific pages.

I’m going to show 2 quick examples of how to use the functions.php file in your theme to only load the scripts for a plugin on a specific page using deregister and remove_filter, which are built into WordPress.
Continue reading

Last weekend I had the pleasure of staying at York House in Tetbury. While they won’t be opening until spring 2012 – just in time for the Gold Cup – this boutique bed & breakfast was ready for it’s first photoshoot. After spending an evening with the proprietor Brock Bergius discussing plans for the website and how to reflect the ethos, the morning saw us dressing the rooms and getting down to the photos. With work still going on to get the guest rooms ready we focussed on the communal areas and the little details that really show the character of the house.
It’ll be exciting to see York House develop over the next couple of months and we should be launching the website shortly to let potential customers keep up to date on the progress. If you’re planning a visit to the Cotswolds for a holiday or are looking for somewhere to stay for the Cheltenham festival & Gold Cup, York House in Tetbury should be on your list!

For now – here’s a sneak peak at what York House will offer:

Google Analytics (and other similar services) aren’t 100% reliable, but they give a valuable insight into what the visitors to your site are up to. One thing they won’t do is track clicks on download links, unless you specify an onClick action for each link.

But here jQuery comes to the rescue – just a few lines of code will have all links to whatever filetypes you need tracked in Google Analytics as Events. Another common use of the same technique (with a few minor changes to the code) is to track clicks on outgoing links.
Continue reading

I’m quite flexible with copyright, with regards to my non-commercial work at least. I also fully support releasing back to the community – there is a huge wealth of tutorials and code examples provided for free that help us all, and I feel it is our duty to give back in our own ways when we can. That’s why I maintain a GitHub page, post interesting links on here and Twitter, and even write short articles when I have time.

However, I also believe in respecting copyright. Even in the “internet age”, if you see an image (or anything else), and simply replicate it on your site (or anywhere), at the very minimum you should credit the original author. Ideally you should contact them to ask first but that seems to be asking too much of many people…
Continue reading

In case you didn’t know… there’s a new kid in town called HTML 5. This update to the language adds lots of new features, but rather surprisingly the W3C also released a logo for it:

Official badge logo for the HTML5 standard from W3C
Hopefully this logo, and the buzz and press that of the new features in HTML 5, are getting will speed it’s support amongst all browsers.

One sparse lunchtime I decided to knock one up myself that brought together the HTML 5 logo with the Rawkes rocket. The colours were a good match, and the concepts of the speed, frontiers & possibilities held in the rocket complimented those conveyed by the HTML 5 logo. Continue reading

The market is finally taking off.

While GUIs for Git have been around for a long time, they have never really offered all the features and ease of use of a “proper” GUI – they always felt like a stop-gap – and it was easier to stick to the command line. But times are changing. Git is increasingly popular, thanks in no small part to GitHub, and over the past few months I have been testing some of the new Mac GUIs for Git. They are much more mature and finally offer a viable alternative to the command line. While the jury is still out on which will become my workhorse, I thought I’d just share the frontrunners with you, especially as they can be harder to track down than more established software.

http://gitboxapp.com
http://gitmacapp.com
http://www.git-tower.com
http://www.syntevo.com/smartgit