August 5th, 2008
Well I finally finished my first draft on my guide on how to generate panoramic images with Hugin, Enblend, Autopano-sift and GIMP.
The guide is available here
This is one of my best images I created. Its a panoramic image of Avoriaz taken in 2007.

This is another I took in Avoriaz a few years before.

Tags: 2007, avoriaz, guide, howto, panorama, panoramic, photographs
Posted in Snowboarding | No Comments »
July 27th, 2008
Well I finally got around to adding the ability to comment on every photograph.
Feel free to give it a go.
Neil
Tags: Blog, photographs, status, update
Posted in Programming | No Comments »
July 23rd, 2008
I recently had a problem that I was using printf with %E and doubles, but when I did a scanf to read the values back it they always failed.
I couldn’t figure out the problem, till I realised that %E, scientific notation, isnt supposed to be used for doubles.
Its very surprising that printf works one way, but the scanf doesnt work on the way back.
I wrote this little test program. It clearly shows that you should always is &lf when reading and writing doubles.
#include <stdio.h>
int main(int argc, char** argv) {
const char * str = "-1.234E003";
double d = 0;
// check scanf
printf(" scanf\n");
sscanf(str, "%E", &d);
printf("%%E = %lfE\n", d);
d = 0;
sscanf(str, "%G", &d);
printf("%%G = %lf\n", d);
d = 0;
sscanf(str, "%f", &d);
printf("%%f = %lf\n", d);
d = 0;
sscanf(str, "%lf", &d);
printf("%%lf = %lf\n", d);
// now check printf
printf(" printf\n");
printf("%%E = %E\n", d);
printf("%%G = %G\n", d);
printf("%%f = %f\n", d);
printf("%%lf = %lf\n", d);
return 0;
}
When you compile this and run it you get this
scanf
%E = 0.000000E
%G = 0.000000
%f = 0.000000
%lf = -1234.000000
printf
%E = -1.234000E+003
%G = -1234
%f = -1234.000000
%lf = -1234.000000
Clear the printf works fine but the scanf cant cope with the doubles.
I’m not sure whether its documented what should happen when you use the incorrect printf or scanf variables (e.g %d) with the incorrect argument type (i.e float not a integer).
Tags: c, cpp, double, issue, printf, Programming, scanf
Posted in Programming | No Comments »
July 11th, 2008
I finally got around to uploading all the photographs from our Hintertux 2008 snowboarding trip.
The video will follow. I have nearly processed it all, but there is a hell of a lot of footage.
Here is just a select few images

Woody knackered after a late night

Cheesy Coz

Ben Sitting

Mike Posing
The full gallery is here
Tags: alps, hintertux, holiday, mountain, Snowboarding, summer
Posted in Snowboarding | No Comments »
June 18th, 2008
Well I got the Lech photos online and now the Avoriaz 2008 holiday photographs are online.
The gallery is here.
There are lots of photographs but most of them are very good.
Myself, Mike, Steve P and Steve W all went, but Steve W broke his back at around 11am on the first day. This means there isnt alot of Steve W.

This is one of Steve W before the accident.

Mike ready to go.

Steve waiting for Mike.

Where were we?

Steve and Mike bombing down.

Steve W working hard.

The view down into Avoriaz
Tags: avoriaz, holiday, Snowboarding
Posted in Snowboarding | No Comments »