I've been using Mapstraction in work over the past few months and now my current project has come to an end I've generated a few Subversion patches of my changes, which include:
- JSLinting the source
- Adding simple namespacing (read "hacking in") with backward compatibity "pollute" mode
- Adding ability to execute event handlers in a particular scope along with a general rework of the event implementation to allow easier extensibility
- Fixing several bugs with the Multimap implementation
- Adding new and refining existing JSDoc comments
Files
Should probably point out that I'm not part of the team that maintain Mapstraction and these aren't "official" patches. Hopefully the bug fixes at least will make it back into the repository though.
- Patch for revision 174 to add all changes
- Patch to revision 174 to add all except namespacing
- mapstraction.js rev174 with patches applied
Notes
The namespacing is on by default so to get it to work with an old page you do need to call mxn.activatePolluteMode() first. Additionally there are a few loose utility functions in the mapstraction file that are also within the namespacing. You can get to three of them (metresToLon, lonToMetres and loadScript) from the mxn.fn namespace so if you have been making use of those you'd have to change your code to mxn.fn.metresToLon() for example. I'm not sure which of the other functions in there people would be likely to make use of so I left it at those three to try and minimise surface area but it wouldn't be a problem to add them all to fn.
There is also some backward compatibility stuff in the events implementation. I modified events so that they pass an eventArgs object rather than the arguments individually, that way the signature of all handlers is the same. This is only activated when you pass the third "scope" argument to addEventListener so old implementations should work as before either being passed no argument for move or a LatLonPoint for click.
and selecting "Native Win32 interface for Win NT/2000/XP". Re-run the wizard again from the EAC menu to configure your drives.
After this finishes you get a status log that gives you a quality percentage, AccurateRip confidence and and errors for each track.
Thankfully the very nice people responsible for the
Storage space is only getting cheaper and today you can pick up a 500GB external hard disk, enough for 700 uncompressed albums, for less than £80; the Western Digital
I've recently been going through the yearly trauma of picking a new phone as my free upgrade. It's the same every time - there is never one phone that meets all my criteria so I have to go for the best compromise. The phone I'm upgrading is a Nokia 6680 which is a rather large Symbian smartphone, lacking in both the processor speed and memory stakes. The criteria for my new phone are therefore:
I've only ever had Nokia phones and have stuck with them mainly because they were a lot more usable than other brands. Nokia's current offerings were leaving me a bit cold however so I've been thinking "surely the other brands must have caught up" and indeed Sony Ericsson's sales are topping Nokia's in the UK at the moment. Anyway I thought I'd give another brand a try so I went for a Samsung U600 as I like the look of their sliders and although it's not a smartphone it is from their new "Ultra Edition 2" line so I thought it would meet my needs.
So now I'm back to square one and thinking I'm either going to get a Nokia or another brand only if it's running Symbian so I can be assured of a certain amount of base functionality. So the next two candidates were the Nokia 6300 or the Sony Ericsson W950i - the Sony is missing the all important camera and the Nokia isn't running Symbian so not clear cut by any means. I may have finally found the answer with the Nokia 6120 which is a smartphone, has a camera and is a centimetre narrower and half a centimetre thinner than the 6680. Only problem with this one is that it's not currently available on Orange so I've got to wait for it - Doh!
Well, i'm back. Thanks to Yahoo! and the BBC for a great weekend. It didn't get off to the best of starts what with the lightning and broken WiFi and all but everyone made the best of it.