Archives for January 2011
You are currently browsing 2 articles posted January 2011.
Coding Music
Published Friday 7th of January 2011
I like to listen to music when I write code and I think I'm not alone so I thought I'd share my favorite coding albums, songs and artists with you all.
I find instrumental music is the best to code to as it doesn't interrupt your thoughts the way lyrics can do. That's why I almost exclusively listen to jazz, classical music and soundtracks when I code.
Some of these albums are not instrumental but in a language I don't understand which is also ok :)
Obviously I use the absolutely brilliant Spotify so all these albums are available there.
Be the first to post a comment
New jQuery Plug-in
Published Tuesday 4th of January 2011
I recently wrote a little plug-in that helps with creating progressively enhanced Google maps.
The way it works is that you, as a user, create a static Google map using the Google Static Maps API and then simply run the plug-in on a parent-element of said static map which will in turn replace the static map with a dynamic one.
Setting up a static map is as simple as creating an img element and setting the src attribute to the static map API's URL:
<img src="http://maps.google.com/maps/api/staticmap?center=59.33961,18.080712&zoom=15&size=440x200&sensor=false&markers=59.33961,18.080712" alt="" />Doing it this way assures even users without JavaScript gets a map and you only have to do it once. The plug-in reads the attributes found in the src of the img and generates the JS-map based on those.
It's still in beta and doesn't support everything but do have a look.
Be the first to post a comment