the latest eagle Shell scripting articles
JSON for Ajax
July 26th, 2010 by Richard Holland
JSON is so much easier to work with in Javascript than XML. This makes it perfect for coding responses from AJAX-backed web services. An example JSON data structure: { ‘projects’:[ {'ID':'1','Type':'StrangeProject','Members':['Joe','Jim','Jane']}, {‘ID’:’2′,’Type’:’NiceProject’,’Members’:['Richard','John','Joe']} ] } And here’s how to parse it in Javascript (myJSONData is a text string containing the above structure, e.g. lifted directly from…
Building an Ensembl .deb
July 21st, 2010 by Richard Holland
Quick one today – we’ve been asked to build a .deb containing the same Ensembl installation as can be found in our EagleBrowser product. Turns out to be easier said than done! Whilst the basic specifying of package dependencies and provision of bugfixed/modified source code is easy enough (the modifications are to remove references to…
Random bash shell tidbits
July 9th, 2010 by Richard Holland
This is probably common knowledge, but worth repeating since it saves so much time. 1. If you’re typing a long list of commands that all end in the same parameter, e.g. a username, you don’t need to keep on typing that last parameter out every time. Instead, type !$ in its place and bash will…
Creating Amazon EC2 AMIs – the basics
July 7th, 2010 by Richard Holland
This morning at the Codefest 2010 I was asked to give an impromptu presentation about the basics of getting an EC2 image up and running. Here is a brief summary of how it all works, using the command-line tools. Of course you can use the EC2 console as it can do it all for you,…
Download brochures