[00:00] MrNko has joined the channel [00:00] sneakyness has joined the channel [00:02] jacobolus has joined the channel [00:03] nimstr has joined the channel [00:04] trotter has joined the channel [00:05] pig has joined the channel [00:08] tdegrunt has joined the channel [00:08] smtlaissezfaire_ has joined the channel [00:08] tbranyen: inimino: shit [00:11] jakehow_ has joined the channel [00:11] jakehow has joined the channel [00:11] jakehow__ has joined the channel [00:12] dylang has joined the channel [00:13] kiffness has joined the channel [00:15] CIA-30: node: 03Ben Noordhuis 07master * r554dc63 10/ (12 files in 6 dirs): uv: upgrade to 58ef43e - http://git.io/0SqIlQ [00:15] CIA-30: node: 03Ben Noordhuis 07master * r2d9ab49 10/ (3 files in 2 dirs): [00:15] CIA-30: node: file: fix errno propagation in sync fs calls [00:15] CIA-30: node: Include libuv fs error code in the JS exception. [00:15] CIA-30: node: Fixes #1657. - http://git.io/z-tqMw [00:17] replore has joined the channel [00:17] replore_ has joined the channel [00:17] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [00:22] andrewfff has joined the channel [00:22] agnat has joined the channel [00:23] abiii has joined the channel [00:24] chjj has joined the channel [00:24] ryanfitz has joined the channel [00:24] alexh has joined the channel [00:24] steffan_ has joined the channel [00:29] losing has joined the channel [00:32] Me1000 has joined the channel [00:34] losing has joined the channel [00:37] enmand has joined the channel [00:42] neoesque has joined the channel [00:43] z6Dabrata has joined the channel [00:46] ditesh|cassini has joined the channel [00:48] NegativeK has joined the channel [00:49] temp02 has joined the channel [00:51] davidbanham has joined the channel [00:51] Sorella_ has joined the channel [00:52] CIA-30: libuv: 03Bert Belder 07childstdio * r3edb89a 10/ (include/uv-private/uv-win.h src/win/process.c): win: correctly manage child process stdio - http://git.io/Z49ufg [00:53] mike5w3c_ has joined the channel [00:54] k1ttty has joined the channel [00:54] mynyml has joined the channel [00:54] mykul|Home has joined the channel [00:55] elijah has joined the channel [00:56] Me1000 has joined the channel [00:57] CIA-30: libuv: 03Bert Belder 07childstdio * r2de1ac1 10/ (include/uv-private/uv-win.h src/win/process.c): win: correctly manage child process stdio handles - http://git.io/u-fZYw [00:59] jacobolus has joined the channel [00:59] d0k has joined the channel [01:01] TechCel has joined the channel [01:05] jbschw has joined the channel [01:07] CIA-30: libuv: 03Ben Noordhuis 07master * r79d9f81 10/ (src/unix/fs.c test/test-fs.c test/test-list.h): unix: implement uv_fs_futime, add tests for uv_fs_utime and uv_fs_futime - http://git.io/chyQGg [01:08] isufy has joined the channel [01:08] jacobolus has joined the channel [01:09] micmcg has joined the channel [01:09] micmcg has left the channel [01:11] mykul_ has joined the channel [01:12] d0k has joined the channel [01:12] enhydra has joined the channel [01:13] JaKWaC has joined the channel [01:14] jacobolu_ has joined the channel [01:14] tylerstalder has joined the channel [01:15] CIA-30: libuv: 03Bert Belder 07childstdio * r83311f9 10/ (include/uv-private/uv-win.h src/win/process.c): win: correctly manage child process stdio handles - http://git.io/VbuVxg [01:15] guybrush: odd... anyone can find redis with http://search.npmjs.org/ ? [01:15] Rshelley has joined the channel [01:16] micmcg has joined the channel [01:16] Rshelley: hey folks, I'm trying to setup remote debugging via eclipse and I've got node saying "debugger listening on port 9222" but the port 9222 isn't actually open (checked through netstat -a)... any thoughts? [01:16] micmcg has left the channel [01:17] davidban_ has joined the channel [01:17] devongovett has joined the channel [01:18] CIA-30: libuv: 03Bert Belder 07master * rde8ae8d 10/ (include/uv-private/uv-win.h src/win/process.c): win: correctly manage child process stdio handles - http://git.io/5QA1lQ [01:20] uchuff has joined the channel [01:20] sqpat has joined the channel [01:20] CIA-30: libuv: 03Bert Belder 07master * r3d538af 10/ (include/uv-private/uv-win.h src/win/process.c): win: correctly manage child process stdio handles - http://git.io/1d0AQQ [01:20] halcyon918: just in case not being identified by IRC prevented me from getting Voice, I'll try that question again... [01:20] halcyon918: I'm trying to setup remote debugging via eclipse and I've got node saying "debugger listening on port 9222" but the port 9222 isn't actually open (checked through netstat -a)... any thoughts? [01:21] sqpat: has anyone here used any of the nodejs membase plugins? I'm wondering how stable they are [01:21] pen_ has joined the channel [01:26] ditesh|cassini has joined the channel [01:27] dmkbot: joyent/node: geki007: windows: spawn process: close order shouldn't important - https://github.com/joyent/node/issues/1438 [01:27] dmkbot: joyent/node: Bonuspunkt: cant enter @{[]}~ at REPL on windows - https://github.com/joyent/node/issues/1359 [01:29] abraxas has joined the channel [01:30] kmiyashiro has joined the channel [01:31] ryanfitz has joined the channel [01:32] kmiyashiro has joined the channel [01:34] a_suenami has joined the channel [01:35] Me1000 has joined the channel [01:35] H4ns` has joined the channel [01:42] mfncooper has joined the channel [01:42] yuwang has joined the channel [01:45] euforic has joined the channel [01:47] skunkape: does anybody here user extjs in their UI? [01:48] jacobolus has joined the channel [01:49] gxdssoft has joined the channel [01:49] febits has joined the channel [01:49] toki_kanno_ has joined the channel [01:50] edude03 has joined the channel [01:51] ronnieboy has joined the channel [01:52] Me1000 has joined the channel [01:54] steffan_ has joined the channel [01:56] marksoper has joined the channel [01:58] kriszyp has joined the channel [01:59] boaz has joined the channel [01:59] isaiah_ has joined the channel [02:01] euforic: what is the best way to post data to a complex url string ex) https://online.americanexpress.com/myca/ofxdl/desktop/desktopDownload.do?request_type=nl_ofxdownload' that is the request url then i want to post data to that [02:02] euforic: this is what i have so far but its not working keep getting bad url http://pastie.org/2488970 [02:02] CIA-30: libuv: 03Ben Noordhuis 07master * re8ab5cb 10/ test/test-fs.c : test: fix utime and futime tests on windows - http://git.io/ATms-g [02:02] andrewfff has joined the channel [02:03] TokyoDan1 has joined the channel [02:06] TokyoDan1 has joined the channel [02:06] rbuck has joined the channel [02:09] Emmanuel has joined the channel [02:09] JaKWaC has joined the channel [02:10] Nuck: Implementing an oAuth2 server on Node + Express right now [02:10] Nuck: I'm referencing the Facebook and Google docs for their oAuth 2 flows to build it :P [02:11] Nuck: CBA to read the whole spec, it's so much bloat it's not even funny [02:11] dexter_e has joined the channel [02:11] dexter_e_ has joined the channel [02:12] jamescarr has joined the channel [02:12] jamescarr: anyone know if partials changed recently in jade? [02:13] idleman has joined the channel [02:16] Nuck: Gonna build this thing like connect-sessions [02:17] steffan__ has joined the channel [02:19] elijah has joined the channel [02:19] techplexengineer has joined the channel [02:19] techplexengineer: Hello? [02:20] euforic: what is the best way to post data to a complex url string ex) https://online.americanexpress.com/myca/ofxdl/desktop/desktopDownload.do?request_type=nl_ofxdownload' that is the request url then i want to post data to that [02:20] euforic: this is what i have so far but its not working keep getting bad url http://pastie.org/2488970 [02:21] techplexengineer: I think I screwed up my PATH variable on my new ubuntu test machine. Can someone help me fix it? [02:24] steffan__ has joined the channel [02:24] Daegalus: techplexengineer: did you mess it up in your ~/.bashrc & or ~/.profile, or mess it up doing export PATH = BLAH [02:24] techplexengineer: Daegalus I think in the ~/.profile i was doing export blah... as it says in the build instructions [02:25] gxdssoft has joined the channel [02:25] Daegalus: have you tried deleting it from your .profile? [02:25] ditesh|cassini has joined the channel [02:25] Nuck: heh, fuckit, I'm just building this on mongo, I'll separate it once I do that [02:26] techplexengineer: I removed the export lines using VI but i am still getting the message [02:26] techplexengineer: command 'ls' is available in '/bin/ls' [02:27] Daegalus: after removing, have you tried relogging? [02:27] Daegalus: to refresh the path? [02:27] techplexengineer: nope [02:27] Daegalus: relog [02:27] techplexengineer: on [02:27] techplexengineer: ok brb [02:30] zeade has joined the channel [02:31] human has joined the channel [02:32] zeade has joined the channel [02:32] algorithm_monkey has joined the channel [02:35] pen_ has joined the channel [02:36] steffan__ has joined the channel [02:36] TokyoDan1 has joined the channel [02:37] algorithm_monkey has joined the channel [02:38] caffine has joined the channel [02:38] elijah|home has joined the channel [02:39] techplexengineer has joined the channel [02:39] techplexengineer: daegalus now it won't even let me log in ahhhhhhhhhhhhh [02:40] Daegalus: techplexengineer: then you did something more than inject into ./profile [02:40] Daegalus: because .bashrc has PATH in it [02:41] tylerstalder has joined the channel [02:42] techplexengineer: luckily its just a virtual machine. sucks to have to wait for a reinstall.... [02:42] ryanfitz has joined the channel [02:42] skunkape: Nuck, have you seen mongoose-auth? [02:42] CIA-30: node: 03Bert Belder 07pathfix * r372c208 10/ (lib/path.js test/simple/test-path.js): pathfix - http://git.io/U7tIYA [02:46] Daegalus: Nuck: so far progress on my forum: it can communicate with mongo, and display Jade templated pages. I have routing for most things setup, just need to actually code funcitonality now and populate the db. [02:47] trave has joined the channel [02:47] CIA-30: node: 03Bert Belder 07master * r8153a21 10/ (lib/path.js test/simple/test-path.js): [02:47] CIA-30: node: Improve path parsing on windows [02:47] CIA-30: node: Closes #650 - http://git.io/lrR9-A [02:48] Daegalus: Im just wondering what would be a better way to store the threads/posts. As sub-objects of Forum. so there is only a "forums" and "users" collections, and then threads are a sublist of the forum, and each thread stores posts. ot have threads and posts in their own collections [02:49] TokyoDan_ has joined the channel [02:50] pen has joined the channel [02:50] rurufufuss has joined the channel [02:50] algorithm_monkey has joined the channel [02:57] dmkbot: joyent/node: ry: DNS stuff needs _WIN32_WINNT to be 0x0501 but libeio\xthread.h defines it to be 0x0400. - https://github.com/joyent/node/issues/1236 [03:02] Cromulent has joined the channel [03:03] gazumps has joined the channel [03:05] jamescarr: anyone ever have - messages() in express print nothing?? [03:05] Guest5980 has joined the channel [03:05] kiffness has joined the channel [03:11] febits has joined the channel [03:11] jamescarr: yeah [03:11] jamescarr: express' flash is broken on my damn site [03:11] kiffness has joined the channel [03:12] jamescarr: thats going to cost me a lot of pain [03:12] dmkbot: joyent/node: ry: DNS stuff needs _WIN32_WINNT to be 0x0501 but libeio\xthread.h defines it to be 0x0400. - https://github.com/joyent/node/issues/1236 [03:15] speaker123 has joined the channel [03:16] speaker123: hi, trying to compile from source...ran into a simple issue, but i don't know where to fix it [03:16] speaker123: /usr/bin/ld: cannot find -l-L/home/tjones/usr/lib [03:16] speaker123: (this occurred during 'make'...running node-v0.5.5) [03:17] steffan__ has joined the channel [03:17] Draggor: I'm trying to build node, but it's saying " except Exception, e: " is invalid syntax. [03:18] speaker123: Draggor, probably wrong version of python [03:19] Draggor: 3.2.2? [03:19] jj0hns0n_ has joined the channel [03:19] Draggor: speaker123: ^ [03:19] speaker123: yeah my guess is that it request < 3 [03:19] crescendo|laptop has joined the channel [03:19] tk has joined the channel [03:19] crescendo|laptop has joined the channel [03:21] Draggor: speaker123: is there a way to pass a flag to make it behave right? [03:21] zpoley has joined the channel [03:22] speaker123: no, there are backwards incompatible changes from Python 2.x to 3.x [03:22] Ratty_: speaker123: you're Tom Jones? [03:23] speaker123: Ratty_, if Tom Jones is a special person in this channel, then no. [03:23] Ratty_: He's a special person in all channels [03:23] chilts: I wonder if the real Tom Jones likes NodeJS [03:24] speaker123: Draggor, I'm not sure how big of a dependency Python is for node.js...there is a 2to3 script, but if there are other Python libraries included in node.js...I'd file a "feature request" [03:24] speaker123: ...anyone have ideas on my -l-L issue? seems like a bug with the scons that was included in 0.5.5 [03:26] jakehow has joined the channel [03:26] jakehow__ has joined the channel [03:26] jakehow_ has joined the channel [03:26] crescendo|laptop: If I create a variable serverside, does it persist across client connections? e.g., is it an in-memory store? [03:27] chilts: depends where you declare it [03:28] Draggor: speaker123: It's a dependency, their c++ plugin system relies on it. [03:28] djbell has joined the channel [03:28] crescendo|laptop: chilts, what are the delineations? [03:29] chilts: generally, if it's outside a function, it'll persist, if it's inside it won't - but this is a simple view, you should learn about variable scoping in JavaScript [03:30] chilts: it'll depend on what you want to do and also why you want to do it, will presumably then make you figure out how to do it :) [03:32] dmkbot: joyent/node: aseemk: path.split() needed, as counterpart to path.join() - https://github.com/joyent/node/issues/1224 [03:34] raidfive has joined the channel [03:37] Spion_ has joined the channel [03:37] edude03 has joined the channel [03:37] bicranial has joined the channel [03:38] kenperkins has joined the channel [03:38] dominictarr has joined the channel [03:42] dmkbot: joyent/node: Skomski: Added new win32 platform function: getNetworkInterfaces() - https://github.com/joyent/node/issues/1652 [03:44] andrewff1 has joined the channel [03:46] edude03 has joined the channel [03:47] cjm has joined the channel [03:49] tbranyen: chrisdickinson: urgh i'm going back to nodegit i think [03:49] tbranyen: chrisdickinson: all the pure git js implementations are far too slow for my needs [03:49] tbranyen: so pissed about that [03:52] guillermo has joined the channel [03:54] Peniar has joined the channel [03:57] cjm has joined the channel [03:59] idefine has joined the channel [04:00] thepatr1ck has joined the channel [04:03] sabrexx has joined the channel [04:03] losing has joined the channel [04:04] torsd has joined the channel [04:08] qwebirc3486 has joined the channel [04:08] colinta has joined the channel [04:11] luke` has joined the channel [04:13] speaker123 has left the channel [04:13] colinta: i bet no one knows the answer to this: is there a count of pending callbacks anywhere? e.g. I call setTimeout 3 times, I get the number 3 returned. [04:13] piscisaureus: colinta: not at the moment [04:13] piscisaureus: there will be in the future [04:13] piscisaureus: but don't hold your breath [04:14] colinta: hm, well good gnus and bad gnus. [04:14] piscisaureus: eh? [04:15] colinta: http://www.iaaf.uwa.edu.au/smbunt/309/gnus.gif [04:16] Emmanuel: colinta: do you have it in shittier quality ? :) [04:17] Prometheus has joined the channel [04:17] colinta: HA! Grabbed the first one that looked right... sorry, it doesn't do the original justice [04:17] paulwe has joined the channel [04:17] fangel has joined the channel [04:21] boehm has joined the channel [04:23] HubertChang has joined the channel [04:24] Ratty_: colinta: You could repalce setTimeout with your own method that keeps a counter [04:25] stonecobra: has someone written a plugin to get a MAC address? [04:26] kiffness_ has joined the channel [04:27] versicolor_ has joined the channel [04:28] efularm has joined the channel [04:29] chrisdickinson: tbranyen: sorry about that. do you know what specific part is being too pokey? [04:32] balaa has joined the channel [04:34] losing has joined the channel [04:40] tbranyen: chrisdickinson: well i mean, i was comparing just reading commits between libgit2 and git.js [04:40] tbranyen: and they aren't really comparable [04:40] tbranyen: is there the potential for a git implementation in pure js to ever be considered usable for more than just proof of concept [04:40] tbranyen: i think is the question [04:43] chrisdickinson: tbranyen: i think a pure-js git has a lot of potential [04:44] edude03 has joined the channel [04:44] tbranyen: urgh so conflicted [04:44] tbranyen: libgit2 can be built with thread safety now which eliminates a lot of issues i've had [04:44] tbranyen: i dunno [04:44] chrisdickinson: i mean, if you need the speed, yeah, i'd go with libgit2 [04:45] tbranyen: its one of those things thats like, sure its cool to read live from a repo everytime someone hits your site, but its so wasteful, i need to def build a cache tier [04:45] tbranyen: in which case [04:45] tbranyen: speed starts to matter less [04:45] Hodgestar has left the channel [04:46] chrisdickinson: well, one cool thing to do would be to use localstorage as a git repository and have it set up so that a website only needs to send down the latest commit hash [04:46] DennisRasmussen has joined the channel [04:47] chrisdickinson: if the repo exists and the hash exists in the repo, then no further requests have to happen. [04:47] tbranyen: yeah, i'm so into that [04:48] chrisdickinson: which would be especially useful for the newer html5 games coming out, if a workaround for the 8mb localstorage limit can be found. [04:51] Emmanuel has joined the channel [04:52] random123 has joined the channel [04:53] kiffness has joined the channel [04:53] boltR has joined the channel [04:55] tylerstalder has joined the channel [05:00] kiffness_ has joined the channel [05:00] thalll has joined the channel [05:01] meso has joined the channel [05:02] v3ctR has joined the channel [05:06] jacobolus has joined the channel [05:07] kiffness_ has joined the channel [05:09] nevir has joined the channel [05:09] stonecobra_ has joined the channel [05:09] Drakonite2 has joined the channel [05:09] shanebo: hey guys, I have two localhost sites running on different ports… any idea why connect session data gets killed on one when I refresh on the other one? [05:10] efularm has left the channel [05:10] Fuu has joined the channel [05:10] mendel__ has joined the channel [05:10] Promethe1s has joined the channel [05:11] aguynamedben_ has joined the channel [05:11] devongovett has joined the channel [05:12] stonebranch has joined the channel [05:12] sneakyne_ has joined the channel [05:12] tmzt has joined the channel [05:12] amtal has joined the channel [05:12] caffine has joined the channel [05:13] [tm] has joined the channel [05:13] enhydra has joined the channel [05:13] geoffeg has joined the channel [05:13] kiffness has joined the channel [05:13] silky has joined the channel [05:13] mikl has joined the channel [05:13] torsd has joined the channel [05:13] Peniar has joined the channel [05:13] chjj has joined the channel [05:13] criswell has joined the channel [05:13] qbit_ has joined the channel [05:13] leonh has joined the channel [05:13] robinduckett has joined the channel [05:13] cconstantine has joined the channel [05:13] teadict has joined the channel [05:13] adnam has joined the channel [05:13] a11235 has joined the channel [05:13] ashb has joined the channel [05:13] neme has joined the channel [05:13] criswell has joined the channel [05:13] madari has joined the channel [05:13] teadict has joined the channel [05:14] chrisbuchholz has joined the channel [05:14] DJBouche has joined the channel [05:14] andrewfff has joined the channel [05:14] pandark_ has joined the channel [05:14] MooGoo has joined the channel [05:14] qbit_ has joined the channel [05:14] chovy has joined the channel [05:14] adnam has joined the channel [05:15] oliland has joined the channel [05:15] sivy has joined the channel [05:16] den512 has joined the channel [05:18] CarterL has joined the channel [05:18] Prometheus has joined the channel [05:18] MrNibbles has joined the channel [05:18] nforgerit has joined the channel [05:19] bartt has joined the channel [05:20] bicranial has joined the channel [05:27] mquin has joined the channel [05:27] hekkwan has joined the channel [05:28] kiffness has joined the channel [05:28] liar has joined the channel [05:32] amit_usual has joined the channel [05:34] descipher_ has joined the channel [05:39] cachemoney has joined the channel [05:41] cachemoney has joined the channel [05:43] ptlo has joined the channel [05:43] dominictarr has joined the channel [05:46] jamescarr: as a rule of thumb, how many setIntervals are too many? :) [05:47] tbranyen: 1 [05:47] jiggliemon has joined the channel [05:47] tbranyen: setTimeout 4 lyfe [05:47] jiggliemon: Got's me a File-system question.... [05:47] jiggliemon: http://pastebin.com/bgsQDZHH [05:47] jiggliemon: Does it make sense to do this? [05:48] jiggliemon: I mean, If I want the files to be available to use after they're all parsed... [05:48] jiggliemon: via some callback. [05:48] jiggliemon: I was thinking it makes more sense to read the files recursively. [05:50] boaz has joined the channel [05:50] tmzt: what's the problem? [05:52] jiggliemon: Since it's asynchronous, there's no telling when all the files are read. [05:52] jiggliemon: So it would make more sense to chain the file reading with some sort of recursive function. [05:54] noodlehaus has joined the channel [05:55] jamescarr: jiggliemon, heh.. I've hit this problem several times actually [05:55] jamescarr: jiggliemon, each time I always copped out [05:55] jiggliemon: went sync? [05:56] jamescarr: nah... other ways of doing it that fit each individual situation [05:56] jamescarr: versus coming up with a good generic solution [05:56] jiggliemon: I don't really want to do a chain of loaded files (although that might save me some IO). Cause it would be faster to load them all at the same time. [05:57] jiggliemon: So I was thinking about setting a switch, and firing an event when they were all loaded. [05:57] jamescarr: jiggliemon, one second, one of my solutions might've helped you [05:57] jiggliemon: if(files.length == files.loaded)... [05:58] jamescarr: yeah, track the lengths, [05:58] jamescarr: and count away [05:58] shanebo: jiggliemon, what are you trying to do? [05:58] jamescarr: jiggliemon, sorry, my situation was an async operation that, well, needed to happen synchronously ;) [05:58] noodlehaus: you can try using one of the sync modules out there [05:59] jamescarr: I was operation on a collection of 90,000 records and each save operation was making a new http request [05:59] jiggliemon: shanebo: re-writing the packager-node project to remove this "step" [05:59] noodlehaus: then chain the operations [05:59] shanebo: jamescarr, you ever run into a situation where two node projects on localhost kill each other's sessions? [05:59] jamescarr: shanebo, no. You using redisStore? [05:59] shanebo: I'm using connect [05:59] shanebo: http://senchalabs.github.com/connect/middleware-session.html [05:59] jamescarr: are you using redis store with connect? [06:00] mraleph has joined the channel [06:00] shanebo: nope [06:00] jamescarr: you should [06:00] jamescarr: :-P [06:00] jamescarr: otherwise you will lose sessions on each restart [06:01] jamescarr: if you're using nodemon this means you will always lose em [06:01] shanebo: I already came up with a hack for that in dev [06:01] mykul|Home has joined the channel [06:01] shanebo: btw, I'm not talking about restarts, I just mean simple page refreshes [06:01] noodlehaus: guys, i've a question that's not necessarily node related [06:02] noodlehaus: but on my node project, i'm using mongodb [06:02] sivy has joined the channel [06:02] shanebo: for example if app A has a sessions with data and I go refresh app B, app A's session gets killed [06:02] noodlehaus: is it ok that on my URLs, is it ok that my document ids can be seen in the links? [06:02] jetienne_ has joined the channel [06:02] noodlehaus: something like /item/ [06:02] jetienne_: hi [06:03] shanebo: noodlehaus, yes as long you catch people hitting those urls without permission to destroy, update, etc. [06:04] jamescarr: SpringJS [06:04] noodlehaus: ok, thanks shane [06:04] shanebo: yw [06:04] shanebo: jamescarr, do you think my sessions getting killed is due to both apps being on localhost? [06:05] fangel has joined the channel [06:05] SamuraiJack has joined the channel [06:06] jamescarr: shanebo, it doesn't make sense if you are using memory store [06:06] jamescarr: are you using MongoSessionStore? [06:07] depy has joined the channel [06:07] Nuck: >:C [06:07] Nuck: Canvas refuses to install [06:07] Nuck: Bitch [06:07] simenbrekken has joined the channel [06:07] Nuck: Can't find cairo [06:08] jamescarr: OS X? [06:08] Nuck: Ubuntu [06:08] jamescarr: hmmmm [06:08] Nuck: I have libcairo2, I checked [06:10] amerine has joined the channel [06:11] dmkbot has joined the channel [06:13] shanebo: jamescarr, I'm using connect session straight up: http://senchalabs.github.com/connect/middleware-session.html [06:14] jamescarr: hmmm no idea then [06:14] jamescarr: the default is in memory [06:14] jamescarr: so there's no reason for them to intefere [06:16] shanebo: jamescarr, are sessions between computers handled dynamically or do you handle that? [06:16] tmzt: are you just running on two different ports? [06:16] shanebo: tmzt, yes [06:17] tmzt: I think cookies leak between ports, you might want to use vhosts or sometihng [06:17] tmzt: I could be wrong though [06:19] shanebo: tmzt, I think you're right because I just fired it up via vhosts and the sessions stay intact [06:19] shanebo: thanks for the tip, I was getting worried [06:20] sivy has joined the channel [06:20] akujin has joined the channel [06:23] steffkes has joined the channel [06:23] Nuck: Ah, got my issue figured out [06:23] Nuck: I had to sudo apt-get install libcairo2-dev [06:24] thepatr1ck has joined the channel [06:26] ericnakagawa has joined the channel [06:35] idefine has left the channel [06:39] futur has joined the channel [06:39] futur: hi all.. [06:40] futur: can you plz explin how does a http client work in node? [06:40] futur: plz? [06:40] amigojapan has joined the channel [06:41] emattias has joined the channel [06:44] tiagobutzke_ has joined the channel [06:45] simenbrekken has joined the channel [06:45] tmzt: futur: in what sense? [06:45] ronnieboy has joined the channel [06:45] [Null] has joined the channel [06:46] futur: tmzt : like the basics of createclient in http package.. i didnt understand it properly [06:46] felixhummel has joined the channel [06:46] replore_ has joined the channel [06:46] replore has joined the channel [06:46] tmzt: futur: try stackoverflow, there's a good explanation on there [06:47] Frippe has joined the channel [06:47] groom has joined the channel [06:47] futur: tmzt: oh sure i will do.. thx mate [06:49] saikat has joined the channel [06:49] noodlehaus: argh, i didn't know Object.keys() exists! [06:52] jhurliman has joined the channel [06:53] nitinb has joined the channel [06:54] mike5w3c_ has joined the channel [06:55] `3rdEden has joined the channel [06:56] __doc__ has joined the channel [06:59] _kud has joined the channel [07:00] ttpva has joined the channel [07:01] [Null] has joined the channel [07:01] hermanjunge has joined the channel [07:01] Emmanuel has joined the channel [07:04] clu3 has joined the channel [07:04] tdegrunt_ has joined the channel [07:05] ivanfi has joined the channel [07:05] nimstr has joined the channel [07:05] nimstr has left the channel [07:05] _kud has joined the channel [07:06] nitinb: futur: also look at the "request" package by mikeal on github [07:07] jacobolus has joined the channel [07:09] tdegrunt has joined the channel [07:09] ph^ has joined the channel [07:09] gxdssoft has joined the channel [07:11] vaheh has joined the channel [07:12] jbpros has joined the channel [07:13] dob_ has joined the channel [07:15] ablomen has joined the channel [07:19] pongwon has joined the channel [07:21] topaxi has joined the channel [07:22] Esteb has joined the channel [07:24] MUILTFN has joined the channel [07:24] jetienne_ has joined the channel [07:25] abiii has left the channel [07:26] luke` has joined the channel [07:27] noodlehaus has joined the channel [07:28] odyniec has joined the channel [07:28] sebastianedwards has joined the channel [07:31] ilya has joined the channel [07:31] Xano has joined the channel [07:33] alexdoom has joined the channel [07:35] [AD]Turbo has joined the channel [07:35] hackband has joined the channel [07:35] [AD]Turbo: hi there [07:35] MrTopf has joined the channel [07:36] Prometheus: that topic prompted me to rewatch reservoir dogs [07:37] Nuck: hehe the idiots on deviantART chat are so hilarious [07:37] Nuck: The mods tell them to join a room, they sit there and keep chatting, even when threatened with a ban [07:37] uchuff has joined the channel [07:39] mikedeboer has joined the channel [07:40] Orion- has joined the channel [07:40] Orion-: hello [07:43] jbpros has joined the channel [07:43] jeromegn has joined the channel [07:44] colinta has joined the channel [07:44] frega has joined the channel [07:44] teknopaul1 has joined the channel [07:45] lng has joined the channel [07:45] lng: hi! anybody use node.js as daemon? is it stable enough? [07:46] hlindset has joined the channel [07:46] Deegie has joined the channel [07:46] Orion-: I use it [07:46] Orion-: stable versions are 0.4.x [07:46] lng: Orion-: what is uptime? [07:46] sivy has joined the channel [07:46] lng: Orion-: do you need to restart it from time to time? [07:47] Orion-: lng: I'm in a dev process at the moment, I restart it each time I change the code so cannot tell you much about production uptime [07:48] Orion-: lng: but so far it seems to be stable [07:48] lng: great [07:48] lng: Orion-: does it work with network? [07:48] Orion-: I use 0.4.11 [07:48] lng: the latest [07:48] Orion-: network ? what do you mean ? [07:48] lng: stable [07:49] sivy_ has joined the channel [07:49] lng: Orion-: you daemon, does it acts as webserver or something [07:49] Orion-: yes [07:49] lng: s/acts/act/ [07:50] lng: ok [07:50] Orion-: http + socket.io [07:50] andree has joined the channel [07:50] lng: I'm thing of use of NodeJS for our payment system to store transactions [07:52] thalll has joined the channel [07:52] FireFly|n900 has joined the channel [07:53] chjj: this is the best week ever, first node beats jquery in watchers, now linus is going to beat john resig in followers [07:54] markwubben has joined the channel [07:54] jetienne_: hi [07:55] Orion-: chjj: howdy :) [07:55] shanebo: chjj, who's linus? [07:55] radiodario has joined the channel [07:55] shanebo: (shanebo ducks) [07:55] lng: torwalds [07:55] chjj: the man himself [07:55] chjj: the *man himself* [07:55] chjj: ! [07:56] Orion-: is linus involved in node.js ? [07:56] shanebo: the cartoon kid that drags his blanket on the ground? [07:57] radiodario: i see what you did there shachaf [07:57] radiodario: shanebo [07:57] radiodario: it makes sense that the guy gets involved in the most exciting free software project in a while [07:58] shanebo: chjj, who is linus?! [07:58] shanebo: hahaha [07:58] shanebo: I really don't know [07:58] radiodario: omg really? [07:58] chjj: shanebo: i just told you! [07:58] chjj: the man himself! [07:58] shanebo: i really don't [07:58] chjj: thats all you need to know [07:59] radiodario: http://en.wikipedia.org/wiki/Linus_Torvalds [07:59] chjj: https://github.com/torvalds [07:59] chjj: wikipedia.org/linux [07:59] chjj: etc [07:59] Druid_ has joined the channel [07:59] radiodario: see guys, we should have never made node.js compile on windows [08:00] ph^_ has joined the channel [08:00] shanebo: what's linux? [08:01] shanebo: (kidding) [08:01] shanebo: hahaha [08:01] radiodario: omg trollface [08:01] radiodario: hehehe [08:01] shanebo: ;) [08:01] dmkbot: joyent/node: herby: runInThisContext does not run in context of the caller - https://github.com/joyent/node/issues/898 [08:01] chjj: shanebo, why are you such a goofball [08:01] alexdoom has joined the channel [08:02] shanebo: guys I really didn't know who linus was [08:02] shanebo: sorry [08:02] radiodario: cool cool but it's like not knowing who justin beiber is. [08:02] Orion-: At least one guy on earth doesn't know him :) [08:02] radiodario: he's to linux what wozniak is to burritos [08:02] Orion-: :D [08:03] Creap: is there some module letting me use a more functional pattern in Node [08:03] Nuck: shanebo: Who is Steve Jobs? [08:03] chjj: this ^ [08:03] Orion-: Creap: require('erlang') ? :) [08:03] Creap: forEach(x, do) rather than x.forEach(do) etc [08:03] Creap: :P [08:03] Nuck: Orion-: I bet it exists [08:03] Nuck: Creap: wat [08:04] Orion-: dunno [08:04] Nuck: Creap: OOP FTW [08:04] shanebo: Who is Nuck? That's what I want to know… [08:04] radiodario: Creap: underscore might have something like that [08:04] Creap: right, I'll take a look [08:04] Nuck: shanebo: My name is Peter Lejeck. I'm a creepy bastard who encourages little girls to grow up to be prostitutes, just so he can murder them and put them under hotel beds. [08:05] mpavel has joined the channel [08:05] industrial: I have a problem with Jade Templates [08:05] industrial: https://gist.github.com/283601e0d645bb8f8cee [08:05] Nuck: industrial: I too have a problem with them. Namely, they're so fucking ugly. [08:05] industrial: The index.jade contents is escaped. Should that be #body!= body instead? [08:05] industrial: Nuck: I think it's quite pretty actually =) [08:06] Nuck: industrial: Well you do drugs. [08:06] industrial: so? you only live once. [08:06] jomoho has joined the channel [08:06] Orion-: industrial: I'm thinking of going back to haml :) [08:06] industrial: Nuck: though CoffeeKup might be a nice option aswell, but we're not using CoffeeScript at work [08:06] Nexxy: Nuck, don't you have school in the morning? [08:07] TomY has joined the channel [08:07] chjj: nuck is up past his bedtime i think [08:07] Nuck: haha no [08:08] mr_troy has joined the channel [08:08] Nuck: Note to self: don't mention age ever again [08:08] Nuck: People are idiots. [08:08] Nexxy: now you know how I feel about gender :) [08:08] Nuck: Nexxy: haha fair enough [08:08] Nexxy: turn about, my friend [08:08] Nexxy: it's fair play. [08:09] chjj: nexxy: girls dont exist on the internets, you are either a man or a robot [08:09] Nuck: At least women don't exist on the internet, 17-year-olds are generally regarded as idiots online [08:09] Nexxy: robot it is! [08:09] Nuck: Better to be nothing than to be bad [08:10] Nexxy: you're only bad if you don't try [08:10] bergie has joined the channel [08:11] Nuck: I do try, and yet some people (read: you) don't notice. [08:11] Nuck: Some people just focus on the negatives [08:11] Nexxy: lol [08:11] Nexxy: I see you trying all day long [08:11] Nexxy: it's just that sometimes it's a little too hard, and in the wrong areas ;P [08:11] Nuck: Actually, mostly during the night [08:11] Nuck: :P [08:12] Nexxy: you only got yourself on my badside cuz you're so insensitive and opinionated [08:12] Nuck: Nexxy: Insensitive? [08:12] Nexxy: a little tact goes a long way [08:12] Nexxy: do I really need to grep moar logs? [08:12] Nuck: I know I'm opinianated [08:12] Nuck: But I don't know how I'm insensitive [08:12] jetienne_: is that the new word to say "i insult everybody" ? :) [08:13] Nexxy: ^ see what I mean? [08:13] jetienne_: Nuck: look at your log and how many time you insult other [08:13] Nexxy: ^ [08:13] Nexxy: this [08:13] Nexxy: you're constantly insulting people [08:13] Nuck: jetienne_: Huh? [08:13] jetienne_: Nuck: do it [08:13] Nuck: I jokingly insult a few people [08:13] Nexxy: >jokingly [08:13] Nuck: Fraid I lack logs [08:13] Nuck: AFAIK [08:13] adambeynon has joined the channel [08:13] djcoin has joined the channel [08:13] Nuck: mIRC doesn't like logging [08:13] icebox has joined the channel [08:13] jetienne_: Nuck: do it and count, your amount of insult, and how many insult is there on th echannel which arent from you [08:14] FireFly|n900: I'm pretty sure it defaults to logging [08:14] wolftankk has joined the channel [08:14] FireFly|n900: Check C:\Program Files\mIRC\logs [08:14] jetienne_: Nuck: you will understand why people perceive you that way :) [08:14] Nuck: FireFly|n900: Nah, mine doesn't log, I checked the menu >_> [08:14] jamescarr: mIRC!!! [08:14] Nuck: jetienne_: I don't insult that often... [08:14] jamescarr: mIRC!!! [08:14] jamescarr: WTF [08:14] jetienne_: Nuck: do the count [08:14] jamescarr: mIRC... wtf is this 1998!? [08:14] v3ctR has joined the channel [08:14] jamescarr: or was it 1993? [08:14] Nuck: Yeah, I know [08:14] Nuck: It's shitty [08:14] Nuck: I agree [08:15] jamescarr: people still use it!? [08:15] Nuck: But it's the best GUI on Windows [08:15] jamescarr: do you use winsock too? :) [08:15] jamescarr: trumpet? [08:15] Nuck: jamescarr: Nah, I use Gopher. [08:15] H4ns: ah, the memories! ndis drivers! [08:16] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [08:17] shanebo: Nuck, when are you gonna get a mac? [08:17] Nuck: shanebo: When I have money :P [08:17] radiodario: you can always install linux [08:17] shanebo: :D [08:17] radiodario: or use bitchx [08:17] radiodario: or irssi [08:17] Nuck: The moment I get $2000 spare, I'll be getting a Mac [08:17] Nuck: irssi for Windows is shit [08:17] chjj: Nuck: heres what you need to do: download cygwin, install irssi, profit [08:17] Nuck: Plus irssi is shit [08:17] Nuck: So fuck irssi [08:18] chjj: irssi is GODLY [08:18] chjj: shut your damn mouth [08:18] radiodario: ¬_¬ [08:18] Nuck: It's the vim of IRC clients [08:18] Nuck: Not my thing [08:18] shanebo: Nuck, dude buy an old iMac or mac mini on the cheap man [08:18] radiodario: I'd say it's more like the emacs of IRC clients [08:18] Nuck: shanebo: Meh, I'm dealing with Windows until I can afford something that doesn't suck [08:18] radiodario: actually macs are on the way out, the new thing are Texas Instruments calculators [08:18] Nuck: I don't wanna halfass my next purchase [08:19] Nuck: radiodario: hipster. [08:19] chjj: ACTION would prefer a ti83 over any apple product. [08:19] Nuck: Anyways, I lack logs. [08:19] wnoronha has joined the channel [08:19] radiodario: well you could create a very elaborate program that performs screenshots and then does OCR on them [08:19] Nuck: And I really don't see how I insult people all the time. [08:19] Nuck: haha radiodario [08:19] Nuck: I could make it log [08:19] sorensen: i should not have watched apollo 18... [08:20] Nuck: But it hasn't been, so it's useless [08:20] Nexxy: Nuck, ubuntu is free [08:20] chjj: everyone is talking about that film, i heard it was terrible [08:20] Nexxy: and its level of suck is several orders of magnitude less than windows [08:20] Nexxy: especially as a development environment [08:20] Nuck: Nexxy: As far as OS goes, Ubuntu *is* nicer, however, I need Photoshop [08:20] Nuck: I am not just a developer, I do design work too [08:20] Nexxy: so do I [08:20] sorensen: its good as far as those kind of films go [08:20] radiodario: Nuck: hipster [08:20] Nexxy: which is why I have 2 partitions [08:20] Nuck: And I cannot use GIMP. [08:20] Nuck: Ah [08:21] Nuck: Nexxy: I might actually do that, now that you mention it >_> [08:21] Nexxy: one for windows which is exclusively cs5 [08:21] sorensen: but it led me to a series of youtube videos of crafts on da moon [08:21] Nexxy: even on a cheap laptop [08:21] Nexxy: I can switch between windows and ubuntu in like 45 seconds [08:21] chjj: gimp is getting better, its taking a while, but it is improving [08:21] Nuck: I've got a 500GB HDD to toss my shit onto [08:21] radiodario: I'm pretty sure photoshop 7 runs just fine on Wine [08:21] Nexxy: lol [08:21] Nexxy: 7 [08:21] Nuck: Eh, GIMP has more features [08:21] Nuck: But it's a shitty UI [08:21] FireFly|n900: I think PS works all right in wine. At least PS 8 did [08:21] Nuck: I jsut cannoy accept it [08:21] Nuck: I use CS5 [08:21] Nexxy: I've seen as high as CS3 working in wine [08:22] Nuck: Wow [08:22] chjj: Nuck: i agree, ive never liked the UI, it should be fixed with the next version [08:22] Nuck: I wonder if I could get CS5 in Wine [08:22] Nuck: chjj: Orly? [08:22] radiodario: what do you need CS5 for? [08:22] Nuck: Full redesign? [08:22] Nuck: Design work [08:22] chjj: Nuck: yeah, theres a single-window mode for the next version [08:22] radiodario: i mean over CS3 [08:22] Creap: So I found a module which supplies the functions I want, but it doesn't export to the global scope, so I have to do maddy = require 'maddy' / maddy.forEach(arr, do) [08:22] Nuck: chjj: But is the UI as awful [08:22] Nuck: radiodario: hardware acceleration, primarily [08:22] chjj: ok [08:23] radiodario: ok ok [08:23] Creap: Just "require 'maddy'" didn't do anything really. Can I get it to the "global" scope somehow..? [08:23] Nuck: I was debating doing a hackintosh for a while [08:23] sfoster has joined the channel [08:23] Nuck: But then I realized it was a LOT of work [08:23] Nuck: And decided it would be easier to just wait until I could buy a mac [08:23] felixge has joined the channel [08:23] felixge has joined the channel [08:23] Nuck: Plus it'd be disgraceful to put Mac OS on this piece of junk [08:24] H4ns: Creap: you can always have forEach = maddy.forEach; [08:24] chjj: it would be a disgrace to anything to put mac on something [08:24] chjj: ;) [08:24] Nuck: Not in this case [08:24] Nuck: It's disagraceful to put ANYTHING on this [08:24] Nuck: It's a broken piece of shit HP [08:24] Creap: H4ns: yeah, lots of functions though. I could modify the module, I just thought if there was maybe a way when requiring stuff [08:25] sriley: osx would suit it perfectly then ;) [08:25] ph^ has joined the channel [08:25] chjj: exactly ^ [08:25] Nuck: OS X is a beautiful OS [08:25] H4ns: Creap: you can also loop over the module object and import everything into your own scope. [08:25] chjj: ACTION vomits [08:25] Nuck: The designs are so elegant [08:25] H4ns: Creap: in general, i'd not do that. [08:25] Nexxy: lol [08:25] sriley: im not so convinced at that [08:25] Nuck: Only thin that irks me about OS X is the switching of Command and Control [08:25] Nuck: It confuses me so much [08:26] chjj: "design" "elegant" and "os x" do not belong in the same train of thought [08:26] sorensen: eh? [08:26] Nuck: I would probably map those to eachother if I got a Mac [08:26] Nuck: I'm sure there's ways of doing that [08:26] raj has joined the channel [08:26] Creap: H4ns: The module checks if the functions are already defined, but I guess it could still be considered bad practice [08:26] sorensen: i switched command and control the first day i got my macbook [08:26] Nuck: chjj: Have you ever used a Mac? They're the best -designed OS. [08:26] Nuck: sorensen: haha, I will too [08:26] Nexxy: lol [08:26] sorensen: how the hell am i supposed to copypasta efficiently otherwise? [08:27] Nuck: Mac OS X > Windows 7 > Ubuntu > most other Linux [08:27] wnoronha has joined the channel [08:27] Nuck: Linux has awful UIs [08:27] Nexxy: sorensen, start DRYing and stop the pasta! [08:27] futur has joined the channel [08:27] sorensen: haha [08:27] Nexxy: linux has no ui [08:27] Nuck: As far as OS quality goes, it's Linux > Ubuntu > Mac OS > Windows [08:27] sorensen: obviously [08:27] chjj: nuck, you might want to get your head looked at [08:27] sorensen: not my use case [08:27] Nexxy: what are you talking about [08:27] Nuck: Nexxy: I meant most other linux distros [08:27] Nexxy: fluxbox + enlightenment [08:27] Nexxy: elegant as fuck [08:27] chjj: oh, you were talking about UI? still [08:27] Glenjamin: each OS is well suited for a purpose [08:28] Nuck: Linux is the best kernel [08:28] Nuck: Hands down [08:28] radiodario: Mac os x is great to use at starbucks [08:28] Nexxy: and powells boocks [08:28] Nuck: radiodario: Definitely [08:28] Glenjamin: yeah, my mum's really sold on the importance of a good kernel [08:28] Nuck: haha powells [08:28] radiodario: mac laptops charge 20% slower at starbucks [08:28] radiodario: so you stay longer [08:28] Nuck: I've got a jacket from there [08:28] Nexxy: did I really just put a c in book? [08:28] Nexxy: wow. [08:28] Nexxy: hooked on phonics moment [08:29] kulor-uk has joined the channel [08:29] Nuck: I actually have a Photoshop class tomorrow [08:29] Nuck: Well, today [08:29] Nuck: At 4:30 PM [08:29] Nuck: So I can stay up late as hell, as long as I'm up by noon [08:29] Nexxy: is that where they teach you your pretentious concepts of "elegant UI" too? [08:30] Nexxy: lol ;P [08:30] slickplaid: finer points of reddit, imgur, and /b/ 101? [08:30] Nuck: Nexxy: Nah, it's mostly just because of my Plan B if my startup flops [08:30] alexdoom has joined the channel [08:30] Nuck: I want to become a designer/programmer (two jobs = better chance for being hired) [08:30] chjj: nuck: your plan B is to become an apple evangelist? [08:30] Nuck: haha no [08:31] Nuck: chjj: Only apple product I own is an iPhone 4 [08:31] sorensen: countless hours wasted on /b/ [08:31] Nuck: I wish I had a Macbook [08:31] Nuck: sorensen: Rule 1, man. [08:31] sorensen: Nuck: get one [08:31] Nuck: Rule 1. [08:31] slickplaid: i put the hours wasted on /b/ in my resume [08:31] Nuck: sorensen: Too poor. [08:31] Nexxy: rule 2? [08:31] Nexxy: rule 1*? [08:31] Nuck: Rule 2 is rule 1 [08:31] Nexxy: which is? [08:31] Nuck: The first rule of /b/ is you do not talk about /b/. [08:31] Nexxy: you're thinking "Fight Club" [08:31] Nuck: The second rule of /b/ is YOU DO NOT TALK ABOUT /B/ [08:31] Nexxy: close [08:32] Nuck: Nexxy: Well, yes [08:32] sorensen: haha [08:32] Nuck: Fight Club stole it from /b/ [08:32] aaronmcadam has joined the channel [08:32] Nuck: Duh. [08:32] sorensen: sorry, breaking rules >.< [08:32] slickplaid: fight club stole it from /b/ [08:32] Nexxy: lewl [08:32] HubertChang: var app = require('macbook').createProduct(1000).distribute(function(production, everywhere){}).listen(80); [08:32] Nuck: sorensen: It's okay, they're mostly for /i/nvasions anyways [08:32] booo has joined the channel [08:33] sorensen: this is true [08:33] Nuck: HubertChang: production is undefined [08:33] sorensen: LOL [08:33] Nexxy: I'm genuinely embarrassed for you right now [08:33] sorensen: so, not sure why i've never seen this before, but the movie got me on a series of youtube searches. http://www.youtube.com/watch?v=7hDI-uB6LQ0&feature=player_embedded [08:33] Nuck: I assume everywhere is a global. [08:35] HubertChang: Nuck, yeah, Macbook is a global. [08:35] Nuck: HubertChang: No, macbook got required [08:35] Nuck: Did you not read your own code? [08:36] Nexxy: remember when I mentioned trying too hard, Nuck ? [08:36] dmkbot: joyent/node: geki007: windows: spawn process: close order shouldn't important - https://github.com/joyent/node/issues/1438 [08:36] [[zz]] has joined the channel [08:36] Nexxy: this is one of those times [08:36] Nuck: actually no [08:36] Nuck: This is normal me [08:37] Nexxy: perhaps normal you should consider bringing it down a notch [08:37] Orion- has joined the channel [08:37] Nexxy: or pop another adderall or something [08:37] Nexxy: ^-^ [08:37] sorensen: the Nexxy / Nuck conversations are almost too entertaining [08:37] Nuck: No, adderall doesn't work for me... [08:37] Nexxy: sorensen, I do my best [08:37] Nuck: I take copious amounts of ritalin. [08:37] sorensen: lol [08:37] slickplaid: sleep == overrated [08:37] robhawkes has joined the channel [08:38] Nuck: slickplaid: typeof sleep [08:38] Nexxy: "drugInduced" [08:38] Nuck: good answer [08:38] chjj: node y u no have fork? [08:38] eldios has joined the channel [08:39] Nuck: chjj: Because Ryan's a bigger fan of spooning. [08:39] sorensen: oh lawd... [08:39] chjj: oh i see wat u did ther [08:39] Nexxy: why settle for one when you can have sporking [08:39] Nuck: I prefer chopsticking [08:39] HubertChang: :(. [08:40] stagas has joined the channel [08:40] sorensen: hell, i've been sucked into the moon videos [08:40] sorensen: stupid apollo 18 movie [08:40] sorensen: ACTION grumbles [08:43] Nuck: Apollo 18 sounds like a wierd pornstar name [08:43] sorensen: or the next co-star of a new rocky film [08:46] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [08:48] markwubben has joined the channel [08:50] balaa has joined the channel [08:54] shipit has joined the channel [08:56] bergelmir has joined the channel [08:56] bergelmir has joined the channel [08:59] aaronmcadam has joined the channel [08:59] kiffness has joined the channel [09:00] MUILTFN has joined the channel [09:02] aron_ has joined the channel [09:04] shipit_ has joined the channel [09:07] cjm has joined the channel [09:09] Fuu has joined the channel [09:09] cjroebuck has joined the channel [09:10] chjj: xargs, y u no work the way i want [09:15] thalll has joined the channel [09:16] Nuck: ACTION <3 The Dodos' Visiter album [09:16] slaskis has joined the channel [09:16] mehlah has joined the channel [09:18] mehlah_ has joined the channel [09:19] sgimeno has joined the channel [09:21] socketio\test\27 has joined the channel [09:22] Glenjamin: chjj: what are you trying to do? [09:22] Emmanuel has joined the channel [09:23] Glenjamin: -n 1 transposes the list, which generally covers the cases normal usage doesnt [09:23] chjj: got it working [09:23] chjj: i wanted to curl something, grep it and then pipe into into xargs echo with some extra args [09:24] dnrn has joined the channel [09:24] chjj: got xargs -I working the way i liked [09:26] pickels has joined the channel [09:28] thalll has joined the channel [09:30] marlun has joined the channel [09:30] marlun has joined the channel [09:31] Margle has joined the channel [09:34] raphdg has joined the channel [09:34] Shrink has joined the channel [09:34] Shrink has joined the channel [09:36] d1m1tr1s has joined the channel [09:38] danr has left the channel [09:40] adrianmg has joined the channel [09:44] mehlah has joined the channel [09:47] d1m1tr1s has left the channel [09:47] irahgel has joined the channel [09:54] Emmanuel has joined the channel [09:58] Sami_ZzZ has joined the channel [09:59] jetienne has joined the channel [10:05] astropirate has joined the channel [10:09] fermion has joined the channel [10:09] christophsturm has joined the channel [10:16] Cromulent has joined the channel [10:21] Poetro has joined the channel [10:21] Poetro has joined the channel [10:23] NetRoY has joined the channel [10:30] hellp has joined the channel [10:32] Nuck: Wow [10:32] Nuck: Seems like jsut yesterday that was just in Firefox betas [10:33] sreeix has joined the channel [10:38] jtrudeau has joined the channel [10:38] FireFly|n900 has joined the channel [10:41] teknopaul1 has joined the channel [10:42] chjj: nuck: i found a nice little google chrome tool [10:42] chjj: `google-chrome --purge-memory-button` [10:43] chjj: gives you a button on the task manager which can purge all memory for tabs that arent immediately used [10:43] chjj: so it clears whatever is cached [10:43] jetienne: :) [10:43] jetienne: nice one [10:44] agnat has joined the channel [10:44] DennisRasmussen has joined the channel [10:48] cryptix has joined the channel [10:48] N0va has joined the channel [10:48] kulor-uk has joined the channel [10:50] jetienne has joined the channel [10:53] mc_greeny has joined the channel [10:54] ishupa has joined the channel [10:54] ishupa has left the channel [10:54] johnhamelink has joined the channel [10:55] fly-away has joined the channel [10:56] wbednarski has joined the channel [10:56] warbit has joined the channel [10:57] replore has joined the channel [10:57] replore_ has joined the channel [10:58] jetienne has joined the channel [11:01] dmkbot: joyent/node: PS86K: Problem with connection 3g - https://github.com/joyent/node/issues/1660 [11:05] Insekticid has joined the channel [11:06] sreeix has joined the channel [11:08] fairwinds has joined the channel [11:11] eldios: which domain registrar are you using with your VPS? godaddy? [11:11] eldios: domain registrar / DNS [11:11] eldios: oh sh*t.. I forgot.. [11:11] eldios: -> SURVEY TIME <- *jingle* [11:11] eldios: which domain registrar are you using with your VPS? godaddy? [11:12] WRAz: Thats a pretty random question. [11:12] eldios: indeed [11:12] WRAz: Also, yeah, godaddy is cheap/I have my other domains there. [11:12] booo has joined the channel [11:12] edude03 has joined the channel [11:12] eldios: mm [11:12] WRAz: Then I have google apps/vps/amazon ec/etc [11:16] brianseeders has joined the channel [11:16] eee_c has joined the channel [11:16] eldios: mm.. I'm trying webfaction.com [11:16] eldios: looks neat as for now [11:16] WRAz: that looks like a hosting solution [11:17] sdolard_ has joined the channel [11:17] WRAz: not a registar [11:17] WRAz: hey, does http://whenraptorsattack.github.com/Jixel/examples/TheWayHome/ work for you? [11:17] sdolard_: Hi there [11:18] sdolard_: i've go an issue with https.request() function [11:18] rfay has joined the channel [11:18] sdolard_: node quit without any output information [11:18] sdolard_: on mac [11:19] sdolard_: on linux, i've just got an exception but no exception object [11:19] sdolard_: is there a way to have more informations about node behavior output? [11:22] ahpeeyem has joined the channel [11:23] sdolard_: It's seems that my connection is cut before I receive all data [11:31] dmkbot: joyent/node: fprijate: Wrong fs.stat size on win32 - https://github.com/joyent/node/issues/1647 [11:32] eldios: WRAz, space bar is having a weird behaviou [11:32] eldios: behaviour* [11:32] eldios: I suppose the space bar is not trapped so that when I try to jump I suddenly fall.. like.. 50m below [11:32] WRAz: weird, what browser? [11:33] eldios: firefox 6.0.1 [11:33] simenbrekken has joined the channel [11:33] eldios: working fine in chroumium (also with sounds *jump jump jump*) [11:34] TokyoDan_ has joined the channel [11:34] eldios: also everything fine in opera 12 [11:34] eldios: and when it screws I need to do a full refresh (Ctrl + F5) to restart the game properly.. Ctrl+R (or F5) is not enough [11:36] ahpeeyem has left the channel [11:36] WRAz: so its just firefox [11:36] sfoster has joined the channel [11:37] eldios: looks so [11:38] eldios: sdolard_, are you using any framework like express or so? or just plain https [11:38] grekko has joined the channel [11:40] dlg: ACTION grumble [11:40] WRAz: weird, looks like a strange FF bug. When I walk the code using firebug it works fine [11:40] WRAz: and then continues to work fine [11:42] matomesc has joined the channel [11:42] sdolard_: eldios: just https [11:43] kriz has joined the channel [11:43] Skomski has joined the channel [11:44] eldios: walking is not a problem here WRAz only jumping [11:44] sdolard_: eldios: I've got a random behavior: sometime I've got a complete response, sometime not (my http service is idempotent...) [11:45] eldios: mm.. looks like you should put some debugging code somewhere or use node-inspector [11:45] sdolard_: never try node-inspector (I should) [11:47] mikl has joined the channel [11:47] NegativeK has joined the channel [11:47] junkee[] has joined the channel [11:49] eldios: ^^ [11:49] sdolard_: Another remark, I ve got only this behavior with large responses more than ~4Mo [11:50] andrewfff has joined the channel [11:50] sdolard_: I don't have this trouble with short responses from the same service [11:51] louissmit has joined the channel [11:52] Emmanuel_ has joined the channel [11:52] odyniec has joined the channel [11:53] coobr has joined the channel [11:53] dlg: anyone willing to take a look at a stupid bug in some simple code? [11:54] tlocalhos has joined the channel [11:55] kriz has left the channel [11:55] enmand has joined the channel [11:56] Margle has joined the channel [11:59] Glenjamin: dlg: pastebin it and find out :p [11:59] dlg: https://github.com/dgwynne/node-fwd-http-proxy/blob/master/proxy.js [12:00] dlg: its a forward proxy [12:00] dlg: i get a ton of these errors when i hit the https_proxy path: [12:00] dlg: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. [12:00] dlg: starts at server.on('upgrade', function (req, c, head) { [12:03] al3xnull has joined the channel [12:04] sdolard_: eldios: very nice this node-inspector [12:04] sdolard_: but it help with our javascript code [12:04] pandeiro has joined the channel [12:05] sdolard_: there i only receive "close" event on my response, but i don't know why, node-inspector do not help for that :( [12:06] sdolard_: Hum, we see node sources... So it can :) [12:07] dexter_e has joined the channel [12:08] dexter_e_ has joined the channel [12:08] patrickgamer has joined the channel [12:10] cole_gillespie has joined the channel [12:14] algorithm_monkey has left the channel [12:14] jshaw has joined the channel [12:15] patrickgamer has left the channel [12:17] _kud has joined the channel [12:19] Deegie has joined the channel [12:21] temp01 has joined the channel [12:22] LordMetroid has joined the channel [12:22] LordMetroid: I have been trying to figure out a good way to parse and cache my templates, the template doesn't contain anything but normal HTML and tags alike which shall be replaced by the value of the provided variable [12:22] LordMetroid: My initial idea was to parse the template into an object but perhaps that is slower than simply doing a replace for each variable? [12:23] H4ns: LordMetroid: implement what's easy, profile, optimize if required. [12:23] gdusbabek has left the channel [12:23] jetienne has joined the channel [12:24] gdusbabek has joined the channel [12:24] fumanchu182 has joined the channel [12:26] nevvermind1 has joined the channel [12:26] yept has joined the channel [12:27] sfoster: if I request a non-existent file, shouldn't the connect static middleware produce a 404 for it? Or do I need a separate handler for that? [12:28] vlapan has joined the channel [12:28] kriszyp has joined the channel [12:28] DennisRasmussen has joined the channel [12:28] jetienne_ has joined the channel [12:28] socketio\test\99 has joined the channel [12:29] chjj: sfoster: the connect static middleware works in such a way that if it doesnt find a request file, it will keep travelling down the stack, until it reaches the end, and then it will respond with a 404 [12:29] chjj: sfoster: it does it that way so you can put the static middleware at the top of your stack if you want [12:30] chjj: a requested file* [12:30] chjj: sfoster: but if the static middleware doesnt find anything, it pretends everything is okay for the time being, until you hit the end of the stack [12:31] sfoster: ok, that makes sense [12:31] sfoster: so I can put a simple middleware after it to resolve the request to a path and send back 404 my way if it doesn't exist [12:33] adambeynon has joined the channel [12:33] sfoster: I see it doing a stat on the file path, but it doesn't seem to emit anything. Seems a waste to do the whole thing all over again [12:33] chjj: sfoster: what are you doing exactly? [12:33] scott_gonzalez has joined the channel [12:34] chjj: sfoster: yes, it stats to see if the file exists, which is why its usually recommended to put the static middleware at the bottom of your stack [12:34] sfoster: Im just trying to expose a directory of json files with jsonp [12:34] bicranial has joined the channel [12:35] sfoster: to a request for something.json?callback=foo will resolve to something.json, and I use the connect/jsonp middleware to wrap the response [12:35] christophsturm has joined the channel [12:35] sfoster: but, I have to handle 404s as well - and either send back a 404 empty response, or a json object with an error message (I've not decided yet) [12:36] rendar has joined the channel [12:37] kulor-uk has joined the channel [12:38] ceej has joined the channel [12:38] jmiller_ has joined the channel [12:40] sneakyness has joined the channel [12:40] skm has joined the channel [12:41] spcshpopr8r has joined the channel [12:41] jetienne: node rocks [12:41] v3ctR has joined the channel [12:42] Glenjamin: sfoster: how about a 404 response with a json error object? [12:42] igl has joined the channel [12:42] sfoster: that would work. I'm kinda stuck at the first hurdle here though. [12:43] bnoordhuis has joined the channel [12:43] dexter_e_ has joined the channel [12:43] dexter_e has joined the channel [12:44] cjm has joined the channel [12:44] sfoster: seems simple enough: https://gist.github.com/1197446 [12:45] sfoster: curl http://localhost:9000/somedata/roles.json?callback=foo gives me back "Empty reply from server" [12:46] Cromulent has joined the channel [12:48] ablomen has joined the channel [12:48] sreeix has joined the channel [12:49] HubertChang has joined the channel [12:49] vns has joined the channel [12:49] arthurdebert has joined the channel [12:50] AaronMT has joined the channel [12:52] paul0 has joined the channel [12:52] kurokikaze has joined the channel [12:52] kurokikaze: hello all [12:52] kurokikaze: anybody have "socket hang up" problem? [12:53] kurokikaze: I cannot figure out what's happening there, getting this error on every HTTPS request [12:53] stagas_ has joined the channel [12:54] mike5w3c_ has joined the channel [12:54] agnat_ has joined the channel [12:58] Sami_ZzZ has joined the channel [12:59] spcshpopr8r: kurokikaze: if it's just happening on https, do you suppose it may be an invalid cert? Just a guess...not sure how socket handles that [13:00] Orion- has joined the channel [13:00] kurokikaze: spcshpopr8r: hm, maybe. I should test it somehow [13:01] bnoordhuis: kurokikaze: what version of node? [13:01] kurokikaze: spcshpopr8r: oh, yes, cert is given for wrong site. Any way to circumvent that check? [13:01] kurokikaze: v0.5.6-pre [13:01] kurokikaze: v0.5.5 too [13:02] spcshpopr8r: kurokikaze: you would think there ought to be a way to get around that...I don't know though [13:02] stagas has joined the channel [13:02] kurokikaze: spcshpopr8r: okay, thanks anyway ) [13:04] stagas_ has joined the channel [13:04] yept has joined the channel [13:04] a_suenami has joined the channel [13:06] deedubs has joined the channel [13:06] celloflax has joined the channel [13:07] hermanjunge has joined the channel [13:07] Sami_ZzZ has joined the channel [13:08] dylang has joined the channel [13:08] skoom has joined the channel [13:08] stagas_ has joined the channel [13:09] bshumate has joined the channel [13:09] albertosheinfeld has joined the channel [13:11] dmkbot: joyent/node: chowey: net_uv.js errno not defined - https://github.com/joyent/node/issues/1661 [13:13] hekkwan has joined the channel [13:13] shanebo has joined the channel [13:14] bnoordhuis: kurokikaze: node doesn't check the cert (or at least doesn't bail out if it's invalid) [13:14] bnoordhuis: gist your code, that'd help [13:14] kurokikaze: hmm [13:15] kurokikaze: I'll do [13:15] kurokikaze: just have to remove some sensitive stuff [13:16] tuhoojabotti: Don't store sensitive stuff in code. [13:16] tuhoojabotti: pro-tip :D [13:16] __doc__ has joined the channel [13:17] pen has joined the channel [13:17] kurokikaze: It's internal tool ) [13:17] kurokikaze: for testing a prorpietary JSON API [13:18] aron_ has joined the channel [13:18] c4milo has joined the channel [13:18] bicranial has joined the channel [13:19] stagas_ has joined the channel [13:20] kurokikaze: okay, this doesn't work too: https://gist.github.com/3049003d31c9aa8dbaf0 [13:21] Jalava: this was actually useful once: Math.random = function() { return 4; } [13:21] Jalava: for testing randomized sets where certain special cases must not happen [13:22] ablomen: kurokikaze, https uses port 443 [13:22] geetarista has joined the channel [13:22] ablomen: not 80 [13:22] kurokikaze: FFFFFFFUUUUUUUUUUUU [13:22] Jalava: set constant random and order mock data properly to fail the test to allow fixing the test :) [13:22] kurokikaze: you're right [13:23] kurokikaze: Haha, that was it [13:23] kurokikaze: All I needed is a pair of fresh eyes :) [13:24] kurokikaze: ablomen: thanks :) [13:24] Skomski has joined the channel [13:25] FireFly|n900 has joined the channel [13:27] sfoster: Math.random returns a float between 0 and 1. Seems like returning 4 could have strange results. [13:27] sylvinus has joined the channel [13:27] sfoster: Or maybe that's the idea. [13:28] drostie has joined the channel [13:31] thalll has joined the channel [13:31] groom has joined the channel [13:31] stagas has joined the channel [13:31] hermanjunge has joined the channel [13:32] TheJH has joined the channel [13:32] TheJH has joined the channel [13:33] human has joined the channel [13:33] Jalava: sfoster: in this case it didn't have effect so we used for because: http://xkcd.com/221/ [13:34] Jalava: if there was any weighting etc of course it should return 0.5 or something [13:34] sfoster: :) [13:35] IRCReaderBOT has joined the channel [13:36] booo has joined the channel [13:37] TheJH: what is IRCReaderBOT ? [13:37] wao: w [13:41] human has joined the channel [13:41] willwhite has joined the channel [13:41] IRCReaderBOT has joined the channel [13:42] fayce has joined the channel [13:43] vikstrous_ has joined the channel [13:44] IRCReaderBOT has joined the channel [13:46] sivy has joined the channel [13:47] brolin has joined the channel [13:48] CIA-30: libuv: 03Ben Noordhuis 07master * rcc91989 10/ src/unix/core.c : [13:48] CIA-30: libuv: unix: fix buffer overrun in uv__strlcpy() [13:48] CIA-30: libuv: Reported by Thomas Shinnick. - http://git.io/kGVOOA [13:48] Shrink has joined the channel [13:48] christophsturm has joined the channel [13:49] IRCReaderBOT has joined the channel [13:49] thomblake has joined the channel [13:49] ph^ has joined the channel [13:49] thomblake has left the channel [13:52] McMAGIC--Copy has joined the channel [13:53] slyphon has joined the channel [13:54] rioHEJ has joined the channel [13:55] pifantastic has joined the channel [13:55] sneakyness_wk has joined the channel [13:56] CarterL has joined the channel [13:57] baudehlo has joined the channel [13:58] aheckmann has joined the channel [13:58] k1ttty has joined the channel [14:00] lgl has joined the channel [14:00] lgl: Hi, any stylus experts in here who can help me with an advanced stylus question? [14:01] sreeix has joined the channel [14:01] figital has joined the channel [14:01] progme has joined the channel [14:02] boaz has joined the channel [14:02] PS86K has joined the channel [14:03] PS86K: hey peoplo [14:03] PS86K: *people [14:03] celloflax has left the channel [14:03] PS86K: someone can help with a problem? [14:03] TheJH: lgl, you could just ask, I guess nobody here knows what "advanced" means exactly :D [14:03] PS86K: lol [14:03] TheJH: PS86K, probably depends on the problem [14:04] TheJH: !mem ask-ask [14:04] jhbot: i don't know what a ask-ask is [14:04] TheJH: meh [14:05] PS86K: i make a little chat with nodejs for mobile, and with wifi connection it's ok but with 3g connection not working [14:05] pen has joined the channel [14:05] lgl: TheJH: Yes, sorry [14:05] lgl: I want a mixin to create css "outside" of the selector [14:05] CoinOpeBoy has joined the channel [14:05] PS86K: Anyone know why? [14:05] lgl: Specifically, I want it to generate another rule under a @media query [14:06] TheJH: PS86K, maybe your mobile ISP is doing nasty stuff? [14:06] LordMetroid has joined the channel [14:06] pickels has joined the channel [14:06] lgl: One mixin to create the following css: [14:06] lgl: #content { [14:06] lgl: width: 960px; [14:06] lgl: } [14:06] lgl: @media only screen and (max-width: 959px) { [14:06] lgl: #content { [14:06] lgl: width: 768px; [14:06] lgl: } [14:06] lgl: } [14:06] stride: pastebin & gist exists \o/ [14:07] stride: -s [14:07] TheJH: !@lgl mem gist [14:07] PS86K: then the problem is the ISP and not my, right? [14:07] jhbot: lgl, Gist is kind of a pastebin. Every paste is a git repo. https://gist.github.com/ [14:07] lgl: Thanks [14:07] TheJH: PS86K, just a guess, but could well be [14:07] PS86K: anyone ever had this problem? [14:09] dnjaramba has joined the channel [14:10] andree has joined the channel [14:10] guillermo has joined the channel [14:10] pagameba has joined the channel [14:14] trupppOFF has joined the channel [14:14] dylang has joined the channel [14:14] versicolor has joined the channel [14:15] roger_raymond has joined the channel [14:16] vikstrous__ has joined the channel [14:17] aelien27 has joined the channel [14:17] ditesh|cassini has joined the channel [14:20] vipaca has joined the channel [14:21] balaa has joined the channel [14:23] jerrysv has joined the channel [14:24] aho has joined the channel [14:26] sivy has joined the channel [14:27] postwait has joined the channel [14:27] vikstrous_ has joined the channel [14:28] stagas has joined the channel [14:29] FM_ has joined the channel [14:29] erock has joined the channel [14:32] devongovett has joined the channel [14:32] N0va has joined the channel [14:33] dguttman has joined the channel [14:35] mehtryx has joined the channel [14:35] BillyBreen has joined the channel [14:35] bluesmoon has joined the channel [14:36] kmiyashiro has joined the channel [14:37] deedubs_ has joined the channel [14:37] cronopio has joined the channel [14:37] softdrink has joined the channel [14:38] Venom_X has joined the channel [14:38] dexter_e has joined the channel [14:38] CIA-30: node: 03Ben Noordhuis 07master * r94b0481 10/ (6 files in 4 dirs): uv: upgrade to cc91989 - http://git.io/Qg4DRw [14:38] CIA-30: node: 03Ben Noordhuis 07master * r56efe9c 10/ src/node_file.cc : [14:38] CIA-30: node: file: translate libuv error codes to errno names [14:38] CIA-30: node: Fixes incorrect error names (ex. ENOEXEC instead of EBADF, [14:38] CIA-30: node: EMLINK instead of ENOENT). [14:38] CIA-30: node: Fixes #1656. - http://git.io/91KL0g [14:39] softdrink has joined the channel [14:40] storrgie has joined the channel [14:40] CoverSlide has joined the channel [14:41] johnhame_ has joined the channel [14:43] Glenjamin has joined the channel [14:43] simon1 has joined the channel [14:46] fangel has joined the channel [14:47] slyphon has joined the channel [14:47] sivy has joined the channel [14:47] galaxywatcher has joined the channel [14:48] PS86K: what is the port advised to use in websockets? [14:48] bnoordhuis: PS86K: 1337 [14:49] PS86K: tks [14:49] bnoordhuis: PS86K: that was a joke [14:49] CoverSlide: it's advised to have it intercept connections to your web server [14:49] PS86K: ... [14:49] bnoordhuis: PS86K: websockets use the regular http and https ports, 80 and 443 [14:49] tk has joined the channel [14:50] eldios: any express connect expert can suggest me how to accomplish basicauth based on url routing? (like app.get(/user/:id, basicauth(req.params.id), function(req,res){}) [14:50] smathy has joined the channel [14:50] eldios: I know need routing and routing middleware wrapping.. still I cannot get it work [14:51] bwinton has joined the channel [14:51] hydrozen has joined the channel [14:51] v3ctR has joined the channel [14:51] eresair has joined the channel [14:51] CoverSlide: basicauth is sent as a header from the browser, not via url routing [14:52] jj0hns0n has joined the channel [14:52] dexter_e has joined the channel [14:53] ph^ has joined the channel [14:53] CoverSlide: what you could do is make sure the username and user id match [14:53] CoverSlide: something like req.authentication.username [14:53] CoverSlide: not 100% sure on that [14:54] dob__ has joined the channel [14:55] captain_morgan has joined the channel [14:55] mattrobenolt has joined the channel [14:56] thinkt4nk has joined the channel [14:56] eldios: mmm k [14:56] soapyillusions has joined the channel [14:57] RORgasm has joined the channel [14:57] eldios: CoverSlide, anyway doing basic auth via middleware works [14:57] nibblebot has joined the channel [14:57] CoverSlide: it should [14:57] eldios: it should be possible to stack something before that then [14:57] v3ctR has joined the channel [14:57] CoverSlide: but just run the basicauth by itself [14:57] mwu has joined the channel [14:58] CoverSlide: you can't inject a username / password into basicauth [14:58] eldios: yes you can specify them.. you do basicauth('myuser','mypass') [14:59] CoverSlide: well yes that works too [14:59] eldios: and those would be the data that will use [14:59] toabi has joined the channel [14:59] toabi has left the channel [14:59] CoverSlide: on the server end [14:59] eldios: yes [14:59] CoverSlide: that's what it will test agains [14:59] eldios: yes [14:59] eldios: that's what Im trying to achieve [15:00] eldios: custom basicAuth based on the url you call [15:00] PS86K: what is the best port to use for webSocket? the problem is when i use 3g connection is not work, i don't now why, normally I use server.listen(8015); [15:00] erock: Speaking of Auth, has anyone in here implemented an oAuth Provider using node.js? My team is going to use Rails to do it, but I'm thinking we should use Node. [15:00] mwu: I'm attempting to run a process from a node.js script using child_process.spawn. I am getting exit code 127 with means 'command not found' -- I have checked my path and the binary does exist on my path and I can run it from the command line. Any ideas why this might happen? [15:00] bnoordhuis: PS86K: there's a fair chance your 3g provider is blocking non-http traffic [15:01] eldios: erock, look for them on github.. there were some afaik [15:01] sivy_ has joined the channel [15:01] bnoordhuis: PS86K: websockets don't work well with proxies and firewalls and that's what most 3g networks sit behind [15:01] cronopio: erock: look at everyauth module from brian gonuchi [15:01] cronopio: erock: github.com/bnoguchi/everyauth [15:02] PS86K: hmmm :/ ok [15:02] TheJH: mwu, use its full path [15:02] PS86K: tks ;) [15:02] erock: cronopio: i've done a bit of research on github and google in general. It seems possible enough, but I'm wondering if we will need to build the flow ourselves for the provider. Everyauth seems very mature as an oAuth client, but does it also act as a Provider? [15:03] EyePulp has joined the channel [15:04] hybsch has joined the channel [15:04] cronopio: erock: oh! sorry, you need a provider?? [15:04] erock: Yes [15:04] cronopio: erock: I think I have seen some module for doing that [15:04] riyonuk has joined the channel [15:04] cronopio: erock: but dont rememeber [15:05] mwu: if I must use the full path, then I'll need to determine the correct path for the binary on the current system -- is there a better way to do that than to run another child process to check execute 'which'? [15:05] jmiller_ has left the channel [15:05] CIA-30: node: 03Maciej Małecki 07master * rd055294 10/ lib/url.js : url: add plus sign to protocol pattern - http://git.io/fgm_IQ [15:05] CIA-30: node: 03Maciej Małecki 07master * rfb93ab4 10/ test/simple/test-url.js : test: test for correct parsing of URLs with plus character in protocol - http://git.io/_NHUow [15:07] gazumps has joined the channel [15:07] iammerrick has joined the channel [15:07] riyonuk: Holy geez, I'm extremely confused with node.js - I know it's server side javascript, but how exactly do I run it? I use Media Temple :/ [15:08] davidwalsh has joined the channel [15:08] zastaph has joined the channel [15:08] bnoordhuis: riyonuk: `node script.js`? [15:08] radiodario: riyonuk: it's a command line program [15:08] _kud has joined the channel [15:08] radiodario: and it's also the webserver [15:09] radiodario: you should *read the documentation* [15:09] aaronmcadam: hehe [15:09] aaronmcadam: typical :) [15:09] boaz has joined the channel [15:09] riyonuk: So, everything would have to be setup on SSH? I've done a command line program, all I know is php/python [15:09] lgl: riyonuk: You can't run it on Media Temple. You need a full VPS or a hosting provider which supports Node.js [15:09] riyonuk: -.- [15:10] bnoordhuis: riyonuk: sign up at no.de, the basic plan is free [15:10] aaronmcadam: run a server within a server [15:10] aaronmcadam: yeah that makes sense heh [15:10] robertfw has joined the channel [15:10] DrMcKay has joined the channel [15:10] kevwil has joined the channel [15:10] sreeix has joined the channel [15:10] lgl: riyonuk: Sorry, you can run it on Media Temple ;) But yeah, it would have to be set up on SSH so to speak. [15:10] riyonuk: Oh, I've heard about these peeps. Saw them on the Cloud9IDE site. [15:11] dmkbot has joined the channel [15:11] fatjonny has joined the channel [15:11] storrgie has joined the channel [15:12] voieducode has joined the channel [15:12] markdaws has joined the channel [15:14] springmeyer has joined the channel [15:14] hkjels has joined the channel [15:15] mpavel has left the channel [15:15] hkjels: Is there a good file-based key/value store available? I don't want dependencies like mongodb, couched and such [15:16] riyonuk: Okay, now I've gotta figure out how to get an SSH key. I hate windows more and more everyday. [15:16] springmeyer has left the channel [15:18] bnoordhuis: riyonuk: ssh-keygen -t rsa -b 4096 [15:18] smtlaissezfaire_ has joined the channel [15:18] riyonuk: bnoordhuis: Yeah, where though? CMD doesn't have that by default. [15:18] CoverSlide: there's lots of in-process key-value stores [15:18] bnoordhuis: riyonuk: you'll need to install ssh obviously but it's part of cygwin's base install, i think [15:18] nakkor has joined the channel [15:18] riyonuk: Ahh, okay. [15:18] TheJH: hkjels, your data is too much for dumping JSON to a file? [15:18] DrMcKay: I don't really get it anymore... [15:18] bnoordhuis: riyonuk: and there's probably a standalone windows binary as well [15:18] CoverSlide: none officially supported [15:18] DrMcKay: bnoordhuis: how did you merge my changes? [15:19] Glenjamin: i'd recommend putty over cygwin unless you have a good reason for using cygwin [15:19] jj0hns0n has joined the channel [15:19] DrMcKay: bnoordhuis: I mean, cherry picking or branch merge? [15:19] iammerrick has joined the channel [15:19] bnoordhuis: DrMcKay: curl -s https://github.com/joyent/node/pull/1654.patch | git am --whitespace=fix [15:19] CoverSlide: but there's node-index, chaos, nstore [15:19] bnoordhuis: DrMcKay: and `git rebase -i HEAD^^` to reword the commit messages [15:19] DrMcKay: bnoordhuis: sneaky... I wondered why there were new SHAs [15:20] bnoordhuis: DrMcKay: that's almost always the case because the parent commits differ [15:20] riyonuk: bnoordhuis: Would it be the id_rsa.pub? :) [15:20] DrMcKay: bnoordhuis: so when it's not a fast-forward, right? [15:20] bnoordhuis: riyonuk: yes [15:20] bnoordhuis: DrMcKay: yes [15:21] DrMcKay: bnoordhuis: now I get it, thanks :) [15:21] FireyFly|n900 has joined the channel [15:21] kenperkins has joined the channel [15:21] riyonuk: bnoordhuis: key names can only contain word characters and digits :/ [15:22] bnoordhuis: riyonuk: it's a bug in no.de's web interface, strip the user@host bit from your key [15:22] nakkor has joined the channel [15:22] nevir has joined the channel [15:23] mpavel1 has joined the channel [15:23] Cromulent has joined the channel [15:23] raphdg has joined the channel [15:24] iammerri_ has joined the channel [15:24] wookiehangover has joined the channel [15:25] wookiehangover has joined the channel [15:26] mpavel1 has left the channel [15:27] _kud has joined the channel [15:28] iammerrick has joined the channel [15:29] cronopio: There is a channel for mongoose topics?? I have some questions with mongoose-auth [15:30] nforgerit has joined the channel [15:30] riyonuk: bnoordhuis: I'm guessing I have to make my own config file? [15:30] bnoordhuis: riyonuk: you mean ssh config file? [15:31] arthurdebert has joined the channel [15:31] riyonuk: bnoordhuis: Yeah, I don't see it in .ssh [15:32] bnoordhuis: riyonuk: right, just create it [15:32] Chopinn has joined the channel [15:32] caolanm has joined the channel [15:32] sonnym has joined the channel [15:34] jakehow has joined the channel [15:34] jakehow__ has joined the channel [15:34] jakehow_ has joined the channel [15:34] arthurdebert has joined the channel [15:34] smtlaissezfaire has joined the channel [15:35] Spion has joined the channel [15:36] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [15:37] adrianmg has joined the channel [15:37] al3xnull has joined the channel [15:39] fmeyer has joined the channel [15:40] markdaws has joined the channel [15:42] drack0 has joined the channel [15:42] ronnieboy has joined the channel [15:44] TheJH: planned IRC downtime on thursday? that's... IRC can't be down! it's always there! NOOOO!!! [15:45] alnewkirk has joined the channel [15:45] nibblebo_ has joined the channel [15:46] dmkbot: joyent/node: jetlan: node v0.5.5 + mingw 'PROCESS_MEMORY_COUNTERS' was not declared in this scope - https://github.com/joyent/node/issues/1662 [15:46] dmkbot: joyent/node: jetlan: node v0.5.5 + mingw undefined reference to `GetProcessMemoryInfo@12' - https://github.com/joyent/node/issues/1663 [15:46] drack0: hello all have a good day, i just wanted to know what is the best setup for node.. i had a look to nvm (like an incomplete rvm for ruby) and nave, so what you think is the best setup? [15:46] brainproxy: drack0: I've had good experiences with nvm, which installs not only node but also npm [15:47] dmkbot has joined the channel [15:47] DrMcKay: this instance should be more stable ^ [15:47] stephank has joined the channel [15:47] drack0: on nvm you can create a similar file to the .rvmrc file in rvm ? [15:48] wilmoore has joined the channel [15:48] Illusioneer has joined the channel [15:49] brainproxy: no, I don't think so, at least I never have; but the way npm and the node_modules lookup work, I don't think too much customization is needed [15:49] Yuffster_work has joined the channel [15:51] tjholowaychuk has joined the channel [15:52] Badababuba has joined the channel [15:53] brainproxy: drack0: what "..rc" style customizations are you concerned about? that is, what is it do you think that nvm may not support? [15:53] slloyd has joined the channel [15:54] drack0: for example to run on one app a different set of npm packages, or node versions [15:54] brainproxy: well, npm favors localized module installation [15:54] dgathright has joined the channel [15:54] brainproxy: e.g. suppose you have ~/myapp [15:55] brainproxy: then in ~/myapp you would `npm install` whatever you need [15:55] jacobolus has joined the channel [15:55] TheJH: brainproxy, "favors"? I don't think there's another way. [15:56] brainproxy: TheJH: true enough, though some people will still setenv NODE_PATH before invoking the node runtime [15:56] TheJH: brainproxy, uargh, ugly! [15:56] TheJH: brainproxy, but you have a point, yes :D [15:56] brainproxy: TheJH: yah, I'm not defending it :) [15:56] CoverSlide: if you want to have global packages, use npm link [15:57] DrMcKay: lol? [15:57] brainproxy: right, npm link is nice [15:57] dmkbot: joyent/node: fprijate: Wrong fs.stat size on win32 - https://github.com/joyent/node/issues/1647 [15:57] dmkbot: joyent/node: koichik: Buffer.write() should always set Buffer._charsWritten - https://github.com/joyent/node/issues/1633 [15:57] DrMcKay: can anyone tell me how is this even possible: https://github.com/joyent/node/pull/1649 ? [15:57] Illusioneer has left the channel [15:57] Glenjamin: why would you have global packages for anything other than command line tools? [15:57] sub_pop has joined the channel [15:57] DrMcKay: (hint: I didn't add any commits) [15:57] CoverSlide: if you work offline a lot [15:57] CoverSlide: like me [15:58] pizthewiz has joined the channel [15:58] Glenjamin: hrm, good reason [15:58] brainproxy: Glenjamin: well what CoverSlide said, but also some folks are trained to think that way because of how perl and other tools they've used handle modules [15:58] lou_ has joined the channel [15:58] Glenjamin: can anyone recommend some irc-bot framework that has a decent plugin system? [15:58] trotter has joined the channel [15:59] DrMcKay: Glenjamin: my, my! :D [15:59] TheJH: Glenjamin, kohai is VERY plugin-centered [15:59] DrMcKay: Glenjamin: https://github.com/mmalecki/dmkbot [15:59] DrMcKay: or kohai, I like it as well [15:59] TheJH: Glenjamin, kohai even has one process per plugin, so you can kill/restart plugins without crashing everything [15:59] brainproxy: ^ cool [15:59] CoverSlide: oh that's sweet [16:00] Glenjamin: what does it use for IPC? [16:00] CoverSlide: is kohai hook-based? [16:00] TheJH: Glenjamin, kohai is the support bot in #nodejitsu written by AvianFlu (head support guy of nodejitsu), it uses hook.io (written by the nodejitsu guys) [16:00] TheJH: CoverSlide, I think so [16:00] CoverSlide: cool [16:01] perezd has joined the channel [16:01] Glenjamin: looks reasonable, i'll have a poke around [16:01] TheJH: but my bot is cool, too (but no plugins) :D [16:02] TheJH: !admin eval "me cool!" [16:02] jhbot: me cool! [16:03] BillyBreen has joined the channel [16:05] yozgrahame has joined the channel [16:05] mhauri has joined the channel [16:06] mynyml has joined the channel [16:07] __doc__ has joined the channel [16:07] alvaro_o has joined the channel [16:12] mdz has joined the channel [16:13] jimt_ has joined the channel [16:16] fmeyer has joined the channel [16:17] dmkbot: joyent/node: koichik: Buffer.write() should always set Buffer._charsWritten - https://github.com/joyent/node/issues/1633 [16:19] BrianTheCoder has joined the channel [16:19] FireyFly|n900 has joined the channel [16:20] Venom_X has joined the channel [16:20] nevir has joined the channel [16:21] CIA-30: node: 03Thomas Shinnick 07master * r4cf0ce5 10/ (9 files): (log message trimmed) [16:21] CIA-30: node: docs: typos and minor edits in several modules [16:21] CIA-30: node: Mostly quite minor edits. Those possibly of more interest are: [16:21] CIA-30: node: emitter.setMaxListeners(n) [16:21] CIA-30: node: That the limit is per event name for an emitter. [16:21] CIA-30: node: fs.readlink() [16:21] CIA-30: node: Not a path, but rather the symbolic link's string value, which [16:21] bartt has joined the channel [16:22] Deegie has joined the channel [16:22] JaKWaC has joined the channel [16:22] ecin has joined the channel [16:23] JaKWaC has joined the channel [16:23] smathy has joined the channel [16:24] russell has joined the channel [16:26] hkjels_ has joined the channel [16:27] boaz has joined the channel [16:27] dmkbot: joyent/node: jordansissel: Add '.' '+' and '-' in url protocol pattern - https://github.com/joyent/node/issues/1603 [16:27] nym has joined the channel [16:27] bengrue has joined the channel [16:32] tylerstalder has joined the channel [16:32] ronnieboy has joined the channel [16:33] mrsrikanth has joined the channel [16:35] davidsklar has joined the channel [16:35] mrdoodles has joined the channel [16:35] mrdoodles: afternoon everyone! [16:38] CoverSlide: good morning mrdoodles [16:38] mrdoodles: how's everyone noding ha [16:38] Metal3d has joined the channel [16:39] _sorensen_: pythoning unfortunately [16:39] _sorensen_: but g'mornin! [16:39] CoverSlide: im bashing [16:39] gr-eg has joined the channel [16:40] levi501d has joined the channel [16:41] chjj: backing up ssh keys is such a pain [16:41] frega has left the channel [16:41] chjj: tar and gzip, encrypt, then time to go in another tarball [16:42] chjj: should prolly encrypt that for good measure [16:42] captain_morgan has joined the channel [16:44] jmiller_ has joined the channel [16:44] mrdoodles: oh no python! [16:44] mrdoodles: yeah on the ssh keys. [16:44] mrdoodles: ever work between machines on various iOS projects? certificate nightmares! [16:45] DrMcKay: bnoordhuis: sorry, I haven't noticed that PR with +, - and things :( [16:45] eee_c has joined the channel [16:45] vikstrous__ has joined the channel [16:46] broofa has joined the channel [16:49] bartt has joined the channel [16:49] einaros: has anyone else poked around with large mongodb datasets from node? [16:49] amerine has joined the channel [16:50] mrdoodles: not me einaros [16:50] softdrink: chjj: relevant: http://frontalot.com/index.php/?page=lyrics&lyricid=41 [16:51] einaros: the speed has been fairly good up until 20ish million docs in one db, at 5gb total size / 4gb index size [16:51] einaros: probably could use more ram [16:51] flou has joined the channel [16:51] chjj: softdrink: what am i looking at here? [16:52] ossareh has joined the channel [16:52] softdrink: your ssh keys -> tar -> gzip -> encrypt -> etc reminded me of that song [16:52] chjj: softdrink: this is super nerdy [16:53] softdrink: nerdcore hip hop is indeed nerdy. :D [16:53] FireFly has joined the channel [16:53] c4milo has joined the channel [16:53] hekkwan has joined the channel [16:54] blueadept has joined the channel [16:54] booo has joined the channel [16:54] brmouzon_ has joined the channel [16:56] nakkor has joined the channel [16:57] `3rdEden has joined the channel [16:59] navaru has joined the channel [16:59] navaru has left the channel [17:00] nibblebot has joined the channel [17:01] aguynamedben has joined the channel [17:02] CoverSlide has joined the channel [17:02] zemanel has joined the channel [17:02] dmkbot: joyent/node: jordansissel: Add '.' '+' and '-' in url protocol pattern - https://github.com/joyent/node/issues/1603 [17:02] zcopley has joined the channel [17:02] TooTallNate has joined the channel [17:03] hekkwan has joined the channel [17:04] ckpcw has joined the channel [17:05] teknopaul1 has joined the channel [17:05] skm has joined the channel [17:05] gazumps has joined the channel [17:06] hermanjunge has joined the channel [17:06] ericnakagawa has joined the channel [17:07] JaKWaC has joined the channel [17:07] mrdoodles: is there a way to get more 'data' about an object than console.log? [17:08] mrdoodles: i.e., i have an object created by a third party that i want to completely inspect [17:08] mrdoodles: (once its created) [17:08] ctide: http://nodejs.org/docs/v0.3.1/api/util.html#util.inspect [17:08] ckpcw: https://github.com/dannycoates/node-inspector [17:09] micheil has joined the channel [17:10] brion has joined the channel [17:10] brion has joined the channel [17:10] mrdoodles: hmm [17:11] softdrink has joined the channel [17:12] dguttman has joined the channel [17:13] mikedeboer has joined the channel [17:13] StanlySoManly has joined the channel [17:17] mrdoodles: thx guy [17:17] mrdoodles: guys [17:17] dmkbot: joyent/node: jordansissel: Add '.' '+' and '-' in url protocol pattern - https://github.com/joyent/node/issues/1603 [17:17] ckpcw: np dood [17:17] felixhummel has joined the channel [17:18] dylang has joined the channel [17:20] julien51 has joined the channel [17:20] julien51: hello [17:21] julien51: Is there any managed node.js hosting that allows one to open "unconventional" ports? We have created an XMPP server using node [17:21] adrianmg has joined the channel [17:22] julien51: and we need to be able to listen on 5222 and 5269 [17:22] julien51: we tried heroku, but no luck…. I tried Joyent, but I'm still waiting to hear from the folks there. [17:22] ryanjarv has joined the channel [17:24] chrislorenz has joined the channel [17:24] N0va` has joined the channel [17:26] eignerchris has joined the channel [17:27] shanez has joined the channel [17:29] teknopaul2 has joined the channel [17:30] guillermo has joined the channel [17:31] slyphon has joined the channel [17:31] nahime has joined the channel [17:31] pen_ has joined the channel [17:32] dmkbot: joyent/node: jordansissel: Add '.' '+' and '-' in url protocol pattern - https://github.com/joyent/node/issues/1603 [17:32] Daegalus: BLAH, i hate abstraction. Abstracting the DB is a bitch >.> [17:32] Daegalus: though, chances are, I am not doing it right [17:32] Daegalus: so i am causing more problems than solving them [17:33] sbisbee has joined the channel [17:33] gerad has joined the channel [17:34] nibblebot: tjholowaychuk: node-migrate still being developed? [17:34] skunk1ape has joined the channel [17:34] tjholowaychuk: nibblebot maintained yeah, it does what i want it to do for now [17:34] tjholowaychuk: so there's nothing to change [17:34] nibblebot: cool, going to use it w/ mongoose [17:34] wbednarski has joined the channel [17:34] fmeyer has joined the channel [17:35] Sidnicious has joined the channel [17:35] Sidnicious has joined the channel [17:37] dnjaramba has joined the channel [17:37] simenbrekken has joined the channel [17:38] Daegalus: Is there anyway to add additional parameters to a callback like here: https://gist.github.com/83d5e3459b5ff71aa4a3 I need to pass in req/res to the callback. These parameters are not part of what .toArray() returns (it only returns err,data) teh callback function has (err, data, req, res). Is there anyway to get the callback data from toArray, then add the 2 additional parameters? [17:39] dnyy has joined the channel [17:45] `3rdEden has joined the channel [17:47] bartt has joined the channel [17:48] irahgel has left the channel [17:48] Cromulent has joined the channel [17:48] skunkape has joined the channel [17:48] al3xnull has joined the channel [17:50] ako has joined the channel [17:50] yorick: is there any way I can use IBM DB2 with node.js? I found node-odbc, but it is missing prepared statements :/ [17:50] lapfrog has joined the channel [17:51] grekko has joined the channel [17:54] cjm has joined the channel [17:56] hybsch has joined the channel [17:57] dmkbot: joyent/node: kuebk: Unexpected behavior of console.log under certain condition - https://github.com/joyent/node/issues/1634 [17:57] brannig has joined the channel [17:57] lapfrog: did that bot announce an issue? [17:57] tomtomaso has joined the channel [17:58] vidi has joined the channel [17:58] gxdssoft has joined the channel [17:58] Destos has joined the channel [17:58] hermanju_ has joined the channel [17:58] tomtomaso has joined the channel [17:59] JaKWaC has joined the channel [17:59] nakkor1 has joined the channel [17:59] robotmay has joined the channel [18:00] kenperkins: is there an elegant way to have node listen on the same port for multiple servers [18:01] mattrobenolt: kenperkins: Not possible with anything. That's where vhosts come into play. [18:01] kenperkins: vhosts meaning a second, third, etc virtualized os? [18:01] mattrobenolt: No, similar to vhosts in Apache or nginx, whichever. [18:01] lapfrog: kenperkins: no, it means you read the Host: field from the http header [18:01] kenperkins: got it [18:01] lapfrog: kenperkins: and serve files based on that [18:02] kenperkins: that's what I was looking fo [18:02] mattrobenolt: Here's a node.js implementation: http://coolaj86.info/articles/vhosts-with-nodejs.html [18:02] mattrobenolt: I'm not sure if there is a better one or not. [18:04] tylerstalder has joined the channel [18:05] context: there is an addon for pow to handle node vhosts as well [18:06] mattrobenolt: What I do is use Nginx as a proxy into my node app, and I handle the vhosts there. Then spawn each Node app on it's own port. [18:06] ckpcw has left the channel [18:06] tylerstalder has joined the channel [18:06] mattrobenolt: That's easier, if, in fact, they are completely separate standalone apps. [18:06] Deegie has joined the channel [18:07] lapfrog: you could just run shell scripts then [18:07] lapfrog: what's the point of async? [18:07] context: lapfrog: that question is extremely vague [18:08] lapfrog: he said he uses nginx to proxy for his app [18:08] lapfrog: that means nginx is listening on the socket [18:08] lapfrog: doing the async stuff itself [18:08] nakkor has joined the channel [18:08] hermanjunge has joined the channel [18:08] context: nginx does do evented io... so does node [18:09] mikekell1 has joined the channel [18:09] lapfrog: well yeah but in this case it does it before node, and why would node need to do it anymore? [18:09] context: lapfrog: he is saying he uses nginx cause handling vhosts in nginx is easier than maintaining some 'hack' node app to handle all his other apps [18:09] context: most node apps are standalone to begin with. [18:09] mattrobenolt: If you've ever worked with wsgi, node works almost exactly the same way. [18:09] dshaw_ has joined the channel [18:09] lapfrog: wsgi -> never heard of, sorry :) [18:09] context: lapfrog: im not sure whether it 'needs to or not' has anything to do with it. [18:09] JaKWaC has joined the channel [18:10] lapfrog: meh [18:10] context: lapfrog: just cause nginx is in front of it doesn't mean nginx wont give node multiple requests at a time [18:10] lapfrog: on the same port? [18:10] mattrobenolt: Node just spawns a very simple http server. Typically another actual web server is sitting in front proxying back to the node instance. [18:10] context: lapfrog: sure? [18:10] mattrobenolt: So nginx or Apache, or Lighttpd is running on port 80, and your node app maybe on 8000. [18:11] lapfrog: sorry, i just got into node, but have been doing async in C and libevent for a while :) [18:11] mattrobenolt: Nginx will proxy the call back to port 8000 if you tell it to. [18:11] context: lapfrog: i imagine most if not all people have nginx or other web server in front of node for any production environment. [18:11] Daegalus: Can anyone look over this and tell me if there is a better way of doing this. I don't like the fact that I am still doing Mongo specific things in my main file: https://gist.github.com/0975b92f7a09d23aa0cf [18:11] mattrobenolt: context: Typically, yes. You wouldn't want to expose Node to the public raw. [18:11] stagas has joined the channel [18:11] gerad has joined the channel [18:12] context: lapfrog: there is no reason nginx cant give node multiple requests at once if it gets multiple requests for it... [18:12] mattrobenolt: Node doesn't come with all of the securities that something like nginx or Apache has. [18:12] lapfrog: i guess i don't know how nginx works [18:12] jhurliman has joined the channel [18:13] mattrobenolt: Nginx can be looked at as a load balancer or proxy. [18:13] context: nginx works like apache, it gets web requests and handles them.... [18:13] sivy has joined the channel [18:13] mattrobenolt: It is meant to proxy into another running instance. Whether it's PHP running on fcgi, a Python app in wsgi, node, or serving static files, or any number of things. [18:13] lapfrog: oh i see [18:14] lapfrog: sounds useful for complex stuff [18:14] mattrobenolt: Unlike Apache, nginx doesn't do any app processing. [18:14] mattrobenolt: Apache can embed applications that run within it's processing space. Like a PHP app. That's why Apache uses a ton of RAM. [18:15] context: lapfrog: nginx will handle any static requests faster than ANY app required to handle dynamic requests... why waste node's time serving css/js/image files when nginx/apache will do it better, and keep node available for handling requests its really needed for. [18:15] mattrobenolt: Nginx requires your app to be running in some other fashion and expects to delegate requests into your app. Which node is geared for perfectly. [18:15] mattrobenolt: That too. Let nginx take over the static files. :) [18:15] hij1nx has joined the channel [18:15] flou has joined the channel [18:16] `3rdEden has joined the channel [18:16] jhurliman: context, because you can do really cool things with static files served up from node, like pre-processing your css/js/images to minify, embed images as base64, convert all your js files into a single resource, etc [18:16] context: lapfrog: and there is a good chance apache/nginx might notice requests as hostile/incorrect and reject them as well without wasting your apps time. [18:17] jhurliman: but otherwise, nginx is a better file server [18:17] context: jhurliman: yeah, but what retard is minifying css/js for every request. [18:17] lapfrog: jhurliman: you can cache those on deployment [18:17] jhurliman: context, no one? i didn't suggest that [18:17] context: you minify it and write the damn file to disk [18:17] context: and.... let nginx handle it [18:17] mattrobenolt: jhurliman: You really think applications are constantly minifying things on the fly? That's why we have build scripts. [18:17] jhurliman: mattrobenolt, no [18:18] lapfrog: you probably think: generated images [18:18] mattrobenolt: Generated images are one thing, but those can still get proxied past nginx into your app. [18:18] zeiris has joined the channel [18:18] context: lapfrog: you are still wasting nodes time on something nginx does better... and thats one less request at that time that node could better be spent doing something useful, like letting someone login, or post a comment, or submit a ticket, etc etc etc [18:19] lapfrog: nginx can generate images dynamically? [18:19] context: [18:19] mattrobenolt: lapfrog: Technically, yes. Practically, no. [18:20] lapfrog: anyway i'm not interested in making high-load http apps right now [18:20] context: depending on this 'image' i would probably use an html5 canvas and not have the server do shit. [18:21] context: then dont worry about it [18:21] lapfrog: all i want to do is a cube2 server with the new enet-js module for node, and with a bunch of features like http console, sql logging and retrieval, irc bot and maybe RPC [18:21] lapfrog: it's a game [18:21] lapfrog: game server* [18:21] bengrue has joined the channel [18:21] context: honestly, i wouldn't have that much crap running in a single node instance. [18:21] context: especially if you want it to be stable [18:22] lapfrog: but they have to access the same data [18:22] lapfrog: the irc bot, the http console [18:22] mattrobenolt: lapfrog: Redis. [18:22] lapfrog: ACTION googls [18:22] necrodearia has joined the channel [18:22] khmer has joined the channel [18:22] jhurliman: i wouldn't worry about getting nginx proxying your static assets at this stage. it's something easy to bolt on later, and if you need the extra resources you can push the files to a CDN instead of writing to disk for nginx [18:23] context: lapfrog: so? [18:23] khmer: hey folks, do you know if jsdom has support for createTreeWalker? [18:23] context: lapfrog: pretty sure ANY database allows multiple connections at once. [18:23] hybsch has joined the channel [18:23] lapfrog: no no no [18:23] micheil: lapfrog: why does your own node process actually need to do that many things? [18:23] lapfrog: there is a current client list [18:23] lapfrog: the players connected to the server [18:23] context: lapfrog: and why... you want this game to be stable no? so someone loads 5K irc bots in your channel and floods the room, your node process is F*cked [18:23] ryanfitz has joined the channel [18:23] wadey has joined the channel [18:23] lapfrog: hm [18:23] mattrobenolt: Seriously, look into Redis. It's made for that shit. [18:24] micheil: like irc and gaming are totally different, in many ways [18:24] khmer: crap, it really looks like it doesn't. :( [18:24] lapfrog: i don't really worry about that flooding thing [18:24] context: subpub or just a queue table in any SQL server or a message delivery server [18:24] khmer: i'm going about this completely the wrong way, aren't i [18:24] context: lapfrog: there is a reason people split things up. [18:24] elijah-mbp has joined the channel [18:24] cronopio has joined the channel [18:24] micheil: unless of course your game is played via irc, in which case it'd make sense to do the two in the same process.\ [18:24] lapfrog: no, no :) [18:25] context: lapfrog: ok still, you are being closed minded on purpose. stop trolling the room, or use your head... there is a bug in your irc code, "oh sorry everyone gotta take down the game and the website, and the irc bot to fix one small issue in the irc bot" [18:25] context: lapfrog: its a game, who cares about that irc bot. [18:25] lapfrog: well the admins for one [18:25] lapfrog: besides [18:25] micheil: admins are not your users. [18:25] lapfrog: hm [18:25] mattrobenolt: You want separate services. [18:25] cconstantine_ has joined the channel [18:26] lapfrog: the only thing i can think of is perhaps having the irc bot talk through a pipe with the rest of the app [18:26] context: lapfrog: and any intelligent admin (i have quite a few years admin experience managing >dozen servers) you dont smash that much crap into one process. you break them up, so IF someone does hack one of them, they didn't just destroy EVERYTHING [18:26] micheil: ACTION works for pusher, and we regularly do deploys to our administration site, but it's incredibly hard for us to restart / take down websocket servers as that'd mean disconnecting all connected clients and stopping them from getting their messages. [18:26] micheil: ie, separation makes sense. [18:27] context: lapfrog: you just gave your irc bot access to ALL your game data, someone find a big in your irc bot code, question, give them access to next to no data (what already gets posted to irc) ... or access to everything.... [18:27] micheil: lapfrog: what's the irc bot actually got to do? [18:27] slyphon has joined the channel [18:27] lapfrog: it basically prints out in-game chat and some in-game events [18:27] lapfrog: and allows irc people to talk to in-game people [18:27] varrg has joined the channel [18:27] micheil: okay [18:27] lapfrog: and irc people with a password to login to the bot and run some commands [18:28] context: lapfrog: there is a reason even your os and desktop games are sometimes ran in multiple processes.. any game iD has created in the last 12+ years, even for single player runs a server and client process. [18:28] bartt has joined the channel [18:28] micheil: so, you would probably want to have the irc component just passing messages to a shared message broker for the game [18:28] lapfrog: hm [18:28] lapfrog: perhaps you're right [18:28] lapfrog: i remember something about remote console from darkplaces [18:28] mattrobenolt: Again, Redis. :) [18:28] lapfrog: the irc bot basically connected to the remote console as a client [18:28] micheil: mattrobenolt: redis isn't a magic bullet. [18:28] context: lapfrog: thats a totally different subject [18:29] context: anyways [18:29] context: lapfrog: how young are you? [18:29] lapfrog: right. that matters why? [18:29] micheil: context: irrelevant [18:29] lapfrog: i'm irrelevant years old lol [18:29] Yuffster_work has joined the channel [18:29] Orion- has joined the channel [18:29] context: micheil: it would define if he is in fact just young, or infact a troll. [18:29] lapfrog: "how old are ya son? lemme show you how REAL javascript is done" [18:29] mattrobenolt: micheil: I'm aware, but it is one of the tools that is fast enough to act as a transport of messages between processes without bloat. [18:30] micheil: context: perhaps take a step back. [18:30] sudsey has joined the channel [18:30] lapfrog: I think I'll have some sort of control socket that reads and writes json [18:30] micheil: mattrobenolt: yeah, I'm not saying it's not good, hell no, we use it extensively at pusher, but it's not the be-all and end-all. [18:30] context: micheil: just his amazing way of jumping topics and spouting off comments that have nothing to do with what he is talking about and having 5 people talk about it for 10 more minutes is enough for me [18:31] lapfrog: and the irc bot can just connect to that socket and read the chat json [18:31] mattrobenolt: Right, but if these questions are being asked, Redis is a great start until you understand the needs better of your app. [18:31] lapfrog: maybe i can make a protocol and an event mask, so that when a client connects to that socket, it only sends selected events [18:31] context: we went from 'whats the point of async?' to 'whats nginx' to 'run everything in one process' to 'remote console' [18:31] sudsey: hey anyone free to help a node.js noob? [18:31] micheil: context: bringing age into this discussion is a very very bad idea, I know for a fact that the contibutors to node.js core have ranged in age from anywhere between 17 and probably 60 [18:31] lapfrog: im 26 if you must know [18:31] Wa has joined the channel [18:32] lapfrog: i do php development [18:32] context: micheil: kk, you're probably right on that. [18:32] varrg has left the channel [18:32] micheil: which is why you may not know about certain technologies in certain fields. [18:32] lapfrog: and i've been doing libevent development for this game server. currently it is written in C, C++, php, MySQL, html, js, css, and cubescript (lisp-like) [18:32] lapfrog: and i figured i'd reduce it to js, mysql, html, css :) [18:32] lapfrog: oh and irc [18:32] micheil: ie, when I did php development, I certainly didn't know much about nginx. [18:32] lapfrog: if that's a language >_> [18:32] context: so you already have multiple process hitting you data at once... and you question it cause you're writing it in node [18:33] lapfrog: i questioned nothing, i just told you my story, bro [18:33] lapfrog: :) [18:33] cronopio: sudsey: Im a n00b too, maybe we could help each other [18:33] lapfrog: what about you guys? a/s/l pls? [18:34] context: 3:22 lapfrog| but they have to access the same data [18:34] context: 13:22 lapfrog| the irc bot, the http console [18:34] context: sorry, you assumed. [18:34] sudsey: hey crono [18:34] lapfrog: i assume this low-use server will run fine with everything in one process :P [18:35] lapfrog: but i'll try the control socket thing [18:35] micheil: lapfrog: I'd probably say that it'd be a good idea to split the two apart, being a client and server in one can get really confusing (in all languages) [18:35] context: sudsey, cronopio: you generally get better results if you skip the 'can i ask a question?' part [18:36] zomgbie has joined the channel [18:36] micheil: sudsey: cronopio, could you repeat your questions? [18:36] sudsey: ok, well anyone here know how to populate a drop down list with a file in nodejs, scraped the web and found nothing [18:36] lapfrog: that's what i'm doing - the core will be the game server, and the control socket server. the control socket will be a JSON pipe-thing [18:36] context: lapfrog: it may be low-use. what happens in the future if it gets really busy? whats easier, having it be seperate processes to begin with, or attempting to split it into multiple processes later? [18:36] sudsey: I remember doing it with js before with html...but that was a long time ago [18:36] lapfrog: it won't, this is a lame game :)) [18:36] stagas has joined the channel [18:37] context: then just go make it, why talk about it for on here for 30 minutes [18:37] langworthy has joined the channel [18:37] micheil: sudsey: hmm, not sure I understand the questions. [18:37] micheil: *question [18:37] mattrobenolt: lapfrog: context: haha [18:37] julien51: hey, is there any managed host for node.js that allows for more than port 80? [18:37] context: lets talk about going on vacation to the bahamas for half a day, even though neither of us have the money. [18:37] julien51: We would love to find a place where we can easily deploy our XMPP servers in nodes! [18:37] lapfrog: i'm going on vacation friday to monday if everything goes well :) [18:37] lapfrog: seaside [18:38] micheil: julien51: hmm, not sure, I don't think so, unless joyent allow that some how. [18:38] context: ... anyways [18:38] sudsey: well say in nodejs u can write a body of htl txt, I went thro an example creating a text field, then being able to upload a picture [18:38] julien51: micheil : thx buddy… this makes me sad. [18:38] micheil: julien51: oh, right, it's you; hi hi. [18:38] berasa has joined the channel [18:38] context: julien51: amazon, rackspace ? [18:38] micheil: julien51: probably safer to keep them close to your application servers [18:38] julien51: micheil: it's me, indeed :) [18:38] sudsey: well now I want a dropdown list instead, but instead of hard coding the options, I want to populate the options that are contained in a file [18:39] julien51: context: well, these are not managed host [18:39] context: julien51: or email whereever you are considering, i imagine they are willing to modify rules. [18:39] Yuffster_work has joined the channel [18:39] context: none of them really say 'http only' i dont think [18:39] bengrue has joined the channel [18:39] julien51: context: thx, I'll do that with joyent and their no.de service [18:39] micheil: sudsey: are you using anything like a templating language for node.js? [18:39] deedubs_ has joined the channel [18:39] julien51: context: they don't, but as a matter of fact, none of them exposes a port that is not 80 anyway [18:40] sudsey: micheil: no, just plain node.js [18:40] context: julien51: how do you know that? [18:40] micheil: sudsey: you'd have to give me more. [18:40] patcito has joined the channel [18:40] julien51: context : because we tried 2 of them (heroku & no.de) and both are blocked [18:40] sudsey: micheil: ok, one sec [18:40] rsdio has joined the channel [18:40] context: julien51: you realize it may appear blocked cause nothing is listening on it? [18:40] julien51: micheil : not sure I get the " probably safer to keep them close to your application servers" ? [18:40] context: julien51: doesn't hurt to ask. [18:40] micheil: julien51: yeah, as both need to punch holes in various load balancers and stuff [18:41] Skola has joined the channel [18:41] sudsey: micheil: http://www.nodebeginner.org/#head8 this is the tutorial I used [18:41] julien51: context: I do realize, and I have tested and I can safely connect "locally" from the server, to the server on port 5222 (which is what I need), but I can't access it from here (anywhere outside). [18:41] micheil: julien51: okay, maybe I'm interpreting the question differently based on my prior knowledge? [18:42] harthur has joined the channel [18:42] sudsey: micheil: So, you end up with a basic httpserver, that allows u to upload a picture and then it echos it back (shows it again), I want to change it so you can selet options from a dropdown list on what country u r from [18:42] vampi-the-frog has joined the channel [18:42] vampi-the-frog has joined the channel [18:42] julien51: micheil: to be honest, I'm not sure why they have to enforce a different behavior for port 80 [18:42] micheil: julien51: like I said, it's due to load balancer configurations [18:43] DrMcKay has joined the channel [18:43] julien51: micheil: yeah, I guess.... [18:43] micheil: your application actually runs on some sort of randomly assigned port, and then the load balancer is the thing that listens on port 80 [18:43] sudsey: Micheil: but I want the dropdown list (from which country you select your from) to be populated by a file [18:43] zeade has joined the channel [18:43] mehlah has joined the channel [18:43] arthurdebert has joined the channel [18:43] julien51: micheil: but I guess they could do the same for 5222 :) [18:44] micheil: sudsey: ah, right. So, I'd actually store that file as an extra module that you require() [18:44] micheil: then you load it up initially and then it's just like working with an array of items [18:44] micheil: julien51: it's a lot harder. [18:45] sudsey: micheil: you can assign the contents of a file to a var...but don't know what to do after that [18:45] julien51: micheil; why is that? [18:45] micheil: julien51: because of the way that the load balancers would more than likely work. [18:45] sudsey: micheil: like assign the data to the options of a dropdown list? [18:45] micheil: julien51: I think a couple of people to talk to would be people like the folks at nodejitsu, or joyent. [18:45] losing has joined the channel [18:45] micheil: julien51: as in, open a support request with them [18:46] julien51: micheil : I added my name to the nodejitsu list [18:46] julien51: I'll try when I can get in [18:46] cronopio: sudsey: you have some code all ready? [18:46] micheil: julien51: personally, I'd go joyent over nodejitsu, but ey' [18:46] kmiyashiro: joyent is free? [18:46] julien51: micheil : tried joyent, but there is no one in their support irc and no answer to email :/ [18:46] micheil: sudsey: uhh, more then likely some form of string concatenation. [18:47] micheil: julien51: hmm, when was this? they've been quite busy with node knockout of late, I'd say try again. [18:47] [Null] has joined the channel [18:47] sudsey: micheil: hmm ok, I'm just surprised there isn't some help on the net [18:47] micheil: kmiyashiro: hmm, I don't think so. But I could be wrong. [18:48] julien51: micheil email on friday, irc is now, I posted to bbs earlier today : http://discuss.joyent.com/viewtopic.php?id=30712 I'll email again [18:48] micheil: sudsey: it's an age old problem: how do I get values into a template. [18:49] skunkape has joined the channel [18:49] Knifed has joined the channel [18:50] sudsey: micheil: yh..:( [18:50] `3rdEden: julien51 you can try nodester, but i'm not 100% sure it does allow it [18:50] micheil: julien51: oh, and I'll ping you in a bit about the thing I mentioned quickly on skype this morning [18:50] julien51: micheil : yup, looking forward to it! [18:50] julien51: `3rdEden: thx, i'll look them up [18:50] atiti has joined the channel [18:50] khmer: so has anyone tried to use TreeWalker or NodeIterator objects in jsdom? [18:51] Knifed: ok node.js put javascript on server but what is the actual + over others? [18:52] Knifed: still its http requests and responses [18:52] stisti has joined the channel [18:53] khmer: Knifed: asynchronicity and evented i/o [18:53] kmiyashiro: Knifed: it's javascript [18:53] olnoeve has joined the channel [18:54] mike5w3c_ has joined the channel [18:54] tomtomaso has joined the channel [18:54] olnoeve has left the channel [18:54] Knifed: any example of evented i/o was this unable to achive before [18:54] Knifed: ? [18:54] mattrobenolt: Knifed: Node isn't doing anything… new per-say. It's just being done in a language that some people are more comfortable with. [18:55] markwubben has joined the channel [18:55] khmer: any given example could probably be achieved in another language or framework, but the callback pattern in JS is especially easy [18:55] bartt has joined the channel [18:56] mattrobenolt: You can get away with the same functionality in other languages like Python or Ruby, it's just not as intuitive for some as Javascript. Plus, Javascript from the beginning is based on callbacks and being event driven, unlike Python or Ruby or PHP for that matter. [18:56] _kud has joined the channel [18:56] context: knifed: yes and request and response are not instant, reading a file from the hdd is not instant, querying the database is not instant [18:56] context: knifed: just about NOTHING on a computer is instant [18:57] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [18:57] context: knifed: so while one request is waiting for the db to return data, node can handle another request or 50 [18:57] joeytwiddle: Knifed: the node page talks about how the node system can be more efficient than lots of separate threads (e.g. in java) [18:57] robhudson has joined the channel [18:58] joeytwiddle: although that argument might not hold so well for a processor with multiple cores [18:58] robhudson has left the channel [18:58] hermanjunge: Hi, somebody uses mvim or vim? [18:58] tbranyen: yea [18:58] tbranyen: whats up [18:58] softdrink: i do [18:58] softdrink: ♥ vim [18:58] hermanjunge: I'm trying to configure python autoindent [18:58] sudsey has left the channel [18:58] hermanjunge: my tabspace is 4 [18:58] Knifed: these are some solid reasons i see. [18:58] mattrobenolt: joeytwiddle: The argument is a difficult one in general. It has been going back and forth for years. I prefer to just stay out of it. :) [18:59] hermanjunge: but python is configured to do two tabspaces i autoindent [18:59] hermanjunge: and I have to press everytime I press ... sucks [18:59] hermanjunge: I'm in python.vim in the vim72/indent directory, but to be honest... I can't understand the script [18:59] softdrink: here's part of my .vimrc https://gist.github.com/c4cddb1c4f4b8646bfff [18:59] Knifed: is it now like javascript request handled by javascript [19:00] softdrink: (i don't do much python, so YMMV) [19:00] Knifed: ? [19:00] hermanjunge: of course [19:00] cronopio: hermanjunge: you can alternate between python config or js config [19:00] hermanjunge: I see [19:00] hermanjunge: autocmd FileType python set shiftwidth=4 tabstop=4 softtabstop=4 [19:00] cronopio: as said softdrink [19:00] hermanjunge: this overrides the tabstop , but only in python files [19:00] hermanjunge: I can, then set the tabstop in 2 [19:00] hermanjunge: let me try that [19:01] No9 has joined the channel [19:01] softdrink: here's my entire vimrc: https://github.com/jocafa/Bindle/blob/master/.vimrc [19:01] cronopio: hermanjunge: afterwards you can add FileType for JS [19:01] pt_tr has joined the channel [19:01] cronopio: softdrink: great config!!! thanks for sharing! [19:02] softdrink: no prob [19:02] akujin has joined the channel [19:02] hermanjunge: btw I love mvim [19:02] softdrink: you may find this shell script handy, too: https://github.com/jocafa/Bindle/blob/master/bin/install_vim_bundles.sh [19:02] hermanjunge: almost went to buy textedit [19:02] Nuck has joined the channel [19:02] hermanjunge: I came from windows background, here we have the mythic Notepad2 [19:02] igl1 has joined the channel [19:03] Skomski has joined the channel [19:03] CarterL has joined the channel [19:03] softdrink: hashrocket's dotmatrix is very much worth digging through as well: https://github.com/hashrocket/dotmatrix [19:04] softdrink: (which is where i ripped off that shell script from hehe) [19:04] jakehow__ has joined the channel [19:04] jakehow_ has joined the channel [19:04] jakehow has joined the channel [19:05] hermanjunge: OK [19:05] hermanjunge: this line worked like a charm in my /.vimrc [19:05] hermanjunge: autocmd FileType python set shiftwidth=4 tabstop=2 softtabstop=4 [19:05] hermanjunge: THanks a lot guys, this irc channel ROCKS! [19:05] softdrink: no prob [19:06] dandean has joined the channel [19:06] hermanjunge: how can I get you a beer @softdrink? [19:06] hermanjunge: :D [19:06] softdrink: lol [19:07] dmkbot: joyent/node: Kos: Misleading console output for arrays with undefined - https://github.com/joyent/node/issues/1651 [19:07] vikstrous_ has joined the channel [19:08] Renegade001 has joined the channel [19:08] Raynos has joined the channel [19:08] yozgrahame has joined the channel [19:08] Raynos: Has anyone got a cross call stack error handling solution yet? [19:08] Raynos: The whole event loop destroys call stack is frustrating [19:09] JaKWaC has joined the channel [19:09] halcyon918 has joined the channel [19:09] Knifed: well i have read some posts, is that right to say node is non-blocking thats why its much lighter as you said (async) ? [19:09] jesster7 has joined the channel [19:09] maushu has joined the channel [19:10] Raynos: Yes node is non-blocking, evented and asychronous [19:10] jesster7 has joined the channel [19:11] mattikus has joined the channel [19:12] Venom_X has joined the channel [19:13] Cromulent has joined the channel [19:14] postwait: Raynos: for what purpose. [19:14] postwait: typically, the only reason to look at the C++ call stack is to see problems in that layer. [19:14] Raynos: postwait: Figuring out which one of these 1000 lines fires a ECONNREFUSED error [19:14] postwait: in that case, you want to have the call stacks in the natural state (not cross call) [19:15] Raynos: https://gist.github.com/1198671 [19:15] qweeak has joined the channel [19:15] Raynos: What I meant is that the call stack shows me nothing. I'd be great if there was some magic thing which linked upto whatever tried to open a socket which fires ECONNREFUSED [19:16] aheckmann has joined the channel [19:16] Raynos: A library that tracks any interaction with a Socket then prints that whenever an error fires for said socket [19:16] qweeak has left the channel [19:17] postwait: what version are you using? (node) [19:17] halcyon918: hey folks... I'm playing around with node and while playing with the file system library I was thinking to pass have some object with a custom listener that would listen for an event to be emit from my callback to handle the file a certain way... is that what I'd use the EventEmitter for? I'd create a new library for my file tracker, have an event attached to it to aggregate files read in, and then in my file system callback, emit a messag [19:18] dshaw_ has joined the channel [19:20] Raynos: postwait: 0.4.10 I think [19:20] Raynos: halcyon918: yes, the event emitter is for custom events [19:20] Raynos: Also you may find that someone has written a file tracker [19:21] Raynos: I recommend you search the npm [19:21] synkro has joined the channel [19:21] softdrink: so uh… who's going to write a libcinder package? :D [19:21] halcyon918: well, it doesn't help me to learn the language by using someone else's library ;) I'm just doing some practice stuff for personal edification [19:21] postwait: Raynos: I use dtrace to find such things. [19:22] postwait: But.. the exception thrown should include infor about the socket on which it is excepting. [19:22] postwait: It does not.. it *should* [19:23] mraleph has joined the channel [19:24] Raynos: poastwait: then I have to learn how to use dtrace, ugh. [19:24] flou has joined the channel [19:24] nibblebo_ has joined the channel [19:25] postwait: learning, it's fundamental. [19:26] postwait: Raynos: use dtruss/truss/strace/ktrace…. [19:26] Raynos: I have never done TCP/HTTP debugging, its on the todo list [19:28] jbpros has joined the channel [19:28] madsleejensen has joined the channel [19:29] glimpsenirvana has joined the channel [19:30] dnjaramba has joined the channel [19:31] JJMalina has joined the channel [19:31] russell has joined the channel [19:32] dmkbot: joyent/node: Skomski: New win32 platform function: GetCPUInfo - https://github.com/joyent/node/issues/1664 [19:34] cconstantine_: is there anyway to have node timeout callbacks that take too long? [19:36] dshaw_1 has joined the channel [19:39] Raynos: cconstantine: not really, you can hack the C++ layer though [19:39] Raynos: I mean for HTTP there is a timeout build in, the same for TCP [19:39] Raynos: but not for generic callbacks [19:40] edude03 has joined the channel [19:40] cconstantine_: Raynos, hmm, I've got few active callbacks and one of them is getting into an infinite loop [19:40] m00p has joined the channel [19:40] cconstantine_: Raynos, effectivly stopping the whole server [19:41] Raynos: infinite loop? [19:41] Raynos: Your talking about recursion [19:41] cconstantine_: Raynos, and I'm not sure the best way to figure out where this infinite loop is (the callbacks interact with with each other so I can't just disable all but one) [19:41] Raynos: Oh, one of your callbacks has a while(true) loop [19:41] cconstantine_: Raynos, nothing like a while(true), but I do iterate over various datastructures [19:41] Raynos: Well time to debug it ;) [19:42] Raynos: and write unit tests [19:42] Raynos: that _finish_ ;) [19:42] cconstantine_: oh, I've got unittests [19:42] cconstantine_: rather complete ones [19:42] Raynos: Unless you want to run arbitary code you shouldnt have infinite loops [19:42] Raynos: I did look into running arbitary source code on a server and dealing with code taking too long and being infinite [19:42] cconstantine_: I have no while(true) type infinate loops [19:42] Raynos: The way to handle that is either process.fork or run it in a REPL [19:42] _kud has joined the channel [19:43] cconstantine_: but if I somehow managed to create a cycle in some of my datastructues it would result in an infinate loop [19:43] mraleph1 has joined the channel [19:43] davidascher has joined the channel [19:43] Raynos: But you dont want that, you want to debug your circular loop structures [19:44] wookiehangover has joined the channel [19:44] cconstantine_: process.fork? [19:44] cconstantine_: I'm in 0.4.11 [19:45] Knifed_ has joined the channel [19:46] slyphon has joined the channel [19:46] KingJamool has joined the channel [19:48] hellp has joined the channel [19:50] stisti has joined the channel [19:51] Fabryz has joined the channel [19:52] slyphon has joined the channel [19:53] mrdoodles: I've setup a slick tool to take loaded mongoose schemas/models and output them in a nice html format. for all of the other coders out there that also can … design? :P what docs, or model representations etc have you seen that look "HOT" [19:53] mrdoodles: i have my json being output and server, and most of my html ready. about to do the styling ... [19:54] sylvinus has joined the channel [19:56] EyePulp: mrdoodles: any live examples? [19:57] mrdoodles: EyePulp: did I wet your appetite or just curious? [19:57] chiyam has joined the channel [19:57] skm has joined the channel [19:57] mrdoodles: nah it's proprietary until the other founders OK the module going public…sorry no live. [19:57] mrdoodles: it's a pretty handy bin though [19:58] mrdoodles: It's just that most (as a designer too but programmer first) docs and generated docs that i have seen .. seem fugly. some haven't been though. i just can't remember urls, names etc [19:59] halcyon918: does the VM library allow arbitrary NodeJS code? should I be able to "require" additional libraries in code that's executed within a VM? [20:00] Orion- has joined the channel [20:00] halcyon918: (I tried to do a "console.log" from the arbitrary code and it griped about not being able to access "console" so I tried to "require" console, and it didn't like "require" [20:00] DrMcKay: halcyon918: console is not a module, it's a variable in global scope [20:01] DrMcKay: halcyon918: create a context and assign console to console key of this context [20:01] halcyon918: yeah, that's what I thought [20:01] halcyon918: ah, ok [20:01] KingJamool has joined the channel [20:01] stelleg has joined the channel [20:03] mehtryx has left the channel [20:03] cconstantine_: is there anyway to externally cause node to die and throw up a stacktrace? maybe a signal I can send it? [20:04] pandeiro has joined the channel [20:04] box has joined the channel [20:05] mrdoodles: cconstantine: a malformed http request? [20:05] halcyon918: hey DrMcKay, worked like a charm! thanks so much! [20:05] storrgie has joined the channel [20:05] cconstantine_: mrdoodles, the problem is that the main node server is spinning (presumably on some javascript code) and is unresponsive [20:06] mrdoodles: just kill the ps? or are you trying to debug [20:06] cconstantine_: trying to debug [20:06] batok has joined the channel [20:06] box has left the channel [20:07] freeformz has joined the channel [20:08] sivy has joined the channel [20:11] sonnym has joined the channel [20:12] DrMcKay: halcyon918: :) [20:12] nibblebot has joined the channel [20:12] thalll_ has joined the channel [20:14] vipaca has joined the channel [20:14] vipaca has joined the channel [20:15] gazumps has joined the channel [20:17] jakehow has joined the channel [20:17] jakehow_ has joined the channel [20:17] jakehow__ has joined the channel [20:18] hij1nx has joined the channel [20:18] Cromulen_ has joined the channel [20:18] chjj: github, y u no keep old layout? [20:19] bentkus: ??? [20:20] Cromulent has joined the channel [20:21] brion has joined the channel [20:21] febits has joined the channel [20:22] nuba has joined the channel [20:22] hij1nx_ has joined the channel [20:22] MikhX has joined the channel [20:23] christophsturm has joined the channel [20:23] MikhX has left the channel [20:24] ph^ has joined the channel [20:25] nibblebot has joined the channel [20:26] elijah|home has joined the channel [20:26] bartt has joined the channel [20:26] MikhX_ has joined the channel [20:27] mynameisbender has joined the channel [20:28] nakkor has joined the channel [20:29] tomtomaso has joined the channel [20:30] AAA_awright: github y u still use fixed-width layout? [20:30] alexdoom has joined the channel [20:30] ryanfitz has joined the channel [20:31] Badababuba has joined the channel [20:31] thalll has joined the channel [20:32] dmkbot: joyent/node: miksago: TODO: Use getopt_long() in ParseArgs - https://github.com/joyent/node/issues/344 [20:32] iammerrick has joined the channel [20:32] micheil: what up? [20:32] nakkor1 has joined the channel [20:33] _aron has joined the channel [20:36] mikl has joined the channel [20:36] Slayterson has joined the channel [20:37] Slayterson: Does anyone know how I can run node in production? [20:37] dmkbot: joyent/node: miksago: TODO: Use getopt_long() in ParseArgs - https://github.com/joyent/node/issues/344 [20:37] tbranyen: do or do not [20:37] tbranyen: there is no try [20:37] micheil: tbranyen: ? [20:37] tbranyen: well i guess there is a try [20:37] Slayterson: If there were to be an error it would stop the node server versus logging the error and giving a 500 or something. [20:38] tbranyen: try { my_production_code(); } catch(ex) { console.log('and that is why you fail'); } [20:38] tbranyen: Slayterson: look into cluster [20:39] abravo has joined the channel [20:39] jerrysv: Slayterson: tbranyen: or forever [20:40] Slayterson: tbranyen: jerrysv: thanks! [20:40] jerrysv: Slayterson: https://github.com/indexzero/forever [20:40] nakkor has joined the channel [20:41] Slayterson: Any pros/cons between each other that stand out? [20:41] simon1: is there a way to get jade to show the value of locals if a local is set? [20:41] jerrysv: Slayterson: i use forever, probably as ringing of an endorsement that you'll get on either from anyone [20:42] mynyml has joined the channel [20:42] abravo: does anyone know if there's a way to define behavior on a model in mongoosejs on initialize / new [20:42] abravo: for instance, new Model({ attributes... }) [20:42] fly-away has joined the channel [20:43] tbranyen: abravo: new Model(attributes) [20:43] abravo: i'm asking if there is a way to modify the behavior when calling new Model(attributes) [20:43] abravo: kind of like pre / post hooks for save, remove and init [20:45] halcyon918: is there a way to kill a "VM" like there is for a Child process? [20:45] Raynos: Slayterson: forever runs node in production, cluster scales node to n processes (where n = number of cores) [20:46] Fabryz: does anyone have a decent/recent tutorial for node.js and mongodb + mongohq? [20:46] al3xnull has joined the channel [20:46] Raynos: halcyon918: no, VM is blocking. [20:46] Raynos: Use the REPL or a child process [20:46] eee_c has joined the channel [20:46] halcyon918: Raynos: thx [20:46] TokyoDan_ has joined the channel [20:46] Raynos: I think the REPL blocks aswell, so run the REPL in a new process [20:47] Raynos: Also REPL docs are horrible, read the repl source https://github.com/joyent/node/blob/master/lib/repl.js [20:47] halcyon918: Raynos: I'll take a look at it [20:47] ap123 has joined the channel [20:47] Slayterson: Raynos: I see. Makes sense. [20:47] Slayterson: Thanks [20:47] ap123: Does node.js support e4x? [20:48] ryah has joined the channel [20:50] halcyon918: Raynos: correct me if I'm wrong, but REPL will create a separate process and the parent and child process won't be able to communicate between them, right? [20:50] halcyon918: I'd like the child to emit events the parent process can listen for, which I can do with the VM [20:51] Raynos: Last time I read the source it didnt create a process but just a VM [20:51] halcyon918: oh [20:51] V1 has joined the channel [20:51] halcyon918: ok, let me take a closer look then [20:51] Raynos: https://github.com/joyent/node/blob/master/lib/repl.js#L44 [20:51] Metal3d has joined the channel [20:51] Raynos: Since it doesnt include `child_process` I presume it just does some input/output piping into a VM [20:52] halcyon918: right... [20:52] halcyon918: cool, I'll try it out [20:52] Raynos: pipe code in, output of code comes out ;) [20:52] `3rdEden has joined the channel [20:52] Raynos: REPL might be overkill for what you want, you might just want to throw a VM on a new process instead [20:53] bartt has joined the channel [20:53] halcyon918: well, I was hoping to have some long-running code rule in a sandbox, communicating with the controller via events, and then from the controller be able to kill that process [20:53] halcyon918: rule = run [20:55] halcyon918: I can send a message to the long-running code to tell it to shutdown, but that assumes it's listening ;) [20:58] mynameisbender has joined the channel [20:58] jtsnow has joined the channel [20:58] stagas has joined the channel [21:00] fangel has joined the channel [21:01] softdrink: damnit. tjholowaychuck wrote yet another library that i desperately needed and didn't know it. [21:01] EyePulp: softdrink: which one? [21:02] EyePulp: makeyourcodeawesome.js ? [21:02] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [21:02] softdrink: move.js [21:02] stagas_ has joined the channel [21:02] EyePulp: link? [21:02] EyePulp: ACTION does not hide his laziness [21:03] softdrink: https://github.com/visionmedia/move.js [21:03] dylang has joined the channel [21:03] nerdy has joined the channel [21:03] dylang: I'd like to internationalize http://doodle.no.de - anybody have experience with any of the i18n node modules? [21:03] ap123: so…no love for e4x in node.js? [21:04] softdrink: no love for xml. from anyone. ever. [21:04] softdrink: :D [21:05] m00p has joined the channel [21:07] EyePulp: heh [21:07] mattrobenolt: ap123: It's apparently supported by V8, so it should work. [21:07] mattrobenolt: I haven't personally tried. [21:07] mattrobenolt: Oops, I read that wrong, it's NOT supported by V8. Sorry. :( [21:08] ap123: #curses# in general direction of google [21:08] mattrobenolt: The only engine that does is Spidermonkey. [21:09] ap123: does spider monkey support node? [21:10] Daegalus: Anyone able to help me clean this up? I am trying to get everythign abstracted and teh mongo-specific code out into mongo.js. But I couldnt get it to work with the toArray callback. So I have a .toArray in the mian file that i am not fond of: https://gist.github.com/0975b92f7a09d23aa0cf [21:10] mattrobenolt: Umm, I doubt it, but I'm not the person to officially answer that. [21:10] ap123: anyway thanks mattrobenolt [21:10] mattrobenolt: ap123: I know some dudes were working on a SpiderMonkey shim a while ago, but not sure how that turned out. [21:10] ap123: i can surely google [21:11] mattrobenolt: https://github.com/zpao/spidernode [21:11] sivy has joined the channel [21:11] mattrobenolt: No idea how stable it is. [21:12] CIA-30: node: 03Ben Noordhuis 07master * rb66d225 10/ README.md : [21:12] CIA-30: node: docs: document that the build system depends on python >= 2.5.2 [21:12] CIA-30: node: Fixes #354. - http://git.io/auvTAQ [21:12] olegp: that reminds me of https://github.com/lhofhansl/RhiNodeII - node api on rhino/jvm with javas new nio [21:13] olegp: apparently performs better than node in some benchmarks [21:13] Vertice has joined the channel [21:13] bnoordhuis: that reminds me, how is spidernode coming along? [21:14] nforgerit has joined the channel [21:14] Drakonite has joined the channel [21:14] zpao: bnoordhuis: mostly stalled (though i've been wanting to get it going again) [21:14] fmeyer has joined the channel [21:14] bnoordhuis: zpao: ah, that's too bad [21:14] eboyjr has joined the channel [21:15] Vertice has joined the channel [21:15] zpao: bnoordhuis: indeed :/ we all got busy with our real day jobs and it just became lower priority [21:16] TechCel has joined the channel [21:17] dmkbot: joyent/node: ArtS: Weird 'require' behaviour - https://github.com/joyent/node/issues/410 [21:19] figital has joined the channel [21:19] mikl has joined the channel [21:19] tylerstalder has joined the channel [21:20] Spacerat has joined the channel [21:22] mrdoodles has joined the channel [21:23] guillermo has joined the channel [21:24] nrajlich has joined the channel [21:24] mrdoodles: i guess i'lll ask again. what is the sexiest looking doc page/pages anyone has seen ... [21:24] Ratty_: The one I made [21:25] Ratty_: this one: http://cocos2d-javascript.org/documentation/cocos2d-javascript/edge/cocos.nodes.SpriteBatchNode [21:25] SillyWabit has joined the channel [21:25] Ratty_: Still needs work [21:26] tomtomaso has joined the channel [21:26] aude has joined the channel [21:26] fmeyer has joined the channel [21:27] Daegalus: Asking again because its getting to me: Anyone able to help me clean this up? I am trying to get everythign abstracted and teh mongo-specific code out into mongo.js. But I couldnt get it to work with the toArray callback. So I have a .toArray in the mian file that i am not fond of: https://gist.github.com/0975b92f7a09d23aa0cf [21:27] CarterL: Ratty_: pretty cool! [21:27] tomtomaso has joined the channel [21:28] hij1nx has joined the channel [21:29] Deegie has joined the channel [21:29] mrdoodles: Ratty_: word i like it [21:30] mrdoodles: Daegalus: - have you looked at mongoose? [21:30] Venom_X has joined the channel [21:30] gerad has joined the channel [21:31] mattrobenolt: Daegalus: It helps to know what your problem is. I don't inherently see anything wrong. [21:32] febits has joined the channel [21:32] Daegalus: mattrobenolt: I am writing a forum in Node.js. I am trying to abstract the DB stuff into a db.js and relevant db-related js. Like mongo.js, mysql.js. Each of these actually house hte db specific code. THe problem is the .ToArray() call I am doing in the server.js is specific to Mongo, and I need that to be intside the Mongo file. But due to the callback, and other things. I couldnt get it to work. [21:33] Daegalus: mrdoodles: i did, and if i remember right, it used a C driver, when I prefer to keep it pure JS [21:33] abjorn has joined the channel [21:33] mrdoodles: Daegalus: yeah, mongoose uses mongo native driver. [21:34] mrdoodles: what are you using now as your driver? [21:34] Daegalus: mognoskin, which is a layer ontop of node-mongodb-native [21:34] dmkbot has joined the channel [21:34] Daegalus: https://github.com/christkv/node-mongodb-native https://github.com/guileen/node-mongoskin [21:34] mrdoodles: mongoose is the same concept - [21:34] EyePulp: Daegalus - yeah, the mono native driver uses C [21:34] nibblebot: for all packages that provide binaries, do i have to npm install -g them to get them linked up? ideally i would want all dependency binaries copied to ~/myproject/bin [21:34] EyePulp: er, mongo [21:35] ph^ has joined the channel [21:35] mrdoodles: so regardless, it's all riding on the mongo native C driver. [21:35] EyePulp: ACTION adds a vote for mongoose [21:35] Daegalus: ummm isnt mongodb-native a Pure JS implementation? [21:35] mrdoodles: ACTION is finishing up a module that takes every loaded mongoose model, and stores a json representation, then a stylized html version for docs [21:36] mrdoodles: https://github.com/christkv/node-mongodb-native/blob/master/Makefile [21:36] mrdoodles: @ Daegalus [21:36] mrdoodles: .C [21:37] mrdoodles: mongo transfer layer is BSON, you'll need native c. [21:37] arkx: Read the project's README. The C/C++ BSON paser/serializer is not used by default anymore. [21:37] arkx: https://github.com/christkv/node-mongodb-native [21:38] arkx: "As of V0.9.6.9+, due to performance improvements in the Javascript parser, the C/C++ perser is deprecated and is not installed by default anymore." [21:39] jerrysv: mrdoodles: js driver is apparently considered as fast as native for mongodb-native, no compilation necessary anymore [21:39] jerrysv: aha, what arkx said [21:39] jerrysv: (i use mongode) [21:40] mrdoodles: ajhh yeah you get that when you build. [21:40] mrdoodles: ahh ok [21:40] mrdoodles: yeah - [21:40] mrdoodles: either way, mongoose f t w [21:40] mrdoodles: regardless of the driver [21:40] trotter has joined the channel [21:40] davidwalsh has joined the channel [21:40] jerrysv: nah, i like mongode [21:40] Daegalus: jerrysv: link to mongode? [21:40] jerrysv: Daegalus: https://github.com/milewise/mongode [21:41] jerrysv: handles replica sets very nicely as well [21:41] Daegalus: sounds a lot like mongoskin does [21:41] Daegalus: like what* [21:41] jerrysv: Daegalus: https://github.com/milewise/mongode/blob/master/lib/db.js#L18-26 [21:41] jerrysv: yeah [21:41] jerrysv: very similar [21:41] jakehow_ has joined the channel [21:41] Zenithar has joined the channel [21:42] Daegalus: jerrysv: the issue I am having is that toArray rrequires a callback, and that si problemeatic because I have no way of passing down the HTTP Request/Response to the callback so that i can call the LayoutRenderer to output the page [21:42] Zenithar: hello [21:43] Nuck: ugh [21:43] Nuck: node-canvas is giving me hell [21:43] Nuck: Won't load a file over the interwebs [21:43] jerrysv: Daegalus: give your callback scope to the http request and response [21:43] Daegalus: jerrysv: what do you mean? [21:43] dshaw_ has joined the channel [21:43] jerrysv: Daegalus: hold on [21:44] aude-wiki has joined the channel [21:44] stagas has joined the channel [21:44] jerrysv: Daegalus: https://gist.github.com/9d2911075ce9c802d93e [21:45] addisonj has joined the channel [21:45] Daegalus: hmmm let me see if I can do something like that. I was trying to do that earlier, but i couldn't get it to work for some reaosn [21:46] jerrysv: Daegalus: pretty common pattern :) [21:47] Daegalus: so you are saying if i do .toArray([...], function(err,data)). it will pass in the variables? [21:48] hij1nx has joined the channel [21:48] wilmoore has joined the channel [21:48] Daegalus: jerrysv: sorry for the nooby questions, still new to javascript and node.js [21:48] mac^ has joined the channel [21:48] DrMcKay has joined the channel [21:49] DrMcKay: gash, I just spent 10 minutes on #nodejs [21:49] dshaw_ has joined the channel [21:49] DrMcKay: I was quite wondering why it was so quiet here [21:49] Skola: :[] [21:49] jerrysv: Daegalus: s'all good :) [21:49] TheJH: DrMcKay, isn't the ircretary there? [21:50] _kud has joined the channel [21:51] DrMcKay: TheJH: yup [21:51] DrMcKay: TheJH: it was you? thanks [21:52] Aiden has joined the channel [21:52] TheJH: DrMcKay, no, the ircretary is isaacs bot [21:52] DrMcKay: TheJH: ah, neat [21:54] hij1nx_ has joined the channel [21:54] phluffy has joined the channel [21:54] phluffy has joined the channel [21:55] olegp: does anyone know why server.pause accepts milliseconds? [21:55] olegp: would be a lot nicer if it implemented pause/resume like Stream [21:56] kmiyashiro: https://github.com/substack/node-browserify [21:56] kmiyashiro: for the first example [21:56] mcluskydodallas has joined the channel [21:56] kmiyashiro: is that minifying all the scripts every time? [21:56] broofa has joined the channel [21:58] Daegalus: jerrysv: collection.find().toArray([...], callback) doesnt work, keeps yelling at me about missing operands. [21:59] stagas has joined the channel [21:59] tjholowaychuk has joined the channel [22:00] geetarista has joined the channel [22:01] r5 has joined the channel [22:01] tylerstalder has joined the channel [22:01] r5: good afternoon [22:01] Sidnicious: Daegalus: node-mongodb-native? [22:01] Sidnicious: I don't think toArray takes any arguments other than the callback [22:02] Daegalus: Then i guess i ma back to my original problem ofhow to pass additional parameters into the callback from ToArray so i can send stuff out [22:02] Daegalus: i am * [22:04] Sidnicious: In JavaScript, every function has access to the scope where it was created (i.e. where the word "function" is). See jerrysv's gist. [22:04] elijah|home has joined the channel [22:05] Daegalus: Sidnicious: the problem is its not working, when it finally gets to the callback function, and calls the renderer, the renderer has null req/res [22:05] Sidnicious: Daegalus: could you post an example? [22:05] Daegalus: Sidnicious: once sec let me get it in gist [22:06] JojoBoss has joined the channel [22:07] Daegalus: Sidnicious: nvm i got it working, i was using the wrong variable -_- [22:07] Sidnicious: Oh, cool :) [22:07] Daegalus: Sidnicious: thank you for the help though. Much appreciated [22:07] Nuck: ugh [22:07] Nuck: Cannot get this shit working [22:08] Nuck: Fucking node-canvas [22:09] dmkbot: joyent/node: ry: setTimeout(fn) does not work as expected - https://github.com/joyent/node/issues/593 [22:09] mattrobenolt has left the channel [22:09] _kud has joined the channel [22:10] StanlySoManly has joined the channel [22:11] skoom has joined the channel [22:12] r5: Anyone have time for a couple of questions from a node.js hosting provider? [22:12] nibblebo_ has joined the channel [22:13] halcyon918: is it possible to create an arbitrary stream from a string? [22:14] sivy has joined the channel [22:14] jerrysv: Daegalus: sorry, got pulled on to a conference call [22:14] caolanm has joined the channel [22:14] Daegalus: jerrysv: np, Sidnicious was kind enough to help also. It all works now [22:14] jerrysv: Daegalus: awesome! [22:15] enmand has joined the channel [22:15] kevwil has joined the channel [22:17] Charuru has joined the channel [22:17] softdrink: is anyone using batman.js? [22:17] fiq_ has joined the channel [22:17] Nuck: softdrink: No, but I am the batman. [22:17] r5: lol [22:17] r5: pretty sure that was me :) [22:18] Nuck: bahahahaha "Back: Away for 2174wks 5days 16hrs 20mins 24secs" [22:18] Nuck: v8: 2174 / 52 [22:18] v8bot_: Nuck: 41.80769230769231 [22:18] Nuck: 41 years I've been away [22:18] r5: ?? [22:18] NuckingFuts|Away: wtf [22:18] NuckingFuts|Away: I turned you off, nickchanges [22:18] dshaw_ has joined the channel [22:18] r5: that is impressive... [22:19] NuckingFuts|Away: eh whatever [22:19] hij1nx has joined the channel [22:20] r5: is anyone using joyent JPC hosting? [22:22] stephenjudkins has joined the channel [22:22] Daegalus: what the best Mongo admin UI? for Windows preferably? I need something to edit my mongo so I can create the database structure. [22:22] odyniec has joined the channel [22:22] mrryanjohnston: Daegalus: that's kind of unnecessary [22:23] Daegalus: yes, I know I can use the shell, but I want something graphical, especially since I dont know all of mongo's commands yet [22:23] greg__ has joined the channel [22:23] mrryanjohnston: Daegalus: I mean, you don't really need to do that. You could just use mongoose or a similar module [22:24] mrryanjohnston: Daegalus: you don't need to define any models via the cli [22:24] Daegalus: mrryanjohnston: oh I can use my current module. I jsut like to graphically set it up and then write the necessary code to create it. [22:24] dmkbot: joyent/node: Skomski: New win32 platform function: GetCPUInfo - https://github.com/joyent/node/issues/1664 [22:24] dshaw_ has joined the channel [22:24] Daegalus: or modify it [22:24] nibblebot has joined the channel [22:24] mrryanjohnston: Daegalus: hm. just seems a little unnecessary to me ;) [22:25] Daegalus: Ya, I know I can create it using the actual modules, but I want to get a nice structure and see what I can do with it graphically. Like setitng up references between stuff [22:26] mrryanjohnston: Daegalus: this isn't a relational database; it's document oriented [22:26] bicranial has joined the channel [22:27] Daegalus: I know it is. I have 3 collections. Forums, Threads, and Posts. I want each Forum document to have teh references for all the threads in the Threads collection that are in it. and same with Posts. I want the Threads to have References to all the posts in them. [22:27] bluesmoon: what is the default keep-alive timeout for node's http module? [22:27] thinkt4nk has joined the channel [22:27] brainproxy: Daegalus: if you need to create and query complex relationships between documents in the db, you might want to look at a graph database [22:27] Daegalus: its nothing complex, its a simple tree setup [22:28] brainproxy: OrientDB for example; haven't used it yet myself, but have been fascinated by the discussions around it [22:28] mrryanjohnston: Daegalus: i understand. you don't need to do the relations though, and it'd really work better in a document-oriented database structure to do embedded documents [22:28] mrryanjohnston: Daegalus: http://mongoosejs.com/docs/embedded-documents.html [22:29] Daegalus: mrryanjohnston: i was asctually thinking that. But then if I query for a Forum for say the forum index. and say it has 1000s of threads, and 1000s of posts, would that return be massive? [22:29] jerrysv: Daegalus: there is mongohub [22:29] mrryanjohnston: Daegalus: potentially, but document oriented dbs are meant to be quite fast. [22:29] jerrysv: dunno if it works in windows [22:30] jerrysv: mrryanjohnston: you'd be shocked the performance i get out of a well tuned postgres implementation with partitioned tables and partial indexes [22:30] Daegalus: jerrysv: mongohub is mac only. I have it on my laptop, i just didnt feel like going to go get it, and rebooting it into the mac partition to use it [22:30] jerrysv: Daegalus: sorry, i'm mac and linux only, don't follow these weird platforms :) [22:30] mrryanjohnston: jerrysv: I might not be too shocked ;) he was asking about document-oriented dbs, though; don't make it do something it's not meant to do [22:31] Sidnicious has joined the channel [22:31] Sidnicious has joined the channel [22:31] jerrysv: mrryanjohnston: indeed, i was just referring to your general comment about how document oriented dbs are meant to be quite fast :) [22:31] jerrysv: mrryanjohnston: and they are, for certain things [22:32] jerrysv: mrryanjohnston: for instance, dynamic views in couchdb -- not so fast usually [22:32] Daegalus: mrryanjohnston: yes i know its fast, but why have document referencing implemented in mongodb at all then? I mean it has built in Referene type to reference another object in the DB be it in the same collection or a different one. Also If i say have a ton o fusers logged in, and all of them are querrying a forum with lots of data, thats a huge bandwidth sink. Why load an entire forum worth of threads and posts for 1 thread? or even 1 [22:32] Daegalus: post? [22:32] Sidnicious has joined the channel [22:32] Sidnicious has joined the channel [22:32] skm has joined the channel [22:33] mrryanjohnston: ACTION shrugs [22:33] mrryanjohnston: I'm not as experienced with document oriented dbs ;) [22:33] mrryanjohnston: so do what you must [22:34] Daegalus: eh, I understand what you are saying, but this is a Forum, it can potentially have massive datasets, its why I want to use referencing, to keep it streamlined [22:34] dmkbot: joyent/node: andrewschaaf: Very incorrect column numbers in exception stack text - https://github.com/joyent/node/issues/527 [22:34] nevir has left the channel [22:36] tylersta_ has joined the channel [22:37] z6Dabrata has joined the channel [22:37] lgl has joined the channel [22:37] NuckingFuts|Away: Daegalus: The best Mongo Admin UI I've found is the one on mongly.com [22:38] NuckingFuts|Away: As for references, that's actually very bad in Mongo, try to avoid it when possible [22:38] NuckingFuts|Away: References are far slower than embedding, since embedded objects are colocated [22:42] mehtryx has joined the channel [22:43] seutje has joined the channel [22:43] kon_ has joined the channel [22:46] bartt has joined the channel [22:48] shanebo has joined the channel [22:51] CarterL: brainproxy: orientdb looks cool, wonder where it stacks up with Neo4j [22:52] aelien27 has joined the channel [22:53] slyphon has joined the channel [22:55] nibblebo_ has joined the channel [22:55] davidsklar has joined the channel [22:55] mynameisbender has joined the channel [22:55] bartt has joined the channel [22:56] teknopaul1 has joined the channel [22:58] shipit has joined the channel [23:00] `3rdEden has joined the channel [23:01] sneakyness has joined the channel [23:03] krl has joined the channel [23:03] krl: when i run a 100mb file through multipart-stack, node uses 100% cpu, is there a way to make this more performant? [23:05] hij1nx_ has joined the channel [23:05] dshaw_1 has joined the channel [23:06] v3ctR has joined the channel [23:08] kylefox has joined the channel [23:09] bartt has joined the channel [23:09] random123: With streamline.js you can do something like "var data = fs.readFile(file, 'utf8', _)" and it will assign var data the second parameter of the callback, but what if the callback should have 3 parameters and you need to access the 3rd one? [23:10] kylefox has left the channel [23:11] Daegalus: random123: have you tried something like var data, data2 = ? [23:11] Daegalus: or var data = {} and pass that in? not sure, im guessing here, but It might work [23:11] random123: gonna try now [23:12] v3ctR has joined the channel [23:13] jbbot123 has joined the channel [23:13] CIA-30: node: 03Ryan Dahl 07zlib * r20e6bb6 10/ (43 files in 3 dirs): import zlib - http://git.io/x61sqg [23:14] ryah has joined the channel [23:14] ryah has joined the channel [23:14] NegativeK has joined the channel [23:16] yept has joined the channel [23:17] hacfi has joined the channel [23:18] RichardNode has joined the channel [23:18] freeformz has joined the channel [23:18] Sorella has joined the channel [23:18] RichardNode: Anyone know how to completel clear a sessions in ExpressJS [23:19] RichardNode: ? [23:19] tjholowaychuk: RichardNode #express [23:19] tjholowaychuk: clear all sessions? [23:19] tjholowaychuk: or just the data from one session? [23:19] RichardNode: w [23:19] hij1nx_ has joined the channel [23:19] dshaw_ has joined the channel [23:19] RichardNode: Well, i'm basically trying to make express forget the user was at a site. =) [23:19] cronopio has joined the channel [23:20] storrgie has joined the channel [23:20] c4milo1 has joined the channel [23:20] RichardNode: It seems to keep remembering my values I put in session [23:20] c4milo1 has left the channel [23:20] c4milo1 has joined the channel [23:20] tjholowaychuk: you can do req.session.destroy() [23:20] StanlySoManly has joined the channel [23:20] tjholowaychuk: with optional callback [23:20] MrNko has joined the channel [23:20] RichardNode: I tried doing that, didn't have much luck =o [23:21] RichardNode: whats the optional callback? [23:21] Raynos: I presume a standard callback that will fire after the session is destroyed [23:22] Raynos: In case the session is in redis [23:22] Raynos: Or some other async store [23:23] RichardNode: hmm, no dice [23:23] RichardNode: req.session.destroy(function(){ res.redirect('/game') }); [23:23] RichardNode: This is what I tried, I still see my info [23:23] [[zz]] has joined the channel [23:24] tjholowaychuk: hmm, should do the strick. what session store? [23:24] mrdoodles has joined the channel [23:24] RichardNode: This is all I have for express setup [23:24] RichardNode: server.use(express.cookieParser()); server.use(express.session( { maxAge : new Date(Date.now() + 3600000), //1 Hour secret:'secret' })); [23:25] RichardNode: I was thinking this might be a cookie issue [23:25] tjholowaychuk: maxAge is ms not a date [23:25] mrdoodles: RichardNode: whats the problem, i just got in - [23:25] RichardNode: mrdoodles: trying to destroy my session [23:25] mrdoodles: request.session = null; [23:27] mrdoodles: RichardNode: sorry, i also have this [23:27] mrdoodles: in my /logout [23:27] mrdoodles: request.session.auth === null; [23:27] mrdoodles: request.session.destroy(function(){}); [23:28] rootslab has joined the channel [23:28] mrdoodles: the null is probably not needed - [23:29] RichardNode: Ah, its clearing , its just getting auto populated by some openid all =o [23:29] postwait has joined the channel [23:29] RichardNode: Sorry for the false alarm =/ [23:29] RichardNode: Was looking for the problem in the wrong place [23:29] RichardNode: Thank you all anyways [23:29] tjholowaychuk: np [23:29] aguynamedben_ has joined the channel [23:29] Metal3d has joined the channel [23:29] tjholowaychuk: hop in #express if you have more questions later [23:29] RichardNode: Ah! Will do =) [23:30] tjholowaychuk: pretty dead in here right now so no big deal haha [23:30] nibblebot has joined the channel [23:33] brianseeders has joined the channel [23:33] TokyoDan_ has joined the channel [23:33] dlg: why does the following leak and confuse CONNECT sessions? https://github.com/dgwynne/node-fwd-http-proxy/blob/master/proxy.js [23:33] agnat has joined the channel [23:34] wadey has joined the channel [23:34] aelien27 has joined the channel [23:36] cognominal has joined the channel [23:36] gazumps has joined the channel [23:36] jeromegn has joined the channel [23:37] prettyrobots has joined the channel [23:38] heavysixer has joined the channel [23:38] teknopaul has joined the channel [23:39] floasfdso has joined the channel [23:39] dmkbot: joyent/node: scunningham: Support ssl session get/set in tls. Useful for client side session resume. - https://github.com/joyent/node/issues/1606 [23:39] gerad has left the channel [23:40] teknopaul1 has joined the channel [23:41] ap123 has joined the channel [23:42] ap123: thanks mattrobenolt [23:44] phluffy has joined the channel [23:44] jtrudeau has joined the channel [23:45] vlapan has joined the channel [23:45] ceej has joined the channel [23:46] daleharvey: is anyone at nodecamp? [23:46] tbranyen: i iwsh [23:46] tbranyen: sup daleharvey [23:46] tbranyen: how's the android couch stuff going? [23:47] daleharvey: its going good, doing a bunch of debugging / test setup stuff now, thing is going to be rock solid pretty soon [23:47] Nuck has joined the channel [23:48] daleharvey: and im having fun building silly html5 'native' apps [23:49] dmkbot: joyent/node: georgesnelling: util.assert long message strings are truncated on mac osx - https://github.com/joyent/node/issues/1590 [23:49] tbranyen: :-p [23:49] tbranyen: hybrids aren't all that bad [23:50] tbranyen: android layout stuff blows compared to html/css for rapid prototyping [23:50] tbranyen: blows i tell you [23:50] Cromulent has joined the channel [23:50] kdng-devrim has joined the channel [23:51] daleharvey: http://couch.arandomurl.com/couchtasks/_design/couchtasks/index.html [23:51] daleharvey: is my latest one [23:51] NuckingFuts|Away: https://gist.github.com/1cc749e590a7593886d9 [23:51] storrgie has joined the channel [23:51] NuckingFuts|Away: Can somebody help me [23:51] daleharvey: and http://couch.arandomurl.com/mobilefuton/_design/mobilefuton/index.html was the one before that [23:51] jtsnow has joined the channel [23:52] r04r has joined the channel [23:52] ben1mal has joined the channel [23:52] tjholowaychuk: Nuck: node-canvas Image#src= only supports local files ATM [23:52] hybsch has left the channel [23:52] ben1mal has left the channel [23:52] Nuck: tjholowaychuk: Ah, okay :P [23:53] Nuck: There any easy way to grab a network file for that? [23:53] daleharvey: theres a really dirty hack for getting remote image sources [23:54] daleharvey: I will be able to link to it when I figure out how to spell jason davies backwards [23:54] daleharvey: http://seivadnosaj.appspot.com/ [23:54] tbranyen: daleharvey: ah yeah i saw your tweet on it [23:54] ben1mal has joined the channel [23:54] ben1mal: anyone here know how to change the no.de NODE_ENV? [23:55] Nuck: hahaha [23:55] k1ttty has joined the channel [23:56] JulioBarros has joined the channel [23:56] ben1mal: @Nuck: are you laughing at me? [23:56] Nuck: nah, just at the fact that daleharvey had to figure out how to type it backwards [23:57] ben1mal: oops - i just missed that [23:57] daleharvey: to be fair its really memorable, just hard to type :P [23:57] daleharvey: tbranyen: hows things at bocoup, working on anything fun? [23:58] tbranyen: daleharvey: helped boaz over the weekend with a couchapp/backbone project for some internal project management [23:58] tbranyen: working on my backbone ajax mocking lib atm [23:58] Nuck: hehe [23:58] ben1mal: me likey couchdb + backbone/angular [23:59] Nuck: What I need is an easy way to get a Buffer out of an HTTP request [23:59] replore has joined the channel [23:59] replore_ has joined the channel