I remember watching trains from this bridge when I first arrived in Edinburgh from Australia. It was cold then too!
Children Watching Train, Edninburgh
Photograph by Vishal Soniji
This photo was taken during my visit to Edinburgh as I was on my way to Edinburgh Castle.
Ah, so eloquent!
Only in Scotland. Photo taken by a friend of mine.
Released a new version of the Agavi framework support plugin for the shiny new NetBeans 7.0. Still depends on implementation versions of the PHP-plugin, so if something doesn’t work, please let me know.
Prebuilt NBM available here, source code here.
UPDATE: Even newer version available here. Should fix a null pointer exception.
(Source: hotvvheels)
Whilst the wedding is a great event for the participants, I am not interested in the slightest. However William was seen last night out on his motorbike in less than adequate gear (squidding) and confirming his continued love for Ducati - some would say at the cost of Hinckley. Triumph being the only mass produced British rival to the big Duke.
Why won't ssh-agent save my unencrypted key for later use? -
I recently was annoyed by always having to enter my private keys passphrase every time I wanted to do a git push to or pull from a public git repository. Turns out that if you are logged into a Gnome session on an Ubuntu machine it will automatically add you key to ssh-agent, but if you are logged into a bash session (as I was) then it won’t.
So you can either manually do the ssh-add yourself or following the instructions in the answer to my question you can setup an automatic way of facilitating this.
One problem I discovered is that if you have git displaying the current branch information in your bash prompt like me then when you start a session it will ask you for your passphrase before rendering your bash prompt.
I am thinking that to work around this I could change the git function in the .bash_profile file to look at the arguments passed to it and if it is a remote operation such as a pull, push or clone then trigger the ssh-add otherwise it can safely skip it.
Any other ideas or patches?
Installing Gearman is pretty easy as there are packages for it in Ubuntu:
sudo apt-get install gearman libgearman-dev
The development headers (libgearman-dev) are only required if you need to compile a library for your programming language such as a PHP extension. To install the PHP module you would run:
sudo pecl install channel://pecl.php.net/gearman-0.7.0
If you have trouble with the above step then it is probably because you are running an older version of Ubuntu. In this case take a look at my previous post Getting gearman to install on Ubuntu.
Moving onto mod_gearman_status, which is an Apache module to show the status of Jobs and their associated workers. It looks like the following:

Firstly lets ensure that the system has the build-essentials package installed:
sudo apt-get install build-essentials
We now need to install the Apache2 development headers, which assuming you installed the standard Ubuntu Apache2 package will be the prefork edition. If you don’t understand this then don’t worry you can just continue below.
sudo apt-get install apache2-prefork-dev
Now download modules C file and run the following command to build it and install it as an Apache module:
sudo apxs2 -c -i mod_gearman_status.c
Apache now needs to be told how to load the module and what configuration settings to use. In /etc/apache2/mods-available you need to create two files.
/etc/apache2/mods-available/gearman_status.load:
LoadModule gearman_status_module /usr/lib/apache2/modules/mod_gearman_status.so
/etc/apache2/mods-available/gearman_status.conf:
<IfModule mod_gearman_status.c> <Location /gearman-status> SetHandler gearman_status </Location> </IfModule>
Enable the module with the following command:
sudo a2enmod gearman_status
Restart Apache to load the module:
sudo service apache2 restart
Now in your browser you can visit http://example.org/gearman-status where example.org is your servers address.
PHP Hangs When Fed 2.2250738585072011e-308 -
A pretty horrible bug when you assign the number 2.2250738585072011e-308 to a variable PHP will hang on Linux or Windows 32bit builds of PHP. This does affect $_GET and $_POST variables as well and as such could be an exploit in some PHP sites.
So the following code will break your PHP for example:
$var = 2.2250738585072011e-308;
Or if a page is given a GET parameter like page.php?param=2.2250738585072011e-308
$var = $_GET['param'] + 1;
//OR
$var = (double)$_GET['param'];
More debate available on http://news.ycombinator.com/item?id=2066084
FullOctane: Bike and Car Blog -
I have setup a site to post all my automotive related discoveries. Currently I have two posts up there about fuel degradation and storage.
Putting motorcycles into storage or “winterizing” can be an involved procedure so I have decide to cover it in a series of posts beginning with the fuel system in the post entitled ‘Winter Motorcycle Storage: Fuel System’.
Continuing the fuel theme the reasoning behind previous post is backed up by a technical article that addresses the question; ‘Why does fuel go stale?’.