[00:00] SubStack: I don't have a problem with a forEach coming after a map
[00:00] polotek: in general I don't have a problem with it either
[00:00] polotek: I think it's a bit much in this instance
[00:00] hunterloftis: polotek: I've also definitely seen map in several of the libs... quite node specific (as opposed to client side), but I think that's the point of the article, right?
[00:01] chrisdickinson: pretty much -- it's kind of a "hey, the old way works, but there are better ways."
[00:01] chrisdickinson: (or terser, or more laconic ways, I guess)
[00:01] polotek: gotta be careful when using the word "better"
[00:01] chrisdickinson: agreed.
[00:02] chrisdickinson: (hence the immediate backpedaling :)
[00:02] robotarmy has joined the channel
[00:02] polotek: I like doing map -> foreach occasionally too
[00:02] polotek: but in your example all you're doing is looping once to create a function and then looping again just to call it
[00:03] polotek: it's a fine example, but I don't think you want people actually doing that in this trivial case.
[00:03] chrisdickinson: makes sense. it seemed like a nice place to note that those array iteration methods could be chained.
[00:05] xla has joined the channel
[00:06] umesh has joined the channel
[00:06] hunterloftis: chrisdickinson: dude. Your article just helped me answer a question I was trying to solve last night, on here. Thanks!
[00:06] chrisdickinson: awesome!
[00:06] perezd has joined the channel
[00:07] noahcampbell has joined the channel
[00:08] hunterloftis: chrisdickinson: Maybe
Not Your Father's JavaScript=2 machines and switch between?
[03:44] sechrist: I can wire my own I'm just positive that somebody has one on the market
[03:44] Aikar: this channels activity level is pretty mild, -dev talk in here wouldnt hurt a thing, #-dev would be dead
[03:45] bradleymeck: male to female headphone switch sechrist?
[03:45] Aikar: sechrist: kvm switch?
[03:45] sechrist: not kvm but similar
[03:45] Aikar: doesnt kvm do usb, just get usb headset
[03:45] sechrist: you're not following me
[03:45] sechrist: I want the same headset on 3 machines
[03:45] sechrist: not usb
[03:46] Lorentz: I think most pre-amps would do something like that, if they have the line switcher feature.
[03:46] Lorentz: Multiple inputs, single output, etc.
[03:46] Aikar: i doubt anyone would make such hardware, your prolly 1 of the 20 people in the world whod want that
[03:46] Aikar: or i guess an audio person might too lol
[03:46] bradleymeck: he wants a single input multiple output
[03:46] Aikar: yea
[03:46] Aikar: he wants a kvm switch but for speaker/headphone ports
[03:47] sechrist: I guess I just have to wire one
[03:47] sechrist: and shield it and stuff
[03:47] sechrist: easy enough
[03:47] Aikar: looking at the docs for the new js stuff, imo yield doesnt really seem that useful but the destructuring stuff looks really handy
[03:47] sechrist: actually I don't need mics -- I have about 30 microphones around me that are built into webcams
[03:48] sechrist: so just headphones really -- that should be easy
[03:48] bradleymeck: sechrist just searching headphone switch in google shopping brought up quite a few
[03:48] philipharrison has joined the channel
[03:48] sechrist: those are generally for toggling though
[03:49] bradleymeck: oh you want all out all the time?
[03:49] sechrist: uhm
[03:49] sechrist: I want three options
[03:49] sechrist: pc 1, pc 2, and pc 3
[03:49] sechrist: I have a linux mac and windows workstation around me
[03:49] bradleymeck: they had a couple with 4 in there i thought *goes to look*
[03:50] sechrist: neat
[03:50] philipharrison has joined the channel
[03:51] sechrist: now when only something exists that does x-trickery amongst multiple machines
[03:51] sechrist: so I can drag mac windows onto windows and vice versa
[03:52] philipharrison has joined the channel
[03:53] philipharrison has joined the channel
[03:55] Lorentz: Maybe even a hardware mixer
[03:55] bradleymeck: i could prolly head down to radio shack and build a decent headphone switcher, but meh
[03:55] sechrist: I was surprised I couldn't find one at a local place called weird stuff
[03:56] sechrist: but I certainly found the components to build one
[03:58] shinmei has joined the channel
[03:58] ron_frown has joined the channel
[04:03] noahcampbell has joined the channel
[04:03] piscisaureus: [02:11|% 100|+ 113|- 47]: Done
[04:04] dgathright has joined the channel
[04:05] ryah_: piscisaureus: good or bad?
[04:05] piscisaureus: well. down from 52
[04:05] piscisaureus: just fixed some child process bugs
[04:05] ryah_: that's good
[04:05] ryah_: can i merge with you again?
[04:05] piscisaureus: umm
[04:05] piscisaureus: soon
[04:06] ryah_: let me know
[04:06] piscisaureus: will do
[04:06] piscisaureus: still have to finish the tty work tho
[04:06] piscisaureus: on windows it's done, but not posix
[04:06] ryah_: yeah
[04:06] ryah_: ok
[04:07] bingomanatee: I'm nearly done with noogle, my node.js IRC channel digester.
[04:07] bingomanatee: Doing a word frequency poll - any Joyent people interested in those metrics?
[04:07] ryah_: pquerna: can openssl understand ssh-style keys?
[04:08] ryah_: bingomanatee: yes
[04:08] bingomanatee: ryah_: I'll keep you guys abreast - hope to have the data by end of week.
[04:08] ryah_: what does it do?
[04:08] bingomanatee: I'm word indexing all the content on debuggable.
[04:08] bingomanatee: Hope to be able to turn a word search in to a thread result.
[04:09] bingomanatee: i.e., once I find a line with a given word, you should be able
[04:09] bingomanatee: to click on that line and find the responses.
[04:09] bingomanatee: Basically trying to turn IRC chat into a limited expert system.
[04:09] sechrist: interesting
[04:09] bingomanatee: yeah - project is at noogle.com
[04:09] philipharrison has joined the channel
[04:10] bingomanatee: You can get the jist of it from github. Most of the hard stuff n terms of searching/polling/stuffing IRC lines into a MongoDB database is done
[04:10] bingomanatee: I just have to work out the ui/search stuff.
[04:10] bingomanatee: sorry project is at github.com/bingomanatee/noogle
[04:11] bingomanatee: arg: https://github.com/bignomanatee/noogle
[04:11] philipharrison has joined the channel
[04:11] bingomanatee: the last link is the right one
[04:11] bingomanatee: When I'm closer to release I'll post a URL where the service can be found and better documentation
[04:11] bingomanatee: Its a good kind of "teaching site" for those wanting to get into MongoDB + Node.js too.
[04:12] bingomanatee: +express.
[04:13] piscisaureus: ryah_: ping
[04:14] bingomanatee: Might be fun to graph out lines per user against time and stuff like that.
[04:14] jetheredge has joined the channel
[04:16] Intel_iX: I would like to thank everyone who responded to my noobish questions.
[04:17] Intel_iX: I now have a working chat.
[04:17] ryah_: piscisaureus: yes?
[04:17] piscisaureus: ryah_: if you ever want to work on tty again, you'll need this:
[04:17] piscisaureus: https://github.com/piscisaureus/node/commit/61dee883de03dce28bf9d8305a1b71b00892e931
[04:18] ryah_: piscisaureus: that's my interface?
[04:18] piscisaureus: yeah. well, if you don't mind
[04:18] robtmr has joined the channel
[04:18] piscisaureus: patch looks intrusive but it isn't really
[04:18] cgutierrez has joined the channel
[04:19] ryah_: piscisaureus: api looks ncie
[04:19] piscisaureus: good to hear :-)
[04:19] robtmr: anyone know whether using the vm module on v0.2.6 is alright?
[04:19] SubStack: NICE
[04:19] piscisaureus: would hate to redo it
[04:20] ryah_: https://github.com/piscisaureus/node/blob/61dee883de03dce28bf9d8305a1b71b00892e931/lib/readline.js#L356-438
[04:20] ryah_: this is much better than it was
[04:21] robtmr: I found I could get at it using process.binding('evals').Script, but I'm not certain whether I _should_
[04:23] Intel_iX: can someone tell me how to set focus on a forum field on page load?
[04:23] piscisaureus: ryah_: the only caveat is that in stdin.keypress(char, key) either key or char can be undefined
[04:23] Intel_iX: oops, wrong room
[04:23] Intel_iX has left the channel
[04:24] ryah_: piscisaureus: the event?
[04:24] piscisaureus: because some keys don't map to a char, and sometimes you don't know anything about the key in a meaningful way (e.g. when u press the += key)
[04:24] piscisaureus: umm yeah
[04:24] piscisaureus: I mean stdin.on('keypress', function(char, key) {
[04:24] ryah_: nod
[04:24] piscisaureus: ryah_: nod back
[04:25] SubStack: what about keydown/keyup?
[04:25] SubStack: browser-style
[04:25] piscisaureus: SubStack: it can't be done on posix afaict
[04:25] SubStack: pesky!
[04:25] piscisaureus: besides, you are not writing a gui app tgat runs in a tty with node, eh?
[04:26] piscisaureus: this keypress stuff is just to make the repl portable
[04:26] jdalton has joined the channel
[04:26] jdalton has left the channel
[04:30] AAA_awright_ has joined the channel
[04:39] AAA_awright_ has joined the channel
[04:39] devdrinker has joined the channel
[04:39] chilts has joined the channel
[04:41] admc has joined the channel
[04:47] k04n has joined the channel
[04:47] k04n: hey, does anyone know how i can use node.js to make a "pass thru" of an http request -- sort of like a proxy -- for instance, i want http://localhost/myapp/123 to return the contents of http://othersite.com/123
[04:48] prettyrobots has joined the channel
[04:50] PyroPeter has joined the channel
[04:53] Qbix1: k04n: should be pretty straightforward
[04:53] k04n: qbix1: yeah, im sure...very new to node.js, just getting my feet wet
[04:54] k04n: i am trying to create an app that is a nice AJAX/HTML5 interface for a more "old-school" website
[04:54] k04n: i want to create the app in node.js and have certain requests to my app pull data from the other site (it has an api)
[04:54] k04n: i do not believe i can have the client side pull data direct from the other site due to cross-domain issues
[04:54] Qbix1: sure. It's just that the resources