Archive for July, 2012

The nerve

Wednesday, July 25th, 2012 | Religion & Politics

I wasn’t going to write about this, but so many people have now mentioned it to me that I’ve decided it is worth while commenting after all…

It’s now been six months since Lloyds TSB started the processing of correcting the account they had incorrectly set up and then started billing our charity for. They’re still working on it. After all this time, you really have to wonder if they ever will get it done.

This is a bank of truly incompetent scale – no wonder they had to sell 77% of it to the government as part of a £37,000,000,000 bailout from public funds to the major banks. That’s about £800 each btw.

So what did such a bank do with all it’s ill-gotten gains from hard-working taxpayers?

They spent £40,000,000 sponsoring London 2012. As if the tax payer hadn’t paid enough for the Olympics already, Lloyds TSB are now taking our emergency bailout money and spending it on making itself a sponsor of London 2012!

Not only that, but this is only the money paid for the sponsorship deal – and one imagines that the expenses of having a party bus follow the Olympic torch around and anything else rack up to quite a bit. In fact, they’ve even made a website about everything their blowing money on this summer.

It’s absolutely unbelievable.

Footing the bill

Tuesday, July 24th, 2012 | Religion & Politics

Hosting the Olympics has been a harsh affair. We’ve had to temporarily (hopefully!) transformed into a semi-totalitarian state.

But on the flip side, we get to go to the Olympics. Or do we?

The Olympic Stadium holds 80,000 people. So even if you allocate a rather large amount of 800 tickets to sponsors and other interests in the private sector, that still means we can sell 99% of tickets to the generic public. But apparently not. Only 75% of the tickets have gone on sale to the general public. When it comes to the high profile events, that already rather low number of 75% drops to 35%!

But, of course, you have to give some to the private sector. They’re paying for the games after all. Otherwise, the tax payer would have to foot the bill. But, as it turns out, and we all knew already, we are footing the bill.

According to the Guardian, sponsors have contributed £1 billion of funding. They’ve made the data available for free too. The Guardian is actually being generous here – a report by Parliament puts the figure even lower.

Meanwhile, the total cost was reported to the House of Parliament as being around £12 billion. Jules Boykoff points out this isn’t entirely accurate though and, indeed, according to Sky Sports, the figure is actually around the £24 billion mark.

So do the maths on that one. We’re footing 92% to 96% of the cost, yet we’re getting 35% – 75% of the tickets.

Best before dates part II

Monday, July 23rd, 2012 | Religion & Politics, Thoughts

Earlier today, I wrote about best before dates, suggesting that one way to reduce food waste would be to ban them. It ended on a “why not?” question. But there is a reason why, which would have totally changed the tone of the blog post, so I’ve put it in a separate one.

The reason is, people actually like living in a nanny state when it comes to these things. I like the fact that it tells me on the packaging when I should throw something away and the reality is that it will probably be reasonably close to the actual time it will be past its best, so what is the harm?

Of course, you can argue that reducing food waste would be beneficial, but as Rob Lyons points out, reducing our own food waste doesn’t help feed the third world – people aren’t starving in Africa because we’re eating all their food. It’s economics that drives food production and if we weren’t buying their food, they simple wouldn’t grow it.

In fact, you can go even further to say that because we buy more food than we need and simply bin a lot of it, it actually increases the amount we buy from the third world and thereby helps to support their economy by essentially subsidising unrequired food production.

Best before dates

Monday, July 23rd, 2012 | Religion & Politics, Thoughts

In recent years, there has been a lot made of food waste, and some of this has been attributed to supermarkets putting very conservative “best before” dates on products that result in people throwing perfectly editable food away.

This might be down to a combination of supermarkets protecting themselves from lawsuits if anyone gets food poisoning, and encouraging people to throw food away early so they will buy more. But I don’t know, maybe they have some other reason. Maybe they genuinely believe their best before dates are appropriate. In any case, it’s not important to this post.

As a solution, why don’t we just ban supermarkets putting best before dates on things?

Surely that would solve the problem, forcing people to use their own common sense. You could argue that relying on common sense is an issue, but any common sense people are lacking is almost certainly down to the nanny state situation of having too many best before dates to rely on in the first place. But even if you consider that a problem, which I don’t think it is, it’s pretty easy to work out when bread is past its best.

I often find that, on some occasions, the law works very well as a blunt instrument. Remember when they banned smoking in pubs, and lots of people said there should be lots of complicated rules and exceptions, but instead they just banned everything, and now everyone is much happier because it worked really well? To be clear, I’m not being sarcastic there, that is actually what happened. Clamping is another good example.

Just tell producers they’re not allowed, people use their common sense and food stops getting wasted. Problem solved.

Olympic torch celebration

Sunday, July 22nd, 2012 | Life

Last month, I went to Temple Newsam to see my mum perform at the Olympic torch celebration. The choir were fantastic, well done to everyone involved!

Getting in was a struggle. After the padding down and the cavity search you then have to have a long argument about whether the folding furniture you have brought counts as genuine folding furniture. No prizes for guessing who was sponsoring the event either…

Flood

Saturday, July 21st, 2012 | Life, Photos

All the heavy rain last month caused the River Aire to just about reach its banks.

From my cold dead hands

Friday, July 20th, 2012 | Religion & Politics

Another month goes by, and, as usual, another senseless gun-related massacre occurs in the United States. Around 50 people in total were shot, 12 of them are already dead.

I was going to say “with another 12 people dead” but this would simply be nieve. Based on the statistical average, somewhere in the region of 33 people were gunned down across the United States today anyway. And yesterday. And there will be another 33 victims tomorrow.

Surely it is time to adopt a more progressive attitude towards guns? To be clear, by progressive attitude, I mean get rid of them all.

The sadistic irony of this video increases with every victim.

Loserville

Friday, July 20th, 2012 | Distractions, Life

Last month, we went to see the new musical Loserville, at the West Yorkshire Playhouse. While the play itself was very entertaining, I have to say that I’m really not comfortable about them making a musical about my life without offering me any royalties, or even asking my permission.

Install APD on CentOS 5

Thursday, July 19th, 2012 | Life, Tech

Here is how to install APD (Advanced PHP Debugger) on CentOS 5. Lets start by creating a directory for it to log files to.

cd /tmp
mkdir apd
chown apache:apache apd

We need to remove ioncube, or it will cause errors.

rpm -e php-ioncube-loader

Now we can install APD, via PECL.

pecl install apd

Add the following to php.ini.

[apd]
zend_extension=/usr/lib64/php/modules/apd.so
apd.dumpdir=/tmp/apd
apd.statement_tracing=0

My PHP binary was in a different location, so I had to alter the script too.

cd /usr/bin/
vim pprofp

Change /usr/local/bin to /usr/bin and save the file.

You also need to ensure PEAR is in your include path (/usr/share/pear) for the script to work.

LESS & SASS

Thursday, July 19th, 2012 | Limited, Programming, Tech

Still writing regular CSS? Pfft, you’re living in the dark ages! These days it’s all about two new technologies that are almost identical, so I’m going to discuss them in the same post.

The idea is dynamic stylesheets – bringing concepts we use every day in regular programming and implementing them in stylesheets to avoid duplication and make everything cleaner, nicer and more up to update with current paradigms.

So what can you do with these tools? Here is a quick overview…

Variables

Using a colour everywhere that you might want to change later? No worries, just save it as a variable and if you do need to change it at a later date, you just update the variable and it will be changed everywhere.

@myColour: #FFCC00;

.header { background: @myColour; }
.footer { background: @myColour; }

Mixins

Inheritance! What a sexy thing to have in CSS. No longer do you have to place loads of DOM references in lots of different places. Now you can just write it once and included it wherever else you need it.

.bigBorder { border: #FF99CC 10px solid; padding: 5px; }
.header { .bigBorder; background: @myColour; }
.footer { .bigBorder; background: @myColour; }

Nested rules

This one is a huge time saver! How many times have you had to reference half a dozen elements in one DOM reference? Probably very rarely, but certainly two or three tags is the every day reality. No longer though, because you can now nest your rules.

.header {
	.bigBorder
	
	a {
		font-size: 200%;
	}

In this example, the 200% font size will only apply to a tags inside .header, just as if you had done .header a in your DOM reference.

Operations

Want to make a header colour slightly darker? No worries, just add two colours together.

@mainColour: #FFCC00;

.header { background: @mainColour + #333333; }

But these are just a few of the features of these languages. They allow you to do a lot more – including things like full blown functions that you can pass parameters into, guards and much more.

The main difference between LESS and SASS is that LESS is a client-side JavaScript library (although has now been ported to Node) – you send the browser your .less file and include a JavaScript library that converts it. Meanwhile, SASS is a Ruby Gem that compiles a stylesheet to send to the client each time you edit your .sass file.

To find out more, visit the LESS and SASS websites.