
I was fortunate enough to work backstage at this year’s Glastonbury which meant that I avoided the mud, the high prices and the discomfort of camping with thousands of punters. Some might argue that I wouldn’t have had the true Glastonbury experience, however when you’re in the press pit watching Crowded House, Leonard Cohen, the Verve and Amy Winehouse, these criticisms seem trivial.
Not that I especially liked any of the artists above. The fact was that as 120,000 people crammed themselves towards the Pyramid stage to glimpse a coloured dot bounce around on a very large screen, I sipped chilled beers behind the cattle fences. Largely oblvious to the struggle of the masses, I adjusted my complimentary earplugs with relative nonchelance.
I don’t feel the need to ramble on about the excitement and diversity of Glastonbury - the people, the food, the art and the various ‘villages’ - where you can do anything from learn to make wooden cutlery to meditate with modern day druids. My only reaction to the time I spent there, even counting the hours I was working, was that it wouldn’t displease me in the slightest if everyday of my life was like a day at Glastonbury. It would exhausting yes, but holy crap it would be fun.
Check out the BBC’s photostream: many photos of which I took and, to nearly all of them, added comments to.
Posted in Travel | 1 Comment »
At my left, a 40-inch television with 600 cable channels. To my right, the cold remains of a deli sandwich. Outside in the heat, traffic snakes and shoots through walls of sunlight; horns in a constant state of beeping almost as if to shout out to the world: “I’m alive! I’m alive in New York!”
If Paris is a city for walking, then the Big Apple is one for skipping: mainly because you get around faster and at the same time, you can display an air of optimism (while hiding deep-seeded depression) that only the US can pull off.
Fortunately you don’t have to skip everywhere. Thanks to the subway and grid system of Manhattan streets, getting around New York is piece of a generous serving of your favourite cake (which, by the way, you probably get on every corner along with a bucket of watery coffee). The only hassle is trying to not get sidetracked by the mayhem. Smiling traffic conductors screaming at cars to move along; diners brandishing “All day burritos and jugs of beer”; flocks of garbage trucks; and of course, the thousands of people from everywhere and, judging by the mixture of fashion, everywhen.
New York could be described as London pushed into a tube and stood upright, sprayed with essence of extrovert. But it’s best not to make comparisons. This city is exciting in its own skin and I’m just about to walk out the door of my west mid-town apartment into the thick of it. More later.
Tags: new york, Travel
Posted in Travel | No Comments »
The smell of roasting rubber from the metro is a mere tickle compared to the hammering of fresh bread, seafood and cheese. Looking up to the grey sky, you don’t feel so bad as you would on a similar day across the Channel.
You’re in Paris.
What can be whittled from this majestic stick of French gold that hasn’t been said before? The streets are wide, the food is delicious and the people are French. Walking the streets, you feel as if you were in one colossal museum - there are monuments, ancient buildings, lively artist corners and French people everywhere. Like England, the hangover of lost colonial power is apparent in France, but it’s done with so much style; you can forgive them their pride and lose yourself in a empirical reverie of wine and fragrant butter sauces.
Far from being snobbish and rude, the people are warm and only happy to help you if you give their language a go. Every day I witnessed a tourist bark orders in English to a stunned service worker. In a bakery one afternoon I saw a man demand a badine in English and, with his arms stretched out, indicate the width of the loaf he had in mind. The teenager behind the counter, probably with a good level of English, was either too offended or too amused to react. The man looked and, probably to her, sounded like a zombie with a brand new Nikon strapped to his drooling head. Just before things hit melting point, a woman standing in line translated, the zombie got his bread and retreated. Imagine if a French person did that in Australia: they would be immediately sent to a detention facility and deported the following decade.
So determined to play by the rules, I stammered out what remained of my French language skills and surprisingly, I got by relatively well. Some were flattered that I’d taken the time as an anglophone to even open a French grammar book, which is a bit of a polite exaggeration but it was a nice compliment nonetheless. The folk selling trinkets beneath the Eiffel Tower and those trying to scam money weren’t so appreciative when I told them to fuck off.
In the areas where tourists tend to congregate you are guaranteed to be approached by someone asking you for money, directly or indirectly, at least once every 15 minutes. I learnt to ignore pleas of “Do you speak English?”, but there was one trick I’d never seen before - someone would pretend to pick up something from the ground in front of you, a ring or a coin, and then present it to you as if you’d dropped it. Insisting that you take the trinket, they congratulate you and then proceed to ask you for money to compensate them for having brought such good fortune upon your package holiday.
Va te faire!
Tags: paris, Travel
Posted in Travel | No Comments »
Now that the sun has come out and my employer’s training budget is large, I’ve decided to revist Flash and get my Actionscript skills up to scratch.
The last time I used Flash, as a naïve gen Xer looking to embrace the web, it was in version 2. Which sucked. But it was fun to fool around with things which, back then, were thought of as impossible to do with JavaScript and CSS alone such as smooth animation, timelines and pretty colours.
These days you can manipulate sound, images and video to such an extent that it’s made Flash the most ubiquitous piece of web software out there.
Not to mention that Flash skills are becoming more and more sought after from a Frontender.
So my quest starts with a very simple image gallery written nearly entirely in Actionscript (2.0 because we only have Flash 8 available to us at the moment) that reads the contents of an xml file.
The next step will be to write a class that builds thumbnails on the fly to an interactive thumbnail scroller for better browsing. At the moment you can only navigate left and right by hovering over the image itself.
It’s basic, but it’s a start for me back into the cool world of rich media.
Check out the simple image gallery.
Tags: actionscript, flash, gallery
Posted in Development rants | No Comments »
Well, here’s a little tip for you if you didn’t know already. Some people say that there are a couple of ways of declaring functions in JavaScript and you can go to town doing one or the other (depending on your tastes) because they do precisely the same thing.
Well they do and they don’t.
Tell me why this will work:
<html>
<head>
<script type="text/javascript">
noodles();
function noodles() {
alert("Do you like noodles?");
}
</script>
</head>
</html>
And not this:
<html>
<head>
<script type="text/javascript">
noodles();
var noodles = function() {
alert("Do you like noodles?");
}
</script>
</head>
</html>
The second example will return our favourite word: undefined.
Maybe obvious to you, but not to me when I first got on the bandwagon. You see the browser will look at all function declarations (that is, the function in the first example) first and think, “Hey, these might be useful!” and then proceed to store them in a little hidey hole for use later. Then it will go on and do everything else. So when the browser encounters a call to a function it already knows what to do.
In the second example, we’re just assigning a function to a variable, which is great, but the browser has to know about it before we execute. In other words the execution must come after the variable declaration. It’s like trying to do this:
alert(noodles);
var noodles = "I love noodles!";
It’s just something to keep in mind.
Posted in Development rants | 1 Comment »
Here’s an exercise we were taught in writing school to help free our minds from the conciseness and blandness used by politically-correct trogologytes with nothing better to do than to force us all to use non-figurative, monosyllabic grunts expressly devised to be comprehensible to a sock puppet.
What you do is think of someone you know well and write ten metaphorical sentences about them. It starts by thinking:
“If my friend were a vehicle, what type of vehicle would he/she be?”
The answer might be something like:
“She is a wheat harvester on its back wheels.”
The idea is taken from a poet, whose named I cannot remember, who used this device to describe English poet laureate, Ted Hughes.
For example, here’s one I made up about a person I know:
His shoulders are two oversized furcoats, draped over a telegraph pole.
His voice, a shotgun ringing through a bowling alley on a Saturday night.
His eyes blink over an early evening at the equator.
He uses his nose like a vacuum cleaner sucks up marbles.
As you can see, you can create a fairly vivid image of a person through the association of ideas. My example is rubbish, but give it a go, it’s not only simple but fun - like throwing a hair dryer in the fish tank.
Posted in General musings | No Comments »
Spewing out Youtube videos on to your page has just become easier. Now you can load, control and search Youtube videos using nothing but JavaScript and a bit of patience. I know, I know. Your excitement is palpable through my DSL exchange.
So what can you do? You can embed two players onto your page:
- The chrome player - with all of Youtube’s standard controls
- The chromeless player - you guessed it, with no controls
For some, probably sane reason (although I’m yet to ascertain why), when using the chrome interface you cannot load new videos into the same player using the loadVideoById function, which is available to the chromeless player. Therefore if you would like to employ this highly useful method and be able to control playback, you have to build your own controls. Fortunately, the API methods make it rather easy.
Having nothing to do one rainy day, I decided to give it a go. My motivation was related to the fact that we go to a lot of parties but neither I nor my lazy friends are bothered to bring music and whine incessantly if we have to change a CD. Given the wealth of music videos on Youtube these days I thought that I could make a rudimentary jukebox so that you can play and cue music at will, even when plastered on tins of lager.
Naturally, it will play whatever video you feed it, but I don’t really want to watch some inane mashup of the Star Wars movies dubbed to a Linkin Park sountrack or other shit. One application that I thought might be rather splendid would be to create a playlist to join all the parts of a movie or TV episode. I am grateful to all the folk who take the time to splice and upload these treats but, by no fault of theirs, it’s a chore to click to the next part every nine minutes and twenty four seconds.
Here’s my first attempt. Of course I will excuse myself with the following:
- it’s alpha
- code review to come
- design change inevitable (maybe in the shape of a jukebox, that would be original)
- predictably, I couldn’t give a wet sock if it worked in IE6
- ideas for the future: saveable playlists, editable playlist order using sortable behaviour, auto-download of next video for smoother playback, fullscreen (or bigger at least), save /cache searches, tally favourites, plug into last.fm for recommendations, get artist data from musicbrainz, blah blah
At the very least, it’s great for listening to music at work.
Posted in Development rants | No Comments »