[00:00] seebees has joined the channel [00:01] hipsters_ has joined the channel [00:04] chjj: also, i compiled a hello world program to js, and the compiled minified script was 281kb [00:04] Nss has joined the channel [00:04] Nss: hi all [00:04] chjj: because it includes the entire dart standard library it looks like [00:05] dougrdotnet_: What is best way to update node 0.4.11 to 0.6.5...I'm not exactly sure, I thought I installed 0.4.11 with npm but I do not see it with npm ls [00:06] Nss: var child = spawn('git',cmdparam); [00:06] Nss: child.stdout.pipe(res); [00:06] Nss: child.stderr.pipe(res); [00:07] Nss: I have a problem with these lines of code [00:08] isaacs: dougrdotnet_: npm can't install node. npm depends on node [00:08] dougrdotnet_: my current installation was installed -g btw, it appears that 0.6.5 isn't in npm yet either [00:08] Nss: it seems like the stream don't want flush its content [00:08] isaacs: dougrdotnet_: start at nodejs.org and click "download [00:09] dougrdotnet_: sorry, i meant nvm [00:09] davidbanham has joined the channel [00:09] isaacs: dougrdotnet_: oh, ok. i dunno about that, then [00:09] isaacs: dougrdotnet_: i use nave. [00:09] gavin_huang has joined the channel [00:09] Nss: I also tried utils.pump [00:10] Nss: but nothing happens [00:10] dougrdotnet_: i am fine with just uninstalling the earlier version - but wanted to check if there was an update process yet [00:10] Nss: is there a way to force the stream flushing [00:12] Nss: ? [00:12] CIA-109: libuv: 03Ryan Dahl 07platform_api * r2702b68 10/ (src/unix/sunos.c test/test-platform-output.c): fix uv_cpu_info on solaris - http://git.io/1LXO7Q [00:15] dufft has joined the channel [00:15] devaholic has joined the channel [00:15] jstash has joined the channel [00:20] isaacs: writing code that has to do a bunch of stuff with globs is as disgusting as it sounds. [00:20] isaacs: it's like trying to make a sculpture out of 40 year old boogers. [00:22] joshkehn has joined the channel [00:24] dufft: hello anyone perverted enough to try out nodejs on Windows? [00:24] dufft: I have non-trivial import errors, I know they are boring but I've lurked through tons of internets already [00:24] dufft: please help [00:26] chjj: dufft: what do you mean? [00:28] codygray has joined the channel [00:28] replore has joined the channel [00:28] replore_ has joined the channel [00:29] CIA-109: node: 03isaacs 07v0.6 * r2255efa 10/ (95 files in 6 dirs): npm 1.1.0-beta-3 - http://git.io/o5SN_Q [00:30] dufft: chjj, I mean I've read that node searches for modules in /node_modules dir of an app it runs. I have an application searching for itself https://gist.github.com/1479269 [00:32] harthur has joined the channel [00:32] dufft: I don't get it. I've added nodejs root directory to 'Path' and I've installed this 'couchapp' module using npm. 'couchapp' module has 'app.js' file in it. do i run 'couchapp' correctly or not? [00:32] coffeecup: does the current version of express support gzip compression with node 0.6.x ? [00:32] hellp has joined the channel [00:33] dnjaramba_ has joined the channel [00:33] CIA-109: node: 03Ryan Dahl 07v0.6 * rde3c16a 10/ (14 files in 8 dirs): Upgrade V8 to 3.6.6.14 - http://git.io/vov1RA [00:33] davidbanham: dufft: Is this any help? https://github.com/mikeal/node.couchapp.js/issues/18 [00:34] neilk_ has joined the channel [00:34] jstash has joined the channel [00:37] davidbanham: Realistically, how easy is it to find someone to maintain a node application these days? I use node within my company, since I'll be around to maintain it. Just quoted on a piece of client work, though, and obivously want to build it on node and express. If I do, though, and in 6 months I don't have the time to hack in feature X for them, am I dooming them to not being able to find someone else to work on it? [00:38] chjj: dufft: where is couchapp installed? is it somewhere in the directory structure ancestry? [00:38] wilmoore_ has joined the channel [00:39] dufft: davibanham, thank you for the link [00:39] davidbanham: No probs [00:39] warz has joined the channel [00:40] dufft: chjj, my couchapp is installed in the 'nodejs' directory. I guess I have to install it locally to the created boiler project, right? [00:40] warz: hi all. how do i see which path node is using for node_path? the path that npm is installing to, and the path that node is looking in are not the same. [00:40] warz: its probably because of an older version, or something. [00:40] tek has joined the channel [00:40] warz: but there is no session variable for node_path defined, so it's using something. [00:41] dougrdotnet has joined the channel [00:41] ChadPrimmer has joined the channel [00:41] ChadPrimmer: http://corporatetools.com/test/test1.php [00:41] jbcurtin has joined the channel [00:41] warz: i should probably just reformat this machine. i think its been through node + npm changes over the past year or more. heh. [00:41] ChadPrimmer: 97: set_error_handler(function ($errno, $errstr, $errfile, $errline) use($nodeHost, $nodePort) { [00:42] dufft: wow, i not got into some wonderful [00:43] dufft: "TypeError: Cannot read property 'length' of undefined" error, but the previous issue is solved installing couchapp locally. thank you guys [00:43] poincare101 has left the channel [00:43] rwaldron has joined the channel [00:50] bradleyg has left the channel [00:50] tedsuo: isaacs: got a sec to talk about the API docs? [00:50] bradleyg has joined the channel [00:50] tilgovi has joined the channel [00:54] EyePulp has joined the channel [00:54] darkenco has joined the channel [00:57] kickingvegas has joined the channel [00:57] mike5w3c_ has joined the channel [00:58] tedsuo: pull request for cleaning up Table of Contents: https://github.com/joyent/node/pull/2336 [01:00] devongovett has joined the channel [01:01] sebastianedwards has joined the channel [01:01] Emmanuel has joined the channel [01:03] IrishGringo has joined the channel [01:04] isaacsanders has joined the channel [01:04] joshontheweb has joined the channel [01:05] Me1000 has joined the channel [01:05] Juan77 has joined the channel [01:06] JaKWaC has joined the channel [01:06] neurodrone has joined the channel [01:06] isaacs: please test: http://nodejs.org/dist/v0.6.6/node-v0.6.6-rc1.tar.gz [01:06] neilk_ has joined the channel [01:07] jaitaiwan has joined the channel [01:08] bingomanatee: isaacs : whats nu with .6? [01:08] cakesauce has joined the channel [01:08] xtianw has joined the channel [01:10] dannyamey has joined the channel [01:10] malkomalko has joined the channel [01:10] dubenstein has joined the channel [01:11] dubenstein has joined the channel [01:12] JaKWaC_ has joined the channel [01:13] cakesauce has joined the channel [01:14] nicholasf: how are peeps reusing their common.js modules in the browser? [01:14] bingomanatee: safer/better to dnode your key stuff. [01:14] bingomanatee: The big thing you need to do with JS in the browser is interact with the DOM and common doesn't really go there. [01:15] josephg has joined the channel [01:15] dougrdotnet has left the channel [01:16] flip_digits has joined the channel [01:17] nicholasf: ok, but, for e.g., I'm writing handlebar helpers that I want to use on the server and the client [01:18] jj0hns0n has joined the channel [01:18] mara has left the channel [01:19] joshontheweb has joined the channel [01:19] snugglepuss has joined the channel [01:19] cl0udy has joined the channel [01:23] darkenco has joined the channel [01:23] jocafa has joined the channel [01:26] maru_cc has joined the channel [01:26] JaKWaC has joined the channel [01:30] zivester has joined the channel [01:30] mandric has joined the channel [01:31] chjj: im really depressed over dart, ...google is better than that [01:32] seebees has left the channel [01:34] madhums has joined the channel [01:38] chrisvwebdev has joined the channel [01:40] isaacsanders has joined the channel [01:40] dgathright has joined the channel [01:40] neoesque has joined the channel [01:40] kickingvegas: q: trying to figure out a good way to store media files with Node.js, any thoughts on where I should start? Redis? Postgresql? Or something else I don't know about? [01:41] sorensen__ has joined the channel [01:41] isaacs: bingomanatee: get the tarball and test it out. there's a Changelog in there :) [01:42] JakeyChan has joined the channel [01:43] jyp: kickingvegas: how about glusterfs? i think database is just enough to save file path. [01:45] kickingvegas: jyp: didn't know about glusterfs; thanks [01:45] kickingvegas: jyp: in a place where I want quick and dirty solution [01:46] kickingvegas: jyp: so storing a blob is fine short term [01:47] mikeal has joined the channel [01:47] kickingvegas: jyp: that said, since I'm not seeing driver support for blobs in pg, and not sure for redis, it may be that I just write media file to disk [01:47] jlaire has joined the channel [01:47] jacobolus has joined the channel [01:49] OneOfOne has joined the channel [01:49] OneOfOne has joined the channel [01:51] meso has joined the channel [01:53] CarterL has joined the channel [01:53] ditesh|cassini has joined the channel [01:54] skoom has joined the channel [01:54] shiawuen has joined the channel [01:54] MatthewS has joined the channel [01:55] sdwrage has joined the channel [01:56] chrisvwebdev has left the channel [02:01] hotroot: Erm, how do you kill the socket in socket.setTimeout? [02:02] enmand has joined the channel [02:02] hotroot: Would it be this.socket.end() or this.end() or what? [02:04] prettyrobots has joined the channel [02:05] hotroot: Nvm, got it [02:05] TN has joined the channel [02:05] wtfizzle has joined the channel [02:06] r1ngzer0_ has joined the channel [02:06] JasonSmith: isaacs: BTW, I noticed my tap.test()s run in the order I define them. May I rely on that, or is it just a coincidence? [02:06] kenrick has joined the channel [02:07] wtfizzle has joined the channel [02:07] JasonSmith: It seems like I can rely on test() order in a file, but not on the order of files (assuming I want to rename them freely, and since I think each file runs in its own node process) [02:07] kenrick: hello all [02:12] a_suenami has joined the channel [02:14] jergason has joined the channel [02:14] slajax has joined the channel [02:17] CrypticSwarm has joined the channel [02:20] CIA-109: node: 03Ryan Dahl 07v0.6 * rae17e2d 10/ Makefile : Fix doc generation for new website - http://git.io/gqjHDw [02:21] secoif has joined the channel [02:22] joshontheweb has joined the channel [02:22] tellnes has joined the channel [02:24] TooTallNate has joined the channel [02:24] CIA-109: libuv: 03Igor Zinkovsky 07master * r3d189de 10/ (14 files in 5 dirs): platform api - http://git.io/DgYVKg [02:26] devongovett has joined the channel [02:27] cheapRoc has joined the channel [02:28] cakesauce has left the channel [02:29] zivester has joined the channel [02:29] sarlalian has joined the channel [02:29] broofa has joined the channel [02:30] marcello3d has joined the channel [02:31] ChaoWang has joined the channel [02:31] wilmoore has joined the channel [02:31] HardPhuck has joined the channel [02:32] zivester has joined the channel [02:33] MatthewS has joined the channel [02:34] imtzo has joined the channel [02:35] innociv_ has joined the channel [02:37] backinnam has joined the channel [02:38] jocafa: creationix: what did you use to build the object graph diagrams for your howtonode articles? [02:39] Druid_ has joined the channel [02:40] esmevane has joined the channel [02:43] buttface has joined the channel [02:43] mraleph has joined the channel [02:44] brianloveswords has joined the channel [02:45] slide has joined the channel [02:45] slide has joined the channel [02:45] subbyyy has joined the channel [02:46] nora_ has joined the channel [02:46] perezd_ has joined the channel [02:46] nora_ has joined the channel [02:46] zivester has joined the channel [02:47] JakeyChan has joined the channel [02:49] tilgovi has joined the channel [02:49] zivester has joined the channel [02:49] cafesofie has joined the channel [02:50] warz: hrm. ugh. what am i doing wrong. does npm install -g not install modules globally? or is there an additional step, now? [02:50] warz: node repl doesnt find express, which i just installed globally. [02:50] buttface_ has joined the channel [02:50] warz: on a fresh install of ubuntu. [02:51] otakutomo has joined the channel [02:52] JasonSmith: warz: please try now [02:53] warz: what? [02:53] JasonSmith: Could be coincidence, but we had about 5 minutes of downtime on the registry at the same time you reported a problem, so... [02:53] warz: ah. [02:53] wtfizzle: that, or jasonsmith is a wizard O_O [02:54] smathy has joined the channel [02:54] warz: it appears to download and install the module, but i just cant require it using the node repl. [02:54] butu5 has joined the channel [02:55] zivester has joined the channel [02:55] 31NAAF8RG has joined the channel [02:55] 16SAADD24 has joined the channel [02:56] BillyBreen has joined the channel [02:58] darkenco has joined the channel [02:59] nora_: http://groups.google.com/group/express-js/browse_thread/thread/2ca14e598d0dfe0a im facing exact the same problem [02:59] te-brian has joined the channel [02:59] nora_: any solution? or shouldnt we use express.static? [03:00] skm has joined the channel [03:01] igl has joined the channel [03:01] josephg has joined the channel [03:01] isaacs: warz: please run `npm faq` and read it. [03:01] isaacs: "global" doesn't mean "globally require()able" [03:01] scott_gonzalez has joined the channel [03:01] isaacs: global means "a single place on your computer, for things that need such a thing (require does not)" [03:02] SuMarDi has joined the channel [03:02] warz: ok. last time i used node/npm, simply installing a module made it requireable. [03:02] wtfizzle: well it will work with a normal install [03:02] omenar has joined the channel [03:03] wtfizzle: never tried with just -g though, so I have no idea [03:03] wtfizzle: I thought -g just made it available so you could run the express command to init a directory [03:04] cheapRoc: That's after the fact, -g puts it in the global execution path, typically [03:08] nickadeemus2002 has joined the channel [03:09] nickadeemus2002 has left the channel [03:10] bobbuck has joined the channel [03:10] Druid_ has joined the channel [03:10] skm has joined the channel [03:11] lulzilla has joined the channel [03:11] ChaoWang has joined the channel [03:13] rwaldron has joined the channel [03:14] joshmbrown has joined the channel [03:14] secoif: what's the best way to send events between node processes… without hookio [03:15] secoif: socketio? [03:15] moogoo: child.kill(SIGNAL) [03:15] joshmbrown has left the channel [03:15] moogoo: actully [03:15] secoif: ? [03:15] moogoo: new node has built in postMessage functions I think [03:18] sechrist has joined the channel [03:18] secoif: moogoo I believe that's just for clustering messages [03:18] secoif: though i might be wrong [03:18] ChaoWang has joined the channel [03:18] yuwang has joined the channel [03:19] pizthewiz has joined the channel [03:19] aar0ntw has joined the channel [03:19] secoif: hrm [03:21] CarterL has joined the channel [03:21] enmand has joined the channel [03:24] aar0ntw has joined the channel [03:26] jaitaiwan has joined the channel [03:28] awkn4n has joined the channel [03:28] awkn2n has joined the channel [03:30] mpavel has joined the channel [03:31] langworthy has joined the channel [03:31] ChrisPartridge has joined the channel [03:32] ChrisPartridge: mmalecki: ping [03:33] MatthewS has joined the channel [03:35] jacobolus has joined the channel [03:38] nora_: @ express/node_modules/connect/lib/middleware/static.js around line 135 [03:38] nora_: express.static redirects to url.pathname + '/' [03:39] nora_: i guess it makes infinite redirection like /javascript////////////// [03:39] jerrysv has joined the channel [03:39] isaacsanders has joined the channel [03:39] nora_: im running it on windows btw [03:42] arlolra has joined the channel [03:45] awkn4n has left the channel [03:45] awkn4n has joined the channel [03:46] arlolra has left the channel [03:48] xjiujiu has joined the channel [03:49] Vennril2 has joined the channel [03:51] fastest963 has joined the channel [03:56] base698 has joined the channel [03:56] reid has joined the channel [03:56] dylang has joined the channel [03:57] lee___ has joined the channel [03:58] jaequery has joined the channel [03:58] lee___ has joined the channel [03:59] trotter has joined the channel [04:01] lee___ has joined the channel [04:03] smathy has joined the channel [04:04] cce has joined the channel [04:04] harthur has joined the channel [04:04] kenperkins has joined the channel [04:05] joshontheweb has joined the channel [04:06] asoltys has joined the channel [04:06] jaitaiwan has joined the channel [04:08] jergason has joined the channel [04:08] ShinyDarkness has joined the channel [04:09] davidbanham has joined the channel [04:09] TN has joined the channel [04:11] admc has joined the channel [04:15] skunkape has joined the channel [04:17] ryanallenbobcat has joined the channel [04:18] mbrevoort has joined the channel [04:19] k1ttty has joined the channel [04:20] willwh: ChrisPartridge: he's sleeping for sure [04:20] willwh: :] [04:21] langworthy has joined the channel [04:21] ryanj has joined the channel [04:24] kazupon has joined the channel [04:27] EvRide has joined the channel [04:28] jklabo_ has joined the channel [04:28] pizthewiz has joined the channel [04:29] towski has joined the channel [04:29] ChrisPartridge: willwh: sl..eep..ing... whats that? :) [04:32] mongrelion: haha [04:33] joshsmith has joined the channel [04:36] ajpiano has joined the channel [04:38] sdwrage has joined the channel [04:38] awkn4n has left the channel [04:38] awkn4n has joined the channel [04:40] kenperkins has joined the channel [04:41] brainproxy has joined the channel [04:41] brainproxy has joined the channel [04:41] boltR has joined the channel [04:43] willwh: ChrisPartridge: it's this thing you do, when you've exhausted all other possibilities, and run out of red bull, coffee, and cigarettes [04:43] willwh: :( [04:48] jaitaiwan has joined the channel [04:52] context: willwh: you forgot the coke ! [04:52] willwh: yuck dude [04:52] willwh: that shit is bad for your tummy [04:52] willwh: love the tummy! [04:52] context: are we talking about the same stuff [04:52] willwh: I assume you mean the fizzy cola type drink [04:52] context: haha [04:52] lee_ has joined the channel [04:53] ryanallenbobcat has joined the channel [04:56] jamescarr has joined the channel [04:57] kishoreyekkanti has joined the channel [05:01] devaholic: secoif: redis, zeromq, udp, json over http [05:01] devaholic: such things [05:01] jrogers has joined the channel [05:01] secoif: devaholic which have you used? [05:02] devaholic: those [05:02] madhums has joined the channel [05:03] devaholic: just depends what you like i guess, each has some tradeoffs [05:05] redir_ has joined the channel [05:05] devaholic: i think redis or json over http would be good choices considering they are well implemented in node [05:06] devaholic: https://github.com/JustinTulloss/zeromq.node [05:06] devaholic: zeromq is catching up [05:07] devaholic: https://github.com/mranney/node_redis [05:07] awkn4n has left the channel [05:07] awkn4n has joined the channel [05:08] ChrisPartridge: udp support in the browser would be a dream [05:09] devaholic: secoif: the voxer guy talkes about json over http on the latest nodeup http://nodeup.com/ [05:16] joshthecoder has joined the channel [05:18] alcuadrado has joined the channel [05:18] secoif: devaholic awesome, thanks [05:18] alcuadrado: I'm building an application with node 0.4.12, should I move to 0.6.5? are there non-backwards compatible changles? [05:20] secoif: alcuadrado I just updated a reasonably sized app from 0.4.12 to 0.6.5, only had issues with one fs call [05:20] secoif: alcuadrado you'll likely have more issues updating to latest versions of modules [05:20] devaholic: alcuadrado, update [05:21] secoif: alcuadrado the sooner you update the less pain [05:21] Kami_ has joined the channel [05:22] alcuadrado: ok, I'll take your advice [05:22] context: yeah the longer you wait the harder it is. that goes for any app with any framework/lib [05:24] alcuadrado: is there a changelog to look for incompatible changes? [05:24] alcuadrado: btw: are crypto's hash objects reusable? I don't get why are the objects at all [05:25] OmidRaha has joined the channel [05:25] MatthewS has joined the channel [05:25] ChrisPartridge: alcuadrado: after you've got the digest, you can't add any more data to the hash - if that's what your referring to [05:25] context: alcuadrado: crypto has a state. especially if its a chain-block [05:26] context: err block-chain.. whatever [05:26] alcuadrado: yeah, I know, but if i can't add more data, what's the point? [05:26] alcuadrado: I'm not saying that it doesn't make sense, I just wanna know :P [05:28] meso has joined the channel [05:28] joshsmith has joined the channel [05:29] stonebranch has joined the channel [05:29] torm3nt has joined the channel [05:29] context: alcuadrado: some people encrypt more than a password at a time [05:31] gregmoreno has joined the channel [05:34] CoffeeIV has joined the channel [05:34] syoyo_ has joined the channel [05:34] djbell has joined the channel [05:36] maletor has joined the channel [05:38] secoif: alcuadrado why doesn't make sense ? [05:38] secoif: oh [05:38] secoif: you're *not* [05:38] krazyivan has left the channel [05:38] secoif: ACTION hasn't slept properly [05:39] butu5 has joined the channel [05:39] alcuadrado: context, that's what I don't get [05:39] alcuadrado: as I can only use the hash object once [05:39] context: ? [05:40] context: correct [05:40] ChrisPartridge: alcuadrado: create a new hash? [05:40] context: alcuadrado: so... SOME people hash more than a password. [05:40] context: SOME people hash whole files [05:40] context: SOME files can be GB in size [05:40] context: SOME people wont load the entire file into memory while encrypting it [05:40] context: alcuadrado: https ... you dont get the data all at once, and it doesnt get sent all at once [05:41] context: some encryption has state, and depends on the past, in order to encrypt and decrypt the future [05:41] context: and why not have an object... it is an object oriented language [05:42] kishoreyekkanti has joined the channel [05:42] alcuadrado: I see it now [05:44] shiawuen has joined the channel [05:45] ShinyDarkness has joined the channel [05:46] codygray has joined the channel [05:46] benlyn has joined the channel [05:47] rhizmoe has joined the channel [05:51] snuglepuss has joined the channel [05:52] cafesofie has joined the channel [05:53] smathy has joined the channel [05:57] jacobolus has joined the channel [06:00] dgathright has joined the channel [06:00] SamuraiJack has joined the channel [06:00] wbednarski has joined the channel [06:02] AvianFlu has joined the channel [06:03] boltR has joined the channel [06:04] aa___ has joined the channel [06:05] aa1311 has joined the channel [06:05] jklabo has joined the channel [06:07] metalball2 has joined the channel [06:07] freewil has joined the channel [06:07] freewil has joined the channel [06:08] trotter has joined the channel [06:10] versicolor__ has joined the channel [06:10] versicolor___ has joined the channel [06:13] JakeSays has joined the channel [06:13] CoffeeIV has joined the channel [06:14] dexter_e has joined the channel [06:15] cl0udy_ has joined the channel [06:16] codygray has joined the channel [06:20] caffine has joined the channel [06:20] Sami_ZzZ has joined the channel [06:20] jjd has joined the channel [06:21] _jgr has joined the channel [06:22] _jgr has joined the channel [06:22] k1ttty has joined the channel [06:23] bartt has joined the channel [06:24] Margle has joined the channel [06:25] ^rcaskey has joined the channel [06:25] awkn4n has joined the channel [06:28] redir_ has joined the channel [06:29] admc has joined the channel [06:30] harthur has joined the channel [06:31] k1ttty_ has joined the channel [06:32] jaitaiwan has joined the channel [06:32] astrobunny has joined the channel [06:32] tilgovi has joined the channel [06:32] tilgovi has joined the channel [06:35] brianloveswords has joined the channel [06:36] nicholasf has joined the channel [06:36] Leemp2 has joined the channel [06:40] isaacs has joined the channel [06:41] boehm has joined the channel [06:43] dexter_e has joined the channel [06:44] nicholasf has joined the channel [06:45] kenperkins has joined the channel [06:45] kenperkins: o/ [06:45] garrensm_ has joined the channel [06:48] jklabo has joined the channel [06:57] kishoreyekkanti has joined the channel [06:58] lzskiss has joined the channel [06:59] mikeal has joined the channel [06:59] mike5w3c_ has joined the channel [06:59] CIA-109: libuv: 03Igor Zinkovsky 07master * r7aacfad 10/ src/win/util.c : windows: support for getting multiple addresses for a network interface - http://git.io/l-I_5Q [07:03] jomoho has joined the channel [07:04] Heisenmink has joined the channel [07:05] braoru has joined the channel [07:06] superjudge has joined the channel [07:08] burningdog has joined the channel [07:08] k1ttty has joined the channel [07:09] lzskiss: k1ttty, hello :) [07:13] lorfds has joined the channel [07:14] jacobolus has joined the channel [07:14] dexter_e has joined the channel [07:21] burningdog has left the channel [07:22] burningdog_ has joined the channel [07:22] cognominal___ has joined the channel [07:23] kuebk has joined the channel [07:24] caolanm has joined the channel [07:25] stagas has joined the channel [07:29] metalball2 has joined the channel [07:29] LeMike has joined the channel [07:31] Blorb has joined the channel [07:34] wilmoore has joined the channel [07:35] jbpros has joined the channel [07:36] burningdog_ has joined the channel [07:36] burningdog_ has left the channel [07:38] mikeal has joined the channel [07:39] sylvinus has joined the channel [07:40] kuebk1 has joined the channel [07:46] pity has joined the channel [07:46] versicolor has joined the channel [07:46] versicolor_ has joined the channel [07:47] hotroot has left the channel [07:48] dnjaramba has joined the channel [07:49] norviller has joined the channel [07:49] Neil__ has joined the channel [07:50] groom has joined the channel [07:51] bibabot has joined the channel [07:52] petrjanda has joined the channel [07:52] indexzero has joined the channel [07:56] djazz has joined the channel [07:57] versicolor has joined the channel [07:57] NetRoY has joined the channel [07:57] versicolor_ has joined the channel [07:57] mehlah has joined the channel [07:58] igl1 has joined the channel [08:00] vhpoet has joined the channel [08:00] LeMike has joined the channel [08:01] WarheadsSE has joined the channel [08:01] p1d has joined the channel [08:01] stonebranch has joined the channel [08:03] richdr has joined the channel [08:03] asoltys has joined the channel [08:05] astrobunny has joined the channel [08:06] OneOfOne has joined the channel [08:06] OneOfOne has joined the channel [08:07] hipsters_ has joined the channel [08:08] burningdog has joined the channel [08:08] denysonique has joined the channel [08:08] denysonique has joined the channel [08:08] Morkel has joined the channel [08:12] daglees has joined the channel [08:12] daglees has joined the channel [08:15] p1d has joined the channel [08:15] burningdog_ has joined the channel [08:15] guybrush: can someone explain whats the difference between exec and fork? after reading the code and reading that article im completely confused.. http://www.hacksparrow.com/difference-between-spawn-and-exec-of-node-js-child_process.html [08:17] _eddyb_ has joined the channel [08:17] _eddyb_ has joined the channel [08:17] guybrush: i mean.. both return a ChildProcess with std[out,err] streams - and exec actually call's spawn [08:17] lzskiss has joined the channel [08:17] guybrush: so theres essentially no difference, right? [08:18] bosphorus has joined the channel [08:19] guybrush: ah i see, with exec std[out,err] gets buffered [08:22] booyaa: guybrush: nodetuts episode 2 has a nice example [08:22] booyaa: of spawn, but not exec [08:22] kazupon has joined the channel [08:22] romanb has joined the channel [08:23] booyaa: so they're both tied to the main node process? and you're required to kill them as and when client connection ends? [08:24] guybrush: im reading `man popen 3` right now [08:24] guybrush: so im a noob too :D but ye [08:24] tuhoojabotti: manly man [08:24] _dc has joined the channel [08:24] kejun has joined the channel [08:24] `3rdEden has joined the channel [08:25] aaronmcadam has joined the channel [08:25] cosmincx has joined the channel [08:26] trevorsheridan has joined the channel [08:27] loob2 has joined the channel [08:27] rendar has joined the channel [08:28] [AD]Turbo has joined the channel [08:28] [AD]Turbo: hi there [08:29] dexter_e has joined the channel [08:30] bergie has joined the channel [08:30] booyaa: guybrush: difference is spawn streams (i.e. continous), exec buffers (implies a delay or some kind of event until the next load of data is sent) [08:31] booyaa: does that make sense? [08:31] beevits has joined the channel [08:31] kishoreyekkanti_ has joined the channel [08:31] kishoreyekkanti_ has joined the channel [08:32] guybrush: yes thx [08:32] MrBenn has joined the channel [08:33] shapeshed has joined the channel [08:34] otakutomo has joined the channel [08:37] lorfds has joined the channel [08:38] Rushing[away]_ has joined the channel [08:40] r1ngzer0 has joined the channel [08:40] maletor has joined the channel [08:44] ablomen has joined the channel [08:44] shapeshed has joined the channel [08:45] Druid_ has joined the channel [08:46] shapeshed has joined the channel [08:46] cedeon_ has joined the channel [08:47] handahalf: how can i use node, to upon a request, connect to a remote server and get xml or json from it. i'm lookin for documentation or examples [08:47] shapeshed has joined the channel [08:47] whitman has joined the channel [08:48] jetienne has joined the channel [08:48] ph^ has joined the channel [08:48] nerdfiles has joined the channel [08:49] nerdfiles has left the channel [08:49] clarkfischer has joined the channel [08:50] esmevane has joined the channel [08:51] bartt has joined the channel [08:54] djazz has joined the channel [08:55] mjr_ has joined the channel [08:56] Corren has joined the channel [08:56] sylvinus has joined the channel [08:56] vvo has joined the channel [08:57] booyaa: you probably want spawn a http client connection... momento.. [08:58] wbednarski has joined the channel [08:58] chakrit has joined the channel [08:59] maxogden: handahalf: http://search.npmjs.org/#/request [08:59] booyaa: handahalf: http://nodejs.org/docs/v0.4.11/api/http.html#http.get [09:00] salva has joined the channel [09:00] fangel has joined the channel [09:00] handahalf: maxogden & booyaa thanks [09:00] fastest963_ has joined the channel [09:00] emattias has joined the channel [09:01] ShotgunKlaus has joined the channel [09:01] jaitaiwan has joined the channel [09:02] temp has joined the channel [09:02] larssmit has joined the channel [09:02] ccare has joined the channel [09:03] mpavel has left the channel [09:03] kishoreyekkanti has joined the channel [09:03] AD7six has joined the channel [09:03] awkn4n has left the channel [09:04] kishoreyekkanti has joined the channel [09:04] hipsters_ has joined the channel [09:04] tom__ has joined the channel [09:05] HT has joined the channel [09:05] slaskis has joined the channel [09:06] mc_greeny has joined the channel [09:06] d0k has joined the channel [09:07] robhawkes has joined the channel [09:07] adambeynon has joined the channel [09:08] caioketo: Someone here can help me with VMWare? [09:10] baudehlo has joined the channel [09:13] Benn2 has joined the channel [09:17] lzskiss has joined the channel [09:17] mange has joined the channel [09:20] devrim has joined the channel [09:22] devrim has joined the channel [09:23] booyaa: caioketo: what's up? [09:23] TomY_ has joined the channel [09:24] jxie has joined the channel [09:25] caioketo: i got a virtual macine from the site "easyvmx" but it says no operation system found [09:26] tobias has joined the channel [09:27] stonebranch has joined the channel [09:28] stonebranch has joined the channel [09:29] herbySk has joined the channel [09:29] eldios has joined the channel [09:30] pradeebv has joined the channel [09:31] booyaa: caioketo: what vm did you get? [09:31] booyaa: what os/appliance etc [09:31] booyaa: it's prolly got corrupted, do you have a sha hash to compare against? [09:31] ph^ has joined the channel [09:32] burningdog_ has joined the channel [09:33] ablomen: caioketo, easyvmx just gives you a virtual machine, there is no software on it, you need to install that yourself [09:33] superjudge has joined the channel [09:33] dshaw_ has joined the channel [09:33] dannyamey has joined the channel [09:34] jaitaiwan has joined the channel [09:34] QiBol has joined the channel [09:34] burningdog_ has joined the channel [09:36] OneOfOne has joined the channel [09:36] OneOfOne has joined the channel [09:37] skm has joined the channel [09:38] djcoin has joined the channel [09:38] loob2_ has joined the channel [09:38] jhurliman has joined the channel [09:41] ryanj has joined the channel [09:44] mange has joined the channel [09:45] megalomix has joined the channel [09:45] megalomix: hello [09:45] megalomix has left the channel [09:46] romanb has joined the channel [09:47] dilvie has joined the channel [09:48] arcanis has joined the channel [09:49] mYkon has joined the channel [09:51] herbySk has joined the channel [09:53] fermion has joined the channel [09:54] jhbot has joined the channel [09:54] booyaa: lo [09:55] sylvinus_ has joined the channel [09:55] ryan_stevens has joined the channel [09:55] avc has joined the channel [09:56] avc: hello [09:56] avc: anybody here [09:56] mAritz has joined the channel [09:58] swestcott has joined the channel [09:59] avc: why I can't install npm?? [09:59] mehlah has joined the channel [10:00] adambeynon has joined the channel [10:01] eldios: avc pls be more specific? [10:01] eldios: os? which command did you gave? [10:01] eldios: do you know that since 0.6.4 npm is bundled in nodejs? [10:02] avc: curl http://npmjs.org/install.sh | sh this command [10:03] Astro has joined the channel [10:03] luke` has joined the channel [10:03] paera has joined the channel [10:03] wedtm has joined the channel [10:03] skm has joined the channel [10:04] avc: means I dont need to install npm? [10:05] kishoreyekkanti_ has joined the channel [10:05] kishoreyekkanti_ has joined the channel [10:05] rurufufuss has joined the channel [10:06] avc: when I use command "npm install express" [10:07] Net_RoY has joined the channel [10:07] adrianF has joined the channel [10:07] avc: Error: connect Unknown system errno 110 at errnoException (net.js:616:11) at Object.afterConnect [as oncomplete] (net.js:607:18) [10:09] ShotgunKlaus_ has joined the channel [10:09] k1ttty has joined the channel [10:11] eldios: avc which operating system are you using? [10:11] eldios: Mac?Linux?Win? [10:11] mhauri has joined the channel [10:12] alnewkirk has joined the channel [10:14] cjroebuck has joined the channel [10:15] mikeal has joined the channel [10:16] mange has joined the channel [10:17] kulor-uk has joined the channel [10:20] dgathright has joined the channel [10:21] __doc__ has joined the channel [10:21] martin_sunset: Hi guys, I am looking for a simple NPm package to record backend events and provide basic aggregate views on the data. Something simpler than hummingbird, and with mongodb support. Any ideas? [10:22] cp42 has joined the channel [10:22] cesconix has joined the channel [10:25] madhums has joined the channel [10:28] Sami_ZzZ has joined the channel [10:28] aliem has joined the channel [10:28] halfh has joined the channel [10:29] JaKWaC has joined the channel [10:29] jldbasa has joined the channel [10:30] benlyn_ has joined the channel [10:31] hellp has joined the channel [10:32] robi42 has joined the channel [10:35] swestcott_ has joined the channel [10:35] markwubben has joined the channel [10:37] Cromulent has joined the channel [10:37] josh-k has joined the channel [10:38] munichlinux has joined the channel [10:39] burningdog has joined the channel [10:41] ph^_ has joined the channel [10:43] alindeman has joined the channel [10:43] saschagehlich has joined the channel [10:44] konobi: mmalecki: what do you mean by fork safe? [10:46] uchuff has joined the channel [10:47] burningdog has joined the channel [10:50] MrBenn has joined the channel [10:52] garrensmith: martin_sunset: would something like statsd help? [10:52] martin_sunset: Let me take a look [10:52] garrensmith: martin_sunset: https://github.com/etsy/statsd [10:52] tvw has joined the channel [10:53] mmalecki: konobi: hi, sorry, I've been afk [10:53] mmalecki: konobi: not fucking up my file descriptors when I fork [10:53] mmalecki: konobi: best example is forever - it worked on v0.4 but gone full retard n v0.6 [10:53] guybrush: mmalecki: i think this issue is related https://github.com/joyent/node/issues/2254 [10:54] mmalecki: guybrush: no, we're doing the fork syscall, not child_process.fork [10:54] guybrush: oh i see [10:54] dubenstein has joined the channel [10:54] guybrush: well 2254 is the issue i am looking forward to being fixed :p [10:55] guybrush: forking a fork of the forked fork? [10:55] konobi: mmalecki: generally you need to dup(2) open file handles during a fork anyway [10:55] eldios: guybrush, you do have the right nickname XD [10:56] mmalecki: konobi: right, the problem is that the forked process seems totally fucked [10:56] guybrush: aye [10:56] martin_sunset: garrensmith: Great link, but too specific. Although in a worst case scenario I can extract parts of it. [10:56] konobi: mmalecki: you're telling libev/uv that you've forked? [10:56] mmalecki: konobi: yeah, i think we have code for that [10:56] mmalecki: let me see [10:56] BrianE has joined the channel [10:57] mmalecki: konobi: yup https://github.com/indexzero/daemon.node/blob/master/src/daemon.cc#L48 [10:57] kenperkins1 has joined the channel [10:57] martin_sunset: garrensmith: I am looking for something that abstracts page 27 of http://www.slideshare.net/jrosoff/realtime-analytics-with-mongodb-mongodb-meetup-nyc. For general use [10:58] vnguyen has joined the channel [10:58] martin_sunset: garrensmith: But still keeps it supersimple. [10:58] brian has joined the channel [10:58] mara has joined the channel [10:59] konobi: mmalecki: seen tiamat ? [10:59] fe has joined the channel [11:00] buu has joined the channel [11:00] mmalecki: konobi: tiamat? [11:01] konobi: it's on github... provides a framework for forking sanely [11:01] mmalecki: konobi: https://github.com/taf2/tiamat ? [11:02] mmalecki: konobi: oh... hm. [11:02] Heisenmink has joined the channel [11:02] mmalecki: konobi: code seems very complicated [11:02] konobi: it may be 0.4 based, but it has some sanity in there [11:02] konobi: forking sanely is complicated =0) [11:03] mmalecki: konobi: also, it's more like child_process.fork, I want fork(2) [11:03] mmalecki: I can check it out tho [11:04] otakutomo has joined the channel [11:04] konobi: you just want to daemonize? [11:04] louissmit has joined the channel [11:04] shapeshe1 has joined the channel [11:05] konobi: (ie daemonize the current process? [11:05] fe: does anyone know what's the best IDE for node.js for windows ? [11:05] mmalecki: konobi: yup [11:05] booyaa: fe, vim or c9 [11:05] Wizek-other has joined the channel [11:05] martin_sunset: Fe this is a wild guess, but visual studio :-) [11:05] baudehlo: or sublimetext2 [11:05] booyaa: coda [11:06] booyaa: textastic if you're ipad inclined [11:06] fe: martin_sunset --> lol [11:06] mmalecki: also, what's up with SOPA? [11:06] broofa has joined the channel [11:06] booyaa: mmalecki: it's fucked and we need to kill it off [11:06] martin_sunset: booyaa: ++ [11:06] eldios: sublimetext2 ftw [11:07] mmalecki: booyaa: right, but did they accept it or reject it yet? [11:08] eldios: if only had embedded terminal and a sane code check (check for vars and so on) it would be puuuurfect [11:08] fe: thnx [11:10] mmalecki: oh nvm, I see the reddit counter [11:10] tokarev has joined the channel [11:11] djazz has joined the channel [11:12] tokarev: hey guys. What is the best way to merge nodejs modules into one file? (with proper respect to dependencies) [11:12] booyaa: yeah about to say there's a 2nd hearing today [11:13] mansoor has joined the channel [11:15] eldios: tokarev, what do you mean? stuff everything inside exports [11:15] eldios: :) [11:15] guybrush: tokarev: my first trivial approach would be to browserify everything :) [11:16] MerlinDMC has joined the channel [11:16] tokarev: eldios, I want to bundle all files into one in order to use it in a browser [11:16] guybrush: then browserify is your man [11:17] guybrush: or thing [11:17] guybrush: theres also learnboost/browserbuild [11:17] eldios: yeah [11:17] jetienne has joined the channel [11:17] eldios: do as guybrush told [11:17] tokarev: guybrush, eldios, thanks guys [11:18] eldios: yw [11:18] alindeman has joined the channel [11:18] guybrush: the mighty pirate has spoken xD [11:19] eldios: YAAAR [11:19] josephg has joined the channel [11:20] luxigo has joined the channel [11:21] awkn4n has joined the channel [11:22] pickels has joined the channel [11:23] hackband has joined the channel [11:24] awkn4n has left the channel [11:25] dubenstein has joined the channel [11:26] prettyrobots has joined the channel [11:27] eldios: yesterday I finished rading "Javascript Patterns" .. nice one, stil towards the end I as a @_ [11:27] eldios: @_@ [11:28] guybrush: its the jeresig-book right? [11:28] guybrush: ah nvm [11:29] kazupon has joined the channel [11:29] guybrush: i prefer reading code though :p [11:29] vl4kn0 has joined the channel [11:30] ehedenst has joined the channel [11:30] pity has joined the channel [11:32] pickels has joined the channel [11:32] pity: could not be in modules page also supported version of node ?:) [11:33] kishoreyekkanti has joined the channel [11:34] eldios: guybrush, Stoyan Stefanov's one --> http://www.amazon.it/gp/product/0596806752 [11:35] eldios: I'm reading the ol' (just bought) Good Parts now [11:35] JasonSmith: Okay, I've been writing Node code for almost 2 years [11:35] eldios: see if I can squeeze anything good out of these reading =) [11:35] JasonSmith: The day after I wrote a traceback module, I immediately used it to track down setTimeout leaks [11:37] JasonSmith: Now I'm thinking of moving that to a "valgrind for setTimeout" module. It tells you all your timeouts in-flight, what function/file:line-no number set it, and what function/file:line-no cleared it [11:37] JasonSmith: Y'all think that would be a worthwhile module? Or does it exist? [11:37] johnnywengluu_ has joined the channel [11:38] mmalecki: josephg: that would make it quite awesome [11:38] mmalecki: JasonSmith: ^, sorry josephg [11:38] JasonSmith: yeah josephg get on that! [11:39] otakutomo has joined the channel [11:39] mmalecki: lol [11:39] josephg: ! [11:39] JasonSmith: Do you know offhand if I replace global.setTimeout, would that affect all calls from any other code in the process (subsequently)? [11:40] josephg: I think I tried that at one point, and it didn't [11:40] josephg: but that sounds pretty easy to test [11:40] JasonSmith: Like, how can I $LD_PRELOAD, you know? To make sure all my timeouts and intervals are accounted for [11:40] Lingerance: It'd affect any modules, but not REPL (which has a seperate global) [11:41] josephg: aah that old chestnut [11:41] JasonSmith: Of course if you are willing to run mycode.js then there may be an AST rewriter already doing this [11:41] JasonSmith: AST rewriters can do anything. At Zombocom. [11:41] SamuraiJack_ has joined the channel [11:42] kuebk has joined the channel [11:43] jamescarr has joined the channel [11:44] josephg: JasonSmith: I think I ended up just manually inserting a thunk at the start of modules I'm suspicious about to do that manually [11:45] satyr has joined the channel [11:45] NetRoY has joined the channel [11:46] McMAGIC--Copy has joined the channel [11:46] keeto has joined the channel [11:46] ryanj has joined the channel [11:49] jaitaiwan has joined the channel [11:55] tvw has joined the channel [11:56] aslant has joined the channel [11:59] josh-k has joined the channel [11:59] jlaire has joined the channel [12:00] mikeal has joined the channel [12:00] sylvinus_ has joined the channel [12:00] N0va` has joined the channel [12:02] boltR has joined the channel [12:04] EvRide has joined the channel [12:05] boltR has joined the channel [12:07] tshpaper has joined the channel [12:08] shiawuen has joined the channel [12:09] broofa_ has joined the channel [12:09] dshaw_ has joined the channel [12:09] dylang has joined the channel [12:09] dscape: hey look its JasonSmith :D [12:09] dscape: heya! :D [12:09] JasonSmith: You know it. [12:09] JasonSmith: Did I do something wrong? [12:11] burningdog has joined the channel [12:12] briancray has joined the channel [12:14] halfh has joined the channel [12:14] dinesh_ has joined the channel [12:18] syoyo_ has joined the channel [12:21] swestcott has joined the channel [12:21] Creap: How can I prevent EMFILE: Too many open files error? [12:22] Creap: How do I know how many files can be open at the same time? [12:22] Creap: So I can queue them accordingly.. or what should I do to split up my reading in chunks? [12:27] mmalecki: Creap: mutex/graceful-fs [12:27] ditesh|cassini has joined the channel [12:27] mmalecki: https://github.com/isaacs/node-graceful-fs [12:28] Libra102 has joined the channel [12:28] nicholasf has joined the channel [12:30] Morkel has joined the channel [12:31] enmand has joined the channel [12:32] jomoho has joined the channel [12:33] madhums has joined the channel [12:35] boltR: is ther a time function in nodejs? [12:35] boltR: there* [12:35] xerox: as in date/time or timing [12:35] isaacsanders has joined the channel [12:35] boltR: xerox: date/time [12:35] Creap: mmalecki: ok thanks [12:36] xerox: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date [12:36] faszom has joined the channel [12:36] boltR: ah that's right [12:36] faszom: yo all [12:36] xerox: ^_^ [12:36] boltR: need to stop pretending nodejs isn't javascript heheh [12:36] Creap: mmalecki: the thing is my open sockets are also affected, so if I were to reach the limit and then stop I couldn't open any udp sockets anyway.. [12:36] faszom: anyone knows a good way to protect my nodejs app from spam? [12:37] boltR: thanks xerox [12:37] xerox: sure [12:37] Creap: so I need to stay a bit under the limit [12:38] mmalecki: Creap: increase ulimit/cluster that shit [12:38] mange has joined the channel [12:41] Brandon_R has joined the channel [12:41] Brandon_R: Hey guys [12:41] Brandon_R: What's new and good [12:42] isufy has joined the channel [12:42] ShotgunKlaus_ has joined the channel [12:44] jimt_ has joined the channel [12:44] maushu has joined the channel [12:45] Industrial: Brandon_R: [12:45] Brandon_R: Hey [12:45] keeto has joined the channel [12:45] Brandon_R: Got any cool projects in the winery industrial? [12:46] Industrial: nothing public :< [12:46] Industrial: or personal, for that matter. [12:46] Brandon_R: ok [12:46] pakastin has joined the channel [12:47] monokrome has joined the channel [12:47] pakastin: hi! [12:48] aliem has joined the channel [12:48] aar0ntw has joined the channel [12:48] aliem has joined the channel [12:49] pakastin: Why can't I exec inside a worker? When I do the same in the master cluster, it works.. [12:49] neurodrone has joined the channel [12:50] TheJH has joined the channel [12:51] shapeshed has joined the channel [12:51] vl4kn0 has left the channel [12:52] Ownatik has joined the channel [12:54] mhauri has joined the channel [12:57] jetienne has joined the channel [12:57] keeto has joined the channel [12:58] mike5w3c_ has joined the channel [12:59] Edy has joined the channel [12:59] jimmysparkle has joined the channel [12:59] metalball2 has joined the channel [13:01] SamuraiJack_ has joined the channel [13:01] djazz has left the channel [13:03] ixti has joined the channel [13:04] satyr has joined the channel [13:04] scott_gonzalez has joined the channel [13:04] ixti has joined the channel [13:05] josh-k has joined the channel [13:06] subbyyy has joined the channel [13:08] fairwinds has joined the channel [13:08] jbpros_ has joined the channel [13:10] timbl has joined the channel [13:10] Bioxyde has joined the channel [13:10] Bioxyde: hey guys, simple question [13:10] Bioxyde: I am running the example server from nodejs.org [13:10] dominiques has joined the channel [13:10] Bioxyde: how can I stop node from running it [13:10] Bioxyde: without closing terminal? [13:10] dominiques: hello everybody [13:11] Lingerance: CTRL+C [13:11] dominiques: has anyone experiences with proxying ndoe servers behind apache? [13:11] Bioxyde: Ah [13:11] Bioxyde: Thanks [13:11] Bioxyde: :P [13:11] Lingerance: Why Apache? [13:11] dominiques: Because i have an apache server running [13:11] mhauri has joined the channel [13:11] dominiques: and my clients sit behind a firewall, that doesn't allow other ports than 80 [13:11] Lingerance: Eitherway, it'd be the same as any other httpd. [13:12] augustl: haproxy is better for proxying node since it's more generic [13:12] augustl: haproxy can be TCP instead of http for example [13:12] dominiques: i only need http [13:13] augustl: yeah but apache has conventions for how it handles connections etc that might not match what your node app expects [13:13] dominiques: uffa, haproxy seems like a boeing 747 [13:13] ph^ has joined the channel [13:13] dominiques: can you be more precise? [13:13] garrensmith has joined the channel [13:13] augustl: dominiques: both apache and node will try to handle connection reuse across requests for example [13:14] zomg: dominiques: I'm using varnish to run node/apache in port 80 [13:14] zomg: seems to work pretty nicely [13:14] augustl: dominiques: these are just things to be aware of though, it may work just fine to have apache talk to your node app [13:14] zmbmartin has joined the channel [13:15] vkareh has joined the channel [13:15] dominiques: augustl: ok thanks [13:15] dominiques: zomg: i'll try that! [13:15] zomg: Basically what I'm doing is varnish sits on port 80 [13:16] zomg: Apache runs on another port, and node runs on another port as well. [13:16] zomg: Varnish then just forwards any connections to the respective servers based on the domain name [13:16] dominiques: oh damn... ok, can't do this change right now. Is there no possibility to do with apache rewrites? [13:16] zomg: It might work if you use the proxy thing in mod_rewrite [13:16] zomg: you also need mod_proxy I think [13:16] Lingerance: You can't do it with rewrites, you have to use mod_proxy. [13:16] zomg: I haven't used that specific feature myself though [13:17] dominiques: Lingerance: Ok, no prob mod_proxy is already there (doing the same thing with couchdb already) [13:18] Brandon_R: what is node proxy good for [13:18] Brandon_R: i see nowjs uses it [13:19] TheJH: Brandon_R, make objects that look like ordinary object but that don't have real JS objects behind them [13:19] augustl: dominiques: mod_proxy indeed [13:19] Brandon_R: kool [13:19] TheJH: Brandon_R, nowjs uses one big in-RAM object or so to represent all the stuff in the "magic box" [13:20] Juan77 has joined the channel [13:20] TheJH: Brandon_R, of course, this doesn't work on the client [13:20] Brandon_R: do you use nowjs? [13:20] Brandon_R: i can see some pretty useful applications for this [13:20] Brandon_R: like multiplayer games [13:20] fe: has anyone tries to run node.js on IIS ? (or maybe not even try..) [13:20] TheJH: Brandon_R, so while changes on the server get pushed immediately, changes on the client need ~0.5s to be discovered by some ugly polling logic [13:20] augustl: fe: IIS can proxy [13:20] TheJH: Brandon_R, I prefer dnode [13:20] augustl: it's called "rewrite" on IIS just to fuck you up [13:21] fe: heh [13:22] fe: thnx [13:22] TheJH: Brandon_R, because of that polling stuff and because afaik dnode has the better callback garbage collection stuff if you use my patch [13:22] Brandon_R: which patch? [13:22] CarterL has joined the channel [13:22] TheJH: Brandon_R, https://github.com/substack/dnode/pull/75 and https://github.com/substack/dnode-protocol/pull/8 [13:22] Brandon_R: does nowjs keep an active connection to the server or is it request based [13:23] TheJH: whoops? [13:23] garann has joined the channel [13:23] TheJH: irccloud reboot? [13:23] dominiques: net*split* [13:23] metalball2 has joined the channel [13:23] TheJH: dominiques, don't think so [13:23] derpeter has joined the channel [13:24] TheJH: dominiques, netsplits look different [13:24] metadaddy has joined the channel [13:24] luxigo: to which http.server request or response property do you bind 'data' event to read a POST stream ?... [13:24] zomg: And this is why I don't think irccloud is a great idea [13:24] zomg: :P [13:24] dominiques: kk :) [13:24] niftylettuce has joined the channel [13:24] dominiques: hei good news! using mod_proxy works FANTASTIC! [13:24] fe: augustl: can you refer me to documentation about node.js on IIS ? [13:24] zomg: Cool [13:24] TheJH: Brandon_R, both nowjs and dnode use socket.io [13:24] derpeter: hi. can somebody tell me how to set the working dir in the option argument for spawn a new process. couldnt find the syntax in the documentation [13:24] zomg: Had to fiddle with varnish a bit in order to get socketio working properly w/ it [13:25] Brandon_R: oh so it's just another layer on the socket.io stack [13:25] Brandon_R: i will have to check this out [13:25] Brandon_R: socket.io is my all time favorite module [13:25] hij1nx has joined the channel [13:26] augustl: fe: it's not node specific [13:26] augustl: fe: it's just generic http proxying [13:26] augustl: called rewrite on IIS [13:26] matjas has joined the channel [13:26] matjas has joined the channel [13:26] matjas has joined the channel [13:26] fe: augustl: oh. gr8. cheers. [13:27] pusewicz_ has joined the channel [13:27] strax has joined the channel [13:27] erichynds has joined the channel [13:28] joshsmith has joined the channel [13:28] srid has joined the channel [13:28] pksunkara has joined the channel [13:28] beawesomeinstead has joined the channel [13:29] sriley has joined the channel [13:29] lmatteis has joined the channel [13:29] justicefries has joined the channel [13:29] skylamer` has joined the channel [13:30] brianseeders has joined the channel [13:30] alessioalex has joined the channel [13:31] iaincarsberg has joined the channel [13:32] saschagehlich has joined the channel [13:32] bshumate has joined the channel [13:32] bshumate has joined the channel [13:32] kuhrt has joined the channel [13:33] DZ has joined the channel [13:33] Brandon_R: i used to program in php until i took a node.js to the knee [13:34] kuhrt: is there a reason __dirname won't work in nodejs console? [13:34] kishoreyekkanti has joined the channel [13:34] fumanchu182 has joined the channel [13:34] slaskis: kuhrt: if you want the current dir use process.cwd() instead [13:34] luxigo: how do you handle a POST request from http.createServer callback ?... [13:35] kuhrt: slaskis: is that the preferred way always? What's the usecase for __dirname? [13:35] Brandon_R: take a look at the http request method [13:35] luxigo: ... [13:35] JKarsrud has joined the channel [13:35] slaskis: kuhrt: i believe __dirname is the directory of the module. and in the repl you're not in a module [13:36] luxigo: i need to know were is the readable stream to handle a POST request from http.createServer callback.. [13:36] pity has joined the channel [13:36] slaskis: while process.cwd() is the directory of the process [13:36] kuhrt: ah i see... [13:36] EriksLV has joined the channel [13:36] JasonSmith has joined the channel [13:36] pity has joined the channel [13:36] kuhrt: slaskis: thanks, that actually answers two questions I had, cheers [13:36] slaskis: kuhrt: no problem :) [13:36] whoops has joined the channel [13:37] dscape has joined the channel [13:37] tanepiper has joined the channel [13:37] cedeon_ has joined the channel [13:37] luxigo: Brandon_R: im not trying to send but to receive POST data [13:38] jayniz has joined the channel [13:38] jayniz has joined the channel [13:38] jayniz has joined the channel [13:38] zmbmartin has left the channel [13:39] daleharvey has joined the channel [13:41] luxigo: Brandon_R: trying the opposite : request.on('data',... is not working [13:41] Brandon_R: what are you trying to do again [13:41] Brandon_R: get post data? [13:41] Brandon_R: http://stackoverflow.com/questions/4295782/node-js-extracting-post-data [13:42] Magnars has joined the channel [13:42] luxigo: forget it, it works now [13:43] blissdev has joined the channel [13:44] tomh has joined the channel [13:44] BruNeX has joined the channel [13:45] isaacsanders has joined the channel [13:45] [[zz]] has joined the channel [13:45] jaitaiwan has joined the channel [13:46] boehm has joined the channel [13:48] luxigo: Brandon_R: the problem is that it works randomly... [13:49] bradwright has joined the channel [13:49] luxigo: maybe i should pull... or go back to a stable version [13:50] xetorthio has joined the channel [13:50] ShotgunKlaus has joined the channel [13:51] salazr_ has joined the channel [13:52] majek has joined the channel [13:52] Nomon__ has joined the channel [13:53] _th_n has joined the channel [13:53] tylergillies has joined the channel [13:54] jyp has joined the channel [13:57] d_low has joined the channel [13:57] d_low has joined the channel [13:59] lazyshot has joined the channel [14:01] xetorthio has joined the channel [14:02] jetienne has joined the channel [14:02] webguynow has joined the channel [14:02] pyparadigm: is there any way to update all your modules in NPM? [14:02] Raynos has joined the channel [14:03] remysharp has joined the channel [14:04] [AD]Turbo: I've an external C daemon, communicating via TCP with my node server (net.createConnection(port, hostName)); on 'data' events i receive data from daemon, keeping track of buffers. in the 'end' event i'd like to merge all buffers into a single one. How can i achieve this? I don't see any methods to merge/append buffer [14:04] pyparadigm: uh ok npm update makes sense [14:04] AaronMT has joined the channel [14:06] Luffha has joined the channel [14:06] shiawuen has joined the channel [14:07] diogogmt has joined the channel [14:07] lduros has joined the channel [14:07] delimited has joined the channel [14:08] otakutomo has joined the channel [14:08] slaskis: [AD]Turbo: maybe something like this is what you need? https://github.com/substack/node-buffers [14:09] ken-ignite has joined the channel [14:09] k1ttty has joined the channel [14:09] augustl: [AD]Turbo: there's nothing built-in [14:10] augustl: your best bet is to either concat manually or probably even better work with a list of buffers so you don't realloc anything [14:10] augustl: most APIs can take a list of buffers (via iteration of course) so it shouldn't be a problem. Obviously depends, though [14:11] bnoordhuis has joined the channel [14:11] briancra_ has joined the channel [14:11] delimited has left the channel [14:11] rwaldron has joined the channel [14:12] mattly has joined the channel [14:13] olegp has joined the channel [14:13] Xano has joined the channel [14:13] jeremyselier has joined the channel [14:13] sveisvei has joined the channel [14:14] Fabryz has joined the channel [14:14] [AD]Turbo: ok thx! [14:16] Bioxyde has joined the channel [14:16] zomg: Has anyone integrated with any payment systems in a node app? [14:16] zomg: PayPal or such.. just wondering if there's any libs so I don't have to write it myself since it's a PITA =) [14:17] zomg: Seems there's at least a paypal module but kinda want to look into alternatives to it as well [14:17] Venom_X has joined the channel [14:17] zomg: many of you have probably heard of all the various issues people have had with paypal :P [14:19] TimTimTim has joined the channel [14:19] augustl: I don't really understand why people make plain websites with node.. [14:19] augustl: (guessing that the payment is for a website) [14:20] plutoniix has joined the channel [14:21] kriszyp4 has joined the channel [14:21] astropirate has joined the channel [14:21] poincare101 has joined the channel [14:22] dambalah has left the channel [14:22] astropirate: is expresso no longer being worked on? the dude that wrote it came out another framework "mocha" [14:22] augustl: expresso the web framework? [14:22] augustl: mocha is for testing, it's not a web framework [14:23] augustl: oh, expresso is for testing too, nvm [14:23] poincare101: Hi everyone. Ho would I get this to work: http://paste.pocoo.org/show/521245/ I want to pass on otherparameter into the onReq function [14:23] pity has joined the channel [14:23] augustl: poincare101: can't be done. The http module will call onReq with the parameters it specifies [14:23] Hosh has joined the channel [14:24] augustl: poincare101: you don't call onReq yourself [14:24] augustl: poincare101: what exactly is "otherparameter"? [14:24] ajpiano has joined the channel [14:24] ralph has joined the channel [14:25] augustl: poincare101: http://paste.pocoo.org/show/521246/ [14:25] owenb has joined the channel [14:25] beawesomeinstead has joined the channel [14:26] poincare101: augustl: [14:26] jpdery has joined the channel [14:26] poincare101: agustl: oh, okay, that makes sense. But, if http.createServer is called from inside a function that's inside an object, how will I get one of the object's variables into the anonymous function that I pass to createServer? [14:27] ddoom has joined the channel [14:27] augustl: poincare101: by passing a reference to the context [14:27] dexter_e has joined the channel [14:27] augustl: using "bind" probably makes sense here [14:27] munichlinux has joined the channel [14:27] augustl: poincare101: http.createServer(myFunc.bind(wtf)); [14:28] fcoury has joined the channel [14:28] augustl: poincare101: myFunc will be called with "req" and "res", and "this" will be whatever "wtf" is [14:28] augustl: poincare101: it's the equivalent of doing http.createServer(function (req, res) { myFunc.call(wtf, req, res); }); [14:29] augustl: or http.createServer(function () { myFunc.apply(wtf, arguments); }) [14:29] niftylettuce has joined the channel [14:29] svnlto has joined the channel [14:29] srid has joined the channel [14:29] srid has joined the channel [14:29] srid has joined the channel [14:29] tylergillies has joined the channel [14:29] ncb000gt has joined the channel [14:29] poincare101: augustl: thanks :) [14:30] cesconix has joined the channel [14:31] maushu|work has joined the channel [14:31] delimited has joined the channel [14:31] alFReD-NSH has joined the channel [14:32] alFReD-NSH: I just tried fusker [14:32] alFReD-NSH: is it just me, or is it buggy as hell? [14:32] delimited has left the channel [14:32] Aikar: whats fusker? [14:33] robhawkes has joined the channel [14:33] alFReD-NSH: https://github.com/wearefractal/fusker [14:33] Aikar: i honestly dont think id trust anything with that kind of image as the first part of the readme [14:34] augustl: image is everything [14:34] augustl: alFReD-NSH: the lack of a "tests" folder is a dead giveaway, of course it's buggy! :P [14:35] alFReD-NSH: u got a nice point :P [14:35] alFReD-NSH: the image sucks :P [14:35] alFReD-NSH: n no tests [14:35] Aikar: thats not necessarirly true, someone could write bad tests and still be buggy! [14:35] alFReD-NSH: well at least there are some tests [14:35] Aikar: and they checked in only .coffee files for examples [14:35] Aikar: wheres the .js? [14:35] alFReD-NSH: no js [14:36] alFReD-NSH: u have to compile it urself! [14:36] Aikar: ok, only .coffee all around [14:36] Aikar: yeah what fail [14:36] augustl: Aikar: what are you saying? I don't believe you [14:36] alFReD-NSH: or include coffescript! [14:36] augustl: Aikar: are you saying that all bugs found in the wild have two things in common: it compiled, and it passed the tests? [14:36] jstash has joined the channel [14:36] augustl: guard rail programming ftw [14:36] whoops has joined the channel [14:36] _baton_ has joined the channel [14:37] augustl: watch this: http://www.infoq.com/presentations/Simple-Made-Easy [14:37] alFReD-NSH: testing code is like double checking it.. [14:37] thomblake has joined the channel [14:37] boltR: is socket.io the best thing to use to push updates to the client? [14:37] alFReD-NSH: though even in double check, there may be problems... [14:37] joshsmith has joined the channel [14:37] augustl: boltR: I like faye, it doesn't do as much stuff [14:37] xetorthio: hi! when using http.get I can see that internally it is doing ipv4 and ipv6 dns resolution. is there a way to disable ipv6 dns resolution? not sure if it is something related to node or os [14:38] boltR: augustl: thanks i'll check it out [14:38] thomblake has left the channel [14:38] augustl: alFReD-NSH: indeed, it's automated TESTING, not automated development :) [14:38] NetRoY has joined the channel [14:38] swestcott has joined the channel [14:39] dnyy has joined the channel [14:40] esmevane has joined the channel [14:42] rccc_ has joined the channel [14:42] rccc_: hello [14:42] rccc_: how to stop the debug message [14:42] rccc_: ? [14:42] Poetro has joined the channel [14:42] Industrial: Can somebody please dress up my callback as waldo? [14:42] rccc_: it seems that the message are printed by v8 [14:42] Industrial: it'd be easier to find.. [14:43] rccc_: how to tell node to not print the debug message of V8 ? [14:44] stefpb has joined the channel [14:44] alFReD-NSH: rccc_: what debug message? [14:44] stagas has joined the channel [14:44] daleharvey has joined the channel [14:44] tiglionabbit has joined the channel [14:45] rccc_: alFReD-NSH: once i use this command : node myserver.js [14:45] aar0ntw has joined the channel [14:45] rccc_: i have a lot of lines printed in my console [14:45] rccc_: dump - one message [14:45] rccc_: info- other message [14:45] alFReD-NSH: do this: console.log = function(){} :P [14:45] rccc_: do you see what i mean [14:46] rccc_: -_-' [14:46] vkareh has joined the channel [14:46] dannyame_ has joined the channel [14:47] alFReD-NSH: or you can even do this: node myserver.js > /dev/null [14:47] alFReD-NSH: send everything to the black hole :P [14:47] wereHamster: are there any plans to allow a nodejs app to get the FQDN of the host it's running on? [14:48] rccc_: alFReD-NSH: thanks :) i understant i need to filter the messages directly inside the console.log() funciton [14:48] rccc_: thanks [14:49] Cromulent has joined the channel [14:49] alFReD-NSH: rccc_: console.log = console.log2; console.log = function(msg) { if (regex.exec(msg) !== null) console.log(2)} [14:50] bartt has joined the channel [14:50] alFReD-NSH: rccc_: but being srs depending on the packages u use, u always can set the log level [14:51] colinclark has joined the channel [14:52] alexpbrown has joined the channel [14:54] colinclark has joined the channel [14:55] colinclark has joined the channel [14:57] dexter_e: How to diagnose something that works on localhost but crashes the server with No Errors. ? [14:58] dexter_e: All identical versions of everything. [14:58] christoffe has joined the channel [14:58] JasonJS has joined the channel [14:58] dexter_e: all modules [14:58] dexter_e: Identical version of node too [14:59] augustl: crashes the server with No Errors, what does that mean? [15:00] augustl: and what is your server exactly? [15:01] dexter_e: just a ubuntu box with node on port 80 [15:01] boltR has joined the channel [15:02] dexter_e: it restarts [15:02] boltR has joined the channel [15:02] dexter_e: and the logs say nothing other than the "its restarting" message [15:02] augustl: dexter_e: sounds like you're not using plain node [15:02] augustl: as plain node doesn't have log files :) [15:03] dexter_e: Oh ok. Yeah express :) [15:03] TheDeveloper has joined the channel [15:03] gregmoreno has joined the channel [15:03] dexter_e: I just felt Sherlock Holemsed out. [15:04] dexter_e: Its running on Express 2.5.2 both localhost and the server. [15:04] alFReD-NSH has left the channel [15:05] BillyBreen has joined the channel [15:05] delimited has joined the channel [15:06] ceej has joined the channel [15:06] joshkehn has joined the channel [15:09] awkn4n has joined the channel [15:09] k1ttty has joined the channel [15:11] V1 has joined the channel [15:11] jkridner_ has joined the channel [15:12] igl has joined the channel [15:13] madhums has joined the channel [15:14] tomh has joined the channel [15:14] dylang_ has joined the channel [15:15] benlyn has joined the channel [15:16] brianc1 has joined the channel [15:17] __tosh has joined the channel [15:17] neurodrone_ has joined the channel [15:18] boltR has joined the channel [15:18] tuhoojabotti: browserling is so laggy and disconnects easily. [15:18] awkn4n has left the channel [15:18] imtzo has joined the channel [15:18] OmidRaha has left the channel [15:19] tuhoojabotti: or my site broke the browser. :3 [15:19] awkn4n has joined the channel [15:20] rccc_ has left the channel [15:21] Rushing: is there a standard promise library that i should use for http stuff? [15:21] Rushing: can i use jquery's? [15:21] karboh has joined the channel [15:22] wingie has joined the channel [15:22] testeroo has joined the channel [15:22] maligree has joined the channel [15:23] maligree has left the channel [15:23] confoocious has joined the channel [15:23] confoocious has joined the channel [15:24] tosh has joined the channel [15:24] necromancer has joined the channel [15:25] jbpros has joined the channel [15:26] SoulRaven has joined the channel [15:27] dscape: Rushing: what do you need the promise library for? [15:28] wilmoore has joined the channel [15:28] ShotgunKlaus_ has joined the channel [15:30] Morkel has joined the channel [15:31] lzskiss has joined the channel [15:32] bnoordhuis: mmalecki: https://github.com/joyent/node/issues/2334 <- use a c wrapper that setsids, forks and execs node, problem solved [15:33] isaacs has joined the channel [15:33] dob_ has joined the channel [15:33] bnoordhuis: mmalecki: if you need a unix socket to communicate on, create it with socket(), dup2() it some arbitrarily high fd number and pick it up from inside node [15:34] pradeebv_ has joined the channel [15:35] baudehlo: just use runit instead of forever. [15:35] xtianw has joined the channel [15:42] andrew9183 has left the channel [15:43] cjroebuck has joined the channel [15:44] Swizec has joined the channel [15:45] jbpros has joined the channel [15:45] Toin3 has joined the channel [15:45] Toin3: Hi [15:45] codygray has joined the channel [15:46] delimited has joined the channel [15:46] wtfizzle has joined the channel [15:46] CoffeeIV has joined the channel [15:47] prettyrobots has joined the channel [15:47] Toin3: Would somebody have an example of a web server using libuv which returns another thing that "hello world" ? [15:48] dambalah has joined the channel [15:48] kuebk has left the channel [15:49] mAritz: hm, what's the correct REST method for a login/logout? [15:50] joshkehn: mAritz: POST to login, POST to logout. [15:50] Rushing: how do i view the properties of a function? say i've attached some static methods/properties to it [15:50] mattj_ has joined the channel [15:50] franquis has joined the channel [15:50] Rushing: for/in doesn't seem to work [15:50] franquis: hi! [15:50] joshkehn: Object.getProperty(MyFunc.prototype) maybe? [15:50] joshkehn: There is an Object.get something method I've used. [15:51] wtfizzle has joined the channel [15:51] Rushing: hm, reminds me of Object.keys(). i'll see about that [15:51] joshkehn: Object.getOwnPropertyNames [15:51] joshkehn: That's it. [15:51] airhorns has joined the channel [15:52] wtfizzle has joined the channel [15:52] shapeshed has joined the channel [15:52] Rushing: great, thanks josh9 [15:52] Rushing: er, joshkehn [15:52] prettyrobots has joined the channel [15:52] joshkehn: Np [15:53] c4milo has joined the channel [15:53] nibblebot has joined the channel [15:54] ceej has joined the channel [15:54] perezd has joined the channel [15:55] mbrevoort has joined the channel [15:56] Poetro has joined the channel [15:57] realguess has joined the channel [15:57] mAritz: joshkehn: hm, any reason? i'm not creating a resource (except session stuff, but does that count as a resource? it's definitely not a public resource) [15:57] KBM has joined the channel [15:58] mAritz: and I'd think logout would be DEL instead [15:58] joshkehn: It's not public, but it's altering state on the server. [15:58] joshkehn: You could use DEL [15:58] erichynds has joined the channel [15:58] joshkehn: But then you're using less-then-standard methods. [15:58] nibblebot has joined the channel [15:58] joshkehn: Standard browser development work is GET / POST as a rule of thumb. [15:59] joshkehn: If you're working on an API or something outside the browser then sure, implement whatever you want. [15:59] aelien27 has joined the channel [15:59] mAritz: i don't have a problem with browsers not supporting the methods [15:59] cronopio has joined the channel [15:59] barbagallo has joined the channel [15:59] mAritz: methodOverride of express works fine :) [15:59] herbySk has joined the channel [15:59] perezd has joined the channel [16:00] bartt has joined the channel [16:02] Cromulent has joined the channel [16:03] iRoj has joined the channel [16:04] jocafa has joined the channel [16:05] mange has joined the channel [16:07] devongovett has joined the channel [16:09] enmand has joined the channel [16:10] tdegrunt has joined the channel [16:10] tingham has joined the channel [16:11] willwhite has joined the channel [16:11] Destos has joined the channel [16:12] Destos has joined the channel [16:12] EyePulp has joined the channel [16:13] sorensen__ has joined the channel [16:13] pickels has joined the channel [16:14] jarek has joined the channel [16:14] jarek has joined the channel [16:15] binaryjohn has joined the channel [16:15] mmalecki: bnoordhuis: hey. sorry, I had to visit my school [16:16] mmalecki: bnoordhuis: I'd still have to kill current process, right? [16:16] seejohnrun has joined the channel [16:17] bnoordhuis: mmalecki: define 'current process'? [16:17] mmalecki: bnoordhuis: the forker, master, whatever you call it [16:17] mmalecki: bnoordhuis: have you seen what we're trying to do in forever? [16:18] rauchg has joined the channel [16:18] bnoordhuis: mmalecki: the parent process? yes [16:19] bnoordhuis: if you want to at least, i assume you want to daemonize [16:19] mmalecki: bnoordhuis: right. I mean, let me show you teh codez [16:19] prettyrobots has joined the channel [16:19] mmalecki: bnoordhuis: I may be terribly wrong, but I don't think it fits here [16:20] mmalecki: bnoordhuis: https://github.com/nodejitsu/forever/blob/master/lib/forever.js#L338-367 [16:20] mmalecki: bnoordhuis: forking takes place in daemon.node [16:20] TheJH has joined the channel [16:20] mmalecki: *daemon.start [16:21] mmalecki: bnoordhuis: code for this thing is here https://github.com/indexzero/daemon.node/blob/master/src/daemon.cc#L34 [16:21] mmalecki: bnoordhuis: so, as you can see, we *have* a C wrapper. [16:22] bnoordhuis: mmalecki: no, that's not a wrapper - that's a module that's loaded into node itself [16:22] malletjo has joined the channel [16:22] CarterL has joined the channel [16:22] bnoordhuis: mmalecki: https://github.com/nodejitsu/forever/blob/master/lib/forever.js#L338-367 <- you'd move that to your c wrapper [16:23] QiBol has joined the channel [16:26] pickels has joined the channel [16:28] lduros has joined the channel [16:28] cha0s has joined the channel [16:28] cha0s has joined the channel [16:29] mmalecki: bnoordhuis: ok. so, to sum things up, I'd write a C++ module that spawns node process? [16:29] mmalecki: I mean, fork(2)s first, then spawns node process? [16:29] bnoordhuis: mmalecki: yes, but don't call it a module, call it a program (because that's what it is) [16:29] herbySk74 has joined the channel [16:30] mmalecki: bnoordhuis: argh. we want to *return* from this startDaemon. that's why we fork(2). [16:30] herbySk74 has joined the channel [16:30] bnoordhuis: mmalecki: why (return)? [16:31] mmalecki: bnoordhuis: have you used forever before? [16:31] zomg: augustl: well, for my case it is for my SaaS'ish thing. Sure, I could use say PHP to make the payment parts, but it's much easier to integrate with the rest of the app if I use node itself. [16:31] mmalecki: bnoordhuis: actually, I'll just describe this workflow for you [16:32] wiwillia has joined the channel [16:32] wiwillia: ping devaholic [16:32] tjholowaychuk has joined the channel [16:33] swestcott has joined the channel [16:33] cjroebuck has joined the channel [16:35] barbecuesteve has joined the channel [16:35] barbecuesteve has left the channel [16:35] postwait has joined the channel [16:36] perezd has joined the channel [16:36] konobi: mmalecki: bah... back after train journey with stupid net access [16:36] bnoordhuis: mmalecki: no, never used it [16:36] wilmoore has joined the channel [16:36] konobi: mmalecki: http://cpansearch.perl.org/src/DETI/Proc-Daemon-0.14/lib/Proc/Daemon.pm [16:37] konobi: that's probably the most reliable daemonizing library I've ever used [16:37] MatthewS has joined the channel [16:37] neurodrone has joined the channel [16:37] luke` has joined the channel [16:38] saschagehlich has joined the channel [16:39] colinclark has joined the channel [16:39] blueadept has joined the channel [16:40] dexter_e has joined the channel [16:41] baudehlo: konobi: yeah but perl is fork safe. [16:41] baudehlo: well, usually :) [16:42] Vennril has joined the channel [16:42] stephank has joined the channel [16:42] warz has joined the channel [16:42] flip_digits has joined the channel [16:43] baudehlo: are there any docs somewhere for node-waf/wscript? [16:43] konobi: baudehlo: yeah... but there's nothing inherently fork un-safe about node either... assuming you tell the event loop that you've forked [16:43] konobi: the EADDRINUSE or messed up filehandles you'll get in perl too [16:43] baudehlo: konobi: well I've had this conversation with bnoordhuis before, and he says that's wrong now. [16:43] konobi: bnoordhuis: eh? [16:44] baudehlo: because of the eio_custom threads I think. [16:44] bnoordhuis: konobi: libeio isn't fork-safe [16:44] bnoordhuis: and once we add isolates, it's a completely lost cause [16:44] mmalecki: bnoordhuis: (give ma a sec, fighting zombies and drones) [16:44] codygray has joined the channel [16:45] mmalecki: konobi: this thing is Perl ;) [16:45] konobi: urgh [16:45] mmalecki: konobi: yeah, I get the point [16:46] wiwillia: http://teespring.com/nodejs [16:47] codygray has joined the channel [16:48] swestcott has joined the channel [16:48] Aikar: ok, im tempted to buy one of those [16:48] fangel has joined the channel [16:49] awkn4n has left the channel [16:49] Poetro has joined the channel [16:49] issackelly_ has joined the channel [16:50] kishoreyekkanti has joined the channel [16:50] warz: nice, just reserved one. [16:50] wiwillia: credit devaholic [16:50] mandric has joined the channel [16:50] wiwillia: not me [16:50] wiwillia: :D [16:50] wiwillia: and substack [16:51] isaqual has joined the channel [16:52] trotter has joined the channel [16:52] Sami_ZzZ has joined the channel [16:54] wiwillia: gotta reach 30 in the next 5 days to get them printed [16:54] colinclark has joined the channel [16:54] __tosh has joined the channel [16:55] warz: hope it reaches that. [16:56] mbrevoort has joined the channel [16:57] jergason has joined the channel [16:58] CIA-109: node: 03isaacs 07v0.6 * r56f65e3 10/ (115 files in 15 dirs): npm 1.1.0-beta-4 - http://git.io/lrVrKA [17:00] isaacs: please test: http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz [17:00] r1ngzer0 has joined the channel [17:01] djko has joined the channel [17:02] mmalecki: bnoordhuis: ok, so [17:02] mmalecki: when you forever.startDaemon, there's a Monitor object created. [17:02] smathy has joined the channel [17:02] mmalecki: this Monitor object keeps process running, etc. [17:03] dexter_e: wow 0.6.6 already [17:03] trose has joined the channel [17:03] mmalecki: bnoordhuis: forever.startDaemon forks itself, kills current process (fork magic makes it come back to previous execution point). it returns the monitor. [17:04] mmalecki: so, basically, it starts a slave process and daemonizes itself [17:04] mmalecki: *but* it returns the monitor object which can be used to control slave process. [17:04] cthulhu_lovecraf has joined the channel [17:07] __tosh has joined the channel [17:07] bnoordhuis: mmalecki: controlling slaves sounds very unethical to me [17:08] bnoordhuis: is the monitor object for use by client code? i.e. the user's code? [17:08] mmalecki: bnoordhuis: forever obviously doesn't care [17:08] mmalecki: bnoordhuis: yes [17:08] adrianF has joined the channel [17:08] awkn4n has joined the channel [17:08] mmalecki: bnoordhuis: monitor is basically something that controls logging, stopping, starting, spinning processes, etc. [17:09] bnoordhuis: mmalecki: i suppose you could set up an ad-hoc communication protocol between your wrapper and the node instances [17:09] bnoordhuis: over unix sockets, that is [17:10] ShinyDarkness has joined the channel [17:11] Ownatik has joined the channel [17:11] joshsmith has joined the channel [17:12] tapas: hi, i tried npm install node-static and it seemed to work [17:13] _dc has joined the channel [17:13] Brandon_R has joined the channel [17:13] tapas: now i'm trying to follow this example: http://elegantcode.com/2011/05/04/taking-baby-steps-with-node-js-websockets/ [17:13] xy has joined the channel [17:13] Brandon_R: Hey guys [17:13] fatjonny has joined the channel [17:13] monokrome has joined the channel [17:13] tapas: but i get an error: http://pastesite.com/29400 [17:13] shiawuen has joined the channel [17:14] cedeon_ has joined the channel [17:14] Brandon_R: that article is outdated [17:14] tapas: static is not defined :( [17:14] Brandon_R: try the socket.io tutorials on socket.io [17:14] tapas: Brandon_R: ok, thanks [17:14] zomg: bnoordhuis: Remember that 100% CPU spiking I was having? It was apparently GC. I had some old code which loaded bazillion rows of stuff from mongo into memory, and kept it there, for eternity, which in turn made mark-sweeps take 1-4 seconds per run :P [17:14] Brandon_R: you can still use the article tapas [17:14] Brandon_R: but just use the updated code from socket.io [17:15] tapas: Brandon_R: you mean not the package node-static? [17:15] zomg: Fixed it so it didn't load the data (it was unused to begin with) and poof, issue was gone [17:15] bnoordhuis: zomg: right, that'll stress the GC something awful [17:15] EhevuTov has joined the channel [17:15] Brandon_R: nah [17:15] d0k has joined the channel [17:15] Brandon_R: i mean the socket.io client js code [17:15] Brandon_R: you don't need the new keyword in the newer versions of socket.io [17:15] tapas: Brandon_R: oh ok.. no code has ever reached my client yet, since the server doesn't start ;D [17:15] Brandon_R: it uses a design pattern called the factory pattern [17:16] mmalecki: bnoordhuis: that's pretty much what we do with our ghetto solution. however, to daemonize (push process to the background) we'd have to kill current process. with regular fork we can continue from where we left off. [17:16] cthulhu_lovecraf: Hi all, I [17:18] brianloveswords has joined the channel [17:18] cthulhu_lovecraf: 'm a bit careless with my typing. Anyhow I wanted to ask if anyone here had any experience, positive or negative with hosting node.js apps on Heroku? [17:18] rauchg has joined the channel [17:18] perezd has joined the channel [17:18] jetienne_ has joined the channel [17:18] josephg has joined the channel [17:19] tapas: Brandon_R: hmm, i know factory patterns from other object oriented languages like java/c++ [17:19] mmalecki: cthulhu_lovecraf: http://www.quora.com/How-does-Nodejitsu-compare-with-Heroku-as-a-Node-js-platform (but I'm biased, I work for nodejitsu) [17:19] Brandon_R: kool [17:19] mmalecki: cthulhu_lovecraf: that's opinion of one of our users [17:19] fzzzy has joined the channel [17:19] Brandon_R: nice choice mmalecki [17:20] mmalecki: cthulhu_lovecraf: he's actually aroun [17:20] mmalecki: joshsmith: yo! [17:20] Edy has joined the channel [17:20] Brandon_R: nodejitsu has contributed alot to node and we should help them out [17:20] Brandon_R: i love their open source philosophy [17:20] cthulhu_lovecraf: mmalecki: I'm hearing nodejitsu can't spin 'em rackspace servers fast enough :) [17:20] joshsmith: mmalecki: yo yo [17:20] cthulhu_lovecraf: Brandon_R: I agree. [17:20] tapas: too bad the links "how to use" and "browser support" are dead on http://socket.io [17:20] mmalecki: cthulhu_lovecraf: haha, we have 600 of them, I think? [17:21] tapas: oh, it was noscript interfereing [17:21] mmalecki: cthulhu_lovecraf: let me check that [17:21] tapas: sorry [17:21] Brandon_R: they should work [17:21] mmalecki: Brandon_R: I'm really happy to hear that! :) [17:21] cthulhu_lovecraf: Brandon_R: I even submitted a patch to haibu once. [17:22] Brandon_R: and i agree heroku is truing to be language agnostic and support everyone "under the sun" [17:22] Brandon_R: trying* [17:22] Carter has joined the channel [17:22] cthulhu_lovecraf: mmalecki: What is your recommended DB Hosting of choice in combination with Nodejitsu? [17:23] tapas: meh, it was just a few missing require lines binding the packages to the names [17:23] mmalecki: cthulhu_lovecraf: we support everything you can connect to :). but we also let you create your databases in easy mode [17:23] mmalecki: cthulhu_lovecraf: jitsu database create [17:24] tapas: hmm, no, the rest is broken, too.. [17:24] tapas: i wonder where i find the relevant documentation ;D [17:24] mmalecki: cthulhu_lovecraf: * jitsu databases create [17:24] broofa has joined the channel [17:24] mmalecki: cthulhu_lovecraf: it can create redis, couchdb and mongo databases for you [17:25] Brandon_R: do you work for nodejitsu mmalecki? [17:25] mmalecki: Brandon_R: yeah [17:25] Brandon_R: oh cool. didn't know [17:25] lazyshot has joined the channel [17:25] joshsmith: cthulhu_lovecraf: you can also get a Rackspace database if you don't want any of those three [17:26] joshsmith: cthulhu_lovecraf: and get it in the same data center for low latency [17:26] joshsmith: I use MySQL, so that's my approach [17:26] mc_greeny has joined the channel [17:26] cthulhu_lovecraf: mmalecki: Well, tell you like it is, I have th outmost respect for you guys, especially with regards to marak, indexzero et al. I must have signed up for private beta a couple of months ago and haven't heard back from you guys since. I need to push an app for a client during the next month or so. Is Nodejitsu a viable option for me? [17:26] harthur has joined the channel [17:28] colinclark has joined the channel [17:28] benvie has joined the channel [17:29] darkenco has joined the channel [17:29] mmalecki: cthulhu_lovecraf: well, we're still in beta. I'd choose nodejitsu for my production app because I haven't experienced any problems with our service yet [17:29] ceej has joined the channel [17:29] mmalecki: cthulhu_lovecraf: and we can hook you up soon :) [17:30] mmalecki: cthulhu_lovecraf: can you join #nodejitsu? [17:30] springmeyer has joined the channel [17:30] toabi has joined the channel [17:30] cthulhu_lovecraf: mmalecki: But will I be able to get an account within a month? [17:30] mmalecki: cthulhu_lovecraf: sure! this week, even! [17:30] innociv has joined the channel [17:31] langworthy has joined the channel [17:31] joshsmith: jitsu love cthulhu_lovecraf [17:31] joshsmith: whoops. this is not terminal [17:32] mmalecki: hahaha [17:32] cthulhu_lovecraf: mmalecki: sure. [17:32] dob__ has joined the channel [17:33] robb1e_ has joined the channel [17:34] thax has joined the channel [17:35] donald_cook has joined the channel [17:35] pksunkar1 has joined the channel [17:36] pkrumins: Just published the 11th post in Node.js Modules You Should Know About. [17:36] pkrumins: This time semver by isaacs! http://www.catonmat.net/blog/nodejs-modules-semver/ [17:36] jergason has joined the channel [17:37] pksunkara has joined the channel [17:37] mmalecki: pkrumins: MOAR! we need MOAR! [17:37] pkrumins: I KNOWS [17:38] mmalecki: pkrumins: einaros' ws module is fucking awesome [17:38] pkrumins: looking it up [17:38] pkrumins: found it https://github.com/einaros/ws [17:38] mmalecki: yup [17:38] petrjanda has joined the channel [17:39] mbrevoort has joined the channel [17:40] toabi has joined the channel [17:41] rhizmoe has joined the channel [17:42] eldios has joined the channel [17:44] Heisenmink has joined the channel [17:45] jgornick has joined the channel [17:46] rhizmoe has joined the channel [17:47] maletor has joined the channel [17:47] airhorns has joined the channel [17:48] te-brian has joined the channel [17:48] gzmask has joined the channel [17:49] gzmask: why this code working in REPL but not in a .js file? require('./underscore/underscore'); _.max([1,2,3]); [17:49] lorfds has joined the channel [17:49] pksunkara: gzmask: You need to decalre var _ [17:49] Optimis has joined the channel [17:50] gzmask: pksunkara: shouldn't that be declare in underscore lib? [17:50] munichlinux has joined the channel [17:50] gkatsev: no [17:50] gkatsev: it doesn't work that way [17:51] pksunkara: gzmask: No because it will pollute global scope [17:51] gkatsev: var _ = require("underscore") [17:51] pksunkara: gzmask: try ^^ [17:51] gzmask: i see, thanks! [17:52] towski has joined the channel [17:54] jonaslund: hummmmmmm [17:54] TheJH: gzmask, in the REPL, the result of the last command is in "_", which is not the case in normal code [17:54] Mikushi has joined the channel [17:54] kishoreyekkanti has joined the channel [17:54] Mikushi has left the channel [17:54] gzmask: i see [17:56] _dc has joined the channel [17:57] fdre3wsd has joined the channel [17:57] gzmask: also, how to break an underscore iteration since the breakloop is deprecated? [17:57] Wizek-other has joined the channel [17:57] YouDontMeanMuch has joined the channel [17:58] Swizec has joined the channel [17:58] tosh has joined the channel [17:58] jerrysv has joined the channel [17:59] snearch has joined the channel [18:00] burningdog has joined the channel [18:00] ryan_stevens has joined the channel [18:02] sh1mmer has joined the channel [18:02] harthur has joined the channel [18:03] fdre3wsd: hi hope you dont mind me pm [18:03] fdre3wsd: oops [18:03] fdre3wsd: wrong window [18:04] jerrysv has joined the channel [18:05] dgathright has joined the channel [18:05] GrizzLyCRO has joined the channel [18:07] willwh: sopa hearing - http://mfile.akamai.com/65764/live/reflector:39480.asx?bkup=39655&prop=n [18:07] willwh: :) [18:08] presbrey has joined the channel [18:09] eignerchris has joined the channel [18:09] cl0udy has joined the channel [18:09] patcito has joined the channel [18:09] pizthewiz has joined the channel [18:10] gzmask: is there anything like bundle for ruby in node? [18:11] gzmask: all these deprecated features are driving me crazy [18:13] Brandon_R: is sopa passed? [18:13] context: gzmask: npm by default does this [18:13] isaacs: please test: http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz [18:14] context: npm install anything installs stuff to ./node_modules ... which is bundled in your app in every sense of the word [18:14] briancra_ has joined the channel [18:15] dilvie has joined the channel [18:15] fangel has joined the channel [18:16] tkaemming has joined the channel [18:16] PhilK has joined the channel [18:16] `3rdEden has joined the channel [18:18] issackelly_ has joined the channel [18:19] wtfizzle: gzmask: If you put your requirements into package.json, running "npm install" will install all dependencies for you [18:21] kickingvegas has joined the channel [18:21] gzmask: what you guys are saying are all correct... i guess I just have to find the right combination of all the versions and tap them together myself... /sigh [18:21] Poetro has joined the channel [18:23] norviller has joined the channel [18:23] gzmask: the "no free lunch theory" always work ... I guess being lazy just isn't my option anymore ... not in Developer career. [18:23] kmiyashiro has joined the channel [18:23] context: gzmask: what? [18:23] context: gzmask: you could just add what you depend on in package.json and it should work just fine [18:23] captain_morgan has joined the channel [18:23] willwh: Brandon_R: not yet [18:23] Aikar: no, npm install your module [18:24] slajax has joined the channel [18:24] Aikar: then add those to your VCS system [18:24] Brandon_R: not yet what? [18:24] Aikar: next time you checkout, you have all your exact same modules [18:24] context: pretty sure development is easier these days that it ever has been [18:24] Aikar: then when your ready to update in future, run npm update, test, commit updates [18:24] isaacs: gzmask: i'm not sure i get what you're saying. npm already does that for you. [18:24] isaacs: gzmask: you just need to list what you depend on, they list what they depend on, etc. conflicts are a thing of the past, man [18:25] astrobunny has joined the channel [18:25] isaacs: gzmask: if ther's a conflict, npm will just isntall multiple copies as necessary [18:25] gzmask: I was just trying to get blog.js running and ran into underscore deprecate feature problems [18:25] TooTallNate has joined the channel [18:25] isaacs: gzmask: oh, wel, i can't speak to that :) [18:25] jerrysv: `3rdEden: ping [18:25] gzmask: but yea, I guess I can solve that by using NPM and all the version controlling features it comes with [18:26] isaacs: gzmask: that's what it's for :) [18:26] josh-k has joined the channel [18:26] gzmask: sill, everything in nodejs realm is moving so fast [18:27] context: node has settled down quite a bit since 0.4 and npm 1 [18:28] Brandon_R: i like how fast nodejs is evolving [18:28] context: gzmask: and if you look at it that way, thats the same for any language [18:28] Brandon_R: programmers of the world unite [18:28] isaacs: api-wise it's more stable than its ever been [18:28] context: hack the planet! [18:28] isaacs: api stability is now a priority, basically. [18:28] isaacs: before it wasn't [18:28] isaacs: but, there's a lot going on under teh hood, still [18:28] gzmask: context: you are absolutely right. I was from Rails... I can't agree no more having played with all the Gem hell. [18:29] context: i do rails work for a living. i dont find it much of a hell [18:29] NetRoY has joined the channel [18:29] context: sure its 'work' to keep your deps up to date [18:29] context: but thats better than having them just update and your app breaking [18:30] context: id rather my app break when i ask it to, not when it wants to [18:30] seejohnrun has joined the channel [18:30] jesusabdullah: use bundled dependencies ^^ [18:32] localhost has joined the channel [18:33] stonebranch has joined the channel [18:34] astrobunny has joined the channel [18:34] `3rdEden: jerrysv plong [18:34] Morkel has joined the channel [18:34] gzmask: I guess the only thing that works without versioning issues in the world are browser apps. [18:34] TimTimTim has joined the channel [18:35] Rushing_ has joined the channel [18:35] StanlySoManly has joined the channel [18:35] jxson has joined the channel [18:36] jarek has joined the channel [18:36] jarek has joined the channel [18:36] whitman has joined the channel [18:37] djbell has joined the channel [18:37] cedeon_ has joined the channel [18:37] joshthecoder has joined the channel [18:38] secoif has joined the channel [18:38] kishoreyekkanti has left the channel [18:38] Aikar: yes, you should be strict on versioning. mikaels comments on not using strict versioning to help get updates faster is nice in concept, but if someone npm installs your module and its broken due to an update and your away on vacation for 3 months, its not fair to the user [18:38] jerrysv: `3rdEden: up for chatting about eventreactor? [18:38] `3rdEden: sure [18:38] jerrysv: mind pm? i don't want to pollute the channel too much [18:38] secoif has joined the channel [18:38] wssr has joined the channel [18:38] maikomjames has joined the channel [18:38] Aikar: distribute/deploy the exact code thats been tested [18:38] `3rdEden: sure go a head [18:39] isaacs: Aikar: well, that's a bit silly, actually. [18:39] Aikar: isaacs: why? [18:39] isaacs: Aikar: it's easy enough to work around. [18:39] langworthy has joined the channel [18:39] isaacs: Aikar: all you have to do is install the working dep version at a higher level. [18:39] confoocious has joined the channel [18:39] eventualbuddha has joined the channel [18:39] isaacs: Aikar: in practice, i can honestly say i've never seen this. [18:39] maikomjames has left the channel [18:39] Aikar: if foo depends on bar, and a minor update to bar breaks foo, and foo author is away, now the user has to track down what ver of bar works and manually install it? [18:40] isaacs: Aikar: it's best to use reasonable dependency ranges. [18:40] isaacs: ~ is usually good. [18:40] isaacs: it is a measure of trust in the dependency author [18:40] zheneva has joined the channel [18:40] isaacs: Aikar: how many times has that happened to you? [18:40] Aikar: isaacs: yes but even a minor update may pass all tests of your own, but could still break other peoples code who depend on it [18:40] isaacs: Aikar: sure [18:40] dennisjbell has joined the channel [18:40] isaacs: Aikar: how many times has that ever happened, though? i mean, really? [18:40] Aikar: isaacs: none :P but your boss isnt going to care 'this never happened before!' when it does bite you [18:41] Aikar: and also, one of your deps could have deps that they put too wide of a range of versioning [18:41] toopay has joined the channel [18:41] isaacs: compared wiht the number of times that people have "fake" failures, where something refuses to install, or updating to fix a bug is impossible, which happens all the time. [18:41] Aikar: and their module could be broken by their dependencies, which in turn breaks yours [18:41] neilk_ has joined the channel [18:41] isaacs: Aikar: well, then it's a mistake to depend on code that isn't written by grownups. [18:41] awkn4n has left the channel [18:41] dennisjbell has joined the channel [18:42] isaacs: strict dependenceis are trading an actual big annoyance for a fix to a tiny pretend one. [18:42] Aikar: id rather just distribute the code ive tested and sleep comfortably knowing everyones using 100% tested code :P [18:42] isaacs: Aikar: distribute !== deployment [18:42] jarek__ has joined the channel [18:43] jarek__ has joined the channel [18:43] Aikar: i consider it the same really. [18:43] churp has joined the channel [18:43] isaacs: Aikar: if your boss doesn't buy the "A has never happened, B happens daily, so let's solve B instead of A", then your boss is not qualified to do their job. [18:43] maikomjames has joined the channel [18:43] Aikar: why wouldnt you harness the same rules for distribution to others as you would a deploy [18:43] maikomjames: I am starting with Node.js Would you like a simple example of connecting to mysql. Would anyone help me? [18:43] isaacs: Aikar: because distribution is to humans, not machines. [18:44] isaacs: Aikar: they can figure it out. machines are much stupider. [18:44] Aikar: isaacs: depends on the human :P [18:44] bingomanatee: Machines never figure code out. they just execute it. [18:44] patrickgamer has joined the channel [18:44] isaacs: Aikar: if that *ever* happens, please email me right away. [18:44] MatthewS has joined the channel [18:45] isaacs: Aikar: the foo->bar, bar updates, and foo author is out, and user can't work it out trivially. [18:45] isaacs: if that situaiton ^ ever happens in reality, i'd be super curious about it [18:45] bingomanatee: <-- has watched "The Terminator" too many times. [18:45] prettyrobots has joined the channel [18:45] Aikar: user prolly can work it out, but why should they need to? [18:45] Aikar: if foo just distributes the tested version of bar, it removes the possibility [18:45] patrickgamer has left the channel [18:46] Aikar: what gain do you really get from making bar a loose dep [18:46] isaacs: Aikar: because fixing edge cases that never happens instead of fixing the 99% use case is not what npm is about. [18:46] isaacs: Aikar: here's an example: let's say your app depends on semver. [18:47] maikomjames: I am starting with Node.js Would you like a simple example of connecting to mysql. Would anyone help me? [18:47] isaacs: and you depend on ~1.0.11, because that's the version that you dev against. [18:47] isaacs: that means, give me at least 1.0.11, but less than 1.1.0 [18:47] jaha has joined the channel [18:47] isaacs: right? [18:47] Aikar: maikomjames: search.npmjs.org search mysql [18:47] martin_sunset has joined the channel [18:48] bingomanatee: malkomjames - have you heard of Google? you type words in and it gives you back links that relate to the words you typed. [18:48] Aikar: isaacs: ok [18:49] jaha has joined the channel [18:49] mc_greeny has joined the channel [18:50] isaacs: Aikar: then, i find an issue with 1.0.11, and fix it, releasing it as 1.0.12. [18:50] isaacs: specifically, this one commit: * b657614 isaacs ~v0.5.4-beta should be a valid version, '1' satisfied by '1.0.0-beta' (4 weeks ago) [18:50] jaha has joined the channel [18:50] isaacs: Aikar: and your user posts a bug to you, saying "Why isn't the '1' version range satisfied by 1.0.0-beta? and why is ~v1.2.3 an invalid version range?" [18:50] isaacs: Aikar: but you'er away. [18:51] isaacs: Aikar: yes, they *could* work out that it's a semver bug, and then update semver, except your app *still* won't use that one, because you told npm not to let it. [18:51] mehlah has joined the channel [18:51] isaacs: Aikar: basically, you're saying, "No, I *specifically need that bug to be there*" [18:51] isaacs: Aikar: this is a contrived example, of course. [18:51] zheneva: Hello guys. I had connect.router(function...) and this routing declaration function became too huge and i want to drop it to another file. I had this: https://gist.github.com/1482302 and i tried some variations, without success yet. Can someone point me to the right method of doing things like this? [18:52] Aikar: ok yeah things like that can be resolved [18:52] isaacs: Aikar: but the point is, for any "ALWAYS DO X!!" type rule regarding software dependency management (including this one) it's not very hard to find an exception. [18:52] Aikar: but that scenario could go in reverse [18:52] isaacs: Aikar: the exception to that one being "except deployment"; [18:52] isaacs: :) [18:52] JaKWaC has joined the channel [18:53] jaequery has joined the channel [18:55] JasonJS_ has joined the channel [18:55] wtfizzle has joined the channel [18:57] AAA_awright has joined the channel [18:57] CarterL has joined the channel [18:57] zheneva: i've found this thread http://stackoverflow.com/questions/5778245/expressjs-how-to-structure-an-application which is kind of similar, but it didn't help me. I know the concepts, and can't figureout what's wrong with my implementation, and which one is correct [18:57] lazyshot has joined the channel [18:58] presbrey: whats a good node.js benchmark? [18:58] arnee has joined the channel [18:58] joshkehn has joined the channel [18:59] prettyrobots has joined the channel [18:59] Raynos: anyone know of a non-caching non blocking require? [19:00] TimTimTim: a few google searches for "socket.io support/backward compatibility" don't seem to be returning anything useful, so i'll ask here... will socket.io work on all older browsers as long as they support XHR? [19:00] tbranyen: fs.readFile("myscript.js", function(err, script) { eval(script.toString()); }); Raynos [19:00] tbranyen: woot [19:00] CIA-109: node: 03isaacs 07v0.6 * r9a059ea 10/ (6 files in 4 dirs): (log message trimmed) [19:00] CIA-109: node: 2011.12.14, Version 0.6.6 (stable) [19:00] CIA-109: node: * npm update to 1.1.0-beta-4 (Isaac Z. Schlueter) [19:00] CIA-109: node: * cli: fix output of --help (Ben Noordhuis) [19:00] CIA-109: node: * new website [19:00] CIA-109: node: * pause/resume semantics for stdin (Isaac Z. Schlueter) [19:00] CIA-109: node: * Travis CI integration (Maciej Małecki) [19:00] `3rdEden: TimTimTim it falls back to JSONP polling as last transport [19:00] lwille has joined the channel [19:00] `3rdEden: TimTimTim and I can't really name one browser that doesn't support JSONP. [19:00] TimTimTim: alright so i guess i just need to look up JSONP support eh? [19:00] TimTimTim: oh ok cool [19:00] Raynos: tbranyen: nice try but that doesnt quite work with module and exports not to mention corrupting my module scope [19:01] `3rdEden: except lynx [19:01] tbranyen: Raynos: you're aware of the limitations, shouldn't be hard to work around them [19:01] Raynos: No-no. [19:01] TimTimTim: oh well, that'll just be a minor tradeoff then... no lynx support in exchange for awesome realtime stuff O:) [19:01] Raynos: I want a solution that emulates the rules set by require [19:01] Raynos: it isnt hard to write, but I dont want to reinvent the wheel if someone has done it [19:02] fangel has joined the channel [19:03] dgathright_ has joined the channel [19:03] `3rdEden: Raynos have you looked at contextify? [19:03] Raynos: not yet [19:03] `3rdEden: https://github.com/brianmcd/contextify [19:03] AAA_awright has joined the channel [19:04] guybrush: nice 0.6.6 <3 [19:05] mattj_ has joined the channel [19:05] Optimis has joined the channel [19:06] kenperkins: seriously? [19:06] kenperkins: we just upgraded to 0.6.5 yesterday from 4.11 :( [19:07] mike5w3c has joined the channel [19:07] `3rdEden: kenperkins then it's just an easy upgrade to 0.6.6 now that you know the drill ;) [19:07] kenperkins: yea except I don't want to have to bring my servers down again :P [19:07] Aikar: how long is your restart process? lol [19:07] `3rdEden: use a load balancer for that? [19:07] `3rdEden: balance the load to a working server, [19:07] `3rdEden: shut down the other & upgrade? [19:07] kenperkins: Indeed, we're still robustifying our process [19:07] wtfizzle has joined the channel [19:08] kenperkins: right now it's now where I want it to be [19:08] towski has joined the channel [19:08] kenperkins: not rather [19:08] kenperkins: ACTION spent much of the last week rewriting our puppet modules to support in place upgrades of node ete [19:09] CIA-109: node: 03isaacs 07v0.6 * rdd8018d 10/ src/node_version.h : now working on 0.6.7 - http://git.io/6PLnbA [19:09] bnoordhuis: kenperkins: changeset between 0.6.5 and 0.6.6 is fairly small, mostly bug fixes [19:09] Aikar: !wa planes overhead 27603 [19:09] Aikar: mt [19:09] kenperkins: just read the changelog ty [19:10] jetienne_ has joined the channel [19:10] Aikar: bnoordhuis: wasnt there also a big V8 ver increase? [19:11] ank has joined the channel [19:11] bnoordhuis: Aikar: not in v0.6 [19:11] Aikar: or was that pulled [19:11] Aikar: oh someone said it was coming with 0.6.6 [19:12] bnoordhuis: Aikar: no, only in master a.k.a. 0.7.x-pre [19:12] jomoho has joined the channel [19:12] ryah: kenperkins: we dont change api on v0.6 branch [19:12] ryah: kenperkins: you should be able to upgrade without problems [19:12] kenperkins: upgrade problems are my infrastructure immaturity :) [19:12] kenperkins: not node :) [19:13] isaacs: achievement unlocked! [19:13] mmalecki: wow, I'm in teh changelog! [19:14] mmalecki: that's achievement unlocked! [19:14] wtfizzle has joined the channel [19:15] dambalah has left the channel [19:15] jklabo_ has joined the channel [19:16] benlyn_ has joined the channel [19:16] dshaw_ has joined the channel [19:18] delimited has joined the channel [19:19] scott_gonzalez has joined the channel [19:19] wtfizzle has joined the channel [19:20] fermion has joined the channel [19:21] `3rdEden: isaacs the docs are dead: http://nodejs.org/docs/v0.6.6/ [19:21] isaacs: 3rdEden: define "dead"? [19:21] Toin3 has joined the channel [19:22] `3rdEden: nvm :$ [19:22] `3rdEden: I was beein silly [19:22] lorfds has joined the channel [19:22] `3rdEden: I expected docs to point to the docs [19:22] `3rdEden: and not the site [19:22] `3rdEden: ._. [19:22] isaacs: ah; [19:22] joshkehn: It doesn't point to the docs. [19:22] isaacs: you're looking for http://nodejs.org/docs/v0.6.6/api/index.html [19:22] isaacs: "docs" = website [19:23] `3rdEden: odd, but ok [19:23] `3rdEden: :p [19:24] nowjs4 has joined the channel [19:24] nowjs4: hello [19:24] Raynos: 0.6.6 complains about "needing administrator" rights on my windows box when I try to get it to auto update [19:24] nowjs4: is anyone here experienced with NowJS? no one is responding on the #nowjs channel [19:24] trose: is there a simple way to detect the number of cores you have available? [19:25] Raynos: trose: http://nodejs.org/docs/v0.6.6/api/os.html#os.cpus [19:25] caolanm has joined the channel [19:25] trose: awesome [19:25] trose: raynos++ [19:25] catb0t: Raynos now has 1 beer [19:26] TheJH: nowjs4, use dnode :P [19:26] scottschecter has joined the channel [19:27] Edy: trose: require('os').cpus().length [19:27] Edy: trose: gives me 2 on my machine [19:27] dwhittle has joined the channel [19:28] wtfizzle has joined the channel [19:28] Toin3: Hi all [19:29] Toin3: Can somebody somebody tell me how can I obtain the address of the requested page on a web server developed with libuv and HTTP-parser ? [19:31] ryah: Toin3: parser.on_url [19:31] JustinCampbell has joined the channel [19:31] TimTimTim: is there a native function in node that will load and parse JSON files into memory? or do i need to do readFile and JSON.parse? [19:31] cnu has joined the channel [19:31] context: readFile and JSON.parse [19:32] TimTimTim: thanks, just wanted to make sure i wasn't overlooking something [19:32] JustinCampbell: can someone maybe help me with refactoring some code? [19:32] JustinCampbell: i'm writing a daemon [19:32] Raynos: When navigating the node lib source code how do you track require's like https://github.com/joyent/node/blob/master/lib/module.js#L22 ? [19:32] JustinCampbell: and its just squashed on the global namespace [19:32] JustinCampbell: and id like to learn how to do it properly [19:32] Raynos: I cant find native_module.js [19:33] TimTimTim: oh one more question... should i use readFileSync or readFile for the JSON.parse? [19:33] tbranyen: depends if you read only on the start of the app [19:33] Raynos: always readFile [19:33] tbranyen: might as well just make it sync [19:34] TimTimTim: readFileSync if i expect the file to possibly be changed at any time right? [19:34] Raynos: readFile if you expect the file to change [19:34] Raynos: you must not use sync methods when the server is running [19:34] tbranyen: wat... [19:34] tbranyen: oh you mean to reload it later [19:35] iRoj has joined the channel [19:35] TimTimTim: what are some use cases for sync? i'm confused here :| [19:35] mcluskyd_ has joined the channel [19:35] jerrysv: TimTimTim: at application start [19:36] jerrysv: if you need things to happen syncronously [19:36] TimTimTim: ohhhh i gotcha [19:36] TimTimTim: thanks [19:36] Toin3: Thank you ryah ;) [19:36] admc has joined the channel [19:37] TimTimTim: i was thinking in terms of like... different users reading/writing to the same file at the same time [19:37] dambalah has joined the channel [19:37] TimTimTim: are there built in mutexes and semaphores or will i need to control that myself? [19:38] wtfizzle has joined the channel [19:39] TimTimTim: are there built in mutexes and semaphores or will i need to control that myself or through something like redis? [19:39] Toin3: Do you have a sample and basic webserver made with libuv which can parse a html page ? [19:40] ryah: parsing html is hard [19:40] mmalecki: hah! [19:40] ryah: Toin3: you should use node [19:40] ryah: Toin3: there's a few modules to parse html [19:42] secoif: Toin3 do you want to strictly 'parse html' or scrape webpages [19:42] caolanm: isaacs: thanks for your stdin fixes in node 0.6.6, it fixed some issues for me, but I still have a problem if I call my getPassword function twice, can you see any glaring errors in the way I'm doing this? https://github.com/kanso/kanso/blob/master/src/kanso/utils.js#L425-455 [19:42] iRoj has joined the channel [19:42] Carter has joined the channel [19:43] _jgr has joined the channel [19:43] Toin3: I want to display the content of html file, but I must use libuv an html-parser :s [19:44] _jgr has joined the channel [19:44] Toin3: (Sorry for my bad English, but I'm French) [19:45] SubStack: the content? browsers are good at displaying content [19:45] SubStack: do you want to scrape chunks of text out of webpages? [19:45] thax_ has joined the channel [19:45] caolanm: or can anyone else see why this would lock up the terminal after calling it twice? https://github.com/kanso/kanso/blob/master/src/kanso/utils.js#L425-455 [19:46] ryah: Toin3: then you should link to libxml2 [19:48] Toin3: So, I will try to explain. I must make a web server on wich you can connect and view page. For the moment, I follow the tutorial, and I just have a "Hello world". I would like to view the page that I want, for example : http://loaclhost:8080/index.hmtl [19:48] jldbasa has joined the channel [19:48] iRoj has joined the channel [19:49] SubStack: Toin3: you can either load in a file with fs.readFile or fs.createReadStream or use a library like express or connect [19:50] SubStack: to load static content [19:50] SubStack: or this module is pretty good for that too: https://github.com/jesusabdullah/node-ecstatic [19:50] Toin3: Yes, but it's for my homework and I must use just libuv and http-parser :s [19:51] flip_digits has joined the channel [19:51] captain_morgan has joined the channel [19:51] SubStack: "I must do it the wrong way because somebody is making me." [19:51] SubStack: good luck with that [19:51] Raynos: Why can't I require('native_module'); ? [19:51] chjj: SubStack: people do that all the time [19:52] chjj: SubStack: you wouldnt know, because you are only a robot [19:52] chilts: Raynos: which native module? and what is the error? [19:52] jbpros has joined the channel [19:52] Raynos: this one : https://github.com/joyent/node/blob/master/lib/module.js#L22 [19:52] SubStack: chjj: contrived homework assignments are a pet peave of mine [19:52] harmaz has joined the channel [19:52] Raynos: and the error is a generic Cannot find module [19:53] chjj: SubStack: i wasnt paying attention, i was just looking for a reason to call you a robot [19:53] chjj: ;p [19:53] harmaz: is the 'bin' directory under 'node_modules' supposed to be invisible? mine looks like this: 'PATH/node_modules/.bin' [19:54] chilts: Raynos: ah, I see ... I also get the same error [19:54] Raynos: I want that wrap function [19:54] Toin3: I don't understand, it is not possible to do that ? [19:54] cypherblue has joined the channel [19:54] Raynos: I can just require module directly, that does work [19:55] indexzero has joined the channel [19:55] jerrysv: your homework specifies that you must use libuv and http-parser? [19:55] barbecuesteve has joined the channel [19:56] wssr has joined the channel [19:56] LarsSmit has joined the channel [19:56] TheFuzzball has joined the channel [19:56] wiwillia: SubStack: Did you see teespring.com/nodejs? [19:57] salva has left the channel [19:57] barbecuesteve has left the channel [19:57] Toin3: Yes, i must [19:57] skm has joined the channel [19:57] wssr has left the channel [19:58] Raynos: If I start relying on Module.prototype._compile will my code totally break in 0.8 ? [19:58] wssr has joined the channel [19:58] Toin3: And the finality is to interpret server language but for the moment, I'm block with the url :s [19:58] chjj: Raynos: why are you trying to use all this internal api? [19:59] Raynos: chjj: I want an asynchronous require, I think fs.readFIle and Module.prototype._compile will work for my needs [19:59] chjj: oh [19:59] cthulhu_lovecraf has joined the channel [19:59] pandeiro has joined the channel [20:00] SubStack: wiwillia: yes [20:01] wiwillia: SubStack: love the art. It's going to look great. [20:01] joshkehn has left the channel [20:01] Luffha has joined the channel [20:02] `3rdEden: wiwillia it misses something on the back ;9 [20:02] `3rdEden: it's like.. empty [20:05] Raynos: Totally not cool : https://github.com/joyent/node/blob/v0.6/lib/fs.js#L733 [20:06] presbrey: whats new in 0.6.6? [20:06] kenperkins: so am I' doing something wrong with cluster.fork and enabling debug? [20:07] mikeal has joined the channel [20:07] kenperkins: when I connect node-inspector, I only see the source for the master [20:07] PHPTroll has joined the channel [20:08] skm has joined the channel [20:09] base698 has joined the channel [20:12] smathy has joined the channel [20:14] chjj: http://www.dartlang.org/docs/spec/index.html - try to read without facepalming [20:14] chjj: cant be done [20:15] franciscallo has joined the channel [20:15] jspiros has joined the channel [20:15] diogogmt has joined the channel [20:15] chjj: it feels like im looking at the bastard child of java, c++, php [20:16] fatjonny has joined the channel [20:17] arcanis has joined the channel [20:18] ppcano has joined the channel [20:18] ChadPrimmer: and Javascript [20:19] stisti has joined the channel [20:20] mjr_ has joined the channel [20:21] mikeal has joined the channel [20:23] martin_sunset has joined the channel [20:25] wiwillia has joined the channel [20:25] ppcano has left the channel [20:26] kenperkins: does anyone know about the debugging options with cluster? I can't find any information on the web [20:27] ppcano has joined the channel [20:28] JaKWaC has joined the channel [20:31] jetienne_ has joined the channel [20:31] caolanm has joined the channel [20:34] tomyan has joined the channel [20:36] githogori has joined the channel [20:37] Poetro has joined the channel [20:38] k1ttty has joined the channel [20:38] CarterL has joined the channel [20:39] GrizzLyCRO has joined the channel [20:39] guybrush: https://gist.github.com/1482769 im confused [20:40] guybrush: theres only stdin now on a forked child? [20:40] rwaldron has joined the channel [20:40] JmZ: when using step, how can i call the callback manually when using groups? e.g. you usually, as the callback, pass group() [20:40] JmZ: i tried group()(...) where ... is my params/args [20:40] JmZ: but i get undefined in the next function [20:41] JmZ: this app is becoming frustrating quickly. i've tried just for loops, async's queue, async's waterfall, step, my own sort of queue, just can't get the flow how i want it [20:42] idefine has joined the channel [20:42] ChadPrimmer: chjj, whatever you do... don't write a for loop, to count to 50,000,000 ...... :) [20:42] ChadPrimmer: on that site, it has the "code box" where you can write code, and execute it.... it didn't like that. [20:43] fagott has joined the channel [20:43] fagott: distryslaves [20:43] Wizek-other has joined the channel [20:43] vl4kn0 has joined the channel [20:44] JmZ: anyone have any idea? someone must know something about step [20:44] niko has joined the channel [20:45] vl4kn0 has left the channel [20:49] warz: so, ive kind of found a setup with nodejs that looks like something i could get used to. probably going to use express.js and mustache templates. that feels like what im used to with python's flask and jinja. [20:50] jetienne_ has joined the channel [20:50] warz: my mind is just being blown at the moment trying to then think about backbone.js and client-side mustache templates. [20:50] warz: the web has evolved and i am stuck in the dust! nooo. [20:50] pandeiro has joined the channel [20:51] devongovett has joined the channel [20:51] JmZ: well this was productive, guess ill idle until some activity, again [20:51] joshsmith: how does Jasmine differ from Mocha? [20:52] __tosh has joined the channel [20:52] JmZ: YES [20:52] JmZ: got it [20:53] cypherblue: I'm getting an Expresso error: When trying to do a simple assert.response() like on the webpage, I get back "uncaught undefined: TypeError: Cannot read property 'title' of undefined at Object.response (.../expresso/bin/expresso:395:22) [20:54] nora has joined the channel [20:54] reid has joined the channel [20:56] chasefarmer has joined the channel [20:56] mcluskydodallas has joined the channel [20:57] idefine has joined the channel [20:58] CIA-109: node: 03Ryan Dahl 07v0.6 * ree73132 10/ Makefile : use rsync instead of scp to upload website - http://git.io/fiMx0Q [20:58] StanlySoManly1 has joined the channel [20:59] Xano_ has joined the channel [20:59] ceej has joined the channel [20:59] CIA-109: node: 03Robert Mustacchi 07master * r2240486 10/ (doc/api/process.markdown src/node.cc): Add process.abort - http://git.io/iTWcgA [21:00] k1ttty_ has joined the channel [21:00] megalomix has joined the channel [21:00] megalomix: hello everybody [21:00] SubStack: OH HELLO [21:00] megalomix: guys, someone could help me with Crypto? [21:01] megalomix: i need to create a pair of keys (private/public) [21:01] megalomix: i need to crypt with public and only the user that have the private can decrypt [21:01] megalomix: examples somewhere? (i googled a lot....but nothing... :-( ) [21:03] insin has joined the channel [21:03] SubStack: megalomix: I use openssl commands to do that [21:04] megalomix: SubStack, but is not crypto a module based on openssl ?? [21:05] imtzo has joined the channel [21:05] SubStack: megalomix: any particular reason you want to do that programatically? [21:05] megalomix: yes [21:06] megalomix: i have to create a "copy" of my database [21:06] megalomix: is not really a copy(dump) [21:06] megalomix: btw i need a system TO ENCRYPT but NOT to decrypt [21:06] megalomix: or better [21:06] SubStack: oh that is totally different [21:06] megalomix: decrypt with a key that can be used for decrypt [21:06] SubStack: just hash with md5 or sha [21:06] megalomix: no no [21:06] SubStack: one-way [21:06] megalomix: wiat [21:07] megalomix: wait [21:07] maikomjames has left the channel [21:07] megalomix: i mean... [21:07] skm has joined the channel [21:07] fangel has joined the channel [21:07] salva has joined the channel [21:07] megalomix: i need a key that i can use to encrypt something..........but that key must not use to decrypt the same document... [21:07] jesusabdullah: http://docs.nodejitsu.com/articles/cryptography/how-to-use-crypto-module might be helpful [21:07] megalomix: so two keys public and private [21:07] megalomix: i have a private key [21:08] megalomix: i haven't smethig like: var key = 'blablabla' [21:08] megalomix: it is point less for this kind of system [21:08] megalomix: obviously the private key there is not on the SERVER [21:08] megalomix: i have that key on my computer [21:08] megalomix: jesusabdullah, i see, thanks [21:08] colinclark has joined the channel [21:08] spoletto has joined the channel [21:09] jesusabdullah: Yeah, no problem [21:09] jesusabdullah: I mean, I didn't even really know if you'd find it helpful [21:09] jesusabdullah: XD [21:09] jesusabdullah: Oh, but for some things, shelling out to openssl binaries might be the easiest thing for you [21:09] jesusabdullah: depending [21:09] jesusabdullah: just keep that in mind [21:10] No9 has joined the channel [21:10] megalomix: jesusabdullah, i think the last point is for me :) [21:10] megalomix: Signing and Verification <----- [21:10] jesusabdullah: ahh [21:10] jesusabdullah: Yeah [21:10] megalomix: but there is not an example :( [21:11] jesusabdullah: http://nodejs.org/docs/v0.6.4/api/crypto.html [21:11] adambeynon has joined the channel [21:11] jesusabdullah: gets into the nitty-gritty [21:11] jesusabdullah: It's unfortunately not an "easy" problem to Just Set This Stuff Up I think [21:11] mikeal has joined the channel [21:11] spoletto: Hey guys: I'm trying to use Mongoose to interface with MongoDB to atomically pull entries from a queue. The Mongoose documentation says, "Mongoose interacts with your embedded documents in arrays atomically, out of the box." But what does this really mean? If two clients both try pulling entries from the queue at the same time, does Mongoose do something to handle that? Is a find(...) ... save() pair somehow guaranteed to be atomic? [21:12] jesusabdullah: You need to get knowledged up on crypto first, and then knowledged up on openssl [21:12] jesusabdullah: also: the diffieHellman stuff is new-ish [21:12] jesusabdullah: I wrote that article for node 0.4.x [21:12] albertosh has joined the channel [21:12] megalomix: jesusabdullah, DH works for exchanging keys [21:12] jesusabdullah: but no generating? [21:13] megalomix: yes i can generate them [21:13] megalomix: BUT [21:13] jesusabdullah: Typically, you can generate keys using openssl [21:13] megalomix: yes [21:13] jesusabdullah: but? [21:13] megalomix: but with DH if you see [21:13] megalomix: i CAN generate the keys but i don't uderstand why i can't sent the cipher [21:13] megalomix: *set [21:13] jesusabdullah: What do you mean, you can't set the cipher? [21:14] megalomix: i mean....AFTER i create private/public keys with DH......then? I mean... [21:14] megalomix: can i use those keys with createCipher() createDecepher() (passing the keys i generated) ? [21:15] jesusabdullah: Presumably you would read in the keys using the fs module [21:15] jesusabdullah: the keys are just text strings [21:15] codygray has joined the channel [21:16] jesusabdullah: It'd be cool to write a beefier version of that example that uses actual encryption instead of a simple cipher [21:16] jesusabdullah: though, I'd imagine that cypher would be enough for a lot of cases [21:17] megalomix: yes it is a lot [21:17] megalomix: but [21:17] megalomix: as i wrote i need to encrypt some data from DB [21:17] markbao has joined the channel [21:17] markbao: Hi there [21:17] megalomix: if i write the key doing: var key='blabla' everybody can see it [21:18] markbao: With node 0.6.x: does forever simply not work? Is there an alternative? [21:18] skm has joined the channel [21:18] megalomix: if i use a public key,....there are no problems because someone need the private to decrypt [21:18] megalomix: and only me have the private key [21:19] maxogden: markbao: https://github.com/nodejitsu/forever/pull/163 [21:19] markbao: maxogden: ah, so it's still in the works [21:19] CIA-109: node: 03Ryan Dahl 07master * rde5ba2d 10/ tools/gyp_node : Don't print args from gyp_node - http://git.io/mcoDLg [21:20] chunhao_ has joined the channel [21:20] delimited has joined the channel [21:20] CIA-109: node: 03Ryan Dahl 07isolates2 * rd1a4887 10/ (src/node.cc src/node_isolate.cc src/node_isolate.h): Move uv loop initialization into isolate (+15 more commits...) - http://git.io/BIw5_w [21:24] cthulhu_lovecraf has joined the channel [21:26] Dov has joined the channel [21:26] Dov: Hi [21:27] Dov: Has anyone seen an issue with writing out large files ( on Windows 7 server) ? [21:27] Dov: CPU hits 100%, nothing happens. Same code/file works on Mac server [21:28] ShinyDarkness has joined the channel [21:28] Dov: going to debug, but was wondering if it was known ? [21:28] skm has joined the channel [21:30] ryah: Dov: not known [21:30] ryah: Dov: what is the file doing? [21:31] jimmysparkle has joined the channel [21:31] ryah: Dov: can you post an issue at http://github.com/joyent/node/issues ? [21:31] Dov: basically storing a file in a redis DB [21:31] Dov: getting from an internal server [21:31] Dov: and trying to write it to disl [21:31] Dov: and trying to write it to disk [21:31] k1ttty_ has joined the channel [21:32] jetienne_ has joined the channel [21:32] isaacs has joined the channel [21:32] Dov: works with files at 7M, failed at 20M haven't yet tried all the vals inbetween [21:32] Dov: works fine on my other Mac OSX 10.6 machine [21:33] harmaz has joined the channel [21:33] Dov: fails - 100% CPU - on my windows 7 VM - I'll log it as an issue [21:33] Dov: and investigate further [21:33] Dov: thanks [21:33] harmaz: npm appears to install modules in both ~/.npm and APP_ROOT/node_modules. why is this? [21:34] Poetro has joined the channel [21:34] riven has joined the channel [21:34] riven has joined the channel [21:36] isaacs: harmaz: it doesn't install them in ~/.npm. that's a cache folder [21:36] Sorella has joined the channel [21:36] isaacs: harmaz: so, the content is there, but it doesn't link up bins, install deps, etc. [21:37] Wa has joined the channel [21:37] isaacs: ircretary: tell caolanm Hey. I don't know why your kanso password function isn't working, but this seems to work fine if I call it more than once: https://github.com/isaacs/read [21:37] ircretary: isaacs: I'll be sure to tell caolanm [21:37] isaacs: ircretary: thanks [21:37] ircretary: isaacs: You're welcome :) [21:38] insin: "Travis CI integration" in 0.6.6? Is that documented somewhere? [21:38] isaacs: insin: hang out in #libuv. every time we push, it builds node on travis. [21:38] skm has joined the channel [21:38] insin: ah, I see, ta [21:42] djbell has joined the channel [21:45] isaacs: np [21:46] delimited has joined the channel [21:48] skm has joined the channel [21:49] skm has joined the channel [21:51] hellp has joined the channel [21:51] cypherblue: oh I wasn't naming my tests [21:51] tilgovi has joined the channel [21:51] TimTimTim: i can't seem to figure this out... i'd like to access an express session using connect-redis from within a socket connection... [21:51] cyborg has joined the channel [21:52] TimTimTim: i've tried getting the connect.sid using connect.utils.parseCookie(client.handshake.headers.cookie) [21:52] TimTimTim: but firefox doesn't pass the connect.sid cookie with the socket [21:52] salva has joined the channel [21:52] salva has left the channel [21:53] TimTimTim: and checking document.cookie in firefox isn't showing the connect.sid cookie either :| [21:53] TimTimTim: what am i missing? [21:54] npa has joined the channel [21:54] joshgillies has joined the channel [21:55] cyborg has left the channel [21:55] darkenco has joined the channel [21:56] ChrisPartridge has joined the channel [21:57] megalomix: sudo n 0.6.5 [21:57] ShinyDarkness has joined the channel [21:57] megalomix: Error: installation failed [21:57] megalomix: node version 0.6.5 does not exist, [21:57] megalomix: �_� [21:57] megalomix: why? [21:58] secoif: Why do many module developers use an index file that does nothing more than require ./lib/something_else.js? [21:59] secoif: megalomix n --version ? [21:59] jj0hns0n has joined the channel [21:59] megalomix: secoif, 0.5.0 [21:59] spoletto has joined the channel [22:00] secoif: perhaps you should update. npm update -g [22:00] isaacs: megalomix: use nave. [22:00] secoif: megalomix n is up to 0.5.4 [22:00] uchuff has joined the channel [22:00] megalomix: npm ?? [22:00] isaacs: megalomix: or update n, i guess :) [22:00] chilts: ACTION uses nvm quite happily [22:01] chilts: I should try nave too though [22:01] secoif: megalomix npm ?? ? [22:01] megalomix: isaacs, i used navy, but i need to change .bashrc [22:01] megalomix: n is more "immediate" [22:01] secoif: ACTION never had issues with n [22:01] megalomix: npm update -g <---- to update n ? [22:01] imtzo has joined the channel [22:01] isaacs: megalomix: that might work, sure [22:01] seanh510 has joined the channel [22:01] secoif: megalomix that will update all your global modules [22:01] isaacs: megalomix: or just `npm install n -g` [22:02] megalomix: npm update -g <---- to update n ? [22:02] megalomix: hmmm [22:02] megalomix: always 0.5.0 [22:02] megalomix: :/ [22:03] jimt has joined the channel [22:03] djbell has joined the channel [22:03] isaacs: megalomix: how did you install n? whatever you did to install it, do that again [22:03] Bioxyde has joined the channel [22:03] timbl has joined the channel [22:03] secoif: megalomix or remove it, and use npm to install n [22:03] megalomix: yes but is not strange i can install it using npm ? [22:04] djbell has joined the channel [22:04] secoif: megalomix why would that be strange? [22:04] megalomix: damiano@damiano-P5K-VM:~$ whereis n [22:04] megalomix: n: /usr/local/bin/n /usr/local/n [22:04] megalomix: remove ? [22:04] seanh510: tls.connect takes a callback for when handshaking has finished, but how are you supposed to tell if the connection fails? (note, connecting, not just if authorization has failed) [22:04] megalomix: secoif, can i use npm to install n ? [22:04] secoif: megalomix yes. [22:04] secoif: i believe so [22:04] megalomix: secoif, so it is strange that i can't do it [22:05] jimmysparkle has joined the channel [22:05] secoif: megalomix why can't you do it? [22:05] djbell has joined the channel [22:06] megalomix: secoif, https://gist.github.com/1483122 [22:07] secoif: megalomix you should be using npm install -g n for starters [22:07] secoif: see if that changes the error [22:07] isaacs: megalomix: whoa, what kind of node is that? [22:07] megalomix: no [22:07] isaacs: that error should not happen [22:07] megalomix: same error [22:08] isaacs: megalomix: nono, that's a libuv thing. that's deep magic. [22:08] isaacs: megalomix: how'd you install node? [22:08] isaacs: it's all borked up [22:08] megalomix: with n [22:08] pquerna: on twitter i always want to us #node.js, but then twitter never links it right, so then i write #nodejs, but it feels all funny. [22:08] isaacs: megalomix: can you *un*install it with n, and then install it normally somewhere? [22:08] megalomix: ok i do one thing [22:08] lduros has left the channel [22:08] isaacs: pquerna: use @nodejs [22:08] megalomix: format c: [22:08] isaacs: on twitter. [22:08] megalomix: ahahahah [22:08] megalomix: :) [22:08] megalomix: i remove all [22:08] megalomix: node and n [22:08] isaacs: pquerna: @nodejs is the actual thing. [22:08] megalomix: and npm [22:09] megalomix: and i reinstall all again [22:09] secoif: megalomix good idea [22:09] isaacs: megalomix: that should work. [22:09] isaacs: megalomix: if you install node 0.6.5, you'll get a recent npm along with it [22:09] isaacs: latest and greatest, in fact [22:09] torm3nt has joined the channel [22:09] TimTimTim: if express is built on top of connect, how do i access connect's utils? [22:09] TimTimTim: or is it only parts of connect [22:09] megalomix: one moment isaacs [22:10] megalomix: i have to install N [22:10] secoif: TimTimTim what do you want to access? most of the time if you'd normally do connect.X then do express.X [22:10] megalomix: then the last node version [22:10] megalomix: and i will get npm automatically ? [22:10] TimTimTim: i'm trying to access sessions from within sockets [22:10] secoif: megalomix I'd install node before I installed n [22:10] isaacs: megalomix: you don't have to install n, but that's optional [22:10] sven-s has joined the channel [22:10] reid has joined the channel [22:11] megalomix: isaacs, i know...i use n for comodity [22:11] isaacs: megalomix: personally? i use nave for subshells with specific versions, then keep the latest and greatest node in the default location /usr/local [22:11] TimTimTim: i need the user's session id to pull the session data from redis [22:11] sven-s has left the channel [22:11] megalomix: ok so what are the steps ? [22:11] megalomix: now i have removed ALL [22:11] isaacs: megalomix: great [22:11] megalomix: npm n and node [22:11] kenperkins: just noticed that we were seeing asserts in what we thought was the retail build [22:11] isaacs: megalomix: what operating system? [22:11] kenperkins: how should i check that [22:12] secoif: TimTimTim you'd do that from within a request wouldn't you? It's probably just req.session [22:12] megalomix: ubuntu 11.10 [22:12] megalomix: isaacs, ubuntu 11.10 [22:12] TimTimTim: i'm trying to do it from within a socket connection, not a request [22:12] petrjanda has joined the channel [22:13] secoif: TimTimTim oh. yeah I have no idea how to do that. perhaps you want to keep track of who owns what socket connections [22:13] StanlySoManly has joined the channel [22:14] dgathright has joined the channel [22:14] TimTimTim: well the socket id's change on reconnect, which is why i need to get the user's "connect.sid" cookie [22:15] megalomix: isaacs, ? [22:15] TimTimTim: i don't have connect installed but i do have express installed... and i know express is built on top of connect so it would seem silly to install connect too just to parse the cookies [22:15] dgathright_ has joined the channel [22:15] TimTimTim: maybe i should look into express's source code or something lol :| [22:16] isaacs: megalomix: ok, get the source from here, then: http://nodejs.org/#download [22:16] franciscallo has joined the channel [22:16] isaacs: megalomix: download the tarball, crack it open, ./configure && make && sudo make install [22:16] isaacs: megalomix: that'll give you node and npm [22:16] secoif: TimTimTim when you say sockets, are you talking about socketio or net.Socket [22:16] megalomix: isaacs, but n, nave and nvm are not good to install node ? [22:16] isaacs: megalomix: then, `sudo npm install nave -g` or `sudo npm install n -g`, or whatever. [22:16] megalomix: isaacs, why after ? [22:16] isaacs: megalomix: well, you used n, and that died. i don't support n :) [22:17] isaacs: megalomix: because it's best to have some node available all the time, even outside of a nave subshell [22:17] isaacs: megalomix: but, you CAN get the nave script, drop it in the PATH somewhere, and just use that always [22:17] megalomix: ok [22:17] megalomix: i will do that [22:17] megalomix: better [22:17] isaacs: http://github.com/isaacs/nave/raw/master/nave.sh [22:17] colinclark_ has joined the channel [22:17] TimTimTim: secoif: socket io [22:17] megalomix: can i put it in my home ? [22:17] isaacs: curl http://github.com/isaacs/nave/raw/master/nave.sh > ~/local/bin/nave [22:18] isaacs: chmod 0755 ~/local/bin/nave [22:18] shapeshed has joined the channel [22:18] megalomix: ok [22:18] isaacs: megalomix: as long as it's in your $PATH env [22:18] megalomix: i try one moment [22:18] isaacs: megalomix: nave puts stuff in ~/.nave [22:18] shapeshed_ has joined the channel [22:18] secoif: TimTimTim seen http://stackoverflow.com/questions/4753957/socket-io-authentication ? [22:18] isaacs: megalomix: and uses subshells. [22:18] isaacs: megalomix: if you explicitly set the PATH in your .bashrc it might not work [22:19] Xano has joined the channel [22:19] megalomix: i have done: curl http://github.com/isaacs/nave/raw/master/nave.sh > ~/local/bin/nave in /home/damiano [22:19] megalomix: but i can't right? [22:19] megalomix: bash: /home/damiano/local/bin/nave: File o directory non esistente [22:19] isaacs: megalomix: why can't you? [22:19] isaacs: oh, well, that's cuz ~/local/bin doesn't exist [22:19] isaacs: megalomix: were do you normally put executables? [22:19] isaacs: what's your $PATH look like? [22:20] TimTimTim: secoif: i did see that but i haven't tried it yet [22:20] megalomix: $PATH [22:20] megalomix: bash: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: File o directory non esistente [22:20] TimTimTim: i'll try it now [22:20] scottmizo has left the channel [22:21] timbl has joined the channel [22:21] LukeHipsterStile has joined the channel [22:21] megalomix: isaacs, i have to exit from my home ? [22:22] isaacs: megalomix: echo $PATH [22:22] isaacs: not just $PATH [22:22] bshumate has left the channel [22:22] isaacs: type `echo $PATH` [22:22] megalomix: echo $PATH [22:22] megalomix: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [22:22] isaacs: there ya go [22:22] isaacs: megalomix: so, you have a few options. [22:23] isaacs: 1. Modify your $PATH env in your .bashrc. 2. put nave in /usr/local/bin [22:23] isaacs: option 2 is probably easier [22:23] megalomix: yes i prefer it [22:23] megalomix: :;D [22:23] megalomix: ok [22:23] isaacs: curl -O http://github.com/isaacs/nave/raw/master/nave.sh; chown 0755 nave.sh; sudo mv nave.sh /usr/local/bin/nave [22:23] isaacs: then: nave use 0.6.6 [22:25] megalomix: isaacs, have a problem [22:25] RobWC has joined the channel [22:25] megalomix: isaacs, https://gist.github.com/1483217 [22:26] tomasztomczyk has joined the channel [22:26] brianc1: you know what I hate? [22:26] isaacs: megalomix: the curl failed. [22:26] brianc1: when you find a module you want to use and the find out it's written in coffee-script [22:26] spoletto has joined the channel [22:26] brianc1: >:O [22:26] AAA_awright: brianc1: HATE HATE HATE [22:26] isaacs: curl -LO http://github.com/isaacs/nave/raw/master/nave.sh; chown 0755 nave.sh; sudo mv nave.sh /usr/local/bin/nave [22:26] megalomix: ok [22:26] megalomix: one moment [22:27] ryah: http://mejorando.la/ <-- this is great [22:27] brianc1: two minute hate [22:27] TheJH: brianc1, right, that's totally bad. Coco is much more awesome! [22:27] megalomix: isaacs, same problem [22:27] brianc1: I don't even know what coco is [22:27] megalomix: isaacs, https://gist.github.com/1483225 [22:27] isaacs: megalomix: just go to https://raw.github.com/isaacs/nave/master/nave.sh and download it, then [22:28] TheJH: brianc1, coffeescript clone with approximately no bugs and very clean syntax [22:28] isaacs: TheJH: that's a bit like saying that dog poop is so much better than elephant poop. it may be true, but i'm not really interested in either. [22:28] mmalecki: lol @ clean syntax [22:28] megalomix: strange [22:28] shapeshed_: ryah: I love his hat [22:28] TheJH: isaacs, it bores you? then why do you talk about it if I didn't even talk to you? :P [22:29] dubenstein has joined the channel [22:29] megalomix: it is not strange ? [22:29] isaacs: TheJH: it doesn't bore me, no. it's just that coffeescript smells kind of bad. coco also smells bad. [22:29] TheJH: mmalecki, clean and consistent syntax, yes. no reason to lol :P [22:29] sebastianedwards has joined the channel [22:30] mmalecki: TheJH: I've seen some code written in coco, I don't like the syntax [22:30] jergason has joined the channel [22:30] devaholic: ryah what is this [22:30] brianc1: i know it's beating the oldest deadest horse ever to bitch about it. i just had to gripe. found what at first glance seems to be a nice ms sql server client in node. but it's in coffee-script. so to contribute to it I have to a) learn coffee-script b) decipher the source c) punch myself in the face (this step optional) [22:30] admc has joined the channel [22:30] briancra_ has joined the channel [22:30] mmalecki: ah, I think I know what video is that [22:30] TheJH: mmalecki, why not? shorter, no superfluous braces and stuff [22:30] seanh510: brianc1: a) is doing yourself a favor anyway [22:30] isaacs: TheJH: it's only shorter if you value bytes over time. [22:30] ryah: i want to help him [22:30] wtfizzle has joined the channel [22:31] satyr: isaacs: is ES.next smelling bad as well? [22:31] ryah: he's having problmes :~ [22:31] devaholic: lol he's having troubles! [22:31] devaholic: yea [22:31] mmalecki: ryah: what is it, really? [22:31] mmalecki: ryah: is it for this competition? [22:31] TheJH: isaacs, hmm... [22:31] ryah: i dont know [22:31] isaacs: satyr: the smell comes from the "translate this code into different code to run, losing all debugging ability in the process" [22:31] blaenk has joined the channel [22:31] mmalecki: the one I forgot the name of? [22:31] isaacs: satyr: not the specific language features. those are whatever. [22:31] ryah: someone help him [22:31] devaholic: LOL [22:31] isaacs: ryah: what's that bideo about? [22:31] devaholic: english profanity out of nowhere [22:31] isaacs: *video [22:31] devaholic: i cant type, i can only sort of understand him [22:31] mmalecki: ryah: oh man. [22:31] megalomix: sudo nave [22:31] megalomix: sudo: nave: command not found [22:32] mmalecki: ryah: now I started watching it. [22:32] mmalecki: and I want to call him. [22:32] ryah: he's trying to do "node -e servidor.js" [22:32] isaacs: megalomix: you don't need to use sudo when you run nave [22:32] ryah: :~( [22:32] ryah: we should remove -e [22:32] isaacs: ryah: no, it's so nice! [22:32] brianc1: could make an npm package with a `node-e` bin [22:32] megalomix: isaacs, bash: /usr/local/bin/nave: Permesso negato [22:33] megalomix: *denied [22:33] isaacs: megalomix: you forgot the chmod [22:33] mmalecki: ryah: we *know* you have a backdoor in node, make it talk to him! [22:33] megalomix: no i done [22:33] isaacs: megalomix: sudo chmod 0755 /usr/local/bin/nave [22:33] megalomix: ok [22:33] megalomix: oooh [22:33] megalomix: i found the problem [22:33] megalomix: you before [22:33] megalomix: wrote chown [22:33] megalomix: and not chmod :) [22:34] isaacs: megalomix: ohh, ok [22:34] isaacs: right, that's a typo [22:34] isaacs: it's the mode you need to change [22:34] isaacs: not the owner, sorry bout that :) [22:34] megalomix: yes yes no problem at all [22:34] megalomix: oook now i have nave [22:34] megalomix: nave ls [22:35] mmalecki: ryah: hey, he has a twitter! [22:35] megalomix: 0.6.6 the last stable ? [22:35] mmalecki: ryah: @freddier [22:35] devaholic: he is sure talking a lot [22:35] devaholic: maybe he'll see his twitter [22:36] mmalecki: yes. do it ryah. [22:36] megalomix: guys, is it a flash plugin to see this guy? [22:36] salva has joined the channel [22:36] secoif: megalomix yeah. [22:36] salva has joined the channel [22:36] devaholic: ahh dat codez [22:36] devaholic: =/ [22:36] salva has left the channel [22:37] megalomix: isaacs, i'm installing 0.6.6, is hit sthe last stable? [22:37] megalomix: *is this [22:37] ryah: is he still having problems? i lost the connection [22:37] isaacs: megalomix: yes [22:37] devaholic: dunno, he's doing client stuff now [22:37] devaholic: ryah [22:37] mmalecki: ryah: yes! and you have to tweet at him! [22:38] mmalecki: ryah: @freddier [22:38] devaholic: its hard to see what his problem was [22:38] wiwillia has joined the channel [22:38] wiwillia: substack you around? [22:38] wiwillia: substack want you to sign off on this reduced color version of your art [22:38] secoif: ryah make sure you include the #mejorandola tag so it appears in that feed in his stream [22:39] megalomix: isaacs, now how can i use 0.6.6 for each new shell ? [22:39] megalomix: i can set my default version ? [22:39] megalomix: *can i set.... [22:40] isaacs: megalomix: you have to type `nave use ` to enter that env [22:40] isaacs: megalomix: you can use `nave usemain ` to install it globally, but that'll require sudo. you'll need to configure sudo to preserve the environment. [22:40] isaacs: megalomix: man sudo; man visudo [22:43] joshsmith: do people use Backbone and Express together? [22:43] mc_greeny has joined the channel [22:43] stonebranch has joined the channel [22:44] shapeshed_: yep [22:44] megalomix: /home/damiano/.nave/src/ [22:44] megalomix: v0.6.6 [22:44] mnutt has joined the channel [22:44] joshsmith: I'm not fully sure I understand how the two work together [22:45] shapeshed_: backbone doesn't care about the backend [22:45] joshsmith: my main concerns right now are: 1) cleaning up client-side code organization, and 2) reducing the amount of HTML markup used [22:46] joshsmith: i.e. no more .append('' + randomVar + '') [22:46] shapeshed_: there are a few example projects on GH I think [22:47] megalomix: isaacs, https://gist.github.com/1483311 [22:47] maruku has joined the channel [22:48] tomyan has joined the channel [22:48] brianc1: joshsmith: I don't think backbone will help much with the 2nd concern directly, but it will help you integrate with a client-side templating library of your choice [22:49] isaacs: megalomix: that's weird. try this: nave clean 0.6.6; nave usemain 0.6.6 [22:49] colinclark has joined the channel [22:49] joshsmith: brianc1: hmm, I thought that was one of the primary concerns of Backbone [22:50] megalomix: > damiano@damiano-P5K-VM:/usr/local$ nave clean 0.6.6; nave usemain 0.6.6 [22:50] megalomix: Can't usemain inside a nave subshell. Exit to main shell. [22:50] romain__ has joined the channel [22:50] brianc1: joshsmith: it doesn't include it's own templating library [22:50] megalomix: isaacs, Can't usemain inside a nave subshell. Exit to main shell. [22:50] insin: Backbone leaves the rendering entirely up to you - you can continue to write it like crap if you like :) [22:50] isaacs: megalomix: yeah, type `exit` [22:50] m00p has joined the channel [22:50] isaacs: megalomix: when you'er in the nave subshell, it'll set the PATH environment [22:50] brianc1: joshsmith: you can use mustache, jquery templates, there are tons [22:50] isaacs: megalomix: so that that version of node is first. [22:51] joshsmith: brianc1: I use Jade with my Node app [22:51] jacobolus has joined the channel [22:51] megalomix: ok done [22:51] megalomix: isaacs, now? [22:51] alcuadrado has joined the channel [22:51] jj0hns0n has joined the channel [22:51] brianc1: joshsmith: jade claims to be client side compatible as well, though I'm not sure which versions of IE it supports [22:51] isaacs: megalomix: nave clean 0.6.6; nave usemain 0.6.6 [22:51] megalomix: yes done [22:51] megalomix: all good [22:51] megalomix: isaacs, no errors [22:51] isaacs: megalomix: k? you're done, then [22:51] isaacs: megalomix: node -v [22:51] alcuadrado: hey guys, how do you manage the node_modules folder in git? add it to gitignore? [22:51] megalomix: > node -v [22:51] megalomix: > [22:52] alcuadrado: commit whatever is in there? [22:52] megalomix: �_� [22:52] jldbasa has joined the channel [22:52] alcuadrado: i only have symlinks in there, so I think I should not add that to git [22:52] devaholic: alcuadrado, if its an application, commit it [22:52] brianc1: alcuadrado: .gitignore /node_modules for non-production-deployed projects [22:53] megalomix: hmmm [22:53] megalomix: i don't understand the problem [22:53] devaholic: alcuadrado, if its an npm module, gitignore it [22:53] devaholic: alcuadrado, if its an application, commit it [22:53] megalomix: isaacs, i have to use nave use 0.6.6 again ? [22:53] brianc1: alcuadrado: if it's production deployed, you _might_ want to add node_modules/ to the git repo. that's up to you (I personally do not) [22:53] bingomanatee: boy I wish my ruby-centric company would let me use Node for streaming output - the task I am set on REALLY screams "Use node for me!" [22:53] prettyrobots has joined the channel [22:53] nrstott has joined the channel [22:53] devaholic: commit it [22:53] isaacs: megalomix: if you did usemain, then it's installed in your main path. [22:53] isaacs: megalomix: in /usr/local/bin/node [22:53] insin: branch and do both :) [22:53] alcuadrado: it's an app I'm development at the moment, but would then be deployed in a server [22:53] brianc1: bingomanatee: if you're stuck with ruby, what about event_machine? [22:54] devaholic: alcuadrado, commit :P [22:54] megalomix: there is not [22:54] isaacs: megalomix: please gist the entire output of `nave usemain 0.6.6` [22:54] isaacs: megalomix: and this: /usr/local/bin/node -v [22:54] alcuadrado: but I would be commiting a link to a folder :s which can be different in the production server :s [22:54] jbpros_ has joined the channel [22:54] devaholic: fix that [22:54] alcuadrado: shouldn't I document which modules one should link with npm? [22:55] shapeshed_: use branches [22:55] megalomix: isaacs, https://gist.github.com/1483349 [22:55] CrypticSwarm has joined the channel [22:55] brianc1: alcuadrado: I suggest first ignoring the folder. once you get a solid production deployment set up and you're dependencies need to be locked in place, you might want to add the node_modules/ folder, but don't add it full of symlinks. actually install the dependencies into the folder [22:55] devaholic: alcuadrado, yes, however, you dont know that module owners will be strict with their versioning, and if they make a minor update which includes changes of another module's major update and breaks your code, its really a PITA to fix [22:56] devaholic: if its a npm module dont commit, if its an app do so [22:56] alcuadrado: so I should install de modules locally? [22:56] devaholic: http://www.mikealrogers.com/posts/nodemodules-in-git.html [22:56] devaholic: and fix the symlinking stuff before you do [22:57] isaacs: megalomix: nave usemain has a bug. [22:57] devaholic: like brianc1 said [22:57] albertosh has joined the channel [22:57] isaacs: megalomix: just get the code, install it with ./configure && make && sudo make install if you want it in all envs. [22:57] isaacs: megalomix: nave is for subshells. [22:57] isaacs: usemain is an awful hack [22:57] alcuadrado: ok, thanks for your advice guys :D [22:58] megalomix: ok [22:58] megalomix: btw installing node directly [22:58] megalomix: i will get npm [22:58] megalomix: the last versions [22:58] megalomix: right? [22:58] isaacs: megalomix: yes. [22:58] megalomix: ok perfect [22:58] megalomix: thank you [22:58] Bonuspunkt has joined the channel [22:59] megalomix: have to go [22:59] megalomix: bye bye [22:59] joshsmith: are there any other templating projects that use Jade's syntax, e.g. .class renders
[22:59] secoif has joined the channel [22:59] secoif has joined the channel [23:01] joshsmith: I like that shortened syntax, but need to do templating both server and client-side [23:01] Bonuspunkt has joined the channel [23:01] shapeshed_: haml (which inspired jade) does [23:02] cognominal has joined the channel [23:02] joshsmith: shapeshed_: do you mind if I ask what templating you use? [23:02] joshsmith: ...and why? [23:02] shapeshed_: there is a project to use jade on the client side I think [23:03] joshsmith: it seems slow from the bit I read [23:03] shapeshed_: joshsmith: https://github.com/weepy/jade-browser [23:04] dgathright has joined the channel [23:04] joshsmith: I liked Jade (for the short time I've used it) because it's way easier than writing straight HTML [23:05] shapeshed_: joshsmith: I like jade (I write haml in ruby) [23:07] hipsters_ has joined the channel [23:07] LukeHipsterStile has left the channel [23:08] shapeshed_: joshsmith: what's your take on CoffeeScript? [23:08] joshsmith: shapeshed_: heh, I just watched a screencast on it [23:08] Destos has joined the channel [23:08] shapeshed_: it is a love hate thing generally [23:09] joshsmith: I think I like a lot of the syntactical sugar it provides [23:09] joshsmith: but I'm not sure if it's good to have to compile to js [23:09] joshsmith: shapeshed_: what are your dislikes about it? [23:09] guybrush: isaacs: is there any chance that node&npm will work with package.js anytime in the future? xD [23:10] isaacs: guybrush: we work with package.json. (ie, close to zero) [23:10] isaacs: guybrush: why do you need package.js? [23:10] gr-eg has joined the channel [23:10] springmeyer has joined the channel [23:10] shapeshed_: joshsmith: I like it generally, debugging is more complex, extra layer, some devs hate it [23:11] brianc1: joshsmith: if you've not yet formed an opinion, i recommend hating it. [23:11] brianc1: joshsmith: for client side templating I use mustache.js [23:11] funkya has joined the channel [23:11] shapeshed_: see :-) love / hate [23:11] brianc1: joshsmith: I use mustache.js on the server with node as well actually [23:11] joshsmith: brianc1: why the hate? and what do you use server-side? [23:12] joshsmith: ACTION scratches q #2 [23:12] seanh510: joshsmith: fwiw, there are people who enjoy using it [23:12] brianc1: joshsmith: because writing code and _translating it_ to another language is fucking ridiculous [23:13] seanh510: so I'd form your own opinion as opposed to taking the advice of "just hate it" [23:13] guybrush: isaacs: just some ideas in my head going wild, like dynamically scripts-fields or something [23:13] seanh510: and people have been writing code in one language and "translating" it to another language for years [23:13] brianc1: joshsmith: the amount of additional mental overhead introduced (you have to understand both what you're writing and how it will translate) and introducing a compile step into otherwise uncompiled code...it makes me sad in my pants [23:13] jaitaiwan has joined the channel [23:13] seanh510: brianc1: you must hate Lisp macros then [23:14] shapeshed_: if you don't know the crap parts of JavaScript CoffeeScript abstracts many of them away [23:14] isaacs: seanh510: lisp macros are not code generation, though [23:14] brianc1: seanh510: you're comparing apples to oranges. [23:14] joshsmith: in my gut I feel kind of the same way [23:14] isaacs: seanh510: they're wildly different. [23:14] ChrisPartridge: mmalecki: ping [23:14] brianc1: seanh510: getting into a coffee-script debate wasn't my intention. i'll shut up about it [23:14] seanh510: sorry i dont need to argue about it either [23:14] isaacs: seanh510: the closest thing to lisp macros that we have in js is substack's burrito stuff [23:14] joshsmith: I think I got to avoid many of the bad parts simply because I started developing so recently, and learned from pretty decent material [23:14] Sorella: brianc1, hm, so you mean stuff like Lisp, C, etc? [23:14] devaholic: compiling to a scripting language? [23:15] seanh510: but i mean, isn't it ironic to dislike coffee to java script when javascript gets interpreted to bytecode? [23:15] devaholic: compiling to a scripting language? [23:15] seanh510: c turns to assembly, etc? [23:15] devaholic: lol sorry [23:15] shapeshed_: If you've already gone through learning JS in depth it can seem pointless [23:16] devaholic: i do not prefer cs [23:16] Sorella: The only problem with CoffeeScript, right now (besides the parser quirks), is that you don't have any real debugging tool that works on CoffeeScript land, and that renders it quite unusable for some projects/devs. [23:16] shapeshed_: plus hipster fad factor [23:16] joshsmith: I was turned off by it simply because I had seen it in some dude's project [23:16] seanh510: shapeshed_: i hated it in theory because of the "hipster fad factor" until I started writing in it realized it felt nicer [23:17] joshsmith: and was pissed because I couldn't understand a thing it was saying [23:17] Sorella: Though languages that provide a better interface to achieve a certain goal, while still maintaining a layer of compatibility with the target language, are certainly delicious. Gotta love 'em DSLs. [23:17] seanh510: shapeshed_: and it made me more productive [23:17] tingham_ has joined the channel [23:17] joshsmith: seanh510: +1 for some productivity increases [23:18] seanh510: i'm writing serverside though so, perhaps people working in the browser more have wildly different opinions [23:18] shapeshed_: seanh510: I had a similar experience with scss when it came out [23:18] seanh510: which i'd respect [23:18] brianc1: My biggest gripe really is it just introduces another layer. something else to learn before I can get shit done. and it introduces that for _everyone_. So I can learn it, cool. use it in my own stuff. but I write a module in it. then anyone who wants to contribute has to learn all the stuff needed to contribute to a javascript node.js module and THEN learn coffee-script. [23:18] seanh510: brianc1: web coding is so many layers upon layers by now, what's the diff? [23:18] seanh510: active record over sql over btrees :P [23:19] seanh510: brianc1: that same argument could be made about any more advanced feature, be it a language, or paradigm, etc [23:19] joshsmith: that's also my problem brianc1. I would hate to have to make my entire team learn something else [23:19] Vespakoen has joined the channel [23:20] seanh510: brianc1: for instance, if you decide to write templated c++ code, all people who want to fork and contribute to your project need to understand templates [23:20] brianc1: seanh510: and it should be made. introducing layers, complexity, more "noise" should always be weighed against it's benefit [23:20] Sorella: brianc1, usually, maintaining an overtly large code base is a much larger issue than having several parts written in one specific language to handle the job. [23:20] mike5w3c has joined the channel [23:21] seanh510: brianc1: to each their own, but not embracing something because it's "one more thing to learn" seems like it would keep you in the past/dark more than anything [23:21] Sorella: not saying CS fits the role of "specific language", but it has its use-cases. For example, writing DSLs in CoffeeScript is much nicer than in JS, so you could use CS for build scripts, for example. [23:22] joshsmith: btw, I'm also curious as to why I should use something like Backbone over just Require.js for modularizing code [23:22] joshsmith: is it because something that's doing UI changes shouldn't also be talking to the server in-line? [23:22] mmalecki: ChrisPartridge: yo [23:22] Vespakoen: Hi noders! I have a little question, i am building my own framework on top of express (just as a get to know / fun thingy) now i am wondering, i have var myframework = require('./myframework'); when i would have a situation where a "controller" wants to call another "controller" function, can i make a new instance of "myframework" my doing something like myframework2 = require('./myframework'), or should i have the index.js in myframew [23:22] Vespakoen: ork return a function and then make multiple objects of that ? [23:22] joshsmith: in which case, why not just abstract out server-specific functions? (or is that exactly the point of Backbone?) [23:22] seanh510: joshsmith: because look at the number of big name logos in the Backbone.js users list :P [23:23] Wizek-other has joined the channel [23:23] josh-k has joined the channel [23:23] Sorella: One of the things I like the most about Alan Kay's new project is that the team is creating several specific languages to handle each part of the system. So they plan on making an entire usable SO in under 20k lines of code. If you weight the cost of maintaining a 20k code base to the cost of maintaining a 1mil code base... [23:23] jj0hns0n has joined the channel [23:24] Sorella: SO and tools (office packages, graphic editors and stuff)* [23:25] joshsmith: seanh510: haha, but forreal [23:25] jbpros has joined the channel [23:25] brianc1: joshsmith: think of backbone as kind of guide-rails to help you avoid writing a giant spaghetti code monster in the browser. it's one way of doing what you said. it's not the only way, but it's a pretty good way and it helps a lot of people stay within the "clean code lines" more often. [23:27] joshsmith: I have a copy of the O'Reilly JS Web Apps book; I'm not sure if I should read that or just take what I know with Express/Node, learn Mocha and Backbone from the docs/source, and just dive in that way [23:27] ceej has joined the channel [23:28] kenperkins: so was there a change between 0.4 and 0.6 that resulted in more node assertions getting raised [23:29] Vespakoen: Hey guys, can anybody look at this: pastie.org/3023596 , is the latter even possible ? [23:30] qbit_: anyone using zlib stuff with expressjs? [23:30] joshsmith: I think maybe the latter [23:30] hoodow has joined the channel [23:30] hoodow has joined the channel [23:30] joshsmith: thanks for thoughts brianc1, shapeshed_ and seanh510 [23:30] CoverSlide has joined the channel [23:30] alvaro_o has joined the channel [23:31] Vespakoen: can you give me any pointers why you think that one is better / the same ? [23:32] nrstott: the first is definitely better... [23:32] Vespakoen: actually the question is, if i am correct, does require() do the same thing as new ? ? [23:32] Vespakoen: that sounds good... [23:32] nrstott: no [23:32] nrstott: it doesn't [23:32] CoverSlide: no [23:32] nrstott: require('x') twice returns the SAME x twice [23:32] Vespakoen: i see [23:33] nrstott: what you're looking for is this: module.exports = function(...) { ... } [23:33] matti has joined the channel [23:33] matti has joined the channel [23:33] nrstott: then you can do var MyFramework = require('myframework'); MyFramework() [23:33] Vespakoen: i see [23:33] Vespakoen: that looks nice [23:34] Vespakoen: let me check for a sec =P [23:34] secoif: isaacs I'm getting "Error: Refusing to delete: /usr/local/share/man/man1/nodeunit.1 not in .../node_modules/nodeunit" error when installing nodeunit locally [23:34] secoif: is that an npm bug or shoudl I log that with nodeunit [23:35] hoodow has joined the channel [23:35] hoodow has joined the channel [23:35] isaacs: secoif: it means that there's some old installed thing that doesn't link into the nodeunit package. [23:35] Vespakoen: nrstott, what if i want to use prototype for say, loadModel, will i do something like exports.myframework.prototype.loadModel = function() { ? } ? [23:35] isaacs: secoif: that can happen if you've installed it once upon a time with some other copy of npm, or from a different global prefix [23:35] isaacs: secoif: you an either remove the file, or install with --force to clobber what's in the way [23:35] bartt has joined the channel [23:36] nrstott: Vespakoen, you should do it like this: function MyFramework() { ... } MyFramework.prototype.......; module.exports = MyFramework [23:36] Vespakoen: Ahhhh that looks like a winner! [23:36] secoif: isaacs interesting. thanks [23:43] josh-k_ has joined the channel [23:44] ChrisPartridge: mmalecki: Just wondering if you can give me any heads up on how to hook up some logging on child process with forever, while using the new "pseudo-fork" code (result of issue 175 on GH) [23:44] mmalecki: ChrisPartridge: logging is now fixed in my fork [23:45] josh-k has joined the channel [23:45] mmalecki: ChrisPartridge: but you can use outFile and errFile options of monitor [23:45] mmalecki: (if you need something more specific) [23:45] mjr_ has joined the channel [23:45] ChrisPartridge: mmalecki: More curious as to how you were going to implement, will take a look at your fork - cheers :-) [23:46] cypherblue has joined the channel [23:47] mmalecki: ChrisPartridge: it's still a hack around this retardness tho :( [23:48] CIA-109: libuv: 03okuoku 07master * r9775121 10/ src/win/winsock.h : [23:48] CIA-109: libuv: win: Fix MinGW32 builds [23:48] CIA-109: libuv: Fixes #279. - http://git.io/fewugw [23:48] CIA-109: libuv: 03okuoku 07master * r8e50b60 10/ src/unix/freebsd.c : [23:48] CIA-109: libuv: freebsd: Fix build [23:48] CIA-109: libuv: Fixes #280 - http://git.io/AqQhgw [23:48] avih has joined the channel [23:51] ryan_stevens has joined the channel [23:53] isaacs has joined the channel [23:56] seanh510 has left the channel [23:57] ktos has joined the channel