radiac.net

latest entries - diary

A Short Interlude

17th June 2013 at 23:53Comment

So, my new site is ready on my dev machine, but when it came to deploying it to this server, I ran into a bit of a dependency issue. Long story short, I can either plough ahead and risk breaking important things, abandon my deployment system, rip out half my code, or get a new server.

Seeing as the first three will be a pain and I was going to be replacing this server soon anyway, I'm not really tempted to spend the night trying to get it to work here. The catch is that I can't shut off this machine until a certain unnamed client leaves; they promise they'll be ready to go "at the end of this month", but they have been promising that since August 2012 - so I'm reluctant to pull the trigger on the new server and have to run an extra one at a loss for months just for this site.

I do have other servers I could put it on, but for various reasons none of those would be ideal at the moment. I'm having fibre broadband installed later in the week, so maybe I'll just run it over that for a couple of weeks. Who knows.

I may have a change of heart in the morning, but for now all I'm going to say is: the new site will be up soon. Hopefully. Still, at least this will give me some time to improve the easter eggs...

All Change

12th June 2013 at 11:47Comment

Last year I made an important decision: it was time to quit my job.

Regular readers will know that I don't exactly have a job - I've been freelance since I left university, picking up work wherever I found it, mostly working directly for people who want websites. The problem has been that most of my clients' priorities were things like design, content and SEO - but I'm a programmer at heart, so didn't exactly find that enjoyable. Not that you can expect any job to be fun and games all the time, but I also made some terrible decisions which meant I found myself doing really massive chunks of boring work for free. All work and no money makes radiac a dull idiot.

So I decided that it was time for a change. Over the past few months I have completed my outstanding client work, have handed off the larger sites which kept me busy, and I'm now free to spend the next few months working on projects for myself.

The first thing is a new website here at radiac.net. Given my track record with this site I'll probably regret saying this, but I'm aiming to have it ready next Monday - that will be radiac.net's 13th birthday, so seems somewhat appropriate.

I want to get back to writing more diary entries; in 2006, a couple of my clients had mentioned something I'd written about on here, which kinda freaked me out - it was like getting out of the shower to find your boss standing there asking for your TPS report. I changed my work e-mail address so new clients wouldn't know about radiac.net, and decided to write posts assuming that it would be read by everyone I had ever met - but that just meant I'd get halfway through a new post, think about how someone would find it inappropriate or boring, and throw it out without posting. Then I just got out of the habit of writing anything at all; for years I haven't said anything about work, holidays, gaming, my cats - hell, I haven't even ranted about UKIP since 2009.

I'm therefore going to try splitting up my diary into two parts - personal and tech. That way I can put personal stuff on my site for my friends and stalkers, without clogging up the feed for strangers who want to read my tech-related ramblings. I actually started working on this in 2009, when I toyed with the idea of making an entirely separate website, but having two seemed rather egocentric. I'll be publishing separate RSS feeds, but current subscribers will continue to get everything.

I've also worked on a lot of personal projects over the years, with a view to eventually releasing them with an open source license; some have been sitting around for a long time, and the world probably doesn't need another perl framework or django cms now, but I think I've written some bits here and there which others may find useful. Over the next few months I'll be splitting out components, putting them on github, and making mini sites for them here on radiac.net.

And as for a long-term business plan? It's simple - I'm going to make this site so incredibly awesome that I attract a horde of rich patrons who shower me with so much cash that within three months I'll be writing a diary entry describing the mojito I'm drinking on the beach of my private island in the Caribbean. That could happen, right? Yeah! I cannot see how this could possibly fail.

Happy Christmas etc

1st December 2012 at 00:311 comment

It's that time of year again when radiac.net puts on its christmas costume and rolls out the TCMI! Sadly I'm phoning it in again this year - I've been working on a new design for the site on and off for the past few months (mostly off), but haven't found the time to finish it yet, let alone do a christmas version. Play the old advent calendar and pretend it's new!

In fact, 2012 has been a bit of disaster as far as radiac.net is concerned - only 4 diary entries, an all-time low. I did actually manage to put a new code project onto the site this year, but given it was just a trivial cookie law disclaimer, it has predictably been met with nothing but electronic tumbleweed and a lone comment expressing displeasure. Rather depressingly, visitor analysis undeniably confirms that my most significant contribution to humanity to date continues to be my article about chancel repair liability from 2010.

For me personally though, 2012 has been pretty good - I've had plenty of work, started to make some progress at the gym, bought a nexus 7, our cats are doing well, we've started learning Spanish, and we've just come back from an excellent 3 week holiday to Chile and Argentina - more about that once we've finished sorting through the 2000 photos I took. I'm also in the process of moving away from working directly for people who want websites - bit of a change after 8 years, but I'll save the details for a future diary entry once things start to fall into place.

Of course, 2012's not over yet - December promises to be pretty busy for me, what with finishing off my last 2 large client projects of the year and trying to balance the consumption of christmas-themed chocolate with time in the gym. I think I will be spending a lot of time in the gym.

Happy Christmas, everyone!

Cookie Consent for Dawdling Developers

28th May 2012 at 20:062 comments

I have written a JavaScript thing which will make it nice and easy for you to comply with the new EU/UK cookie law. It's called cookieuse, it's small and customisable, and unlike most of the other cookie consent scripts that I've found, it was written after the ICO backtracked on implied consent.

If you're a web developer who hasn't quite got around to doing anything about the new law yet because it was going to ruin your analytics and social media buttons, and you were hoping the ICO would come to their senses in time, cookieuse should help you dull the pain of compliance.

Out of the box it will give you a little popup bar (or box depending on your CSS) to get implicit consent - you may have noticed it on this site, otherwise you can take a look at the example page. You should be able to make it do whatever you want though - there's support for different levels of consent, and for taking actions based on whether consent was given or refused.

If you haven't heard about the new EU/UK cookie law, it's pretty stupid: scared of the sort of information that Facebook et al have been collecting about us for years, the EU jumped to the rescue by passing legislation that says every website which wants to set cookies for visitors in the EU must get permission first. Not that big third parties like Facebook (the only ones in a position to actually do something nefarious) need to do anything, nor that websites should honour Do Not Track, either of which would have been rather fair, sensible and practical options. No, the tens of millions of websites which use cookies each need to interrupt their visitor asking them the same question: "Can we give you cookies?" - each in a slightly different and more confusing way than the last.

The law was supposed to come in a year ago, but nobody did anything because we hoped the ICO would come to their senses. They didn't, but they did say they'd delay it for a year, and have spent that year saying it's very important to get explicit consent by popping up a large box and making people opt in to cookies. We can't just use the standard "By using this website you agree to whatever we say", because that would be implicit consent, and that would be terrible.

That was until about 12 hours before the law came into effect, when the ICO said "Actually, you know what? Implicit consent is fine." Nice one ICO, you screwed over the law-abiding internet, who had collectively spent a great deal of time figuring out the best way to get their users to say yes.

Fortunately for the rest of us who were "working on our cookie policies", (aka waiting to see what everyone else did), it seems that a nice simple "If you don't like cookies, go away" will suffice. If you're in that position, hopefully cookieuse will help.

Any feedback will be gratefully received, and let me know if you decide to use it on your site.

A Plan for World Peace

26th May 2012 at 10:44Comment

Another day, another depressing UN climate meeting. I find myself becoming increasingly incensed by the constant destruction of our world by people who are only interested in personal power and financial gain. If you are an idiot you can argue against climate change, but you can't dispute the rampant pollution, deforestation, over-fishing and unprecedented pace of the destruction of nature that our species is now capable of - and yet, somehow, our elected politicians manage all that and more.

In the linked article about the climate meeting, someone from Greenpeace says "It's absurd to watch governments sit and point fingers and fight like little kids while the scientists explain about the terrifying impacts of climate change". It is absurd, but the thing that most people must surely have noticed by now is that most governments simply don't care about the long-term repercussions of inaction, because politicians are too preoccupied with polls, re-election and/or self-gain.

It's time for us to give up on politicians and solve the problem ourselves.

First we need to come up with a better way of generating power. I must admit, I didn't pay enough attention during physics to achieve this on my own, but someone out there must have a smart idea. Fusion reactors, a gigantic array of solar panels in orbit around the sun beaming the power to ground stations, or one of those perpetual motion machines powered by magnets which always seem to show so much promise in YouTube videos. We need to get together and come up with some good ideas for creating limitless clean power.

Next we need to implement the ideas. We'll need to get our hands on a decent budget to achieve our goals. Sponsorship, bake sales, fun-runs, armed insurrection - however we get funded, we'll then split up into teams and implement the ideas so that we can generate unlimited power.

Then we give the power away to anyone who wants it, for free. Apart from politicians, who have shown they don't deserve power in any form.

With unlimited power, all sorts of things will be possible. As everyone knows, E=MC2, so once we have enough E, we can start making some M. It's a pretty simple equation, so I'm guessing it should be pretty simple to put into practice. We'll build a machine (I call it a "replicator") which generates matter from energy. We just have to build one, then we can use that to build more replicators and give them away to everyone who wants one.

An unlimited flow of free goods will destroy the economies of the world, but that's ok, because who needs money when you have free stuff. We can now all dedicate our lives to the arts, to recreation, and to figuring out how to build massive space ships with warp drives so we can live in space while wearing uncomfortably tight one-piece spandex jumpsuits.

Yesterday I watched SpaceX's Dragon capsule dock with the ISS for the first time, and was struck by just how significant that achievement was for our species. No matter how you feel about the commercialisation of space, our civilisation has reached the point where one man can decide he wants to put something into space and achieve it. Not only that, but we can make it dance around and hook up to something else we put up there, with incredible precision. That is the sort of thing we are capable of. We have figured out how to walk on the moon; how to build tiny boxes that fit in the palm of our hand and contain the sum of all human knowledge; how to pull apart and manipulate the very building blocks of life.

With all we know and have accomplished, I refuse to believe that we are incapable of finding a solution to our apparent incompatibility with nature. My plan may be absurd, but until smarter and more powerful people than me decide they want to fix the problems we have created, it'll have to do.

So. Anyone have any magnets?