News for hackers. Stuff that matters.
Re:MIT Globe Genie (Random Street View) by blasdel on Tuesday August 31, 2010 @05:19AM (#1648870)
You can't use getImageData within a <canvas> element that has cross-domain data as children. Otherwise it'd be the ultimate cross-site scripting hole!

It's not something terribly difficult — it's something that is completely impossible for a very good reason.

Re:MIT Globe Genie (Random Street View) by bd on Tuesday August 31, 2010 @10:15AM (#1649428)
If only :).

There are ways how to get around cross-domain security restrictions. Long ago, I have done it myself by a simple server-side proxy here (few lines of PHP):

http://alteredqualia.com/visualization/evolve/

About Globe Genie optimization. In fact, I implemented it, sent a patch to the author and it's already live there (check the source code). It cuts cross-network locations validity lookups by about 60%.

Here I didn't do proxy, just fetched a complete set of overlay tiles once and stitched them together with a Python script:

http://alteredqualia.com/tmp/gg_overlay_optimization/data/ov...

It's just a static prebaked lookup map (served from the same domain), though if you really want to have it up-to-date, you could hook up Python script to cron.

All this took few hours (Sunday evening hacking) and was quite fun to do.