When Google Maps go bad…

October 30th, 2008

This week I noticed that a number of google maps had stopped working out of the blue, not dying in a spectacular javascript car crash, just a subdued failure and no map.

Looking in Firefox error console I see G_MAP_TYPE is not defined; - WTF? it was working…

Well looking into it, it is an easy fix. It seems that a lot of people (myself included) have been using depreceated constant names for the maps types, and that there will be quite a few Javascript Plugins (for things like jQuery) that may need updating.

The usual (i.e. correct) types we should now be using now are:

Old Constant name New Constant Name Description
G_MAP_TYPE G_NORMAL_MAP This map type (which is the default) displays a normal street map.
G_SATELLITE_TYPE G_SATELLITE_MAP This map type displays satellite images.
G_HYBRID_TYPE G_HYBRID_MAP This map type displays a transparent layer of major streets on satellite images.
  G_PHYSICAL_MAP

This map type displays maps with physical features such as terrain and vegetation. This map type is not displayed within map type controls by default. (Since 2.94)

See: http://code.google.com/apis/maps/documentation/reference.html#GMapType

For a bit of an actual explanation I found this post on Google Groups

Summer

October 7th, 2008

Everything is looking a bit grey on the page lately. I’ve been meaning to put up a bit of colour for a while, we did have the odd flash of summer I suppose…

A bit like a House

September 10th, 2008

I’m often wracking my brain to come up with good analogies to explain why we should develop things one way rather than another or to try and explain a development strategy to non technical people. Sometimes these people are Clients, sometimes Employers, often Designers (you get the picture).

But the question remains how best do you explain (often slippery) concepts to people who haven’t got a clue what you are talking about, and without resorting to Jargon or Technical Terms?

Lately I have spent a lot of time figuring out how to evangelise various Frameworks; or actually just the concept of a Framework. Specifically I want to spend most of my time at work developing in CakePHP not jury rigged and ad hoc or home brewed libraries built by either myself or others. I think we’ve all been there… very early on as a developer you come to realise that you need organisation. You start gathering together useful classes and functions, maybe you come up with naming conventions.

It’s great your development speeds up, you learn a great deal along the way. Your boss is happy, but then for your next project they want you to do something just a little bit different. You start off no problem, I’ve got all this code, it’s great - it’ll be done in no time… except it isn’t because your system can’t bend and you are stuck writing so much code to deal with the exceptions that your benefits seem to evaporate.

A good framework seems to provide a solution - you get to take advantage of a lot of very smart people, you get the benefit of a community, you learn good practice, hopefully a lot of the mistakes and dead ends have already been avoided. In fact for me probably the worst thing is when I have to work back in mud of projects and systems that have just accumulated over years, the sinking feeling…

I think they key point is that there is a sense of an overview - that everything has a place. The framework buzz at the moment is all about MVC based systems - they have that organisation. What is nice is that looking at something written in say CakePHP or Code Igniter it’s usually pretty obvious what is going on, but even something written in Rails or Django will have familiarity due to the similar structure (my Ruby and Python skills are essentially non existent).

But back to my analogies. I live in a beautiful old cottage that is probably a few hundred years old, but some of it is made of brick, some of it is stone. One wall (we believe) is made entirely of mud (Cobb), there aren’t really any foundations and the house is listed that means we can’t fiddle about too much. Over the years people have added water and gas and electricity but it would have been so much better if they had been planned in from the start.

Of course, if you build a new house you can make something amazing (as long as the architect’s OK).

Dancing Ledge

August 23rd, 2008


Recently I was on holiday in Dorset on day it poured with rain all day long. In the evening I wanted to do for a walk by myself. The rain still hadn’t let up, but at 8.50pm I set off from Tom’s Field anyway, and walked up the hill. I wanted to see the sea.

As I walked the rain and the wind got stronger and stronger and it was getting darker. I reached the top of the hill, but I still couldn’t see the sea, so I kept on walking. the rain was stringing my face so much I had to look down as I walked.

I ran for a bit, but the wind was so strong that I had to stop. My jeans and my boots were now soaked through from the rain so it didn’t matter as I splashed through the deep puddles.

An errant though entered my head - I could go swimming at Dancing Ledge. Conflicting thoughts clashed in my head. It would be pretty cool, but also pretty daft. Swimming in verthat juy bad weather, in the twilight, miles from any other soul. I had an internal battle common sense vs. something else…

I got to the brow of the hill where I could finally see the sea bellow. I still couldn’t see Dancing Ledge, but it was a steep climb of a few hundred feet or so down to the sea. My internal battles continued. I had said I was just nipping out for a quick walk when I left about 20 minutes earlier… so I was aware that time was getting on.

I told myself that I had to at least carry on to stand at the top of the cliff… I had to be as close to the sea as I could. I gingerly made my way down a very dark and very muddy track between Hawthorne hedges and led into a meadow that plunged steeply down to the cliff top.

Conscious of the time, but determined to go on, I started running again until I reached the bottom of the meadow and reached the cliff top - a semi circular ledge taken out of the hillside and floored with naked stone. A series of ledges dropping away to the sea, remnants of the quarrying that made this place.

The sea was roaring and I couldn’t even tell if the swimming hole was already under the tide. If the hole was already submerged there was no way I would be getting into the wild sea. I scrambled down the ledges to get as close to the sea as I could and saw the swimming hole below me on the bottom ledge at the edge of the sea.

I walked along the ledge looking for a way down to the pool, but there was no apparent way down. Eventually I found a kind of narrow crack that I was able to scramble down and then jump left last 3 or 4 feet to the ledge. The pool lay in front of me about 20 feet long a rough rectangle blasted out of the rocks a hundred years ago. A feet passed the pool the ledge ended and the sea began as waves rolled over the ledge and foamed across the surface.

I got undressed and slipped into the water a dart of pain flashed across my shoulders as if all the accumulated tiredness and tension of the year were flushed out of me. I swam a length of the pool and back in the black but surprising warm water. The tide was starting to come in over the ledge and I scrambled out quickly. By the time I got dressed the water was lapping around my boots. I pulled myself back off the ledge and began the long walk back.

Traffic Light Therapy

August 11th, 2008

Just started a new job (so far I’m enjoying it a lot (although it will be even better perfect when I can get a Cake based system (not that what is in place at the moment is bad - on the contrary it is very good - it is just that I am philosophically opposed to it…) in place… (although I really want to use a bit of Django sometime))). What comes with this is much longer walk to the office from where I park the car. My walk involves crossing some very busy and very inconveniently placed roads.

These roads have crossing points and if you are a pedestrian you get to press a button to let you cross, but the buttons do nothing - they have no effect on the traffic flow at all. All I can surmise is that the buttons are put in place purely to give pedestrians a something to do purely so they don’t scream in impotent fury at the traffic.

I know (in my heart) this to be the case, but I push the buttons anyway… out of some faint hope…

I am right aren’t I? The buttons really don’t do a thing?

order accutane cheap online order levitra from canada buy propecia on internet discount propecia without prescription buy levitra in canada order accutane no rx order propecia from canada accutane in bangkok cialis generic buy cheapest cialis viagra tablet order viagra no prescription order cialis no rx propecia in malaysia find discount viagra online propecia for order accutane pill levitra uk order discount levitra buy accutane no prescription required buy generic cialis buy cheapest propecia on line levitra for sale cheapest propecia price viagra from canada buy cheap levitra propecia overnight online pharmacy accutane viagra order find cheap accutane online accutane in malaysia cheap viagra no prescription discount accutane no rx cheap cialis in usa certified viagra viagra no rx required levitra drug cost of accutane buy cialis in us viagra in bangkok order propecia no prescription required buy generic levitra online online pharmacy viagra cheap levitra online order discount levitra online approved accutane pharmacy drug propecia online purchase find cheap cialis online purchase cialis without prescription buy accutane lowest price order viagra in us buy cheap cialis online order discount viagra online viagra cheap drug buy generic cialis online levitra internet cheap price levitra cialis online without prescription levitra india cheap accutane in usa low cost cialis pharmacy viagra buy cheapest viagra buy cialis no prescription required discount cialis no rx order discount accutane accutane pharmacy discount cialis overnight delivery levitra online online accutane buy generic viagra online find cheap viagra online order discount propecia online levitra pills purchase propecia online accutane in uk order discount accutane online buying levitra online order no rx accutane propecia buy drug order levitra no rx find accutane without prescription cheap propecia in canada cheap viagra pill propecia purchase find cheap cialis sale accutane find accutane levitra vendors cheap accutane pharmacy buy cheap levitra online viagra overnight delivery viagra side effects cost of levitra viagra sales accutane overnight buy accutane internet online pharmacy propecia purchase accutane no rx buy cheapest cialis on line buying viagra accutane buy cheapest levitra online buying propecia online viagra rx buy cheap viagra internet generic propecia online cheap propecia from usa accutane no prescription order viagra no prescription required order viagra find propecia order no rx cialis cheap levitra no prescription cialis pill levitra in australia find cheap levitra cheapest accutane online order cheap viagra online compare viagra prices online cheap propecia from canada order levitra without prescription generic accutane cheap cheap cialis from uk accutane pills order viagra no rx no prescription levitra cost viagra order propecia viagra medication online pharmacy levitra propecia cost accutane without rx buy generic accutane online levitra pill accutane malaysia viagra price order cheap propecia pharmacy propecia accutane in australia accutane cheap price viagra overnight shipping generic levitra cheap drug cialis propecia no prescription buy levitra no prescription required levitra from india find accutane on internet best price viagra cialis pharmacy accutane without a prescription order accutane on internet purchase viagra without prescription cialis information buy cheap viagra propecia side effects cheap levitra on internet viagra online order cheap cialis levitra order viagra for sale levitra buy online cialis bangkok cialis purchase accutane free sample discount propecia overnight delivery purchase propecia pharmacy levitra levitra without a prescription low cost levitra accutane buy drug cialis overnight accutane canada viagra in uk generic cialis cialis free delivery accutane online order viagra on internet accutane for sale viagra buy drug buying accutane propecia internet find levitra no prescription required accutane buy cialis pills accutane cheapest price compare propecia prices propecia sales best price levitra cheap levitra in canada cheap cialis no rx cheapest generic viagra online cheap cialis from canada order levitra online free accutane levitra without rx buy accutane on line cialis tablets viagra cheap price buy cheap propecia internet order propecia from us viagra generic propecia buy viagra in us buy cialis from canada buy no rx levitra find propecia online cheapest generic levitra online buy propecia from canada levitra from canada buy viagra no rx discount levitra no rx buy cheapest viagra online viagra free sample find no rx accutane accutane buy online levitra generic buy levitra generic order cialis in canada buying cialis buy cialis from india fda approved propecia find discount cialis cialis overnight shipping levitra pharmacy buy cheapest accutane purchase viagra online buy propecia no prescription required levitra no online prescription order levitra compare viagra prices best price for viagra cheap levitra from canada buy propecia us approved propecia pharmacy purchase cialis find discount accutane cheapest accutane price propecia cheap drug levitra in us levitra without prescription lowest price for levitra buy propecia in canada buying viagra online buy viagra on line levitra price buy accutane us buy propecia without prescription cheap viagra without prescription buy cheapest cialis online cialis cheapest price cheapest accutane order discount propecia cialis in us purchase propecia overnight delivery buy accutane generic certified accutane levitra no prescription propecia india levitra tablet levitra us levitra canada viagra australia order viagra online pharmacy cialis cheap viagra pharmacy viagra pills buy cialis overnight delivery lowest price propecia best price for accutane where to order viagra accutane side effects buy cheapest levitra order viagra from us buy generic levitra buy viagra us where to order accutane no rx propecia drug viagra buy viagra no prescription required find levitra find discount propecia online cheap propecia in usa propecia for sale propecia rx buy viagra without prescription accutane prescription best price for propecia free propecia buy accutane without prescription propecia online review viagra pharmacy order generic viagra cialis generic cialis cheap viagra information accutane cheap drug levitra purchase order cialis in us fda approved accutane discount accutane propecia in australia buy generic propecia online order viagra overnight delivery order propecia cheap online buy accutane from india propecia approved generic propecia cheap compare cialis prices online purchase cialis no rx cheap levitra without prescription order levitra in us cialis canada cheap levitra in usa accutane information discount viagra no rx cheap price propecia viagra pill generic accutane online best price accutane buy cialis internet cheap viagra from uk tablet viagra order cheap cialis online viagra india cialis no prescription cialis without prescription cheapest generic viagra cialis cheap price lowest price accutane order propecia in us find cialis no prescription required order accutane from canada order discount viagra cheap cialis pill buy cialis online cheap find discount viagra levitra australia viagra in us no rx cialis buy cheapest accutane online cialis price overnight propecia order accutane from us buy propecia internet online pharmacy cialis overnight cialis overnight accutane buy viagra online cheap buy cialis without prescription cialis cheap drug buy propecia online cheap viagra malaysia cheap viagra accutane online pharmacy levitra for order cost accutane discount cialis without prescription propecia information order no rx levitra levitra free sample find cheap levitra online buy cialis online cheapest levitra find accutane no prescription required purchase cialis online cheapest propecia online propecia price cheap cialis without prescription order cialis no prescription required cheap propecia tablet cialis in australia order cialis from canada generic viagra online compare levitra prices buy propecia lowest price purchase propecia no rx buy levitra us cialis medication levitra approved accutane vendors cheap accutane no prescription cheapest cialis online find accutane online cheapest viagra drug propecia levitra in bangkok cheap propecia pharmacy accutane generic generic cialis online viagra internet order levitra on internet accutane from india accutane bangkok cialis buy find viagra online propecia no rx required discount propecia cost of propecia online viagra cheap cialis no prescription cialis from canada buy accutane online levitra sales viagra in australia cialis for sale viagra bangkok find propecia on internet cheap viagra from canada viagra without rx viagra from india levitra information propecia without rx cialis india order accutane in canada buy propecia from india purchase levitra no rx buy propecia no rx cheap propecia in uk propecia cheap price propecia pill order propecia overnight delivery buy levitra on internet cialis for order purchase levitra without prescription order viagra from canada cheap accutane in uk buy discount propecia online viagra vendors buy cialis lowest price buy propecia from us cialis malaysia cheap accutane pill viagra drug cialis us cialis in uk cialis uk discount accutane without prescription find discount levitra propecia no rx find no rx cialis order no rx propecia cheapest cialis buy no rx viagra cheap levitra internet levitra malaysia buy generic accutane discount levitra overnight delivery buy viagra from india cheap price cialis cheap propecia internet where to order cialis find cheap accutane propecia malaysia levitra overnight levitra in malaysia cheap accutane from usa cheap accutane from uk