Training, weeks 1-4

Right so apparently I’ve convinced myself that I’ve started training for the list of things I’m doing this year (details: http://www.justgiving.com/ashley-mann/). Annoyingly due to the slightly stupid way that things have worked out I effectively have to train for a 1000-mile bike ride and a marathon at the same time.

I’ve trained for a marathon before (read about it here and here), it’s no fun, it makes you hungry, tired and sore. Let’s see if cycling 100 miles a week helps that – I’ve been informed by a few people that it might actually be a good idea, cross-training n all that.

I’m yet to be convinced…

My training at the moment consists of trying to do at least 1-hour a day on the turbo trainer (bike) combined with trying to get out for a longer weekend ride on the road and trying to get my weekly running mileage up past the 30 mile mark. Which has met with mixed success thus far.

Ah well. 2 months to go…(eek)

end-to-end nonsense

Have started planning for the end-to-end ride I’ll be undertaking in a few months. It’s going to look something like this

1. Friday 22nd April: John o”Groats to Lairg (95 miles)
2. Saturday 23rd April: Lairg to Grantown-on-Spey (90 miles) total 185 miles
3. Sunday 24th April: Grantown-on-Spey to Kinross (110 miles) total 295 miles
4. Monday 25th April: Kinross to Moffat (120 miles) total 415 miles – although the routeplanner took a really odd route round Edinburgh that’s added an unnecessary extra 30 miles by the look of it
5. Tuesday 26th April: Moffat to Kendal (100 miles) total 515 miles
6. Wednesday 27th April: Kendal to Chester (110 miles) total 625 miles
7. Thursday 28th April: Chester to Gloucester (120 miles) total 745 miles
8. Friday 29th April: Gloucester to Tiverton (100 miles) total 845 miles
9. Saturday 30th April: Tiverton to St Austell (80 miles) total 925 miles
10. Sunday 31st April: St Austell to Land’s End (70 miles) total 995 miles

Queueing, and why I can’t do it

Now apparently we English very good at queueing, Bill Bryson even mentioned it in his book about England. I think its probably even edging its way towards becoming a recognised national trait, you know, in travel guides and stuff.

Unfortunately something has happened in my past, I couldn’t even pretend to know what it might be, that has resulted in me being unable to queue. Seriously. If I see a queue I will do anything to avoid joining it, absolutely anything. I would willingly walk in circles, juggling flaming chainsaws to avoid joining a queue (and I have very bad co-ordination so this would probably result in me losing a limb and then setting myself on fire and maybe dying). That’s how much I hate queueing.

I am generally a very patient person, however for some reason when I am forced to wait, in a line of other people, for a service or product something happens in my brain which results in a strange social freakout.

Some examples;

  • I desperately needed to go to the bank to do some important bank things, there was a queue so I immediately turned around, left the building and went for a completely pointless walk around the block (it was raining, so this was stupid), on returning to the bank I saw the queue hadn’t cleared so I went for another walk around the block. I repeated this 3 times (3 times! this is obviously stupid) before the bank reached a low level of busy-ness where I could walk straight into the bank and be served by the cashier without having to engage in queueing.
  • I needed to get cash out from a cash machine in town, it was saturday so it was busy. All of the cash machines I went to had queues so I ended up walking about a mile out of town to find a not-busy cash machine
  • I have gone without lunch at work on numerous occasions, simply because the canteen was busy

Almost without fail whatever solution I come up with to avoid queueing ends up costing me more time and energy than would’ve been spent simply joining the queue. And the sad thing is, I know this, I am completely aware that it is strange and pointless and a waste of time to go to such weird lengths to avoid standing in a line.

My lovely girlfriend finds this very strange, and she is right to, I find it a bit strange sometimes too. It’s almost like a reflex reaction at times, I’m walking away from a potential queue situation almost before I’ve even noticed what’s going on.

When I am forced to join a queue (e.g. whenever I go to a post office, post offices are never quiet, they ALWAYS have queues) I get incredibly annoyed almost instantly and start thinking things such as: how dare all these people get in the way of my incredibly important business (i realise this is stupid), what about all the important things I could be doing/learning/solving but instead I’m stuck here, that teleportation device won’t invent itself you know! (this is also stupid). And then I get annoyed at myself and how ridiculous a reaction that is to something as simple as basically having to wait.

So yeah, I’m rubbish at queueing.

I want to ride my bicycle. Simple?

Right so every day I ride my bike, normally to work, and then at weekends and things I also try and convince myself that I am a cyclist and go for longer rides. And then every now and again I convince my friend Mat to go on cycling trips with me, and we go to places like St Albans and Sunderland (I know, I know, it sounds glamourous).

I’ve had the same bike for about 2 years now, when I got it I hadn’t ridden a bike for about 5 years and no clue what I needed. I got this which has been fine and good and works just as you would expect a bike to. But now I have decided that I want something more shiny and exciting. The trouble is, having narrowed things down a little I am now at the stage I reach every time I want to buy something that costs more than about £30.

I have decided I will buy either this, this or this. They are all pretty much the same price and have pretty much the same ‘stuff’ on them at a similar level of ‘good-ness’.

Now whichever bike I choose I’m sure will be brilliant, and shiny, and exciting. But because of the level of effort I have put into researching these 3 bikes I will be left with a huge feeling of “hmmm, but what if one of the other bikes would’ve been better“. The sad thing is that these bikes are SO similar in price and setup that I’m having to try and convince myself that I have opinions about things like bike wheels and whether or not I care about carbon or alloy gear shifters (note: I don’t care about these things). Now in the course of my research I have found out there are lots of people who have very strong opinions about these things and I have been a bit rubbish and tried to trick myself into adopting some of their opinions. Tried and failed.

I get very annoyed at myself every time this happens, it usually follows this pattern

  • I decide I want a thing
  • I do lots of research into the thing and narrow it down to thing a and thing b (there will usually be very little difference between the two, non-essential things like colour)
  • I realise I can’t possibly just be a grown up and choose between the two very similar things and I then resort to THE INTERNET (because surely there is someone on the internet with a far more informed opinion about things than me)
  • I read lots and lots of reviews and forum discussions and articles about thing a and thing b (overall consensus “both quite good”)
  • I choose one of the things based on a completely arbitrary point such as ‘the manufacturers of chosen thing seem like they’d be nicer to small animals’
  • I am wracked with anguish about whether I’ve made the right choice…FOREVER

And this is why I suck at buying things.

Contracts, admin and all that jazz

I’ve recently been looking at all of the admin side of things, a boring but necessary task.

We have all had those jobs that have started to spiral out of control with new and completely ridiculous demands being placed on you left, right and centre or clients who have taken months and months to pay for work completed.

Good admin makes the fun parts of your job (designing and coding) far more straightforward and effective.

I’ve found a number of great articles that outline things far better than me:

I hope you found those of use, feel free to post your own suggestions.

Let’s cycle from Leeds to St Albans…

Eddie Izzard, Dylan Moran and Reginald D Hunter are playing an outdoors gig in St Albans, brilliant. What’s more my friend, Mat, and I got tickets, brillianter. Then we decided that we’d cycle there. Silly.

So this Thursday we’ll set off from Leeds to cycle the 210 (and a bit) miles from Leeds to St Albans. We even planned a route and everything (we’re not normally so organised). We reckon it’ll take us 2 and a half days.

Day 1, Leeds, West Yorkshire to Gunthorpe, Nottinghamshire – 90 miles
Day 2, Gunthorpe, Nottinghamshire to Harrold, Bedfordshire – 70(ish) miles
Day 3, Harrold, Bedfordshire to St Albans, Hertfordshire – 50(ish) miles

So anyway, if I’m super-organised then we may be using Mat’s phone to track the route and I’ll pop it up on here and you can all see how slow we went and how frequently we got lost.

Hurray! Cycling!

p.s. I went for my first long ride in a while on Saturday and got an incredible painful knee whilst riding, apparently this is either because a)my knees are all wrong or b)my saddle is slightly too low. I’ve raised my saddle and it has made things slightly better in the knee-department, the problem now is that my feet barely touch the ground and getting onto the bike is a bit of an acrobatic challenge. Ah well, I’m sure it’ll be fine.

Does your site take too long to load? Probably. So, how to speed it up?

“There is more to life than simply increasing its speed” (Gandhi)

Last week I was doing some speed tests on what I was expecting to be a relatively slow-load site that I’m working on, the results, whilst not completely shocking, were still surprising. The site was taking up to 8 seconds to load fully over a decent speed connection (and would’ve been much much longer over dial-up). This had been an issue that had been nagging away at me more generally for a while now so I thought it was probably time to look into how to address it.

“Delays under half a second impact business metrics”

I have been reading up on the tests that Google had conducted to see how long the average user would wait for a site to load before giving up and moving on (Bing also conducted similar tests). Their findings? Simple, if your site takes too long to load then you will lose traffic and damage the user experience. And by ‘too long’ we are talking in terms of milliseconds. When Bing and Google increased a server-side delay from 1000ms to 2000ms there was a 2.2% drop in user satisfaction (not too bad you’d say) but the ‘time to click’ increased from 1900ms to 3100ms. This second stat is probably the most pertinent as it would indicate that a 1000ms slow down in server-response times results in the user becoming disproportionately unengaged with the site.

http://radar.oreilly.com/2009/06/bing-and-google-agree-slow-pag.html

I think something else to bear in mind is that if the user does decide to stick with your site, and this level of site-reponse is repeated page after page (or even more slowly) then it would not be too much of a leap to assume that the user satisfaction would start to drop even faster as their frustratingly slow experience exacerbates things.

You’ve lost their attention, how do you get it back?

So, we’ve decided that a slow-loading site is a bad thing? Cool. There seems to be a consensus that the quickest way to get your site to load quicker is to get the file size of the site’s assets down, which may seem obvious but it would seem that not enough people do it, and even those that do (of which I thought I was one) probably aren’t getting things as compressed as they could be.

Efficient (and small) CSS

I’ve never been a huge fan of massively compressing my CSS files. I find the process of stripping out all the white space (line breaks etc) irritating as, in my opinion, it renders my CSS almost unreadable if I ever want to go back and edit it.

To assuage my guilt about never really super-compressing my CSS I read several articles about making my CSS more efficient. It made interesting reading and has changed my coding practices. Perhaps the two most useful things that I learnt about making CSS render efficiently were:

  • CSS reads right-to-left. e.g. with #nav li a – a is the “key selector” i.e. the element being selected, then li, then the id #nav
  • “There are four kinds of key selectors: ID, class, tag, and universal. It is that same order in how efficient they are.”
    • #main-navigation {   }      /* ID (Fastest) */
    • body.home #page-wrap {   }  /* ID */
    • .main-navigation {   }      /* Class */
    • ul li a.current {   }       /* Class *
    • ul {   }                    /* Tag */
    • ul li a {  }                /* Tag */
    • * {   }                     /* Universal (Slowest) */
    • #content [title=’home’]     /* Universal */

There is more on this subject in this excellent article http://css-tricks.com/efficiently-rendering-css/. However I would say that the two points I’ve highlighted above are the basis to making your CSS render as efficiently as possible.

An important point to remember, as the article states, is “So we know that ID’s are the most efficient selectors. If you wanted to make the most efficiently rendering page possible, you would literally give every single element on the page a unique ID, then apply styling with single ID selectors. That would be super fast, and also super ridiculous. It would probably be extremely non-semantic and extremely difficult to maintain. You don’t see this approach even on hardcore performance based sites. I think the lesson here is not to sacrifice semantics or maintainability for efficient CSS.As with every ‘best practise’ you also have to use a modicom of common sense, there is no point in taking a good way of working and applying it in a ridiculous way (sorry if this seems like stating the obvious but I think it is an important point to remember).

Compress that CSS

Now it is an unanswerable argument that compressed CSS is smaller. I outlined above why I’m not a huge fan of this method but it is unavoidable if you want to seriously address your site’s load time. There are, as always, a huge amount of ways you can go about compressing your CSS.

There are a number of online tools that’ll do it for you:

You can look into gzipping your CSS file:

There is an article here about using gzipping on the whole site to speed things up: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/

Last but not least there seem to be a few ways to compress your CSS file using PHP:

Images, beautiful but deadly

Images make your site look better right? They allow you to use cool fonts as headers (although there are better ways of doing this, here’s one http://www.font-face.com/), they often form the basis of swanky looking navigation and layout elements and more and more often large imagery is used to provide a visual impact that wouldn’t be achieveable with another type of element (http://webdesignledger.com/tips/web-design-trends-for-2010).

The trouble is, images take up space and they take up even more, unnecessary space if you’re using the wrong file format.

Image file formats. What? Where? When? Why?

The three most commonly used, and widely supported, image file formats on the web are .jpg, .png and .gif. You should be using all 3 of these file formats in your designs, they each have a reason for being there. If you use the right format for the correct purpose then you will have a more efficient site.

  • GIF – 8-bit, lossless but limited to 256 colours so are bad for photos. However they do allow single-bit transparency so you can make 1 of the 256 colours that it does render transparent. GIFs are great for block-colour elements such as logos and navigational elements.
  • JPG – 16-bit, capable of millions of colours and designed specifically for photos. However lacks some of the capabilities of GIFs such as transparency and animation. Can be compressed but the compression is lossy and once over about 50% results in noticeably reduced image quality. Should really only ever be used for photos.
  • PNG – comes in 8-, 24- and 32-bit formats designed with the web in mind. The 8-bit format is very similar to GIF in that it supports 256 colours and 1-bit transparency, in addition file sizes are likely to be slightly smaller than GIF equivalents as PNG saves it’s colour data more efficiently. The 32-bit version (named, unsurprisingly PNG-32) allows a similar range of colours to JPG but also offers alpha-channel transparency. Rather than only being able to specify one colour as transparent or not PNG-32 allows you to specify the transparency of every pixel on a sliding scale (from 0-255)…the only drawback being…IE6 doesn’t support alpha transparency (surprise, surprise). I wouldn’t recommend using PNG for photos as the file size is likely to be fairly huge in comparison with a JPG equaivalent (due to the PNG being 32-bit and being a lossless format).

So, to summarise, what should you be using and when?
JPG – to be used for photos, be aware that if you try to reduce the file size by upping the compression then anything beyond 50% compression results in noticeable reduced image quality.
GIF – can be used for simple elements, logos and navigation – although remember that PNG-8 could be an alternative.
PNG – comes in 8, 24 and 32 bit formats (and the file sizes increase with each). 8-bit could be used as an alternative to GIF. 32-bit offers alpha channel transparency which could be useful for design or navigational elements where more sophisticated transparency is required. However always bear in mind that the 32-bit version is the largest file format mentioned here and consider whether or not a GIF or 8-bit PNG could be used if less sophisticated (e.g. one-colour) transparency is required.

As I mentioned previously these guidelines should be considered as just that, guidelines. Don’t take them as hard and fast rules that should be applied as rote to every situation. However I do think that being aware of what each file format was designed for allows you to make more informed choices.

Image optimisation

My final word on images, if you are using an editing package such as Photoshop or Fireworks, make sure that you always export your images (whatever format they’re in) as optimised for the web. This process strips out all of the completely unnecessary meta-data that these programs include as standard and noticeably reduces your image file size.

HTTP requests, and how to reduce them

Every time you include an element that isn’t hard-coded into your page file (e.g. by linking to include an external file) you are introducing a new http request to your server. Whether this is linking to a css or js file or including an image.

If you are including 5 js files in your file then this is 5 http requests, add into this however many images your file includes, at least 1 css file and you’ve probably got at least 10 http requests per page. Unsurprisingly the more http requests you have, the slower your page will load. So, how do you reduce them? Simple, combine elements. Whether this is combining your multiple css or js files into one master file (and then ensuring that is written efficiently and compressed) or combining your images by using sprites (info on sprites here http://css-tricks.com/css-sprites/ and here http://www.fiftyfoureleven.com/weblog/web-development/css/css-sprites-images-optimization)

And finally

I hope the methods I’ve outlined above prove to be useful to you, if anyone else has any other thoughts on how to optimise your website for faster loading then please comment!

I think that all of the methods outlined here are relatively straight-forward and could be easily incorporated into your processes. Things like writing efficient CSS and javascript and then optimising those files, using the appropriate image formats and reducing http requests are all quite easy things to do and will have a noticeable impact on the file size and speed of your sites.

I am aware there are even more methods that you can utilise to optimise your site, and would be interested to hear if anyone thinks they should’ve been mentioned here. I aimed to provide a good and manageable starting point and I hope I’ve done that.

Thanks to the following articles (all of which are worth a read)

Istanbul to Leeds is a very long way

Right as you may or may not be aware this summer I drove one of the support vehicles on the Jane Tomlinson Appeal Istanbul to Leeds charity bike ride.

I had previously driven support on the Appeal’s last ride from John O’Groats to Land’s End. Basically driving support means driving a big van, full of bike stuff around after a group of cyclists trying to ensure they don’t get lost and have enough food and drink and the like. I soon realised that the last ride was relatively straight forward, for a start we stayed in hotels each night whereas this year we would be camping not to mention the language and cultural differences that we would encounter whilst travelling through 10 countries.

It all started for me when I picked up the van from Rothwell in Leeds. John (the chap who was sharing the van-driving with me) and I met up with Al, Dave and Nigel who would between them be driving out the other two vehicles, a car and an RV. We didn’t have anything you could really call a ‘route’ planned although we knew the rough general direction we would be heading in, so off we went.

Despite me forgetting my wallet (idiot) the journey down to Folkestone was pretty straight forward, as was the journey as whole until we got to Austria (bar John forgetting which side of the road to drive on in France and turning into oncoming traffic…a minor hiccup). We had decided we would only be making 2 short (4 hour) stops for sleep on the way out as otherwise we’d be in danger of not getting there in time. The first stop was slightly enforced, a massive lightening storm broke over us as we entered Austria, it was nighttime and I was absolutely knackered so it seemed like a good time to stop. I slept in the van, John, Al and Dave shared the RV and Nige had the car. 4 hours later we were back on our way. The heat became noticeable as we entered Hungary and I seem to remember a sign in Budapest telling us it was 38 degrees (at about 10am) and I soon descended into a disgusting sweaty mess (the van didn’t have air conditioning).

The real cultural differences didn’t become obvious until we entered Romania, but when they did come they were pretty clear. The roads immediately deteriorated and the traffic became a mix of knackered Ladas and dusty HGVs. At one point we passed what looked like a nuclear power station being dismantled (or just falling apart), next to it was the saddest street market I have ever seen simply selling rubbish wooden carvings and giant garden gnomes – very odd. Now I’m sure Romania has some nice parts, however we didn’t see any of them. We saw the bad roads, poverty, buildings falling down, many stray dogs, prostitutes everywhere (even outside McDonalds) and numerous other things that I have since tried to forget. After Romania, Bulgaria was a blesséd relief with friendly people, less scary dogs, no obvious ladies of the night and what, at first, seemed like good roads.

However. Al and Dave had, throughout the trip to that point, unswervingly followed their sat nav – a tactic not to be mocked as it hadn’t lead us wrong until then. They suddenly decided to turn off the nice, smooth motorway that we were on and that seemed to go all the way to where we needed to be. The road we turned onto went through a forest, we were the only vehicles, or people, for miles around and this road was one of the most potholed pieces of tarmac i’ve seen in my entire life. It was more pothole than road for long stretches. Our average speed dropped to about 6mph as we crawled along being shaken from side to side by these gargantuan craters. Then we had a bit of an incident, the RV stopped. It’s hazard lights came on and Dave stepped out to sum up the situation, “it’s buggered”. Cue a couple of hours spent trying to find shade in the scorching Bulgarian sun whilst on the phone to the AA, the RAC and the company we’d hired the RV from. It eventually turned out that due to the amount of potholes the RV thought it had been in an accident and had turned itself off as a ‘safety feature’. Luckily there was a simple reset button and we were on our way again.

The rest of Bulgaria passed fairly uneventfully until we reach the Bulgaria-Turkey border. This border was pretty ramshackle and isolated and I think the guards must’ve been bored, or at least that’s the conclusion i’ve come to explain why we spent the next 5 hours there. A long story for another day but a word of warning, if your hire company says you don’t need printouts of your vehicle documents because ‘everything is done electronically these days’ then don’t assume that’ll actually mean anything to bored and slightly irritable border guards in the arse end of nowhere.

The final story of note on the journey out there (and there are a million other stories i hope to get around to retelling at some point) involves the drivers of Turkey. Now I loved Turkey, the people were amazing. But bloody hell, they’re absolutely mental drivers. I’ve no idea how we managed to make it into Istanbul and to our hotel in one piece, i involved avoiding some of the most ridiculous driving i’ve ever seen, and yes, i’ve been to India! The drivers, combined with it being at night and only about 6 hours sleep in the previous 72 meant that the last part of the journey passed in a weird dreamlike state. Probably not very safe.

But we got there, 2500 miles, 3 days, 9 countries, 1 van. Istanbul to Leeds. I’ll write up a bit of a summary of what happened on the bike ride when I get some time to gather my thoughts, it was quite an experience!

Back, if not in black then at least with tanlines

I have returned from my little driving trip across Europe following some cyclists (www.istanbultoleeds.co.uk).

And I’m straight back into things, working towards getting the final signoff on Will Soden and Pickles and Potter’s sites.

I’m also in the final phase of populating the new site for Run For All. The new site will see a complete redesign and markedly increased functionality, I’m very excited.

So, back to work, a more useful blog will follow in the next week or so.

I may be some time…

Next Wednesday I set off in a van on a 5,000 mile round trip to Istanbul to support the Istanbul to Leeds cycle challenge which aims to raise funds for the Jane Tomlinson Appeal. As a result I will be more-or-less out of action from 21st July through until 31st August – I will have some access to emails but will only be able to check and respond on an irregular basis.

Hopefully before then I will finish off sites for Will Soden (plumber), Pickles and Potter (Deli/Cafe) and the Northern Dales Farmers Markets (farmers markets) as well as getting on as much as possible with the new site for Run For All (mass-participation runs). Diverse to say the least!

Oh and as a slight aside I also found something else that results in WordPress’ wonderful white screen of death – messing around too much with the chmod settings of the wp-content folder.

Sharing is caring

Long time, no blog

I’m aware I’ve been a bit of a crap blogger (a crapper?) of late, things have been absolutely mental with Leeds Met graduations, final preparations for the Istanbul to Leeds madness and trying to finish off any number of things before we leave (next Wednesday!).

I plan to rectify this once I’m dans le velo…thing with regular updates on what’s been going on, starting with how I cope with the whole 2,500 mile drive in 2 and a half days which will commence next Wednesday evening…

CSS – speeding things up

A bit of house-keeping (for wont of a better word) first, I’ll be moving this blog in the next couple of weeks to integrate with my website www.bigthingsandlittlethings.co.uk. When I first set this blog up I wasn’t entirely sure what form it was going to take but I’ve managed to keep it quite web-relevant (thus far) so it seems silly to keep two separate identities running when really they are parts of the same thing….

Now, boring stuff over, on with the blog.

This isn’t a hugely technical blog this time but covers a few CSS-related things that I have found make a big difference to workflow and just generally making things a bit easier to organise and manage.

I came across the notion of CSS ‘global resets’ a few years ago, to me they make a great deal of sense, especially with regards to white space (http://leftjustified.net/journal/2004/10/19/global-ws-reset/) – I find it far easier to start from nothing and completely build up my styling in the knowledge that I’ve specified every element rather than let some odd default browser setting trip things up. The notion here is that all browsers have default margin/padding/font-face/etc settings for elements that will be applied if you don’t specify an alternative, the annoying thing being that all of these browser defaults are slightly different. With a global reset you, as the name suggests, reset all instances of the specified attribute (whether its padding, margin, font-face, whatever) to zero, or Arial, or black depending on the attribute in question. This then gives you a specific base point to work from – which I find very useful.

Some good examples of CSS resets can be found here http://perishablepress.com/press/2007/10/23/a-killer-collection-of-global-css-reset-styles/ and a good one here http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ http://www.christianmontoya.com/2007/02/01/css-techniques-i-use-all-the-time/ http://warpspire.com/features/css-frameworks/

A further use of resets is detailed here, http://www.smashingmagazine.com/2007/09/21/css-frameworks-css-reset-design-from-scratch/ Smashing Magazine takes CSS resets as an element of their suite of recommendations for developing a CSS framework – on reading this article I realised that I already used my own framework to some extent (I just didn’t refer to it as such) as there were certain stylesheet practices and scripts that I use as a matter of course – the acknowledged disadvantages of frameworks – such as the time taken to familiarise yourself with them and the possibility of inheriting bad code if you use someone else’s – didn’t really come into play as all the code I use is hand-written by me, I’m not saying I’m perfect though!

I’d be interested to hear about people’s experiences using some of the external CSS frameworks out there – there is a handy list of some of them here http://www.webdesignbooth.com/10-promising-css-framework-that-worth-a-look/ – have they streamlined your workflow or do they cause more problems than they solve?

There are also a couple of great articles at Smashing Magazine (who I rate highly – as you can probably tell) regarding good CSS practice and tips for better coding here http://www.smashingmagazine.com/2009/07/20/50-new-css-techniques-for-your-next-web-design/ and here http://www.smashingmagazine.com/2007/05/10/70-expert-ideas-for-better-css-coding/

Istanbul to Leeds – 30 days to go (i think)

If my slightly bad maths is anything to go by (i didn’t have enough fingers and toes to count accurately), then it is just over 4 weeks until I leave as part of the convoy of support vehicles to drive out to Istanbul ready for the start of the Jane Tomlinson Appeal’s latest madcap challenge, the Istanbul to Leeds bike ride (www.istanbultoleeds.co.uk).

I’m having my final innoculation this evening (this one for tick-born encephilitis – which sounds pretty horrible) and then I’m pretty much good to go. My job will start on the evening of 21st July when I’ll meet up with the other drivers (there are 6 of us driving the vehicles out there) and the vehicles – an RV, a car and a transit van – to drive down to Folkestone and then across the whole of mainland Europe to Istanbul. It’s just shy of 2,500 miles and we hope to make it in about 3 days. Each vehicle will have 2 drivers and we’ll take turns driving, then sleeping. I think we’re hoping to be in Istanbul on Saturday 24th with the ride starting on Monday 26th July – the riders will have flown out on the Friday evening.

I’m not sure how prepared the riders are, I know the Miller family (Mike Tomlinson’s sister’s family) have been training pretty well since early this year and I have, on more than one occasion seen John (Mike’s brother-in-law) riding a tandem on his own – which must take a certain level of dedication! Mike has been cycling to work and back (a journey of about 10 miles each way) so will probably be in much better shape than he was on the last challenge (2008’s end-to-end ride), the Hinde family all seem to be fairly fit and I’m sure Stuart has been getting them out and about and Becca Tomlinson is mega fit anyways and has been subjecting herself to spinning classes at the gym. So I’m sure everyone will be more-or-less ready…a bit.

4 weeks to go…it’s going to be an adventure.

I’ll be blogging about it all quite regularly here and also on the ride’s site. You can sponsor the riders here http://www.justgiving.com/Istanbul-to-Leeds-2010. It’s an incredible challenge they’re all taking on and your support would be hugely appreciated. If you can’t afford to donate then the riders will be (hopefully!) arriving back in Leeds on Bank Holiday Monday 30th of August – it’d be great if there were some people out to welcome them home!

WordPress – styling by category

I’ve spent the best part of this morning working out how to add a post’s category to its h2 tag’s class – which then allows me to do category-specific styling. Essentially I wanted each headline to be a different colour based on its category – simple result, slightly convoluted solution.

Anyways, it took a while so I thought I’d share it here to save others the hassle!

You first need to add the following to your functions.php file

<?php
function the_category_unlinked($separator = ‘ ‘) {
$categories = (array) get_the_category();

$thelist = ”;
foreach($categories as $category) {    // concate
$thelist .= $separator . $category->category_nicename;
}

echo $thelist;
}
?>

Basically this takes the results of the usual the_category() query – i.e. an unordered list – and strips out all the list formatting and presents the results as a nice list of the categories, with each category separated by a space.

You can then add this to your h2 (or whatever tag you want to style) class=”ADD HERE” in your index.php file (or wherever you need)

<?php the_category_unlinked(‘ ‘); ?>

This pulls the category info as formatted by the function you just wrote in the functions.php file – i.e. without any list formatting.

You then just need to add the relevant class styling info (e.g. .categoryname{some styling}) to your styles.css file and you’re good to go.

Hopefully this was useful.

So, you think you want a website?

A while ago, on my personal blog, I mused about things you should consider when you have that epiphany…”we need a website”, worth a read I’d say (but then I wrote it, so I would say that wouldn’t I…) http://ashmannblogs.wordpress.com/2010/04/19/so-you-think-you-want-a-website-4-things-to-consider/

Rock ness

So last weekend Becca and I toddled off to Rockness, a festival held, perhaps unsurprisingly given the name, on the banks of Loch Ness.

First things first, we were driving, or ,more accurately, I was driving as Becca is still learning. Now I realise how far Inverness is from Leeds having driven up and around there when I was driving support on the End-to-End bike ride in 2008 (http://ashmannblogs.wordpress.com/2009/01/19/bike-rides-and-vans/) but still I think my brain had blanked just how far it really is – 366 miles, 7 hours driving, mega. Although the saving grace is that it is a bloody lovely journey scenery-wise going through the Yorkshire Dales, the top of the Lake District and the Caingorms – ace! Anyways, we got there and set up the tent and drank some wine from our elegant and sophisticated boxes of wine and then wandered off to see pendulum – who were brilliant.
Saturday saw us mainly trying to recover from the Friday night and then on Sunday (in the rain) we saw the Macabees, Blondie, an amazing DJ called Benji Boko, a standup called Kevin Bridges and The Strokes – who were all very, very good.
The festival was in by far and away the most stunning location I imagine any festival could be in, surrounded by beautiful countryside, hills and of course a bloody massive loch. Add to that the fact that everyone there was incredibly friendly (apart from about 2 hours when the England match was on and everyone turned very pro-USA for a bit) and we had an excellent weekend. Rockness, recommended!

Istanbul to Leeds

On Friday I was at the launch of the Jane Tomlinson Appeal’s latest challenge, the Istanbul to Leeds bike ride. Mike, Steven and Becca Tomlinson along with several other family members and friends will be riding the 2,500 miles from Istanbul, Turkey to Leeds, England over the course of 5 weeks. They’ll average about 80 miles a day and travel through 12 countries.

I will be reprising the role I played on the last ride (John O’Groats to Lands End) in 2008, which mainly consists of driving a van filled with bikes and gatorade and taking lots of photos and video footage.
As well as driving support I also put together the ride’s website www.istanbultoleeds.co.uk which I’ll be updating throughout the build up to the ride and then (hopefully) every day of the ride.

The ride is taking place to raise money for the Jane Tomlinson Appeal (full info here www.janetomlinsonappeal.com) and you can sponsor the riders here, www.justgiving.com/Istanbul-to-Leeds-2010.

It really is a pretty mega undertaking and any support you can offer would be greatly appreciated.

Launches and lunches

Righty, so tomorrow sees the launch of the reason why I will be out of the country for 5 weeks this summer. If you live in Yorkshire then I think it will be covered on Look North and Calendar tomorrow evening, if you don’t live in Yorkshire then there should still be a veritable explosion of web-based excitement for you to gorge on (or not, whatever).
More (actual) news to follow tomorrow.