News for hackers. Stuff that matters.
Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @08:17AM (#2119628)
Re:Maptail.js geoips your tail -f to a map by Ysx on Wednesday January 19, 2011 @12:14PM (#2120449)
Broke! The page is serving as "content-type: text/plain" for some reason.
Re:Maptail.js geoips your tail -f to a map by BonoboBoner on Thursday January 20, 2011 @04:13AM (#2123141)
I have the same problem after installing maptail on my server. All I see I the html as plain text in my browser.

Nevertheless, amazing work!

Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @12:28PM (#2120514)
Not really, just checked in FF and Chrome, it runs nicely. But there are bugs. Hard refresh or try another browser.
Re:Maptail.js geoips your tail -f to a map by JonnieCache on Wednesday January 19, 2011 @08:52AM (#2119712)
Wow. Quite apart from the neat technical aspect of it, the interface is beautiful. Startlingly so.

You should have the IP list link to http://www.yougetsignal.com/tools/network-location/

Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @08:57AM (#2119724)
Thanks to mape for creating the interface which this was based on: http://github.com/mape/node-wargames

That link is interesting. Don't forget this is open source (MIT), so you can fork it and add your own features.

Re:Maptail.js geoips your tail -f to a map by JonnieCache on Wednesday January 19, 2011 @08:59AM (#2119730)
>That link is interesting.

Don't miss the traceroute version as well: http://www.yougetsignal.com/tools/visual-tracert/

Re:Maptail.js geoips your tail -f to a map by shadchnev on Thursday January 20, 2011 @12:22PM (#2124345)
Installed for one of our production servers for InvisibleHand (http://www.getinvisiblehand.com).

- the default 40 minutes dot dying interval is way too high. I changed it to 5 seconds, otherwise the browser was unable to redraw all the dots.

- You'll have to install all the libraries it complains about manually

- It doesn't work with the current stable version of Node.js but if you install 0.3.1 manually, it's ok. I haven't tried the latest unstable, though

- It requires patching if it must be used on EC2: the local interface to bind to and the public IP are different on EC2 but maptail assumed they are the same

Everybody in the office loves how the screen looks, so I emailed the author to discuss if he's interested in joining our company :)

Re:Maptail.js geoips your tail -f to a map by brk on Wednesday January 19, 2011 @09:39AM (#2119819)
Looks neat. I tried it on a couple of servers, just get a "No such file or directory" whenever I try to run it, even with no args.

Not sure if there is a dependency or something in there that is looking for a file where its not.

Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @09:49AM (#2119852)
Try with: node maptail.js <filename>

Something to do with the permissions I think. Dependencies should be reported by node. Everything you need is on npm.

Re:Maptail.js geoips your tail -f to a map by brk on Wednesday January 19, 2011 @10:44AM (#2120044)
Thanks. I hadn't used node before (and so it wasn't installed).

Now I'm getting an error about the express module (rror: Cannot find module 'express'). Some google-fu is leading to helpful information, so your little project is turning into a nice crash-course in node for me. :)

Re:Maptail.js geoips your tail -f to a map by Corrado on Wednesday January 19, 2011 @11:32AM (#2120282)
I'm in the same boat; learning about Node and NPM. However, I am at an enpass with an error about 'isConfigurable' method on the Chaos library. Any clue about how to fix it?

node.js:63 throw e; ^ TypeError: Cannot call method 'isConfigurable' of undefined at Function.seal (native) at Object.<anonymous> (/Users/rnhurt/.node_libraries/.npm/chaos/0.1.6-pre/package/chaos.js:40:10) at new <anonymous> (/Users/rnhurt/.node_libraries/.npm/chaos/0.1.6-pre/package/chaos.js:87:20) at /Users/rnhurt/.node_libraries/.npm/chaos/0.1.6-pre/package/chaos.js:64:40 at /Users/rnhurt/.node_libraries/.npm/helpful/0.0.3/package/lib/login.js:205:23 at Object.<anonymous> (/Users/rnhurt/src/js/maptail/maptail.js:57:5) at Module._compile (node.js:462:23) at Module._loadScriptSync (node.js:469:10) at Module.loadSync (node.js:338:12) at Object.runMain (node.js:522:24)

Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @11:39AM (#2120311)
Must be an incompatibility with the master version of node.js. git checkout v0.3.1 of node.js which is the version I'm using.
Re:Maptail.js geoips your tail -f to a map by sandaru1 on Wednesday January 19, 2011 @12:18PM (#2120466)
Tried on v0.3.5 - works fine after I added a "partials" parameter to boil config on maptail.js line 39.

Otherwise boil.js fails to normalize the path because it's passing an undefined value and path.normalize tries to access "charAt" function of the string.

Re:Maptail.js geoips your tail -f to a map by derwiki on Wednesday January 19, 2011 @12:51PM (#2120587)
Can you be more specific? This is the first time I've tried to use node.js for anything and am very unfamiliar with the environment. I'm running into the charAt problem though, so I think your fix will be my fix.
Re:Maptail.js geoips your tail -f to a map by sandaru1 on Wednesday January 19, 2011 @01:18PM (#2120686)
maptail.js line 43 add following line :

  , partials: __dirname + '/views'
Re:Maptail.js geoips your tail -f to a map by Corrado on Wednesday January 19, 2011 @12:53PM (#2120591)
Same for me. node v0.3.5 gives me a 'charAt' error, however I didn't add a "partials" parameter to anything.
Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @12:55PM (#2120603)
Use v0.3.1
Re:Maptail.js geoips your tail -f to a map by Corrado on Wednesday January 19, 2011 @01:25PM (#2120713)
Confirmed that v0.3.1 works where v0.3.5 does not. :/
Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @11:17AM (#2120195)
Install npm from http://npmjs.org so you can then install any package that it reports missing.
Re:Maptail.js geoips your tail -f to a map by brk on Wednesday January 19, 2011 @11:58AM (#2120389)
Thanks. Getting closer. Some random pages I've read seem to indicate that express and npm don't always work well together from an installation standpoint. Your experience show otherwise?
Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @12:09PM (#2120439)
Not valid, npm installs express with no issues.
Re:Maptail.js geoips your tail -f to a map by kordless on Wednesday January 19, 2011 @10:54AM (#2120093)
Node is perfect for this type of realtime application. We'll be using it (and/or mongrel2) at Loggly to do realtime feeds of events matching a search so people can build apps like this.

I did a Poly9 mashup when I was at Splunk which did something similar.

I yove your overlay of the events as they come in. Good work man!

Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @11:04AM (#2120139)
Thanks, the interface is all from mape's wargames, I just connected the wires.
Re:Maptail.js geoips your tail -f to a map by jaredstenquist on Wednesday January 19, 2011 @02:33PM (#2120920)
Running into an issue:

Error: Cannot find module 'helpful/login'

Any ideas?

Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @02:35PM (#2120931)
npm install helpful

http://npmjs.org

Re:Maptail.js geoips your tail -f to a map by ubuntuftw on Wednesday January 19, 2011 @03:44PM (#2121206)
YES FINALLY!
Re:Maptail.js geoips your tail -f to a map by stagas on Wednesday January 19, 2011 @03:45PM (#2121207)
Congrats! :) Any weird issues?
Re:Maptail.js geoips your tail -f to a map by ubuntuftw on Wednesday January 19, 2011 @04:44PM (#2121397)
I was just looking at the demo. Haven't tried installing it on my own server because I'm traveling at the moment. Can't wait though.