[00:00] Kunda has joined the channel [00:01] rektide: isaacs: kk, thanks [00:01] dubenstein has joined the channel [00:01] dubenste2n has joined the channel [00:03] neilk_ has joined the channel [00:04] jbrokc has joined the channel [00:05] balaa has joined the channel [00:06] skm has joined the channel [00:07] grampajoe has joined the channel [00:08] jbrokc_ has joined the channel [00:08] JakeSays: isaacs: hey what was the link again for npm install on windows? [00:08] isaacs: JakeSays: it's in the readme: https://github.com/isaacs/npm [00:08] JakeSays: ah ty [00:09] mrshogun: chilts you are completely right :) [00:09] mrshogun: so [00:09] mrshogun: from the people that had some experience with vows, what is your opinion about it? is it a good framework to test a server application? [00:09] mrshogun: :) [00:10] chilts: funny thing is, I'm about to pick vows for testing a webapp ... though I currently don't know much about using it [00:10] chilts: I've use tap for testing libraries, but not tried doing web apps yet :) [00:11] rchavik has joined the channel [00:12] mrshogun: hmm [00:12] mrshogun: im going to start using it soon [00:12] sarlalian: seems like a lot of projects are using vows [00:12] mrshogun: yeap [00:12] sarlalian: but it could be because I'm mostly using projects from the same group of people and they use vows [00:13] mrshogun: thats why im thinking about choosing it to mine [00:13] rektide: isaacs: point of interest, this is a VPN system running 2.6.26... just a thought that maybe that old kernel version might be why node isn't doing spawn?? [00:13] mrshogun: sarlalian did you manage to do some sort of continuous integration with vows? [00:14] isaacs: rektide: what's 2.6.26? [00:14] rektide: spawn doesn't seem like it'd be an advanced requirement, but i dunno [00:14] rektide: isaacs: linux 2.6.26 [00:14] isaacs: rektide: oh, ok [00:14] isaacs: ACTION doesn't know much about linux [00:14] saikat has joined the channel [00:14] sarlalian: mrshogun: no, not yet,, most of my day is doing sysadmin stuff, still just getting my feet wet with node stuff. Trying to use hook.io to propogate certain events around to many servers so that the right machine can do the right thing with the event [00:15] felixge has joined the channel [00:15] felixge has joined the channel [00:15] rektide: you haven't spent much time dtracing kvm'd linux guests yet? :) i'll keep my fingers crossed you can stay pure. :) anyways, i'll fiddle a bit latter tonight. thanks much. [00:16] rektide: i'm better, git clone https://github.com/isaacs/ronnjs.git works now. still getting the EINVAL lookup failing from cli.js's install target. [00:17] WarheadsSE_ has joined the channel [00:17] jbrokc has joined the channel [00:18] vi390 has joined the channel [00:18] vi390 has joined the channel [00:18] aaronj1335 has joined the channel [00:19] HardPhuck has joined the channel [00:19] mrshogun: sarlalian hook seems interesting [00:19] JakeSays: isaacs: so i really need to configure git with ssl? (step 4) [00:19] ryanfitz has joined the channel [00:20] ryan0x2 has joined the channel [00:20] coreb1: this has been troubling me the last couple of hours; http://pastebin.com/KbU5uDNw [00:22] cjm has joined the channel [00:23] grampajoe has joined the channel [00:24] tjh has joined the channel [00:24] tjh has joined the channel [00:24] ryan0x2_ has joined the channel [00:24] isaacs: JakeSays: yes. you have to be able to use git over ssl. [00:24] isaacs: JakeSays: i know it's painful right now. it'll be better soon. [00:25] secoif has joined the channel [00:25] cconstantine has joined the channel [00:26] coreb has left the channel [00:26] versicolor has joined the channel [00:26] coreb has joined the channel [00:26] JakeSays: isaacs: i dont have a /bin/curl-ca-bundle.crt [00:27] tomlion_ has joined the channel [00:28] mrshogun: ppl how do you make continuous integration with node? [00:31] RORgasm: anyone every seen the socket hang up problem? [00:31] RORgasm: i'm updating a bunch of records in mongo on a mongolab db, and every now and then i see it it bubble up [00:32] Jay_Levitt has joined the channel [00:32] jstash has joined the channel [00:32] metaverse has joined the channel [00:33] replore_ has joined the channel [00:33] replore has joined the channel [00:36] idefine has joined the channel [00:40] devaholic has joined the channel [00:40] Tobsn has joined the channel [00:41] zmbmartin: chjj: Are you around? [00:41] djbell has joined the channel [00:42] ohtogo has joined the channel [00:44] themiddleman_itv has joined the channel [00:44] dthompso99: blarg, stupid python versions... [00:45] jbrokc_ has joined the channel [00:46] mrshogun: RORgasm socket hang up usually happens when the server to wich you are making a request broke the connection [00:47] fzzzy has joined the channel [00:47] RORgasm: ok [00:47] mrshogun: a example is when you make a request and while the server is processing that request it crashes [00:47] RORgasm: hmm [00:47] hostsamurai has joined the channel [00:47] mrshogun: did you understand? [00:47] RORgasm: so you think mongolab is closing my requets [00:47] RORgasm: hmm [00:47] mrshogun: maybe [00:47] RORgasm: i think i know what u mean [00:47] RORgasm: ok [00:48] mrshogun: i dont have any idea about what you are doing [00:48] mrshogun: or what you are using :) [00:48] RORgasm: basically what's going on this [00:48] mrshogun: it happens to me every time i make a request from one of my servers to the other [00:48] mrshogun: and the second one crashes [00:48] RORgasm: mrshogun: how are u dealing with it? [00:49] jesusabdullah: Hey everybody, I'm trying to interact with google's oauth2 api and I'm doing it wrong: [00:49] jesusabdullah: https://gist.github.com/1346686 [00:49] mrshogun: im solving the problem in the second server, because usually it is a bug [00:49] jesusabdullah: Any ideas on what I'm doing wrong? :v [00:49] mrshogun: RORgasm but tell me what is ur situation maybe is different from mine [00:50] Bonuspunk: problem with node 0.6.0 on windows --> node --eval "require('fs').mkdir('test', function(err) { if (err) { console.log(err); } else { console.log('success'); }});" // no callback D: [00:50] jocafa has joined the channel [00:51] luke` has joined the channel [00:52] gde33 has joined the channel [00:52] skampy has left the channel [00:52] fread2281 has joined the channel [00:52] luke`_ has joined the channel [00:53] RORgasm: mrshogun: so what i'm doing is basically i make a query to facebook's graph api and then retrieve a user's friends, and for each friend in my mongolab mongo database, i update or create a record for that friend [00:53] RORgasm: every now and then i'm getting that socket hang up error [00:54] RORgasm: i have a global exception hadnelr [00:54] RORgasm: but i feel like eventually [00:54] mrshogun: hmm [00:54] RORgasm: mongoose stops updating the db [00:54] RORgasm: but when i restart the server [00:54] mrshogun: did you try to debug it and check where is it getting the rror? [00:54] mrshogun: ah [00:54] RORgasm: the importing of FB friends works again [00:54] mrshogun: mogoose crashes [00:54] RORgasm: i'm not sure if the problem wish with the Facebook api or mongoose [00:54] RORgasm: since in my method, i'm using both [00:54] RORgasm: and can't quite tell from teh trace [00:54] mrshogun: hmmm [00:55] mrshogun: try to use node-inspector to debug [00:55] mrshogun: maybe ull see sth that is not obvious [00:55] mrshogun: but i could bet that the problem is in mongoose if it stops working after you get a socket hang up [00:56] mrshogun: btw try to handle the exceptions in the context of the operations [00:56] RORgasm: i know [00:56] RORgasm: i know [00:56] mrshogun: is not good to have a general handler :/ [00:56] RORgasm: its jsut getting really hard at this point [00:57] jGoods: that's what she said? [00:58] mrshogun: jGoods ?! [00:58] domino141 has joined the channel [00:59] mrshogun: RORgasm check your query to Mongo maybe theres sth wrong [00:59] mrshogun: i cant really help u much more [00:59] luke` has joined the channel [00:59] RORgasm: the query is fine [00:59] RORgasm: it makes the query fine [01:00] RORgasm: its in teh callback function [01:00] domino141: i'm using socket.io and i have it set to try 10 times when it disconnects, on the client side, to reconnect again. it's easy to simulate this by turning off the node server and restarting it, and i get the correct behavior. but now i want to do the same on the client side [01:00] RORgasm: where it takes the result of the query and update/screates records where i think this is happening [01:00] RORgasm: yeah [01:00] domino141: if i shut off my laptop for like 10 minutes and turn it back on, what happens? will the server try to keep reconnecting? [01:00] RORgasm: at that point i feel that i've already gotten the info from facebook [01:00] domino141: rather i'd like to reconnect from the client, but how do i get the state of the socket after 10 mins? [01:00] RORgasm: mrshogun: so feeling more andmore liek its something up with the create or update part of the process [01:01] mrshogun: RORgasm really try to debug with node-inspector [01:01] mrshogun: i feel ull find the problem in 5m [01:01] RORgasm: mrshogun: you think so? [01:01] mrshogun: y [01:01] RORgasm: hmm [01:01] gregpascale has joined the channel [01:02] mrshogun: i dont believe a database as Mongo might have such a problem in uptading or creating registers [01:02] RORgasm: no i don't think that's the problem either [01:02] mrshogun: i think the problem is in ur code [01:02] RORgasm: but i'm not sure if its the connection to the db [01:02] RORgasm: from either mongolab's side or mine [01:02] RORgasm: hmm [01:02] RORgasm: mrshogun: u know i noticed one thing [01:02] mrshogun: ull just know after debugging :D [01:02] mrshogun: what? [01:03] domino141: lots of mongo fud out there [01:03] RORgasm: so i wrote a sepereat node script where i jsut did the creat or update part for each account [01:03] RORgasm: and i kept on seein gthe socket on hang error [01:03] RORgasm: but then i saw it one more time..after it ran for a while [01:03] RORgasm: and then i feel like mongoose or something stopped responding [01:03] mrshogun: hmm [01:03] RORgasm: but i'm gonna run the node-inspector with the update node script [01:03] RORgasm: i need to get some food [01:04] RORgasm: :) [01:04] RORgasm: i'll be back in a bit [01:04] mrshogun: lol [01:04] mrshogun: ill leave [01:04] mrshogun: bc here is 1 am [01:04] mrshogun: and i need to sleep :P [01:04] mrshogun: tomorrow ive work also :P [01:04] mrshogun: but in 9h ill probably be back here [01:05] scott_gonzalez has joined the channel [01:09] stalled has joined the channel [01:11] megatx has joined the channel [01:11] domino141: how do isee the state of my socket.io connection? [01:11] domino141: if i close my laptop for a while and re-open it i'd like to detect that i've disconnected [01:12] jbrokc_ has joined the channel [01:13] gavin_huang has joined the channel [01:14] mandric has joined the channel [01:19] tekky has joined the channel [01:22] jbrokc has joined the channel [01:23] ixti has joined the channel [01:24] cliffano has joined the channel [01:24] towski has joined the channel [01:24] MooGoo: ACTION pings [01:24] JaKWaC has joined the channel [01:26] abraxas has joined the channel [01:28] Emmanuel` has joined the channel [01:28] edenli has left the channel [01:28] nphase has joined the channel [01:28] deoxxombie has left the channel [01:29] cce has joined the channel [01:29] cce has joined the channel [01:29] zhware has joined the channel [01:29] metaverse has joined the channel [01:29] Emmanuel` has joined the channel [01:32] towski has joined the channel [01:32] ditesh|cassini has joined the channel [01:32] jbrokc_ has joined the channel [01:33] ninjapig has joined the channel [01:39] mynyml has joined the channel [01:40] _1marc has joined the channel [01:41] edenli has joined the channel [01:41] materialdesigner has joined the channel [01:42] yuwang has joined the channel [01:42] jbrokc has joined the channel [01:43] Wa has joined the channel [01:44] dshaw_ has joined the channel [01:45] mandric has joined the channel [01:45] RORgasm: anyone here [01:45] RORgasm: know how too use node-insepector without a webserver? [01:46] RORgasm: for just a pure nodescript [01:46] dubenstein has joined the channel [01:46] toki_kanno has joined the channel [01:46] dubenste1n has joined the channel [01:46] dubenste2n has joined the channel [01:46] jj0hns0n has joined the channel [01:48] _Blorb has joined the channel [01:49] freewil has joined the channel [01:49] freewil has joined the channel [01:49] domino141 has left the channel [01:50] dsirijus has joined the channel [01:50] icewhite has joined the channel [01:54] neurodrone has joined the channel [01:54] BillyBreen has joined the channel [01:55] joshkehn has joined the channel [01:55] strmpnk_ has joined the channel [01:56] k1ttty has joined the channel [01:58] swaj has joined the channel [01:58] swaj has joined the channel [02:00] jldbasa has joined the channel [02:02] joeyang has joined the channel [02:04] M2Ys4U has joined the channel [02:05] neoesque has joined the channel [02:08] c4milo1 has joined the channel [02:08] CIA-109: libuv: 03Igor Zinkovsky 07master * rf1859eb 10/ (4 files in 3 dirs): windows: convert WSAECONNABORTED to EOF - http://git.io/dBcE8w [02:08] te-brian has joined the channel [02:08] charlenopires has joined the channel [02:09] dinarcon has joined the channel [02:10] davididas has joined the channel [02:10] githogori has joined the channel [02:12] charlenopires has joined the channel [02:12] jbrokc has joined the channel [02:13] CarterL has joined the channel [02:15] Peniar has joined the channel [02:17] a_suenami has joined the channel [02:17] kazupon has joined the channel [02:17] dmitrig01 has joined the channel [02:20] Bloc has joined the channel [02:20] phluffy has joined the channel [02:20] charlenopires has joined the channel [02:21] luke`_ has joined the channel [02:22] winterpk has joined the channel [02:27] killing-joke has joined the channel [02:28] killing-joke: i am trying to profile a complicated page load with Zombie.js as my first Node exercise. [02:28] jacobolus has joined the channel [02:28] AD7six has joined the channel [02:29] killing-joke: i inserted calls to console.log to print timestamps. they are all out of order. [02:29] killing-joke: i clearly don't get the syntax for performing actions in order. is there a FAQ for this? [02:30] Lingerance: node-async or node-seq [02:30] killing-joke: github.com/pkrumins/node-async [02:32] killing-joke: Lingerance, thanks for the tip [02:32] alejandromg has joined the channel [02:32] alejandromg: Hello all! [02:32] alejandromg: Somebody here? [02:33] Lingerance: ACTION waits for the flames [02:33] coderdad has joined the channel [02:35] deedubs has joined the channel [02:38] jbrokc_ has joined the channel [02:39] seanhess has joined the channel [02:40] tokuz has joined the channel [02:40] davidwalsh has joined the channel [02:41] dmitrig01 has joined the channel [02:42] ppcano has joined the channel [02:44] instafire has joined the channel [02:46] JakeyChan has joined the channel [02:47] aaronj1335 has joined the channel [02:51] dford has joined the channel [02:55] jackbean has joined the channel [02:58] embwbam has joined the channel [03:04] jxson_ has joined the channel [03:06] paul___: does anybody know why when in mongoosejs i query for and update an object which is embedded in another object, it doesn't update the version of the embedded document? it's like it's storing two versions [03:07] alejandromg: :paul___ maybe because the upsert or multi params are set to false? [03:07] elijah has joined the channel [03:08] miels has joined the channel [03:09] jerrysv has joined the channel [03:09] paul___: alejandromg i guess then that rather than finding the objecting, setting a param on it, and saving it, instead i should do .update ? [03:10] paul___: object* [03:10] avalanche123 has joined the channel [03:11] paul___: alejandromg: that's the only place i see a reference to 'multi' (Model.update on http://mongoosejs.com/docs/finding-documents.html) [03:12] alejandromg: Yeah but 'multi' is very picky.. [03:12] dget_ has joined the channel [03:12] alejandromg: You should do update htp://www.mongodb.org/display/DOCS/Updating [03:13] alejandromg: In the past I had the same problem using multi [03:13] alejandromg: i.e Tags.update({name: saveObj.name}, {$push: {members: {id: $canal.id,type:'Channel'}}}, {upsert: true}, function(err) {}) [03:13] alejandromg: That's a long example ;) [03:14] miels_ has joined the channel [03:15] miels_: Anyone doing compression with express? [03:16] darinc has joined the channel [03:17] paul___: alejandromg thx I'll study this [03:17] harthur has joined the channel [03:18] eephillip has joined the channel [03:18] paul___: alejandromg just to confirm, if i use update then it'll find the object itself as well as all instances where it's embedded, and update those [03:18] paul___: ? [03:18] alejandromg: only when you use multi... [03:19] alejandromg: multi:true [03:19] paul___: ah i see [03:19] paul___: i can use the _id as the criteria then and i'll find all those objects [03:19] alejandromg: If the object is not found a new object is inserted by default [03:19] alejandromg: That is a good option! [03:20] scttnlsn has joined the channel [03:20] alejandromg: also using _id is more fast. [03:20] paul___: this makes things easier. for a few hours today i was concerned if i'd have to store an array of objectIds and query for the whole array each time [03:20] paul___: that would suck [03:20] paul___: each time i want to read it i mean [03:20] isaacs has joined the channel [03:21] _dc has joined the channel [03:21] alejandromg: Yeah! [03:22] alejandromg: If you do that, you lose the point of using mongo ;) [03:22] Vennril has joined the channel [03:23] Circlefusion has joined the channel [03:23] jbrokc has joined the channel [03:23] paul___: yeah seriously [03:24] jesusabdullah: Anybody wanna help me do some oauth? [03:24] alejandromg: paul___: And just for the record if you do a bad update query, all your data can be delete by mistake. [03:24] paul___: wha? [03:24] paul___: :O [03:24] paul___: can you tell me more about that? [03:24] jesusabdullah: https://gist.github.com/1346686 [03:25] alejandromg: yeah! for example you try to update an _id that doesn't exists and you have no params in you query [03:25] c4milo2 has joined the channel [03:25] EvRide has left the channel [03:25] dmitrig01 has joined the channel [03:25] alejandromg: you can lose data! [03:26] jerrysv: jesusabdullah: dumb question, have you tried against twitter? [03:26] marcello3d has joined the channel [03:26] paul___: that's ridiculous :[ [03:26] paul___: thanks for the warning [03:26] alejandromg: paul___: But one time your query works, you don't have to worry. :) And I think in the newest version this is a fixed error [03:27] jerrysv: jesusabdullah: using oauth that is [03:29] mandric has joined the channel [03:32] jbrokc_ has joined the channel [03:32] paul___: alejandromg any chance you know how to create a duplicate of a document (so it gets a new object id)? [03:33] alejandromg: yeah! upsert:true. From the mongo documentation: that is, if the record(s) do not exist, insert one. Upsert only inserts a single document. [03:33] ryanfitz has joined the channel [03:34] paul___: but i mean what if i already have a record that exists and i just want to take a copy of it and give it to another object to embed in itself? [03:35] miels: anyone doing compression with express¿ [03:35] miels: ? [03:36] jaequery has joined the channel [03:36] Jay has joined the channel [03:37] alejandromg: well! In that case, you can query the previous object, [03:37] alejandromg: set a new object with your previous query (using an schema) [03:37] atourino has joined the channel [03:38] alejandromg: In your schema every time that you define a i.e 'new User(QUERY)' [03:38] cjm has joined the channel [03:40] monokrome has joined the channel [03:43] Kunda has joined the channel [03:43] paul___: alejandromg do you mean like this? sorry just trying to be really careful to confirm as i don't want to make any mistakes. http://d.pr/W3M8 [03:43] paul___: oh that has poor formatting.. [03:44] paul___: this is better http://d.pr/Kxal [03:44] alejandromg: Don't worry [03:44] alejandromg: wait checking your code... [03:45] shawnjanas has joined the channel [03:49] skm has joined the channel [03:49] ceej has joined the channel [03:51] RylandAlmanza has joined the channel [03:51] dreamdust has joined the channel [03:53] fzzzy has joined the channel [03:54] jerrysv: anyone have any strong opinions about couchdb clients? [03:55] reid has joined the channel [03:55] zeade has joined the channel [03:56] Lingerance: Yes, it'd be nice if npm wasn't one and just did some openly documented RPC instead. [03:56] k1ttty has joined the channel [03:56] alejandromg: paul____: sorry for the wait! I was on the phone! [03:58] paul___: thats okay man :) [03:59] alejandromg: paul___: your code looks good! The only thing you need to do [03:59] alejandromg: is to erase the previous _id [03:59] paul___: ah okay, that makes sense [03:59] paul___: thanks very much for holding my hand through this :) [04:00] kenperkins has joined the channel [04:00] alejandromg: yeah! Don't worry! [04:00] alejandromg: I am happy to help! [04:01] cconstantine has joined the channel [04:01] RexM: has anyone had success upgrading their express app from 0.4 to 0.6.0? [04:03] RexM: when i try to run my app, it just hangs, when i try to run it with cluster, it's saying that cluster isn't a method... but it's the same code that was working before [04:03] c4milo1 has left the channel [04:03] RexM: not sure what's wrong [04:03] davidwalsh has joined the channel [04:03] Druid_: weiird... i aks myself if i should use subdomain.domain.com pointing to local ips like 10.0.1.1 pointing to my internal network (openvpn) [04:04] jj0hns0n has joined the channel [04:04] alejandromg: RexM: here! [04:04] RexM: alejandromg: what's the secret buttons to push? [04:05] r04r has joined the channel [04:05] alejandromg: Well I have no pain doing this! [04:06] RexM: what version of express are you running? [04:06] RylandAlmanza: did node 0.6 just come out? [04:07] jGoods: stable release just announced, yes [04:08] paul___: alejandromg one more question just came up.. do you know if it's possible to declare a schema that has itself as one of its embedded objects? [04:08] alejandromg: 2.4.6 I think, let me check [04:09] alejandromg: paul___: You mean, have a schema that has another schema? [04:10] alejandromg: express 2.5.0 [04:10] fbartho has joined the channel [04:10] r04r has joined the channel [04:11] paul___: what i mean is can i do something like this? http://d.pr/2G4o [04:12] RexM: alejandromg: i'm not sure how to debug what's going on... when i run my app, it just hangs... [04:12] alejandromg: RexM: Maybe an uncaughtException log? [04:13] alejandromg: paul___: Do you mean recursive? [04:13] paul___: yeah [04:13] JasonJS has joined the channel [04:13] teadict: who's using YUI @both server and client? [04:14] RexM: alejandromg: how do you check that? [04:14] paul___: i think this is what i want to do [04:14] paul___: http://mongoosejs.com/docs/populate.html [04:15] darinc has left the channel [04:15] r04r has joined the channel [04:15] r04r has joined the channel [04:15] alejandromg: RexM: Like this: https://gist.github.com/1346982 [04:16] secoif: hey is there any benefit in wrapping modules in (function() { // module goes here })(), while also running strict mode (since strict mode will catch globals for you anyway) ? [04:16] MooGoo: there's no benefit at all in any mode [04:16] MooGoo: node wraps modules in functions for you [04:16] secoif: sweet [04:16] secoif: thanks MooGoo [04:16] alejandromg: paul___: That's hard. [04:16] alejandromg: haha :D [04:16] jsurfer has joined the channel [04:17] paul___: :'( [04:17] paul___: mongoose seems complicated sometimes [04:17] alejandromg: But yeah if you do like that patter I think you'll able to do that [04:17] alejandromg: paul___: Yeah! But it's a blast! I like it! [04:17] __class__ has joined the channel [04:18] secoif: alejandromg what's that .grey thing in there [04:19] alejandromg: Oh! I Delete that ¬¬! [04:19] alejandromg: It's from colors module... [04:19] dreamdust has joined the channel [04:19] alejandromg: It's for colorize the output! [04:19] secoif: ahh, I should look at that. [04:20] secoif: easy way to impress the fellow peers [04:20] r04r has joined the channel [04:20] r04r has joined the channel [04:21] alejandromg: secoif: Hahah! Yeah that was my intention ;) [04:21] paul___: alejandromg hope i'm not bothering you with these questions but can't seem to find a reference to this in the docs. do you know about 'populate', can i call populate on an array of a document instead of just a non-array property? http://mongoosejs.com/docs/populate.html [04:22] paul___: looks like i can but wondering what you think https://github.com/LearnBoost/mongoose/issues/477 [04:22] alejandromg: BTW Using the uncaughtException your application don't die (in theory) [04:22] apang42 has joined the channel [04:22] JasonJS has joined the channel [04:23] RexM: alejandromg: not seeing anything [04:23] RexM: i'm going to write a quick gist w/ the code i have running [04:23] zeade has joined the channel [04:25] alejandromg: RexM: That'd help! [04:25] r04r has joined the channel [04:26] kazupon has joined the channel [04:27] RexM: alejandromg: https://gist.github.com/1346992 [04:27] spathi^ has joined the channel [04:27] RexM: alejandromg: this is throwing an error, it seems to just hang if i run a single app (without cluster) but i'd like to get cluster figured out [04:28] RexM: apparently cluster is no longer a function or something? i'm not sure what it's complaining about [04:28] chrisdickinson has joined the channel [04:29] JasonJS has joined the channel [04:29] alejandromg: RexM: Oh I see! [04:29] caffine has joined the channel [04:29] materialdesigner has joined the channel [04:29] shipit has joined the channel [04:30] r04r has joined the channel [04:30] blueadept2 has joined the channel [04:32] jtsnow has joined the channel [04:32] alejandromg: RexM: Try this: https://gist.github.com/1346996#file_server.js [04:32] alejandromg: paul___: I sent you a PM [04:32] paul___: ah thx [04:34] r04r has joined the channel [04:34] r04r has joined the channel [04:36] Drakonite has joined the channel [04:38] pizthewiz has joined the channel [04:39] r04r has joined the channel [04:43] langworthy has joined the channel [04:43] JakeyChan_ has joined the channel [04:44] r04r has joined the channel [04:45] smathy has joined the channel [04:45] avdg has joined the channel [04:46] zilch_ has joined the channel [04:46] corvis has joined the channel [04:47] alejandromg: RexM: I reproduced your error ;) [04:48] RexM: alejandromg: great! i'm attempting to get this up and running... trying to figure out the coffeescript for a for loop...... lol [04:48] alejandromg: Your problem isn't cluster [04:48] alejandromg: When you do 'server = connect()' [04:48] alejandromg: that's the main problem! [04:48] alejandromg: you can't do that! [04:49] alejandromg: Is better if you configure your app inside of 'main' and not in the cluster! [04:49] r04r has joined the channel [04:49] r04r has joined the channel [04:49] corvis: Hi! Anybody can tell how to build native module on Windows with node 6.0... I have successfully build node, but i need mongodb-native module [04:50] corvis: I find "hello world" native module on windows//// [04:52] secoif: RexM coffeescript for loops are the same as js for loops [04:53] r04r has joined the channel [04:54] secoif: *js foreach loops [04:55] secoif: for thing in someArray [04:55] secoif: thing.do() [04:57] RexM: alejandromg: it works! thanks :) [04:57] alejandromg: RexM: I was writing to you a gist ;)... Happy to help you [04:58] RexM: alejandromg: i used that gist you wrote before [04:59] r04r has joined the channel [04:59] r04r has joined the channel [04:59] alejandromg: RexM: :D [04:59] RexM: now to get my cake stuff to work, and keep track of my coffee scripts changing lol [04:59] RexM: and restarting node :P [05:00] sreeix has joined the channel [05:00] alejandromg: RexM: You can use nodemon if you need to restart on change ;) [05:04] r04r has joined the channel [05:06] boltR has joined the channel [05:08] r04r has joined the channel [05:08] r04r has joined the channel [05:10] deedubs has joined the channel [05:10] stalled has joined the channel [05:14] r04r has joined the channel [05:15] tshpaper has joined the channel [05:17] mike5w3c_ has joined the channel [05:18] dmitrig01 has joined the channel [05:20] jwang has joined the channel [05:24] minimalist has joined the channel [05:24] PeeterHome has joined the channel [05:24] jwang: I'm trying to load mhash npm. I'm getting an error [ Cannot find module './build/default/mhash' ] which I'm looking for now. bigint is also installed and works. any ideas? [05:25] jwang: both are installed using --global [05:26] alejandromg: jwang: node version? [05:26] jwang: alejandromg: 0.6.0 [05:26] zilch_ has joined the channel [05:27] alejandromg: Oh! You have to upgrade npm, previous version of npm just no works in 0.6.0 [05:27] alejandromg: try curl http://npmjs.org/install.sh | sh [05:30] jwang: I just updated it but have the same issue. I'm on npm 1.0.104 [05:30] ryan[WIN] has joined the channel [05:30] alejandromg: that's weird... [05:31] alejandromg: Your last choice is to clone the repository and do 'node-waf configure build' [05:32] alejandromg: whyt mhash [05:32] jwang: I assume it's faster since it's C-based? ezcrypto loads fine [05:33] jwang: what's the recommended way to get a md5 hash? [05:33] tbranyen: the crypot lib? [05:34] tbranyen: http://nodejs.org/docs/v0.6.0/api/crypto.html#crypto.createHash [05:34] alejandromg: as tbranyen said use crypto [05:34] alejandromg: and for md5 [05:35] alejandromg: you can easily do: var md5 = module.exports.md5 = function(str) { return crypto.createHash('md5').update(str).digest('hex');} [05:35] alejandromg: and so on... [05:35] slloyd_air has joined the channel [05:38] jwang: ah cool - that works [05:39] jwang: thanks alejandromg, tbranyen [05:39] tbranyen: no worries [05:39] alejandromg: no worries :D [05:39] jwang: still getting the hang of things :) [05:40] felixge has joined the channel [05:40] felixge has joined the channel [05:44] djbell has joined the channel [05:44] jwang: is there a standard way to handle string translation? like ruby's .tr() and php's strtr()? [05:44] trentm has joined the channel [05:44] beseku has joined the channel [05:46] EyePulp has joined the channel [05:47] zackattack has joined the channel [05:47] zackattack: hi [05:47] trentm: process.stdout.flush() is gone on node 0.6. Is that intentional? I don't see it (at least directly) mentioned in https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 [05:47] joshkehn has joined the channel [05:47] joshkehn has left the channel [05:48] zackattack: What's the best way to learn Node.js? [05:50] minimalist: zackattack: I'm new here, but I want to recommend this http://www.nodebeginner.org/ [05:50] minimalist: it helped me understand node [05:50] zackattack: i've read it.. :) [05:50] zackattack: however, i'm dealing with a very large application, and i feel like i'm in over my head. [05:50] zackattack: maybe the best route would be to pay someone to tutor me [05:50] alejandromg: zackattack: docs.nodejitsu.com, nodetuts.com... and more [05:51] base698: does anyone have good knowledge of the python vs node drivers for mongo? I am getting different results in both. I'm on hour 12 of trying to figure it out [05:52] paul__ has joined the channel [05:53] jacobolus has joined the channel [05:54] zackattack: Does Node preferentially try to import from the node_modules dir? [05:55] paul__ has joined the channel [05:57] alejandromg: zackattack: depends on the description on require, ie require('module') node will try to find on the core [05:58] mytrile has joined the channel [05:58] JakeyChan has joined the channel [05:59] paul__ has joined the channel [05:59] JumpMast3r has joined the channel [06:02] jbpros has joined the channel [06:02] alejandromg: zackattack: look at this: http://cl.ly/113T253z3A2U142P2q3X [06:03] zackattack: alejandromg: thank you, where is that screenshot from? :) [06:03] diogogmt has joined the channel [06:03] zackattack: I think I will buy that book. [06:04] alejandromg: zackattack: http://nodetuts.com/handson-nodejs-book.html [06:04] alejandromg: Hands on Node.js [06:06] k1ttty has joined the channel [06:06] ohtogo has joined the channel [06:08] alejandromg: See you all! [06:08] alejandromg: Good Nigth! [06:08] paul__: thanks for your help! see ya later [06:08] alejandromg: *Night [06:08] alejandromg: paul__: happy to help :D see ya! [06:10] WarheadsSE has joined the channel [06:10] SamuraiJack_ has joined the channel [06:14] harthur has joined the channel [06:15] tek has joined the channel [06:15] Xano has joined the channel [06:18] jacobolus has joined the channel [06:20] cconstantine_ has joined the channel [06:21] garrensmith has joined the channel [06:22] svnlto has joined the channel [06:22] paul__: async is so awesome [06:22] paul__: ok bedtime! [06:22] paul__: see y'all tmw [06:23] DennisRasmussen has joined the channel [06:24] luke` has joined the channel [06:34] malletjo has joined the channel [06:39] bnoordhuis_ has joined the channel [06:40] jhurliman has joined the channel [06:44] toki_kanno has joined the channel [06:45] OmidRaha has joined the channel [06:45] joshkehn has joined the channel [06:45] minimalist has joined the channel [06:45] garrensmith: morning [06:49] mmalecki has joined the channel [06:51] alcuadrado has joined the channel [06:54] jetienne has joined the channel [06:55] a_suenami has joined the channel [06:56] zilch_ has joined the channel [06:59] dgathright has joined the channel [07:01] HT has joined the channel [07:01] dilvie has joined the channel [07:02] pik has joined the channel [07:02] torsd has joined the channel [07:02] janiczek has joined the channel [07:03] alcuadrado: Can I deploy node.js behind an nginx and still using websockets? [07:04] jeromegn has joined the channel [07:05] binarychef has joined the channel [07:05] zilch_ has joined the channel [07:09] poseid has joined the channel [07:11] vi390 has joined the channel [07:11] vi390 has joined the channel [07:12] k1ttty has joined the channel [07:14] neoesque has joined the channel [07:16] JakeyChan: morning ! [07:18] skm has joined the channel [07:19] ohtogo has joined the channel [07:20] T-Co: alcuadrado, You should be able to proxy socket connections trough nginx yes [07:20] alcuadrado: T-Co, I asked cause I read that HAProxy doesn't support http1.1 [07:20] alcuadrado: and websocket requires it [07:20] T-Co: actonapp, http://www.letseehere.com/reverse-proxy-web-sockets [07:20] janiczek has left the channel [07:21] T-Co: sorry [07:21] T-Co: alcuadrado, http://www.letseehere.com/reverse-proxy-web-sockets [07:25] sylvinus has joined the channel [07:25] jetienne: T-Co: this actually works ? [07:29] eddyb has joined the channel [07:29] toabi has joined the channel [07:29] eddyb: https://github.com/joyent/node/blob/master/lib/net.js#L428-471 [07:29] eddyb: that is so silly [07:29] eddyb: first, why not have the native code set the callback? [07:30] eddyb: second, it's freaking javascript, use a closure [07:30] bnoordhuis_: eddyb: because this is faster [07:30] CIA-109: node: 03Ben Noordhuis 07master * r105d178 10/ lib/cluster.js : cluster: fix call to undefined function - http://git.io/3qE76A [07:30] bnoordhuis_: and closures are expensive [07:30] eddyb: bnoordhuis_: uhm, it is? [07:30] bnoordhuis_: the code in net.js has been hand-optimized a great deal [07:30] lunetics has joined the channel [07:30] bnoordhuis_: if you think it's silly, it's probably because it's faster [07:31] Xano_ has joined the channel [07:31] alcuadrado: T-Co, thanks [07:31] eddyb: if at least it would be obvious that would be an optimization... [07:32] eddyb: s/that/that that/ [07:32] simenbrekken has joined the channel [07:32] eddyb: bnoordhuis_: I was looking for a reason to store only the callback in ReqWrap and get rid of the object [07:33] T-Co: jetienne, Yeah [07:33] bnoordhuis_: eddyb: we do it like this because it - among other things - makes it easier on v8's gc [07:33] T-Co: alcuadrado, np [07:35] mmalecki: bnoordhuis_: just curious: how faster is that? [07:36] svnlto has joined the channel [07:36] bnoordhuis_: mmalecki: do you mean how is it faster or how much faster? [07:36] mmalecki: bnoordhuis_: how much faster (sorry, 8 am) [07:37] bnoordhuis_: mmalecki: hard to give exact numbers but it's faster because you don't have Persistent handles all over the place [07:37] rsh has joined the channel [07:37] bnoordhuis_: v8's gc doesn't deal well with those [07:38] mmalecki: bnoordhuis_: ok, thanks [07:39] sylvinus has joined the channel [07:40] isaacs has joined the channel [07:41] eddyb: bnoordhuis_: so I guess using Persistent's everywhere as a mean to having a shared_ptr-style SharedHandle is bad bad news? [07:42] braoru has joined the channel [07:42] bnoordhuis_: eddyb: it's not as dramatic as that but it's slower, stresses v8 more [07:43] eddyb: bnoordhuis_: any easy way to check binding performance? [07:43] Blorb has joined the channel [07:43] bnoordhuis_: eddyb: call it a million times? [07:43] eddyb: like, how good do those calls cope with their input [07:44] bnoordhuis_: i was only half-joking actually [07:44] eddyb: bnoordhuis_: something I can get a score at and say "hey, it's worse than node.js" [07:44] bnoordhuis_: i usually compile a profile build and run gprof on it [07:44] eddyb: I think I saw a "benchmark" dir in node [07:44] eddyb: yepp [07:44] shedinja_ has joined the channel [07:45] bnoordhuis_: the one downside is that v8 overhead often dwarfs all node code [07:45] zackattack: ACTION has been reading the Hands On Node.js book [07:45] cconstantine_ has joined the channel [07:45] eddyb: books about in-development projects :P ? [07:46] capelio has joined the channel [07:46] beevits has joined the channel [07:47] groom has joined the channel [07:47] eddyb: bnoordhuis_: fast_buffer2 seems quite..... old. or just out-of-date [07:47] dsirijus has joined the channel [07:48] bnoordhuis_: eddyb: fast_buffer2? [07:49] eddyb: in benchmarks [07:49] beevits has joined the channel [07:49] `3rdEden has joined the channel [07:50] zackattack: eddyb: most technical books are about in-development projects :p [07:50] bnoordhuis_: eddyb: oh that... fastbuffers still exist but they're an internal detail [07:50] magnetik has joined the channel [07:51] eddyb: I know :) [07:52] smgt has joined the channel [07:53] Emmanuel` has joined the channel [07:53] maeseele has joined the channel [07:55] zomg: Hrms, what on earth is this o_O "Unknown system errno 101", from a net socket.. [07:55] eddyb: 'the heck is FreeList? [07:55] jacobolus has joined the channel [07:55] eddyb: is it even used anywhere? [07:56] xteensx has joined the channel [07:56] zomg: There's not even a single mention of this on el goog [07:56] Xano has joined the channel [07:56] xteensx: watch the best porn [07:56] xteensx: http://xteensx.info [07:56] xteensx: ALL FEATURES FOR FREE [07:57] dexter_e has joined the channel [07:57] zomg: lolwut [07:58] magnetik: Nice website. Yet i'm not sure it has anything related to node [07:58] Marko__ has joined the channel [07:58] dexter_e: Anyone using express with Node 0.6.0 ? [07:58] zomg: Right, now I'm getting another errno... wtf is this [07:59] zomg: Error: connect Unknown system errno 110 at errnoException (net.js:614:11) at Object.afterConnect [as oncomplete] (net.js:605:18) [07:59] zomg: First it was 101, now 110? What do these numbers even mean [07:59] dexter_e: Is it recommended to immediately move to V0.6.0 since its stable ? [08:00] zomg: The only mention of 110 is on some japanese website... at least it has a hit on google, unlike 101 :D [08:00] neshaug has joined the channel [08:00] jeromegn has joined the channel [08:01] Morkel has joined the channel [08:03] Jay has joined the channel [08:03] zomg: Hmm.. seems I'm getting these two errors because a socket is failing to connect [08:04] fangel has joined the channel [08:05] bnoordhuis_: zomg: what os? [08:05] beeevits has joined the channel [08:06] zomg: Linux [08:06] bnoordhuis_: zomg: 101 is ENETUNREACH, 110 is ETIMEDOUT [08:06] bnoordhuis_: not all errors have been properly mapped yet but i'm working on that [08:07] zomg: Oh I see [08:07] burningdog has joined the channel [08:07] Marko__: is it possible to deploy coffeescripts on nmpjs.org? and then require them normally on node.js apps configuring it on package.json? [08:07] RushPL_ has joined the channel [08:07] zomg: bnoordhuis_: I do get ETIMEDOUT's sometimes, but usually when the connection is already open. Do you need any other info regarding these? [08:08] skm has joined the channel [08:08] zomg: I mean ETIMEDOUT's with the code being that instead of the weird errno :) [08:08] beevits has joined the channel [08:08] Blorb has joined the channel [08:09] tisba has joined the channel [08:09] NetRoY has joined the channel [08:10] itsmeoverhere has joined the channel [08:10] eddyb: Marko__: you most likely need a coffeescript->js module [08:10] vguerra has joined the channel [08:10] DennisRasmussen has joined the channel [08:11] eddyb: AFAIK, anyone can monkey-patch (I think that's how it's called) the module module to support more extensions (possibly by passing them thru compilers) [08:12] AAA_awright: monkey-patch is literally changing the logic at runtime, require just uses an Object of functions to handle various extensions [08:13] itsmeoverhere: Hiya all, noob on node.js trying to use jQuery. I seem to need an node-waf, how do I get it on my windows machine? [08:13] eddyb: AAA_awright: oh then [08:14] eddyb: yeah, could be easier than I thought [08:14] Pbaba has joined the channel [08:14] Pbaba: Hello Everyone. [08:14] Marko__: so how would you actually do it? [08:14] AAA_awright: But I still wouldn't advise using coffeescript. Ever. [08:15] Pbaba: I jus got to know about node.js and got the link for this irv channel through Wikipedia [08:15] mmalecki has joined the channel [08:15] andree has joined the channel [08:15] Pbaba: Can someone help me in understanding this? [08:15] Marko__: i have created rather big lib with coffee script for hubot, but I rather keep it separate lib than embed with hubot script [08:15] dexter_e: Anyone know what the major differences / advantages of V0.6.0 are ? or a link [08:15] Pbaba: Hi Marko__ [08:16] captain_morgan has joined the channel [08:16] Marko__: its easy to convert to normal js thou, and that can be used in node.js normally i guess [08:16] Marko__: Phaba, hello, how are you? [08:16] ablomen has joined the channel [08:17] Marko__: Pbaba* [08:17] zomg: dexter_e: it seems to fix bugs at least =) [08:17] dexter_e: sweet [08:17] Marko__: I'm new to node.js myself too, on very early learning state [08:18] itsmeoverhere: How do I get node-waf? any pointers? [08:18] Begun has joined the channel [08:19] HardPhuc has joined the channel [08:20] dshaw_ has joined the channel [08:21] dexter_e: http://blog.nodejs.org/2011/11/05/node-v0-6-0/ 0.6.0 Goodness! [08:22] dexter_e: Looks like its mostly Windows stuff [08:23] skm has joined the channel [08:23] Pbaba: So, node.js is something that works on the server end. [08:24] Pbaba: Well, can I make use of it to create webapps and cloud networks? [08:24] dexter_e: And "Integrated load balancing over multiple processes." woohooo [08:25] shedinja: What do you guys think about coffeescript? I've been making my modules in coffeescript and someone just opened and issue saying they would open a pull request but they don't know coffeescript. That made me reconsider making future modules in javascript again. [08:25] eddyb: bnoordhuis_: any reason why mingw is not as supported as Visual Studio? [08:25] eikaas has joined the channel [08:26] eikaas has left the channel [08:26] eikaas has joined the channel [08:26] eikaas has left the channel [08:26] eddyb: I mean, once you install those files and setup paths, you get about everything you need to build (including extras like proper C++11) [08:26] eddyb: and it would be also easier to build addons [08:26] Marko__: Pbaba, yes it suits very well with cloud environments I think [08:27] loob2 has joined the channel [08:27] ccare has joined the channel [08:27] Mokona has joined the channel [08:27] sproates has joined the channel [08:27] eikaas has joined the channel [08:27] rio{ has joined the channel [08:29] elijah has joined the channel [08:29] Druid_ has joined the channel [08:32] kuebk has joined the channel [08:32] incon has joined the channel [08:33] arcanis has joined the channel [08:37] [AD]Turbo has joined the channel [08:37] [AD]Turbo: hi there [08:38] jetienne has joined the channel [08:39] incon has joined the channel [08:39] svnlto has joined the channel [08:41] Delapouite_ has joined the channel [08:42] Wizek has joined the channel [08:43] cosmincx has joined the channel [08:43] smgt has joined the channel [08:44] nils_r has joined the channel [08:47] adrianF has joined the channel [08:48] svenlito has joined the channel [08:49] smgt has joined the channel [08:50] zilch_ has joined the channel [08:51] groom has joined the channel [08:53] knifed has joined the channel [08:55] tvw has joined the channel [08:55] eddyb: #define NODE_V8_UNIXTIME(v) (static_cast((v)->NumberValue())/1000.0); [08:56] eddyb: you see what I see? [08:56] eddyb: an extra semicolon [08:56] aaronmcadam has joined the channel [08:56] eddyb: bnoordhuis_: ^^ [08:56] bosphorus has joined the channel [08:56] jetienne: eddyb: hehe i love it [08:58] sfoster has joined the channel [08:59] [AD]Turbo has joined the channel [09:00] eddyb: things like "a unix.." in comments [09:00] eddyb: oh boy [09:01] Industrial: a unix, two unices, three unicorns, amirite? [09:02] adambeynon has joined the channel [09:02] whitman has joined the channel [09:02] TurboAWAY has joined the channel [09:04] hipsterslapfight has joined the channel [09:05] mraleph has joined the channel [09:05] Delapouite_ has left the channel [09:06] braoru has joined the channel [09:06] d0k has joined the channel [09:07] RushPL has joined the channel [09:07] aliem has joined the channel [09:08] jamesp has joined the channel [09:09] low-b has joined the channel [09:10] jbpros has joined the channel [09:10] kdng-user241234q has joined the channel [09:10] eyeOfKdng has joined the channel [09:10] eddyb: Industrial: I meant s/a/an/ [09:12] htoothrot has joined the channel [09:15] nick_ has joined the channel [09:16] vguerra has joined the channel [09:17] blup has joined the channel [09:18] blup_ has joined the channel [09:20] adambeynon has joined the channel [09:21] ph^ has joined the channel [09:22] garrensmith: eddyb: you just here to knock nodejs or are you thinking of improving it? [09:22] eddyb: I'm rewriting it [09:22] eddyb: just ranting about random issues I see [09:22] markwubben has joined the channel [09:22] garrensmith: eddyb: cool always easy to point fingers though... [09:23] simenbrekken_ has joined the channel [09:23] kdng-user241234q has left the channel [09:23] stagas has joined the channel [09:23] shiawuen has joined the channel [09:25] adrianmg has joined the channel [09:25] adrianmg has left the channel [09:25] AD7six has joined the channel [09:30] [AD]Turbo has joined the channel [09:31] tobmaster has joined the channel [09:34] uchuff has joined the channel [09:34] madhums has joined the channel [09:35] akamike has joined the channel [09:37] bnoordhuis_: zomg: try calling .setKeepAlive() on the socket, that could make a difference [09:37] TheJH_phone has joined the channel [09:37] Wizek has joined the channel [09:37] bnoordhuis_: eddyb: gyp doesn't support mingw [09:38] tristanz has joined the channel [09:38] eddyb: really? [09:38] tristanz: Does anybody have any clues to this question: http://stackoverflow.com/questions/6447183/nodejs-module-exports-object-prototype-problem [09:38] tristanz: It's not mine, but I'm hitting against it as well. [09:39] tristanz: crap, wrong link: http://stackoverflow.com/questions/5739740/extending-array-prototype-in-node-js-from-a-required-file [09:39] djcoin has joined the channel [09:40] konobi: eddyb: there's always the VS Express download [09:41] eddyb: konobi: I'm not complaining about having to pay for VS [09:41] eddyb: I'm complaining about using VS [09:41] eddyb: for me, it's bad because the lack of proper C++11 [09:42] thalll has joined the channel [09:42] konobi: VS11 supports c++11 though, no? [09:45] shedinja: tristanz: the questions you linked have working answers [09:46] tristanz: shedinja: the second one? that last answer isn't right [09:48] tomb| has joined the channel [09:50] robhawkes has joined the channel [09:50] shiawuen has joined the channel [09:51] jldbasa has joined the channel [09:51] tomb has joined the channel [09:51] jimmysparkle has joined the channel [09:52] shedinja: tristanx: weird i just tried the exact code and it works in the repl [09:52] shedinja: tristanx: using node v0.6.0 [09:53] TomY_ has joined the channel [09:55] tristanz: Ahh, maybe I need to upgrade [09:55] madhums has joined the channel [09:56] mraleph has joined the channel [09:57] coreb has joined the channel [09:57] akihito_s has joined the channel [09:58] felixge has joined the channel [09:58] felixge has joined the channel [09:59] glenjamin_ has joined the channel [09:59] glenjamin_: Hi guys, what's the recommended way to have multiple node version co-exist? [10:01] KiNgMaR: glenjamin_: try https://github.com/creationix/nvm [10:01] glenjamin_: will do, thanks [10:02] strmpnk_ has joined the channel [10:03] eldios has joined the channel [10:04] tristanz: shedinja: yes, seems like it was a version problem. thanks. [10:04] diogogmt has joined the channel [10:05] tristanz has left the channel [10:05] garrensmith: glenjamin_: else also n http://github.com/visionmedia/n [10:06] sylvinus has joined the channel [10:06] dexter_e has joined the channel [10:06] zomg: bnoordhuis_: the server that the socket was connecting to was down, so I'm not sure if keepalive would help :D [10:09] knirhs has joined the channel [10:10] Blorb has joined the channel [10:10] markwubben has joined the channel [10:13] fangel has joined the channel [10:18] k1ttty has joined the channel [10:21] kdng-user241234q has joined the channel [10:22] eyeOfKdng has joined the channel [10:23] kdng-user241234q has left the channel [10:24] hackband has joined the channel [10:24] hellp has joined the channel [10:26] Net_RoY has joined the channel [10:27] DQF has joined the channel [10:27] Brille has joined the channel [10:27] p0c0l0c0 has joined the channel [10:27] tomtom_ has joined the channel [10:27] Brille: heeelloooo [10:27] DQF: Hi C3L!!!! //Boffe [10:27] p0c0l0c0: TOM [10:27] kdng-user241234q has joined the channel [10:27] josefinandersson has joined the channel [10:27] Brille: :P [10:27] p0c0l0c0: C3L RULES [10:27] DQF: jo brille WZUP!? [10:28] Brille: det du ;) [10:28] DQF: JAg är hungrig ^^ [10:28] p0c0l0c0: BOWLING IMORGON! [10:28] Brille: JAg meeed! [10:28] josefinandersson: Jag med! [10:28] Brille: maaaaaat! [10:28] DQF: JA!!! Vet vi vart nu? [10:28] Brille: Vart vadå? [10:28] DQF: I STHLM hoppas jag :P [10:28] p0c0l0c0: antingen i kista eller mariatorget [10:28] Brille: jaha! [10:28] Brille: :P [10:29] Brille: trodde du menade vart vi skulle äta.. kan bara tänka på mat [10:29] Brille: :P [10:29] DQF: Bara jag inte kastar klotet in i bardisken igen som sisst på Marion's Gastro Dinners [10:29] p0c0l0c0: haha skojjar du!? [10:29] DQF: Nope! Det vart lite pinsamt hahaha [10:29] p0c0l0c0: hahahah [10:29] DQF: Den slank ur fingrarna [10:30] p0c0l0c0: får fixa säkerhetsnät som släggkastare kring dig [10:30] Brille: MAAAT! [10:30] zomgbie has joined the channel [10:30] p0c0l0c0: TOM RULES [10:30] zemanel has joined the channel [10:31] p0c0l0c0 has left the channel [10:31] glenjamin_: garrensmith: do you know how "n" sets the active node installation? [10:31] jldbasa has joined the channel [10:31] glenjamin_: is it just by doing "make install" when you switch? [10:31] svenlito has joined the channel [10:31] DQF has left the channel [10:32] Brille has left the channel [10:32] Rickjames has joined the channel [10:32] sylvinus_ has joined the channel [10:33] flaca007 has joined the channel [10:35] zomgbie_ has joined the channel [10:36] flaca007: hello world! [10:36] fly-away has joined the channel [10:37] xzenzo has joined the channel [10:37] madhums has joined the channel [10:40] mrshogun has joined the channel [10:42] mrshogun has joined the channel [10:43] magnetik_ has joined the channel [10:43] mrshogun2 has joined the channel [10:45] zomgbie has joined the channel [10:45] pdonald has joined the channel [10:46] dubenstein has joined the channel [10:46] jtr__ has joined the channel [10:47] NetRoY has joined the channel [10:48] dubenstein has joined the channel [10:51] okuryu has joined the channel [10:52] Marko__ has joined the channel [10:54] eldios has joined the channel [10:54] fermion has joined the channel [10:58] PeeterHome has joined the channel [10:59] glenjamin_: I'm getting "Object # has no method 'flush'" under 0.6.0, but it's not in the list of changes from 0.4-0.6 [10:59] fangel has joined the channel [10:59] glenjamin_: where's the best place to look for more info? [11:00] Shrink has joined the channel [11:00] herbySk has joined the channel [11:00] Shrink has joined the channel [11:05] Blorb has joined the channel [11:08] scott_gonzalez has joined the channel [11:08] iFire has joined the channel [11:09] Glenjamin_: docs/latest/api goes to 0.5.10 [11:12] xerox: is this a bug http://gist.github.com/1347511 [11:13] Glenjamin_: no [11:13] xerox: whoa [11:13] xerox: that is not explained in api/modules.html [11:13] Glenjamin_: if you omit "var", its global [11:14] xerox: why do the global var get exported tho? [11:14] Glenjamin_: they dont get exported [11:14] p1d has joined the channel [11:14] Glenjamin_: they're *global* [11:14] Glenjamin_: as in [11:14] Glenjamin_: everywhere [11:14] xerox: : ) [11:15] JuanCri has joined the channel [11:15] nubi has joined the channel [11:17] mike5w3c_ has joined the channel [11:20] zilch_ has joined the channel [11:24] zalun has joined the channel [11:25] zalun: does nodeJS have something like python's virtualenv? [11:25] zilch_ has joined the channel [11:26] zalun: so I could install different requirements for different projects? [11:27] JakeyChan has joined the channel [11:27] fairwinds has joined the channel [11:30] mrshogun has joined the channel [11:30] hnan has joined the channel [11:31] mrshogun: hi ppl [11:31] Glenjamin_: npm's package.json handles that [11:31] Glenjamin_: zalun: dependencies are installed within the app by default [11:32] fairwinds_ has joined the channel [11:33] akihito_s has joined the channel [11:34] ioNull: hi anybody get node.js and amqp run on webOS 2.x? [11:36] DTrejo has joined the channel [11:36] mrshogun: ioNull never tried [11:36] matthijs has joined the channel [11:36] tomh has joined the channel [11:36] mrshogun: but wich error are u getting? [11:37] zorzar has joined the channel [11:37] whoops has joined the channel [11:37] nym has joined the channel [11:38] strmpnk has joined the channel [11:38] ioNull: the node.js version of webOS is 0.2.3,but amqp must 0.4 above [11:38] jtr__|away has joined the channel [11:39] jtr__|away has joined the channel [11:39] Wizek has joined the channel [11:40] lmatteis has joined the channel [11:40] brianleroux has joined the channel [11:40] jtr__ has joined the channel [11:41] jbpros has joined the channel [11:41] ncb000gt has joined the channel [11:41] zackattack has joined the channel [11:42] metadaddy has joined the channel [11:42] blissdev has joined the channel [11:43] jtr__ has joined the channel [11:44] niftylettuce has joined the channel [11:45] jbpros_ has joined the channel [11:45] ryanseddon has joined the channel [11:47] jtr__ has joined the channel [11:47] tiglionabbit has joined the channel [11:47] JasonSmith has joined the channel [11:47] ioNull: : jtr__ hi [11:47] daleharvey has joined the channel [11:47] dob_ has joined the channel [11:47] jtr__: ioNull: hello :) [11:48] jtr__: ioNull: u r ? [11:48] Hosh has joined the channel [11:48] ioNull: how to pm you? [11:48] jtr__: what IRC client are u using ? [11:49] CIA-109: node: 03Ben Noordhuis 07master * r04958e8 10/ (lib/fs.js test/simple/test-fs-mkdir.js): [11:49] CIA-109: node: fs: make mkdir() call callback if mode is omitted [11:49] CIA-109: node: Fixes #2043. - http://git.io/4tHxuQ [11:49] ioNull: webchat on freenode.net [11:49] jtr__: ioNull: right click on my nick in this chat / or in the list of names , and see the appropriate option [11:50] Xano has joined the channel [11:50] salazr_ has joined the channel [11:50] strmpnk_ has joined the channel [11:51] yobi has joined the channel [11:51] dob_: did somebody see a streaming solution to stream from iphone (in h.264) to the browser? [11:53] jtr__ has joined the channel [11:53] jtr__: ioNull: i got disconnected , now pm me :) [11:53] maushu: ioNull: Left click the nick, actually. [11:53] maushu: And select "query". [11:54] __doc__ has joined the channel [11:54] matyr has joined the channel [11:54] AphelionZ has joined the channel [11:54] robb1e_ has joined the channel [11:54] piscisaureus has joined the channel [11:55] fangel has joined the channel [11:55] zilch_ has joined the channel [11:55] jtr__: ioNull: still trying to PM me ? [11:55] sveisvei has joined the channel [11:55] ioNull: haha [11:55] ioNull: lol [11:55] ioNull: yes [11:55] jtr__: maushu: right click u mean [11:56] CrisO has joined the channel [11:56] maushu: jtr__: No, left. [11:56] maushu: He already pm'ed me. [11:56] jtr__: ioNull: maushu: i see [11:56] dscape has joined the channel [11:57] maushu: jtr__: We are talkinga bout you. Behind your back. [11:57] jtr__: maushu: do i know you people ? if i don't ask yourselves, do i care ? :P [11:58] owenb has joined the channel [11:58] termie has joined the channel [11:58] jtr__: maushu: seriously , do i know you people ?? [11:59] diogogmt has joined the channel [11:59] Raynos has joined the channel [11:59] indutny has joined the channel [11:59] mattly has joined the channel [12:01] majek has joined the channel [12:01] ralph has joined the channel [12:01] jtr__: maushu: ioNull: funny people :P [12:01] jeremyselier has joined the channel [12:01] mytrile has joined the channel [12:02] kdng-sinan has joined the channel [12:02] eyeOfKdng has joined the channel [12:02] kdng-sinan has left the channel [12:03] ioNull: maushu: jtr__ haha [12:03] kdng-sinan has joined the channel [12:04] kdng-sinan has left the channel [12:04] footyfish has joined the channel [12:04] remysharp has joined the channel [12:04] CIA-109: node: 03Benjamin Pasero 07master * rb1bb17f 10/ lib/fs.js : fs: fix fs.realpath on windows to return on error - http://git.io/T0Pmpg [12:04] CIA-109: node: 03Ben Noordhuis 07master * r6f96e78 10/ test/simple/test-fs-realpath.js : [12:04] CIA-109: node: test: fs.realpath() should not call its callback twice [12:04] CIA-109: node: Test case for #2045. - http://git.io/axsC9A [12:05] ioNull: mrshogun: the node.js version of webOS is 0.2.3,but amqp must 0.4 later [12:05] shiawuen has joined the channel [12:05] Kunda has joined the channel [12:06] jbpros has joined the channel [12:06] mikl has joined the channel [12:07] d4rk1ink has joined the channel [12:07] zilch_ has joined the channel [12:09] arcanis has joined the channel [12:09] neurodrone has joined the channel [12:09] ioNull: why node-amqp with node v0.4 or later? [12:10] tanepiper has joined the channel [12:10] fairwinds: isaacs: hi, I have two CLI apps installed globally. Ideally it would be good to link one to the other but both are global [12:11] zilch_ has joined the channel [12:11] RexM has joined the channel [12:12] fairwinds: oh crap: isaacs left [12:13] bradwright has joined the channel [12:13] remysharp: Looking for pointers - process.stdout.flush isn't around in 0.6.0, right? Looking to fix this line: https://github.com/VanCoding/node-websocket-server/blob/master/lib/ws/connection.js#L51 (throwing exception due to .flush access) - not sure what I should change it to though? [12:14] Alex_R_ has joined the channel [12:14] Glenjamin_: remysharp: i had that problem this morning, i just removed the call [12:16] remysharp: Glenjamin_: is that the right thing to do? that said, I've no idea what the flush is doing in the first place - just holding out for @miksago to implement his plan for node websockets. [12:16] remysharp: Glenjamin_: that said - if it worked for you - I'm sure it'll work for me :) [12:16] olegp has joined the channel [12:16] Glenjamin_: it's just trying to force the output buffer to flush, which makes sense for debug information [12:16] Glenjamin_: but util.error is blocking anyway - the flush should have no effect [12:16] aaronj1335 has joined the channel [12:18] remysharp: Glenjamin_: cheers - working again :) [12:19] zilch_ has joined the channel [12:21] secoif: hrm, how do i test a file upload from a test suite? [12:22] secoif: ok, I'm trying something like this http://onteria.wordpress.com/2011/05/30/multipartform-data-uploads-using-node-js-and-http-request/ [12:24] level09 has joined the channel [12:25] Vennril has joined the channel [12:25] dob_ has joined the channel [12:25] JKarsrud has joined the channel [12:27] fangel has joined the channel [12:29] materialdesigner has joined the channel [12:31] jacobrask: I'm creating a Node module which needs to save some settings after the first run, and it needs to be unique per application require'ing it [12:32] jacobrask: Currently I just save a file as ./file. using __dirname saves it in the module's directory which is not what I want either [12:32] jacobrask: specifically I need to persist an UUID over app restarts [12:35] nicotene has joined the channel [12:35] Morkel has joined the channel [12:36] jacobrask: any ideas? [12:36] jacobrask: Should I save in a JSON file in $HOME with one object per app..? [12:37] DoNaLd` has joined the channel [12:39] ph^ has joined the channel [12:40] garrensmith: jacobrask: else one file with a json object and each application is an embedded object inside that object. [12:43] wereHamster: what exactly does stream.pause() do? Will it buffer the events and emit them after resume()? [12:44] Vertice has joined the channel [12:44] broofa has joined the channel [12:45] nicotene: Hi all, a quick question, can we update session variables after response is sent? [12:47] jomoho has joined the channel [12:49] Kunda has joined the channel [12:54] bnoordhuis: wereHamster: depends on the stream implementation [12:54] Morkel has joined the channel [12:55] jpdery has joined the channel [12:56] nuba has joined the channel [12:58] wereHamster: req in express/connect [12:58] nicotene: i want to send response back to user while persisting the request info to db (takes ~5sec). Could I access session variables from the callback of the db operation? [12:58] kazupon has joined the channel [12:59] jetienne has joined the channel [12:59] raphdg has joined the channel [13:01] RickJames has joined the channel [13:02] RickJames has left the channel [13:07] jetienne_ has joined the channel [13:07] heavysixer has joined the channel [13:08] zmbmartin has joined the channel [13:08] Wizek has joined the channel [13:09] cjroebuck has joined the channel [13:09] ryanfitz has joined the channel [13:09] zmbmartin: chjj: got a question about parted. [13:11] zilch_ has joined the channel [13:13] airwalker has joined the channel [13:15] jarek has joined the channel [13:15] jarek has joined the channel [13:15] shiawuen has joined the channel [13:15] mehtryx has joined the channel [13:15] zilch_ has joined the channel [13:16] SamuraiJack has joined the channel [13:18] vkareh has joined the channel [13:19] akihito_s has joined the channel [13:20] nicotene: no donut for me, guys? [13:21] thinkt4nk has joined the channel [13:21] Glenjamin_: nicotene: if the callback for the DB stuff has a closure on the session data then yes [13:21] Glenjamin_: that should work [13:21] tisba_ has joined the channel [13:23] nicotene: thanks Glenjamin, i have a session var defined before going into db operation. i modify the session var from inside the callback. how to confirm if the callback has closure on the session? [13:23] Blorb has joined the channel [13:24] broofa has joined the channel [13:24] socketio\test\64 has joined the channel [13:26] beevits has joined the channel [13:26] k1ttty has joined the channel [13:28] martin_sunset has joined the channel [13:29] fumanchu182 has joined the channel [13:30] briancray has joined the channel [13:32] jtr__ has joined the channel [13:32] Glenjamin_: var session = sessionData; function() { session.whatever() } <- if it looks like that, you can access the session data [13:33] Glenjamin_: There's no guarantee it'll save it though [13:33] shiawuen has joined the channel [13:33] ph^ has joined the channel [13:33] svnlto has joined the channel [13:36] seanhess has joined the channel [13:37] shiawuen has joined the channel [13:37] xetorthio has joined the channel [13:38] zilch_ has joined the channel [13:38] strmpnk has joined the channel [13:38] nicotene: I am able to access the session var, but changes made to it are not persisted! [13:39] broofa has joined the channel [13:39] remysharp: I have a server that support EventSource, it caches connections, and when an event fires, it loops over the cached response object and writes to them - is there a way to work out which response objects no longer have a client attached at the other end? [13:42] JakeyChan_ has joined the channel [13:42] remysharp: or similar - is there a close event on the request (or response) object? [13:42] braoru has joined the channel [13:43] superjudge: ll [13:44] EvRide has joined the channel [13:45] enmand has joined the channel [13:45] zomgbie has joined the channel [13:47] eyeOfKdng has joined the channel [13:47] cosmincx has joined the channel [13:48] mehtryx has left the channel [13:49] robhawkes has joined the channel [13:50] anoop has joined the channel [13:51] jbpros has joined the channel [13:52] scttnlsn_ has joined the channel [13:52] trose: Hey all, I'm trying to use socket.io to send live updates to my user without having to refresh the page. I tied my socket to the session so I can access it from within the express server code but I can't always access it. It seems to only be instantiated within callbacks to child_process. Anyone have experience with this? [13:52] ppcano has joined the channel [13:53] AaronMT has joined the channel [13:53] christophsturm has joined the channel [13:53] christophsturm: are there nice frontends for node's debugger? [13:53] Glenjamin_: node-inspector [13:53] Industrial: christophsturm: webstorm IDE (commercial) [13:53] Industrial: and node-ins.. that. [13:54] secoif: christophsturm you can also use eclipse + v8 tools to debug [13:55] christophsturm: oh does webstorm have a debugger, nice [13:55] christophsturm: I'm using rubymine now which is basically the same as webstorm [13:56] sfoster has joined the channel [13:56] cgfuh has joined the channel [13:56] jetienne_ has joined the channel [13:57] zemanel has joined the channel [13:57] darinc has joined the channel [13:57] garrensmith: trose: could you gist the problem [13:57] davv3 has joined the channel [13:57] Morkel has joined the channel [13:57] akihito__ has joined the channel [13:58] davidsklar has joined the channel [13:58] Industrial: christophsturm: yeah it does, theres a plugin for nodejs to enable the CommonJS require() to work, it will basically make the whole IDE autocomplete functionality, refactorings etc work. [13:58] trose: garrensmith, I'm not sure what you mean? like simplify it to the smallest bit of code that causes the problem? [13:58] Morkel has joined the channel [13:59] Industrial: I don't know how the free version (IntelliJ IDEA) works with this [13:59] garrensmith: trose just show the code so we can see if we can spot the error [13:59] christophsturm: Industrial: i guess that the javascript plugin is commercial and only part of the IDEA ultimate edition [14:00] christophsturm: its part of rubymine and i have been using rubymine for node.js for some time now. but if webstorm has better support i'll use that instead [14:00] ppcano has joined the channel [14:01] trose: garrensmith, http://paste2.org/p/1765927 the socket line is at 29 [14:01] ryanfitz has joined the channel [14:01] ppcano has joined the channel [14:02] scttnlsn_ has joined the channel [14:03] garrensmith: trose: sorry not sure. As long as you have created a connection it should work. Can you send a normal message outside of the request to the user [14:03] miccolis has joined the channel [14:04] shedinja_ has joined the channel [14:05] AphelionZ has joined the channel [14:08] lazyshot has joined the channel [14:08] dannyamey has joined the channel [14:09] tomlion has joined the channel [14:09] ppcano has joined the channel [14:11] ppcano has joined the channel [14:11] level09 has joined the channel [14:12] ppcano has joined the channel [14:12] ppcano has joined the channel [14:13] devongovett has joined the channel [14:14] CarterL has joined the channel [14:14] cosmincx has joined the channel [14:14] ppcano has joined the channel [14:14] Poetro has joined the channel [14:14] Poetro has joined the channel [14:16] lyte_ has joined the channel [14:16] ppcano has joined the channel [14:18] gerard0 has joined the channel [14:18] zilch_ has joined the channel [14:18] Esteb has joined the channel [14:19] plutoniix has joined the channel [14:21] ppcano has joined the channel [14:21] nils_r has joined the channel [14:22] metamind has joined the channel [14:22] ppcano has joined the channel [14:22] k1ttty has joined the channel [14:22] hkjels: var md5 = require('crypto').createHash('md5').update('some value').digest('hex') [14:22] metamind: node-inspector: is there a way to set a programatically set node-inspector to break [14:22] mehlah has joined the channel [14:22] hkjels: I get HashUpdate fail [14:22] hkjels: any ideas? [14:23] JasonJS has joined the channel [14:23] hkjels: hmm. If I put that line directly into node-cli it works [14:23] hkjels: weird [14:24] localhost has joined the channel [14:24] ppcano has joined the channel [14:25] deedubs has joined the channel [14:26] thomblake has joined the channel [14:26] thomblake has left the channel [14:26] thalll has joined the channel [14:27] sfoster has joined the channel [14:27] shiawuen has joined the channel [14:27] jimt has joined the channel [14:27] mrshogun: metamind run node --debug-brk yourfile.js [14:27] mrshogun: it will put a break point in the first line [14:28] mrshogun: than you can put break points wherever you want [14:28] Xano has joined the channel [14:28] Glenjamin_: thats not conditional breakpoints though [14:29] mrshogun: i didnt understand you wanted conditional breakpoints [14:30] mrshogun: do crtl+click [14:30] igl has joined the channel [14:30] eephillip has joined the channel [14:31] metamind: The place i want to break is way into the code, so at the moment i break on the first line, before the other modules have loaded. I want to break inside a loop when it is working on a specific value [14:31] strmpnk has joined the channel [14:31] mrshogun: metamind so instead of clicking in the line where you want to put the breakpoint [14:31] mrshogun: do ctrl+click [14:31] eephillip has joined the channel [14:31] mrshogun: https://github.com/dannycoates/node-inspector/issues/26 [14:32] mrshogun: check that :) [14:32] strmpnk has joined the channel [14:32] adrianF has joined the channel [14:33] metamind: thanks mrshogun [14:34] paul__ has joined the channel [14:40] TheJH_phone has joined the channel [14:40] kriszyp has joined the channel [14:40] devdazed has joined the channel [14:41] zilch_ has joined the channel [14:42] devdazed has joined the channel [14:42] baudehlo has joined the channel [14:43] mrshogun: welcome metamind [14:43] davidwalsh has joined the channel [14:45] mynyml has joined the channel [14:46] akihito_s has joined the channel [14:46] broofa has joined the channel [14:46] gnuanu has joined the channel [14:47] torsd has joined the channel [14:50] maushu: Could anyone explain database sizes to me? I'm using --quota and the limit should be 50331648 bytes (the fileSize), what is the real size of the database? indexSize + dataSize? [14:51] jstash has joined the channel [14:51] cognominal_ has joined the channel [14:52] akihito_s has joined the channel [14:54] maushu: ... [14:54] maushu: wrong channel again. [14:55] maushu: Freenode is making me really angry. [14:55] scttnlsn has joined the channel [14:56] coderdad has joined the channel [14:59] dubenstein has left the channel [14:59] lazyshot_ has joined the channel [14:59] martin_sunset has joined the channel [15:01] EvRide has joined the channel [15:04] CIA-109: node: 03Scott Anderson 07master * r0d19d82 10/ doc/api/all.markdown : Cluster documentation added. - http://git.io/Sq8pNQ [15:06] ryanfitz has joined the channel [15:07] iaincarsberg has joined the channel [15:07] joshkehn has joined the channel [15:11] lumino has joined the channel [15:11] jerrysv has joined the channel [15:13] joshkehn has left the channel [15:14] Revernd has joined the channel [15:15] cosmincx has joined the channel [15:15] ohtogo has joined the channel [15:15] jtsnow has joined the channel [15:15] OmidRaha has left the channel [15:16] strmpnk has joined the channel [15:16] ivanfi has joined the channel [15:16] k1ttty has joined the channel [15:16] mmalecki has joined the channel [15:16] lazyshot has joined the channel [15:17] c4milo has joined the channel [15:17] iamcorpix has joined the channel [15:18] trose: So I'm having some socket.io troubles. http://paste2.org/p/1766009 The console.log at 78 shows that I have a socket and my client receives the 'update' signal. Earlier however i print sio.sockets at line 28 and I get a null socket... any ideas? My current hypothesis is that I am not fully instantiating my socket correctly for use inside of the server code... [15:20] Venom_X has joined the channel [15:20] plutoniix has joined the channel [15:22] TheJH has joined the channel [15:22] jbrokc has joined the channel [15:22] maushu: trose: AAAAAAAH, CLOSURE HELL! [15:23] b_i_d has joined the channel [15:23] maushu: For the love of all that is holy and unholy! Split that code into multiple functions! [15:24] trose: maushu, yeah i kinda hate it too. lemme clean it up a bit... [15:25] mandric has joined the channel [15:25] eephillip: maushu: lolz [15:27] paul__: trose you might want to check out async or a similar library [15:27] Aikar: lol [15:27] EyePulp has joined the channel [15:28] LifterAH has joined the channel [15:28] cosmincx has joined the channel [15:28] Aikar: trose: https://github.com/Sage/streamlinejs/ [15:28] trose: ACTION peeks out from behind his flame shield [15:28] trose: is it over yet? [15:29] Aikar: though you should also split the code up some too, but that will help you with the indentation hell [15:29] epsas has left the channel [15:29] trose: unfortunately I have to do a lot of checking in my database [15:29] Aikar: all the things we said doesnt affect what your code does [15:29] dget has joined the channel [15:29] Aikar: only improves its readability/manageability [15:30] paul__: Aikar any idea how to get streamlinejs to auto compile like jade/styl files when i use express? [15:30] paul__: or should i write a script? [15:30] Aikar: paul__: http://github.com/aikar/aurora [15:30] qbit_: mygod streamline looks awesome [15:30] Aikar: im not done... and major structural changes coming [15:30] Aikar: but it helps alot [15:31] Aikar: so if you start using aurora, be sure to check MY aurora.json and style to see how its changed :P [15:31] paul__: Aikar do you plan to support this project (aurora) ? [15:31] Aikar: bruno has a great post here http://bjouhier.wordpress.com/2011/01/09/asynchronous-javascript-the-tale-of-harry/ [15:31] schwab has joined the channel [15:32] Aikar: paul__: yes, just Gears of War 3 been eating time lately [15:32] Aikar: paul__: its not "released" yet, but the current state is usable [15:32] Aikar: just.. undocumented :P [15:32] paul__: Aikar: gears of war… always eat time ! [15:32] ceej has joined the channel [15:32] paul__: Aikar: looks like a neat idea [15:32] diogogmt has joined the channel [15:33] Aikar: aurora will be designed to be 'plugin oriented' so multiple preprocessors can be used [15:33] Aikar: ie Run it through Traceur (Harmony/Strawman type stuff) then run through Streamline [15:33] Aikar: ive got ideas for stuff like code reformatters (beautifiers) then auto save, so you could do things like enforce syntax [15:34] Aikar: (if you take the time to write a code reformatter) [15:35] jtr__ has joined the channel [15:35] trose: Aikar, so my socket doesn't seem to have scope inside of complex callback structures. the section of code where it does work is in a global function. I guess I could just make everything inside of a callback part of a function chain in the global scope... [15:35] Aikar: ive personally been using aurora+streamline on a work project... it makes logic sooo much easier to write [15:37] trose: Ugh forget GW3, I'm going to have no free time when skyrim comes out [15:37] Aikar: trose: yeah id love to play it... but its just too indepth. thats time i need lol :( [15:38] Aikar: I have like 10+ games I really wanna play unbeat [15:38] trose: Aikar, lol i know what you mean. luckily I'll be in between semesters so i'll have excessive free time [15:38] Aikar: trose: :( i miss those days [15:38] trose: X( [15:38] Aikar: I did alot of development during school/unemployed days, but then i got a full time job... [15:39] Aikar: after coding 8 hrs a day, your desire to work on personal stuff drops ALOT :P [15:39] mmalecki: can I use uglifyjs to only remove comments? [15:39] socketio\test\57 has joined the channel [15:39] mmalecki: I would like 'foo(); // whatevs' to become 'foo();' [15:39] trose: i KNOW. I'm doing an internship atm and all I want to do when I get home is go outside [15:39] TheJH: mmalecki, yes, if you put your code through jsbeautify after that [15:40] Aikar: heh, i avoid outside, but I like to bake in front of the TV with TV and Movies and Games instead :P [15:40] TheJH: mmalecki, you can use uglifyjs programmatically and not do the name replacement stuff [15:40] TheJH: mmalecki, but it'll always strip comments and reformat the code [15:40] Aikar: though buying a house is going to force me outside some ;( [15:41] Jay_Levitt has joined the channel [15:41] Aikar: just got my lawn done... the concept of watering grass... it is new to me [15:41] mmalecki: TheJH: cool, but I only want comments removed. not other stuff uglifyjs does [15:41] Aikar: mmalecki: for client side code? [15:42] Aikar: mmalecki: for debugging, why even bother stripping comments? [15:42] mmalecki: Aikar: nope. programatic use [15:42] mmalecki: Aikar: it's a bit complicated to explain [15:42] mmalecki: like, I want to insert code into other piece of code [15:42] scottschecter has joined the channel [15:42] mmalecki: withour using eval and stuff [15:43] TheJH: mmalecki, erm, "wrap"? [15:43] TheJH: !npm info burrito [15:43] mmalecki: TheJH: something along this lines [15:43] jhbot: burrito by James Halliday, version 0.2.11: Wrap up expressions with a trace function while walking the AST with rice and beans on the side [15:43] TheJH: mmalecki, ^ [15:44] JakeSays: hmm. tjh isn't around [15:44] mmalecki: TheJH: shit. I knew someone already did that [15:44] mmalecki: thanks man [15:44] TheJH: mmalecki, :D [15:44] Morkel has joined the channel [15:45] mmalecki: but back to my bird now. [15:45] brianc has joined the channel [15:45] Morkel has joined the channel [15:46] TheJH: mmalecki, :) [15:46] TheJH: we'll make it fly :) [15:46] zomgbie has joined the channel [15:46] darinc has joined the channel [15:46] DarkGrey has joined the channel [15:47] Morkel has joined the channel [15:48] Morkel has joined the channel [15:48] Morkel has joined the channel [15:49] socketio\test\22 has joined the channel [15:50] anoop has joined the channel [15:51] termie has joined the channel [15:51] jaequery has joined the channel [15:51] CarterL has joined the channel [15:51] jbrokc_ has joined the channel [15:52] hebz0rl has joined the channel [15:52] socketio\test\12 has joined the channel [15:52] martin_sunset has joined the channel [15:54] ken-ignite has joined the channel [15:55] JuanCri has joined the channel [15:56] Tobias| has joined the channel [15:56] darinc has joined the channel [15:56] socketio\test\36 has joined the channel [15:56] ecin has joined the channel [15:56] shiawuen has joined the channel [15:56] uclinux has joined the channel [15:56] uclinux has left the channel [15:57] seanhess has joined the channel [15:57] schwab has joined the channel [15:58] gnuanu has joined the channel [15:58] uclinux has joined the channel [15:58] aelien27 has joined the channel [15:58] trose: Aikar, so with streamline.js i have to rewrite and then compile to get my final code? [15:59] harthur has joined the channel [16:00] termie has joined the channel [16:00] termie has joined the channel [16:00] ppcano has joined the channel [16:00] TheJH: trose, I think s [16:00] TheJH: *so [16:01] tomgallacher has joined the channel [16:03] themiddleman_itv has joined the channel [16:03] boltR has joined the channel [16:04] garann has joined the channel [16:04] malkomalko has joined the channel [16:05] iFire` has joined the channel [16:06] alvaro_o has joined the channel [16:07] jsurfer has joined the channel [16:09] trose: http://paste2.org/p/1766091 okay so I pulled some of my callbacks out into global functions so maybe you guys won't freak out as much now ;) It looks like when I try to use sio.sockets within file_upload (line 31) that there is no socket and there isn't a handshake. Later in evaluate i can use sio.sockets no problem... maybe there is a race condition or do you think it's a scoping issue? [16:10] trose: or is it that i need my upload page to establish a connection? [16:10] k1ttty has joined the channel [16:11] fatjonny has joined the channel [16:13] strmpnk has joined the channel [16:13] postwait has joined the channel [16:17] strmpnk has joined the channel [16:17] GarfTop has joined the channel [16:17] GarfTop: is there any way to enforce stdin/stdout being unbuffered or line-buffered when using pipes? [16:18] GarfTop: node 0.4.x allowed process.stdout.flush [16:18] Wizek has joined the channel [16:18] GarfTop: There seems to be no way to controll this in node 0.6 [16:18] strmpnk has joined the channel [16:19] TheJH: GarfTop, remember the last result of writing. if your write didn't succeed immediately, listen for the drain event or so [16:19] GarfTop: will listening to the drain actually force the flush? [16:20] TheJH: GarfTop, http://stackoverflow.com/questions/7954394/node-js-stdout-flush/7956360#7956360 [16:20] TheJH: GarfTop, no, it will just wait for the flush to happen [16:20] airhorns has joined the channel [16:20] scottschecter has joined the channel [16:20] GarfTop: right, so how do I force the flush? [16:20] GarfTop: this was possible in 0.4.x [16:21] TheJH: GarfTop, what do you mean, "force" it? It will enebtually flush itself [16:21] TheJH: *eventually [16:21] GarfTop: I want it to flush *now*, not sit around [16:21] BillyBreen has joined the channel [16:21] TheJH: GarfTop, it'll do it as soon as possible [16:21] TheJH: GarfTop, you can't speed it up [16:22] GarfTop: is that last behavior documented/explained anywhere? [16:22] GarfTop: stdout can get flushed as late as program exit if you're not careful [16:22] GarfTop: the documentation says this is enforced for tty and files, but *not* for pipes [16:23] GarfTop: I have pipes, so I'm suddenly SOL? [16:23] smtlaissezfaire has joined the channel [16:24] ecin has joined the channel [16:25] Vennril has joined the channel [16:29] kenperkins has joined the channel [16:30] Cromulent has joined the channel [16:30] maligree has joined the channel [16:30] coreb has left the channel [16:31] ppcano has joined the channel [16:31] hdon- has joined the channel [16:32] jocafa has joined the channel [16:33] fangel has joined the channel [16:35] nils_r has joined the channel [16:36] ppcano has joined the channel [16:36] darinc has joined the channel [16:36] Revernd has joined the channel [16:36] GarfTop has left the channel [16:37] chrislorenz has joined the channel [16:37] ph^ has joined the channel [16:37] nils_r1 has joined the channel [16:39] tilgovi has joined the channel [16:39] tilgovi has joined the channel [16:41] kuebk has left the channel [16:41] Aikar: trose: yeah, its like coffeescript, input files and output files. you only modify the source input files then compile to the actual file. aurora will be a tool to assist in compiling files, managing projects that make use of preprocessors like CS and SL, and also even have a daemon that auto compiles on save [16:41] DPGame has joined the channel [16:41] madhums has joined the channel [16:41] ryanfitz has joined the channel [16:41] DPGame: how can i install a node 0.6 compatible version of socket.io? [16:42] Aikar: trose: the idea is theres quite a few of these nice preprocessors that you can make use of for developing your modules, that your end users have to know nothing about [16:42] isaiah_ has joined the channel [16:42] smathy has joined the channel [16:42] trose: I'm using socket.io as explained here: http://www.danielbaulig.de/socket-ioexpress/ Anyone have an idea why sio.sockets.emit would not work in a global function but works fine inside of some callbacks? [16:43] dshaw_ has joined the channel [16:43] trose: Aikar, yeah it seems really cool. I'm just worried about causing more headaches for myself atm. I want to get my code working and worry about making it pretty later [16:43] willwhite has joined the channel [16:43] Aikar: trose: yeah its def something to get use to. its "magic" you have to learn [16:43] ivanfi has left the channel [16:43] schwab has joined the channel [16:43] Aikar: trose: main benefit of learning early though is it simplifies writing of logic [16:44] trose: Aikar, yeah, jesus i've had some headaches over callback logic [16:44] vipaca has joined the channel [16:44] vipaca has joined the channel [16:44] hipsterslapfight: it's simple, just put callbacks *everywhere* :v [16:44] magnetik_ has joined the channel [16:44] trose: 0.0 [16:44] Aikar: indentation level must hit 15 or you've failed! [16:44] jtsnow has joined the channel [16:45] trose: it's simple, we callback the batman [16:45] trose: he'll never debug that shit [16:45] ohtogo has joined the channel [16:46] scottschecter has joined the channel [16:47] Aikar: I have a system I wrote in node for work that lets me drop "criteria" in a folder and automatically adds them to the app stack, and the app runs everyone in parrallel. One main fear was if the callback to "finish" was ever forgotten on any criteria, the entire logic would be stalled. with streamline, it enforces that the callback will always be called (soon as the function returns), so gives me alot of safety [16:47] trose: http://paste2.org/p/1766143 okay so here the sio.sockets stuff works at line 46-47 [16:47] darinc has joined the channel [16:47] JaKWaC has joined the channel [16:48] trose: but here http://paste2.org/p/1766145 sio.sockets does not work at lines 7 & 15 [16:48] trose: i don't get it, my understanding is that they both should have access to sio since it's a global variable [16:49] fzzzy has joined the channel [16:49] trose: well, let me correct myself. they both have sio but sio doesn't have any sockets in the second case [16:49] simenbrekken has joined the channel [16:50] adrianmg has joined the channel [16:50] trose: Aikar, that's cool, i'll have to convert my code once i get some slow time [16:50] adrianmg has left the channel [16:51] caolanm has joined the channel [16:51] paul__ has joined the channel [16:51] trose: Aikar, do you have any idea about this socket stuff? Is there a better way to have a warning popup for my user? [16:52] darinc has left the channel [16:52] trose: my main problem is that i'm redirecting my user to a page and then i want a live popup if the upload process runs into errors [16:52] trose: so i can't just send it through req.flash [16:52] daglees has joined the channel [16:53] stephank has joined the channel [16:53] trose: or is there a way to have the server refresh the page. ie call render again? [16:53] devongovett has joined the channel [16:55] captain_morgan has joined the channel [16:55] TooTallNate has joined the channel [16:56] tiagobutzke has joined the channel [16:56] paul___ has joined the channel [16:58] winterpk has joined the channel [16:59] avalanche123 has joined the channel [17:00] jj0hns0n has joined the channel [17:00] confoocious has joined the channel [17:00] confoocious has joined the channel [17:00] Aikar: trose: https://gist.github.com/1348370 [17:00] termie has joined the channel [17:00] termie has joined the channel [17:00] Aikar: theres your code converted to Streamline :P [17:01] trose: i suppose i could send the user to a splash page that will say "upload successful" or "error occurred" instead of trying to use sockets [17:01] joshkehn has joined the channel [17:01] Aikar: but im not sure on the logic of what your trying to solve [17:01] joshkehn has left the channel [17:01] paul___: Aikar: can you help me understand the node streamline instructions? [17:01] paul___: You can run the module with node-streamline myModule or require it as require('myModule') from a program that you launch with node-streamline. If you choose this option, you have to create an empty myModule.js [17:02] paul___: i'm not really sure exactly what to do here [17:02] tisba_ has joined the channel [17:02] dgathright has joined the channel [17:02] Aikar: paul___: node-streamline overloads require so require auto compiles each file. aurora does same but in a cleaner way imo. [17:02] devaholic: trose: you could use nodeQuery but its not ready for productio https://github.com/tblobaum/nodeQuery [17:02] aaronj1335_ has joined the channel [17:03] Aikar: paul___: what i do is make my _.js files, then aurora instead of node, and then it compiles any file thats needed to be compiled [17:03] arcanis has joined the channel [17:03] Aikar: or, just type 'aurora' in root of folder, and it compiles every file in project [17:03] paul___: Aikar: my main problem is how i can get it working with nodemon or forever to run streamline again [17:04] Aikar: paul___: main difference is aurora lets you specify what folders have streamlined files, and give diff options [17:04] paul___: ic [17:04] Aikar: paul___: just 'aurora' to compile outside of runtime, then run with nodemon/forever [17:04] Aikar: using those commands should be limited to development only [17:04] trose: devaholic, oh that's rad [17:04] Aikar: deployed code shouldnt need the streamline module at all [17:04] paul___: right [17:04] k1ttty has joined the channel [17:05] eb4890 has joined the channel [17:05] Aikar: (well, in a branch of SL im working on an improved 'runtime' that will be a node_module module, so that will ship as the barebones. removes the code duplication in every files header) [17:05] paul___: so i run nodemon/forever on the js files… and aurora will auto compile when node is restarted by nodemon/forever ? [17:05] Aikar: do you 'develop' with forever/nodemon? [17:05] Aikar: the aurora binary/autocompile is only used when developing [17:05] paul___: yes, i've been using nodemon lately but for dev [17:06] Aikar: well, youll need to not use the auto compile on use feature and simply run aurora before running your app [17:06] devaholic: paull__ did you get setup on 0.6.0? [17:06] Aikar: ie: aurora && nodemon myapp.js [17:07] devaholic: paul__ i didnt reply to that issue but the code works, i mean its just the example code [17:07] Aikar: startup time will be close to the same, just running 'aurora myapp.js' saves you the need to run 2 commands [17:07] paul___: devaholic yep i was able to upgrade to 0.6.0 when you recommended it but couldn't get node query to work [17:07] scottschecter has joined the channel [17:07] Owner has joined the channel [17:07] Owner: hello [17:08] Jay_Levitt has left the channel [17:08] Owner: anyone using node.js in production [17:08] CoverSlide has joined the channel [17:08] pizthewiz has joined the channel [17:09] Aikar: Owner: yahoo i think :P [17:09] vguerra has left the channel [17:09] Owner: Aikar: hehh [17:09] Aikar: well will at least be in 2012 [17:09] Owner: Aikar: what have you made with it? [17:09] Aikar: Owner: http://github.com/aikar [17:10] devaholic: paul__ what browser are you using? [17:10] jbergstroem has joined the channel [17:10] kevwil has joined the channel [17:11] jbergstroem: looks like the buildbot master page is down (buildbot.nodejs.org:8010/) [17:12] Isaiah has joined the channel [17:12] Owner: Aikar: interesting [17:13] termie has joined the channel [17:13] tisba has joined the channel [17:14] Begun has joined the channel [17:15] strmpnk_ has joined the channel [17:15] Carter has joined the channel [17:15] strmpnk has joined the channel [17:16] eignerchris has joined the channel [17:16] gregmoreno has joined the channel [17:17] devongovett has joined the channel [17:17] mike5w3c_ has joined the channel [17:21] stalled has joined the channel [17:23] devaholic: paul__ ping [17:23] devaholic: paul___ [17:23] dilvie has joined the channel [17:24] maletor has joined the channel [17:25] paul___: pm'ed ya [17:27] gr-eg has joined the channel [17:27] jbergstroem has left the channel [17:28] kitt has joined the channel [17:28] SargoDarya has left the channel [17:29] _dc has joined the channel [17:30] Manu has joined the channel [17:31] Marko___ has joined the channel [17:31] strmpnk_ has joined the channel [17:33] broofa has joined the channel [17:33] fson has joined the channel [17:34] te-brian has joined the channel [17:34] jbrokc has joined the channel [17:34] lz has joined the channel [17:35] ph^_ has joined the channel [17:36] jbrokc__ has joined the channel [17:36] jslatts has joined the channel [17:37] boltR has joined the channel [17:38] jwingy has joined the channel [17:42] jtrudeau has joined the channel [17:42] schwab has joined the channel [17:42] jetienne has joined the channel [17:42] markdaws has joined the channel [17:44] jbrokc_ has joined the channel [17:44] cgfuh has joined the channel [17:44] eldios has joined the channel [17:44] jbrokc___ has joined the channel [17:44] eldios has joined the channel [17:44] confoocious has joined the channel [17:44] confoocious has joined the channel [17:46] cyborg has joined the channel [17:50] kimico has joined the channel [17:50] dreamdust has joined the channel [17:51] nubi has joined the channel [17:51] cyborg has left the channel [17:54] fzzzy has joined the channel [17:54] jbrokc has joined the channel [17:54] jbrokc__ has joined the channel [17:54] telemachus has joined the channel [17:55] joqueonr has joined the channel [17:55] isaacs has joined the channel [17:56] chrixian has joined the channel [17:57] jeromegn has joined the channel [17:57] guillermo has joined the channel [17:58] k1ttty has joined the channel [18:00] bemson has joined the channel [18:00] CIA-109: node: 03Ryan Dahl 07master * r0ba8f05 10/ (4 files in 2 dirs): Upgrade V8 to 3.6.6.7 - http://git.io/O85doA [18:00] captain_morgan has joined the channel [18:01] bemson: noob here: how do i install node modules in the same place? [18:01] bemson: rather, where *should* I install them? [18:02] paul___: if you "npm install -g [modules]" they'll be installed globally, instead of in the directory from which you execute npm [18:02] paul___: that dir for me is in my $NODE_PATH [18:02] paul___: $ echo $NODE_PATH [18:02] bemson: paul___: awesome! the "g" flag, eh? [18:02] devdazed: bemson: usually the projects root directory [18:02] trotter has joined the channel [18:02] paul___: /usr/local/lib/node_modules [18:03] bemson: devdazed: so I should npm per site I'm developing? [18:03] briancra_ has joined the channel [18:03] towski has joined the channel [18:03] devdazed: bemson: i would. this way you don't have confilcts [18:03] reid has joined the channel [18:03] bemson: devdazed: k, thx - not familiar with node.js and npm, but I'm learning [18:03] devdazed: bemson: the only module i install globally are things with executables like node unit etc [18:03] bemson: devdazed: these would be shared by any node runtime, ya? [18:04] devdazed: bemson: no, they are simply global to the node version you are running [18:04] devdazed: bemson: assuming you are running nvm or something of that nature [18:04] zmbmartin: is 0.6.0 released and latest stable? [18:05] StanlySoManly has joined the channel [18:05] devdazed: if you have only one installation of node then they are global] [18:05] gsmcwhirter has joined the channel [18:05] devdazed: zmbmartin: yes [18:05] zmbmartin: I must have missed the news [18:05] davidwalsh has joined the channel [18:05] zmbmartin: devdazed: thanks [18:05] shiawuen has joined the channel [18:05] jtr__ has joined the channel [18:05] devdazed: zmbmartin: np! [18:05] bemson: devdazed: thx again - I'm out! :-) [18:05] devdazed: bemson: np! [18:05] bemson has left the channel [18:06] gsmcwhirter: does anyone have a suggestion for something to replace nginx for handling static files and proxying? I would like to try working with websockets etc. that nginx can't handle [18:06] gregpascale has joined the channel [18:06] konobi: gsmcwhirter: it can now [18:07] gsmcwhirter: konobi: oh? I must be running an old version then [18:07] konobi: http://www.letseehere.com/reverse-proxy-web-sockets [18:07] zmbmartin: is it possible to run multiple versions of node on the same server at the same time? [18:08] konobi: gsmcwhirter: atop that, a newer version supports http 1.1 to backend http proxies [18:09] gsmcwhirter: konobi: do you know what version that is off hand? (if not, I can certainly google for it) [18:09] konobi: not off hand [18:10] hwinkel has joined the channel [18:11] mikl has joined the channel [18:11] Morkel has joined the channel [18:12] jxson has joined the channel [18:12] jbrokc___ has joined the channel [18:12] jbrokc_ has joined the channel [18:13] `3rdEden has joined the channel [18:13] chakri has joined the channel [18:13] githogori has joined the channel [18:13] jetienne has joined the channel [18:14] chakri: how do we uninstall node which was installed using node package for mac [18:14] chakri: i need to uprade my node to 0.6.0 [18:14] chakri: ? [18:15] dambalah has joined the channel [18:15] fbartho has joined the channel [18:16] context: o install 0.6.0 ?? [18:18] winterpk: Does anyone know what the fs.close() function does exactly? The api reference isn't very comprehensive. [18:18] rendar has joined the channel [18:19] confoocious has joined the channel [18:20] coderdad has joined the channel [18:21] strmpnk has joined the channel [18:21] Aikar: winterpk: it closes a file handle... just as it does on every lang/OS :P [18:22] Aikar: winterpk: if you dont close your file handles, they consume memory and the OS thinks the file is in use (you know those file locked type errors on windows?) [18:23] winterpk: Aikar: yeah [18:23] winterpk: Aikar: so when exactly do I use it? At the end of the fs.readFile callback? [18:24] winterpk: Aikar: SOrry if it seems like an obvious question. I'm still kinda new at node, and have some trouble with control flow. [18:24] whitman has joined the channel [18:25] martin_sunset has joined the channel [18:25] coreb has joined the channel [18:26] winterpk: Aikar: also what is the difference between fs.close and fs.closeSync? [18:26] dannyamey has joined the channel [18:27] coreb: sync blocks [18:27] eddyb: winterpk: first is async, second is sync [18:27] eddyb: I hope you know what async and sync are :) [18:27] Glenjamin_: one returns a value on completion, the other calls the supplied callback on completion [18:27] eddyb: async calls the given callback when it finished, the sync returns when it finishes [18:27] eddyb: *finishes [18:27] eddyb: Glenjamin_: meh, you beat me to it [18:28] winterpk: ok gotcha [18:28] mehlah has joined the channel [18:28] confoocious has joined the channel [18:28] confoocious has joined the channel [18:28] lazyshot has joined the channel [18:29] mikeal has joined the channel [18:30] grampajoe has joined the channel [18:30] CoverSlide: sync is what i puked in last night [18:30] winterpk: ok so my scenario is I'm reading a directory then looping x number of times where x is the files.length. Each loop I use fs.readFile() and process the contents in the callback. Would it be best for me to run fs.closeSync() directly at the end of the fs.readFile callback? [18:31] TheJH: winterpk, no [18:31] TheJH: winterpk, readFile handles closing the file for you [18:32] winterpk: TheJH: ahh ok, that makes sense now. [18:32] CoverSlide: you only need if you're using fd's like with fs.open [18:32] enmand has joined the channel [18:33] CoverSlide: if you don't have an fd, you don't need to close it [18:33] Renegade001 has joined the channel [18:33] winterpk: Thanks for the help guys. I can't wait until the documentation is up to par. [18:33] brion has joined the channel [18:33] brion has joined the channel [18:34] Renegade001_ has joined the channel [18:34] base698 has joined the channel [18:35] patcito has joined the channel [18:36] tomgallacher has joined the channel [18:36] jbrokc has joined the channel [18:38] sdudenhofer has joined the channel [18:38] uclinux_ has joined the channel [18:38] uclinux_ has left the channel [18:39] winterpk: I'm getting an error because I have too many open files (Error: EMFILE, Too many open files) when using fs.readFile() in that loop. It seems like the file is not closing out properly. Are you guys sure fs.readFile() automatically closes the handle? [18:41] eddyb: winterpk: you're using a loop? [18:41] Glenjamin_: i suspect the control flow isn't doing what you think it is [18:41] eddyb: fs.readFile doesn't block [18:41] eddyb: so all the calls are instantly made [18:41] Glenjamin_: if you call readFile loads of times a loop, it'll open them all at once [18:41] eddyb: yepp [18:41] arcanis has joined the channel [18:41] winterpk: yeah I know that [18:42] winterpk: I'm only calling it 1 time in a loop [18:42] eddyb: dude [18:42] Glenjamin_: how many iterations of the loop?