Displaying Your Latest Blipfotos on a blog or website

2

Category : technology

As you may see on the right, I’ve written a small script that also you to embed your latest blips from Blipfoto on a blog or website. Follow the instructions below to do the same on your site. You can have it up and running very quickly.

1. Get an API Key

Your site needs to have an API key to enable it to contact Blipfoto and identify itself. There is a simple form to fill in here. Once you have completed that, you’ll get an API key. It’s a long string of letters and numbers. Keep that handy, you’ll need that in a minute.

Note that the API key will expire after a month. Once everything is setup and working to you can make everything ‘live’ – it will get reviewed and your key will be made permanent.

2. Add the Code To Your Site

Step 1

Download this Javascript file.

Then edit it to put your API key and your username as the variables at the top, viz:

var apikey="<API Key>";
var username="<username>";
var numBlips=1;

numBlips is the number of blips you want to display. They will be displayed as a column, one on top of the other.

Save the updated file as blipfoto.js and upload to your site.

Step 2

Add this script to the page you want to display the thumbnail on by adding the following between the <head> & </head> tags. If you’re not sure, put it immediately before the </head> tag.

<script src="blipfoto.js"></script>

Note, if you are using the script it a blog or similar, you want to specify the full URL path to the script file so you don’t have issues with directory structures etc.

Step 3

Find where on your site you want to put the thumbnail(s) and insert the following code.

<div id='latestblip'></div>

Step 4

Find the <body> tag of your page and add:

onLoad="loadThumbnail()"

so it looks something like:

<body onLoad="loadThumbnail()">

Your body tag may already have other tags, you can add the onLoad alongside those. If you already have an onLoad trigger, just add the call to loadThumbnail() with a ‘;’ in between.

That’s it! Load the page and your latest blip should appear as a thumbnail which is linked directly to the page on Blipfoto.

Once you’re happy everything is working, go back to your application page on Blipfoto and indicate you’re ready to go live by clicking the button. Your site will then be reviewed and, all being well, your API key made permanently active.

You can add any styles you like to the <div> the image appears in and, if you’re the tinkering sort, you can play with the code that generate the thumbnail code to do something else or even add more info from the API such as number of views etc.

Thanks to Graham and the guys at Blipfoto for their help putting this together.

If you have any issues or thoughts on other stuff to do with this then give me a shout, either by email or a comment below.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Twitter
  • Posterous
  • StumbleUpon
  • Tumblr
  • Add to favorites

World Cup Memories

Category : zeitgeist

Not long now until the start of World Cup 2010 and, as ever, I’m very much looking forward to it. I love the World Cup. But I have sensed over recent weeks that not everyone does. I started thinking about why I liked it so much and many, many memories flooded back. I thought I’d scribble them all down. A rare lump of autobiography here, but hey, it’s the World Cup.

Preface

Understand this spotty youths, you didn’t always get a lot of football on the TV. The occasional international, a Cup Final or two but nothing like the blanket coverage we get now. Therefore, in the 70′s and 80′s a World Cup was like finding an oasis in the desert. Suddenly, every day was live football day until, the sad day after the final when it’s all over. Lost and alone, 4 years never seemed so long.

The World Cup, especially when Scotland played, was always a big enough deal that house rules changed too. Curtains were closed to lock out the harsh summer sun and the couch was actually swung round to get a better view of the TV. I kid you not, we moved furniture for the World Cup, that’s how much we cared.

One other aspect to consider. As a young boy I was an avid collector of information and stuff. When I went on holidays I would always return with bags of leaflets, postcards whatever. The World Cup is an information burst, you get a wallchart, you collect scores, scorers, brilliant. And don’t get me started on the Panini stickers… (unless you have Kenny Dalglish in which case I’ll swap you for a Johnny Rep and an Alan Rough).

The Early Years

I was born in 1970 so youth robbed me of memories of my first two World Cups. 1970 was obviously a cracker and 1974 was great for the Cruyff turn alone. A great attempt from the Scots too, still I think the first team to get punted out without losing a game. Only us.

1978

Cordoba, 3rd June. Many thousands of miles away, I was 8 and at my Auntie’s house in Mayfield, cross-legged in front of the TV. This was it. My first World Cup game and Scotland were in it. And you know what? We were going to win the whole thing too. Brill. Ok, so that was a bit ridiculous, but if you look back at the squad, it would certainly make the current crop of players look like Whitehill Welfare.

The youthful expectations were further reinforced by Joe Jordan putting us in the lead and much celebration ensuing. Only to come back down to earth with first an equaliser, then a missed penalty and then Peru taken control of the game and winning 3-1.

I can’t lie. I cried the tears of the destroyed dreams of youth. Weren’t we supposed to win? Sure someone said that.

I don’t really remember much about the Iran game. Which probably sums it up very well. Suffice to say, we drew and didn’t manage to score a goal ourselves.

The Holland game has long since moved into legend. Snatching glory inside the jaws of defeat. Not an easy thing to do but we managed it. A game remembered for Archie Gemmell’s goal but the memory that has lasted the 32 intervening years is what happened when Archie stepped up ( that’s what you do with penalties, you “step up” ) to take a penalty. I remember very vividly my Mum running to hide in the kitchen. She couldn’t take the tension. She didn’t care about the football, she was entirely worried about how much I would cry if he missed. She was great my Mum. Luckily, he scored and I didn’t cry but, have to admit, I nearly am now as I type.

Let’s not forget how great the Dutch were in that World Cup and the final itself was quite a spectacle. Can vividly remember the enormous amount of paper they scattered on the pitch at the start. Messy business, not unlike Mario Kempes’ hair.

1982

Probably my favourite World Cup. Here’s why. Scotland did their usual. We horsed New Zealand, got stuffed by Brazil and conspired to lose an eminently winnable game against the USSR (remember them kids?), thank you Messrs Hansen and Miller. The Brazil game was obviously the big one, best team on earth (ignoring forthcoming results) facing up to some of the best perms ever. And we even had the audacity to take the lead. I had a large bar of Cadbury’s Dairy Milk for half time. Then up stepped the most unlikely long range shooting demon, Dave Narey, to rattle one in the onion bag. Cue living room hysteria. When it settled down, I took my chance “So, does that mean I can have my chocolate now?”

But the Scotland fun isn’t really the main event for me in 1982. Half way through the competition or, to be absolutely precise, just after Kevin Keegan and Trevor Brooking came on for England against Spain, we left the house to go to Majorca on holiday. So, I spent the remainder of the World Cup in the host country.

Even better news was that hotel we were staying in had a small cinema (it may not have been that grand, I was 12 and from Wester Hailes, it looked like the Kodak Theatre to me) and it showed all the games. Between that and the Phoenix machine, my holiday was pretty much perfect. Unbelievably, Marvo the Memory Man can remember the name of the hotel we stayed in, here is what Trip Advisor thinks about it now.

In that very hotel, I watched with amazement as Italy beat Brazil in the semi final. That particular Brazil team were astonishingly good and really shouldn’t have lost but they had their pockets picked by the deadly finishing of Paolo Rossi.

The second semi-final was a sublime French team against Harald Schumacher‘s German shock troops. It was at night and we were at this bar ( go memory boy! I also learned to swim in the pool there ). I didn’t get to watch the game, but as the night wore on, more and more people were wandering inside to the bar, drawn to the match unfolding on the TV. Getting to hang about in a busy, loud bar at 12 was enough of a novelty in itself but hearing the screaming and mayhem when Battiston got clattered was something else entirely, very memorable and still one of the worst refereeing decisions ever. Schumacher should also not be forgiven for his hair.

The night of the final arrived and using some weird “we’re on holiday” rule, I didn’t get to watch the final. We ate out and were walking round some marina or other when I couldn’t take not knowing any more. Yes kids, no Internet on phones, like, what’s that all about? I took the plunge and approached some people outside a bar to get the latest score. Unbelievably, I managed to find a couple of large German gentleman who answered me with a very robotic sounding “Italy are leading two zero”.  Presumably Marco Tardelli had only just done his mad celebration. I scurried off.

That was 1982. Fab. Don’t worry, the detail level will paradoxically reduce the nearer I get to the present day.

1986

This is where the Scotland part of the story starts to go downhill and qualifying alone was our glory. If your only real highlight is Gordon Strachan mocking himself for being small you know you are not primed for the heights of sporting achievement. That said, as we approach our third game against Uruguay, the elusive second round qualification was still in sight. We settled down to watch the match on a very sunny evening. My Mum, no longer concerned about any impending tearage was outside washing the car. After a minute, a crazy Uruguayan halved Gordon Strachan and got sent off. Playing against 10 men for 90 minutes, surely? I ran to the window and shouted downstairs to my Mum to let her in on the impending glory. She was right to appear unmoved. We drew 0-0 and were on our way home again. That’s what you get for starting with Paul Sturrock up front. And they say Sir Alex Ferguson is the best on the business? Which, of course, he is, but perhaps not then, tough assignment.

The memories of this World Cup started before it started. I watched the game against Wales on my black and white portable in my room. It was the night Jock Stein died. I also remember being allowed to watch the play-off against Australia which followed in English at school. A rare moment of football related pleasure at Heriots.

The stand out game for me was between France and Brazil. France had the glorious midfield of Fernandez, Giresse, Tigana and Platini. They would have been an amazing team if they had any decent strikers. Again, I watched it in my room with my girlfriend at the time. It ended with France winning in a dramatic penalty shoot-out, great game and notable enjoying it with a girl. How does that work then?

Of course, most readers will remember 1986 for the Hand of God goal but I remember that game more for how startling Maradona was at his best. The 1986 final was good too, a resilient German team getting back to 2-2 before the better Argentinians finally triumphed. Karl-Heinze Rummenigge scored for Germany, he had been a bit of an overhead kick idol. A skill I never did any good at, despite a forest of bruises and bumps.

1990

If Scotland had been fairly poor in 1986, a Peru-like defeat to Costa Rica marked 1990 as another glad just to be there moment. What we would give for that now. Least said about Scotland the better. My 20 year old self was more ready for the horrors on show so wasn’t quite a bewildered as Murdo Macleod was by the end of it.

1990 was the year when, as a Scotland fan, you either got drawn into England’s performances or not. I have to say I did. There were some great games and an awful lot of luck before the eventual defeat on penalties to Germany.

If you want to look for something bad about the World Cup then the 1990 Final pretty much sums up all up. Yes, I’m mainly talking about you, Jurgen.

1994

No Scotland in the USA and after such a long run of appearances that was a bit of a shock. But the highlight was all Scottish, Ireland beating Italy was made in Glasgow.

The main memory was undoubtedly my first ever attempt at Fantasy Football with a startlingly well run competition in my work. It started with a hilarious auction of the players, presided over by the peerless mcgenius. My only tactic was to buy the German goalkeeper, Bodo Illgner. Which I did, to the detriment of the rest of my team.

1998

1997 had not been a good year. Very much hope never to have another like it. So, the return of Scotland to the World Cup and starting against the holders Brazil had to be made special. I made a particular point of watching the game with my Dad so I took the unprecedented step of watching the game with him in the only/worst pub in Wester Hailes. Just to wind my Dad up a bit, I turned up to go to the pub wearing a Brazil shirt. It caused a fair amount of hilarity and, as expected, we lost.

I didn’t see much of the rest of 1998 World Cup. What I did see was brief glimpses of games on small portables in Ward 1 of the Sick Kids. I managed to get a TV to myself for the Scotland game against Morocco. I wish I hadn’t. Watching Scotland lose so badly at that time was particularly bad. Not a great time generally. I vividly remember trying to watch the England Vs Argentina game on a small TV on the other side of the ward. Surreal.

A special mention goes to Denis Bergkamp for his goal against Argentina. Still one of my favourites ever.

2002/2006

I’m bored myself now, so let’s speed this up a bit.  Despite being the nearest in time, I struggle to have too many vivid memories of these World Cups. Suppose it shows that when you’re enjoying live, you don’t need things like football to pick up you. Obviously, a continued lack of Scottish presence doesn’t help.

2010

So, what of this year? I’m really looking forward to it. If the likes of Messi, Iniesta and Torres do the business it should be very good. Also, my daughter is 6. This could be the first World Cup she remembers. So the cycle continues. Better get some Dairy Milk for half time.

( and all this just to avoid watching Britain’s Got Talent, sheesh )

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Twitter
  • Posterous
  • StumbleUpon
  • Tumblr
  • Add to favorites

PhotoBlog : @NtlMuseumsScot Museum of Flight

Category : photography

A glorious Saturday out at the National Museum of Flight at East Fortune. Here are a few of the photos from the day.

Concorde

The main attraction is obviously Concorde. Well preserved in the hangar but it’s not the brightest place to take photos.




The dizzying array of buttons in the cockpit.



The compact interior.



The new 707 exhibit lets you get a good angle from the tail end.



But you can’t can’t get a great angle on the nose.

Other Stuff




A view of the military hangar.



One of my favourites, the Messerschmitt Me 163 Komet, the first (and last really) rocket plane.



A bit more HDR fun with an engine close-up.



A moody hangar interior shot.



And another one.



Interior of a BAC 1-11



Last but most, the Avro Vulcan.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Twitter
  • Posterous
  • StumbleUpon
  • Tumblr
  • Add to favorites

The Miracle of E-Commerce

Category : zeitgeist

Last Thursday I decided to get a wee Blu-Ray to watch on Sunday night. So, I dived onto Amazon, quick order and as I used Amazon Prime I get quick delivery. I did pause and wonder if I would be better to order on Friday but went with moment.

Amazon were super quick and I got the email saying it had been dispatched that night. And, unsurprisingly, when I arrived home on Friday, I found I had missed the Citylink delivery and they would retry the deliver on Monday. I greedily ordered a book with the Blu-Ray so I think this may have caused it to go via Citylink, not sure.

Anyway, Monday came and went and as it was a bank holiday, no delivery. Lo and behold, I clearly missed the re-delivery on Tuesday. So, here I am, on Wednesday with a card in my hand staring at the wonderful detour home via the wonderful ( I have to say that for family reasons ) Citylink depot in Livingston ( if I didn’t work in Livingston this would be really very painful ).

So, six days after my order, despite everything working as per plan, I will eventually have my order in my hand. And it is pretty much all my fault for going out to work.

This isn’t a complaint. Both Amazon and CityLink did everything you’d expect of them. I’m writing this out to demonstrate to myself that I need to think more about these things. I was in the Gyle on Saturday, for a couple of quid more, I would have already seen the film I wanted to see on Sunday night.

If I had waited and ordered it on Friday ( and trusted Amazon to be quick, which they were ), I might have got it in Saturday ( although I’m not entirely sure as Citylink didn’t retry on Saturday ). Had it been ParcelForce, I could have picked it up on Saturday morning ( maybe, I may have got the mysterious “it’s not back yet” thing that they do sometimes ).

If I had only ordered the Blu-Ray would I have had it by now? Maybe not, I seem to remember that when Amazon deliver via ParcelForce they ask for a signature.

There appear to be two options. I order Blu-Ray’s from Play.com and they’ll fit through the door without a signature or I get some big box with a lock on it and say “put deliveries in here”.

The unspoken third option of “buy it in a shop” – well, that’s just not done is it?

I’d like to think there will be a better solution to all of this in future. I think it may come when I retire.

*edit : 18:34 – I forgot to go to the depot on the way home! Doofus, roll on 7th day!

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Twitter
  • Posterous
  • StumbleUpon
  • Tumblr
  • Add to favorites

PhotoBlog : Who’d have guessed? Sunday @EdinburghZoo

Category : photography

Hadn’t planned to go to the zoo this Sunday but I saw the news about the new baby Tapir so thought I’d go along and see if I could grab a shot.

Sadly, a grey, drizzly Sunday but delighted to say that Kamal the baby Malaysian Tapir made an appearance.

As ever, click on any image to download hi-res for free from MorgueFile.




This is the baby Tapir is question. Very cute little guy, seemed very happy bouncing about his enclosure.



And this is his Mum, looking as odd as any Tapir. Pretty funky nose arrangement.



This is one of the two very rare Sumatran Tiger’s in the zoo. This is the male, if you’ve seen him you’ll know this is his good side.



Another rare cat at the zoo is the Amur Leopard. It was eating a lot of grass.



Had a bit more luck with the chimps of late, I watched this guy as he went outside and he was nice enough to turn round.



This wasn’t a great shot but a little bit of tinkering made it sad and moody. I love the chimp’s faces, need to try and get some in better light.



The otters were preoccupied with a piece of mesh they had acquired from somewhere.



First decent shot I’ve managed of the Buff Cheeked Gibbon. This is the female. What you can’t see in this shot is the baby she is carrying around her waist.



Lots of Gentoo Penguin chicks on show. This was the youngest chick I saw, can’t be very old at all.



More King Penguins. I liked this shot as it looked like they were ‘flying’ in formation. Which amused me.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Twitter
  • Posterous
  • StumbleUpon
  • Tumblr
  • Add to favorites