Uncategorized

Driven to drop Google Drive for Dropbox

Cloud computing is a wonderful thing, whether you are a business or a consumer. It isn’t the answer to everything, but it’s certainly solved some common problems, not least of which is the issue of back-ups. These days for a few dollars per month everybody can transparently back-up most if not all their important files to servers on the Internet and have those files synchronised between multiple computers and mobile devices such as smartphones and tablets.

There’s also no shortage of companies willing to offer their cloud storage services. Some services, like Amazon’s S3 service, are geared towards developers for integration into software (although Amazon now have a consumer offering), but there are many aimed at consumers who want a simple way of achieving transparent backup of their personal files. Microsoft, Symantec and Google all offer solutions, although not all are cross-platform.

Google Drive

Up until last week I used Google Drive, having taken up the service since it was launched earlier in the year. It costs $4.99 per month for 100Gb of storage and comes with software which you install on your computer and it automatically manages the sychronisation of your files, so long as you save them in the special “Google Drive” directory.

However, Google Drive was not without its problems from the very start. The software is not particularly well written and it is apparent that it has some bugs. It suffers from massive memory management problems and is prone to crashing without warning. This was especially annoying during my initial upload of files, which would have taken around a week if the software had remained running, but it did not and it would quit every few hours. Because I was either not awake or not at home to keep restarting it each time it crashed, my initial upload took far longer.

But it got there in the end, and for around six months it successfully kept my files safe and sychronised between my computers. I still had the memory issues (it typically used between 700Mb and 1Gb of RAM even when idle), and so I often found myself having to quit the software in order to free up some RAM if I needed it. This wasn’t ideal as it meant that I had to remember to restart Google Drive in order to ensure my files were kept up to date, but I lived with it.

Restoration test

Then, at the end of November, came a real test of the value of Google Drive. The hard disk in my desktop Mac Mini developed unrecoverable hardware problems, and I had to replace it. Although this was a time-consuming process it was not a disaster for me as I had all my important data in one cloud service or another. I have all my music on iTunes Match, all my development work on Github and all other files that I would be upset about losing in Google Drive. I have other files that aren’t on any cloud service stored on an external hard drive; these are files that could be replaced relatively easily if I had to and it’s not worth backing them up.

So I merrily removed the old hard disk without attempting to remove any of my data from it and installed the new one in its place (putty knives and swearing is always involved when upgrading an old-shape Mac Mini). I installed the operating system from scratch and all my software on the new hard disk and then began the process of restoring my data from the various cloud services. Github and iTunes Match worked like a charm straight off the bat, but Google Drive was, unfortunately, an entirely different story.

I installed the latest version of the software and entered my Google account details. It thought about it for a bit, allocated itself a whopping 3.25Gb of RAM, and then started to download my files. “OK”, I thought, “the RAM thing is even more annoying than it was before, but whatever”, and left it to do its thing. After downloading around 700Mb, it displayed a window saying that “An unknown issue occurred and Google Drive needs to quit“. The window also said that if this happens repeatedly I should disconnect my account.

It did this seven further times. Each time I was able to download around 100Mb of data before it displayed this error again. After the seventh time it didn’t download any more data, no matter how many more times I ran it. It had only downloaded 1.3Gb of my 55Gb of data. So I tried disconnecting my account and logging-in again. It insisted on starting the download from scratch, forcing me to discard the 1.3Gb already downloaded. Unfortunately it did exactly the same thing, repeated errors and then “maxing-out” at around 1.3Gb of files after numerous restarts. It was, frankly, ridiculous.

Out of frustration I called upon Google’s support, which as a paying customer I was entitled to. Their suggestion was to uninstall and re-install the software, and this suggestion came 48 hours later. Needless to say I was not particularly impressed. I did not believe for a second that this would fix the problem and that I was simply being taken through a standard support script. This was the final straw with Google Drive, after all the upload issues, memory issues and now this, an apparent inability to restore from my precious backup when I needed to.

I am 99% sure that it was crashing due to poor memory management (i.e. it was running out of memory), if the console messages were anything to go by. I considered that following their reinstallation advice would be a waste of my time based on this and I would further waste my time attempting to explain my technical suspicions to them. I needed my files back and I needed my cloud service back, on my timescale and not on Google’s.

Dropbox

I am fortunate to own two computers, and this was my saving grace. I still had the copy of the Google Drive directory on my other computer, so I still had a local and up to date copy of all my files. If, however, I had only one computer, I would have been entirely at the mercy of Google to get my files back. That was not something that I decided I was comfortable with and so I decided I had two choices:

  1. Persevere with Google’s support and, assuming they manage to fix the issue, continue to tolerate their piss-poor software going forward.
  2. Use the other copy of my files I had, find an alternative cloud storage service, upload them to it, and dump Google Drive.

I chose the latter. I had heard good things about Dropbox. They are a small firm for whom online storage is their entire business, rather than just another product, which is the case for Google. It is absolutely in their interest to get their offering right, because if they don’t they don’t have a dominant global search engine business (for example) to fall back upon. I wouldn’t be surprised if Google Drive grew half-arsed out of project that a Google developer created on his “do your own thing” day of the week, a privilege extended to Google developers as standard, to the envy of most others.

Dropbox is twice the price of Google Drive, costing $9.99 per month for 100Gb instead of $4.99. This isn’t a high price to pay for a reliable solution in my opinion. Like Google Drive, it too comes with software to be installed on your computer(s) which creates a special directory into which you save your files and it sits there in the background and uploads and downloads files as required. The difference between the Dropbox software and the Google Drive software is that the Dropbox software does so without using all your RAM and without quitting every few hours. Amazeballs!

It took around 7 days to upload my files to Dropbox, during which the software did not crash even once and used no more than 400Mb of RAM at its peak. Google Drive’s memory management was so poor that it never released memory if it didn’t need it any more; its RAM usage just kept going up and up and up. I was supremely impressed with this; this is how Google Drive should have been from the very beginning and the fact that Dropbox can do it means there is no excuse for Google Drive not to be able to. I am currently in the process of downloading these newly-uploaded files to my other computer en-masse, and guess what, still no crashes and it doesn’t seem to think that downloading 55Gb is a somehow insurmountable task, so doesn’t give up after the first 1.3Gb.

Other things I like about Dropbox:

  1. Great mobile app for iPhone and and iPad. This, too, Just Works, and allows viewing of a wide range of file types. It also backs up the camera photos from each device, which is a nice touch.
  2. It has an API, which allows it to be integrated into other software and services, such as IFTTT. This is more exciting for me than it probably would be for most people, but it’s something that Google Drive doesn’t have.

Of course, Dropbox may well not be without its own problems which are not yet apparent. If any transpire I will of course report on them, but initial tests and use of the service is very promising, and certainly far better than comparable early days with Google Drive.

So there you are. If you’re looking for advice on which cloud backup service to use, I recommend Dropbox. It’s compatible with Mac OS, Linux, Microsoft Windows, iOS (iPhone, iPad) and Android. Enjoy.

Uncategorized

Airplay with Raspberry Pi

I bought a Raspberry Pi this week. For those who don’t know this is a tiny ARM-based computer, the size of a credit card, which is supplied as a board without case, power supply or mass storage, for £30 (delivered). It’s been in the media and is being described as a universally affordable spiritual successor to the popular 1980s BBC Micro, as it has been designed with the purpose of teaching school kids how to program computers in mind.

It ships with 256Mb of RAM, an SD card slot, two USB ports, an ethernet port and an HDMI port. It’s powered via micro-USB and so will work with any micro-USB cable (and therefore many phone chargers). You then have to add a SD card for mass storage, onto which the operating system is installed. You then also need to connect it to an HDMI display and plug in a USB keyboard. You can easily spend as much as the original purchase price again on accessories, but that still doesn’t make it expensive.

Raspberry Pi running RISC OS 5

The primary intention of its manufacturers is for it to run a special Linux distribution called Raspbian, which is based on Debian, but it is by no means limited to this. In theory it can run anything that’s compiled for the ARM architecture, although in practise this is different. Already a group is working on a port of Android, an obvious choice, since this operating system is designed for ARM-based smartphones and tablets. Someone has even made a RISC OS 5 distribution available (RISC OS 5 is the older fork of RISC OS which was open-sourced, RISC OS 6 remains a commercial product and is not available in the same way). This gave me a few hours of delightful nostalgia as I lived and breathed RISC OS for 5 years back in the early 1990s. I’m hoping I’m going to be able to use it to recover some of my old files and convert them to PDF.

But this isn’t the real reason why I’ve bought my Raspberry Pi. Nor have I bought it, as many will, just to dick about with it. Unlike some others I don’t have any grand delusions that it will replace either my desktop computer or my home server, because it’s frankly not up to either task. Its low cost and the fact that you can run it off a USB port means that it’s actually rather slow, but that’s fine, it’s not designed as nor was it ever meant to be a fast computer. But it is small, cheap and perfect for what I want to use it for.

Alternative Airplay device

Airplay is the system through which Apple devices can play music through remote speakers connected to devices on the local network. These can be Apple TVs or an Airport Express. The Apple TV represents great value at £99, but the Airport Express is less so at £80, which is an increase on the previous price since they brought out the new model. Most people already have a wireless network and so £80 just to connect your stereo to your network is a little steep if you don’t need the wireless features of an Airport Express.

Here’s how the budget stacks up: Raspberry Pi is £29.95 delivered from Farnell. On top of that you’ll need an SD card (£3.38 delivered from Play.com), a case (various options on eBay, I found one for £4.23 delivered), and if you don’t have a spare already then a micro-USB charge (£2.40 delivered from Play.com). This all comes to £40.00 delivered, exactly half the cost of an Airport Express.

You will also need an audio cable and an ethernet cable but I’m not including these in the budget since neither is not included with an Airport Express. What I would point out, however, is that the Raspberry Pi solution is not a wireless solution without the addition of a USB wireless dongle, themselves no more than a fiver from eBay.

Instructions

  1. Install Raspbian. You can do this using one of the pre-built images if you want, but if you’re capable I recommend that you install it using the network installer so you can control what goes on and it uses as little space as possible (you will however find this method much slower). You’ll need at least a 2Gb SD card for either method. I tried to shoehorn an install on a 1Gb card by removing the swap partition, but it didn’t boot. You need only the default options if using the network installer, no extras required.
  2. I recommend that you update the firmware and the operating system (using aptitude) at this point. There have been some recent improvements to the firmware which bring performance increases and better wireless support.
  3. Log in as root and run the following commands:

  1. Add these lines to /etc/rc.local. The second line forces the audio through the 3.5mm jack rather than the HDMI port. If for some reason you require the latter then omit the second line.
modprobe snd_bcm2835
amixer cset numid=3 1
  1. Change this line in /etc/init.d/shairport, starting DAEMON_ARGS, so that it reads the following (you can change “Raspberry-Pi” to a string of your choice):
DAEMON_ARGS="-w $PIDFILE -a Raspberry-Pi"

Reboot, and you should now see a new entry in your Airplay menu on your device. At this point my SD card was using 783Mb on its root partition. I’ve made an image of this with a view to making it available for download, but even compressed it came out at 658Mb and I pay for my bandwidth by the Gb, so I won’t be uploading it, not when the instructions are so easy.

I would note that if you are geeky enough to achieve this then think twice before building them for your friends in order to save them a few quid. If you build and supply it you will have to support it, and you won’t have the option of sending them to the Apple Store should it go wrong. I speak as a reluctant Apple help desk for many of my friends and family; certainly I will not be making any of these little rods for my own back for anyone who can’t do it themselves :)

Portable wireless boombox

Despite this little triumph I actually don’t require an Airplay device at the moment. I have two already and no requirement for a third, so while this is useful it’s not especially useful for me as a home device at this time. What I want to do is take this project further and build a portable wireless boombox.

This would be a self-contained system which doesn’t depend on anything other than a 12 volt power source (so, car battery, boat, caravan, solar panels, mains adaptor or a collection of D-cell batteries). It would provide its own wireless network to which users can connect their Airplay devices and then use wirelessly. It would contain a small power amplifier and a pair of speakers. I’ve found a power amplifier that even has a USB port from which I can power the Raspberry Pi, saving me having to worry about a step-down from 12 volts to 5 volts.

Not intended for connection to an existing wireless infrastructure this would mean that it could be used anywhere, as long as there’s a 12 volt power source. Great for camping, barbecues, boats, festivals or simply down at the bottom of the garden. I’ve identified the parts that I will need (and indeed ordered most of them), but my biggest challenge still remains and that is what sort of box to build to house them and how to manufacture it. I’ve a feeling that my prototype won’t be particularly pretty, if entirely functional.

I’ll keep you posted on this project as I make progress.

Uncategorized

Mac, Apache, MySQL and PHP (MAMP)

Mac OS X serves as an excellent development environment, even if you are not actually developing Mac OS or iOS applications. It is the darling of many a LAMP (Linux, Apache, MySQL and PHP) developer, who enjoys a slick desktop operating system with good UNIX-like underpinnings but who don’t necessarily want to put up with all the various limitations and complications that running a Linux desktop brings, consistent improvements in this regard over recent years notwithstanding.

The only trouble with this is that if you want to develop LAMP applications and work on a Mac then traditionally you’ve needed a two-box setup; a Mac on your desk and Linux on a development server. For many this isn’t an issue, and indeed when you’ve got a team of developers, optimal, but what if you wanted a self-contained development environment that was restricted to just one box? What if you wanted that box to be your laptop so you could take it anywhere?

Solutions

“Virtual machine!”, I hear you cry. Yes, this is a possible solution, and for many works well. Good virtualisation software is free these days, but using a local VM is cumbersome. Not only does it consume a large slice of your RAM but it also puts a lot of strain on the CPU, meaning that if you are running off your battery your battery life will be decreased. It’s also cumbersome; you have to start up the VM when you need it and there can be complications with the networking, for example, if you have connected to a public wireless network it’s possible that your VM might not be extended the same resource.

There is a software package for Mac OS called MAMP (the M for Mac OS replacing the L for Linux). This is a point-and-click installer which bundles Apache, Linux and PHP for installation on Mac OS. I don’t like this solution, for a number of reasons, including:

  1. Limited functionality unless you “go pro” (at quite considerable cost). Any self-respecting developer will require multiple virtual hosts as a minimum and won’t need or want a clicky-button interface to get what they want.
  2. You are entirely at the mercy of the distributors of MAMP with regards to component software versions that are made available to you and when.

Alternative solution

There’s an alternative to this. You don’t have to fork out £39 for a package of what it otherwise freely and widely available software. With the help of my friend and colleague Ben Nimmo I present the following assembled and tested instructions for turning your Mac into a native MAMP server without using the packages download.

MySQL

  1. Download and install the latest .dmg and install both the *.pkgs within it (don’t use the TAR/GZ archives). You may wish to install the Workbench too, it’s really good these days.
  2. Find where the mysql.sock file is expected to be in /etc/php.ini (should be /var/mysql/mysql.sock)
  3. Create the folder and link the socket file to the expected location.
sudo mkdir /var/mysql
sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
  1. Add MySQL to command line by editing /Users/username/.bash_profile and adding this line and then either restarting terminal or source-ing the file:
export PATH=$PATH:/usr/local/mysql/bin

PHP

PHP comes with Mac OS, so it’s not necessary to download and install it, however, there are a couple of necessary steps to configure it:

  1. Copy the default php.ini file:
sudo cp /etc/php.ini.default to /etc/php.ini
  1. Edit /etc/php.ini and uncomment this line to enable xdebug (not essential, but recommended):
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"

Apache

Apache too comes with Mac OS, so again, no need to download and install it. Its configuration, however, is a little more complex, but nothing scary. The described configuration will provide a special Apache “sandbox” environment for your projects. It uses the existing “Sites” directory in your Mac OS home directory.

  1. Create a subdirectory in this directory for each of your projects, ensuring that the directory name does not contain any characters that would be illegal in a URL. Within each of these subdirectories create another subdirectory called “web”; this will be become the web root of each project. The extra subdirectory is in case you wish to use a framework in your projects which may keep some of its files outside of the web server root (Symfony is a good example of this).
  2. Create a subdirectory called “logs” in your “Sites” directory; Apache will maintain two log files, access and error, for all the sandbox sites.
  3. Enable PHP5 with Apache by editing /etc/apache2/httpd.conf and uncomment the following line:
LoadModule php5_module libexec/apache2/libphp5.so
  1. Change the user and group to your username and “staff” respectively, also in /etc/apache2/httpd.conf:
User sbf
Group staff
  1. While still in /etc/apache2/httpd.conf, find the following configuration and change “Deny from all” to “Allow from all”:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
  1. Create and edit /etc/apache/users/user.conf with the following, changing “sbf” to the username:
<VirtualHost *:80>

    ServerName dev.local
    DocumentRoot /Users/sbf/Sites/

    RewriteEngine on
    RewriteLogLevel 1
    RewriteLog /var/log/apache2/rewrite.log

    # sites in the format http://[site].dev.local
    RewriteCond %{HTTP_HOST} ^[^.]+\.dev\.local
    RewriteCond %{REQUEST_URI} !^/error/.*
    RewriteCond %{REQUEST_URI} !^/icons/.*
    RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
    RewriteRule ^([^.]+)\.dev\.local/(.*) /Users/sbf/Sites/$1/web/$2

    # Logging
    CustomLog /Users/sbf/Sites/logs/sandbox.access.log combined
    ErrorLog /Users/sbf/Sites/logs/sandbox.error.log

</VirtualHost>
  1. Restart Apache:
sudo apachectl restart

Then, for each of your sites, add an entry in /etc/hosts for with the format “name.dev.local” pointing to 127.0.0.1, where name corresponds to a subdirectory in your “Sites” directory. Don’t forget that the public subdirectory of each site is assumed to be “web”, so make a symlink to this if the framework you use has a different convention.

You should then be able to access each of your sites from URLs using the convention http://name.dev.local/ – where “name” again is a subdirectory within your “Sites” directory.

I’ve tested this setup procedure and It Works For Me [tm]. If, however, it doesn’t quite work for you as described, please let me know where you’re going wrong and how, if you were able, to resolve it, and I will update these instructions accordingly.

Uncategorized

Call centre HUD for Asterisk

At work every fortnight or so we hold what we call Evenings Of Code. The company buys the development team pizza and beer and in exchange we work on projects and ideas that are of special or particular interest to us, that the company would benefit from, but that the company doesn’t really need at the moment and so normal weekday work time cannot be allocated to it.

My recent project has been to create a HUD (Heads-Up Display) for the call centre. I’m particularly suited to do this out of those in my team because I have quite a lot of experience with Asterisk, the popular open-source PBX, on which the company’s telephone system is based. The system, designed for a 1080p display (it’s not yet decided whether we’re going to go for a plasma or a projector yet), uses caller details records (CDRs) and the Asterisk Manager system to gather statistics on the day’s calls. It’s not quite realtime, but the key queue statistics from the Manager are updated every five seconds and the cumulative statistics based on the CDRs since midnight every 20 seconds.

A script runs constantly in the background during the working day (8.00am to 8.00pm) to perform the updates, which saves the results in a database table. The HUD itself is then loaded in a browser and uses AJAX calls every five seconds to read the contents of this table. This will allow multiple instances of the HUD to run without each hammering the CDRs and the Manager. At the moment, as it’s in testing, it’s being loaded into web browsers by certain staff members, and so when it initially loads it loads quarter-size. When we finally put it up on the wall we would then hover over the top right corner and an option will appear to enlarge it to full 1080p, basically by doubling the values in key CSS properties.

It looks slick too. Because it uses AJAX there are no page loads, you would expect nothing less in this day and age. If a digit changes after retrieving an update then the old digit is faded out before the new digit is faded in. If a digit doesn’t change between updates it obviously remains static.

We’re now trying to ascertain whether my algorithms for calculating the statistics are accurate at the moment by using a bit of manual record keeping on the part of the cell centre staff, who have been asked to record the number of calls they are taking per day for a week or so, independently of the records on the PBX. I’m confident that I’ve got it right, however, and actually quite pleased the information that I have been able to calculate given that Asterisk CDRs aren’t all that great to work with.

Assuming the project gets full approval following testing my intention is to get it running on a Raspberry Pi, which can be strapped to the back of the screen or on top of the projector, or indeed easily hidden in the ceiling in either case. Given that modern screens and projectors come with USB ports they will even be able to supply power to the Raspberry Pi. This means that the screen or the projector, whichever is chosen, represents the largest cost of the project as the Raspberry Pi eliminates the need to dedicate a whole PC for the purpose. My research indicates that the Raspberry Pi is capable of running Google Chrome, so that’s all good.

Screenshot of the system during a quiet period (no calls in the queues)

Uncategorized

London 2012 Olympic Games

After a seven year journey, arguably more if you believe that it was all inspired by the success of the 2002 Commonwealth Games in Manchester, the ultimate sporting tournament has now come and gone from London, Paralympics notwithstanding. For most of us this was a once-in-a-lifetime event, which had not happened for 64 years previously and may well not happen again for a similar amount of time. I thoroughly enjoyed it from start to finish, much much more than I expected to. For a long time I was very cynical about the whole thing, believing that Britain would, like it does so often with things, embarrass itself my making it “a little bit shit”, and that hosting the Olympic games was an extravagance that an already disproportionately privileged capital city simply did not need, but I am happy to stand proven wrong. I didn’t watch the Olympics at all before Beijing, not even the ceremonies. I watched some of Beijing, but with London I had it on the television at every opportunity.

Opening Ceremony

Everyone said that the opening ceremony couldn’t possibly top that of the Beijing games in 2008, but nobody really agreed on which metric should be used to compare the two. The Beijing ceremony was an over the top and ostentatious display, designed deliberately to be virtually impossible to follow in terms of expense and scale. Only China ever could and would do that. London’s opening ceremony, however, was not inferior to this spectacle in my opinion. It told the world the story of how Britain came to where it is now in a hugely tender, original and humorous way and I think that Danny Boyle created an utter masterpiece. Certainly, he deserves a knighthood much more than Gary Barlow does for organising a pop concert on the Queen’s driveway. I was  in tears by the time the five forged rings rose up, and I was set off again when the cauldron was lit. I thought both parts were utterly beautiful. I’m just a big softy, really.

My own silly sentiments aside, I think the best review of the opening ceremony came from Sarah Lyall in the New York Times, who writes:

“Britain presented itself to the world Friday night as something it has often struggled to express even to itself: a nation secure in its own post-empire identity, whatever that actually is… It was neither a nostalgic sweep through the past nor a bold vision of a brave new future. Rather, it was a sometimes slightly insane portrait of a country that has changed almost beyond measure since the last time it hosted the Games, in the grim postwar summer of 1948.”

However, not all was good with the opening ceremony. It was all absolutely brilliant, right up until the very last moment when they wheeled out Paul McCartney. Up until that point the underlying theme and message of the London games, “Insipire a generation”, had been rammed home, since this was the premise on which London was originally awarded the games. We had just seen seven young athletes light the cauldron instead of the usual washed-up old sports star that other countries normally use. They did this with torches literally passed on to them by established Olympians, all heralding and symbolising the start of a new generation. They followed this by pushing out Paul McCartney, an old man from the past who can’t sing properly any more and whose face is falling off his head, to sing a frankly boring song that the world has heard countless times. I can only think that his segment was included to please a United States TV audience. It was very obviously out of place, a huge and awkward elephant in the room, and I think it was a mistake. Critically, however, aside perhaps from not relieving the idiot that is Mitt Romney of his ticket to the ceremony and giving it to a soldier, it was the only mistake.

In case you were wondering, Mitt, this “tiny island that makes stuff nobody wants” produced Sir Tim Berners-Lee. He invented the World Wide Web. Just thought you ought to know. Danny Boyle thought you ought too.

Events and medalists

God save the King

The success of securing the games as hosts is one thing, but it was only half the story of Great Britain’s success at London 2012, and arguably the easier half. More important is the outstanding performance by Team GB. Great Britain won the most medals for 104 years, and the 1908 games don’t really count as that was during the Empire days, meaning that the medal haul was skewed by the fact that we owned a third of the world and its athletes. The medals came thick and fast, allaying any fears that “home games nerves” might affect performance. I have such huge admiration for Olympic athletes, they train all day every day for years at a time and aren’t interested in the glamour, wealth and fame that other sporting occupations readily provide. With this in mind one questions why David Beckham seemed to get so much attention before and during the games.

The congratulations also go beyond Team GB of course. World records seemed be being broken every day by athletes from all around the world. The bar was set very much higher than it was in Beijing. Rebecca Adlington only secured a bronze medal this year, despite swimming faster than the time that gave her a gold in Beijing. Michael Phelps smashed to smithereens the longstanding record for the most number of Olympic medals won by one person previously held by the Soviet Union.

Closing Ceremony

The closing ceremony always plays second fiddle to the opening ceremony, but for good reason. It is supposed to be a more subdued affair, formally closing the games with the extinguishing of the Olympic flame and the passing of the flag to the next host city. Aside from these standard features in any closing ceremony programme, the rest of it left me rather underwhelmed. Again, as with the Jubilee concert in June, they wheeled out more of the same usual suspects that we’ve seen time and again, including George Michael, an ageing drug-addled convicted drink-driver who cynically used the event to promote his new single. I don’t really think that he is an appropriate person to “inspire a generation”. I also thought that we’d all got over The Spice Girls 15 years ago, apparently not. The whole thing felt like a Brit Awards ceremony from the 1990s.

I watched the closing ceremony in 3D, as it was one of the few programmes that are part of the BBC’s trial of 3D broadcasts this year. I would have watched the opening cermony in 3D too, but there were three other people in the room and only two pairs of glasses. Whilst I enjoyed the 3D broadcast I did not understand why the BBC used different commentators to those on BBC1. I would have preferred Huw Edwards, instead of whoever it was who was on BBC HD, whose sidekick could barely string a sentence together. I would also suggest that the BBC HD commentator, who claimed that the closing ceremony was the first time “anyone outside Brazil” had seen the Rio 2016 logo, does not yet have access to Google Images and should probably do something about that.

Controversial issues

Despite the success of the games it would be odd if I didn’t mention some of the more controversial issues surrounding them. I won’t dwell on them too much, relatively speaking at least, but these are the ones that annoyed me the most (there are more, but less annoying):

  1. Cost: London 2012 ended up costing more than four times the original budget put forward by the former Labour Olympics Minister Tessa Jowell, an eye-watering £9,100,000,000. Despite this, LOCOG triumphantly announced that they had brought it all in “under budget” by a few hundred million and Tessa Jowell was made a Dame in return for underestimating the cost of hosting the games by a factor of four.
  2. Sponsorship and brand protection: Make no mistake, I fully appreciate and understand the requirement for sponsorship from large corporations with deep pockets for the Olympic games, even if that does mean ridiculous things like peddlers of cheeseburgers and sugary drinks getting exclusive rights to distribute both in the Olympic park. However, corporate sponsors didn’t fund the vast majority of the games, tax payers did, and if it was supposed to be “the peoples’ games” (the “people” being its major financial benefactors) then if the people wanted to put up a representation of the Olympic rings in their shop window that wasn’t approved/sold by LOCOG, or put that absurd 2012 logo on their blog then they damned well should have been able to without fear of going to jail.
  3. Tickets: I didn’t apply for any tickets, chiefly because I didn’t like the idea of LOCOG helping themselves to random sums of money from my bank account at random times for all or a random selection of tickets for which I virtually had to beg online. If any commercial company tried to sell tickets or any other type of product using this model they would be immediately closed down by trading standards and no bank would ever provide them with merchant services. I saw no reason why LOCOG should have been exempt from this. Even setting those issues aside, I simply didn’t have a few hundred quid to drop on tickets to an event that I probably wouldn’t have been interested in, or a few thousand for a ticket to an event that I might’ve actually enjoyed. Home games or not, the £700 I spent on my television represented much better value for money and I was able to see many more events from the best sofas in the house. Had I bought tickets I would have also been even more aggrieved than I was when I saw all the empty seats which Lord Coe then gave to students and teachers, instead of nurses and firefighters.
  4. Bus drivers: These greedy arseholes demanded and were awarded an extra £500 just for turning up for work during the games, and yet despite this were still unable to not kill anybody.

Legacy

I truly hope that the London games has the impact on the country that has been promised. This isn’t just because I want to see value for my tax money, but because I actually do. The Olympics is arguably the largest and most important regular worldwide event, involving more countries than are members of the United Nations, all of whom come together for two weeks every four years for the same purpose and goal. If that doesn’t have some sort of lasting impact on a country that hosts it then what will?

Could someone of my age possibly see the Olympics on home soil again? Possibly, but not especially likely. While it is true that there were only 12 years between the 1984 Los Angeles and 1996 Atlanta games the United States is not typical in terms of size and wealth, and so this statistic is arguably skewed. More or less a “double award”, this would have also impacted New York’s 2012 bid. If Madrid get awarded the 2020 games it will mean that 28 years will elapse between Barcelona in 1992 and those games, which is a little more realistic but not so long that most people who lived through the 2012 games in London would not get to enjoy, for the sake of argument, a re-run in 2040.

Maybe by then I’ll have saved up enough for a ticket to the opening ceremony.

The floozy in the jacuzzi gets a good view of the big screen in Birmingham’s Victoria Square

Uncategorized

Diamond Jubilee 2012

The Queen’s 60th Jubilee celebrations took place over the weekend of 2nd to 5th June. Although my primary focus for this weekend was Birmingham Pride, I also took time to enjoy these celebrations, which, although not once-in-a-lifetime like having the Olympics hosted on home soil, are rare in that they only happen once every ten years. I remember my late mother being very much into the Golden Jubilee celebrations  in 2002, the same year in which she later died, whereas I was quite indifferent to them. Since then I’ve become more patriotic and royalist and so this time I took more of an interest, for these reasons and also because my mother no longer can.

I put bunting out on the balcony and I watched the television coverage of the events during the weekend. I was appalled as many others were at the shocking BBC coverage of the river pageant, but I won’t dwell on that. There’s every change that Queen Elizabeth will spend another ten years on the throne and so the BBC will have a chance to make amends. Unfortunately because Birmingham Pride was taking place during the same weekend I was unable to attend a street party that my family was involved with in Walton-On-Thames, which was a shame, but I couldn’t miss Pride given that I was more heavily involved with it this year.

I wasn’t too sure about the concert, however. It’s not like we need any more reasons to give the usual celebrity suspects more air-time, we get more than enough of them as it is, and the whole Gary Barlow angling for a knighthood thing was just plain crass. He also isn’t going to get it, his concert may well have been held on the Queen’s driveway but it’s going to be nothing compared to the Olympics opening ceremony in July. That all said, respect to the Queen for allowing it to take place, even if she did show up late!

Respect to the Queen from me doesn’t end there. I think she is an outstanding asset to this country. She may well have led a life of absolute privilege but that does not mean she does not work hard for this country and care about it. I also think that she’s become much better at this over the past fifteen years since the death of Princess Diana, demonstrating consistently that the monarchy has the ability to modernise with its subjects. The British monarchy is the envy of the world and no other monarchy can hold a candle to it, indeed, most other monarchs around the world are unpopular despots. Nothing could be further from the truth with ours, and I hope that these ridiculous Republic people saw that laid bare during the royal wedding last year and the jubilee celebrations this year.

Uncategorized

Birmingham Pride 2012

Last year saw my first Birmingham Pride, after having spent seven years living in Manchester and having Manchester Pride on my doorstep. I enjoyed it, but only to a point, as last year I was living out in the sticks of Sutton Coldfield and was not properly able to immerse myself in the event to the degree to which I had become accustomed during my years in Manchester. At the end of it I vowed to myself that I was enjoy Birmingham Pride 2012 much better, having set myself the goal for moving into the city centre in the year that followed.

I achieved that goal five months later, and so this year I was able to deliver on the promise I made myself and I had a Pride much more along the lines of what I am used to, being able to dip in and out of it and be able to quickly and easily return to my home base as needed and use it as a rendezvous point for with my friends. Indeed, I am fortunate enough to actually live on one of the streets that the parade passes down. Although I could have viewed it from my sixth floor balcony I chose not to and instead view it from the roadside with everyone else of course. I was grateful for the handy access to a toilet once it had finished, however.

Enormous Glide banner outside iHost (formerly DV8)

This year I got much more involved. The company I work for, Glide, sponsored the iHost bar. We paid for the events banner on the outside of the building and also branded up the inside of the bar, where some well known DJs from Birmingham and Manchester played classic house all weekend. The bar was constantly busy from morning right through to when the main club opened and beyond. It’s impossible to measure any direct impact on sales or web traffic, and that was never our intention, the whole point of the exercise was brand proliferation and given how much it cost Glide definitely got bang for buck and we received a lot of respect from our industry peers for having got involved.

Outside the “Glide Pride Bar” Pride itself was much like it was last year except for one major difference and that was that this year was the first year that an entrance fee was levied for the “entertainment arenas”. Up until and including last year Birmingham Pride was the largest free music festival in the United Kingdom, but at a tremendous cost to the local businesses who paid for the main stage, the cabaret tent, the dance tent and other entertainment features. The rest of the event was largely funded by various grants, including generous support from Birmingham City Council and West Midlands Police. This was not sustainable, however. Many believed that the venues who put on the entertainment were able to pay for it out of drinks takings, but these takings did not cover the cost, and so it was decided this year that although the Pride event itself would remain free (unlike for example Manchester Pride, where you need a ticket merely to enter the village cordon), there would be a £10 charge for the entertainment to cover the cost of running it.

James makes Jon his honorary boyfriend for the weekend

There was outcry over this from some factions, typically skint students who expect everything for free anyway, so that came as little surprise. I had no problem paying £10 for the weekend (although admittedly Glide paid it for me, I wouldn’t have otherwise hesitated) and I noted that it had the added benefit of dissuading less desirable Pride “guests” who had been known to spoil previous events from coming. As one drag act Baga Chipz put it succinctly, “it keeps the fuckin’ riff-raff out”. I spent most of the weekend in the Village Cabaret Tent as this was the most entertaining and social of the venues. I didn’t care much for the main stage acts. On Saturday I went to Poptastic, a well-established club night run by a friend of mine in Manchester who was running it for the first time ever at Birmingham Pride.

I had proper Pride blues the day after. I always do after Pride, I used to get them when I lived in Manchester and went to Manchester Pride too. It’s always a sign that I’ve had a good weekend. I don’t know if I’ll go to Manchester Pride this year or not. I didn’t go last year and I can’t honestly say I really missed it. If I do go it’ll all be very last minute.

More photos on Facebook.

Uncategorized

Python SimpleHTTPServer

I don’t use Python on a daily basis, barely at all in fact (knowingly), but I stumbled across a handy purpose for it today which I see myself using. Type this command in a Linux shell or a Mac OS terminal and it will start a local web server on port 8000 using the current working directory as the document root and sending access requests to STDOUT:

python -m SimpleHTTPServer 8000

Potential uses include:

  1. Developing local web applications on the local filesystem which use no server-side processing but do use Javascript and AJAX calls that a web browser would not normally allow without starting it with special flags (anyone who’s seen “XMLHttpRequest cannot load $RESOURCE. Origin null is not allowed by Access-Control-Allow-Origin” in their error console will know what I’m talking about).
  2. Quickly sharing a directory with a colleague on the same network rather than uploading files to a shared resource such as a file server or e-mail system. Obviously you’d need to ensure that whatever port you choose is allowed in your local incoming firewall if you have one.

There’s even better news for PHP users. PHP 5.4, released this week, includes a built-in web server which can be started with an equivalent command. The advantages of this of course is that it’ll also process PHP scripts instead of being limited to static files.

1 2