News for hackers. Stuff that matters.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by gkoberger on Tuesday March 22, 2011 @10:04AM (#2354363)
Some info about it:

* Like Firefox, it is open source! http://github.com/potch/glow

* Counter was started this morning at 6am PST.

* Each dot represents one download.

* Map is generated using SVG, "pings" are divs with rounded corners, country radial charts are canvas.

* The bars across the bottom shows downloads per minute.

* You can drill down to the city level, to see how many downloads from your town. (Click the bottom left circle graph)

* Created by Matthew Claypotch (http://potch.me) and Jeff Balogh (http://jbalogh.me) on the Mozilla Web Dev team.

[edit: added open source information]

Re:Mozilla Glow: Awesome Firefox 4 live download day map by gkoberger on Tuesday March 22, 2011 @12:46PM (#2355173)
Whoops, I was wrong about the pings. It now uses canvas, not <div>s. For a while it was using a bunch of <div>s for performance reasons, but now it's using all canvas.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by gluegadget on Tuesday March 22, 2011 @12:12PM (#2355008)
Wondering where did you get that map. Caspian sea is missing.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by potch on Tuesday March 22, 2011 @03:54PM (#2356139)
The map was generated using continent-level shapefiles (I believe from here: http://pubs.usgs.gov/of/2006/1187/basemaps/continents/). We stuck with continent-level outlines because adding country boundaries would have needlessly complicated the SVG, and borders can sometimes be disputed and controversial things :)

It would have been nice to have the great lakes and caspian sea, because they're such large features but with a team of two webdevs, some things have to wait until version 2.

Re:Mozilla Glow: Awesome Firefox 4 live download day map by khafra on Tuesday March 22, 2011 @01:46PM (#2355454)
Also, there's a ton of downloads coming from a point in Northeast Siberia where, as far as I can tell on Google Maps, there isn't so much as a log cabin. Mapping anomaly, or giant, secret military base?
Re:Mozilla Glow: Awesome Firefox 4 live download day map by jbalogh on Tuesday March 22, 2011 @03:45PM (#2356091)
The svg was generated from the shapefiles here: https://github.com/potch/glow/tree/master/shapefile. I need to ask potch where the shapefiles come from.

Inner regions like lakes weren't included since they would complicate the svg without a lot of benefit.

Re:Mozilla Glow: Awesome Firefox 4 live download day map by fluidcruft on Tuesday March 22, 2011 @12:24PM (#2355061)
Also missing the Great Lakes in North America.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by ajays on Tuesday March 22, 2011 @10:45AM (#2354583)
> Map is generated using SVG

I thought the map was a static PNG image: http://glow.mozilla.org/maps/world_4.png

Edit: I stand corrected. I missed this call: http://glow.mozilla.org/maps/world_4.svg

Re:Mozilla Glow: Awesome Firefox 4 live download day map by gkoberger on Tuesday March 22, 2011 @10:48AM (#2354595)
Depends on your browser. If it supports inline SVG, you should see an SVG map.

http://grab.by/9C5w

Re:Mozilla Glow: Awesome Firefox 4 live download day map by sambeau on Tuesday March 22, 2011 @01:07PM (#2355262)
Was it inspired by the original Zeus Global Load Balancer UI?

(seen top-right here http://www.zeus.com/products/global-load-balancer/index.html)

Re:Mozilla Glow: Awesome Firefox 4 live download day map by jbalogh on Tuesday March 22, 2011 @03:47PM (#2356102)
I've probably seen that picture before, but it wasn't a direct inspiration. We had a map like this for Firefox 3.6, so glow is a mix of that plus a little WarGames and Tron.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by sambeau on Tuesday March 22, 2011 @05:16PM (#2356538)
I only mentioned it because I thought you guys were using Zeus's Global Loadbalancers to distribute the load around the world. (Oh, and because I designed and built the original web-frontend for Zeus with little-lights-blinking-on-the-james-bond-baddy styled map).
Re:Mozilla Glow: Awesome Firefox 4 live download day map by DEinspanjer on Tuesday March 22, 2011 @06:04PM (#2356737)
We do use Zeus LBs. I am happy to report that one of the cogs that made this machine work much easier was the fact that we could have our zeus clusters send out remote syslog events for the site traffic in addition to the normal log files. That made it easy for us to use rsyslog to filter the data and aggregate it to be consumed by the app.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by jedsmith on Tuesday March 22, 2011 @10:29AM (#2354497)
Pretty good GeoIP, it seems; do you know where the GeoIP data comes from?
Re:Mozilla Glow: Awesome Firefox 4 live download day map by DEinspanjer on Tuesday March 22, 2011 @10:45AM (#2354576)
http://www.maxmind.com/app/ip-location

We perform the lookup using the binary database and the Java client directly off of the web request and only store the location in HBase so we don't keep the IP around in a database.

Re:Mozilla Glow: Awesome Firefox 4 live download day map by jbalogh on Tuesday March 22, 2011 @10:47AM (#2354592)
The geo data comes from MaxMind. They give us latitude/longitude and country:region:city info.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by dochtman on Tuesday March 22, 2011 @12:04PM (#2354977)
Does it just do long-polling to receive the data? This seems another app where enabled WebSockets support would have been nice.
Re:Mozilla Glow: Awesome Firefox 4 live download day map by DEinspanjer on Tuesday March 22, 2011 @12:59PM (#2355226)
Nope, it is not a push data service. New data files are generated every minute and available to the client to pull down.

While it is possible to set up WebSockets or something similar to do a truly fancy data flow, we preferred to spend our bandwidth resources on making Firefox 4 available for people to download. ;)

Re:Mozilla Glow: Awesome Firefox 4 live download day map by mikepurvis on Tuesday March 22, 2011 @12:57PM (#2355218)
Simpler than that: It just displays the data in 60-second chunks, delayed by sixty seconds. Here's one of the blocks:

http://glow.mozilla.org/data/json/2011/03/22/16/51/map.json

This would actually be an excellent opportunity for http streaming (ie, the forever frame), too. Long polling is great when you're waiting for a singular event, but not so much when it's ongoing data being pushed down.

Re:Mozilla Glow: Awesome Firefox 4 live download day map by teoruiz on Tuesday March 22, 2011 @11:12AM (#2354716)
Are you thinking on open sourcing it?
Re:Mozilla Glow: Awesome Firefox 4 live download day map by gkoberger on Tuesday March 22, 2011 @11:13AM (#2354726)
Already done! We open source everything we do.

http://github.com/potch/glow