My General Blog

4 easy fixes for Apple to make iTunes better

Sunday, December 20th, 2009

1) I expect you to manage my files. Maintain a list of my purchased files and let me download them whenever I want. Why am I expected to keep backups? It’s just weird.

2) I expect you to allow me to deauthorize a computer remotely. For example, I’ve just lost my hard disc. How do I deauthorize it? You tell me I’ve got 5 out of my 5 computers authorized. Ok, which ones? Unlike 1975, five is not a big number of computers. How about automatically deauthorizing a computer after 12 months?

3) I expect you to tell me that I can’t play HD films on a non-approved TV BEFORE I buy it. Or, to be honest, never. I’ve never heard of such ridiculous bullshit. I’m not about to go and buy a new TV, just because it doesn’t have your DRM built in.
The discussion here has 8 pages, and the last one says “Apple Support has no idea this problem exists.”
http://discussions.apple.com/thread.jspa?messageID=8472731

4) If I tell you I own an MP3 I expect you to trust me. Allow me to copy and transfer it like any other file.

We like our iPods, we love our iPhones, and when our wives aren’t looking, we might secretly give our MacBooks a cuddle. But no-one likes iTunes. And not because it’s a bad idea. It’s just clunky and unusable.

If I were the EU, I would consider Apple bundling iTunes in the same light as Windows bundling Internet Explorer. Let’s start the fine running at €1m/day and start talking openness.

Leaving Digitas

Sunday, December 20th, 2009

I’ve been at Digitas for five years. Five years. As I’ve recently learned, that’s about thirty-five dog years. Which is about four years older than I am now.

Here, I’ve worked on websites for Hewlett Packard, the Cannes Film Festival, Persil, Nicquitin, General Motors, Opel, Vauxhall, Sega‘s TotalWar, Nakheel and the Palm Jumeirah, Bayer‘s Xarelto, MSD’s Propecia, Procter & Gamble, Eukanuba, Digitas of course, and a few sites so cool, I still can’t tell you about them.
That’s not a bad record.
Estimates suggest that on average*, I have been involved with more than seventeen percent of your household purchases , and although I have a three-percent chance of killing you with a car, there’s an extra four percent chance of saving your life after an operation.

Somehow I’ve been sent to Brussels, Warsaw, Geneva, Minsk, Basle, Kiev, Zurich, Paris and Bangalore.

Ninety-two of my facebook friends, I met through Digitas. That’s sixty-one percent.

Since I joined Digitas, I’ve started and finished a three-year degree in Physical Science, with a two:one. I’ve got married, and twenty-five percent of my guests were from Digitas. I’ve run twenty-six point one miles in the London marathon, and they helped me raise three-hundred pounds for the NSPCC.

I loved working here.
I wish them all a great 2010.

Kenneth

* some estimates may be approximate to the point of complete fiction.

Amazon RDS is the worst idea ever

Saturday, December 12th, 2009

Ok, so the headline of this article is probably a little OTT. But I’ve just had one of the most annoying, and expensive, experiences working with Amazon’s hosting.

Actually, it’s really only annoying because it was expensive.

What happened was this: I moved a sizeable set of sites over from my previous standard hosting to the Amazon EC2 set. It was LAMP based, but I’m not going to tell you which site, because it was built a long time ago and hasn’t had enough TLC recently.

The site was suffering from some pretty terrible response times. Using a top to find the slow process seemed to give me no clues at all, and yet the cloudwatch service was showing consistently high CPU usage.

The site is database driven, and that work is quite intensive. Each page on the site executes several queries, and there is a chatroom which drums the database on a regular basis. But the site doesn’t do much else. And so my culprit was obvious: the database.

I’d read about Amazon RDS and it seemed the perfect solution. There’s no denying that my database is relational, it’s almost the textbook relational example, and so RDS beat Simple DB any day of the week. It was cool to have my own EC2 instance running MySQL, but really, Amazon can be a bit complicated with backups and storage. The thought of carefree backups, and a consistent long-running database as I toggled between application servers definitely appealed. I have a new site to roll out? Easy. I run a new server in parallel, and switch the IP across when it’s tested. Dream scenario, right?

And so it seemed. The cost seemed a little high, but I had high hopes for the performance, and it was still less than our (3 year old) prior hosting. I followed the Amazon online setup guide together with someone’s step-by-step tutorial (since sadly the console did not support RDS yet).

Except that it wasn’t much faster. “Shit”, I thought. That was a waste of time. But that’s ok – I now can toggle between different instances of application server, and figure out the problem there without worrying about the database at all. The site was fast enough to leave it running for a week to “bed in”.

One week later, a spring in my step, time to get working on the application. This is working out well. Database still intact, Cloudwatch says CPU load still high, so the blame must be with the PHP not the MySQL. Ok, fair enough. And a quick check of the running costs, gives me $400, not bad for the …

No, wait, go back to that bit again.

Four hundred dollars? A WEEK?

WHAT. THE. DUCK.

That’s over twenty grand a year. Sucre.
My fingers have rarely moved as fast as they did to get that server switched back.

So what happened?
It turned out that I’d been charged for the bandwidth between the app server and the database. And in that week, I’d racked up a terabyte of data. That sounds like a lot, but like I say, this was a DB-heavy site. And actually, you never really look at the bandwidth to your DB do you? It’s not what I would consider “external bandwidth”, which is what Amazon charge for.

After a very stressful couple of hours, I had a medium size instance (high cpu) running, with a clean Ubuntu install and Apache PHP MySQL on top. Performance was back to proper levels (so the PHP just needed another processor), and the costs were back down.

I sent a message to Amazon asking what had happened, and whether I could have my money back. Answer: not on your nelly. You used the bandwidth, you pay the price.

I protest. “Come on”, I say, “I’m not sure what happened here”. I’m a loyal customer and they could at least be generous on this. A bit of faith in the newly-subscribed. Better than that, I paid up and reserved an instance to demostrate my commitment. Just drop the week’s charges, I asked.

My question was passed to management. Not on your nelly, they said. You used the bandwidth, you pay the price. Your bandwidth was cross continent, they say.

AHHHHHHHHH.

Now I get it. My servers were naturally in Europe. Obviously I’d omitted the step of putting my RDS instance in Europe too, and it had defaulted to the US. Bollocks. I moved 1TB of data across the ocean because of a silly oversight.

Of course, it would’ve been nice if the setup commands had mentioned this.
It would’ve been nice if they had added RDS to the console, so I could see this (seriously, they can develop a distributed database system, but haven’t got the time for a bit of HTML?)
It would’ve been much better if they’d alerted me as I switched from a $1,000 setup to a $20,000 setup.
Not much to ask.

And really, it’s not much to ask for my $400 back. Ok, so I got it wrong. But where’s the love?

Shortcut Tutorials

Friday, November 6th, 2009

Probably the first real coder I met was at school.

He was just some kid in an older class who knew how to code the BBC micros that littered the computer room with the heavy metal door. This guy was a genius. Except he wasn’t really. He just learned a lot of stuff from old type-ins in BBC micro magazines. You’d describe him as the guy with glasses, but he didn’t wear glasses. You get the picture.

One of the most astonishing things I saw was that he abbreviated every single command he typed in, which was allowed, using a dot. Instead of typing “BASIC”, you could type “BA.”. My favourite was that he typed “RU.” instead of “RUN”. Eh? You haven’t even saved yourself a keystroke there. What was the point?
(more…)

First Hackday

Sunday, October 4th, 2009

We’ve just tried out our first Hackday: our attempt to produce a website without the usual demands of work-related stresses. And all in 36 hours.

The result is “Confessions of a T-Shirt”. Follow this link to have a look:
Funny T Shirts

I think we’ve got a few learnings to share. I’ll report on it later.

For now, I’ll sign off with great thanks to my two friends who’ve helped me through this mighty effort: coffee and dropbox. I appreciate it.
Oh, and cheers to the other lads too.