Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Colonol Dekker on June 23, 2014, 09:24:58 am

Title: Explain the google globe thing
Post by: Colonol Dekker on June 23, 2014, 09:24:58 am
http://www.chromeexperiments.com/globe

Can we do an HLP chart on it?
Title: Re: Explain the google globe thing
Post by: Luis Dias on June 23, 2014, 09:29:40 am
wwwwwwhyyy
Title: Re: Explain the google globe thing
Post by: Colonol Dekker on June 23, 2014, 09:42:36 am
wwwwwwhyyy

Because we already have the  Clustrmap (http://clustrmaps.com/counter/maps.php?url=http://www.hard-light.net).

Thought it'd be a nic eendeavour and looks a bit 21st century yo boot.

edit - Who's the pirate off the Madagascan coast?
Title: Re: Explain the google globe thing
Post by: Sandwich on July 02, 2014, 05:51:19 am
I might actually be able to hook this up using visitor data to the frontpage, but unfortunately I have no idea how I'd hook into the forums and get lat/long from SMF.
Title: Re: Explain the google globe thing
Post by: Colonol Dekker on July 02, 2014, 05:54:50 am
 :blah: Well if anyone can, the fine admin team here can. I have the utmost confidence in you guys. :yes:
Title: Re: Explain the google globe thing
Post by: pecenipicek on July 03, 2014, 04:16:02 pm
I might actually be able to hook this up using visitor data to the frontpage, but unfortunately I have no idea how I'd hook into the forums and get lat/long from SMF.
geoip db of some sort and match that regionally maybe?
Title: Re: Explain the google globe thing
Post by: Sandwich on July 04, 2014, 02:50:25 am
geoip db of some sort and match that regionally maybe?

Indeed, that's how it's normally done - it's just not a process I know how to do from scratch. :)
Title: Re: Explain the google globe thing
Post by: pecenipicek on July 04, 2014, 11:53:24 am
i could offer my services, would be a fun thing to try and do...

(3-4 years of total work in php, a year and something profesionally, if experience matters)

[edit] after looking at the code, it should be relatively trivial. preprocess the data, spit it out, call it a day :p
Title: Re: Explain the google globe thing
Post by: Colonol Dekker on July 04, 2014, 01:49:59 pm
Is that a challenge accepted?
Title: Re: Explain the google globe thing
Post by: pecenipicek on July 04, 2014, 02:52:03 pm
Is that a challenge accepted?
Its a challenge done (http://egzodus.com/dir/hlpGeoLoc.7z).

First off, grab the globe folder off of here (https://github.com/dataarts/webgl-globe)
Then, grab the GeoLiteCity (http://dev.maxmind.com/geoip/legacy/geolite/) binary db.

unzip my zip somewhere where php is available on the path, unzip the geolitecity database from its zip there, keeping the name as-is.

put the globe folder wherever, keeping in mind, you need to server the json over the web or run chrome with a specific command-line ( cant load local files from javascript, unless with a commandline which eludes me, this is only for chrome AFAIK )
overwrite index.html with the one i provided.

now create a file called ip.txt in the same folder as hlpGeoLoc.php and put in IP addresses one per line.
after that run php hlpGeoLoc.php on the commandline, hope nothing blows up

take globe.json and drop it in the same folder as the index.html, refresh the page and it should work.


if its too much work atm, send a list of ip's to me and i'll host it on my end somewhere. (probably hlp.egzodus.com/globe or smth)

also, if you want it prettier, drop a pm.
Title: Re: Explain the google globe thing
Post by: Colonol Dekker on July 04, 2014, 06:13:05 pm
 :eek: :yes:

I applaud your efforts. I look forward to trying to get this working with my limited skill :nod:
Title: Re: Explain the google globe thing
Post by: JCDNWarrior on July 04, 2014, 07:40:32 pm
EDIT: Looks like my response got placed in the wrong thread, my apologies.

I don't have anything about the Google Globe initiative at this point to add.
Title: Re: Explain the google globe thing
Post by: Colonol Dekker on July 05, 2014, 05:18:42 am
Don't fret.

Fancy giving it a go while you're here?

edit- just checked the clustrmap stats. I realised i've moved from the London tally to the Essex one. sadfaic.
Title: Re: Explain the google globe thing
Post by: pecenipicek on July 15, 2014, 12:41:19 am
So, Sandwich, any luck getting this to work, now that you ended up being unrecruited? :D