[00:00] willwhite has joined the channel [00:00] Destos has joined the channel [00:00] JakeyChan: I know there is way to start node forever with forever module, but it has warning when install :) [00:01] lyte has joined the channel [00:04] dgathright has joined the channel [00:04] boltR has joined the channel [00:04] CiRlE has joined the channel [00:05] tsutton has joined the channel [00:06] joshkehn has left the channel [00:08] adrianmg has joined the channel [00:08] catshirt has joined the channel [00:09] adrianmg has left the channel [00:09] bartt has joined the channel [00:09] CiRlE has joined the channel [00:12] jbrokc_ has joined the channel [00:13] mjr_ has joined the channel [00:13] materialdesigner has joined the channel [00:14] a_suenami has joined the channel [00:14] CiRlE has joined the channel [00:16] fairwinds has joined the channel [00:17] brianloveswords has joined the channel [00:17] Destos has joined the channel [00:18] Juan77 has joined the channel [00:19] koo0 has joined the channel [00:20] CiRlE has joined the channel [00:20] drfgf_ has joined the channel [00:22] joshkehn1 has joined the channel [00:22] bingomanatee__ has joined the channel [00:22] joshkehn1 has left the channel [00:22] WarheadsSE_ has joined the channel [00:22] Draco__ has joined the channel [00:22] jstash has joined the channel [00:22] gr-eg_ has joined the channel [00:22] bingomanatee__ has joined the channel [00:23] slajax: Is there an easy way to access both GET and POST via one array? Similar to $_REQUEST? [00:23] fcoury has joined the channel [00:23] igl has joined the channel [00:23] slajax: Right now I'd even be happy if bodyParser would work properly for me [00:23] slajax: I'd write the rest [00:23] jerrysv: slajax: drain the post parameters [00:23] franciscallo has joined the channel [00:23] slajax: little context? [00:24] jerrysv: slajax: was getting there [00:24] stepheneb has joined the channel [00:24] jbrokc_ has joined the channel [00:24] jerrysv: slajax: https://github.com/JerrySievert/bricks/blob/master/lib/plugins/request.js#L22 [00:24] slajax: ;) [00:24] tjholowaychuk: slajax req.body is for POST [00:24] tjholowaychuk: req.query is for GET [00:24] tjholowaychuk: well for the querystring [00:24] tjholowaychuk: you dont really want them in one object [00:24] jstash: konobi: no new cow-orkers yet, only 2 pings [00:24] slajax: yeah i got that far [00:25] slajax: my problem right now is that bodyParser() doesn't seem to be populating the req.body [00:25] tjholowaychuk: what's the request look like? [00:25] tjholowaychuk: are you setting content-type appropriately? [00:25] slajax: sec [00:25] CiRlE has joined the channel [00:26] slajax: http://pastebin.com/Cw2ayhMP [00:26] slajax: line 7/8 are just me trying to access vars in the request [00:27] Kunda has joined the channel [00:27] slajax: actually, let me post more [00:27] replore has joined the channel [00:27] replore_ has joined the channel [00:27] slajax: http://pastebin.com/xt3Zu649 [00:27] tjholowaychuk: slajax if you could post the middleware setup as well that would help [00:27] slajax: that's got the post body in it and line 8 shows console.log of req.body [00:27] slajax: I think that is where I might be confused [00:27] slajax: so yes iw ill [00:28] tjholowaychuk: but that should be multipart/form-data [00:28] tjholowaychuk: not application/x-www-form-urlencoded [00:28] slajax: ok [00:28] slajax: http://pastebin.com/3Z5cdyXH [00:29] slajax: I basically want to be able to accept GET and POST the same (or with as little rework as possible) [00:31] subbyyy has joined the channel [00:31] tjholowaychuk: slajax i have to run, but yeah change the content-type and you should be fine [00:31] slajax: tjholowaychuk - when I change that req.body == undefined [00:31] dgathright has joined the channel [00:32] slajax: but thanks for your help [00:32] slajax: anyone else not busy for a few minutes? [00:32] DrHeiter23 has joined the channel [00:32] jstash: slajax: that's because changing the c-t turns it into a query, i'd think [00:32] slajax: Yeah I'd like to handle POST and GET as close to the same way as possible [00:32] jstash: wait... nevermind. [00:32] jstash: i'm wrong. [00:33] slajax: so I want bodyParser to parse the body then I'll extract params to an array that can be used n the rest of the app [00:33] slajax: I just can't get the silly bodyParser to work right [00:33] slajax: I think it's how I have my middle ware set up. some sort of stack order deal. [00:34] springmeyer has joined the channel [00:34] jstash: ah... sorry, don't use express. [00:34] slajax: hmm seems like my issue is actually with the client, I can use vows to execute the post and it is received properly [00:35] slajax: guess I'll need to look into bodyParser more closely [00:35] slajax: thanks for trying jstash [00:35] CiRlE has joined the channel [00:35] markwubben has joined the channel [00:37] jstash: slajax: express guide does say "the bodyParser middleware, which will parse application/x-www-form-urlencoded and application/json request bodies and place the variables in req.body." [00:37] JakeyChan: hi ? when trying to build node module, it says checking for node: not found [00:37] alnewkirk has left the channel [00:37] JakeyChan: how do i fix this issue ? [00:37] jstash: i was curious :) [00:38] mnutt has joined the channel [00:38] jimt_ has joined the channel [00:38] hackband has joined the channel [00:38] nunca has joined the channel [00:39] smathy has joined the channel [00:40] CiRlE has joined the channel [00:41] jmeed has joined the channel [00:43] nunca: Hi all, getting a weird error from net.js when I don't define a Content-Length header for a PUT request. Traceback is here: http://pastebin.com/QDnPfJvk The code causing this is a request made from the Hubot chat bot, but the CoffeeScript generating it seems legit. [00:45] piscisaureus_ has joined the channel [00:45] CiRlE has joined the channel [00:45] neilk_ has joined the channel [00:46] Ned_ has joined the channel [00:47] jskulski has joined the channel [00:48] maxogden: nunca: a useful debugging tool is netcat. you can do nc -l 9999 and then change your http request to hit localhost:9999 to see what http it is generating [00:50] stupidlurker: what's the best way to get the port of a http request object? [00:50] nunca: maxogden: Trying that now. Thanks! [00:50] CiRlE has joined the channel [00:50] piscisaureus_ has joined the channel [00:51] maxogden: stupidlurker: http://nodejs.org/docs/v0.4.8/api/url.html [00:51] maxogden: stupidlurker: also http://nodejs.org/docs/v0.4.8/api/all.html#request.url [00:52] Salve has joined the channel [00:52] stupidlurker: maxogden: hmm, ok, thanks [00:52] jbrokc_ has joined the channel [00:52] stupidlurker: maxogden: was kinda hoping i could use the socket or connection [00:53] stantona has joined the channel [00:53] maxogden: stupidlurker: its all in the standard library, e.g. no external deps [00:54] nunca: maxogden: I found the problem. Thanks for the tip. It helps to actually pass the data correctly. ;) [00:55] issackelly_ has joined the channel [00:55] maxogden: nunca: heh no worries [00:56] CiRlE has joined the channel [00:57] smathy has joined the channel [00:57] AdAlpha has joined the channel [00:57] jacobolu_ has joined the channel [00:59] masch: is there a way to find the reason why my node process dont terminates? [00:59] subbyyy has joined the channel [01:00] konobi: masch: you probably still have something listening for events [01:00] CiRlE has joined the channel [01:00] masch: konobi: yes, but how can i find out what O.o [01:01] tronhammer has joined the channel [01:01] masch: im sending n http request and all return. so there should be no problem O.o [01:01] Draco_ has joined the channel [01:02] subbyyy has joined the channel [01:02] konobi: masch: pastie it [01:02] konobi: pastie.org that is [01:03] Draco_ has joined the channel [01:04] skm has joined the channel [01:05] MatthewS has joined the channel [01:05] skm has joined the channel [01:05] jimt has joined the channel [01:05] CiRlE has joined the channel [01:05] masch: konobi: here it is http://pastie.org/2900914 [01:06] masch: i replaced some values, but that don't changes the function [01:06] mnutt_ has joined the channel [01:07] masch: reader.js line 12 - 19 is debug only, at the end it sais "quit (0 left)" so all request should be returned [01:07] tshpaper has joined the channel [01:08] stantona has joined the channel [01:09] abraxas has joined the channel [01:09] interrupt has joined the channel [01:10] konobi: masch: not sure... but i assume redis is leaving a connection open? [01:10] fairwinds: isaacs: hi ya. is there more info around on .npmrc and what should go in it if you want custom location. I was thinking /Users//Library/NPM would be good and not require sudo [01:10] stepheneb has joined the channel [01:10] pksunkara: Why does my npm get stuck? [01:10] masch: konobi: oh..how can i stop that? [01:10] CiRlE has joined the channel [01:10] isaacs: fairwinds: npm help config [01:11] fairwinds: ah, k [01:11] subbyyy has joined the channel [01:11] isaacs: pksunkara: what version of npm? what does `ulimit -n` output? [01:12] materialdesigner has joined the channel [01:12] konobi: masch: no idea... haven't used the redis node library =0) [01:13] jimt_ has joined the channel [01:13] martin_sunset has joined the channel [01:13] fairwinds: isaacs: perfect. thanks [01:13] postwait has joined the channel [01:14] stupidlurker: maxogden: seems i can get at the port from request.socket.address() [01:14] stupidlurker: not sure how safe that is in terms of messing with internal stuff that might change [01:14] stupidlurker: but it returns nice, structured data [01:15] fairwinds: isaacs: thanks for great job you've done on npm, batteries included and it really a great package manager [01:15] bwinton has joined the channel [01:15] isaacs: np [01:15] CiRlE has joined the channel [01:16] neoesque has joined the channel [01:17] masch: konobi: okay, a client.end() fixed it [01:17] masch: thx [01:20] kevinzhow has joined the channel [01:20] CiRlE has joined the channel [01:21] bwinton has joined the channel [01:21] bwinton has joined the channel [01:22] enmand has joined the channel [01:22] alejandromg: Can you suggest a good cli tool for converting markdown to html? [01:22] davidbanham has joined the channel [01:23] clu3 has joined the channel [01:24] kevinzhow has joined the channel [01:24] mmalecki: uhm, markdown? [01:24] mmalecki: like, Markdown.pl [01:24] mmalecki: original one [01:24] mac^ has joined the channel [01:25] CiRlE has joined the channel [01:26] konobi: ronnjs ? [01:27] jimt has joined the channel [01:28] Emmanuel_ has joined the channel [01:28] alejandromg: yes... [01:28] rauchggg has joined the channel [01:29] dgathright has joined the channel [01:30] mandric has joined the channel [01:30] Emmanuel` has joined the channel [01:30] davidsklar has joined the channel [01:30] CiRlE has joined the channel [01:31] mikeal has joined the channel [01:31] jmar777 has joined the channel [01:31] alejandromg: I think I found a winner https://github.com/evilstreak/markdown-js [01:32] dgathright_ has joined the channel [01:32] tjholowaychuk: alejandromg brew install markdown [01:32] tjholowaychuk: for discount [01:33] chilts: I guess the discount version would be much faster [01:33] cjm: the NodeUp episode from yesterday is up, http://news.ycombinator.com/item?id=3263635 [01:33] alejandromg: OH! Thanks [01:33] tjholowaychuk: it supports html properly as well [01:33] tjholowaychuk: markdown-js does (did?) not [01:33] alejandromg: yes it did [01:33] Sorella has joined the channel [01:33] k1ttty has joined the channel [01:34] EhevuTov has joined the channel [01:34] buu: I'm executing the following code, from a mongo db object, "coll.insert( book_record, function( err, docs ) " where coll is my collection and getting the following error: "TypeError: Cannot call method 'send' of undefined" [01:34] buu: Using node-mongodb-native [01:35] willwhite has joined the channel [01:37] CiRlE has joined the channel [01:38] zkirill has joined the channel [01:39] paul__ has joined the channel [01:39] zkirill: For my JS heavy web app running on Node.js should I go with Nginx or Lighttpd [01:39] te-brian has joined the channel [01:41] jerrysv: zkirill: what would you use either of those for? [01:41] jerrysv: zkirill: or are you using them as a proxy? [01:41] zkirill: jerrysv: proxy [01:42] jerrysv: not sure which has best support. nginx seems fairly popular, but i don't know the status of the pass-thru [01:42] kriszyp2 has joined the channel [01:42] ditesh|cassini has joined the channel [01:43] CiRlE has joined the channel [01:44] kriszyp3 has joined the channel [01:45] tiagobutzke has joined the channel [01:45] jbrokc_ has joined the channel [01:45] ritch has joined the channel [01:46] ritch has left the channel [01:46] mikeric has joined the channel [01:47] jesster7 has joined the channel [01:47] jesster7 has left the channel [01:47] ryanfitz has joined the channel [01:47] grampajoe has joined the channel [01:48] CiRlE has joined the channel [01:50] alejandromg has joined the channel [01:53] CIA-109 has joined the channel [01:53] CiRlE has joined the channel [01:55] josephg has joined the channel [01:58] subbyyy has joined the channel [02:00] neurodrone has joined the channel [02:01] redsofa_ has joined the channel [02:01] subbyyy has joined the channel [02:03] CiRlE has joined the channel [02:04] Draco_ has joined the channel [02:04] JakeyChan has joined the channel [02:05] c4milo1 has joined the channel [02:05] inimino: npm is in node, cool [02:05] jldbasa has joined the channel [02:06] k1ttty has joined the channel [02:06] colinclark has joined the channel [02:07] subbyyy has joined the channel [02:08] nyrb has joined the channel [02:08] githogori has joined the channel [02:09] subbyyy has joined the channel [02:09] jesster7 has joined the channel [02:09] jesster7 has joined the channel [02:09] paul__ has joined the channel [02:09] jesster7 has left the channel [02:10] harthur has joined the channel [02:11] CiRlE has joined the channel [02:11] lyte_ has joined the channel [02:11] icewhite has joined the channel [02:13] skm has joined the channel [02:14] kejun has joined the channel [02:14] conntrack has joined the channel [02:14] AvianFlu_ has joined the channel [02:15] jacobolus has joined the channel [02:16] subbyyy has joined the channel [02:17] jryans has joined the channel [02:18] jomoho2 has joined the channel [02:19] kurtzhong has joined the channel [02:19] Draco_ has joined the channel [02:20] CiRlE has joined the channel [02:20] mnutt has joined the channel [02:21] smathy has joined the channel [02:22] minikomi has joined the channel [02:23] jesster7 has joined the channel [02:23] jesster7 has left the channel [02:25] WarheadsSE has joined the channel [02:25] davida has joined the channel [02:26] CiRlE has joined the channel [02:27] __class__ has joined the channel [02:27] CarterL has joined the channel [02:29] scott_gonzalez has joined the channel [02:34] CiRlE has joined the channel [02:34] gavin_huang has joined the channel [02:35] isaacs: maybe i'm just immature, but i find it really hard to write "pop" and "shift" without mistyping it as "poop" and "shit" [02:35] Emmanuel` has joined the channel [02:35] mjr_: you are so immature [02:35] isaacs: you poop out the back and shit out the... front? [02:35] quackquack has joined the channel [02:36] c4milo1: isaacs: yt? [02:36] isaacs: yessir [02:36] c4milo1: isaacs: in http, every data event is a valid http 1.1 chunk right? [02:36] sdwrage has joined the channel [02:36] isaacs: related to popping and shifting, i wrote this thing a few times, so i decided to do it right: https://github.com/isaacs/fast-list [02:36] maxogden: fast poops? [02:37] isaacs: c4milo: i don't believe that is guaranteed. [02:37] jesster71 has joined the channel [02:37] jesster71 has left the channel [02:37] c4milo1: isaacs: huh, are you sure? [02:37] isaacs: c4milo: "data" events are not necessarily a full http 1.1 chunk. it's based on how the data comes out of the socket. [02:37] isaacs: the node parses out the http baggage, and stitches chunks together sometimes. [02:37] isaacs: i could be wrong. ryah would know. [02:38] isaacs: but i believe the http 1.1 chunk boundary is just somewhat arbitrary framing. [02:38] benvie: wow that's a quoteable [02:38] c4milo1: I see [02:38] c4milo1: ryah: yt? [02:38] benvie: :: adding Array.prototype.poop and Array.prototype.shit [02:38] isaacs: benvie: what, "i could be wrong. ryah would know."? [02:38] mjr_: I'm pretty sure that's right. A data event can be much large than an HTTP chunk if I remember correctly. [02:38] isaacs: oh, the immature stuff :) [02:39] c4milo1: isaacs: thanks man, I'll take a look at the http.js code [02:39] benvie: haha [02:39] benvie: laughing quite hard [02:39] harthur has joined the channel [02:39] isaacs: c4milo, mjr_: or, in theory, a data event could be a single byte. [02:39] CiRlE has joined the channel [02:39] maxogden: the real question is: are fast pops chunked? [02:39] xbddc has joined the channel [02:39] benvie: my god [02:39] alejandromg: LOL.... [02:39] maxogden: streaming pops [02:40] maxogden: ACTION leaves now [02:41] isaacs: inimino: it's in the source tree, and being built into the next pkg and msi installs, yes. [02:41] jocafa has joined the channel [02:41] isaacs: also, it's super ultra pre-alpha system-tarless [02:42] tshpaper has joined the channel [02:42] atourino has joined the channel [02:42] torsd has joined the channel [02:42] dejavu has joined the channel [02:42] dejavu: Hi [02:42] Centrum has joined the channel [02:43] dejavu: somebody use node on windows? [02:44] benvie: I do [02:44] jacobolus has joined the channel [02:44] dejavu: do you know if there is a version of contextify connect express for windows... [02:46] benvie: contextify, is that what you're asking for? [02:46] benvie: because you came to the right person if so [02:46] dejavu: yes [02:47] benvie: https://github.com/Benvie/contextify is my fork which includes a project file to compile it on windows, and here is the precompiled binary https://github.com/Benvie/contextify/blob/master/build/Release/contextify.node [02:47] CiRlE has joined the channel [02:47] benvie: so wherever anything is bugging you for contextify [02:47] benvie: npm probably will when it tries to built it with waf [02:48] benvie: just get it not using npm, and use that [02:48] isaacs: benvie: who owns contextify? [02:48] isaacs: benvie: you should track down the author and get them to take your patch [02:48] isaacs: benvie: not having jsdom on windows kind of hurts. [02:48] dejavu: ok, thanks I will che that [02:48] isaacs: !npm author contextify [02:49] benvie: yeah I've contacted jsdom people at least with it, I haven't been able to get a response out of https://github.com/brianmcd/contextify [02:49] isaacs: !npm info contextify [02:49] dejavu: yes, at work I use under ubuntu [02:49] dejavu: but at home, I want to try on windows... [02:49] isaacs: sure sure [02:49] benvie: yeah contextify is an easy one since it only uses calls to v8 stuff [02:49] isaacs: there's a lot of programs that people write on jsdom that they can't do on windows [02:49] benvie: so no platform issues [02:49] isaacs: right [02:49] inimino: isaacs ⋱ with tar-in-js? [02:49] isaacs: inimino: yes!!! [02:50] inimino: awesome [02:50] isaacs: inimino: it IS awesome! [02:50] inimino: platform -> win [02:50] JakeyChan: why I have issue when build node module ? it says : node not found [02:50] benvie: well here's an issue [02:50] JakeyChan: https://github.com/nodejitsu/forever/issues/150 [02:50] isaacs: node-tar can't do everything I want it to, yet, and is less efficient than it needs to be, but it's coming along [02:50] drfgf has joined the channel [02:50] benvie: I'm not sure how to actually support precompiled windows stuff and there isn't support yet for the cross-platform build system [02:50] benvie: so my fork has the binary [02:50] konobi: isaacs++ # gots me set up with on-the-fly tarballs =0) [02:51] isaacs: also, it needs docs, and fstream needs much better docs, and TONS of tests. [02:51] benvie: it'd require a bit more work to have logic to either use node-waf or a binary [02:51] isaacs: fstream is super powerful. [02:51] BillyBreen has joined the channel [02:51] benvie: or something that npm doesn't do either way [02:51] isaacs: benvie: yeah, that story needs to be thought about a bit more [02:52] benvie: yeah, basically there just needs to be like [02:52] isaacs: or maybe someone else as thought it out and just needs to convince me to take their patch ;) [02:52] benvie: contexitify-win temporary [02:52] benvie: or something I duno [02:52] CiRlE has joined the channel [02:52] benvie: that still doesn't fix it [02:52] benvie: cause it doesn't fix dependencies [02:53] konobi: can't you just upload your own patched version to npm? [02:53] isaacs: yeah, benvie, you could just do that. [02:53] benvie: I can upload contextify but then that wouldn't fix jsdom including the original [02:53] benvie: and any other things [02:53] benvie: mostly jsdom [02:53] isaacs: benvie: contact tmpvar. [02:53] isaacs: he's a super nice guy. [02:54] rauchg has joined the channel [02:54] isaacs: and (i think) a former windows user, so probably sympathetic to your pain :) [02:54] benvie: well he's aware of it anyway https://github.com/tmpvar/jsdom/issues/360 [02:54] benvie: I'm just not sure exactly where to go from there and I don't think he is either [02:54] stantona has joined the channel [02:54] jxie has joined the channel [02:55] catshirt has joined the channel [02:56] konobi: isaacs: just upload contextify with a new version number? [02:56] c4milo1: isaacs: it looks like http-parser takes care of the chunks [02:56] ypxu has joined the channel [02:56] c4milo1: isaacs: "That is, a chunked encoding is decoded before being sent to the on_body callback." from https://github.com/joyent/http-parser [02:57] c4milo1: isaacs: https://github.com/joyent/node/blob/v0.4.12/lib/http.js#L114-L123 [02:57] isaacs: konobi, benvie: i like to not get into such debates. but, if you can email the author, and cc me on it, i can step in if they don't respond after a few weeks. [02:57] Emmanuel` has joined the channel [02:58] isaacs: benvie: i haven't seen your patch. it might have some horrible bug, or do something terrible, i don't know. [02:58] isaacs: :); [02:58] isaacs: which is to say, if they have a good reason to reject it, then that may be fair. but if they're just awol, then human intervention is justified. [02:58] benvie: yeah understandable, I didn't expect it was just verbalizing the issues that exist [02:58] benvie: basically this is a temporary issue [02:58] isaacs: for sure [02:58] isaacs: this process will take some hand-holding, i suspect. [02:58] beejeebus-afk has joined the channel [02:58] benvie: because this will go away when there's a unified build system [02:59] benvie: but until then, yeah it's complicated [02:59] isaacs: well, there'll be more annoying emails, anyway :) [02:59] isaacs: i dunno about "go away" ;) [02:59] benvie: hah [02:59] benvie: yeah [02:59] konobi: CPAN has a process for absentee authors [02:59] benvie: well I think the expectation of compiling modules for windows isn't...going to happen [02:59] benvie: it's just not [02:59] benvie: it'll be binaries for windows and whatever for everything else [02:59] konobi: and in previous cases when the original author(s) had died [03:00] tiagobutzke has joined the channel [03:00] benvie: and yeah that too [03:01] amigojapan has joined the channel [03:01] benvie: with npm being the gatekeeper for modules, which is de facto already is and de jur will be, there needs to be a process for killing off dead and unused stuff [03:01] lyte has joined the channel [03:01] lyte has joined the channel [03:01] schwab: so is node.js c++ or js [03:02] isaacs: schwab: lot of both :) [03:02] benvie: node.js is a name because the word node is a terrible name for something you want to search for [03:02] schwab: isaacs, ok [03:02] schwab: why use javascript [03:02] schwab: why not just pure c++ then [03:02] konobi: don't forget blood, sweat and tears [03:02] benvie: because otherwise it'd be node.ruby or maybe node.python [03:02] isaacs: schwab: because js is so much nicer to write :) [03:02] isaacs: schwab: node is a binding to v8, whcih is c++ [03:02] isaacs: (and js [03:03] benvie: javascript is amazing to people who like javascript [03:03] benvie: like me [03:03] CiRlE has joined the channel [03:03] konobi: time to rewrite in ASM!!! [03:03] ryanfitz has joined the channel [03:03] schwab: i see [03:04] schwab: ok thanks [03:04] winterpk has joined the channel [03:04] winterpk: Hi everyone [03:05] winterpk: Does anyone have any experience with comet programming and node? [03:05] Lingerance: Comet is dead, use websockets. [03:05] benvie: in the ##javascript I stated that javascript was good at event oriented programming (and then went AFK) [03:05] benvie: when I came back I found that my statement was rebuked and had to explain that it largely was not a language feature [03:06] winterpk: Lingerance: good to know. Can you give me a quick explanation of websockets? [03:06] futini has joined the channel [03:06] blueadept: i think ##javascript is the overlow channel [03:06] blueadept: so you were had [03:06] benvie: but rather that the language has almost exclusively been used in contexts where it could not block and therefor the community and most code for it is written assuming that blocking isn't an option [03:06] blueadept: rejoin #node.js [03:06] benvie: could not block meaning if it did then it was viewed as broken [03:07] benvie: AKA a blocking browser == frozen [03:07] blueadept: just code [03:07] blueadept: code and code and code [03:07] blueadept: and when you're not done coding, code some more [03:07] Vennril2 has joined the channel [03:07] blueadept: thats the only way of understanding [03:07] benvie: yeah man that's how I roll [03:07] benvie: code for 72, sleep for 24 [03:07] blueadept: thats the only way [03:07] blueadept: otherwise you're not for real [03:08] benvie: this is truth [03:08] richardr has joined the channel [03:08] richardr: If I have a package.json, how do I tell npm to install all dependencies of defined? npm install -d ? [03:08] isaacs: richardr: don't need the -d [03:09] isaacs: richardr: why do people think that? [03:09] isaacs: -d is to print debug info [03:09] boltR has joined the channel [03:09] Draco_ has joined the channel [03:09] isaacs: -d = info, -dd = verbose, -ddd = silly [03:09] jerrysv has joined the channel [03:09] isaacs: is there a pkg manager that needs -d to install deps? [03:11] mjr_: The word "reps" does start with the letter d. [03:11] mjr_: er, deps [03:11] benvie: quotable.. [03:11] benvie: we need a quote bot [03:11] benvie: this is hurting me [03:12] chilts: isaacs: sometimes I wonder if -d should be -v (for verbose) [03:12] chilts: just a thought though [03:12] chilts: :) [03:12] isaacs: chilts: -v is already taken for --version [03:12] mjr_: npm -c, rewrite in coffeescript [03:12] chilts: ah ok [03:12] isaacs: chilts: but --verbose works [03:12] isaacs: mjr_: hahaha [03:12] isaacs: yes!!!! [03:12] isaacs: we need a shorthand for that [03:12] isaacs: cuz it's too hard. [03:12] mjr_: and it happens all the time [03:13] JakeyChan: I use forever to start node [03:13] JakeyChan: forever start -s server.js [03:13] AvianFlu has joined the channel [03:13] JakeyChan: it says Cannot start forever [03:13] JakeyChan: error: script /Users/Jackey/Workspace/node.js/maki/start does not exist. [03:13] JakeyChan: how to use forever ?? [03:13] JakeyChan: I confused with them document [03:13] stepheneb has joined the channel [03:14] diogogmt has joined the channel [03:15] harthur has joined the channel [03:15] CiRlE has joined the channel [03:15] Pritchard: I AM AN IDIOT [03:15] Pritchard: D:< [03:16] jerrysv has joined the channel [03:16] buu: Anyone have an idea about an error calling send on an undefined object when attempting to call collection.insert ? [03:16] jaequery has joined the channel [03:17] Pritchard: So guys, get this. I was in here the other day complaining because I had spent maybe 4 hours trying to get Node.js up and running. (I installed Google v8 first because I thought it was required.) [03:17] Pritchard: I tried getting hello world running, made my own index.html to request the page and everything. [03:18] Pritchard: It of course didn't work because the origin of my text files was an empty string and cross-origin policy was being violated. [03:18] akihito_s has joined the channel [03:18] Pritchard: Turns out, I could have just opened my local port in my web browser D:< [03:18] yogurt_truck has joined the channel [03:18] Pritchard: ... ;_; [03:19] buu: It's like it's a web server or something! [03:20] chjj has joined the channel [03:22] jryans has left the channel [03:22] CiRlE has joined the channel [03:22] skm has joined the channel [03:22] sridatta has joined the channel [03:23] broofa has joined the channel [03:24] jj0hns0n has joined the channel [03:25] SuMarDi has joined the channel [03:27] stepheneb has joined the channel [03:27] gabaug has joined the channel [03:27] buu: Ok, if my object is throwing an error is there any way to get the line number? [03:27] buu: Like trap the exception or something [03:28] tjholowaychuk: you can use v8's stack trace api [03:28] tjholowaychuk: to get the functions etc [03:28] tjholowaychuk: instead of the string [03:28] buu: Tell me more oh wise one [03:28] tjholowaychuk: http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi [03:28] buu: Oh hrm [03:29] AdAlpha_ has joined the channel [03:29] tjholowaychuk: you can implement things like __line with that [03:30] buu: tjholowaychuk: My stack just looks like: { stack: [Getter/Setter], [03:30] c4milo1: isaacs: I think the problem I'm seeing has to do with ClientRequest [03:30] c4milo1: isaacs: instead [03:30] mike5w3c has joined the channel [03:30] tjholowaychuk: buu yeah by default you'll just get the .stack string, read up on that page [03:30] buu: I am! [03:30] isaacs: buu: don't just pass the error object to util.inspect or console.log [03:30] buu: I would have expected a longer string [03:30] buu: With numbers [03:30] isaacs: buu: you have to actually get the stack [03:30] isaacs: what you'er seeing is' a getter/setter property [03:31] buu: Trying the prepare thing [03:31] isaacs: buu: you have to coerce it to a string [03:31] isaacs: buu: try this: console.log(er.stack) [03:31] isaacs: buu: or this: console.log("The stack is %s", er.stack) [03:31] devaholic has joined the channel [03:32] buu: Thanks, will try [03:32] buu: Ahah, thanks, that was great. [03:32] josephg: console.trace() is also good to know about [03:33] josephg: … that will print out a stack trace at the current line [03:33] buu: Cool [03:33] buu: Now I can try to figure out why mongodb is failing to insert =/ [03:33] josephg: :} [03:35] CiRlE has joined the channel [03:37] satyr_ has joined the channel [03:39] te-brian has joined the channel [03:41] Emmanuel` has joined the channel [03:41] buu: Oh wow, it's not inserting because I forgot to actually 'open' the connection. 30 liens earlier. Why does it happily pretend it got a collection object?! [03:42] buu: ACTION mutters [03:43] deoxxa: does the http agent in node support pipelining? [03:43] diogogmt has joined the channel [03:44] ChrisPartridge: buu: Could be because it buffers queries until it's connected [03:45] deoxxa: buu: http://search.npmjs.org/#/mongo-getter - i wrote this and it makes it way simpler to use mongodb [03:46] vkandy_ has joined the channel [03:46] vkandy_: guys on 0.6.2, how does the master process terminate? [03:46] Emmanuel` has joined the channel [03:47] deoxxa: basically you do something like `mongo_getter.get_collection({collection: "mycollection", function(err, collection) { /* collection is open and ready to use */ })' [03:47] deoxxa: it caches server/connection objects as well, to make things a bit quicker [03:48] buu: deoxxa: Thanks, I'll check it out. [03:49] buu: The sheer number of callbacks are kinda mind numbing =[ [03:49] deoxxa: yeah, that's something i got a bit tired of as well [03:49] deoxxa: also it makes it hard when you want to lazily open connections [03:49] buu: On a related note, is there someway to hook into an 'everything is idle now' event? I'm opening a mongodb connection, and I'd like to keep it around as long as things are happening, but once I've fallen off the end of my callstack, as it were, I'd like to close this connection so node ends [03:50] futini has joined the channel [03:51] Draco_ has joined the channel [03:51] versicolor has joined the channel [03:52] CiRlE has joined the channel [03:54] laprice has joined the channel [03:56] stepheneb has joined the channel [03:57] Emmanuel` has joined the channel [03:59] zackattack has joined the channel [03:59] Emmanuel` has joined the channel [04:01] r04r has joined the channel [04:01] r04r has joined the channel [04:01] Emmanuel` has joined the channel [04:02] Aria has joined the channel [04:03] zackattack: Anyone 'round? [04:04] ekryski has joined the channel [04:05] r04r has joined the channel [04:05] r04r has joined the channel [04:05] Aria has joined the channel [04:08] Emmanuel` has joined the channel [04:08] russfrank: zackattack: no! [04:09] CiRlE has joined the channel [04:10] airhorns has joined the channel [04:10] r04r has joined the channel [04:10] MatthewS has joined the channel [04:12] racar has joined the channel [04:13] fbartho has joined the channel [04:14] d_low_ has joined the channel [04:15] r04r has joined the channel [04:15] d_low_ has joined the channel [04:16] jaimef has joined the channel [04:16] dilvie has joined the channel [04:17] satyr has joined the channel [04:17] lightcap has joined the channel [04:19] r04r has joined the channel [04:20] dshaw_ has joined the channel [04:20] luke` has joined the channel [04:20] d_low_ has joined the channel [04:21] springmeyer has joined the channel [04:22] bulatshakirzyano has joined the channel [04:22] smathy has joined the channel [04:22] beejeebus-afk has left the channel [04:23] diogogmt has joined the channel [04:23] brianseeders has joined the channel [04:24] r04r has joined the channel [04:25] satyr has joined the channel [04:25] jimt_ has joined the channel [04:25] harthur has joined the channel [04:26] alejandromg has left the channel [04:26] trotter has joined the channel [04:28] blaenk has joined the channel [04:28] blaenk has joined the channel [04:29] r04r has joined the channel [04:29] mikeric has joined the channel [04:31] dr0id has joined the channel [04:32] devongovett_ has joined the channel [04:33] jimt has joined the channel [04:34] r04r has joined the channel [04:35] Connorhd has joined the channel [04:38] r04r has joined the channel [04:39] kazupon has joined the channel [04:40] wojohowitz has joined the channel [04:40] Connorhd has joined the channel [04:41] jons__ has joined the channel [04:41] jxie has joined the channel [04:43] r04r has joined the channel [04:43] r04r has joined the channel [04:43] scrumlord: if i'm developing on an ubuntu vm, where would you normally look to find my devel source? ~/dev/src [04:44] scrumlord: ie. is there a 'known way' to structure your files on ubuntu [04:45] k1ttty has joined the channel [04:45] scrumlord: i'm trying to setup an ideal nodejs work env that can be virtualized / shared between workers [04:46] devongovett has joined the channel [04:47] JaKWaC has joined the channel [04:48] r04r has joined the channel [04:48] r04r has joined the channel [04:48] ryanfitz has joined the channel [04:48] Draco_ has joined the channel [04:50] maxogden: scrumlord: you can put code anywhere you want. just be consistent and use environment variables to represent your configuration [04:50] stantona has joined the channel [04:51] madhums has joined the channel [04:51] jhurliman has joined the channel [04:51] MatthewS has joined the channel [04:52] r04r has joined the channel [04:57] zackattack has joined the channel [04:57] zkirill has joined the channel [04:59] scrumlord: maxogden: thx. [04:59] zanes has joined the channel [05:01] r04r has joined the channel [05:02] tomlion has joined the channel [05:03] marcello3d: deoxxa: have you seen mongolian? [05:04] buu has joined the channel [05:04] rauchg has joined the channel [05:06] r04r has joined the channel [05:06] zackattack: anyone interested in helping me co-author a feature in a node.js app? i'll pay you [05:06] reid has joined the channel [05:07] maxogden: zackattack: is it open source [05:07] zackattack: maxogden: yes [05:07] ChrisPartridge: whats the 'feature' ? [05:08] t0mmyvyo has joined the channel [05:09] zackattack: ChrisPartridge: i run compassionpit.com, a site that helps people in crisis by allowing them to vent to anonymous listeners. i'd like to implement a rating system to help discern helpful listeners from evil ones [05:09] r04r has joined the channel [05:09] sancas has joined the channel [05:10] sancas: hello!!!! where can i find a tutorial for node js for noobs??? [05:10] maxogden: sancas: docs.nodejitsu.com [05:10] zackattack: the source code is here, https://github.com/zackster/CompassionPit--Node-/ [05:10] Advant: zackattack: sounds pretty easy [05:11] defunctzombie has joined the channel [05:11] sancas: thanks maxogden im gonna read it all the nigth :P [05:12] sancas: i have another answer [05:12] maxogden: sancas: that site has lotsa good reference material... not sure if its as good as a book tutorial though. feel free to give feedback after you read some! [05:13] sancas: can i have node js server, django server, ruby on rails server... simultaneously [05:13] jrogers_ has joined the channel [05:13] r04r has joined the channel [05:14] sancas: what is lotsa? sorry for my english :D [05:14] zackattack: Advant: interested? [05:14] maxogden: lots of, a lot [05:14] tomlion_ has joined the channel [05:14] maxogden: sancas: you can use a proxy server to run multiple frameworks simultaneously [05:14] Advant: zackattack: unfortantely my plate is full [05:14] maxogden: sancas: nginx for example [05:15] maxogden: sancas: so nginx would run on port 80 and route requests for different routes to your different frameworks servers (like django or rails) or node [05:15] sancas: ok im gonna read about nginx to thks [05:15] deoxxa: zackattack: i've actually used that site before - was really helpful :) [05:16] zackattack: deoxxa: no kidding? [05:16] deoxxa: for real, heh [05:16] zackattack: :) [05:16] zackattack: how did you find it? [05:16] deoxxa: it was on a list of "sites everyone should know about" on reddit at some point [05:16] maxogden: zackattack: i work at a nonprofit with lotsa devs, im gonna forward the link along if thats cool with you [05:17] zackattack: deoxxa: oh yeah, we were like the second most upvoted link in that thread [05:17] zackattack: maxogden: that would be cool [05:17] jtsnow has joined the channel [05:18] zackattack: deoxxa: any thoughts about improvements? [05:18] deoxxa: nothing really stood out, as far as i remember [05:19] zackattack: i feel like if we had a listener rating system, people would have greater likelihood of having a positive experience [05:20] deoxxa: it sounds like a relatively straightforward problem - the only issue being how you identify listeners [05:20] maxogden: zackattack: have you explored text message/voice integration [05:21] zackattack: maxogden: i haven't explored text message integration, though that would definitely be a cool option for people who prefer to text. a lot of teenagers use the site, they love to text. [05:21] maxogden: some ruby on rails devs made a rails support hotline where you could put your cell number in and get routed calls from people looking for rails technical help [05:21] maxogden: http://www.railshotline.com/ [05:22] deoxxa: "how do i scale my application" [05:22] deoxxa: "sorry you have the wrong number" [05:22] maxogden: :P [05:22] marcello3d: I feel like texting is going away.... [05:23] maxogden: data suggests otherwise [05:25] zackattack: maxogden: twilio has good node.js support [05:26] kkszysiu has joined the channel [05:28] maxogden: zackattack: so does tropo. i cant really tell the two services apart most of the time [05:29] zackattack: i looked it up and twilio is cheaper [05:29] ryah: c4milo1: yo [05:30] ChrisPartridge: zackattack: I'd be keen to help, how would you be rating? star rating of some sort? or more complex? [05:30] maxogden: zackattack: i think theyre the same price [05:30] jtsnow has joined the channel [05:30] maxogden: zackattack: for sms at least [05:30] zackattack: twilio is 2c/minute outbound and 1c/minute inbound [05:31] zackattack: ah, yeah, for sms they're equivalent [05:31] zackattack: at least in usa :) [05:31] jaequery has joined the channel [05:31] caolanm has joined the channel [05:31] zackattack: have you built anything on the tropo platform? [05:32] maxogden: yep open211.org [05:32] codygray has joined the channel [05:32] pifantastic_ has joined the channel [05:32] madhums has joined the channel [05:33] zackattack: ChrisPartridge: i think that thumbs up / thumbs down, or 1-5 stars would be good. [05:33] caffine has joined the channel [05:35] stantona has joined the channel [05:35] zackattack: ChrisPartridge: PM? [05:36] stantona has joined the channel [05:37] crackns has joined the channel [05:39] stonebranch has joined the channel [05:47] mikeal has joined the channel [05:47] scrumlord_ has joined the channel [05:48] k1ttty has joined the channel [05:49] fairwinds has joined the channel [05:50] tiagobutzke has joined the channel [05:50] jsurfer has joined the channel [05:53] davidascher has joined the channel [05:54] saj1th has joined the channel [05:55] mikeal has joined the channel [05:55] JakeyChan: how to get upload file ? [05:56] Marko has joined the channel [05:57] ryan_stevens has joined the channel [05:57] davidedwardclark has joined the channel [05:57] Tobsn has joined the channel [05:59] devongovett has joined the channel [06:00] satyr has joined the channel [06:01] localhost has joined the channel [06:02] OmidRaha has joined the channel [06:04] torsd has joined the channel [06:06] dilvie has joined the channel [06:08] joshkehn has joined the channel [06:13] CrypticSwarm has joined the channel [06:15] davidedwardclark: Is irc.freenode.net the best IRC network for connecting with the nodejs community? [06:15] ChrisPartridge: davidedwardclark: It most certainly is [06:16] davidedwardclark: thanks Chris. I am asking because I am new to IRC and it is hard to know where to find what you are looking for with so many networks: efnet, undernet... [06:17] maxogden: davidedwardclark: 'irc' by default means freenode these days [06:17] maxogden: davidedwardclark: its one of those 'unless otherwise noted' kind of deals [06:17] Lorentz: At least for "open source-y" things anyway [06:17] davidedwardclark: really? what about efnet, IRCnet and under net? they have a ton of users still... [06:18] Lorentz: Pretty much every FOSS-kinda project I've seen is on freenode. [06:18] ChrisPartridge: davidedwardclark: as maxogden said, freenode is opensourcey [06:19] davidedwardclark: thats what i heard, thanks for confirming [06:20] lmao24 has joined the channel [06:22] atiti has joined the channel [06:22] luke` has joined the channel [06:22] davidedwardclark: one other quick question: What is the best IRC client for OSX? currently using Colloquy… [06:24] tilgovi has joined the channel [06:25] bwinton has joined the channel [06:27] HT has joined the channel [06:28] igl: o.O [06:29] Murugaratham has joined the channel [06:30] mandric has joined the channel [06:30] davidedwardclark has left the channel [06:30] igl: no xchat on mac? [06:31] icewhite: i am using LimeChat [06:32] k1ttty has joined the channel [06:32] paddybyers has joined the channel [06:34] davidedwardclark has joined the channel [06:36] OmidRaha has joined the channel [06:36] davidedwardclark: Anyone here using mongoose.js in a project? [06:38] AvianFlu has joined the channel [06:38] instafire has joined the channel [06:38] NetRoY has joined the channel [06:39] zomg: davidedwardclark: yes [06:41] davidedwardclark has left the channel [06:42] davidedwardclark has joined the channel [06:43] _dc has joined the channel [06:44] jGoods has joined the channel [06:44] lemonad has joined the channel [06:44] davidedwardclark has joined the channel [06:45] davidedwardclark has joined the channel [06:46] sdwrage has joined the channel [06:48] garrensmith has joined the channel [06:48] davidedwardclark has joined the channel [06:49] buttface has joined the channel [06:51] mikeal has joined the channel [06:52] k1ttty has joined the channel [06:53] mikeal1 has joined the channel [06:54] Centrum has joined the channel [06:55] sreeix has joined the channel [06:55] jwang has joined the channel [06:56] fangel has joined the channel [06:56] jacobolus has joined the channel [06:56] p1d has joined the channel [06:58] arlolra has joined the channel [06:59] simenbrekken has joined the channel [07:01] arlolra: can i get basic auth headers in node-http-proxy? [07:02] nicholasf has joined the channel [07:03] CiRlE has joined the channel [07:03] garrensmith: morning [07:06] gut4 has joined the channel [07:08] smgt has joined the channel [07:08] caffine has joined the channel [07:09] te-brian has joined the channel [07:10] socketio\test\02 has joined the channel [07:13] socketio\test\61 has joined the channel [07:13] robbiet480 has left the channel [07:15] socketio\test\92 has joined the channel [07:23] braoru has joined the channel [07:24] JaKWaC has joined the channel [07:26] JaKWaC has joined the channel [07:27] CiRlE has joined the channel [07:29] saj1th_ has joined the channel [07:30] wojohowitz has joined the channel [07:31] buttface has joined the channel [07:31] [tm] has joined the channel [07:31] [tm] has left the channel [07:32] beevits has joined the channel [07:32] svenlito has joined the channel [07:33] mange has joined the channel [07:33] stonebranch has joined the channel [07:38] CiRlE has joined the channel [07:39] rio{ has joined the channel [07:39] dgathright has joined the channel [07:39] OmidRaha has joined the channel [07:40] AAA_awright: Hey Node.js peoples, Please PLEASE provide git clone URLs for your dependencies [07:40] AAA_awright: That is all [07:40] bergie has joined the channel [07:42] maxogden: AAA_awright: you can fork and expand the guide on package.json here http://docs.nodejitsu.com/articles/getting-started/npm/what-is-the-file-package-json [07:42] kejun has joined the channel [07:43] igl: beeing annoyed with search.npmjs.org i just thought the same thing [07:43] jGoods: +1 [07:44] igl: search for "express" it wont show up :D [07:45] igl: can't add a proper chrome keyword search either because its a stupid jquery xhr without fallback [07:45] maxogden: igl: its open source, you can report issues here https://github.com/isaacs/npmjs.org/issues [07:45] igl: lol [07:46] igl: i have 4 just out of my head [07:46] maxogden: igl: complaining in irc at midnight is generally less fruitful than filing issues in a public bug tracker FYI :) [07:47] groom has joined the channel [07:47] arlolra has left the channel [07:47] d_low has joined the channel [07:48] garrensmith: maxogden: midnight? Its 10am here :-) [07:48] maxogden: GMT in node is the bay area [07:48] igl: almost 9 *chewing on fresh pretzels* [07:49] CiRlE has joined the channel [07:50] simenbrekken has joined the channel [07:50] beseku has joined the channel [07:51] Murugaratham has joined the channel [07:55] TomY has joined the channel [07:56] garrensmith: lol [07:56] jacobolus has joined the channel [07:57] Morkel has joined the channel [07:58] bosphorus has joined the channel [07:59] emattias has joined the channel [08:01] hipsterslapfight has joined the channel [08:02] `3rdEden has joined the channel [08:03] k1ttty has joined the channel [08:03] AtX has joined the channel [08:04] fangel has joined the channel [08:04] CiRlE has joined the channel [08:05] JakeyChan has joined the channel [08:05] AtX has left the channel [08:06] Emmanuel has joined the channel [08:06] cjm has joined the channel [08:07] Wizek has joined the channel [08:09] kejun has joined the channel [08:10] npa has joined the channel [08:11] kejun has left the channel [08:12] saj1th has joined the channel [08:13] neshaug has joined the channel [08:16] saj1th has joined the channel [08:16] koo6 has joined the channel [08:17] saj1th has left the channel [08:19] MUILTFN has joined the channel [08:19] Cromulent has joined the channel [08:20] AAA_awright: igl: Whoever invented hashbangs and especially search.npmjs.org needs to be hunted down [08:20] AAA_awright: There's just no excuse for incompetence [08:20] mange has joined the channel [08:21] socketio\test\63 has joined the channel [08:21] kkaefer has left the channel [08:24] gut4 has joined the channel [08:24] dubenstein has joined the channel [08:24] Bonuspunk: AAA_awright dude that really rude [08:25] Fuu has joined the channel [08:25] AAA_awright: Bonuspunk: And absolutely true [08:25] AAA_awright: Add twitter's new UI to the list of completely awful UI design [08:26] Bonuspunk: i really dont care about the use of hashbangs as long as back/forward behave correctly [08:27] dubenstein has joined the channel [08:27] AAA_awright: What am I saying? No it's not rude, it's true, period. It breaks the semantics of the web, including REST [08:28] konobi: AAA_awright: patches welcome [08:28] kuebk has joined the channel [08:28] Bonuspunk: --> https://github.com/isaacs/npmjs.org [08:29] socketio\test\01 has joined the channel [08:30] arcanis has joined the channel [08:31] igl: :) [08:34] buttface has joined the channel [08:35] rendar has joined the channel [08:35] Mrkinds has joined the channel [08:37] JakeyChan_ has joined the channel [08:38] jryans has joined the channel [08:38] jomoho has joined the channel [08:38] [AD]Turbo has joined the channel [08:38] [AD]Turbo: hi there [08:39] sdwrage has left the channel [08:41] samBiotic has joined the channel [08:42] jomoho2 has joined the channel [08:43] eddict: AAA_awright: its rude to asume bad intent .. and you dont know the reason why something was implemented the way it was .. truth doesnt change anything [08:43] jsurfer has joined the channel [08:43] AAA_awright: I'm not assuming malice, just incredibly bad decision making [08:44] Marko has joined the channel [08:44] interrupt has joined the channel [08:44] tomb: yet it _works_ for what it does [08:45] AAA_awright: It works _sometimes_ for _one particular subset_ of what the Web is supposed to do [08:46] jomoho has joined the channel [08:46] irahgel has joined the channel [08:46] ppcano has joined the channel [08:46] tomb: never had an issue with it [08:47] tomb: and the web is for websites... last time I checked... npmjs.org is a website :) [08:49] eddict: 09:28:51 [ Bonuspunk] --> https://github.com/isaacs/npmjs.org [08:49] eddict: knock yourself out [08:51] josephg has joined the channel [08:52] jbrokc_ has joined the channel [08:54] djcoin has joined the channel [08:54] socketio\test\97 has joined the channel [08:55] aaronmcadam has joined the channel [08:56] npa has joined the channel [08:56] sineltor has joined the channel [08:56] interrupt has joined the channel [08:57] stonebranch has joined the channel [08:57] uchuff has joined the channel [09:00] Bonuspunk: eddict anything i missed? [09:00] Druide_ has joined the channel [09:00] eddict: AAA_awright: 09:28:51 [ Bonuspunk] --> https://github.com/isaacs/npmjs.org [09:00] eddict: Bonuspunk: no [09:01] jomoho has joined the channel [09:04] ahamidi has joined the channel [09:05] whitman has joined the channel [09:05] sfoster has joined the channel [09:06] vvo has joined the channel [09:06] jomoho2 has joined the channel [09:07] blup has joined the channel [09:08] Wizek has joined the channel [09:10] shinuza has joined the channel [09:11] neilk_ has joined the channel [09:11] jomoho has joined the channel [09:13] jbpros has joined the channel [09:14] satyr has joined the channel [09:15] dubenstein has joined the channel [09:16] saj1th has joined the channel [09:17] bergie has joined the channel [09:17] Marko has joined the channel [09:18] paddybyers_ has joined the channel [09:18] CiRlE has joined the channel [09:20] kulor-uk has joined the channel [09:20] skm has joined the channel [09:20] saj1th has left the channel [09:21] Emmanuel` has joined the channel [09:22] Esteb has joined the channel [09:22] mike5w3c_ has joined the channel [09:23] lzskiss has joined the channel [09:23] JakeyChan has joined the channel [09:24] lzskiss: yo [09:24] k1ttty has joined the channel [09:25] eldios has joined the channel [09:27] akamike has joined the channel [09:27] mikedeboer has joined the channel [09:30] jimt_ has joined the channel [09:31] benvie: there needs to be a something to filter npm modules by version/date and I want to be lazy and not make it myself [09:32] benvie: node version/date [09:32] NeCkEr has joined the channel [09:32] luke` has joined the channel [09:32] tsutton has joined the channel [09:33] benvie: why make good looking sites like http://toolbox.no.de and then not do that [09:34] benvie: sometimes being lazy is a tough job [09:41] AD7six has joined the channel [09:42] torsd has joined the channel [09:43] fangel has joined the channel [09:43] MrGoodbyte has joined the channel [09:43] pksunkara: github.com/pkumar/node-redirect A simple redirection server [09:45] interrupt has joined the channel [09:47] kejun1 has joined the channel [09:49] einar_ has joined the channel [09:49] braoru has joined the channel [09:50] stephank has joined the channel [09:52] cosmincx has joined the channel [09:53] dshaw_ has joined the channel [09:54] jomoho2 has joined the channel [09:56] woeye has joined the channel [09:56] hackband has joined the channel [09:57] Margle has joined the channel [09:57] Marko has joined the channel [09:58] Aiden has joined the channel [09:58] jomoho has joined the channel [09:59] junaid has joined the channel [10:00] EvRide has joined the channel [10:00] neshaug has joined the channel [10:00] davidbanham has joined the channel [10:00] CiRlE has joined the channel [10:01] rio{{ has joined the channel [10:02] sylvinus has joined the channel [10:02] JakeyChan_ has joined the channel [10:03] kejun1 has left the channel [10:03] madhums has joined the channel [10:04] ayaz has joined the channel [10:04] kkszysiu_ has joined the channel [10:05] d0k has joined the channel [10:05] jimmysparkle has joined the channel [10:05] d0k_ has joined the channel [10:09] markwubben has joined the channel [10:10] jomoho2 has joined the channel [10:16] mikedeboer has joined the channel [10:18] kejun has joined the channel [10:18] __tosh has joined the channel [10:19] josh-k has joined the channel [10:19] stagas has joined the channel [10:19] Kunda has joined the channel [10:19] jomoho has joined the channel [10:20] okuryu has joined the channel [10:20] thalll has joined the channel [10:21] fangel has joined the channel [10:24] burningdog has joined the channel [10:25] wang has joined the channel [10:25] mac^ has joined the channel [10:26] cache_za has joined the channel [10:26] cache_za has left the channel [10:27] adrianmg has joined the channel [10:27] adrianmg has left the channel [10:29] lyte_ has joined the channel [10:32] Astro: is there anyone who can fix the nodeup feed? [10:32] Astro: there's an unescaped entity in there that makes my podcatcher barf up [10:34] zackattack has joined the channel [10:36] dannyamey has joined the channel [10:37] nmtmason has joined the channel [10:40] markwubb_ has joined the channel [10:40] CiRlE has joined the channel [10:41] beejeebus has joined the channel [10:42] fermion has joined the channel [10:42] Margle has joined the channel [10:43] socketio\test\68 has joined the channel [10:45] herbySk has joined the channel [10:46] pgte has joined the channel [10:50] samBiotic has joined the channel [10:52] fangel has joined the channel [10:53] atiti has left the channel [10:54] maushu|work has joined the channel [10:55] jbrokc_ has joined the channel [11:00] mehlah has joined the channel [11:00] romain___ has joined the channel [11:01] jomoho2 has joined the channel [11:04] divramod has joined the channel [11:05] divramodn has joined the channel [11:06] jomoho has joined the channel [11:10] vguerra has joined the channel [11:12] jomoho has joined the channel [11:14] stagas has joined the channel [11:16] jomoho2 has joined the channel [11:18] davidbanham has joined the channel [11:21] jomoho has joined the channel [11:23] flat has joined the channel [11:24] jomoho2 has joined the channel [11:25] satyr has joined the channel [11:25] ccare has joined the channel [11:27] flat: Hi all. Is anyone else experiencing a lack of error reporting with 0.6.x? On encountering an error thrown inside an event, it just hangs. [11:27] __doc__ has joined the channel [11:28] marcostoledo has joined the channel [11:29] bnoordhuis has joined the channel [11:31] fairwinds_ has joined the channel [11:32] robhawkes has joined the channel [11:32] skm has joined the channel [11:32] Morkel has joined the channel [11:32] spurge has joined the channel [11:32] jomoho has joined the channel [11:34] aliem has joined the channel [11:37] ivanfi has joined the channel [11:37] jomoho2 has joined the channel [11:38] piscisaureus_ has joined the channel [11:40] jimt has joined the channel [11:40] DrHeiter23 has joined the channel [11:45] jimt has joined the channel [11:46] Shrink has joined the channel [11:47] Wizek has joined the channel [11:48] woeye has joined the channel [11:49] jomoho has joined the channel [11:52] Benn has joined the channel [11:53] jomoho2 has joined the channel [11:53] NetRoY has joined the channel [11:53] zemanel has joined the channel [11:56] lyte has joined the channel [11:58] dexter_e has joined the channel [11:58] robhawkes has joined the channel [12:02] adreams has left the channel [12:03] binarychris has joined the channel [12:04] lyte_ has joined the channel [12:05] pickels_ has joined the channel [12:05] JakeyChan has joined the channel [12:09] akihito_s has joined the channel [12:13] juniks has joined the channel [12:13] juniks: hey fols! [12:13] juniks: folks even [12:14] louissmit has joined the channel [12:14] fly-away has joined the channel [12:14] juniks: i have written a daemon in node.js and i am getting an error in a network handling function. sadly the stack trace does not cover any file of my application. is it possible to get a more verbose stack trace? [12:14] juniks: it seems like it does not print all stack frames [12:15] Marko has joined the channel [12:16] davman has joined the channel [12:16] bnoordhuis: juniks: can you gist or pastie the stack trace? [12:16] flat: juniks: At least you're getting an error! [12:16] juniks: flat: :) [12:16] juniks: bnoordhuis: sec [12:17] juniks: bnoordhuis: https://gist.github.com/1385537 [12:18] davman: hello� new to node and getting an error :( node: ../src/stream_wrap.cc:289: static v8::Handle node::StreamWrap::Write(const v8::Arguments&): Assertion `Buffer::HasInstance(args[0])' failed. [12:18] tiagobutzke has joined the channel [12:19] bnoordhuis: juniks: you're doing http.request() or http.get() somewhere but you don't do req.on('error', handler) [12:20] bnoordhuis: so the exception bubbles up to the catch-all handler, process.on('uncaughtException', ...) [12:20] bnoordhuis: davman: where/when do you get that error and with what version of node? [12:21] flat: bnoordhuis: That's exactly what I need to trigger. Is there any known error the catch-all handler will fail to catch? [12:21] bnoordhuis: juniks: EADDRINUSE is somewhat unexpected-ish unless you're making lots and lots of simultaneous connections [12:21] bnoordhuis: flat: whatever davman is doing :) [12:21] a_meteorite has joined the channel [12:21] dexter_e: Should there be a 'return' after every res.end() ? [12:22] dexter_e: Is this crucial ? [12:22] davman: bnoordhuis: sorry yeah, was just doing a little bit more debugging. Hmm, so this is with 0.6.2, with Express from npm. Looks like when I pass a variable to res.end() it wasn't very happy... [12:22] bnoordhuis: flat: normally, all exceptions should be caught [12:22] davman: the variable reports as "object" if I do a typeof [12:22] davman: and it has a toString().... [12:22] sylvinus has joined the channel [12:22] flat: bnoordhuis: Yeah, it used to work before 0.6.x. But inside events now, errors just cause node to hang. [12:23] bnoordhuis: davman: not sure if express supports 0.6.x already [12:23] bnoordhuis: davman: normally triggered assertions like that are bugs in node core but it's possibly that express uses undocumented / unsupported apis [12:23] bnoordhuis: flat: 'inside events'? [12:23] kriszyp3 has joined the channel [12:24] davman: bnoordhuis: yeah I would have expected node to just say "can't do that with an object, give me a string" [12:24] flat: What I mean is, if I trigger an event, and that event is a function that errors, then node will hang. [12:24] davman: rather than die a death :D [12:24] akihito_s has joined the channel [12:24] davman: bnoordhuis: according to npm, express was updated 3 days ago, Engines requirement is node >= 0.4.1 < 0.7.0 [12:25] bnoordhuis: flat: can you gist an example? [12:25] flat: bnoordhuis: Okay. I'll see how much I can simplify it and get back to you. [12:25] bnoordhuis: davman: okay, maybe talk to tj, the author of express - if it's a bug in node he'll forward it to us [12:26] davman: will do� trouble is the object is coming from *another* lib, so maybe its a malformed object [12:26] davman: unlikely though, console.log is happy enough to print it [12:27] replore has joined the channel [12:27] replore_ has joined the channel [12:27] nephics has joined the channel [12:28] shinuza has joined the channel [12:28] torsd: anyone here using nodejs with voltdb? [12:28] apsuva has joined the channel [12:31] dexter_e: Is it important to use a 'return' after every res.end(); ? [12:34] davman: bnoordhuis: ok I made it happen in plain node, no Express [12:34] bnoordhuis: davman: can you gist your code? [12:34] davman: https://gist.github.com/1385573 [12:35] wolftankk has joined the channel [12:35] mange has joined the channel [12:37] davman: I mean, I know I'm not supposed to push an array to res.end(), but I hoped node would handle it in a cleaner way [12:37] davman: either toString the array [12:37] davman: or something [12:37] bnoordhuis: davman: thanks, i can reproduce it with v0.6 [12:37] Morkel has joined the channel [12:38] stonebranch has joined the channel [12:38] raphdg has joined the channel [12:39] davman: bnoordhuis: ok cool, I'll leave it with you :) wish I could help fix it! [12:39] flat: bnoordhuis: It turns out I'm struggling to reproduce it in a simple example. That's good news -- it means I should be able to debug and fix the situation by trying to simplify until I get an error. Thanks. [12:39] xy has joined the channel [12:39] cosmincx has joined the channel [12:41] jomoho has joined the channel [12:42] mehtryx has joined the channel [12:43] adwong has joined the channel [12:45] chunhao_ has joined the channel [12:46] aliem has joined the channel [12:49] bradleyg has joined the channel [12:50] Juan77 has joined the channel [12:50] Shrink has joined the channel [12:50] Shrink has joined the channel [12:50] apsuva has left the channel [12:51] torsd: exit [12:52] jomoho2 has joined the channel [12:52] vvo has joined the channel [12:55] Nuck has joined the channel [12:56] AdAlpha has joined the channel [12:57] marcostoledo has joined the channel [12:57] CiRlE has joined the channel [12:57] jomoho has joined the channel [12:57] buttface has joined the channel [12:59] sylvinus has joined the channel [13:00] marcosto_ has joined the channel [13:00] jomoho2 has joined the channel [13:01] madhums has joined the channel [13:03] Wizek has joined the channel [13:03] xetorthio has joined the channel [13:04] juniks: bnoordhuis: i guess this is done by the elastic search client which is doing http POST/PUT requests to index documents. this is done up to several thousand times per minute. so does this mean it is running out of (client) sockets? [13:04] creationix has joined the channel [13:04] bnoordhuis: juniks: yes [13:05] wereHamster has joined the channel [13:05] juniks: bnoordhuis: hm, what is the correct way to handle this? wait and retry? return a temporary error? [13:06] bnoordhuis: juniks: increase net.ipv4.ip_local_port_range (if it's a linux system) [13:06] bnoordhuis: and tweak the socket TIME_WAIT time [13:06] juniks: bnoordhuis: so there is nothing i could do in the client code itself besides catching the exception and reporting it? [13:07] bnoordhuis: juniks: that's correct, that error is the OS reporting that all local ports are in use [13:07] garrensm_ has joined the channel [13:09] jmar777 has joined the channel [13:09] garrens__ has joined the channel [13:09] scott_gonzalez has joined the channel [13:09] cwo has joined the channel [13:09] sylvinus_ has joined the channel [13:11] Marko has joined the channel [13:11] jimmysparkle has joined the channel [13:11] neurodrone has joined the channel [13:12] brianseeders has joined the channel [13:12] cjm has joined the channel [13:12] cosmincx has joined the channel [13:13] pagameba has joined the channel [13:14] enmand has joined the channel [13:14] Xano has joined the channel [13:14] dhasenan has joined the channel [13:17] juniks: bnoordhuis: okay, thanks much! [13:18] tomlion has joined the channel [13:21] anderson has joined the channel [13:22] waheedi has joined the channel [13:22] waheedi: whats up? [13:23] waheedi: any good node js caching tools ? [13:23] subbyyy has joined the channel [13:24] anderson: hello, I had a question. anyone help me. I don't know how to use outside variable in the callback function. [13:24] anderson: http://dpaste.com/660229/ [13:24] erichynds has joined the channel [13:25] vvo has joined the channel [13:26] HolyGoat has joined the channel [13:28] stepheneb has joined the channel [13:28] hipsterslapfight has joined the channel [13:29] Monit0r has joined the channel [13:29] ioNull has joined the channel [13:31] Marko has joined the channel [13:31] mehtryx has joined the channel [13:32] rio{ has joined the channel [13:33] Lingerance: anderson: that should work [13:33] anderson: but not. [13:33] fumanchu182 has joined the channel [13:33] anderson: I can't get the value of 'total' and 'page'. [13:34] Lingerance: What's the error your getting [13:34] anderson: I am confused. [13:34] heavysixer has joined the channel [13:34] anderson: They are 'NaN'. [13:35] Lingerance: Then your math somewhere didn't work, or parseInt failed. [13:36] Lingerance: Also, you'll want to define them with var unless you want race-conditions to mess with their values. [13:36] tomlion has joined the channel [13:36] mmalecki: ok, can anyone here reproduce forever watch issue? [13:36] mmalecki: people say that it fails to watch at all/resets app all the time [13:37] mmalecki: but I can't reproduce it :< [13:37] anderson: same error with 'var'. [13:37] evilcelery has joined the channel [13:38] evilcelery: hi all, am having some issues using zombie.js; I think it's to do with coffeescript, can anyone help me out? [13:38] anderson: Lingerance: 'total' has value in Line 11. [13:39] JakeyChan has joined the channel [13:39] anderson: Lingerance: BTW, can I pass other parameters to callback function ? [13:43] bnoordhuis: mmalecki: what does forever use to watch for changes? [13:44] mmalecki: bnoordhuis: mikeal's watch [13:44] bnoordhuis: mmalecki: okay, and what does that use? [13:44] cosmincx has joined the channel [13:44] mmalecki: bnoordhuis: let me check it [13:45] mmalecki: bnoordhuis: fs.watchFile [13:45] mmalecki: oh shit! it should use fs.watch, right? [13:45] bnoordhuis: mmalecki: well... yes [13:45] tiagobutzke_ has joined the channel [13:45] bnoordhuis: fs.watch() has some issues on solaris and the bsds though, including os x [13:45] mmalecki: yeah, well, I still can't reproduce it, it works fine here [13:46] willwhite has joined the channel [13:46] mmalecki: bnoordhuis: does fs.watchFile work? [13:46] bnoordhuis: mmalecki: yes, but not on windows [13:46] mmalecki: bwhahahaha [13:46] mmalecki: sorry, that was me laughting at windows users [13:46] adambeynon has joined the channel [13:46] Rockinoutt93 has joined the channel [13:47] mmalecki: bnoordhuis: fs.watchFile uses polling, right? [13:47] Rockinoutt93 has left the channel [13:48] Tobsn has joined the channel [13:48] bnoordhuis: mmalecki: yes [13:48] mmalecki: bnoordhuis: and fs.watch uses inotify and kqueue? [13:49] saj1th_ has joined the channel [13:49] DennisRasmussen has joined the channel [13:49] bnoordhuis: mmalecki: yes, plus event ports on solaris and ReadDirectoryChanges on windows [13:50] bnoordhuis: event ports is a fucking disaster btw >:( [13:50] garrensmith has joined the channel [13:51] mmalecki: bnoordhuis: if that's the API, then I agree: http://developers.sun.com/solaris/articles/event_completion.html [13:51] bnoordhuis: mmalecki: and the implementation too, watching files with it works just barely [13:51] mmalecki: bnoordhuis: ok, so BSDs use kqueue, and we have problems with it? can you describe them/link me to the issue? [13:52] sreeix_ has joined the channel [13:53] arturadib has joined the channel [13:54] Xano has joined the channel [13:54] bnoordhuis: mmalecki: #2054, #2062, #2126 among others [13:54] bnoordhuis: trevor burnham reported a slew of issues [13:56] mmalecki: bnoordhuis: ok. this should be fixed in libuv, right? [13:56] bnoordhuis: mmalecki: mostly [13:56] aliem has joined the channel [13:56] mmalecki: bnoordhuis: ok, let me use my c-fu [13:57] pHcF has joined the channel [13:58] mmalecki: OH MY GOD IT HAS TYPES. [14:03] cjm has joined the channel [14:03] joshsmith has joined the channel [14:04] ph^_ has joined the channel [14:05] jxie_ has joined the channel [14:06] bnoordhuis: mmalecki: https://gist.github.com/1385726 <- if you want to play around with event ports on sunos [14:06] bnoordhuis: watch a directory, do 'echo 42 > foo' a couple of times, watch in horror... [14:07] jtsnow has joined the channel [14:07] davidsklar has joined the channel [14:08] mmalecki: bnoordhuis: thanks for putting it together. it's one of the things that Randomly Fail (tm) ? [14:08] bnoordhuis: mmalecki: no, it fails consistently but it makes fs.watch() pretty useless... [14:08] mmalecki: bnoordhuis: oh, ok [14:09] bnoordhuis: the kernel reports the first event (when the file is created) but doesn't report later updates [14:09] gut4 has joined the channel [14:09] lduros has joined the channel [14:10] thinkt4nk has joined the channel [14:10] jtrudeau has joined the channel [14:10] mmalecki: bnoordhuis: ok. I'll get to it once I deal with pissed off users [14:10] mmalecki: bnoordhuis: also, which solaris do you use for testing? Solaris, opensolaris? [14:11] Benn2 has joined the channel [14:12] xetorthio: why cluster master is not being notified when I kill a worker? I thought the "death" event would fire up [14:12] scttnlsn has joined the channel [14:12] AaronMT has joined the channel [14:13] waheedi_ has joined the channel [14:13] zomg: http://blog.jetbrains.com/webide/2011/11/webstorm-your-node-app/ [14:13] plutoniix has joined the channel [14:13] zomg: Seems they've got a node plugin now [14:14] zomg: or at least something very very basic [14:14] waheedi_: any good cache modules [14:14] waheedi_: ? [14:14] jomoho has joined the channel [14:15] vkareh has joined the channel [14:15] jldbasa has joined the channel [14:15] bnoordhuis: mmalecki: illumos, what joyent uses [14:16] bnoordhuis: solaris 10 doesn't have an event ports that's capable of fs watching btw, that's only in solaris 11 [14:16] mmalecki: bnoordhuis: ok, thanks [14:17] Margle has joined the channel [14:17] k1ttty has joined the channel [14:19] Poetro has joined the channel [14:19] Poetro has joined the channel [14:22] tanepiper: Are there any test frameworks for node that a) Do async and b) Work with travis-ci ? [14:23] tanepiper: zomg: no one needs a hulking IDE :p I'm doing the same but for a lightweight text editor and it works just as well [14:23] malkomalko has joined the channel [14:24] codygray has joined the channel [14:24] context: ide's are a personal oppinion. [14:25] igl: a) yes b) no clue [14:25] ceej has joined the channel [14:25] tanepiper: igl: looks like node-mongolian has tests for it, so i'll check what they are doing [14:26] tanepiper: looks like noderunner [14:26] stagas has joined the channel [14:26] tronhammer has joined the channel [14:26] DennisRas has joined the channel [14:27] JasonJS has joined the channel [14:28] VeXii has joined the channel [14:28] CarterL has joined the channel [14:29] scttnlsn has joined the channel [14:31] marcostoledo has joined the channel [14:31] uchuff has joined the channel [14:33] cosmincx has joined the channel [14:34] jsurfer has joined the channel [14:35] jomoho2 has joined the channel [14:35] akamike has joined the channel [14:36] mmalecki: tanepiper: vows [14:36] mmalecki: tanepiper: pretty much everything works with travis-ci [14:36] tanepiper: mmalecki: reading it nodeunit seems enough for me [14:36] tanepiper: but thanks [14:37] mmalecki: tanepiper: sure it is :). test frameworks are just a matter of preferences [14:38] tanepiper: i'm terrible at writing tests but since this bug yesterday, i thought it was probably time :p [14:39] augustl: always a good thing to avoid repetitive work [14:39] Draco_ has joined the channel [14:41] bodisiw has joined the channel [14:42] grekko has joined the channel [14:42] arcatan: i'm not too eager to write tests, but it sure helps to set up testing early in the project [14:42] arcatan: then it's there when you need it [14:44] satyr has joined the channel [14:44] deedubs has joined the channel [14:45] tvw has joined the channel [14:46] mnutt has joined the channel [14:48] N0va` has joined the channel [14:49] interrupt has joined the channel [14:51] dwww has joined the channel [14:52] dwww has left the channel [14:54] neshaug has joined the channel [14:55] MatthewS has joined the channel [14:56] shinuza has joined the channel [14:58] baudehlo has joined the channel [14:59] jomoho has joined the channel [15:00] jarek has joined the channel [15:01] scttnlsn has joined the channel [15:02] CIA-109: node: 03Ben Noordhuis 07v0.6 * r7defbd2 10/ (4 files in 2 dirs): test: add DSA sign/verify crypto tests - http://git.io/O-HqPw [15:02] jstash has joined the channel [15:03] brianc has joined the channel [15:06] blup has joined the channel [15:07] satyr has joined the channel [15:07] jimt_ has joined the channel [15:08] cosmincx has joined the channel [15:08] jomoho2 has joined the channel [15:10] npa has joined the channel [15:10] Swimming_Bird has joined the channel [15:11] bradleymeck has joined the channel [15:11] arcatan: hmm, i use vows to run some tests. from command line "vows --spec test/*.coffee" works just fine, but when I added that as package.json script, npm test complains that it can't find module 'eyes' [15:11] p_nitsch has joined the channel [15:12] MatthewS has joined the channel [15:12] arcatan: oh, it's running the locally installed vows and not the global one. hmm. [15:13] Morkel has joined the channel [15:14] arcatan: okay, problem solved. the locally installed vows was somehow corrupted [15:15] jomoho has joined the channel [15:16] jerrysv has joined the channel [15:16] enmand has joined the channel [15:16] thomblake has joined the channel [15:17] MatthewS has joined the channel [15:18] colinclark has joined the channel [15:18] josh-k has joined the channel [15:21] jomoho has joined the channel [15:21] TheJH has joined the channel [15:22] trose has joined the channel [15:23] lazyshot has joined the channel [15:23] aadrake has joined the channel [15:24] neshaug has joined the channel [15:25] luoluoluo has joined the channel [15:25] diogogmt has joined the channel [15:26] lmao24 has joined the channel [15:27] jomoho2 has joined the channel [15:28] joshkehn has joined the channel [15:29] heavysixer has joined the channel [15:29] joshkehn has left the channel [15:30] ceej has joined the channel [15:31] waheedi has joined the channel [15:31] paq has joined the channel [15:31] CoverSlide has joined the channel [15:31] mike5w3c has joined the channel [15:32] staar2 has joined the channel [15:33] staar2: hello [15:33] staar2: What i do wrong here with getting arguments ? ip = process.argv[2]; port = parseInt(process.argv[3]); [15:34] staar2: Then run node http-server.js 89.235.213.111 6666 [15:35] jbrokc_ has joined the channel [15:35] jerrysv: staar2: try console.dir(process.argv); [15:35] binaryjohn has joined the channel [15:36] jerrysv: i bet you will find that process.argv[1] is what you're looking for for ip [15:36] rauchg has joined the channel [15:36] hipsterslapfight has joined the channel [15:37] Dlamp has joined the channel [15:37] staar2: jerrysv, well actually the node is included also [15:37] staar2: 'node' [15:37] TheJH: staar2, try putting "console.log(process.argv)" in your code and looking what happens [15:37] TheJH: staar2, looks fine to me [15:38] catshirt has joined the channel [15:38] pifantastic has joined the channel [15:38] staar2: ok then the arguments are used in .listen(port, ip), but no response on that ip [15:39] Dlamp: i am using v0.6.2 and trying to fork a child process and I am getting - TypeError: Object # has no method 'fork' Any ideas? [15:39] c4milo1: hey, does anybody know how can I catch an EPIPE, Broken pipe exception? [15:40] CoverSlide: Dlamp: you're using `require('child_process').fork()` ? [15:40] c4milo1: mjr_: ? [15:40] c4milo1: ryah: ? [15:40] jocafa has joined the channel [15:40] Dlamp: following the documentation - var cp = require('child_process'); [15:41] futini has joined the channel [15:41] jomoho has joined the channel [15:42] CoverSlide: just gist your code that's failing [15:43] sreeix has joined the channel [15:44] gtramontina has joined the channel [15:44] futini has joined the channel [15:45] davidascher has joined the channel [15:45] Draco_ has joined the channel [15:45] brianloveswords has joined the channel [15:45] ritch has joined the channel [15:46] fuson has joined the channel [15:46] trose: so I'm initiating a download dialog in the browser but this is dropping my session. Is there a way to prevent this or detect it and react? [15:47] ritch has left the channel [15:47] cgray has joined the channel [15:47] fuson: HI all [15:48] Dlamp: CoverSlide: disregard I was trying to test under nodeunit. works fine outside of nodeunit [15:48] fuson: anybody know about plans / projects about sctp support in node.js? [15:49] CoverSlide: some modules dont work so well with fork [15:49] CoverSlide: trose: are you using express/connect? [15:49] BillyBreen has joined the channel [15:49] MatthewS has joined the channel [15:50] jomoho2 has joined the channel [15:50] trose: CoverSlide, yep [15:51] gtramontina has left the channel [15:52] gtramontina has joined the channel [15:52] blup has joined the channel [15:52] CoverSlide: well the session would be managed by the cookieParser middleware, followed by the session middleware. The cookie should persist on the browser unless the cookie gets deleted somehow. [15:52] ayaz has joined the channel [15:53] CoverSlide: now if you can't see the session in your code, it's probably due to the code being called before cookieParser and/or session [15:53] cfq has joined the channel [15:54] lyte has joined the channel [15:54] lyte has joined the channel [15:55] jocafa has joined the channel [15:56] Dreamer3 has joined the channel [15:56] mendel_ has joined the channel [15:57] jarek has joined the channel [15:58] jtsnow has joined the channel [15:59] jstash has joined the channel [16:00] issackelly_ has joined the channel [16:00] fuson: anybody know about plans / projects of sctp support in node.js? [16:01] CoverSlide: doesn't exist [16:01] CoverSlide: g'head and make it [16:02] CiRlE has joined the channel [16:03] luke` has joined the channel [16:03] ph^ has joined the channel [16:04] trose: CoverSlide, I fixed it by using window.open on my client side instead of manually setting window.location [16:04] trose: CoverSlide, thanks for the help [16:05] tjholowaychuk has joined the channel [16:05] airhorns has joined the channel [16:06] JakeyChan: is there good module to handle static file ? like css, js [16:06] klaemo has joined the channel [16:07] futini has joined the channel [16:08] JakeyChan: node-static looks good ! [16:09] CoverSlide: are you using express/connect, cause it has a static middleware builtin [16:09] EhevuTov has joined the channel [16:10] fairwinds: mde: hi ya. with minimatch and jake was using a glob like node_modules/** but it does not seem to be getting everything recursively [16:10] fairwinds: but had worked well with glob [16:10] CIA-109: node: 03Ben Noordhuis 07isolates * rb20a257 10/ (16 files in 7 dirs): uv: upgrade to 0834e73 - http://git.io/uhrePw [16:10] CIA-109: node: 03Ben Noordhuis 07isolates * r9f27c2c 10/ (18 files in 2 dirs): isolates: isolate-ify the main loop - http://git.io/36uvbA [16:11] bnoordhuis: ^ thus it begins [16:12] CoverSlide: JakeyChan: https://gist.github.com/1152585 [16:12] CoverSlide: what are isolates again? [16:12] JakeyChan: CoverSlide: great ! [16:13] gut4 has joined the channel [16:15] codygray has joined the channel [16:15] Renegade001 has joined the channel [16:18] bnoordhuis: CoverSlide: threads or processes in javascript [16:18] CiRlE has joined the channel [16:18] bnoordhuis: more like processes because there is no shared state [16:18] marcello3d has joined the channel [16:18] CoverSlide: oic [16:19] josh-k has joined the channel [16:19] sreeix has joined the channel [16:19] jaequery has joined the channel [16:19] stepheneb has joined the channel [16:20] mandric has joined the channel [16:21] boltR has joined the channel [16:22] stepheneb has joined the channel [16:22] aelien27 has joined the channel [16:23] shanebo has joined the channel [16:23] Me1000 has joined the channel [16:24] CiRlE has joined the channel [16:24] Illusioneer has joined the channel [16:25] aheckmann has joined the channel [16:25] MooGoo: well it's a thread within v8 [16:26] Illusioneer has left the channel [16:26] gabaug has joined the channel [16:26] CoverSlide: but not traditional threads, i guess that's why they called them isolates and not threads [16:27] dshaw_ has joined the channel [16:27] alvaro_o has joined the channel [16:27] isaacs has joined the channel [16:29] aheckmann has joined the channel [16:29] felixge has joined the channel [16:29] felixge has joined the channel [16:31] wojohowitz has joined the channel [16:33] kuebk has left the channel [16:35] ryanfitz has joined the channel [16:36] caolanm has joined the channel [16:36] dexter_e has joined the channel [16:36] davidwalsh has joined the channel [16:36] FireFly has joined the channel [16:37] mnutt has joined the channel [16:37] FireFly has joined the channel [16:38] secoif has joined the channel [16:38] neurodrone has joined the channel [16:39] gtramontina has joined the channel [16:40] klaemo: noob question: what's the best place to set up a database connection in an expressjs app? once per file/module or once globally and then pass the connection object around? [16:40] marcosto_ has joined the channel [16:41] bartt has joined the channel [16:41] pksunkara: globally is the best choice ofcourse [16:41] pksunkara: but instead of passing it around [16:41] tjbot has joined the channel [16:41] pksunkara: you can attach it to process [16:41] pksunkara: which is a global variable [16:42] gtramontina: klaemo: it depends on your design… nothing related to expressjs specifically. [16:42] tjbot has joined the channel [16:42] gtramontina: global vars are never a good thing, IMO. [16:43] gtramontina: you can have your 'data access layer'… or you could have an active record-like implementation. [16:43] jesusabdullah: well [16:43] jesusabdullah: not a global var, but a top-level var [16:43] tjbot has joined the channel [16:43] CiRlE has joined the channel [16:43] fairwinds: isaacs: hi ya. I am running into some trouble with minimatch. I am globbing to get all files and folders recursively. ie node_modules/** should give me all folders and files recursively [16:44] klaemo: pksunkara: so I creat the connection once at app startup and attach it to process? [16:44] pizthewiz has joined the channel [16:44] pksunkara: yes [16:44] jesusabdullah: A trick is to attach it to your "main" object, and then require the main lib from your sub-libs and then access main.db [16:44] jesusabdullah: Not sure of that's "best practices" but it totally works [16:44] isaacs: fairwinds: minimatch is not a file walker [16:44] isaacs: fairwinds: it's strictly a string comparison lib [16:44] isaacs: fairwinds: ie, it's fnmatch(3), not glob(3) [16:44] klaemo: jesusabdullah: well, that's basically the same as attaching it to process [16:45] jesusabdullah: except you still have to require it [16:45] fairwinds: isaacs: right I realize. The previous glob package descended recursively [16:45] jesster7 has joined the channel [16:45] jesusabdullah: which is a good thing. I don't think strapping shit to your globals is a good idea [16:45] isaacs: fairwinds: right [16:45] jesusabdullah: typically [16:45] igl has joined the channel [16:46] jesster7 has left the channel [16:46] jesusabdullah: It's generally good to be able to find the line where something was added to the namespace, imo [16:46] isaacs: fairwinds: but this works as expected: [16:46] isaacs: > require("minimatch")("node_modules/foo/bar/baz", "node_modules/**") [16:46] isaacs: true [16:46] adrianF has joined the channel [16:46] irahgel has left the channel [16:46] dexter_e: klaemo: good question! I'm not sure if we have consensus yet :) [16:46] pksunkara: yes, but how much overhead does that cost? [16:46] jesusabdullah: Wait, what's causing overhead? [16:47] dexter_e: I find that if a system is well modular you end up not needing to make lots of connections from lots of places [16:47] klaemo: dexter_e: i see, so it's not just me [16:47] pksunkara: you know requiring and attaching [16:47] fairwinds: isaacs: I have some deep trees [16:47] isaacs: fairwinds: what string isnt' matching properly? you have a test case? [16:47] ank has joined the channel [16:47] kitt has joined the channel [16:49] dexter_e: klaemo: I try to blackbox the database connections inside abstract models and then pass around and expose those models and connect to the db from within that module as if its not aware of the outside world. [16:50] fairwinds: isaacs: if I do node_modules/** it will descend to get folders at first level and the folders and files in these. [16:50] fairwinds: shit sorry [16:50] fairwinds: will get folders ie. node_modules/optimist","node_modules/request","node_modules/underscore", [16:51] fairwinds: but not the folders and files contained in these [16:51] buttface has joined the channel [16:51] dexter_e: klaemo: but I'm still interested to see how the pros do it , as I am fairly new to node too! [16:51] jesusabdullah: pksunkara: I'm not sure I see the overhead. I mean, it's another command right? But that's totally worth it from a bookkeeping standpoint [16:51] jesusabdullah: and it's not like requires are known to be so totally slow [16:51] pksunkara: yeah [16:52] pksunkara: but in some cases, attaching it to process would be better [16:52] simenbrekken has joined the channel [16:52] fairwinds: isaacs: My projects are about 30MB min and contain binaries I am packaging also. So need this to work in a recursive way [16:52] dexter_e: I think requires are just as fast as inline code the second time they run right ? [16:52] pksunkara: but we don't encounter such cases [16:52] jesusabdullah: Yeah, I was gonna say I'd imagine such a case is pretty rare [16:52] isaacs: fairwinds: please share a full code sample. minimatch does *zero* file system operations. [16:53] isaacs: fairwinds: so, whatever is "descending recursively", it's not minimatch. [16:53] isaiah_ has joined the channel [16:53] isaacs: fairwinds: if you're doing fs.readdir, you'll have to stat those things, then do readdir on the ones that are directories, etc. [16:53] stelleg has joined the channel [16:53] isaacs: fairwinds: or you could use findit, or something else to walk the directories [16:53] smgt has joined the channel [16:53] jesusabdullah: most of the stuff I want attached is already there, plus some stuff I'd rather be elsewhere [16:54] jesusabdullah: findit's handy [16:54] pksunkara: ACTION looking up findit [16:54] jbrokc_ has joined the channel [16:56] tomlion has joined the channel [16:56] fairwinds: isaacs: well, will need to start there I guess. mde included in jake and I'd imagine there may be others that are looking for something of a glob replacement for pakaging particularly. minimatch takes care of the pattern matches well but without the recursion, it would need to be written by everyone [16:56] fairwinds: s/ packaging [16:56] CiRlE has joined the channel [16:57] lyte_ has joined the channel [16:57] fmeyer has joined the channel [16:58] galaxywatcher has joined the channel [16:58] klaemo: hm i'm still kind of confused about the whole db situation [16:58] fairwinds: glob is meant to recursively dig into folders using the appropriate syntax [16:58] isaacs: fairwinds: yes. [16:58] tjholowaychuk: klaemo you can do whatever you want really [16:58] tjholowaychuk: app could be a global with app.db as a connection [16:58] isaacs: fairwinds: that's why minimatch isn't a glob replacement, but rather something that could be used in a pure-js node-glob implementation. [16:58] tjholowaychuk: process.db whatever you want really [16:58] marcostoledo has joined the channel [16:58] isaacs: fairwinds: it's on my todo list. [16:59] isaacs: if you wanna snipe it, be my guest :) [16:59] isaacs: fairwinds: the goal is to mock the existing node-glob API exactly, but using JS instead of C [16:59] klaemo: tjholowaychuk ok, makes sense [16:59] tjholowaychuk: klaemo assuming your app is not one that you expect others to require() that is [16:59] fairwinds: isaacs: I likely have to do it this afternoon [16:59] isaacs: fairwinds: patches welcome!! [16:59] klaemo: tjholowaychuk no, it's not. [16:59] jesusabdullah: What's jake for, again? [16:59] tjholowaychuk: globals in your own app are only "wrong" if you're clumsy [17:00] fairwinds: jesusabdullah: like rake [17:00] fairwinds: in js [17:00] JakeSays: ACTION also wonders what jake is for [17:00] fairwinds: heh [17:00] mikl has joined the channel [17:00] pksunkara: there's cake for coffeescript [17:00] jesusabdullah: fairwinds: Not a ruby guy [17:00] mikl has joined the channel [17:00] fairwinds: no me either. was more of a python guy before node [17:00] secoif: whoa, has anyone hit 'max call stack' legitimately before? I'm not doing any recursion as far as I can tell, i've just got nested nodeunit testcases [17:00] jesusabdullah: I assume it's make-like, but what sort of compilation could you need with javascript? [17:01] fairwinds: so had the wonderful zc.buildout [17:01] diogogmt has joined the channel [17:01] jesusabdullah: It makes sense to me if you have a node project and want a minified compressed browser version [17:01] jesusabdullah: use something like codesurgeon and/or browserify [17:01] jesusabdullah: but yeah, what does jake end up doing for you? [17:02] jesusabdullah: Also, I was a python guy before node too fairwinds ^5 [17:02] JakeSays: usually not much unless you pay him well [17:02] ekryski has joined the channel [17:02] jesusabdullah: Speaking of python: https://gist.github.com/1384975 turns out tornado is passably cool [17:02] isaacs: jesusabdullah: the problem is that makefiles are too reliable and work too consistently. [17:02] CIA-109: node: 03isaacs 07master * re543b0e 10/ test/simple/test-zlib-from-string.js : zlib: Fix invalidly failing test - http://git.io/Rc5MjA [17:02] CIA-109: node: 03Felix Geisendörfer 07master * rb3f91f1 10/ (lib/stream.js test/simple/test-stream-pipe-cleanup.js): [17:02] CIA-109: node: Remove support for multi-source pipe() [17:02] CIA-109: node: This reverts 6c5b31bd which had too few use cases, too much complexity, [17:02] CIA-109: node: and can be handled in user-land by using `{end: false}`. [17:02] CIA-109: node: Closes #1996 - http://git.io/Pp7icQ [17:02] isaacs: jesusabdullah: this is a really big problem for tool people in high-level languages. [17:02] klaemo: tjholowaychuk so, I can access app in my seperate route files as well, right? [17:02] fairwinds: jesusabdullah: this is not use case. use case is building bundling and performing tasks [17:03] ekryski has joined the channel [17:03] tjholowaychuk: klaemo if you made it a global yeah [17:03] klaemo: ok [17:03] isaacs: jesusabdullah: so they invent stuff like rake and cake and jake and shake and bake [17:03] jesusabdullah: fairwinds: So, like, "take these files, mash 'em together, minify/compress" ? [17:03] fairwinds: but can use for anything really that you want. its all just js [17:03] isaacs: fairwinds: you can do that in make, too ;) [17:03] JakeSays: tjholowaychuk: so i ended up not porting your canvas to skia.. i just changed chromes canvas to render to a vector instead of a bitmap [17:03] jesusabdullah: isaacs: Doesn't m4 have some weird crap with tabs? I remember that. [17:03] fairwinds: that could be one use yes [17:04] isaacs: jesusabdullah: make is the worst syntax. [17:04] jesusabdullah: I'm all for not reinventing the wheel but, yeah, in their defense [17:04] isaacs: jesusabdullah: but it works incredibly well. [17:04] jesusabdullah: shitty syntaxxx [17:04] dgathright has joined the channel [17:04] isaacs: the syntax is the only problem. you cannot say that about any other system. [17:04] jesusabdullah: What if you made a thing that made makefiles for you [17:04] jGoods has joined the channel [17:04] CoverSlide: ant has shitty syntax [17:04] isaacs: jesusabdullah: noooooooo!!!!! [17:04] tjholowaychuk: ant is the worst [17:04] tjholowaychuk: make <3 [17:04] jesusabdullah: I'm totally doing this now [17:04] fairwinds: isaacs: sure but tasks are reusable and individually callable or groupable etc [17:05] mange_ has joined the channel [17:05] jesusabdullah: and I'm gonna use JAKE to do it [17:05] jesusabdullah: muahaha [17:05] fairwinds: heh [17:05] jesusabdullah: ...ppfsht like I'd have the time for that [17:05] isaacs: fairwinds: you can reuse tasks in make, too [17:05] isaacs: just make them a prereq [17:05] deedubs: since tjholowaychuk introduced them to me I write everything into make tasks [17:05] isaacs: foo: bar [17:05] isaacs: do bar and then do some other stuff [17:06] saikat has joined the channel [17:06] isaacs: or even: [17:07] isaacs: foo: [17:07] isaacs: $(MAKE) bar [17:07] deedubs: because npm is so fast, on one project that had junior dev I had `run: installDeps` that ran npm i before it started the app [17:07] galaxywatcher has joined the channel [17:07] isaacs: hah [17:07] isaacs: you think npm is fast. [17:07] isaacs: tha'ts funny. [17:07] isaacs: ;P [17:07] TheJH: :D [17:08] deedubs: isaacs: I'm also working on a rails project [17:08] isaacs: oh, that explains it [17:08] fairwinds: isaacs: sure. I guess bottom line is I want to do it all in js since I can use the code anywhere and require bits of code i have written anywhere [17:08] isaacs: your perception is warped ;) [17:08] deedubs: haha yes [17:08] TheJH: the ruby stuff is SLOWER than npm? really? [17:08] deedubs: takes 57 seconds for bundler to run [17:08] _dc has joined the channel [17:09] pksunkara: npm is much much better than bundler [17:09] deedubs: isaacs: if its slow are you planning on making it fast? :) [17:10] isaacs: deedubs: yes [17:10] jesusabdullah: I looked at bundler and rubygems when trying to play with ruby and they scared me off [17:10] jesusabdullah: they're so bad :( [17:10] Renegade001 has joined the channel [17:10] npa has joined the channel [17:11] CiRlE has joined the channel [17:11] Dreamer3 has joined the channel [17:12] deedubs_ has joined the channel [17:13] reid has joined the channel [17:15] baudehlo: ACTION thinks npm is too fast. [17:15] baudehlo: I often think it can't have worked in that time :) [17:15] plutoniix has joined the channel [17:16] Isaiah has joined the channel [17:16] lwille has joined the channel [17:17] jtsnow has joined the channel [17:17] gr-eg has joined the channel [17:17] jesusabdullah: Buy shittier internet [17:18] baudehlo: good plan but I'd rather not :) [17:19] magnetik has joined the channel [17:19] jesusabdullah: Best plan. [17:20] vkandy has joined the channel [17:20] saj1th has joined the channel [17:20] waheedi has joined the channel [17:20] fangel has joined the channel [17:21] garrensmith has joined the channel [17:23] te-brian2 has joined the channel [17:23] dilvie has joined the channel [17:24] ank has joined the channel [17:24] blup has joined the channel [17:25] chrislorenz has joined the channel [17:25] cfq has joined the channel [17:26] stantona has joined the channel [17:27] waheedi has left the channel [17:27] kenbolton has joined the channel [17:28] _dc has left the channel [17:28] fzzzy has joined the channel [17:29] jomoho has joined the channel [17:29] SamuraiJack has joined the channel [17:30] githogori has joined the channel [17:31] kuya has joined the channel [17:31] booyaa has joined the channel [17:32] devongovett has joined the channel [17:32] trotter has joined the channel [17:34] thalll has joined the channel [17:35] michaelbhatti has joined the channel [17:36] lightcap has joined the channel [17:37] thax has joined the channel [17:37] ryanolds_w has joined the channel [17:39] syoyo_ has joined the channel [17:40] fatjonny has joined the channel [17:40] alvaro_o has joined the channel [17:41] cosmincx has joined the channel [17:41] davidascher has joined the channel [17:42] yogurt_truck has joined the channel [17:43] eephillip has joined the channel [17:44] catshirt has joined the channel [17:45] fmeyer_ has joined the channel [17:47] bogomips has joined the channel [17:47] MatthewS has joined the channel [17:47] ryan_stevens has joined the channel [17:48] davidascher has joined the channel [17:48] lightcap has joined the channel [17:48] gtramontina has joined the channel [17:48] eignerchris has joined the channel [17:50] interrupt has joined the channel [17:52] chrixian has joined the channel [17:52] tronhammer has joined the channel [17:52] mcluskydodallas has joined the channel [17:53] perezd has joined the channel [17:53] satyr has joined the channel [17:54] necromancer: jesusabdullah: what's wrong with bundler? [17:54] pksunkara: necromancer: It's slower than npm [17:54] necromancer: oh that's all? [17:54] necromancer: ok [17:54] isaacs: pksunkara: that kind of baffles me. [17:54] necromancer: is ruby effectively slower than v8? [17:54] isaacs: npm is pretty darn slow [17:54] isaacs: necromancer: way way slower, yes. [17:54] isaacs: but npm is kind of inefficient. [17:55] pksunkara: isaacs: yes [17:55] isaacs: (working on that now) [17:55] pksunkara: but it is largely faster than bundler :) [17:55] patcito has joined the channel [17:55] pksunkara: which makes it great in the eyes of those who used bundler [17:55] Destos has joined the channel [17:56] isaacs: pksunkara: if that's the case, then it's going to be WAY better than bundler in a few months ;) [17:56] pksunkara: :) [17:56] pksunkara: isaacs: why don't we have stats in npmjs.org ? [17:57] isaacs: for 1.1, i'm introducing a javascript tar implementation, and that'll allow for streamlining a bunch of things so that installs are, for instance, only one tar action, rather than 3 [17:57] pksunkara: like how many downloads, etc.. [17:57] necromancer: isaacs: yeah i really wish the guy who made it would make it more efficient ;-) [17:57] isaacs: pksunkara: haven't gotten to it. [17:57] pksunkara: will you accept patcher? [17:57] pksunkara: *patches [17:57] neshaug has joined the channel [17:58] isaacs: pksunkara: what needs to happen, really, is to get the logs into some kind of consumable format, and then let people iterate on that data. [17:58] postwait has joined the channel [17:58] pksunkara: oh [17:58] isaacs: i don't think any patches to the client are necessary. [17:58] pksunkara: patches to npmjs.org [17:59] isaacs: pksunkara: better to iterate elsewhere, and then we can see what we can do with that data. [17:59] pksunkara: should try installing npmjs.org registry locally tomorrow [17:59] isaacs: pksunkara: at some point, npmjs.org will need to be a more robust website that proxies to the registry, rather than just a couchapp [18:01] DennisRasmussen has joined the channel [18:01] r1ngzer0 has joined the channel [18:03] cfq: if I have a counter, and I increment it for each async function I call [18:03] cfq: and then I decrement the counter each time in the callback [18:03] cfq: will it ever run into any race conditions? [18:03] DrHeiter23 has joined the channel [18:04] adambeynon has joined the channel [18:04] sh1mmer has joined the channel [18:04] cfq: this might be a stupid question, but I thought it might actually work since node's a single process [18:04] aaronmcadam has joined the channel [18:04] imarcusthis has joined the channel [18:04] wink_: cfq: its going to depend on what you're doing with that counter [18:05] DrHeiter23: Trying to make a request (using 'request' module) to http://www.weather.com. I am using the same exact headers is sent on my firefox but I get a totally different response (and it fails in my node project). Here are the HTTP header request/responses for each..any idea whats going on? http://pastebin.com/A6nDgveu [18:05] TooTallNate has joined the channel [18:05] salva has joined the channel [18:05] cfq: wink_: making loads of calls to redis and then waiting for them to finish and close the connection. [18:06] pksunkara: DrHeiter23: any proxy issues? [18:06] cfq: wink_: that's one thing I've done it for now. maybe I should just ab -n 10000 -c 1000 and see what happens. [18:06] DrHeiter23: pksunkara: what do you mean, I shouldn't be configured to use proxies on my FF or node project [18:07] wink_: cfq: you'll probably be just fine, you're not going to hit the same types of races, but a whole new set ;> [18:07] wink_: if you hit anything at all [18:07] cfq: wink_: new bugs. cool. I'll report findings. [18:08] cosmincx has joined the channel [18:08] imarcusthis has joined the channel [18:08] richardr has joined the channel [18:12] herbySk has joined the channel [18:13] shanebo has joined the channel [18:13] leonhardtwille has joined the channel [18:14] fbartho has joined the channel [18:14] simenbrekken has joined the channel [18:15] Carter has joined the channel [18:16] magnetik_ has joined the channel [18:17] sh1mmer: Any thoughts on Memcached clients for Node? [18:19] seebees1 has joined the channel [18:20] dreamdust1 has joined the channel [18:20] dreamdust1 has left the channel [18:21] brion has joined the channel [18:21] brion has joined the channel [18:21] pgte has joined the channel [18:21] plutoniiix has joined the channel [18:22] afrogrizzly has joined the channel [18:22] bengrue has joined the channel [18:22] appinsanity-mike has joined the channel [18:24] Morkel has joined the channel [18:24] franciscallo has joined the channel [18:25] c4milo has joined the channel [18:25] baudehlo: nMemcached [18:25] harthur has joined the channel [18:26] CIA-109: node: 03Ryan Dahl 07v0.6 * r6035651 10/ doc/api/tty.markdown : Fixes #2160. Fix tty.getWindowSize docs - http://git.io/FCvU-g [18:27] josh-k has joined the channel [18:27] marcello3d has joined the channel [18:27] uchuff has joined the channel [18:28] Renegade001 has joined the channel [18:28] CarterL has joined the channel [18:28] bluesmoon has joined the channel [18:28] NetRoY has joined the channel [18:29] bluesmoon: given a net.Socket object, how can I tell if this is a TCP socket or a Unix socket? [18:29] bluesmoon: using v0.6.2 [18:29] joshthecoder has joined the channel [18:29] `3rdEden has joined the channel [18:30] baudehlo: bluesmoon: by reading your code? :) [18:30] bartt has joined the channel [18:30] sh1mmer: baudehlo: isn't nMemcached superseded by Memcached? [18:30] jesusabdullah: necromancer: It's not just bundler in and of itself, it's like the whole package management toolchain [18:31] EhevuTov has joined the channel [18:32] chilts: baudehlo: nMemcached seems empty : http://search.npmjs.org/#/nMemcached [18:32] chilts: I think it's really memcached (same author) [18:32] sh1mmer: arno moved to memcached [18:32] chilts: yeah [18:32] sh1mmer: I just wanted to know if anyone had tried memcache vs memcacehd [18:32] conntrack has joined the channel [18:32] baudehlo: yeah it got renamed (didn't know): https://github.com/3rd-Eden/node-memcached/commit/100d8c33d0d65e4be025c49990d4141a36e77032#README.md [18:32] bluesmoon: baudehlo assume I'm writing a library that accepts a socket object from the caller and I need to do something different depending on whether it's a unix or tcp socket [18:33] sh1mmer: bluesmoon: sec [18:33] bluesmoon: so, how do I tell if this socket (that I have not created, and that I cannot see the source code for because it hasn't been written yet), is a unix or a tcp socket [18:33] baudehlo: bluesmoon: try looking at socket.type [18:34] bluesmoon: baudehlo while that worked in the 0.5.x series, it doesn't appear to exist in 0.6.2 [18:34] ppcano has joined the channel [18:35] sh1mmer: bluesmoon: I think they abstracted it [18:35] sh1mmer: because you don't get access to direct unix sockets any more [18:36] sh1mmer: doesn't bnoordhuis have a module for that now? [18:36] baudehlo: bluesmoon: what about looking at socket.getRemoteAddress() ? [18:37] bluesmoon: baudehlo unix domain sockets don't have a remoteAddress [18:37] baudehlo: exactly. [18:37] bluesmoon: so I could just assume that no remoteAddress == uds [18:37] bluesmoon: but that would also be true for a socket that isn't connected [18:37] baudehlo: or localAddress() [18:38] bluesmoon: hmm, that's a thought [18:38] madhums has joined the channel [18:38] sh1mmer: bluesmoon: what's the case where you get a unix socket? [18:38] baudehlo: yeah maybe youshould explain why you need to treat them differently [18:38] sh1mmer: That's what I'm trying to say is I'm not sure libuv will hand you those any more [18:39] bluesmoon: unix domain socket or socket opened to 127.0.0.1 is trusted, all other sockets are not trusted [18:39] baudehlo: ah gotcha. [18:39] sh1mmer: I think if you get unix sockets you have to get them outside of Node core via ben's library [18:40] baudehlo: sh1mmer: no. That's UDP unix sockets. [18:41] EhevuTov has joined the channel [18:41] sh1mmer: oh [18:41] bluesmoon: so apparently calling socket.address() on a unix domain socket will throw an exception [18:42] bluesmoon: because Object # has no method 'getsockname' [18:42] jbrokc_ has joined the channel [18:42] jxson has joined the channel [18:42] AvianFlu has joined the channel [18:42] baudehlo: there you go. [18:42] Marko has joined the channel [18:43] colinclark has joined the channel [18:45] colinclark_ has joined the channel [18:45] isaacs: dscape: hey [18:45] isaacs: dscape: you'd asked about tap in the browser. you should check out testlink. [18:45] isaacs: *testling [18:46] isaacs: dscape: http://testling.com [18:46] whitman has joined the channel [18:46] markwubben has joined the channel [18:46] lyte has joined the channel [18:46] arturadib has joined the channel [18:47] RISCi_ATOM has joined the channel [18:47] isaacs: dscape: i think all the code for it is open, the paid stuff is just to get the automation goodies. [18:47] gut4 has joined the channel [18:48] arlolra has joined the channel [18:49] CarterL has joined the channel [18:50] liar has joined the channel [18:50] atourino has joined the channel [18:51] springmeyer has joined the channel [18:52] icebox has joined the channel [18:52] maxogden: dscape: AND its frikkin SubStack so you know it rules. also he is my roommate. also if you pay his startup our house can get faster internet [18:52] DennisRasmussen has joined the channel [18:53] stantona has joined the channel [18:53] fmeyer has joined the channel [18:55] igl1 has joined the channel [18:56] tilgovi has joined the channel [18:56] tilgovi has joined the channel [18:56] Drakonite has joined the channel [18:56] JasonJS has joined the channel [18:58] jimmysparkle has joined the channel [18:58] ryanfitz has joined the channel [18:59] piscisaureus_ has joined the channel [18:59] fmeyer_ has joined the channel [19:00] jbrokc_ has joined the channel [19:00] catshirt has joined the channel [19:01] mikeal has joined the channel [19:01] neilk_ has joined the channel [19:01] fangel has joined the channel [19:03] pokoli has joined the channel [19:04] PatDillon has joined the channel [19:05] buttface has joined the channel [19:05] wink_ has joined the channel [19:06] boltR has joined the channel [19:06] fmeyer has joined the channel [19:06] `3rdEden has joined the channel [19:08] maushu has joined the channel [19:08] npa has joined the channel [19:10] lazyshot has joined the channel [19:10] Sami_ZzZ has joined the channel [19:11] marcello3d: quiet day [19:12] franciscallo has joined the channel [19:12] jscheel has joined the channel [19:12] jscheel has joined the channel [19:12] dscape: isaacs, maxogden thanks :D [19:13] MatthewS has joined the channel [19:14] magnetik_: err.. Windows installer does not ask where to install :/ [19:14] JaKWaC has joined the channel [19:15] magnetik_: + it's adding \ at the end of the path in PATH env var [19:15] magnetik_: and it can't work [19:16] marcello3d: any general best practices for running node on server-side? e.g. restricted user permissions, chroot, firewalling? [19:16] mmalecki: marcello3d: don't run it under sudo [19:16] mmalecki: marcello3d: setup port forwarding/proxy [19:16] arlolra has left the channel [19:17] DennisRasmussen has joined the channel [19:17] marcello3d: port forwarding? [19:17] marcello3d: so you can use port 80? [19:17] gkatsev: yes [19:17] mmalecki: yeah, setup an iptables rule to do 80 -> 8000 or whatever [19:18] gkatsev: so... npm in node. [19:18] marcello3d: mmalecki: gotcha, will look at that [19:18] r1ngzer0 has joined the channel [19:18] isaacs: gkatsev: it won't be "in" node. [19:18] marcello3d: what about chroot? [19:18] isaacs: gkatsev: it'll be installed alongside node by the binary distributions for os x and iwnodws [19:19] mmalecki: gkatsev: not that I'm hatin', but it kinda worries me [19:19] gkatsev: isaacs: that's perfectly fine. One less step for us when installing node. :) [19:19] isaacs: mmalecki: you can start it as root, and then process.setuid() to someone else. [19:19] isaacs: gkatsev: that's the idea :) [19:19] gkatsev: and yeah, makes more sense to do it that way then really put it "in" [19:20] marcello3d: isaacs: is there any reason to do that over the iptables route? [19:20] mmalecki: isaacs: prolly. I don't like starting any app with sudo [19:20] piscisaureus_ has joined the channel [19:20] isaacs: mmalecki: then you should start it as "nobody" [19:20] magnetik_: Just filled in : https://github.com/joyent/node/issues/2164 [19:20] isaacs: mmalecki: your user account can do a lot of damage [19:20] mmalecki: isaacs: sudo -u nobody ? [19:20] colinclark_ has joined the channel [19:20] EhevuTov has joined the channel [19:20] isaacs: mmalecki: sure [19:20] aliem has joined the channel [19:21] isaacs: mmalecki: but, for instance, a lot of apps (npm included) will use a specific limited user when run as root [19:21] mmalecki: isaacs: I know, I read the code [19:21] isaacs: so your www exposed folders are owned by "www-data" or "httpd" or someone [19:21] dubenstein has joined the channel [19:21] isaacs: and then that user can't do anything else anywhere [19:21] isaacs: doesn't have a home dir, etc. [19:21] mmalecki: isaacs: oh! I think I forgot about implementing this platform code :< [19:21] mmalecki: isaacs: I'll get to it tomorrow [19:21] Juan77 has joined the channel [19:21] isaacs: mmalecki: what platform code? (i guess i forgot it also...?) [19:21] blup has joined the channel [19:22] mmalecki: isaacs: platform in package.json [19:22] marcello3d: ok now I'm more confused :D [19:22] mmalecki: isaacs: limiting install to specific platform [19:23] marcello3d: so make a user with no permissions except read access to the javascript, run sudo -u node server.js, then after I start listening, I use process.setuid() ? [19:25] necromancer: jesusabdullah: hey at least it's not pip [19:25] necromancer: it took me a bit of screwing around just to INSTALL mercurial... [19:25] grampajoe has joined the channel [19:25] necromancer: git was like, one command [19:25] necromancer: (on OS X) [19:26] scttnlsn: will a flush on standard out in a child process always immediately emit a 'data' event on the stdout stream returned by child_process.spawn? [19:26] markwubben has joined the channel [19:26] Neil_ has joined the channel [19:26] fmeyer has joined the channel [19:26] jocafa: …. we have a mac os x installer now?! [19:27] CoverSlide: of course [19:27] magnetik_: (and a windows one) [19:27] CoverSlide: cause mac is practically windows [19:27] dnyy has joined the channel [19:27] jocafa: what does the installer do, specifically? [19:27] bemson has joined the channel [19:27] marcello3d: probably copies binaries into path-friendly folders [19:27] CoverSlide: ... installs node [19:27] jocafa: npm? [19:27] magnetik_: On windows, it copies to a specified folder (can't change it), and then add the node.js path to the PATH env variable [19:28] aliem has joined the channel [19:28] isaacs: marcello3d: no, you'd just do `sudo node server.js` and in server.js, you'd do `process.setuid()`. you need to be root to change your uid. [19:28] CoverSlide: can't change the folder? that's lame [19:28] bemson: I've written my package.json, but not sure where I tell npm where my actual js file is… is that the "main" keyword? [19:29] magnetik_: CoverSlide, I think it's the first version.. it will be improved [19:29] pksunkara: bemson: yes [19:29] isaacs: bemson: yessir. [19:29] marcello3d: isaacs: ok that makes more sense. do you think that's better than the iptables approach and running as a regular user? [19:29] magnetik_: For now, the PATH is changed in the wrong maner.. more critical ^^ [19:29] bemson: isaacs: so main would be "src/gendata.js" [19:29] marcello3d: is there a way to give a specific user access to listen on a specific port? [19:30] CoverSlide: there's a linux sys setting [19:30] CoverSlide: can't remember it off the top of my head [19:30] towski has joined the channel [19:31] pksunkara: bemson: yes [19:31] bemson: pksunkara: thx [19:32] qFox has joined the channel [19:32] quartzjer has joined the channel [19:32] quartzjer has left the channel [19:33] JaKWaC has joined the channel [19:33] Wizek has joined the channel [19:34] mehlah has joined the channel [19:34] bogomips2_ has joined the channel [19:34] jesusabdullah: necromancer: Yeah, pip sucks balls too, and it's actually an *improvement* on easy_install and friends [19:34] juanlargo has joined the channel [19:34] jocafa: so if i use the osx installer, do i need to do anything different for npm to install or configure it? [19:34] isaacs: jocafa: well, right now, it's not in there yet. [19:34] isaacs: jocafa: the release this week will have it, i believe. [19:35] jocafa: ah ok [19:35] jocafa: cool [19:35] jocafa: shows how much i've been paying attention lately… ;) [19:35] jocafa: <3 [19:35] hotch has joined the channel [19:35] tronhammer1 has joined the channel [19:36] slajax has joined the channel [19:37] tronhammer has joined the channel [19:37] saikat has joined the channel [19:38] pandeiro has joined the channel [19:38] bemson: okay - so now that it's installed, I can create a js script and use "require()" to load it right? [19:38] sridatta has joined the channel [19:38] necromancer: jesusabdullah: i know...haha for all the smart folks into Python you'd think someone would have made a proper package manager [19:39] jesusabdullah: necromancer: Well there are a lot of derpy people in python too [19:40] necromancer: really? [19:40] jhurliman has joined the channel [19:40] necromancer: i thought it was "the smart people's language(TM)" [19:40] DrHeiter23: Making a request to weather.com via Firefox and via my node script using 'request' module. Doesn't work in my node module, here are the http request/response headers in both cases.. whats the deal? http://pastebin.com/A6nDgveu [19:41] jesusabdullah: necromancer: I think you have to look at python from a historical perspective, and by its use cases [19:42] jesusabdullah: First, a lot of people came to python from java [19:42] jesusabdullah: in comparison, python is pretty limber I'd think [19:42] jesusabdullah: You can see the influence in older libraries, like twisted, imo [19:43] adrianF: hello, does somebody know, what is the advantage of adding functions with prototyping in comparison to add them directly within the exported WebClient function. here is an example (Log.io): https://github.com/NarrativeScience/Log.io/blob/master/lib/server/web_client.js [19:43] jesusabdullah: I think python started filling a niche where people just wanted to get shit done, and you see a lot of pragmatic engineering types [19:43] paq has joined the channel [19:43] jesusabdullah: then there's numpy/scipy, which brings a *lot* of smart people to it, but smart people that are engineers and scientists first and software types second [19:44] jesusabdullah: but the language geeks in python have the wrong idea imo [19:44] jesusabdullah: and there are a lot of fanboys [19:44] hotch: fanboys to the rescue! [19:45] hotch: any language that borks on a whitespace/tab missing = the suck imo [19:45] Dulak: they do tend to take things like pep8 and the zen of python as if they were religious texts. [19:45] necromancer: well that's kind of the whole point with python isn't it hotch? [19:45] necromancer: the concepts and ideals behind python are great though [19:45] hotch: necromancer: what, sucking? :P [19:45] jesusabdullah: Well, we *all* have fanboys, but when your fanboys are more busy coming up with weirdo generator expressions than finding ways to do reasonable multicore [19:46] jesusabdullah: or fixing the module system [19:46] jesusabdullah: I think the community's a bit broken [19:46] hotch: yeah i do like it a lot minus the white space, i did use it a while. [19:46] necromancer: hotch: "one way to do everything" [19:46] hotch: jesusabdullah: node or python? [19:46] necromancer: that's nice :) [19:46] bemson: i installed something locally, and now I can't remove it [19:46] hotch: hah necromancer :P [19:46] bemson: I only have one thing installed [19:46] bemson: i'm in the same dir where I installed it [19:46] necromancer: like i said the IDEALS are great [19:47] hotch: out of a long time working from java, c, perl, python, php now node, -> node is superior with npm / it's module system. [19:47] bemson: i did "npm install", which looked the local package.json, and now tried "npm rm" to no avail [19:47] isaacs: hotch: thanks :) [19:47] Dulak: I don't see the problem with the whitespace, my js looks very much like my python when I am coding it to be pretty, so it's not much of a point, imo. [19:47] isaacs: bemson: yeah, `npm rm` with no args doesn't remove all your deps. [19:47] necromancer: hotch: lol i don't know if this is totally related, but my co-worker just figured out that he's been using prototypal inheritance this whole time. every time you make a jQuery plugin? i asked him to evaluate (jQuery.fn === jQuery.prototype) in console [19:47] hotch: the little things like npm init, npm test (no more make files? :P) npm publush [19:47] isaacs: bemson: you can `rm -rf node_modules` though [19:47] hotch: heheh necromancer [19:47] bemson: isaacs: will do, thx [19:48] bemson: do i need to reinstall an npm module whenever I change my code? This is local only... [19:48] hotch: isaacs: i often joke at the office that you must just be on irc/issuing on node/coding revision 347 of branch 0.5 etc :P [19:49] hotch: necromancer: have you ever seen paul irishs hour vid walking through all of the query source (minus sizzle which is insane) ? [19:49] isaacs: bemson: if you're developing two modules, and you're on a unix, read `npm help link` [19:49] isaacs: bemson: re-installing for every change is too painful. [19:49] bemson: isaacs: on it, thx [19:49] necromancer: hotch: nope [19:49] hotch: its super epic seeing how it was done [19:49] necromancer: hotch: is it this? http://paulirish.com/2010/10-things-i-learned-from-the-jquery-source/ [19:50] hotch: yes. [19:50] catshirt has joined the channel [19:51] dshaw_ has joined the channel [19:53] navaru has joined the channel [19:54] markwubben has joined the channel [19:54] AvianFlu_ has joined the channel [19:55] markwubben has joined the channel [19:55] cronopio has joined the channel [19:56] necromancer: oh wow thanks [19:56] necromancer: hotch: i'm excited to watch that video, because i've always wanted to contribute to jQuery but never could quite understand how all the pieces fit together [19:56] garrensmith has joined the channel [19:56] hotch: yeah it's pretty awesome, before i wrote my first client side library i watched that. [19:57] jesusabdullah: hotch: That was a criticism of python's community, not node's. [19:57] hotch: library meaning like a class factory [19:57] markwubben has joined the channel [19:57] hotch: ahhh ok jesusabdullah :P [19:57] hotch: isaacs: are there any stats on npmjs.org traffic? [19:57] hotch: wondering how hard the couch gets hit daily (hourly, by the minute?) [19:57] jesusabdullah: I think node suffers a little from haters. People got excited about a "good" platform and didn't want to see a good thing go bad, so sometimes when a new project comes along we like to get on their case about being "too much like rails" or whatever else [19:58] jesusabdullah: all in all a good community though [19:58] jesusabdullah: A lot of good ideas made it here [19:59] isaacs: hotch: there's a lot of traffic. i don't havenumbers handy. it's on the list. [19:59] Morkel has joined the channel [19:59] hotch: jesusabdullah: as Marak said, "haters gonna hate" :P [19:59] hotch: thx isaacs [20:00] stride: hotch: thanks for reminding me of that presentation.. meh. I had "everyday I'm husselin.." stuck in my head for two full days [20:00] hotch: hah [20:00] mjr_: hotch: are you asking because you wonder how couchdb holds up under heavy production traffic? [20:00] mattpardee_ has joined the channel [20:00] mjr_: or just because you wonder how popular npmjs is> [20:00] mattpardee_ has left the channel [20:00] hotch: mjr_: no, i ws just curious about growth - [20:00] mjr_: yeah, it'd be fun to see traffic stats over time [20:00] hotch: totally [20:01] hotch: it would be a sweet hook.io plug to connect npmjs.org in realtime :P [20:01] lyte has joined the channel [20:01] lyte has joined the channel [20:01] bartt has joined the channel [20:01] hotch: a great application of node, i bet if isaacs created a repo it would be done within a day [20:01] maxogden: hotch: isaacs.ic.ht/registry/_changes [20:02] AvianFlu: and there's already a hook.io hook that consumes the _changes feed, too [20:02] hotch: ahh ok [20:02] bradleyg has joined the channel [20:03] isaacs: yeah, that won't tell you the number of GETs, but it'll tell you a lot of info, for sure. [20:03] hotch: maxogden: you're friends with bnovak right? i think he told me about couch a while ago after he mentioned code for america (unfortunately, couch wouldn't install without brew, and brew wouldn't install with RVM setup) [20:03] isaacs: rate of puts, etc. [20:03] maxogden: it wouldnt be that hard to write a load balancer in node on top of couch and then have trusted parties host npm mirrors [20:04] maxogden: hotch: yep. you can install couch via 'couchbase single server community edition' as a native mac app [20:04] hotch: ahh rad [20:04] c4milo: Error: Uncaught, unspecified 'error' event. <— this could happen if I emit 'error' in my own code? [20:04] mjr_: yes [20:04] isaacs: c4milo: yessir [20:04] mjr_: if you don't have an error listener [20:04] c4milo: ACTION sigh  [20:04] c4milo: mjr_: I have it [20:05] mjr_: …or do you? [20:05] c4milo: mjr_: wait [20:05] c4milo: mjr_: let me double check hehe [20:05] c4milo: mjr_: yes I have it [20:05] c4milo: mjr_: when I switch 'error' to 'ops' things work as expected [20:06] c4milo: 'oops' [20:06] c4milo: I meant [20:07] Draco_ has joined the channel [20:07] cronopio has joined the channel [20:08] pifantastic_ has joined the channel [20:09] stantona has joined the channel [20:10] koo0 has joined the channel [20:11] xeodox has joined the channel [20:12] xeodox: Should I use Coffeescript? Or stick with javascript? [20:12] CoverSlide: use javascript [20:12] xeodox: why? [20:12] stantona has joined the channel [20:12] hotch: CoffeeScript zzzZZzzz [20:13] CoverSlide: because it's really not that hard that people need to use a wrapper [20:13] xeodox: Is it true that most people who write the node.js modules use javascript only? (no coffeescript) [20:14] baudehlo: anyone who wants to get pull requests, yes. [20:14] maligree has joined the channel [20:14] mjr_: Many people like coffeescript, but it makes your project harder to maintain in an open source community. [20:14] mjr_: Because many people do not like it. [20:14] xeodox: @mjr_ , @baudehlo …so you agree that I should develop my product in javsacript only? [20:14] booyaa[hs has joined the channel [20:14] xeodox: I expect this project to be long term, full featured product [20:14] mjr_: I would stick with pure JS, yes. [20:14] xeodox: (not a hackathon thing) [20:15] xeodox: oh ok, good [20:15] xeodox: Thanks guys [20:15] baudehlo: if it's private, then do whatever you want. [20:15] baudehlo: if it's open source, and you want pull requests, I'd recommend sticking to pure JS, and no flow control libraries. [20:15] martypdx has joined the channel [20:16] c4milo: mjr_: I think I found out what was happening [20:16] hotch: "anyone who wants to get pull requests, yes." [20:16] hotch: baudehlo++ [20:16] catb0t: baudehlo now has 1 beer [20:16] xeodox: haha [20:16] c4milo: mjr_: I was emitting a object but not an instance of Error [20:17] bitmonk has joined the channel [20:17] c4milo: mjr_: https://github.com/joyent/node/blob/v0.4.12/lib/events.js#L44 [20:17] xeodox: What is the most active mysql driver for node.js? node-mysql ? [20:18] martypdx: What is right way to use cairo for node-canvas on windows? Can I install windows version and use node 4.x via cygwin? Or do I need to use node 6.0 'native' on window? [20:19] bemson: isaacs & pksunkara: thx for the help, I just published genData… and it works! :-D [20:19] skm has joined the channel [20:19] isaacs: hurray! [20:19] madhums has joined the channel [20:20] wojohowitz has joined the channel [20:20] bemson: ttyl when I need to know more about npm and node - many many thx [20:20] bitmonk has left the channel [20:21] EhevuTov has joined the channel [20:23] jxson_ has joined the channel [20:23] mikey_p has joined the channel [20:24] tjameson has joined the channel [20:24] beejeebus has joined the channel [20:25] chrischris has joined the channel [20:25] Margle has joined the channel [20:26] inimino has joined the channel [20:26] mct has joined the channel [20:26] jtrudeau has joined the channel [20:27] a11235 has joined the channel [20:27] xerox has joined the channel [20:27] sstreza has joined the channel [20:27] FMJaggy has joined the channel [20:27] thax has joined the channel [20:28] DrPizza has joined the channel [20:29] brainproxy has joined the channel [20:30] npa has joined the channel [20:30] quackquack has joined the channel [20:32] mange has joined the channel [20:33] ph^ has joined the channel [20:33] briancray has joined the channel [20:34] zackattack has joined the channel [20:34] Draco_ has joined the channel [20:35] dgathright has joined the channel [20:36] boltR has joined the channel [20:38] joshsmith: does anyone have some thought on where to turn after reading Node Web Development (http://www.amazon.com/Node-Web-Development-David-Herron/dp/184951514X) [20:38] sstephenson_ has joined the channel [20:39] context: joshsmith: into the cloud ! [20:39] socketio\test\20 has joined the channel [20:41] CIA-109: node: 03Ryan Dahl 07v0.6 * r2cd5adc 10/ (tools/wafadmin/Build.py wscript): Install npm with 'make install' - http://git.io/IjUNlw [20:41] zeade has joined the channel [20:41] booyaa[hs has left the channel [20:42] baudehlo: joshsmith: write some code. [20:42] mmalecki: what. [20:42] mmalecki: dat commit. [20:43] TheJH: WHUT? :D [20:43] TheJH: like, now on linux, too? :D [20:44] CIA-109: node: 03Ryan Dahl 07v0.6 * r38c49fb 10/ (tools/wafadmin/Build.py wscript): Fix broken commit 2cd5adc - http://git.io/jKPD3A [20:44] pifantastic has joined the channel [20:45] TheJH: ryah, so npm is now officially bundled with node both on windows and linux? [20:45] majortom has joined the channel [20:46] ryah: TheJH: yes [20:46] mmalecki: uhm. again, now like I'm hatin', but I think that npm should stay out of node source tree. [20:46] saikat has joined the channel [20:47] grekko has joined the channel [20:47] jarek has joined the channel [20:47] jarek has joined the channel [20:47] TheJH: mmalecki, I can't see npm in the source tree... [20:47] mjr_: I think at this point node isn't that useful without npm. [20:47] mmalecki: TheJH: deps/npm [20:47] joshsmith: mjr_: but, but hello, world! [20:47] mjr_: In order to be cross-platform, some things have to come out of node and be pushed into modules. [20:47] TheJH: mmalecki, oh, right [20:48] mjr_: You can still run hello world without ever running npm [20:48] Bonuspunk: you could do npm install helloWorld - thats way shorter! [20:48] joshsmith: mjr_: I know, that's my point. pretty freaking useful [20:48] joshsmith: and no npm [20:50] CoverSlide: its like perl without cpan, or ruby without gems, or java without maven, or haskell without cabal, or python without easy_install [20:50] joshsmith: or php without pear [20:50] arturadib has joined the channel [20:51] chrisvwebdev has joined the channel [20:51] chrisvwebdev has left the channel [20:51] hipsterslapfight: almost all of which you install separately :v [20:52] CoverSlide: it's 50/50 [20:52] marcello3d: npm in node is great [20:53] ank has joined the channel [20:53] marcello3d: why wouldn't you want to use npm? [20:53] mmalecki: I want! [20:53] jocafa: to stick it to The Man™ [20:53] hipsterslapfight: for the record i'm not complaining [20:53] mmalecki: I just don't like that's in the core [20:53] mmalecki: I mean, it may be my OCD [20:54] mmalecki: move on with your life [20:54] marcello3d: why is there an http server in core? [20:54] sveimac has joined the channel [20:55] baudehlo: because ryah put one there. [20:55] marcello3d: the point of having something in core is to help standardize and encourage convention [20:55] tjameson has joined the channel [20:55] benvie: npm was already the standard, putting in with node just makes it more accessible [20:56] CIA-109: node: 03Ryan Dahl 07v0.6 * r3abebfe 10/ (6 files): Upgrade http-parser to joyent/http-parser@2498961 - http://git.io/gLCpHg [20:56] ryah: the point of having npm in the tree is to improve UX [20:57] isaacs: fewer steps from nothing to working. [20:57] marcello3d: yea [20:57] benvie: steps: 1 [20:57] benvie: I think it's awesome [20:57] mjr_: I think it's a great idea. Installing npm is a pain, in spite of all isaacs' efforts to make it easy [20:57] benvie: rename node "click-n-win" [20:57] marcello3d: I'm just surprised that it's controversial [20:57] benvie: me too [20:58] benvie: considering we all get it anyway [20:58] marcello3d: maybe it's not. maybe mmalecki is just trolling ;D [20:58] benvie: the instructions for node are 1.) get node 2.) get npm [20:58] baudehlo: I'll be glad when I don't have to pipe non-secure http into "sudo sh" any more :) [20:58] benvie: so now it's just 1 [20:58] marcello3d: baudehlo: yea, that always scared the crap out of me [20:59] hipsterslapfight: agreed ajpiano [20:59] isaacs: mjr_: yeah. and getting system tar out of the way will make it even better. [20:59] hipsterslapfight: baudehlo that is [20:59] ajpiano: definitely [20:59] koo0 has joined the channel [21:00] hipsterslapfight: don't ask how i got all the way from the a key to the b key ... [21:00] marcello3d: I'm trying to setup a staging server right now with node (on debian). it's kind of a pain... I wish it were automateable [21:00] mnutt has joined the channel [21:00] CoverSlide: personally, i do echo prefix=$HOME >> ~/.npmrc; [21:00] tomyan has joined the channel [21:00] piscisaureus_ has joined the channel [21:00] CoverSlide: never do a sudo install [21:00] ajpiano: it's cause you knew i thought it was good that npm is in node [21:00] ajpiano: and just wasn't saying so [21:01] simenbrekken has joined the channel [21:01] ajpiano: requiring people to install a package manager they'll need to do *anything* as a separate thing is bad overhead to have [21:01] ajpiano: ACTION joins the chorus [21:01] Dulak: marcello3d: there is a nodejs package for 0.4.12 in unstable that will run on stable just fine, and I have taken that package and modified it to make my own 'newest' node packages [21:01] jgornick has joined the channel [21:02] marcello3d: Dulak: yea, I'm going the git clone/build route [21:02] parshap has joined the channel [21:02] Dulak: marcello3d: I do that too, I just build a .deb out of it instead of 'make install' [21:02] marcello3d: ah [21:02] marcello3d: what does that give you? [21:03] Dulak: an easy to reuse package [21:03] tomyan_ has joined the channel [21:03] marcello3d: hmm [21:03] Dulak: I deploy to about a dozen servers [21:03] marcello3d: gotcha [21:03] benvie: I wish everything compiled as fast as node [21:03] marcello3d: what do you do for process management? [21:03] Dulak: marcello3d: forever [21:03] marcello3d: how do you manage forever? :) [21:04] Dulak: marcello3d: manually right now [21:04] marcello3d: is it hard to use something like /etc/init.d? no one seems to do it [21:05] CoverSlide: not every distro uses /etc/init.d [21:05] marcello3d: well that or upstart, right? [21:05] marcello3d: I've only ever dealt with init.d-based systems [21:06] jarek has joined the channel [21:06] arcatan: wi mjr_ [21:06] mjr_: ? [21:07] buttface has joined the channel [21:07] Dulak: marcello3d: I don't know about hard, but daemontools is a more generic type of management than forever that I've had good experiences with in the past. I have actually been thinking about converting to it rather than forever to more easily automate deploying new versions of node. [21:07] quackquack: isaacs: is node-tar usable? [21:07] arcatan: sorry, i was trying to figure out if i knew you. i don't [21:07] baudehlo: Dulak: try runit. It's even nicer than daemontools, but the same. [21:08] isaacs: quackquack: sorta. [21:08] isaacs: very early alpha [21:08] Dulak: baudehlo: thanks, I'll have a look [21:08] bartt has joined the channel [21:08] quackquack: isaacs: k [21:09] isaacs: quackquack: it is very limited right now in what it can do, but it should do all that it does correctly. [21:09] diogogmt has joined the channel [21:09] quackquack: isaacs: so it works for basic compression/decompression, but supporting all the various implementations is still shakey? [21:09] isaacs: quackquack: tar != compression [21:10] adwong_ has joined the channel [21:10] isaacs: quackquack: tar is packing, only [21:10] quackquack: isaacs: ah, ok [21:10] torm3nt has joined the channel [21:10] isaacs: quackquack: it supports every type of thing that can be in a tarball, though [21:10] isaacs: quackquack: unicode, long filenames, etc. [21:10] isaacs: quackquack: it just can't do everything that tar can do, with respect to changing names, cd'ing into different dirs, etc. [21:10] CoverSlide: tar goes great with feathers [21:10] isaacs: hehe [21:10] isaacs: or gzip [21:11] CoverSlide: i prefer bz2 [21:11] quackquack: isaacs: ah, ok! [21:11] quackquack: gzip is a lot less messy than feathers [21:12] aglenday has joined the channel [21:12] saikat has joined the channel [21:13] quackquack: weird.. anyone else get crazy padding on the files in github's UI at https://github.com/isaacs/node-tar/tree/master/test/fixtures [21:13] mmalecki: quackquack: hahah yes [21:13] jomoho2 has joined the channel [21:13] isaacs: quackquack: yeah, long filenames seem to make it go a weird way [21:13] quackquack: mmalecki: lol, ill file a bug report.. weirdness [21:13] quackquack: oh, its the long file name? [21:14] quackquack: nvm, wont bother them, thats pretty edge [21:14] mmalecki: quackquack: well, they fucked up the notifications as well [21:14] quackquack: mmalecki: what do you mean? [21:14] harthur has joined the channel [21:14] mmalecki: quackquack: they are in the inbox now [21:15] mmalecki: not sure if feature or a bug [21:15] quackquack: mmalecki: ah, i guess i dont have any notifications [21:15] marcello3d: runit looks interesting [21:15] mmalecki: quackquack: come work at nodejitsu! [21:16] quackquack: mmalecki: why, cause then i would have some? :) [21:16] mmalecki: quackquack: oh yes [21:17] Sorella has joined the channel [21:17] quackquack: mmalecki: lol, i can imagine.. im working on a couple projects that rnt on github yet, but when they are, im sure it will be the same story [21:17] lupomontero has joined the channel [21:18] herbySk has joined the channel [21:18] mikeal has joined the channel [21:19] springmeyer has joined the channel [21:20] IrishGringo has joined the channel [21:22] mike5w3c_ has joined the channel [21:23] tracker1 has joined the channel [21:23] christine has joined the channel [21:24] JasonJS has joined the channel [21:24] tronhammer has joined the channel [21:25] tronhammer has left the channel [21:27] ekryski_ has joined the channel [21:29] javaanse_jongens has joined the channel [21:30] CIA-109: node: 03Ryan Dahl 07master * r6035651 10/ doc/api/tty.markdown : Fixes #2160. Fix tty.getWindowSize docs - http://git.io/FCvU-g [21:30] CIA-109: node: 03Ryan Dahl 07master * r2cd5adc 10/ (tools/wafadmin/Build.py wscript): Install npm with 'make install' - http://git.io/IjUNlw [21:30] CIA-109: node: 03Ryan Dahl 07master * r38c49fb 10/ (tools/wafadmin/Build.py wscript): Fix broken commit 2cd5adc - http://git.io/jKPD3A [21:30] CIA-109: node: 03Ryan Dahl 07master * r3abebfe 10/ (6 files): Upgrade http-parser to joyent/http-parser@2498961 - http://git.io/gLCpHg [21:30] CIA-109: node: 03Ryan Dahl 07master * r8595981 10/ (483 files in 84 dirs): [21:30] CIA-109: node: Merge remote branch 'origin/v0.6' [21:30] CIA-109: node: Conflicts: [21:30] CIA-109: node: Makefile [21:30] CIA-109: node: src/node_version.h [21:30] CIA-109: node: test/simple/test-crypto.js - http://git.io/qEgolw [21:31] koo5 has joined the channel [21:32] jbrokc_ has joined the channel [21:33] tsutton has joined the channel [21:33] sylvinus has joined the channel [21:33] Morkel has joined the channel [21:34] p1d has joined the channel [21:34] jskulski has joined the channel [21:34] madhums has joined the channel [21:35] xetorthio has joined the channel [21:37] pHcF has joined the channel [21:39] chjj has joined the channel [21:40] context: http://screencast.com/t/RHTFf5yrjWt3 [21:40] storrgie has joined the channel [21:41] mattpardee_ has joined the channel [21:42] mattpardee_ has left the channel [21:43] stephank has joined the channel [21:47] min has joined the channel [21:47] paq has joined the channel [21:47] tanepiper: 0.6.3 release today? [21:47] josh-k has joined the channel [21:48] stonebranch has joined the channel [21:49] joshgillies has joined the channel [21:49] harthur has joined the channel [21:50] TooTallNate: tanepiper: i think they do releases on fridays [21:50] Renegade001 has joined the channel [21:50] joshsmith: I'm running through Alex Young's tutorials and am getting TypeError: Object # has no method 'find' [21:51] CIA-109: node: 03Ben Noordhuis 07v0.6 * r246805d 10/ test/simple/test-http-response-no-headers.js : [21:51] CIA-109: node: test: add 'response body with no headers' http test [21:51] CIA-109: node: HTTP/0.9 - fails with a parse error [21:51] CIA-109: node: HTTP/1.0 - works [21:51] CIA-109: node: HTTP/1.1 - fails with an empty response body [21:51] CIA-109: node: See #1711. - http://git.io/kb2B2A [21:51] CIA-109: node: 03Felix Geisendörfer 07v0.6 * r6e1e9e2 10/ test/simple/test-http-response-no-headers.js : [21:51] CIA-109: node: Get test-http-response-no-headers.js to pass [21:51] CIA-109: node: Main fix was in 3abebf which added HTTP/0.9 support to http parser. [21:51] CIA-109: node: Changed test because HTTP 1.1 mandates keep-alive when no headers are [21:51] CIA-109: node: given. [21:51] CIA-109: node: Fixes #1711 - http://git.io/EsacLA [21:53] tttthet has joined the channel [21:53] colinclark has joined the channel [21:54] p_nitsch has left the channel [21:57] tttthet has joined the channel [21:57] ChrisPartridge has joined the channel [21:58] zomg: Oh there's a git.io now_ [21:58] zomg: *? [21:58] zomg: What is it with this .io TLD, everyone seems to love it [21:58] zomg: :P [21:59] __tosh has joined the channel [21:59] arcatan: programmers love IO, don't they? [21:59] zomg: I wonder if there's monad.io [21:59] tanepiper: it's expensive though [22:00] arcatan: zomg: yes! though it's not very exciting [22:01] zomg: wow, 60 GBP... [22:01] CIA-109: node: 03isaacs 07v0.6 * r0ba78d5 10/ (lib/fs.js test/simple/test-fs-chmod.js): Close #2166 Close the fd in lchmod - http://git.io/vaCbiA [22:01] bartt1 has joined the channel [22:01] tanepiper: oh and https://github.com/tanepiper/node-gitio [22:01] zomg: Plus 20% VAT if you live in the EU [22:01] zomg: Ripoff central [22:01] ixti has joined the channel [22:01] fmeyer has joined the channel [22:01] zomg: And they say .fi domains are expensive at 13 eur a year... [22:02] tanepiper: the url is returned in the header, so i wrote a simple wrapper round it [22:02] codygray has joined the channel [22:02] zomg: Well, I suppose they are a bit more expensive than 13 eur a year if you buy through one of those shady resellers, since you would need someone in Finland to register it for you [22:02] joaquin_win_ has joined the channel [22:03] ixti has joined the channel [22:05] CiRlE has joined the channel [22:06] Kunda has joined the channel [22:06] skm has joined the channel [22:06] xeodox: What's the best MySQL driver for Node.js? [22:07] context: the one that works [22:07] TheJH: xeodox, I think "mysql" is the most tested one [22:07] TheJH: !npm info mysql [22:07] SteveDekorte has joined the channel [22:08] TheJH: hmm? [22:08] xeodox: node-mysql? [22:09] TheJH: xeodox, yes [22:09] TheJH: gnah, why doesn't my bot work? [22:09] TheJH: !admin eval process.exit() // reboot [22:09] xeodox: Node.js doesn't have a good ORM for managing migrations/schema ….right? So I'm going to use SQLAlchemy to do this. Thoughts? [22:09] jhbot has joined the channel [22:09] SteveDekorte: so I just cloned https://github.com/joyent/node/ and did ./configure;make;make install; but on the last command I get "make: Nothing to be done for `install'." suggestions? [22:10] TheJH: SteveDekorte, after the git clone, "git checkout v0.6.2" [22:10] SteveDekorte: TheJH: thanks - does that contain the new rsa support for the crypto package? [22:11] SteveDekorte: (commit 9d3faf4f9ae54916ce704dd49e93cbcd5ef6ed5f) [22:12] marcello3d: isaacs: is there a way to figure out what uid and gid is 'nobody' ? [22:13] isaacs: marcello3d: not without changing to that user [22:13] Dulak: marcello3d: 'id nobody' [22:13] isaacs: marcello3d: oh, yeah, or that [22:13] isaacs: thought you meant from within a node program [22:13] marcello3d: how should I do process.setuid('nobody') [22:13] isaacs: marcello3d: https://github.com/isaacs/npm/blob/master/bin/npm-get-uid-gid.js [22:14] isaacs: marcello3d: process.setuid('nobody') works fine [22:14] marcello3d: oh [22:14] marcello3d: I'm blind :) [22:14] marcello3d: I misread the docs [22:14] isaacs: heh, no worries :) [22:14] isaacs: chown needs ints [22:14] isaacs: setuid/setgid is string-capable [22:14] TheJH: SteveDekorte, have a look at 9d3faf4f9ae54916ce704dd49e93cbcd5ef6ed5f [22:15] ritch has joined the channel [22:15] TheJH: erm, https://github.com/joyent/node/blob/master/ChangeLog [22:15] jacobolus has joined the channel [22:15] SteveDekorte: TheJH: looks like it - thanks [22:15] jsurfer has joined the channel [22:16] SteveDekorte: btw, might want to mention the need to do a checkout in the README.md [22:16] knifed has joined the channel [22:16] ekryski has joined the channel [22:16] EhevuTov has joined the channel [22:17] c4milo has joined the channel [22:17] BillyBreen has joined the channel [22:17] alejandromg has joined the channel [22:18] `3rdEden has joined the channel [22:19] satyr has joined the channel [22:19] vguerra has joined the channel [22:20] cce has joined the channel [22:20] cce has joined the channel [22:21] MatthewS has joined the channel [22:21] tanepiper: xeodox: check out https://github.com/sdepold/sequelize [22:21] xeodox: tanepiper: that doesn't look very active and it doesn't support migrations [22:21] tanepiper: it was updated an hour ago [22:21] VeXii has joined the channel [22:22] xeodox: oh [22:22] xeodox: i see [22:22] xeodox: how do I do migrations with it? [22:22] tanepiper: sync() i think [22:23] ritch has left the channel [22:23] tanepiper: handles associations as well, so have an orm-layer to it [22:23] context: anyone else getting gmail is not available? [22:23] Dulak: context: it's loading fine for me [22:23] tanepiper: working for me context, looks like your trying to access it via the chrome app? [22:23] context: :/ [22:23] jbpros has joined the channel [22:23] context: http://screencast.com/t/RHTFf5yrjWt3 [22:23] xeodox: tanepiper: is migrations important? [22:23] tanepiper: try it in firefox [22:24] tanepiper: xeodox: well it depends on your needs [22:24] mehtryx has joined the channel [22:24] xeodox: tanepiper: can you walk me through some of the needs? [22:24] marcello3d: it'd help if there was more info on this log message: The "sys" module is now called "util". It should have a similar interface. [22:24] EhevuTov_ has joined the channel [22:24] context: doesn't appear to work in ff either [22:24] xeodox: tanepiper: I need this for a large proaction project (millions of users) [22:24] tjholowaychuk: marcello3d haha those are hard to track down sometimes [22:24] xeodox: production* [22:24] tanepiper: xeodox: not really, but there is plenty on google about understanding migrations [22:25] xeodox: ahh i see [22:25] marcello3d: `forever` logs it [22:25] tanepiper: if you don't know if you need them, you probably need to do some research [22:25] marcello3d: but it has like 20 dependencies, so who knows [22:25] tjholowaychuk: marcello3d yeah, i had a hard time finding some of mine too, really need line numbers [22:25] marcello3d: shouldn't be hard to figure out [22:26] tjholowaychuk: try acking ./node_modules [22:26] marcello3d: just make the log message do a (new Error).stack parsing [22:26] marcello3d: I do it for my log library [22:26] klaemo has joined the channel [22:26] tanepiper: tjholowaychuk: stop releasing cool stuff the day AFTER I need it :p [22:26] marcello3d: (e.g. var log = require('foo')()) [22:27] tjholowaychuk: tanepiper :D it would have been finished a lot sooner but i didnt have much time for it [22:27] tjholowaychuk: just the odd hour or two a week [22:27] tjholowaychuk: if even [22:27] xeodox: tjholowaychuk, what do you think is the best node.js mysql driver? [22:28] ecin has joined the channel [22:28] tjholowaychuk: xeodox no clue i haven't touched mysql for a few years [22:28] robotmay has joined the channel [22:28] bluesmoon: xeodox I'd suggest "mysql" [22:28] bluesmoon: npm install mysql [22:28] bluesmoon: it doesn't have any dependencies on C libraries [22:28] xeodox: bluesmoon: yea thats the one i am planning on using [22:29] fmeyer has joined the channel [22:29] xeodox: bluesmoon: have you used SQLAlchemy before? [22:29] chjj: felix's mysql is good [22:29] bluesmoon: nope [22:29] xeodox: chjj, have u used SQLAlchemy or Django orm before? [22:29] bluesmoon: but felix is a pretty active developer, and his code is good [22:29] xeodox: ahh i see [22:29] chjj: xeodox: nope [22:30] mehtryx has joined the channel [22:31] gabaug has joined the channel [22:31] xeodox: chjj, bluesmoon, felix's "mysql" allows me to do queries…but how should I manage my schema then? [22:31] xeodox: In the past (rails, django), I used their ORM and was able to define schemas very well, and do migrations too [22:32] tanepiper: nodejs hooks needed! https://github.com/TTimo/doom3.gpl [22:33] justmoon has joined the channel [22:33] wojohowitz has joined the channel [22:34] uchuff has joined the channel [22:34] quackquack: Marak: do you work on flatiron.js? [22:36] benvie has joined the channel [22:38] hornairs has joined the channel [22:39] hoofed has joined the channel [22:39] bluesmoon: xeodox all DDL is just a query, so use the appropriate SQL statements. [22:40] _unary has joined the channel [22:40] xeodox: What do you mean "DDL?" [22:41] Marak: quackquack: i've helped with some pieces, did you have a question? [22:41] devongovett has joined the channel [22:42] marcello3d: weird. forever doesn't include timestamps in its logs...? [22:43] marcello3d: seems like something you'd want [22:43] quackquack: Marak: suggestion: could you remove `html { overflow-y: scroll; }` from the flatiron doc site css? it causes a double scroll bar (in chrome) [22:43] tjholowaychuk: isaacs do you know if we could get rid of "zeromq" in npm? the same guy has "zmq" which has the most activity [22:43] quackquack: :) [22:43] tjholowaychuk: but it's broken all the time [22:43] mehtryx has joined the channel [22:43] EhevuTov__ has joined the channel [22:43] tjholowaychuk: so i wouldnt mind pushing one to "zeromq" [22:44] isaacs: tjholowaychuk: ask the owner to move it away, if the same guy has two that are dupes [22:44] isaacs: tjholowaychuk: email, cc me, if he doesn't respond in a few weeks, email me and i'll take care of it [22:44] tjholowaychuk: k [22:44] tjholowaychuk: will do [22:44] isaacs: it's the holidays, so it could take a while [22:45] isaacs: probably just an oversight, though [22:45] baudehlo has joined the channel [22:45] Marak: quackquack: i'll see what we can do, i think new site coming soon [22:45] quackquack: Marak: k, cool :) [22:45] deedubs_ has joined the channel [22:46] heavysixer has joined the channel [22:47] JaKWaC_ has joined the channel [22:47] pgte has joined the channel [22:48] sdwrage has joined the channel [22:49] wereHamster has joined the channel [22:51] svenlito has joined the channel [22:53] spasquali has joined the channel [22:53] spasquali has left the channel [22:54] sfoster has joined the channel [22:55] issackelly_ has joined the channel [22:55] joshsmith has joined the channel [22:56] gabaug has joined the channel [22:57] creationix has joined the channel [22:59] mandric has joined the channel [23:02] isaacs: tanepiper: yo [23:02] mehtryx has joined the channel [23:02] tanepiper: sup? [23:03] isaacs: tanepiper: https://twitter.com/#!/tanepiper/status/138741778709876736 [23:03] isaacs: got an example you're seeing? i'm not grokking this [23:03] harthur has joined the channel [23:03] tanepiper: yea, actually i think i mis-understood the issue myself from bnoordhous's explination [23:04] isaacs: hm... ok. [23:04] isaacs: the "path" member was added so you could do http.get(url.parse(...)) [23:04] tanepiper: Basically I had an identical bit of code that worked in 0.6, but didn't in 0.4.12 due to the url.parse object in 0.4.12 missing the .path member [23:04] tanepiper: yea [23:04] isaacs: right [23:04] isaacs: yeah, that didn't work in 0.4 [23:04] mcluskydodallas has joined the channel [23:05] tanepiper: basically when you called the bitly api in 0.4 the return was a ngnix 301 redirect page [23:05] devongovett has joined the channel [23:05] grampajoe has joined the channel [23:05] isaacs: right [23:05] tanepiper: must have been hitting the wrong URL since .path was missing, but it was late and i was looking at the issue wrong [23:06] isaacs: well... node shouldn't follow redirects automatically [23:06] madhums has joined the channel [23:06] tanepiper: yea :) the proper API url doesn't redirect - but the bug came in and it was late, but i was determined to fix it [23:07] tanepiper: at least it's got me writing tests now for travisCI :p [23:07] isaacs: ahhh, i get it now. [23:07] isaacs: thanks. [23:07] isaacs: i was worried that something in node was busted [23:07] tanepiper: https://github.com/tanepiper/node-bitly/blob/master/bitly.js#L55 [23:07] tanepiper: that fixed it for 0.4 [23:08] deedubs_ has joined the channel [23:08] sylvinus_ has joined the channel [23:10] jerrysv: yay tracisci [23:12] diogogmt has joined the channel [23:13] zivester has joined the channel [23:14] pandeiro has joined the channel [23:15] mattpardee_ has joined the channel [23:16] SyntressR has joined the channel [23:16] brianseeders has joined the channel [23:16] felixge has joined the channel [23:17] lmorchard has joined the channel [23:20] AvianFlu has joined the channel [23:20] jbpros_ has joined the channel [23:21] jacobolus has joined the channel [23:22] redsofa has joined the channel [23:24] JaKWaC has joined the channel [23:24] jbrokc_ has joined the channel [23:25] ryanfitz has joined the channel [23:26] markwubben has joined the channel [23:26] nicholasf has joined the channel [23:26] ritch has joined the channel [23:28] ritch has left the channel [23:29] nicholasf has joined the channel [23:29] PatF has joined the channel [23:31] jomoho has joined the channel [23:31] subbyyy has joined the channel [23:33] broofa has joined the channel [23:34] irclogger_com has joined the channel [23:34] jbrokc_ has joined the channel [23:34] SteveDekorte: So I just upgraded node to v0.6.2 and am getting a crash with no stack trace: "The "sys" module is now called "util". It should have a similar interface. Segmentation fault: 11" [23:35] mattpardee_ has left the channel [23:35] nicholas_ has joined the channel [23:35] tomyan has joined the channel [23:36] SteveDekorte: any suggestions? [23:36] SteveDekorte: this is on OSX 10.7.2 [23:37] wankdanker: this sys module warning is a different issue than the seg fault [23:37] wankdanker: i am not running osx, but saw something around about a segfault happening in osx. how did you install? [23:38] te-brian2: trying to figure out nconf ... why is my test printing 'undefined'? https://gist.github.com/1387428 [23:39] te-brian2: the 'fallbacks' do not appear to be merging... [23:40] context: stevedekorte: is this all node scripts or one in particular [23:40] context: does it happen instantly ? [23:40] SteveDekorte: wankdanker: git clone ...; git checkout v0.6.2; ./configure; make; sudo make install [23:41] yogurt_truck has joined the channel [23:41] context: pretty sure you have to tell it to use llvm (i think it is) [23:41] context: or use something like homebrew [23:41] SteveDekorte: context: happens when I try to run vertex.js, which ran fine under an earlier version of node [23:41] adrianmg has joined the channel [23:42] wankdanker: SteveDekorte: this is the issue i was thinking of: https://github.com/joyent/node/issues/2061 [23:42] Swimming_Bird has joined the channel [23:42] adrianmg has left the channel [23:43] SteveDekorte: wankdanker: I just wanted RSA support for the crypto package, I guess I'll revert - is there a stable (working) node for OSX 10.7.2? [23:43] heavysixer has joined the channel [23:43] wankdanker: SteveDekorte: sorry, I don't know the answer to that. [23:44] SteveDekorte: hm, wish I could remember which version I was using before :) [23:44] jbrokc_ has joined the channel [23:45] bnoordhuis has joined the channel [23:46] ryah: SteveDekorte: you're hitting our major bug right now [23:46] SteveDekorte: hey ryan [23:47] ryah: SteveDekorte: if you could report a stacktrace of the segfault here https://github.com/joyent/node/issues/2061 [23:47] ryah: it would be helpful [23:47] SteveDekorte: btw, the crypto package also needs support for assymetric key generation [23:47] ryah: SteveDekorte: yeah, i think it's lacking lots of things. patches welcome :) [23:48] SteveDekorte: posted the stack trace [23:49] SteveDekorte: in the meantime, I wrote a binding to do key generation via the openssl command line - the problem is that there are no sync child_process calls and the async breaks the rest of the program : [23:49] SteveDekorte: as this is happening during a transaction [23:50] SteveDekorte: oddly, the filesystem calls have sync versions [23:50] SteveDekorte: why does one have a sync version but the other does not? [23:50] ryah: we're working on adding a sync child process execution [23:50] przemoc has joined the channel [23:50] jabru has joined the channel [23:51] ryah: it didn't make v0.6 cut though [23:51] SteveDekorte: ryah: ah, good to hear :) [23:51] SteveDekorte: coroutines might also solve all these problems :) [23:51] madhums has joined the channel [23:51] ryah: let's not start this discussion :) [23:52] SteveDekorte: looks like my crash is in the tokyo cabinet bindings - did the bindings api change? [23:52] Dulak: round and round she goes, where she'll stop nobody knows.... [23:52] ryah: SteveDekorte: between what? [23:52] SteveDekorte: versions of node [23:52] ryah: yes [23:52] SteveDekorte: I think I was on node 0.2.something [23:53] ryah: but if it compiles i think it's okay [23:53] crackns has joined the channel [23:53] ryah: the binary interface doesn't stay stable between node versions [23:53] SteveDekorte: ah, I'll just revert then [23:53] ryah: you'll need to recompile [23:53] ryah: (fucking c++) [23:54] heavysixer has joined the channel [23:54] Sami_ZzZ has joined the channel [23:54] jbrokc_ has joined the channel [23:55] jabru has left the channel [23:55] davidascher has joined the channel [23:55] mjr_: The most common support issue I have with redis is people upgrading node and the hiredis module not getting re-compiled or they have two versions of the module on their computer. [23:56] mjr_: It'd be great if there were some magic number you could check before dlopen that would blow up with a "binary version mismatch" error unless they matched exactly. [23:56] lightcap has joined the channel [23:59] tiglionabbit has joined the channel [23:59] SteveDekorte: before reverting, I tried recompiling node-tokyocabinet for the latest node, got: "Waf: Leaving directory `/Users/steve/github/node-tokyocabinet/build' Build failed: -> task failed (err #1): {task: cxx tokyocabinet.cc -> tokyocabinet_1.o}"