story so far at Php UK 2010

Posted on February 26th, 2010 by thiswayup.
Categories: Development.

Wow, wish I got home a bit earlier last night after the PHP social. Don't believe I crashed out finally about 2am after chatting to a few people including Jeremy about various things relating to coding, organising conferences, stories from PHP NW 09. But before all that there was an interesting chat about designing a REST api and saying how bad the twitter api was, more Php Hip Hop and also some guy ranting about how great Drupal is. Was tempted to jump up and counter with how great Modx is but was enjoying me beer too much and it looked liked people had enough with chats! Going to have to leave that till next month!

Made it to the PHP UK conference today and this morning got to hear Josh Holmes do the keynote talk about "The lost art of simplicity", of course was much more abstract chat but so many elements ring true such as the instinct of developers to over build for something simple. Then went on to hear Stefan Priebsch chat about Anti-php patterns, a talk on bad habits or mi-interpretations of patterns. Then followed to Rowan Merewood on his chat about "Living with legacy code", a talk about how to deal with legacy code when trying to update/integrate it with new code. I always like Rowans code with his great injection of his personal style of presenting and humour. Loved the comic book style slides :)

Just had lunch and I really should mingle a bit more…

ps apologies for any typos and mistakes on this post, the usual amount of checking and editing I would normally do!

0 comments.

How to add an event when googlemaps is dragged and calculate the distance from a previous point

Posted on February 22nd, 2010 by thiswayup.
Categories: dev.

Just to remind myself how to capture the event when the map is dragged AND work out the distance to a previously recorded center point on the map

GEvent.addListener(gmapFn.mapObj,'dragend',function(){
   var ctrLatLng = gmapFn.mapObj.getCenter();
   alert(ctrLatLng.distanceFrom(gmapFn.lastRefLatLng));
});

Very handy! gmapFn.mapObj = the object of the instianted gmap object and gmapFn.lastRefLatLng is a GLatLng. You can quickly get the center of a google map by calling the function gmapObject.getCenter() which returns the center as a GLatLng.

Enjoy!

Update : handy refrence of all the events you can to a google maps listener http://econym.org.uk/gmap/gevent.htm

0 comments.

secret london is live!

Posted on February 16th, 2010 by thiswayup.
Categories: Development, London gems.

Holy crap! I don't believe they did it! The crew at secretlondon.us have just gone live with the site!!!!

Check out the blog entry as well! Glad to see the map working, gonna have to put a few more hours in to make it more amazing!

update – Holy crap! My mug is on tech crunch!

0 comments.