[00:00] dscape: anyone using cloudfoundry? [00:00] halfhalo: ACTION does [00:00] arf77 has joined the channel [00:02] tmpvar has joined the channel [00:06] c4milo1 has joined the channel [00:06] dscape: halfhalo: how do you check the error logs? [00:06] halfhalo: vmc log iirc [00:08] dscape: awesome [00:09] Guest73641 has joined the channel [00:09] dscape: thanks halfhalo [00:09] dscape: its vmc logs btw [00:10] Lightdork has joined the channel [00:11] isaacs: blueadept: Math.pow(chars.length, stringLength) <-- that many. [00:12] catb0t has joined the channel [00:12] SvenDowideit has joined the channel [00:12] isaacs: blueadept: also, chars.charAt(rNum) is a bit clearer than chars.substr(rNum, rNum + 1) [00:12] corytheboyd has left the channel [00:13] davidcoallier has joined the channel [00:14] blueadept: ah ok [00:15] blueadept: just trying to come up with a simple function for assigning random file names [00:15] blueadept: dont want to overlap any [00:17] blueadept: 191 trillion ought to be enough slack [00:18] Xeon06_ has joined the channel [00:18] blueadept: though isn't there like more than 191 trillion in notional value in the derivatives markets? [00:19] andrewfff has joined the channel [00:20] Remoun has joined the channel [00:24] adrianmg1 has left the channel [00:24] Xeon06_ has joined the channel [00:29] jacobolus has joined the channel [00:29] storrgie has joined the channel [00:30] theCole has joined the channel [00:31] theCole_ has joined the channel [00:32] Xeon06_ has joined the channel [00:33] dguttman has joined the channel [00:36] Mrfloyd has joined the channel [00:36] _beau has joined the channel [00:37] wookiehang0ver has joined the channel [00:37] luke` has joined the channel [00:38] smtlaissezfaire has joined the channel [00:38] eyesUnclouded has joined the channel [00:41] ryanj has joined the channel [00:41] odyniec has joined the channel [00:42] Xeon06_ has joined the channel [00:42] isaacs: blueadept: the "node-uuid" program seems pretty nice. [00:42] isaacs: blueadept: it's a fairly well understood approach [00:45] brainproxy: anyone here use/d/ing nomnom pkg for handling command line options? like it? recommend something else? [00:45] blueadept: i'll check it out [00:45] amerine has joined the channel [00:46] CIA-110: node: 03Ryan Dahl 07master * re5564a3 10/ (785 files in 30 dirs): Upgrade V8 to 3.4.10 - http://bit.ly/nIsLNh [00:46] CIA-110: node: 03Ryan Dahl 07master * r91f1b25 10/ lib/events.js : mraleph emit hack - http://bit.ly/oDBUgb [00:46] CIA-110: node: 03koichik 07master * r8faf941 10/ test/simple/test-repl.js : [00:46] CIA-110: node: Fixes #1267. [00:46] CIA-110: node: Error message of JSON.parse() was changed. - http://bit.ly/qresrY [00:46] CIA-110: node: 03koichik 07master * rd38fac2 10/ lib/util.js : [00:46] CIA-110: node: Fixes #1260 [00:46] CIA-110: node: RegExp object is no longer Function. [00:46] CIA-110: node: http://code.google.com/p/v8/issues/detail?id=617 - http://bit.ly/ruQBXA [00:46] CIA-110: node: 03Igor Zinkovsky 07master * ra58b643 10/ (6 files in 3 dirs): Statically link in dependencies for node.exe - http://bit.ly/nEtcgF [00:46] mikeal has joined the channel [00:47] xivusr has joined the channel [00:48] xivusr has left the channel [00:52] ryah__ has joined the channel [00:52] Xeon06_ has joined the channel [00:53] heavysixer has joined the channel [00:57] n3m6 has joined the channel [00:57] n3m6: anybody here got experience with connec-auth? [00:58] daveyjoe_ has joined the channel [00:58] hassox has joined the channel [01:00] n3m6: hello? [01:02] jesusabdullah: n3m666666666 :( [01:03] avalanche123 has joined the channel [01:06] [[zz]] has joined the channel [01:09] hunterloftis has joined the channel [01:10] Xeon06_ has joined the channel [01:11] mundanity has joined the channel [01:13] isaacs: brainproxy: nomnom seems pretty nice. i use nopt in my stuff. [01:13] malkomalko has joined the channel [01:13] isaacs: brainproxy: nopt is more about validation than parsing, really, but it is also a parser. nomnom has a help-banner-generator thing, and i think does a bit of app-routing [01:13] tbranyen: well you wrote it... [01:13] jesusabdullah: nopt sounded pretty sweet [01:13] isaacs: and it has a cool name :) [01:14] jesusabdullah: I've used optimist a few times, it's real slick for simple cli interfaces [01:14] jesusabdullah: but on the flipside it has to be opinionated about them as well [01:14] jerrysv has joined the channel [01:14] isaacs: nopt supports everything npm does, plus a few features that mcavage has bugged me to do :) [01:14] jesusabdullah: right [01:14] jesusabdullah: Yeah, nopt looks nice for if you need something special [01:14] jerrysv: good evening [01:14] jesusabdullah: gevening [01:15] isaacs: nomnom does a bit more for you, though [01:15] isaacs: in terms of help output and routing, i mean [01:15] isaacs: it's more like a general cli router than just an option parser. [01:16] jesusabdullah: ah [01:16] jesusabdullah: Yeah, that's a bit different [01:17] isaacs: harth: are you harthur? [01:17] jesusabdullah: Didn't harthur write nomnom? [01:17] saschagehlich has joined the channel [01:18] isaacs: ya [01:18] isaacs: and i know she's using it in a buncha stuff. [01:18] xandrews has joined the channel [01:18] Xeon06_ has joined the channel [01:18] isaacs: you shouldn't trust any option parser where the author isn't using it in a bunch of cli programs. [01:18] harth: isaacs: yeah, ats me [01:18] jesusabdullah: I totally follow you on twitter harth [01:18] jesusabdullah: True story [01:18] isaacs: harth: ah, nice to meet you, we're discussing option parsers. [01:19] harth: cool, yeah, I made one of those [01:19] jesusabdullah: XD [01:19] jesusabdullah: My housemate made one once [01:19] harth: I never thought I'd be maintaining an option parser, but here I am [01:19] cccaldas has joined the channel [01:19] SubStack: haha [01:20] jesusabdullah: option parser authors, COMBINE TO FORM---- [01:20] isaacs: hahaha [01:20] jesusabdullah: ...three nerds on irc, apparently [01:20] isaacs: ACTION needs to pull more parts out of npm [01:20] jesusabdullah: which is a good thing to combine2form I guess [01:20] jesusabdullah: I need to write more things in general [01:20] hunterloftis: Anybody successfully used socket.io across multiple node instances in a cluster? [01:20] jesusabdullah: I only have 5 npm modules! [01:20] SubStack: dragging code off kicking and screaming from a big project onto npm is the best [01:21] isaacs: SubStack: exactly, especially when that project IS npm :) [01:21] SubStack: yep it's even better when npm does it [01:21] isaacs: there's so much stuff in there [01:22] jerrysv: options parser? i have a favorite [01:22] isaacs: i have a full on glob parser that is in javascript, and node-glob is still crappy compiled crap [01:22] SubStack: want [01:23] jesusabdullah: I want jsdom to support more svg stuff so I can use node-raphael for my project [01:23] CIA-110: node: 03Henry Rawas 07master * rdcf6955 10/ deps/v8/src/platform-win32.cc : [01:23] CIA-110: node: Fix V8 mingw32 build [01:23] CIA-110: node: Reported to V8 [01:23] CIA-110: node: http://code.google.com/p/v8/issues/detail?id=1508 - http://bit.ly/n9391l [01:23] jesusabdullah: It's that or use canvas [01:23] isaacs: SubStack: https://github.com/isaacs/npm/blob/master/lib/utils/minimatch.js [01:23] jesusabdullah: You should do it RIGHT NOW isaacs [01:23] isaacs: hahaha [01:23] isaacs: i need like a bajillion more tests [01:24] isaacs: glob parsing is nothing but edge cases. [01:25] jesusabdullah: DISREGARD TESTS PUBLISH TO NPM [01:25] isaacs: hahah [01:25] radiodario has joined the channel [01:25] jesusabdullah: That's how *I* roll! [01:25] CIA-110: node: 03Ben Noordhuis 07master * r13a521e 10/ src/tcp_wrap.cc : [01:25] CIA-110: node: Fix off-by-one error in assertion. [01:25] CIA-110: node: Fixes test/simple/test-http-buffer-sanity.js - http://bit.ly/pNuE8W [01:25] isaacs: what i really want to do is match the same API that's in node-glob, but using minimatch insteda [01:26] guidocalvano has joined the channel [01:26] isaacs: and then have npm depend on node-glob [01:27] jesusabdullah: I see [01:27] isaacs: jesusabdullah: are you in oakland now? [01:27] jesusabdullah: I am! [01:27] isaacs: w00t! oakjs ftw! [01:27] jesusabdullah: word [01:27] jesusabdullah: XD [01:27] jerrysv: isaacs: coming up for oscon? [01:27] mapleman has joined the channel [01:27] jesusabdullah: I've actually been here for ~2 weeks [01:28] jesusabdullah: since the 22nd [01:28] isaacs: jerrysv: nah, i'm gonna stay in california [01:28] isaacs: jesusabdullah: nice [01:28] jesusabdullah: Liking it so far [01:28] jerrysv: bah [01:28] jesusabdullah: Things are a little crazy, but the good kind [01:28] jesusabdullah: July 4th here was awesome [01:28] SubStack: oak land is javascript city [01:29] isaacs: yeah, i saw lots and lots of fireworks from my balcony [01:29] isaacs: it was rad [01:29] ryah: ACTION saw none [01:29] ryah: stupid mission [01:29] xandrews has joined the channel [01:30] SubStack: kids were running around handing out m80s to strangers in MY neighborhood [01:30] jerrysv: we were having roman candle wars [01:31] isaacs: SubStack: that's a little scary [01:31] isaacs: ok, asl time. have a good night. [01:31] jerrysv: better than handing out guns? [01:32] harth: jesusabdullah: I'm following you on twitter back now! [01:32] tbranyen: asl time? [01:32] tbranyen: don't really wanna know what that means [01:34] tk has joined the channel [01:34] jesusabdullah: harth: Oh sweet [01:34] jesusabdullah: I have to get ALL the twitter followers (that aren't spammers) [01:35] SubStack: and github followers [01:35] jesusabdullah: tbranyen: Maybe he's taking a class on American sign language [01:35] jesusabdullah: Oh yeah, gotta have the github followers [01:35] jesusabdullah: though I only have like 12 of those so [01:35] SubStack: githits y u no update [01:35] jesusabdullah: Maybe I'll get more when I have a jyob [01:35] SubStack: jesusabdullah: unlikely! [01:36] jesusabdullah: No, that's correct. I remember. [01:36] SubStack: you want have time for awesome projects [01:36] Sorella has joined the channel [01:36] jesusabdullah: Hell yeah I want time for awesome projects [01:36] SubStack: from whence the github followers come [01:36] SubStack: s/want/won't/ [01:36] jesusabdullah: D: [01:36] tbranyen: depends on the job [01:36] jesusabdullah: That's why I have to work for a company that open sources shit [01:36] jesusabdullah: shit I like [01:36] tbranyen: i have more time at my new job for stuff than my last [01:37] jesusabdullah: Oh btw, looking4job, interested in backend, know node and python [01:37] jesusabdullah: Spread the word [01:37] jesusabdullah: ;) [01:38] SubStack: backend pfft! [01:38] SubStack: such an increasingly irrelevant dichoetmy! [01:39] SubStack: *dichotomy [01:39] jesusabdullah: SubStack: I only say backend because I don't really like designing web pages [01:39] jesusabdullah: SO if you want me doing jquery but don't mind that I suck at css then we're good! [01:39] jesusabdullah: \o/ [01:39] jesusabdullah: (I can learn css) [01:40] SubStack: designing frontends is getting pretty awesome with browserify [01:40] tayy has joined the channel [01:40] jesusabdullah: tru dat [01:40] SubStack: spinning off little libs <3 https://github.com/substack/node-progressify [01:40] jesusabdullah: Oh, yeah, I dislike client-side sans-requires, it makes me :( [01:41] highermath_away has joined the channel [01:41] highermath_away has joined the channel [01:42] eyesUnclouded has joined the channel [01:43] erobit has joined the channel [01:47] xandrews has joined the channel [01:47] jacobolus has joined the channel [01:47] harth: SubStack: I think I'm going to end up making an entire color picker in node with browserify [01:47] harth: one lib at a time [01:48] SubStack: awesome! [01:48] SubStack: like a widget? [01:48] harth: yeah, something like that [01:48] nitram_macair has joined the channel [01:48] perlmonkey2 has joined the channel [01:50] SubStack: harth: I just recommend depending on browserify 1.2.x for that [01:50] SubStack: since the internals might change up a bit between minor releases [01:50] seawise has joined the channel [01:50] broofa has joined the channel [01:50] hij1nx has joined the channel [01:51] abraxas has joined the channel [01:51] jesusabdullah: A color picker? I'd like that [01:51] dseigle has joined the channel [01:51] abraxas: Does anyone know when we can expect Webworker support in Node? [01:52] seawise has joined the channel [01:53] harth: SubStack: cool [01:54] iamanewb has joined the channel [01:55] SubStack: especially since I'm still figuring out how I want middleware to work [01:55] SubStack: I like how it works in 1.2.x much more than previous releases at least [01:56] iamanewb: Hello all - I have a question about tls/https. If I follow the example in the documentation (http://nodejs.org/docs/v0.4.9/api/https.html), I have found that the server object also listens on port 80, while the HTTPS service listens on the port actually specified (e.g., 8000 in the example). Is there a way to avoid this? [01:57] iamanewb: It causes two problems. 1., I have to be root to listen on a low port (below 1024 I think), and 2. it conflicts with any existing http server that is already using port 80 (e.g., apache). [01:57] Aria: Which example? [01:58] iamanewb: The first one. [01:58] jacobolus has joined the channel [01:58] iamanewb: On that page that I linked to. [02:00] CrypticSwarm has joined the channel [02:00] daveyjoe has joined the channel [02:00] iamanewb: oops, you know what...it seems that it's socket.io causing the problem. [02:01] iamanewb: I think I need to rethink this a bit. [02:04] mbrevoort has joined the channel [02:06] iamanewb: Yeah, so if I create a socket.io object like so: "var io = require('socket.io').listen(server);", where server is created from an https.createServer() call as in the example mentioned above, it ends up doing something that opens on port 80. [02:06] jerrysv: ACTION waits for the day for iamanewb to switch over to iamapro [02:07] iamanewb: thanks...it'll probably never happen. :) [02:07] Melkor_ has joined the channel [02:07] jerrysv: iamanewb: so, instead: require('socket.io').listen(8000); [02:07] iamanewb: Yeah, but I want an https connection, not http [02:07] jesusabdullah: Pretty much no such thing as a true pro anyway imo [02:07] jesusabdullah: go with instead [02:08] dleonardi: i usually just type "cornholio" and win [02:08] iamanewb: jesusabdullah, agreed - there's always something new that I don't know anything about. [02:08] jerrysv: ok, https on 8443, socket.io on 8000 [02:08] Melkor_: Any mongoose experts? How do I do a find with a json object and force it to do a contains search... ie find({name: /sam/}) [02:08] iamanewb: Ok...but I want socket.io to be on the https connection... [02:09] jerrysv: i do not know if that is possible [02:09] iamanewb: As-in, clients communicate to a socket.io listener via https. [02:09] jerrysv: have you tried joining #socket.io ? [02:09] iamanewb: haha, good idea [02:09] iamanewb: I'll check there. [02:09] jesusabdullah[LI: dangit [02:10] jesabd[LIKE_A_BO: aww [02:10] [LIKE_A_BOSS]: CLOSE ENOUGH [02:10] jerrysv: ha [02:10] [LIKE_A_BOSS]: ACTION  [02:10] jerrysv: oh yeah, i have programming to do [02:11] SubStack: [LIKE_A_BOSS]: cool nick bro [02:11] SubStack: jerrysv: oh I do that sometimes [02:11] jerrysv: substack: i try to at work, but work gets in the way [02:11] jerrysv: so, i have to at home [02:11] [LIKE_A_BOSS]: Thanks SubStack! [02:11] [LIKE_A_BOSS]: ACTION  [02:11] SubStack: thubstack [02:11] jesusabdullah: That's right thubstack [02:12] jameson_ has joined the channel [02:13] iamanewb: Hmm...it's quite in #socket.io [02:14] iamanewb: *quiet [02:15] langworthy has joined the channel [02:19] Dreamer3 has joined the channel [02:20] Xeon06_ has joined the channel [02:22] jtsnow has joined the channel [02:22] chjj: iamanewb: you shouldnt think so low of yourself [02:22] chjj: ! [02:23] zeade has joined the channel [02:23] iamanewb: Well, supposedly socket.io is supposed to work with https...but I can't figure it out. [02:23] tim_smart has joined the channel [02:24] Jakwac has joined the channel [02:25] blueadept: anyone know the regex for getting a page title and description? [02:25] tmzt: anybody get how to get a Promise from mongoose so I can add a handler for 'complete' ? [02:25] blueadept: i dont think mongoose has promises [02:25] jesusabdullah: Why do you need a regexp? Shouldn't you use an html parser instead? :S [02:26] blueadept: wasn't sure, you know a good one? [02:26] blueadept: i guess i can search npms [02:27] chjj: iamanewb: socket.io should work with an https server, what does your code look like? [02:29] iamapro: Got it working [02:29] iamapro: :) [02:30] chjj: cool [02:30] iamapro: First, I have to make sure the server does not listen before I connect the socket.io object to it. [02:30] iamapro: If I tell the https object to listen first, then tell io to listen to the https after that, for some reason it wants to open a new listener on port 80. [02:31] chjj: yeah socket.io does some tricky stuff with the server object [02:31] iamapro: Maybe a bug...I don't know. [02:31] Brandonn has joined the channel [02:31] boehm has joined the channel [02:32] iamapro: thanks for the tips [02:33] mikeal has joined the channel [02:33] smolyn has joined the channel [02:34] jacobolus has joined the channel [02:39] wookiehangover has joined the channel [02:39] vDubG has joined the channel [02:40] bluebit has joined the channel [02:40] davidbanham has joined the channel [02:40] blueadept: jesusabdullah: i think i found the perfect npm - https://github.com/silentrob/Apricot [02:42] mbrevoort has joined the channel [02:42] jesusabdullah: blueadept: huh? [02:42] jesusabdullah: Oh, right [02:43] blueadept: its a parser [02:43] blueadept: full featured, pretty awesome btw [02:43] CrabDude has joined the channel [02:44] jesusabdullah: Word [02:45] jesusabdullah: I remember having promblems with it, but that was ages ago [02:45] jesusabdullah: before npm got big iirc [02:48] Xeon06_ has joined the channel [02:52] scottj has joined the channel [02:52] Corren has joined the channel [02:54] Xeon06_ has joined the channel [03:00] skm has joined the channel [03:01] avalanche123 has joined the channel [03:02] Xeon06_ has joined the channel [03:05] mapleman has joined the channel [03:06] boccato has joined the channel [03:07] boccato has left the channel [03:07] boccato has joined the channel [03:07] boccato has left the channel [03:08] Xeon06_ has joined the channel [03:10] creationix has joined the channel [03:11] sub_pop has joined the channel [03:11] creationix: ryah: you here? [03:11] descipher_ has joined the channel [03:12] rhdoenges has joined the channel [03:13] Corren has joined the channel [03:14] prettyrobots has joined the channel [03:16] febits has joined the channel [03:18] Xeon06_ has joined the channel [03:19] zivester has joined the channel [03:22] Melkor_: Any mongoose experts awake? I'm stuck on a regex issue [03:23] Madonnaboy has joined the channel [03:24] Xeon06_ has joined the channel [03:25] TooTallNate has joined the channel [03:25] AvianFlu has joined the channel [03:26] zackattack_ has joined the channel [03:26] tk has joined the channel [03:26] Spion has joined the channel [03:27] Madonnaboy: Yo it's me, the boy from Detroit. Yeah, that's right -- I'm from the D and my cell's a 313. When I'm hangin in the hood,. my dad is working at an autoplant and my motto is that I only code in node.js. My code is larger than life -- handling 86,000 transactions a second. [03:27] Madonnaboy: [03:28] cjm has joined the channel [03:30] matwill has joined the channel [03:34] Xeon06_ has joined the channel [03:36] Aria has joined the channel [03:39] Spion_ has joined the channel [03:41] blkcat: can i have 'optional' locals in a jade view? [03:41] blkcat: i'm trying to specify an optional title local but it's complaining whenever it isn't passed to the template [03:41] xandrews has joined the channel [03:42] Xeon06_ has joined the channel [03:42] TooTallNate: blkcat: you can put the piece of jade that uses 'title' in an "if" statement [03:42] blkcat: TooTallNate: i tried that, but it still gives me the error, haha :( [03:43] TooTallNate: blkcat: gist you code if you want [03:43] apejens: blkcat: - if (typeof(optional) != "undefined") h1= optional - else h1 No optional passed [03:43] apejens: with proper indentation [03:44] unlink has joined the channel [03:44] unlink has joined the channel [03:46] BulletBob has joined the channel [03:46] danmactough has joined the channel [03:47] nitram_macair has joined the channel [03:47] justmoon has joined the channel [03:48] Melkor_: In this mongoose example... how would i replace "john" with some variable? MyModel.find({ name: /john/i }, ['name', 'friends'], function () { }) [03:48] blkcat: apejens: ouch, i kinda hoped the implementation would be cleaner than that [03:48] Aria: Melkor_: new Regexp(... stuff ....) [03:49] ngs has joined the channel [03:49] Melkor_: is that something new to mongoose? [03:49] creationix: tim_smart: ping [03:49] Aria: No, it's a javascript regex. [03:49] tim_smart: creationix: pong [03:50] creationix: tim_smart: do you remember how to integrate other events loops with node [03:50] creationix: I'm working on SDL bindings [03:50] creationix: and I want a node friendly SDL event loop [03:50] tim_smart: creationix: I talked to the author of libev [03:51] creationix: hmm [03:51] creationix: tim_smart: is there an irc room for that [03:51] confoocious has joined the channel [03:51] tim_smart: creationix: He has his own server somewhere [03:52] qab has joined the channel [03:53] qab: hello, whixh mysql lib should i use? [03:53] creationix: irc.schmorp.de [03:53] creationix: doesn't seem to want to connect [03:53] creationix: I guess I'll tear apart your ngtk code, how different can SDL's loop be [03:55] gavin_huang has joined the channel [03:56] creationix: actually since sdl doesn't have it's own loop, maybe I'll just expose the polling functions and do a setinterval 0 in js [03:57] jtsnow has joined the channel [03:59] radiodario_ has joined the channel [03:59] rfay has joined the channel [04:00] erobit has joined the channel [04:00] SubStack: oh neat, registration for nodeko opens on the 11th [04:01] mjijackson has joined the channel [04:01] apejens: blkcat: well, there might be, I did my first jade on thursday :p this worked, so I haven't looked for anything cleaner [04:01] blkcat: apejens: guess i'll have a look at the source :) [04:02] blkcat: apejens: thanks for the help though! [04:02] mustakes has joined the channel [04:02] apejens: blkcat: np :) plase share if you ifnd a better solution :p [04:03] malkomalko has joined the channel [04:05] daigo has joined the channel [04:10] Xeon06_ has joined the channel [04:13] zackattack has joined the channel [04:13] ericnakagawa has joined the channel [04:14] Xeon06_ has joined the channel [04:17] materialdesigner has joined the channel [04:18] Xeon06_ has joined the channel [04:19] mustakes has joined the channel [04:21] Me1000 has joined the channel [04:21] skm has joined the channel [04:22] dshaw_ has joined the channel [04:23] Nuck: Out of curiosity, do we have Scala beat at scalability? [04:23] Aria: But scala is web scale. [04:24] Xeon06_ has joined the channel [04:25] mjijackson: How can you possibly beat Scala at "scala"bility? [04:26] mjijackson: That's like being more awesome than Chuck Norris. [04:27] CIA-110: node: 03koichik 07v0.4 * r87b6dc2 10/ (doc/api/fs.markdown doc/api/http.markdown): [04:27] CIA-110: node: Doc improvements [04:27] CIA-110: node: moved 'continue' event from http.Agent to http.ClientRequest. [04:27] CIA-110: node: added 'close' event to http.ClientResponse. [04:27] CIA-110: node: added 'open' event to fs.ReadStream. [04:27] CIA-110: node: Fixes #1169. - http://bit.ly/mQDKZy [04:27] broofa has joined the channel [04:28] tk has joined the channel [04:29] cognominal_ has joined the channel [04:31] josephboyle1 has joined the channel [04:31] celm has joined the channel [04:31] googol has joined the channel [04:32] samsonjs has joined the channel [04:33] mustakes has joined the channel [04:34] Skola has joined the channel [04:36] baoist has joined the channel [04:37] ryanj has joined the channel [04:38] Swimming_bird has joined the channel [04:40] sub_pop has joined the channel [04:42] Xeon06_ has joined the channel [04:42] tk has joined the channel [04:46] apejens: Nuck: doesn't that depend a whole lot on what you write, how you write it and what measures you take to make it scalable? [04:48] Croms has joined the channel [04:49] mikeal has joined the channel [04:50] Xeon06_ has joined the channel [04:50] niftylettuce has joined the channel [04:51] niftylettuce: ACTION testing 123 [04:53] JasonSmith has joined the channel [04:56] cognominal has joined the channel [04:58] Xeon06_ has joined the channel [05:02] mikeal has joined the channel [05:02] Xeon06_ has joined the channel [05:05] apanda has joined the channel [05:05] herbySk has joined the channel [05:06] sw8sw8 has joined the channel [05:08] Xeon06_ has joined the channel [05:08] rhdoenges has joined the channel [05:09] mustakes has joined the channel [05:13] amerine has joined the channel [05:14] Xeon06_ has joined the channel [05:17] jameson has joined the channel [05:17] CrypticSwarm has joined the channel [05:18] kbni has joined the channel [05:21] joshthecoder has joined the channel [05:22] Xeon06_ has joined the channel [05:22] Spion has joined the channel [05:22] mustakes has joined the channel [05:24] Nuck: Tj's view thingy, Caustic, looks pretty sweet. The fact that it'd deal with the boilerplate for you sounds fucking epic. [05:25] Nuck: Once again, tj has invented something that seems naught but natural. [05:25] SubStack: it does look pretty nifty [05:26] SubStack: meanwhile I've been rendering jade templates in the browser, everything is backwards! [05:26] necrodearia has joined the channel [05:28] eyesUnclouded has joined the channel [05:28] blueadept: anyone know where i can get node version 0.4.9 ? [05:28] deoxxa has joined the channel [05:29] deoxxa: is there a commonly used library for encoding/decoding html entities? if so, what is it? [05:29] blueadept: n/m [05:29] JoshC1 has joined the channel [05:32] sivy has joined the channel [05:34] skm has joined the channel [05:35] ericnakagawa has joined the channel [05:36] unlink has joined the channel [05:36] SubStack: deoxxa: ent! [05:36] SubStack: http://github.com/substack/node-ent [05:37] Nuck: SubStack: Shameless self-promotion FTW :P [05:37] Skola: how do I get rid of my node 4.8 installation? [05:37] postwait has joined the channel [05:37] Aria: Install over it? [05:37] Skola: .48* [05:37] Skola: ok [05:38] seivan has joined the channel [05:38] SubStack: hah now there is another entities module, JS-Entities [05:38] SubStack: when I wrote ent there wasn't anything [05:38] darshanshankar has joined the channel [05:39] SubStack: deoxxa: in the interests of completeness, see also https://github.com/bmeck/jsentities [05:41] te-brian has joined the channel [05:41] te-brian: I need to get over the fact that my first node site is gonna be programmed terribly and just start doing it lolz [05:42] blueadept: ah back to 0.4.9 [05:42] smtlaissezfaire has joined the channel [05:42] blueadept: so stable [05:42] harth has joined the channel [05:43] SubStack: te-brian: oh man I still write terrible stuff the first few iterations and I've been building node stuff for over a year >_< [05:44] te-brian: SubStack: I have so many questions.. but you can only watch so many videos and read so many blogs :) [05:44] blueadept: oh substack [05:44] blueadept: i was just looking at your code today [05:44] Xeon06_ has joined the channel [05:44] SubStack: >_> [05:44] SubStack: hopefully the good stuff! [05:44] blueadept: was going to use it in tandem with a parser [05:44] blueadept: but i dont think i'll have to to now [05:45] febits has joined the channel [05:45] te-brian: SubStack: The funny thing is the tricky stuff that doesn't scare me.. its simple stuff like how am I gonna organize all those routes.. and how can I have dynamically generated menus and such... though I prob should shed the CMS mentality for a while. [05:45] Jakwac: Anyone know how to display a list of all the routes defined in journy? [05:46] te-brian: SubStack: Gotta say.. websockets are hot.. so fast [05:46] deoxxa: SubStack: thanks! i'll take a look-see at both of them [05:46] blueadept: te-brian: have you used nowjs? [05:46] SubStack: te-brian: dnode can help with the routing problems [05:46] SubStack: also that [05:46] SubStack: whichever library best fits your mental model [05:46] te-brian: I'm barely past HelloWorld at this point... [05:47] te-brian: First experiement: http://brianthomaslink.com:3000/ [05:47] blueadept: i just started with nowjs from a link [05:47] blueadept: i never knew about dnode until way after [05:47] blueadept: but no i'm so into nowjs [05:47] darshanshankar: what do you like about nowjs? [05:47] darshanshankar: jw [05:47] blueadept: accessing remove functions [05:47] blueadept: remote* [05:48] blueadept: i've been mostly mixing it in with my jquery code to produce onscreen updates with live form information [05:48] te-brian: My big 'aha' moment that I was building a server.. not a page .. was when I realized a simple variable can be sorta used as poor-mans memcache lol... store stuff between requests [05:48] darshanshankar: right, cool [05:48] eyesUnclouded has joined the channel [05:49] darshanshankar: i was just wondering what specific things in nowjs people like, and what they're building with it [05:49] blueadept: i'm going to be implementing it again here for notifications [05:49] blueadept: probably next week if i get time [05:49] SubStack: te-brian: yep you can cheap state for very little effort if you need it [05:49] darshanshankar: yeah i met a guy building notifications and analytics platform with nowjs [05:51] te-brian: ahh.. nowjs sounds a lot like the ctools library for Drupal... abstraction of ajax requests [05:51] darshanshankar: its more than an abstraction of ajax [05:51] darshanshankar: brb COFFEE [05:53] SubStack: 0xc0ffee [05:53] SubStack: I could do with another round [05:53] SubStack: need to whip testling into shape [05:55] te-brian: Are there any de-facto TDD suites? What are most people using? [05:56] SubStack: why TDD? [05:56] Aria: vows and expresso are common [05:56] SubStack: and nodeunit [05:57] SubStack: right, adding watches into fileify [05:58] smtlaissezfaire has joined the channel [05:59] seawise: my google+ account https://plus.google.com/ [06:00] cognominal_ has joined the channel [06:00] Aria: That's all of plus. [06:00] seawise: https://plus.google.com/112297193817306844951 [06:00] Xeon06_ has joined the channel [06:01] ngs has joined the channel [06:04] shadow_s has joined the channel [06:04] Xeon06_ has joined the channel [06:04] butu5 has joined the channel [06:07] Croms: Does anyone know how you can set multiple cookies in one header response? [06:07] SubStack: Croms: response.setHeader("Set-Cookie", ["type=ninja", "language=javascript"]); [06:08] SubStack: from http://nodejs.org/docs/v0.4.9/api/all.html#response.setHeader [06:08] Croms: Thanks again, mate. [06:08] SubStack: ^_^ [06:08] xeodox has joined the channel [06:11] nitram_macair has joined the channel [06:12] slajax has joined the channel [06:12] mikeal has joined the channel [06:15] Croms: Cool, array notation works with response.writeHead() too. [06:18] te-brian: I like how vows reads.... [06:21] dshaw_ has joined the channel [06:24] Xeon06_ has joined the channel [06:25] seivan_ has joined the channel [06:27] kmox83 has joined the channel [06:28] Xeon06_ has joined the channel [06:28] Me1000 has joined the channel [06:32] Xeon06_ has joined the channel [06:36] seivan has joined the channel [06:37] safg has joined the channel [06:38] kmox83 has joined the channel [06:38] herbySk has joined the channel [06:40] butu5 has left the channel [06:40] butu5 has joined the channel [06:40] Xeon06_ has joined the channel [06:41] dexter_e has joined the channel [06:42] dexter_e: I rebuilt the same simple application in Ruby and Node and ran them both on seperate clean Ubuntu 10.10 [06:43] dexter_e: The performance gap is so wide that I almost feel like Apache Bench is lying to me. [06:43] llrcombs: :D [06:44] killjoy has joined the channel [06:44] dexter_e: In a 10 second 10 concurent connect Test The ruby stack returns 26 requests while node returns 296 [06:44] llrcombs: :D [06:45] dexter_e: Could this be right? [06:45] llrcombs: :D [06:45] systemfault: Sure it's right. [06:45] llrcombs: :D [06:45] systemfault: Ruby interpreters are slow as f... [06:45] llrcombs: :D [06:45] dexter_e: The ruby stack has 4 failed requests and node has ... 0 [06:45] llrcombs: :D [06:45] systemfault: :D [06:46] jesusabdullah: ^__^ [06:47] dexter_e: Either Apache Bench is lying to me OR Node is just eating the other stack for breakfast [06:48] systemfault: V8 is a beast [06:48] Xeon06_ has joined the channel [06:48] dexter_e: I can't believe it [06:49] dexter_e: I really am going back to Apache Bench manuals to confirm all this stuff cause Its not belieavable [06:49] dexter_e: According to these tests its at least 800% faster with 0 Failures. [06:50] dexter_e: It doesn't even spike the memory on the machine ?!?? What the hell [06:50] fly-away has joined the channel [06:51] dexter_e: It just did this without even blinkiing [06:51] dexter_e: The ruby stack ate all the memory [06:53] killjoy: anyone know how I can request.pipe() an http response to memory instead of to a file? [06:54] killjoy: this works: [06:54] killjoy: var imgRequest = request( {uri:'https://google.com/logo.png'} ); imgRequest.pipe(fs.createWriteStream('google_logo.png')); [06:54] killjoy: this doesn't work: [06:54] killjoy: var imgRequest = request( {uri:'https://google.com/logo.png'} ); var imgBuffer; imgRequest.pipe(imgBuffer); [06:54] mustakes has joined the channel [06:57] zinkem has joined the channel [06:59] newy has joined the channel [07:00] Xeon06_ has joined the channel [07:03] butu5 has joined the channel [07:04] necrodearia has joined the channel [07:07] rchavik has joined the channel [07:07] dexter_e: With concurrency at 30 RubyStack starts Bustin InternalServ500 errors failed requests: 7. Node failed request: 0. [07:08] mustakes has joined the channel [07:08] Xeon06_ has joined the channel [07:09] butu5 has joined the channel [07:10] dexter_e: Looks like Node's friendly Javascript face does a nice job helping it hide its massive hairy balls. [07:11] jesusabdullah: Huh? [07:11] skm has joined the channel [07:11] jesusabdullah: haha [07:11] jesusabdullah: Twisted and EM, on the other hand, swing their balls freely [07:11] jesusabdullah: You desparately want them put away, but no [07:12] dexter_e: HFAHFHAAHAHAF [07:12] jesusabdullah: no boxer shorts will keep them secure [07:12] Chaoser has joined the channel [07:12] dexter_e: Have you benched Twisted against Node ? [07:12] jesusabdullah: I haven't [07:12] jesusabdullah: I don't have that much experience with Twisted [07:12] jesusabdullah: but I *can* tell you that it's a pain in the ass [07:12] jesusabdullah: (my opinion anyway) [07:13] rchavik has joined the channel [07:16] dexter_e: I imagine that those results would be more in tune with what node is capable of. [07:17] jesusabdullah: I do think *someone* has benched twisted against node [07:17] jesusabdullah: I don't remember who or where to look [07:17] jesusabdullah: iirc, node typically outperformed twisted [07:17] jesusabdullah: but sometimes it's hard to tell y'know? [07:17] jesusabdullah: Tough to measure that stuff [07:17] patzak has joined the channel [07:18] dexter_e: yeah especially if the OS and supporting modules are different [07:18] jesusabdullah: yeah [07:18] dexter_e: In my case its two mirror image Ubuntu 10.10 boxes with 384MB ram [07:18] SubStack: node is great because it's so easy to write libraries [07:19] SubStack: you don't have to worry about reactors or synchronization or deferreds [07:19] jesusabdullah: indeed. [07:24] dgathright has joined the channel [07:26] gozala has joined the channel [07:26] rchavik has joined the channel [07:27] skm has joined the channel [07:30] Xeon06_ has joined the channel [07:36] flyingCircus has joined the channel [07:38] skm has joined the channel [07:38] Xeon06_ has joined the channel [07:38] sandstrom has joined the channel [07:38] sandstrom has joined the channel [07:39] AvianFlu: jesusabdullah; substack; hackhaus; the morrow [07:39] AvianFlu: et al; et cetera [07:39] jesusabdullah: AvianFlu: I'm down. Any time in mind, in particular? [07:39] SubStack: k [07:39] AvianFlu: after marak wakes up? [07:39] jesusabdullah: Haha, okay [07:39] AvianFlu: I dunno, afternoon [07:40] jesusabdullah: Sounds good [07:40] SamuraiJack has joined the channel [07:40] SubStack: I'll bring my bike again. I want to do more exploring to the south [07:41] jesusabdullah: If I had >1 gear I'd definitely bring my bike [07:41] jesusabdullah: since I don't really like the bus much [07:41] davidcoallier has joined the channel [07:41] AvianFlu: lol [07:42] jesusabdullah: Yeah, I broke my derailer so... [07:42] jesusabdullah: I can do relatively flat terrain okay [07:42] AvianFlu: P.S. marak got a connect [07:42] jesusabdullah: even though I complain constently [07:42] jesusabdullah: a connect? [07:42] AvianFlu: sorry [07:42] butu5 has joined the channel [07:42] AvianFlu: I'm drunk [07:42] jesusabdullah: ah [07:42] jesusabdullah: Oh [07:42] AvianFlu: a Kinect [07:42] jesusabdullah: kinect [07:42] jesusabdullah: Sweet [07:42] jesusabdullah: XD [07:42] AvianFlu: a dollar to the first guy to hack it [07:43] AvianFlu: I'd offer more, but it's us XD [07:43] jesusabdullah: XD [07:43] te-brian: SubStack: Thanks for the pointer to vows... whipped up a Person class and some tests and I kinda like the style... Seems like expresso is more favored with the 'hard-core' plues it has coverage?? [07:43] te-brian: SubStack: Actually used should.js with it for the syntax readability [07:44] rvb has joined the channel [07:46] SubStack: te-brian: oh that wasn't me, expresso is more my style [07:46] te-brian: SubStack: Ahh.. yeah I plan to check that out in the monring [07:46] te-brian: SubStack: Figured I try a test with both [07:46] simenbrekken has joined the channel [07:47] skm has joined the channel [07:49] wao: hello, with what tool do you debug client javascript? [07:49] darshanshankar: chrome web inspector :P [07:50] Xeon06_ has joined the channel [07:50] jesusabdullah: wao: Honestly? What darshanshankar said. [07:51] zackattack has joined the channel [07:51] jesusabdullah: wao: reasonable client-side testing is coming soon too...look at https://github.com/substack/testling in a few weeks. [07:53] darshanshankar: jesusabdullah: are you going to be showing off testling at any meetups soon? [07:53] pigmej has joined the channel [07:53] darshanshankar: i missed the recent one where SubStack talked about testling [07:53] hellp has joined the channel [07:54] Xeon06_ has joined the channel [07:54] jesusabdullah: SubStack: Are you gonna be demoing testling again anytime in the scheduled future? [07:55] unlink has joined the channel [07:55] unlink has joined the channel [07:55] jesusabdullah: darshanshankar: I'm actually supposed to be hitting the hay. Also, I have little to do with testling---I just watched [07:55] jesusabdullah: (It was fun to watch though!) [07:55] darshanshankar: cool [07:56] wao: damn, chrome web inspector made crash my tab, something is wrong [07:56] SubStack: jesusabdullah once it's actually ready for people to use [07:56] bergie has joined the channel [07:57] SubStack: darshanshankar: in the meantime you can look at http://71.198.76.38:8082/testling [07:57] xerox: is there such a thing as good dark theme for chrome [07:58] SubStack: erm [07:58] SubStack: yes that's the one [07:58] Bj_o_rn has joined the channel [07:58] CIA-110: libuv: 03Igor Zinkovsky 07pipes * r6399a8b 10/ (12 files in 3 dirs): Named pipes implementation for Windows - http://bit.ly/rfTfXf [07:59] Bj_o_rn has left the channel [08:01] guidocalvano has joined the channel [08:06] d0k has joined the channel [08:06] superjudge has joined the channel [08:10] CIA-110: node: 03koichik 07v0.4 * r7e8735b 10/ doc/api/fs.markdown : [08:10] CIA-110: node: Doc improvements. Explained the flags of fs.open(). [08:10] CIA-110: node: Fixes #1268. - http://bit.ly/oPcDFY [08:10] Xeon06_ has joined the channel [08:11] TheJH has joined the channel [08:11] TheJH has joined the channel [08:12] omni5cience_ has joined the channel [08:12] __doc__ has joined the channel [08:17] CIA-110: libuv: 03Igor Zinkovsky 07pipes * rcece1ef 10/ (12 files in 3 dirs): Named pipes implementation for Windows - http://bit.ly/rf5Mfb [08:18] chilts has joined the channel [08:18] prettyrobots has joined the channel [08:19] mendel_ has joined the channel [08:20] asabil_ has joined the channel [08:21] k0ral has joined the channel [08:23] gozala has joined the channel [08:23] daveyjoe has joined the channel [08:23] asabil_ has joined the channel [08:24] kriskowal has joined the channel [08:26] Guest65183 has joined the channel [08:28] ditesh|cassini has joined the channel [08:28] Xeon06_ has joined the channel [08:28] dexter_e has joined the channel [08:29] necrodearia has joined the channel [08:29] Guest65183 has left the channel [08:30] djcoin has joined the channel [08:30] steffkes has joined the channel [08:34] tdegrunt has joined the channel [08:35] rfrancisco has joined the channel [08:37] hassox has joined the channel [08:38] Xeon06_ has joined the channel [08:42] bogomips2__ has joined the channel [08:42] sounko has joined the channel [08:42] sub_pop has joined the channel [08:44] rfrancisco: anyone knows the release date for the o'relley node.js book? [08:44] Xeon06_ has joined the channel [08:44] mikl has joined the channel [08:44] mikl has joined the channel [08:48] blueadept has joined the channel [08:49] matwill has joined the channel [08:50] Xeon06_ has joined the channel [08:55] `3rdEden has joined the channel [09:01] confoocious has joined the channel [09:01] confoocious has joined the channel [09:04] daveyjoe_ has joined the channel [09:08] numb has joined the channel [09:10] Swizec has joined the channel [09:10] Xeon06_ has joined the channel [09:12] numb has left the channel [09:13] saschagehlich has joined the channel [09:13] Andreas has joined the channel [09:13] seawise has joined the channel [09:13] Andreas: wink_: thank you for you help about UDP multicast I ended up creating a littel UDP module there do the trick, thought you might be interested in it: https://github.com/AndreasMadsen/nodetalk [09:14] Xeon06_ has joined the channel [09:14] Skola has joined the channel [09:17] jomoho has joined the channel [09:18] Xeon06_ has joined the channel [09:19] asabil_ has joined the channel [09:20] asabil has joined the channel [09:20] seawise has joined the channel [09:21] blup has joined the channel [09:22] Emmanuel__ has joined the channel [09:24] aliem has joined the channel [09:26] prettyrobots_ has joined the channel [09:27] shinuza has joined the channel [09:30] Xeon06_ has joined the channel [09:30] stephank has joined the channel [09:31] nitram_macair has joined the channel [09:33] adrianmg has joined the channel [09:34] Xeon06_ has joined the channel [09:34] Locke23rus has joined the channel [09:37] Andreas has joined the channel [09:38] Xeon06_ has joined the channel [09:38] nickhac has joined the channel [09:38] nickhac: Ahoi oi [09:39] hassox_ has joined the channel [09:39] maxter has joined the channel [09:41] nickhac: Guys wondering if anyone can help, im a noob and getting an issue that is widely reported using JSDOM - https://github.com/tmpvar/jsdom/issues/195 [09:41] blueadept has left the channel [09:42] unomi has joined the channel [09:42] nickhac: "TypeError: Cannot call method 'runInContext' of undefined" [09:42] nickhac: one proposed anser is "use master" [09:42] nickhac: how do i actually do that? [09:43] nickhac: or does anyone else have tips for parsing and extracting text values from HTML content [09:43] dnjaramba has joined the channel [09:46] qab has joined the channel [09:48] nickhac: yo [09:48] nickhac: any JSDOM wizards up [09:48] vandenoever has joined the channel [09:49] vandenoever: ACTION is looking something like google wave for node.js, is there a collaborative editor that works with it? [09:51] sreeix has joined the channel [09:51] jhurliman has joined the channel [09:52] Xeon06_ has joined the channel [09:53] RC1140 has joined the channel [09:55] mraleph1 has joined the channel [09:58] andrerom has joined the channel [10:00] andrerom: will master be updated to a recent v8 version? Seems like it has been a stable branch for the last 6 months.. [10:00] mendel_ has joined the channel [10:02] mendel__ has joined the channel [10:04] matwill has joined the channel [10:08] markwubben has joined the channel [10:10] Xeon06_ has joined the channel [10:14] TheJH has joined the channel [10:14] TheJH has joined the channel [10:14] Xeon06_ has joined the channel [10:15] guidocalvano: vandenoever: http://groups.google.com/group/ace-discuss/browse_thread/thread/b7e8510312b5c61d?pli=1 [10:16] FireFly has joined the channel [10:16] jetienne_ has joined the channel [10:16] vandenoever: guidocalvano: thanks! [10:17] jetienne_: vandenoever: hi good to see you here [10:17] vandenoever: jetienne_: :-) [10:17] guidocalvano: vandenoever: this guy was working on such stuff too https://github.com/Deltachaos [10:18] guidocalvano: just message him [10:18] guidocalvano: he had something looking pretty complete [10:20] guidocalvano: and cloud9 will add it soon according to this article; http://cloud9ide.posterous.com/44686531 [10:20] guidocalvano: cloud9 is open source so you can probably get the module from it [10:21] guidocalvano: by the way, I may know a relative of your vandenoever [10:21] vandenoever: guidocalvano: ah, interesting, it's on my readling list [10:21] guidocalvano: his name is Niels [10:21] ggordan has joined the channel [10:21] guidocalvano: are you dutch? [10:21] vandenoever: guidocalvano: sorry, no niels in my family [10:21] vandenoever: guidocalvano: i am [10:22] guidocalvano: ik ook (: [10:22] vandenoever: guidocalvano: i'm looking into simple ideas for adding collaborative editing to webodf [10:22] davidcoallier has joined the channel [10:23] guidocalvano: well collaborative editing either isn't simpel, or you need to allow some operations not arriving [10:23] guidocalvano: it has to do with client and server not having all the data at the same time [10:24] SvenDowideit has joined the channel [10:24] vandenoever: guidocalvano: i know it's not simple, so i'm looking at many options to find something i can reuse [10:24] eyesUnclouded has joined the channel [10:24] guidocalvano: I think the core of the complexity is the synchronization [10:25] skm has joined the channel [10:25] saurabhverma has joined the channel [10:25] vandenoever: guidocalvano: yes [10:26] andrerom_ has joined the channel [10:26] bermi has joined the channel [10:26] guidocalvano: so; suppose two people are editing the same line, what do you do? [10:27] guidocalvano: if it abstracts that away well, then you've got a good framework [10:27] vandenoever: guidocalvano: let the collaborative editing library solve it ;-) [10:28] igl1: there must be multiple universes representing each edit done to that line [10:28] guidocalvano: be willing to compromise, or prepared to wait [10:28] guidocalvano: what do you want to do with it? [10:28] Emmanuel_ has joined the channel [10:28] guidocalvano: though deltachaos his version looked good by the way [10:29] guidocalvano: the compromise wasn't that visible [10:31] guidocalvano: i didn't notice [10:31] guidocalvano_ has joined the channel [10:31] guidocalvano_: the problem is synchronization [10:31] JKarsrud has joined the channel [10:32] guidocalvano_: what if I add something to a line that someone else júst happened to delete [10:32] guidocalvano_: where does it go? [10:32] Xeon06_ has joined the channel [10:32] guidocalvano_: that sort of problems [10:34] guidocalvano_: http://en.wikipedia.org/wiki/Operational_transform [10:40] tayy has joined the channel [10:40] Xeon06_ has joined the channel [10:41] kbni has joined the channel [10:43] jbpros has joined the channel [10:43] boehm has joined the channel [10:44] Xeon06_ has joined the channel [10:45] Yoric has joined the channel [10:46] Lorentz_ has joined the channel [10:47] adrianmg1 has joined the channel [10:48] Xeon06_ has joined the channel [10:50] sfoster has joined the channel [10:53] SteveDekorte has joined the channel [10:53] kakamba has joined the channel [10:54] daveyjoe has joined the channel [10:54] daveyjoe_ has joined the channel [10:59] level09 has joined the channel [11:00] Xeon06_ has joined the channel [11:02] aliem has joined the channel [11:04] Xeon06_ has joined the channel [11:05] rook2pawn has joined the channel [11:08] mitko has joined the channel [11:09] pt_tr has joined the channel [11:10] daveyjoe has joined the channel [11:12] Yoric has joined the channel [11:12] level09 has joined the channel [11:12] zilch has joined the channel [11:13] zilch: anybody aware of accessing google document list API wiht node.js [11:15] syst3mw0rm has joined the channel [11:16] Artem_S has joined the channel [11:16] saschagehlich: `3rdEden: hey [11:16] `3rdEden: Hello sir [11:17] saschagehlich: you have some frontend js experiences, right? [11:17] Artem_S: Hi all, just trying to compare Node.js vs Apache when serving static files. So far I haven't had much luck - node seems to be slower :( http://stackoverflow.com/questions/6634299/node-js-slower-than-apache [11:17] `3rdEden: saschagehlich yup [11:17] Artem_S: Am I doing it wrong? [11:17] saschagehlich: `3rdEden: http://jsfiddle.net/sgehlich/PSAWG/1/ <-- ever experienced something like that? [11:17] saschagehlich: (only in chrome) [11:18] saschagehlich: Artem_S: how large is that file? [11:19] `3rdEden: saschagehlich isn't jquery already using the request animation frame thing? [11:19] saschagehlich: `3rdEden: wh...what? [11:19] `3rdEden: which lowers the timeout when the page is idle [11:19] `3rdEden: http://paulirish.com/2011/requestanimationframe-for-smart-animating/ [11:20] Xeon06_ has joined the channel [11:21] saschagehlich: `3rdEden: never heard of it :/ the strange thing is: it works with 1.5.2 [11:22] `3rdEden: saschagehlich odd [11:22] `3rdEden: saschagehlich if it's not the requestanimationframe thing, I would have no clue [11:22] saschagehlich: looks like john fixed this in 1.5 [11:22] saschagehlich: http://bugs.jquery.com/ticket/8101 [11:22] `3rdEden: saschagehlich [11:23] `3rdEden: it langed [11:23] `3rdEden: Yes, that one [11:23] `3rdEden: :p [11:23] saschagehlich: :D [11:23] saschagehlich: but looks like it's broken again in 1.6 [11:23] saschagehlich: so I'll just use 1.5 I guess.. [11:25] drudge: where is wink_ when you need him [11:28] [AD]Turbo has joined the channel [11:30] Xeon06_ has joined the channel [11:31] superjudge has joined the channel [11:36] RC1140 has joined the channel [11:37] SteveDekorte has joined the channel [11:40] ktos has joined the channel [11:40] matwill has joined the channel [11:40] ktos: Hello [11:40] ktos: Tell me please, when node will be ported to Windows, will it be using jscript and have bindings for .net ? [11:42] postwait has joined the channel [11:43] dexter_e has joined the channel [11:43] corleone has joined the channel [11:44] corleone: hey, need some help, nobie to node where to get node-waf [11:44] Xeon06_ has joined the channel [11:46] retif has joined the channel [11:46] Yoric: ktos: that sounds quite unlikely. [11:46] Yoric: (I mean, Jscript) [11:47] dexter_e: Can anyone explain the effect of putting parens() around your whole page of code? Like backbone does... http://arturadib.com/hello-backbonejs/docs/1.html [11:47] Yoric: At a hunch, I'd say that some bindings for .Net will appear eventually, but probably not in the first version. [11:47] Yoric: dexter_e: it's not the parens [11:47] Yoric: Take a look at the last line of that extract. [11:48] zilch: sorry I wasn't around for much of the time on the channel ... I want to humbly ask if Joyent a MS company ? [11:48] Xeon06_ has joined the channel [11:48] Yoric: It's (someFunctionDefinition)(args) . [11:49] matwill has joined the channel [11:49] dexter_e: Wow I'm not even sure what... someFunctionDefinition)(args) does [11:49] Yoric: zilch: I don't think it is. [11:49] Yoric: dexter_e: well, it defines a function and it calls it immediately. [11:49] unlink has joined the channel [11:49] unlink has joined the channel [11:49] dexter_e: whoa [11:50] Yoric: dexter_e: most of the point of this is to make sure that any variable that you don't want to show to the rest of the universe can be hidden inside the definition of the function. [11:50] corleone: hey, need some help, nobie to node where to get node-waf [11:50] adrianmg1: anyone worked with hcard / vcard microformats? [11:51] Yoric: zilch: I just think that Microsoft is paying Joyent to port and support "Node.exe" [11:51] unomi has joined the channel [11:52] bpierre has joined the channel [11:52] Yoric: (or, equivalently, to have Joyent provide support for Windows stuff, which iirc isn't the case yet) [11:52] malkomalko has joined the channel [11:52] dexter_e: (function($){ /*AppPartsHere*/ })(jQuery); [11:53] dexter_e: Why passing $ and jQuery ? [11:54] dexter_e: So its instantly defining and calling function($) [11:54] Yoric: dexter_e: there are two reasons. [11:55] Yoric: The first reason to use a function is to ensure that you don't pollute the global scope with local variables. [11:56] Yoric: Let me check that I am not saying anything stupid about the second reason :) [11:56] theCole has joined the channel [11:58] Yoric: As I suspected, the reason for which [jQuery] is renamed to [$] in this function call is pretty much for concision. [11:59] dexter_e: at the top level it looks like (function(){})() ... [11:59] Yoric: (and because that's how jQuery tutorials do this kind of stuff) [11:59] Yoric: dexter_e: yeah, that would work, too [12:00] dexter_e: so the first set of parens declares the function and instantly calls it with the second set of parents as the parameter? [12:01] skm has joined the channel [12:03] sreeix has joined the channel [12:04] Xeon06_ has joined the channel [12:04] dexter_e: So will this make an alert? (function(){ alert("function called") }) [12:05] dexter_e: oops: (function(){ alert("function called") })(); [12:05] dexter_e: Thats trippy [12:06] dexter_e: ( function(){ alert("yo") } )(); [12:06] gbili has joined the channel [12:07] delian66: zilch [12:07] delian66 has left the channel [12:08] dnjaramba has joined the channel [12:09] txxt has joined the channel [12:12] txxt: hi. as a started in nodeJS having some troubles to handle the event driven properly :P right now I have this code http://pastebin.com/Zdix8XiB that works perfectly, and this one http://pastebin.com/JFE8EaRs that in theory is equivalent (an more readble) but seems to break when doing the response.write(imageContent); Could anyone around give me an hint on this ? thanks ! [12:12] Lightdork has joined the channel [12:13] dexter_e: Actually I think the $ in this case: (function($){ /*AppPartsHere*/ })(jQuery); is the incoming parameter to represent jQuery right? [12:14] muhqu has joined the channel [12:15] sreeix has joined the channel [12:15] markwubben has joined the channel [12:15] dexter_e: so its actually: (function(s){ alert(s) })('yo'); [12:17] mikedeboer has joined the channel [12:17] okuryu has joined the channel [12:18] Xeon06_ has joined the channel [12:19] mnbvasd: is there anyone around who knows about udp in node? [12:19] matwill has joined the channel [12:19] blup has joined the channel [12:20] mnbvasd: - I seem incapable of sending udp packets which don't have bad checksums, and also I don't seem to receive empty packets. [12:24] Xeon06_ has joined the channel [12:27] gbili has left the channel [12:29] theCole has joined the channel [12:30] Xeon06_ has joined the channel [12:32] Wizek has joined the channel [12:34] k0ral: hi, which module would you recommend for using a couchdb database ? [12:35] Aria has joined the channel [12:38] Xeon06_ has joined the channel [12:40] traph has joined the channel [12:42] Xeon06_ has joined the channel [12:43] Ramosa has joined the channel [12:43] gkmngrgn has joined the channel [12:46] mikedeboer has joined the channel [12:48] Xeon06_ has joined the channel [12:48] stagas_ has joined the channel [12:49] thalll has joined the channel [12:53] Andreas has joined the channel [12:54] Xeon06_ has joined the channel [12:56] tayy has joined the channel [12:56] zomgbie has joined the channel [12:56] mehtryx has joined the channel [12:59] dexter_e has joined the channel [13:00] Xeon06_ has joined the channel [13:02] voodootikigod__ has joined the channel [13:04] bbrandon has joined the channel [13:06] squeese has joined the channel [13:10] zilch: i have node.js scropt which runs every midnight and takes some stats ( stores it in file as new line, everyday) and sends the file as attachment ... [13:11] zilch: I think I should be using google docs api to directly store the report on google spreadsheet ... [13:11] zilch: is there any such other service ? [13:11] zilch: I couldn't found any node module to do that [13:11] zilch: yet [13:11] Aria: "a something for your script to connect to and store data"? [13:11] Aria: Or specifically google docs? [13:12] zilch: Aria, yup a store dat .. which is easy for everybody to view [13:12] zilch: Aria, what came to my mind is google doc ... but anythin else is fine... [13:12] Aria: ACTION nods. [13:13] Aria: I mean, the relatively normal way to do that is to make a little script that reads the database, then throw things in a database. Be it MySQL or Mongodb. [13:13] zilch: basicallt it is a daily report .. a document gets a new line everyday [13:13] Aria: But Google Docs isn't a bad hack for that either. [13:14] zilch: yeah ... I am using mongodb, but then then there is no view to that data !!! the report are for managers !! can't accept then to start mongo console [13:14] Ramosa has joined the channel [13:15] zilch: in mongodb or mysql .. it is just data, no readymade .. web based view [13:15] zilch: and since it is report having it in spreadsheet like format is something that makes sense [13:16] kartmetal has joined the channel [13:17] patrikkarlin has joined the channel [13:19] zilch: https://github.com/EastCloud/node-spreadsheets [13:19] zilch: https://github.com/publicclass/spreadsheet [13:19] Aria: Spiffy. [13:21] pastak has joined the channel [13:21] aliem has joined the channel [13:22] springify has joined the channel [13:25] txxt: sorry for repeating, but as a started in nodeJS having some troubles to handle the event driven properly :P right now I have this code http://pastebin.com/Zdix8XiB that works perfectly, and this one http://pastebin.com/JFE8EaRs that in theory is equivalent (an more readble) but seems to break when doing the response.write(imageContent); Could anyone around give me an hint on this ? thanks ! [13:26] skohorn has joined the channel [13:28] Lightdork has joined the channel [13:28] erobit has joined the channel [13:28] Xeon06_ has joined the channel [13:29] mega`: so your returning values from your functions even tho there using async api's and theres no data to return [13:30] localhost has joined the channel [13:30] txxt: mega`: ok get the point. but then it is no possible to solve it in the way i was trying to stucturate the code ? [13:31] stagas has joined the channel [13:31] txxt: or use readSync could be an option ? [13:31] txxt: readFileSync, i ment [13:31] txxt: *ment/meant [13:31] mega`: if you are using sync in http responses your kinda missing the point of node [13:32] mega`: the point is to not wait for the file [13:32] mega`: and use a callback for when the file is done [13:33] txxt: right, that is the point i don't want to miss. just wanted to keep the code more readable [13:33] mega`: if you dont whant to have nested functions then your gonna have to make it statefull [13:33] txxt: could always only callback the initial callback once the readFile callback is done, i guess. [13:33] mega`: and for that you shuld use a object [13:34] txxt: mega`: do you know any example of that way to code ? [13:34] mega`: i can make some give me a sec [13:34] txxt: thanks [13:34] zilch: Aria, which spiffy exactly ? [13:35] zilch: or you just appreciated the modules ? [13:37] daigo has joined the channel [13:38] chuangbo has joined the channel [13:40] Aria: I just appreciated the modules. [13:41] indexzero has joined the channel [13:42] txxt: mega`: also have another question, why the previous function fs.stat() worked with that "wrong return way" if it is also asynchronous ? [13:43] brolin has joined the channel [13:46] mega`: txxt: do you mean in the first code example ??? there you are using it async [13:46] heavysixer has joined the channel [13:47] txxt: mega`: no, in the second. the first is totatlly async and works perfetly. [13:47] jetienne_ has joined the channel [13:48] Xeon06_ has joined the channel [13:49] mega`: how do you know if it worked [13:49] mega`: you loging it async anny way [13:50] mega`: i tried the function in the repl it dosent return anny thing [13:50] txxt: in the repl ? [13:51] mega`: if you type node in the console you get a read eval print loop [13:51] mega`: and you can try code [13:51] txxt: why u say i am logging it in a async way ? i only trace to console.log when the callback is called. [13:51] txxt: mega`: ah thanks. didn't know that yet ;) [13:53] mega`: yea but your returning before that so even if the console is logging the file size dosent mean that the function returned the file size [13:53] txxt: mega`: ok, got it know, thanks for the explanation once more. [13:54] Xeon06_ has joined the channel [13:54] txxt: mega`: would you mind to show me a piece of code, like u said using an object, to avoid nested funtions and keep all async [13:54] mega`: yea sec [13:55] jtsnow has joined the channel [13:56] mega`: http://pastebin.com/1Xq6bKmi [13:56] mega`: needed to download a pic to test it with :D [13:57] txxt: mega`: lol :P sorry for the problem ;) checkin the code now, thanks [13:57] akshatj has joined the channel [13:57] txxt: Pastebin.com is under heavy load right now :'( [13:57] txxt: ahaha [13:57] mega`: :S [13:58] txxt: hopefully a few refresh will allow me to open it [13:58] txxt: ok opened. now checking [13:59] jakehow has joined the channel [13:59] txxt: mega`: wow, nice example to hanle it that way! [13:59] mega`: this is not how i whuld write it btw :D i like nesting away :D [13:59] txxt: *handle [13:59] txxt: mega`: yes, that would be my last question, i guess 99% percent of the community likes and uses nested functions ? [14:00] Aria: Somewhat nested, not too deep. [14:00] txxt: :P [14:00] mega`: rigth [14:00] Aria: If you're going too deep, you're not making your own events and decoupling your code. [14:00] cerisier has joined the channel [14:01] txxt: if the levels start to get to deep, you start using objects has funtions returns to previous functions ? [14:01] txxt: Aria: ok good definition ;) [14:01] mega`: you can always refractor nested functions [14:02] txxt: meaning ? to another class file ? [14:02] mega`: using function that return functions [14:02] txxt: right [14:02] mega`: theres no class files :D [14:02] txxt: ups :| my bad [14:02] txxt: started today [14:02] txxt: ;9 [14:02] txxt: with nodejs [14:02] tuhoojabotti: Is there a nice helper for doing [1,3,[6,7],5] -> [1,3,6,7,5]? [14:02] daigo has joined the channel [14:03] mega`: flatten [14:03] highermath_away has joined the channel [14:03] tuhoojabotti: Is it builtin in nodE? [14:03] txxt: ok, thanks once more mega` and Aria . nodejs look pretty cool btw ;) [14:04] mega`: no i think underscore has it [14:04] mega`: but i havent used it in node [14:04] mega`: http://documentcloud.github.com/underscore/#flatten [14:05] tuhoojabotti: I found a short snippet :P [14:05] mega`: npm install underscore worked [14:05] mega`: and the functions and a lott of other functions are in there [14:06] tuhoojabotti: Ye I know. [14:07] Ramkumar has joined the channel [14:10] xandrews has joined the channel [14:12] pigmej: hmm [14:12] pigmej: how can I remove all 'stupid' colors [14:13] pigmej: from many many usefull commandline modulse? [14:13] pigmej: modules* [14:13] pigmej: it seems hardcoded... [14:13] pigmej: like [14:13] pigmej: sys.puts('> ' + (method + ' ' + path).grey); [14:13] pigmej: sadly that gray == 'my terminal background' [14:14] mega`: maybe you can overide what grey means :D [14:14] Xeon06_ has joined the channel [14:14] mega`: like updating the prototype of string or how thats implemented [14:15] pigmej: mega`: in 'all' modules.. [14:15] pigmej: I wonder who invented that 'gray' thing [14:15] pigmej: and other hardcoded colors [14:16] pigmej: in eyes module I can remove those by using styles.... [14:16] pigmej: in ONE place [14:17] mega`: if there all using the same method for colors then updating the prototype for string (if thats how the did it) shuld be enuf to overide all modules coloring [14:17] pigmej: I seriously wonder who 'invented' it.. [14:18] pigmej: completelly useless thing [14:18] pigmej: that SHOULD be optional [14:18] pigmej: what with terminals that doesn't support colors ? [14:18] pigmej: even worse problem there [14:18] Aria: m [14:19] Aria: Maybe not. Those terminals would ignore it. [14:19] mega`: you can probebly turn of colors in your console [14:19] Aria: But I'm with you on this: I often use light-background terminals. The people who use 'white' rather than 'normal' bug me to no end. [14:19] pigmej: I can understand that colors for 'end user applications' [14:20] pigmej: but well... why the hell a developer modules are using it ? [14:20] pigmej: I don't see the point of it ;/ [14:20] Corren has joined the channel [14:22] skohorn has joined the channel [14:24] Ramkumar: Hi, I am facing a 120 sec pause when doing some performance test of a screen scraping application https://groups.google.com/d/topic/nodejs/xI4pkm_Rd28/discussion [14:24] butu5 has joined the channel [14:25] dnjaramba has joined the channel [14:25] materialdesigner has joined the channel [14:27] Destos has joined the channel [14:27] Mrfloyd has joined the channel [14:28] Xeon06_ has joined the channel [14:29] Aria has joined the channel [14:29] m00p has joined the channel [14:30] gozala has joined the channel [14:32] Xeon06_ has joined the channel [14:35] mandric has joined the channel [14:36] mynyml has joined the channel [14:36] pt_tr has joined the channel [14:38] Xeon06_ has joined the channel [14:39] bradleymeck_ has joined the channel [14:40] BulletBo_ has joined the channel [14:40] malkomalko has joined the channel [14:42] VeXii has joined the channel [14:47] cjm has joined the channel [14:47] blup: how do i call a parent's method from within a class declaration 'class snake extends animal'? (coffeescript) [14:48] kbni has joined the channel [14:48] Sorella has joined the channel [14:48] jetienne_: Ramkumar: considere it is from the network ? aka the data you are scapping ? [14:49] jetienne_: Ramkumar: aka copy the page locally, and launch your scrapper [14:49] Swimming_bird has joined the channel [14:49] sreeix has joined the channel [14:49] jetienne_: avoid any network. dont forget dns [14:50] jetienne_: if you need them put in in /etc/host [14:50] rfay has joined the channel [14:52] jtrudeau has joined the channel [14:53] mapleman has joined the channel [14:57] voodootikigod__ has joined the channel [14:58] Xeon06_ has joined the channel [14:59] jetienne_: dont message me [14:59] jetienne_: talk on the channel Ramkumar [15:00] vandenoever has joined the channel [15:00] vandenoever has joined the channel [15:00] mapleman has joined the channel [15:00] beck5k has joined the channel [15:00] beck5k has left the channel [15:00] Ramkumar: Local scraping works fine. Could be some issue with the socket connection pooling within node as it has 120 sec timeout setting? [15:01] jetienne_: it isnt a matter of node [15:01] jetienne_: this is a matter of network timing [15:01] jetienne_: any language will show those timing. monitor your dns [15:01] jetienne_: or the site you are scrapping [15:01] pt_tr_ has joined the channel [15:01] Ramkumar: we did decent number of tests to rule out the Server whose page we are scrapping [15:02] Ramkumar: e,g, we accessed the site from the browser when Node had paused for 120 sec and it was all fine... we checked the logs etc [15:03] jetienne_: a way to work around those timers would be to run many scrapper at the same time [15:04] Ramkumar: yes, but 200 connections should be a breeze for Node... the machine is decent server class [15:04] jetienne_: hehe [15:04] kcbanner has joined the channel [15:04] jetienne_: Ramkumar: you dont believe me when i tell you it isnt node :) [15:04] kcbanner: Anyone familiar with node-csv-parser? I"m having a really hard time getting it to append a single line to the end of the file. [15:05] jetienne_: Ramkumar: it is your network. fix it or workaround it [15:05] ericnakagawa has joined the channel [15:05] Ramkumar: No, i would like to believe you. [15:05] jetienne_: Ramkumar: find the one who blacklist you [15:05] tuhoojabotti: Hihi [15:05] tuhoojabotti: My Node game server is working [15:05] Corren has joined the channel [15:06] piscisaureus has joined the channel [15:06] vandenoever has joined the channel [15:06] vandenoever has joined the channel [15:10] Xeon06_ has joined the channel [15:13] vandenoever has joined the channel [15:14] Xeon06_ has joined the channel [15:15] cccaldas has joined the channel [15:17] mbrevoort has joined the channel [15:18] Xeon06_ has joined the channel [15:19] vandenoever has joined the channel [15:19] vandenoever has joined the channel [15:20] malkomalko: anybody use rackspace for their node.js hosting? [15:21] JasonSmith has joined the channel [15:22] Xeon06_ has joined the channel [15:22] ktos has left the channel [15:27] m4rcs has joined the channel [15:29] adrianmg has joined the channel [15:31] vandenoever has joined the channel [15:31] mykul has joined the channel [15:31] Ramkumar has left the channel [15:32] sourcode has joined the channel [15:33] wookiehangover has joined the channel [15:34] Xeon06_ has joined the channel [15:35] ericnakagawa has joined the channel [15:35] butu5: malkomalko: I m using for a simple stuff [15:35] butu5: any specific question? [15:35] teknopaul has joined the channel [15:36] boccato has joined the channel [15:36] malkomalko: I'm just doing research right now to try to decide where I want to host my production app [15:36] kriskowal has joined the channel [15:36] malkomalko: using webbynode right now, but I'm looking for something is a little more secure as far as failover and backups...... rackspace cloud servers looked interesting [15:37] butu5: though I am using rackspace cloud servers.. I am not very much into heavy load apps [15:37] unomi has joined the channel [15:40] malkomalko: no worries [15:41] Ramkumar_KB has joined the channel [15:41] mykul has joined the channel [15:42] creationix has joined the channel [15:42] postwait: anyone know which of these I should be using? https://github.com/egorich239/node-compress/network/members [15:45] kevwil has joined the channel [15:47] ritch has joined the channel [15:47] mikeycgto has joined the channel [15:49] wookiehangover has joined the channel [15:51] Emmanuel_ has joined the channel [15:51] pgriess has joined the channel [15:52] gozala has joined the channel [15:52] Aikar: http://www.youtube.com/watch?v=yansdoVwdgI&feature=player_embedded [15:55] jerrysv has joined the channel [15:56] kriskowal has joined the channel [15:57] patrikkarlin has joined the channel [15:58] Xeon06_ has joined the channel [15:58] seungers has joined the channel [15:59] vandenoever has joined the channel [16:01] seungers has joined the channel [16:01] fille has joined the channel [16:02] Xeon06_ has joined the channel [16:02] kadiks has joined the channel [16:02] kmwallio has joined the channel [16:02] kadiks: hi [16:02] vipaca has joined the channel [16:02] vipaca has joined the channel [16:02] harth has joined the channel [16:03] fille: hello [16:03] kadiks: when I do "throw 'error msg'" I receive : throw e; // process.nextTick error, or 'error' event on first tick [16:03] kadiks: is anyone know why this line is added to my real error message ? [16:03] avalanche123 has joined the channel [16:04] kriskowal has joined the channel [16:06] Wizek has joined the channel [16:07] jetienne_: kadiks: this is becquse the exception isnt trapped [16:07] kadiks: which means ? [16:07] guidocalvano has joined the channel [16:08] inimino: kadiks ⋱ It's because it happened on the first tick, i.e. not from a callback. [16:09] kadiks: so I can't throw a basic exception ? O_o [16:09] dguttman has joined the channel [16:10] Xeon06_ has joined the channel [16:10] inimino: kadiks ⋱ What? [16:10] kadiks: do you mean it has to go in a try-catch ? [16:11] inimino: You are throwing an exception, and you're getting a stack trace. [16:12] inimino: I'm confused, what is it that you would expect to happen? [16:13] kadiks: like a console.log I guess [16:14] dnjaramba has joined the channel [16:14] inimino: OK, that's not what exceptions are. [16:14] kadiks: sorry I am just trying to do like real developers :-p. But I have no idea how to properly use that. [16:14] inimino: If you want console.log, use console.log or sys.inspect or whatever it's called. [16:14] kadiks: I thought it was stopping the script and give me the error [16:14] inimino: Throwing an exception means that you've encountered an exceptional case and you need to halt. [16:15] kadiks: yes, so I should "handle" this exception ? [16:15] inimino: Logging means that you just want to see something on the console and continue to run. [16:15] inimino: It doesn't sound like you should be throwing an exception at all. [16:15] mbrevoort has joined the channel [16:16] kadiks: in that case I don't have find the location of my config file, in this case I can't run my application at all, so I decided to throw an error which stops the script [16:16] kadiks: this is not the kind of use for throwing exception ? [16:17] inimino: That's a case where you should throw an exception. [16:17] inimino: But in that case what you see is what you will get. [16:18] inimino: If you want a friendly error message instead, then do something like "printFriendlyErrorMessageAboutConfigFile(); process.exit(2)" [16:18] kadiks: but it seems like I have another error when thowing the error [16:19] kadiks: if that the way it works, it's ok, it looks weird [16:19] kadiks: thanks :-) [16:19] inimino: np [16:20] vipaca has joined the channel [16:20] vipaca has joined the channel [16:21] shinuza has joined the channel [16:21] boogyman has joined the channel [16:22] Xeon06_ has joined the channel [16:23] kmwallio has joined the channel [16:24] Wa has joined the channel [16:24] mjijackson has joined the channel [16:25] pig has joined the channel [16:25] monokrome has joined the channel [16:26] mjijackson has left the channel [16:26] avalanche123 has joined the channel [16:26] mjijackson has joined the channel [16:27] al3xnull has joined the channel [16:29] sivy has joined the channel [16:30] Xeon06_ has joined the channel [16:30] guidocalvano_ has joined the channel [16:30] zeade has joined the channel [16:30] Jakwac has joined the channel [16:31] Yoric has joined the channel [16:34] dnjaramba has joined the channel [16:35] shinuza has joined the channel [16:42] Xeon06_ has joined the channel [16:44] marcello3d has joined the channel [16:44] piscisaureus has joined the channel [16:46] alek_br_ has joined the channel [16:47] atebytes has joined the channel [16:48] systemfault has joined the channel [16:48] systemfault has joined the channel [16:49] smtlaissezfaire has joined the channel [16:49] level09 has joined the channel [16:52] b_erb has joined the channel [16:52] Xeon06_ has joined the channel [16:54] deoxxa: inimino: the text your irc client inserts after a nick made me wipe my screen [16:54] deoxxa: ...twice [16:55] mikeal has joined the channel [16:56] al3xnull has joined the channel [16:56] inimino: deoxxa: I'm sorry about that, maybe you need a better IRC client. [16:56] dguttman has joined the channel [16:56] deoxxa: no i mean, physically [16:56] deoxxa: haha [16:56] inimino: Oh :-) [16:56] deoxxa: i thought it was a smudge or something [16:57] inimino: Microscopic ants. [16:57] deoxxa: might have something to do with it being 3AM here :P [16:57] inimino: deoxxa ⋱ Actually they are nanites. You will be assimilated into the inimino hive mind. [16:58] staar2 has joined the channel [16:58] deoxxa: well, no use resisting i suppose [16:58] ChrisAnn has joined the channel [16:59] daigo has joined the channel [17:01] ngs has joined the channel [17:03] rauchg has joined the channel [17:03] thalll has joined the channel [17:04] deoxxa: so i've recently had to develop some web scraping tools, node has fit exceptionally well! [17:05] deoxxa: with it, i've managed to write a layer for some common architecture at work to communicate with a bunch of horribly broken IE6-era websites with no official APIs [17:05] deoxxa: and it's been as painless as conceptually possible [17:05] deoxxa: pretty happy about that :D [17:07] butu5 has joined the channel [17:08] b_erb: is there a performance difference between setInterval() and setTimeout() that registers a new setTimeou() in the callback? [17:08] ChrisAnn has left the channel [17:12] deoxxa: b_erb: setTimeout in the callback would mean that the callback would be called every (time callback takes to run) + x ms [17:12] deoxxa: setInterval means the callback is run every x ms regardless of how long the callback itself takes [17:13] tuhoojabotti: Wait was it so that comparing to simple objects failed? [17:13] tuhoojabotti: Do I need assert deepequal? [17:13] tuhoojabotti: :D [17:13] tuhoojabotti: like if I compare 2 socket peer objects [17:13] random123 has joined the channel [17:13] CrypticSwarm has joined the channel [17:13] fille: hi tuhoojabotti :D [17:13] tuhoojabotti: Ah damn forget it. [17:13] tuhoojabotti: :D [17:13] tuhoojabotti: fille: Hej [17:13] fille: :D [17:14] b_erb: deoxxa: ok, that's really a difference. thanks [17:14] Xeon06_ has joined the channel [17:14] deoxxa: setTimeout would also end up with an infinitely deepening stack with a naiive implementation, but i don't think that's relevant with v8 [17:15] random123: I'm new to MongoDB, I installed "mongodb" from npm, is there a better reference or list of methods like "drop" "remove" "createCollection" etc. than in the .mds that come with it? [17:15] _aron has joined the channel [17:17] b_erb: deoxxa: i need a function getting executed several times, then being suspended and later started again in strict time. so i was pondering on a appropriate approach [17:18] butu5 has joined the channel [17:18] deoxxa: yep, you probably want setInterval [17:18] ccarella has joined the channel [17:19] charlenopires has joined the channel [17:19] mikedeboer has joined the channel [17:20] vipaca has joined the channel [17:21] MacDiva has joined the channel [17:22] Spion_ has joined the channel [17:24] charlenopires has joined the channel [17:27] JKarsrud: how does express' logging work? [17:27] dibber has joined the channel [17:27] mikey_p: it's just middleware [17:29] JKarsrud: aight :) [17:30] Xeon06_ has joined the channel [17:31] daithi44 has joined the channel [17:31] indexzero has joined the channel [17:31] indexzero: wattup node [17:32] astropirate has joined the channel [17:32] astropirate: What C++ async io library does node use? [17:33] Aria: It doesn't. [17:33] indexzero: rsms / mscdex: Either of you around? [17:33] Aria: It uses libev and now it's adding libuv as a layer around the Windows IOCP port. [17:34] indexzero: Looking for some info on the OSX bindings of process.title that the commit logs seem to imply you wrote :) [17:34] avalanche123 has joined the channel [17:34] ekryski has joined the channel [17:36] jerrysv: indexzero: i don't suppose you have a mock response object, do you? [17:37] indexzero has joined the channel [17:37] jerrysv: indexzero: i don't suppose you have a mock response object, do you? [17:38] steffkes has joined the channel [17:38] liar has joined the channel [17:39] gozala has joined the channel [17:41] guidocalvano has joined the channel [17:41] indexzero: jerrysv:Well mock-request does include the request/response pair [17:41] indexzero: but it's designed around making requests [17:41] indexzero: Anyone used process.title on OSX + ps? [17:41] indexzero: I'm ready to stab whoever created darwin with somekind of blunt object [17:42] Xeon06_ has joined the channel [17:42] jerrysv: indexzero: yeah, i saw that, was hoping to go the other way [17:42] jetienne has joined the channel [17:43] falconair has joined the channel [17:44] indexzero: jerrysv: Nothing off-the-shelf, but it shouldn't be that hard, what's the scenario? [17:44] jerrysv: testing an app framework, specifically the routing [17:44] jerrysv: yeah, know it's not hard, just hoping to save myself a few minutes :) [17:45] JKarsrud: which package is recommended for less? just npm install less, or are any of the other ones in npm better? [17:45] noryb009 has joined the channel [17:45] indexzero: well mock-request will work for that [17:45] indexzero: it mocks the request / response pair [17:45] indexzero: I think some combination of mock-request and api-easy would work well for you [17:46] jerrysv: thanks, will take a look at api-easy [17:46] Charuru has joined the channel [17:46] falconair: is there a way to 'forward' all or subset of events? [17:47] falconair: i have a couple of services with events, i also have an aggregator which combines all the events... [17:47] jacobolus has joined the channel [17:47] falconair: then i have a web/rest layer on top...so i end up writing a LOT of code which just subscribes to events and forwards them [17:48] falconair: is there a way to do "xyz.on('all-events',function(){ forward all events} )" ? [17:48] falconair: "or forward all events, except a,b,c" [17:48] muhqu has joined the channel [17:49] _aron has joined the channel [17:50] yoav1 has joined the channel [17:51] bronson has joined the channel [17:51] dgathright has joined the channel [17:52] Xeon06_ has joined the channel [17:52] cha0s has joined the channel [17:52] cha0s has joined the channel [17:53] indexzero has joined the channel [17:59] jet_6q1no has joined the channel [17:59] ThryrdT has joined the channel [18:00] Xeon06_ has joined the channel [18:02] malkomalko has joined the channel [18:05] AvianFlu_ has joined the channel [18:06] sandstrom has joined the channel [18:06] sandstrom has joined the channel [18:06] ajsie has joined the channel [18:06] ajsie has left the channel [18:07] noryb009 has left the channel [18:08] syst3mw0rm has joined the channel [18:10] kmwallio has joined the channel [18:11] burg has joined the channel [18:11] burg: hello. for: today = new Date(); year = today.getYear(); , year returns 111 and not the current year --- why is that? [18:11] tuhoojabotti: v8: new Date().getYear(); [18:11] v8bot: tuhoojabotti: 111 [18:12] mendel_ has joined the channel [18:12] tuhoojabotti: :U [18:12] tuhoojabotti: :D [18:12] fille: DAMMit Google plus upploading all my mobile pictures [18:12] tuhoojabotti: fille: You can disable it.... [18:12] JKarsrud: hmm, naving a hard time getting less to work… [18:12] pdonald: v8: new Date().getFullYear(); [18:12] v8bot: pdonald: 2011 [18:12] JKarsrud: with express [18:12] fille: i will [18:12] burg: so why is 111 for getYear() ? [18:13] tuhoojabotti: burg: It's a feature. [18:13] JKarsrud: :D [18:13] tuhoojabotti: Consider it a bonus! [18:13] tuhoojabotti: Like Google +1 [18:13] tuhoojabotti: 11 +1 [18:13] pdonald: getYear method returns the year minus 1900 [18:15] bwinton: tuhoojabotti: 19100 FTW! :) [18:15] tuhoojabotti: Huh? [18:16] JKarsrud: aight, never mind, I just had a .css file in there too, which overrode the less :) [18:17] tuhoojabotti: rode over [18:17] tuhoojabotti: :) [18:17] davve: fille: did you chose to upload the pictures? [18:18] fille: i downloaded the google + android app [18:18] tuhoojabotti: Google+ [18:18] fille: and i used the instat uppload feture [18:18] fille: instant [18:18] tuhoojabotti: Yes. [18:18] tuhoojabotti: don't complain if you chose it. :D [18:18] fille: but its not sharing it [18:18] tuhoojabotti: Of course not. [18:18] fille: dident know what it was :D [18:18] tuhoojabotti: You have to manually share them. [18:18] fille: thats the good part [18:18] fille: :D [18:18] fille: i may disable it [18:18] temp01 has joined the channel [18:18] fille: right away [18:19] JKarsrud: do it [18:19] JKarsrud: hey temp01! [18:19] JKarsrud: long time no see! [18:19] hellp has joined the channel [18:19] fille: but i guess i will use it later, when i care less about my integrety [18:22] indexzero has joined the channel [18:23] AvianFlu_ has joined the channel [18:24] Xeon06_ has joined the channel [18:28] Xeon06_ has joined the channel [18:29] simenbrekken has joined the channel [18:31] isaacs has joined the channel [18:31] marcello3d has joined the channel [18:31] fattytuna has joined the channel [18:35] perlmonkey2 has joined the channel [18:38] b_erb1 has joined the channel [18:38] blup has joined the channel [18:41] fille: anyone here [18:41] fille: got a best practies question about express.js [18:41] fille: so i got app.get('/style.css') [18:41] Xano has joined the channel [18:42] Xeon06_ has joined the channel [18:42] fille: do i always need to do like this fs.readFile("style.css",function [18:42] fille: isent it better to keep the data inside style.css in memory all the time [18:43] sleek has joined the channel [18:43] othiym23 has joined the channel [18:44] TooTallNate has joined the channel [18:44] arlolra has joined the channel [18:45] kmwallio has joined the channel [18:45] Multiply has joined the channel [18:45] fille: no one here anymore? [18:47] willwhite has joined the channel [18:47] Multiply: There's always people here. [18:47] vipaca has joined the channel [18:49] jerrysv: fille: performance wise, keep it in memory, but do a stat to make sure you have the most current version. simplicity wise, read it each time [18:49] dtan has joined the channel [18:49] euforic has joined the channel [18:50] charlenopires has joined the channel [18:50] fille: jerrysv okej so i making a autocomplete function in express [18:50] fille: using a json dictionary [18:50] themiddleman has joined the channel [18:50] tuhoojabotti: Nice [18:50] tuhoojabotti: My game server is working :D [18:51] fille: tuhoojabotti :D [18:51] dtan: what's up everyone [18:51] TheEmpath has joined the channel [18:51] fille: is there any like document.ready process.ready in node.js [18:52] tuhoojabotti: Eh? [18:52] tuhoojabotti: :D [18:52] tuhoojabotti: fille: What would that be? [18:52] tuhoojabotti: When is a process "ready" exactly? [18:52] fille: thats true :D [18:52] tuhoojabotti: :D [18:52] fille: dammit [18:52] tuhoojabotti: luls [18:53] fille: but a auto complete function in express.js [18:53] fille: i guess i shall keep the list in memory all the time [18:54] tuhoojabotti: or use mongodb instead of the json and query as needed ;D [18:55] JKarsrud has left the channel [18:55] JKarsrud has joined the channel [18:55] JKarsrud: how do you render partial views from express? [18:55] fille: havent tried that yet [18:56] fille: partial('comment', { collection: comments }); [18:56] JKarsrud: yeah, I tried that, but it didn't find my partial [18:56] JKarsrud: I even tried setting the 'partials' path [18:57] saschagehlich has joined the channel [18:57] euforic: JKarsrud: Where is the partial being called in a jade file or in app.js [18:57] JKarsrud: in app.js [18:57] JKarsrud: app.set('partials', __dirname + 'views/partials'); [18:58] JKarsrud: then in my route callback; res.partial('test'); [18:58] fille: di u need to set the layout attribute [18:58] dtan: JKarsrud: https://gist.github.com/1073845 [18:59] hybsch has joined the channel [18:59] dtan: has anyone used mongoose-auth and express? [18:59] euforic: Try removing the app.set for partial and using the path from view/ on in the jade file [19:00] euforic: From the view folder root sorry [19:00] nitram_macair has joined the channel [19:00] JKarsrud: yeah, that works [19:00] JKarsrud: but it feels ugly [19:01] euforic: So partials/somepartial [19:01] JKarsrud: yes, that work [19:01] JKarsrud: worked, sorry [19:01] JKarsrud: but I just feel that I shouldn't have to [19:01] JKarsrud: if I render a partial, it should go into the folder I've set as partial, imo [19:02] dtan: jkarsrud, should have to reference the partials/ folder? [19:02] dtan: you can name the partials folder anything want [19:02] dtan: the path to the partial is all relative to where that file lives [19:02] JKarsrud: yeah, doesn't matter what it's called, as long as I can set an option for what my partial folder is [19:02] JKarsrud: imo [19:03] boaz has joined the channel [19:03] euforic: You could do an app set using the view directory root [19:03] JKarsrud: so not like this? app.set('partials', __dirname + 'views/partials'); then? [19:03] euforic: Instead of the app dir root maybe [19:03] JKarsrud: ah, right [19:03] euforic: Yeah try that [19:03] JKarsrud: yeah, that doesn't work [19:04] euforic: No just partials no views [19:04] JKarsrud: ah [19:04] euforic: Sorry on my iPhone so typing sucks [19:05] Jubb has joined the channel [19:05] cjm has joined the channel [19:05] euforic: Or send the partials path as a local var when rendering views [19:06] JKarsrud: so, how do I read a config setting? [19:06] JKarsrud: never mind, it doesn't really matter at this point [19:07] JKarsrud: I have more important things to do, like getting some user authentication :D [19:08] JKarsrud: but first, a smoke! [19:08] cccaldas has joined the channel [19:08] dtan: jkarsrud - whatever you name setting you can then do app.set('myVar') [19:09] dtan: i think it's a little weird to use a setter for a getter [19:09] JKarsrud: ah, so set reads AND writes, based on how many params? [19:09] dtan: right [19:09] JKarsrud: *are passed in, sorry [19:09] JKarsrud: weird [19:09] dtan: ya [19:09] sonnym has joined the channel [19:09] JKarsrud: but app.get is taken, so :P [19:09] dtan: true [19:09] dtan: ha [19:09] dtan: what about getParam('param') [19:09] JKarsrud: but still, kinda weird [19:09] dtan: a little verbose [19:09] JKarsrud: exactly [19:09] dtan: but at least it's more clear [19:10] JKarsrud: getSetting [19:10] JKarsrud: getConfig [19:10] JKarsrud: whatevs [19:10] JKarsrud: anything is better than set() for a getter :D [19:10] TooTallNate: dtan: tj doesn't like camel case :p [19:10] Xeon06_ has joined the channel [19:10] JKarsrud: getconfig then [19:10] dtan: haha, ok getparam [19:10] JKarsrud: :D [19:10] dtan: hah [19:10] TooTallNate: no those are ugly [19:10] JKarsrud: so set is better? [19:11] dtan: set is confusing [19:11] TooTallNate: it's more "jquery-y", for whatever that's worth [19:11] JKarsrud: uhm, no? [19:11] TooTallNate: I agree its confusing [19:11] dtan: ya i kinda got that [19:11] JKarsrud: it's not when the naming sucks [19:11] JKarsrud: :P [19:11] JKarsrud: imo [19:11] dtan: jkarsrud, tootallnate is saying that using one method to set/get is jquery-ish [19:11] JKarsrud: I know what he meant [19:11] TooTallNate: it's like .attr() for example [19:11] dtan: oh ok [19:11] JKarsrud: or prop! [19:11] JKarsrud: PROP it is [19:11] JKarsrud: instead of set [19:11] dtan: ya but those attr makes sense [19:11] dtan: set is explict [19:12] dtan: to a certain action at its face value [19:12] shinuza has joined the channel [19:12] dtan: prop would work imo [19:12] JKarsrud: even though prop only has one parameter in jquery [19:12] cha0s has joined the channel [19:12] dtan: meh, i don't think it would matter in this context [19:12] JKarsrud: but here it's excellent, because you set or get config properties [19:12] JKarsrud: ^^ [19:12] dtan: right [19:12] JKarsrud: anyways, going for that smoke [19:12] saurabhverma has joined the channel [19:13] JKarsrud: this should be played in with tj tho [19:13] patzak has joined the channel [19:14] patcito has joined the channel [19:14] dtan: right [19:16] euforic: You could use app.locals() maybe set the path there [19:16] japj has joined the channel [19:18] vipaca has joined the channel [19:18] prettyrobots has joined the channel [19:18] aliem has joined the channel [19:19] daithi44 has joined the channel [19:20] JKarsrud: euforic: isn't that on the response? [19:21] euforic: Is a helper alias [19:21] JKarsrud: okay [19:21] JKarsrud: well, anyways, don't really have any partials atm anyway :D [19:22] davve: */ +- ,. :; [] {} '" [19:22] liar has joined the channel [19:23] Determinist: any way to see what node's GC is doing? [19:23] Determinist: i wanna see when specific objects are getting collected [19:23] pgriess has joined the channel [19:23] Corren has joined the channel [19:25] xandrews has joined the channel [19:26] JKarsrud: dtan: aight, so you can do app.setting.partials [19:26] dtan: and set it explicitly? [19:26] dtan: or you mean get it? [19:27] JKarsrud: get [19:27] JKarsrud: ref tj's answer on github [19:28] brianseeders has joined the channel [19:28] dtan: ah that was quick lol [19:28] TheEmpath has joined the channel [19:29] JKarsrud: yeah [19:29] JKarsrud: I even got an email, just because you mentioned me [19:29] JKarsrud: :D [19:29] jerrysv: determinist: node --trace-gc [19:30] jerrysv: at least to see the collection happen\ [19:30] Determinist: jerrysv: any "destructor" type behavior i can use to track specific objects being GCed? [19:31] jerrysv: maybe with one of the other v8 options -- i haven't explored them all [19:31] dtan: jkarsrund - i just did a quick lookup on github =) [19:31] maushu has joined the channel [19:32] CIA-110: libuv: 03Bert Belder 07master * r5aa8c00 10/ src/uv-win.c : Windows: call shutdown before closesocket to ensure graceful disconnect - http://bit.ly/r0yaCo [19:32] jerrysv: maybe --trace_gc_verbose [19:33] Determinist: jerrysv: where can i find those other v8 options? [19:33] TheEmpath has joined the channel [19:33] swilson06 has joined the channel [19:33] Determinist: jerrysv: scratch that [19:33] jerrysv: node --v8-options [19:33] Determinist: jerrysv: found it [19:34] patzak_ has joined the channel [19:34] patzak_ has joined the channel [19:34] TheEmpath: hail nodelings [19:35] jakehow has joined the channel [19:36] TheEmpath: i got me a doc in MongoDB with a property that is a DBRef, I'm pulling it form the DB and sending it straight to Javascript in its raw JSON... but alas, I cannot map this blurb of JSON automatically to a useful Object in Javascript that has delicious methods that make that blarb of JSON highly useful. Any known solutions or discussions about this lack of mapping? [19:37] fattytuna has joined the channel [19:40] cha0s has joined the channel [19:40] cha0s has joined the channel [19:41] CIA-110: libuv: 03Igor Zinkovsky 07master * rb6a6dae 10/ (12 files in 3 dirs): Named pipes implementation for Windows - http://bit.ly/mUQJAK [19:41] syst3mw0rm has joined the channel [19:44] Xeon06_ has joined the channel [19:44] smtlaissezfaire has joined the channel [19:46] random123: If I was to use an asyncronous readFile, then once the file is read to request.end(data) how can the callback have access to request.end to do this? [19:47] random123: Or would I be forced to use Sync function in this case? [19:47] patzak has joined the channel [19:47] patzak has joined the channel [19:47] djcoin has joined the channel [19:48] random123: er response.end.. [19:49] bnoordhuis has joined the channel [19:49] Kingdutch has joined the channel [19:50] Me1000 has joined the channel [19:51] patzak has joined the channel [19:51] patzak has joined the channel [19:53] prettyrobots has joined the channel [19:54] brolin has joined the channel [19:54] mbrevoort has joined the channel [19:57] butu5 has joined the channel [19:58] cognominal has joined the channel [19:59] kkaefer: is there a standardize test runner status reporting format? [19:59] jhurliman has joined the channel [20:00] kkaefer: vows has a --json parameter, but it seems proprietary [20:01] kkaefer: I remember someone at nodeconf talking about that [20:02] jacobolus has joined the channel [20:02] vid_ has joined the channel [20:06] joshthecoder has joined the channel [20:07] ralphholzmann: Heyo, is there an easy way to see why a process would hang? I'm running some unit tests and they pass but the process doesnt exit [20:07] ralphholzmann: and im not listening on any servers or anything ... [20:07] ralphholzmann: hmmm [20:08] cha0s has joined the channel [20:08] cha0s has joined the channel [20:08] Remoun has joined the channel [20:09] kkaefer: ralphholzmann: do you have a setTimeout or setInterval? [20:09] kkaefer: ralphholzmann: I'm not aware of a mechanism to see why node doesn't exit though [20:09] ralphholzmann: kkaefer: i have a few [20:09] ralphholzmann: not interval [20:09] ralphholzmann: but some timeouts [20:10] kkaefer: node will not exit when there are any timeouts pending [20:10] fawxtin`` has joined the channel [20:15] cognominal has joined the channel [20:16] RC1140 has joined the channel [20:16] hij1nx has joined the channel [20:18] Xeon06_ has joined the channel [20:18] level09 has joined the channel [20:22] marcello3d has joined the channel [20:25] cglee has joined the channel [20:26] igl has joined the channel [20:28] Xeon06_ has joined the channel [20:32] Xeon06_ has joined the channel [20:33] Melkor_ has joined the channel [20:34] unlink has joined the channel [20:35] blueadept has joined the channel [20:35] m14t has joined the channel [20:36] cha0s has joined the channel [20:36] cha0s has joined the channel [20:38] Xeon06_ has joined the channel [20:40] Aria has joined the channel [20:42] materialdesigner has joined the channel [20:42] Xeon06_ has joined the channel [20:49] Renegade001 has joined the channel [20:51] syst3mw0rm has joined the channel [20:52] Xeon06_ has joined the channel [20:54] smtlaissezfaire has joined the channel [20:58] Xeon06_ has joined the channel [20:58] dshaw_ has joined the channel [21:00] adrianmg has joined the channel [21:01] adrianmg has left the channel [21:02] tayy has joined the channel [21:03] theCole has joined the channel [21:03] TheEmpath: anyone heard of a way to write mongoose models for node.js and then have a borwser call that model down for the client to use, which would allow mongoose model JSONs to properly populate in both the client and server? [21:03] supster has joined the channel [21:04] Wizek has joined the channel [21:05] doubletap: a synchronized model? [21:05] TheEmpath: ya [21:05] tbranyen: http://pastie.org/private/bahsqzh87sk762tqo7xddw how does that template engine partials syntax look? [21:05] TheEmpath: allow node.js to be authoritative with data AND structure through the whole stack [21:05] tbranyen: is it too confusing? [21:05] tbranyen: or is it obvious [21:06] JKarsrud: isn't that just stache? [21:06] tbranyen: JKarsrud: mustache doesn't allow you to go back up a context [21:06] JKarsrud: atleast syntax wise [21:06] tbranyen: but yeah [21:06] doubletap: I have worked toward that a couple times but what I found is that in practice the client models often have different requirements than the models used on the server. [21:06] TheEmpath: i figured as much [21:07] TheEmpath: all of the mongoose getter methods wouldn't work in the client and all graphic collisions wouldn't work on the server [21:07] TheEmpath: but there is some serious venn diagram overlappage [21:07] doubletap: quite a bit [21:07] TheEmpath: ACTION ponders. [21:07] JKarsrud: tbranyen: sure, it looks good [21:07] doubletap: there is a framework i saw a while ago that ORM/ORD's the differences. [21:07] triplem has joined the channel [21:08] doubletap: so, you build a framework that abstracts and unifies. [21:08] tbranyen: JKarsrud: not even sure if going up is important [21:08] triplem: hi, i do have a noob question concerning reading and "parsing" a tar.gz file. [21:08] tbranyen: like grabbing values from the base context [21:08] JKarsrud: nah, I doubt it [21:08] triplem: i have already installed tar, but this is not really working ;-( [21:09] TheEmpath: unrelated: i get to update my nifty real-time socket server from node 0.3.0 to current :X [21:09] TheEmpath: its been a while.. been going balls deep into writing a tile engine in html5 [21:09] tbranyen: JKarsrud: okay took that bit out [21:09] triplem: any hints on how to do this easily with e.g. exec? [21:10] JKarsrud: tbranyen: I've never, in any framework or language, had the need to do so, so [21:10] tbranyen: JKarsrud: another thing i've been debating is elseif support [21:10] TheEmpath: doubletap: yeah, an idea of horizontal inheritence (traits) comes to mind for this [21:10] JKarsrud: the thing I like about mustache is that it's logic less [21:10] tbranyen: i hate that [21:10] tbranyen: which is why i'm making this [21:10] tbranyen: heh [21:10] JKarsrud: hehe [21:10] tbranyen: same syntax for conditionals and looping is too confusing for me [21:11] TheEmpath: having a model server side uses server traits.. when it goes client, it gets client traits... by default it gets shared traits [21:11] TheEmpath: js is prototypical, so mixins are already there... [21:11] tbranyen: js is prototypical? [21:11] TheEmpath: oh yeah [21:11] tbranyen: sweeet! [21:11] bnoordhuis: triplem: what exactly do you want to do with tar? [21:11] TheEmpath: anyone know of a scala wrapper for js lol? [21:12] triplem: bhoordhuis: a list of the whole content of the file and then access single files and parse those [21:12] triplem: tar tvf and then accessing single files in the tar. [21:12] JKarsrud: tbranyen: maybe, but I've found that I can just as easily do the conditionals on the server and pass in vars from that [21:12] JKarsrud: so [21:12] JKarsrud: I don't know [21:12] JKarsrud: :) [21:13] tbranyen: JKarsrud: well if you're getting something from a 3rd party api and it changes, you now need to change code and restart your server to handle that [21:13] tbranyen: if you have a templating engine that can withstand those changes, you can just change a template [21:14] tbranyen: also i think many companies have frontend people that can handle templates, but not code, so thats a bottleneck in development if they cannot normalize the data to conform to logic less template syntax [21:14] tbranyen: i know it slows me down [21:14] JKarsrud: well, I'm actually a frontend dev [21:15] JKarsrud: what I like tho, is that with mustache, I can use the same templates in both front and backend [21:15] tbranyen: JKarsrud: yeah thats the goal of this engine as well [21:15] triplem: bnoordhuis: pretty much a js noob, so any help appreciated [21:15] tbranyen: i looked into handlebars, but dear god that was a nightmare to try and get working in node [21:15] tbranyen: https://gist.github.com/994418 [21:16] tbranyen: ^^ are my design thoughts [21:16] bnoordhuis: triplem: have you read the child_process module docs? [21:18] triplem: bnoordhuis: partly [21:18] LaptopSmasher has joined the channel [21:18] LaptopSmasher: Yo, I code in node.js and my cell is a 313 -- I sip coffee on my Macbook in the D [21:18] triplem: think i need to do a exec('tar tvf file.tar.gz') [21:18] LaptopSmasher: I'm a Detroit boy -- got the body guards -- I'm the mother fucker in charge [21:19] LaptopSmasher: Coleman Young loves me - 313! 313! [21:19] triplem: is this the way to go, or is there already some native solution? tried tar, but this module is not really working, unfortunately [21:19] LaptopSmasher: [21:19] bnoordhuis: triplem: there are (at least) two tar modules for node [21:20] indexzero has joined the channel [21:20] triplem: bnoordhuis: well, there seem to be three: tar, tar-async and i think tar-client. [21:20] LaptopSmasher: We need a rap for node.js [21:20] Guest15254 has joined the channel [21:20] triplem: i tried tar, tar sync seems to do just the packaging and the untar stuff [21:20] isaacs has joined the channel [21:21] bnoordhuis: triplem: if you want to do it yourself, you can use either exec or spawn [21:21] triplem: then the exec seems the way to go, right? [21:21] bnoordhuis: triplem: yep [21:21] triplem: ah, okay, i will dig into this. most probably come back if i do have more questions [21:21] triplem: thanks for the help, anyway. [21:22] bnoordhuis: triplem: my pleasure :) [21:24] overra has joined the channel [21:25] harth has joined the channel [21:27] indexzero has joined the channel [21:27] jbpros_ has joined the channel [21:28] Xeon06_ has joined the channel [21:30] rook2pawn has joined the channel [21:32] rauchg has joined the channel [21:33] Bonuspunk: LaptopSmasher> We need a rap for node.js -- like http://soundcloud.com/marak/marak-the-node-js-rap ? [21:34] Xeon06_ has joined the channel [21:35] Destos has joined the channel [21:35] CrypticSwarm has joined the channel [21:37] monokrome: Hey, isaacs. Are you around by any chance? [21:37] fattytuna has joined the channel [21:38] monokrome: I am wondering if it is possible to host your own npm registries internally for proprietary code [21:39] boaz has joined the channel [21:41] adrianmg has joined the channel [21:44] Xeon06_ has joined the channel [21:46] perezd has joined the channel [21:50] spetrea: I want to use jsdom which in turn uses node-htmlparser. But I don't want to install either on my system, I just want to use them with relative paths from inside a .js file I'll run using nodejs. My example is right here -> http://bit.ly/oNUI37 <- . Basically I can't get jsdom to see that I have already loaded node-htmlparser and I get the error message in the comments of test.js [21:52] jesusabdullah: spetrea: Give your project a package.json file, use npm to install these things inside your project folder. That's my suggestion! [21:52] jesusabdullah: It's pretty slick [21:52] spetrea: I dunno how to use npm to install stuff at some particular location [21:53] Bonuspunk: spetrea npm version? [21:53] Aikar: spetrea: cd ~/path/to/proj && npm install socketio [21:54] spetrea: my npm always needs sudo [21:54] spetrea: dunno why, couldn't ever get it to work without sudo [21:54] spetrea: :| [21:55] monokrome: Probably need to upgrade it? [21:55] jesusabdullah: What version of npm are you using? That sounds pre-1.0 [21:55] spetrea: user@garage:/tmp/js-1.8.5/js/src$ npm --version [21:55] spetrea: 0.2.7-1 [21:55] insin has joined the channel [21:55] dtan has joined the channel [21:55] Aikar: everyone do the dinosaur [21:56] jesusabdullah: c/^^^\ [21:56] spetrea: is it that old ? [21:56] jesusabdullah: Yeah [21:56] jesusabdullah: way old [21:56] spetrea: should I do [21:56] perlmonkey2 has joined the channel [21:56] spetrea: npm install npm ? [21:56] jesusabdullah: Follow the directions at npmjs.org [21:56] tayy has joined the channel [21:57] markwubben has joined the channel [21:57] zeade has joined the channel [21:57] monokrome: just sudo -s [21:58] monokrome: and then run the command on npmjs.org like jesus said [21:58] monokrome: and it'll upgrade itself [21:58] gbot2 has joined the channel [21:58] jakehow has joined the channel [21:58] monokrome: It'll also remove all of your globally installed packages, because it defaults to using ./node_modules now [21:58] spetrea: ok I'll try that thanks ! :) [21:59] mjijackson has joined the channel [22:00] pt_tr has joined the channel [22:00] v8bot has joined the channel [22:00] mjijackson: v8: "x-amz-date content-type".split(' ').filter(function (s) { (/^x-amz-/).test(s) }) [22:00] v8bot: mjijackson: [] [22:00] unomi has joined the channel [22:00] rhdoenges has joined the channel [22:00] cha0s has joined the channel [22:00] cha0s has joined the channel [22:01] mjijackson: v8: "x-amz-date content-type".split(' ').filter(function (s) { return (/^x-amz-/).test(s) }) [22:01] v8bot: mjijackson: ["x-amz-date"] [22:02] cccaldas has joined the channel [22:03] Aria has joined the channel [22:05] ceej has joined the channel [22:09] Corren has joined the channel [22:10] Xeon06_ has joined the channel [22:11] saschagehlich: is there a way to render a template to a string in express.js? [22:14] Xeon06_ has joined the channel [22:16] AAA_awright has joined the channel [22:16] b_erb1: is there already a leaky bucket implementation in node.js? searched a bit without success [22:17] stagas: saschagehlich: res.render('foo', function(string) { }) iirc [22:17] saschagehlich: yup just found out, thanks anyway stagas [22:17] corleone has joined the channel [22:17] retif has joined the channel [22:18] Tobbe has joined the channel [22:19] piscisaureus has joined the channel [22:19] Tobbe: What's the return value of emitter.addListener and emitter.on? [22:20] b_erb1: Tobbe: https://github.com/joyent/node/blob/master/lib/events.js [22:20] Detroiter: I wish someone would sell bottled armpit hair so I can prank my COBOL friends. [22:21] boaz has joined the channel [22:21] Tobbe: b_erb1: so it returns "this". Did it use to return "listener"? [22:21] FireFly has joined the channel [22:22] cha0s has joined the channel [22:22] cha0s has joined the channel [22:22] Fuu has joined the channel [22:25] tilgovi has joined the channel [22:25] tilgovi has joined the channel [22:26] boaz has joined the channel [22:27] JKarsrud: how would I pass template variables to a view if an error exists? [22:27] boogyman has left the channel [22:27] burg has joined the channel [22:28] JKarsrud: say I want to create a new user. I check if the two passwords provided match, and if they don't I want to pass in some variables to the view with an error message [22:30] JKarsrud: http://pastie.org/private/d3xzaflvbvhatsgsajqg [22:31] JKarsrud: it's just that, but then I get an "undefined, redirecting to localhost:3000/auth/signup" message in my browser [22:31] JKarsrud: no 500 [22:31] tuhoojabotti: hihih [22:31] heavysixer has joined the channel [22:31] JKarsrud: hihihi? [22:32] JKarsrud: if I'm totally off track here, please tell me :) [22:32] tuhoojabotti: I don't know. [22:34] vipaca has joined the channel [22:34] vipaca has joined the channel [22:34] JKarsrud: okay :) [22:35] daigo has joined the channel [22:37] devongovett has joined the channel [22:38] ccarella has joined the channel [22:39] syst3mw0rm has joined the channel [22:39] Mrfloyd has joined the channel [22:40] eyesUnclouded has joined the channel [22:40] ekryski has joined the channel [22:41] fille: how do i make normal get parameters in express.js [22:41] fille: ?q=hello [22:41] JKarsrud: like what? [22:42] fille: app.get("/search?q=hello",function() ... [22:42] BulletBob has joined the channel [22:42] fille: need to use normal get params [22:42] JKarsrud: hmm, they're in the req.body [22:42] JKarsrud: I think [22:42] JKarsrud: atleast for post [22:42] materialdesigner has joined the channel [22:43] JKarsrud: nah, req.query [22:43] JKarsrud: http://expressjs.com/guide.html#req.param() [22:43] JKarsrud: :) [22:43] fille: thansk [22:43] fille: like normal node.js http server [22:44] jimmyrcom has joined the channel [22:49] BulletBob_ has joined the channel [22:49] liar has joined the channel [22:51] zeade has joined the channel [22:54] random123: Anyone know why it would take 200ms to sent text/css but only 3ms for everything else? [22:56] JKarsrud: to send? [22:57] pgriess has left the channel [22:57] random123: yeJKarsrud I'll make a image to show easier [22:58] JKarsrud: sure [22:59] random123: JKarsrud: http://imageshack.us/photo/my-images/600/ss1pt.png/ [23:00] random123: er 1 sec [23:00] AvianFlu has joined the channel [23:00] Xeon06_ has joined the channel [23:00] JKarsrud: where does it say the time here? :) [23:01] random123: JKarsrud: http://imgur.com/FMz69 [23:01] dgathright has joined the channel [23:02] random123: The other image shows the headers [23:02] formasfunction has joined the channel [23:02] random123: They are identical to the js file [23:02] random123: except of course the request header mime type for text/css on the stylesheet [23:02] JKarsrud: yeah, but how big is the css file compared to the js? [23:02] random123: the css file is only about 20 characters [23:02] random123: very tiny [23:02] JKarsrud: yeah, and the JS is empty, amirite? [23:03] random123: Yes [23:03] jimmyrcom: with long polling, isn't it just dumping data to iframe. Wouldn't mobile devices run out of memory if it's really active sending a bunch of script tags? [23:03] random123: Why would 28B make it take 200ms longer though? [23:03] JKarsrud: yeah, then it's 3ms for the request, and then 200ms for the request + download of the contents, [23:03] random123: the text/html is 309B and is only 2ms [23:04] random123: I just tested and empty the file makes is 3ms [23:04] random123: However [23:04] JKarsrud: it shouldn't take that long, tho [23:04] formasfunction: I'm sending a SIGUSR1 signal to a node script and I'd like to exit a script into the debugger. Right now I'm getting this from via the terminal: Hit SIGUSR1 - starting debugger agent. debugger listening on port 5858. How would I go about immediately connecting to that port and debugging? [23:04] random123: The html file is like 10x bigger than the CSS file and takes only 3ms too [23:04] random123: in bytes [23:05] yoav1 has joined the channel [23:07] JKarsrud: yeah, there is something weird there [23:07] ryanj has joined the channel [23:07] random123: When I empty the CSS file it goes 3ms as well [23:07] random123: Also [23:08] random123: when I add "//" to the JS file, it goes up to 200ms as well [23:08] muk_mb has joined the channel [23:08] JKarsrud: I wouldn't worry much about it tho, 200ms for a site to load isn't very big [23:08] muk_mb: does anyone want to be code-review buddies? [23:08] JKarsrud: then I guess it's just something the web inspector does [23:09] random123: I need to get it down to 3ms as well [23:09] random123: Atleast 20ms or less [23:09] random123: If I write the CSS and JS inline then it doesn't happen [23:10] random123: It is noticably faster [23:10] jesusabdullah: Why so fast? [23:11] random123: 200ms vs 10ms [23:11] random123: Its a huge performance gain [23:11] random123: Better user experience [23:11] ceej has joined the channel [23:12] JKarsrud: well, honestly [23:12] jesusabdullah: 200ms is two tenths of a second [23:12] jesusabdullah: I will not notice two tenths of a second, unless there are at least five of them [23:12] jesusabdullah: At least, this is my feeling on the matter [23:12] JKarsrud: I wouldn't care much about it, I doubt it if it really matters [23:14] burg: how can i copy a clone of an object, and not its reference? [23:14] Aria: How far is this being sent, random123? [23:15] random123: Aria: The same computer in this case [23:15] bnoordhuis: burg: http://stackoverflow.com/questions/728360/copying-an-object-in-javascript <- it's surprisingly tricky [23:15] random123: Aria: On my VPS its 10ms to send 309B of text/html, vs 1-2ms on same computer [23:16] jesusabdullah: Is there a simple way to get the "union" of two objects: ie, U({'a': 1, 'b': 2}, {'c': 3}) -> {'a': 1, 'b': 2, 'c': 3} ? [23:16] jesusabdullah: like, some function or something? [23:16] jesusabdullah: If not, or if you need "trickery" then I'm good [23:16] Wizek_ has joined the channel [23:17] vipaca has joined the channel [23:17] vipaca has joined the channel [23:18] Wizek-other has joined the channel [23:19] b_erb1 has left the channel [23:20] Xeon06_ has joined the channel [23:20] burg: i actually have this code: http://codepad.org/0Ae5SSyk , and until updateDatabaseTotals(tweets) finish execution, tweets object is already being reseted. is any other way i can fix that, if not cloning? [23:20] bnoordhuis: jesusabdullah: how would you handle duplicate keys with different values? [23:20] willwhite has joined the channel [23:20] jesusabdullah: bnoordhuis: Good question! In this case I don't expect duplicate keys, so if there are any they can overwrite [23:21] jesusabdullah: I'd imagine I could do some Object.keys(obj1).forEach business pretty easy [23:21] sandstrom has joined the channel [23:21] sandstrom has joined the channel [23:21] jesusabdullah: Or, rock the bad code styles and use with [23:21] jesusabdullah: whatever. [23:22] bnoordhuis: jesusabdullah: there isn't a native function [23:23] bnoordhuis: jesusabdullah: copy key/values from a into temp object t, then remove all keys that don't exist in b [23:23] bnoordhuis: jesusabdullah: not very efficient but well [23:24] bnoordhuis: oh wait, union - not intersect [23:24] sandstrom has joined the channel [23:24] sandstrom has joined the channel [23:24] SubStack: jesusabdullah: require('hashish').merge({ a : 1, b : 2 }, { c : 3 }) [23:24] jesusabdullah: oho [23:24] jesusabdullah: Yeah, that'd do it [23:25] SubStack: or .update() if you want to modify in-place [23:25] jesusabdullah: idk why I never bother to just see if hash has it [23:25] jesusabdullah: it's kind of the obvious thing to do [23:25] hybsch has left the channel [23:25] SubStack: underscore and jquery have functions that do this too [23:25] SubStack: I think they call it .extend() [23:26] Corren has joined the channel [23:26] jesusabdullah: hashish.merge will do nicely [23:27] jesusabdullah: I'm trying to avoid underscore since it's a bit too kitchen-sink-y for my tastes [23:28] Xeon06_ has joined the channel [23:28] dguttman has joined the channel [23:32] Xeon06_ has joined the channel [23:32] Lightdork has joined the channel [23:35] ccarella has joined the channel [23:36] andrewfff has joined the channel [23:40] Xeon06_ has joined the channel [23:41] vbn has joined the channel [23:45] Melkor__ has joined the channel [23:46] Mrfloyd has joined the channel [23:47] Mrfloyd has joined the channel [23:47] TooTallNate has joined the channel [23:48] random123: Can anyone explain why my external CSS and JS files are loading so slow? Here is a screenshot http://imgur.com/KsRrZ ... Why would a 100kB image transfer is 2ms, but the other files that much much smaller take 200ms? [23:49] Swizec: anyone here using the forms module? [23:49] jimmyrcom: random123, your cat is cached [23:49] jakehow has joined the channel [23:50] Xeon06_ has joined the channel [23:50] random123: jimmyrcom, I checked and I tried without it cached [23:50] random123: Same result [23:50] random123: Its not that [23:50] jimmyrcom: modify page so it's cat.jpg?blah [23:51] jimmyrcom: and refresh with timed [23:51] jimmyrcom: you're not going to get 2ms latency on a remote server [23:51] random123: It is not a remote server [23:51] random123: It's on my local network [23:52] random123: The 2ms is accurate [23:52] random123: The JS and CSS files are taking 200ms for some odd reason [23:52] random123: There is a problem [23:52] jimmyrcom: that's pretty slow for localhost...yeah [23:53] level09 has joined the channel [23:53] slajax1 has joined the channel [23:53] random123: For some reason this is only affecting external CSS and JS files, and its taking 200ms to retreive them [23:53] kmwallio has joined the channel [23:54] cccaldas has joined the channel [23:54] jimmyrcom: try requesting directly from 127.0.0.1 [23:55] random123: I did http://192.168.1.142/ and got the same result [23:56] smtlaissezfaire has joined the channel [23:57] random123: You can see in Firebug or Chrome [23:57] random123: http://98.236.193.36/ [23:57] random123: On network [23:57] random123: tab [23:58] JKarsrud: anyone got any ideas on how to make an id field with mongoose that is not objectID ?