[00:00] Agos has joined the channel [00:02] danhak has joined the channel [00:03] SamWhited has joined the channel [00:04] mara has left the channel [00:04] Agos_ has joined the channel [00:05] al3xnull has joined the channel [00:07] RORgasm has joined the channel [00:11] drostie has joined the channel [00:12] skm has joined the channel [00:12] mikrosystheme has joined the channel [00:12] crescendo has joined the channel [00:12] crescendo has joined the channel [00:15] theycallmeswift has joined the channel [00:15] warz has joined the channel [00:15] warz has joined the channel [00:15] theycallmeswift: Anyone know a good way to test that a native function is being wrapped by my own function? [00:15] theycallmeswift: I tried stubbing it out with sinon, but it looks like its calling by reference and completely bypasses the stub [00:16] tiglionabbit has joined the channel [00:16] _rockbot_ has joined the channel [00:17] wereHamster: is it safe to delete keys from an object while iterating through it? [00:17] jamescarr has joined the channel [00:17] theycallmeswift: wereHamster: how are you iterating? [00:17] wereHamster: in coffee-script, something like delete object[k] for k,v of object [00:18] isaacs: wereHamster: can you say that in javascript? [00:18] isaacs: wereHamster: your example isn't parsing [00:18] [[zzz]] has joined the channel [00:18] wereHamster: for (k in object) { delete object[k] } [00:19] towski has joined the channel [00:19] demonii has joined the channel [00:20] demonii: is there any quick way of sharing php sessions, with node.js and socket.io? [00:22] idoru has joined the channel [00:22] jamescarr: demonii, kind of [00:22] Shaunzie: demonii: try npm search php session [00:22] demonii: thanks, would it also work for socket sessions? [00:23] nibblebot has joined the channel [00:23] mikeal has joined the channel [00:24] Shaunzie: demonii: that would be something for you to implement [00:24] isaacs: wereHamster: why do you need to do this? [00:24] isaacs: wereHamster: it'd be faster to do Object.keys(object).forEach(function (k) { delete object[k] }) [00:24] isaacs: wereHamster: or even better yet: object = Object.create(Object.getPrototypeOf(object)) or even just object = {} [00:25] wereHamster: isaacs: it's not actually just 'delete object[k]', but more code which does somtehing and then deletes the key [00:25] isaacs: wereHamster: anyway, yes, you may delete a property while iterating [00:26] demonii: Shaunzie, I serve my http data through apache, only my socket.io sessions are being handled by node.js [00:26] isaacs: it's not like a dynamic array or something [00:26] demonii: not sure if nodePhpSessions can handle only socket.io session data [00:26] isaacs: wereHamster: this, for example, is highly unsafe: x = getSomeArrayOfThings(); for (var i = 0, l = x.length; i < l; i ++) x.splice(i, 1) [00:26] wereHamster: isaacs: why is Object.keys().forEach() faster than a for loop? Does v8 optimize the function calls out of the former? [00:27] isaacs: wereHamster: function calls are cheaper than prototype lookups [00:27] isaacs: wereHamster: the savings comes from Object.keys vs for/in [00:27] wereHamster: isaacs: Object.keys() does not access the prototype? [00:27] isaacs: (note: haven't benched in a while, ymmv, but this is the general rule of thumb that's served me well) [00:27] isaacs: wereHamster: nope [00:27] isaacs: it's only enumerable own properties [00:27] wereHamster: isaacs: interesting. good to know [00:29] jimt has joined the channel [00:31] Juan77 has joined the channel [00:32] devongovett has joined the channel [00:33] StanlySoManly has joined the channel [00:34] jerrysv: anyone going to nodepdx? [00:35] plutoniix has joined the channel [00:35] crodas has joined the channel [00:35] [muttox] has joined the channel [00:35] ryan_stevens: jerrysv: haven't heard of it [00:35] ryan_stevens: link? [00:35] theycallmeswift: oregon is a little far from jersey unfortunately [00:36] mc: i should suggest that to my employers.. we're not terribly far [00:36] theycallmeswift: I am flying out SF for Node Summit tho [00:37] jerrysv: ryan_stevens: http://lanyrd.com/2012/nodepdx/ [00:37] jerrysv: it's free, and on a weekend [00:37] kraft_ has joined the channel [00:37] ryan_stevens: oh wow, that's nice [00:37] theycallmeswift: So anyone have any ideas on my stubbing issue from before? [00:37] ryan_stevens: the fact its on a weekend taht is [00:38] drostie: I can't believe I'm reading through OpenSSL's source code just to figure out what the hell the Node.js crypto module is returning. ;_; [00:38] zitchdog has joined the channel [00:39] maletor has joined the channel [00:39] Shaunzie: drostie: O.O [00:39] LuckySMack has joined the channel [00:39] demonii: i can't believe node.js has such poor documentation O_o [00:39] deedubs has joined the channel [00:40] Shaunzie: demonii: at least it has some… source is on github feel free to help the community :P [00:40] superlou has joined the channel [00:40] demonii: so, the user should document the product [00:40] pV: anyone know of a good everyauth tutorial? [00:40] demonii: interesting [00:41] Shaunzie: demonii: welcome to opensource project deal with it our gtfo :) [00:41] superlou: :) [00:41] Shaunzie: pv: the one on github is nice [00:41] superlou: well, i'm sure we all write self-documenting code anyway ;) [00:41] demonii: i'm pretty sure php, ruby, javascript, etc are well documented [00:41] demonii: but if that's the approach on things with node.js, i'd be happy to gtfo [00:41] drostie: demonii: well, usually the documentation is relatively good. The problem is that Node.js just says that it's a frontend to OpenSSL but doesn't say what part it's a frontend to. I did an encryption and got a 25-byte response from something which should be in 16-byte blocks, so the question is, "wtf are the other 9 bytes doing here?" [00:41] demonii has left the channel [00:42] pV: Shaunzie: I've been looking at it, but I can't seem to grasp it. It's too broad. [00:42] Shaunzie: demonii: I'm pretty sure that the php ruby community give back. not everyone looks for hand outs. [00:42] Shaunzie: pV: where are you stuck? [00:42] pV: I'm trying to setup openid authorization [00:43] pV: I have: https://gist.github.com/1586020 [00:43] pV: but where do I setup the login page? [00:43] Shaunzie: getLoginPath('/login') [00:44] pV: TypeError: Object # has no method 'getLoginPath' [00:44] Shaunzie: oops ya it's different for the openid module [00:44] Shaunzie: .entryPath('/auth/openid') [00:44] Shaunzie: .callbackPath('/auth/openid/callback') [00:45] Shaunzie: https://github.com/bnoguchi/everyauth/blob/master/lib/modules/openid.js [00:45] Shaunzie: you can find all the functions for the module htere [00:45] Shaunzie: er there [00:45] bodisiw has joined the channel [00:46] rgl has joined the channel [00:46] pV: thanks Shaunzie [00:47] __tosh has joined the channel [00:47] RobWC has joined the channel [00:48] Shaunzie: pV: np :) [00:50] ep0x has joined the channel [00:50] Cromulent has joined the channel [00:50] stalled has joined the channel [00:51] Poetro has joined the channel [00:53] jonbaer has joined the channel [00:57] ByteCrunch has left the channel [00:59] RobWC has joined the channel [01:00] ep0x: Hey guys, I got a newbishy question, I used the installer for my Mac [01:00] ep0x: cant get it to work [01:00] ep0x: when I type NODE Test.JS it says I might not have setup the path [01:00] ep0x: I cant seem to find instructions [01:01] TooTallNate: open Terminal [01:01] TooTallNate: type "node" [01:01] ep0x: just node ? [01:01] TooTallNate: that will bring you to the REPL [01:01] TooTallNate: if you have a file, test.js, then "node test.js" [01:01] ep0x: oh awesome! thanks! [01:01] TooTallNate: np [01:02] nickradford has joined the channel [01:02] bradleyg has joined the channel [01:02] drudge has joined the channel [01:02] McMAGIC--Copy has joined the channel [01:02] mike5w3c has joined the channel [01:03] skm has joined the channel [01:04] fermion has joined the channel [01:04] richardr_ has joined the channel [01:04] hdms has joined the channel [01:05] nickradford has joined the channel [01:05] merlin83 has joined the channel [01:06] dthompso99 has joined the channel [01:06] rio{ has joined the channel [01:06] dgathright_ has joined the channel [01:07] mikrosys1heme has joined the channel [01:07] benlyn has joined the channel [01:09] postwait has joined the channel [01:12] tmcw has joined the channel [01:12] zitchdog has joined the channel [01:16] rgl has joined the channel [01:16] CIA-101: node: 03Ben Noordhuis 07master * r97e4b3a 10/ (src/node_isolate.cc test/simple/test-isolates-ping-pong.js): isolates: drain message queue completely - http://git.io/kHus1w [01:19] trotter has joined the channel [01:20] lwille: bnoordhuis, thanks for the advice - but this is not exactly what I was looking for. The node-event-emitter example exports the Emitter prototype from a native extension and then lets it inherit the prototype methods of events.EventEmitter. That means, the resulting object can only be instantiated on the javascript side - I would like to create the instance on the C++ side, because until now my extension didn't need an extra javascript lay [01:21] monokrome has joined the channel [01:21] briandh has joined the channel [01:22] Internet13 has joined the channel [01:22] boogyman has joined the channel [01:22] boogyman has joined the channel [01:22] bnoordhuis: lwille: you cannot really do that anymore, EventEmitter is a 100% JS object now (and not a global) so there is no good way to instantiate it / inherit from [01:22] neoesque has joined the channel [01:23] cody-- has joined the channel [01:23] lwille: okay, so I could I pass in the EventEmitter prototype and use that to create instances of EventEmitter? [01:23] flat has joined the channel [01:23] mmyjona has joined the channel [01:24] bnoordhuis: lwille: yes [01:24] justin has joined the channel [01:25] lwille: bnoordhuis, could you point me to an extension where someone is already doing that? Or is there a more elegant way [01:27] bnoordhuis: lwille: i'm not aware of any [01:28] ambroff_ has joined the channel [01:28] lwille: I'll give it a try then ... thanks, bnoordhuis :) [01:29] ryanfitz has joined the channel [01:30] CIA-101: node: 03Fedor Indutny 07master * ra5f74b4 10/ (src/node_script.cc src/node_vars.h): added isolates support - http://git.io/GLGJbg [01:30] CIA-101: node: 03Fedor Indutny 07master * r44e7033 10/ (src/node.cc src/node_vars.h): fixed debugger segfaults - http://git.io/11velw [01:30] CIA-101: node: 03Fedor Indutny 07master * r99679c6 10/ (5 files in 2 dirs): IsolateDebugger C++ - http://git.io/pFnUzw [01:30] CIA-101: node: 03Fedor Indutny 07master * r6b2091b 10/ (lib/_debugger.js lib/child_process.js): debug threads - http://git.io/3W2b3Q [01:31] jomoho2 has joined the channel [01:32] sorensen__ has joined the channel [01:35] patcito has joined the channel [01:35] davidbanham has joined the channel [01:35] abraxas has joined the channel [01:38] lzskiss has joined the channel [01:39] MatthewS has joined the channel [01:42] yozgrahame has joined the channel [01:42] dmitrig01 has joined the channel [01:43] TN has joined the channel [01:43] justin has joined the channel [01:48] jaequery has joined the channel [01:49] davidban_ has joined the channel [01:49] pauls1 has joined the channel [01:50] jomoho has joined the channel [01:50] sharkbird has joined the channel [01:50] sharkbird_ has joined the channel [01:52] thirdknife has joined the channel [01:52] enmand has joined the channel [01:52] koo3 has joined the channel [01:52] ger^kallisti_ has joined the channel [01:56] mikeal has joined the channel [01:58] Aria has joined the channel [01:58] mandric has joined the channel [01:58] ditesh|cassini has joined the channel [01:59] sharkbird_ has joined the channel [01:59] sharkbird has joined the channel [01:59] amigojapan has joined the channel [01:59] sharkbird__ has joined the channel [01:59] wbednarski has joined the channel [01:59] robde_ has joined the channel [02:01] sharkbird has joined the channel [02:04] Shaunzie has joined the channel [02:04] rachet: /join reddit [02:04] rachet: oops [02:06] CoverSlide: you failed at IRC [02:09] neurodrone has joined the channel [02:10] ryanrolds: I love reddit! [02:11] tommyvyo has joined the channel [02:11] sharkbird has joined the channel [02:12] sreeix has joined the channel [02:12] icewhite has joined the channel [02:12] mmyjona has joined the channel [02:13] ovnicraft has joined the channel [02:14] jocafa has joined the channel [02:15] TooTallNate: tim_smart: you there? [02:15] mikeal has joined the channel [02:16] tim_smart: TooTallNate: I think so... [02:16] tim_smart: :) [02:16] TooTallNate: haha [02:16] TooTallNate: hey i wanted to ask you about node-gtk [02:16] TooTallNate: specifcally, how does the double event loop thing work? [02:16] tim_smart: TooTallNate: Sure. I think the direction node-gir is taking is probably better. [02:16] TooTallNate: oh ok [02:16] tim_smart: Oh right [02:17] TooTallNate: I may need to do something similar for NodObjC [02:17] TooTallNate: https://github.com/TooTallNate/NodObjC/issues/2 [02:17] tim_smart: Event loop stuff I asked the author of libev about [02:17] tim_smart: If would have changed now that libev is now libuv [02:18] TooTallNate: well probably doesn't really apply to NodObjC since it's only OS X which only uses libev [02:18] daiyechu has joined the channel [02:18] a_suenami has joined the channel [02:19] tim_smart: TooTallNate: Basically it ensures that the gtk event loop uses the libev event loop instead of its own [02:20] themiddleman has joined the channel [02:20] TooTallNate: tim_smart: how is that done? in obj-c there's just a NSRunLoop.run() method that blocks forever... [02:21] Prometheus has joined the channel [02:21] tjfontaine: there's not a loop_one or run_one? [02:21] MUILTR has joined the channel [02:22] TooTallNate: tjfontaine: closest would be runUntilDate() which I suppose could be some really short amount of time [02:22] TooTallNate: but that doesn't seem like it would work very well :\ [02:22] pig has joined the channel [02:22] pig has joined the channel [02:22] Emmanuel` has joined the channel [02:22] thirdknife has joined the channel [02:22] strevat_ has joined the channel [02:22] jasonkuhrt has joined the channel [02:23] joshkehn has joined the channel [02:23] SteveDekorte has joined the channel [02:24] jasonkuhrt has joined the channel [02:24] jbboehr has left the channel [02:24] willwhite has joined the channel [02:25] sh1mmer has joined the channel [02:27] pig has joined the channel [02:27] pig has joined the channel [02:29] tim_smart: TooTallNate: Can you access the file descriptors etc. for the NSRunLoop? [02:29] davidbanham has joined the channel [02:31] TooTallNate: tim_smart: not quite sure [02:31] TooTallNate: i don't really think so [02:31] TooTallNate: fd of the event loop itself? or of its sources? [02:32] pig has joined the channel [02:32] tim_smart: TooTallNate: Well usually the just poll on fd's [02:32] tim_smart: *they [02:32] c4milo has joined the channel [02:33] TooTallNate: they -> the event loop [02:33] blueadept: anyone here ever use http://www.ericmmartin.com/projects/simplemodal ? [02:33] drostie: Wow. so apparently when Node's crypto functions are used, all user input is fed into MD5 to generate the key. The stream MD5(key) + MD5(MD5(key) + key) + MD5(MD5(MD5(key) + key) + key) + ... is broken up into the actual bytes needed for the key and the actual bytes needed for the IV. [02:33] tim_smart: I'm probably not the best person to talk to about this sort of stuff, the glib -> ev integration was already done for me by schmorp [02:34] TooTallNate: ok well thanks anyways, maybe I can talk to other tim [02:35] TooTallNate: not online right now though [02:35] djbell has joined the channel [02:35] tjfontaine: TooTallNate: you might also want to look into how monotouch integrates it [02:35] benlyn has joined the channel [02:36] sridatta has joined the channel [02:36] tjfontaine: TooTallNate: but increasingly it seems like CFRunLoopRunInMode is the unfortunate way forward [02:37] dmitrig01 has joined the channel [02:37] MatthewS has joined the channel [02:37] koo3 has joined the channel [02:37] tcurdt has joined the channel [02:38] TooTallNate: tjfontaine: i should have thought of this sooner! [02:38] TooTallNate: http://www.71squared.com/2009/04/maingameloop-changes/ [02:38] nathanwallace has joined the channel [02:38] TooTallNate: like, all these games have their own game loops probably [02:38] tjfontaine: more than likely [02:38] TooTallNate: so how do they integrate touch events? etc.? [02:38] Flushot has joined the channel [02:39] TooTallNate: well, probably >1 thread in a lot of cases [02:39] Shaunzie: I'm really starting to like coffee script… [02:39] TooTallNate: but in any case, that blog article looks like it has a nice hack for running the cfrunloop [02:40] tjfontaine: looks like it's using the timer interface [02:40] TooTallNate: which could be done in a indefinite nextTick calls [02:40] tjfontaine: indeed [02:41] tjfontaine: you'll probably want the timeout to potentially be configurable, incase people start seeing dropped or stalled events [02:41] TooTallNate: true [02:42] TooTallNate: pretty hacky, but at least it may be possible to get the two loops working together like that [02:42] TooTallNate: at least until a libuv backend written in ObjC is written :p [02:42] TooTallNate: ACTION dreams... [02:42] tjfontaine: hah [02:43] tjfontaine: it's a shame that CF* doesn't have a poll/one_loop interface [02:43] madhums has joined the channel [02:43] scott_gonzalez has joined the channel [02:43] tjfontaine: in that case it would have been trivial [02:44] Aria: TooTallNate: It looks like it wouldn't be too hard to get something into libuv to add a "run_one" function. [02:44] Aria: ub_run is so trivial, and I bet it's not too hard to do on the windows side (though I've not looked) [02:45] TooTallNate: Aria: interesting thought [02:45] tjfontaine: TooTallNate: unless you're license averse there are some excellent clues here http://opensource.apple.com/source/CF/CF-476.14/CFRunLoop.c [02:45] tjfontaine: TooTallNate: search for zero-timeout [02:46] tjfontaine: TooTallNate: makes it feel like if you have a very low resolution you'll get an "extra" loop [02:46] kazupon has joined the channel [02:46] bnoordhuis: uv_run_once() already exists [02:46] bnoordhuis: in libuv's master that is [02:46] TooTallNate: bnoordhuis: not in node 0.6.x? [02:47] bnoordhuis: TooTallNate: no [02:47] TooTallNate: ok so I could potentially use that and be > 0.6.x [02:48] TooTallNate: but so how would that work? just continually call that in CFRunLoop's equivalent of a nextTick? [02:48] tjfontaine: uv_run_once would be CFRunLoop driving node, right? [02:48] tjfontaine: setup a loop on the cf side, and inside it each time it loops you call uv_run_once [02:49] al3xnull has joined the channel [02:49] TooTallNate: that would be nice, cause then you could use whatever ObjC API you want to start the event loop [02:49] TooTallNate: and not some NodObjC-specific API [02:50] tjfontaine: TooTallNate: but it means diverging node itself [02:50] TooTallNate: how so? [02:50] TooTallNate: as long as the original node API's and modules work, that's what I'm looking for [02:51] TooTallNate: cause currently, when a CFRunLoop is running, it's blocking node, and JS, and no async node APIs work [02:51] chrisvwebdev has joined the channel [02:51] enmand has joined the channel [02:51] blaenk has joined the channel [02:51] blaenk has joined the channel [02:52] jomoho has joined the channel [02:52] tjfontaine: node starts its event loop, you start a cfrunloop, and then inside your cfrunloop you uv_run_once, is that your plan? [02:52] TooTallNate: i think so [02:52] TooTallNate: would that work? [02:52] ovaillancourt has joined the channel [02:53] isaacs has joined the channel [02:53] tjfontaine: possibily, I think it would render interesting results, generally I would say you wouldn't want node to start its first event loop, and that it shoudl be your cfrunloop that is responsible for handling the uv_run_once [02:54] TooTallNate: well actually, as long as your NodObjC script starts the cfrunloop in the first tick, the node's event loop is not yet running [02:54] tjfontaine: TooTallNate: I'll be interested to hear the results in any event [02:54] idefine_ has joined the channel [02:54] tjfontaine: TooTallNate: I don't know the node event loop well enough, but I would guess that a require() sure as hell starts the loop since it requires io [02:55] TooTallNate: also, it would be nice to be able to dynamically get at the ev_run function, maybe using libffi [02:55] TooTallNate: tjfontaine: not so, it's sync io, so not event loop needed [02:55] TooTallNate: not til after the first tick doest the event loop begin [02:55] tjfontaine: TooTallNate: like I said, I'll be interested to hear the results :) [02:55] saikat has joined the channel [02:55] tjfontaine: I hope I was of some service [02:56] TooTallNate: definitely, thank tjfontaine [02:56] TooTallNate: *thanks [02:56] tjfontaine: no problem [02:57] TooTallNate: omg! i can access the ev_run pointer through node-ffi! [02:57] wilmoore has joined the channel [02:57] TooTallNate: this might fucking happen! [03:02] meso has joined the channel [03:03] Vennril2 has joined the channel [03:05] yhahn has joined the channel [03:05] madhums has joined the channel [03:07] icewhite has joined the channel [03:10] aGHz has joined the channel [03:13] maletor has joined the channel [03:13] theycallmeswift has joined the channel [03:15] subbyyy has joined the channel [03:16] josh-k has joined the channel [03:17] zeade has joined the channel [03:17] tkaemming has joined the channel [03:17] davidbanham has joined the channel [03:18] MatthewS has joined the channel [03:20] mmyjona has joined the channel [03:22] josephmoniz has left the channel [03:24] Treffynnon has joined the channel [03:24] mike5w3c has joined the channel [03:27] socketio\test\61 has joined the channel [03:28] spleeze has joined the channel [03:30] devongovett has joined the channel [03:31] hostsamurai has joined the channel [03:32] deeprogram has joined the channel [03:34] drostie has joined the channel [03:34] zitchdog has joined the channel [03:36] koo3 has joined the channel [03:36] madhums has joined the channel [03:38] jakehow has joined the channel [03:38] robde_ has joined the channel [03:39] dodo has joined the channel [03:39] pluc has joined the channel [03:40] torm3nt has joined the channel [03:42] boogyman has joined the channel [03:43] mandric has joined the channel [03:43] context: anyone here into car stereos ? [03:43] context: I'm looking at the JVC KW-AVX840 and the Pioneer AVH-P4300DVD head units. recommendations? [03:44] chrishatton has joined the channel [03:46] koo3 has joined the channel [03:47] githogori has joined the channel [03:48] khrome has joined the channel [03:48] kazupon has joined the channel [03:50] spathi has joined the channel [03:50] monteslu_ has joined the channel [03:51] thirdknife has joined the channel [03:51] zemanel_ has joined the channel [03:51] madhums has joined the channel [03:52] olliey has joined the channel [03:52] saberman_2 has joined the channel [03:52] musiclover_ has joined the channel [03:53] musiclover_: hi everyone, i have a node app i'm working on that uses express, knox, mongoose, etc. what are some tools or libraries that people use for testing their node applications? [03:53] jeffk has joined the channel [03:53] Shaunzie: musiclover_: mocha, should, express [03:54] dshaw_ has joined the channel [03:54] Shaunzie: https://github.com/joyent/node/wiki/modules#wiki-testing [03:55] jtsnow has joined the channel [03:57] musiclover_: Shaunzie: wow, that's quite extensive. any popular players? any tutorials out there? [03:57] chrishatton has joined the channel [03:57] Shaunzie: musiclover_: the ones I listed previously are pretty popular. then again there's also just the built in assert module: assert = require('assert') [03:58] CarterL has joined the channel [03:58] Shaunzie: musiclover_: I personally like mocha, but only cause I'm a whore for colors and it has pretty check marks and x's [03:58] jgornick has joined the channel [03:58] musiclover_: Shaunzie: i like colors too! [03:59] Shaunzie: nothing more rewarding that seeing ✔ # tests complete [03:59] madhums has joined the channel [03:59] Shaunzie: http://visionmedia.github.com/mocha/ [03:59] musiclover_: Shaunzie: so is it like unit testing, or testing my express routes? [03:59] skm has joined the channel [04:00] blueadept has joined the channel [04:00] blueadept has joined the channel [04:00] caludio has joined the channel [04:00] skm has joined the channel [04:01] saberman_2 has joined the channel [04:01] Vennril has joined the channel [04:01] kenperkins has joined the channel [04:03] Shaunzie: musiclover_: It's just a unit testing framework. [04:04] Shaunzie: musiclover_: routes are a little difficult to test for express [04:04] ditesh|cassini has joined the channel [04:04] musiclover_: how about something like nock? [04:04] Shaunzie: musiclover_: You can use support/http.js included with express test routes. [04:05] sarlalian has joined the channel [04:05] Shaunzie: musiclover_: never used nock but it looks cool [04:05] RobWC has joined the channel [04:06] disappea_ has joined the channel [04:06] kickingvegas has left the channel [04:07] TimTim has joined the channel [04:08] themiddleman has joined the channel [04:09] jtsnow has joined the channel [04:11] amasad has joined the channel [04:11] materialdesigner has joined the channel [04:13] sarlalian has joined the channel [04:14] thepatr1ck has joined the channel [04:16] lwille has joined the channel [04:19] madhums has joined the channel [04:19] sh1mmer has joined the channel [04:20] zaxx has joined the channel [04:21] tuhoojabotti: How to check if arrays are equal [04:21] tuhoojabotti: like assert.deepEqual [04:21] tuhoojabotti: but it just throws, I want it to return true/false [04:21] enmand has joined the channel [04:24] Shaunzie: tuhoojabotti: you would need to write a function to compare the two arrays manually. [04:24] tuhoojabotti: I did, but it's not working. :D [04:24] tuhoojabotti: I guess, I'll try again. [04:24] Shaunzie: tuhoojabotti: or you can use one of the array helper functions in underscorejs [04:24] kazupon has joined the channel [04:24] Shaunzie: http://documentcloud.github.com/underscore/#difference [04:26] shanebo has joined the channel [04:27] digilink has joined the channel [04:27] chrishat_ has joined the channel [04:29] tuhoojabotti: Shaunzie: this.buf.details[0].msg === this.last.details[0].msg && this.buf.details[1].msg === this.last.details[1].msg) { // problems? [04:29] clarkfischer: Hrm….for a test suite, any way to spin up an express server, then shut it down afterwards? Something along the lines of `node app.js & make test && kill %1`? [04:30] tuhoojabotti: :D [04:31] Shaunzie: tuhoojabotti: mm kinda missing some stuff there. might want to gist it. what's the error that you're getting? [04:31] tuhoojabotti: Shaunzie: It works fine :D [04:31] Shaunzie: tuhoojabotti: oh. confuzzled ._. [04:31] tuhoojabotti: Shaunzie: that's way better than some helper functions! [04:32] sdwrage has joined the channel [04:33] JdpB42 has joined the channel [04:33] sridatta has joined the channel [04:35] TimTim has joined the channel [04:37] willwhite has joined the channel [04:38] mikeal has joined the channel [04:39] Shaunzie: tuhoojabotti: you might be able to do array1.toString() === array2.toString() [04:39] tuhoojabotti: Shaunzie: Doesn't it convert objects to [Object object]? [04:40] Shaunzie: tuhoojabotti: yah [04:40] tuhoojabotti: That would be bad [04:40] tuhoojabotti: Shaunzie: util.inspect perhaps [04:40] tuhoojabotti: But that works too. :P [04:40] Hotroot has joined the channel [04:41] Hotroot: Anyone on who's interested in browser based MTG? [04:41] Shaunzie: Hotroot: was a MTG? O.o [04:42] sebastianedwards has joined the channel [04:42] Hotroot: Magic the Gathering [04:42] maletor_ has joined the channel [04:42] Hotroot: Going to start work on it soon. No rule enforcement, it would be just like playing it in person [04:43] chrisdickinson: .. Array.prototype.equal = function(rhs) { var lhs = this; return lhs.map(function(x, idx) { return x === rhs[idx] }).reduce(function(lhs, rhs) { return lhs && rhs }, true) }; [1,2,3].equal([2,3,4]) [04:43] catb0t: false [04:48] RobWC has joined the channel [04:48] sreeix has joined the channel [04:49] OmidRaha has joined the channel [04:50] ryan_stevens has joined the channel [04:51] gavin_huang has joined the channel [04:56] broofa has joined the channel [04:56] tuhoojabotti: .. [1,2,3].equal([1,2,3]) [04:56] catb0t: true [04:57] tuhoojabotti: .. [1,{lol:true},3].equal([1,{lol:true},3]) [04:57] catb0t: false [04:57] tuhoojabotti: chrisdickinson: Yeah, it doesn't work with objects either [04:57] tuhoojabotti: obviously [04:59] kitt has joined the channel [04:59] kitt has joined the channel [04:59] chrisdickinson: tuhoojabotti: true. are you just comparing keys? [04:59] tuhoojabotti: atm yes. :P [04:59] tuhoojabotti: It's a special case anyways. [04:59] mikeal has joined the channel [04:59] Shaunzie: tuhoojabotti: probably a good idea not to have a function to deep nested array comparisons [05:01] zivester has joined the channel [05:02] tuhoojabotti: details: [{name: 'Request', msg: JSON.stringify(req, null, ' ')},{name: 'Parameters', msg: JSON.stringify(params, null, ' ')}] [05:02] tuhoojabotti: That's what I'm comparing :P [05:02] chrisdickinson: .. Array.prototype.keyEqual = function(rhs, k, lol) { return this.map(lol = function(x) { return x[k] }).equal(rhs.map(lol)) }; [{lol:"asdf"}, {lol:"asdf"}].keyEqual([{lol:"asdf", lol:"asdf"}], 'lol') [05:02] catb0t: false [05:02] chrisdickinson: aw. [05:03] capnregex has joined the channel [05:05] tuhoojabotti: Time for school :/ [05:06] rurufufuss has joined the channel [05:07] anderson has joined the channel [05:08] Flushot has joined the channel [05:09] zilch_ has joined the channel [05:12] dexter_e has joined the channel [05:12] RLa has joined the channel [05:13] HT has joined the channel [05:15] capnregex has left the channel [05:18] RobWC has joined the channel [05:19] chris_d has joined the channel [05:21] marcello3d has joined the channel [05:21] koo3 has joined the channel [05:21] cdownard_ has joined the channel [05:22] birdwindupbird has joined the channel [05:23] criswell has joined the channel [05:24] sh1mmer has joined the channel [05:26] captain_morgan has joined the channel [05:28] Shaunzie has joined the channel [05:28] tonymilne has joined the channel [05:29] stonebranch has joined the channel [05:32] jxie has joined the channel [05:37] nicholasf has joined the channel [05:37] brianloveswords has joined the channel [05:37] rio{ has joined the channel [05:37] RobWC has joined the channel [05:42] blueadept has joined the channel [05:44] lukev has joined the channel [05:45] blaenk has joined the channel [05:45] blaenk has joined the channel [05:47] kenperkins has joined the channel [05:48] mikeal has joined the channel [05:48] c4milo has joined the channel [05:50] gavin_hu_ has joined the channel [05:51] yozgrahame has joined the channel [05:51] brianloveswords has joined the channel [05:51] mjr_ has joined the channel [05:54] deeprogram has joined the channel [05:58] chrishatton has joined the channel [05:59] neoesque has joined the channel [06:00] mike5w3c has joined the channel [06:01] drostie: Okay, after digging through the OpenSSL code and understanding the Node.js crypto implementation I figured out that my problems had very little to do with either. :x [06:01] cognominal has joined the channel [06:03] briandh has joined the channel [06:04] drostie: It was entirely because new Buffer(x).toString('binary') !== x in general, because crypto uses 'binary' encoding but Buffers by default use 'utf8' encoding. Or summat. [06:06] markq has joined the channel [06:07] idoru has joined the channel [06:08] joshgillies has joined the channel [06:09] herbySk has joined the channel [06:12] marcello3d has joined the channel [06:13] jxson has joined the channel [06:14] cdownard_: I thought buffers were binary data. The TLS streams have to either have the encoding flag set or invoke .toString() to decode from binary. [06:14] tuhoojabotti: Can I add .toString to object's prototype and then ''+obj? [06:15] Lingerance: Buffers are binary data, a string isn't. [06:15] cdownard_: oh, my mistake. i see what's being said now. was reading that wrong. [06:17] tuhoojabotti: works [06:18] Lingerance: ACTION fails to see how that'd be useful [06:21] hij1nx has joined the channel [06:22] mattgifford has joined the channel [06:23] rauchg has joined the channel [06:24] al3xnull has joined the channel [06:25] davidbanham has joined the channel [06:26] garrensmith has joined the channel [06:27] robde_ has joined the channel [06:29] jxson has joined the channel [06:30] kenperkins has joined the channel [06:31] level09 has joined the channel [06:33] slaskis has joined the channel [06:33] Drakonite has joined the channel [06:37] EriksLV has joined the channel [06:37] Shaunzie has joined the channel [06:38] pizthewiz has joined the channel [06:40] nerdfiles has joined the channel [06:41] nerdfiles has left the channel [06:42] secoif: Anyone having issues with npm + github tarballs? [06:42] niloy has joined the channel [06:42] secoif: npm ERR! couldn't unpack /var/folders… [06:43] justmoon has joined the channel [06:44] maletor has joined the channel [06:45] tuhoojabotti: secoif: Yesterday someone had problems with Heroku and tars [06:45] secoif: hm [06:45] markq: ghost town in here [06:46] mjr_: I know. [06:46] mjr_: Actual ghosts inhabit this town. [06:47] secoif: if someone could do me a favour and add "Faker": "https://github.com/secoif/Faker.js/zipball/master", to their package.json, then try an npm install? [06:47] secoif: I want to know if it's just me [06:47] markq: or just npm install faker right [06:47] jjd has joined the channel [06:47] markq: ? [06:48] yawNO has joined the channel [06:48] tbranyen: its u works mine for me [06:48] markq: works [06:48] yawNO: hi world [06:48] tbranyen: hello baby [06:48] yawNO: :O [06:48] yawNO: sup? [06:48] markq: where's my precious [06:49] secoif: markq not just npm install faker, that will install the normal npm version, I want to install my fork. [06:49] markq: ah ok [06:49] markq: let me try then [06:49] secoif: installing via zipball seems to be the actual issue [06:49] secoif: sweet, thanks [06:49] markq: i wasn't aware that it installed differently [06:49] markq: interesting [06:50] chrishatton has joined the channel [06:51] markq: works [06:51] markq: npm http GET https://registry.npmjs.org/Faker [06:51] markq: npm http 200 https://registry.npmjs.org/Faker [06:51] markq: npm http GET https://registry.npmjs.org/Faker/-/Faker-0.1.3.tgz [06:51] markq: npm http 200 https://registry.npmjs.org/Faker/-/Faker-0.1.3.tgz [06:51] markq: Faker@0.1.3 ./node_modules/Faker [06:52] blueadept has joined the channel [06:52] hij1nx has joined the channel [06:52] secoif: markq that's not my fork [06:53] secoif: markq try npm install https://github.com/secoif/Faker.js/zipball/master [06:53] markq: npm http GET https://github.com/secoif/Faker.js/zipball/master [06:53] markq: npm http 200 https://github.com/secoif/Faker.js/zipball/master [06:53] markq: npm ERR! couldn't unpack /tmp/npm-1326178426945/1326178426945-0.836156997596845/tmp.tgz to /tmp/npm-1326178426945/1326178426945-0.836156997596845 [06:53] markq: npm ERR! Error: ENOENT, no such file or directory '/tmp/npm-1326178426945/1326178426945-0.836156997596845/package/package.json' [06:53] markq: npm ERR! Report this *entire* log at: [06:53] markq: npm ERR! [06:53] markq: npm ERR! or email it to: [06:53] markq: npm ERR! [06:53] markq: npm ERR! [06:53] markq: npm ERR! System Linux 2.6.38-8-virtual [06:53] markq: npm ERR! command "node" "/usr/local/bin/npm" "install" "https://github.com/secoif/Faker.js/zipball/master" [06:53] markq: npm ERR! cwd /faker [06:53] markq: npm ERR! node -v v0.6.7 [06:53] markq: npm ERR! npm -v 1.1.0-beta-10 [06:53] tuhoojabotti: asd [06:53] secoif: that's the one [06:54] secoif: awesome [06:54] dilvie has joined the channel [06:54] secoif: markq thanks [06:54] martin_sunset has joined the channel [06:54] markq: sorry for the spam @all [06:54] markq: np [06:54] pV: eugh, please don't spam the chat [06:54] pV: np [06:54] tuhoojabotti: :D [06:54] markq: wait so what's the problem with your package [06:54] markq: secoif ^ [06:54] p1d has joined the channel [06:55] niloy: how long does nodejs take to build on a decent home computer? [06:55] markq: max of 1-2 mins [06:55] niloy: how long will it take on arm 600Mhz ? any estimate? [06:55] secoif: markq apparently it's any zipball url, I just tried npm install https://github.com/Marak/Faker.js/zipball/master, same issue [06:56] tuhoojabotti: niloy: Long enough. [06:56] secoif: I have a feeling it's something github changed regarding their archiving format, or something [06:56] markq: niloy: it'll take a while [06:56] Dmitrijus: niloy: just run it :) [06:56] replore has joined the channel [06:56] replore_ has joined the channel [06:57] niloy: okay ^_^ [06:57] markq: secoif: just curious but how would i npm install a fork of a package without adding the entire url [06:57] markq: is there a shorter way? [06:57] markq: like for Faker for example [06:57] chrishatton has joined the channel [06:57] secoif: I don't believe so, you either use the npm repo or a url to an archive [06:58] markq: oh [06:58] markq: i see [06:58] secoif: markq you used to be able to do it with `npm install https://github.com/*/*/zipball/master` [06:58] secoif: markq but it has gotten borked sometime recently [06:59] markq: sucks :( [07:01] Locke23rus has joined the channel [07:02] dyakovlev has joined the channel [07:06] davetayls has joined the channel [07:07] Hanspolo has joined the channel [07:08] `3rdEden has joined the channel [07:10] booo has joined the channel [07:10] triptec has joined the channel [07:11] tahu has joined the channel [07:12] braoru has joined the channel [07:12] luke` has joined the channel [07:12] braoru has joined the channel [07:13] mikeal has joined the channel [07:13] maletor has joined the channel [07:14] Morkel has joined the channel [07:17] Hotroot has joined the channel [07:18] tdegrunt has joined the channel [07:19] rgl has joined the channel [07:21] luke`_ has joined the channel [07:22] SamuraiJack has joined the channel [07:23] luke`__ has joined the channel [07:23] yawNO has joined the channel [07:26] Wizek has joined the channel [07:27] nickradford has joined the channel [07:28] kuebk has joined the channel [07:28] jbpros has joined the channel [07:29] tomtomaso has joined the channel [07:31] harthur has joined the channel [07:31] niloy has joined the channel [07:32] hij1nx has joined the channel [07:32] spolu has joined the channel [07:33] curtischambers has joined the channel [07:34] koo3 has joined the channel [07:38] mange_ has joined the channel [07:39] erikzaadi has joined the channel [07:42] chrishatton has joined the channel [07:44] kuebk1 has joined the channel [07:44] mmyjona has joined the channel [07:46] Margle has joined the channel [07:47] rendar has joined the channel [07:48] groom has joined the channel [07:48] erikzaadi has joined the channel [07:50] niloy has joined the channel [07:52] kuebk has joined the channel [07:54] salva has joined the channel [07:54] robotmay has joined the channel [07:55] ccare has joined the channel [07:55] jstonne has joined the channel [07:56] snearch has joined the channel [08:00] shinuza has joined the channel [08:02] hipsters_ has joined the channel [08:02] kickingvegas has joined the channel [08:05] tdegrunt has joined the channel [08:06] fangel has joined the channel [08:08] Hanspolo has joined the channel [08:11] olivier has joined the channel [08:11] Neil has joined the channel [08:12] rgl has joined the channel [08:13] yawNO has joined the channel [08:14] secoif has joined the channel [08:14] secoif has joined the channel [08:15] secoif has joined the channel [08:15] secoif has joined the channel [08:16] secoif has joined the channel [08:16] davetayls has joined the channel [08:17] secoif has joined the channel [08:17] secoif has joined the channel [08:18] djcoin has joined the channel [08:18] secoif has joined the channel [08:18] ablomen has joined the channel [08:19] secoif has joined the channel [08:19] secoif has joined the channel [08:20] secoif has joined the channel [08:20] secoif has joined the channel [08:21] sproates has joined the channel [08:21] secoif has joined the channel [08:21] richardr has joined the channel [08:22] secoif has joined the channel [08:22] niloy has joined the channel [08:22] secoif has joined the channel [08:23] secoif has joined the channel [08:23] secoif has joined the channel [08:23] sdwrage has joined the channel [08:24] secoif has joined the channel [08:24] markq: someone speak! it's a ghost town :/ [08:25] secoif has joined the channel [08:25] secoif has joined the channel [08:26] secoif has joined the channel [08:26] kodisha has joined the channel [08:26] secoif has joined the channel [08:27] secoif has joined the channel [08:27] msch: hi, how do I turn a SlowBuffer in a Buffer in node's C++ API? [08:29] cognominal has joined the channel [08:31] [AD]Turbo has joined the channel [08:31] caffine has joined the channel [08:33] shinuza has joined the channel [08:36] jbpros has joined the channel [08:37] joshgillies has joined the channel [08:39] tim_smart: msch: Why would you want to convert it? Once it is created, conversion would just add overhead. [08:39] davetayls has joined the channel [08:39] msch: tim_smart: ah, so the end user API is exactly the same? [08:39] sdwrage has left the channel [08:40] martin_sunset: Has anyone written excel parser in node yet? [08:40] tim_smart: msch: I'm pretty sure it is. You will have to double check on that however. [08:40] msch: tim_smart: ok, thanks! [08:41] whitman has joined the channel [08:43] tim_smart: martin_sunset: Checked http://search.npmjs.org/ ? [08:43] adambeynon has joined the channel [08:43] herbySk has joined the channel [08:44] martin_sunset: tim_smart: Yeah, empty... [08:44] sveimac has joined the channel [08:44] lperrin has joined the channel [08:45] cesconix has joined the channel [08:46] voidvector has joined the channel [08:47] astropirate: martin_sunset, excell as in MS Excell? [08:47] astropirate: you can export as CSV from excell i believe which makes it so much easier to parse [08:48] kickingvegas has left the channel [08:48] martin_sunset: astropirate: Yes. But I am not interested in exporting but having a calculation engine. E.g, something that knows how to parse excel formulas [08:48] astropirate: ahh [08:48] astropirate: nvm then [08:49] [AD]Turbo: hi there [08:49] slaskis has joined the channel [08:49] astropirate: Greetings [08:50] bergie has joined the channel [08:50] ppcano has joined the channel [08:55] booyaa: halo [08:55] raincole_ has joined the channel [08:55] booyaa: martin_sunset: oh dear we having to write more software? :) [08:56] Druide_ has joined the channel [08:56] booyaa: martin_sunset: last week it was json web service discovery [08:56] aaronmcadam has joined the channel [08:56] cosmincx has joined the channel [08:56] martin_sunset: booyaa: hello there. No, here I was just curious [08:56] booyaa: martin_sunset: does google docs have an api? [08:57] booyaa: it's been a while since i tried using excel in docs so formulas might not work anyways [08:57] booyaa: least you didn't say vba :) [08:57] martin_sunset: booyaa: Probably. Anyways, I was just wondering. Argh, vba, now that was a pita [08:57] mikedeboer has joined the channel [08:58] booyaa: trudate, i understand why people used it. but in this day and age when we have wolfram and r. kinda seems too much effort [08:58] booyaa: lots of s/w companies still write excel add-ins for the financial sect [08:59] martin_sunset: booyaa: Yeah, excel is not going away... And people understand the syntax [08:59] koo3 has joined the channel [08:59] booyaa: some of us know the formula from lotus daze :D [09:00] voidvector: it's a lot cheaper to teach non-technical people excel, than to hire technical people. and its near impossible to train non-tech to be technical [09:00] martin_sunset: booyaa: Some kids here were not born when lotus came up. And yeah, even my mom is good at excel [09:00] booyaa: heh [09:00] chrisvwebdev has joined the channel [09:01] michaelhartau has joined the channel [09:02] secoif has joined the channel [09:02] martin_sunset: booyaa: What I am looking for though is a mongodb analytics storage engine, just the backend. Someone on this list was working on one, but I forgot the name [09:02] salva has joined the channel [09:02] secoif has joined the channel [09:03] booyaa: yeah i remember you asking for this a while back [09:03] booyaa: still no joy then? :( [09:03] secoif has joined the channel [09:03] voodootikigod_ has joined the channel [09:03] braoru has joined the channel [09:04] robhawkes has joined the channel [09:04] martin_sunset: Na, did not even think about it. My strategy with this stuff is to wait it out till someone comes up with it [09:04] secoif has joined the channel [09:04] secoif has joined the channel [09:05] secoif has joined the channel [09:05] booyaa: you'd have thought the mongodb providers would have written software to do this. i mean how else acn you charge for usage? [09:05] booo has joined the channel [09:05] secoif has joined the channel [09:06] aliem has joined the channel [09:06] erichocean has joined the channel [09:06] martin_sunset: Yeah, but no one is open sourcing this for obvious reasons. [09:06] jldbasa has joined the channel [09:06] booyaa: that's a bit more [09:06] booyaa: poor [09:06] martin_sunset: It's not hard, but it takes time [09:06] secoif has joined the channel [09:06] booyaa: oh martin_sunset you london based? seem to think you were in the uk [09:06] pors has joined the channel [09:06] erichocean: Hi. I'm having trouble using require() with a path, e.g. require('npm_module/directory_with_package_json') [09:06] shinuza has joined the channel [09:07] Leemp2 has joined the channel [09:07] secoif has joined the channel [09:07] martin_sunset: No, I am in Austria, just switched visa, heading back stateside in a couple of weeks [09:07] booyaa: have you tried require('./npm_module/directory_with_package_json') [09:07] booyaa: martin_sunset: ah off to do some pitching? ;) [09:07] secoif has joined the channel [09:07] booyaa: erichocean: ^^ [09:07] erichocean: boyes [09:08] erichocean: oops, booyaa yes, I have [09:08] erichocean: it can't find the module then (it's linked with npm link) [09:08] booyaa: no joy... mmmm [09:08] secoif has joined the channel [09:08] booyaa: which module? [09:08] erichocean: my own [09:08] martin_sunset: Pitching, living,... Changed from investor visa to immigration visa. [09:08] erichocean: is "foo/bar" a valid module name? [09:08] Flushot has joined the channel [09:08] secoif has joined the channel [09:09] erichocean: I guess I'm assuming that npm will find the 'foo' module, then load the 'bar/package.json' and require the main: file [09:09] jimt has joined the channel [09:09] hipsters_ has joined the channel [09:09] secoif has joined the channel [09:09] erichocean: but obviously that's not happenning [09:09] booyaa: martin_sunset: oh cool! [09:10] secoif has joined the channel [09:10] erichocean: I've tried placing 'bar' in both the node_modules within foo, and in foo's top level directory [09:10] secoif has joined the channel [09:10] triptec has joined the channel [09:11] secoif has joined the channel [09:11] secoif has joined the channel [09:12] secoif has joined the channel [09:13] secoif has joined the channel [09:13] ziro`_ has joined the channel [09:13] secoif has joined the channel [09:13] labuser has joined the channel [09:14] booyaa: erichocean: it's times like this where having an equivalent of "which" for node would be helpful. i suspect link has failed to install it in one of the dirs where node is going to look [09:14] secoif has joined the channel [09:14] booyaa: i think one of them is $NODE_PATH [09:14] secoif has joined the channel [09:15] vvo has joined the channel [09:15] geoKe has joined the channel [09:16] secoif has joined the channel [09:16] robotmay has joined the channel [09:17] secoif has joined the channel [09:17] secoif has joined the channel [09:18] secoif has joined the channel [09:18] Lingerance: booyaa: You mean like require.resolve()? [09:18] robde has joined the channel [09:18] booyaa: prolly [09:18] secoif has joined the channel [09:18] Lingerance: > require.resolve('Ext') [09:18] Lingerance: '/home/robin/node_modules/Ext/index.js' [09:18] booyaa: nice! [09:19] beevits has joined the channel [09:19] booyaa: erichocean: ^^^ use resolve against a module you know works (that isn't core or installed globally) [09:19] secoif has joined the channel [09:19] Lingerance: It should work with global stuff too [09:19] erichocean: booyaa: resolve works fine with other modules [09:19] secoif has joined the channel [09:20] booyaa: yeah what i'm saying is that npm link has installed it somewhere, but not in the same path any non-core stuff is installed in [09:20] secoif has joined the channel [09:20] booyaa: Lingerance: nice find the resolve stuff :) [09:21] kazupon has joined the channel [09:21] secoif has joined the channel [09:21] Iszak has joined the channel [09:21] sgimeno has joined the channel [09:21] Iszak: isnodejsstableyet? [09:21] Iszak: or rather isnodejsapistableyet/ [09:21] secoif has joined the channel [09:22] booyaa: no come back a in few years time once we've all got gold plated suits [09:22] secoif has joined the channel [09:22] Iszak: doubt that'll happen at the current price of gold. [09:22] Lingerance: It'll most likely be stable when they get to 1.x, however the differences between 0.4 and 0.6 weren't that much API-wise. [09:23] booyaa: Lingerance: was listening to nodeup [09:23] booyaa: #1 what's the libuv stuff? i know they had to do that to make the win port happen [09:23] __max has joined the channel [09:24] secoif has joined the channel [09:24] Iszak: So in reality, we shouldn't be using node.js because in the case a security vulnerability comes out on 0.4 which is no longer supported, we're screwed? [09:24] abraxas: libuv is the library they made that deals with the I/O APIs for different operating systems (windows, posix) [09:24] Iszak: I'm assuming 0.4 is no longer supported? [09:24] secoif has joined the channel [09:24] booyaa: Iszak: the hash collision stuff? [09:25] secoif has joined the channel [09:25] Iszak: sure, yeah that. [09:25] booyaa: aren't they backporting the fix to older version of v8? [09:25] secoif has joined the channel [09:26] Iszak: don't know, who's they? [09:26] erichocean: booyaa: turned out it was that NPM_PATH needed to be set; thanks! [09:26] booyaa: erichocean: WIN! [09:26] secoif has joined the channel [09:26] OmidRaha has joined the channel [09:26] booyaa: erichocean: let us know when you've published your module on npmjs.org [09:27] secoif has joined the channel [09:27] erichocean: will do, it's sproutcore's npm module [09:27] erichocean: we have a new build system that allows sharing sproutcore frameworks/apps/plugins etc. as npm modules [09:27] secoif has joined the channel [09:27] vguerra has joined the channel [09:28] secoif has joined the channel [09:28] booyaa: sproutcore didn't one of your modules get a rename recently? i think it might have been the js side (excuse my ignorance) [09:28] hackband has joined the channel [09:28] secoif has joined the channel [09:28] erichocean: the project forked, a mini-SproutCore focused on HTML templating got renamed to Ember.js [09:29] secoif has joined the channel [09:29] secoif has joined the channel [09:30] jm_ has joined the channel [09:30] secoif has joined the channel [09:30] booyaa: right that's it... [09:31] booyaa: excuse me while i poke sql server with a big pointy stick [09:31] secoif has joined the channel [09:31] Guest73408 has left the channel [09:31] secoif has joined the channel [09:32] secoif has joined the channel [09:32] stagas has joined the channel [09:32] secoif has joined the channel [09:33] mikedeboer has joined the channel [09:33] secoif has joined the channel [09:33] hellp has joined the channel [09:34] secoif has joined the channel [09:34] agnat has joined the channel [09:34] thalll has joined the channel [09:34] secoif has joined the channel [09:34] max42 has joined the channel [09:35] secoif has joined the channel [09:35] mikeal has joined the channel [09:35] secoif has joined the channel [09:36] tomasztomczyk has joined the channel [09:36] secoif has joined the channel [09:36] hz has joined the channel [09:36] statusfailed has joined the channel [09:36] secoif has joined the channel [09:37] secoif has joined the channel [09:39] lzskiss has joined the channel [09:41] mara has joined the channel [09:42] TomY has joined the channel [09:43] mara__ has joined the channel [09:44] rendar has joined the channel [09:47] prssn has joined the channel [09:47] dexter_e has joined the channel [09:48] Hotroot has left the channel [09:49] claudio has joined the channel [09:50] dob_ has joined the channel [09:50] LeMike has joined the channel [09:52] mc_greeny has joined the channel [09:52] prssn: In my application I'm using connect to serve static files, and I'm counting all the requests i.e. how many times /index.html has been loaded. It works perfectly when I'm visiting /index.html directly but if I'm loading it in an iframe I can't count the request, even if index.html is served. Why can't I see this request? [09:53] prssn: Sotty for my english [09:55] dannyamey has joined the channel [09:56] robi42 has joined the channel [09:57] mandric has joined the channel [09:57] wmage has joined the channel [09:58] yawNO has joined the channel [09:59] Carmivore has joined the channel [10:02] tcurdt has joined the channel [10:02] jldbasa has joined the channel [10:04] tvw has joined the channel [10:04] Blorb has joined the channel [10:05] jimmysparkle has joined the channel [10:05] xetorthio has joined the channel [10:07] markwubben has joined the channel [10:07] kmox83 has joined the channel [10:08] elijah-away has joined the channel [10:08] HardPhuck has joined the channel [10:11] ismell has joined the channel [10:11] Nuck has joined the channel [10:11] Draggor has joined the channel [10:11] wookiehangover has joined the channel [10:14] icebox has joined the channel [10:14] chot: caching the result perhaps? [10:14] larsschenk has joined the channel [10:15] chot: just an idea [10:15] eldios has joined the channel [10:15] larsschenk has left the channel [10:15] martin_sunset: Chot++ [10:15] catb0t: chot now has 1 beer [10:15] mikrosystheme has joined the channel [10:16] booyaa: .. process.version [10:16] catb0t: Exception: ReferenceError: process is not defined [10:16] booyaa: :) [10:17] booyaa: .. typeof chot [10:17] catb0t: "undefined" [10:17] booyaa: :~( [10:18] booyaa: i weep for you chot [10:18] chot: hehe [10:18] jimt has joined the channel [10:20] chot: .. catb0t, I command you to spread love and happiness among all of mankind [10:20] catb0t: Exception: SyntaxError: Unexpected identifier [10:21] chot: bah [10:21] booyaa: heh [10:21] chot: the day computers can pick up on that, we've gotten somewhere [10:22] prssn: chot: Any idea how I can do that? Is it something buildt-in in Connect? [10:22] chot: prssn: sorry, I've never used Connect (and barrely node.js for that matter) [10:26] mmyjona has joined the channel [10:26] astropirate: prssn, it doesn't matter if its an iframe or ajax or w/e an http request is an http request [10:26] astropirate: are you sure its not counting? [10:26] astropirate: maybe the browser cache's it [10:26] astropirate: so it doesn't make another request [10:28] Carmivore has joined the channel [10:28] jm_: hi do i need microsoft visul studio upon installing nodejs? [10:29] RLa: for compiling extensions? [10:29] prssn: : Yes it's not counting. But yeah maybe it's in the broswer. Is there any way i can force the iframe to always reload the frame from source and not cache? (if any) [10:29] lperrin has joined the channel [10:29] astropirate: prssn, yes, you can set the Expires headers to a time in the past, then the browser will never cache it [10:30] RLa: astropirate, what if it's already cached [10:30] astropirate: press Ctr+F5 [10:30] RLa: you need to invalidate that somehow [10:30] astropirate: :D [10:30] RLa: tell that to every user? :) [10:30] astropirate: its till in developement [10:30] astropirate: i assume. [10:30] RLa: oh, lucky then [10:31] astropirate: webgl why you soo hard?!?? [10:32] martin_sunset: Rla add a cache buster value, that's how it is normally done [10:33] RLa: yes, that's good way [10:33] martin_sunset: Your link?cb=currentdateinmssince1970 [10:33] yawNO has joined the channel [10:35] arcanis has joined the channel [10:37] booyaa: astropirate: have you tried three.js? [10:38] maritz has joined the channel [10:39] kulor-uk has joined the channel [10:39] dexter_e has joined the channel [10:41] niftylettuce has joined the channel [10:41] astropirate: booyaa, yah i'm using it but i'm a total newbie.. not sure how to give a glow effect to my particles [10:41] astropirate: stupid shaders [10:42] blissdev has joined the channel [10:42] jm has joined the channel [10:43] Juan77 has joined the channel [10:43] booyaa: astropirate: wondering if you might find some sample code here? http://glsl.heroku.com/ [10:43] booyaa: i think this is also powered by three.js, meant to be jsfiddle for all things webgl [10:43] abraxas has joined the channel [10:43] booyaa: sadly i don't think you can sort my fx [10:43] Laxmi has joined the channel [10:44] astropirate: what you mean [10:45] fermion has joined the channel [10:45] tytsim has joined the channel [10:45] jm: guys do in need visul studio for installing node js? [10:46] augustl: jm: no [10:46] dawido has joined the channel [10:46] quijote has joined the channel [10:47] jm: how will i be able to install node js? [10:49] jm: it is said in the intallation guide that node js needs python and microsft visual studio [10:49] d0k has joined the channel [10:50] prssn: No it doesn't? [10:50] prssn: which guide? [10:51] bogomips has joined the channel [10:51] booyaa: jm: just use the msi on the website [10:51] herbySk has joined the channel [10:51] booyaa: you get npm as part of the install [10:52] jm: this guide https://github.com/joyent/node/wiki/Installation [10:53] jm: @booya then how will i be able to run it [10:53] jm: ? [10:53] swestcott has joined the channel [10:53] booyaa: http://nodejs.org/#download [10:54] jm: i have now successfully installed node js [10:54] booyaa: WIN! [10:54] Heisenmink_ has joined the channel [10:54] yawNO has joined the channel [10:55] tuhoojabotti: :D [10:55] jm: @booya : what will i do next? how will i run it? [10:55] booyaa: http://www.nodebeginner.org/ [10:55] tuhoojabotti: :D [10:55] booyaa: http://howtonode.org/ [10:55] tuhoojabotti: jm: You add the node.exe to your PATH [10:55] booyaa: http://nodeguide.com/ [10:55] tuhoojabotti: then open cmd and run node script.js [10:56] booyaa: tuhoojabotti: provided jm opens a new cmd prompt should be in his path [10:56] booyaa: the installer takes care of that stuff (well it did in earlier realises of v0.6 [10:56] tuhoojabotti: Ok [10:56] __tosh has joined the channel [10:56] tdegrunt has joined the channel [10:57] booyaa: sadly we've got stupid iis proxies so my npm is sad [10:57] booyaa: at work i should point out [10:58] `3rdEden has joined the channel [11:00] maritz has joined the channel [11:05] robde has joined the channel [11:05] jm: @booya thanks [11:06] skm has joined the channel [11:09] booyaa: jm take no prisoners! js or die! yada yada [11:09] ph^ has joined the channel [11:11] meso has joined the channel [11:17] yawNO has joined the channel [11:18] dexter_e has joined the channel [11:21] johnhame_ has joined the channel [11:23] ger^kallisti has joined the channel [11:24] versicolor has joined the channel [11:24] burningdog has joined the channel [11:24] booyaa: .. var halp = 'http://howtonode.org?' [11:25] catb0t: [11:25] booyaa: .. halp [11:25] catb0t: "http://howtonode.org?" [11:25] c4milo has joined the channel [11:25] booyaa: who owns catbot? got an idea... [11:25] booyaa: catb0t: owner? [11:25] catb0t: owner hasn't pulled any patches for a [11:25] tuhoojabotti: :P [11:25] Hanspolo has joined the channel [11:26] booyaa: catb0t: ryah nodejs [11:26] catb0t: nodejs on bluehost or ryah [11:26] booyaa: ACTION blinks wtf [11:26] JmZ has joined the channel [11:26] tuhoojabotti: catb0t: booyaa lol [11:27] catb0t: booyaa , I finally and then verify it , don't t have worked properly with strings and buffers and spits out the current master, e current lol [11:27] digilink has joined the channel [11:27] tuhoojabotti: booyaa: roplems? [11:28] booyaa: tuhoojabotti: i take it, loses variable/state when it restarts? [11:28] booyaa: catb0t: booyaa karma [11:28] catb0t: booyaa , thanks dude you rock [11:28] tuhoojabotti: I guess. [11:29] tuhoojabotti: catb0t: reddit tuhoojabotti [11:29] catb0t: tuhoojabotti , hm, I just wonder if i didnt hate textmate syntaxes so much fun [11:29] tuhoojabotti: :u [11:30] raingrove has joined the channel [11:30] raingrove has joined the channel [11:30] fangel has joined the channel [11:32] johnhamelink has joined the channel [11:34] lesoosh has joined the channel [11:34] lesoosh: hey, is there a way to tell jade not to "html encode" a string? like not replacing "&" with "&" in a url? [11:34] versicolor has joined the channel [11:34] CrawfordComeaux has joined the channel [11:35] lesoosh: oh... !{var} does that [11:38] pct has joined the channel [11:38] Guest71076 has joined the channel [11:39] flat has joined the channel [11:40] jomoho has joined the channel [11:41] deoxxa: https://gist.github.com/1588589 [11:41] Guest71076 has joined the channel [11:41] deoxxa: do all the decent javascript vms optimise that code ok? [11:41] deoxxa: talking about recent spidermonkey, v8, whatever IE uses [11:41] versicolor has joined the channel [11:41] case_: my eyes bleed :) [11:42] deoxxa: it's auto-generated code :P [11:42] deoxxa: i'm specifically talking about the anonymous function [11:42] tytsim has joined the channel [11:43] deoxxa: would it speed things up significantly to put the function defined on line 6 somewhere else, then refer to it by name? [11:43] TheNumb: deoxxa: yay for spaghetti code! [11:43] case_: deoxxa, i'll be extremly suprised if that changed anything [11:44] deoxxa: it's not hand-written! it's compiled from a template [11:44] case_: but i'm not a js expert [11:44] bogomips has joined the channel [11:44] deoxxa: case_: that's what i was thinking - i might just manually modify the compiled files and benchmark them [11:46] aliem has joined the channel [11:48] dharmesh has joined the channel [11:48] fangel has joined the channel [11:49] johnhamelink has joined the channel [11:49] jetienne_ has joined the channel [11:50] johnhamelink has joined the channel [11:50] jomoho2 has joined the channel [11:54] stagas has joined the channel [11:56] mikrosystheme has left the channel [11:57] booyaa: what replaced process.compile after v0.3.2? [11:58] jomoho has joined the channel [11:58] Hinton has joined the channel [11:58] Hinton: Hey, anyone know if there is a rss subscribe module, that gives me the new items [11:59] RLa: "new items"? [11:59] RLa: i guess you need to manually keep track which are new and which are not [12:00] Hinton: Well grab the feed once on initialization, and regrab it after 10min or so to check if there are new items [12:00] shinuza has joined the channel [12:00] RLa: i did that by storing titles of already fetched items [12:00] braoru has joined the channel [12:00] RLa: tho there might be some better way [12:01] Hinton: pubdate of the last items and compare it to the new last item? [12:01] RLa: anyway, you would need to store some data about items already seen [12:01] RLa: yeah [12:01] Hinton: I don't presume anyone has made it already? [12:01] Hinton: I hate reinventing the wheel [12:02] cjm has joined the channel [12:02] booyaa: you checked search.npmjs.org and http://eirikb.github.com/nipster/# ? [12:02] Hinton: https://github.com/jheusala/node-rssee [12:02] Hinton: now that seems intresting [12:03] Hinton: i checked npmjs, but nipster seems much easier to read [12:03] booyaa: i like nipster because it includes watchers [12:03] booyaa: you can see what people might be using more [12:03] Hinton: yea, exactly :) [12:04] Edy has joined the channel [12:04] Edy has joined the channel [12:04] Hinton: going to give node-rssee a try [12:04] Hinton: thanks, RLa, booyaa [12:04] booyaa: np [12:08] robotmay has joined the channel [12:11] charlenopires has joined the channel [12:11] burningdog has joined the channel [12:12] dylang has joined the channel [12:12] mikedeboer has joined the channel [12:12] cognominal_ has joined the channel [12:14] robhawkes has joined the channel [12:16] Heisenmink has joined the channel [12:17] CrisO has joined the channel [12:17] CrisO has left the channel [12:18] cosmincx has joined the channel [12:18] ff_ has joined the channel [12:19] Heisenmink has joined the channel [12:20] ff_: how do i run node js? [12:21] Heisenmink has joined the channel [12:21] ff_: hi [12:21] herbySk has joined the channel [12:22] ff_: where do i need to store my files in order for it to run? [12:23] __doc__ has joined the channel [12:23] lperrin has joined the channel [12:24] jomoho2 has joined the channel [12:25] piscisaureus_ has joined the channel [12:26] martin_sunset: Ff_ any folder will do. Read up on package.json at docs.nodejitsu.com. [12:28] zilch_ has joined the channel [12:28] shellox_ has joined the channel [12:28] martin_sunset: Toolbox.no.de is also a good read, affair [12:28] shellox_: hi [12:28] shellox_: anyone use Hubot? [12:29] tytsim has joined the channel [12:29] booyaa: shellox_: might be worth trying on #github [12:30] ziro`_ has joined the channel [12:31] phire has joined the channel [12:33] shellox_: booyaa: im not sure [12:33] johnhamelink: shellox_ we do [12:33] shellox_: http://dpaste.com/685260/ [12:33] jomoho has joined the channel [12:33] shellox_: it looks like a node problem, no? [12:34] johnhamelink: shellox_ Is Redis up/working? [12:35] ovaillancourt has joined the channel [12:36] shellox_: johnhamelink: yes, it is [12:36] airandfingers has joined the channel [12:36] airandfingers: hello hello [12:37] qsobad has joined the channel [12:38] shinuza: shellox_: you should try to connect manually [12:39] shinuza: from the machine, using the same settings as hubot [12:39] shellox_: shinuza: i did [12:39] booyaa: hee getting excited about this month's lnug :) [12:40] cosmincx has joined the channel [12:40] johnhamelink: shellox_ try running as root - mightbe a permissions problem [12:40] shellox_: redis 127.0.0.1:6379> set test blah [12:40] shellox_: OK [12:41] LeMike has joined the channel [12:42] booyaa: anyone else going to this month's lnug (hosted by forward tech)? [12:42] shellox_: HardPhuck: i got the same error as root [12:44] shellox_: eh, i mean johnhamelink [12:44] johnhamelink: booyaa I am :) [12:44] mmyjona has joined the channel [12:45] johnhamelink: shellox_ check npm's installed all the modules [12:47] fangel has joined the channel [12:48] deeprogram has joined the channel [12:49] booyaa: johnhamelink: hopefully i'll actually get some pizza this time [12:49] booyaa: misjudged the journey from work to fwd [12:49] airandfingers: anyone here use request? [12:50] deoxxa: i wanted to, but it doesn't support binary responses [12:51] deoxxa: :/ [12:51] rio{ has joined the channel [12:52] mytrile has joined the channel [12:52] subbyyy has joined the channel [12:54] johnhamelink: booyaa that pizza went _fast_ last time [12:55] deoxxa: i could totally eat pizza [12:55] hubot7 has joined the channel [12:55] shellox_: ok thanks it worked [12:55] airandfingers: hm that sucks [12:57] fairwinds has joined the channel [12:57] johnhamelink: shellox_ what fixed it? :) [12:58] lwille has joined the channel [12:58] lwille has joined the channel [12:58] TheFuzzball has joined the channel [12:58] kazupon has joined the channel [13:01] k1ttty has joined the channel [13:05] postwait has joined the channel [13:06] Hinton has left the channel [13:06] Cromulent has joined the channel [13:06] Hanspolo has joined the channel [13:06] davetayls has joined the channel [13:06] burningdog has joined the channel [13:08] Wizek has joined the channel [13:08] scott_gonzalez has joined the channel [13:09] unomi has joined the channel [13:09] justmoon has joined the channel [13:12] erikzaadi has joined the channel [13:15] Heisenmink has joined the channel [13:16] idoru has joined the channel [13:16] idoru has joined the channel [13:16] magnetik has joined the channel [13:16] MrTopf has joined the channel [13:17] erichynds has joined the channel [13:17] k1ttty_ has joined the channel [13:19] jondot_ has joined the channel [13:19] jondot_: hi all. any fast uuid version 1 generation library for nodejs ? [13:19] jondot_: (aka timeuuid) [13:19] eliasp has joined the channel [13:21] robde has joined the channel [13:21] enmand has joined the channel [13:23] cognominal has joined the channel [13:23] vkareh has joined the channel [13:24] ziro`_ has joined the channel [13:25] lwille: jondot, I always use crypto.md5: http://pastie.org/3160158 - works well for me, but you should check the uniqueness of the generated hash. [13:25] lwille: You can also try https://github.com/akdubya/rbytes which uses openssl [13:28] jomoho2 has joined the channel [13:30] aliem_ has joined the channel [13:30] tmcw has joined the channel [13:30] kyonsalt has joined the channel [13:31] JJMalina has joined the channel [13:32] mc_greeny has joined the channel [13:32] shinuza has joined the channel [13:32] davetayls has joined the channel [13:33] TimTim has joined the channel [13:33] dthompso99 has joined the channel [13:34] airandfingers: question: http://stackoverflow.com/questions/8804085/jsdom-form-submisison [13:35] JdpB42 has left the channel [13:35] flat has joined the channel [13:37] jjido has joined the channel [13:37] cjm has joined the channel [13:38] swestcott has joined the channel [13:38] lperrin has joined the channel [13:39] Margle_ has joined the channel [13:39] level09 has joined the channel [13:45] quijote has joined the channel [13:46] _dc has joined the channel [13:47] kriszyp has joined the channel [13:47] theycallmeswift has joined the channel [13:48] deeprogram_ has joined the channel [13:49] robi42 has joined the channel [13:49] kuhrt has joined the channel [13:50] airandfingers: updated: http://stackoverflow.com/questions/8804085/jsdom-form-submisison [13:52] Shaunzie has joined the channel [13:53] dbsps has joined the channel [13:53] airandfingers: fixed url spelling ;) http://stackoverflow.com/questions/8804085/jsdom-form-submission [13:53] ovnicraft has joined the channel [13:54] iRoj has joined the channel [13:56] jomoho has joined the channel [13:57] k1ttty has joined the channel [13:57] rio{ has joined the channel [13:58] N0va` has joined the channel [13:58] xetorthio has joined the channel [13:59] fdoubleyou has joined the channel [13:59] hz has joined the channel [14:00] cjroebuck has joined the channel [14:00] maritz: airandfingers: you can't "submit" the form like you would in the browser because jsdom only emulates the dom tree. (afaik) [14:00] maritz: airandfingers: you'll have to use request.post() to do the post manually. [14:01] maritz: please type myname++ if this helps you :D [14:01] airandfingers: maritz++ [14:01] maritz: thanks [14:02] eb4890 has joined the channel [14:02] airandfingers: okay, but is there some way i can do something similar, with jsdom or another module? [14:02] airandfingers: i'd rather not hardcode the post requests; that could get tricky depending on the site [14:02] airandfingers: and i've got lots of experience triggering DOM events client-side with jQuery [14:03] deoxxa: please type myname++ if you want to anger maritz [14:03] airandfingers: seems like i'd basically need a browser to make this work [14:03] airandfingers: @deoxxa we'll see ;) [14:03] dob__ has joined the channel [14:03] bnoordhuis has joined the channel [14:05] cesconix has joined the channel [14:06] plutoniix has joined the channel [14:06] easternbloc has joined the channel [14:07] easternbloc: Hi all, does anyone know how to publish to NPM using a post-hook on a CI instance. I'm guessing I need to authenticate with NPM first? [14:08] jimmysparkle has joined the channel [14:08] deedubs has joined the channel [14:10] madhums has joined the channel [14:10] joshsmith has joined the channel [14:11] redir has joined the channel [14:12] gavin_huang has joined the channel [14:12] Venom_X has joined the channel [14:13] AaronMT has joined the channel [14:15] benvie has joined the channel [14:15] Lingerance: airandfingers: You might want zombie then. [14:15] sharkbird has joined the channel [14:15] lazyshot has joined the channel [14:17] joshfinnie has joined the channel [14:18] carlyle has joined the channel [14:18] astropirate has joined the channel [14:18] kuebk has left the channel [14:18] maritz: airandfingers: no, why? you can just do the manual post?! [14:18] maritz: it's not much mor complicated [14:18] maritz: +e [14:18] maritz: if at all [14:18] maritz: deoxxa-- [14:18] catb0t: deoxxa now has -1 beer [14:18] maritz: :D [14:19] deoxxa: oh burn [14:20] cosmincx has joined the channel [14:21] davidsklar has joined the channel [14:21] Industrial: DELETE and UPDATE requests should return with 204 when sucessful right? [14:21] tuhoojabotti: Refer to spec [14:21] tuhoojabotti: I think it should be 418 [14:22] maritz: airandfingers: instead of individually setting the values in the fields and then triggering the submit, you just have to do one simple request.post({url: 'posturl', params: {someparam: 'blub'}}, function () { console.log(arguments);}); and be done with it. (or similar) [14:22] jomoho2 has joined the channel [14:22] maritz: tuhoojabotti: are you sure? i think it's 1337. [14:23] Industrial: tuhoojabotti: there is only 417 [14:23] maritz: teapot is for COFFEEscript requests [14:23] tuhoojabotti: Industrial: ;O [14:23] Industrial: tuhoojabotti: no trolling in help IRC channels [14:23] Industrial: I'm SNERIOUS [14:23] sdwrage has joined the channel [14:23] tuhoojabotti: I thought this was community channel. :/ [14:23] maritz: oh shit [14:23] martin_sunset: Industrial: Depends, some people return the full object on put and delete, then it can't be 204 [14:24] Industrial: right, I'm, not returning anything though [14:24] martin_sunset: Then 204 [14:24] Industrial: oki [14:24] maritz: that is if it was successful [14:24] maritz: (meaning you are finished processing the request completely and did not encounter errors) [14:25] hz has joined the channel [14:25] Industrial: tuhoojabotti: snerious reference; http://www.youtube.com/watch?v=eZQw6KuNKqs [14:25] maritz: NEVER GONNA GIVE YOU UP [14:25] maritz: (guess) [14:26] Cromulent has joined the channel [14:26] Industrial: na [14:26] maritz: oh :( [14:26] willwhite has joined the channel [14:26] tuhoojabotti: Industrial: I didn't even. [14:27] zitchdog has joined the channel [14:27] voodootikigod has joined the channel [14:27] tuhoojabotti: But I gotta say, Trine OST rulz [14:27] Stephen has joined the channel [14:27] kazupon has joined the channel [14:28] johnhamelink has left the channel [14:29] kyonsalt has joined the channel [14:29] CarterL has joined the channel [14:29] sridatta has joined the channel [14:30] saikat has joined the channel [14:31] devdazed has joined the channel [14:31] jstash has joined the channel [14:31] voodootikigod has joined the channel [14:31] davetayls has joined the channel [14:32] sharkbird has joined the channel [14:33] lduros has joined the channel [14:33] QaDeS has joined the channel [14:34] tomasztomczyk has joined the channel [14:35] meso_ has joined the channel [14:35] QaDeS_ has joined the channel [14:35] jomoho has joined the channel [14:35] m00p has joined the channel [14:36] xetorthio has joined the channel [14:36] innociv_ has joined the channel [14:37] aliem has joined the channel [14:37] d0k_ has joined the channel [14:38] devongovett has joined the channel [14:38] urlisse has joined the channel [14:38] rodasc has joined the channel [14:38] Shaunzie_ has joined the channel [14:38] MrTopf_ has joined the channel [14:38] geoKe_ has joined the channel [14:38] lwille: how do I get node::Buffer::New(char *data, size_t len) to work? when I pass in a char* and a size_t, I get an error: no matching function for call to ‘node::Buffer::Buffer(char*&, size_t&)’ [14:39] jeedey_ has joined the channel [14:39] zemanel_ has joined the channel [14:39] jetheredge_ has joined the channel [14:39] Cromulen_ has joined the channel [14:39] versicolor_ has joined the channel [14:39] mikey_p_ has joined the channel [14:39] mikey_p_ has joined the channel [14:39] Locke23rus_ has joined the channel [14:39] Vennril_away2 has joined the channel [14:39] devdazed_ has joined the channel [14:39] Lingerance: Because you're sending it a pointer to a pointer and a pointer, when it just wants a pointer and a size_t [14:40] elijahwright has joined the channel [14:40] azend_ has joined the channel [14:40] satyr has joined the channel [14:40] samstefan has joined the channel [14:40] jldbasa has joined the channel [14:40] cognominal has joined the channel [14:40] emilsedgh has joined the channel [14:40] Pilate has joined the channel [14:40] nw` has joined the channel [14:40] dob_ has joined the channel [14:40] omni5cience has joined the channel [14:40] whoops has joined the channel [14:40] fcoury has joined the channel [14:40] JesusRosso has joined the channel [14:40] raincole_ has joined the channel [14:40] gaYak has joined the channel [14:40] metellus has joined the channel [14:40] case_ has joined the channel [14:40] emilsedgh has joined the channel [14:40] yungchunglin has joined the channel [14:41] russell_h has joined the channel [14:41] kloeri has joined the channel [14:41] eb4890 has joined the channel [14:41] tomasztomczyk has joined the channel [14:41] kulor-uk has joined the channel [14:41] subdeuxed has joined the channel [14:41] gerard0 has joined the channel [14:41] igl has joined the channel [14:41] silky has joined the channel [14:41] zivester has joined the channel [14:41] irclogger_com has joined the channel [14:41] MooGoo has joined the channel [14:41] gruwl has joined the channel [14:41] evxd has joined the channel [14:41] Casan has joined the channel [14:41] Ezku has joined the channel [14:41] spleeze has joined the channel [14:41] zilch_ has joined the channel [14:41] joeytwiddle has joined the channel [14:41] vkandy has joined the channel [14:41] Mortchek has joined the channel [14:41] amasad has joined the channel [14:42] lwille: *& = pointer passed as reference [14:42] _root_ has joined the channel [14:42] justmoon has joined the channel [14:42] tomh has joined the channel [14:42] jgornick has joined the channel [14:43] niclone has joined the channel [14:43] ilil_ has joined the channel [14:43] lwille: here's a snippet: http://pastie.org/3160537 [14:43] eldios has joined the channel [14:43] sharkbird has joined the channel [14:44] maritz: lwille++ :) [14:44] msch has joined the channel [14:44] lwille: maritz? [14:44] maritz: http://carmivore.com/ xD [14:44] CrypticSwarm has joined the channel [14:44] hij1nx has joined the channel [14:44] lwille: haha, thanks maritz++ [14:44] JJMalina has joined the channel [14:44] maritz: some dude in here yesterday asked for beta testers in 10 days on that page. [14:45] maritz: arg, no. i didn't help you :D [14:45] Shaunzie has joined the channel [14:45] lwille: okay maritz-- :) [14:45] maritz: doesn't work according to him :( [14:45] lwille: hm -.- [14:45] maritz: first thing i did: tried -- on him [14:45] lwille: hehe [14:45] sharkbird has joined the channel [14:46] Morkel has joined the channel [14:46] CarlosC has joined the channel [14:46] kloeri has joined the channel [14:46] bkaney has joined the channel [14:46] loucal_ has joined the channel [14:46] swestcott has joined the channel [14:46] matt_c has joined the channel [14:47] jm_ has joined the channel [14:48] jm_: hello [14:48] jm_: ? [14:48] lduros has joined the channel [14:48] mrb_bk has joined the channel [14:48] ncb000gt has joined the channel [14:49] lwille: so I have been reading through node_buffer.h - does "You should [14:49] lwille: not be storing pointers to Buffer objects at all" mean that I can't use node::Buffer to pass a char* buffer over to JavaScript? [14:49] amasad has joined the channel [14:49] jomoho2 has joined the channel [14:49] jm_: just want to ask..i have installed nodejs on my computer now [14:49] Poetro has joined the channel [14:49] jm_: how will i run my codes? [14:50] thomblake has joined the channel [14:50] jm_: is there any specific location that i need to put my files into? [14:50] thomblake has left the channel [14:50] Cromulent has joined the channel [14:51] peterrs has joined the channel [14:51] selend has joined the channel [14:51] dodo_ has joined the channel [14:51] kloeri has joined the channel [14:51] jm_: how will i run my codes?is there any specific location that i need to put my files into? [14:52] Guest62742 has joined the channel [14:52] sean__ has joined the channel [14:52] bnoordhuis: lwille: you can copy the memory that your char pointer points to into the buffer [14:52] bnoordhuis: jm_: `node script.js` [14:53] martin_sunset: jm_: Again, read docs.nodejitsu.com [14:53] peterrs: var e = require('events').EventEmitter; function test() { } e.on('myevent', test); e.removeListener('myevent', test) -> throws "function is not function" why is that when test() is referenced? [14:53] neurodrone has joined the channel [14:53] jm_: ok [14:53] sean____ has joined the channel [14:54] pors has joined the channel [14:54] RLa has joined the channel [14:54] bnoordhuis: lwille: also, Local buffer = new node::Buffer(data, length); -> Local buffer = Buffer::New(data, length); [14:54] kalv has joined the channel [14:54] bnoordhuis: lwille: New() is a factory method, not a constructor [14:55] bradleymeck has joined the channel [14:55] bnoordhuis: peterrs: you need to instantiate an EventEmitter -> var e = new EventEmitter() [14:55] tiglionabbit has joined the channel [14:56] ziro`_ has joined the channel [14:56] sharkbird has joined the channel [14:56] peterrs: bnoordhuis: hehe.. think i forgot to include that in my example, but it still throws [14:57] kloeri has joined the channel [14:57] SeanR has joined the channel [14:57] maritz: peterrs: full gist? [15:00] kyonsalt has joined the channel [15:00] lwille: nice one, bnoordhuis++ :) [15:01] jm_: @bnoordhuis, i have just downloaded the node js msi installer for windows,are there any other things that i need to download? [15:01] mjr_ has joined the channel [15:01] kloeri has joined the channel [15:01] jtsnow has joined the channel [15:02] bnoordhuis: jm_: no, but you can install extra modules with npm [15:02] lwille: now I have error: cannot convert ‘node::Buffer*’ to ‘v8::Value* volatile’ in assignment - http://pastie.org/3160537 [15:02] jm_: then i need to run it on the cmd? [15:02] maritz: jm_: yes [15:03] ilil_ has left the channel [15:04] tmcw has joined the channel [15:05] jm_: when i tried typing sample node server.js , what is displayed in the bottom is this : ---, what does it mean, isn't there any way to know that my program is running? [15:05] m00p has joined the channel [15:05] lwille: how would I convert the node::Buffer (which is an ObjectWrap) to a v8::Value ? [15:05] fumanchu182 has joined the channel [15:06] koo3 has joined the channel [15:07] jm_: @bnoordhuis when i tried typing sample node server.js , what is displayed in the bottom is this : ---, what does it mean, isn't there any way to know that my program is running? [15:08] Nathan has joined the channel [15:09] bnoordhuis: lwille: sorry, there are several factory methods - if it returns a Buffer*, buffer->handle_ is the V8 object [15:09] tmske has joined the channel [15:10] bnoordhuis: jm_: can you gist the full output? [15:10] jm_: @bnoordhuis when i tried typing sample node server.js , what is displayed in the bottom is this : ---, what does it mean, isn't there any way to know that my program is running? [15:10] lwille: thanks, bnoordhuis++ [15:11] bnoordhuis: jm_: also, repeatedly asking the same question - especially if directed at a particular person - is considered an irc faux pas [15:12] rwaldron has joined the channel [15:12] N0va` has joined the channel [15:12] bshumate has joined the channel [15:14] booyaa: bet he's on a flakey webirc [15:15] TheJH has joined the channel [15:15] tmske: Hi, I'm completely new to node.js and I have a question about some async behaviour in following example: https://gist.github.com/0f15755573bf04e2b66f I was wondering if it is possible that the httpOptions can be incorrect between different calls to load and the http.request [15:16] jomoho has joined the channel [15:16] Wizek has joined the channel [15:17] peterrs: maritz: fubar on my side :) it initially held the wrong reference after all. [15:18] barberdt has joined the channel [15:18] tmske: If I'm correct the load function will be called async and possible not in order of the execution of _.each, so I was wondering what the behaviour of httpOptions is here, will it be defined once for every load call, or will it each load call overwrite it? [15:20] jakehow has joined the channel [15:22] jhooks has joined the channel [15:22] SomeoneWeird: say i have a var with { "email": "test@email.com" } in it, i should be able to get that email with var['email'] right? [15:22] kitt has joined the channel [15:22] kitt has joined the channel [15:23] peterrs: btw.. the node windows support, is that NT >= 5.1 or ? [15:24] TheJH: SomeoneWeird, yes, but var.email is more elegent [15:24] bnoordhuis: peterrs: xp and up [15:24] SomeoneWeird: ah, ill try that [15:24] TheJH: SomeoneWeird, and actually, "var" is an invalid variable name [15:24] SomeoneWeird: yeah was just an example [15:24] TheJH: ok [15:25] chasefarmer has joined the channel [15:25] yhahn has joined the channel [15:25] dexter_e has joined the channel [15:26] ken-ignite has joined the channel [15:27] colinclark has joined the channel [15:30] dylang has joined the channel [15:30] SomeoneWeird: TheJH, http://pastebin.com/Sa4jiz1q [15:31] curtischambers has joined the channel [15:31] chrisvwebdev has joined the channel [15:31] TheJH: SomeoneWeird, your "row" is an array [15:32] willwhite has joined the channel [15:32] TheJH: SomeoneWeird, row[0].email should be it [15:32] SomeoneWeird: ooh, [15:32] jhooks has joined the channel [15:33] prssn has joined the channel [15:33] charlenopires has joined the channel [15:33] SomeoneWeird: TheJH, cheers man [15:34] jgornick has joined the channel [15:34] fatjonny has joined the channel [15:34] cognominal has joined the channel [15:35] tomasztomczyk has joined the channel [15:35] jerrysv has joined the channel [15:36] broofa has joined the channel [15:37] jomoho2 has joined the channel [15:37] swestcott has joined the channel [15:38] TheFuzzball has joined the channel [15:39] max42 has left the channel [15:39] jimmysparkle has joined the channel [15:39] aelien27 has joined the channel [15:41] kevwil has joined the channel [15:41] paradigm1 has joined the channel [15:42] paradigm1 has left the channel [15:43] sharkbird has joined the channel [15:44] meso has joined the channel [15:45] stagas has joined the channel [15:45] kazupon has joined the channel [15:46] herbySk has joined the channel [15:46] tytsim has joined the channel [15:47] CIA-101: node: 03Ben Noordhuis 07master * r7cee968 10/ (src/node_isolate.cc src/node_isolate.h): isolates: add process-global list of isolates - http://git.io/sgAm9w [15:48] garrensmith has joined the channel [15:48] sharkbird has joined the channel [15:49] lwille has joined the channel [15:49] wuuts-up has joined the channel [15:49] wuuts-up: Hi all, how can i send mails from nodejs? (preferably from localhost) [15:50] CIA-101: node: 03Fedor Indutny 07master * r4cbcdb4 10/ (2 files): test: make debugger-repl tests work with isolates - http://git.io/4V4fuQ [15:50] phire has joined the channel [15:50] rio{ has joined the channel [15:50] jocafa has joined the channel [15:51] isaacs has joined the channel [15:51] josh-k has joined the channel [15:53] ioparadigm has joined the channel [15:53] Iszak: isaacs: got any plans on updating npm's site skin to coincide with node.js? now that it's been referenced on the homepage. [15:53] Iszak: Or perhaps a sub domain! [15:54] Shaunzie: nothing like spending 10 hours writing a wrapper for an API, only to find that someone already did it 8 months ago…. * le sigh * [15:54] Iszak: Shaunzie: is it better than the other persons API? [15:54] Iszak: rather wrapper [15:55] Shaunzie: Iszak: nope just different. I wrote it in CS… but that's about the only real difference -.- [15:55] Iszak: CS? [15:55] Shaunzie: coffeescript [15:55] Iszak: Oh. [15:55] sorensen__ has joined the channel [15:57] isaacs: Iszak: yes, there are plans. it's in the works. [15:58] Iszak: good. [15:59] booyaa: isaacs: please add unicorns to the website design [15:59] Iszak: only when you enter the konami code. [15:59] Shaunzie: booyaa: kinky O.o [15:59] Heisenmink has joined the channel [16:00] isaacs: booyaa: i'll take that under advisement. [16:00] meso has joined the channel [16:00] booyaa: Iszak / Shaunzie :D [16:00] booyaa: isaacs: sir thank you sir sir! [16:01] booyaa: question about the nodeup podcast.. is felxie the german sounding fellow? [16:01] booyaa: or is that you isaacs? [16:01] booyaa: sorry episode #1 [16:01] isaacs: booyaa: yes, i'm isaacs. [16:01] isaacs: booyaa: oh, on the podcast. [16:01] isaacs: i dunno [16:01] meso has joined the channel [16:01] rauchg has joined the channel [16:01] isaacs: felixge is hte german sounding fellow [16:01] booyaa: ah okay danke [16:02] isaacs: ACTION is american [16:02] tdegrunt has joined the channel [16:02] aliem has joined the channel [16:03] geekbri has joined the channel [16:03] fzzzy has joined the channel [16:04] napperjabber has joined the channel [16:04] larsschenk has joined the channel [16:04] shinuza has joined the channel [16:04] yhahn: isaacs: custom keys in package.json ... bad idea? [16:04] robde has joined the channel [16:05] isaacs: yhahn: it's fine [16:05] isaacs: yhahn: it's best to not use something that's already in use, or likely to collide in the future [16:05] panterax has joined the channel [16:05] yhahn: yeah, we will namespace if we do it [16:05] isaacs: yhahn: this page will show you all the keys currently in use: http://registry.npmjs.org/-/fields [16:05] lperrin has joined the channel [16:05] isaacs: yhahn: assume that anything starting with a _ is npm-internal [16:06] yhahn: damn, bookmarking : ) [16:06] yhahn: thanks [16:06] wtfizzle has joined the channel [16:06] wtfizzle has left the channel [16:06] brianloveswords has joined the channel [16:06] monteslu has joined the channel [16:07] booo has joined the channel [16:08] c4milo has joined the channel [16:09] larsschenk has left the channel [16:11] ritch has joined the channel [16:12] ritch has left the channel [16:12] paera has left the channel [16:12] qbit_: anyone have a quick second to help me troubleshoot this : node-expat.node: undefined symbol 'ev_default_loop_ptr' [16:12] qbit_: on v0.6.7 [16:12] qbit_: npm 1.1.0-beta-10 [16:12] qbit_: I think I might have an issue with the openbsd package.. but I am not 100% sure [16:13] isaacs: qbit_: that error probably comes from outside of node itself. [16:13] isaacs: qbit_: maybe you have to rebuild expat? [16:13] isaacs: have you updated node recently? [16:13] qbit_: few days ago [16:14] jjido has joined the channel [16:14] thalll has joined the channel [16:14] qbit_: but it's v0.6.7 [16:14] TheNumb has joined the channel [16:14] Iszak: isaacs: can we strive to not have beta versions of npm in node.js? [16:14] Iszak: or alpha, or any non-official releases for that matter. [16:15] bradleymeck: qbit_ recompile your c++ addons [16:15] qbit_: bradleymeck: have - same result [16:15] kulor-uk has joined the channel [16:15] caolanm has joined the channel [16:15] bradleymeck: manually cleaned out the build directories (rm -rf node_modules or w/e?) [16:15] qbit_: it compiles fine [16:15] bradleymeck: qbit_^ [16:15] qbit_: yep [16:16] isaacs: Iszak: those releases are official. [16:16] Iszak: I mean non-stable releases then. [16:16] isaacs: Iszak: they're stabler than the 1.0.106 [16:16] Iszak: well then promote it [16:16] isaacs: Iszak: but yes, we strive for ever greater stability. [16:16] Iszak: I think it's wrong to release a beta in a node.js, even if it's a technicality. [16:16] isaacs: Iszak: the reason it's tagged such is because there is still more work to be done. [16:16] jakehow has joined the channel [16:17] Iszak: it just doesn't distill confidence when you see beta. [16:17] _rockbot_ has joined the channel [16:18] spleeze has joined the channel [16:18] _rockbot_: hi folks! I'm on a mac, and for some crazy reason it only lets me use node from certain folders - anyone know how I can make node global? [16:18] _rockbot_: (what am I missing?) [16:18] wuuts-up has joined the channel [16:18] qbit_: bradleymeck: any other suggestions ? [16:19] bradleymeck: qbit_ not really that error is generally a c++ addon for 0.4 trying to talk in 0.6 :( [16:19] joestein has joined the channel [16:19] kenperkins has joined the channel [16:20] wuuts-up: yo all i am trying to use the nodemailer from andris9 but it can not find mimelib-noiconv library [16:20] wuuts-up: i am from windows so cant install that with npm :( [16:20] wuuts-up: what should i do? [16:20] iaincarsberg: If 'm wanting to write a restful web service using nodejs, is express the best starting point, or are there others? [16:21] erickwilder has joined the channel [16:21] jimt_ has joined the channel [16:21] erickwilder has left the channel [16:21] Iszak: isaacs: would you say that node.js is stable and secure for a production environment? [16:21] shanebo has joined the channel [16:21] jgornick has joined the channel [16:21] jerrysv: iaincarsberg: check out bricks.js http://bricksjs.com/documentation.html [16:22] isaacs: Iszak: voxer, microsoft, ebay, yahoo and many others seem to think so. [16:22] isaacs: Iszak: re the npm beta, you shoudln't be using npm in production anyway. [16:22] isaacs: npm is a development tool. [16:22] bradleymeck: iaincarsberg, express is a pretty good start, but flatiron or journey are other ones ive used and liked a lot [16:22] isaacs: use it on your dev box, check your node_modules folder into git, and deploy static snapshots. [16:22] joshkehn has joined the channel [16:22] joshkehn has left the channel [16:22] deedubs: anyone recall the site that was outlining the steps to writing successful applications. It covered things like configing your app using ENV vars, continuous deployment, using config management.. [16:23] bradleymeck: or have a private npm repo (not shadowed) [16:23] isaacs: bradleymeck: even that is not ideal. [16:23] saikat has joined the channel [16:24] aheckmann has joined the channel [16:24] unomi has joined the channel [16:25] booyaa: isaacs: i've seen discussion about this (re: deploying into prod) was there a definitive blog post? [16:25] booyaa: i saw some stuff on twitter [16:25] isaacs: booyaa: the one on mikeal rogers' blog [16:25] booyaa: cool [16:25] isaacs: booyaa: and the one that marco wrote for the yammer engineering blog [16:26] ank has joined the channel [16:27] Drakonite has joined the channel [16:27] mattgifford has joined the channel [16:28] tomasztomczyk has joined the channel [16:29] iaincarsberg: thanks jerrysv and bradwright journey looks pretty close to what I need, do you know if its possible to artificially belate the response? a crude example would be to wrap the code that responds in a setTimeout? [16:30] jstash: http://www.mikealrogers.com/posts/nodemodules-in-git.html - sells it for me [16:30] broofa has joined the channel [16:31] booyaa: cheers isaacs found them both [16:31] saesh has joined the channel [16:31] blueadept has joined the channel [16:31] booyaa: http://eng.yammer.com/blog/2012/1/4/managing-nodejs-dependencies-and-deployments-at-yammer.html [16:31] deedubs: iaincarsberg: Yes its possible [16:31] alvaro_o has joined the channel [16:32] Aikar: damn teespring disabled buying the node.js tshirt, they had printing machine issues. I got one, limited edition! [16:32] Aikar: http://teespring.com/nodejs [16:32] steveoh has joined the channel [16:32] iaincarsberg: deedubs: great thanks [16:33] deedubs: iaincarsberg: app.get('/sleepy', function(rq,rp) {settimeout(function(){rp.send('Good morning'}, 2000)}); [16:33] iaincarsberg: deedubs: awesome :D [16:34] MatthewS has joined the channel [16:35] brianloveswords has joined the channel [16:35] alvaro_o has left the channel [16:35] claudio has joined the channel [16:35] jaequery has joined the channel [16:35] claudio has joined the channel [16:36] tjholowaychuk has joined the channel [16:38] jerrysv: iaincarsberg: easy to artificially belate the response, but why? [16:38] Morkel has joined the channel [16:39] dylang has joined the channel [16:40] Destos has joined the channel [16:41] dnjaramba has joined the channel [16:42] jondot_: broofa, can you explain why one might even need persistence for UUIDv1's seed? as explained in the README note here: https://github.com/broofa/node-uuid [16:42] springmeyer_ has joined the channel [16:42] broofa: otp. one sec < jondot_ [16:42] blueadept: who has the cheapest cloud object storage? [16:43] maritz: jerrysv: it's a good idea to do this on things like login or reset password to mitigate brute force attacks and make sure that no one can make a good guess at what is happening. (for example in a login it might take noticably longer if the password is incorrect than if only the email is incorrect. a random delay makes this way harder) [16:43] iaincarsberg: jerrysv: I'm writing a web interface for hook.io cloud. The cloud needs to be scalable and fault tolerant, so the idea is to use a restful api to store 'batches' in a redis list, where the hook cloud will process the data, then message the restful api with the result, which will then be transmitted to the enduser [16:43] churp has joined the channel [16:44] iaincarsberg: jerrysv: artificially belateing the response, does the same thing, will less tying [16:44] AndreasMadsen has joined the channel [16:44] qbit_: if I run ldd on the node-expat.node I get this : http://sprunge.us/dJTY [16:45] qbit_: http://sprunge.us/CONQ <-- and that is the test script / error [16:45] Ko0bf4c3 has joined the channel [16:45] Ko0bf4c3 has left the channel [16:47] jondot_: broofa, thanks (im assuming otp=on the phone) [16:48] stephank has joined the channel [16:50] LuckySMack has joined the channel [16:52] warz has joined the channel [16:52] warz has joined the channel [16:53] shanebo has joined the channel [16:53] kulor-uk has joined the channel [16:54] lwille has joined the channel [16:54] mertimor has joined the channel [16:54] captain_morgan has joined the channel [16:56] bkaney_ has joined the channel [16:57] brianc1 has joined the channel [16:57] bradleymeck has joined the channel [16:57] joshfinnie has joined the channel [16:58] bradleymeck: anyone have any idea why setrlimit on data/as would fail to make a node program exit when it excedes the maximum amount? [16:58] willwhite has joined the channel [16:59] Wizek has joined the channel [16:59] kyonsalt has joined the channel [17:00] bkaney has joined the channel [17:00] tomasztomczyk has joined the channel [17:01] james has joined the channel [17:01] fb55 has joined the channel [17:02] qbit_: I think it might be a problem with my node build on openbsd [17:02] Heisenmink has joined the channel [17:02] brl4n has joined the channel [17:02] zitchdog has joined the channel [17:03] altivec has joined the channel [17:03] pauls1: anyone know how i can render an xml file with Jade? [17:04] pauls1: or just put plain xml in the file? [17:04] codatory has joined the channel [17:05] pauls1: it looks like it's stripping out the tags right now [17:05] nrstott has joined the channel [17:05] codatory has joined the channel [17:06] pauls1: er, nevermind [17:07] jibay has joined the channel [17:08] jibay has left the channel [17:08] mattgifford has joined the channel [17:08] AAA_awright: pauls1: What was the solution? [17:09] pauls1: it wasn't actually broken, it was safari rendering it strangely [17:09] djbell has joined the channel [17:09] perezd has joined the channel [17:11] kulor-uk has joined the channel [17:13] jtsnow has joined the channel [17:13] nv has joined the channel [17:15] RobWC has joined the channel [17:16] codatory has left the channel [17:24] tkaemming has joined the channel [17:25] icebox has joined the channel [17:25] dshaw_ has joined the channel [17:26] alex___ has joined the channel [17:26] tdegrunt has joined the channel [17:27] maletor has joined the channel [17:28] russell_h has joined the channel [17:29] adrianF has joined the channel [17:29] akter has joined the channel [17:29] fangel has joined the channel [17:30] synkro has joined the channel [17:30] eb4890 has joined the channel [17:31] brianloveswords has joined the channel [17:32] trose has joined the channel [17:32] mattgifford has joined the channel [17:33] ziro`_ has joined the channel [17:33] gregpascale has joined the channel [17:33] CrabDude has joined the channel [17:34] fzzzy has joined the channel [17:34] tomasztomczyk has joined the channel [17:34] thalll has joined the channel [17:34] _dc has joined the channel [17:35] JarrodBell has joined the channel [17:35] sharkbird has joined the channel [17:35] mc: isaacs: is there a way to make npm generate the dependencies portion of a package.json for me? [17:36] lietu: I'm trying to npm install socket.io to a folder that is a cifs mount, it's crashing because it fails to create a symbolic link .. any ideas how to get around that? [17:36] trotter has joined the channel [17:37] torvalamo: lietu try npm install socket.io -g [17:38] lietu: sure, that works, but it's not quite the same thing .. also I haven't yet figured out how to get require working for those things installed with -g [17:38] mattgifford has joined the channel [17:38] torvalamo: and then hard link to your work folder with "npm link socket.io" [17:38] lietu: hard link? over filesystems? [17:38] lietu: crash [17:38] torvalamo: oh [17:39] yawNO_ has joined the channel [17:39] msteinert has joined the channel [17:39] torvalamo: it's on a different filesystem [17:39] torvalamo: ? [17:39] lietu: ... well, as I said, it's a cifs mount, where-ever -g goes would also be a cifs mount, then it would also crash due to inability to create symlinks [17:39] torvalamo: a hard link isn't a sym link [17:40] lietu: I know, but npm install is trying to create a symlink [17:40] torvalamo: does it tell you for what? [17:40] lietu: or to be more specific, "npm install socket.io" [17:40] armandop has joined the channel [17:41] lietu: well the log is a bit difficult to read, but I would assume it's some file for socket.io [17:41] cognominal has joined the channel [17:41] lietu: .. I've managed to install a couple of other modules just fine [17:41] catb0t: Exception: SyntaxError: Unexpected token ILLEGAL [17:41] ioparadigm: lietu, are you using something like virtualbox to run linux/nodejs there? [17:41] EhevuTov has joined the channel [17:41] amasad has joined the channel [17:41] lietu: ioparadigm: ... what? .. I've got a machine, with node on it, and my source folder mounted over cifs from another machine [17:42] lperrin has joined the channel [17:42] lietu: a real, physical machine, as if that actually makes a difference [17:43] curtischambers has joined the channel [17:43] ioparadigm: lietu, im just asking because i've had that problem before myself at one time. [17:43] kindbeard has joined the channel [17:44] lietu: right .. well all I see is that the issue seems to be that for some reason it wants to create a symlink and fails when it can't do it, and you can't do symlinks on cifs [17:44] ioparadigm: lietu, i ended up leaving my source, nodejs, npm, and modules on the other machine, which i use samba and a network map to access that filesystem [17:44] lietu: it looks like this has something to do with "io.js" or "/___socket.io-client.npm/package/lib/socket.io-client.js" [17:44] chrispaterson has joined the channel [17:44] cognominal has joined the channel [17:44] ioparadigm: lietu, and ssh to the machine [17:44] lietu: could be it's trying to symlink one to the other [17:45] torvalamo: can you paste the error? [17:45] lietu: well, my source folder is automatically backed up from one place, and it would take somewhat considerable effort to arrange it otherwise, and I can only really mount it over cifs since I'm running winblows on the machine with the source folder .. I could work around this issue if I could just figure out what I need to do to access the modules installed with -g [17:46] mattgifford has joined the channel [17:46] lietu: I don't see how that'll help, but I can do it [17:46] torvalamo: just to see which files may be involved [17:46] amasad_ has joined the channel [17:46] kickingvegas has joined the channel [17:47] ioparadigm: lietu, well, instead of the nodejs server mounting your windows share, you can have windows mount the linux share and it will fix the problem, if thats possible, i couldnt find a solution [17:47] lazyshot has joined the channel [17:47] lietu: http://pastebin.com/4FdGXT70 [17:47] torvalamo: oh, btw.. you can still do "npm install socket.io -g" on the server and then just copy the contents of /usr/local/lib/node/node_modules/socket.io to your working_dir/node_modules/socket.io [17:48] postwait has joined the channel [17:48] lietu: can't I just configure my node to find the modules from where-ever npm install -g puts them? [17:48] torvalamo: that was the default before [17:48] TooTallNate has joined the channel [17:48] lietu: and I highly doubt it goes to /usr/local since I'm not running this as root [17:49] zanefactory has joined the channel [17:49] torvalamo: if you run npm install -g you need root [17:49] ioparadigm: lietu, if you go to / directory, and install the modules there, it will find them, it recurses backwards up to "/" looking for /node_modules [17:49] torvalamo: i think it asks [17:49] lietu: torvalamo: no, not the way I have it installed .. it installs stuff to ~/.npm [17:49] lietu: ~/.npm/socket.io/0.8.7/ [17:49] torvalamo: with -g? [17:49] lietu: oh, and /package after that [17:49] lietu: ... yes [17:50] lietu: I just installed this with nvm to a single user [17:50] torvalamo: ok well copy it from there to your project's node_modules folder [17:50] sridatta has joined the channel [17:51] ryan_stevens has joined the channel [17:51] Nassosdim has joined the channel [17:51] lietu: so why can't I just configure node to require stuff properly from npm install -g location? [17:52] torvalamo: well you can [17:52] torvalamo: if you give it the full path [17:52] slajax has joined the channel [17:52] isaacs has joined the channel [17:52] torvalamo: require('~/.npm/socket.io etc [17:52] lietu: mjeah, they're saying that you shouldn't use the stuff installed with -g directly for whatever random reasons, and saying I should use link, which of course doesn't work [17:53] lietu: well the full path isn't very portable [17:53] torvalamo: exactly [17:53] ioparadigm: lietu, you might want to carefully read http://nodejs.org/docs/latest/api/modules.html [17:53] ioparadigm: also see "Loading from the global folders" [17:54] martypdx has joined the channel [17:54] lietu: mjeah, well it says the same thing, I am highly encouraged to place my dependencies locally in node_modules folders, though it doesn't really explain why I should do that [17:54] torvalamo: http://nodejs.org/docs/latest/api/modules.html#loading_from_the_global_folders [17:54] ioparadigm: lietu, in my experience, you will need to install the modules somewhere else than on the windows share with npm, and there are ways to let node where you installed them somewhere on the native linux FS [17:54] jomoho has joined the channel [17:54] franciscallo has joined the channel [17:55] isaacs has joined the channel [17:55] lietu: torvalamo: you do know that's essentially the same link as earlier, and yes, I did read that section [17:55] dylang_ has joined the channel [17:55] pizthewiz has joined the channel [17:56] torvalamo: yes that's the same link and it seemed like you didn't [17:56] lietu: as I said, "I am highly encouraged to place my dependencies locally in node_modules folders, though it doesn't really explain why I should do that" .. but yeah, fine, I can manually cp it from the install -g location, but it feels pretty stupid [17:56] torvalamo: or you can change node_path on the machine itself [17:56] lietu: yes, I can, but I'm highly recommended to not do that [17:56] TheJH: lietu, place them in the local folder so that you can copy it to another machine and it works [17:56] deedubs: so all these people recommending you should put them in node_modules and not do anything else. What's the problem again? [17:56] jjido has joined the channel [17:57] TheJH: lietu, after all, you want software to work on othe machines, too [17:57] tablackmore has joined the channel [17:57] TheJH: lietu, also, you might want different versions of a module for different projects [17:57] lietu: well, the problem originally was that "npm install socket.io" crashed when trying to create a symlink on a cifs filesystem, and "npm install -g socket.io" and "npm link socket.io" fails 'coz it was trying to do hardlinks from one fs to another .. [17:58] TheJH: hardlinks??? [17:58] lietu: I *can* do a cp -a ~/.npm/... to my local node_modules folder, but it feels pretty stupid to manually do that [17:58] jjido has joined the channel [17:58] josh-k has joined the channel [17:58] lietu: well that's what someone said it's trying to do, the other option is that it's trying to do symlinks, which will also fails, since it's cifs [17:58] ioparadigm: lietu, if you try to use npm inside a windows share it wont work, so you must use npm inside a folder that is native linux FS, then copy them over, or you can mount linux FS and access your source there instead of having linux mount windows share [17:58] isaacs: lietu: do not do that. [17:58] lietu: isaacs: do what? [17:59] isaacs: lietu: ~/.npm is a cache folder [17:59] tablackmore: I'm having a problem with npm when I do npm install anyModule in a directory all works but the path it places the modules in is all messed up i.e. ../../../../node_modules/express [17:59] isaacs: lietu: it's not an installation [17:59] lietu: oh [17:59] TheJH: tablackmore, delete that folder [17:59] isaacs: tablackmore, lietu: please run `npm help folders` and read through it [17:59] isaacs: tablackmore: delete that node_modules folder, or create a package.json in your project first. [17:59] hipsters_ has joined the channel [17:59] isaacs: tablackmore: like git, npm walks up to the highest node_modules folder or package.json it finds, and uses that as the local root [17:59] hackband has joined the channel [18:00] robi42 has joined the channel [18:00] tablackmore: @isaacs great thanks for the explanation gotcha [18:00] dshaw_ has joined the channel [18:00] isaacs: lietu: you can set the NODE_PATH environment variable, but that's not recommende.d [18:00] lietu: ok, so it's at ~/.nvm/v0.6.7/lib/node_modules/ then [18:00] isaacs: lietu: local package installs are better. [18:00] isaacs: lietu: it's better to just install it in your app's node_modules folder. [18:01] torvalamo: he cant do it automatically because of cifs [18:01] lietu: yeah, I read that, I can do it, but that it's highly not recommended .. but again [18:01] lietu: ... the issue is that I'd have to manually cp it [18:01] lietu: it's not really THAT big of an issue, just a big annoyance, for one, whatever it expects to be symlinked really isn't [18:01] sridatta has joined the channel [18:01] sarlalian has joined the channel [18:02] te-brian has joined the channel [18:02] lietu: ah, and well, cp -a fails because it's trying to create symlinks .. cp -aL seems to work though [18:02] magnetik_ has joined the channel [18:02] isaacs: lietu: you should not have to manually cp it. [18:02] torvalamo: isaacs: http://pastebin.com/4FdGXT70 his error log [18:03] isaacs: lietu: what is it you're tryign to do? either npm can't do it, shouldn't do it, or you're just lacking the proper command, i'm guessing. [18:03] mattgifford has joined the channel [18:03] ioparadigm: lietu, i dont think anyone can help you, you cant make a symlink in windows share, try yourself [18:03] torvalamo: he's trying to npm install in his app folder, but that app folder is on a cifs mount [18:03] isaacs: ugh. unknown error. [18:03] isaacs: what's cifs? [18:03] mc: samba [18:03] mc: windows share [18:03] torvalamo: like an internet mount thing [18:03] isaacs: ohhhh… ok [18:03] isaacs: yeah, that will not work. [18:04] lietu: ... ok, I've got a project folder, at ~/source/foo/ .. ~/source is a cifs mount, I'm trying to "npm install socket.io", which is trying to create two symlinks, which will fail, because it's cifs that doesn't support them .. also, "npm install -g socket.io" & "npm link socket.io" will fail for the same reason [18:04] ericmuyser has joined the channel [18:04] isaacs: lietu: the problem is that your filesystem is a lying liar. [18:04] isaacs: it says it's unix, but it's actually windows. [18:04] isaacs: so it's trying to do things that are supported in unix, but then they fail. [18:04] markq: :O [18:04] lietu: well, no-one is really asking it ;) [18:04] isaacs: npm asks process.platform [18:05] torvalamo: oh snap [18:05] isaacs: which exposes us to this problem. [18:05] isaacs: right? [18:05] isaacs: because platform !== fs [18:05] torvalamo: get yer pitch forks and yer torches [18:05] markq: unix wannabe [18:05] lietu: so you're saying if I mount a fat32 at /, it will work? ;) [18:05] markq: windows ain't part of da club [18:05] sarlalian: fat32 doesn't support symlinks, but ntfs does [18:05] ioparadigm: lietu, that is why if you mount linux share instead, you can do all unix things you want in your source folder, like create the symlinks and npm will work, that is the solution i found [18:05] lietu: neither does over cifs [18:06] isaacs: lietu: if it's running non-windows, it assumes that symlinks are supported. [18:06] lietu: mjeah [18:06] sarlalian: technically cifs does, but its somewhat new, and not included in samba last I checked [18:06] TheIronWolf has joined the channel [18:06] isaacs: lietu: it'd be nice if maybe it just handled this error better, and symlink failures were swallowed somehow. [18:06] isaacs: lietu: but i dunno. [18:06] torvalamo: is there no way to check for filesystem instead of platform? [18:06] isaacs: that sounds like a bad idea, now that i say it. [18:06] isaacs: torvalamo: the only reliable way to know if symlinks are supported is to try to make one. [18:06] lietu: torvalamo: manually parsing "mount", maybe? ... but I doubt it [18:07] isaacs: and, they ARE supported on windows, just in a very wildly different way. [18:07] torvalamo: yeah but it's not just symlinks [18:07] isaacs: exactly [18:07] isaacs: lietu: can you install in a normal folder? ie, not a cifs samba mount? [18:07] lietu: mjeah, I've used mklink a few times on ntfs, it's always given me severe headaches [18:08] patcito has joined the channel [18:08] stelleg has joined the channel [18:08] lietu: well, theoretically I could, of course, however I don't want to, since my source folder is automatically backed up from the windows machine, with a service for which I have a single-machine license [18:08] torvalamo: windows symlinks arent links at all, theyre just normal files with a path in them... which is so stupid it's not even funny :P [18:08] dilvie has joined the channel [18:08] MooGoo: you seem to be thinking of Shortcuts [18:09] torvalamo: no [18:09] torvalamo: links too [18:09] lietu: but yeah, apparently I have two options, cp -aL from the ~/.nvm/... -folder to my local node_modules, or configure NODE_PATH to search the ~/.nvm/... folder ... which would you recommend? ;) [18:09] MooGoo: even the super new ones? [18:09] torvalamo: dunno, what are the super new ones? [18:09] lietu: mklink [18:09] torvalamo: hm [18:09] MooGoo: ntfs symbolic links [18:09] torvalamo: never even seen one [18:09] torvalamo: :P [18:09] MooGoo: and before that ntfs junction points [18:09] MooGoo: which are somewhat more limited [18:09] `3rdEden has joined the channel [18:10] khrome has joined the channel [18:10] lietu: mainly they seem to break things at some point, and cause severe issues when you accidentally forget something is an ntfs link [18:10] torvalamo: this linking talk got me to thinking... isn't there a linking way to make environment paths a bit more efficient? [18:10] MooGoo: course no one ever uses these things it seems [18:10] lietu: MooGoo: mainly because they're pretty broken [18:11] ioparadigm: lietu, ~/.nvm/? [18:11] lietu: I've tried to use them, now I've got files and folders I can't delete because they're "symbolic links" that point to "nowhere" since I moved the place they were pointing to [18:11] torvalamo: hahaha [18:11] MooGoo: heh...Windows has a knack for dissallowing you to delete your own files [18:12] lietu: ioparadigm: I've used "nvm install" to install node, locally, somewhere under ~/.nvm .. npm install -g seems to install stuff under ~/.nvm/..../node_modules/ [18:12] mattgifford has joined the channel [18:12] torvalamo: so that may explain my undeletable old programs then [18:12] torvalamo: or their folders [18:12] lietu: oh yeah, windows uses that internally, for some files under \windows and \program files etc [18:12] ioparadigm: lietu, ah, ive never even heard of that [18:12] FIQ has joined the channel [18:13] lietu: oh [18:13] MrTopf has joined the channel [18:13] lietu: I think it's pretty new [18:13] lietu: I only found it a couple of months ago iirc [18:13] lietu: the only easy and working way to install node, that I've found [18:13] ioparadigm: lietu, node is off the chain, i cant keep up [18:13] lietu: just "nvm install v0.6.7", "nvm use v0.6.7" and "nvm alias v0.6.7 default" and it's done [18:14] torvalamo: so essentially they implemented symlinks and made them hidden and painful instead of just putting them out there in plain sight being what they are [18:14] EyePulp: how do nvm and nave compare? [18:14] lietu: and iirc it was a oneliner to install nvm, maybe add one more line to bashrc or something to make it work permanently [18:14] ioparadigm: how do you even choose from 20 templating engines :( [18:14] isaacs: ioparadigm: you just use html. [18:14] isaacs: ;) [18:14] lietu: EyePulp: sorry, dunno [18:14] isaacs: lietu: about this symlink thing... [18:14] djazz has joined the channel [18:14] lietu: isaacs: yeah? [18:15] isaacs: lietu: it looks like maybe we can just skip over that if it fails in the build step. [18:15] isaacs: lietu: however, if you depend on the local bin files, then ti'll fail. [18:15] jxson has joined the channel [18:15] isaacs: lietu: and i'm not very enthused aboutthe prospect of setting up shims for that stuff. [18:15] isaacs: though, we do have to for windows anyway. [18:16] isaacs: lietu: can you do your npm installing in windows-native? [18:16] lietu: well, I could try, but last I heard node isn't that good in windows, so I've not even tried [18:17] gr-eg has joined the channel [18:20] Margle has joined the channel [18:21] t0mmyvyo has joined the channel [18:21] lietu: erm, yeah .. the installer says all I need to do is to open a command prompt and run "node" for it to work .. it doesn't, it's not in path, or something [18:21] jgornick has joined the channel [18:21] ioparadigm: lietu, i really think its nice to create a samba share of / (the entire linux FS) then create a network map from windows, say X: and your backup program could access your source to back it up there [18:21] StanlySoManly has joined the channel [18:22] ioparadigm: from there* [18:22] robotmay has joined the channel [18:22] Venom_X_ has joined the channel [18:22] lietu: ew, no .. I could theoretically consider doing a samba share from /home/lietu/source and map it in windows, but I've got bad experience with using anything over the network in windows .. linux can do it much better, in windows you end up with your IDEs freezing randomly, etc. [18:23] secoif: does anyone have a recommendation on the best way to require a private repo without having to commit *my* github credentials into a ssh url in the package.json? [18:23] ioparadigm: i havent had a problem works great on local network, very fast, you just install samba, use this smb.conf http://pastebin.com/XKStps5n and use smbpasswd -a to create user, windows will auto discov [18:23] lietu: at some point I'll set up a NAS box with both NFS and Samba access, use most of my files from that instead of from a windows machine, but that's gotta wait at least for the hdd prices to come back down ;) [18:23] benlyn has joined the channel [18:23] booyaa|hs: do any people who work for a node paases? [18:24] lietu: I've installed samba quite many times thanks [18:24] booyaa|hs: i'm hoping to get some more freebie accounts to host baconsmart (my node paas version tracker) [18:24] jerrysv: booyaa|hs: try hitting #nodejitsu [18:24] bradleymeck: booyaa|hs, hmmm? [18:24] booyaa|hs: jerrysv: already go those guys ;) [18:24] booyaa|hs: they were first people to host it [18:25] booyaa|hs: http://booyaa.github.com/baconsmart/ [18:25] dwhittle has joined the channel [18:25] booyaa|hs: bradleymeck: ^^^ [18:25] bradleymeck: aaah [18:25] booyaa|hs: i'm a bit too dim to work out how to turn that github url into a subdom on my own domain booyaa.org [18:25] bradleymeck: booyaa|hs are you going to do anything to check when there are multiple versions supported? [18:25] ioparadigm: lietu, well, not sure why you are so persistent to keep your source on your windows FS [18:26] booyaa|hs: bradleymeck: yeah... you guys are going to go to v0.6 soon right? [18:26] lietu: because I've got enough experience with not doing that ;) [18:26] lietu: ... if it would work well otherwise, I would happily not do it, it does not work as well as having it on the windows fs ;) [18:26] ioparadigm: lietu, what is the different, linux mount windows or vice versa [18:26] bradleymeck: booyaa|hs its going through yet another UA testing phase /cry [18:26] booyaa|hs: only thing i've left off was aws and heroku's roll your own version of node. i'm covering their cedar stack [18:26] bradleymeck: but yes [18:26] lietu: that linux mounting it from windows works better, than windows mounting from linux [18:26] secoif: ahh, I believe my solution is http://shadow-npm.net/ [18:27] booyaa|hs: bradleymeck: yeah so long as i can have another app tracking diff version... does raise an interesting point though... [18:27] mattgifford has joined the channel [18:27] armandop has left the channel [18:28] lietu: ioparadigm: heck, the ideal solution would be no windows at all, but I do have a windows machine, and I hate dualbooting more than most other things ;) [18:28] cognominal_ has joined the channel [18:30] TimTim has joined the channel [18:30] deedubs: booyaa|hs: if you want help with the cname stuff PM me [18:30] mattgifford has joined the channel [18:30] booyaa|hs: deedubs: sure thanks mano just wanna check what i did wrong. [18:30] zitchdog has joined the channel [18:31] ioparadigm: lietu, your gonna like being able to mount / on windows as say X: or whatever, you can easily access /etc in your text editor for instance, instead of using command line to edit files [18:31] jomoho2 has joined the channel [18:32] ioparadigm: lietu, there is really no speed different or security concerns there on local network [18:32] mattgifford has joined the channel [18:32] raww has joined the channel [18:33] TheJH: lietu, virtualbox? [18:33] lietu: TheJH: no [18:33] ioparadigm: lietu, so basically your linux FS is simply like another partition on the windows box [18:33] altivec has joined the channel [18:34] davidbanham has joined the channel [18:34] lietu: ioparadigm: I find it easy enough to edit any files in /etc, and I know exactly what you mean .. but as I've said repeatedly already, there are some issues with using samba shares in windows, speed, latencies, IDEs randomly freeze, etc. .. windows mounting stuff over samba just isn't very stable, but once you configure the windows a bit, linux mounting from samba is stable enough [18:34] level09 has joined the channel [18:34] lietu: it might be fast enough and stable enough for you, it is not for me [18:34] mAritz has joined the channel [18:35] jtsnow has joined the channel [18:36] lietu: I could even run the same IDE on the linux machine directly, it's just two desktop machines side by side, one mounting one folder over samba from the other .. but I prefer the keyboard attached to the windows machine, and I've got some issues with sharing the kbd&mouse over synergy [18:36] georgeps has joined the channel [18:36] mAritz has joined the channel [18:36] jomoho has joined the channel [18:36] CrabDude: Just out of curiosity, does anyone know of any modules that depend upon the require system's caching (require.cache) in order to share a common registry of say event listeners or something? [18:37] bradleymeck: CrabDude several depend on the fact that cache will give a singleton [18:37] blup has joined the channel [18:38] CrabDude: bradleymeck: Sure. =) names? [18:38] bradleymeck: winston and almost all other loggers, most flatiron apps, express due to configuration (unless explicitly coded otherwise), thats all i can think of all top of my head [18:39] jbpros has joined the channel [18:39] flip_digits has joined the channel [18:39] arcanis has joined the channel [18:40] te-brian: for primarily node.js / mongodb stacks.. what would you recommend learning.. Chef or Puppet? [18:40] nym: this aol chat room is overrated [18:40] dyakovlev has left the channel [18:40] secoif: CrabDude mongoose [18:41] CrabDude: bradleymeck: In what ways do they depend upon being require cache / Singletons? How do they deal with multiple versions / multiple includes? [18:41] CrabDude: if say, they're not a top-level dependency [18:43] bradleymeck: CrabDude, they will duplicate themselves so if mynodemodule/node_modules/a and mynodemodule/node_modules/helper/node_modules/a grab different versions and helper configures / monkey patches a, mynodemodule's a will not see the change [18:44] secoif: CrabDude I don't believe there is a way to share data via cache if they're not on the same level [18:44] mikeal has joined the channel [18:44] dgathright has joined the channel [18:44] secoif: CrabDude I think that's a limitation of the nodes' require [18:44] bradleymeck: this becomes really bad if you insist on monkey patching things instead of using a plugin library like broadway [18:44] secoif: path. [18:44] jerrysv: CrabDude: https://github.com/JerrySievert/global makes explicit use of the caching [18:45] CrabDude: bradleymeck: secoif: okay, thx. That's more or less what I assumed, but I'm solving this problem in the browser and James Burke pointed out that some browser-side modules depend upon this, and looking to node for inspiration, I was trying to see if anyone architected their modules this way, or if it was simply a broken architecture to be discouraged. [18:46] curtischambers_ has joined the channel [18:46] geoKe has joined the channel [18:47] bradleymeck: CrabDude, discourage it, make them export an object and anything outside of that object should be considered volatile, an unfortunate truth if you support other people's code [18:47] stelleg has joined the channel [18:47] githogori has joined the channel [18:48] CrabDude: jerrysv: Isn't this intrinsically less global than the host global b/c it'll be cached based on path? [18:48] johnjohn101 has joined the channel [18:48] liar has joined the channel [18:48] BillyBreen has joined the channel [18:48] jerrysv: yes. it's also a very bad abuse of caching to prove a point [18:49] CrabDude: bradleymeck: I wonder, if a module author did want a single registry, if there was a non-global way to do this in memory (might be a stupid question...) [18:49] Carmivore has joined the channel [18:50] CrabDude: jerrysv: oh. ha. sorry, thought it was serious. [18:50] jerrysv: CrabDude: not everything i do is serious, just some of it :) [18:50] CIA-101: node: 03Ryan Dahl 07v0.6 * re6a30bd 10/ (src/node_buffer.h src/stream_wrap.cc): [18:50] CIA-101: node: Fix #2473 [18:50] CIA-101: node: Tested in production. [18:50] CIA-101: node: See also http://code.google.com/p/v8/issues/detail?id=1889 - http://git.io/6Bn4eA [18:51] Xiphias3 has joined the channel [18:52] whitman has joined the channel [18:52] aaronmcadam has joined the channel [18:53] qsobad has joined the channel [18:56] brianloveswords has joined the channel [18:56] geoKe has left the channel [18:56] miccolis has joined the channel [18:56] saesh has joined the channel [18:57] secoif: CrabDude what are you trying to solve? [18:57] booyaa|hs: is there a better way of getting the filename of the running script other than process.argv? right now i have to check if argv[0] is node and then check [1] for the actual script name [18:57] eee_c has joined the channel [18:57] booyaa|hs: argv[0] will only be the script name if it's shebanged [18:57] dylang has joined the channel [18:57] secoif: booyaa|hs isn't it liek __filename or something [18:58] eignerchris_ has joined the channel [18:58] sdwrage has joined the channel [18:58] secoif: booyaa|hs http://nodejs.org/docs/latest/api/all.html#__filename [18:58] CarterL has joined the channel [18:58] secoif: booyaa|hs use path.basename(__filename) to just get the filename [18:59] devongovett has joined the channel [18:59] camerin has joined the channel [19:00] booyaa|hs: secoif: may your supply of hookers and coke never dry up! [19:00] booyaa|hs: secoif++ [19:00] catb0t: secoif now has 1 beer [19:00] camerin has left the channel [19:00] isaacs: mc: no, there is not a way to have npm spit out the dependencies in a nice little json object [19:00] secoif: booyaa|hs :D what are you actually trying to check [19:00] isaacs: mc: it'd be nice to have a way to do that. should be pretty straightforward. [19:01] mc: it would be somewhat convenient [19:01] isaacs: mc: yeah [19:01] isaacs: people ask for it often [19:01] isaacs: just too easy to do by hand, is the problem :) [19:01] secoif: mc you can use npm install --save to build the deps in package.json as you go [19:01] olegp has joined the channel [19:01] mc: yeah, most of the time it really is [19:01] isaacs: you can pipe `npm ls -lp` to awk -F: [19:01] booyaa|hs: secoif: i'm going to monitor a dropbox dir for new js scripts (so i can jshint them) thought it might be a good idea exclude certain scripts. [19:02] erikzaadi has joined the channel [19:02] isaacs: and then munge it up and get most of the way there. [19:02] mc: isaacs: that's more or less what we did [19:02] mc: a little sed magic and called it a day [19:02] booyaa|hs: obvs my urnning script wouldn't live in this dropbox dir that would be daft, but no harm in avoiding future unplanned usecases [19:02] isaacs: mc: yep. [19:02] isaacs: mc: that's the state of the art :) [19:02] jkridner__ has joined the channel [19:03] curtischambers has joined the channel [19:03] mc: now i'm back to figuring out how to buffer this writestream and make it not choke when i throw tons of data at it [19:03] secoif: booyaa|hs what if someone wants to jshint a file with the exact same name as your app? [19:04] secoif: booyaa|hs also, perhaps YAGNI [19:04] secoif: booyaa|hs "If you need it, you can put it in later." [19:05] cognominal has joined the channel [19:05] booyaa|hs: true, there's always a possibility i might use it on the script [19:05] brianloveswords has joined the channel [19:05] booyaa|hs: secoif: bit of background i'm writing code on my ipad using textastic.it's got no linting tools which makes writing js for a noob fun. [19:05] secoif: booya, you perhaps check that require.main != the file you're testing for [19:05] jtrudeau has joined the channel [19:06] booyaa|hs: i can upload files to said dropbox dir. [19:06] firebalrog has joined the channel [19:06] secoif: booyaa|hs is there no client-side linter? [19:07] CrabDude: secoif: I'm building a browser-side package manager and I'm duplicating the multi-version cache-on-path dependency resolution of node [19:07] msch: are you guys reading http://news.ycombinator.com/item?id=3448027 ? [19:07] fbartho has joined the channel [19:07] booyaa|hs: secoif: it's underdiscussion.. atm [19:08] booyaa|hs: secoif: plus i can prowl the errors back to my iphone [19:08] digilink has joined the channel [19:08] sebastianedwards has joined the channel [19:08] booyaa|hs: yeah it's a bit over hacked but having used jshint in vim. it seems insane not use it if i can [19:08] firebalrog: i am having trouble with an app that uses fswatcher and runs fine from command prompt ie: node app.js but when I run it with "forever app.js" I am getting an exception on the fswatcher anyone have any thoughts [19:08] booyaa|hs: HAEDOKEN! [19:08] brianloveswords has joined the channel [19:08] booyaa|hs: sorry firebalrog natural response [19:09] vguerra has joined the channel [19:09] booyaa|hs: secoif: i did try using jshint website but the editor doesn't like ipads [19:09] dudeinthemirror has joined the channel [19:09] booyaa|hs: i.e. couldn't trigger paste [19:10] kuebk has joined the channel [19:10] Guest44674 has joined the channel [19:10] secoif: CrabDude interesting. why not add to something like requirejs? [19:10] firebalrog: maybe found it uses a relative path in fswatcher might not be the same when run from the init.d [19:10] CrabDude: secoif: b/c requirejs is a module loader not a package manager =) [19:11] digilink_ has joined the channel [19:11] secoif: CrabDude sure. though the multi-version cache-on-path stuff is part of node's module loader, not it's package manager [19:11] mandric has joined the channel [19:11] davetayls has joined the channel [19:12] CrabDude: secoif: yup, but a package manager is coupled with the underlying module system [19:12] salva has left the channel [19:12] arturadib has joined the channel [19:12] saikat has joined the channel [19:12] Cromulent has joined the channel [19:12] secoif: booyaa|hs jshint is open source, you could plug it into your own ipad-paste-enabled form https://github.com/jshint/jshint/ [19:12] rgl has joined the channel [19:13] CrabDude: secoif: I actually don't remember how npm worked prior to node_modules. I assume it did a lot of require.paths [19:13] Cromulent has joined the channel [19:14] firebalrog: that was it don't use relative paths when you use forever and init.d in your scripts [19:14] saesh has joined the channel [19:16] josh-k has joined the channel [19:16] thax has joined the channel [19:16] maletor has joined the channel [19:18] secoif: going to bed. 5am = wtf am I doing. night. [19:18] booyaa|hs: secoif: this is a point, duh might need to sweet talk the the jsfiddle guys to see what their secret sauce is [19:18] booyaa|hs: secoif: night! thanks for the input [19:18] secoif: booyaa|hs np [19:19] CrabDude has left the channel [19:19] CrabDude has joined the channel [19:20] jetienne_ has joined the channel [19:20] ianward has joined the channel [19:20] level09 has joined the channel [19:20] liar has joined the channel [19:22] brianloveswords has joined the channel [19:22] okCPU_ has joined the channel [19:22] Leemp2 has joined the channel [19:22] okCPU_: does setTimeout block I/O? [19:23] davidwalsh has joined the channel [19:23] joshsmith: this is amazing: https://github.com/DanielRapp/twss.js [19:23] Fuu has joined the channel [19:24] broofa has joined the channel [19:24] Wizek has joined the channel [19:24] torvalamo: setTimeout doesn't block anything [19:25] torvalamo: ever [19:25] torvalamo: the callback you supply to setTimeout might though [19:25] perezd has joined the channel [19:25] torvalamo: depends what it is [19:26] Construct has joined the channel [19:28] qsobad has joined the channel [19:28] eignerchris has joined the channel [19:29] kuebk has joined the channel [19:30] springmeyer has joined the channel [19:31] jomoho has joined the channel [19:33] Shaunzie has joined the channel [19:35] yozgrahame has joined the channel [19:35] xSmurf: hey all, anyone uses Jasmine? shouldn't a test end is an expect fails? [19:36] xSmurf: for example I have a test which runs an http request and if expect(res.statusCode).toEqual(200) fails it shouldn't keep on running tests which require the body [19:36] larsschenk1 has joined the channel [19:38] BillyBreen has joined the channel [19:38] TheFuzzb_ has joined the channel [19:39] liar has joined the channel [19:40] gregpascale has joined the channel [19:40] slaskis has joined the channel [19:41] JesusRosso has joined the channel [19:41] cognominal has joined the channel [19:42] TheFuzzball has joined the channel [19:43] jetienne_ has joined the channel [19:45] brianloveswords has joined the channel [19:45] githogori has joined the channel [19:45] TooTallNate: can somebody on OS X please try compiling this sample gyp program? [19:45] TooTallNate: https://gist.github.com/1590684 [19:46] TooTallNate: I'm trying to determine whether the 'cflags' parameter is broken on OS X or what... [19:46] jsurfer has joined the channel [19:47] bicranial_ has joined the channel [19:47] adambeynon has joined the channel [19:48] Poetro has joined the channel [19:48] carlyle has joined the channel [19:49] Wa has joined the channel [19:49] mjr_ has joined the channel [19:50] CIA-101: node: 03Ryan Dahl 07master * rd4ee61f 10/ (5 files): Add failing test-isolates2.js - http://git.io/NJpx8g [19:51] arlolra: TooTallNate: https://gist.github.com/1590800 [19:51] TooTallNate: arlolra: thanks, so that's a 2nd confirmation [19:52] TooTallNate: looks like it's busted in gyp :\ [19:52] okCPU_ has left the channel [19:53] davetayls has joined the channel [19:54] herbySk has joined the channel [19:54] lowerkey has joined the channel [19:56] Shaunzie has joined the channel [19:56] insin has joined the channel [19:56] lowerkey: Greetings all, I have a problem running code from the guide: http://pastebin.com/RA5uNJna http://pastebin.com/rMa2p4u8 The req.body variable isn't set [19:56] lowerkey: The express guide that is [19:57] stagas: lowerkey: put the app.use stuff above the routes [19:57] lowerkey: stagas: thanks! [19:58] SvenDowideit has joined the channel [19:59] stagas: lowerkey: first call to app.get/post etc does app.use(app.router) so the routing was done before the rest middleware [19:59] sand^ has joined the channel [19:59] mehlah has joined the channel [20:01] mikeal has joined the channel [20:01] altivec has joined the channel [20:01] Poetro has joined the channel [20:01] kevwil has joined the channel [20:01] CIA-101: node: 03Ben Noordhuis 07v0.6 * r0ad2717 10/ src/node_zlib.cc : Make sure that zlib contexts are not garbage collected when busy - http://git.io/FTSzBw [20:02] CIA-101: node: 03Bert Belder 07v0.6 * r2d8af39 10/ src/node_zlib.cc : Fix memory leak in node_zlib - http://git.io/NylRnQ [20:02] Fuu has joined the channel [20:04] CIA-101: node: 03Ryan Dahl 07master * re1b829d 10/ (2 files): Add broken test-isolates3.js - http://git.io/gCGb6w [20:06] redir has joined the channel [20:06] josh-k has joined the channel [20:06] kmiyashiro has joined the channel [20:07] djazz has left the channel [20:07] jbpros has joined the channel [20:07] gravem has joined the channel [20:09] gravem: hi guys ... anyone have any tip on how to test eventemitter "subclasses" with vows? [20:09] wssr has joined the channel [20:10] robi42 has joined the channel [20:10] CrabDude has joined the channel [20:12] brngardner has joined the channel [20:12] yozgrahame has joined the channel [20:13] RexM has joined the channel [20:15] netmercury has joined the channel [20:15] isaacs: CrabDude: yes, it did a lot of require.paths, symlinks, and shims. [20:15] isaacs: CrabDude: it was a mess. [20:15] yawNO has joined the channel [20:16] CrabDude: isaacs: I find the npm / require.paths => npm / node_modules evolution to be rather analogous to the needs of the browser [20:18] myrkiada has joined the channel [20:20] jbpros_ has joined the channel [20:20] GrizzLyCRO has joined the channel [20:20] jomoho2 has joined the channel [20:20] jimt has joined the channel [20:21] rgl has joined the channel [20:21] maushu has joined the channel [20:22] herbySk has joined the channel [20:22] netmercury has joined the channel [20:22] Fuu has joined the channel [20:24] emilsedgh: guys, i've written a very simple SOCKS5 server using node. do you think its worthy of being shared? (not a lib just an application. also has no great code. its my first node.js app) [20:24] khrome has joined the channel [20:24] zomg: If you think someone could find it useful, sure why not [20:25] Margle has joined the channel [20:25] tkro has joined the channel [20:25] pV has joined the channel [20:26] TypeFS has joined the channel [20:26] kuebzky has joined the channel [20:27] ryanrolds_w: I'm driving the other developers crazy. Every type of node instance is named after a type of flat bread. [20:27] ryanrolds_w: the names so far are flatbread, pita, naan [20:28] zomg: One of the less harmful ways to make other developers crazy [20:28] zomg: =) [20:28] mandric has joined the channel [20:29] zomg: I was just ranting elsewhere about how my coworkers drive me crazy because they don't bother (yes, they could but they won't) to write proper code [20:29] hz has joined the channel [20:29] torvalamo: a system at work is called K2, and the login system is called sherpa [20:30] braoru has joined the channel [20:30] wdperson has joined the channel [20:30] torvalamo: i suspect there were other systems connected to this, but it's old and most of it has been replaced [20:31] torvalamo: (K2 is a mountain) [20:31] richardr has joined the channel [20:31] torvalamo: for those who didn't get it [20:31] jesusabdullah: sherpa/ Nice [20:31] bnoordhuis: zomg: proper code is highly overrated [20:31] bnoordhuis: where's the job security in that? [20:31] raingrove: a company i was doing consulting work had its computers named after famous b*tches. like typhoid-mary and elizabeth-bathory. [20:33] torvalamo: what would be cool is name them after random cities, so it looks like a world wide network [20:33] torvalamo: while in fact it's just next to you [20:34] zomg: bnoordhuis: probably in having written something that is not a steaming pile of shit and actually making a profit instead of fixing the aforementioned [20:34] zomg: =) [20:34] torvalamo: the network admins would be talking about berlin and tokyo and everyone else would have no fucking clue [20:34] mmalecki: 'hey, did you get Berlin down?' [20:34] mmalecki: this may get you in trouble ;) [20:34] bergie has joined the channel [20:35] louissmit has joined the channel [20:35] zomg: Haha [20:35] zomg: I would name things like that on purpose [20:35] zomg: for fun [20:35] jesusabdullah: I saw a youtube show once where the it department named a printer after a porn star [20:35] jesusabdullah: I think it was God, Inc? [20:36] jesusabdullah: it's actually pretty fun, but short [20:36] torvalamo: 'i cant find sacramento' [20:36] zomg: When I was contracting at Nokia they had pretty random names for the meeting rooms in the building [20:36] zomg: like "Enter" [20:36] zomg: I took two post it notes and fixed it so it says "USS Enterprise" [20:36] jesusabdullah: My computers are named after pokemon [20:36] tristanpemble has joined the channel [20:36] jesusabdullah: ALTARIA! GO! [20:36] tristanpemble has left the channel [20:37] tristanpemble has joined the channel [20:37] larsschenk1 has left the channel [20:37] zomg: My old intel celeron 300mhz w/ 64mb ram dedicated server box was called Skynet [20:37] zomg: Skynet had a hard disk failure. End of story [20:37] jesusabdullah: idea: Build a tool that names your cloud provisioned computers using the Dwarf Fortress dwarven naming algorithm [20:37] zomg: :D [20:38] benvie: netflix has all their conference rooms names after movie heroes and villians [20:38] benvie: like one's named batman [20:38] zomg: jesusabdullah: I second that! [20:38] joshsmith: anyone here use Mocha to unit test? [20:38] zomg: benvie: awesome :D [20:38] chilts: mmalecki: one time one of the sysadmins said "Why is Tracy so f*ck*ng stupid?", just as Tracey walked in :) [20:38] chilts: Tracey=the server :) [20:38] chilts: wait, no 'e' [20:38] mmalecki: chilts: lol [20:39] zomg: At Tieto (big finnish IT house), I was told, they name their meeting rooms with "high flying names" [20:39] zomg: such as Hollywood [20:39] tristanpemble: I have a node service that is exiting unexpectedly without any exceptions. I've tried running in debug and I'm not getting anywhere, does anyone have any suggestions? [20:40] torvalamo: our meeting rooms are named after different types of fly lure (because the company that owned the building(s) before was a huge manufacturer of said items), so one is called green highlander, and another is grizzly king, etc [20:40] tvw has joined the channel [20:41] mmalecki: zomg: "going to hollywood, brb" [20:41] TheJH: tristanpemble, there was a thread about it on the ML [20:41] TheJH: tristanpemble, some timing issues [20:41] zomg: mmalecki: yep, we had a meeting at hollywood once :D [20:41] monokrome has joined the channel [20:41] tristanpemble: TheJH: thanks, I'll look for that [20:41] zomg: or.. in hollywood =) [20:41] torvalamo: is there one called "the council"? [20:42] torvalamo: or the citadel even [20:42] torvalamo: congress? [20:42] torvalamo: white house? [20:42] torvalamo: :P [20:43] mmalecki: 'we have a party at white house today, drop by' [20:43] rgl has joined the channel [20:43] mmalecki: sounds so badass [20:44] torvalamo: we're meeting in the white house, going to discuss berlin [20:44] yozgrahame has joined the channel [20:44] pickels_ has joined the channel [20:44] mmalecki: lol [20:45] zomg: Should name them after old video games [20:45] zomg: "Bad Dudes" [20:45] zomg: Or maybe those should be team names, but only names which imply more than one something [20:45] charlenopires has joined the channel [20:45] torvalamo: wanna hear the best team name ever? (my team) [20:45] torvalamo: fluffy kittenz [20:45] torvalamo: OH YEAH [20:45] zomg: haha [20:46] monokrome has joined the channel [20:46] torvalamo: all guys btw [20:46] zomg: me and our graphics guy's team in our company NHL 12 league was called Japanese Punk Kittens [20:46] sveimac has joined the channel [20:46] netmercury has joined the channel [20:46] zomg: because I speak some japanese and he likes punk. I don't know where the kittens came from [20:46] torvalamo: the internet [20:46] torvalamo: no doubt [20:46] zomg: Yeah [20:46] daynier has joined the channel [20:47] daynier: very cool [20:47] ritch has joined the channel [20:47] daynier: Hello. Can anyone here answer a question about vm in node? [20:48] torvalamo: ask it and we will see [20:48] daynier: okay [20:48] daynier: I'm trying to catch error exceptions. [20:48] daynier: I'm going nuts here. [20:49] daynier: var script = require('vm').createScript('var a=1; forEach()'); [20:49] geoKe has joined the channel [20:50] daynier: try { script.runInNewContext({'console':console}) } catch(err) { sys.error(err); } [20:50] yozgrahame has joined the channel [20:50] zomg: Oh neat, that vm module thing can be used to sandbox JS? [20:50] daynier: I can catch syntax errors but not that forEach [20:50] daynier: yeah [20:50] daynier: running a web server with it [20:51] chrisdickinson: daynier: you're looking to catch runtime errors? [20:51] dob_ has joined the channel [20:51] daynier: No [20:51] zomg: Once upon a time I hacked Rhino so I could safely run JS in it. It was scary and probably not even properly sandboxed =) [20:51] bartt has joined the channel [20:51] zomg: (then I got bored and forgot about the project I was using it for) [20:51] daynier: I can catch runtime errors [20:52] chrisdickinson: daynier: that forEach would probably be a runtime error. [20:52] daynier: but I have to be now fallback to using process.on('uncaughtException', handleError) [20:52] geoKe has joined the channel [20:52] chrisdickinson: (assuming it's causing error by wont of being "undefined" when called) [20:52] torvalamo: so the reference error there is caught by uncaught exception but not the catch on that line? [20:52] daynier: This doesn't provide me the access to the request object that the error was caught on [20:53] daynier: yeah [20:53] daynier: its strange. [20:53] monokrome has joined the channel [20:53] geoKe has joined the channel [20:53] daynier: I've been looking into vm's error handling but its pretty limited [20:53] torvalamo: is runInNewContext async? [20:53] torvalamo: that would explain it [20:53] daynier: hmm, good point. [20:54] chrisdickinson: it's not. [20:54] chrisdickinson: what version of node? [20:54] eignerchris has joined the channel [20:54] daynier: latest build [20:54] shinuza has joined the channel [20:54] chrisdickinson: huh. [20:55] chrisdickinson: i'm on 0.6.3, and the try/catch is catching the reference error in my repl. [20:55] daynier: sorry, 0.4.9 [20:55] daynier: yeah, I'll upgrade. [20:55] daynier: Let me try it on this box and see how it handles. [20:56] chrisdickinson: daynier: even works on my copy of 0.4.11. [20:56] daynier: Whats the latest working version on ubuntu? [20:56] torvalamo: any version [20:57] chilts: daynier: I have 0.6.7 running here [20:57] chilts: ACTION uses nvm to upgrade pretty quickly [20:57] daynier: guess I gotta tinker with apt-get [20:57] benlyn has joined the channel [20:57] torvalamo: no [20:57] chrisdickinson: also nave, also n. [20:57] chrisdickinson: i wouldn't use apt-get, in this case. [20:58] daynier: got a better idea? [20:58] torvalamo: just download it and ./configure && make && make install [20:58] chrisdickinson: daynier: use nave, n, or nvm. [20:58] torvalamo: or tat [20:58] torvalamo: that* [20:58] daynier: yeah, I hate that process. [20:58] daynier: oh well. [20:58] chilts: daynier: yeah, use one of those - the packages aren't always up to date :) [20:58] chrisdickinson: daynier: https://gist.github.com/579814 [20:58] daynier: explains a few things. [20:58] chilts: also, with those tools you don't have to configure, make, make install etc [20:58] daynier: while I've got your attention [20:59] daynier: so vm doesn't run async? [20:59] chrisdickinson: daynier: no, it's blocking. [20:59] daynier: no wonder my benchmarking was way too high. [20:59] torvalamo: even if the script has async in it? does it run its own event loop or what? [20:59] chrisdickinson: (it's roughly equivalent to `eval` or `new Function`, except it potentially (if used with "inNewContext") sets up a whole new javascript context) [20:59] ByteCrunch has joined the channel [21:00] chrisdickinson: no, it all runs in your current event loop. [21:00] daynier: yeah, it does [21:00] daynier: wow [21:00] daynier: damn, not good at all. [21:00] autarch has joined the channel [21:00] chrisdickinson: if you want it in it's own event loop, you would want to `fork` and run it in a new process. [21:00] autarch: is there any sort of convention for writing docs for node libraries? [21:00] tkaemming has joined the channel [21:00] daynier: okay, so how could I pass along a request while still giving the script access? [21:00] autarch: most of the stuff listed on npmjs.org seems to just have docs in the form of a README.md on github [21:00] torvalamo: yeah i would prefer forking over sandbox [21:00] autarch: which seems kind of sad [21:01] chrisdickinson: torvalamo: i'd probably go fork + sandbox. [21:01] chrisdickinson: that way you can restrict access to `require` and friends. [21:01] torvalamo: not a bad idea [21:01] chrisdickinson: also, for fun, you could pass it through `burrito` and disable certain constructs. [21:01] chrisdickinson: (loops, calls, etc.) [21:01] chilts: autarch: hey, another PerlMonger ... we're few and far between around here :) [21:02] Aikar: http://www.youtube.com/watch?feature=player_embedded&v=aT8lJEgEuTk [21:02] chilts: mostly Rubyists ... though I guess lots of other people [21:02] autarch: chilts: I'm _so_ missing cpan [21:02] tomtomaso has joined the channel [21:02] pauls1 has joined the channel [21:02] autarch: not just cpan the site, but the whole convention of "write docs in modules with POD", etc [21:02] chilts: autarch: I'm pretty used to npm now ... though yeah, the quantity isn't quite there yet [21:02] chrisdickinson: daynier: so, your goal is to run untrusted code in the vm sandbox that has access to the request object? [21:02] chrisdickinson: (just to make sure we're on the same page.) [21:02] autarch: it's not just quantity, npmjs.org is not even a fraction as useful as metacpan [21:02] chilts: true ... I haven't quite figured out the convention yet either ... I mostly do README.md as you said above [21:03] daynier: nah its trusted code [21:03] torvalamo: you don't get to be on the same page! you don't have access to the book! [21:03] chilts: there was a thread on the mailing list recently [21:03] daynier: basically kicking apache aside [21:03] autarch: README.md just doesn't seem sufficient for what I'm doing [21:03] chrisdickinson: daynier: then why use the `vm` sandbox? [21:03] autarch: I'm working on a port of Moose to JS, it needs more than one manual apge [21:03] daynier: Saw it was easier on the lines of code [21:03] daynier: Plus it worked out well [21:03] chrisdickinson: ACTION is confused. [21:04] daynier: var sandbox = {'response':response, 'config':config} [21:04] daynier: allowed me to block access to the process.exit that would kill my server [21:04] mattgifford has joined the channel [21:04] torvalamo: so it's not trusted then [21:04] tilgovi has joined the channel [21:04] tilgovi has joined the channel [21:04] autarch: chilts: what was the thread title? do you know? [21:04] chilts: autarch: I think many larger modules have their own sites (or github pages) [21:04] chilts: autarch: was just looking for it ... not found it yet [21:05] eignerchris has joined the channel [21:05] autarch: fwiw, I'm not actually writing this for Node so much as for client-side stuff [21:05] torvalamo: there's a module for that [21:05] autarch: but I'd like to package it for npm since it's basically environment agnostic [21:05] autarch: I imagine people writing server side code might find this useful [21:05] MatthewS has joined the channel [21:05] chrisdickinson: daynier: if you want to block access to it (which leads me to believe the code isn't really trusted), you could always just shim it -- `_exit = process.exit; process.exit = new Function;`, -- so only your code can call process.exit. [21:05] StanlySoManly has joined the channel [21:06] horieyui has joined the channel [21:06] torvalamo: but that can be exploited [21:06] daynier: chrisdickinson: Totally new to the vm [21:06] Aikar: you should def not run untrusted code in your main process. spin up a child to do it [21:07] daynier: chrisdickinson: Normally I would have spawned a new process and ran the code, but I wanted to see what could be done. [21:07] chilts: autarch: try this one [21:07] chilts: var second; [21:07] chilts: oopse [21:07] chilts: var second; [21:07] Aikar: var chld = cp.fork('runner.js'). child.send({run: 'somecode'}); [21:07] chilts: heh [21:07] autarch: pasting is hard [21:07] chrisdickinson: +1 on what Aikar said. [21:07] chilts: http://goo.gl/uIpjL [21:07] chilts: :( [21:07] Aikar: so if they kill that child, so what [21:08] heatxsink has joined the channel [21:08] daynier: chrisdickinson: I'm really just trying to reproduce my cms's structure in node. [21:08] chrisdickinson: with the addition that `runner.js` would use `vm` to sandbox the code -- remove the ability to `require`, etc. [21:08] chilts: autarch: one thing I like about npm is how easy it is to upload in comparison to CPAN [21:08] Aikar: yea [21:08] daynier: chrisdickinson: Its multisite [21:08] autarch: chilts: yeah, that does seem better [21:08] chilts: though I didn't really get into that as much as I have in this community [21:08] torvalamo: daynier, you should still adapt to node's way of things.. don't port things directly... never a good idea [21:08] autarch: but the actual module pages are not very useful [21:09] daynier: Nah, now porting. Rewrite from scratch. [21:09] daynier: Just keep the same concept of easy use [21:09] chilts: some are nice [21:09] autarch: without some sort of standard doc format there's not much the site can do, of course [21:09] torvalamo: making child processes is cheap enough [21:09] Cromulent has joined the channel [21:09] monokrome has joined the channel [21:09] fermion has joined the channel [21:11] piscisaureus_ has joined the channel [21:11] ritch has left the channel [21:11] adrianF has joined the channel [21:11] sharkbird has joined the channel [21:12] igl1 has joined the channel [21:12] markschaake has joined the channel [21:12] localhost has joined the channel [21:12] pokoli has joined the channel [21:12] Shaunzie has joined the channel [21:13] martypdx has joined the channel [21:13] patrickgamer has joined the channel [21:13] jomoho has joined the channel [21:14] mattgifford has joined the channel [21:14] mattly has joined the channel [21:14] Sorella has joined the channel [21:15] Morkel has joined the channel [21:15] chilts: deedubs: so you're all happy Google OAuth'ing now? [21:15] chilts: are you using any other services for logging in? [21:16] deedubs: twitter, github, google [21:16] patrickgamer has left the channel [21:16] sharkbird has joined the channel [21:17] jomoho2 has joined the channel [21:17] chilts: snap ... and Tumblr too - think I'll try LinkedIn and Yahoo! too [21:17] chilts: one thing I can't do is get email from Twitter ... do you know if you can do that? [21:18] deedubs: chilts: no [21:19] chilts: thanks ... glad someone else says the same thing since I thought I was missing something [21:19] TimTim has joined the channel [21:19] idefine has joined the channel [21:20] chilts: deedubs: doesn't look like it can be done : http://stackoverflow.com/questions/3599621/is-there-a-way-to-get-an-users-email-id-after-verifying-her-twitter-identity-us [21:20] deedubs: yeah sorry that no was for if it was possible [21:21] chjj: http://news.ycombinator.com/item?id=3448027 [21:21] __tosh has joined the channel [21:21] chjj: get your ruby out of my js! [21:21] chjj: some ruby spilled right on my js [21:23] chjj: js is getting expression blocks with harmony anyway, isnt it? [21:24] adrianmg has joined the channel [21:25] TimTim has joined the channel [21:26] jomoho has joined the channel [21:26] piscisaureus__ has joined the channel [21:27] adrianmg has left the channel [21:29] mara has left the channel [21:29] springmeyer_ has joined the channel [21:29] tkro has joined the channel [21:30] qbit_: will there be a "end" event when a WriteStream finishes writing a file with .write ? [21:31] sharkbird has joined the channel [21:31] schakko has joined the channel [21:31] schakko: hello everybody! [21:34] trose: what is a good module for creating a web service? [21:35] schakko: I changed the dependencies for node-usb from libev to libuv and now I get the error "undefined symbol: ev_rt_now" - any ideas? [21:35] SamWhited has joined the channel [21:36] TheJH: trose, uhm, you'll need maaany of them for that [21:36] TheJH: qbit_, pretty sure that there's no such end event [21:37] TheJH: qbit_, however, have a look at the docs for the drain event [21:37] kevwil has joined the channel [21:37] TheJH: qbit_, and the result of write [21:37] trose: thejh okay, I mean I have an express server going. I'd like to add support for soap or restful [21:37] trose: to create an api [21:37] TheJH: trose, in that case, no idea :D [21:38] qbit_: sweet - TheJH just tried drain.. seems to have worked [21:38] qbit_: thanks :) [21:38] trose: thejh haha okay [21:38] TheJH: qbit_, if writing succeeds directly, there might be no drain event! [21:38] TheJH: qbit_, have a look at the docs for write() [21:39] Shaunzie: trose: express is already restful O.o…. app.get, app.post, app.delete, app.put [21:40] trose: Shaunzie, oops i just need soap [21:41] Shaunzie: trose: why? O.o [21:41] Shaunzie: trose: xml = annoying-fail-facepalm-shite ._. [21:42] ryanrolds_w: jesusabdullah: I like the DF naming idea. [21:42] ryanrolds_w: I'm going to get someone on that. [21:43] trose: Shaunzie, what would you recommend? ajax? I'm kinda newb. My project lead wants to create an api hook so we can have a website + a desktop interface [21:43] trose: i've just been researching options and found soap [21:43] trose: I'm not really up on current trends [21:43] moshen has joined the channel [21:43] Shaunzie: nodejs = javascript :D. JSON is your friend :3 [21:44] Carmivore has joined the channel [21:44] arturadib has left the channel [21:45] tristanpemble: trose: JSON + REST for sure [21:45] tonymilne has joined the channel [21:46] trose: tristanpemble, oh, okay [21:46] snearch has joined the channel [21:47] torvalamo: i also suggest angular.js [21:47] torvalamo: for the client side [21:47] tristanpemble: I did research on this a couple of months ago but I can't find any of the links I found useful [21:48] robhawkes has joined the channel [21:48] mc_greeny has joined the channel [21:48] firebalrog: Just finished my app for checking people in at a health club when the internet is down. debian fluxbox X chromium curl node.js express stylus jade forever = one bad ass kiosk checkin system that they can't play with like the windows boxes they currently use. [21:48] torvalamo: i love it when simple beats complex [21:49] firebalrog: ;) [21:49] Shaunzie: firebalrog: grats [21:49] Shaunzie: firebalrog: when you make lots of money, buy us beer O.o [21:49] firebalrog: lol when they pay me enough I will buy myself a beer! [21:50] Shaunzie: firebalrog: … you need a better job O.O [21:50] firebalrog: yes.... [21:50] tristanpemble: I've fallen in love with Node + Redis [21:51] firebalrog: Redis is what? [21:51] TheJH: ugly [21:51] tristanpemble: key-value store [21:51] torvalamo: it's a glorified hash [21:51] schakko: https://github.com/schakko/node-usb/issues/4 << any ideas? [21:51] firebalrog: oh yea [21:51] Shaunzie: firebalrog: redis.io [21:51] tristanpemble: redis is beautiful :( [21:51] firebalrog: you didn't like mongodb? or couch [21:52] robhawkes has joined the channel [21:52] tristanpemble: redis is FAST [21:52] Shaunzie: firebalrog: red is is kinda for a different purpose that mongodb or couch [21:52] tristanpemble: I don't need persistence [21:52] firebalrog: aw a little more like memcached [21:52] Shaunzie: firebalrog: redis is like memcache on crack … [21:52] tristanpemble: yeah, memcached [21:52] torvalamo: don't need persistance, just pertinance [21:53] firebalrog: don't be pertinant [21:53] jesusabdullah: ryanrolds_w: I did some light research, and you should be able to export the generated legends from "legends mode" as xml [21:53] jesusabdullah: which of course you could scrape for awesome names [21:53] firebalrog: lol [21:53] dwhittle has joined the channel [21:53] ryanrolds_w: I'm tempted to email toadyone and see if he will provide the code. [21:53] torvalamo: are you still on server names? [21:53] firebalrog: I could of used redis for my checkin app. [21:53] TimTim has joined the channel [21:54] firebalrog: instead I just read the data into two arrays [21:54] ryanrolds_w: If he does I will make a module for it and probably host a site that uses the module. [21:55] firebalrog: which redis client did you use? node_redis? [21:55] tristanpemble: yeah [21:55] firebalrog: how much data are you using the redis for? [21:56] patcito has joined the channel [21:57] tristanpemble: I'm using it for a live chat system that's deployed for 10 or 11 companies [21:58] tristanpemble: depending on the time of day there could be anywhere from none to 20 chats going at once [21:58] firebalrog: is there a way to load it with values on launch? [21:58] tristanpemble: there's persistence, it can write to disk every so many minutes or every N changes [21:58] ioparadigm has joined the channel [21:58] firebalrog: how long does it hold the data [21:59] tristanpemble: http://redis.io/topics/persistence [21:59] tdixon has joined the channel [21:59] tristanpemble: there's a few different ways to do it [21:59] tristanpemble: that'll go over the details [21:59] firebalrog: Currently I download a csv file to the client computer and use fswatch to check for changes if the file changes I empty my arrays and reload them. [21:59] TimTim has joined the channel [21:59] tristanpemble: :( [21:59] firebalrog: memberid, name, balance, totalowed, status, towels, [22:00] dob_ has joined the channel [22:00] firebalrog: pretty simple [22:00] tristanpemble: what happens if the file needs to be modified while it's being read? [22:00] firebalrog: we also use a live internet connection and server but about 3 or 4 times a year at a club the power goes out [22:01] firebalrog: they don't use it all the time. and each desktop is running the app. [22:01] firebalrog: its for an Emergency check in for when the servers are not available at the corporate office [22:01] zomg: Damn, now that someone mentioned the vm module and I found it can sandbox JS, I again want to code a virtual robot combat game where you program the robots yourself in JS [22:01] zomg: =) [22:01] firebalrog: corewars [22:01] firebalrog: redwars [22:02] zomg: I'm inventing a better wheel [22:02] zomg: ;) [22:02] jesusabdullah: zomg: Expose an api over irc for it [22:02] jesusabdullah: and then write bots that play the game over irc [22:02] zomg: Heh [22:02] BillyBreen has joined the channel [22:02] firebalrog: http://www.ibm.com/developerworks/java/library/j-robocode/ [22:03] zomg: firebalrog: looks a lot like what I wrote in Java with Rhino as the robot AI scrpiting engine [22:03] zomg: although mine was just red boxes in a basic window :P [22:04] jesusabdullah: that would be awesome as an irc-based api [22:04] firebalrog: I have spent many hours trying to beat some of the best robots written by mathmaticians [22:04] zomg: it would be way cooler if it was in HTML5 tho! [22:04] zomg: =) [22:04] jesusabdullah: not to me [22:04] peregrine81 has joined the channel [22:05] firebalrog: there is another site where you can download the robots and they used to have some ladder games [22:05] jesusabdullah: A visualizer sure [22:05] saesh has joined the channel [22:05] zomg: jesusabdullah: yeah run the sim on server in node and push events to the visualization [22:05] [Neurotic] has joined the channel [22:05] jesusabdullah: but irc is just this really obvious pubsub platform that already has pseudo-conventions for how to expose APIs (ie, as bots) [22:06] jesusabdullah: the idea of human-readable irc bots interacting with each other is really neat to me [22:06] zomg: I suppose it could do something like allocate a timeslot which each bot could use to send messages to execute commands and get results from the sim or something.. [22:07] zomg: Ok I think I already put too much thought into that [22:07] zomg: =) [22:08] autarch has left the channel [22:08] jesusabdullah: a timeslot? No, just do it realtime [22:09] quackquack has joined the channel [22:09] michaelhartau has joined the channel [22:09] joshwines has joined the channel [22:09] quackquack: how do I update to the latest version of npm? [22:09] pkrumins: we just launched a new design at browserling! www.browserling.com [22:09] SubStack: it's EVEN MORE CARTOONISH [22:09] SubStack: but in a classier way I think [22:10] fwg: omg [22:10] fwg: awesome [22:10] fwg: cute [22:10] pkrumins: * works too [22:11] joshfinnie has joined the channel [22:12] chjj: pkrumins: cool, is that live now? [22:12] pkrumins: it is live now [22:12] mmalecki: pkrumins: NOONE CARES IF IT WORKS [22:13] chjj: i like the robots in the picture [22:13] pkrumins: they are me and SubStack [22:13] zomg: pkrumins: seems to fail in Opera. Perhaps put a warning about it or something [22:13] pkrumins: >_> [22:13] pkrumins: <_< [22:13] chjj: i figured at least one was substack [22:13] torvalamo: do they turn you on? [22:13] pkrumins: yup, doesnt work in opera [22:13] pkrumins: works in firefox, chrome and safari [22:13] zomg: Although I don't see any reason why it *shouldn't* work in Opera ;) [22:13] fwg: oh the irony :D [22:14] torvalamo: that is ironic [22:14] cjno has joined the channel [22:14] chjj: not irony, it only has to work in one browser, thats the point ;) [22:14] fwg: heh [22:14] torvalamo: pff [22:14] KnightMustard has joined the channel [22:14] torvalamo: if your customer is one browser [22:14] cjno: does anyone know of a compression library for node that also works on windows? [22:14] chjj: well if its targetting web devs, theyll be using the right browser [22:14] chjj: (chrome) [22:15] torvalamo: true [22:15] TheJH: cjno, there's a core module for that :D [22:15] zomg: I tried opening browserling.com in browserling [22:15] zomg: It seems to have stuck [22:15] zomg: :D [22:15] tristanpemble: anyone know if Facebook is using Node.JS at all? [22:15] cjno: TheJH: hah! I thought I'd seen something like that [22:15] cjno: sorry [22:16] erichynds has joined the channel [22:16] KnightMustard has left the channel [22:16] CIA-101: node: 03Maciej Małecki 07master * r4d49469 10/ lib/child_process.js : child_process: fix typo in internal message event name - http://git.io/Egl18Q [22:16] level09 has joined the channel [22:19] koo3 has joined the channel [22:20] fermion_ has joined the channel [22:20] topaxi: tristanpemble: https://github.com/facebook/jsgamebench uses node, not sure if they use it anywhere else [22:21] tommyvyo has joined the channel [22:21] tristanpemble: I'm looking for companies I can intern with where my experience with node would be useful [22:24] mandric has joined the channel [22:25] TimTim has joined the channel [22:25] Raynos: What do other people do when they want to contribute to a project but its written in coffeescript? [22:25] brainproxy: win -1 [22:26] brainproxy: derp [22:26] tbranyen: Raynos: i don't [22:26] pV has joined the channel [22:26] tbranyen: i wish i could [22:26] Raynos: but I like the project (minus the coffeescript) :( [22:26] tbranyen: was considering rewriting my nodegit project in coffeescript [22:26] CIA-101: node: 03Ryan Dahl 07v0.6 * r290bc0c 10/ (5 files in 2 dirs): [22:26] CIA-101: node: Use .jpg instead of .bmp for .msi [22:26] CIA-101: node: smaller. - http://git.io/EHjFhg [22:26] hellp has joined the channel [22:27] methodT has joined the channel [22:28] pV: tbranyen: thanks for your backbone boilerplate. i've been waiting for a good one and this one seems very solid! [22:28] tbranyen: pV: oh awesome np man [22:29] Raynos: tbranyen: you use backbone with node? [22:30] joshthecoder has joined the channel [22:31] trotter has joined the channel [22:31] tbranyen: Raynos: tbranyen.com is backbone and node yea [22:31] Raynos: I meant backbone on the server, backbone is ok on the client [22:32] tbranyen: Raynos: yeah my blog posts are models and i have a collection for all of them [22:32] cesconix has joined the channel [22:32] kriszyp2 has joined the channel [22:32] joshwines has joined the channel [22:33] Poetro has joined the channel [22:33] Raynos: not open source? [22:35] gigafied has joined the channel [22:35] gigafied: anybody familiar with nowjs: is there any way to check for something like now.isReady or do I always have to wrap everything inside a now.ready() invocation [22:35] arturadib has joined the channel [22:36] rgl has joined the channel [22:37] skm has joined the channel [22:37] martin_sunset_ has joined the channel [22:38] Destos: So is it possible to use jitsu with your own servers? [22:38] SteveDekorte has joined the channel [22:40] jldbasa has joined the channel [22:40] lzskiss has joined the channel [22:41] geoKe: 4 [22:44] arturadib: say I'm writing a C++ addon, is there any way to ask Node to queue a callback to be executed when the flow returns to the event loop? [22:44] brianc2 has joined the channel [22:44] arturadib: (as opposed to executing the cb immediately via cb->Call()...) [22:45] tcurdt has joined the channel [22:45] Fuu has joined the channel [22:46] bingomanatee_: aturadib: might not be what your are looking for but process.nextTick(cb) calls a function on the next event tick. [22:46] mjr_ has joined the channel [22:46] panterax_ has joined the channel [22:46] bingomanatee_: that's a node command. [22:48] thepatr1ck has joined the channel [22:49] zodiak has joined the channel [22:51] arturadib: bingomanatee_: yeah, looking for the C++ equivalent of that [22:52] arturadib: ryah: any pointers to the above question? [22:52] BillyBreen1 has joined the channel [22:53] shinuza has joined the channel [22:56] EyePulp: my server.js has a process.on('unhandledException, function(err){…}); locally, when I intentionally throw an error, the handler works fine. on my remote boxes, the handler starts to work (watching console messages to verify), but then I get a "Exception in cluster master process:" and the handler doesn't complete, and the whole process gets reloaded. Using 0.6.6 locally and remotely, and this is a worker in a cluster. [22:56] koo3 has joined the channel [22:56] SvenDowideit has joined the channel [22:57] az_ordog_maga_1 has joined the channel [22:58] EyePulp: The error handler is doing a e-mail send as part of the process, and that's async. Could there be a timing issue at the production boxes that's killing the process before the mail sends? [22:59] _jzl has joined the channel [22:59] salva has joined the channel [23:00] salva has left the channel [23:00] level09 has joined the channel [23:01] johnhamelink has joined the channel [23:02] thalll has joined the channel [23:03] lperrin has joined the channel [23:03] kenperkins: anyone using statsd [23:03] StanlySoManly has joined the channel [23:03] yawNO has joined the channel [23:04] dilvie has joined the channel [23:05] versicolor has joined the channel [23:05] nicholasf has joined the channel [23:06] blup has joined the channel [23:06] StanlySoManly has joined the channel [23:07] cody-- has joined the channel [23:08] lzskiss has joined the channel [23:08] redir has joined the channel [23:09] Hotroot has joined the channel [23:09] isaacs_limechat has joined the channel [23:09] joshgillies has joined the channel [23:10] Hotroot: Does anyone know the fedora dependencies for node? I always forget them =/ [23:10] netmercury has joined the channel [23:10] isaacs_limechat: this is weird [23:10] Hotroot: I already installed gcc but I get "Checking for program g++ or c++ : not found" as one of the errors [23:10] glimpsenirvana has joined the channel [23:11] mjr_ has joined the channel [23:11] severla has joined the channel [23:12] swaj: Hotroot: try yum groupinstall "Development Tools" ? [23:12] yawNO: Hotroot: gcc does not provide g++ [23:12] Lingerance: Hotroot: gcc and g++ are seperate packages [23:12] yawNO: it's a separate pkg [23:12] bartt1 has joined the channel [23:12] justin__ has joined the channel [23:12] yawNO: hi5 Lingerance \ó [23:12] yawNO: lol [23:12] Hotroot: Nvm, found it "tcsh scons gcc-c++ glibc-devel git openssl-devel" [23:12] Hotroot: Ty [23:12] yawNO: np [23:13] Hotroot: Or not, my way didn't work [23:13] mjr_ has joined the channel [23:13] Hotroot: I'll try group [23:14] theycallmeswift: is it safe to assume that in a node environment Array.prototype.filter is defined? [23:14] swaj: .. Array.prototype.filter [23:14] catb0t: [Function: filter] [23:14] swaj: seems that way :P [23:14] theycallmeswift: Yeah, I never thought about it until recently [23:14] tomasztomczyk has joined the channel [23:15] AvianFlu: theycallmeswift, everything in ecma5 is in node [23:15] sirwan has joined the channel [23:15] EyePulp: so if I'm intentionally throwing an error within a worker, in my local dev environment, when I capture/handle the unhandledException, it shows that I'm on the worker's pid. but on our production box, same code is showing it's on the master process. [23:15] theycallmeswift: I ran into a situation where someone was using the `some` function on objects but it wasn't defined [23:15] theycallmeswift: so i figured the same could hold true for filter or forEach [23:16] AvianFlu: filter and forEach are in the ecma5 spec, and therefore in node [23:16] AvianFlu: whatever chrome does, node does, in that regard [23:16] theycallmeswift: AvianFlu: awesome, thanks [23:16] josephmoniz has joined the channel [23:16] c4milo has joined the channel [23:16] AvianFlu: I highly recommend the MDN javascript docs for stuff like this [23:17] zodiak: I would give my left nut for good list comprehensions in node :) [23:17] swaj: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter [23:17] swaj: zodiak: use underscore, good enough :) [23:17] zodiak: swaj yes.. but.. it's then not async :( [23:17] pauls1 has joined the channel [23:18] isaacs_limechat: hm... limechat seems like it might be pretty close to what i want... [23:18] rgl has joined the channel [23:18] davidbanham has joined the channel [23:18] isaacs_lunch: take that. [23:18] pokoli has joined the channel [23:18] zodiak: ouch. harsh ;) [23:18] Raynos: zodiak: https://github.com/Raynos/after.js#after.forEach asynchronous underscore isn't hard to write, I never finished mine [23:18] isaacs_limechat has joined the channel [23:18] Revernd has joined the channel [23:19] isaacs_limechat: ACTION hurls juicy insults at isaacs [23:19] zodiak: Raynos, cool :D [23:19] jesusabdullah: list comprehensions are also not necessarily async yanno [23:19] zodiak: I guess I am jst holding out js 1.7 in node.js :) [23:19] zodiak: that syntax is much nicer (imho) [23:20] jesusabdullah: sometimes [23:20] jesusabdullah: but I'll be honest, I haven't really missed list comprehensions having come to node from python [23:20] zodiak: jesusabdullah, if someone calls a non-pure function in a list comprehension.. well. ;) [23:20] al3xnull has joined the channel [23:20] Raynos: zodiak what "js 1.7" things are you talking about? [23:21] AvianFlu: aren't we on js 1.8 already? [23:21] hz has joined the channel [23:21] zodiak: Raynos, https://developer.mozilla.org/en/JavaScript/Guide/Predefined_Core_Objects#Array_comprehensions [23:21] jesusabdullah: Raynos: [ x*y for x in 1..10 for y in 1..10 ] stuff like that [23:21] zodiak: yes, it's mozilla's version of 1.7 .. I guess [23:21] Raynos: I means whats the es:harmony equivelant [23:21] jesusabdullah: something like that [23:21] Raynos: and personally I say "ew ew ew ew" [23:21] Raynos: http://wiki.ecmascript.org/doku.php?id=harmony:array_comprehensions [23:22] jesusabdullah: lcomps are neat but not an always food [23:22] TimTim has joined the channel [23:22] gf3 has joined the channel [23:22] gnb_ has joined the channel [23:22] gnb_ has left the channel [23:23] Shaunzie: jesusabdullah: hungry? o.o [23:23] chapel: Raynos: check out nimble.js for some async underscore stuff [23:23] jesusabdullah: Shaunzie: Actually, yeah [23:23] Shaunzie: go noms! :D [23:23] jesusabdullah: but that's neither here nor there [23:25] raingrove has joined the channel [23:26] kenperkins: so statsD both tx and rx over UDP, is that correct? [23:26] _dc has joined the channel [23:28] Raynos: chapel: nimple is ok, it misses the context parameter though which is important [23:28] Raynos: I also dont like the fact it offers series / parallel / sync versions. You just dont need those [23:29] Hotroot has left the channel [23:30] joshsmith has joined the channel [23:30] willwhite has joined the channel [23:31] torvalamo: i like comprehensions [23:31] torvalamo: but then again i used to do python [23:31] StanlySoManly has joined the channel [23:31] cha0s has joined the channel [23:32] cha0s has joined the channel [23:32] mightym has joined the channel [23:33] mightym: hey guys, its my first time using node.js and cradle + couchdb. does someone have experience with cradle? [23:33] moshen has left the channel [23:33] kenperkins: how would I get for example cpu utliization with node [23:33] hz has joined the channel [23:34] zanefactory has joined the channel [23:34] arturadib: kenperkins: top? [23:34] kenperkins: I mean with an API [23:34] willwhit_ has joined the channel [23:35] jerrysv: mightym: mmalecki might if he's around [23:35] hz has joined the channel [23:35] icrazyhack has joined the channel [23:36] mightym: jerrysv: thx a lot, ill check :) [23:37] EyePulp: argh - I have exception handling on my master process, but the process seems to get killed and restarted despite that. I still get "Exception in cluster master process:" and then a process restart. [23:38] EyePulp: do I need to move my exception handling into the cluster code invocation? [23:39] captain_morgan has joined the channel [23:39] yozgrahame has joined the channel [23:39] djMax has joined the channel [23:39] djMax: Is there an Oracle driver that doesn't use native stuff? [23:39] djMax: or works on OS X? [23:39] `3rdEden: random question: can you compile jade files, and have the generate function / compiler stored in a script file so it can be re-used on the client side? [23:41] charlenopires has joined the channel [23:42] munro: `3rdEden: check out browserify [23:42] munro: `3rdEden: https://github.com/edmellum/browserijade <-- this may be what you're looking for [23:42] `3rdEden: munro that introduces to much bloat [23:42] isaacs_limechat has joined the channel [23:42] munro: lol [23:42] `3rdEden: I only want the compiled javascript function [23:42] _jzl has joined the channel [23:42] `3rdEden: I don't need to compile it client side [23:42] cesconix has joined the channel [23:43] `3rdEden: browserjadify might work [23:43] munro: `3rdEden: browserify or browserijade? [23:43] `3rdEden: browserify adds to much bloat for this project [23:43] munro: I wasn't saying to browserify jade [23:43] `3rdEden: oh [23:44] SubStack: browserify barely adds anything to the bundle [23:44] `3rdEden: my bad munro <3! [23:44] isaacs has joined the channel [23:44] `3rdEden: SubStack: I know, but If I'm not using the require stuff that browserify is generating [23:44] jacobolus has joined the channel [23:44] `3rdEden: it find it rather wasteful [23:44] rgl_ has joined the channel [23:44] zanefactory has joined the channel [23:44] saikat has joined the channel [23:45] JarrodBell has left the channel [23:45] munro: `3rdEden: but it provides you hooks for doing var my_template = require('my_jade_template'); [23:45] `3rdEden: it seems the only thing you need to do is; jade.compile(template, { client:true }).toString() [23:46] kevwil has joined the channel [23:48] djMax: npm seems to be deleting files on a failed install, any way to keep them? [23:48] munro: SubStack: does browserify do caching yet? :D [23:48] isaacs: djMax: npm install blah blah --no-rollback [23:48] djMax: thx [23:48] SubStack: munro: yes [23:48] munro: :O [23:49] isaacs has joined the channel [23:49] munro: jquery-browserify made me cry [23:50] Juan77 has joined the channel [23:51] jocafa: jquery makes me cry [23:51] jocafa: ¬¬ [23:51] isaacs has joined the channel [23:51] mc: wee, my json datastore is reasonably fast [23:51] mc: finally [23:52] mc: can write and flush a million small objects in just over 4 seconds [23:53] isaacs has joined the channel [23:54] zanefactory has joined the channel [23:55] isaacs has joined the channel [23:55] enmand has joined the channel [23:55] theycallmeswift has joined the channel [23:55] SteveDekorte: mc: what is the store? [23:56] mc: just a simple file [23:56] isaacs has joined the channel [23:56] mc: json.stringify items, newline seperated [23:56] markq has joined the channel [23:57] isaacs has joined the channel [23:57] mjr_ has joined the channel [23:57] chjj: flat files for the win [23:57] mc: it's nothing overly special, but it's useful for lazy times [23:58] markq: i wish TJ would have finished the mastering node ebook [23:58] nadirvardar has joined the channel [23:58] markq: really great [23:58] chjj: using files as a data store is underrated, if you dont need to build google, they can be useful [23:59] mc: right [23:59] mc: i made it for a blog [23:59] mc: my own, personal blog [23:59] mc: that has very little traffic [23:59] mc: and even less content [23:59] mc: i don't need mysql for that [23:59] djMax: so node-db-oracle isn't working on os x. It's probably a lost cause, but I'm digging a little. Is there a pointer to how native binding typically work?