[00:00] rootslab: nuck, if you want take a look [00:00] rootslab: to formaline [00:00] rootslab: module [00:00] Nuck: rootslab: I might, but I'm trying to keep away from most implementations [00:00] Nuck: I want to keep an open mind :P [00:00] Drakonite has joined the channel [00:00] Nuck: I get a Stream to my 'part' event, so I can just part.pipe(file) [00:00] Nuck: And boom, now there's a file :D [00:00] addisonj__ has joined the channel [00:01] Nuck: tjholowaychuk: Do you know if Formidable buffers at all? [00:01] tjholowaychuk: they all do to some degree, you have to [00:01] Sorella has joined the channel [00:01] tjholowaychuk: that doesn't mean it's slow [00:01] Nuck: I won't be. [00:01] cconstantine has joined the channel [00:01] tjholowaychuk: in fact the opposite [00:02] Nuck: Really? [00:02] Nuck: Why would you say that? [00:02] rootslab: anyway, If I have stopped your discussion , Sorry ;) [00:02] tjholowaychuk: finish up yours, then benchmark it vs formidable and you'll see [00:02] Nuck: I'm buffering headers, but I want to avoid holding back chunks [00:02] wadey has joined the channel [00:02] Nuck: Eh, I'm gonna be optimizing to the level of Formidable once I'm done, probably. [00:03] cconstantine: I have an object (created like 'var foo = {}') and I want to test of a named property exists. I'm doing 'if (foo[propName])' now, but that is giving me a false negative when the property was set to null or 0. Is there a better way? [00:03] tjholowaychuk: for sure, it'll be a good experience regardless, im not saying you should stop and use formidable [00:03] Nuck: well, I can store metadata in the other form parts, so it'll be useful as hell for us [00:03] Nuck: I'm just worried that I'll make shit sub-optimal :P [00:04] jesster7 has left the channel [00:05] Nuck: Actually, I'm optimizing in different ways than Formidable, but I'm still writing pretty optimal code... [00:06] softdrink: is there an elseif in make? [00:06] Nuck: hmmm, just had an idea >_> [00:07] Nuck: I wonder if I could do header parsing as a wrapper around the splitter [00:07] jtsnow has joined the channel [00:07] Nuck: I'll hafta think more about this later [00:07] qbert_: hmm , starting a new project, should I support IE ? I want to not, just so eventually no one will use it and I dont have to deal with its crap, on the other hand ... [00:08] jga023 has joined the channel [00:10] asteig: qbert_: Totally depends on your audience. 70% of the visitors to the site I work for use IE, for instance. [00:10] qbert_: this would be a tool strictly for programmers [00:10] qbert_: well, and there managers :/ [00:10] asteig: D: Managers?! [00:10] asteig: Hmm.... tough one. [00:11] asteig: Is it internal?! [00:11] qbert_: yeah, if we don't find back though, IE will just continue to make all of our lives miserable [00:11] davidbanham has joined the channel [00:11] asteig: If it's internal, I say drop IE support. [00:11] shanebo: hey guys, fs.readdirSync() says it excludes filenames with '.' and '..', but it actually doesn't [00:12] asteig has left the channel [00:12] shanebo: http://nodejs.org/docs/v0.4.11/api/fs.html#fs.readdirSync [00:14] mrryanjohnston has joined the channel [00:14] rootslab has joined the channel [00:16] chjj: shanebo: it says it excludes '.' and '..' [00:16] chjj: shanebo: which it does [00:16] Corren has joined the channel [00:16] shanebo: right so they shouldn't be returned right? [00:16] chjj: right [00:16] chjj: and they arent [00:17] chjj: its like ls [00:17] shanebo: well it's returning a hidden file in my directory [00:17] chjj: if you do ls -a you get '.' and '..' [00:17] chjj: no [00:17] qbert_: . != 'a hidden file' [00:17] schwab has joined the channel [00:17] postwait has joined the channel [00:17] chjj: when it says '.' and '..' it literally means the cur dir and parent dir [00:17] shanebo: I'm getting a '.DS_Store' returned [00:17] chjj: shanebo: read what i said above [00:17] shanebo: ahhh [00:18] chjj: youll have to exclude .DS_Store yourself [00:18] shanebo: k thanks [00:19] trentm has joined the channel [00:20] collypops has joined the channel [00:20] collypops: hey [00:20] Nexxy: my suggestion would be to whitelist rather than blacklist when it comes to reading from files [00:20] collypops: does anyone here have any experience with both jade and haml? [00:21] collypops: I'm wondering if it's possible to have multiple 'yield' points in a jade layout [00:21] AvianFlu: I once saw a jade bust of mark hammill - does that count? [00:21] Nexxy: LOL [00:21] collypops: (ones that, if unresolved, wouldn't break) [00:21] collypops: haha [00:21] collypops: nice :p [00:21] killfill: is there a small event emitter avaiable for the browser?.. i think im used to event emitter in node.js, and want to use it on the client side.. :P [00:22] tjholowaychuk: killfill EE2 by the nodejitsu guys [00:22] tjholowaychuk: i dont think they have a "light" version that is just the node one [00:22] tjholowaychuk: but it's pretty small anyway [00:22] [[zz]] has joined the channel [00:22] marcello3d has joined the channel [00:22] chjj: AvianFlu: that mark hammel thing was epic [00:23] killfill: oh i wasnthinking somethig 'micro', but ill check it out, thanks. [00:23] collypops: killfill, would jQuery's event bind/trigger functions help? [00:23] chapel: backbone has an event system [00:24] killfill: aah backbone [00:24] MrNko has joined the channel [00:24] killfill: sounds to be the smallest.. :) [00:24] tjholowaychuk: pff [00:24] chapel: lol [00:24] chapel: ee2 is pretty small [00:24] chapel: its been used in the browser [00:24] tjholowaychuk: if you only care about the node features it can be tiny [00:24] chapel: you can even use nodes ee [00:25] chjj: you could actually implement a node-like EE in a few lines [00:25] killfill: yah, true. [00:25] wookiehangover has joined the channel [00:25] collypops: ah, I forgot Backbone had events [00:26] vicapow has joined the channel [00:28] killfill: ah i confused backbone with underscore.. :P [00:29] bradleymeck has joined the channel [00:30] willwhite has joined the channel [00:32] pifantastic_ has joined the channel [00:33] mcluskydodallas has joined the channel [00:33] ironlad has joined the channel [00:35] torsd has joined the channel [00:36] JaKWaC has joined the channel [00:37] mykul has joined the channel [00:42] Destos has joined the channel [00:42] jeffContext: noob stream question... I'd like to chain together my own custom streams. The source is an http request that is gzipped. Then I'd like to muck with it before writing it out. httpClientRequest PUMP -> unzip -> myTransform1 -> myTransform2 -> file [00:42] jeffContext: I'm confused about a few things. Do I use a pipe to go from unzip to my first transform? Do I write my trnasforms as WriteableStreams? Do I chain them together with util.pump? [00:43] _bat has joined the channel [00:43] jakehow has joined the channel [00:43] jakehow__ has joined the channel [00:43] jakehow_ has joined the channel [00:46] k1ttty has joined the channel [00:46] tonymilne has joined the channel [00:47] jacobolus has joined the channel [00:47] jeffContext: or perhaps someone can point me to an example? [00:49] balaa has joined the channel [00:49] devaholic has joined the channel [00:50] dimroc has joined the channel [00:50] CIA-69: libuv: 03Bert Belder 07prefork * r48f827f 10/ (src/win/core.c src/win/req.c): Ugly hack to avoid loop starvation - http://git.io/c81L-A [00:50] CIA-69: libuv: 03Bert Belder 07prefork * rb087c21 10/ (5 files in 3 dirs): Define uv_object_t, a base class for handles and requests - http://git.io/SFg9eQ [00:50] CIA-69: libuv: 03Bert Belder 07prefork * rb5d51a3 10/ (6 files in 3 dirs): Prefork server experiment - http://git.io/REcP7w [00:51] progme has joined the channel [00:52] tk has joined the channel [00:53] mcluskydodallas has joined the channel [00:54] cjm has joined the channel [00:55] brianseeders has joined the channel [00:56] elijah|home has joined the channel [00:57] Druid_ has joined the channel [01:00] BillyBreen has joined the channel [01:01] bartt1 has joined the channel [01:02] bartt has joined the channel [01:02] saikat has joined the channel [01:05] mcluskydodallas has joined the channel [01:06] DrMcKay: I declare #1580 the longest GH issue ever. [01:06] DrMcKay: (and yes, it's about the colon) [01:07] bnoordhuis: DrMcKay: you should see the ee2 pull request [01:07] zackattack has joined the channel [01:08] DrMcKay: bnoordhuis: which one? [01:08] DrMcKay: bnoordhuis: EventEmitter2? I don't see any long issue [01:09] bnoordhuis: DrMcKay: https://github.com/joyent/node/pull/1436 [01:09] TooTallNate: DrMcKay: it was about adding namespaces to eventemitter I think [01:09] AvianFlu: EE2 FTW [01:09] TooTallNate: DrMcKay: there was another long one though at roughly the same time, about adding a "global" listener to EE [01:10] ajsie has joined the channel [01:10] DrMcKay: yeah, but this discussion at least seems a bit constructive [01:10] ji0n has joined the channel [01:10] smtlaissezfaire has joined the channel [01:11] jamescarr has joined the channel [01:11] jamescarr: TJ! [01:11] DrMcKay: oh, is there gonna be a fight? [01:12] deoxxa has joined the channel [01:12] jamescarr: tjholowaychuk, any idea why a jade partial would render and escape the < and >? [01:12] tjholowaychuk: jamescarr != [01:12] tjholowaychuk: = escapes [01:12] jamescarr: doh! [01:12] jamescarr: thank you! [01:12] jamescarr: had to use ejs for a project for awhile [01:12] jamescarr: I forgot the jade syntax :( [01:12] tjholowaychuk: != is ugly so it stands out [01:12] tjholowaychuk: as a potential security flaw [01:12] tjholowaychuk: haha [01:13] deoxxa: not getting a whole lot of love in #socket.io, so i was wondering if anyone here has had issues with socket.io-client - namely a complete failure to operate correctly [01:13] deoxxa: i have a simple test case here: https://gist.github.com/bb21537e3e17ce0f0e42 [01:14] enhydra has joined the channel [01:14] deoxxa: after anywhere from 15-30 seconds of operation, it will time out and crash without ever establishing a connection [01:14] BillyBreen has joined the channel [01:14] boogyman has joined the channel [01:15] maushu has joined the channel [01:15] __sorin__ has joined the channel [01:16] neoesque has joined the channel [01:16] vicapow_ has joined the channel [01:17] jvdev has joined the channel [01:17] mykul has joined the channel [01:17] mbthomas has joined the channel [01:18] Drakonite has joined the channel [01:18] boehm has joined the channel [01:19] jerrysv has joined the channel [01:21] patrickgamer has joined the channel [01:22] patrickgamer has left the channel [01:22] apanda has joined the channel [01:23] eyesUnclouded has joined the channel [01:24] Renegade001 has joined the channel [01:24] CrisO has joined the channel [01:26] mikeal has joined the channel [01:28] paulrod has joined the channel [01:28] massivebiz has joined the channel [01:29] enhydra has joined the channel [01:29] enhydra has joined the channel [01:32] JakeyChan has joined the channel [01:33] toki_kanno has joined the channel [01:34] pifantastic_ has joined the channel [01:34] H4ns`` has joined the channel [01:34] meandi2 has joined the channel [01:36] AvianFlu_ has joined the channel [01:37] abraxas has joined the channel [01:38] abraxas has joined the channel [01:39] jamescarr: argh [01:39] jamescarr: » expected [ 'BlueFuzion', 'Keynote' ], [01:39] jamescarr: got [ 'BlueFuzion', 'Keynote' ] (deepEqual) [01:39] bwinton has joined the channel [01:40] vipaca has joined the channel [01:40] vipaca has joined the channel [01:41] paveq3 has joined the channel [01:41] jgornick has joined the channel [01:41] arg0s has joined the channel [01:42] mjr_ has joined the channel [01:43] d0k has joined the channel [01:43] MrNko has joined the channel [01:43] CIA-69: libuv: 03Bert Belder 07prefork * rcfc5182 10/ (7 files in 3 dirs): Prefork server experiment - http://git.io/b2eZ2g [01:45] shipit_ has joined the channel [01:48] jetienne has joined the channel [01:49] willwhite has joined the channel [01:50] Archio has joined the channel [01:51] tbranyen: visionmedia started following joehewitt 3 minutes ago [01:51] tbranyen: i wonder if this is like when bill murray meets jim carrey [01:51] tjholowaychuk: ahahahaha [01:51] tbranyen: :-p [01:52] jamescarr: sweet [01:52] jamescarr: I just scored some Riak stuff for my next usergroup meetup [01:53] vicapow___ has joined the channel [01:55] chrislorenz has joined the channel [01:56] a_suenami has joined the channel [01:56] wmage has joined the channel [01:57] _sorensen_ has joined the channel [01:57] jamescarr: this is better: https://gist.github.com/1179958 [01:57] jamescarr: can anyone figure out why my eyes deceive me? [01:57] jamescarr: wtf am I missing!? [01:58] jamescarr: assert.deepEqual(lead.application.companies, ['BlueFuzion', 'Keynote']) [01:58] wmage: when I copy-paste, works for me jamescarr [01:58] wmage: are you using nodeunit? [01:58] jamescarr: vows [01:59] tjholowaychuk: meows [01:59] wmage: oh wow, that looks cool [01:59] tjholowaychuk: right meows [01:59] wmage: and you're telling me now when I wrote about 500 lines using node unit? [01:59] willwhite has joined the channel [02:00] jamescarr: wmage, dude, no one uses node unit [02:00] jamescarr: except maybe some old java developer from 1999 :-P [02:00] jamescarr: wmage, I find either expresso or vows to be pretty top notch [02:00] tjholowaychuk: i like nodeunit better than vows [02:01] wmage: but *why* I didn't know about these before :-// [02:01] mrkurt_: I like nodeunit [02:01] wmage: is there some kind of "top node tools" page? [02:01] marcello3d: http://eirikb.github.com/nipster/ [02:01] chjj: wmage: yeah, its called TJ's github page [02:01] jamescarr: chlol [02:01] marcello3d: I find vows to be a bit overengineered [02:01] jamescarr: chjj, lol [02:01] jamescarr: chjj, pretty much [02:02] wmage: oh this stuff is cool [02:02] tjholowaychuk: marcello3d yeah me too [02:02] tjholowaychuk: test frameworks should be uber basic [02:02] marcello3d: I'm using it on mongolian db but I'm probably going to move away from it because it makes writing tests a pain in the ass [02:02] marcello3d: tjholowaychuk: yea, and they should resemble real app code [02:03] marcello3d: anything come out of node knockout worth looking at? [02:03] chjj: i kind of liked that guy who ported x api to node [02:03] marcello3d: oh sweet, I just passed 100 watchers on mongolian :D [02:03] wmage: marcello3d: what do you meen pain? [02:04] jamescarr: fuck I give up [02:04] jamescarr: there's no way those two arrays are not equal [02:04] jamescarr: silly shit [02:04] tjholowaychuk: jamescarr oh yeah i said i would give you access to that repo [02:04] marcello3d: wmage: you just have to think about your code differently, I don't think it translates well to real world code [02:04] kurtzhong_ has joined the channel [02:04] tjholowaychuk: i should probably add some tests first [02:06] xerox has joined the channel [02:06] vipaca: This is a noob question, but I need to write data to a stream and wait for a response, but I don't see how I can tie a read to s write. [02:08] xerox: callbacks [02:09] g2825 has joined the channel [02:09] nerdy_ has joined the channel [02:09] eyesUnclouded has joined the channel [02:10] jro_ has joined the channel [02:10] jro_: hi all [02:10] tbranyen: who dat [02:10] tbranyen: who dere [02:10] vipaca: This is a noob question, but I need to write data to a stream and wait for a response, but I don't see how I can tie a read to s write. [02:11] vipaca: hi [02:12] jga023 has joined the channel [02:13] ckknight has joined the channel [02:16] balaa has joined the channel [02:17] hasenj has joined the channel [02:18] g2826 has joined the channel [02:19] g2827 has joined the channel [02:20] nibblebot has joined the channel [02:21] g2826: hi [02:21] jheusala: hi [02:22] g2828 has joined the channel [02:22] g2828: hey :) [02:22] paveq: :P [02:23] paveq: testing [02:23] g2829 has joined the channel [02:23] eee_c has joined the channel [02:26] AAA_awright has joined the channel [02:26] vipaca: bleh [02:27] parshap has joined the channel [02:28] dgathright has joined the channel [02:28] toki_kanno has joined the channel [02:28] igl has joined the channel [02:29] blup has joined the channel [02:29] g2830 has joined the channel [02:31] alts has joined the channel [02:31] z6Dabrata has joined the channel [02:36] trentm has joined the channel [02:39] g2831 has joined the channel [02:39] marksoper has joined the channel [02:42] Gojohnnyboi has joined the channel [02:42] progme has joined the channel [02:43] newy has joined the channel [02:43] prettyrobots has joined the channel [02:43] scas has joined the channel [02:44] g2832 has joined the channel [02:44] g2833 has joined the channel [02:45] robotarmy has joined the channel [02:47] bradleymeck has joined the channel [02:48] ekryski has joined the channel [02:49] zackattack has joined the channel [02:50] g2834 has joined the channel [02:51] neoesque has joined the channel [02:51] g2835 has joined the channel [02:52] sstreza has joined the channel [02:52] ronnieboy has joined the channel [02:54] Acolyte has joined the channel [02:54] Acolyte: what is the IRC channel for google data? [02:56] Archio: Acolyte: Try ##google-apis [02:56] Archio: http://groups.google.com/group/google-help-dataapi/browse_thread/thread/d66fc7122c317d5f [02:56] jerrysv: ok, this is cool: http://flite-labs.no.de/ [02:57] hasenj has joined the channel [02:57] z6Dabrata has joined the channel [02:57] Acolyte: Archio: nobody is there, found it before [02:58] Archio: Acolyte: Hmm... there might not be a big IRC community on something that specific, maybe try posting your question on StackOverflow? [02:58] Archio: jerrysv: Cool, did you make it? [02:58] g2835: a [02:58] jerrysv: archio: no, it was from node-knockout [02:58] g2836 has joined the channel [02:59] jerrysv: ryah: yt? [02:59] jerrysv: or isaacs? [03:00] jchris has joined the channel [03:00] ryah: jerrysv: yes [03:00] jerrysv: ryah: just wondering about the kapsi.fi ban, but the random joins and junk messages from g[0-9]{4} [03:01] jerrysv: nothing important [03:01] g2837 has joined the channel [03:02] bartt has joined the channel [03:03] g2838 has joined the channel [03:03] Archio has left the channel [03:04] dexter_e has joined the channel [03:05] g2839 has joined the channel [03:05] g2839: yes [03:05] g2839: yes [03:05] g2839: m [03:05] g2839: mkmk [03:06] softdrink has joined the channel [03:06] g2840 has joined the channel [03:06] collypops has joined the channel [03:07] ryah: jerrysv: *shrug* i dont care really [03:07] ryah: i thought someone was spamming the channel originally [03:07] jerrysv: yeah, wasn't sure what was going on [03:08] ryah: it would be nice if the operator could make it a bit mroe clear [03:08] ryah: make them choose nicknames [03:08] jerrysv: was it an nko entry? [03:08] ryah: jheusala--^ [03:08] ryah: yes [03:08] AvianFlu: or at least say coolSiteUser4 [03:08] jerrysv: aha, ok. haven't made it that far in my judging [03:08] jerrysv: thx [03:09] abjorn: http://hostchopper.com/ [03:12] g2841 has joined the channel [03:12] paveq: ryah: http://nko-oulu.kapsi.fi/ [03:12] paveq: ryah: it should work now [03:13] paveq: ryah: wait for green backend, and refresh the page [03:13] paveq: sadly there is this bug :| [03:13] g2842 has joined the channel [03:13] paveq: one cool feature is image preview [03:13] abjorn: What's with corporations and using perl :( [03:13] abjorn: especially hosting companies :( [03:14] g2843 has joined the channel [03:14] tuhoojabotti: paveq: it takes a long time. :P [03:14] paveq: if I paste img url here, it should show nice preview: http://pics.kuvaton.com/kuvei/traffic_light_street_art.jpg [03:14] kenperkins has joined the channel [03:15] paveq: tuhoojabotti: yep.. we ran into freenode trust limit [03:15] tuhoojabotti: :D [03:15] MrNko has joined the channel [03:15] paveq: in hindsight, we should have deployed our own ircd [03:15] trentm has joined the channel [03:15] tuhoojabotti: oulu-irc [03:16] g2844 has joined the channel [03:16] paveq: sessions are (should be) persistent :) [03:16] tuhoojabotti: cookie-persistent [03:16] paveq: we will keep developing it after knockout [03:16] kriszyp has joined the channel [03:16] g2845 has joined the channel [03:16] tuhoojabotti: I ate the cookie [03:16] paveq: tuhoojabotti: well.. login and password wouldn't have been good idea for KO I think [03:17] paveq: I just hate having to register and log in [03:17] tuhoojabotti: true. [03:17] tuhoojabotti: It's not turning green. :/ [03:17] g2846 has joined the channel [03:18] paveq3 has joined the channel [03:19] paveq: test [03:19] paveq: it should work [03:19] paveq: works fine for me :/ [03:19] MavJS: it works! :D [03:20] g2847 has joined the channel [03:20] paveq: the backend is quite complex and prone to too many problems [03:21] paveq: it inserts user to couch database, and then there is this ldapjs-thingy serving it to libnss-ldap and pam [03:21] paveq: then it runs something like this: [03:21] paveq: Aug 29 23:17:43 li298-178 logger: Running /etc/create-user.sh g2846 UMX8dPqMbAlDR4NT75Eza6gW2D5qGXCu as root [03:22] sharkbird has joined the channel [03:22] paveq: and starts icecapdjs & icecapd processes for the user :D [03:22] deoxxa: time to go register as "x; adduser 0wned; adduser 0wned sudo;" [03:22] vipaca has joined the channel [03:23] tbranyen: did you hear that everyone tjholowaychuk doesn't care about unstable people [03:23] tjholowaychuk: haha [03:23] tbranyen: also you appear in far too many of my feeds [03:24] incredimike has joined the channel [03:24] ryanfitz has joined the channel [03:24] paveq: http://xkcd.com/327/ [03:24] paveq: like this? :p [03:24] tjholowaychuk: my plan of having less people to respond to by locking the node version [03:24] tjholowaychuk: failed so bad [03:24] tuhoojabotti: paveq: It runs as sudo on kapsi? [03:24] incredimike: what's an appropriate module/way to get an md5sum for a file? [03:24] tbranyen: lool [03:24] tuhoojabotti: :O [03:24] tbranyen: but srsly why are so many people using the unstable version [03:24] paveq: tuhoojabotti: no :p [03:24] tbranyen: i had to yell at peeps at work [03:24] incredimike: a potentially very large file [03:24] tuhoojabotti: That's what I thought. [03:24] tbranyen: gtfo off 0.5 for production shit [03:24] paveq: tuhoojabotti: its linode virtual machine [03:25] tjholowaychuk: tbranyen a lot of people dont know odds are unstable [03:25] tuhoojabotti: Aye [03:25] tjholowaychuk: node doesn't really document it well [03:25] tbranyen: tjholowaychuk: fo sho [03:25] tuhoojabotti: tjholowaychuk: I reverted myself! [03:25] halfhalo: I use unstable purely for shits & giggles. [03:25] incredimike: TIL odds are unstable [03:25] tbranyen: woah windows .exe [03:25] tbranyen: time to make asp.node [03:25] tjholowaychuk: i totally think npm should have a --force flag or similar though [03:25] tjholowaychuk: i dont see why not [03:25] paveq: tuhoojabotti: though our coding event was sponsored by kapsi [03:25] tbranyen: i use -f everywhere tbqh [03:25] tuhoojabotti: I know [03:25] tbranyen: pacman, git, women... wait what [03:25] paveq: perhaps we will see one version of this on kapsi website soon [03:26] tbranyen: that was sexist and uncalled for [03:26] tuhoojabotti: paveq: First, make it work. :D [03:26] incredimike: sexism is as close as I get [03:26] paveq: it does work.. well sort of! :P [03:26] mbthomas has joined the channel [03:26] tuhoojabotti: Then why can't I irc? ;__; [03:26] mykul has joined the channel [03:27] paveq: dunno [03:27] paveq: user error! [03:27] tuhoojabotti: Never! [03:27] incredimike: pebkac [03:27] paveq: :D [03:27] paveq: tuhoojabotti: did you reload the page? [03:27] abjorn: https://twitter.com/#!/hostchopper/status/104276902763700224 [03:27] tuhoojabotti: paveq: It never turned green? [03:27] g2848 has joined the channel [03:27] paveq: tuhoojabotti: try changing the api key, and then reload [03:27] tonymilne has joined the channel [03:27] tuhoojabotti: I got it green once, then reloaded and nothing happened. :P [03:28] paveq: sadly starting the backend is one time event, if it fails to connect to the irc, it never turns green [03:28] tuhoojabotti: Well it turned green that time. [03:28] tuhoojabotti: And I still have that api key, when it did. [03:28] incredimike: suppose attempting to calculate a md5 hash for a 2GB file from within node a bad idea? [03:29] tuhoojabotti: But it just says "sending apikey" [03:29] rurufufuss has joined the channel [03:29] paveq: tuhoojabotti: oh, old api key probably won't work anymore [03:29] tuhoojabotti: I did it this morning. [03:29] paveq: because we have to kill some backends regularly to make more space [03:30] tuhoojabotti: Now it's red [03:30] incredimike: don't pick at it [03:30] tuhoojabotti: like every 5 mins or so? ;) [03:30] g2849 has joined the channel [03:32] tuhoojabotti: I want to vote for it, but I can't if it doesn't work at all. ;) [03:33] paveq: tuhoojabotti: just delete the cookies set by site :P [03:33] tuhoojabotti: I did that. [03:33] paveq: or change api key to invalid gibberish [03:33] tuhoojabotti: "Requesting api key..." [03:33] g2848: staring at an empty screen [03:33] g2850 has joined the channel [03:33] tuhoojabotti: got it at alst [03:33] tuhoojabotti: last* [03:33] tuhoojabotti: refreshed [03:33] tuhoojabotti: waiting... [03:34] tuhoojabotti: going to play flash games while waiting [03:34] dgathright has joined the channel [03:34] g2849: test [03:35] vidi has joined the channel [03:35] ditesh|cassini has joined the channel [03:35] g2850: lol [03:35] tuhoojabotti: yay [03:35] tuhoojabotti: that's my message :D [03:36] g2848: sigh, IRC is too slow for web [03:36] kurtzhong has joined the channel [03:37] kmiyashiro has joined the channel [03:38] g2851 has joined the channel [03:39] g2846: plop [03:39] tuhoojabotti: lol [03:39] g2852 has joined the channel [03:39] g2852: jjj [03:39] g2851: Test [03:40] tmzt_: success [03:40] Spion has joined the channel [03:40] schwab has joined the channel [03:42] CIA-69: libuv: 03Ryan Dahl 07master * r5d524ff 10/ (src/unix/fs.c test/test-fs.c): unix passes test fs_file_async - http://git.io/25FA3w [03:43] Sidnicious has joined the channel [03:43] Sidnicious has joined the channel [03:43] soapyillusions has joined the channel [03:43] g2853 has joined the channel [03:44] g2853: hmm [03:44] tuhoojabotti: hihi [03:46] g2853: lol [03:46] synkro has joined the channel [03:47] skm has joined the channel [03:49] wookiehangover has joined the channel [03:50] springmeyer has joined the channel [03:50] captain_morgan has joined the channel [03:50] CIA-69: libuv: 03Ryan Dahl 07master * rcf08c16 10/ test/test-fs.c : Use Windows compatibile flags - http://git.io/T46wlg [03:50] jtsnow has joined the channel [03:51] KellyM has joined the channel [03:53] mikeal has joined the channel [03:55] Peniar has joined the channel [03:55] eee_c has joined the channel [03:55] dgathright has joined the channel [03:56] jbrokc has joined the channel [03:58] temp01 has joined the channel [03:58] te-brian: just had node.js AHAH moment :) Was going some XML parsing on the client side with jquery ... decided to move it to the server side.... copy-paste-done! [03:59] mikeal has joined the channel [04:00] tuhoojabotti: xml parsing with jQuery o.O [04:00] tuhoojabotti: xml in the first place o.O [04:00] tuhoojabotti: json<3 [04:01] g2854 has joined the channel [04:01] smathy has joined the channel [04:01] Nuck: json forever [04:01] mikeal has joined the channel [04:01] luke` has joined the channel [04:04] ryanj has joined the channel [04:04] ekryski has joined the channel [04:04] sharkbird has joined the channel [04:05] shousper has joined the channel [04:06] Me1000 has joined the channel [04:06] g2855 has joined the channel [04:06] blup has joined the channel [04:06] g2856 has joined the channel [04:08] shanez has joined the channel [04:09] mikeal has joined the channel [04:09] dnyy has joined the channel [04:09] Malar has joined the channel [04:10] Qbix1 has joined the channel [04:10] g2857 has joined the channel [04:14] Renegade001 has joined the channel [04:14] g2858 has joined the channel [04:14] avalanche123 has joined the channel [04:14] mike5w3c has joined the channel [04:15] Nuck: God Pitchography is SO badass [04:15] AvianFlu has joined the channel [04:16] thepatr1ck: ACTION agrees [04:16] Twelve-60 has joined the channel [04:17] Emmanuel` has joined the channel [04:17] g2859 has joined the channel [04:17] tk has joined the channel [04:18] trotter has joined the channel [04:18] ekryski1 has joined the channel [04:18] fangel has joined the channel [04:19] Malar has joined the channel [04:20] ingenthr has joined the channel [04:21] avalanche123 has joined the channel [04:23] binaryjohn_ has joined the channel [04:23] ParadoxQuine has joined the channel [04:23] clu3 has joined the channel [04:23] sharkbird has joined the channel [04:23] clu3_ has joined the channel [04:23] jamescarr: anyone up for some quick html debugging? [04:24] avalanche123 has joined the channel [04:24] shanebo: jamescarr, I didn't know there was such a thing ;) [04:24] jamescarr: hehehehe [04:24] jamescarr: nvm... found my problem [04:26] shousper: that was quick [04:27] davidbanham has joined the channel [04:28] g2860 has joined the channel [04:29] davidbanham has joined the channel [04:30] MrNko has joined the channel [04:33] avalanche123 has joined the channel [04:34] davidbanham has joined the channel [04:35] gerard0 has joined the channel [04:37] sneakyne_ has joined the channel [04:37] bradleymeck has joined the channel [04:38] jacobolus has joined the channel [04:40] sneakyness has joined the channel [04:40] JaKWaC has joined the channel [04:41] g2861 has joined the channel [04:42] MrNko has joined the channel [04:45] jamescarr has joined the channel [04:45] zackattack has joined the channel [04:51] zackattack_ has joined the channel [04:55] g2862 has joined the channel [04:56] jacobolu_ has joined the channel [04:58] bbigras__ has joined the channel [05:01] g2863 has joined the channel [05:01] g2863: foo [05:03] jamescarr has joined the channel [05:04] mikeal has joined the channel [05:04] mikl has joined the channel [05:05] shanebo: hey guys is there a graceful way to throw 404s using Connect for static assets that have bad paths and such? [05:07] sebastianedwards has joined the channel [05:08] sebastianedwards has joined the channel [05:09] CIA-69: libuv: 03Ryan Dahl 07master * r0e81406 10/ (include/uv-unix.h src/unix/fs.c test/test-fs.c): unix fs_async_dir works - http://git.io/Jxow3g [05:10] sebastianedwards has joined the channel [05:10] kmiyashiro: shanebo: how is it ungraceful? [05:11] shanebo: I could be doing something wrong but it seems like when a static asset doesn't resolve I have to restart the server [05:12] lot49 has joined the channel [05:14] blup has joined the channel [05:15] reid has joined the channel [05:15] slifty has joined the channel [05:16] hekkwan has joined the channel [05:17] luke` has joined the channel [05:19] lot49 has joined the channel [05:19] Spion_ has joined the channel [05:20] Aphelion has joined the channel [05:20] Aphelion has joined the channel [05:20] socketio\test\90 has joined the channel [05:21] ag4ve has joined the channel [05:22] amerine has joined the channel [05:22] febits has joined the channel [05:22] sirstrumalot has joined the channel [05:22] sirstrumalot: hello! [05:22] te-brian has joined the channel [05:23] sirstrumalot: question from a new node user - anyone have a clue where the directory is that I would put my js files to test inside the bash an an RPM install on Mac OSX? [05:23] zackattack has joined the channel [05:24] dexter_e has joined the channel [05:25] dexter_e has joined the channel [05:29] Marak has joined the channel [05:31] binaryjohn_ has joined the channel [05:32] ptlo has joined the channel [05:32] blippedxd has joined the channel [05:33] newy has joined the channel [05:33] zomgbie has joined the channel [05:36] g2864 has joined the channel [05:37] smathy has joined the channel [05:39] paulwe has joined the channel [05:39] paulwe: could you turn up your stream to ballance the ads please? [05:40] blippedxd has joined the channel [05:40] botenza_ has joined the channel [05:42] ditesh|cassini has joined the channel [05:42] g2865 has joined the channel [05:42] te-brian2: tuhoojabotti: As soon as Yahoo makes their JSON not unusably bad, I will gladly switch :) [05:42] botenza: Can anyone suggest a good framework for static serving of jade, coffeescript, js etc.? [05:42] botenza: like middleman, or jekyll [05:43] xerox: what about express :x [05:44] saimon_ has joined the channel [05:45] botenza: say for a simple, static web site, i just want to test something simple. Express seems overkill for a one page website etc. [05:45] MUILTFN has joined the channel [05:45] xerox: apache? xD [05:46] saimon_ has joined the channel [05:47] botenza: :p[ [05:47] botenza: thx [05:48] xerox: oh actually [05:48] xerox: there is that thing [05:48] mikl has joined the channel [05:50] SamuraiJack has joined the channel [05:50] g2866 has joined the channel [05:51] g2866: sup children! [05:51] xerox: https://github.com/nodejitsu/http-server [05:52] blup has joined the channel [05:55] dexter_e: JSDOM anyone? How to get the whole document back out? [05:55] paulwe has joined the channel [05:57] botenza: thx [05:57] Marak: http-server is cool [05:57] Marak: i use it at least 5 times a day [05:57] Marak: >.< [05:57] paulwe has joined the channel [05:57] CIA-69: libuv: 03Ryan Dahl 07master * r1a4ead5 10/ (include/uv-unix.h include/uv.h src/unix/fs.c): unix: implement uv_queue_work - http://git.io/tsSlFQ [05:57] Marak: http-server can be used programmatically now [05:58] paniq has joined the channel [05:58] collypops has joined the channel [06:00] g2867 has joined the channel [06:02] lightcap has joined the channel [06:02] g2868 has joined the channel [06:02] cliffano has joined the channel [06:03] g2867: cccc [06:03] tonymilne has left the channel [06:04] amatuer has joined the channel [06:04] amatuer: anybody home? [06:06] stephank has joined the channel [06:07] g2869 has joined the channel [06:07] amatuer: wanna discuss abt an innovative apps using node.js [06:08] MrNko has joined the channel [06:08] dshaw_ has joined the channel [06:08] ironlad has joined the channel [06:08] shepazu has joined the channel [06:09] tk has joined the channel [06:10] framlin: not at home at work ;) [06:10] beginner has joined the channel [06:11] amatuer: oh! nice [06:11] dshaw_1 has joined the channel [06:11] amatuer: can u help me out [06:11] framlin: and using node.js is innovative by itself ... [06:11] framlin: ;) [06:11] framlin: maybe [06:11] amatuer: yeah! i kno [06:11] framlin: what is your question? [06:11] amatuer: but wanted some really new idea [06:11] DennisRasmussen has joined the channel [06:11] framlin: you need a new idea? [06:12] amatuer: yeah [06:12] beginner: hello [06:12] framlin: make native gui-bindings for all platfors you know [06:12] amatuer: have come up wiht something like real time reading [06:12] amatuer: n annotation [06:12] JumpMast3r has joined the channel [06:12] framlin: so that you can develop platform-independatn native apps with node.js [06:13] amatuer: nice [06:13] amatuer: so what apps [06:13] amatuer: like i have to do with node.js [06:13] amatuer: but needdd app idea!! [06:13] amatuer: :( [06:13] framlin: the apps ar not the main part. them first thing one need are that gui-bindings ;) [06:13] bnns has joined the channel [06:13] arg0s has joined the channel [06:14] framlin: ist a lib/framework-idea thats much mor and much more sustainable than just an app-idea [06:14] amatuer: oh i want to extend it to a yr long work! [06:14] amatuer: soemthing big!!!!! [06:15] framlin: oh, belive me, a framwork for native html5/css-nodejs-apps is a HUGE work ;) [06:15] framlin: something VERY BIG [06:15] amatuer: :O [06:15] amatuer: ok ok [06:16] framlin: or now as an app-idea I wanted to have a text-based-consel-html-client that understands JavaScript [06:16] amatuer: can i kno something more [06:16] beginner: ahi framlin actually wat is meant by a gui-bindings?? [06:16] Lorentz: node.js based window manager [06:16] Lorentz: / desktop environment [06:16] framlin: so you can run realtime-fancy-web-2.0-sites from console [06:17] framlin: beginner: gui-bindings is ofcourse not the right term. [06:17] amatuer: u mean we need to create a console app? [06:17] beginner: ok.. [06:18] framlin: I wanted to have something, that makes html5/CSS-based apps runing onn all OSs. Something like Mozillas XUL but with w3c-standards and nodejs [06:18] framlin: amatuer: nop,that is a second idea [06:18] g2870 has joined the channel [06:18] amatuer: oh this second idea sounds good [06:18] Acolyte has left the channel [06:19] g2870: pew [06:19] blup has joined the channel [06:19] g2871 has joined the channel [06:19] g2870: /join #test [06:19] amatuer: ok let me kno abt it in detail [06:19] avalanche123 has joined the channel [06:20] framlin: there are many people all over the world, that cannot see, so they have to use text-to-speech combined with e.g. lynx [06:20] amatuer: now is this third one? [06:20] amatuer: but u kno htere are so many plugins [06:20] mcepl_ has joined the channel [06:20] mcepl has joined the channel [06:20] amatuer: for text to speech [06:21] framlin: but the text-html-clients do mostly not understand js in a manner that enables them to run e.g. ajax-sites [06:21] dexter_e has joined the channel [06:21] abraxas_ has joined the channel [06:21] g2872 has joined the channel [06:21] framlin: bit with an node-client, one would be able to handle all this JS stuff and make more sites availabel without graphics [06:21] g2873 has joined the channel [06:22] amatuer: ok now stick to one thing [06:22] amatuer: n tell in detail abt it [06:22] framlin: text-to-speech is no problem, but the "rendering" of a web-site that uses all this new fancy "ajax-stuff" is not available [06:23] amatuer: u mean recommendation? [06:23] amatuer: we hcan have tags [06:23] amatuer: n then recommend [06:23] amatuer: based on their interests [06:24] amatuer: ?? [06:26] framlin: try to use try to use facebook or google-plus or something like that with lynx [06:26] mraleph has joined the channel [06:26] framlin: maybe you understand then, what I mean [06:26] amatuer: eyah [06:26] bnns: hi can anyone help me with installing node using cygwin? i'm getting an error [06:27] framlin: I mean a text/console-based browser that is able to handle all that JS-stuff that modern sites have built in [06:27] amatuer: so a new browser u mean? [06:27] bnns: something with cxx_link [06:27] amatuer: with all readability n text-voice [06:27] framlin: yepp, you got it [06:28] amatuer: so manyyyyy browsers are there [06:28] amatuer: do u think ppl switch to another one [06:28] framlin: but only with Text-IO so you can control it via voice because there are a lot of text-speech-text - plugins around [06:28] amatuer: instead they would liek to use the existing browser with new plugings [06:29] framlin: but peaploe who cannot see or are on a internetconnections without grafic available have no chance to visit modern sites [06:29] lot49 has joined the channel [06:29] amatuer: so u are supporting my point! [06:29] amatuer: :) [06:29] framlin: THEY woul use a new full-web2.0-aware-text-browser [06:30] robotarmy has joined the channel [06:30] amatuer: so u wanna tell that .. new browser with html5 and othr things [06:30] amatuer: ? [06:30] amatuer: u think the existign browser wont do all that!! [06:30] amatuer: crome n firefox man!! [06:31] framlin: but if you cannot use chrome, because you have an ssh connection without X, you cannot use chromes-fancy-plugins [06:31] framlin: u cannot use firefoy to [06:32] Croms has joined the channel [06:32] amatuer: cant we create a plugin with all this [06:32] amatuer: so it can support existing browser [06:32] framlin: and if you cannot see anything because you are blind, new mozilla-pluggins wouldnt helb you too [06:32] Renegade001 has joined the channel [06:32] amatuer: so basically web browser for blind!1 [06:33] framlin: ok, that were two very very good ideas, I do not have more ;) [06:33] framlin: amatuer: YEPP [06:33] simenbrekken has joined the channel [06:34] framlin: but thats not only good for blind peaople, there are a lot of circumstances, where you have to use terminals without grafic .... [06:34] amatuer: i need to have a time line for my work too [06:34] amatuer: hmm i guess this will work [06:34] amatuer: but can i kno more moer abt it!! [06:35] beginner has joined the channel [06:35] Nuck has joined the channel [06:35] Nuck: Hullo again [06:36] amatuer: what do u think the existing browser fro visually impaired is lacking [06:36] stalled has joined the channel [06:37] framlin: I think a first step would be to "render" all possible sites. Lets say with not-realtime-javascript until 31.12.2011 [06:37] framlin: amatuer: first thin is, you have tor "serialize" all the things you have to show [06:37] amatuer: yeah thats what i wanted [06:37] amatuer: go on [06:38] framlin: you have onle "one dimension" if you read a text [06:38] amatuer: yeah got it [06:38] Nuck: ACTION has "another dimension" pop info his head [06:38] framlin: so if you are able to interpret all that 2-dimension-layout into a one-serialized-layout you hav a first step to your first milestone [06:39] framlin: lets say until november ;) [06:39] amatuer: woah! [06:39] dmkbot: *add 'subprocess' alias to 'child_process' ?* reported by ry: https://github.com/joyent/node/issues/1549 [06:40] framlin: then you need the possibility to handle "ajax-exeptions" that is, that at any time there may be new stuff that should be spoken out [06:40] hekkwan has joined the channel [06:40] g2876 has joined the channel [06:40] g2877 has joined the channel [06:40] g2874 has joined the channel [06:40] amatuer: GOd!! [06:40] amatuer: wait [06:40] deoxxa: go go gadget partspam [06:40] deoxxa: gg @ whoever runs those bots [06:41] framlin: and it must have full ARIA support: http://www.w3.org/WAI/intro/aria [06:41] beginner: framlin: actually wats this 2-dimension layout?? [06:41] framlin: you wanted an idea for a HUGE projet ... that it ;) [06:41] boltR has joined the channel [06:41] amatuer: yeah!! [06:41] Nuck: deoxxa: Not bots, an NKO client [06:42] framlin: beginner: on a grafical screen you have 2-dimensions [06:42] amatuer: like 10 months project [06:42] framlin: the lyout is two-dimensional [06:42] Marak: dont make me bring in the real bots [06:42] Marak: go use a test room [06:42] framlin: if you read the side there is only one dimension left, the time [06:43] beginner: sry dint get.. [06:43] framlin: so lets say you have to columns, you may read first the first column an then the second column [06:43] beginner: ya [06:43] framlin: beginner: close you eyes [06:43] beginner: right [06:43] beginner: ok [06:43] azeroth__ has joined the channel [06:44] framlin: and imagine, i read the site for you [06:44] mbthomas has joined the channel [06:44] azeroth__ has left the channel [06:44] saikat has joined the channel [06:44] framlin: then you have no idea, where the sentence I am reading you is placed on the screen [06:44] beginner: ok [06:44] beginner: yes [06:44] deoxxa: false. i can see through my eyelids. [06:45] framlin: or imagine you have a braille - keyboard [06:45] amatuer: :P [06:45] brainproxy: anyone here using nodejuice? [06:45] g2878 has joined the channel [06:45] framlin: there you can feel only one line at each time [06:46] beginner: oh k...so how is it 2 dimensional?? [06:46] robotmay has joined the channel [06:46] Nuck: Solution: headless webkit [06:46] framlin: so for that you have to "serialize" everithin, so you present it "sentence by centence" [06:46] Nuck: ACTION points to PhantomJS [06:46] amatuer: hmm wait [06:46] framlin: beginner: its only ONE-dimensional [06:46] amatuer: let me get a proper documentation for this idea [06:47] beginner: ok [06:47] amatuer: sothat i can follow what i have to do [06:47] amatuer: what all is needed and all [06:47] __tosh has joined the channel [06:47] Nuck: So now we have a beginner and an amatuer? [06:47] amatuer: :D [06:47] amatuer: :D [06:47] framlin: amatuer: its on you to build a documentation/specification ;) [06:48] amatuer: yeah [06:48] amatuer: i need a help [06:48] amatuer: coz i still have no cleaaar idea! [06:48] Nuck: Aren't there some niceties on certain sites to provide for screen readers? [06:48] amatuer: i just have got little idea [06:48] ivanfi has joined the channel [06:49] framlin: amatuer: try to get in contact with blind people and ask them, how the would wish to use the modern-times-web [06:49] amatuer: hmm yeah [06:49] Nuck: jesusabdullah: Are you one of the folks at Stackhaüs? [06:49] amatuer: ok! [06:49] amatuer: but for now [06:49] Nuck: Oh god [06:49] amatuer: i have to write a documentaion for whatever i work on this yr!1 [06:49] Nuck: Web apps [06:49] amatuer: yeah web apps [06:50] Nuck: Jesus fuck [06:50] Nuck: That's a killer [06:50] framlin: Nuck: there are, but would you like to be limited to "certain sites" [06:50] amatuer: what are you talking abt? [06:50] Nuck: Can't translate a GUI into a vocal UI that easily :P [06:50] amatuer: lol [06:50] amatuer: thats the great part of the work! [06:51] framlin: thats the problem ;) [06:51] amatuer: guys can i know your real face [06:51] amatuer: so that we can work on this [06:51] Nuck: It's not really feasible. [06:51] amatuer: ok! [06:51] Nuck: I've got my own business to run lol [06:51] amatuer: lets be practical and talk abt soemthing which can happen [06:52] framlin: Nuck: yes, its really difficult, but I think with a technology like node, where you can build server-side-browsers, you hav e a good starting-point [06:52] Nuck: Speaking of which I should get some sleep. Gotta work on my YC application tomorrow :D [06:52] framlin: with eg jsdom, you do not have to code the DOM-Handling yourself etc. pp. [06:52] amatuer: NOW I HAVE TO WORK ON SOMETHING THIS YEAR SO ASKIGN [06:53] Nuck: framlin: That's not the problem [06:53] Nuck: The issue is that it's not possible to interpret a GUI and make it respond to vocal commands [06:53] framlin: Nuck: yes, so you may concentrate on the real problem and not all that "infrastucture stuff" arround [06:53] ttpva has joined the channel [06:54] framlin: Nuck: did you have a look at ARIA [06:54] framlin: There is a solution for some of the problems [06:54] Nuck: ARIA is not well-adopted though [06:54] amatuer: i feel this is soooooo huge for me to work on!! [06:54] amatuer: :( [06:54] Nuck: It's barely on maybe 10% of Google pages [06:54] framlin: yes, but there some solutions that can be used and implemented within a text-browser [06:54] Nuck: And even then it's spotty [06:55] shapeshed has joined the channel [06:55] zgryw has joined the channel [06:55] Nuck: Imma go sleep nai all [06:55] framlin: sleep well ;) [06:57] booo has joined the channel [06:57] amatuer: am worried now [06:58] jj0hns0n has joined the channel [06:58] emattias has joined the channel [06:58] amatuer: hey framlin [06:58] groom has joined the channel [07:00] meso has joined the channel [07:00] raphdg has joined the channel [07:01] `3rdEden has joined the channel [07:04] framlin: ?? [07:04] amatuer: any othr idea? [07:04] amatuer: am not satisfied :( [07:04] framlin: sorry, but sometimes I not only have to givee ideas for applications, but have to imlement them for my customers, too ;) [07:05] fangel has joined the channel [07:05] hybsch has joined the channel [07:05] g2879 has joined the channel [07:05] framlin: sorry, but more than two ideas a day are charged ;) [07:05] Creap: "socket.io" or "How I Learned to Stop Worrying and Love the Asynchronousness of Node.js" [07:06] framlin: ok, I have a third, only for you [07:06] Chopinnn has joined the channel [07:07] framlin: I would like to have an application, that I can configure with the root-path of a JS-Project and from that on, it will create/update UML-Model/Diagrams from that source-tree in realtime [07:07] e6nian has joined the channel [07:07] emattias has joined the channel [07:08] framlin: and will display them at my html-browser (as long until you have finished that native-html-css-framework) [07:08] framlin: ;) [07:09] kmox83 has joined the channel [07:09] framlin: naturally, it should be possible to manipulate the uml-digrams and that will change my JS-code - in realtime ... because you asked for realtime-app-stuff ;) [07:10] Druid_ has joined the channel [07:10] g2880 has joined the channel [07:13] dob_ has joined the channel [07:16] abraxas has joined the channel [07:17] toki_kanno has joined the channel [07:23] jetienne has joined the channel [07:23] kdng-sermechmath has joined the channel [07:25] kdng-sermechmath has left the channel [07:26] shinuza has joined the channel [07:26] uchuff has joined the channel [07:27] ablomen has joined the channel [07:32] Yoric has joined the channel [07:36] MrNko has joined the channel [07:37] dnyy has left the channel [07:37] dnyy has joined the channel [07:39] [AD]Turbo has joined the channel [07:39] [AD]Turbo: hi there [07:39] _kud has joined the channel [07:41] simenbrekken: I'm looking for a library that can pool parallel operations in a bucket wise manner (keep 20 http requests going but not more or less). I rememer someone discussing it here but I can't seem to find it [07:42] cjheath_ has joined the channel [07:43] aaronmcadam has joined the channel [07:45] te-brian has joined the channel [07:45] Arkantos has joined the channel [07:49] e6nian has joined the channel [07:50] bergelmir has joined the channel [07:51] guidocalvano has joined the channel [07:51] g2881 has joined the channel [07:54] CIA-69: libuv: 03Ryan Dahl 07master * r894c005 10/ (src/unix/fs.c test/test-fs.c): unix: fix fs_async_sendfile - http://git.io/RXs7MQ [07:54] JakeyChan has joined the channel [07:55] CIA-69: libuv: 03Ryan Dahl 07master * rd20233c 10/ test/test-fs.c : Fix long lines - http://git.io/aL87qQ [07:57] ben_alman_ has joined the channel [07:57] ph^ has joined the channel [07:58] mykul has joined the channel [07:59] alek_br has joined the channel [07:59] CIA-69: libuv: 03Ryan Dahl 07master * rdbc1cb0 10/ (191 files in 2 dirs): Remove pthread-win32 - http://git.io/glWjbg [07:59] emattias_ has joined the channel [07:59] dexter_e: Anyone rockin JSDOM ? [08:00] g2882 has joined the channel [08:00] dexter_e: I wonder how to inject script tags [08:00] dexter_e: they seem to be getting stripped out [08:00] g2883 has joined the channel [08:01] g2884 has joined the channel [08:02] bergie has joined the channel [08:02] mpavel has joined the channel [08:02] avalanche123 has joined the channel [08:04] nephics has joined the channel [08:04] __doc__ has joined the channel [08:04] framlin: dexter_e:I think there was an array, where you pass script-file-names [08:05] dexter_e: framlin: Thats correct, but I'm also injecting JSON collections into the HTML pages before being sent. [08:05] framlin: dexter_e: I never use script-tags to embed js-code directly, so I only have noticd the script-file-thing [08:05] dexter_e: framlin: If not script tags directly then how? load them ? [08:05] framlin: hm, mybe you could have a script with JASON-getter-methods [08:06] dexter_e: but that about mean a double request eh ? [08:06] framlin: JSON [08:06] dexter_e: I want the JSON data to arrive with the original HTML object [08:06] framlin: hm, ok, there I have no idea at the moment [08:06] dexter_e: if I load the JSON afterwards thats two trips around the world [08:07] dexter_e: thanks anyway, its close! [08:07] robhawkes has joined the channel [08:07] framlin: maybe you can use that old-stuff-hidden-form-field-pattern? [08:07] fly-away has joined the channel [08:07] dexter_e: hidden form fields for JSON data? [08:07] topaxi has joined the channel [08:08] framlin: maybe you could "convert" them first [08:08] framlin: its only feasible for some szenarios .. [08:09] dexter_e: hmm as in : input.value = JSON.stringify(obj) ? [08:09] cjheath has joined the channel [08:09] sylvinus has joined the channel [08:09] framlin: something like that [08:10] ParadoxQuine has joined the channel [08:10] toki_kanno has joined the channel [08:10] dexter_e: good idea , I'm having some browser compatibility red flags popping up though :) [08:10] dob_: did somebody find a way to create docx via node? [08:10] aeo has joined the channel [08:10] aeo: Hi, guys. [08:10] dexter_e: This JSDOM thing really kicks ass though. [08:11] dexter_e: I'm juggling fully working chunks of html on the client and server the exact same way. [08:11] framlin: yes, I use it for the same reason, too ;) [08:11] dexter_e: the server just changes the arriving state of the site and the JS browser side takes over from there [08:11] dexter_e: Its AWESOME [08:11] pifantastic_ has joined the channel [08:12] framlin: yepp [08:12] dexter_e: Its HARD to justify {{%% }}%% type things at this point. [08:12] Martin1982 has joined the channel [08:12] mendel_ has left the channel [08:12] framlin: {{%% }}%% ?? do not know that [08:13] dexter_e: I mean template delimiters [08:13] framlin: template-stuff? [08:13] dexter_e: :) [08:13] dexter_e: yeah [08:13] framlin: ahh ;) [08:13] djcoin has joined the channel [08:13] framlin: I use weld for that [08:14] dexter_e: Weld is the bomb too. How do you inject src tags ? [08:14] robotmay has joined the channel [08:14] dexter_e: or hrefs ? [08:14] markwubben has joined the channel [08:14] framlin: but my reqirements are just simple [08:14] framlin: I have som JS-Code to do that myself ;) [08:15] framlin: not in my brain-memory at the moment ;) [08:15] dexter_e: right right, yeah thats the way you gotta do it [08:15] dexter_e: either that or the map function [08:15] mendel_ has joined the channel [08:15] framlin: but there should be some "official" solution as I have read at the isuue-list of weld [08:15] jetienne has joined the channel [08:15] dexter_e: the "oficial" solution is the map function list [08:15] aeo: What do I do if node.js isn't working? [08:15] framlin: yepp-map-function was the point ... [08:16] mraleph has joined the channel [08:16] dexter_e: framlin: so have you abandoned template delimiters fully? or do you find you still need them for somethings? [08:16] dexter_e: I'm looking forward to having a total JS server-browser consistency [08:16] aeo: Like, I installed node.js and tried to run the example thing [08:17] aeo: and it says: "Server running at http://127.0.0.1:1337/" [08:17] aeo: But when I go to 127.0.0.1:1337 I get a connection error [08:17] aeo: Do you guys know likely causes of what might be wrong? [08:17] aeo: (I'm using node 0.4.11 on CentOS 5.6) [08:17] dexter_e: aeo: read what it says in your console [08:18] dexter_e: when the error happens [08:18] dexter_e: it will tell you what went wrong [08:18] framlin: dexter_e: no tepmlate-stuff at all [08:18] aeo: dexter_e: The error is 'request timed out' [08:19] aeo: Alternatively: "Oops! Google Chrome could not connect to myserver:1337" [08:20] FireFly|n900 has joined the channel [08:20] __tosh has joined the channel [08:20] dexter_e: aeo: you have to look at the errors in the console you used to start node [08:21] jomoho has joined the channel [08:21] mehlah has joined the channel [08:21] aeo: dexter_e: There aren't any [08:21] aeo: All it says is [08:21] gvz has joined the channel [08:21] aeo: Server running at http://127.0.0.1:1337/ [08:21] aeo: Which I presume isn't an error [08:22] dexter_e: aeo: go to your example code and change the port to 8000 and see if the same thing happens [08:22] g2885 has joined the channel [08:23] stride: aeo: is "myserver" localhost? [08:23] dexter_e: do you have torrent or any remote desktop stuff running ? [08:23] aeo: stride: It's the IP of my server [08:23] ccare has joined the channel [08:23] dexter_e: it sounds like its not even hitting node [08:24] aeo: dexter_e: No. [08:24] aeo: I do have an Apache server running on port 80 [08:24] dexter_e: try to change your example code to listen to a different port [08:25] massivebiz has joined the channel [08:25] aeo: Nope, port 8000 doesn't work either [08:26] aeo: Oh, wait, I figured it out [08:26] stride: aeo: does the firewall allow communication on the port & did you listen on all interfaces in your node code? [08:26] aeo: There's some sort of firewall on my server [08:26] aeo: Connecting via localhost works [08:26] dexter_e: stride: nice catch [08:27] stride: aeo: linux? [08:27] aeo: stride: CentOS 5.6 [08:27] stride: that has the default redhat iptables rules iirc, wait a sec [08:28] stride: http://www.cyberciti.biz/faq/howto-rhel-linux-open-port-using-iptables/ that first one with the appropriate port should work [08:28] eldios has joined the channel [08:31] hellp has joined the channel [08:33] dexter_e: framlin: you're living the delimiterless dream [08:34] aspect has left the channel [08:34] dexter_e: total consistency between server and browser [08:36] japj has joined the channel [08:37] CIA-69: libuv: 03Ryan Dahl 07master * ra6ed175 10/ (src/unix/fs.c test/test-fs.c): unix: implement uv_fs_lstat - http://git.io/7F-pfw [08:37] CIA-69: node: 03Ryan Dahl 07master * r1088638 10/ (196 files in 6 dirs): upgrade libuv to a6ed175 - http://git.io/ed9yhg [08:37] CIA-69: node: 03Igor Zinkovsky 07master * rbce41fa 10/ (10 files in 3 dirs): [08:37] CIA-69: node: Use new uv_fs_ apis [08:37] CIA-69: node: This will cause master to be unstable for a while as we replace existing eio [08:37] CIA-69: node: calls with uv_fs calls. - http://git.io/Rclu8Q [08:37] aeo: stride: Didn't work, but this workaround did: http://arguments.callee.info/2010/04/20/running-apache-and-node-js-together/ [08:37] aeo: Thanks for the help! [08:39] ptlo: anyone from joyent around for a quick (non-help) pm? [08:40] g2886 has joined the channel [08:40] amateur has joined the channel [08:40] g2887 has joined the channel [08:41] tshpaper has joined the channel [08:41] amateur: anybody home? [08:41] amateur: framlin [08:41] amateur: ?? [08:42] meso_ has joined the channel [08:43] dob_: did somebody try to create docx files in node.js? [08:44] ParadoxQuine has joined the channel [08:44] burningdog has joined the channel [08:46] beginner has joined the channel [08:46] stride: shouldn't be so hard dob_, it's just zipped xml files [08:46] beginner: hi [08:47] kuebk has joined the channel [08:48] DrMcKay has joined the channel [08:49] g2888 has joined the channel [08:51] seivan has joined the channel [08:52] arg0s has joined the channel [08:52] dob_: stride: okay thank u. hoped there is a ready to run solution [08:52] g2888: s [08:53] tdegrunt has joined the channel [08:54] CIA-69: libuv: 03Ryan Dahl 07master * rca11711 10/ src/win/fs.c : win: stub out missing uv_fs functions - http://git.io/fWCcFQ [08:54] mikl has joined the channel [08:54] NetRoY has joined the channel [08:55] Aiden has joined the channel [08:56] stonebranch has joined the channel [08:57] bartt has joined the channel [08:58] den512 has joined the channel [08:58] radiodario: does anybody know how to access variables passed to jade from javascript? [08:59] eldios: #{varname} ? [09:00] framlin: dexter_e: yepp, I hate that template-delimiters since my earliest JSP-times ;) [09:01] saimon_ has joined the channel [09:01] g2889 has joined the channel [09:01] emattias has joined the channel [09:02] industrial: How do I check RAW data going from and to a NodeJS server? [09:02] industrial: e.g. HTTP requests [09:02] industrial: I can do it in the browser with a proxy app like Charles.app [09:02] phluffy has joined the channel [09:02] phluffy has joined the channel [09:03] industrial: but I want to see what certain requests are really sending. [09:03] den512: tcpdump? [09:03] industrial: I'm trying to implement OAuth for a custom provider and all I'm getting back is 'Invalid OAuth Request' [09:03] stride: tcpdump / wireshark / burpsuite [09:03] swair has joined the channel [09:03] dexter_e: framlin: I just got the json strings embedding along side jquery with env() [09:03] dexter_e: :) [09:04] ParadoxQuine has joined the channel [09:06] versicolor has joined the channel [09:08] den512: is there some way to find out where in my node script high memory allocation is caused? [09:08] den512: I got FATAL ERROR: JS Allocation failed - process out of memory and don't know why [09:08] slaskis: industrial: i use proxycap to redirect everything through charles.app [09:09] slaskis: i just find wireshark a pain to debug http with, but maybe i just don't know how to use it [09:09] ptlo has joined the channel [09:09] rskuja has joined the channel [09:10] slaskis: (i'd love a tutorial on best practices with wireshark and http) [09:10] industrial: slaskis: okay [09:11] jomoho has joined the channel [09:11] torsd has joined the channel [09:12] simenbrekken: I'm looking for a library that can pool parallel operations in a bucket wise manner (keep 20 http requests going but not more or less). I rememer someone discussing it here but I can't seem to find it [09:12] aeo: Okay [09:12] aeo: I used npm to install socket.io [09:12] aeo: But node.js still says: Error: Cannot find module 'socket.io' [09:13] aeo: My guess is that socket.io was installed to the wrong place? [09:13] aeo: I see ~/node_modules/socket.io/ [09:13] aeo: Do you know how to fix that? [09:13] markwubben has joined the channel [09:14] arg0s has left the channel [09:14] ParadoxQuine has joined the channel [09:14] Yoric has joined the channel [09:15] japj: you should run npm install from your project top directory [09:15] slaskis: industrial: or you can use node and node-libpcap to debug your node ;) [09:15] simenbrekken: I Found it: https://github.com/substack/node-seq :) [09:16] sfoster has joined the channel [09:16] radiodario: eldios: thanks!! [09:17] eldios: radiodario, ;) [09:19] jetienne has joined the channel [09:19] JakeyChan has joined the channel [09:20] jetienne__ has joined the channel [09:23] MrNko has joined the channel [09:24] Chopinn has joined the channel [09:25] Arkantos has joined the channel [09:26] luke`_ has joined the channel [09:26] luke`_ has joined the channel [09:27] g2890 has joined the channel [09:28] Lorentz: nwm? yesssss [09:29] CIA-69: node: 03Ryan Dahl 07master * r2823ab4 10/ deps/uv/src/win/fs.c : Upgrade libuv to ca11711 - http://git.io/Lq_QJA [09:29] aeo: japj: Where is my project top directory? [09:29] CIA-69: node: 03Ryan Dahl 07master * rb68c6ba 10/ deps/v8/tools/gyp/v8.gyp : Fix Windows build - http://git.io/uSVTAg [09:29] andree has joined the channel [09:32] Orion- has joined the channel [09:32] Orion-: Hello people [09:33] JakeyChan_ has joined the channel [09:35] sylvinus has joined the channel [09:35] japj: aeo: your project top directory is wherever your application using socket.io is stored [09:36] aeo: japj: Like, the app.js file? [09:36] japj: yes [09:36] aeo: thanks [09:37] kulor-uk has joined the channel [09:37] aeo: japj: It worked! [09:38] aeo: japj: Thank you so much! [09:38] swair has joined the channel [09:38] eldios: guys a nice lib to draw graphs in node? [09:39] eldios: better if from substack or visionmedia [09:39] ParadoxQuine has joined the channel [09:39] japj: https://github.com/LearnBoost/node-canvas ? [09:41] eldios: lemme see =) tnx for now japj [09:43] japj: ryah: I'll submit an v8 issue for that [09:44] japj: ryah: unless you're already doing that ofc ;) [09:44] swair has joined the channel [09:44] eldios: mmm.. but I'd need cairo.. [09:44] eldios: and I don't know if it's installed on the hosting part [09:44] ryah: japj: already did [09:45] Remoun has joined the channel [09:45] TomY has joined the channel [09:46] eldios: ryah, sorry to use your precious time andbrain energy but.. how would you take exec stdout ... out of the exec itself? being more concise, I want the stdout stored in a variable OUTSIDE the exec. I setInterval which polled till var != from default value but I understand it's kinda nasty :P any other approach? [09:47] Renegade001 has joined the channel [09:47] booo has joined the channel [09:48] collypops has joined the channel [09:48] ParadoxQuine has joined the channel [09:49] fly-away has joined the channel [09:51] Glenjamin: can't you just use it in the callback from exec? [09:51] eldios: mm.. it's possible but also worse.. also need nesting and code repetition [09:52] maushu has joined the channel [09:52] Glenjamin: are you using something like async to manage your callback control flow? [09:52] eldios: https://github.com/eldios/polyDios/blob/master/server.js [09:52] hellp has joined the channel [09:52] eldios: look at the callPolygen method [09:52] eldios: I use the callback now [09:52] maushu: Anyway to find out if a object was successfully garbage collected besides -trace-gc? [09:53] japj: ryah: d_namlen does not exists on my linux machine, http://linux.die.net/man/3/readdir [09:53] eldios: Glenjamin, anyhow it would be nice to kinda pull it out the exec and return it somehow [09:54] Shrink has joined the channel [09:54] Glenjamin: hrm, I'm having trouble following this control flow [09:55] g2891 has joined the channel [09:55] Glenjamin: callPolygen = locate the Grm, then exec, then return? [09:56] eldios: yes [09:56] sebasti__ has joined the channel [09:56] eldios: return would be the actual goal [09:56] Glenjamin: sounds like a job for async.waterfall [09:56] eldios: but since it's not possible, calling the cb is the only way [09:56] broofa has joined the channel [09:56] Glenjamin: yeah, when i say return i mean callback [09:57] eldios: oh ok [09:57] Glenjamin: one sec, i'll sketch out a gist [09:57] eldios: tnx [09:59] DrMcKay has joined the channel [10:00] Ond has joined the channel [10:01] maushu: Hmm, --trace-gc is not working. :( [10:02] bartt has joined the channel [10:03] maushu: Oh, it's trace_gc [10:05] benvds has joined the channel [10:05] Glenjamin: eldios: something like this - https://gist.github.com/1180584 [10:05] franck34: is there kaazing hackers here ? [10:06] Ricki` has joined the channel [10:07] mike5w3c_ has joined the channel [10:07] eldios: Glenjamin, looks good [10:07] eldios: do you want to make a pull request or do I merge the code manually? [10:07] Glenjamin: you're better off doing it manually really, i haven't run or checked that [10:07] eldios: ^^ [10:07] eldios: k tnx [10:08] Glenjamin: but in general, split the code up into small discrete functions and use async to chain them together [10:08] Glenjamin: keeps things tidier :) [10:08] eldios: indeed [10:08] sebastia_ has joined the channel [10:08] maushu: Is anyone able to use --trace_gc in the latest node.js version? [10:09] maushu: Oops, nevermind, it's -trace_gc. [10:09] maushu: The help lied to me! ;_; [10:09] ParadoxQuine has joined the channel [10:11] rendar has joined the channel [10:11] JakeyChan has joined the channel [10:15] FireFly|n900 has joined the channel [10:15] sebastia_ has joined the channel [10:16] Marak has joined the channel [10:16] CIA-69: libuv: 03Jeroen Janssen 07master * r2af955d 10/ src/unix/fs.c : [10:16] CIA-69: libuv: Fix posix dirent usage [10:16] CIA-69: libuv: Fixes #161 - http://git.io/si3MHQ [10:17] burningdog has joined the channel [10:18] sebasti__ has joined the channel [10:21] Wizek has joined the channel [10:22] Glenjamin: .. var r = []; if ([]) r.push(1); if ([1]) r.push(2); if ([] == true) r.push(3); if ([1] == true) r.push(4); r [10:22] catb0t: [ 1, 2, 4 ] [10:22] Glenjamin: can anyone explain that? ^^ [10:22] adambeynon has joined the channel [10:23] nahime has joined the channel [10:24] Orion-: == is so mystical in js :) [10:25] adambeynon has joined the channel [10:26] necrodearia has joined the channel [10:26] fermion has joined the channel [10:26] Glenjamin: i assumed that == true was implied by an if body [10:26] stagas: .. [[0] == true, [1] == true] [10:26] catb0t: [ false, true ] [10:26] Glenjamin: s/body/condition/ [10:26] ParadoxQuine has joined the channel [10:27] Glenjamin: ah [10:27] Glenjamin: i see [10:27] g2892 has joined the channel [10:27] stagas: what? :P [10:27] Glenjamin: probably not a good way to check for an empty array then [10:29] pandark_ has joined the channel [10:29] _kud has joined the channel [10:30] adrianmg has joined the channel [10:30] g2892: hello [10:30] eldios: for my charts I will use this ---> http://www.highcharts.com/demo/line-ajax *drawling* [10:30] nahime has joined the channel [10:31] bnoordhuis has joined the channel [10:31] jbrokc has joined the channel [10:32] skm has joined the channel [10:35] amigojapan has joined the channel [10:35] qbit_ has joined the channel [10:35] eldios: this is nice too anyway http://jsno.de/presentations/jsconf2011/#slide13 [10:35] jheusala: ryah: we had problems to change the nickname with icecap since it's documented way to do it didn't work -- and we didn't have time to figure out why [10:36] Glenjamin: ack, line-by-line slides >.< [10:38] ParadoxQuine has joined the channel [10:39] jtsnow has joined the channel [10:39] irahgel has joined the channel [10:39] mehlah has joined the channel [10:40] Orion-: I wonder what you guys use as testing framework for js projects ? Jasmine ? Jspec ? please tell me what you choose and why ? I'm willing to incorporate TDD in my workflow for js projects I'm used to rspec for ruby projects. [10:40] eldios: jesusabdullah, are you on g+? [10:40] JakeyChan_ has joined the channel [10:42] collypops: what's everyone's favourite Node Knockout entries? [10:43] japj: bnoordhuis: will we still have a "configure" script when waf is removed? [10:43] bnoordhuis: japj: yes [10:44] Dmitrijus: Orion-: nodeunit [10:45] Orion-: Dmitrijus: thanks, any reason for this choice ? [10:46] Dmitrijus: Orion-: well, no, but i am using it now and no complains so far, does the job nicely :) [10:47] Orion-: ok thanks Dmitrijus [10:47] japj: bnoordhuis: good, btw will you integrate that libuv/ev/config_linux.h feature detection in libuv? [10:48] bnoordhuis: japj: yes, i'll merge it [10:49] zomgbie has joined the channel [10:50] CIA-69: libuv: 03Ben Noordhuis 07master * r0ba44cf 10/ src/ev/config_linux.h : ev: improve feature detection on linux - http://git.io/CzEOxQ [10:53] Gojohnnyboi has joined the channel [10:53] okuryu has joined the channel [10:54] ParadoxQuine has joined the channel [10:54] industrial: I can't seem to get my HTTPS requests going FROM my nodejs server to another server in Charles.app :9 [10:54] industrial: I'm using https://github.com/mikeal/request for the request [10:55] industrial: seeing it has a proxy option I filled that in for the running charles, but still no go [10:56] meandi has joined the channel [11:01] g2893 has joined the channel [11:04] wmage has joined the channel [11:04] ParadoxQuine has joined the channel [11:05] akshatj has joined the channel [11:10] CIA-69: node: 03Ben Noordhuis 07master * rfe4b742 10/ (deps/uv/src/ev/config_linux.h deps/uv/src/unix/fs.c): uv: upgrade to 0ba44cf - http://git.io/ZT0bPQ [11:13] ditesh|cassini has joined the channel [11:13] industrial: bnoordhuis: How would you take a look at the raw request data going over the line between a nodejs server and an oauth server? [11:13] bnoordhuis: industrial: tcpdump or wireshark? [11:14] industrial: yeah, but then its just SSL data [11:14] industrial: garble :) [11:14] bnoordhuis: industrial: you can proxy/mitm ssl [11:14] bnoordhuis: it's somewhat involved though [11:14] industrial: I just wanna get my oauth format right :\ [11:15] industrial: I have Charles.app for OSX but I can only see the requests from my browser to the nodejs server, not nodejs to another server [11:16] sharkbird has joined the channel [11:16] bnoordhuis: industrial: there's a tool that makes it easy but i forgot what its' called, 1s [11:17] ParadoxQuine has joined the channel [11:17] H4ns: industrial: you could use stunnel as proxy and then use tcpdump/wireshark on the connection between node and stunnel [11:18] bnoordhuis: industrial: sslsniffer - does roughly what H4ns said [11:19] postwait has joined the channel [11:25] eee_c1 has joined the channel [11:25] butu5 has joined the channel [11:26] industrial: okay [11:26] industrial: thanks [11:26] ParadoxQuine has joined the channel [11:27] ph^ has joined the channel [11:28] cliffff has joined the channel [11:29] mavus has joined the channel [11:30] MrNko has joined the channel [11:30] mendel__ has joined the channel [11:31] adrianmg has left the channel [11:31] g2894 has joined the channel [11:32] g2894: #node.js [11:32] jheusala: yeah [11:32] g2894: /connect irc.freenode.net [11:33] jheusala: it doesn't support commands :-) [11:33] g2894: hello [11:33] brianseeders has joined the channel [11:33] butu5: :) [11:33] g2893: testing [11:33] g2894: why it shows only what I post here [11:34] jheusala: refresh [11:34] deedubs has joined the channel [11:34] jheusala: I guess there is a bug [11:34] kylejginavan has joined the channel [11:34] butu5: u developed? [11:34] jheusala: after refreshing it seems to work [11:34] jheusala: me, paveq and jkj [11:34] butu5: hmm it is working [11:34] butu5: I also played around a bit with irc client [11:35] butu5: looks like u r broadcasting on msg arriaval? [11:35] jheusala: it's using socket.io [11:35] jheusala: truly event-driven [11:35] butu5: yeah.. on socket.io [11:35] butu5: u r broad casting right? [11:35] jheusala: icecap protocol is also event-based, works well with node.js [11:35] jheusala: not actually [11:35] jheusala: the source code is btw public [11:36] g2893: https://github.com/nko2/oulu [11:37] EvRide has joined the channel [11:37] juyeong_park has joined the channel [11:37] jheusala: I guess I finally figured how to clean up couchdb :-) [11:38] butu5: hmm .. but one thing don't mind.. the code structure looks bit confusing.. naming convention and file structure etc [11:38] jheusala: sadly we didn't thought to write it in guide to refresh if something doesn't seem to work [11:38] jheusala: yeah, we will re-write it after NKO [11:38] butu5: r u using node-irc module? [11:38] jheusala: no, it's using icecapd [11:39] ParadoxQuine has joined the channel [11:39] jheusala: it's like IMAP but for IRC [11:39] jheusala: node-icecap [11:39] butu5: ohh ok I am not much familiar with icecapd [11:39] butu5: will check [11:39] jheusala: icecap.irssi2.org [11:39] jheusala: it's the protocol irssi2 is using [11:39] garrensmith has joined the channel [11:40] jheusala: so if you had a ssh to our shell, you could use irssi2, also [11:40] swair has joined the channel [11:41] jheusala: icecap is much cleaner protocol than raw IRC [11:43] kriszyp has joined the channel [11:44] sharkbird has joined the channel [11:44] bnoordhuis: http://lwn.net/Articles/456798/ <- whaaaat? [11:44] piscisaureus_ has joined the channel [11:44] mc_greeny has joined the channel [11:46] ptlo: bnoordhuis: http://googleonlinesecurity.blogspot.com/2011/08/update-on-attempted-man-in-middle.html [11:46] mcepl has joined the channel [11:47] bnoordhuis: ACTION removes DigiNotar from CA list [11:48] N0va` has joined the channel [11:48] swair has joined the channel [11:48] marcello3d has joined the channel [11:50] g2895 has joined the channel [11:51] g2895: wat [11:51] bnoordhuis: what pisses me off the most is that diginotar is the ca behind most dutch government sites [11:51] g2895: I'm confused [11:51] bnoordhuis: jheusala: your project again? [11:51] kulor-uk has joined the channel [11:54] meso has joined the channel [11:54] ParadoxQuine has joined the channel [11:54] mcepl_ has joined the channel [11:54] jamescarr has joined the channel [11:56] jheusala: bnoordhuis: again? [11:56] ryanfitz has joined the channel [11:57] burningdog has joined the channel [11:57] g2896 has joined the channel [11:57] jamesduncan has joined the channel [11:58] bartt has joined the channel [11:59] jheusala: I've wrote a short blog post about that nko-oulu irc project: http://www.jhh.me/blog/2011/08/29/post-nko-greetings/ [11:59] g2897 has joined the channel [11:59] knirhs has joined the channel [12:00] g2898 has joined the channel [12:00] g2898: butts [12:01] g2899 has joined the channel [12:01] z6Dabrata has joined the channel [12:02] abraxas has joined the channel [12:02] jheusala: well, we can change it on IRCNet if it's not OK here. I thought it was OK now. [12:03] aaronmcadam: wtf? [12:03] H4ns: jheusala: just test in a private channel instead. [12:04] SubStack: >_< [12:04] jobim: Cleaning house. [12:04] nirel has joined the channel [12:04] niko has joined the channel [12:04] Martin1982: Holy **** I never heard Colloquy starting a wat [12:04] Martin1982: *war [12:04] Jalava_: FAIL, greets from finland :P [12:04] booo has joined the channel [12:04] SubStack: damn robits know how to count! [12:04] SubStack: WHO TAUGHT THE ROBOTS HOW TO COUNT? [12:04] bshumate has joined the channel [12:04] BlouBlou has joined the channel [12:05] g2900 has joined the channel [12:05] bnoordhuis: wtf, i banned you [12:05] marienz: bnoordhuis: I think you typoed your ban: you wanted *!*@nko-oulu.kapsi.fi [12:05] marienz: bnoordhuis: what you banned was actually *!*!@nko-oulu.kapsi.fi (stray "!") [12:05] nirel has left the channel [12:05] g2900: Hello World! [12:06] bnoordhuis: ah right [12:06] hackband has joined the channel [12:06] tuhoojabotti: hehe [12:06] Martin1982: zomg we have another infiltrator, g2900? [12:06] g2900: What am I? [12:06] BlouBlou: well, I think that ban is not longer necessary [12:07] marienz: I can't predict how long that kline will stay [12:07] malletjo has joined the channel [12:07] jheusala: k-line? [12:07] jheusala: how about just asking :-) [12:07] _kud has joined the channel [12:08] marienz: jheusala: I'm freenode staff [12:08] jheusala: we didn't move it away since ryah was ok. [12:08] BlouBlou has left the channel [12:08] marienz: jheusala: so if you meant asking how long the kline lasts: I'd have to ask myself :) [12:08] jheusala: marienz: well, we can try to change the network after work today. [12:09] jheusala: we cannot change the channel since it's Node Knockout entry and it's in the code. [12:09] marienz: ACTION is confused [12:09] clyfe has joined the channel [12:09] marienz: do you mean you know what these are? [12:09] tuhoojabotti: His project :D [12:09] jheusala: marienz: it's our Node Knockout web IRC [12:09] bnoordhuis: marienz: they're coming in from a node knockout project [12:09] al3xnull has joined the channel [12:09] tuhoojabotti: His team's* [12:09] marienz: ah. [12:09] marienz: I can lift the kline if you know what these are and have them under control [12:09] bnoordhuis: jheusala: i'm not lifting the ban, i don't want them fouling up the place [12:10] marienz: do you know if they'll connect anywhere else if I lift the kline? [12:10] hellp has joined the channel [12:10] jheusala: http://nodeknockout.com/teams/oulu [12:10] jetienne: there is a #nodeknockout channel too [12:10] clyfe: is there a http router that can do the reverse - url generation from a set of segmets a-la Rails (as in url_for) ? [12:10] marienz: having them bounce off your channel ban would probably be preferable over having them bounce off a network ban if this is the only channel they join [12:10] jheusala: marienz: we have them under control and Node Knockout staff has SSH access to there too [12:10] marienz: ok [12:11] jheusala: that's only channel they join [12:11] marienz: I've unset the network ban, although it'd still be good if you limited the number of these connecting [12:11] Shrink has joined the channel [12:11] jheusala: it's hard coded in the code [12:11] Raynos has joined the channel [12:11] Raynos: `sys.print(console); // undefined` [12:11] Raynos: Why would console be undefined? :\ console has always worked [12:12] jheusala: I can try to implement some kind of limit (without touching the source code) but I'll need to go to work now :-P [12:12] ParadoxQuine has joined the channel [12:13] Raynos: And why aren't sys.print & sys.puts documented? [12:13] bergelmir has joined the channel [12:13] tuhoojabotti: Raynos: You're saying console.log doesn't work? [12:13] mavus has joined the channel [12:14] tuhoojabotti: Raynos: What node version are you running? [12:14] Raynos: tuhoojabotti: pretty much. I'm injecting some prints into vows for debugging and running vows from the command line [12:14] Raynos: 0.4.10 I think [12:16] boaz has joined the channel [12:16] andreyvit has joined the channel [12:16] swair has joined the channel [12:18] Vertice: Raynos: weren't they depricated ? [12:18] Raynos: I think so [12:18] Raynos: But I dont know how else to log things if console is undefined [12:18] tuhoojabotti: console.log should work. [12:18] Vertice: i prefer console.warn ost of the time [12:18] andreyvit: Hey. I wonder if anyone knows what might be my best bet in doing unicode KD decomposition in Node.js? Nothing similar found in the list of modules. Any ICU bindings? If not, any simple way to create them? Existing project this is best contributed to? [12:18] Vertice: for testing [12:19] Vertice: it's synchronous [12:19] kulor-uk has joined the channel [12:19] Vertice: also. iirc the sys module was renamed to util [12:19] Vertice: so this is relevant - http://nodejs.org/docs/v0.4.11/api/util.html [12:21] stagas: wow! http://ape.stronaut.com/ [12:21] meso has joined the channel [12:21] cjheath: Any node internals devs here? I'm looking at using it in some embedded hardware and want to ask about how it achieves asynchronous behaviour [12:21] jheusala: korjasin [12:21] jheusala: uh sorry [12:21] versicolor has joined the channel [12:21] jheusala: wrong channel [12:22] H4ns: cjheath: it uses libeio and libev [12:22] cjheath: I.E. the eoi lib seems to use pthreads to support "truly asynchronous I/O" [12:22] ParadoxQuine has joined the channel [12:22] cjheath: which is a little surprising to me :) [12:22] tuhoojabotti: stagas: Can you play it? [12:22] stagas: tuhoojabotti: yeah in chrome [12:22] tuhoojabotti: it keeps refreshing for me [12:23] H4ns: cjheath: what exactly is it that suprises you? [12:23] descipher has joined the channel [12:23] AaronMT has joined the channel [12:23] cjheath: Well the idea of using evented IO is that you don't need to use threads... so to emulate events using threads seems odd, that's all [12:23] H4ns: cjheath: (i am using node in an embedded situation, too. i'm not a node "internals developer" though, but an extension writer, if you will) [12:24] garrensmith has joined the channel [12:24] cjheath: It's not a problem; the largish code-base I have to integrate also uses pthreads, so should be ok [12:24] sebastia_ has joined the channel [12:24] cjheath: So this device is a Gumstix, Arm A8 Cortex [12:24] H4ns: cjheath: right. you just need to make sure that you are using the right mechanisms to communicate between node's thread and your other threads [12:25] H4ns: cjheath: i'm on a bugbase 2.0, which is cortex a8 as well. [12:25] cjheath: Ok, rigt, that's why I came here [12:25] cjheath: I've done threaded code in C++ before, so I don't nee orientatuin on that... but where to find the right PIs inside node? [12:25] cjheath: *APIs [12:25] H4ns: cjheath: i've been using libev to connect my asynchronous threads to node's. [12:26] cjheath: DO you have stuff being triggered from the interrupt level? [12:26] H4ns: cjheath: basically, what you will be using is the V8 api, and you'll have to look at existing code to fifgure your way out. [12:26] Raynos: cjheath: it also uses iocp on windows [12:26] cjheath: Best example of "existing code" - node is getting rather big now :) [12:26] H4ns: cjheath: no, i'm not running node inside of the kernel if that is what you mean to say. [12:27] cjheath: Oh, ok, right [12:27] H4ns: Raynos: we're talking embedded linux [12:27] Raynos: Ah ok. [12:27] Raynos: I just read embedded [12:27] Raynos: Didn't stop to think that embedded windows might be stupid [12:27] cjheath: So I need device drivers (for Screen, buttons, and the FPGA that does the guts of the instrument;s work) [12:27] stride: stagas: damn :) you're too good at this ;> [12:27] cjheath: then interface those using FDs in eoi or whatevs [12:28] cjheath: Sounds about right H4ns? [12:28] stagas: stride: wish it had rounds [12:28] H4ns: cjheath: or threads and libev. you can look at https://github.com/hanshuebner/node-pjsip for some code that has a pretty involved way to get asynchronous callbacks from a foreign library back into node. [12:29] H4ns: cjheath: correct, yes. [12:29] cjheath: xlnt [12:29] cjheath: Thanks [12:30] fumanchu182 has joined the channel [12:31] tbranyen: ryah: holy wow, never thought i'd see the day microsoft would be hiring a nodejs dev [12:31] tbranyen: thats amazing [12:32] mcepl has joined the channel [12:32] tbranyen: and kind of apocalyptic [12:32] fangel has joined the channel [12:32] mcepl_ has joined the channel [12:32] industrial: their fall has already begun, it will just take a while [12:32] al3xnull has joined the channel [12:34] Cromulent has joined the channel [12:34] zmbmartin: SubStack: Is there a way with seq to jump to the next seq without a callback or using a blank one? I am downloading files from the db and do not want to jump to the next seq until the file is downloaded. [12:34] bradleymeck has joined the channel [12:34] stride: tbranyen: huh? who was hired by MS? [12:35] Raynos: tbranyen: There are microsoft devs working on node core [12:35] Raynos: There's a MS advert for a node dev on jobs [12:35] stutter_: what is the best way to extend the EventEmitter class, and still have protected vars and methods? I can't find an example that does both [12:35] stride: ah [12:35] yept has joined the channel [12:36] stutter_: i can find tons of examples on extending the EventEmitter, and tons of examples of having private methods, but not both [12:36] hlindset has joined the channel [12:36] Epeli: How can I render raw Jade in Jade? [12:36] Epeli: I want to use Jade in browser also [12:38] lunks has joined the channel [12:38] Epeli: prefixing with | seem to work, but aren't there a more convenient way? [12:39] ParadoxQuine has joined the channel [12:40] collypops has joined the channel [12:40] Epeli: hmm, a dot should do it, but it doesn't seem to work with script(type="text/x-jade-template") [12:40] mavus has joined the channel [12:40] aconbere has joined the channel [12:41] jheusala: bnoordhuis: we changed those bots to go to irc.kapsi.fi #node.js now. [12:41] WickedSik has joined the channel [12:41] jheusala: I had to change /etc/hosts chat.freenode.net :-) [12:41] WickedSik: Hey [12:41] jbrokc has joined the channel [12:41] WickedSik: Anyone have an idea how to help me on an install of Node.JS on Centos 5? [12:41] sivy has joined the channel [12:42] WickedSik: I just did a clone from github (latest stable), and tried ./configure, and it just crashed on me [12:42] jakehow__ has joined the channel [12:42] jakehow_ has joined the channel [12:42] jakehow has joined the channel [12:42] fairwinds has joined the channel [12:42] WickedSik: gave me an invalid syntax error... [12:43] jheusala: hah, I said bots. Those were not bots -- just our website users. You have brainwashed me. :-) [12:43] Sembiance: WickedSik: weird :) [12:43] tuhoojabotti: jheusala: Most of them were just bots that kept pongin' for teh pingin'. :P [12:44] jheusala: tuhoojabotti: that's the same what irssi does when you run it in screen. [12:44] WickedSik: Sembiance: Yeah... I have no idea why... [12:44] tuhoojabotti: Yes. [12:44] Sembiance: WickedSik: what exactly did you clone, which URL or branch? I'll the same here to see if it fails here too or not [12:44] javaanse_jongens has joined the channel [12:44] zomgbie has joined the channel [12:44] WickedSik: > git clone git://github.com/joyent/node.git [12:44] jheusala: Our "bots" could only do two things. Sit and talk. For some reason most users didn't do the first and we didn't implement "quit".:-P [12:45] tuhoojabotti: nor nick change [12:45] jheusala: nick change was because icecapd documentation was wrong [12:47] WickedSik: Sembiance: how's it going? [12:47] __sorin__ has joined the channel [12:49] hdon has joined the channel [12:49] benvds has joined the channel [12:49] stride: WickedSik: seems to be a problem with master, try a stable revision [12:49] ParadoxQuine has joined the channel [12:49] hybsch has joined the channel [12:49] stride: (at least I'm getting that syntax error as well on a centos 5 box) [12:49] hybsch has left the channel [12:50] WickedSik: how do I get the stable? [12:51] mehlah has joined the channel [12:52] agnat_ has joined the channel [12:53] Raynos: What is a good library to print pretty colours to the console? [12:54] irahgel: @WickedSik: https://github.com/joyent/node/wiki/Installation [12:54] shipit has joined the channel [12:55] WickedSik: irahgel: I believe I did exactly that git clone [12:56] swair_ has joined the channel [12:57] WickedSik: irahgel: the --depth 1 added didn't help [12:57] Glenjamin has joined the channel [12:57] kylejginavan: Great opportunity for someone. http://jobs.github.com/positions/13de9a16-cfec-11e0-9755-5e6a53e6761b [12:58] WickedSik: Ah, the git export did the job [12:59] bartt has joined the channel [12:59] Arkantos has joined the channel [13:00] swair has joined the channel [13:01] swair has joined the channel [13:03] markwubb_ has joined the channel [13:06] shripad has joined the channel [13:07] al3xnull has joined the channel [13:07] mendel_ has joined the channel [13:07] cjm has joined the channel [13:07] ParadoxQuine has joined the channel [13:07] nahime: Raynos, https://github.com/davglass/nodejs-termcolors [13:07] Druid_ has joined the channel [13:08] Raynos: nahime: I'll try that [13:08] nahime: Raynos, This is a screenshot: http://img404.imageshack.us/img404/7644/termcolors.png [13:08] tomb has joined the channel [13:09] boaz has joined the channel [13:09] cjm has joined the channel [13:09] pandeiro has joined the channel [13:10] Raynos: nahime: that module is not on npm :\ [13:10] boaz has joined the channel [13:12] soapyillusions has joined the channel [13:12] MrNko has joined the channel [13:13] nahime: Raynos, in npm repo there's another module named "cli-color" [13:14] nahime: Raynos, The link to github: https://github.com/medikoo/cli-color [13:14] thomblake has joined the channel [13:16] ParadoxQuine has joined the channel [13:17] thomblake has left the channel [13:18] CIA-69: node: 03AJ ONeal 07master * r8039086 10/ doc/api/querystring.markdown : docs: document querystring behavior for arrays and unassigned parameters - http://git.io/AUjEvw [13:20] mikl has joined the channel [13:21] vikstrous has joined the channel [13:22] swair has joined the channel [13:23] willwhite has joined the channel [13:24] skipper_ has joined the channel [13:24] gerad has joined the channel [13:24] FireFly|n900 has joined the channel [13:25] japj has joined the channel [13:26] collypops has joined the channel [13:26] Poetro has joined the channel [13:26] Poetro has joined the channel [13:26] XniX23 has joined the channel [13:27] rurufufuss has joined the channel [13:27] Cromulent has joined the channel [13:28] eyesUnclouded has joined the channel [13:29] ParadoxQuine has joined the channel [13:30] mavus has joined the channel [13:31] cnu has joined the channel [13:32] er1c_ has joined the channel [13:33] sivy has joined the channel [13:34] postwait has joined the channel [13:35] MrNko has joined the channel [13:36] c4milo1 has joined the channel [13:36] dexter_e has joined the channel [13:37] pickels has joined the channel [13:38] JakeyChan has joined the channel [13:38] progme has joined the channel [13:40] ParadoxQuine has joined the channel [13:40] aheckmann has joined the channel [13:43] hackband has joined the channel [13:47] MrNko has joined the channel [13:47] davidsklar has joined the channel [13:48] patrickgamer has joined the channel [13:48] patrickgamer has left the channel [13:49] kerneis has joined the channel [13:50] ParadoxQuine has joined the channel [13:50] kerneis: hi [13:50] VeXii: hello [13:50] kerneis: I cannot find bindings to setgroups, initgroups or even getpwnam in nodejs' API [13:51] __tosh has joined the channel [13:51] kerneis: how are you supposed to drop root privileges safely? [13:51] kerneis: (I know this is not portable, but setuid and setgid are already there, so...) [13:52] H4ns: kerneis: you could consider that it is just not possible. just a thought. [13:53] kerneis: yeah, this is what I believe currently, but I just cannot understand that no one ever wanted to drop privileges in a node.js program [13:53] kerneis: I mean, people have been writing servers in node.js for at least a year, now [13:53] mikl has joined the channel [13:53] kerneis: do they all run as root? [13:53] H4ns: kerneis: come up with a patch that adds the functionality that you require. [13:53] kerneis: or on unpriviledged ports [13:54] JJMalina has joined the channel [13:54] lukegalea: kerneis: I use authbind [13:54] lukegalea: so that I can allow a privileged port to run as a non-priviledged user. [13:54] kerneis: lukegalea: I don't know that, will check it out [13:54] Vertice has joined the channel [13:54] lukegalea: What distro are you using? [13:54] kerneis: thanks [13:54] kerneis: debian [13:55] lukegalea: ya, that should be good. I have had 0 success with red hat & authbind.. but debian-esque distros work great with it. [13:55] Aikar: kerneis: is setuid/setgid not enough? [13:55] marksoper has joined the channel [13:55] kerneis: Aikar: no, you have supplementary groups [13:56] lukegalea: kerneis: One more hint :) If you are using something like cluster, etc - you need to use authbind --deep, so that all spawned processes have the ability to use privileged ports as well. [13:56] kerneis: and you also want to guess the setgid identifier from the username [13:56] fuzzyone has joined the channel [13:56] fuzzyone has joined the channel [13:56] kerneis: which requires getpwnam [13:57] jheusala: npm drops priviledged [13:57] ryanfitz has joined the channel [13:57] bartt has joined the channel [13:58] jheusala: uh my mobile bit isn't working [13:58] Aikar: kerneis: so your saying an app that calls setuid/setgid will still have some root access? [13:59] kerneis: Aikar: it could [13:59] RushPL_ has joined the channel [13:59] kerneis: if it is in the root group [14:00] kerneis: man getgroups [14:01] CrisO has joined the channel [14:04] Aikar: kerneis: i see what you mean, i g+r'd /root, then setgid(1000) setuid(1000) and was still able to read /root [14:04] kerneis: yeah [14:05] ParadoxQuine has joined the channel [14:05] kerneis: initgroups is the way to go on modern systems [14:07] voodootikigod has joined the channel [14:08] cosmincx has joined the channel [14:08] NetRoY has joined the channel [14:08] pjacobs has joined the channel [14:09] kerneis: lukegalea: "authbind currently only supports IPv4 sockets." [14:09] otaku_coder has joined the channel [14:09] kerneis: welcome to 2011 :-) [14:09] _kud has joined the channel [14:09] vicapow has joined the channel [14:10] bsstoner has joined the channel [14:11] al3xnull_ has joined the channel [14:11] eldios: lulz [14:12] patrickgamer1 has joined the channel [14:12] davidwalsh has joined the channel [14:12] kerneis: https://github.com/joyent/node/pull/1509 I am obviously not the only one annoyed [14:12] jro_ has joined the channel [14:13] jro_: hi all [14:13] otaku_coder: hi, I'm trying to use the twitter streaming api to push out tweets via socket.io, but can't get it to work. Using the twitterNode module [14:13] hunghuynh: hi all [14:14] Nathan has joined the channel [14:14] otaku_coder: I can pull in streaming tweets fine, but cant get it to emit an event to push out via socket.io [14:15] patrickgamer has joined the channel [14:15] ParadoxQuine has joined the channel [14:15] hunghuynh: hi all [14:15] patrickgamer has left the channel [14:15] alexh has joined the channel [14:15] hunghuynh: hi all [14:16] kerneis has left the channel [14:17] hunghuynh: ls [14:18] saikat has joined the channel [14:18] febits has joined the channel [14:18] sivy has joined the channel [14:18] jro_ has joined the channel [14:18] garrensmith: otaku_coder: can you give us a gist or something to see what the issue is [14:18] pjacobs2 has joined the channel [14:18] neoesque has joined the channel [14:19] jro_: :) [14:19] simenbrekken has joined the channel [14:20] andreyvit has joined the channel [14:21] captain_morgan has joined the channel [14:21] jro_: hi all [14:21] erickt has joined the channel [14:21] jro_: I have question [14:21] jro_: node.js & php [14:21] jro_: diferent ? [14:21] vicapow: how can i render a partial inside a view? [14:22] jro_: :( [14:22] jro_: who can talk me know :) [14:22] k1ttty has joined the channel [14:22] eldios: vicapow, [14:22] eldios: https://github.com/visionmedia/jade [14:22] eldios: look at partial examples [14:22] vicapow: eldios: I am [14:23] vicapow: eldios: I can't figure it out [14:23] eldios: how do I pass locals to a javascript inside the jade file? [14:23] otaku_coder: garrensmith: sure, https://gist.github.com/1181006 [14:23] eldios: vicapow, try to recreate the examples first [14:23] eldios: then pass to your custom one [14:23] ajpiaNOU has joined the channel [14:23] jakehow has joined the channel [14:23] jakehow__ has joined the channel [14:23] jakehow_ has joined the channel [14:23] eldios: you ned one or two gotchas before you can actually make one =) [14:23] garrensmith: jro_: what really is your question? [14:24] garrensmith: otaku_coder: is the tweet event firing? [14:24] jerrysv has joined the channel [14:24] jro_: garrensmith: because I don't know node.js of future +.+ [14:25] H4ns: jro_: http://nodebeginner.org/ [14:25] garrensmith: jro_: have you tried nodejs [14:25] ParadoxQuine has joined the channel [14:25] fuzzyone has joined the channel [14:25] fuzzyone has joined the channel [14:25] balaa has joined the channel [14:26] hydrozen has joined the channel [14:26] ksheurs has joined the channel [14:26] otaku_coder: garrensmith: yes it is, tweet stream works fine, problem is sending that tweet object via socket.io [14:26] garrensmith: otaku_coder: can u send a normal message to a client? if you socket.send("hello") what happens [14:28] jro_: oh, I'm trying it :) [14:28] BillyBreen has joined the channel [14:28] otaku_coder: garrensmith: nope. And that is the problem. So the custom listener on socket works, but I can't to socket.broadcast because the socket obj doesnt exist. It's normally called within a 'sockets.on('connection', function(socket){ block [14:28] kevwil has joined the channel [14:29] garrensmith: otaku_coder: I havn't used socket.io in a while but obviously you haven't set it up correctly [14:30] otaku_coder: garrensmith: if i configure it in a normal block as per the docs it works fine, but I cant get it to respond to events generated by twitter-node [14:30] otaku_coder: garrensmith: it being socket.io, sorry! [14:31] binaryjohn_ has joined the channel [14:31] brianc has joined the channel [14:31] pjacobs: otaku_coder, do you have code to look at? [14:31] jvdev has joined the channel [14:31] _figital has joined the channel [14:32] sfoster has joined the channel [14:32] otaku_coder: pjacobs: here https://gist.github.com/1181006 [14:33] hlindset has joined the channel [14:34] Vertice has joined the channel [14:34] Vertice has joined the channel [14:36] pjacobs: otaku_coder, which line is failing for you? [14:36] ditesh|cassini has joined the channel [14:36] Qbix1 has joined the channel [14:36] yhahn has joined the channel [14:37] hornairs has joined the channel [14:37] sivy has joined the channel [14:37] ParadoxQuine has joined the channel [14:37] Chopinnn has joined the channel [14:38] shanebo has joined the channel [14:38] otaku_coder: pjacobs: the problem is line 26. Trying to broadcast the tweet data to all connected sockets [14:40] H4ns: otaku_coder: just guessing: is client.sockets an array maybe? [14:40] kmiyashiro has joined the channel [14:41] fatjonny has joined the channel [14:41] sub_pop has joined the channel [14:43] kelsin has joined the channel [14:44] jtsnow has joined the channel [14:44] otaku_coder: H4ns: might be, hadn't thought of that. The thing thats confusing me is in the docs - http://socket.io/#how-to-use all socket functionality is done within the io.sockets.on(). I've tried putting my custom event within that block but it doesnt work, hence why i did socket.addListener [14:44] _kud has joined the channel [14:45] vipaca has joined the channel [14:45] vipaca has joined the channel [14:47] ParadoxQuine has joined the channel [14:48] aconbere has joined the channel [14:49] pjacobs: otaku_coder, have you tried socket.sockets.broadcast.emit('', {}) ? On you line 34, no need for custom event [14:50] jro_ has joined the channel [14:50] hunghuynh: hi all [14:50] eee_c has joined the channel [14:51] cnu has joined the channel [14:51] eee_c has joined the channel [14:51] dshaw_ has joined the channel [14:52] dob__ has joined the channel [14:52] balaa has joined the channel [14:52] otaku_coder: pjacobs: I think I did, but I'll try it again [14:53] losing has joined the channel [14:53] patrickgamer1 has joined the channel [14:54] pjacobs: otaku_coder, I'd also go ahead an define on('connection', .. even just for debugging [14:54] Yuffster_work has joined the channel [14:55] bartt has joined the channel [14:55] dexter_e has joined the channel [14:55] eyesUnclouded has joined the channel [14:56] havenn has joined the channel [14:56] sivy has joined the channel [14:56] ParadoxQuine has joined the channel [14:57] sneakyne_ has joined the channel [14:58] sneakyness has joined the channel [14:58] EyePulp has joined the channel [14:59] explodes has joined the channel [14:59] bradleymeck has joined the channel [14:59] explodes: Yesterday I was told that datejs can transform a date between timezones. I don't see this functionality. Also, I cannot get it to work. [14:59] geetarista has joined the channel [15:00] maushu: I've been checking out the node.js file... crazy. [15:00] mrdoodles has joined the channel [15:01] chjj: maushu: crazy? [15:01] christkv has joined the channel [15:01] maushu: Yes, the NativeModule thingy. [15:01] jroesslein has joined the channel [15:02] Chopinn has joined the channel [15:02] chjj: explodes: i think its kind of hard, dates are all stored internally as gmt unix time, and there is no setTimezoneOffset, so that means in order to render a date as a different timezone you actually need to change the internal timestamp [15:02] meandi2 has joined the channel [15:02] chjj: which complicates things a lot [15:02] explodes: chjj: Yes, that is the idea [15:02] explodes: Timezones are hard [15:02] chjj: i think i tried writing something for it a while ago, but it wasnt worth [15:02] godzirra has joined the channel [15:02] godzirra: GOod morning folks! [15:03] chjj: maushu: what do you mean? :) [15:03] chjj: worth it* [15:03] explodes: What with DST and timezones with fractional offsets every 4/6 years... [15:03] chjj: more work than it was worth [15:03] chjj: more code than it was worth imo =/ [15:04] Glenjamin: it's probably worth porting a proper date lib from some other language [15:04] Glenjamin: since JS's code Date object is rather lacking [15:04] chjj: what you could do is add maybe a Date.prototype.toTimezone which would create a new date object with the proper timestamp [15:04] chjj: it would have to examine the current offset and then calculate the offset you want [15:05] saikat has joined the channel [15:05] chjj: yeah i never liked the Date object [15:05] allin has joined the channel [15:05] gazumps has joined the channel [15:05] Cromulent has joined the channel [15:05] godzirra: I'm new to node js. (Very new in fact). Can anyone tell me why the res.end line is throwing an error, and as an aside, if that's the normal way errors look in node.js? http://pastie.org/2454780 [15:05] sneakyness has joined the channel [15:05] hlindset has joined the channel [15:05] tanepiper: ECMA need to realise that Date is just rubbish and needs fixed at some point [15:06] tanepiper: maybe with some Date.js stuff [15:06] Remoun has joined the channel [15:06] Glenjamin: you can't really change it, and extending it isnt enough [15:06] H4ns: godzirra: you did not close the opening paren for readFile [15:06] burningdog has joined the channel [15:06] godzirra: Doh. Stupid error, thank you. [15:07] godzirra: Although that still doesn't display the html files in the same directory as the .js file. Oh well.. Next error. Thanks. :) [15:07] devongovett has joined the channel [15:07] pjacobs2 has joined the channel [15:08] tanepiper: maybe we need to bite the bullet and go for a native Date2 object ;) [15:09] sharkbird has joined the channel [15:09] hakunin has joined the channel [15:10] fairwinds: hi. anyone with experience with using closure on a node project. Is it possible to get everything including node_modules dependencies compiled into a single source file? [15:10] Glenjamin: why would you want that? [15:11] fairwinds: Glenjamin: am embedding it [15:11] sneakyness has joined the channel [15:11] otaku_coder: pjacobs: that didn't work - cannot call method 'emit' of undefined [15:11] hunghuynh: :) [15:12] Glenjamin: fairwinds: might be worth trying to find out how node itself embeds the core libs then [15:12] incredimike: I'm using formidible for multipart file uploads. Am i wrong in thinking that the files should be concatinated together when the upload is done? [15:12] pjacobs: otaku_coder, what version of socket.io are you on? [15:12] incredimike: I would have expected the lib to do it for me [15:13] H4ns: incredimike: it does. [15:13] tanepiper: oh hey otaku_coder [15:13] H4ns: incredimike: well, at least if i understand you correctly :) [15:14] tdegrunt has joined the channel [15:14] incredimike: ;] [15:14] ParadoxQuine has joined the channel [15:14] ryanfitz has joined the channel [15:14] cjm has joined the channel [15:14] incredimike: I'm uploading 1mb chunks of large files (say 3mb+), but they never get joined together [15:14] otaku_coder: tanepiper: hey! hope you enjoyed nodeknockout, looked epic [15:15] H4ns: incredimike: how would formidable know that you want them joined? [15:15] edwardmsmith has joined the channel [15:15] broofa has joined the channel [15:15] sneakyne_ has joined the channel [15:15] tanepiper: otaku_coder: couldn't in the end, working on a freelance project - one of the other devs dropped out so i had to pick up and work this weekend [15:15] incredimike: well, it knows it's a multipart upload [15:15] otaku_coder: pjacobs: latest stable [15:15] JumpMast3r has joined the channel [15:15] H4ns: incredimike: erm, how exactly are you uploading the chunks? [15:15] aliem has joined the channel [15:15] chjj: incredimike: multipart is just a format, each field is a "part" [15:15] eldios: how do I pass locals to a javascript script element inside a jade file? [15:16] otaku_coder: tanepiper: shame, some really cool projects came out of it. I couldn't take part either [15:16] tanepiper: my weekend did consist of writing stuff in coffeescript, using backbone + underscore + jquery mobile [15:16] incredimike: H4ns: HTML5 form upload thinggy.. one like all the others [15:16] tanepiper: so it was still all good :D [15:16] jetienne has joined the channel [15:16] slifty has joined the channel [15:16] H4ns: incredimike: and you upload several individual files? [15:16] otaku_coder: pjacobs: v0.8.2 [15:17] incredimike: no, one large file [15:17] patrickgamer1 has left the channel [15:17] incredimike: like a 3mb jpeg, for instance [15:17] chjj: incredimike: well, you should get one large file on the other side then [15:17] incredimike: I do not :( [15:17] H4ns: incredimike: what do you see when you use form.parse, one upload or more than one? [15:17] chjj: what do you get? [15:17] godzirra: Woot! got it working. [15:17] incredimike: one sec [15:18] H4ns: incredimike: look at https://github.com/hanshuebner/node-superupload/blob/master/server.js#L128 for code that handles uploads (and progress reporting, for that matter) [15:18] sneakyness has joined the channel [15:18] robotarmy has joined the channel [15:18] cliffff has joined the channel [15:20] blup has joined the channel [15:21] sneakyne_ has joined the channel [15:22] robertfw has joined the channel [15:22] balaa has joined the channel [15:22] wookiehangover has joined the channel [15:23] jtrudeau has joined the channel [15:23] jtrudeau has joined the channel [15:24] madsleejensen has joined the channel [15:24] chjj: incredimike: https://github.com/chjj/parted - my multipart parser if youre interested ;) [15:24] pickels has joined the channel [15:24] chjj: its not as battle-tested as formidable, but i did write some pretty thorough tests [15:24] _kud has joined the channel [15:24] incredimike: I'm down if it works! [15:25] sirdancealot has joined the channel [15:26] incredimike: sorry for the wait btw, I was trying to paste a well-formatted example. [15:26] otaku_coder: pjacobs: Think I've got it working, the magic incantation was io.sockets.emit rather than io.sockets.broadcast.emit [15:26] incredimike: chjj: I will this this puppy out [15:26] ParadoxQuine has joined the channel [15:27] jakehow__ has joined the channel [15:27] jakehow_ has joined the channel [15:27] jakehow has joined the channel [15:27] incredimike: also ty H4ns [15:28] pjacobs: otaku_coder, ah, good stuff. Glad you got it [15:28] sneakyness has joined the channel [15:28] explodes: Oh my god, I need to make a date in a certain time zone, what do i do [15:29] otaku_coder: pjacobs: thanks :) [15:29] chjj: incredimike: hang on, let me update the npm version real quick [15:29] kenperkins has joined the channel [15:29] incredimike: even easier [15:29] chjj: incredimike: k, should be good now [15:30] FireFly|n900 has joined the channel [15:30] junkee[] has joined the channel [15:30] incredimike: coo [15:30] smtlaissezfaire has joined the channel [15:30] stepheneb has joined the channel [15:31] Esteb has joined the channel [15:31] kevwil has joined the channel [15:32] pandeiro has joined the channel [15:32] incredimike: ok so this still leaves me to concatinate all the separate parts? [15:32] lunks has joined the channel [15:33] H4ns: incredimike: what parts are you talking about? [15:33] H4ns: incredimike: if you upload one file, it will end up as one file on the server. [15:34] ekryski has joined the channel [15:35] hlindset has joined the channel [15:35] incredimike: H4ns: it does not end up as 1 file. that's the problem [15:35] incredimike: I end up with 1mb chunks [15:35] H4ns: incredimike: then you're doing something wrong. did you look at the code that i refered you to? is your program doing the same thing? [15:36] incredimike: well I'm obviously doing something wrong ;) [15:36] incredimike: just trying to figure out what [15:36] incredimike: this code: https://github.com/hanshuebner/node-superupload/blob/master/server.js ? [15:36] H4ns: incredimike: right. that works. [15:36] sneakyness has joined the channel [15:37] allin: I think that https://github.com/rootslab/formaline is the best approach for uploading files [15:37] sivy has joined the channel [15:37] allin: node.superupload uses formidable [15:37] incredimike: well I will implement it verbatim and see what's up [15:38] H4ns: allin: right. i just chose formidable because it was commonly used and did the job for me. [15:38] incredimike: yea, that's why i would like to use formidible [15:38] incredimike: not a fan of reinventing teh wheel [15:39] tjholowaychuk has joined the channel [15:39] caolanm has joined the channel [15:39] Spion has joined the channel [15:39] jesusabdullah: eldios: No, not on g+ [15:40] isaacs has joined the channel [15:40] eldios: saw from your site =) [15:40] chjj: incredimike: my module is doing the same thing as formidable? [15:41] chjj: incredimike: something might be wrong on your end then, if two separate parsers are giving you the wrong result [15:41] hackband has joined the channel [15:41] mannymanny has joined the channel [15:41] brianc has joined the channel [15:41] dpritchett has joined the channel [15:42] mbthomas has joined the channel [15:42] zgryw has joined the channel [15:44] MrNko has joined the channel [15:44] incredimike: chjj: no, I hadn't implemented your module. I wasn't sure what "type" should have been. [15:45] gerad has joined the channel [15:45] fangel has joined the channel [15:46] mhausenblas has joined the channel [15:46] sneakyness has joined the channel [15:47] mannymanny: Thanks allin [15:47] mannymanny: formaline is great, are you from europe? [15:47] Vertice has joined the channel [15:47] mannymanny: .. [15:47] chjj: incredimike: it comes with a prepackaged middleware [15:47] al3xnull_ has joined the channel [15:47] chjj: incredimike: "type" is the content-type header, but that doesnt matter, you can use the included middleware by doing.. [15:48] chjj: incredimike: app.use(parted.middleware({path:__dirname + '/uploads'})); [15:48] chjj: it will give you a "body" object on the request, just like express does [15:48] chjj: for files it will give you a temporary path to the file [15:48] prettyrobots has joined the channel [15:49] chjj: so you can do whatever you want with it [15:49] chjj: by default, the upload directory is /tmp unless you specify it there [15:49] stephank has joined the channel [15:49] mannymanny: HI chjj why using parted instead of connect-form - formidable or formaline? [15:49] adambeynon has joined the channel [15:49] mannymanny: can you explain me a little? [15:49] chjj: mannymanny: its just the multipart parser i wrote, im not trying to compete with formidable [15:50] tjholowaychuk: the only downside to doing that before hitting a route is that you might want to bail on the upload after some logic in the route [15:50] tjholowaychuk: too large or the user isnt authorized etc [15:50] sneakyness: I'm not trying to sound bitter, but are there any -complete- node.js tutorials? I've followed at least 5 different multi-part todo examples, and none of them are finished [15:50] mannymanny: I ask only why is better! [15:50] tjholowaychuk: chjj should send me a link though! or add it to the connect wiki [15:50] chjj: tjholowaychuk: you can create a parser object yourself, and bind to events [15:50] prettyrobots has joined the channel [15:51] chjj: i should probably make a limit option, yeah [15:51] chjj: sure, ill add it to the wiki [15:51] tjholowaychuk: i have a limit() middleware [15:51] tjholowaychuk: it's not perfect yet [15:51] tjholowaychuk: but it should work fine [15:52] chjj: yeah, i know, im not sure if i want to make some kind of specific limit option just for this parser, or allow people to limit it with the connect middleware [15:52] tjholowaychuk: pretty much the same thing [15:52] H4ns: sneakyness: did you look at http://nodebeginner.org ? [15:52] balaa has joined the channel [15:53] tjholowaychuk: i just found when i paused the request watcher i couldnt respond [15:53] ParadoxQuine has joined the channel [15:53] CIA-69: node: 03isaacs 07master * r6b6f2b1 10/ src/node_root_certs.h : [15:53] CIA-69: node: Fixes #1610 Remove DigiNotar CA from trusted list [15:53] CIA-69: node: Details: [15:53] CIA-69: node: https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911 [15:53] CIA-69: node: http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php - http://git.io/ttzxXw [15:53] eldios: tjholowaychuk, how do I pass locals to a javascript script element inside a jade file? [15:53] tjholowaychuk: but if you respond with 413 [15:53] sneakyne_ has joined the channel [15:53] tjholowaychuk: then all the "data" events still hit you [15:53] CIA-69: node: 03isaacs 07v0.4 * ref27d56 10/ src/node_root_certs.h : [15:53] CIA-69: node: Fixes #1610 Remove DigiNotar CA from trusted list [15:53] CIA-69: node: Details: [15:53] CIA-69: node: https://threatpost.com/en_us/blogs/attackers-obtain-valid-cert-google-domains-mozilla-moves-revoke-it-082911 [15:53] CIA-69: node: http://www.coriolis-systems.com/blog/2011/08/diginotar-certificate-security.php - http://git.io/sB9N1Q [15:53] guillermo has joined the channel [15:53] hlindset has joined the channel [15:53] tjholowaychuk: eldios: script\n var foo = !{JSON.stringify(obj)} [15:53] incredimike: chjj: how would I access the parted data in the request? [15:54] tjholowaychuk: eldios look at express-expose [15:54] chjj: incredimike: its on the request object, `req.body`, just like in connect/express [15:54] eldios: thanks tjholowaychuk [15:54] FireFly has joined the channel [15:54] chjj: incredimike: if the field was a file, it will be a path to the uploaded file [15:54] sneakyne_ has joined the channel [15:55] sneakyness has joined the channel [15:56] slaskis: tjholowaychuk: express-expose was magic, used it on our nko entry. only problem was when i tried to use things with eventemitters since it's a c++ addon :/ [15:56] tjholowaychuk: huh [15:56] tjholowaychuk: it's not c++ [15:56] aron_ has joined the channel [15:56] mrdoodles: I've modularized all of my work into a nice neat mvc structure inside of express. one thing I'm wondering about is a cleaner way to reference the app.'s scripts PWD from my module? right now i have the fugly looking (I'm a stickler for "is there a less character method") : fs.readdir(__dirname + "/../../../controllers" [15:57] mrdoodles: that's within my module. [15:57] hunterloftis has joined the channel [15:57] aron_: Has anyone come across any issues with Function .bind() in v8? [15:57] tjholowaychuk: mrdoodles you could do __root = __dirname or something [15:57] slaskis: tjholowaychuk: not since 0.5.3 but in 0.4.x [15:57] mcepl_ has joined the channel [15:57] tjholowaychuk: or app.set('root', __dirname') etc [15:57] mannymanny has left the channel [15:57] tjholowaychuk: slaskis i dont get it [15:57] mcepl has joined the channel [15:57] chjj: incredimike: you do have a limit option for the middleware by the way, you can do parted.middleware({limit:x}), with the size in bytes [15:58] tjholowaychuk: express-expose just adds a string to an object [15:58] aron_: It seems to be changing the .length properties of all previously bound functions [15:58] tjholowaychuk: and adds it as a local [15:58] tjholowaychuk: that's it [15:58] slaskis: $ node [15:58] slaskis: > require('events').EventEmitter.toString() [15:58] aron_: eg. https://gist.github.com/afb829f0c18c03a7bb9e, any ideas? [15:58] slaskis: 'function EventEmitter() { [native code] }' [15:58] tjholowaychuk: oh, you were trying to expose an event emitter? [15:58] tjholowaychuk: it's not really meant for anyyyyyyy node object [15:58] tjholowaychuk: the only thing it gives you above json is Date objects and Functions [15:59] sneakyne_ has joined the channel [15:59] incredimike: well I'm going to have to assume that the problem is related to this silly ajax script I'm using [15:59] slaskis: haha, yeah well i just used eventemitter2 and it worked great :P [15:59] patrickgamer has joined the channel [15:59] tjholowaychuk: haha [15:59] hlindset has joined the channel [15:59] chjj: incredimike: it might be, if both my module and formidable are giving you the same problem [15:59] incredimike: because a basic file upload form field worked perfectly [16:00] sneakyness has joined the channel [16:00] mrdoodles: thanks tjholowaychuk. since I've only been and plan on working in node for the near future, what is the plan for 5.x becoming stable/adopted? [16:00] pizthewiz has joined the channel [16:00] tjholowaychuk: mrdoodles when it becomes 0.6.0 then it'll be stable :p [16:00] incredimike: shouldn't have expected any different. What kind of name is "plupload" anyway? :P [16:00] c4milo1 has joined the channel [16:00] mrdoodles: hah ok [16:01] kmiyashiro has joined the channel [16:02] kevwil_ has joined the channel [16:02] incredimike: chjj: how would your module feel about 1GB file uploads? [16:02] stelleg has joined the channel [16:02] patrickgamer has left the channel [16:03] shinuza has joined the channel [16:03] chjj: incredimike: performance-wise? [16:03] incredimike: maybe generally. [16:03] chjj: incredimike: it can obviously handle 1gb uploads, although i havent benchmarked it [16:03] adambeynon has joined the channel [16:03] robinduckett has joined the channel [16:04] incredimike: I don't expect many concurrent massive uploads [16:04] chjj: formidable might be faster, im not sure, i havent benchmarked them against each other [16:04] incredimike: ok sweet deal [16:04] smathy has joined the channel [16:04] incredimike: I might do that [16:05] tjholowaychuk: i wish formidable didnt crash on preambles [16:05] ParadoxQuine has joined the channel [16:05] tjholowaychuk: hope that patch gets in [16:05] chjj: ouch, i didnt know it did that [16:05] Draggor: any idea when node v0.5.x goes stable? [16:05] chjj: mine explicitly ignores the preamble and epilogue, maybe i should pass them in as events ;p [16:05] incredimike: but sadly I have to stop writing this code for now.. and write code that pays the bills [16:05] jtsnow has joined the channel [16:05] tjholowaychuk: even with CRLF--boundaryCRLF like you're supposed to it cant handle the initial CRLF [16:05] tjholowaychuk: yeah mine ignores too [16:06] incredimike: chjj, H4ns, etc. thanks for your help :] [16:06] chjj: incredimike: sure [16:07] mike5w3c_ has joined the channel [16:07] sneakyness: it's like, oh look, I think I finally found a useful node guide! "IMPORTANT: This guide is not ready to yet, please go away." oh :C [16:08] reid has joined the channel [16:08] sneakyness: also fab makes me feel funny inside [16:08] vicapow: is there a way to auto increment a field using mongoose and mongodb? [16:11] reid_ has joined the channel [16:12] irahgel has left the channel [16:12] softdrink has joined the channel [16:13] sonnym has joined the channel [16:15] pelmenntm has joined the channel [16:15] ParadoxQuine has joined the channel [16:16] dylang has joined the channel [16:16] devongovett has joined the channel [16:17] dgathright has joined the channel [16:17] alvaro_o has joined the channel [16:17] dexter_e has joined the channel [16:20] booo has joined the channel [16:21] devaholic has joined the channel [16:21] vidi has joined the channel [16:21] amerine has joined the channel [16:21] __sorin__ has joined the channel [16:21] ckpcw has joined the channel [16:23] balaa has joined the channel [16:24] marksoper: vicapow, you can auto increment a field using findAndModify as described here: http://groups.google.com/group/mongoose-orm/tree/browse_frm/month/2011-06?_done=%2Fgroup%2Fmongoose-orm%2Fbrowse_frm%2Fmonth%2F2011-06%3F& [16:25] Yoric has joined the channel [16:26] Fabryz has joined the channel [16:26] patrickgamer has joined the channel [16:26] zgryw has joined the channel [16:26] marksoper has left the channel [16:27] maushu: So, no mixin. [16:27] marksoper has joined the channel [16:27] dshaw_ has joined the channel [16:27] ParadoxQuine has joined the channel [16:28] TooTallNate has joined the channel [16:29] heavysixer has joined the channel [16:30] trentm has joined the channel [16:30] chrislorenz has joined the channel [16:32] ecin has joined the channel [16:32] sneakyness: oh my god I cannot win [16:32] robinduckett: ? [16:32] sneakyness: I thought I had hit the jackpot [16:32] sneakyness: alas, scroll to the bottom http://visionmedia.github.com/masteringnode/book.html [16:32] AphelionZ has joined the channel [16:32] gr-eg has joined the channel [16:33] robinduckett: sneakyness: why don't you just read the node.js api? [16:33] robinduckett: it's complete [16:33] godzirra has left the channel [16:33] yozgrahame has joined the channel [16:33] AphelionZ: hey all, I'm working with connect and I'm trying to access the connect.sid cookie from the front end but it's not included in document.cookie even though firefox shows the cookie as present in the preferences and the app is behaving as expected. What am I doing wrong? [16:33] jimt has joined the channel [16:34] robi42 has joined the channel [16:34] Aikar: AphelionZ: HTTP-Only cookie likely [16:34] AphelionZ: ok hang on [16:34] Aikar: blocks the ability to read the cookie from javascript [16:34] tjholowaychuk: Aikar httpOnly: true [16:34] tjholowaychuk: sorry AphelionZ ^ [16:34] tjholowaychuk: you have to pass an option [16:34] patrickgamer has left the channel [16:35] tjholowaychuk: to the session() middleware or you can do it per req.session.cookie [16:35] hornairs: nvm vs nave vs n? [16:35] Aikar: hornairs: neither, keep all your apps up to date on latest stable :P [16:35] hornairs: Aikar har har har, for testing silly [16:35] sneakyness: robinduckett: I've scrolled through it, that's great and everything, but I'm looking for complete examples of the bigger picture. [16:35] AphelionZ: tjholowaychuk: its probably better that I don't expose that data to the client, yeha? [16:35] AphelionZ: yeah* [16:35] robinduckett: sneakyness: what do you mean? [16:35] tjholowaychuk: yeah [16:36] hornairs: tjholowaychuk what made you write n in the presence of nave and nvm? [16:36] sneakyness: a list of functions does not an example make [16:36] captain_morgan has joined the channel [16:37] tjholowaychuk: hornairs no config, looks a bit better, easier to use IMO [16:37] hornairs: tjholowaychuk cool thanks [16:38] robinduckett: sneakyness: what are you trying to build? [16:38] sneakyness: all the things. [16:38] robinduckett: you're not going to find a generalised node tutorial for dummies [16:39] robinduckett: a list of functions is all we got [16:39] robinduckett: take them, or leave them [16:39] sneakyness: in all seriousness though, all of the web application examples I've found come with the disclaimer "this is a hack don't do shit like this" or they aren't complete [16:39] AphelionZ: lol time to refactor… again [16:39] seebees has left the channel [16:39] AphelionZ: my socket code doesn't have access to my req [16:40] seebees has joined the channel [16:40] robinduckett: sneakyness: in all seriousness, trying to find the defacto way to do things in node is stupid, because the api is constantly changing and new libraries and projects come out daily [16:40] robinduckett: the best way to do something today, WILL be the worst way to do something next week. [16:40] smathy: sneakyness… search github for: createServer listen [16:40] robinduckett: i would not use node.js in production right now. [16:40] robinduckett: but i do [16:40] robinduckett: because i'm cool [16:40] robinduckett: are you cool? [16:41] sneakyness: robinduckett: coming from almost 4 years of nonstop objectivec, this is… extremely uncomfortable [16:41] ronnieboy has joined the channel [16:41] chjj: sneakyness: what is uncomfortable exactly? [16:41] sneakyness: I did js before that, back when jquery was the new hotness and javascript was for all the cool kids [16:42] robinduckett: sneakyness: node is like the new girlfriend, you think you know her, until one day she comes back all smelly and covered in jizz from her bi-annual bukkake conference [16:42] sneakyness: I'd be more pissed that I wasn't invited tbh [16:42] kulor-uk has joined the channel [16:42] robinduckett: she then shaves half her hair [16:42] robinduckett: because it's spontaneous [16:42] chjj: if your only experience with js prior to this was with js, its no wonder youre not fond of js ;) [16:42] markdaws has joined the channel [16:42] chjj: was with jquery* [16:42] sneakyness: lol oh jeese no do not make that assumption [16:43] chjj: ;p [16:43] sneakyness: I just use that as a frame of reference to when I wrote it [16:43] markdaws has joined the channel [16:43] sneakyness: because I think it was a pretty big time for javascript [16:43] nahime has joined the channel [16:44] Cromulent has joined the channel [16:44] heavysixer has joined the channel [16:44] sneakyness: but anyways, I guess I've confirmed my fear that I'm just going to have to just make it up as I go :\ [16:44] ParadoxQuine has joined the channel [16:45] ecin_ has joined the channel [16:45] broofa has joined the channel [16:46] NetRoY has joined the channel [16:48] shinuza has joined the channel [16:48] jetienne has joined the channel [16:49] CIA-69: node: 03Ryan Dahl 07master * rd8f7a86 10/ (3 files in 2 dirs): Strip V8 -Werror - http://git.io/JDVn2g [16:49] StanlySoManly has joined the channel [16:50] sylvinus has joined the channel [16:51] adambeynon_ has joined the channel [16:52] snowinferno|2 has joined the channel [16:52] eddanger has joined the channel [16:52] versicolor has joined the channel [16:53] balaa has joined the channel [16:53] butu5 has joined the channel [16:54] ecin_ has joined the channel [16:55] ParadoxQuine has joined the channel [16:56] eyesUnclouded has joined the channel [16:56] ollym has joined the channel [16:58] ismell has joined the channel [16:59] mecablaze has joined the channel [17:00] djazz has joined the channel [17:02] luke` has joined the channel [17:03] Fabryz: anyone can link a decent/recent tutorial for Mongoose? [17:05] ParadoxQuine has joined the channel [17:06] perezd has joined the channel [17:07] ironlad has joined the channel [17:08] pickels has joined the channel [17:08] MrNko has joined the channel [17:08] topaxi has joined the channel [17:09] brianc has joined the channel [17:11] m00p has joined the channel [17:12] mecablaze: Has any here used the "yaml" package off npm? [17:12] saikat has joined the channel [17:12] rburke has joined the channel [17:12] robotarmy has joined the channel [17:12] godzirra has joined the channel [17:13] nibblebot has joined the channel [17:13] godzirra: Hey guys. I'm using express and I turned on the logger but for some reason its not logging on fedora. On my mac it logged just fine. Same code... [17:13] mecablaze: The reason I ask is it doesn't seem to like indentation of 4 spaces instead of 2 spaces (which is left undefined by the YAML spec, I believe) [17:13] godzirra: My code is here: http://pastie.org/2455374 if that helps. [17:14] vidi has joined the channel [17:14] sneakyne_ has joined the channel [17:14] tjholowaychuk: godzirra add app.use() before the app.get() [17:14] sneakyness has joined the channel [17:14] tjholowaychuk: godzirra the first call to app.get() etc adds the router [17:14] tjholowaychuk: which is middleware itself [17:14] godzirra: Oh. Huh. [17:14] godzirra: I wonder why it worked on the mac. [17:14] tjholowaychuk: ps #express [17:14] cce: mecablaze: YAML takes any level of indentation, provided it's done by spaces (not tabs) [17:14] tjholowaychuk: no clue [17:14] tjholowaychuk: haha [17:14] tjholowaychuk: it shouldnt have [17:14] godzirra: That did it. [17:15] godzirra: MAybe I just screwed it up at some point on one side or the other . Oh well, it works now. : ) thank you [17:15] tjholowaychuk: np [17:15] versicolor has joined the channel [17:15] Croms has joined the channel [17:15] ParadoxQuine has joined the channel [17:16] godzirra: Now if I could only get my nodejitsu invitation I'll be set. :) [17:16] avalanche123 has joined the channel [17:16] mecablaze: cce, i agree. the yaml module only likes 2-space indentation [17:16] trotter has joined the channel [17:16] tjholowaychuk: mecablaze it's not even remotely a full yaml implementation [17:17] tjholowaychuk: that's the problem :p [17:17] ilya_ has joined the channel [17:17] blueadept: tj: so when you going to convert all your code to coffeescript? [17:17] mecablaze: tjholowaychuk, I see. that's good to know. [17:18] tjholowaychuk: blueadept when js becomes a failure by being super trendy and looks like cs [17:18] blueadept: jk [17:18] tjholowaychuk: sometime around then [17:18] blueadept: haha [17:19] jchris has joined the channel [17:20] Vertice has joined the channel [17:20] sneakyne_ has joined the channel [17:21] sneakyness has joined the channel [17:22] pen_ has joined the channel [17:24] eignerchris has joined the channel [17:24] te-brian has joined the channel [17:26] Destos has joined the channel [17:27] guillermo has joined the channel [17:28] malkomalko has joined the channel [17:29] luke`_ has joined the channel [17:29] malkomalko has joined the channel [17:29] jro_ has joined the channel [17:31] ckpcw has joined the channel [17:32] chrislorenz has joined the channel [17:32] blax has joined the channel [17:34] ParadoxQuine has joined the channel [17:34] dnyy has joined the channel [17:35] JorgeRuiz has joined the channel [17:35] gerad has joined the channel [17:35] vicapow has joined the channel [17:35] blax: hi, does anybody know whether I could use ssl certificate and key concatenated in one file? [17:37] hoodoos has joined the channel [17:38] `3rdEden has joined the channel [17:38] brianseeders has joined the channel [17:38] hoodoos: hello guys, is there any lib that allow to use something like threads in .net or erlang? i can always start a whole separate node process but I guess it's a huge overhead. maybe there's some lighter paragigm implemented [17:38] socketio\test\96 has joined the channel [17:39] adnam: hoodoos: node runs on a single thread only [17:39] adambeynon has joined the channel [17:39] CarterL has joined the channel [17:39] ryah: hoodoos: why do you want that [17:39] jerrysv: hoodoos: what are you trying to do? [17:39] jerrysv: what problem are you trying to solve? [17:40] MrNko has joined the channel [17:40] guidocalvano has joined the channel [17:40] hoodoos: ehm, i'm trying to separate some logics to some kind thing that will not crash whole application if it dies [17:41] hoodoos: or protect it from application crash :) [17:41] hoodoos: ryah, when I began to program our project with node.js i was so consumed by it's non-blocking nature [17:42] hoodoos: but then enligntment came that if one worker dies all clients on it die too [17:42] hoodoos: so i decided to ask maybe there's some workaround or ways to solve this issue of mine [17:43] pjacobs: so, how does a mongo regex query work in mongoojs? I'm trying .find({ actor : '/^'+name+'/' }).execFind(fn); No luck... [17:43] Dmitrijus: hoodoos: so, just start the other node process (but then of course, you will have to deal with the ipc) [17:43] Fabryz has joined the channel [17:43] jerrysv: hoodoos: try/catch? (naive approach) [17:44] Fabryz: damn I hate when the webchat freezes [17:44] ParadoxQuine has joined the channel [17:44] hoodoos: Dmitrijus, yes, I'm thinking about it.. [17:44] MrNko has joined the channel [17:45] brianc has joined the channel [17:45] Dmitrijus: hoodoos: and it would be far more better than using threads, because threads just screw everything up [17:45] apanda has joined the channel [17:46] tjholowaychuk: how heavy are the v8 isolates? [17:46] hoodoos: hoodoos, well, yeah. I was looking into erlang. but it's pain to write something related to business with it =) [17:46] wadey has joined the channel [17:46] hoodoos: btw, our project is 100% node.js coded :) [17:46] Dmitrijus: hoodoos: i (well, "we") actually wrote some buisiness process management stuff with erlang [17:47] Fabryz: so, I have a Player.js player class model that I want to share between the client and the server: how to do that? I tried with require, tried with module.exports but failed, any suggestion? [17:47] Dmitrijus: hoodoos: and yeah, it is the suck, node.js is far more better :) [17:47] __sorin__ has joined the channel [17:47] dexter_e has joined the channel [17:48] einaros: could someone running chrome 14/15 on linux do me four seconds worth of a favor? [17:48] bengrue has joined the channel [17:48] zemanel: hi, anyone using jsmad? [17:49] abustin has joined the channel [17:49] hoodoos: Dmitrijus, thanks for suggestion. [17:49] Dmitrijus: hoodoos: and in the end, you still block on most .io in erlang :) [17:50] robotmay has joined the channel [17:50] aron_: Sorry to mention this again but I'm running into an issue where the length property of functions created using .bind() are being updated globally each time .bind() is called. Anyone know if this is a known issue? [17:50] sneakyne_ has joined the channel [17:50] abustin: Can someone confirm that this assert is working correctly ..... [17:51] abustin: AssertionError: {"oncomplete":"function afterWrite(status, handle, req, buffer) {\n var self = handle.socket;\n\n // callback may come after c == {"oncomplete":"function afterWrite(status, handle, req, buffer) {\n var self = handle.socket;\n\n // callback may come after c [17:51] abustin: at Object.afterWrite [as oncomplete] (net_uv.js:414:10) [17:51] abustin: brb [17:51] adrianmg has joined the channel [17:51] nibblebo_ has joined the channel [17:51] ryanj has joined the channel [17:51] Creap: I'm using Express and EJS, but at one place I only want to "compile" an object using a template, should I use an Express partial or just an ejs.render() call? [17:52] tjholowaychuk: Creap ejs.compile() if you want to compile [17:52] davidwalsh has joined the channel [17:53] Creap: tjholowaychuk: which would then return the results of the template? [17:53] patcito has joined the channel [17:53] Creap: (ie HTML) [17:53] tjholowaychuk: nope that returns the compile function [17:53] Creap: I guess I used the wrong word then [17:53] tjholowaychuk: ejs.compile(tmpl)(locals) => html [17:53] Creap: ok [17:53] Bonuspunk: http://i.imgur.com/g1apb.jpg [17:53] hybsch has joined the channel [17:53] sneakyness has joined the channel [17:55] djazz: How do i implement the new WebSocket protocol with Node? FF and chrome says "disconnected" after sending the new handshake [17:55] alts has joined the channel [17:55] maushu has joined the channel [17:56] context: djazz: use socket.io or faye or any websocket lib [17:56] creationix has joined the channel [17:56] djazz: context: it support the latest? [17:56] tylerstalder has joined the channel [17:57] clyfe has joined the channel [17:57] mjr_ has joined the channel [17:58] aheckmann has left the channel [17:58] sneakyne_ has joined the channel [17:59] prettyrobots: Is there a way to write multiple headers of the same key in HTTP response? [17:59] ParadoxQuine has joined the channel [17:59] clyfe has left the channel [17:59] sreeix has joined the channel [18:00] franck34: what is your favorite npm module to display things at X,Y in a console with colors ? seem's there are so many, i can't choose ;) [18:01] franck34: prettyrobots: why do you want to do that ? Cookies ? [18:01] Sembiance: franck34: like ncurses? [18:01] franck34: djazz: i suggest faye/bayeux module, i'm using it it's working like a charm and it's easy to use [18:01] franck34: Sembiance: something like that yes [18:02] franck34: node-ncurse .. [18:03] m0 has joined the channel [18:03] arlolra has joined the channel [18:03] MrNko has joined the channel [18:03] sneakyness has joined the channel [18:03] franck34: Sembiance: yep, that's it, thanks ;) [18:03] arlolra has left the channel [18:03] jj0hns0n has joined the channel [18:04] vaheh has joined the channel [18:05] prettyrobots: franck34: I've been reading the spec, so I see that keys are supposed to be unique. [18:05] fangel has joined the channel [18:06] broofa_ has joined the channel [18:07] prettyrobots: franck34: And I see that you're supposed to comma separate them. [18:07] prettyrobots: So, I figured it out. Java taught me some bad habits. [18:07] prettyrobots: Sad. [18:07] boltR has joined the channel [18:07] djazz: context, franck34: http://pastebin.com/HXBqHqZD why it's not working? [18:08] Nuck has joined the channel [18:08] abustin: so i'm poking around in net_uv.js [18:08] arthurd has joined the channel [18:08] balaa has joined the channel [18:09] abustin: at the write method [18:10] abustin: it seems like ... writeReq.oncomplete = afterWrite; .. might be being called right away [18:10] sneakyne_ has joined the channel [18:10] sneakyness has joined the channel [18:11] micheil has joined the channel [18:11] Niels77 has joined the channel [18:12] abustin: the afterWrite(..) is the method with the failing assert [18:12] micheil_mbp has joined the channel [18:12] abustin: var req_ = self._writeRequests.shift(); [18:12] abustin: assert.equal(req, req_); [18:13] Niels77 has left the channel [18:14] cpetzold has joined the channel [18:16] abustin: is this only happening on Windows fyi [18:17] abustin: also .. watchFile seems to be broken on Windows .. any know reasons? [18:17] abustin: ( trying to deploy to all 3 major platforms ) [18:17] ParadoxQuine has joined the channel [18:18] sneakyne_ has joined the channel [18:18] yozgrahame has joined the channel [18:19] Nuck: ACTION points to libuv [18:19] slifty has joined the channel [18:19] Nuck: Probably in there [18:19] Peniar has joined the channel [18:19] mehlah has joined the channel [18:19] sneakyness has joined the channel [18:20] djazz: Icontext, franck34: digging in Faye's code gives me the same code I use :P [18:20] djazz: context* [18:20] abustin: we're trying the precompiled node.exe .. might this be a cause? [18:21] sharkbird has joined the channel [18:21] Sembiance: franck34: problem with node-ncurses is it's just a raw, direct binding to ncurses. So it exposes all the c-style names/methods/etc into node.js I'd love to see a better API/coding style for creating console based apps with node.js [18:21] Nuck: abustin: Do you know C? [18:21] Sembiance: something that maybe uses ncurses underneath, but exposes a much nicer API [18:21] Nuck: If so, check out the code for libuv :P [18:21] altamic has joined the channel [18:22] abustin: I know enough to get by [18:22] Aikar: Sembiance: both are important to have :P [18:22] Aikar: some people would prefer a familiar interface to ncurses [18:22] Aikar: but then others would prefer your suggestion [18:22] Sembiance: Aikar: yes, you are correct. But are aware of any module that is a bit, higher level than node-ncurses? [18:22] Sembiance: I'm only aware of node-ncurses... [18:22] Nuck: I too would like a custom-built JS-based TUI module [18:22] Aikar: nope, never used ncurses :P [18:23] liveink has joined the channel [18:23] Nuck: See if you can get SubStack to make it :P [18:23] tylerstalder has joined the channel [18:23] Nuck: lol [18:23] Sembiance: rofl! nuck! [18:23] Sembiance: so true [18:24] softdrink: here, clone this and make it better: https://github.com/jocafa/node-term-ui :) [18:24] godzirra: Okay… so how do you serve up a static xml file from express? I'm doing it wrong apparently. :/ [18:24] softdrink: i haven't worked on it since november of last year apparently. [18:24] pen has joined the channel [18:24] balaa has joined the channel [18:25] Destos has joined the channel [18:25] abustin: yeah I don't really have spare time to crawl libuv lol [18:25] lot49 has joined the channel [18:25] Nuck: abustin: Heh, talk to somebody who works on libuv, like ryah or piscisaureus (I think) [18:26] lightcap has joined the channel [18:26] hornairs has joined the channel [18:27] apanda has joined the channel [18:27] softdrink: hrm… i really should work on this lib some more heh [18:27] sandropadin has joined the channel [18:27] DTrejo has joined the channel [18:27] CarterL: i have a question that's not specifically a node.js question... How would one handle search for a site that uses multiple nosql databases? [18:27] Aikar: so I saw Harmony proxies is being worked into V8 finally, anyone know if they are default on and in node .5.x now? [18:28] ParadoxQuine has joined the channel [18:28] Nuck: abustin: If you poke them in the eye with a rolled-up piece of paper containing your question, they usually respond. [18:29] sandropadin: anyone else notice that installing npm viar curl hangs? [18:29] paulwe has joined the channel [18:30] Nuck: sandropadin: Yeah? You and what platform? [18:30] sandropadin: I've tried it on an Ubuntu 10.04 install [18:31] sneakyne_ has joined the channel [18:31] mavus has joined the channel [18:31] sneakyness has joined the channel [18:31] bnoordhuis: abustin: if you have a standalone test case, please file a bug report [18:32] sandropadin: seems to work fine on OS X 10.5.8 (Old, I know) [18:32] marlun: I'm trying to get stylus working with express. Is it supposed to compile the .styl files when I try to access a .css file from the client? [18:32] tjholowaychuk: marlun when they have changed yeah [18:32] tjholowaychuk: or if they have not yet been compiled [18:32] abustin: im just serving files fs.createReadStream(file).pipe(res); [18:32] mrdoodles has joined the channel [18:32] tjholowaychuk: marlun can i see your config? [18:33] shapeshe1 has joined the channel [18:33] eazyigz has joined the channel [18:33] abustin: with maybe 20 clients connections downloading ~500 files [18:33] abustin: brb (meeting) [18:34] sneakyne_ has joined the channel [18:34] gerad_ has joined the channel [18:34] mrdoodles: hah bukakke [18:35] Nuck: ... [18:35] garrensmith has joined the channel [18:35] Nuck: mrdoodles: I'm sorry, did you get jizz on your face? [18:36] mrdoodles: hah, no. but i was reminiscing about a brief stint playing xbox live and my gamer tag "bukakkekid" being fine for about 2 weeks then being notified that it was suspended .. [18:36] Nuck: Bahahahahah [18:36] Nuck: EPIC [18:37] Nuck: hmmm [18:37] Nuck: debating getting a hostmasks [18:39] newy has joined the channel [18:39] mikeal has joined the channel [18:40] ParadoxQuine has joined the channel [18:40] marlun: tjholowaychuk: Sure, don't think your are going to like it though... :P https://gist.github.com/1181652 [18:40] newy: our NKO entry :) http://news.ycombinator.com/item?id=2942649 [18:40] sirdancealot has joined the channel [18:40] tjholowaychuk: haha boom, moar coffee [18:41] Nuck: tjholowaychuk: Explosive beverages? WIN [18:41] tjholowaychuk: marlun: you can just set src: if you want them to be the same [18:41] tjholowaychuk: but [18:41] springmeyer has joined the channel [18:41] marlun: tjholowaychuk: thought so but I added it in my debugging :) [18:41] vipaca has joined the channel [18:41] vipaca has joined the channel [18:41] tjholowaychuk: marlun just do src: public_dir [18:42] tjholowaychuk: GET /stylesheets/foo.css [18:42] tjholowaychuk: will grab ./public/stylesheets/foo.styl [18:42] madsleejensen has joined the channel [18:42] altamic_ has joined the channel [18:42] altamic_ has joined the channel [18:43] CoverSlide has joined the channel [18:43] AvianFlu has joined the channel [18:44] _sorensen_: newy: why facebook login? [18:45] _sorensen_: i'll have to wait to test it out [18:45] jhurliman has joined the channel [18:45] _sorensen_: looks neat [18:45] newy: _sorensen_: we though real names and avatars might be fun [18:45] _sorensen_: heres ours: http://sponoders.nko2.nodeknockout.com/ [18:47] marlun: tjholowaychuk: hmmm must be doing something wrong because the log shows me '"GET /styles/main.css HTTP/1.1" 404' but I got a main.styl file in public/styles/main.styl [18:47] aliem has joined the channel [18:47] iFire: gah [18:47] iFire: what's that tool where you can throttle the usage of any process [18:47] iFire: it's cloud based [18:47] iFire: I can't find it on google [18:48] aron_ has joined the channel [18:48] iFire: if you have bunch of node js [18:48] _aron has joined the channel [18:48] sub_pop has joined the channel [18:48] iFire: processes [18:48] iFire: you can have priority [18:49] ParadoxQuine has joined the channel [18:50] V1 has joined the channel [18:50] eyesUnclouded has joined the channel [18:50] CoverSlide: that's managed by the kernel [18:51] jellosea has joined the channel [18:51] CoverSlide: you can use renice as root [18:51] shipit has joined the channel [18:51] geeta has joined the channel [18:51] jellosea: when i'm making memcache calls using node, i'm seeing that each subsequent call has a greater latency [18:51] sirdancealot has joined the channel [18:51] jellosea: i wiresharked the responses from memcache and it doesn't seem like the problem is with memcache, [18:51] jesster7 has joined the channel [18:52] jellosea: so node is slowing down the responses somehow - anybody has an idea why this is? [18:52] iFire: CoverSlide no it's not kernel based [18:52] iFire: they use something the slices the usuage [18:52] iFire: I just can't find the company [18:53] sirdancealot has joined the channel [18:53] CoverSlide: well if it's a unix-based tool most likely it's just a frontend for nice / renice [18:53] fdenbow has joined the channel [18:53] sneakyness has joined the channel [18:54] zackattack has joined the channel [18:54] marlun: tjholowaychuk: Had some old changes left, it's working now. thanks! [18:59] Cromulent has joined the channel [18:59] ParadoxQuine has joined the channel [18:59] Glenjamin_ has joined the channel [19:00] Glenjamin_: Hi guys, I have a recollection of a quote about JS which said something like "JavaScript is the only programming language where the majority of people writing it never learnt it" [19:00] Glenjamin_: I'm trying to track down the exact quote and source, any ideas? [19:01] Croms: Glenjamin: Crockford. [19:01] heavysixer has joined the channel [19:01] Glenjamin_: yup, thanks - just found it :) [19:03] balaa has joined the channel [19:03] devaholic has joined the channel [19:04] edwardmsmith has joined the channel [19:05] iFire: GAH [19:05] iFire: I can't find it [19:05] ryanfitz has joined the channel [19:05] armando_neto has joined the channel [19:06] kimico has joined the channel [19:06] CIA-69: node: 03koichik 07master * r6f60683 10/ (4 files in 4 dirs): [19:06] CIA-69: node: tls: x509 certificate subject parsing fail [19:06] CIA-69: node: Fixes #1568. - http://git.io/TV-HfQ [19:07] Glenjamin_: iFire: is that in reference to me? [19:08] eboyjr has joined the channel [19:09] iFire: Glenjamin_ basically I spent half an hour [19:09] iFire: trying to find this small startup [19:10] iFire: that gives you a service [19:10] iFire: that can manage how the server uses jobs [19:10] iFire: I remember a blog post [19:10] dsirijus has joined the channel [19:10] iFire: where they saw this process was using too much [19:10] dgreene has joined the channel [19:10] iFire: so they slowed down the process and let it run over a longer priod of time [19:10] creationix has left the channel [19:11] iFire: somehow [19:11] iFire: without touching nice [19:11] iFire: or doing cpu limits [19:11] blup has joined the channel [19:12] dnjaramba has joined the channel [19:13] pjacobs2 has joined the channel [19:13] ph^ has joined the channel [19:14] captain_morgan has joined the channel [19:14] csanz has joined the channel [19:15] sneakyness has joined the channel [19:17] felixhummel has joined the channel [19:18] ParadoxQuine has joined the channel [19:19] Aikar: http://www.youtube.com/watch?v=KHy7DGLTt8g [19:19] Aikar: err [19:19] Aikar: wrong chan [19:19] Aikar: but still you guys can have it too :P [19:20] DrMcKay: Aikar: yeah, I wasn't planning to do any job today, anyway [19:20] facorreia has joined the channel [19:21] malletjo: 10 hours of pure joy [19:21] facorreia: hi. I'm looking for options on how to do integration testing on a node app that implements a RESTful, JSON api [19:22] Aikar: http://www.youtube.com/watch?v=jI-kpVh6e1U [19:22] facorreia: some way of sending requests to a running node app and check status codes and responses [19:22] Aikar: a better 10 hours! [19:22] yept has joined the channel [19:22] mraleph has joined the channel [19:22] pietern has joined the channel [19:22] tjholowaychuk: facorreia just use node's http client [19:23] tjholowaychuk: wrap it in a little helper [19:23] csanz has joined the channel [19:23] malletjo: if i want to run batch nodejs script through node-crontab .. the best way is with child_process ? [19:23] facorreia: tjholowaychuk: ty, I'll look into it; would I run it from the same app/process or from a second node process? [19:23] tjholowaychuk: facorreia same [19:23] facorreia: tjholowaychuk: ty, I'll do some digging [19:24] tjholowaychuk: facorreia expresso has assert.response() you might want to look at how that is implemented [19:25] vikstrous_ has joined the channel [19:25] balaa has joined the channel [19:25] facorreia: tylerstalder: ok I'll look into expresso, ty [19:25] hellp has joined the channel [19:27] ParadoxQuine has joined the channel [19:28] Nuck: lel [19:28] Nuck: I just set my iPhone on my quesadilla [19:28] yept has joined the channel [19:28] sylvinus has joined the channel [19:29] Nuck: All I can say is "fuck yeah oleophobic" [19:29] seebees has left the channel [19:29] hagen has joined the channel [19:29] liveink has joined the channel [19:32] markwubben has joined the channel [19:32] csanz has joined the channel [19:33] wdperson has joined the channel [19:34] garrensmith: if I want to save a model with mongoose, its just model.save(callback)? [19:34] galaxywatcher has joined the channel [19:36] vi3 has joined the channel [19:37] MrNko has joined the channel [19:38] djazz has left the channel [19:38] Nuck: Wow, MrNko is unstable, huh? [19:39] __sorin__ has joined the channel [19:39] vikstrous__ has joined the channel [19:41] mrdoodles: hey everyone, can someone lead me to a doc on possible stats i can get either with node in general or express on users, active users, server load etc? i.e., i saw this nice tidbit for memory somewhere on github, var memoryObj = process.memoryUsage(); [19:41] astropirate has joined the channel [19:41] mrdoodles: for example, how can i get active sessions, or any other server type data? [19:42] mcluskydodallas has joined the channel [19:43] tjholowaychuk: mrdoodles sessions have a lastAccess property, but depending on the store it can be easy or difficult to use that to determine how many users are online [19:43] savage- has joined the channel [19:43] mrdoodles: ahh ok [19:44] Nuck: I want an epic analytics platform for Node :D [19:44] zackattack has joined the channel [19:44] Nuck: I expect my company will probably end up building that if we can't find one, TBH [19:44] mrdoodles: tjholowaychuk: also i know i've said thank you before, but i've just been given an opportunity to lead a well funded startup and as the architect they even …. wait for it …. let me choose the design. so node/mongo. [19:44] ParadoxQuine has joined the channel [19:44] mrdoodles: so thanks for all of the help dude. [19:44] Nuck: Also, I need an algorithmic rate-limiter [19:44] Nuck: Based on running averages [19:45] tjholowaychuk: mrdoodles nice! good to hear [19:45] lluad has joined the channel [19:45] Nuck: mrdoodles: I'm starting a startup with the same architecture [19:45] mrdoodles: Nuck: i've busted out everything into mapped controllers, drop in models with mongoose and views with ejs. the mapping stores analytics info [19:45] mrdoodles: Nuck: awesome! [19:45] Nuck: But we're using Mongo-native [19:46] Nuck: Because Mongoose is just too heavyweight for me [19:46] mrdoodles: ahh [19:46] Nuck: All I want is SQL-esque queryable JSON [19:46] Nuck: It's something I've wanted for years [19:46] Nuck: And with Mongo, I get it :D [19:47] Nuck: I once tried to build a query system for JSON [19:47] mrdoodles: they know i've been working startups since bubble #2, hah - but on php and ruby. they know I've just been doing node for a month. I'm actually reading a mongo book now, tomorrow's my first day [19:47] mrdoodles: exactly mongo just makes sense [19:47] Nuck: But Mongo is obviously faster, using BSON [19:47] Aikar: Nuck: i'm using mongoskin currently and its being ok. though the doc is pretty bad [19:47] Nuck: It really does Just Make Sense(tm) [19:47] battlecollie has joined the channel [19:48] Aikar: mostly follows mongo shell style [19:48] Nuck: Aikar: Well, mongo-native is well-documented and is like if the Mongo console were async [19:48] Aikar: Nuck: yeah mongoskin is a futures layer onto of mongo-native [19:48] Nuck: mrdoodles: I'm going all the way with my startup, hopefully. [19:48] Nuck: Aikar: Futures? [19:48] mrdoodles: i love mongo, and i love mongoose, but yeah the docs :/ [19:48] mrdoodles: Nuck: are you in NYC? [19:49] Nuck: mrdoodles: Nah, I'm in the central valley in Cali [19:49] Nuck: 100 miles from the bay [19:49] blup: has anyone tried batman.js yet? [19:49] Nuck: mrdoodles: I'm applying to Y Combinator in the next month or so [19:49] mrdoodles: cool i was just there working on a project [19:49] mrdoodles: ah cool [19:49] mrdoodles: i built the front end (they had a backend guy already) of frid.ge [19:49] Aikar: Nuck: var db = mongoskin.db('localhost/mydb'); var myfoocollection = db.collection('foo'); myfoocollection.find().each(function() { }); [19:50] mrdoodles: sold to google recently y-combinator incubated [19:50] Nuck: The moment I got the tweet from Paul Graham, I was at the College, hanging out, then I just said "Okay, I'm going home now, my chance is now!" [19:50] Aikar: https://github.com/guileen/node-mongoskin [19:50] mrdoodles: sick man [19:51] Nuck: mrdoodles: We've got 4 guys: an epic SA in the Netherlands, a mobile dev in NZ, a community and "odd jobs" guy in Detroit area, and me in Modesto [19:51] Nuck: I'm doing the majority of our backend [19:51] Nuck: But the "odd jobs" guy is learning Node to help me [19:51] williamli has joined the channel [19:52] mrdoodles: word. i think y-c is still taking just 2-3 founders though …? [19:52] Nuck: (he's awesome to bounce ideas off of, too, since he understands fucking everything) [19:52] Nuck: mrdoodles: 2-5 IIRC [19:52] mrdoodles: paul graham in "on startups" said the magic number is 2-3 [19:52] mrdoodles: ahhh [19:52] Nuck: We have more than the idea [19:52] Nuck: *ideal [19:52] Nuck: But we each play a very important role [19:52] Nuck: We're all pretty young, self-taught programmers [19:52] Aikar: Nuck: its pretty much same mongodb-native but you dont nest callbacks as much. [19:53] Nuck: Except the SA [19:53] Aikar: makes using it a ton more friendly [19:53] Nuck: Aikar: Might look into it. Is it fully compatible with the code I already have? [19:53] Aikar: should be very close.. the main diff is you dont have to wrap your code in a callback [19:54] Aikar: ie db.collection('foo', function(col) { col.find(); becomes var foo = db.collection('foo'); foo.find() [19:54] Nuck: Our SA is a well-educated man, very dedicated to the art of Server Administration, and he's willing to host us for free :D [19:54] Nuck: I just learned programming very young [19:55] Nuck: So I've got some years under my belt [19:55] balaa has joined the channel [19:57] gazumps has joined the channel [19:57] Nuck: ACTION should go back to work on this multipart/form-data parser [19:57] N0va` has joined the channel [19:58] dscape: anyone knows everyauth? [19:59] mrdoodles: dscape: i tried using it, failed. i just rolled my own with mongoose [19:59] ParadoxQuine has joined the channel [20:00] dscape: mrdoodles: im guessing you wont be able to help much then ;) [20:00] dscape: thanks anyway [20:00] mrdoodles: hehe sorry! [20:00] Nuck: everyauth is the thing for letting people log in with just about anything, right? [20:00] Nuck: I think that's silly [20:00] Nuck: And overkill, confusing consumers [20:01] dscape: yeah, thanks for the input Nuck [20:01] Nuck: "WHICH BUTTON DO I CLICK D:" [20:01] zgryw has joined the channel [20:01] kalonis has joined the channel [20:01] dscape: send an email to the guys writing oauth saying it's stupid :P lol [20:01] cliffff has joined the channel [20:01] dscape: included a lolcat [20:03] CoverSlide: you know what's silly? [20:03] CoverSlide: 5 million different passwords whenever you want to sign up for some service [20:03] Nuck: lol [20:04] ckknight has joined the channel [20:04] Nuck: I wish I could log everything in with my Google Account [20:04] Nuck: Since that ain't hackable [20:04] Nuck: It's fucking two-factor [20:04] CoverSlide: nothing is unhackable [20:04] Nuck: well yeah [20:04] Nuck: But it's more secure than my Bank account [20:05] csanz: dscape: tried it too... it turns out that implementing auth with fb, github, twitter and fb is pretty simple... i spent more time figuring out how everyauth worked until I decided to do my own [20:05] ank has joined the channel [20:05] dscape: hey christian :D [20:05] csanz: dscape: sup buddy :) [20:05] dscape: yeah im trying to figure out how to pass the secret from the email [20:05] Aiden has joined the channel [20:05] Nuck: I'm prolly gonna provide Twitter, Facebook, and Google buttons for registration [20:05] dscape: and im like - soo much magic happening i dont even know where to put it :) [20:06] squeese has joined the channel [20:07] Nuck: Magic sucks [20:07] Nuck: I hate magical APIs [20:08] Nuck: All I want is something that does the bare minimum. Express, Mongo-native, etc. [20:09] Nuck: Also my parser, which will do the bare minimum :D [20:10] Gojohnnyboi has joined the channel [20:10] radiodario has joined the channel [20:10] Nuck: I think people seem to forget that one of the design goals for Node was to avoid such "magical" things [20:10] Charuru has joined the channel [20:11] tjholowaychuk: Nuck just wait for proxies [20:11] tjholowaychuk: you'll be rolling in magical fun [20:11] Nuck: Proxies? [20:11] tbranyen: i'm gonna proxy one object to another and you won't even know what i'm doing [20:11] Nuck: lol [20:11] tbranyen: missing properties? no sweat, Math.random is waiting [20:11] Nuck: lolwat [20:11] CoverSlide: wtfproxies? [20:11] troy_ has joined the channel [20:12] CoverSlide: proxies ~= pixies? [20:12] CoverSlide: pixies are magical [20:12] tbranyen: harmony proxies [20:12] Nuck: node-proxy :P [20:12] svnlto has joined the channel [20:12] JaKWaC has joined the channel [20:12] mikey_p: ACTION waits for "yo dawg, i put a proxy in your proxy..." [20:12] misterm_ has joined the channel [20:13] Country has joined the channel [20:13] Nuck: Yo dawg, I heard you like abstractions [20:14] MrNko has joined the channel [20:15] Vicente has joined the channel [20:15] Vicente: hi [20:15] blup has joined the channel [20:15] gkmngrgn has joined the channel [20:15] Vicente: #node.js [20:16] DTrejo: hi Vicente [20:16] tjholowaychuk: herrow [20:16] Vicente: good nigth :) [20:16] Vicente: I'm looking for creationix [20:16] williamli has joined the channel [20:17] Vicente: I read his blog posts at howtonode and I'd like that he recomends me a good javascript book to know how it works [20:17] ParadoxQuine has joined the channel [20:17] fmeyer has joined the channel [20:17] Vicente: but your advices are apreciated too :) [20:18] caolanm has joined the channel [20:18] smathy: Send him a message. You know how to use IRC? [20:19] Vicente: yes, thanks a lot [20:19] ckknight has joined the channel [20:19] Vicente: he is online and I'm talking with him now [20:19] Vicente: thank you :) [20:19] armando_neto has joined the channel [20:19] TheEmpath has joined the channel [20:19] mobile has joined the channel [20:20] xicubed has joined the channel [20:20] abustin_ has joined the channel [20:21] krh has joined the channel [20:21] AphelionZ has joined the channel [20:21] mobile has joined the channel [20:22] AphelionZ: Is there something that's the equivalent of a document root in node? For example, if i run my index.js in /folder/, and it calls some stuff in /folder/node_modules, __dirname will reflect the deeper folders, when i want to find the path of the index.js [20:22] saikat has joined the channel [20:22] __tosh has joined the channel [20:23] EyePulp has joined the channel [20:23] nahime has joined the channel [20:23] EyePulp: yo ho ho [20:23] williamli has joined the channel [20:24] edwardmsmith has joined the channel [20:25] eldios has joined the channel [20:25] AphelionZ: what I ended up doing was passing __dirname from my root index.js, which works fine [20:25] AphelionZ: just wondering if there was another way to go about it [20:26] CoverSlide: AphelionZ: __dirname is the directory of the current .js file. process.cwd() will get you the base dir for the application i.e. the script you ran from the command line [20:26] balaa has joined the channel [20:26] AphelionZ: ah, thank you! [20:26] CoverSlide: there might be a better way, cant think of it at the top of my head [20:27] AphelionZ: that seems perfectly adequate [20:28] qbert_ has joined the channel [20:29] qbert_: Hey all , need some design help for this project http://thecodebase.com:3001/?reportId=4e5d47cfd929e50557000002 [20:30] qbert_: The premise is inline ticketing, you make a comment and hash tag like, // Fix this soon #r1 ^4 [20:30] qbert_: The script runs and spits out a url for you to hit [20:30] ckknight has joined the channel [20:30] qbert_: I want to automagically keep track of there history, is using there IP address to invasive ? [20:31] qbert_: I want users to not have to set anything up [20:31] ajpiaNOU has joined the channel [20:31] al3xnull_ has joined the channel [20:31] hornairs has joined the channel [20:31] bluesmoon has joined the channel [20:32] qbert_: public key maybe ? [20:32] lot49 has joined the channel [20:33] rick_h_ has joined the channel [20:33] Charuru has joined the channel [20:34] guidocalvano: is it possible to have a prototype C inherit from a prototype P without C.prototype = new P() ; ? [20:35] williamli has joined the channel [20:35] fitzgen has joined the channel [20:36] ParadoxQuine has joined the channel [20:36] Ratty_: guidocalvano: Sure: C.prototype = Object.create(P.prototype) [20:36] guidocalvano: tnx [20:36] guidocalvano: way nicer [20:36] mrdoodles: question on middleware and express. i have a nice setup i created for auth. i've now predefined my controllers with authorization levels. how can i intercept each call with my auth function first? so say app.get("/some/page", function(request, response) { … <- auth somewhere in there? [20:36] Ratty_: May not work in fetch realtime data from an persistant https stomp request -> redis -> web app (qooxdoo) using faye [21:08] mcluskydodallas has joined the channel [21:09] polotek: anybody here really familiar with using node-mysql in non-trivial apps? [21:09] franck34: i'm using sqlite and mysql with "trivial" apps [21:09] Nuck: Why would one use MySQL when you can use NoSQL? [21:10] franck34: :D [21:10] Nuck: Mongo 4 life [21:10] franck34: redback live [21:10] franck34: s/live/life [21:10] Nuck: redback? [21:10] franck34: abstract layer over redis, with full text search etc [21:11] Nuck: ah [21:11] Nuck: I deal with raw Mongo through mongo-native [21:11] franck34: i don't know mongo, can you resume benefits ? [21:11] Nuck: resume benefits? [21:11] context: riak ! [21:11] franck34: explain benefits [21:12] djazz: franck34: oh, now it works! [21:12] polotek: how does node-mysql handle transations? does it peg you to a connection? [21:12] Nuck: Mongo is like SQL for JSON [21:12] Nuck: 'nuff said [21:12] djazz: i used several socket.write instead of one [21:12] djazz: :S [21:12] context: nuck: absolutely HORRIBLE explaination [21:12] bloudermilk has joined the channel [21:12] ekryski has left the channel [21:12] Nuck: context: It has other benefits, too, but the one that always caught me was the fact that it's JSON with a query language. [21:13] franck34: interesting [21:13] Nuck: Which is something I'd wanted for YEARS [21:13] Nuck: Mongo also has great sharding and scalability features [21:13] Nuck: Replication is pretty good too, or so I hear [21:13] franck34: mongo = fulltext search, view ? [21:13] context: franck34: its a schema-less document store. [21:14] Nuck: I believe it has fulltest search. [21:14] Nuck: Not sure tho [21:14] context: franck34: http://www.mongodb.org/ [21:14] context: you should try the internets, they has 'pages' explain its stuff [21:14] franck34: i'll take a look. I'm using redis/mysql. Perhaps i can drop mysql ? [21:14] context: they both have their purposes. [21:15] ParadoxQuine has joined the channel [21:15] Nuck: It's a similar scale to MySQL, a full-size database [21:15] Nuck: But it's JSON [21:15] Nuck: So it's nestable and such [21:15] franck34: i need to store data and make complexe sql queries, and store result in redis, to be able to update a GUI using faye in realtime [21:15] jokil: Nuck: comparing it to SQL is misleading. mongo is not relational [21:15] Nuck: context: Sure, but I've yet to find a situation Mongo couldn't handle :P [21:15] context: yes except you go NO acid compliance, no transactions, and no referencial integrety. [21:15] bloudermilk: Howdy everyone. I'm currently evaluating node to serve as a simple HTTP reverse proxy. I was hoping to get some feedback on its usefulness in this field. I'd like to route to Rails http servers based on the reques's host [21:16] Fabryz: Anyone knows how to preventDefault on everything BUT input fields? [21:16] Nuck: jokil: What I mean is that it has a query language that provides similar capabilites to something like SQL [21:16] context: nuck: tell any bank to move ti mongo they will probably kick you in the head and ensure your body is never found again. [21:16] Fabryz: moving my char with arrows and using TAB for player score, but I don't want scrollbar to move NOR focus going around with tab [21:16] piscisaureus: abustin: hey [21:16] jokil: bloudermilk: try https://github.com/nodejitsu/node-http-proxy [21:16] eee_c1 has joined the channel [21:16] sirdancealot has joined the channel [21:16] franck34: bloudermilk: in a few day, i need to benchmark node https reverse proxy and compare it to apache lol [21:16] piscisaureus: abusting: I can't really make up what the program is doing [21:16] piscisaureus: Can you paste that code to gist or pastebin? [21:16] Nuck: context: heh, fair enough, but they probalby shouldn't use MySQL either ;) [21:16] bloudermilk: jokil: Thanks! I'll take a look [21:16] polotek: bloudermilk: why use node for that? [21:16] djazz: ws.send("AAA); --> :S [21:17] Nuck: MySQL is pretty notorious for injection attacks [21:17] polotek: wny not just nginx? [21:17] TooTallNate: bnoordhuis: ryah: ugghhhh, I really didn't want it to come to this: https://github.com/bnoordhuis/node-buffertools/commit/f223aee7d0c08ee7e83802d662e9697a1b8c1db1 [21:17] Nuck: polotek: Well, Nginx sucks for revers proxy [21:17] franck34: djazz: what is the problem ? [21:17] bloudermilk: polotek: I was looking at nginx but it doesn't support websockets [21:17] Nuck: It uses HTTP 1.0 to route to the servers [21:17] djazz: i guess the protocol encodes the data somehow [21:17] context: nuck: correct. [21:17] bloudermilk: Also I'd like my router to be highly dynamic (adding new hosts on the fly w/o taking down everything) [21:17] piscisaureus: abustin: ^ [21:18] franck34: bloudermilk: node is your solution :) [21:18] bloudermilk: polotek: Essentially I'm building a very stripped down version of Heroku for client projects at my consultancy [21:18] bloudermilk: Heroku is way to expensive for our smaller clients [21:18] sirdancealot has joined the channel [21:18] bloudermilk: *too [21:18] bloudermilk: franck34: Thanks for the encouragement [21:18] Nuck: context: Can't easily inject when everything is treated a a string [21:18] DrMcKay has joined the channel [21:19] Nuck: As in Mongo [21:19] Nuck: You don't just concatenate a couple strings, you generate an object [21:19] polotek: mysql is notorious for injection because nobody uses escape [21:19] Nuck: polotek: It's hard to remember, and Node doesn't provide that, AFAIK [21:19] Nuck: Prolly a module for it [21:20] polotek: Nuck: correct, but that's not the fault of the db. use prepared statements [21:20] franck34: djazz: ws.send(new Buffer("AAA").toString()) perhaps ? [21:20] context: nuck: well people not using string escaping or an ORM deserve whatever they get [21:20] djazz: ws.send is client browser code [21:20] Nuck: polotek: Well, in the case of Mongo, there is no need to escape :P [21:20] Nuck: context: ORM? [21:20] Nuck: Fuck ORMs. [21:20] Nuck: Mongo [21:20] context: polotek: uhh injection has nothing to do with mysql. [21:20] context: it can happen to ANY database. [21:20] djazz: it dont use 0x00 DATA 0xFF framing [21:20] franck34: djazz: and you receive a buffer node side ? decode it ! var str=new Buffer(response).toString(); [21:20] polotek: context: that's what I said [21:21] Nuck: context: How do we inject into Mongo? [21:21] djazz: i did, and i got unreadable chars [21:21] context: why was injection even brought up [21:21] Nuck: I've yet to figure that one out [21:21] Nuck: And it's something that worries me [21:21] franck34: djazz: can you sniff using ngrep or wireshark to see if your client is not sending stupid things ? [21:22] Nuck: Somebody once said something about special chars, but I see no reason why that could break it [21:22] djazz: i'll try in ff too, w8 [21:22] Nuck: You can't magically end the string through what's in the string [21:22] polotek: Nuck: if you're building json strings manually or you're taking part of the string from user input, you can definitely cause problems in mongo [21:22] Nuck: polotek: What, json strings? [21:22] Nuck: JSON is an OBJECT [21:22] Nuck: Input is stored inside strings inside that [21:22] polotek: Nuck: no, json is a data format [21:23] polotek: it's sent over the wire as a string [21:23] bnoordhuis: TooTallNate: haha, you're watching buffertools? [21:23] bnoordhuis: ugly isn't it? [21:23] Nuck: polotek: You build it as an object, it gets encoded [21:23] polotek: my point is that you can get a string an pass it straight to mongo [21:23] franck34: after sql injection... mongo injection using json :) [21:23] TooTallNate: bnoordhuis: there's gotta be a way to do that in the wscript... [21:23] djazz: FF dont want to connect [21:23] liveink has joined the channel [21:23] Nuck: The strings are automatically escaped by the database connector [21:23] Nuck: Nobody does raw Mongo [21:23] Nuck: It's a complex protocol [21:23] TooTallNate: bnoordhuis: but also, expecting every other native module out there to do that is asking a lot I think [21:23] jokil: Nuck: that's an assumption about the database driver [21:23] wink_: polotek: yes, but none of it is eval'd, mongo doesnt suffer those sorts of injection attacks [21:24] Nuck: I'm pretty sure it's even encoded into BSON before sending [21:24] jokil: mongo itself is not secure, it just so happens that most mongo drivers are not retarded [21:24] wink_: it is definitely encoded to bson before sending [21:24] Nuck: jokil: Not at all [21:24] wink_: every single driver is encoding the json object into bson before it hits the wire [21:24] bnoordhuis: TooTallNate: i think it's a bug in the 0.5.5 release, node-waf in the current master builds in build/default again [21:24] Nuck: If it's encoded to JSON, the strings are escaped by the JS environment itself [21:24] bartt has joined the channel [21:24] TooTallNate: bnoordhuis: ok that's good to know [21:25] franck34: ACTION time to fuck my wife, see you guys [21:25] hornairs has joined the channel [21:25] polotek: sure it's not the same type of "injection" attack [21:25] context: nuck: http://www.mongodb.org/display/DOCS/Do+I+Have+to+Worry+About+SQL+Injection [21:25] context: YES. you need to worry about users messing with your crap. [21:25] polotek: my point is you can have things happen that you didn't intend [21:25] febits has joined the channel [21:25] bnoordhuis: franck34: say hi to your wife [21:25] context: you should try the internets, they has 'pages' explain its stuff [21:25] bnoordhuis: it's a good thing franck34 doesn't mind sloppy seconds [21:25] djazz: frank34: http://pastebin.com/Fe92W43c [21:26] christkv has joined the channel [21:26] djazz: franck34* [21:26] jokil: Nuck: FTA, " For example when using the $where statement in a query, do not concatenate user supplied data to build Javascript code; this would be analogous to a SQL injection vulnerability." If there was a poorly written find query, I could dump your entire collection and view it [21:26] polotek: jokil: thanks [21:26] bnoordhuis: TooTallNate: have you tried building against the current master today? (double-check) [21:26] TooTallNate: bnoordhuis: i haven't tried; i'll give it a show [21:26] TooTallNate: *shot [21:26] wink_: read all of it guys ;> [21:26] sirdancealot has joined the channel [21:26] Nuck: ah, these are all fringe cases [21:27] Nuck: user-generated keys and JS to be executed on the server [21:27] Nuck: Yup, no issues there :P [21:27] wink_: the data you're inserting does not mix with your query, unlike the string concatenated style of SQL querying [21:27] Nuck: This should honestly be completely common-sense [21:28] Nuck: wink_: Exactly, so I've got like a 5% chance of problems [21:28] wink_: if you're programatically generating your query, then yeah, sure you could get junk injected [21:28] Nuck: Nobody should be dumb enough to inject unescaped data into a JS environment [21:28] Nuck: Just like how all JS coders know you never use eval() [21:28] Nuck: Or setTimeout with a string [21:28] polotek: haha, if nobody was dumb enough to do dumb things then the term sql injection wouldn't exist [21:28] Nuck: fair enough [21:29] Nuck: But JS coders have gotten used to these things in their environment [21:29] wink_: i've used mongo for all sorts of horrible things, and i've yet to find a need to programatically generate the query. i'd be interested to hear the use cases for doing so [21:29] Nuck: We know damn well not to use certain parts of the language [21:29] topaxi has joined the channel [21:29] Nuck: wink_: Ditto [21:29] Nuck: I'm using it heavily in my startup [21:29] Nuck: And in all our database stuff, I've never had to programmatically generate a key or use the JS functions [21:30] ParadoxQuine has joined the channel [21:30] idefine has joined the channel [21:30] Nuck: I may use the JS stuff for map/reduce, though it's all a question of what the tradeoffs between network lag between Node and Mongo would be if I did map/reduce on Node (sicne it's V8) versus doing it on the DB servers [21:31] abjorn has joined the channel [21:31] Nuck: Which also depends on whether my suggestion algorithm can be fitted into a map/reduce setup [21:31] polotek: I'm not sure what the point of this discussion is [21:32] jokil: is there any attempt to make a mongo fork that uses v8 instead of spidermonkey? [21:32] polotek: mongo is nice in a lot of ways [21:32] wink_: jokil: i believe there is, yes [21:32] Nuck: jokil: God, I would KILL for that [21:32] hydrozen has joined the channel [21:32] polotek: but trying to convince people that the query system has no flaws is kind of pointless right? [21:32] Nuck: polotek: The only flaws are those that the user creates themselves [21:32] Nuck: And they're pretty obvious flaws [21:32] reid has joined the channel [21:32] MrNko has joined the channel [21:33] Nuck: SQL injection is something many people probably don't think about (for some retarded reason) [21:33] polotek: I think my point is that you're underestimating how "dumb" people can be. [21:34] polotek: I've seen people take json input and allow comments in it [21:34] polotek: and try to strip the comments with really bad regexes [21:34] Nuck: polotek: Yes, but in this case, the only injections that can be done are in very odd cases [21:34] Nuck: Which the average idiot wouldn't use [21:34] wink_: or be able to for that matter :p [21:35] Nuck: Whereas in SQL, you basically NEED to insert input data into the string [21:35] polotek: No, as soon as you allow injection into your data, you're vulnerable [21:35] polotek: maybe they can't mass delete things [21:35] polotek: but you can do things like reset passwords [21:35] Nuck: polotek: Eh? Not really. [21:35] Nuck: The only two attacks on Mongo are user-generated keys and JS-on-the-DB [21:35] bnjmn has joined the channel [21:36] Nuck: Which are pretty advanced features [21:36] stash1 has joined the channel [21:36] pt_tr has joined the channel [21:36] Nuck: Which are only rarely used [21:36] bnjmn: hi i have a coworker who says node is a language and i say no it's not, and he says well then why does everyone say "I'm programming node" [21:36] polotek: Nuck: I hope you're never proven wrong. Like i said, pointless argument [21:36] Nuck: bnjmn: It's a platform basedo n the JS language [21:36] tjholowaychuk: bnjmn hahah [21:36] bnjmn: can I kill him please [21:36] tjholowaychuk: no its not [21:36] wink_: bnjmn: it's not a language :p [21:37] bnjmn: well why do people say that then, is that a marketing strategy or something [21:37] Nuck: It's sorta like saying you're coding Ruby [21:37] balaa has joined the channel [21:37] Nuck: Err, Rails [21:37] Nuck: The language is technically Ruby [21:37] wink_: its because it's javascript, but just saying that isnt really descriptive enough [21:37] Nuck: But you can still program on a platform [21:38] bnjmn: i'm just going to start saying "what? you're programming nude?" [21:38] wink_: put your balls away! [21:38] stash1: hey, is .pause() supposed to work for all 'data' events on node's ClientResponse? [21:38] Nuck: It's a subset of the JS community and a superset of the JS language :D [21:38] stash1: https://gist.github.com/1182108 [21:38] bnjmn: i'm programming semicolon [21:39] polotek: stash1: no, pause is not guaranteed to stop all data events immediately [21:39] Tobsn has joined the channel [21:39] CoverSlide: fo realz? [21:39] bk_ has joined the channel [21:39] polotek: yes, it's a known issue and the subject of some debate [21:39] CoverSlide: why dat? [21:40] Guest30041: can i ask a browserify question here? :) [21:40] bnjmn: rasmus lerdorf is programming security holes [21:40] djazz has left the channel [21:40] ParadoxQuine has joined the channel [21:40] aaronmcadam has joined the channel [21:40] stash1: polotek: thanks. any suggestions for a workaround? [21:40] bnjmn has left the channel [21:41] Tobsn has joined the channel [21:41] polotek: stash1: you want my personal opinion or to tell you what you wanna hear ;) [21:42] SubStack: Guest16711: you sure can [21:42] abustin: does anyone know of a upnp node package that'll allow a node app to find other instances of itself [21:42] abustin: ... on the same internal network [21:42] polotek: stash1: my personal opinion is don't pause. just buffer the data output for a bit, until you are ready to handle it. [21:43] polotek: you should stick to stream piping as much as possible instead of handling data on your own [21:43] draginx has joined the channel [21:44] polotek: use something like the bufferedstream to help https://github.com/mikeal/morestreams [21:44] draginx: For redisclient do I need only one instance for subscribing and another for pub or do I need one for each subscription to a "room"? [21:44] stash1: well, the thing here is to decide if i need to filter the content or not [21:44] mrdoodles: is there anything at all internally within express or the node bin to run in production or development? so instead of exporting a bash variable EXPRESS_ENV .... [21:44] stash1: so the decision to .pipe is maybe later [21:44] stash1: i'll check out bufferedstream, thank you. [21:44] mrdoodles: anything like app.set("env", "production") ; ? [21:44] tjholowaychuk: mrdoodles app.set('env', val) [21:44] mrdoodles: ahh thx [21:44] tjholowaychuk: but it is bad practice to hard-code that in [21:45] tjholowaychuk: not sure why you would want to [21:45] CoverSlide: process.env.NODE_ENV = "production" [21:45] CoverSlide: yay! [21:45] m_ has joined the channel [21:45] mrdoodles: good call was just curious .. [21:46] fmeyer has joined the channel [21:46] fly-away has joined the channel [21:47] godzirra has left the channel [21:47] polotek: stash1: yeah there should be a filtered pipe also, basically an intermediate object that will do your filtering [21:47] polotek: so you buffer until you decide if/how to filter, then you pipe it to the appropriate object. [21:47] stash1: right, "filter or pass" [21:47] parshap has joined the channel [21:48] brewnzie: has anyone been successful at browserifying zeroMQ or node-postgres? [21:49] polotek: brewnzie: modules that require C/C++ addons can't be browserified right? [21:49] paniq has joined the channel [21:50] brewnzie: that's what we were trying to figure out :), guess not [21:50] CoverSlide: correct [21:50] CoverSlide: unless there's a way to integrate with NativeClient [21:50] CoverSlide: but I doubt it will ever happen [21:50] stash1: BufferedStream looks like what i want for now. [21:50] ParadoxQuine has joined the channel [21:50] aaronmcadam has joined the channel [21:50] polotek: CoverSlide: that would be cool. but then you're talking about getting people to install something [21:51] stash1: i appreciate the advice, polotek. thanks again. [21:51] brewnzie: coverslide: thank you, is there an alternative? we cannot install node on the client device [21:51] polotek: stash1: no problem [21:52] CoverSlide: probably have to find / write a pure JS parser [21:52] pandeiro_ has joined the channel [21:53] vizzord has joined the channel [21:53] cha0s has joined the channel [21:53] cha0s has joined the channel [21:54] brewnzie: coverslide: ok we'll keep trying, thanks [21:54] shipit has joined the channel [21:55] T0bsn has joined the channel [21:55] jbrokc has joined the channel [21:56] tar_ has joined the channel [21:57] Charuru has joined the channel [21:58] sirdancealot has joined the channel [22:00] Me1000 has joined the channel [22:02] tmedema has joined the channel [22:03] tmedema: tjholowaychuk: hey, you said you were rewriting dox right? I was wondering if you plan on making it work with modularized applications. Eg. a scrollable overview of a tree structure of each file as well as a way to create docs for all files in a folder (and its childs) [22:03] reid has joined the channel [22:04] tjholowaychuk: tmedema it's not really a rewrite but i plan on removing a bunch of stuff [22:04] EyePulp: and also make it cook breakfast. [22:04] tjholowaychuk: it will just give you json for the comments [22:04] jamesduncan has joined the channel [22:04] EyePulp: and do my windows [22:04] tjholowaychuk: and you can apply templates to that data [22:04] mehlah has joined the channel [22:04] tmedema: tjholowaychuk: ah, will it accept a folder as input? [22:04] franck34: is there a simple way to count the number of property in an object ? [22:04] franck34: equivalent of array.length [22:04] tjholowaychuk: tmedema i think i have that [22:04] tjholowaychuk: though [22:05] tjholowaychuk: there's no reason you cant just do find foo/* | xargs dox [22:05] tjholowaychuk: etc [22:05] mrdoodles: i posted before asking about counting active sessions, someone suggested something but i had accidentally /clear'd it ... [22:05] tmedema: tjholowaychuk: that'd be great. Ah, I'm really bad with unix. [22:05] abustin has joined the channel [22:05] tmedema: tjholowaychuk: so the idea is that we render the JSON ourselves? [22:05] stagas_ has joined the channel [22:05] CoverSlide: unix has no penix [22:07] jtrudeau has joined the channel [22:07] balaa_ has joined the channel [22:08] blup has joined the channel [22:09] Aiden has joined the channel [22:10] [[zzz]] has joined the channel [22:11] eyesUnclouded has joined the channel [22:11] gerad has joined the channel [22:13] mrdoodles: anyone, on an "ok" way to keep decent track of active user sessions? [22:13] chapel: mrdoodles: what are you using, express? [22:14] heavysixer has joined the channel [22:15] mike5w3c has joined the channel [22:15] mrdoodles: chapel: yes sir! [22:16] jbrokc_ has joined the channel [22:16] chapel: why do you need a count of active sessions, out of curiosity ? [22:16] incon has joined the channel [22:16] Murvin has joined the channel [22:16] mrdoodles: i don't "need" it. i was just running a tail from some middleware viewing memory etc and wanted to see active sessions or sessions or … anything [22:17] mrdoodles: just not sure how to go about it? [22:18] chapel: sessionStore [22:18] Murvin: Hi.. i have a question regarding session in node. In Symfony PHP, when a session is open, it will block all other threads accessing the session before it is closed. does it have the same problem with node? [22:18] Murvin: how many concurrent sessions node can have? [22:18] chapel: req.session and req.sessionStore properties will be accessible to all routes and subsequent middleware. [22:19] chapel: Murvin: as many as your server can handle :) [22:19] chapel: or your code for that matter [22:19] chapel: node doesn't block on sessions [22:20] Murvin: ok. because my coworker happened to find out the session in symfony and Java will result in blocking siutation and thus, limit the # of concurrent sessions can have. so i just want to make sure node is smart enough .. lol [22:20] Murvin: and .. [22:21] DrMcKay: ok, guys, I'm starting to maintain cradle (original author is unreacheable). any thoughs? [22:21] Murvin: what about if I have my node running on multiple servers. and the traffic is actually hitting the load balancer first, then send the request to one of the node servers. How node handle session in this situation? [22:21] apanda has joined the channel [22:22] DrMcKay: (my fork is at: https://github.com/mmalecki/cradle2 ) [22:22] racar has joined the channel [22:22] chapel: Murvin: use a db sessionStore [22:22] Murvin: let say, if the first time user hit the site and go to Node#1, and get a session. If the user hit the site again (in few seconds), and actually hit Node#2. will he has the same session [22:22] chapel: like connect-mongo or connect-redis [22:22] chapel: whichever [22:22] chapel: and then it uses the db to handle sessions [22:22] Murvin: I'm using express.session with connect-mongo datastore. [22:22] chapel: should be good [22:23] Murvin: ok.. i have develop the code half way through and then realize my test and prod environment has multilpe nodes. LOL [22:25] mcluskydodallas has joined the channel [22:26] CarterL has joined the channel [22:26] Murvin: chapel: thanks. let me test it out. ^^ [22:28] JSManiacs has joined the channel [22:28] uptownben has joined the channel [22:28] eyesUnclouded has left the channel [22:28] hl7Guy has joined the channel [22:30] synkro has joined the channel [22:31] brewnzie has left the channel [22:35] sivy has joined the channel [22:36] chjj has joined the channel [22:37] bingomanatee_ has joined the channel [22:38] balaa has joined the channel [22:38] bingomanatee_: not a node question - but- if you have an HTML field and the browser is "repopulating" its values from the latest entries - is there a a way to prevent the field values from being repopulated? some hint tag or something? [22:39] bradleymeck has joined the channel [22:39] qbert_: yes [22:39] draginx has left the channel [22:39] Tehsis has joined the channel [22:39] godzirra has joined the channel [22:40] bingomanatee_: what is it? [22:40] qbert_: autocomplete="off" [22:40] bingomanatee_: thanks [22:41] ironlad has joined the channel [22:42] wilmoore has joined the channel [22:43] postwait has joined the channel [22:43] AphelionZ has joined the channel [22:45] godzirra: Can anyone help me figure out why my response is blank when I'm using hbs? http://pastie.org/2456889 There's my code, template and output [22:45] matyr has joined the channel [22:47] davidbanham has joined the channel [22:48] malkomalko has joined the channel [22:50] dylang has joined the channel [22:50] CarterL has joined the channel [22:50] qbert_: godzirra, is curl sending the 'accept xml' header or whatever ? [22:50] qbert_: what happens in the browser ? [22:51] dylang: is there any kind of overall scoreboard to see how everybody is ranked? [22:52] CoverSlide: ranked? [22:52] CoverSlide: as in nko? [22:52] den512 has joined the channel [22:53] mrdoodles has joined the channel [22:53] losing has joined the channel [22:53] markwubben has joined the channel [22:54] mekwall has joined the channel [22:54] beejeebus has joined the channel [22:54] mike5w3c has joined the channel [22:54] dshaw_ has joined the channel [22:54] vikstrous__ has joined the channel [22:54] hellp has joined the channel [22:54] ryanfitz has joined the channel [22:54] eazyigz has joined the channel [22:54] maushu has joined the channel [22:54] nibblebo_ has joined the channel [22:54] trentm has joined the channel [22:54] mcepl_ has joined the channel [22:54] Esteb has joined the channel [22:54] geetarista has joined the channel [22:54] er1c_ has joined the channel [22:54] tomb has joined the channel [22:54] qbit_ has joined the channel [22:54] shapeshed has joined the channel [22:54] DennisRasmussen has joined the channel [22:54] kurtzhong has joined the channel [22:54] xerox has joined the channel [22:54] te-brian2 has joined the channel [22:54] azeroth_ has joined the channel [22:54] barodeur has joined the channel [22:54] gaYak has joined the channel [22:54] einaros has joined the channel [22:54] yokoe has joined the channel [22:54] apoc has joined the channel [22:54] Dmitrijus has joined the channel [22:54] kraft has joined the channel [22:54] SvenDowideit has joined the channel [22:54] daleharvey has joined the channel [22:54] tomh__ has joined the channel [22:54] ryah has joined the channel [22:54] tmm1 has joined the channel [22:54] slloyd has joined the channel [22:54] Astro has joined the channel [22:54] chilts has joined the channel [22:54] pradeepto has joined the channel [22:54] PrgmrBill has joined the channel [22:54] bsutt has joined the channel [22:54] djbell has joined the channel [22:54] trupppOFF has joined the channel [22:54] freeformz has joined the channel [22:54] nigelb has joined the channel [22:54] cmeiklejohn has joined the channel [22:54] jamonkko has joined the channel [22:54] zemm has joined the channel [22:54] vladikoff has joined the channel [22:54] termie has joined the channel [22:54] Ratty_ has joined the channel [22:54] mediacod1r has joined the channel [22:54] optico has joined the channel [22:54] JP| has joined the channel [22:54] tomilaine has joined the channel [22:54] visnup has joined the channel [22:54] odyniec_ has joined the channel [22:54] kriss has joined the channel [22:54] neshaug has joined the channel [22:54] jzaksh has joined the channel [22:54] iivvoo has joined the channel [22:54] FiveLemon has joined the channel [22:54] drudge has joined the channel [22:54] Hamms has joined the channel [22:54] tetsuhar1 has joined the channel [22:54] jakob has joined the channel [22:54] rhizmoe has joined the channel [22:54] stride has joined the channel [22:54] sugyan has joined the channel [22:54] statico has joined the channel [22:54] FleetFox has joined the channel [22:54] przemoc has joined the channel [22:54] llrcombs has joined the channel [22:54] marcab has joined the channel [22:54] matt_c has joined the channel [22:54] jobim has joined the channel [22:54] rednul_ has joined the channel [22:54] vinc has joined the channel [22:54] SubStack has joined the channel [22:54] VeXii has joined the channel [22:54] finsken has joined the channel [22:54] s0enke has joined the channel [22:54] Pierrot has joined the channel [22:54] up_the_irons has joined the channel [22:54] rgmarcha has joined the channel [22:54] gdusbabek has joined the channel [22:54] arkx has joined the channel [22:54] ashb has joined the channel [22:54] txxt has joined the channel [22:54] Garo_ has joined the channel [22:54] blkcat has joined the channel [22:54] tuhoojabotti has joined the channel [22:54] parse has joined the channel [22:54] hoodow has joined the channel [22:54] izz_ has joined the channel [22:54] actonapp_ has joined the channel [22:54] rhutchison_ has joined the channel [22:54] mrkurt has joined the channel [22:54] sstephenson has joined the channel [22:54] DrPizza has joined the channel [22:54] a11235 has joined the channel [22:54] a11235 has joined the channel [22:55] godzirra: qbert_: Let me try. [22:55] godzirra: qbert_: same thing.. empty page. [22:55] Me1000 has joined the channel [22:55] sounko has joined the channel [22:56] llrcombs: and we're back [22:56] MrNko has joined the channel [22:56] Sorella has joined the channel [22:57] markwubb_ has joined the channel [22:57] MrNko has joined the channel [22:58] sonnym has joined the channel [22:59] elliottcable: Hm. [22:59] elliottcable: >> (function(){ var foo; process.nextTick(function(){ sys.inspect(foo) }); foo = 123; })() [22:59] elliottcable: v8> (function(){ var foo; process.nextTick(function(){ sys.inspect(foo) }); foo = 123; })() [22:59] v8bot_: elliottcable: ReferenceError: process is not defined [22:59] elliottcable: buh [22:59] elliottcable: is there no *node*bot in this channel? [22:59] elliottcable: anyway, can somebody tell me why that “isn’t working” in my `node` console at a terminal? [23:00] wadey: did you do "sys = require('sys')" ? [23:00] elliottcable: I’m trying to refresh my rusty JavaScript knowledge; [23:00] elliottcable: (wadey ⁓ yes) [23:00] eazyigz has joined the channel [23:00] brianseeders has joined the channel [23:00] CoverSlide: probably cut / paste from an old article [23:00] elliottcable: and I don’t remember if it’s going to close over the value *at the time of closure*, or see the updated value [23:00] wadey: elliottcable: you need to print the value out [23:01] elliottcable: CoverSlide ⁓ nah, I wrote it [23:01] wadey: sys.inspect just returns the value [23:01] elliottcable: wadey ⁓ ah, I forgot. Been ages since I node’d, really. )= [23:01] wadey: you could do console.log() instead [23:02] elliottcable: perfect, it *does* close over the actual variable [23:02] elliottcable: thanks, wadey (= [23:03] Cromulent has joined the channel [23:05] a11235_ has joined the channel [23:05] sonnym has joined the channel [23:05] mekwall has joined the channel [23:05] beejeebus has joined the channel [23:05] mike5w3c has joined the channel [23:05] dshaw_ has joined the channel [23:05] vikstrous__ has joined the channel [23:05] ryanfitz has joined the channel [23:05] maushu has joined the channel [23:05] trentm has joined the channel [23:05] mcepl_ has joined the channel [23:05] Esteb has joined the channel [23:05] geetarista has joined the channel [23:05] er1c_ has joined the channel [23:05] tomb has joined the channel [23:05] qbit_ has joined the channel [23:05] shapeshed has joined the channel [23:05] DennisRasmussen has joined the channel [23:05] kurtzhong has joined the channel [23:05] te-brian2 has joined the channel [23:05] azeroth_ has joined the channel [23:05] barodeur has joined the channel [23:05] gaYak has joined the channel [23:05] einaros has joined the channel [23:05] yokoe has joined the channel [23:05] apoc has joined the channel [23:05] Dmitrijus has joined the channel [23:05] kraft has joined the channel [23:05] SvenDowideit has joined the channel [23:05] daleharvey has joined the channel [23:05] tomh__ has joined the channel [23:05] ryah has joined the channel [23:05] tmm1 has joined the channel [23:05] slloyd has joined the channel [23:05] Astro has joined the channel [23:05] chilts has joined the channel [23:05] pradeepto has joined the channel [23:05] PrgmrBill has joined the channel [23:05] bsutt has joined the channel [23:05] djbell has joined the channel [23:05] trupppOFF has joined the channel [23:05] freeformz has joined the channel [23:05] nigelb has joined the channel [23:05] cmeiklejohn has joined the channel [23:05] jamonkko has joined the channel [23:05] zemm has joined the channel [23:05] vladikoff has joined the channel [23:05] termie has joined the channel [23:05] Ratty_ has joined the channel [23:05] mediacod1r has joined the channel [23:05] optico has joined the channel [23:05] JP| has joined the channel [23:05] tomilaine has joined the channel [23:05] visnup has joined the channel [23:05] odyniec_ has joined the channel [23:05] kriss has joined the channel [23:05] neshaug has joined the channel [23:05] jzaksh has joined the channel [23:05] iivvoo has joined the channel [23:05] drudge has joined the channel [23:05] Hamms has joined the channel [23:05] tetsuhar1 has joined the channel [23:05] jakob has joined the channel [23:05] rhizmoe has joined the channel [23:05] stride has joined the channel [23:05] sugyan has joined the channel [23:05] statico has joined the channel [23:05] FleetFox has joined the channel [23:05] przemoc has joined the channel [23:05] llrcombs has joined the channel [23:05] marcab has joined the channel [23:05] matt_c has joined the channel [23:05] jobim has joined the channel [23:05] rednul_ has joined the channel [23:05] vinc has joined the channel [23:05] SubStack has joined the channel [23:05] VeXii has joined the channel [23:05] finsken has joined the channel [23:05] s0enke has joined the channel [23:05] Pierrot has joined the channel [23:05] up_the_irons has joined the channel [23:05] rgmarcha has joined the channel [23:05] gdusbabek has joined the channel [23:05] arkx has joined the channel [23:05] ashb has joined the channel [23:05] txxt has joined the channel [23:05] Garo_ has joined the channel [23:05] blkcat has joined the channel [23:05] tuhoojabotti has joined the channel [23:05] parse has joined the channel [23:05] hoodow has joined the channel [23:05] actonapp_ has joined the channel [23:05] izz_ has joined the channel [23:05] rhutchison_ has joined the channel [23:05] DrPizza_ has joined the channel [23:05] sstephenson_ has joined the channel [23:05] a11235 has joined the channel [23:06] godzirra: Welcome back again… lol [23:06] constantx has joined the channel [23:06] godzirra: Can anyone help me figure out why my response is blank when I'm using hbs? http://pastie.org/2456889 There's my code, template and output [23:06] meandi has joined the channel [23:07] dgathright has joined the channel [23:07] JaKWaC has joined the channel [23:08] hellp has joined the channel [23:09] mrdoodles: so i had my auth lib working, sessions, every things golden hah? trying to use mongoose now as my sessionStore with express… no errors just a hang/white/blank screen when i try to hit my first page that tests for sessions … http://pastebin.com/dtVLsAUD [23:09] mrdoodles: seems basic? [23:10] jj0hns0n has joined the channel [23:10] eyesUnclouded has joined the channel [23:11] AphelionZ has joined the channel [23:12] schwab has joined the channel [23:13] slifty has joined the channel [23:15] vikstrous_ has joined the channel [23:17] balaa has joined the channel [23:18] ghost has joined the channel [23:19] Wa has joined the channel [23:20] cjheath has joined the channel [23:21] mrdoodles: hey anyone on mongoose as a session store? [23:22] mrdoodles: for express ..... [23:22] balaa has joined the channel [23:23] lot49 has joined the channel [23:25] mikeal has joined the channel [23:26] Sembiance: woot, just published my first ever npm module :) http://search.npmjs.org/#/mhash [23:26] jamesduncan has joined the channel [23:30] sridatta has joined the channel [23:30] jokil has joined the channel [23:31] Sembiance: `npm mhash [23:31] Sembiance: heh ;) [23:35] CrisO has joined the channel [23:36] dimroc has joined the channel [23:37] balaa has joined the channel [23:38] catb0t has joined the channel [23:39] mrdoodles: last thing on my agenda for the evening, has anyone ever gotten mongoose working with the express session store? [23:39] SebastianFlyte has joined the channel [23:39] Sembiance: mrdoodles: not I. I chose to use native-mongodb and json-schema and JSV over mongoose [23:39] mrdoodles: hmmm [23:40] mrdoodles: Sembiance: i guess i should look more into native-mongodb [23:40] edwardmsmith has left the channel [23:41] mrdoodles: Sembiance: i saw github "Eye". could be epic! [23:41] Sembiance: mrdoodles: ? [23:41] mrdoodles: you posted on your npm module right? [23:42] mrdoodles: then i saw your github, then looked at Eye, i was working on writing something like that today [23:42] shanebo has joined the channel [23:42] Sembiance: mrdoodles: ahh yes, some day I'm gonna get back to writing that ;) [23:42] mrdoodles: hehe [23:43] Sembiance: I'm happy to finally have a module in npm though :) [23:43] Sembiance: hopefully some people will find it useful [23:44] ChrisPartridge has joined the channel [23:45] devongovett has joined the channel [23:45] mrdoodles: that it seems rock solid man [23:45] mrdoodles: i might have to do this :/ http://stackoverflow.com/questions/6819911/nodejs-expressjs-session-handling-with-mongodb-mongoose [23:47] Sembiance: I use expressjs in a production site, and using it my my current project under development, but none of them have any 'state' so I've never used the session stuff from express [23:47] mrdoodles: :/ [23:47] tjholowaychuk: yeah dont use memory store in prod haha [23:48] mrdoodles: tjholowaychuk: any idea? :P [23:48] tjholowaychuk: i havent tried the mongo store, should work fine though [23:48] tjholowaychuk: it used to [23:49] shepazu has left the channel [23:49] mrdoodles: i think i need to find the right object in my mongo instance [23:49] mrdoodles: ACTION logging mongo on open [23:49] saikat has joined the channel [23:50] Dreamer3 has joined the channel [23:54] dimroc_ has joined the channel [23:54] mrdoodles: tjholowaychuk: i logged and iterated over my mongo object one i had mongo = require("mongoose"); and mongo.connection.on("open" ... [23:54] jakehow has joined the channel [23:54] mrdoodles: i just get object has no mTypeError: Object [object Object] has no method 'set' [23:55] tjholowaychuk: i didnt write mongoose cant help much, but check the stack trace it'll probably make the error obvious [23:57] abustin has joined the channel [23:58] CarterL has joined the channel [23:58] abustin: does anyone know the status of dgram setBroadcast() on linux? [23:58] abustin: i have it working well on mac [23:58] slifty has joined the channel [23:58] abustin: trying on a linux desktop now and it's say "not yet implemented" [23:59] jakehow__ has joined the channel [23:59] jakehow_ has joined the channel