[00:04] ecin has joined the channel [00:05] brianloveswords has joined the channel [00:06] nitinb has joined the channel [00:08] replore has joined the channel [00:08] replore_ has joined the channel [00:10] Vertice has joined the channel [00:11] Spion has joined the channel [00:13] nuck: HAHA YES! [00:13] nuck: Got Mongoose's Schemas set up :D [00:13] SamWhited has joined the channel [00:13] bloodsucker_ has joined the channel [00:13] nuck: And this time it isn't broken :P [00:13] Aikar: i thought npm test auto installs dev dependencies? [00:13] jakk has joined the channel [00:13] bloodsucker_ has joined the channel [00:14] neilk_ has joined the channel [00:14] Aikar: how do people handle npm test to auto install testing framework lib, and pref not dropping it in your projs dir for it to be left behind? [00:15] robertfw has joined the channel [00:15] balgarath has joined the channel [00:17] kennberg has joined the channel [00:17] febits has joined the channel [00:22] empt has joined the channel [00:24] jtsnow has joined the channel [00:24] vIkSiT has joined the channel [00:25] vIkSiT: hello all [00:25] vipaca has joined the channel [00:25] vipaca has joined the channel [00:25] CraigMaslowski has joined the channel [00:25] [[zz]] has joined the channel [00:25] vIkSiT: I have a node.js based server (using socket.io) that reads a file and outputs it line by line [00:25] vIkSiT: however, this only works with a single client. [00:25] vIkSiT: I was wondering - what are some examples of multi-client node.js code that deals with something like this? [00:26] DTrejo has joined the channel [00:27] robhawkes has joined the channel [00:27] CraigMaslowski: @vlkSiT what do you mean by only works with a single client? [00:28] eee_c1 has joined the channel [00:28] vIkSiT: CraigMaslowski, let me illustrate with a code example.. [00:28] astacy has joined the channel [00:29] vIkSiT: CraigMaslowski, https://gist.github.com/efa628e4c63af208df0b [00:29] nuck has joined the channel [00:29] vIkSiT: this is an example of what i'm doing. by one client i mean - if I use one browser tab to connect to the server, it works fine. But that particular process is now only serving the one browser. [00:29] vIkSiT: another tab would require some sort of handler - be it another process or thread, or something [00:30] vIkSiT: my question was - since each client is basically blocked on this file, is it possible for me to build something that just "broadcasts" whatever state the file tailer is in to any client which connects? [00:30] JaKWaC has joined the channel [00:31] vIkSiT: CraigMaslowski, (does that help understand my question at all?) [00:31] CraigMaslowski: @vlkSiT never seen lazy before, so not really. [00:32] vIkSiT: CraigMaslowski, what if I was using a pure readstream then? [00:32] CornflakesForTea has joined the channel [00:32] vIkSiT: I'm guessing the issue isn't with the way I read the file, as it is in creating a way for any client to latch on to whatever is being broadcast by the file tailer.. [00:33] CraigMaslowski: have you tried using a pure readstream? [00:33] vIkSiT: not yet [00:33] Nexxy: pubsub the output of the tailing method? [00:34] joe-f2 has joined the channel [00:34] CraigMaslowski: i dunno if lazy is the problem (probably not if you're sure of it's usage), but i'd try a normal readstream and see if it works. [00:34] joe-f2: node_redis is constantly sending error events, and not liking key's with values of JSON.. any workarounds? [00:35] CraigMaslowski: if i understand what lazy is doing though, it looks like you're emitting the message in the right place though [00:36] criswell has joined the channel [00:36] CraigMaslowski: and that should send it to all connected clients [00:36] vIkSiT: CraigMaslowski, hmm [00:38] cjheath has joined the channel [00:39] vIkSiT: CraigMaslowski, question about multiple clients here. [00:40] vIkSiT: If I have one node.js server running like this, won't multiple clients get blocked on such an IO process? [00:40] tilgovi has joined the channel [00:40] tilgovi has joined the channel [00:41] CraigMaslowski: well this is where i'm assuming what lazy does. you should be reading your file asynchronously and sending on the data event [00:42] ditesh|cassini has joined the channel [00:42] vIkSiT: i see. [00:42] vIkSiT: could you also point me to the non lazy way of doing it in node? [00:43] freewil: vIkSiT, do you understand that node is built from the ground up to do I/O asynchronously? [00:43] CraigMaslowski: http://docs.nodejitsu.com/articles/file-system/how-to-read-files-in-nodejs [00:44] vIkSiT: freewil, I do [00:44] slifty has joined the channel [00:44] vIkSiT: freewil, what I'm trying to figure out is - how to read a very large file aysnchronously, and broadcast that using socket.io [00:45] Nexxy: http://nowjs.com/ [00:46] Nexxy: + on data event [00:46] stepheneb has joined the channel [00:47] devaholic: nexxy: have you actually used nowjs [00:48] Nexxy: yeah [00:48] Nexxy: enough to realize I wanted dnode [00:48] Nexxy: ^-^ [00:48] devaholic: did you enjoy yourself [00:48] Nexxy: it was ok [00:48] Nexxy: but still, for what vIkSiT is describing [00:48] Nexxy: nowjs sounds spot-on [00:48] Nexxy: unless I missed something [00:49] devaholic: oh okay [00:49] devaholic: i havent used nowjs [00:49] Nexxy: it's like [00:49] CraigMaslowski: socketstream > nowjs as far as realtime frameworks go, imo [00:49] devaholic: but i read about it back right after they got into or out of yc or whatever [00:49] Nexxy: a toy version of RMI [00:49] jtsnow has joined the channel [00:49] devaholic: i couldnt into it [00:50] Nexxy: CraigMaslowski, I don't really think vIkSiT is describing a "realtime framework" use case [00:50] adam_ has joined the channel [00:50] Nexxy: that's kind of like "Hey I need to cut a piece of cake..." "USE THIS MACHETE!!!" [00:50] vIkSiT: hmm, how do you define a real time framework here? :) [00:51] devaholic: you want to relay a stream that is being uploaded to a bunch of browsers? [00:51] CraigMaslowski: yeah, probably not. SS doesn't quite implement the "magic pocket" like nowjs does. [00:51] mynyml has joined the channel [00:52] dinarcon has joined the channel [00:52] vIkSiT: devaholic, yeap. [00:52] vIkSiT: this could be used to tail a particualr log file, for instance [00:53] Nexxy: or as a node.js shoutcast relay! [00:53] devaholic: you can use hook.io [00:53] vIkSiT: hrm. couchdb based system~ [00:56] k1ttty has joined the channel [00:56] vIkSiT: hmm. CraigMaslowski, freewil , Nexxy - so what I have now uses the default read stream [00:56] vIkSiT: and still no dice on two browsers being able to get the streamed output of that file [00:57] CraigMaslowski: i was just looking at your gist again. have you tried client.emit('message', 'your json string') ? [00:57] CraigMaslowski: instead of client.json.send [00:57] vIkSiT: hmmm [00:58] DTrejo has joined the channel [00:58] vIkSiT: CraigMaslowski, whats the difference there? [00:58] CraigMaslowski: actually, i'm not sure what client.json is. i'm still getting familiar with socket.io myself. [00:59] zackattack has joined the channel [00:59] CraigMaslowski: when i tried to console.log(client.json) in some of my code, i got json is undefined [00:59] CraigMaslowski: so that's why i was suggesting it [01:00] dshaw_1 has joined the channel [01:00] ericmuyser has joined the channel [01:01] vIkSiT: emit is actually a custom Event [01:01] vIkSiT: rather than a message [01:01] vIkSiT: send emits the "Message" event and then the content to go with it.. [01:02] CraigMaslowski: ok, makes sense. [01:04] short_chuck has joined the channel [01:04] short_charles has joined the channel [01:06] shadow_s has joined the channel [01:07] mike5w3c has joined the channel [01:07] shanez has joined the channel [01:07] jacobolus has joined the channel [01:07] weezle has joined the channel [01:08] sneakyness has joined the channel [01:12] kennberg_ has joined the channel [01:12] slyphon has joined the channel [01:12] phiggins has joined the channel [01:12] slyphon: is there a recommended documentation generator? i.e. one that people like/generally recommend? [01:13] brianseeders has joined the channel [01:14] kriszyp has joined the channel [01:14] maqr has joined the channel [01:16] shadow_s: can you do p2p with websockets without involving the server at all? [01:17] abraxas has joined the channel [01:17] dseif_ has joined the channel [01:17] siculars has joined the channel [01:17] jmoyers: shadow_s no [01:18] AvianFlu_ has joined the channel [01:19] jmoyers: there's a p2p section of the current spec on whatwg [01:19] wolftankk has joined the channel [01:19] jmoyers: http://www.whatwg.org/specs/web-apps/current-work/multipage/video-conferencing-and-peer-to-peer-communication.html#video-conferencing-and-peer-to-peer-communication [01:19] nuba has joined the channel [01:19] shadow_s: wow, thanks [01:19] Drakonite has joined the channel [01:20] ceej has joined the channel [01:20] shanez has joined the channel [01:20] jmoyers: don [01:20] minerale has joined the channel [01:20] jmoyers: dont thank me that is, i don't think its actually implemented anywhere just yet :P [01:22] shadow_s: oh, well that's a problem, haha [01:22] shadow_s: i was hoping that socket.io would have something that could simulate it [01:23] marcello3d has joined the channel [01:23] shanez has joined the channel [01:23] enhydra has joined the channel [01:25] ryanseddon: shadow_s: there is a firefox plugin that allows the browser to act as a socket server [01:26] jmoyers: shadow_s well, depending on what you want to do [01:26] shanez has joined the channel [01:26] jmoyers: tranceiving to the server is not an impossibility [01:26] shadow_s: i wanted to create a service to transfer files p2p through a website. it doesn't seem like doing it with a vanilla browser would work [01:26] jmoyers: some guys from like, erickson labs (i think), patched webkit and did a p2p video app with websockets [01:26] elijah has joined the channel [01:26] jmoyers: yeah that will indeed not work [01:27] Isaiah has joined the channel [01:27] jmoyers: https://labs.ericsson.com/developer-community/blog/beyond-html5-conversational-voice-and-video-implemented-webkit-gtk [01:27] jmoyers: requires patched webkit and such because people presumably cant agree on media device management [01:27] willwhite has joined the channel [01:27] antono has joined the channel [01:28] jmoyers: how badly have i wanted a binary video and audio api, and for how long? [01:28] jmoyers: the web moves too damn slow [01:28] stepheneb has joined the channel [01:29] RyanW: There's always flash [01:29] Nexxy: jmoyers, is that your campaign slogan? [01:30] normanrichards has joined the channel [01:30] jmoyers: flash is a poop [01:30] Nexxy: jmcmoyers of the "The web moves too damn slow" party? [01:30] jmoyers: and i implemented streaming audio in flash [01:30] jmoyers: it was a giant bummer fish [01:31] jmoyers: and no, i am generally outwardly very web-optimistic :P [01:31] jmoyers: i only am web pessimistic in the presence of other web developers [01:31] Marcelo has joined the channel [01:31] jmoyers: ;-) [01:32] RyanW: We need this http://www.whatwg.org/specs/web-apps/current-work/#stream-api [01:34] rfay has joined the channel [01:36] H4ns` has joined the channel [01:37] lesterc has joined the channel [01:38] drewolson has joined the channel [01:39] nerdy has joined the channel [01:40] killfill: hi.. [01:41] jesusabdullah: sup? [01:41] killfill: :P [01:41] jimt_ has joined the channel [01:42] JakeyChan has joined the channel [01:42] killfill: trying to see the difference between -F and -d in curl... my little node proxy doesnt like -d.. :S [01:42] joe-f2 has joined the channel [01:43] theCole has joined the channel [01:43] djMax has joined the channel [01:44] djMax: is it possible to add routes from a require() file? [01:44] theCole_ has joined the channel [01:45] bnoordhuis: killfill: -F posts multipart/form-data, -d posts application/x-www-form-urlencoded [01:45] broofa has joined the channel [01:46] shanez has joined the channel [01:47] FearOfMusic: why doesnt readline seem to work with redirection on linux? i got "Error: ENOTTY, Inappropriate ioctl for device" when trying to use stdin and stdout as a source for readline when redirecting a file into it [01:47] FearOfMusic: it isnt a problem if i copy and paste directly into my console though (without redirection) [01:47] galaxywatcher has joined the channel [01:48] bnoordhuis: FearOfMusic: what are you doing exactly? [01:48] perezd has joined the channel [01:49] FearOfMusic: bnoordhuis: im trying to parse a file using readline... readline.createInterface(process.stdin, process.stdout); [01:49] dmkbot: joyent/node: 03Southern: process.nextTick error, or 'error' event on first tick -- TypeError: Cannot read property 'length' of null - https://github.com/joyent/node/issues/1698 [01:49] killfill: does application/x-www-form-urlencoded has something special?... [01:51] bnoordhuis: FearOfMusic: right, readline expects a tty [01:51] bnoordhuis: what are you trying to parse from it? [01:51] bnoordhuis: killfill: it only works on even days with a waxing moon [01:52] Remoun has joined the channel [01:52] FearOfMusic: its just plain old text basically [01:52] weezle has left the channel [01:52] bnoordhuis: FearOfMusic: so why readline? [01:52] eee_c has joined the channel [01:53] FearOfMusic: im dealing with natural language... one sentence per line [01:53] hacksparrow has joined the channel [01:53] FearOfMusic: why cant readline use a file anyway? seems kind of odd to me [01:53] bnoordhuis: readline is an interactive prompt [01:54] killfill: :P [01:54] bnoordhuis: it's the base for the REPL [01:54] d_low has joined the channel [01:54] killfill: i gues i should put a simple example of what i see.. :P [01:54] bnoordhuis: killfill: that would help :) [01:54] _jhs has joined the channel [01:55] FearOfMusic: huh [01:55] _jhs has left the channel [01:55] FearOfMusic: the documentation just says it "takes two streams"... which i would think means file streams [01:55] jtsnow has joined the channel [01:55] oatkiller has joined the channel [01:56] oatkiller has left the channel [01:56] FearOfMusic: http://nodejs.org/docs/v0.4.11/api/readline.html#rl.createInterface [01:56] bnoordhuis: FearOfMusic: yes, the documentation is somewhat confusing [01:57] broofa has joined the channel [01:57] FearOfMusic: what is the reason for not allow any old file stream to be used? [01:58] FearOfMusic: i mean maybe its potentially easy to fix [01:58] FearOfMusic: or was there a technical reason it has to be a tty? [01:58] bnoordhuis: well, i suppose that technically you could pass in a non-tty stream [01:58] bnoordhuis: but readline was specifically written to create an interactive prompt [01:59] bnoordhuis: if you want a line parser, readline is not the best fit [01:59] bnoordhuis: think of it as a js equivalent of the gnu readline library [01:59] dmkbot: joyent/node: 03seebees: Tests for Sockets - https://github.com/joyent/node/issues/1699 [01:59] dmkbot: joyent/node: 03Sidnicious: child_process.execFile is nice, why not documented? - https://github.com/joyent/node/issues/1700 [02:00] Sidnicious: Ok, I was just about to ask about that here, and regretted not doing that before filing the issue :) Is there a reason it's undocumented? It seems to do exactly what I need for 90% of child-process-spawning cases. [02:02] JakeyChan_ has joined the channel [02:03] bnoordhuis: Sidnicious: probably because no one has gotten around to it [02:03] Wa has joined the channel [02:03] d_low has joined the channel [02:03] d_low has joined the channel [02:04] tylerstalder has joined the channel [02:04] ryan[WIN] has joined the channel [02:05] Sidnicious: bnoordhuis: Heh. The thing is, I feel like exec vs. execFile is a bit misleading. .execFile() just runs an executable and gives you the results, .exec() spawns a damn shell. [02:05] random123: What is the advantage of using something like Mustache over EJS? [02:05] JaKWaC: Anyone played with batman.js? [02:05] Sidnicious: I feel like I'm more attracted to the one with the shorter name (as a developer), even though it's overkill (and could introduce security problems) in many cases [02:05] random123: If you can change EJS <%%> to {{}} it starts looking just as similar, with the same power? [02:06] random123: Maybe even more since you are using JS directly? [02:06] Sidnicious: bnoordhuis: I'd be happy to help document it, just trying to figure out if it's undocumented *on purpose* because it's not intended for public consumption. [02:06] bnoordhuis: Sidnicious: no, it's not a private function afaik [02:07] d_low has joined the channel [02:07] d_low has joined the channel [02:07] chapel: Sidnicious: mind gisting a code example with it [02:07] savage- has joined the channel [02:07] Sidnicious: chapel: sure, one sec [02:08] talltyler has joined the channel [02:08] SubStack: vIkSiT: this might be useful if you go with dnode: http://substack.net/posts/9bac3e [02:08] Emmanuel has joined the channel [02:09] vIkSiT: SubStack, thanks! looks useful - what exactly is dnode though? [02:10] vIkSiT: ah, found the git repo [02:10] chapel: :0 [02:10] chapel: vIkSiT: dnode is rpc [02:10] vIkSiT: SubStack, why couldnt i just use a client.broadcast.json.send? [02:10] criswell has joined the channel [02:11] chapel: because it lets you not care about message passing [02:11] vIkSiT: atleast in my case, I'd just like to read one line from a file and broadcast to all clients [02:11] chapel: you can interface directly with functions on each end [02:11] vIkSiT: chapel, true tha [02:11] vIkSiT: that* [02:12] MacDiva has joined the channel [02:12] SubStack: dnode is handy when you need to move stuff around as your application grows [02:12] dexter_e has joined the channel [02:12] Sidnicious: chapel: https://gist.github.com/1215700 [02:12] SubStack: probably best to go with socket.io if all you need is a stream [02:12] mrchess has joined the channel [02:12] SubStack: or nowjs if you want to replicate objects [02:13] chapel: SubStack: replication can be done easily with dnode [02:13] chapel: you just have to build it out yourself [02:13] vIkSiT: chapel, SubStack : perhaps I've misunderstood something. so a question .. [02:13] chapel: and sometimes replication isn't really what you want [02:13] d0k has joined the channel [02:14] noodlehaus has joined the channel [02:14] andrewfff has joined the channel [02:14] cjheath has joined the channel [02:14] vIkSiT: a) Server needs to put data to all clients connected to it. Would socket.io's client broadcast/json send work for that? [02:14] vIkSiT: and if not - why not? [02:14] nuck has joined the channel [02:15] vIkSiT: I figured that if 10 browsers connect to a node server, then shouldn't it be able to broadcast to all of them? [02:15] vIkSiT: or is that not the case? [02:15] SubStack: vIkSiT: yep socket.io can do that [02:15] patcito has joined the channel [02:15] noodlehaus: hi guys, anyone used npm as a module before? [02:15] chapel: vIkSiT: to illustrate, dnode is built on top of socket.io (for browser stuff) [02:16] kurtzhong has joined the channel [02:16] d_low has joined the channel [02:16] d_low has joined the channel [02:16] vIkSiT: SubStack, hmm. so why don't the two broadcast lines here work as expected then? https://gist.github.com/c33e5d1a7319c4431eab [02:16] SubStack: noodlehaus: yep, https://github.com/substack/npmtop [02:16] JSManiacs has joined the channel [02:16] vIkSiT: client.json.send({ tail: line }); works fine [02:16] a_suenami has joined the channel [02:17] noodlehaus: SubStack: i'm trying to use npm to automatically install modules dropped into the system we're currently building [02:17] hij1nx_ has joined the channel [02:18] noodlehaus: my problem is i need to be able to specify where a module is installed by npm [02:18] vIkSiT: chapel, ah yes am just checking out dnode.. [02:18] vIkSiT: but my fear is that i'll be using something too complex for my needs. I'd like to understand why I should use it [02:19] chapel: I didn't see exactly what your needs were tbh [02:19] dmkbot: joyent/node: 03baudehlo: Added docs on timers not being exact - https://github.com/joyent/node/issues/1701 [02:19] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [02:19] dmkbot: joyent/node: 03Sidnicious: child_process.execFile is nice, why not documented? - https://github.com/joyent/node/issues/1700 [02:19] vIkSiT: chapel, ah. Simply put : server reads a file line by line, transmits to any clients that are connected to it. [02:20] chapel: ah [02:20] vIkSiT: I've got it working for one client; but my problem is - opening the site in two tabs leaves the second tab "waiting for server" [02:20] chapel: well socket.io with broadcast is probably easier [02:20] chapel: vIkSiT: need to use a different browser [02:20] vIkSiT: chapel, https://gist.github.com/c33e5d1a7319c4431eab [02:20] chapel: tabs can interfere [02:20] vIkSiT: tried that. [02:20] vIkSiT: ff and chrome. [02:21] chapel: ah [02:21] chapel: you are using while [02:21] chapel: don't use while [02:21] chapel: it blocks [02:21] SubStack: noodlehaus: require.resolve might be helpful? [02:21] vIkSiT: chapel, how would you recommend doing read then? [02:21] SubStack: blocking? in my node.js? [02:21] chapel: :P [02:21] vIkSiT: hehe [02:21] chapel: the reading should be done outside of socket.io [02:22] chapel: are you going to read the file even if no one is connected? [02:22] vIkSiT: ah. thats what i was thinking [02:22] vIkSiT: my plan was to shift to a JS queue [02:22] vIkSiT: well, ideally not [02:22] chapel: what is the actual use case for this? [02:22] clifton has joined the channel [02:22] djMax: if a module uses another module, does it have to require it again? [02:22] chapel: why do you want to emit lines of a file? [02:22] djMax: and is that a perf problem at all? [02:23] vIkSiT: chapel, a log file tailer accessible over a network [02:23] neoesque has joined the channel [02:23] chapel: so it will only read lines as long as someone is connected [02:23] chapel: otherwise it stops tailing? [02:24] vIkSiT: chapel, for that, I can store total number of "connect" events and when it drops to 0, stop tailing [02:24] heavysixer has joined the channel [02:24] noodlehaus: @SubStack looking into it. thanks! [02:24] jtsnow has joined the channel [02:24] [[zz]] has joined the channel [02:25] kurtzhong_ has joined the channel [02:25] vguerra has joined the channel [02:25] montylounge has joined the channel [02:25] chapel: vIkSiT: simply put I would on the start of the server, open the file, get it ready to tail, then when someone connects it starts a loop (or a watch) which fires off an event or callback that sends the data to any connected sockets [02:26] chapel: and yeah, you can watch connected sockets too [02:26] vIkSiT: hmm makes sense [02:27] chapel: using a file watcher might be better for this too [02:27] vIkSiT: I was using a file watcher earlier [02:27] vIkSiT: except - this particular use case involves streaming data from the first line of a file till the end [02:27] vIkSiT: so it has to be "read" [02:28] chapel: well sure [02:28] chapel: just saying, there is a point where you just want to only watch for changes [02:28] vIkSiT: right [02:28] vIkSiT: and fswatcher would serve admirably there.. [02:28] normanrichards has joined the channel [02:28] pixel13 has joined the channel [02:29] chapel: yep [02:29] tmzt: sounds useful, espcially if it supported raw tcp sockets too [02:29] chapel: !npm tail log [02:30] mecablaze has joined the channel [02:31] vIkSiT: https://github.com/netroy/Lockets/ does that btw [02:31] ceej has joined the channel [02:31] towski has joined the channel [02:31] vIkSiT: its a literal tail -f implementation [02:31] vIkSiT: @tmzt.. [02:31] gregmoreno has joined the channel [02:31] tmzt: cool [02:31] tmzt: I'm using a socat proxy setup to debug soap [02:32] tmzt: by nice if it had three sockets so I didn't need a screen for it [02:32] tmzt: can't really use node anyway though [02:32] tmzt: oh well [02:32] tmzt: :) [02:32] vIkSiT: hehe [02:39] Drakonite has joined the channel [02:39] astropirate has joined the channel [02:40] astropirate: Anyone know why Socket.io takes a long time to connect on Joyent smartmachines? [02:40] astropirate: its connects pretty much as the page loads when i run it locally but on their platform it takes a good 15 seconds [02:40] SubStack: astropirate: could be on account of the proxying [02:40] astropirate: after page load [02:40] SubStack: 15 seconds! [02:41] astropirate: give or take [02:41] z6Dabrata has joined the channel [02:41] jesusabdullah: That's intense [02:41] astropirate: but just the connection part takes that long [02:41] astropirate: after that it runs smothly [02:41] SubStack: ircretary: tell isaacs astropirate observes some loooong socket.io initialization times on no.de [02:41] ircretary: SubStack: I'll be sure to tell isaacs [02:42] astropirate: mansoor.no.de << the app [02:42] SubStack: astropirate: maybe disable some of the transports? [02:42] SubStack: it does feature detection on startup [02:42] JSManiacs: astropirate: Yeah, do you know which tranport is taking so long? [02:42] astropirate: SubStack, i will try that but that doesnt' account for why its fast locally and slow on joyant [02:42] astropirate: JSManiacs, let me take a look [02:43] SubStack: connects right away for me [02:43] astropirate: right [02:43] SubStack: on chrome [02:43] astropirate: open it up in two browsers [02:43] astropirate: go to the same room [02:43] astropirate: and start typing in one fo them [02:43] JSManiacs: astropirate: Oh crap, my app on no.de is taking a while to respond [02:43] SubStack: aha [02:43] astropirate: o_O [02:43] JSManiacs: astropirate: The initial response stream is taking about 5-6 seconds [02:43] djMax: is there an include primitive of some sort? I don't buy this "everything is a module" stuff so much [02:43] SubStack: ping them on #joyent mebbs [02:44] SubStack: djMax: a what? [02:44] SubStack: like an include keyword? [02:44] dmkbot: joyent/node: 03ry: windows vt100 support in libuv - bipass node_stdio_win32 - https://github.com/joyent/node/issues/1702 [02:44] djMax: yeah, I just want to split up my route registration [02:44] dmkbot: joyent/node: 03ry: file descriptor passing on windows and child_process.fork - https://github.com/joyent/node/issues/1703 [02:44] astropirate: sleep time [02:44] SubStack: djMax: you can use require() for that [02:45] djMax: I feel like having to re-require everything everywhere is annoying [02:45] justinTNT has joined the channel [02:45] djMax: which it seems I would have to do? [02:45] SubStack: http://nodejs.org/docs/v0.4.10/api/all.html#modules [02:45] githogori has joined the channel [02:45] SubStack: if you have to re-require all the same stuff there's probably a better way to organize your code [02:46] SubStack: by passing around database handles and app instances as parameters for instance [02:46] djMax: yeah, so if in app.js I require mongodb, rabbitmq, validation, etc that seems rough [02:46] djMax: and if I do that, my functions will have a bazillion parameters [02:46] vIkSiT: btw, does anyone have a working example of client.broadcast in socket.io? [02:46] SubStack: why would you require mongodb twice? [02:46] djMax: might as well make them globals if everybody uses them. [02:46] SubStack: no [02:46] SubStack: NEVER DO THAT [02:46] vIkSiT: client.broadcast({ tail: "abc" }); - TypeError: Property 'broadcast' of object # is not a function [02:46] djMax: don't I have to require it twice? [02:47] djMax: once in app.js and once in "other place that uses it"? [02:47] SubStack: I mean [02:47] SubStack: no [02:47] JSManiacs: curl http://mocker.no.de/socket.io/socket.io.js [02:47] SubStack: why would you? [02:47] SubStack: that's really silly [02:47] SubStack: just pass around db as a parameter [02:47] SubStack: set up the db in one place, pass it to where it needs to go [02:47] djMax: to every method? [02:47] SubStack: that's encapsulation 101 [02:47] JSManiacs: ops, sorry- that wasn't supposed to be copied there [02:47] JSManiacs: ha [02:47] SubStack: djMax: 'every' method? [02:48] djMax: well no, encapsulation in this case would be passing some context around, but that's essentially just global-ish. [02:48] SubStack: djMax: ah have you seen how app.use() works? [02:48] djMax: haven't seen app.use. [02:48] djMax: will rtfm on that [02:48] SubStack: seems like it would help you out in decomposing your logic into modules [02:49] SubStack: app.use(function (req, res, next) { if (...) { res.whatever() } else next() }) [02:49] gxdssoft has joined the channel [02:50] djMax: trying to grok that feature, docs aren't great. [02:50] joshkehn has joined the channel [02:50] SubStack: do stuff to req and res otherwise call next() to fall through [02:50] mecablaze has left the channel [02:51] djMax: oh, so you're saying it could add context info there in theory [02:51] SubStack: sure, module.exports = function (db, whatevs) { return function (req, res, next) {} } [02:51] dseif has joined the channel [02:51] SubStack: then app.use(require('./quux.js')(db, whatevs)) [02:53] torsd has joined the channel [02:54] postwait has joined the channel [02:54] noodlehaus: dependency injection [02:54] dmkbot: joyent/node: 03Sidnicious: child_process.execFile is nice, why not documented? - https://github.com/joyent/node/issues/1700 [02:54] CIA-54: libuv: 03Ben Noordhuis 07master * rbca4996 10/ (include/uv-private/uv-unix.h src/unix/stream.c): [02:54] CIA-54: libuv: unix: handle stream write errors properly [02:54] CIA-54: libuv: 1. Ensure that failed writes don't leave the write queue in an inconsistent [02:54] CIA-54: libuv: state. Before, write requests were handed back to the user but were not [02:54] CIA-54: libuv: removed from the write queue. The cause of at least one use-after-free bug. [02:54] noodlehaus: the reason for passing stuff you need around [02:54] CIA-54: libuv: 2. Pass the error to the callback on the next iteration of the event loop [02:54] CIA-54: libuv: instead of returning it immediately. - http://git.io/8OxWXA [02:54] CIA-54: libuv: 03Ben Noordhuis 07master * r3c96410 10/ (6 files in 3 dirs): [02:54] CIA-54: libuv: unix: bring back uv__stream_destroy() [02:54] CIA-54: libuv: This is the revised version of reverted commit 431195c. - http://git.io/EsfjYQ [02:54] CIA-54: libuv: 03Ben Noordhuis 07master * r4b9b692 10/ src/unix/stream.c : [02:54] CIA-54: libuv: unix: fix off-by-one error in comparison [02:54] CIA-54: libuv: Only 3 of the 4 buffer list entries were being used. - http://git.io/6QISEw [02:54] kennberg has joined the channel [02:55] fson has joined the channel [02:56] djMax: if no NODE_ENV variable is present, is there a default? [02:57] noodlehaus: if it's for locating node modules you installed, it's in the current directory's node_modules [02:57] confoocious has joined the channel [02:57] confoocious has joined the channel [02:58] halcyon918 has joined the channel [02:58] djMax: is it bad/ok to use app.set() to store objects as opposed to string settings? [02:59] dmkbot: joyent/node: 03hildjj: Results of stat() incorrect, don't match statSync - https://github.com/joyent/node/issues/1401 [03:00] noodlehaus: haven't really tried doing that djMax [03:00] noodlehaus: was going to but the i wasn't sure if app.set() was meant to be used for custom settings [03:01] joshkehn has left the channel [03:01] djMax: trying to figure out where to store the mongo db connection, I guess app.use is the more appropriate place? [03:01] djMax: but I don't want to make it on every request in theory [03:02] noodlehaus: i'm not sure but how i did this was create a module that manages my mongodb connection [03:02] jerrysv has joined the channel [03:02] noodlehaus: and since all require()ed modules are cached, i'm assuming that connections are kept alive as long as possible [03:02] noodlehaus: then i just require()ed that module in all my files [03:03] noodlehaus: you can do a test to verify if the connection is being recreated on every require() [03:03] wookiehangover has joined the channel [03:03] ericmuyser: i'm looking for a module (c++ addon) that i saw recently. iirc it assisted in objectwrap, so you can export c++ libs easier [03:04] pNstK has joined the channel [03:05] jchris has joined the channel [03:08] vidi has joined the channel [03:09] astacy has joined the channel [03:09] CStumph has joined the channel [03:09] Sidnicious has joined the channel [03:09] kriszyp has joined the channel [03:09] Sidnicious has joined the channel [03:09] JaKWaC has joined the channel [03:10] kennberg has joined the channel [03:10] agnat_ has joined the channel [03:11] mandric has joined the channel [03:12] nibblebot has joined the channel [03:14] kennberg has joined the channel [03:16] Waha has joined the channel [03:17] MechanisM has joined the channel [03:18] MechanisM: what is the best way to authorize users in nodejs powered chat with django-powered site? cookie? sessionID? or smth else? [03:19] unomi has joined the channel [03:19] Ananth has joined the channel [03:21] raidfive has joined the channel [03:23] incon has joined the channel [03:28] vipaca has joined the channel [03:28] JakeyChan_ has joined the channel [03:30] dguttman has joined the channel [03:30] gerard0 has joined the channel [03:33] clifton has joined the channel [03:36] Marcelo has left the channel [03:37] kurtzhong has joined the channel [03:42] NetRoY has joined the channel [03:42] ceej has joined the channel [03:42] AAA_awright: Don't use python next time? [03:42] CIA-54: node: 03Ryan Dahl 07master * r69c35f9 10/ doc/api/timers.markdown : [03:42] CIA-54: node: Doc fixes [03:42] CIA-54: node: Fixes #1701. Thanks baudehlo. - http://git.io/ZqKYaw [03:42] CIA-54: node: 03Fedor Indutny 07master * r57388d8 10/ lib/repl.js : [repl] add error handling for async scope fetching - http://git.io/A8NnAw [03:42] CIA-54: node: 03Fedor Indutny 07master * r9fb1868 10/ lib/_debugger.js : [03:42] CIA-54: node: [debugger] requireConnection() returns bool, break UI [03:42] CIA-54: node: Stepping commands will overwrite output of previous step command - http://git.io/t3iOkQ [03:43] amocla has joined the channel [03:44] dguttman_ has joined the channel [03:44] leopard has joined the channel [03:44] phil_sam has joined the channel [03:44] jetienne has joined the channel [03:48] shanez has joined the channel [03:49] shanez has joined the channel [03:49] tk has joined the channel [03:50] phil_sam has left the channel [03:51] CIA-54: node: 03Ryan Dahl 07master * r70a5659 10/ doc/api/child_processes.markdown : [03:51] CIA-54: node: Document child_process.execFile [03:51] CIA-54: node: Fixes #1700 - http://git.io/CrEnWg [03:53] d_low_ has joined the channel [03:53] Sense545 has joined the channel [03:54] bradleymeck has joined the channel [03:57] ecin has joined the channel [03:57] d_low has joined the channel [03:59] metellus has joined the channel [03:59] stagas has joined the channel [04:00] zomgbie has joined the channel [04:00] JaKWaC_ has joined the channel [04:00] kuebk has joined the channel [04:00] d_low: Anyone know why my errors aren't being caught by app.error whenever I use express.errorHandler, but they are caught when I don't use it? [04:01] ditesh|cassini has joined the channel [04:01] rurufufuss has joined the channel [04:02] djMax: does the express/node request object have a notion of whether a request is secure? [04:02] djMax: (where are the docs for that object?) [04:02] alejandrojs has joined the channel [04:03] jetienne_ has joined the channel [04:04] Draggor has joined the channel [04:09] luke` has joined the channel [04:09] smathy has joined the channel [04:09] Marak: cronopio: hail [04:09] OmidRaha has joined the channel [04:10] JaKWaC has joined the channel [04:11] jetherson has joined the channel [04:11] fangel has joined the channel [04:15] cronopio: Marak: hi, how are you?? [04:15] Marak: good, checking out https://github.com/cronopio/hook.io-ws/ now [04:15] cronopio: Marak: thanks! [04:15] Marak: when you feel like chatting do you want to join #nodejitsu ? [04:15] cronopio: Marak: ok, rigth now :) [04:16] djMax: is it possible to detect SSL in node? [04:18] jesusabdullah: in what sense, djMax ? [04:18] jesusabdullah: You can upgrade a regular connection into an ssl one from node, I know that [04:18] jesusabdullah: it's in the docs [04:18] jesusabdullah: under the tls module [04:19] djMax: I mean in the route handler, can I say "is this request coming over ssl?" [04:19] confoocious has joined the channel [04:20] mwhooker_ has joined the channel [04:20] jesusabdullah: That I don't know. [04:20] jesusabdullah: Oh [04:20] jesusabdullah: well [04:20] jesusabdullah: technically it has to be possible, because there's a protocol to request an ssl handshake [04:20] jesusabdullah: but I don't know if the tls module has the pieces organized right or not [04:21] jakehow has joined the channel [04:22] JakeyChan: how to compile jade string to html ? jade.complie('#container hello, #{title}', {title : 'Jade'}) it can not work :) [04:24] aho: https://github.com/joyent/node/wiki/modules#wiki-templating <- jeebus... lots of choices o_O; [04:26] SubStack: oh that [04:29] fairwinds has joined the channel [04:30] shanez has joined the channel [04:31] slajax has joined the channel [04:31] mikola: Scary question time: What is the best way to handle binary data in socket.io? (or is it even feasible in the first place?) [04:31] boehm has joined the channel [04:31] mikola: The latest websocket spec does support binary frames, and you can even hack the old utf-8 version to work with binary data using some trickery [04:31] mikola: I actually have some older c++ code which does this, and it seems to work ok in chrome [04:32] sivy_ has joined the channel [04:32] sreeix has joined the channel [04:32] mikola: but socket.io seems to internally serialize everything to json before sending it over the network, which seems to me like a waste of bandwidth... [04:33] tylerstalder has joined the channel [04:33] mikola: unless I am misunderstanding it [04:33] shanez has joined the channel [04:34] shanez has joined the channel [04:34] empt has left the channel [04:34] arg0s has joined the channel [04:35] bartt has joined the channel [04:36] joshthecoder has joined the channel [04:36] FearOfMusic has left the channel [04:41] shanez has joined the channel [04:41] sreeix_ has joined the channel [04:42] neilk_ has joined the channel [04:42] krh has joined the channel [04:42] alejandrojs has joined the channel [04:43] pizthewiz has joined the channel [04:45] ericmuyser has joined the channel [04:46] cronopio has joined the channel [04:48] sreeix has joined the channel [04:49] tilgovi has joined the channel [04:53] dreamdust has joined the channel [04:53] cachemoney has joined the channel [04:54] JaKWaC_ has joined the channel [04:55] sneakyne_ has joined the channel [04:55] torsd has joined the channel [04:56] erasrhead has joined the channel [04:57] rachelde1p has joined the channel [04:58] mandric_ has joined the channel [04:58] jetienne__ has joined the channel [04:58] telemachus_ has joined the channel [04:58] piscisaureus has joined the channel [04:58] erasrhead has joined the channel [04:58] cryptix_ has joined the channel [04:59] joshkehn1 has joined the channel [04:59] zpao- has joined the channel [04:59] rodasc has joined the channel [04:59] p6 has joined the channel [04:59] thedjinn_ has joined the channel [04:59] GruniB has joined the channel [04:59] doffm_ has joined the channel [04:59] apejens_ has joined the channel [04:59] mihar_ has joined the channel [04:59] bmaland_ has joined the channel [04:59] drudge- has joined the channel [05:00] zedas_ has joined the channel [05:00] chrisbuc1holz has joined the channel [05:01] qbit__ has joined the channel [05:01] joshonth_ has joined the channel [05:01] erasrhead has joined the channel [05:03] killfill_ has joined the channel [05:03] yogurt_truck_ has joined the channel [05:03] franck34_ has joined the channel [05:04] Connorhd has joined the channel [05:04] threedaymonk has joined the channel [05:05] hipyard has joined the channel [05:05] erasrhead has joined the channel [05:05] cronopio has joined the channel [05:06] stisti has joined the channel [05:06] arthurdebert has joined the channel [05:06] slpsys has joined the channel [05:06] robashton has joined the channel [05:06] a11235 has joined the channel [05:06] Garo_ has joined the channel [05:06] Creap_ has joined the channel [05:06] gnnr has joined the channel [05:06] slicky has joined the channel [05:06] cachemoney has joined the channel [05:06] dreamdust has joined the channel [05:06] ericmuyser has joined the channel [05:06] joshthecoder has joined the channel [05:06] sivy_ has joined the channel [05:06] boehm has joined the channel [05:06] slajax has joined the channel [05:06] fangel has joined the channel [05:06] smathy has joined the channel [05:06] Draggor has joined the channel [05:06] rurufufuss has joined the channel [05:06] ditesh|cassini has joined the channel [05:06] kuebk has joined the channel [05:06] ecin has joined the channel [05:06] tk has joined the channel [05:06] kurtzhong has joined the channel [05:06] incon has joined the channel [05:06] raidfive has joined the channel [05:06] Ananth has joined the channel [05:06] CStumph has joined the channel [05:06] vidi has joined the channel [05:06] jchris has joined the channel [05:06] halcyon918 has joined the channel [05:06] fson has joined the channel [05:06] justinTNT has joined the channel [05:06] Drakonite has joined the channel [05:06] andrewfff has joined the channel [05:06] criswell has joined the channel [05:06] broofa has joined the channel [05:06] perezd has joined the channel [05:06] galaxywatcher has joined the channel [05:06] joe-f2 has joined the channel [05:06] lesterc has joined the channel [05:06] enhydra has joined the channel [05:06] nuba has joined the channel [05:06] wolftankk has joined the channel [05:06] abraxas has joined the channel [05:06] phiggins has joined the channel [05:06] slyphon has joined the channel [05:06] shadow_s has joined the channel [05:06] CornflakesForTea has joined the channel [05:06] balgarath has joined the channel [05:06] Spion has joined the channel [05:06] nitinb has joined the channel [05:06] tomb has joined the channel [05:06] sebastia_ has joined the channel [05:06] sebastianedwards has joined the channel [05:06] __main__ has joined the channel [05:06] ryanfitz has joined the channel [05:06] skm has joined the channel [05:06] markwubben has joined the channel [05:06] llee has joined the channel [05:06] addisonj has joined the channel [05:06] mikola has joined the channel [05:06] chrislorenz has joined the channel [05:06] bengrue has joined the channel [05:06] xerox has joined the channel [05:06] hdon_ has joined the channel [05:06] langworthy has joined the channel [05:06] dmkbot has joined the channel [05:06] boaz has joined the channel [05:06] sveisvei has joined the channel [05:06] lmatteis has joined the channel [05:06] Hosh has joined the channel [05:06] JKarsrud has joined the channel [05:06] dscape has joined the channel [05:06] iaincarsberg has joined the channel [05:06] temp01 has joined the channel [05:06] ralph has joined the channel [05:06] kawaz_home has joined the channel [05:06] baudehlo has joined the channel [05:06] rednul has joined the channel [05:06] cognominal_ has joined the channel [05:06] hkjels has joined the channel [05:06] sstephenson has joined the channel [05:06] DrPizza has joined the channel [05:06] mrkurt has joined the channel [05:06] crash82 has joined the channel [05:06] dantalizing has joined the channel [05:06] shachaf has joined the channel [05:06] niclone has joined the channel [05:06] Andeye has joined the channel [05:06] mikegerwitz has joined the channel [05:06] PrgmrBill has joined the channel [05:06] jhbot has joined the channel [05:06] Bonuspunkt has joined the channel [05:06] pig has joined the channel [05:06] Lartsa has joined the channel [05:06] markatto has joined the channel [05:06] orospakr has joined the channel [05:06] SvenDowideit has joined the channel [05:06] jeedey has joined the channel [05:06] austinbv has joined the channel [05:06] tjgillies has joined the channel [05:06] Sebastien-L has joined the channel [05:06] aakour has joined the channel [05:06] AAA_awright has joined the channel [05:06] francois has joined the channel [05:06] mikekelly has joined the channel [05:06] devaholic has joined the channel [05:06] tuhoojabotti has joined the channel [05:06] skyler_brungardt has joined the channel [05:06] r04r has joined the channel [05:06] Guest37544 has joined the channel [05:06] MrNko has joined the channel [05:06] leahciMic has joined the channel [05:06] janne has joined the channel [05:06] bentruyman has joined the channel [05:06] meso has joined the channel [05:06] dannycoates has joined the channel [05:06] levi501d has joined the channel [05:06] simon2 has joined the channel [05:06] Martz has joined the channel [05:06] deoxxa has joined the channel [05:06] scoates has joined the channel [05:06] amiller has joined the channel [05:06] swaj has joined the channel [05:06] Ned_ has joined the channel [05:06] sorensen has joined the channel [05:06] McMAGIC--Copy has joined the channel [05:06] chapel has joined the channel [05:06] keyvan has joined the channel [05:06] ben_alman has joined the channel [05:06] btipling has joined the channel [05:06] jvolkman has joined the channel [05:06] krazyivan has joined the channel [05:06] digiwano has joined the channel [05:06] context has joined the channel [05:06] neme has joined the channel [05:06] pkrumins has joined the channel [05:06] tellnes has joined the channel [05:06] mikeycgto has joined the channel [05:06] jspiros has joined the channel [05:06] royh has joined the channel [05:06] _mdp has joined the channel [05:06] swhit has joined the channel [05:06] Clex has joined the channel [05:06] roger_raymond has joined the channel [05:06] DoNaLd` has joined the channel [05:06] rmzg has joined the channel [05:06] dynacker has joined the channel [05:06] teadict has joined the channel [05:06] Daegalus has joined the channel [05:06] AndrewX192 has joined the channel [05:06] Atmoz has joined the channel [05:06] jn has joined the channel [05:06] gwoo has joined the channel [05:06] joelio has joined the channel [05:06] flagg0204 has joined the channel [05:06] rphillips has joined the channel [05:06] trepan has joined the channel [05:06] kaarlo has joined the channel [05:06] zamolxes has joined the channel [05:06] ddragostinov has joined the channel [05:06] stride has joined the channel [05:06] Industrial has joined the channel [05:06] matt_c has joined the channel [05:06] mape has joined the channel [05:06] vns has joined the channel [05:06] jroes has joined the channel [05:06] maxogden has joined the channel [05:06] sirdancealot has joined the channel [05:06] Tobbe__ has joined the channel [05:06] apoc has joined the channel [05:06] thinkjson has joined the channel [05:06] mekwall has joined the channel [05:06] adnam has joined the channel [05:06] silverwind has joined the channel [05:06] cmeiklejohn has joined the channel [05:06] avalanche123 has joined the channel [05:06] paulbaumgart has joined the channel [05:06] adelgado has joined the channel [05:06] CrypticSwarm has joined the channel [05:06] jamesd has joined the channel [05:06] kon_ has joined the channel [05:06] _sorensen_ has joined the channel [05:06] flipperWhip has joined the channel [05:06] descipher has joined the channel [05:06] nail_ has joined the channel [05:06] odyniec has joined the channel [05:06] Dreamer3 has joined the channel [05:06] jonaslund has joined the channel [05:06] kei has joined the channel [05:06] jmoiron has joined the channel [05:06] lukegb has joined the channel [05:06] kloeri has joined the channel [05:06] berasa has joined the channel [05:06] jeromegn has joined the channel [05:06] er1c_ has joined the channel [05:06] kflorence has joined the channel [05:06] Gregor has joined the channel [05:06] madari_ has joined the channel [05:06] Pilate has joined the channel [05:06] pekim_ has joined the channel [05:06] tbranyen has joined the channel [05:06] Tobbe_ has joined the channel [05:06] m0 has joined the channel [05:06] persson has joined the channel [05:06] Will| has joined the channel [05:06] ajpiano has joined the channel [05:06] brainproxy has joined the channel [05:06] Guest18468 has joined the channel [05:06] pquerna has joined the channel [05:06] Kester has joined the channel [05:06] MooGoo has joined the channel [05:06] _root_ has joined the channel [05:06] Leonidas has joined the channel [05:06] slaskis has joined the channel [05:06] olegp has joined the channel [05:06] dleonardi has joined the channel [05:06] MikeW has joined the channel [05:06] wink_ has joined the channel [05:06] elliottcable has joined the channel [05:06] eboyjr has joined the channel [05:06] marlun has joined the channel [05:06] else has joined the channel [05:06] lifty has joined the channel [05:06] sid3k has joined the channel [05:06] Tobbe has joined the channel [05:06] matti has joined the channel [05:06] onre has joined the channel [05:06] sh4wn has joined the channel [05:06] tomilaine has joined the channel [05:06] sugyan has joined the channel [05:06] DJBouche has joined the channel [05:06] halfhalo has joined the channel [05:06] htoothrot has joined the channel [05:06] ben1mal has joined the channel [05:06] ryah has joined the channel [05:06] elijah-mbp has joined the channel [05:06] khmer has joined the channel [05:06] mdz has joined the channel [05:06] slloyd has joined the channel [05:06] gdusbabek has joined the channel [05:06] ashb has joined the channel [05:06] geoffeg has joined the channel [05:06] tmzt has joined the channel [05:06] daed has joined the channel [05:06] a_meteorite has joined the channel [05:06] dcelix has joined the channel [05:06] ismell has joined the channel [05:06] konobi has joined the channel [05:06] mikekunze has joined the channel [05:06] nub has joined the channel [05:06] zinkem has joined the channel [05:06] tg has joined the channel [05:06] cnu has joined the channel [05:06] unmanbearpig has joined the channel [05:06] gkatsev has joined the channel [05:06] Kami has joined the channel [05:06] raydeo has joined the channel [05:06] zentooo has joined the channel [05:06] duckspeaker has joined the channel [05:06] Newky has joined the channel [05:06] rgmarcha has joined the channel [05:06] polyrhythmic has joined the channel [05:06] optico has joined the channel [05:06] stbuehler has joined the channel [05:06] coffeecup has joined the channel [05:06] izz_ has joined the channel [05:06] actonapp_ has joined the channel [05:06] hoodow has joined the channel [05:06] parse has joined the channel [05:06] blkcat has joined the channel [05:06] arkx has joined the channel [05:06] up_the_irons has joined the channel [05:06] finsken has joined the channel [05:06] SubStack has joined the channel [05:06] vinc has joined the channel [05:06] jobim has joined the channel [05:06] llrcombs has joined the channel [05:06] rhizmoe has joined the channel [05:06] jakob has joined the channel [05:06] tetsu has joined the channel [05:06] Hamms has joined the channel [05:06] iivvoo has joined the channel [05:06] kriss has joined the channel [05:06] visnup has joined the channel [05:06] JP| has joined the channel [05:06] mediacod1r has joined the channel [05:06] RyanW has joined the channel [05:06] zemm has joined the channel [05:06] jamonkko has joined the channel [05:06] bsutt has joined the channel [05:06] pradeepto has joined the channel [05:06] chilts has joined the channel [05:06] Astro has joined the channel [05:06] kraft has joined the channel [05:06] Dmitrijus has joined the channel [05:06] einaros has joined the channel [05:06] barodeur has joined the channel [05:06] fuzzyone has joined the channel [05:06] sstreza has joined the channel [05:06] paveq has joined the channel [05:06] progrock has joined the channel [05:06] Ezku has joined the channel [05:06] monokrome has joined the channel [05:06] foobarfi1hter has joined the channel [05:06] Zenethian has joined the channel [05:06] zined_ has joined the channel [05:06] Aikar has joined the channel [05:06] stylus has joined the channel [05:06] dabailey has joined the channel [05:06] lukstr has joined the channel [05:06] ekes has joined the channel [05:06] inarru_ has joined the channel [05:06] gf3 has joined the channel [05:06] Tobias| has joined the channel [05:06] zed0_ has joined the channel [05:06] medice has joined the channel [05:06] morgabra has joined the channel [05:06] chrisdickinson has joined the channel [05:06] darnold has joined the channel [05:06] robotblake has joined the channel [05:06] yenz has joined the channel [05:06] thermal has joined the channel [05:06] ctide has joined the channel [05:06] keeto has joined the channel [05:06] shenlok has joined the channel [05:06] hucker has joined the channel [05:06] russell_h has joined the channel [05:06] cce has joined the channel [05:06] Aco- has joined the channel [05:06] framlin has joined the channel [05:06] jakeskik has joined the channel [05:06] optixx has joined the channel [05:06] zorzar has joined the channel [05:06] stutter_ has joined the channel [05:06] korch has joined the channel [05:06] _sri has joined the channel [05:06] wereHamster has joined the channel [05:06] pdm_ has joined the channel [05:06] ivaldi has joined the channel [05:06] jp323 has joined the channel [05:06] Circlefusion has joined the channel [05:06] evilclone has joined the channel [05:06] telemachus has joined the channel [05:06] qbit__ has joined the channel [05:06] alindeman has joined the channel [05:06] mrkurt has joined the channel [05:06] sstephenson has joined the channel [05:06] sneakyness has joined the channel [05:06] rick_h_ has joined the channel [05:06] parasugot has joined the channel [05:06] gaving has joined the channel [05:06] 15SABC3MR has joined the channel [05:06] a11235 has joined the channel [05:07] confoocious has joined the channel [05:07] confoocious has joined the channel [05:07] ddragostinov has joined the channel [05:08] CornflakesForTea has left the channel [05:08] inarru has joined the channel [05:08] vguerra has joined the channel [05:08] shipit has joined the channel [05:08] chrischris has joined the channel [05:08] teadict has joined the channel [05:09] bogomips has joined the channel [05:09] DrPizza has joined the channel [05:09] dEPyWork has joined the channel [05:10] Druid has joined the channel [05:10] TheJH has joined the channel [05:10] TheJH has joined the channel [05:11] rchavik has joined the channel [05:11] chrisdickinson has joined the channel [05:11] vns has joined the channel [05:11] ralphholzmann has joined the channel [05:11] gnnr has joined the channel [05:12] robashton has joined the channel [05:12] swhit has joined the channel [05:13] eraserhead has joined the channel [05:14] erasrhead has joined the channel [05:16] stisti has joined the channel [05:16] steffan has joined the channel [05:16] skm has joined the channel [05:16] robhawkes has joined the channel [05:18] azend_ has joined the channel [05:18] alindeman has joined the channel [05:19] zomgbie has joined the channel [05:20] Draggor has joined the channel [05:21] sstephenson has joined the channel [05:21] steffan_ has joined the channel [05:22] dinarcon has joined the channel [05:22] SuMarDi has joined the channel [05:22] SuMarDi has joined the channel [05:23] Spion_ has joined the channel [05:23] isaqual has joined the channel [05:25] tmzt has joined the channel [05:25] chapel has joined the channel [05:27] a11235 has joined the channel [05:27] davidbanham has joined the channel [05:27] erasrhead has joined the channel [05:28] slpsys has joined the channel [05:29] jakehow has joined the channel [05:29] creationix has joined the channel [05:31] stalled has joined the channel [05:32] skm has joined the channel [05:34] maqr has joined the channel [05:35] alindeman has joined the channel [05:37] mwhooker has joined the channel [05:38] paulwe has joined the channel [05:40] maqr_ has joined the channel [05:40] halcyon918_ has joined the channel [05:41] devongovett has joined the channel [05:41] webben has joined the channel [05:43] crash82 has joined the channel [05:43] adelcambre has joined the channel [05:46] Xano has joined the channel [05:47] jacter has joined the channel [05:47] blueadept has joined the channel [05:47] blueadept has joined the channel [05:49] piscisaureus has joined the channel [05:49] MrTopf has joined the channel [05:52] siculars has joined the channel [05:53] FireFly|n900 has joined the channel [05:54] cachemoney has joined the channel [05:54] Ananth has left the channel [05:54] dmkbot: joyent/node: 03fprijate: typeof 1+2+3+4 returns 'number234' - https://github.com/joyent/node/issues/1704 [05:55] DrMcKay has joined the channel [05:55] felixge has joined the channel [05:55] felixge has joined the channel [05:56] garrensmith has joined the channel [05:57] DrMcKay has joined the channel [06:00] mikekelly has joined the channel [06:03] saikat_ has joined the channel [06:04] meso has joined the channel [06:08] igl1 has joined the channel [06:09] stephank has joined the channel [06:12] webben has joined the channel [06:13] freeformz has joined the channel [06:17] cmeiklejohn has joined the channel [06:18] garrensmith has joined the channel [06:23] yozgrahame has joined the channel [06:24] up_the_irons has joined the channel [06:25] cmeiklejohn has joined the channel [06:25] vidi has joined the channel [06:26] bogomips has joined the channel [06:29] andrewfff has joined the channel [06:32] zeiris has joined the channel [06:33] amerine has joined the channel [06:34] isaacs has joined the channel [06:36] joeytwiddle has joined the channel [06:36] mraleph has joined the channel [06:37] Margle has joined the channel [06:37] febits has joined the channel [06:39] ph^ has joined the channel [06:39] emattias has joined the channel [06:41] chrislorenz has joined the channel [06:41] tomtomaso has joined the channel [06:42] robotmay has joined the channel [06:42] webben has joined the channel [06:44] leopard has joined the channel [06:44] mikeal has joined the channel [06:45] groom has joined the channel [06:45] simenbrekken has joined the channel [06:47] guillermo has joined the channel [06:49] meso has joined the channel [06:51] JakeyChan has joined the channel [06:51] TomY has joined the channel [06:52] thalll has joined the channel [06:52] stepheneb has joined the channel [06:52] JSManiacs has joined the channel [06:54] den512 has joined the channel [06:55] jhbot has joined the channel [06:56] temp02 has joined the channel [06:57] jacobolus has joined the channel [06:58] ttpva has joined the channel [06:58] kertz has joined the channel [06:58] piscisaureus has joined the channel [06:58] SamuraiJack has joined the channel [06:59] mike5w3c_ has joined the channel [06:59] jacobolus has joined the channel [07:00] wmage has joined the channel [07:01] illumina has joined the channel [07:01] mrryanjohnston has joined the channel [07:03] mendel_ has joined the channel [07:03] acrolith: Sup? [07:04] vee has joined the channel [07:04] JakeyChan: hi? [07:04] acrolith: hello [07:04] vee: hi [07:04] `3rdEden has joined the channel [07:04] fangel has joined the channel [07:05] djcoin has joined the channel [07:05] acrolith: Any good resources for trying to debug NPM issues? Trying to install connect-form but having tar issues [07:05] JakeyChan: why output the … with jade ?? is it right ? var fn = jade.compile('str', {}) ; fn({}); ??? [07:05] isaacs: acrolith: what's tar ---version report? [07:05] vee: I just successfully installed node on Linux using standard installation howto. However when I do whereis node command nothing comes up. Any ideas? [07:05] acrolith: @isaacs GNU Tar 1.16.1 (im on OSX Lion, haven't reinstalled XCode yet... if it matters) [07:06] mendel__ has joined the channel [07:06] isaacs: acrolith: that's too ancient. get a newer tar. [07:06] isaacs: acrolith: os x should have bsdtar 2.6.2 somewhere [07:06] acrolith: ah it does [07:07] aabt has joined the channel [07:07] isaacs: might come with xcode, though, who knows [07:07] isaacs: it installs a lot of stuff [07:07] acrolith: yeah probably. okay ill use symlink magic for now... xcode is a big download [07:07] acrolith: thx [07:08] raphdg has joined the channel [07:08] mikey_p: not sure what I did, but I've got bsdtar at /usr/bin/tar on Lion with xcode [07:09] mikey_p: acrolith: xcode is generally worth it, you can always trash the actual GUI and NIB builder and all that crap, but its the equivalent to build-essential on Debian/Ubuntu [07:09] djcoin has joined the channel [07:09] acrolith: @mikey_p yeah.. i've had older versions installed on snow leopard, just not since lion. Guess I'll play video games until it's installed... #lame [07:10] Orion-_ has joined the channel [07:10] Orion-_: hello [07:10] febits has joined the channel [07:10] vaheh has joined the channel [07:11] skm has joined the channel [07:12] webben has joined the channel [07:12] JakeyChan: hi [07:13] piscisaureus has joined the channel [07:13] Orion-_: I wonder if you guys have some kind of recommendation concerning http endpoints that would serve json data to my client app. I'd like to prevent them from being used by other cross site clients. What would be the best way to accomplish that ? [07:13] ablomen has joined the channel [07:16] saasaa has joined the channel [07:16] hermanjunge has joined the channel [07:18] halcyon918__ has joined the channel [07:19] Lemon|mbp has joined the channel [07:22] dgathright has joined the channel [07:23] nuck: Anyone wanna try and convince me why I shouldn't use global.app and global.db, and should instead use _______? [07:24] nuck: Provide an example of what you're suggesting, I'm actually feeling open to suggestions today ;D [07:24] nuck: I've switched to Mongoose, after seeing that it's not nearly as shitty as it was before [07:24] topaxi has joined the channel [07:25] mwhooker has joined the channel [07:25] garrensmith: nuck try couchdb and LazyBoy :-) [07:25] nuck: nothx [07:25] nuck: I'm using Mongoose and Express [07:25] nuck: I just need a way to split my files [07:25] nuck: And right now it's using globals [07:25] nuck: SubStack » what was the way you had suggested? Just wrapping files in functions or what? [07:26] ptlo has joined the channel [07:26] nuck: If not, I'd appreciate an example of the concept ;) [07:26] Aiden has joined the channel [07:27] Murugaratham has joined the channel [07:27] grekko has joined the channel [07:30] nuck: Nobody willing to convince me? Weak :( [07:31] Marak: nuck: just bind everything to window [07:31] Murugaratham: any1 using n? [07:31] Murugaratham: for updating nodejs [07:31] towski has joined the channel [07:31] ivanfi has joined the channel [07:32] Marak: TOWSKI!!!!! [07:32] Ezku: nuck: I used to do module.exports = (dependencies) -> ... [07:32] nuck: ... [07:32] bergie has joined the channel [07:32] nuck: ACTION vomits [07:32] nuck: Marak » haha I know that's similar to what I'm doing [07:32] Marak: nuck: use the import/export system [07:32] nuck: But to be fair, two items on window is about normal [07:33] Marak: nuck: dont repeat 10 years of bad browser practice [07:33] stelcheck: would there be any reasons why doing npm update would try to get a Git repository based package from NPM? [07:33] boxysean has joined the channel [07:33] nuck: Marak » I would, but I need one db connection and one Express app, with things adding to each in multiple files [07:33] nuck: And I'm not sure the best way to do this [07:33] bogomips2_ has joined the channel [07:33] Marak: nuck: try nconf [07:33] nuck: *apparently* globals are not good for global items [07:33] liberum has joined the channel [07:34] Marak: nuck: no one is gonna stop you from doing what are you doing to do [07:34] nuck: Marak » I think you're misunderstanding me, I just want app.js to pull in 10 files which add paths to my Express app, and which call on my database app [07:34] Ezku: nuck: if you have any concrete objections rather than personal nausea I'd very much like to hear. [07:34] Marak: nuck: https://github.com/indexzero/nconf [07:34] nuck: Marak » Yes, but people told me I was making a *huge* mistake [07:34] stelcheck: strangely, I can install with npm install, but not with npm update [07:34] nuck: Ezku » Personal nausea. [07:34] Marak: nuck: sounds like a personal issue [07:34] Ezku: too bad :( [07:34] Orion-_: hey marak dzien dobre :) [07:34] nuck: Ezku » I hate CoffeeScript a lot :P [07:35] Marak: nuck: a HUGE mistake would be fixing something that isnt broken and prob wont break [07:35] sebastianedwards has joined the channel [07:35] Marak: :p [07:35] liar has joined the channel [07:35] Marak: use the require() pattern though, for real [07:35] nuck: Marak » haha very true, but when you're being told by folks like SubStack that it's a bad idea, you start to second-guess your choices. Hence why I'm second-guessing using globals for globals. [07:35] Ezku: nuck: riiight. Way to go with missing the point as well, then. _b [07:36] Marak: nuck: there is no guess involved [07:36] nuck: Marak » Well, I can't require(db) in 12 different files, that's just insane. [07:36] Marak: nuck: its a bad practice [07:36] nuck: That means 12 connections to my db for one server :S [07:37] Marak: nuck: you shouldn't draw conclusions based only on the answers you can hypothesis. you need to realize there are possibilities which are you not factoring into your logic. [07:37] vguerra has joined the channel [07:37] Marak: look at how the projects at http://github.com/nodejitsu are structred [07:38] meder has joined the channel [07:38] Marak: https://github.com/nodejitsu/haibu/blob/master/lib/haibu.js [07:38] Marak: see how the init works, etc [07:38] Marak: SubStack is 100% right. you can choose to ignore him, that is your choice [07:38] Marak: if it works, it works [07:39] nuck: Yeah, I'm thinking of switching [07:39] Marak: but understand its bad practice and know why [07:39] nuck: I'm just not sure the best other option [07:39] chapel: wasn't just SubStack [07:39] chapel: I was in that conversation as well [07:39] Marak: lol [07:39] nuck: Marak » My thoughts were simple. they're things that *should* be everywhere, hence they're globals! [07:39] boltR has joined the channel [07:39] Marak: nuck: "everywhere" is a relative term [07:39] nuck: Marak » Everywhere in my app [07:40] chapel: nuck: you said you didn't want to have to pass them around, even though its really not that much to do so [07:40] nuck: chapel » I have a require b which requires c [07:40] stride: nuck: you want database access in.. your templates, loggin module, every external module you include in your project? [07:40] stride: s/loggin/logging/ [07:40] ablomen: nuck, btw, i don't think it would make 12 connections [07:40] nuck: And b is async [07:40] Marak: this is like a bad practice staircase fall [07:40] nuck: stride » I have more than just "templates" [07:41] ablomen: it should only run whatever is required once, then be used for future requires [07:41] stride: nuck: it's a webapp, right? [07:41] Marak: if you find yourself at the bottom of the stairwell with broken legs, you shouldn't be considering trying to crawl back up [07:41] nuck: Yeah, I have too many templates to have them in one file [07:41] Marak: just walk up each step surely and with firm footing [07:41] ivan` has joined the channel [07:41] ablomen: (a simple test case shows this to be true btw, just try requiring a file that does console.log("foo"); in it in multiple files, you will only see foo once) [07:41] nuck: Marak » haha, well, it's early on, I'm about to decide if I wanna fall or not ;) [07:42] eddyb has joined the channel [07:42] nuck: ablomen » But if I make a variable in that module, then require it in 5 things I require() in another file [07:42] nuck: Will that variable be the same in all 5? [07:42] ablomen: should be, try it [07:42] nuck: If so, problem is fucking solved. [07:42] Marak: best to start with best practice. instead of technical debt, you will gain improvements over time. [07:42] webben has joined the channel [07:43] eddyb: any of you having any idea what would the extra cost be between an array of {a:a, b:b, c:c, d:d} and an array of a << 24 | b << 16 | c << 8 | d ? [07:43] nuck: Marak » haha I started out by wrapping my entire files in a function which took two arguments (app, db) [07:43] adam_ has joined the channel [07:43] eddyb: I mean, does v8 usually sees that all the objects are the same and packs them tightly? [07:43] Marak: eboyjr: did you try http://jsperf.com/ [07:43] Marak: errrr [07:43] nuck: And then when that got rather unwieldy (which I think is to be expected), I switched to globals [07:43] Marak: eddyb http://jsperf.com/ [07:43] eddyb: thanks, gonna check it out [07:44] nuck: ablomen » I'll test that, it's a very good question [07:44] Marak: nuck: give your app an init state [07:44] chapel: nuck: how did it get unwieldy, still don't understand how it was a problem [07:44] Marak: nuck: that is run once on start, and the callback is when all your connections are setup [07:44] nuck: Marak » I'm gonna try ablomen's concept, that it's all shared, because that's an interesting thought [07:44] Marak: nuck: then after that, pass your db connection to all your models.....or maybe controllers.... [07:44] nuck: And if it truly works that way, it'll mean things are easy [07:44] hackband has joined the channel [07:44] nuck: Marak » I'm not a strict MVC [07:45] chapel: conceptually, each require is a new instance of the script [07:45] Marak: your view should know nothing about your database [07:45] eddyb: Marak: that's a cool app, I like it :) [07:45] nuck: chapel » That's what I thought, but if it's all one instance if I load the same file multiple times in one process [07:46] jbpros has joined the channel [07:46] chapel: well the required file is cached [07:46] nuck: Which may be the case (if it is, that's fucking useful) [07:46] chapel: thats for sure [07:46] ablomen: chapel, like i said earlier, if you require something that console.log's something over multiple files, it only console.logs ones [07:46] Marak: nuck: we require the top level module in every module it requires [07:46] nuck: That leads me to wonder if it'll work if I try to share variables that way [07:46] Marak: nuck: so that is a circular dep [07:46] Marak: nuck: and node is totally cool with it [07:46] ablomen: so if it only does console.log once, it should work with a db connection too, no? [07:46] whitman has joined the channel [07:47] burningdog has joined the channel [07:47] nuck: Marak » So, let me get this straight, I could set up my db and express app in app.js, module.exports it, require 5 things which add routes, then require the app.js? [07:47] nuck: And it'll *work*? [07:47] nuck: Jesus fuck [07:47] nuck: That's insane [07:47] svnlto has joined the channel [07:48] Marak: nuck: i mean, sounds like a personal question, look at how nodejitsu sets up its projects [07:48] Marak: nuck: and indexzero [07:48] Marak: if you have destructive calls in your app.js, its not gonna work, that is why i told you to make init method [07:49] nuck: Marak » all those required versions of the original file, do they all access the same instance? [07:49] Marak: whats a destructive call? anything that is run that does stuff in the global module scope [07:49] Marak: nuck: yep, its cached [07:49] nuck: Marak » That's the big thing I needed to hear! [07:49] chapel: nuck: have you tested it? [07:49] nuck: That means I jsut require('./db.js'); [07:49] Marak: we should really do a blog post about this [07:49] nuck: chapel » I'm working on that [07:50] nuck: Marak » Agreed, that would've saved me thousands of headaches [07:50] nuck: It seems like a trick that's not very well-documented [07:50] Druid has joined the channel [07:50] pgherveou has joined the channel [07:50] koo6 has joined the channel [07:50] aaronmcadam has joined the channel [07:51] SubStack: caching seems like the entirely obvious way that would work [07:51] nuck: Well, it's obvious to *you*, but you're SubStack. [07:51] nuck: Don't expect us all to be as good as you ;) [07:51] eddyb: http://jsperf.com/objvsnum [07:51] Marak: SubStack: things that are obvious to you are impossible for big blue to understand [07:51] eddyb: not bad [07:51] Marak: lol [07:52] nuck: If only the world was all a bunch of little SubStacks. [07:52] SubStack: I just go around assuming that software should work a particular way [07:53] SubStack: and if it doesn't then I fix what exists or write something new that does it the way in which I expect [07:53] nuck: haha [07:53] SubStack: I pretty much never learn anything ever. [07:53] nuck: You don't adapt to the environment, you adapt the environment to you [07:54] Marak: Resistance is futile. [07:54] SubStack: that's what browserify does [07:54] nuck: haha never thought about that but it's true [07:55] nuck: I don't use Browserify, since I already know browser-side JS insanely well :P [07:55] bergelmir has joined the channel [07:55] nuck: Otherwise that knowledge would be rotting useleslly in my brain [07:55] SubStack: sunk costs fallacy [07:55] SubStack: let sunk costs sink [07:56] nuck: brb testing the system [07:56] bergelmir has joined the channel [07:56] Marak: nuck: i only write single page applications server-side now [07:57] Marak: and i NEVER return HTML fragments from the server [07:57] nuck: Worked! [07:57] adambeynon has joined the channel [07:57] Marak: writing code in browser is like writing an iphone application ON the iphone [07:57] nuck: Thanks for that little trick, and I agree, it needs to be better documented :D [07:57] nuck: ACTION points Marak to Cloud9IDE [07:57] hij1nx has joined the channel [07:57] Marak: or building an application over SSH [07:57] nuck: Marak » Been there, done that [07:57] jbpros has joined the channel [07:58] nuck: I had to do that before I switched to Linux [07:58] nuck: But now, I'm on Ubuntu (yes, I know, it sucks), and I'm happily able to alt-tab to test my code :P [07:58] aaronmcadam: linux mint is decent [07:59] ablomen: add an x to ubuntu and its decent [08:00] moesian has joined the channel [08:00] eddyb: http://en.wikipedia.org/wiki/Google_Dart wat :O [08:00] eddyb: good thing I didn't put much effort into JS [08:01] shiawuen has joined the channel [08:01] aaronmcadam: waste of timeee [08:02] eddyb: wow [08:02] eddyb: http://jsperf.com/objvsnum [08:02] eddyb: there's a clear difference between packing as a number and packing as an object [08:02] xerox has joined the channel [08:04] meso has joined the channel [08:04] nuck: aaronmcadam » Linux Mint can suck my dick [08:04] nuck: It sucks [08:04] nuck: `5 [08:04] nuck: derp [08:04] eddyb: ubuntu is indecent [08:05] nuck: Ubuntu is nasty [08:05] nuck: But Mint is worse [08:05] mpavel has joined the channel [08:05] nuck: It's slow as fuck and inherits the shittiness from Ubuntu [08:06] KyleReese301 has joined the channel [08:08] aaronmcadam: hahah [08:08] aaronmcadam: not for me [08:08] aaronmcadam: tho i am on an 8gig i5 so maybe that's why [08:09] aaronmcadam: was gonna try fedora [08:09] Xano has joined the channel [08:10] KyleReese301: guys, question, apache is a HTTP server and node.js as well, I have Apache running with PHP but i would like to use Node.js together with PHP on the apache, is that possible? or can't node.js seen as an alternative that can operate next to PHP ? [08:10] eddyb: nuck: ever used opensuse? [08:10] KyleReese301: it's confusing [08:10] ablomen: KyleReese301, look at mod_proxy [08:10] eddyb: wow [08:10] eddyb: cloud9 is so cool [08:10] eddyb: NERDGASM [08:10] aaronmcadam: yeah [08:11] KyleReese301: ok [08:11] aaronmcadam: amazing it's based on bespin [08:11] JakeyChan: how to check file is exits with node.js ? :) [08:11] aaronmcadam: how far it's come [08:11] ablomen: you can use proxy pass to send requests to domain.com to localhost:port so it get's handled by node [08:11] JakeyChan: fs.stat ? [08:11] nuck: eddyb » I agree, I run a local copy [08:11] aaronmcadam: the code inspector is pretty awesome eddyb [08:11] nuck: JakeyChan » require('path').exists(Sync) [08:12] JakeyChan: nuck: thanks :) [08:12] jetienne has joined the channel [08:12] eddyb: wow, I can clone github projects [08:12] Voxxit has joined the channel [08:13] webben has joined the channel [08:13] felixhummel has joined the channel [08:13] halcyon918___ has joined the channel [08:14] AvianFlu has joined the channel [08:15] Voxxit has left the channel [08:15] jacobolus has joined the channel [08:15] ullrich has joined the channel [08:15] ullrich: hi, is there a way to have node tis accept all self signed certs without specifying each and every? [08:16] ullrich: TLS i meant…. (damn lion autocorrection) [08:16] eddyb: lions bite [08:16] Orion-_: lion is bad [08:16] Orion-_: sl is good [08:16] Orion-_: :D [08:17] Orion-_: ACTION my 2cents :) [08:17] ullrich: :) [08:17] ircretary has joined the channel [08:18] mc_greeny has joined the channel [08:18] jacobolu_ has joined the channel [08:18] ullrich: when I try to connect to the server I get an authorization error: DEPTH_ZERO_SELF_SIGNED_CERT [08:18] ullrich: i figured out that I can pass in trusted certs as options in tls.connect but I would like to allow all certificates [08:18] isaacs: ullrich: sign them with a CA key, and then add the CA cert to the request. [08:19] isaacs: ullrich: then all certs signed by that CA are acceptable. [08:19] ullrich: it's not really my server i'm trying to connect to. that's the problem [08:20] isaacs: ullrich: then just check the fingerprint or something, and don't worry about the authorization error [08:23] Murugaratham has joined the channel [08:24] pfried_ has joined the channel [08:26] pen has joined the channel [08:27] perezd has joined the channel [08:28] PhilK has joined the channel [08:29] pfried_: hello world, i just wanted to outline an idea. It's just a conept and i wanted to ask if it was possible to use node.js in this case. We want to create a LED Matrix with included Switches, so you can push an LED and it switches it's state. As an addition to this we want to create a Web Gui where you can controll the LED's too. The Idea is that alle the panels wheter physical or only in the web are synchonous. The Web UI should send [08:29] bogomips2__ has joined the channel [08:29] eddyb: [08:30] pfried_: the leds [08:30] aho: "The Web UI should send [truncated]" [08:30] eddyb: you most likely want socket.io [08:30] eddyb: you'd then have an event machine between the client and the server [08:31] ircretary has joined the channel [08:31] Voxxit has joined the channel [08:31] Voxxit has left the channel [08:31] bergie has joined the channel [08:31] rio{ has joined the channel [08:31] pen has joined the channel [08:32] pen has joined the channel [08:32] ullrich: thanks isaacs, figured it out. i'm able to just ignore the authorization error in some cases and continue using the connection even if it's not authorized [08:32] isaacs: that's the spirit! [08:32] uchuff has joined the channel [08:32] isaacs: ullrich: you should still check the keys, if you know what they'll be [08:33] isaacs: the best is to pre-share a CA key [08:33] isaacs: er, CA cert [08:33] ullrich: true. it's always a bad idea to trust everybody [08:33] ullrich: but i'll add this as an option [08:34] pfried_: the physical clients can get the state from the server and submit it to the server. We have two Prototypes communicating by TCP/IP based on an AVR Microcontroller. The node server should manage the state of the LEDs. It would be cool if the Client be up to date without a browser refresh [08:34] neilk_ has joined the channel [08:36] pfried_: making http 1.1 neccessary i guess to keep the connection alive [08:36] _aron has joined the channel [08:36] Glenjamin: socket.io will handle the client connection part via websockets and various fallbacks [08:37] eddyb: pfried_: http://socket.io [08:37] eddyb: and #socket.io [08:37] pen has joined the channel [08:37] eddyb: you basically create a connection between client JS and server JS [08:38] pfried_: ok sounds quite interesting, how many connections are possible that way? [08:38] eddyb: Infinity [08:38] pen has joined the channel [08:38] eddyb: (and beyond) [08:38] pfried_: nice! [08:38] pfried_: depending on the server hardware i guess, but thats not the problem [08:38] pen has joined the channel [08:39] FIQ|screen has joined the channel [08:39] kurtzhong_ has joined the channel [08:39] pen has joined the channel [08:42] JakeyChan_ has joined the channel [08:42] francois has joined the channel [08:42] bogomips2_ has joined the channel [08:42] kulor-uk has joined the channel [08:43] JakeyChan_ has left the channel [08:43] JakeyChan_ has joined the channel [08:43] JakeyChan_ has left the channel [08:43] pfried_: ok the way ( for a browser client) would be: setting up a node.js http server with socket.io an then create some custom messages between the server and client, right? [08:43] webben has joined the channel [08:43] `3rdEden: depens on multiple things pfried_, memory, max files descriptors, socket tuning, amount of processes you run etc [08:43] `3rdEden: and yes that is the correct way [08:44] eldios has joined the channel [08:44] luke` has joined the channel [08:44] nuck: `3rdEden » I'm listening to NodeUp, and it made me think. How *do* you pronounce your name? [08:44] eddyb: btw, the event part is as easy as socket.emit('setLED', led, on); on the client side and socket.on('setLED', function(led, on) {....}); on the server side [08:45] nuck: ACTION does not speak Dutch, despite being half-Dutch [08:45] hellp has joined the channel [08:45] rio{ has joined the channel [08:45] pfried_: ok, i'll try :D sounds great so far [08:47] `3rdEden: nuck google translate to the rescue! http://translate.google.com/#auto|en|Arnout%20Kazemier [08:47] `3rdEden: it's pretty close ;) [08:47] nuck: haha `3rdEden, genius solution :D [08:47] Orion-: :D [08:47] nuck: Damn that thing talks fast [08:47] `3rdEden: nuck and change english to to dutch [08:47] nuck: `3rdEden » It autodetected Dutch [08:47] `3rdEden: that is the way we announce it here [08:47] astacy has joined the channel [08:47] `3rdEden: nuck but it translates it to english [08:48] `3rdEden: from dutch to dutch [08:48] nuck: "are-noot kaz-eh-meer" [08:48] `3rdEden: yup [08:48] nuck: I love the English pronunciation [08:49] Orion-: this one is great : http://translate.google.com/#auto|zh-TW|Arnout%20Kazemier [08:49] `3rdEden: ;D [08:49] `3rdEden: russian is fun as well ;D [08:50] eldios: yo yo yo [08:50] Orion-: `3rdEden: this one is depressing : http://translate.google.com/#auto|ja|Arnout%20Kazemier [08:51] Murugaratham: anyone set up nodejs on osx lion ? [08:51] xerox: sure [08:51] pen has joined the channel [08:52] Orion-: you mean lion cub ? ;) [08:52] Xano has joined the channel [08:52] Murugaratham: i upgraded snow leopard to lion [08:52] Orion-: I'm waiting for update 3 to upgrade [08:52] Murugaratham: and realised that xcode is gone [08:52] Murugaratham: now i cant build from source -_- [08:53] Orion-: you must download xcode for lion [08:53] Murugaratham: it's a pain [08:53] xerox: it's free on the mac app store [08:53] xerox: do that first [08:54] Murugaratham: 3gb download.. [08:54] pen has joined the channel [08:54] Murugaratham: thx guys [08:54] Orion-: they should really do inc updates for xcode also [08:57] chjj has joined the channel [08:58] davidcoallier has joined the channel [08:58] markwubben has joined the channel [09:01] quijote has joined the channel [09:04] cjroebuck has joined the channel [09:05] MechanisM has joined the channel [09:05] biom has joined the channel [09:05] niclone has joined the channel [09:06] biom: Hi everyone! [09:06] adrianmg has joined the channel [09:06] biom: need help about a node.js/mongodb and JSON file [09:06] biom: anyone? [09:06] biom: ^^ [09:06] pen has joined the channel [09:07] pen has joined the channel [09:07] nuck: You know what'd be nice in Node? Some way to set the root folder for a project [09:08] bzinger has joined the channel [09:08] nuck: So I could stop doing relative paths in require() [09:08] maqr has joined the channel [09:08] xerox: do you really need to [09:09] nuck: Well, in a project with subfolders which require from other subfolders, it gets ugly to keep doing "../../../thing/foo/bar.js" [09:09] xerox: maybe you could break it into different node_modules [09:09] xerox: so that you can just require 'thing' ? [09:09] nuck: I'd like to be able to just set something and have Node add the top of my project to the require() automatically [09:09] Orion-: you could unshift the search paths [09:09] nuck: xerox » Sadly, not really :/ [09:09] nuck: Orion- » Gone in 0.5.x [09:10] nuck: require.paths is dead [09:10] nuck: And for good reason [09:10] Orion-: but 0.5 is not stable [09:10] nuck: It's too much power, it was abused [09:10] nuck: Orion- » Aye, but 0.6.x will be [09:10] nuck: And it too will lack that [09:10] Orion-: w8'n'c [09:10] nuck: oh dear god [09:11] nuck: I thought you'd let a cat step on your keyboard [09:11] nuck: Before I realized it was "wait and see" [09:11] Orion-: :D [09:11] nuck: But no, it's completely gone for good. [09:11] Orion-: I too was amazed by the result :) [09:11] nuck: They've made it quite clear it's dead. [09:11] nuck: xerox » Something like that, yeah [09:12] nuck: If I could set my project root for a process, I could make much better code [09:12] nuck: Well, *cleaner* code [09:13] webben has joined the channel [09:14] chjj: man, xterm is totally the best term emulator once you hack the hell out of it [09:14] nuck: chjj » Anything can be good with enough hacking :D [09:14] chjj: true [09:14] biom: I use node in a project, I need to read JSON files, and add the JSON file in mongodb. I read the file, that fine, but I can't add the content of each JSON in the db. That the code for the insertion: db.insert(jsonData) [09:15] skratool has joined the channel [09:15] nuck: biom » Well, obviously that's not your problem, try posting your code on gist.github.com [09:15] nuck: And I'm sure somebody will help you [09:15] nuck: Maybe not me, since I may or may not be going to bed soon. Haven't decided yet. [09:15] xerox: biom: look at the examples [09:15] biom: oups, sorry, I was thinking that this channel was a node.js help channel [09:16] nuck: >_> [09:16] pt_tr has joined the channel [09:16] nuck: biom » It is [09:16] xerox: https://github.com/christkv/node-mongodb-native/tree/master/examples [09:16] nuck: biom » You did install the mongo module, right? [09:16] biom: mongoskin [09:17] biom: xerox > I will take a look on that, thanks! [09:17] webben has joined the channel [09:17] xerox: that's for the npm module 'mongodb' [09:17] xerox: not 'mongoskin' [09:17] xerox: https://github.com/guileen/node-mongoskin [09:17] xerox: which does have examples too [09:17] biom: I use an external mongodb from mongohq.com [09:18] cosmincx has joined the channel [09:19] nuck: biom » Try gisting your code so whoever helps you can be on the same page as you [09:20] kee has joined the channel [09:20] pen has joined the channel [09:21] eddyb has left the channel [09:22] webben has joined the channel [09:23] biom: nuck: check this: http://www.copypastecode.com/78445/ [09:23] irahgel has joined the channel [09:26] biom: the problem come from the addPluginToDB function, which use an other function to add the object in the db [09:26] Frippe has joined the channel [09:30] nuck: Well, I'm afraid I really do need sleep, but I'm sure somebody else will be able to help :) [09:30] dnjaramba has joined the channel [09:30] nuck: It's 2:30 AM, and I have to be up at 6 [09:30] nuck: haha [09:30] mc_greeny has joined the channel [09:31] biom: yep no worries, thanks mate [09:31] tauren: OT question, but maybe someone has some suggestions. Does everyone just use curl to experiment with REST apis? if not, what? [09:31] Croms has joined the channel [09:31] robinduckett: tauren: i just use request :P [09:31] nuck: tauren » I'd use cURL yeah [09:31] dnjaramba has joined the channel [09:32] nuck: I also build a form on the client side sometimes [09:32] nuck: And then read the response in the browser [09:32] tauren: robinduckett: that's certainly an option! :) [09:32] nuck: No need for AJAX when there's no need to make shit pretty :D [09:32] tauren: nuck: that's just the thing. if i want to post stuff with lots of auth headers and crap, i'm just wondering if there is a more gui based tool to do it. [09:33] KyleReese301: Is it possible to run PHP on a Node.js server? [09:33] pen has joined the channel [09:33] robinduckett: request({uri: 'resturl'}, function(err, res, body) {JSON.parse(body)}); [09:33] robinduckett: KyleReese301: yes, look up node-lazy [09:33] stonebranch has joined the channel [09:34] pen has joined the channel [09:34] KyleReese301: thx robinduckett [09:34] nuck: tauren » Sadly, no :) [09:34] nuck: Er, :( [09:34] nuck: tauren » However, if you find one, tell me, because I could really use it :P [09:35] tauren: robinduckett: yeah, for get's that's not bad. but posting with extra headers and such gets messier. still, that might still be better than curl. [09:35] tauren: nuck: sure will! [09:35] dnjaramba has joined the channel [09:36] meso has joined the channel [09:36] tauren: nuck: http://stackoverflow.com/questions/603170/gui-frontend-for-curl-for-testing-an-api [09:38] dnjaramba has joined the channel [09:39] robinduckett: tauren: how so? [09:39] pen has joined the channel [09:39] robinduckett: tauren: request handles all of that. I'd say doing a short nodejs script is better than trying to remember curl command options [09:39] luke` has joined the channel [09:41] Xano has joined the channel [09:41] tauren: robinduckett: After looking at the gui options, I think I agree with you. With a nodejs script, I can save things into git, easily run them, tweak them in a text editor, etc. I think I'll go that route. Thanks for the suggestion. [09:41] robinduckett: tauren: GUI is for suckers :D [09:41] dnjaramba has joined the channel [09:41] MrTopf has joined the channel [09:42] tauren: yeah, but i just wanted to test something out quick, and can't ever remember the curl options... [09:42] robinduckett: curl -I url == get headers [09:42] Shrink has joined the channel [09:42] Glenjamin: does that do a HEAD, or a GET and only show headerS? [09:42] robinduckett: GET and shoes headers [09:44] robinduckett: shows [09:44] robinduckett: even [09:44] robinduckett: i m smrt [09:44] dnjaramba has joined the channel [09:45] [AD]Turbo has joined the channel [09:45] secoif has joined the channel [09:45] aabt_ has joined the channel [09:46] DennisRasmussen has joined the channel [09:46] [AD]Turbo: hi there [09:46] piscisaureus_ has joined the channel [09:46] dnjaramba has joined the channel [09:48] __doc__ has joined the channel [09:48] mavin|gone has joined the channel [09:49] dnjaramba has joined the channel [09:50] weezle has joined the channel [09:50] piscisaureus has joined the channel [09:51] pen has joined the channel [09:51] piscisaureus_ has joined the channel [09:52] dnjaramba has joined the channel [09:52] rendar has joined the channel [09:52] Frippe has joined the channel [09:52] rendar has joined the channel [09:52] rendar has joined the channel [09:53] rendar has joined the channel [09:53] jomoho has joined the channel [09:54] FireyFly|n900 has joined the channel [09:54] rendar has joined the channel [09:55] dnjaramba has joined the channel [09:55] stagas has joined the channel [09:57] wmage has joined the channel [09:57] skm has joined the channel [09:58] dnjaramba has joined the channel [10:01] Nuck has joined the channel [10:02] bogomips has joined the channel [10:04] mike5w3c has joined the channel [10:07] kuebk has joined the channel [10:09] zomgbie has joined the channel [10:09] wtfcoder has joined the channel [10:09] Murugaratham has joined the channel [10:10] wtfcoder: is there any equivalent in NodeJs to if __name__ == "__main__", i.e. allow for it be a module but can also run standalone [10:11] anoop has joined the channel [10:11] mendel_ has joined the channel [10:12] Glenjamin: if (!module.parent) [10:13] spcshpopr8r has joined the channel [10:16] aho: does mkdir work on windows? if i pass 511 (0777), the directory is created, but then it bombs. [10:17] aho: "Error: OK, Der Vorgang wurde erfolgreich beendet." ~ "Error: OK, operation completed successfully." [10:17] aho: riiiiight o_O; [10:17] skm has joined the channel [10:19] wtfcoder: aho, does a directory have a relationship to a group on windows, how does it know which group to use if more than one group is part of the ACL? [10:19] wtfcoder: Glenjamin, thanks [10:20] aho: none of that [10:20] aho: i'd omit that parameter if it were possible [10:20] wtfcoder: so it just ignores group on windows, does it map all to Everyone? [10:21] fermion has joined the channel [10:29] thalll has joined the channel [10:30] EvRide has left the channel [10:32] wtfcoder: hmmm does the http client lib 'request' have anything for handling querystring (encoding, concat etc..) ? [10:37] felixge has joined the channel [10:37] felixge has joined the channel [10:42] wmage has joined the channel [10:46] wmage has joined the channel [10:46] igl has joined the channel [10:53] savage- has joined the channel [10:54] mpavel1 has joined the channel [10:54] FireFly has joined the channel [10:58] AAA_awright_ has joined the channel [11:04] kersny has joined the channel [11:07] theCole has joined the channel [11:08] theCole_ has joined the channel [11:08] pt_tr has joined the channel [11:11] dthompso99 has joined the channel [11:11] Skomski has joined the channel [11:11] thalll has joined the channel [11:11] HuB has joined the channel [11:12] pt_tr has joined the channel [11:13] bicranial has joined the channel [11:15] JakeyChan has joined the channel [11:15] FireFly|n900 has joined the channel [11:15] luke` has joined the channel [11:16] replore_ has joined the channel [11:16] replore has joined the channel [11:16] bzinger has joined the channel [11:18] chjj has joined the channel [11:21] amigojapan has joined the channel [11:22] CIA-54: node: 03koichik 07master * re7f64a7 10/ doc/api/https.markdown : [11:22] CIA-54: node: doc: HTTPS client's options [11:22] CIA-54: node: Fixes #1494. - http://git.io/iB3gtw [11:23] eee_c has joined the channel [11:23] blup has joined the channel [11:23] Tobbe_: wtfcoder: I might be talking out of my ass here, but what about if (!module.parent)? [11:25] jetienne: node.js rocks [11:26] clu3 has joined the channel [11:27] fg3 has joined the channel [11:29] fairwinds has joined the channel [11:30] binom23 has joined the channel [11:31] TokyoDan has joined the channel [11:32] andrewfff has joined the channel [11:33] NewCoder has joined the channel [11:36] jspiros_ has joined the channel [11:36] deedubs has joined the channel [11:37] konobi: what an odd question... "@joyent What is the best way to contact you regarding your commitment to the #Node community?" [11:38] febits has joined the channel [11:38] nosteve123 has joined the channel [11:39] [AD]Turbo: http://nodeofficehours.eventbrite.com/ [11:41] deedubs has joined the channel [11:44] z6Dabrata has joined the channel [11:45] davidcoallier has joined the channel [11:45] felixge has joined the channel [11:45] felixge has joined the channel [11:45] kee has joined the channel [11:47] rfay has joined the channel [11:48] vguerra_ has joined the channel [11:48] whitman has joined the channel [11:52] xerox: does anybody know if there is a cleaner way to close a node process that uses 'kue' than process.exit(0) [11:52] davidcoallier has joined the channel [11:53] xerox: I think it remains open even when you are finished with all the kue stuff because it keeps the connection to redis [11:53] xerox: but I do not see a close/end/terminate/whatever function in the api [11:55] fredric has joined the channel [11:57] eee_c1 has joined the channel [11:57] vguerra_ has joined the channel [11:58] scott_gonzalez has joined the channel [12:00] unomi has joined the channel [12:00] ditesh|cassini has joined the channel [12:00] short_chuck has joined the channel [12:00] short_charles has joined the channel [12:00] weezle has joined the channel [12:00] rfay has joined the channel [12:01] Shrink has joined the channel [12:01] Shrink has joined the channel [12:01] soondee has joined the channel [12:01] Frippe has joined the channel [12:03] astacy_ has joined the channel [12:04] storrgie has joined the channel [12:04] Xano has joined the channel [12:06] astacy has joined the channel [12:06] phiggins has joined the channel [12:07] Orion- has joined the channel [12:07] adrianmg1 has joined the channel [12:07] mbrevoort has joined the channel [12:07] cha0s has joined the channel [12:07] cha0s has joined the channel [12:07] phiggins has joined the channel [12:07] aaronmcadam has joined the channel [12:09] nosteve123 has left the channel [12:09] adrianmg1 has left the channel [12:09] thurmda has joined the channel [12:12] stepheneb has joined the channel [12:12] andrewfff has joined the channel [12:13] simenbrekken has joined the channel [12:14] secoif_ has joined the channel [12:14] davidcoallier has joined the channel [12:16] blueadept` has joined the channel [12:17] bogdanbiv has joined the channel [12:19] davidbanham has joined the channel [12:20] hij1nx has joined the channel [12:24] dgathright has joined the channel [12:24] Emmanuel has joined the channel [12:25] erichynds has joined the channel [12:25] fly-away has joined the channel [12:26] jtsnow has joined the channel [12:28] mrkishi has joined the channel [12:28] amocla has left the channel [12:29] robotmay has joined the channel [12:29] mehtryx has joined the channel [12:29] mehtryx has joined the channel [12:30] aaronmcadam has joined the channel [12:31] fumanchu182 has joined the channel [12:32] DennisRas has joined the channel [12:35] kriszyp has joined the channel [12:35] Margle has joined the channel [12:35] Treffynnon has joined the channel [12:36] spcshpop` has joined the channel [12:36] DennisRasmussen has joined the channel [12:38] stonebranch has joined the channel [12:41] nilcolor has joined the channel [12:41] jbpros has joined the channel [12:43] astacy has joined the channel [12:43] anoop: hi, I was trying to run cloud9 in my PC, when I run the cloud9.js file, I get an error saying "Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead." [12:44] anoop: Node version is 0.5.6 [12:44] Glenjamin: try using the latest node 0.4.x [12:44] jbpros has joined the channel [12:45] zastaph has joined the channel [12:45] anoop: Glenjamin: so, 0.4.x is latest than 0.5.x ? [12:45] xerox: even are stable, odd are unstable releases [12:45] kulor-uk has joined the channel [12:46] anoop: okie, thanks :) [12:46] poseid has joined the channel [12:46] brianseeders has joined the channel [12:47] mrchess has joined the channel [12:48] `3rdEden has joined the channel [12:48] Treffynnon: Does any one here know about the node-xmpp package? I am getting an error ("node_modules/node-xmpp/node_modules/node-expat/wscript:13: error: the configuration failed") from npm when it attempts to install the node-expat@1.4.0 dependency. Other packages such as express and cradle are installing fine. npm = v1.0.27, node = v0.4.11. Any thoughts? [12:48] anoop: 0.4.9 is ok? [12:49] romanb has joined the channel [12:51] `3rdEden has joined the channel [12:53] postwait has joined the channel [12:54] josdehar has joined the channel [12:54] aaronmcadam has joined the channel [12:56] svnlto has joined the channel [12:56] jbpros has joined the channel [12:57] tobmaster has joined the channel [12:57] heavysixer has joined the channel [12:57] abraxas has joined the channel [12:57] davidsklar has joined the channel [12:57] shiawuen has joined the channel [12:58] abraxas: What do you guys use for building javascript for the client, from within node? [12:58] abraxas: If anything :) [12:59] chia has joined the channel [13:02] ceej has joined the channel [13:02] xerox: ender.js [13:03] NewCoder has joined the channel [13:04] montylounge has joined the channel [13:04] normanrichards has joined the channel [13:04] steveCAustin has joined the channel [13:04] nilcolor has joined the channel [13:04] Treffynnon: I had forgotten to install the library that node-expat depends upon. its now working! [13:05] k1ttty has joined the channel [13:06] mpavel has joined the channel [13:08] mike5w3c has joined the channel [13:08] cosmincx has joined the channel [13:09] nilcolor has joined the channel [13:10] JakeyChan has joined the channel [13:11] akujin- has joined the channel [13:11] bnoordhuis has joined the channel [13:12] adambeynon has joined the channel [13:14] ph^ has joined the channel [13:16] Shrink has joined the channel [13:16] Shrink has joined the channel [13:17] akujin- has joined the channel [13:17] nilcolor has joined the channel [13:18] enmand has joined the channel [13:19] Astro: Treffynnon: libexpat, right? [13:19] Astro: ACTION has hilight on node-xmpp now :) [13:19] talltyler has joined the channel [13:20] nilcolor has joined the channel [13:20] divoxx has joined the channel [13:21] bloodsucker_ has joined the channel [13:22] Metal3d has joined the channel [13:22] nilcolor has joined the channel [13:22] bloodsucker_ has joined the channel [13:22] N0va` has joined the channel [13:23] bloodsucker_ has joined the channel [13:24] sabel|2 has joined the channel [13:25] Margle has joined the channel [13:26] ksheurs has joined the channel [13:27] mavus has joined the channel [13:27] cole_gillespie has joined the channel [13:27] c4milo has joined the channel [13:30] Poetro has joined the channel [13:30] Poetro has joined the channel [13:31] replore has joined the channel [13:31] replore_ has joined the channel [13:32] thomblake has joined the channel [13:32] thomblake has left the channel [13:33] divoxx: Hey guys, Is there anything like pack/unpack, where I can easy create and read buffers? [13:34] joeytwiddle has joined the channel [13:40] CarterL has joined the channel [13:43] slyphon has joined the channel [13:44] baudehlo: There's some stuff going into 0.5.x for that kind of thing. But nothing as nice as pack/unpack from perl. [13:44] baudehlo: I just rolled my own for creating/reading network strings ("N/a*" in perl pack syntax) [13:44] martinisoft has joined the channel [13:45] nail_: there is node-binary, but that's only one way, to unpack [13:46] bnoordhuis: i think i've seen one or two other modules too but i don't recall the names [13:46] bnoordhuis: they're probably on the wiki though [13:46] sivy has joined the channel [13:47] baudehlo: I'd love to see a node-pack [13:47] ryanfitz has joined the channel [13:47] SuMarDi has joined the channel [13:47] bnoordhuis: node-struct because python > perl [13:47] bnoordhuis: ACTION ducks [13:49] baudehlo: heh, I don't care. [13:50] talltyler has joined the channel [13:50] divoxx: bnoordhuis: https://github.com/xdenser/node-struct <- this? [13:50] divoxx: looks actually pretty nice [13:50] divoxx: will give it a try [13:50] baudehlo: Though to be honest I've only ever used "H*" and "N/a*" and "L" pack formats in perl, none of the other more esoteric crap. [13:51] JumpMast3r has joined the channel [13:52] cypres has joined the channel [13:53] kertz has joined the channel [13:55] sonnym has joined the channel [13:55] aheckmann has joined the channel [13:56] cypres: The docs for http.ClientResponse state that by default the data event will emit Buffer objects but I always get strings. How are you supposed to manipulate binary data from a client request ? [13:56] JulioBarros has joined the channel [13:56] dmkbot1 has joined the channel [13:56] aheckmann has left the channel [13:57] esmevane has joined the channel [13:58] bnoordhuis: cypres: are you sure they're strings? type coercion will convert buffers to strings if you do e.g. request_data += chunk [13:58] Glenjamin: don't set the encoding [13:58] nuck has joined the channel [13:58] pyrotechnick has joined the channel [13:58] cypres: bnoordhuis, (chunk instanceof Buffer) returns false ? [13:59] bnoordhuis: oh, in that case do like Glenjamin said, don't set an encoding [13:59] bnoordhuis: ah, an another thing: use Buffer.isBuffer(chunk) [13:59] luke` has joined the channel [13:59] bnoordhuis: instanceof doesn't always work for buffers [13:59] Dreamer3 has joined the channel [13:59] cypres: thank you both [14:00] cypres: I set the encoding to null... removing that statement fixed it [14:00] Glenjamin: the instanceof was coercing to string? [14:00] Glenjamin: sounds fun [14:02] cypres: Glenjamin: I don't think the instanceof was coercing, but calling res.setEncoding(null) didn't emit Buffer objects but strings instead for data events [14:02] patrickgamer has joined the channel [14:02] boehm has joined the channel [14:03] torsd has joined the channel [14:03] patrickgamer has left the channel [14:03] Glenjamin: ah [14:04] bogomips2_ has joined the channel [14:05] MUILTFN has joined the channel [14:07] tobmaster has joined the channel [14:08] alnewkirk has joined the channel [14:08] adrianmg1 has joined the channel [14:09] adrianmg1 has left the channel [14:09] nuck has joined the channel [14:10] BillyBreen has joined the channel [14:10] rurufufuss: what is a recommended RPC lib for node.js to talk to, say, c++? [14:10] nuck: rurufufuss » Pretty sure you do that just by hooking into V8? [14:10] Margle has joined the channel [14:10] rurufufuss: hmm, I'll have to take a look at that [14:10] nuck: Though, admittedly, I've never done a C++ module nor do I know C++ [14:11] rurufufuss: I have a high score server I made which I want to make a web interface of it [14:11] nuck: But I know there are C++ modules out there [14:11] nuck: rurufufuss » Why not hook into the storage mechanism? [14:12] nuck: Or are you not using a database? [14:12] nuck: If not, you might be risking scalability beyond a few people :/ [14:12] rurufufuss: it's in memory and saves to file every now and then [14:12] rurufufuss: nah, the high score page is limited [14:12] rurufufuss: to, say, the top 50 [14:13] nuck: rurufufuss » Well, for modules, they're generally separate C++ things, but I'm sure you can find some way to overcome that [14:13] rurufufuss: where can I read more about V8 engine module? [14:13] nuck: Of course there's also the possibility for RPC over a socket [14:13] rurufufuss: google searches turn up car related stuff, heh [14:14] rurufufuss: yeah, that's what I thought is the best way available, RPC over socket [14:15] montylounge has joined the channel [14:15] guy has joined the channel [14:15] Dreamer3 has joined the channel [14:15] nuck: rurufufuss » Erm, I don't know what resources there are, but try looking for some C++ modules for Node [14:16] nuck: They're pretty common [14:17] MUILTFN has joined the channel [14:17] jetienne__ has joined the channel [14:17] syrio has joined the channel [14:17] syrio has left the channel [14:18] edwardmsmith has joined the channel [14:19] MacDiva has joined the channel [14:20] pietern has joined the channel [14:23] igl has joined the channel [14:25] mpavel1 has joined the channel [14:25] wdperson has joined the channel [14:25] pyrotechnick has left the channel [14:26] BillyBreen1 has joined the channel [14:27] cole_gillespie: anyone use gedit? [14:27] cronopio has joined the channel [14:28] OmidRaha has left the channel [14:28] andrewfff has joined the channel [14:28] aaronmcadam has joined the channel [14:28] sivy has joined the channel [14:29] aconbere has joined the channel [14:29] softdrink has joined the channel [14:29] Aikar: cole_gillespie: sometimes for quick edits, why? [14:30] cole_gillespie: Aikar, do you know how to see a closing brace when you cursor over opening? [14:30] cole_gillespie: like in vim [14:30] Aikar: um, it MAY be a module [14:30] Aikar: my gedit is doing it by default [14:30] Aikar: well [14:30] Aikar: i think i have a ton of things loaded lemme check [14:30] aaronmcadam: did u install gedit-plugins [14:31] joshkehn has joined the channel [14:31] Aikar: i dunno about an extra package, i manually installed quite a few [14:31] CIA-54: node: 03Ben Noordhuis 07v0.4 * r8b2a335 10/ (deps/http_parser/http_parser.c deps/http_parser/test.c): [14:31] CIA-54: node: http_parser: cherry-pick 3258e4a and b89f944 from upstream [14:31] CIA-54: node: Fixes #1569, parse error on multi-line HTTP headers. - http://git.io/LejPyg [14:31] CIA-54: node: 03Ben Noordhuis 07v0.4 * r5724b54 10/ test/simple/test-http-multi-line-headers.js : [14:31] CIA-54: node: test: add http multi-line header test [14:31] CIA-54: node: Test case for #1569. Verify that http_parser parses multi-line headers. - http://git.io/5H6GhQ [14:31] aaronmcadam: cole_gillespie: did u install gedit-plugins? [14:31] Aikar: was trying to make gedit my primary dev env before so loaded it up with alot of stuff [14:32] aaronmcadam: yeah did that before [14:32] cole_gillespie: AAA_awright_, yes [14:32] Aikar: but now i stick with Komodo for serious development for project management/easy navigation. [14:32] cole_gillespie: aaronmcadam, yes [14:33] Aikar: cole_gillespie: I dont see any plugin i have loaded that would be ADDING the higlighting functionality, only "Bracket Completion" that auto inserts closing brackets [14:33] Aikar: i think its a built i nfeature of GEdit, you may need to adjust your themes color settings to see the hilight [14:34] bogomips2__ has joined the channel [14:35] Aikar: cole_gillespie: ohh, its under Preferences, "Bracket Matching" [14:35] Aikar: you prolly have it disabled [14:35] pgherveou has joined the channel [14:36] Aikar: View tab [14:36] devongovett has joined the channel [14:36] cole_gillespie: i use thanks [14:37] yhahn has joined the channel [14:40] zemanel has joined the channel [14:40] Aiden_ has joined the channel [14:40] bshumate has joined the channel [14:40] bshumate has joined the channel [14:41] dexter_e has joined the channel [14:41] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [14:43] colinclark has joined the channel [14:44] aelien27 has joined the channel [14:45] Jim91 has joined the channel [14:46] kevwil has joined the channel [14:47] Frippe has joined the channel [14:47] liar has joined the channel [14:48] dseif has joined the channel [14:49] CIA-54: node: 03koichik 07master * r244675c 10/ doc/api/https.markdown : doc: HTTPS client's options - http://git.io/TvETyg [14:50] zomgbie has joined the channel [14:50] irahgel1 has joined the channel [14:51] cronopio has joined the channel [14:51] sirdancealot has joined the channel [14:52] ako has joined the channel [14:53] scottschecter has joined the channel [14:54] ank has joined the channel [14:54] sub_pop has joined the channel [14:54] robertfw has joined the channel [14:55] mandric has joined the channel [14:55] guy has joined the channel [14:56] dmkbot1: joyent/node: 03jampy: "Exec format error" when cross-compiling for ARM (workaround provided) - https://github.com/joyent/node/issues/1541 [14:56] mehtryx has left the channel [14:56] Venom_X has joined the channel [14:56] sivy has joined the channel [14:58] agd has joined the channel [15:00] nuck has joined the channel [15:00] guy has joined the channel [15:00] TheJH has joined the channel [15:00] TheJH has joined the channel [15:01] dmkbot1: joyent/node: 03indutny: Readline: Completer should be optional - https://github.com/joyent/node/issues/1705 [15:01] bzinger has joined the channel [15:02] storrgie has joined the channel [15:05] fatjonny has joined the channel [15:07] felixge has joined the channel [15:07] felixge has joined the channel [15:07] boaz has joined the channel [15:08] gxdssoft has joined the channel [15:08] joshthecoder has joined the channel [15:09] storrgie has joined the channel [15:10] agd has joined the channel [15:10] storrgie has joined the channel [15:11] jarek has joined the channel [15:11] jarek has joined the channel [15:11] bogomips2_ has joined the channel [15:11] jerrysv has joined the channel [15:12] bogomips2__ has joined the channel [15:15] mrsrikanth has joined the channel [15:15] Vertice has joined the channel [15:17] jchris has joined the channel [15:18] baoist has joined the channel [15:18] storrgie has joined the channel [15:20] irahgel has joined the channel [15:21] MattM_ has joined the channel [15:21] 92AAACJM7 has joined the channel [15:21] 16SAA1VSU has joined the channel [15:21] colinclark_ has joined the channel [15:22] colinclark_ has joined the channel [15:22] jakehow has joined the channel [15:22] tjholowaychuk has joined the channel [15:23] wbf_ has joined the channel [15:24] fdenbow has joined the channel [15:24] brianc has joined the channel [15:25] thalll has joined the channel [15:25] hermanjunge has joined the channel [15:27] fangel has joined the channel [15:28] guy: I don't get the concept behind EventEmitter [15:29] guy: how is it different from simply creating any function? [15:29] guy: you create an event. then you call it with .emit('caller', args); [15:30] sfoster has joined the channel [15:31] dmkbot1: joyent/node: 03BillBarnhill: Fix memory allocation in uv__fs_after - https://github.com/joyent/node/issues/1686 [15:31] softdrink: you can have multiple things listening to the same event on an object [15:32] guy: I've just read http://visionmedia.github.com/masteringnode/book.html [15:32] guy: any further readings recommended? [15:32] springmeyer has joined the channel [15:32] Glenjamin: guy: the main difference is multiple listeners [15:33] CraigMaslowski has joined the channel [15:33] jerrysv: guy: hands-on node.js [15:33] CIA-54: node: 03Ben Noordhuis 07master * r92d4ed3 10/ lib/readline.js : [15:33] CIA-54: node: readline: handle null completer graciously [15:33] CIA-54: node: Fixes #1698. - http://git.io/4A1Xog [15:33] jerrysv: guy: http://nodetuts.com/handson-nodejs-book.html [15:33] guy: http://nodetuts.com/handson-nodejs-book.html ? [15:33] guy: oh. Ok. [15:34] jerrysv: yup, that one [15:34] guy: Buy a bundle containing "Hands-on Node.js" and "The Node Beginner Book" by Manuel Kiessling for $10.98 $7.99! [15:34] guy: is the other book usefult? [15:34] guy: useful* [15:34] hermanjunge has joined the channel [15:34] jerrysv: no idea, sorry. that other one was new to me [15:34] tmcw has joined the channel [15:34] jerrysv: guy: also, when you're ready - http://docs.nodejitsu.com/ [15:36] guy: could anyone give me a clue on node.js developer rate these days? [15:36] Dreamer3 has joined the channel [15:36] guy: London. [15:36] sivy has joined the channel [15:36] epsas: City? [15:36] guy: London. [15:37] epsas: ahh - i meant City of London [15:37] guy: Yes. [15:37] epsas: i got an offer from a company in the Barbican for 55K [15:37] guy: well, that's perm, so they are always low. [15:38] broofa has joined the channel [15:38] epsas: 55K is not bad at all [15:38] bnoordhuis: epsas: 55K? that's for four days a week from 10.00 to 14.00 hours? [15:38] bogomips2_ has joined the channel [15:38] Marak: http://www.youtube.com/watch?v=8NvigYnLkA8 [15:38] Marak: ^^ #17 hook.io - Using Hook.io to Install NPM Packages Anywhere [15:38] Marak: boom [15:38] Marak: i would watch that [15:38] Dreamer3 has joined the channel [15:38] jerrysv: marak: i'm more in the frightened camp :) [15:39] epsas: bnoordhuis - dunno. I am used to the american work-ethic. factor in teas and "how-do-you-do's" and the workday probably collapses to a 6 hour stretch [15:39] joshkehn: epsas: What america are you living in? [15:39] epsas: american work ethic == "stay at your desk and code you monkey!" [15:40] bnoordhuis: epsas: i was more or less kidding but 55k seems low when you live in london [15:40] pizthewiz has joined the channel [15:40] joshkehn: Ah. I misread your statement. Apologies. :) [15:40] guy: 55k sounds horribly low to me even for a amateur JS developer. [15:40] devongovett has joined the channel [15:40] bnoordhuis: i'm only talking from second-hand experience though [15:40] [diecast]: depends on location [15:40] epsas: bnoordhuis - yeah. but people get by quite alright on 30K over there [15:40] [diecast]: 55k in florida is fine [15:40] jtsnow has joined the channel [15:40] epsas: 55K sterling [15:40] guy: [diecast]: haha. Florida is != Central London. : ) [15:40] [diecast]: exactly [15:41] Glenjamin: 55k is a decent london wage for a dev i'd have thought [15:41] [diecast]: i was kinda saying, you have to live in the sticks to survive on 55k [15:41] epsas: ACTION nods to GLenjamin [15:41] [diecast]: only know american wages [15:41] epsas: 55K pounds == $120K [15:41] smathy has joined the channel [15:41] epsas: ~ $120K [15:42] Glenjamin: .. 55000 * 1.5 [15:42] [diecast]: right [15:42] bnoordhuis: has the dollar devaluated that much? [15:42] guy: Glenjamin: well, have you ever looked for contractor roles then? GBP 350 a day is ± average salary. thats GBP ±90k a year [15:42] ttpva: anyone that works with Mongoose? I'm having a little problem here. [15:42] epsas: Glenjamin - that's euro [15:42] [diecast]: but what does that mean in london, i have no idea [15:42] epsas: iirc [15:42] bnoordhuis: 55K GBP is only ~63K EUR [15:42] Glenjamin: 55k GBP is nearer 80k usd [15:42] guillermo has joined the channel [15:42] [diecast]: 80k is a decent starting amount for nyc [15:42] joshkehn: Plus you can't forget the tax system is different. [15:42] Glenjamin: but there are much fewer additional costs of living in the UK [15:42] joshkehn: Though by how much I'm not sure. [15:42] chrislorenz has joined the channel [15:42] Dreamer3 has joined the channel [15:42] epsas: $86685.5 [15:43] guy: 55 British pounds = 86.8285 U.S. dollars; let's not forget that in US they have lower taxes too. [15:43] epsas: wow, exchange rates have changes [15:43] epsas: changed [15:43] Glenjamin: 55k GBP gross = £35.5k net [15:43] epsas: anybody interested in this? [15:43] CIA-54: node: 03Ryan Dahl 07master * r0e0fbf7 10/ (7 files in 4 dirs): Upgrade libuv to 4b9b692 - http://git.io/o43gEg [15:44] joshkehn: epsas: Interested in what? [15:44] Glenjamin: but there's no health insurance or other things to come off that - and you'll get ~ 6 weeks off + bank holidays [15:44] joshkehn: Discussing pay and taxes cross country? Not really. I have work to do. :p [15:44] Draggor has joined the channel [15:44] guy: anyway, I am sorta looking for a remote Node.js developer. More for a guiding me how to do stuff/review my code. Should take no more than an 1-2 per day. Anyone would be interested to do such job? paid per hour of your time, say. [15:44] fdenbow has joined the channel [15:45] joshkehn: guy: What timezone are you in? [15:45] guy: BST [15:45] jtsnow has joined the channel [15:45] guy: though, I would simply email the stuff, most of the time. [15:45] colinclark_ has joined the channel [15:46] epsas: joshkehn - the job [15:46] Vertice: hah. js2coffeescript [15:46] Vertice: http://js2coffee.org/ [15:46] Vertice: i've been (slowly) warming up to cs [15:46] __sorin__ has joined the channel [15:46] Glenjamin: oh what [15:47] Glenjamin: seeing that snippet makes me hate it even more [15:47] colinclark_ has joined the channel [15:47] Glenjamin: using instance var syntax to call a method with no brackets [15:47] Glenjamin: even ruby doesnt let you do that [15:48] hermanjunge has joined the channel [15:48] sonnym has joined the channel [15:49] jesusabdullah: Maybe ruby's the wrong one here [15:49] jesusabdullah: ;) [15:49] Yuffster_work has joined the channel [15:49] springmeyer has joined the channel [15:50] metellus has joined the channel [15:50] admc has joined the channel [15:51] mikekelly: should it be possible to pick up the line number on errors thrown by vm.runInNewContext() ? [15:51] jarek has left the channel [15:51] patcito has joined the channel [15:52] kenperkins has joined the channel [15:53] ecto has joined the channel [15:53] Dreamer3 has joined the channel [15:54] felixge has joined the channel [15:55] nuck: I approve of http://js2coffee.org/#coffee2js [15:55] nuck: Let companies migrate back ;D [15:55] felixge has joined the channel [15:55] felixge has joined the channel [15:56] felixge has joined the channel [15:56] felixge has joined the channel [15:56] ttpva: Is there a reason why "> db.case_notebooks.find({"case_id" : 5})" returns a document and " Case.find {"case_id" : "5"}, (err,docs) -> [15:56] ttpva: " doesn't? I am using Mongoose [15:56] Draggor has joined the channel [15:56] pandeiro has joined the channel [15:56] nuck: ttpva » Sorry, I don't read CS :/ [15:56] Jim91 has left the channel [15:57] hermanju_ has joined the channel [15:57] ttpva: Case.find({ [15:57] ttpva: "case_id": "5" [15:57] ttpva: }, function(err, docs) { [15:57] ttpva: nuck: that's JS [15:57] DougReeder has joined the channel [15:58] nuck: ttpva » That it is. I think it's Case.find({}).run(function) [15:58] DougReeder: ACTION waves hello [15:58] ttpva: nuck: only case_id doesn't work. _id, notes, etc, all work fine. [15:58] TheJH has joined the channel [15:58] TheJH has joined the channel [15:58] nuck: ttpva » hmm [15:58] DougReeder: What happened to path.normalizeArray in v0.4? Was it simply dropped without replacement? [15:59] jesster7 has joined the channel [15:59] ttpva: nuck: it seems that it ignores the "case_id", it doesn't match with anything. [15:59] AaronMT has joined the channel [15:59] nuck: ttpva » I assume it *is* in your schema? [15:59] ttpva: yes: CaseSchema = new Schema [15:59] ttpva: case_id : String [16:00] ttpva: sorry, in JS: CaseSchema = new Schema({ case_id: String, [16:00] CIA-54: libuv: 03Ben Noordhuis 07master * r337ff16 10/ (src/unix/eio/eio.c src/unix/fs.c): [16:00] CIA-54: libuv: unix: revert "eio: fix memory leak in eio__scandir()" [16:00] CIA-54: libuv: This reverts commit b450d8771967d0848595f8e966972ada257d3ffb. [16:00] CIA-54: libuv: It turns out that libeio doesn't actually leak memory but it does do an [16:00] CIA-54: libuv: unnecessary (and confusing!) allocation that is not free'd until after [16:00] CIA-54: libuv: the user callback returns. - http://git.io/rkMhVQ [16:00] CIA-54: libuv: 03Ben Noordhuis 07master * r76216d8 10/ src/unix/fs.c : unix: handle readdir errors in uv__fs_after() - http://git.io/XU8W5w [16:00] nuck: ttpva » It looks like it's being a *Number* based on your mongo REPL query? [16:00] nuck: ttpva » Perhaps that's the problem? [16:01] nuck: Change it to case_id: Number in the schema, and query for the number? [16:01] ttpva: I thought that but the field is saved as a string. I'll try that [16:01] ttpva: yes.. that's the problem! [16:01] ttpva: thanks nuck! [16:01] nuck: ttpva » no problem [16:01] ttpva: I thought about that, but when I create the model, I have field :case_id [16:02] ttpva: which defaults to String [16:03] [AD]Turbo has joined the channel [16:04] BillyBreen has joined the channel [16:04] ksheurs has joined the channel [16:05] jesusabdullah: v8> 1/60 [16:05] v8bot_: jesusabdullah: 0.016666666666666666 [16:05] hydrozen has joined the channel [16:05] springmeyer has joined the channel [16:06] stephank has joined the channel [16:06] jerrysv: v8: 1/0 [16:06] v8bot_: jerrysv: Infinity [16:06] dmkbot1: joyent/node: 03BillBarnhill: Fix memory allocation in uv__fs_after - https://github.com/joyent/node/issues/1686 [16:06] simenbrekken has joined the channel [16:06] jerrysv: v8: (&& beyond) [16:06] v8bot_: jerrysv: SyntaxError: Unexpected token && [16:06] aguynamedben has joined the channel [16:06] DrMcKay has joined the channel [16:06] pandeiro: anyone know how to fix node's repl in emacs? [16:07] joshkehn: pandeiro: What's wrong with it? [16:07] springmeyer has left the channel [16:08] pandeiro: dunno the characters look escaped or something... wrong encoding? [16:08] pandeiro: i am new to emacs admittedly [16:08] hij1nx has joined the channel [16:08] pandeiro: but no other repl has the problem [16:08] pandeiro: 2^[[1G> ^[[0K^[[3G [16:09] kindbeard has joined the channel [16:09] pandeiro: (that's what the prompt puts out) [16:09] felixge_ has joined the channel [16:09] pandeiro: looks like weird bash escape codes or something [16:09] joshkehn: Those look like bash escape codes. [16:09] joshkehn: The question I have is where are you using the repl in emacs? [16:09] joshkehn: Admitted vim user here. [16:09] joshkehn: :) [16:09] pandeiro: in shell [16:09] pandeiro: M-x shell [16:09] joshkehn: Ah [16:10] jerrysv: pandeiro: maybe try: ^Z followed by node [16:10] smtlaissezfaire has joined the channel [16:10] joshkehn: I do C-z out of vim. [16:10] felixge has joined the channel [16:10] joshkehn: Then I do whatever I need and `fg` back. [16:10] jerrysv: yup [16:10] unomi has joined the channel [16:10] jerrysv: or fire up another terminal [16:11] pandeiro: hunh now how do I un-C-z? lol lost my emacs [16:11] mbrevoort has joined the channel [16:11] joshkehn: fg [16:11] Margle has joined the channel [16:12] joshkehn: foreground [16:12] joshkehn: You can also do things like [16:12] joshkehn: tail -f /var/log/somelogfile.log [16:12] joshkehn: C-z [16:12] joshkehn: Then bg to throw it into the background. [16:12] pandeiro: ah ok [16:12] mrkishi has joined the channel [16:13] joshkehn: fg / bg are [fore | back]ground commands related to process stopping (C-z) [16:13] jerrysv: ACTION spent 15 years as an emacs user, but still can't understand why people try to use it as their whole OS [16:13] pandeiro: so obviously using node in another process works but the advantage of using it inside emacs is i can randomly eval code from inside my programs while editing [16:13] gazumps has joined the channel [16:13] joshkehn: Um [16:13] joshkehn: I guess. [16:13] joshkehn: I wouldn't really call that a big advantage when the escaping jacks up. [16:14] tmcw has joined the channel [16:14] pandeiro: if every repl did it, sure, but spidermonkey, python, clojure, every other one works fine [16:14] fischbowl has joined the channel [16:14] Dreamer3 has joined the channel [16:14] joshkehn: Probably because they aren't coloring or provide a —no-color option [16:14] pandeiro: i was using the ScreenShell vim plugin for something similar but i am finding emacs a little bit less hacky [16:14] pandeiro: ah maybe that's it, nice one [16:16] dgathright has joined the channel [16:16] blup has joined the channel [16:16] alnewkirk has joined the channel [16:16] Dreamer3 has joined the channel [16:17] piscisaureus has joined the channel [16:17] hij1nx has joined the channel [16:18] amerine has joined the channel [16:18] aguynamedben_ has joined the channel [16:18] joshthecoder has joined the channel [16:18] piscisaureus has joined the channel [16:19] djMax has joined the channel [16:19] piscisaureus has joined the channel [16:20] djMax: So with the async programming model of node, if you have some work that is only done in some cases (i.e. inside an if), do you just make a separate fn and call it from both sides of the if? [16:21] DougReeder: What happened to path.normalizeArray in v0.4? Is it just gone without replacement? [16:21] joshkehn: You try to avoid that kind of logic branching. ;) [16:21] hij1nx has joined the channel [16:21] tbranyen: djMax: make a function that takes in a callback, and do everything inside that other function conditionally and always call the callback when everything is done? [16:21] zhware has joined the channel [16:21] djMax: don't see how I could. In one case I have to put a record in mongo because I don't have it yet, and in one case I don't [16:22] djMax: yeah, tbranyen I think that's what I meant, as in "if (something) { doAsyncStuff(afterIt); } else { afterIt(); }" [16:22] tbranyen: djMax: function updateOrCreate(cb) { if (create) { return asyncMongo(function() { cb(); }) } asyncMongoUpdate(function() { cb(); }); } [16:22] tbranyen: something like that [16:22] tbranyen: only not on one line [16:23] joshkehn: djMax: What tbranyen is saying. [16:23] djMax: I guess I'm doing the inside out version of that, but it makes my head hurt a lot less. [16:24] tbranyen: the inside out version doesn't read nearly as well and breaks the flow of anyone trying to read your code [16:24] joshkehn: You mean you have the control structures outside of the function? [16:24] djMax: in node.js, when I do something to the response, like say redirect, do I still get to execute code after it? [16:24] joshkehn: I don't see why not, you're only passing information to the response. [16:24] joshkehn: You can say something like. [16:24] djMax: I just mean that after either the async function completes or if the condition isn't satisfied, I call the rest of the process in a separate fn. [16:24] joshkehn: res.send() and then continue after [16:25] djMax: but I think maybe I see the other option - make the whole lookup/insertion logic a separate fn and pass it the callback. [16:25] djMax: which I assume is what you guys are saying [16:25] piscisaureus_ has joined the channel [16:25] ajpiano has joined the channel [16:25] djMax: seems generally six of one half dozen of the other, but I get it. [16:26] DougReeder has left the channel [16:26] djMax: Just trying to make sure I never find myself 3 callbacks deep because that's a sign of doom [16:26] freeformz has joined the channel [16:27] Glenjamin: being a few callbacks deep is fine [16:27] djMax: In a single fn I find that it makes it basically unreadable. [16:27] Glenjamin: you can structure your code so that when reading it you a) don't really know how deep you are and b) don't care [16:27] Glenjamin: ah, yes [16:27] Glenjamin: 3 deep in one place is bad [16:27] djMax: When your indents start at charpos like 40, it's hell. [16:27] Glenjamin: use a control flow lib to abstract that stuff out [16:27] djMax: Is there a well traveled one? [16:28] Glenjamin: https://github.com/caolan/async [16:28] Glenjamin: is my favourite [16:28] hij1nx has joined the channel [16:28] ajpiano has joined the channel [16:28] Fabryz has joined the channel [16:29] djMax: the thing I don't quite get about libs like that... In series() for example, how would I know WHERE the error occurred? [16:29] DrMcKay: btw, is there a flow library returning functions instead of calling them? [16:29] Circlefusion has joined the channel [16:29] djMax: some closure variable? [16:30] Glenjamin: djMax: the (err) argument will be an exception, with a stack trace [16:30] tmcw has joined the channel [16:30] djMax: but working with stack traces in code is not a workable solution [16:31] Glenjamin: can you give an example of where you think this is a problem? [16:31] alvaro_o has joined the channel [16:32] Glenjamin: either you get a recoverable exception, which you know by its type - or you dont. And if you dont you log a stack trace and die [16:32] Glenjamin: DrMcKay: how do you mean? [16:32] Glenjamin: async.series(..) vs async.series(..).run() ? [16:33] Glenjamin: i think seq works like that [16:33] DrMcKay: Glenjamin: ah, I'll check it out [16:33] Glenjamin: oh, nope [16:33] mendel__ has joined the channel [16:34] Glenjamin: when i want to build up the task list, i just build the array/object, and then pass it to async once ready [16:34] chell has joined the channel [16:34] langworthy has joined the channel [16:34] jetienne has joined the channel [16:35] xerox: could somebody explain why sometimes try { ... } catch (e) { ... } is not enough to catch exceptions, in particular nextTick(function() { throw new Error('foo') }) ? [16:35] malkomalko has joined the channel [16:35] dguttman has joined the channel [16:35] nilcolor has joined the channel [16:35] jetienne_ has joined the channel [16:36] Glenjamin: the quick answer is because nextTick (by design), starts with a fresh stack [16:36] malkomalko: tjholowaychuk: you around for a quick should.js question? [16:36] xerox: Glenjamin: I never use it myself tho, I am thinking it is the library I am using that does it [16:36] djMax: mongoose basically the main mongodb/ORM for node.js? [16:36] xerox: so how do I protect myself ? [16:37] Glenjamin: process.on('uncaughtException', function(err) {}) [16:37] jarek has joined the channel [16:37] JaKWaC has joined the channel [16:37] jarek has joined the channel [16:37] anveo has joined the channel [16:37] xerox: uhm.. [16:37] hydrozen: What's the best way to have a nodejs app listen on a privileged port without running as root? I can't really use a proxy in my case because i've had issues with proxies and websockets. [16:38] jgornick has joined the channel [16:38] DrMcKay: hydrozen: node-http-proxy? [16:38] JaKWaC has joined the channel [16:39] DrMcKay: hydrozen: or start as root and drop privileges [16:39] bradwright has joined the channel [16:39] blueadept has joined the channel [16:39] heavysixer has joined the channel [16:39] hydrozen: DrMcKay: I tried but node-http-proxy didnt work perfectly for me. How do i drop privileges? [16:39] malkomalko: if you come back around.. have a question on https://github.com/visionmedia/should.js/blob/master/lib/eql.js#L29 [16:39] malkomalko: and wondering why that wasn't a === check [16:40] DrMcKay: hydrozen: http://onteria.wordpress.com/2011/05/31/dropping-privileges-using-process-setuid-in-node-js/ [16:40] malkomalko: it makes objects like { foo: '1' } { foo: 1 } pass and I think that's wrong [16:40] [diecast] has joined the channel [16:40] Kai` has joined the channel [16:40] ronnieboy has joined the channel [16:41] anveo: Is there a way to have a global node.js install for all users? [16:41] xerox: Glenjamin: https://gist.github.com/cf72a3771039ce92b063 [16:41] Vertice: for people in washington dc , we are having another node.js meetup next tuesday. i will be discussing underscore.js - http://developmentseed.org/blog/2011/09/14/discussing-underscorejs-nodejs-dc-meetup/ [16:41] tjholowaychuk: malkomalko yeah i would agree with that [16:41] tjholowaychuk: i believe i have it using node's deepEquals implementation [16:41] tjholowaychuk: so it's likely a bug there as well [16:42] malkomalko: bit us in the ass [16:42] malkomalko: we're forking it now [16:42] malkomalko: gonna change it and see if it breaks the tests [16:42] mikekelly has left the channel [16:42] ajsie has joined the channel [16:42] Glenjamin: xerox: async functions which accept a callback aren't supposed to throw [16:42] xerox: tjholowaychuk: btw that gist is the code that died mentioning nextTick [16:42] stisti has joined the channel [16:42] hydrozen: DrMcKay: thanks for your help, I'll try this. [16:42] xerox: Glenjamin: ah. [16:42] Glenjamin: they should always do callback(new Error('message')) [16:42] Sense545 has joined the channel [16:43] tanepiper_ has joined the channel [16:43] xerox: and then the callee does if (err) { whatever } [16:43] daleharvey has joined the channel [16:43] Glenjamin: yup [16:43] tomh has joined the channel [16:43] xerox: in particular if I want to catch request(..) exceptions, I should do so in the fetch function [16:44] xerox: and callback(the error I caught inside fetch()) [16:44] motill has joined the channel [16:44] ralph has joined the channel [16:45] xerox: thank you, very helpful [16:45] djMax: Anybody know if Mongoose has a way to say that the mongo name for a field is different than the JS name? [16:46] yozgrahame has joined the channel [16:46] metadaddy has joined the channel [16:46] kulor-uk has joined the channel [16:47] xerox: Glenjamin: I'm still puzzled about nextTick, when was nextTick called? [16:48] JSManiacs has joined the channel [16:48] Glenjamin: probably internally somewhere [16:48] footyfish has joined the channel [16:49] SamuraiJack has joined the channel [16:49] Nomon has joined the channel [16:49] dshaw_ has joined the channel [16:50] whoops has joined the channel [16:50] isaqual has joined the channel [16:51] CraigMaslowski has joined the channel [16:51] TooTallNate has joined the channel [16:51] dekz has joined the channel [16:51] matthijs has joined the channel [16:51] towski has joined the channel [16:52] xerox: Glenjamin: but if request() does it, try { request(..) } catch (..) { ... } will still not get caught! [16:52] malkomalko: tjholowaychuk: we sent a pull request [16:53] tjholowaychuk: malkomalko thanks man [16:53] majek_ has joined the channel [16:53] mehlah has joined the channel [16:54] zorzar has joined the channel [16:57] roidrage has joined the channel [16:57] dguttman has joined the channel [16:57] iaincarsberg has joined the channel [16:58] jtsnow has joined the channel [16:58] sriley has joined the channel [16:59] Margle has joined the channel [16:59] vaheh has joined the channel [17:00] indutny has joined the channel [17:02] beawesomeinstead has joined the channel [17:03] madsleejensen has joined the channel [17:03] nuck has joined the channel [17:05] Vertice: yay. we just launched our new node.js site : http://gain.globalai.org [17:05] ryanseddon has joined the channel [17:05] chunhao_ has joined the channel [17:05] maxogden: yeayuh devseed [17:05] perezd has joined the channel [17:06] vidi has joined the channel [17:06] StanlySoManly has joined the channel [17:06] gazumps has joined the channel [17:06] tjholowaychuk: Vertice nice job :) [17:06] temp01 has joined the channel [17:06] felixge_ has joined the channel [17:07] Vertice: thanks. express is in there somewheretoo [17:07] felixge_ has joined the channel [17:07] jetienne: (any native speaker around ? "lets Do a Game" and "Lets Make a Game". which one sound more like "building" this game) ? [17:08] tjholowaychuk: jetienne: make IMO [17:08] tjholowaychuk: do a game [17:08] tjholowaychuk: sounds weird [17:08] TheJH has joined the channel [17:08] TheJH has joined the channel [17:08] jetienne: tjholowaychuk: ok thanks [17:08] felixge has joined the channel [17:08] felixge has joined the channel [17:08] CraigMaslowski: let's build a game works too [17:09] mikeal has joined the channel [17:09] jetienne: build is one later more than make tho :) [17:09] Kami_ has joined the channel [17:09] Alex_R has joined the channel [17:09] JasonSmith has joined the channel [17:10] dnyy has joined the channel [17:10] jetienne: this increase the size of my blog post :) i use 'do' before for shortness [17:10] halcyon918: is anyone here particularly familiar with the "fork" process? [17:11] unomi has joined the channel [17:11] localhost has joined the channel [17:11] freeformz has joined the channel [17:11] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [17:11] mattly has joined the channel [17:13] trotter has joined the channel [17:13] thalll has joined the channel [17:14] rfay has joined the channel [17:15] Drakonite has joined the channel [17:16] Hosh has joined the channel [17:17] dlirit has left the channel [17:17] blissdev has joined the channel [17:17] jeremyselier has joined the channel [17:17] d_low_ has joined the channel [17:17] CIA-54: node: 03Fedor Indutny 07master * rf2ec46a 10/ lib/_debugger.js : [debugger] color mark in _debugger, kill child on Ctrl+D - http://git.io/0QFZxg [17:17] CIA-54: node: 03Fedor Indutny 07master * r3a7713f 10/ lib/_debugger.js : [debugger] synonym=>shortcut, added shortcut for backtrace (as in gdb), simplify regexp - http://git.io/Yq9Iug [17:17] romainhuet has joined the channel [17:17] CIA-54: node: 03Fedor Indutny 07master * r19194f8 10/ lib/_debugger.js : [debugger] setBreakpoint, clearBreakpoint, fix reqSource error handling, show breakpoints in list() - http://git.io/po1FJw [17:17] CIA-54: node: 03Fedor Indutny 07master * r1dd3b68 10/ lib/_debugger.js : [debugger] separate history of control and debug, make scripts command getter - http://git.io/HP4_8Q [17:17] CIA-54: node: 03Fedor Indutny 07master * rd2dadf3 10/ lib/_debugger.js : [17:17] CIA-54: node: [debugger] added setBreakpoint and clearBreakpoint to help message [17:17] CIA-54: node: group commands in help message, added shortcuts info - http://git.io/H0E7uA [17:19] dscape has joined the channel [17:19] JKarsrud has joined the channel [17:21] jtrudeau has joined the channel [17:21] niftylettuce has joined the channel [17:21] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [17:21] owenb has joined the channel [17:22] justicefries has joined the channel [17:23] mpavel1 has left the channel [17:23] Spion has joined the channel [17:24] nym has joined the channel [17:24] hermanju_: Hi [17:24] mikeal has joined the channel [17:25] hermanju_: https.request() [17:25] hermanju_: "This type of response MUST NOT have a body. Ignoring data passed to end()." [17:26] hermanju_: but I'm not sending any data in my get request [17:26] hermanju_: Methinks the error is in subscribing to the end event. [17:27] polyrhythmic has joined the channel [17:28] blup has joined the channel [17:29] lmatteis has joined the channel [17:29] robhawkes has joined the channel [17:30] cole_gillespie: anyone know of a good tutorial that runs you through creating your own npm module? [17:30] context: hermanju_: did you pass data to the end() call ? [17:30] polyrhythmic has joined the channel [17:30] hermanju_: gist: https://gist.github.com/1217177 [17:30] context: hermanju_: you pastied an error, and nothing along with it. we cant guess what you're doing wrong [17:31] hermanju_: context, here is the gist: https://gist.github.com/1217177 [17:31] hermanju_: @cole_gillespie: Study connect-redis from visionmedia (github), that should help you a lot. [17:32] context: cole_gillespie: npm init [17:32] Marak has joined the channel [17:32] hermanju_: @context: documentation of nodejs suggest to use 'process.stdout.write(d);' inside the data event [17:32] context: hermanju_: and where do you get the error [17:33] hermanju_: my question is: When do I know the data is completely send to process it? [17:33] divoxx has joined the channel [17:33] hermanju_: I'm getting the error while I'm doing the request [17:33] hermanju_: I obtain the values and all, but don't want to keep receiving the error. [17:34] necromancer has joined the channel [17:34] context: hermanju_: then you're sending data in the options ? [17:34] khrome has joined the channel [17:35] bengrue has joined the channel [17:35] tylerstalder has joined the channel [17:35] wenbert has joined the channel [17:35] langworthy has joined the channel [17:36] hermanju_: var options = { host: host, port: 443, path: path,method: 'GET'}; [17:36] hermanju_: not that I see [17:36] hermanju_: and here is the right way: http://nodejs.org/docs/v0.4.0/api/all.html#https.request [17:37] hermanju_: That's where I believe the problem is with subscribing to the end event [17:37] hermanju_: or not? [17:37] xerox: !npm search request [17:37] jhbot: packages (short format, truncated): kaph, clutch, http-request-provider, hydra, trust-reverse-proxy, joosex-simplerequest, connect_json, jsonreq, reqhooks, mootools-request, mootools-request-html, mootools-request-json, http-recorder, rate-limiter, fakeweb, replique, json_req, http-agent, curl, get [17:38] xerox: I like the package called request [17:38] Styles has joined the channel [17:38] storrgie has joined the channel [17:38] dgathright has joined the channel [17:39] AdAlpha has joined the channel [17:39] hackband has joined the channel [17:40] CraigMaslowski has joined the channel [17:40] Raynos has joined the channel [17:40] boltR has joined the channel [17:40] sveisvei has joined the channel [17:41] felixge has joined the channel [17:41] felixge has joined the channel [17:41] hAUKEH has joined the channel [17:41] AdAlpha has joined the channel [17:42] TheJH: xerox, :D [17:42] Malar has joined the channel [17:42] thalll_ has joined the channel [17:43] DrMcKay: and now a weird thing [17:44] DrMcKay: request doesn't even show up at search.npmjs.org [17:44] DrMcKay: (when I search for request) [17:45] felixhummel has joined the channel [17:45] vidi has joined the channel [17:45] Remoun has joined the channel [17:47] thalll has joined the channel [17:47] jesster7 has joined the channel [17:47] TheJH: http://search.npmjs.org/#/request should work [17:48] TheJH: yes, it does [17:48] luke` has joined the channel [17:49] levi501d has joined the channel [17:49] thalll has joined the channel [17:49] hij1nx_ has joined the channel [17:49] vipaca has joined the channel [17:49] vipaca has joined the channel [17:49] CarterL has joined the channel [17:50] hij1nx_ has joined the channel [17:52] creationix has joined the channel [17:52] DrMcKay: TheJH: yes, but search *should* work [17:52] irahgel has left the channel [17:52] freeformz has joined the channel [17:54] JaKWaC_ has joined the channel [17:55] brion has joined the channel [17:55] brion has joined the channel [17:55] knifed has joined the channel [17:55] denom has joined the channel [17:56] hornairs has joined the channel [17:58] xerox: TheJH: hey :d [17:58] beeviz has joined the channel [17:58] xerox: is it yours? : ) [17:58] vidi has joined the channel [17:58] TheJH: xerox, yup [17:58] TheJH: xerox, look at its cloak :D [17:59] micheil has joined the channel [17:59] jhbot: TheJH is my owner and can use me as a sockpuppet for fun [18:00] Orion- has joined the channel [18:00] SoulRaven has joined the channel [18:01] AvianFlu has joined the channel [18:01] xerox: TheJH: haha [18:01] astropirate has joined the channel [18:01] xerox: TheJH: tonight it killed my long running process [18:01] xerox: so I hate you a little bit [18:02] TheJH: xerox, huh? what process? [18:02] xerox: some process :P [18:02] ryanj has joined the channel [18:02] TheJH: ACTION is wondering whether there's some humor behind that he doesn't understand [18:02] xerox: I did try { require({uri: 'http://...'}, process) } catch(e) { .. } [18:02] xerox: but I found my process dead, from a ECONNTIMEOUT exception [18:02] xerox: :P [18:02] stelleg has joined the channel [18:03] xerox: (it was my fault tho) [18:03] xerox: I did throw new Error(err) inside process [18:03] xerox: https://gist.github.com/cf72a3771039ce92b063 [18:04] burningdog has joined the channel [18:04] blazento has joined the channel [18:04] beeviz: hey guys [18:05] beeviz: anyone of you running node on ubuntu? [18:05] astropirate: Hope this is not offtopic, How does one restart one's app on Joyant Smartmachine without re-commiting [18:05] blazento: when i install something with npm, should it just be installing to my ~/.rpm/ directory or do the modules also need to be inside of my app as well? [18:05] jhurliman has joined the channel [18:05] astropirate: beeviz, i was up till a few weeks ago. whats your question? [18:06] gkatsev: beeviz: yes, probably a lot of people. [18:06] gkatsev: astropirate: that could've been his question. :> [18:07] beeviz: i installed node on a fresh ubuntu server using the installation guide in the github wiki. then i tried the example from nodejs.org [18:07] beeviz: but the server seems to be not reachable: http://78.47.226.217:1337 [18:07] beeviz: i'm a server admin noob. is it possible that i have to open the according port first or something like this? [18:07] gkatsev: beeviz: try setting the port to 8080 [18:08] DrMcKay: beeviz: it's listening on localhost by default [18:08] gkatsev: that too [18:08] weezle has joined the channel [18:08] DrMcKay: beeviz: delete that 127.0.0.1 paramater [18:08] adrianmg has left the channel [18:08] DrMcKay: *parameter [18:08] `3rdEden has joined the channel [18:08] gkatsev: or setting it to the IP of your server [18:09] beeviz: ahhhh [18:09] beeviz: awesome [18:09] beeviz: leaving out the localhost parameter works :) [18:09] beeviz: thanks a lot guys :) [18:09] gkatsev: also, ports below a certain number would require you to run as root [18:09] wookiehangover has joined the channel [18:09] gkatsev: or use iptables to forward to port or use a proxy [18:10] gkatsev: like apache or nginx or something [18:10] zeropx has joined the channel [18:10] beeviz: is there a way to "map" node.js files to a domain without having to enter the port? [18:10] thinkt4nk has joined the channel [18:10] gkatsev: ? [18:10] beeviz: (i'm already running an apache so i cannot set the port to 80) [18:10] gkatsev: ah [18:11] beeviz: gkatsev i want my example.js to be opened when i enter mydomain.com [18:11] jgornick has joined the channel [18:11] isaacs has joined the channel [18:11] beeviz: instead of mydomain.com:port [18:11] springmeyer has joined the channel [18:11] zivester has joined the channel [18:11] gkatsev: beeviz: you can use apache to forward the requests to node or something [18:11] beeviz: opened = requested/served [18:11] beeviz: really? cool. and where can i find a tutorial or something? [18:12] gkatsev: !g running node behind apache [18:12] gkatsev: `g running node behind apache [18:12] gkatsev: v8bot_: g running node behind apache [18:12] gkatsev: :( [18:12] gkatsev: beeviz: try googling that [18:12] beeviz: ah [18:13] beeviz: rewrite rule [18:13] beeviz: clever :) [18:13] jmoyers has joined the channel [18:14] netlemur has joined the channel [18:15] Fabryz: just installed mongodb and had "Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84" any quick tip? [18:15] Dreamer3 has joined the channel [18:15] Fabryz: and with installed I mean downloaded and extracted [18:15] robi42 has joined the channel [18:15] TheJH: Fabryz, well, you'll have to run it somehow... [18:16] Fabryz: TheJH eh ./mongodb-2.0.0/bin/mongo gives that conn error [18:16] Fabryz: was just following the quickstart guide [18:17] polyrhythmic has joined the channel [18:17] TheJH: Fabryz, I *think* that that's just the client [18:17] sonnym has joined the channel [18:17] gkmngrgn has joined the channel [18:18] Fabryz: TheJh my bad, I missed a "d" in mongod [18:18] willwhite has joined the channel [18:18] Fabryz: ...it's when you're too sure that you make mistakes [18:18] divoxx: I get an "Uknown encoding" error when trying to write a buffer to a file... the buffer is just binary, anything I'm missing? [18:19] mendel_ has joined the channel [18:21] unomi has joined the channel [18:21] danielqo has joined the channel [18:22] jakehow has joined the channel [18:22] Cromulent has joined the channel [18:24] danielqo has left the channel [18:25] Frush3 has joined the channel [18:27] Frush3: Hi there! Does anyone know if there are precompiled binaries of node modules for Debian Linux? [18:29] joshkehn: Frush3: There are no binaries for npm packages if that is what you're talking about. [18:30] Marak: can anyone help me convert these SWFs into something usable? i have 11 video SWFs i need converted to something real ( i can upload to youtube ) https://github.com/hookio/tutorials/tree/master/1_basics [18:30] dguttman has joined the channel [18:31] stagas has joined the channel [18:31] Frush3: joshkehn: Too bad. I'm running a small virtual server with 64 mb. Running node including modules wouldn't be a problem but compiling is. I run out of virtual memory when compiling db bindings. :( [18:31] Vertice has joined the channel [18:32] drecute has joined the channel [18:32] blueadept: anyone know the main difference between firefox and chrome/safari in terms of uploading files? [18:32] drecute: hello all [18:32] drecute: I will like to know. How do I install a module [18:32] joshkehn: drecute: Through npm? [18:32] drecute has left the channel [18:32] kmiyashiro has joined the channel [18:33] Frush3: Thanks anyway joshkehn! [18:33] Frush3: Bye! [18:33] drecute has joined the channel [18:33] Frush3 has left the channel [18:33] drecute: joshkehn: i'm on cygwin and npm is not available [18:33] icebox has joined the channel [18:34] joshkehn: You can do something like [18:34] joshkehn: mkdir node_modules && git clone PACKAGE [18:34] joshkehn: But I'm not very familiar with cygwin. [18:34] joshkehn: It might be better to just run a vm [18:34] drecute: joshkehn: I have a .node_modules in my D: drive [18:35] drecute: will node.js see any module in that directory? [18:35] caolanm has joined the channel [18:35] joshkehn: I'm not sure. [18:36] blueadept: anyone know the best transaction service that is developer friendly, with low rates? [18:37] NetRoY has joined the channel [18:37] blueadept: i'm thinking somewhere around 3% per transaction [18:37] drecute: this is more of a question to understand nodejs use case [18:37] amerine has joined the channel [18:38] drecute: is nodejs an answer to the common saying "javascript doesn't run of the server!" [18:38] AvianFlu_ has joined the channel [18:38] DrMcKay: blueadept: PayPal? [18:39] blueadept: i was thinking more developer friend like, like json like lib support for node.js [18:39] blueadept: like [18:39] isaacs: ryah: blog post? [18:39] vampi-the-frog has joined the channel [18:39] vampi-the-frog has joined the channel [18:39] TheJH: DrMcKay, ugh, I wouldn't want to use paypal, you know, all that account freezing and blocking wikileaks stuff and so on... [18:40] deedubs: blueadept: https://github.com/jamescarr/paynode [18:40] blueadept: braintree [18:40] blueadept: is one i've heard of [18:40] blueadept: deedubs: ahh cool [18:42] DrMcKay: TheJH: but people use it (compatibility and shit) [18:43] blueadept: anyone use Chargify before? [18:43] mikeal has joined the channel [18:43] blueadept: they seem pretty expensive [18:44] mikeal1 has joined the channel [18:44] felixge has joined the channel [18:44] Orion- has joined the channel [18:46] blup has joined the channel [18:49] Squax has joined the channel [18:49] Squax: hey, any mongoose users in here; I'm wondering how to do a findAndModify operation? [18:50] blup: with socketio, is there a way to communicate with each client separately, or should i consider each client as a 'channel'? [18:50] tmedema has joined the channel [18:50] tmedema: Anyone used Cassandra with node.js? [18:50] springmeyer has joined the channel [18:51] spcshpopr8r has joined the channel [18:51] sub_pop has joined the channel [18:51] yeksa has joined the channel [18:51] vguerra has joined the channel [18:51] yeksa: hi guys [18:52] deedubs: Squax: https://gist.github.com/1217422 [18:53] CIA-54: libuv: 03Igor Zinkovsky 07master * r65c8a72 10/ (src/unix/fs.c src/win/fs.c test/test-fs.c): uv_fs_ functions to return result in sync mode - http://git.io/MTacwQ [18:53] Squax: thanks deedubs :D [18:54] stisti has joined the channel [18:57] creationix has joined the channel [18:57] drecute: please, where is the best place to put .node_modules dir [18:58] weezle has joined the channel [18:58] creationix: drecute: it's not used anymore [18:58] creationix: not with the leading . at least [18:59] drecute: creationix: i'm on 0.4.8 [18:59] markwubben has joined the channel [18:59] AvianFlu has joined the channel [18:59] drecute: creationix: is the change relevant on 0.4.8? [19:00] kkaefer has joined the channel [19:00] creationix: right, it was new with v0.4.x [19:00] escii has joined the channel [19:00] joshthecoder has joined the channel [19:00] creationix: now it looks for a folder called "node_modules" in the current directory or upwards [19:01] creationix: so you put it as high in your code hierarchy as you want to share the module [19:01] hij1nx_ has joined the channel [19:02] JaKWaC has joined the channel [19:02] drecute: creationix: changes it but i still get Error: Cannot find module [19:02] slifty_corsair has joined the channel [19:02] drecute: i have node_modules in node home [19:03] drecute: and my module in {NODE_HOME}/node_modules [19:03] drecute: and my module in {NODE_HOME}/samples sorry [19:04] creationix: what's NODE_HOME? [19:04] creationix: it's relative to your script, not node itself [19:04] TheJH has joined the channel [19:04] willwhite has joined the channel [19:04] TheJH has joined the channel [19:05] gkatsev: creationix: I think NODE_HOME was needed before for global node modules [19:05] creationix: maybe, but though it's not talked about, the easiest way to install "global" modules is to npm install from your home directory [19:05] davemo has joined the channel [19:05] creationix: then any code within your home directory can see it [19:06] gkatsev: npm install -g, no? [19:06] dmkbot1: joyent/node: 03seebees: Tests for Sockets - https://github.com/joyent/node/issues/1699 [19:06] creationix: no, -g puts it under node's lib folder [19:06] vns has joined the channel [19:06] creationix: most people don't code in there so it's not available to anything except global executables [19:06] creationix: like npm itself, for example [19:07] gkatsev: ah, ok, i see [19:07] gkatsev: that makes sense as to why I need to do npm link with a module I installed -g [19:08] mike5w3c has joined the channel [19:09] kimico has joined the channel [19:10] springmeyer has joined the channel [19:11] dmkbot1: joyent/node: 03thejh: add a safer (and slower, and worse) runInNewContext (see #1469) - https://github.com/joyent/node/issues/1696 [19:11] CraigMaslowski1 has joined the channel [19:12] drecute: creationix: what about on cygwin where npm is not available [19:12] Spion has joined the channel [19:13] creationix: it's node itself that looks in the node_module folders [19:13] creationix: you'll just have to create the files manually if there is no npm [19:13] BillyBreen has joined the channel [19:13] creationix: if it's all js files, you can npm on a *nix box and then copy the directory over [19:13] Margle has joined the channel [19:14] creationix: tjholowaychuk: btw, lua is cool [19:14] tjholowaychuk: totally [19:14] creationix: tjholowaychuk: metatables remind me a lot of Harmony Proxies [19:14] creationix: but with operator overloading! [19:14] tjholowaychuk: they have tighter integration in the language [19:14] tjholowaychuk: personally i hate proxies [19:15] tjholowaychuk: but at least it's a core lua concept [19:15] creationix: I was suprized to find out there is no concept of inheritance [19:15] maushu has joined the channel [19:15] creationix: but it's easily implemented with metatables [19:15] halcyon918: fun Lua fact... a lot of games embed the Lua scripting engine to run scripts in-game because the Lua license is so flexible [19:16] creationix: indeed, I can't wait till I'm done with my libuv lua bindings [19:16] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [19:16] tilgovi has joined the channel [19:17] creationix: I'm interested to see how much v8 affects node for good or bad by removing it from the eqution [19:17] creationix: libuv directly isn't bad, but too verbose for my taste [19:18] necrodearia has joined the channel [19:20] TheJH_ has joined the channel [19:21] dmkbot1: joyent/node: 03jampy: "Exec format error" when cross-compiling for ARM (workaround provided) - https://github.com/joyent/node/issues/1541 [19:22] eldios has joined the channel [19:23] JaKWaC: beeviz: You will probably also have to open what ever port your choose in your firewall. [19:23] deedubs: anyone know a good lib for breaking apart incoming emails to reply/ body [19:23] JaKWaC: NM, was scrolled WAY up the list [19:23] gxdssoft has joined the channel [19:25] blazento has joined the channel [19:25] kkaefer: in a c++ extension, how can I prevent HasInstance() calls from failing when the user includes the extension twice? [19:25] qbert65536 has joined the channel [19:26] fischbowl has left the channel [19:26] bnoordhuis: kkaefer: in what context? [19:26] dunkie_ has joined the channel [19:26] bnoordhuis: iow, i don't quite get what you mean :) [19:27] kkaefer: e.g. https://github.com/developmentseed/node-sqlite3/blob/master/src/database.cc#L108 [19:27] talltyler has joined the channel [19:27] kkaefer: when the user has two distinct directories of that module [19:27] kkaefer: and require()s both [19:27] kkaefer: that call will start to fail [19:28] kkaefer: it's implemented in https://github.com/developmentseed/node-sqlite3/blob/master/src/database.h#L27 [19:28] kkaefer: modeled after SlowBuffer's HasInstance method [19:28] bnoordhuis: kkaefer: args.IsConstructCall() ? [19:28] Net_RoY has joined the channel [19:28] bnoordhuis: kkaefer: at least, that'd work for that line you linked me to [19:28] kkaefer: that works in that particular case, but not in https://github.com/developmentseed/node-sqlite3/blob/master/src/statement.cc#L87 [19:29] kkaefer: the only solution that comes to mind is to fail hard when the same extension is require()d twice from two different locations [19:29] kkaefer: so that the user is forced to only use one [19:29] kkaefer: (having two instances of the module happens with npm) [19:29] alnewkirk has joined the channel [19:29] digitaltoad has joined the channel [19:30] romanb has joined the channel [19:31] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [19:31] Renegade001 has joined the channel [19:31] aaronmcadam has joined the channel [19:31] chrisbuchholz has joined the channel [19:31] stelleg has joined the channel [19:31] bnoordhuis: kkaefer: one thing you can do is create two internal fields and set one to some magic value [19:32] kkaefer: hm, interesting [19:32] TheJH has joined the channel [19:32] polyrhythmic has joined the channel [19:33] kkaefer: SetInternalField or SetHiddenValue? [19:33] kkaefer: what's the difference between those? [19:33] mrchess has joined the channel [19:33] bogomips2__ has joined the channel [19:34] CIA-54: node: 03Ryan Dahl 07master * r7096600 10/ lib/child_process_uv.js : [19:34] CIA-54: node: Forward customFds to ChildProcess.spawn [19:34] CIA-54: node: Fixes #1695 - http://git.io/3KywVA [19:34] bnoordhuis: kkaefer: SetHiddenValue is a javascript value that's not visible to javascript [19:34] bronson has joined the channel [19:34] bnoordhuis: kkaefer: SetInternalField is a native type [19:35] kkaefer: hm, they both take a Handle [19:35] kkaefer: so I guess SetHiddenValue is what I'm going with [19:35] cschneid has joined the channel [19:36] burningdog has left the channel [19:36] dmkbot1: joyent/node: 03seebees: Tests for Sockets - https://github.com/joyent/node/issues/1699 [19:36] bnoordhuis: kkaefer: sorry, i meant SetPointerInInternalField [19:36] navaru has joined the channel [19:36] hackband has joined the channel [19:36] navaru has left the channel [19:36] ajpiano has joined the channel [19:37] kkaefer: right, but the key for that function is an int [19:37] kkaefer: which seems a bit weird to me; what number should I use for my magic value? [19:38] irclogger_com has joined the channel [19:38] bnoordhuis: kkaefer: obj->SetPointerInInternalField(1, &magic_cookie) [19:39] bnoordhuis: kkaefer: in your New() functions, unwrap the object and check if obj->GetPointerFromInternalField(1) == &magic_cookie [19:39] tojochacko has joined the channel [19:39] jakehow has joined the channel [19:40] bnoordhuis: kkaefer: oh, but first check if obj->InternalFieldCount() >= 1 [19:40] bnoordhuis: *2 [19:40] kkaefer: ok [19:40] indexzero has joined the channel [19:41] kkaefer: why >= 2? [19:41] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [19:41] bnoordhuis: internal field #0 is for node (if you use ObjectWrap), #1 is for you [19:41] kkaefer: ah, ok [19:41] kkaefer: good to know [19:41] kkaefer: thanks [19:42] pixel13 has joined the channel [19:42] pixel13 has left the channel [19:43] blueadept: is everyone moving to sha512 for passwords? [19:44] bnoordhuis: i myself use double rot13. the double is for extra security [19:44] springmeyer has joined the channel [19:45] joshkehn: blueadept: I follow standard best practices. Normally it requires reversing the string. [19:46] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [19:46] cronopio has joined the channel [19:46] CraigMaslowski1 has left the channel [19:46] netlemur: i'll try bcrypt in my next project [19:48] ryanj has joined the channel [19:49] drecute: I'm writing some transaction based app in PHP which does a POST request to a [19:49] drecute: python app. I will like to use node.js to process that transaction in a threaded fashion such [19:49] drecute: that for each transaction that comes in, it is stored in queue and scheduled for processing [19:49] drecute: at a specific time interval. Can this be a good use case for node.js? That is, perform a queue, schedule timed jobs and trigger a POST (JSON response) back to the source of the request that the transaction was successful. If yes, what node.js modules are available to me. [19:50] tjholowaychuk has joined the channel [19:51] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [19:51] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [19:52] willwhite has joined the channel [19:52] jesusabdullah has joined the channel [19:53] Peniar has joined the channel [19:53] tjholowaychuk has joined the channel [19:53] context: drecute: for a queue you prolly want something like redis [19:53] jesusabdullah has joined the channel [19:54] context: drecute: and you just mixed php and python and node. my advise is pick a language and stick with it. no one wants to manage a spider web of dependent services all written in a different language. [19:54] mikey_p has joined the channel [19:54] context: drecute: and you aren't going to thread node. its not what its designed for [19:54] mikey_p has joined the channel [19:55] drecute: context: obviously not a good use case [19:55] drecute: context: sticking to python [19:55] mikeal has joined the channel [19:55] fly-away has joined the channel [19:55] drecute: context: thanks [19:57] Renegade001 has joined the channel [19:57] pt_tr has joined the channel [19:57] locksfree has joined the channel [19:58] josdehar has joined the channel [19:58] patrickgamer1 has joined the channel [19:59] nomurrcy has joined the channel [19:59] state has joined the channel [19:59] ryanfitz has joined the channel [19:59] amerine has joined the channel [20:00] nomurrcy: So I'm running node 0.4.10 and I noticed that under --v8-options, --crankshaft defaults to false [20:00] nomurrcy: I am compiled 64 bit [20:01] nomurrcy: is it safe to enable crankshaft, or should I recompile 32 bit? [20:01] CIA-54: libuv: 03Igor Zinkovsky 07master * r2931bdc 10/ (src/win/fs.c test/test-list.h): windows: strip '\??\' from readlink path buffer. - http://git.io/Y-8uLg [20:01] nomurrcy: II imagine 32 bit would be more performant anyway? [20:01] patrickgamer1 has left the channel [20:01] mraleph has joined the channel [20:02] nuck: Ugh [20:02] Wa has joined the channel [20:03] tjholowaychuk has joined the channel [20:03] state: mass exodus? [20:03] DrMcKay: !ping [20:03] qbert65536: they hate you [20:03] state: figures [20:03] qbert65536: them too [20:03] JasonJS has joined the channel [20:03] liar has joined the channel [20:03] Wa has joined the channel [20:03] mraleph has joined the channel [20:03] amerine has joined the channel [20:03] ryanfitz has joined the channel [20:03] josdehar has joined the channel [20:03] locksfree has joined the channel [20:03] pt_tr has joined the channel [20:03] mikeal has joined the channel [20:03] ryanj has joined the channel [20:03] mrchess has joined the channel [20:03] polyrhythmic has joined the channel [20:03] chrisbuchholz has joined the channel [20:03] digitaltoad has joined the channel [20:03] talltyler has joined the channel [20:03] dunkie_ has joined the channel [20:03] gxdssoft has joined the channel [20:03] necrodearia has joined the channel [20:03] tilgovi has joined the channel [20:03] maushu has joined the channel [20:03] mike5w3c has joined the channel [20:03] vns has joined the channel [20:03] JaKWaC has joined the channel [20:03] escii has joined the channel [20:03] kkaefer has joined the channel [20:03] AvianFlu has joined the channel [20:03] markwubben has joined the channel [20:03] stisti has joined the channel [20:03] sub_pop has joined the channel [20:03] spcshpopr8r has joined the channel [20:03] tmedema has joined the channel [20:03] Squax has joined the channel [20:03] caolanm has joined the channel [20:03] kmiyashiro has joined the channel [20:03] dguttman has joined the channel [20:03] jgornick has joined the channel [20:03] micheil has joined the channel [20:03] hornairs has joined the channel [20:03] denom has joined the channel [20:03] freeformz has joined the channel [20:03] levi501d has joined the channel [20:03] luke` has joined the channel [20:03] jesster7 has joined the channel [20:03] wenbert has joined the channel [20:03] khrome has joined the channel [20:03] necromancer has joined the channel [20:03] divoxx has joined the channel [20:03] lmatteis has joined the channel [20:03] d_low_ has joined the channel [20:03] localhost has joined the channel [20:03] JasonSmith has joined the channel [20:03] Alex_R has joined the channel [20:03] temp01 has joined the channel [20:03] StanlySoManly has joined the channel [20:03] chunhao_ has joined the channel [20:03] ryanseddon has joined the channel [20:03] indutny has joined the channel [20:03] zorzar has joined the channel [20:03] towski has joined the channel [20:03] TooTallNate has joined the channel [20:03] footyfish has joined the channel [20:03] tanepiper_ has joined the channel [20:03] Kai` has joined the channel [20:03] [diecast] has joined the channel [20:03] blueadept has joined the channel [20:03] Circlefusion has joined the channel [20:03] Fabryz has joined the channel [20:03] djMax has joined the channel [20:03] mbrevoort has joined the channel [20:03] smtlaissezfaire has joined the channel [20:03] kindbeard has joined the channel [20:03] hermanjunge has joined the channel [20:03] pandeiro has joined the channel [20:03] Draggor has joined the channel [20:03] admc has joined the channel [20:03] __sorin__ has joined the channel [20:03] chrislorenz has joined the channel [20:03] Guest27923 has joined the channel [20:03] 16SAA1VSU has joined the channel [20:03] MattM_ has joined the channel [20:03] baoist has joined the channel [20:03] jerrysv has joined the channel [20:03] boaz has joined the channel [20:03] fatjonny has joined the channel [20:03] Venom_X has joined the channel [20:03] mandric has joined the channel [20:03] scottschecter has joined the channel [20:03] kevwil has joined the channel [20:03] aelien27 has joined the channel [20:03] yhahn has joined the channel [20:03] joshkehn has joined the channel [20:03] aconbere has joined the channel [20:03] esmevane has joined the channel [20:03] dmkbot1 has joined the channel [20:03] JulioBarros has joined the channel [20:03] slyphon has joined the channel [20:03] enmand has joined the channel [20:03] akujin- has joined the channel [20:03] zastaph has joined the channel [20:03] stepheneb has joined the channel [20:03] thurmda has joined the channel [20:03] phiggins has joined the channel [20:03] scott_gonzalez has joined the channel [20:03] davidcoallier has joined the channel [20:03] chjj has joined the channel [20:03] jomoho has joined the channel [20:03] __doc__ has joined the channel [20:03] meso has joined the channel [20:03] webben has joined the channel [20:03] skratool has joined the channel [20:03] niclone has joined the channel [20:03] FIQ|screen has joined the channel [20:03] xerox has joined the channel [20:03] liberum has joined the channel [20:03] ttpva has joined the channel [20:03] adelcambre has joined the channel [20:03] paulwe has joined the channel [20:03] alindeman has joined the channel [20:03] stalled has joined the channel [20:03] slpsys has joined the channel [20:03] a11235 has joined the channel [20:03] chapel has joined the channel [20:03] Guest17819 has joined the channel [20:03] sstephenson has joined the channel [20:03] swhit has joined the channel [20:03] DrPizza has joined the channel [20:03] teadict has joined the channel [20:03] 15SABC3MR has joined the channel [20:03] mrkurt has joined the channel [20:03] arthurdebert has joined the channel [20:03] Garo_ has joined the channel [20:03] Creap has joined the channel [20:03] gnnr has joined the channel [20:03] slicky has joined the channel [20:03] dreamdust has joined the channel [20:03] ecin has joined the channel [20:03] fson has joined the channel [20:03] criswell has joined the channel [20:03] galaxywatcher has joined the channel [20:03] joe-f2 has joined the channel [20:03] lesterc has joined the channel [20:03] enhydra has joined the channel [20:03] nuba has joined the channel [20:03] balgarath has joined the channel [20:03] tomb has joined the channel [20:03] __main__ has joined the channel [20:03] addisonj has joined the channel [20:03] hdon_ has joined the channel [20:03] kawaz_home has joined the channel [20:03] baudehlo has joined the channel [20:03] rednul has joined the channel [20:03] cognominal_ has joined the channel [20:03] devaholic has joined the channel [20:03] skyler_brungardt has joined the channel [20:03] r04r has joined the channel [20:03] MrNko has joined the channel [20:03] janne has joined the channel [20:03] bentruyman has joined the channel [20:03] dannycoates has joined the channel [20:03] simon2 has joined the channel [20:03] Martz has joined the channel [20:03] deoxxa has joined the channel [20:03] scoates has joined the channel [20:03] amiller has joined the channel [20:03] swaj has joined the channel [20:03] Ned_ has joined the channel [20:03] McMAGIC--Copy has joined the channel [20:03] keyvan has joined the channel [20:03] btipling has joined the channel [20:03] jvolkman has joined the channel [20:03] krazyivan has joined the channel [20:03] digiwano has joined the channel [20:03] context has joined the channel [20:03] mikeycgto has joined the channel [20:03] royh has joined the channel [20:03] Clex has joined the channel [20:03] roger_raymond has joined the channel [20:03] Daegalus has joined the channel [20:03] jn has joined the channel [20:03] flagg0204 has joined the channel [20:03] kaarlo has joined the channel [20:03] zamolxes has joined the channel [20:03] Industrial has joined the channel [20:03] thinkjson has joined the channel [20:03] adelgado has joined the channel [20:03] CrypticSwarm has joined the channel [20:03] _sorensen_ has joined the channel [20:03] flipperWhip has joined the channel [20:03] descipher has joined the channel [20:03] nail_ has joined the channel [20:03] jonaslund has joined the channel [20:03] berasa has joined the channel [20:03] jeromegn has joined the channel [20:03] er1c_ has joined the channel [20:03] madari_ has joined the channel [20:03] Pilate has joined the channel [20:03] m0 has joined the channel [20:03] pquerna has joined the channel [20:03] _root_ has joined the channel [20:03] wink_ has joined the channel [20:03] elliottcable has joined the channel [20:03] eboyjr has joined the channel [20:03] sid3k has joined the channel [20:03] Tobbe has joined the channel [20:03] onre has joined the channel [20:03] sh4wn has joined the channel [20:03] tomilaine has joined the channel [20:03] DJBouche has joined the channel [20:03] halfhalo has joined the channel [20:03] htoothrot has joined the channel [20:03] ashb has joined the channel [20:03] geoffeg has joined the channel [20:03] a_meteorite has joined the channel [20:03] mikekunze has joined the channel [20:03] unmanbearpig has joined the channel [20:03] raydeo has joined the channel [20:03] zentooo has joined the channel [20:03] duckspeaker has joined the channel [20:03] Newky has joined the channel [20:03] coffeecup has joined the channel [20:03] fuzzyone has joined the channel [20:03] paveq has joined the channel [20:03] jp323 has joined the channel [20:03] ivaldi has joined the channel [20:03] pdm_ has joined the channel [20:03] wereHamster has joined the channel [20:03] _sri has joined the channel [20:03] korch has joined the channel [20:03] stutter_ has joined the channel [20:03] optixx has joined the channel [20:03] jakeskik has joined the channel [20:03] framlin has joined the channel [20:03] Aco- has joined the channel [20:03] cce has joined the channel [20:03] russell_h has joined the channel [20:03] hucker has joined the channel [20:03] shenlok has joined the channel [20:03] keeto has joined the channel [20:03] ctide has joined the channel [20:03] thermal has joined the channel [20:03] yenz has joined the channel [20:03] darnold has joined the channel [20:03] morgabra has joined the channel [20:03] medice has joined the channel [20:03] zed0_ has joined the channel [20:03] Tobias| has joined the channel [20:03] gf3 has joined the channel [20:03] ekes has joined the channel [20:03] lukstr has joined the channel [20:03] dabailey has joined the channel [20:03] stylus has joined the channel [20:04] gaving has joined the channel [20:04] gwoo has joined the channel [20:04] __doc__ has joined the channel [20:04] DrMcKay: incoming! [20:04] pt_tr has left the channel [20:05] agnat has joined the channel [20:05] colinclark_ has joined the channel [20:05] state: It looks like there are some competitive ways of doing client-side includes. I'm mainly looking for something to clean up my backbone.js on the client-side. I'm fine with the way node handles require. Is browserify the way to go? [20:05] __doc__ has joined the channel [20:05] mrkurt has joined the channel [20:05] sstephenson has joined the channel [20:05] DrMcKay: what the... [20:05] localhost has joined the channel [20:06] DrMcKay: how come my bot still works? [20:06] a11235 has joined the channel [20:06] seebees1 has left the channel [20:06] daleharvey has joined the channel [20:06] trotter has joined the channel [20:06] necrodearia has joined the channel [20:06] lmatteis has joined the channel [20:06] Druid has joined the channel [20:06] htoothrot has joined the channel [20:06] ajsie has joined the channel [20:06] enmand has joined the channel [20:07] jgornick has joined the channel [20:07] JasonJS has left the channel [20:07] seebees has joined the channel [20:07] robhawkes has joined the channel [20:08] mraleph: nomurrcy: it was disabled because it was considered incomplete. I would not recommend enabling it. [20:08] knifed has joined the channel [20:08] stagas has joined the channel [20:08] nomurrcy: mraleph: incomplete on 64 bit? (is it safe in ia32) [20:09] nomurrcy: mraleph: what is the state of affairs in the .5 tree [20:09] poseid has joined the channel [20:09] mraleph: nomurrcy: http://stackoverflow.com/questions/7213574/since-which-version-of-nodejs-is-crankshaft-enabled-by-default/7213654#7213654 [20:10] freeformz has joined the channel [20:11] thalll has joined the channel [20:11] dmkbot1: joyent/node: 03murvinlai: Bug: http.request socket hang up problem - https://github.com/joyent/node/issues/1176 [20:11] nomurrcy: mralehph: yes I saw that, thanks. I suppose I'll try compiling 32 bit [20:12] [diecast] has joined the channel [20:12] [diecast] has joined the channel [20:12] [diecast] has joined the channel [20:12] DrMcKay: dmkbot got a great patches by jheusala today :) [20:12] Margle has joined the channel [20:12] DrMcKay: s/ a / / [20:13] bradwright has joined the channel [20:13] dmkbot has joined the channel [20:13] DrMcKay: jheusala: instance with your patches ^^ [20:13] DrMcKay: !ping [20:13] dmkbot: DrMcKay, pong [20:13] DrMcKay: !up? registry.npmjs.org [20:13] dmkbot: DrMcKay, host up (status code: 200) [20:14] ajsie has joined the channel [20:14] stalled has joined the channel [20:14] raidfive has joined the channel [20:14] tanepiper_ has joined the channel [20:15] tomh has joined the channel [20:15] jamonkko has joined the channel [20:15] blkcat has joined the channel [20:15] persson has joined the channel [20:15] Astro has joined the channel [20:15] sorensen has joined the channel [20:15] khmer has joined the channel [20:15] else has joined the channel [20:15] dleonardi has joined the channel [20:15] mape has joined the channel [20:15] Leonidas has joined the channel [20:15] sugyan has joined the channel [20:15] jerrysv: rapture [20:15] kflorence has joined the channel [20:15] rphillips has joined the channel [20:15] slaskis has joined the channel [20:15] mediacoder has joined the channel [20:15] bsutt has joined the channel [20:15] vinc has joined the channel [20:15] Hamms has joined the channel [20:15] pkrumins has joined the channel [20:15] rhizmoe has joined the channel [20:15] maxogden has joined the channel [20:15] rphillips has joined the channel [20:15] JasonJS has joined the channel [20:15] joshthecoder has joined the channel [20:15] pkrumins has joined the channel [20:15] tg has joined the channel [20:15] Dmitrijus has joined the channel [20:15] izz_ has joined the channel [20:15] adnam has joined the channel [20:15] kon_ has joined the channel [20:15] kon_ has joined the channel [20:15] JP has joined the channel [20:15] barodeur has joined the channel [20:15] trepan has joined the channel [20:15] neme has joined the channel [20:15] elijah-mbp has joined the channel [20:15] llrcombs has joined the channel [20:15] lukegb has joined the channel [20:15] iivvoo has joined the channel [20:15] jamesd has joined the channel [20:15] jmoiron has joined the channel [20:15] visnup has joined the channel [20:16] ryah has joined the channel [20:16] whoops has joined the channel [20:16] apoc has joined the channel [20:16] kriss has joined the channel [20:16] kraft has joined the channel [20:16] Guest18468 has joined the channel [20:16] actonapp has joined the channel [20:16] slajax has joined the channel [20:16] jspiros has joined the channel [20:16] NetRoY has joined the channel [20:16] brainproxy has joined the channel [20:16] ben_alman has joined the channel [20:16] pradeepto has joined the channel [20:16] nyrb has joined the channel [20:16] cmeiklejohn has joined the channel [20:16] mekwall has joined the channel [20:16] callumacrae has joined the channel [20:17] `3rdEden has joined the channel [20:17] saikat has joined the channel [20:17] kon_ has joined the channel [20:17] kon_ has joined the channel [20:18] cnu has joined the channel [20:18] Kai` has joined the channel [20:18] locksfree has joined the channel [20:18] Atmoz has joined the channel [20:18] tbranyen has joined the channel [20:18] Gregor has joined the channel [20:18] Zenethian has joined the channel [20:18] jroes has joined the channel [20:18] foobarfighter has joined the channel [20:18] shachaf has joined the channel [20:18] arkx has joined the channel [20:18] joelio has joined the channel [20:18] tyler-iphone has joined the channel [20:18] matti has joined the channel [20:18] paulbaumgart has joined the channel [20:18] mdz has joined the channel [20:18] matti has joined the channel [20:18] mdz has joined the channel [20:18] monokrome has joined the channel [20:18] konobi has joined the channel [20:18] dantalizing has joined the channel [20:19] Aikar has joined the channel [20:19] PrgmrBill has joined the channel [20:19] finsken has joined the channel [20:19] zemm has joined the channel [20:19] gdusbabek has joined the channel [20:19] stride has joined the channel [20:19] gkatsev has joined the channel [20:19] pig has joined the channel [20:19] kloeri has joined the channel [20:19] MikeW has joined the channel [20:19] daed has joined the channel [20:19] aakour has joined the channel [20:19] ben1mal has joined the channel [20:19] olegp has joined the channel [20:19] progrock has joined the channel [20:19] RyanW has joined the channel [20:19] silverwind has joined the channel [20:19] SuMarDi has joined the channel [20:19] rmzg has joined the channel [20:19] rgmarcha has joined the channel [20:19] KrooniX has joined the channel [20:19] SubStack has joined the channel [20:19] ismell has joined the channel [20:19] zinkem has joined the channel [20:19] Sebastien-L has joined the channel [20:19] pekim has joined the channel [20:19] Aikar has joined the channel [20:19] SuMarDi has joined the channel [20:19] PrgmrBill has joined the channel [20:19] odyniec has joined the channel [20:19] einaros has joined the channel [20:19] marlun has joined the channel [20:19] marlun has joined the channel [20:19] DoNaLd` has joined the channel [20:19] silverwind has joined the channel [20:19] _mdp has joined the channel [20:19] MooGoo has joined the channel [20:19] chilts has joined the channel [20:19] matt_c has joined the channel [20:19] bnoordhuis: jerrysv: rapture yes, but are we the chosen ones or the ones left behind? [20:19] zined has joined the channel [20:19] Bonuspunkt has joined the channel [20:19] Lartsa has joined the channel [20:19] Tobbe_ has joined the channel [20:19] Tobbe__ has joined the channel [20:19] SvenDowideit has joined the channel [20:19] locksfree has joined the channel [20:19] lifty has joined the channel [20:20] dcelix has joined the channel [20:20] gwoo has joined the channel [20:20] austinbv has joined the channel [20:20] gwoo has joined the channel [20:20] tuhoojabotti has joined the channel [20:20] dynacker has joined the channel [20:20] nibblebot has joined the channel [20:20] Nomon has joined the channel [20:20] markatto has joined the channel [20:20] daleharvey has joined the channel [20:21] stbuehler has joined the channel [20:21] jerrysv: bnoordhuis: depends on what kind of party we're having i guess [20:21] ralph has joined the channel [20:21] jerrysv: we were just at 666 people [20:21] Will| has joined the channel [20:22] Kester has joined the channel [20:22] halcyon918 has joined the channel [20:22] cnu has joined the channel [20:23] hij1nx_ has joined the channel [20:23] markatto has joined the channel [20:23] qbert65536: jerrysv, I was going to take a train trip the other day, and the cost was exactly $666.00 . I decided to fly [20:23] heavysixer has joined the channel [20:23] dekz has joined the channel [20:23] matthijs has joined the channel [20:23] a11235 has joined the channel [20:23] majek_ has joined the channel [20:23] optico has joined the channel [20:23] kei has joined the channel [20:23] jerrysv: qbert65536: that would have been a deal for me -- unless the plane was cheaper [20:23] parse has joined the channel [20:24] DrPizza has joined the channel [20:24] Ezku has joined the channel [20:24] Andeye has joined the channel [20:24] qbert65536: jerrysv, way cheaper [20:24] metadaddy has joined the channel [20:24] tetsu has joined the channel [20:24] mikegerwitz has joined the channel [20:24] mikegerwitz has joined the channel [20:24] davve: i would be more worried if the flight cost 666$ [20:24] jerrysv: qbert65536: the train would have been a more fun party. cooler people [20:24] sstreza has joined the channel [20:24] AndrewX192 has joined the channel [20:24] AndrewX192 has joined the channel [20:25] wookiehangover has joined the channel [20:25] jerrysv: yay, splits are over! [20:26] hoodow has joined the channel [20:26] hoodow has joined the channel [20:26] footyfish has joined the channel [20:27] stelleg has left the channel [20:27] hermanju_ has joined the channel [20:27] BillyBreen has joined the channel [20:28] DrMcKay: we're alive! [20:28] apoc has joined the channel [20:28] DrMcKay: !ping [20:28] dmkbot: DrMcKay, pong [20:28] qbert65536: what do people use to keep node always running ? [20:28] DrMcKay: qbert65536: forever [20:28] joshkehn: foreve [20:28] roidrage has joined the channel [20:29] qbert65536: coolness [20:29] stonebranch has joined the channel [20:29] qbert65536: global ? [20:29] DrMcKay: qbert65536: yup [20:29] iaincarsberg has joined the channel [20:29] ebryn has joined the channel [20:29] felixge has joined the channel [20:29] felixge has joined the channel [20:30] ebryn has left the channel [20:30] jchris has joined the channel [20:30] sriley has joined the channel [20:30] d_low__ has joined the channel [20:32] Kolin has left the channel [20:32] liar has joined the channel [20:33] whoops has joined the channel [20:33] chunhao_ has joined the channel [20:33] nibblebo_ has joined the channel [20:33] alvaro_o has joined the channel [20:34] chia has joined the channel [20:35] poseid has joined the channel [20:35] CIA-54: libuv: 03Igor Zinkovsky 07master * r4197fc7 10/ src/win/fs.c : windows: make file handles non-inheritable by default to match node behavior - http://git.io/AHhxEQ [20:36] beawesomeinstead has joined the channel [20:36] ryanseddon has joined the channel [20:37] mendel_ has joined the channel [20:38] indutny has joined the channel [20:39] jashkenas_work has joined the channel [20:40] jashkenas_work: 'afternoon #node.js ... I was wondering if there's a core API call you can use to check if a module is available ... [20:40] jashkenas_work: without having to wrap require() in a try/catch. [20:40] tomtomaso has joined the channel [20:40] tjholowaychuk: jashkenas_work there's require.resolve() [20:40] tjholowaychuk: might help [20:40] zastaph: am trying to insert 200.000 documents into couchdb by a simple while loop. with 100 it goes ok. but with 200.000 eventually it gives me FATAL ERROR: JS Allocation failed - process out of memory. It seems to asynchronously buffer up all the JSON's in memory, because nothing gets written to DB [20:40] jashkenas_work: would that still work with require-emulating libraries like browserify? [20:41] meso has joined the channel [20:41] jashkenas_work: I think that's what this pull request is trying to accomplish. [20:41] tjholowaychuk: jashkenas_work hmm not sure mayeb not :( [20:41] jashkenas_work: https://github.com/documentcloud/backbone/pull/605 for the record. [20:41] felixge has joined the channel [20:41] felixge has joined the channel [20:41] joshkehn: You could write something like [20:41] Alex_R has joined the channel [20:41] dnyy has joined the channel [20:41] joshkehn: requirec = function (module) { try { require(module); return true; } catch (e) {} return false; } [20:42] joshkehn: Basically a nice wrapper for the try / catch [20:42] devongovett has joined the channel [20:43] slifty_corsair has joined the channel [20:43] mattly has joined the channel [20:43] errordeveloper has joined the channel [20:44] jashkenas_work: thanks tj, josh. [20:45] Cromulent has joined the channel [20:45] Sense545 has joined the channel [20:47] huskyr has joined the channel [20:47] Sense545: Hey, it seems file watchers are not working with node v0.6.5 on windows.. Has this been fixed yet? [20:47] JasonSmith has joined the channel [20:47] CStumph has joined the channel [20:48] blissdev has joined the channel [20:48] d_low has joined the channel [20:48] jeremyselier has joined the channel [20:48] AvianFlu has joined the channel [20:48] edwardmsmith has joined the channel [20:48] romainhuet has joined the channel [20:48] bnoordhuis: Sense545: in 0.6.5 yes, in 0.5.5 no [20:48] enmand has joined the channel [20:48] bnoordhuis: it's on schedule for the next release or the one after that [20:49] Sense545: lol, typo :P [20:49] nibblebot has joined the channel [20:49] Sense545: ok.. guess ill have to set up a vm or something until then [20:49] Sense545: thanks [20:49] bnoordhuis: my pleasure [20:50] jashkenas_work has left the channel [20:50] DennisRasmussen has joined the channel [20:50] piscisaureus has joined the channel [20:50] dscape has joined the channel [20:51] JKarsrud has joined the channel [20:51] orospakr has joined the channel [20:53] owenb has joined the channel [20:54] Hosh has joined the channel [20:54] justicefries has joined the channel [20:54] CIA-54: node: 03Ryan Dahl 07master * ra6ef3eb 10/ (6 files in 5 dirs): [20:54] CIA-54: node: Upgrade libuv to 4197fc7 [20:54] CIA-54: node: and use return value from sync uv_fs functions - http://git.io/W_MKjA [20:54] CIA-54: node: 03Igor Zinkovsky 07master * r6cb1540 10/ src/node_file.cc : remove SetCloseOnExec - http://git.io/8ynNZw [20:56] isaacs has joined the channel [20:56] DrMcKay: bnoordhuis: sorry for not doing anything on Python bindings, I'm quite busy right now [20:56] bradleymeck has joined the channel [20:56] boltR has joined the channel [20:56] bnoordhuis: DrMcKay: oh, no worries [20:57] MechanisM has left the channel [20:57] DrMcKay: bnoordhuis: btw, you're doing Python programming? [20:57] bnoordhuis: DrMcKay: yes, on and off [20:59] JJMalina has joined the channel [20:59] DrMcKay: bnoordhuis: I have an evil plan about that bindings :> [21:00] DrMcKay: bnoordhuis: there was some Python library allowing you to do something like: result = yield some_async_tornado_function(input) [21:00] bnoordhuis: DrMcKay: tell me [21:00] xerox has joined the channel [21:00] AaronMT has joined the channel [21:00] bnoordhuis: you mean eventlet? [21:00] DrMcKay: bnoordhuis: I haven't seen that lib before, the one I'm talking about is adisp [21:00] lmatteis has joined the channel [21:00] nym has joined the channel [21:01] DrMcKay: bnoordhuis: it's designed for tornado web server [21:01] bnoordhuis: you want to mimic that? [21:02] DrMcKay: bnoordhuis: possibly. maybe not in the extension itself, but externally, it would be a cool feature [21:02] Brl4n has joined the channel [21:02] bnoordhuis: yes [21:02] bnoordhuis: but i'd keep the extension as plain as possible [21:02] bnoordhuis: just simple libuv bindings, nothing fancy [21:02] levi501d has joined the channel [21:03] tilgovi has joined the channel [21:03] tilgovi has joined the channel [21:03] vidi: how do you add parameters to cake ? [21:03] vidi: cake -r 1 task [21:03] halcyon918_ has joined the channel [21:03] vidi: doesn't work for me =\ [21:03] DrMcKay: vidi: cake is a lie, don't give it too many parameters [21:04] niftylettuce has joined the channel [21:04] vidi: you mean options doesn't work [21:04] DrMcKay: bnoordhuis: btw, there's some kickass Python conf in Poznań, http://rupy.eu/ [21:04] montylounge has joined the channel [21:04] DrMcKay: vidi: no, it's a Portal reference, just ignore me [21:05] TheEmpath: help help im being repressed [21:06] Raynos has joined the channel [21:06] TheEmpath: so I'm using socket.io with the RPCish callbacks for my requests.. is it still recommended standard to have a request queue? [21:06] bnoordhuis: DrMcKay: rubyists and pythonistas? is it a second world war reenactment? [21:06] TheEmpath: so when i send a message to socket.io, i put it in a queue and when i add to the queue, i execute everything in the queue [21:06] CIA-54: libuv: 03Igor Zinkovsky 07master * r58dd327 10/ src/win/error.c : windows: ERROR_PATH_NOT_FOUND -> UV_ENOENT mapping - http://git.io/s_-deA [21:06] khrome has joined the channel [21:06] TheEmpath: or is socket.io handling this on their own? [21:06] jmoyers has joined the channel [21:07] bnoordhuis: hah, dobre programy [21:07] DrMcKay: bnoordhuis: I think we're going to start a new war, actually [21:07] DrMcKay: bnoordhuis: but I haven't checked out the exact plan yet [21:07] hAUKEH has joined the channel [21:07] bnoordhuis: it's amusing how similar polish and czech are [21:07] bnoordhuis: well, until you try to hold a real conversation [21:08] Marak has joined the channel [21:08] eventualbuddha has joined the channel [21:08] DrMcKay: bnoordhuis: yeah, they've got pretty similar API, ABI differs a bit, though [21:08] mraleph: i think it's easier to understand czech than polish [21:08] freeformz has joined the channel [21:08] jmoyers has joined the channel [21:09] Marak: isaacs: did you see http://www.youtube.com/watch?v=8NvigYnLkA8&feature=channel_video_title yet? Using Hook.io to Install NPM Packages Anywhere [21:09] Marak: remote npm installs are fun [21:09] bnoordhuis: mraleph: how so? [21:09] levi501d has joined the channel [21:09] mraleph: don't know, just an impression [21:09] isaacs: Marak: no, that's neat, though [21:09] Marak_ has joined the channel [21:10] Marak: isaacs: i make 17 mini tuts on hook.io [21:10] Marak: many more coming [21:10] Marak: im tired of having to tell people the same shit over and over again [21:10] Marak: now they get links to videos [21:10] Marak: that are < 3 mins long [21:10] Styles has joined the channel [21:11] chandra has joined the channel [21:12] sveisvei has joined the channel [21:12] jmoyers has joined the channel [21:13] wenbert has joined the channel [21:13] sirdancealot has joined the channel [21:13] topaxi has joined the channel [21:13] DrMcKay: bnoordhuis: so, how do you like this conference? [21:14] DrMcKay: Marak++ [21:14] v8bot_: DrMcKay has given a beer to Marak. Marak now has 1 beers. [21:14] DrMcKay: nodejitsu is doing an awesome job really [21:14] bnoordhuis: DrMcKay: should i have an opinion? [21:15] AvianFlu has joined the channel [21:15] halcyon918 has joined the channel [21:15] softdrink: sooooo could someone give me the tl;dr on Dart? [21:16] DrMcKay: bnoordhuis: yes! :) [21:16] DrMcKay: softdrink: "hey, let's make the whole web depend on Google technology stack" [21:16] softdrink: ಠ_ಠ [21:17] joshkehn: softdrink: Dart: It's never going to get adopted. [21:17] tjholowaychuk: i'll adopt it if it has more direction than js does [21:17] bnoordhuis: DrMcKay: there's a lot of speakers, that's good [21:18] bnoordhuis: DrMcKay: and i like the website - you should see apachecon's or debconf's [21:18] softdrink: heh and IE /still/ doesn't have a proper png implementation… yeah i'm sure they'll adopt dart... [21:18] DrMcKay: bnoordhuis: (I mean, do you want to get here for it?) [21:18] jesster7 has left the channel [21:18] bnoordhuis: DrMcKay: it's halfway across the continent [21:19] DrMcKay: bnoordhuis: debcon made my eyes hurt... [21:19] DrMcKay: bnoordhuis: apachecon is a bit better [21:19] DrMcKay: bnoordhuis: OK, just asking :) [21:20] slifty_corsair has joined the channel [21:20] DrMcKay: AvianFlu: mailing list post? [21:21] AvianFlu: pm [21:22] zastaph: there's gotta be a better way to avoid out of memory errors when inserting several thousand database records read from a file than this answer suggests: http://stackoverflow.com/questions/6623683/node-js-process-out-of-memory-in-http-request-loop (3 control variables and recursion) [21:23] zastaph: my problem is that I have to throttle my inserts, because they get queued up in memory.. no db writes occur before all the file reads are done, as it is async [21:23] indexzero has joined the channel [21:24] sirdancealot has joined the channel [21:25] zastaph: is this what the stream library is for? [21:25] NewCoder has joined the channel [21:25] JaKWaC has joined the channel [21:26] romanb has joined the channel [21:30] Tobbe_: I must be missing something. I'm using express with express-resources. I do export.new = func... and export.show = func... for my "users" resource. But whenever I try to access /users/new it treats it as if "new" is a user id and not a route [21:31] tjholowaychuk: Tobbe_ ah, you know what, I'm probably just iterating the keys so unless it's at the top there might be a precedence issue [21:31] tjholowaychuk: that's a bug [21:31] tjholowaychuk: but move .new up and you should be ok for now [21:33] CoverSlide has joined the channel [21:33] Southern__ has joined the channel [21:37] Tobbe_: tjholowaychuk: yes, that did it :) thanks! [21:37] eldios: hij1nx_ you there? [21:38] short_charles has joined the channel [21:38] heavysixer has joined the channel [21:38] onlytracks has joined the channel [21:39] Tobbe_: but now what if I actually had a user named "new"? [21:39] tjholowaychuk: haha [21:39] tjholowaychuk: dont [21:39] tjholowaychuk: :) [21:39] xerox: look at it the other way around, that is a validation you have to make :P [21:40] tjholowaychuk: Tobbe_ also depends if you're using slugs or ids etc [21:41] Tobbe_: I'll be using unique usernames/logins that will be the IDs for my users [21:42] Tobbe_: like github etc [21:42] montylounge has joined the channel [21:43] alvaro_o has joined the channel [21:44] DrMcKay has joined the channel [21:45] creationix: ryah: is it possible to feed CGI output to HTTPParser? [21:46] creationix: I'm getting parse errors since the protocol is a little different [21:46] eldios: http://t.co/NwuH8mj is this working for anyone? [21:46] Tobbe_: what's the recommended way of html encoding things I'm rendering with jade? (" -> ") [21:46] JaKWaC has joined the channel [21:46] Tobbe_: using express [21:46] isufy has joined the channel [21:47] onlytracks has left the channel [21:47] Tobbe_: eldios: http://www.downforeveryoneorjustme.com/ [21:47] _baton__ has joined the channel [21:47] bnoordhuis: creationix: you'll probably need to add the status line yourself [21:47] creationix: yeah, I'm trying that, but it's not seeming to work [21:47] Tobbe_: eldios: never mind, didn't actually work :o [21:47] Tobbe_: :p [21:47] creationix: bnoordhuis: just wondering if someone else has done it [21:48] eldios: yes I already used downforeveryone [21:48] _baton__: hi, could anybody suggest a right way to install node on debian ? [21:48] bnoordhuis: creationix: not i [21:48] Tobbe_: eldios: anyway, no, it's not working for me either :) [21:48] eldios: but the link is actually not working [21:48] eldios: oh [21:48] eldios: nice [21:48] eldios: t.co down apparently [21:48] CoverSlide: eldios: wfm [21:48] alvaro_o has left the channel [21:49] rmzg: _baton__: Personally, I used apt.. [21:49] short_charles has joined the channel [21:49] Tobbe_: is there any way to plug in something like htmltidy after jade in express? single-line html is hard to debug... [21:49] CoverSlide: is node in weezy? [21:49] CoverSlide: or only in sid? [21:49] Tobbe_: I think you need sid [21:49] tjholowaychuk: Tobbe_ { pretty: true [21:50] malkomalko has joined the channel [21:50] _baton__: rmzg, that's good, but in my installation on debian/sid or ubuntu/lucid there are no deb's [21:50] rmzg: It's in sid [21:50] CoverSlide: i thought the pretty flag was disabled .. [21:50] kloeri has joined the channel [21:50] _baton__: rmzg, what about ubuntu ? [21:50] rmzg: Wait [21:51] rmzg: Maybe I'm wrong [21:51] CoverSlide: just get the deb off of the debian page [21:51] CoverSlide: it was in sid at some point [21:51] bnoordhuis: _baton__: https://launchpad.net/ubuntu/+source/nodejs [21:51] bnoordhuis: there's a ppa [21:51] _baton__: rmzg, the common question is, how to install node on old distros [21:51] Tobbe_: http://packages.debian.org/sid/web/nodejs [21:51] CoverSlide: ./configure && mage && make install [21:51] _baton__: bnoordhuis, many thanks, i'll try [21:51] CoverSlide: s/mage/make [21:52] shipit has joined the channel [21:53] bnoordhuis: _baton__: note that you'll be a couple of releases behind the latest stable [21:53] CoverSlide: just like everything on debian [21:54] _baton__: bnoordhuis, so the right way is to install it from source ? [21:54] nuck: In Mongoose, is the callback for .save() called no matter what or just if there's an error? [21:54] creationix: mage, that's the magical build system [21:54] bnoordhuis: _baton__: i don't want to use the terms right or wrong [21:54] CoverSlide: it's unix; source is always the right way [21:54] _baton__: bnoordhuis, I see [21:55] bnoordhuis: _baton__: but if you want the newest features, bug fixes, etc. then yes, you'll have to build from source [21:55] creationix: _baton__: use https://github.com/creationix/nvm to install from source, but not clobber your system [21:55] Tobbe_: tjholowaychuk: thanks, but how is one supposed to know those things? can't find it in the readme... :) [21:55] nuck: I'm not a bit Unixperson, but it's true [21:55] creationix: TooTallNate: you here? [21:56] nuck: Anyways, with Mongoose, I'm rendering a success page if .save() works, and it's not getting called :/ [21:56] TooTallNate: creationix: pong [21:56] creationix: TooTallNate: did you try using node's built-in http parser when making node-cgi? [21:56] BillyBreen has joined the channel [21:56] creationix: I noticed you used some other library to do the parsing [21:57] TooTallNate: creationix: i can't really remember lol [21:57] saikat_ has joined the channel [21:57] eldios: anyone want to try spreencast with me? [21:57] TooTallNate: i just was writing my own at the time [21:57] TooTallNate: so I used it [21:57] nuck: haha [21:58] creationix: TooTallNate: cool, just wondering if there was some reason it can't work [21:58] TooTallNate: creationix: it works with the native http server [21:58] creationix: TooTallNate: your's works btw once I realized the the mountpoint can't have a trailing / [21:58] Tobsn has joined the channel [21:58] TooTallNate: creationix: ah ya, that mount point logic sucks [21:59] CoverSlide: parsers.alloc() & parsers.free() [21:59] TooTallNate: i just use connect's now :p [21:59] TooTallNate: creationix: i'm using my own header-parser, if that's what you mean [21:59] JaKWaC_ has joined the channel [21:59] creationix: TooTallNate: right [21:59] MooGoo: my dog locked herself in the car [22:00] MooGoo: I blame nodejs [22:00] creationix: TooTallNate: CGI's output is almost HTTP, but http_parser is really strict [22:00] nuck: MooGoo » ... [22:00] creationix: connect has a CGI module? [22:00] MooGoo: it was that bot exploit probably [22:00] TooTallNate: creationix: no, the mount point logic [22:00] creationix: ahh [22:00] nuck: MooGoo » haha [22:00] AaronMT has joined the channel [22:00] nuck: MooGoo » Yes, I'm sure it was :) [22:00] MooGoo: too bad I cant hax my car like that huh [22:00] TooTallNate: creationix: off the top of my head, I think that using http_parser for parsing the headers would work! [22:01] TooTallNate: creationix: pull request welcome ;) [22:01] creationix: well, I just tried it and, for one, the initial line is missing in CGI [22:01] TooTallNate: oh, haha, ya that's an important one :p [22:01] CoverSlide: .. unlockCar() [22:01] TooTallNate: creationix: that's why I wrote my own header parser that takes options and isn't quite so strict [22:01] nuck: catb0t is offline D: [22:02] francois: ACTION  [22:02] nuck: v8bot_ » unlockCar() [22:02] nuck: v8: unlockCar() [22:02] v8bot_: nuck: ReferenceError: unlockCar is not defined [22:02] nuck: >:C SHADDUP V8BOT NOBODY LIKES YOU [22:02] TooTallNate: creationix: I've reused it in quite a few modules so I think it's done it's job, lol [22:02] hackband has joined the channel [22:02] kloeri has joined the channel [22:02] creationix: TooTallNate: I'm just trying to serve some git repos over http [22:02] level09 has joined the channel [22:02] creationix: using /usr/lib/git-core/git-http-backend [22:03] creationix: seems to work [22:03] level09: is it a good idea to create web services using express ? [22:03] Squax has left the channel [22:03] nuck: level09 » Very. [22:03] level09: I want to build a web service on top of my php app [22:03] lumino has joined the channel [22:04] nuck: ... [22:04] TooTallNate: creationix: ahh nice! [22:04] level09: but I want to stay away from php [22:04] nuck: level09 » Define "web service"? [22:04] creationix: It would be neat if http_parser has a third mode that's not "request" or "response" [22:04] creationix: just parsed the headers and body [22:04] level09: nuck: basically, I have some devs working on iOS / mobile apps [22:04] level09: and I want to give them access to my news website through some form [22:04] level09: nuck: I am thinking of building a json server [22:05] level09: using express [22:05] level09: but I'm still not sure about how to implement authentication [22:05] nuck: level09 » You would probably hook Node directly into the database backend [22:05] level09: nuck: exactly [22:05] nuck: As for authentication, use whatever's already in place [22:05] nuck: level09 » That's a setup where Node is *beside* PHP [22:05] nuck: It wouldn't be "on top", so to speak [22:06] mikeal: how do i *not* compile with libuv? [22:06] tjholowaychuk: level09 res.json(obj), doesn't get much simpler than that [22:06] creationix: hmm, that's not so easy, the http_parser code assumes there are only two modes and is optimized for that case [22:06] level09: I tested mysql module and it seems to work fine [22:06] level09: nuck: what do you recommend for authentication ? [22:06] level09: I'm a a bit not sure how to implement that [22:06] level09: does express have anything by default ? [22:06] level09: there will be no public access, so perhaps there is no need for API keys etc … [22:06] nuck: tjholowaychuk » Or res.send(obj) [22:07] tjholowaychuk: level09 nope express doesnt couple with any db [22:07] level09: tjholowaychuk: yes, that part is very easy, but what do you recommend for authentication ? [22:07] level09: should I do it at the JS level ? or the http headers level [22:07] nuck: Hopefully I'll have an oAuth2 server as express middleware eventually, but until then, you decide [22:07] level09: I haven't worked much with web services before [22:07] nuck: level09 » Try HTTP Basic Auth? [22:08] tjholowaychuk: really depends, there are many many ways you could handle that [22:08] kloeri has joined the channel [22:08] slloyd has joined the channel [22:08] level09: I am actually looking for simplest, since only my devs will be accessing it [22:08] k1ttty has joined the channel [22:08] level09: nuck: yes probably that would be easiest [22:08] jmoyers has joined the channel [22:09] nuck: level09 » Well, if you need login, use that [22:09] nuck: And put it over HTTPS [22:09] nuck: If you don't need login, don't use auth at all [22:09] nuck: Just straight-up pump shit to JSON [22:09] level09: cool [22:09] antono has joined the channel [22:10] springmeyer has joined the channel [22:10] felixge has joined the channel [22:10] sirdancealot has joined the channel [22:11] nuck: tjholowaychuk » If I use the res.render thing that returns the result as a formatting mechanism for my email, will it kill me? Should I use the EJS module directly instead? [22:12] nuck: I'm worried that I'll break something if I call it more than once [22:12] davidbanham has joined the channel [22:12] tjholowaychuk: nuck for emails use ejs or whatever directly [22:12] tjholowaychuk: you wont gain much with the view system there [22:13] hacfi has joined the channel [22:13] Cromulent has joined the channel [22:13] TheDahv has joined the channel [22:13] kloeri has joined the channel [22:13] CarterL has joined the channel [22:15] romanb has joined the channel [22:15] sfoster has joined the channel [22:15] StanlySoManly: so ... trying to unit test a piece of code (normally run through apache) that uses jQuery.ajax(), but the URL is a relative path (and we want to keep it that way). of course node doesn't know what do to with this... what's the best way to work around this in node? either i'm not looking at the right parts of the docs or i'm not putting together the right pieces when i read them. [22:16] kkaefer has left the channel [22:16] theCole has joined the channel [22:16] alvaro_o_ has joined the channel [22:18] dreamdust: You need to define an absolute path to prepend to it. How are you executing node? [22:18] [AD]Turbo: is Node.js Office Hours started? [22:19] amerine has joined the channel [22:19] kloeri has joined the channel [22:19] vaheh has joined the channel [22:19] enmand has joined the channel [22:20] artnez has joined the channel [22:20] nomurrcy` has joined the channel [22:20] artnez has left the channel [22:20] mehtryx has joined the channel [22:21] jmoyers has joined the channel [22:22] zenibeat has joined the channel [22:23] AvianFlu has joined the channel [22:23] alvaro_o_ has left the channel [22:23] adrianmg has joined the channel [22:23] JSManiacs: Isaacs: awesome blog post about JS !== Web Assembly [22:23] robertfw has joined the channel [22:24] isaacs: thanks [22:24] hacfi has left the channel [22:24] dreamdust: @JSManiacs/isaacs: link? [22:24] shipit_ has joined the channel [22:25] JSManiacs: dreamdust: http://blog.izs.me/post/10213512387/javascript-is-not-web-assembly [22:25] dreamdust: thx :) [22:25] xyxne: "language-wank crazy" [22:25] xyxne: isaacs++ [22:25] v8bot_: xyxne has given a beer to isaacs. isaacs now has 4 beers. [22:25] xilos has joined the channel [22:26] jesusabdullah: isaacs: Do you think an actual web assembly is a good idea? You may have addressed this in your post which I haven't read yet [22:26] replore has joined the channel [22:26] replore_ has joined the channel [22:26] jesusabdullah: but that's the first question that bubbles to the top of my mind [22:26] isaacs: jesusabdullah: i'm not even sure what that really means. [22:27] isaacs: but i'd love to see the language that actually IS to js what C is to assembly [22:27] kloeri has joined the channel [22:27] isaacs: i'm pretty sure such a thing does not exist. [22:27] isaacs: (yet?) [22:27] mehlah has joined the channel [22:27] eldios: HTML in some sense? [22:28] jesusabdullah: isaacs: Yeah, after reading your article, the only conclusion is that the concept is innately flawed [22:28] jesusabdullah: Sometimes I think bytecode would be a good idea, but then I remember how much people hate java [22:28] dreamdust: I think comparing languages like this to begin with is just apples to oranges. It never really seems to make sense to draw metaphors using programming languages. [22:28] jesusabdullah: ;) [22:29] StanlySoManly: dreamdust: here's an example that i hope better explains what i'm trying to do. it's simplified, so it doesn't answer the "why" very well. http://pastebin.com/19DjvUZD [22:29] isaacs: jesusabdullah: well, "all" that someone would have to do is write a to-js language that is an order of magnitude more expressive [22:29] jesusabdullah: Well, drawing metaphors and making analogies is very powerful [22:29] isaacs: jesusabdullah: that would make it worthwhile to add the tooling and whatnot that makes C so great. [22:29] jesusabdullah: The problem is that most metaphors break down pretty quick [22:29] isaacs: jesusabdullah: the proper metaphor really is C++ to C [22:29] jesusabdullah: Coffeescript is totally js's c++ in a lot of ways [22:29] tjholowaychuk: i'll take c over c++ any day [22:30] jesusabdullah: s/a lot/some amusing/ [22:30] tjholowaychuk: someone should write c to js [22:30] tjholowaychuk: haha [22:30] eldios: *_* [22:30] jvolkman: jesusabdullah: I don't think hatred of java has anything to do with bytecode [22:30] JSManiacs: someone should write assembly to js [22:31] ecto has joined the channel [22:32] felixge has joined the channel [22:32] felixge has joined the channel [22:32] indexzero has joined the channel [22:32] dreamdust: @StanlySoManly: Pretty sure you need a webserver in that case. http://nodejs.org/docs/v0.4.11/api/http.html [22:33] jesusabdullah: jvolkman: Well, not the language sure, but what about "oh man java app runs slow and eats my ram" [22:33] boaz has joined the channel [22:33] jesusabdullah: isn't that an issue with the jvm more than with the language? [22:33] jesusabdullah: I wouldn't know [22:33] jvolkman: the jvm is pretty fast [22:33] jvolkman: beating standard c++ at times [22:34] StanlySoManly: dreamdust: okey dokey. didn't know if i could find a way to spoof it in the filesystem. i'll start working on a web server. thanks! :) [22:34] nuck: I'm gonna go benchmark EJS vs. my own personal Parse.js vs. Moustache. [22:34] nuck: Whichever wins that battle, I'm gonna use for my emails :D [22:34] tjholowaychuk: nuck haha [22:34] tjholowaychuk: is emailing really a bottleneck [22:34] tjholowaychuk: that would be impressive [22:35] nuck: tjholowaychuk » No, but they're all equal in my mind so I'll let speed decide this one :P [22:35] jakob has joined the channel [22:35] creationix has left the channel [22:35] tjholowaychuk: haha [22:35] nuck: Plus I'm really curious to see how my own thing benches [22:35] nuck: to the JSPERFMOBILE! [22:35] tjholowaychuk: try the ejs self option [22:35] tjholowaychuk: if i have one [22:35] tjholowaychuk: cant remember [22:36] liar has joined the channel [22:36] nuck: tjholowaychuk » Self option? [22:36] tjholowaychuk: to turf the convenience of with(){} [22:36] nuck: I'm afraid I don't follow? [22:36] tjholowaychuk: oh nvm we dont have that, just jade does [22:36] nuck: ah [22:36] tjholowaychuk: we -> ejs [22:37] tjholowaychuk: ? too much coffee [22:37] nuck: WEjs [22:37] nuck: :P [22:37] xyxne: ACTION wags a finger @ tjholowaychuk  [22:37] nuck: Wait wait [22:37] tjholowaychuk: ACTION grammar king [22:37] nuck: WiiJS [22:37] nuck: Has anyone tried running Node on a Wii? [22:37] nuck: Or other game console [22:38] jvolkman: i've run it on a cable settop box before [22:38] NewCoder has joined the channel [22:38] jerrysv: tbranyen did, i think [22:38] darshanshankar has joined the channel [22:38] jerrysv: oh, other way, sorry [22:38] nuck: jvolkman » Really? [22:38] jvolkman: yeah [22:39] nuck: jvolkman » I want that on my Comcast box haha [22:39] jvolkman: back when i worked for comcast [22:39] nuck: Because Comcast's settop boxes *suck* [22:39] nuck: The iGuide needs to be shot [22:39] FireFly|n900 has joined the channel [22:39] NewCoder has left the channel [22:39] dabailey has joined the channel [22:39] jvolkman: it was one of these: http://www.engadget.com/2011/05/20/comcasts-next-generation-xfinity-spectrum-dvr-shows-off-quad-tu/ [22:40] EvRide has joined the channel [22:40] nuck: jvolkman » What's that running and when will I get it? ;3 [22:40] nuck: I've been looking forward to the new cable boxes since the fist glimpse of it back in like 2008 [22:40] nuck: But I thought it'd been scrapped [22:40] jvolkman: this one is different than those new ones [22:41] nuck: jvolkman » The UI is quite similar [22:41] jvolkman: this project started in 2009 i believe [22:41] jvolkman: the ui might look similar, but the tech is completely different [22:41] daleharvey has joined the channel [22:41] nuck: jvolkman » Howso? [22:42] jvolkman: anyway i think they're currently in market trials in georgia, but i haven't worked at comcast for 4-5 months [22:42] nuck: I'm curious what kinda tech they're moving to, since settop boxes are traditionally memory-limited [22:42] jvolkman: nuck: the box is basically a thin client. All of the UI state is 'in the cloud' [22:43] robhawkes has joined the channel [22:43] jvolkman: the box has software to do things like decode video, display QAM signals, display images, and control the dvr [22:43] nerdy_ has joined the channel [22:43] nuck: jvolkman » Sounds unscalable :/ [22:44] jvolkman: and draw boxes and display text that the servers tell it to [22:44] nuck: Ah [22:44] jvolkman: nuck: well i guess comcast will find out [22:44] whoops has joined the channel [22:44] nuck: jvolkman » I hope they make it scale better to bigger screeens though [22:44] trotter has joined the channel [22:44] jvolkman: nuck: the UI is designed for an HD screen [22:44] jvolkman: i don't believe the boxes work with anything less than HD [22:44] storrgie has joined the channel [22:45] jvolkman: they might require a minimum of 720p [22:45] nuck: jvolkman » I have an HD screen, and I hate how the I-Guide looks on HD channels [22:45] softdrink: what is the expected behavior when i do "delete myInstance.foo", when myInstance is an instance of myClass, whose prototype's 'foo' property has been created with Object.defineProperty? [22:45] jvolkman: i'm not sure what the i-guide is [22:45] TheDahv: Is http://howtonode.org/ still a useful place to go/send new people? I just checked and saw only one new post I hadn't seen before, and a bunch of other stuff that may not be right any more [22:45] jvolkman: i actually wrote a simulator for that box's UI protocol in node [22:45] nuck: jvolkman » The old-ass blue UI they've ahd for like 15 years [22:46] jvolkman: it rendered to a browser over web sockets [22:46] maxogden: TheDahv: we talked about that at node summercamp last week. up to date docs are hard. nodejitsus new thing seemed promising [22:46] nuck: jvolkman » They should use Node for the servers :P [22:46] TheDahv: I didn't get to go :( [22:46] TheDahv: Where might I find nodejitsus new thing? [22:46] nuck: I bet it'd scale pretty well if they did that [22:46] maxogden: TheDahv: http://docs.nodejitsu.com/ [22:47] maxogden: TheDahv: and https://github.com/nodejitsu/docs [22:47] TheDahv: Oh neat. I'm actually glad I asked. [22:47] abraxas has joined the channel [22:47] TheDahv: Checking this out now [22:47] CoverSlide: that should be in the topic [22:47] TheDahv: thanks [22:47] mwillhite has joined the channel [22:47] CIA-54: node: 03Ben Noordhuis 07master * rf8b9094 10/ src/node.js : node: disable uv backend if NODE_USE_UV=0 - http://git.io/zTa5fg [22:47] CoverSlide: although that would require ryah to put something useful as a topic [22:48] stepheneb has joined the channel [22:48] mwillhite: is there a way to include local vars from a 'require'd file [22:48] mwillhite: ? [22:48] CoverSlide: yeah [22:48] CoverSlide: exports.varname = varname [22:48] jvolkman: add them to exports? [22:49] mwillhite: okay, sorry new to nodejs and actually just asking for a friend [22:49] mwillhite: thanks [22:49] TheDahv: :) [22:49] robotmay has joined the channel [22:49] nuck: Somebody throw me a good Moustache implementation to benchmark EJS and my own lib against ;3 [22:50] jvolkman: mwillhite: that's actually from commonjs: http://www.commonjs.org/ [22:50] nuck: (note that this is client-side benchmarking) [22:50] maxogden: nuck: you want a site with a bunch of mustache templates? [22:50] jesusabdullah: What did you make THIS time nuck? [22:50] mraleph has joined the channel [22:50] CoverSlide: commonjs sucks [22:51] qbert65536: i didnt like it [22:51] tjholowaychuk: nuck i dont think there is a good mustache impl for js [22:51] CoverSlide: node ftw! [22:51] tjholowaychuk: they are all very large for such a small language [22:51] nuck: tjholowaychuk » :( [22:51] qbert65536: !mustache [22:51] tjholowaychuk: (though the resulting functions might be ok im not sure) [22:51] nuck: tjholowaychuk » Well, it's more powerful than it looks, it's got loops and shit too [22:51] tjholowaychuk: yeah i know [22:51] maxogden: mustache.js by janl works for me fwiw [22:51] Nexxy: back the truck up, yo! [22:51] felixge has joined the channel [22:51] Nexxy: it's got loops [22:52] TheDahv: I haven't been following node as deeply since about mid-summer. Has a dominant authorization pattern emerged for authorization on sites done with node? [22:52] TheDahv: Specifically, authentication that doesn't use something like oauth [22:52] Nexxy: TheDahv, poorly implemented Oauth [22:52] Nexxy: seems to be the standard [22:52] Nexxy: oh, nevermind. [22:52] TheDahv: I used https://github.com/masylum/connect-mongodb for a project at the beginning of the summer [22:52] AvianFlu_ has joined the channel [22:52] TheDahv: It seems like he's released a bunch of updates [22:52] TheDahv: but I've kind of held off [22:52] jmoyers has joined the channel [22:52] nuck: jesusabdullah » I made a template function, like a subset of Moustache, but simpler. https://gist.github.com/1218052 [22:53] CoverSlide: node isn't as limiting as, let's say PHP [22:53] CoverSlide: it gives you tons of options to solve your problem [22:53] Druid has joined the channel [22:53] qbert65536: what do guys think of this dart language [22:53] tjholowaychuk: is there even any info on it yet? [22:53] nuck: CoverSlide » PHP gives you tons of options built into the core of everything haha [22:53] jesusabdullah: I don't know a damned thing about dart [22:53] nuck: tjholowaychuk » AFAIK, nothing [22:53] tjholowaychuk: then it's sweet [22:53] tjholowaychuk: haha [22:53] TheDahv: I read some SO post about the connect model and how auth should be done [22:53] nuck: But by the sounds of it, it's an attept to replace JavaScript [22:54] nuck: Which I disapprove of. [22:54] maxogden: i have decided to stop learning JS because of googles new thing. im gonna be the next ryan doll [22:54] jesusabdullah: That said, here's what I think about "evolving the language" [22:54] jesusabdullah: It's not broken. Please don't "fix" it. [22:54] TheDahv: my sense was there wasn't a really good "here are some options, but here is a GOOD way to do it people seem to agree on" [22:54] mwillhite has left the channel [22:54] jesusabdullah: We kinda have a good thing going right now! [22:54] nuck: jesusabdullah » All I want is a better way to express prototypes in a way where I can close over and have local variables. [22:54] nuck: That's it. [22:54] JSManiacs: jesusabdullah: jesusabdullah: Agreed [22:54] nuck: That's all I ask of the next ECMAScript. [22:54] SubStack: hey I might have a legitimate http parser bug [22:54] qbert65536: jesusabdullah, http://www.theregister.co.uk/2011/09/14/google_project_kill_javascript/ [22:55] jesusabdullah: A nice, expressive, "fast enough" language/ecosystem that, despite the warts, lets you do sweet shit on the web [22:55] SubStack: google uses java. QED [22:55] jesusabdullah: It's like [22:55] jesusabdullah: guys [22:55] CoverSlide: and python [22:55] nuck: I'm not a fan of most of ES6's additions. [22:55] jesusabdullah: This is why we can't have nice things [22:55] nuck: Err, Harmony [22:55] nuck: Whatever it is [22:55] nuck: Not a fan [22:55] jesusabdullah: Let me bask in ES5 for a while [22:55] tjholowaychuk: nuck me neither [22:55] tjholowaychuk: mostly useless crap [22:55] nuck: But ES5? FUCK YES. [22:55] nuck: ACTION drools over ES5 [22:56] Daegalus: I am currently trying to see if I can do CoffeeScript for Win8 [22:56] nuck: tjholowaychuk » It's adding lower-level programming concepts to JS, which really doesn't work. [22:56] Daegalus: whats ESS? [22:56] bnoordhuis: SubStack: http parser bug? [22:56] mendel_ has joined the channel [22:56] nuck: I mean, they're taking a scripting langauge and making it more like C++ at this point [22:57] nuck: Lack of silly features is a feature in itself [22:57] tjholowaychuk: yeah in most cases more != better, but meh they seem set on the lame stuff they are adding [22:57] tjholowaychuk: haha yeah i agree [22:57] erasrhead has joined the channel [22:57] nuck: tjholowaychuk » At least we get to keep ES5 :D [22:57] nuck: As long as ES5's features remain, I'm happy. [22:57] jmoyers has joined the channel [22:58] DennisRas has joined the channel [22:58] xilos has left the channel [22:59] joshkehn has joined the channel [22:59] joshkehn has left the channel [23:00] poseid has joined the channel [23:01] jmoyers has joined the channel [23:03] Sorella has joined the channel [23:03] jmoyers has joined the channel [23:04] Daegalus: So what exactly is ESS, I can't seem to find anything concrete on it [23:04] bronson: Is there anything wrong with using reserved words as methods? [23:04] bronson: x={in:function() {console.log('hi');}}; x.in(); [23:04] nuck: Daegalus » You mean ES-FIVE? [23:04] bronson: seems to work fine... not sure if it's evil style. [23:04] nuck: :P [23:04] Skomski has joined the channel [23:04] Daegalus: Oh wow, i am definitely tired [23:04] nuck: Daegalus » hahahaha [23:04] tjholowaychuk: bronson it's fine [23:04] tjholowaychuk: i do it all the time [23:05] bronson: tjholowaychuk, right on. thanks! [23:05] Daegalus: OK, THIS ALL MAKES SENSE NOW!!! [23:05] softdrink: is anyone here *super* handy with async vows and EventEmitter? [23:05] TheDahv: So I may get a chance to do a (very informal) talk about what node.js is for a general-programming group in Seattle. [23:05] TheDahv: I'm thinking of starting off with "here is how node/express is like stuff you're familiar with aka sinatra." [23:05] jesusabdullah: bronson: I think some older js implementations would break on it, so there's a lot of FUD about it [23:05] TheDahv: And then moving into "here is how it's like stuff you might not be familiar with" [23:05] jesusabdullah: softdrink: SUPER handy? XD [23:05] tjholowaychuk: yeah i think safari will bitch at you [23:05] softdrink: überhandy [23:05] softdrink: ¬¬ [23:05] bronson: jesusabdullah, that makes sense [23:06] TheDahv: I run into a lot of skeptics that lead off with "node seems like overkill for project xyz" [23:06] TheDahv: has anybody run into anything like that? [23:06] freeformz has joined the channel [23:06] Daegalus: Though, I personally think i will stick to C#/XAML for Windows 8 development. I have Windows 8, its great, an the JS/HTML5 is AMAZING, but eh. I think C#is what I will stick with. [23:06] netlemur has joined the channel [23:06] jesusabdullah: I'm unfortunately not handy, but we use vows a lot at nodejitsu so if you can catch one of the other nodejitsu peeps they can probably help you [23:06] tjholowaychuk: underkill! [23:06] neilk_ has joined the channel [23:06] errordeveloper has joined the channel [23:06] bnoordhuis: TheDahv: no, but i get a lot of people asking me if node is "enterprise ready" [23:07] softdrink: basically i've got an EventEmitter subclass that fires an arbitrary event, and i want to make sure that event is fired appropriately… i'm not sure how to write the vow for it [23:07] softdrink: 'cause it's not going to emit 'success'... [23:07] levi501d has joined the channel [23:07] TheDahv: bnoordhuis: interesting [23:07] CoverSlide: enterprise people who want only enterprise ready stuff should uninstall java from their servers [23:07] jesusabdullah: softdrink: I'd use a .on() with a callback [23:07] jesusabdullah: what's that, this.callback? [23:08] bnoordhuis: TheDahv: my canned reply is "i can give you a 50K annual support contract without actually giving support, would that help?" [23:08] AaronMT has joined the channel [23:08] TheDahv: haha [23:08] kersny has joined the channel [23:08] bronson: ACTION loves how little Node underkills. Easy to understand, easy to use. [23:08] nuck: haha for a simple "The variable {foo} is set to {bar}", my script won by a HUGE margin [23:08] TheDahv: The whole auth thing still prevents me from building things people would put their information into [23:09] apang42 has joined the channel [23:09] TheDahv: Personally, I really enjoy making quick sites with express. I actually prefer javascript to ruby [23:09] bnoordhuis: TheDahv: what auth thing? [23:09] tjholowaychuk: TheDahv yeah me too [23:09] TheDahv: But, I guess a lot of people feel weird about that [23:09] nuck: http://jsperf.com/template-benchmark [23:09] nuck: tada! [23:09] jmoyers has joined the channel [23:09] tjholowaychuk: i use node because i prefer js, not because i want some uber fast thing [23:09] schwab_ has joined the channel [23:09] TheDahv: Um, that I don't know a really solid, convincing auth pattern that is generally accepted as "good" [23:10] softdrink: jesusabdullah: do you have a good example? the vows docs just sort of brush by it [23:10] CoverSlide: if you want uber-fast, just code in c [23:10] tjholowaychuk: nuck compilation time is irrelevant [23:10] jesusabdullah: softdrink: unfortunately, not really [23:10] nuck: That's tj's EJS vs. Janl's mustache JS vs. my own script [23:10] TheDahv: For example, I'm rebuilding http://seattle.beerandcode.org and I decided to use node/express [23:10] jesusabdullah: If Dominic was here I'd try pinging him. He's a smart guy, knows a lot about testing, really smart about that sort of thing [23:10] nuck: tjholowaychuk » I just did it for the global, I'll add a testcase for that? [23:10] jesusabdullah: AND uses vows a lot [23:11] TheDahv: and I'm building up profiles people can create...I'm kind of in a holding pattern until I decide how I want people to log in to see their stuff [23:11] tjholowaychuk: nuck (not saying ejs will execute faster either due to with(){}) but yea [23:11] tjholowaychuk: compile-time doesnt matter [23:11] bronson: TheDahv, agreed. All auth libs that I know of are massive overkill. [23:11] bronson: I'd like to see one that underkills like Node. [23:11] TheDahv: There is actually not much stuff going on in Seattle with regards to Node.js. I thought this would be a cool chance to maybe generate some excitement [23:12] tbranyen: jerrysv: did what? [23:12] tbranyen: crap looks like i'm gonna have to scroll [23:12] secoif has joined the channel [23:12] nuck: tjholowaychuk » Added a precompiled EJS [23:12] nuck: Okay, precompiled EJS is definitely the best [23:12] nuck: Still, mustache = worst [23:12] tbranyen: oh jerrysv nuck i did wiimote stuff in node [23:13] jerrysv: tbranyen: sorry, was away - node and wii controller [23:13] SubStack: bnoordhuis: multipart uploads with Expect: 100-continue [23:13] tbranyen: yup [23:13] tbranyen: nodewii [23:13] Nexxy: what lib did you use for that? [23:13] tbranyen: libcwiid [23:13] steffan has joined the channel [23:13] tbranyen: and libeio for polling [23:13] tbranyen: or something like that [23:13] Nexxy: ^-^ [23:13] CoverSlide: cwiid [23:13] CoverSlide: i like the name [23:13] nuck: tjholowaychuk » But that begs the question - what if I could make Parse.js compile? ;D [23:13] talltyler has joined the channel [23:13] SubStack: oh wait! [23:13] bnoordhuis: SubStack: i'm listening [23:13] nuck: That thing could be a fucking *beast* [23:14] tjholowaychuk: haha [23:14] tbranyen: Nexxy: it worked really well with websockets to make a shooter [23:14] tbranyen: i should finish that demo some day [23:14] tjholowaychuk: anything with a more restricted syntax can be faster than ejs [23:14] nuck: If I can split on a Regex, I can make it compile. [23:14] tjholowaychuk: mustache *should* be much faster [23:14] Nexxy: tbranyen, that sounds awesome :) [23:14] nuck: tjholowaychuk » True, but EJS *does* compile to pure JS. [23:14] tjholowaychuk: and by much, i mean not enough to really care [23:14] jmoyers has joined the channel [23:14] nuck: So it makes sense it'd be fast [23:14] tjholowaychuk: yeah but we also use with(){} to expose locals [23:14] tjholowaychuk: mustache etc dont need to [23:15] tbranyen: combyne doesn't need to either [23:15] tbranyen: :3 [23:15] nuck: tjholowaychuk » is with slow? I thought it was just bad practice? [23:15] tjholowaychuk: both [23:15] tjholowaychuk: it's great for templates [23:15] CoverSlide: with is slow [23:15] tjholowaychuk: haha [23:15] tjholowaychuk: but that's about it [23:15] CoverSlide: it's gotta check each variable [23:16] nuck: ah [23:16] tjholowaychuk: reality is if you render something enough to warrant a "faster" template engine [23:16] tjholowaychuk: dont use a template engine [23:16] nuck: haha true [23:16] CoverSlide: tjholowaychuk: ever thought of trying to remove the `with` [23:16] CoverSlide: ? [23:16] tjholowaychuk: not for ejs but jade has a self: true option [23:16] nuck: I jsut had an idea for how to make my Parse.js better, and now I wanna see if that's possible [23:16] tjholowaychuk: to reference self instead [23:17] tjholowaychuk: looks stupid [23:17] tjholowaychuk: but hey [23:17] SubStack: bnoordhuis: when you do a multipart HTTP PUT upload with curl -T "{a,b}.txt" I can only seem to get the contents of a.txt [23:17] bnoordhuis: SubStack: can you gist a test case? [23:17] SubStack: s/you/I/ [23:17] SubStack: yep sure [23:18] SubStack: I saw some stuff about checkContinue on the docs but I haven't been able to catch any of those events [23:18] tjholowaychuk: 900,000 ops/s too slow for a template [23:18] tjholowaychuk: haha [23:18] tjholowaychuk: MOAR FAST [23:19] kersny has joined the channel [23:19] sambao21 has joined the channel [23:19] SubStack: aha actually I just got one [23:19] SubStack: I was running an old file >_< [23:19] brianseeders has joined the channel [23:20] SubStack: mostly I think this is just a matter of being such an obscure corner case that there's nothing written about it [23:20] SubStack: aha it works! [23:20] bnoordhuis: SubStack: but it is a bug in node / http_parser? [23:20] bnoordhuis: apparently not? [23:21] nuck: tjholowaychuk » Too slow for me ;D [23:21] CoverSlide: multipart PUT fails, but multipart POST is ok? [23:21] nuck: There's no such thing as "fast enough" [23:21] maushu: That is kind of weird. [23:21] CoverSlide: then use G-WAN [23:22] CoverSlide: and write all your servers in c! [23:22] SubStack: bnoordhuis: nah node is fine it seems [23:22] SubStack: it's just a really obscure feature :p [23:23] DrMcKay has joined the channel [23:23] Daegalus: grrr, I have way too many projets. 3 games, 2 Apps, 1 Windows 8 app, and 1 app to rewrite that i already have released. That includes the Node.js forum I have started. [23:23] TheDahv: haha, I run into that too [23:24] MatthewS has joined the channel [23:24] SubStack: bnoordhuis: here's how I got it working: https://gist.github.com/1218095 [23:24] CoverSlide: Daegalus: that's called `being a developer` [23:24] Daegalus: CoverSlide: oh i know, I just always sit down to code, and Im like 'FFFFFFFFFF which do I work on', spend 1/3rd of my time figuring out what to work on. [23:24] silverwind has joined the channel [23:24] CoverSlide: Developers, Developers, Developers, Developer!s [23:24] silverwind has joined the channel [23:24] jmoyers has joined the channel [23:24] Daegalus: I knew this would happen, but blah. so annoying sometimes [23:25] bnoordhuis: SubStack: cool, glad you got it solved [23:25] boaz has joined the channel [23:25] Daegalus: i need to install VS2010 ultimate on my Win8 so I can work on my WP7 project. [23:26] AvianFlu_: isn't it wednesday? [23:26] CoverSlide: eww [23:26] Daegalus: yes [23:26] SubStack: ryah: checkContinue is some crazy deep magic :p https://gist.github.com/1218095 [23:26] SubStack: now figuring out a way to associate both files with the same initial request [23:26] CoverSlide: it's webOS or gtfo [23:27] Daegalus: WP7, Win8, and Android. its what I program on. ALSO I use Mono for iOS and Mono fo Android, so I code purely in C#/XNA, then just make Mono versions for Android/iOS and release. Works really well [23:27] Daegalus: 1 code base [23:27] Daegalus: etc. [23:27] ronniebo_ has joined the channel [23:27] guy has joined the channel [23:28] Daegalus: and then I can port my WP7 app to Win8 with like 4 line changes [23:28] Nexxy: I tend to stay away from technologies named after communicable diseases [23:29] swaj has joined the channel [23:29] CoverSlide: as anti-M$ as i am, I actually like Mono [23:29] Daegalus: Eh, whatever floats your boat, I just like C# far more than Java. [23:29] bnoordhuis: Nexxy: i'm hearing a whoosh sound [23:29] Daegalus: My GF hates that, she is all Python/Ruby/Java [23:30] Nexxy: bnoordhuis, I'm sorry? [23:30] TheDahv: I got F# running on Linux once and I was like "woot, ok now what...." [23:30] Daegalus: though I love Python too [23:30] bnoordhuis: Nexxy: there's a joke that's going over my head [23:30] Nexxy: ohhh [23:30] Nexxy: bnoordhuis, Mono [23:30] Daegalus: I was going to write all my servers in Python, then I found the amazingness of Node.js and scrapped everything [23:30] davidbanham has joined the channel [23:31] bnoordhuis: oh hah, i was looking at android and ios [23:31] Nexxy: writing .Net was a surprisingly enjoyable experience for me but [23:31] isaacs: on typography and bullets: http://www.markboulton.co.uk/journal/comments/five-simple-steps-to-better-typography-part-2 [23:31] Nexxy: mono disgusted me to no end [23:31] Nexxy: and that was that [23:31] SubStack: I like ruby a little better than python but they are both just pretty ok [23:31] SubStack: but node is crazy awesome fun times [23:32] AvianFlu_: SubStack++ [23:32] v8bot_: AvianFlu_ has given a beer to SubStack. SubStack now has 6 beers. [23:32] Daegalus: oh I am loving Node, I have my GF almost convinced to switch too [23:32] AvianFlu_: I used to write a ton of python... I really just don't miss it. [23:32] Daegalus: she just needs a bit more rubbing the right way and she will be a Nodian too [23:32] SubStack: I like perl better than python and just about as much as ruby still [23:32] SubStack: I still write perl stuff sometimes [23:32] AvianFlu_: I'd way rather write perl than ruby [23:32] felixge: kriszyp: yt? [23:32] AvianFlu_: ACTION craz [23:33] bnoordhuis: me too, perl was my first scripting <3 [23:33] Daegalus: perl is ok [23:33] Gigablah has joined the channel [23:33] Daegalus: I wrote IRSSI scripts in it, and meh [23:33] SubStack: Daegalus: Can we put down that node saved your relationship on the website? [23:33] Nexxy: rofl [23:33] Daegalus: SubStack: Lol, SURE! even though my relationship was never in jeapordy sure. go for it [23:34] heavysixer has joined the channel [23:34] Daegalus: I mean IM a Windows/Linux guy, she is a Linux/OSX girl, but She convinced me to like OSX< and I just sold her on Windows 8. sooo we are both adaptable [23:35] DrMcKay: my next gf will have an gh account. [23:36] bnoordhuis: Daegalus: does she wear glasses? [23:36] swaj has joined the channel [23:36] swaj has joined the channel [23:36] bnoordhuis: in my experience all linux girls wear glasses [23:36] bnoordhuis: don't know why [23:36] Nexxy: I do not [23:36] bnoordhuis: but are you really a girl? [23:36] Daegalus: bnoordhuis: actually she does..... but i dont think its related to her OS choice [23:36] bnoordhuis: you know the irc adagio [23:37] Nexxy: oh, woops! [23:37] bronson: wtf bnoordhuis, who cares? [23:37] Dmitrijus: bnoordhuis: hmm, awesome, in my experience, there are no linux girls [23:37] DrMcKay: AvianFlu: Ruby itself isn't *that* bad, but still, node.js > Python > C > Ruby. put Perl somewhere in there. [23:38] Daegalus: for me its Node.js > C# > Python > Java > PHP (is this even considered a language? [23:38] devaholic: pretty accurate, but c doesnt really fit in there [23:38] Daegalus: actually scratch PHP, i hate it [23:38] swaj has joined the channel [23:38] swaj has joined the channel [23:38] AvianFlu: I'd probably rather write node > C > perl > other right now [23:38] bnoordhuis: i like hypercard bestest [23:38] bnoordhuis: point, click, drag control, done! [23:38] AvianFlu: I've really been liking bash lately, it's how I know I'm crazy [23:39] Nexxy: I miss hypercard [23:39] devaholic: node > shell [23:39] DrMcKay: devaholic: C can get pretty pleasant and objective with glib [23:39] devaholic: that is all [23:39] andrewfff has joined the channel [23:39] tjholowaychuk: AvianFlu bash is sweet [23:39] tjholowaychuk: https://gist.github.com/1207426 [23:39] tjholowaychuk: haha [23:39] addroid-brian has joined the channel [23:39] softdrink: ✓ OK » 16 honored (0.003s) mmmmm yummy. [23:39] devaholic: python and ruby are both cool i guess, though [23:39] tjholowaychuk: (making fun of cakefiles etc) [23:40] addroid-brian: you guys ever have npm freeze up during install? [23:40] Daegalus: nope [23:40] DrMcKay: cool thing for shell: https://github.com/tomas/skull [23:40] softdrink: Primitive.js: 59 loc, Primitive.spec.js: 140 loc [23:40] softdrink: heh [23:40] devaholic: drmckay: i just meant it doesnt fit in with a ranking of a bunch of scripting langs, but you might not have been meaning that, all good [23:41] artnez has joined the channel [23:41] addroid-brian: found this super helpful for anyone on Ubuntu http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/ [23:42] isaacs: addroid-brian: you using node master? [23:42] TheDahv: addroid-brian: is that supposed to be a monit replacement or something? I *literally* just asked this question in another channel. We found something similar last week [23:42] rchavik has joined the channel [23:42] rchavik has joined the channel [23:42] stash1 has joined the channel [23:42] addroid-brian: @isaacs, no.. very new to node [23:42] addroid-brian: just learned it in the past 72 hours [23:42] isaacs: addroid-brian: what os, what output from npm, what version of node? [23:43] isaacs: addroid-brian: `node -v` [23:43] addroid-brian: no output.. just hangs [23:43] isaacs: addroid-brian: node -v hangs? [23:43] addroid-brian: re-installing node.js on a fresh VPM now [23:43] addroid-brian: will try a new npm install [23:43] isaacs: addroid-brian: node -v [23:43] isaacs: run that ^ [23:43] jetienne has joined the channel [23:43] DrMcKay: btw, do you guys think that a bot monitoring GH pull requests for a project, checking out a pull-requested branch and running tests would be cool? [23:43] addroid-brian: curl http://npmjs.org/install.sh | sh [23:44] addroid-brian: is what i was using to isntall [23:44] addroid-brian: does the curl part [23:44] addroid-brian: then CPU jumps to 99% and freezes up.. i have to re-boot the instance [23:44] jmoyers has joined the channel [23:44] TheDahv: if you're on ubuntu, would "curl http://npmjs.org/install.sh | sudo sh" make a difference? [23:44] addroid-brian: @isaacs, cant do the node -v quite yet (mid-build right now) [23:44] maxogden: DrMcKay: seeing a node bot clone a github repo in an efficient way would be cool to see [23:45] addroid-brian: @TheDahv: read this note on the install tutorial "Note: Don’t use sudo for the above command. If you get a permission error you can refer to the http://github.com/isaacs/npm to troubleshoot. I ran this command and it worked for me:" [23:45] DrMcKay: maxogden: there is a Git implementation in JS [23:45] addroid-brian: http://www.giantflyingsaucer.com/blog/?p=1688 [23:45] maxogden: DrMcKay: that doesnt mean it can clone repos over http :) [23:45] addroid-brian: that's the method i'm isntalling with [23:45] DrMcKay: maxogden: I'm not sure if it can clone thing efficiently, though [23:46] maxogden: DrMcKay: libgit2 and gitteh are the furthest along but neither is complete [23:46] nuck: v8: parseInt('111111', 36') [23:46] v8bot_: nuck: SyntaxError: Unexpected token ILLEGAL [23:46] nuck: v8: parseInt('111111', 36) [23:46] v8bot_: nuck: 62193781 [23:46] mil_ has joined the channel [23:46] mil_: hello [23:46] DrMcKay: maxogden: https://github.com/danlucraft/git.js [23:46] addroid-brian: @isaacs: node -v returns "v0.5.7-pre" [23:46] DrMcKay: maxogden: it seems like it can clone [23:46] [[zz]] has joined the channel [23:46] addroid-brian: so i'm up to the latest i think [23:46] TheDahv: addroid-brian: Where did you see that? [23:46] mil_: any of you any good at using mongoose? [23:47] TheDahv: I read this: Note: You need to sudo the sh, not the curl. Fetching stuff from the internet typically doesn't require elevated permissions. Running it might. [23:47] TheDahv: But I haven't installed in a while [23:47] nuck: Can somebody explain to me why the fuck Model.save()'s callback isn't being called for me? [23:47] maxogden: DrMcKay: ooh cool [23:47] mil_: ? [23:47] nuck: (note: I'm using Mongoose) [23:47] TheDahv: mil_: I'm out of practice, but I did as well [23:47] mil_: you are doing it wrong [23:48] mil_: k i have what should be a fairly simple question [23:48] boaz: why should I not, or why should I use homebrew to manage my node.js [23:48] boaz: (on mac osx lion) [23:49] nuck: I have a better question: Why is Mongoose so shittily documented? [23:49] DrMcKay: maxogden: but generally, how does that idea sound? [23:49] maxogden: boaz: git clone joyent/node is sooooo easy, no need for homebro [23:49] addroid-brian: TheDahv: Still just hangs [23:49] mil_: how do you cancel a save from inside the middleware [23:49] DrMcKay: nuck: it isn't, Cradle is way worse [23:49] mil_: like [23:49] mil_: Schema.pre('save', function (next) { function () { // cancel save }) [23:49] boaz: but homebro helps me keep track of everything, maxogden [23:49] DrMcKay: mil_: don't call next [23:49] maxogden: DrMcKay: its be cool to hvae better node and git hooks. doing pull request tests would be neat if it posted it back to IRC or twitter or something [23:49] Nexxy: homebro, ilol'd [23:50] DrMcKay: DID SOMEONE SAY HOOKS? [23:50] mil_: wow that was easy thanks [23:50] DrMcKay: AvianFlu: SOMEONE SAID HOOKS. [23:50] nuck: DID SOMEBODY ORDER A HOOKER? [23:50] Nexxy: ... [23:50] TheDahv: addroid-brian: your first post about the ubuntu monitor thing reminded me of this http://howtonode.org/deploying-node-upstart-monit [23:50] AvianFlu: OMG HOOKS! [23:50] AvianFlu: they're taking over [23:50] AvianFlu: NO ONE EXPECTS THE HOOK.IO INQUISITION! [23:50] bronson: function exists(x) { return x != undefined && x != null } <-- is this expected behavior? [23:51] erasrhead has joined the channel [23:51] maxogden: ACTION points out that mongoose and its documentation are open source http://i.imgur.com/wX9c9.png [23:51] bronson: function exists(x) { return x != undefined } <-- or should it be this? (null exists) [23:51] nuck: Speaking of hooks, somebody make me a drop-in standalone post-recieve hook for gitolite which starts a node daemon. [23:51] devaholic: maxogden the docs need more lovin' [23:51] DrMcKay: AvianFlu: lol [23:51] devaholic: so many things you can do that arent there [23:51] nuck: maxogden » The docs are open-source? [23:51] skm has joined the channel [23:52] devaholic: the docs are on github [23:52] maxogden: https://github.com/LearnBoost/mongoose/blob/master/lib/document.js#L114 [23:52] maxogden: fork and add [23:52] DrMcKay: AvianFlu: anyway, hook.io hooks for git repo? [23:52] maxogden: thats how open source works :) [23:52] AvianFlu: DrMcKay: sounds like you should get on that XD [23:52] devaholic: i thought about it, maxogden [23:52] random123 has joined the channel [23:52] nuck: Somebody do that for me ;3 [23:53] nuck: I need to know whether the callback for Model.save is called when there *isn't* an error [23:53] addroid-brian: Can't figure this out stil.. :( http://minus.com/m5gvLt6s2 [23:53] nuck: If not, I need to know who to slaughter. [23:53] DrMcKay: AvianFlu: TODO.unshift('hook.io git') [23:53] devaholic: i was going to put together a little twitter example, with followers/following and other goodies and such [23:53] boaz: maxogden: any down side to using homebro other than the fact that compiling on my own is so easy iyho? [23:53] AvianFlu: DrMcKay, just set up a post-receive hook that sends valid JSON-RPC to hook.io-couch [23:53] Nexxy has left the channel [23:53] AvianFlu: make a POST or whatever [23:53] devaholic: nuck: iirc it does [23:53] nuck: AvianFlu » Make me a setup for forever [23:53] maxogden: boaz: not imho. git clone, git checkout -v0.x.x, ./configure, make, make install BAM [23:53] DrMcKay: AvianFlu: but it's impossible on github, I think [23:53] nuck: devaholic » Then I need to figure out why mine isn't :S [23:54] AvianFlu: nuck ...? huh? [23:54] nuck: AvianFlu » Make me a hook.io thing that will automatically restart my daemons [23:54] nuck: :P [23:54] devaholic: nuck: throw up a gist [23:54] DrMcKay: nuck: after a file change? I'm working on it [23:54] nuck: devaholic » Was just about to do that ;) [23:54] boaz: anyone in here use homebrew to manage their node.js? [23:54] nuck: DrMcKay » No, after git recieve on gitolite [23:55] Vennril has joined the channel [23:55] DrMcKay: nuck: but you need a non-bare repo anyway [23:56] DrMcKay: nuck: set up a non-bare repo and add a bare repo as a remote. write a post-receive that cds into non-bare repo and pulls from bare one. then restart your forever daemons from cli [23:57] dreamdust: You can write a node script to do it with fs.watchFile [23:57] dreamdust: :) [23:57] TheDahv: addroid-brian: did you make any progress? [23:57] DrMcKay: dreamdust: mikeal/request [23:57] maxogden: http://i.imgur.com/JdVtI.png [23:58] DrMcKay: this lib behave weird, though [23:58] DrMcKay: maxogden: lol [23:58] DrMcKay: I'm a good human being, I think I've never done that [23:58] nuck: devaholic » https://gist.github.com/222d4355885e62c80f1d [23:58] jmoyers: coolbeans [23:59] apoc has joined the channel [23:59] DrMcKay: no, I did [23:59] DrMcKay: with cradle [23:59] devaholic: oh you [23:59] stash1 has joined the channel [23:59] DrMcKay: but it's on my TODO list [23:59] jmoyers: i just found a bug in a macos api that causes the windowserver to crash, and then all applications to crash [23:59] jmoyers: totally OT, totally awful [23:59] jmoyers: cocoa is awesome [23:59] normanrichards_ has joined the channel