[00:00] maushu: Gigawatt, you can use the variable from the parent scope. Research "javascript closures". [00:01] Gigawatt: v8: function A(message,callback){message += "ttt"; callback(); } var M = "ABC"; A(M,function(){console.log(M);}) [00:01] v8bot: Gigawatt: "ABC" [00:01] Gigawatt: I can see that it's passed by value [00:03] JoshC1 has joined the channel [00:05] Gigawatt: ok got another issue, whats the best way to loop a list of files async and call a callback only when the list is complete [00:05] jerrysv: gigawatt: smtp mailer? or smtp server? [00:06] Gigawatt: mailer [00:06] tjholowaychuk: a real one? or sendmail? [00:06] tjholowaychuk: or using node apis? [00:06] Gigawatt: i real one, that uses sockets to connect to a host and transport the email [00:07] tjholowaychuk: whoop [00:07] glimpsenirvana has joined the channel [00:07] Gigawatt: so yea, i need to read data from a list of files and call the callback only when the all the files have been read [00:08] Gigawatt: but needs to be async [00:09] Gigawatt: https://gist.github.com/1057595 [00:10] tjholowaychuk: you just need to iterate and have [00:10] tjholowaychuk: var pending = attachments.length; [00:10] tjholowaychuk: --pending || callback() [00:10] tjholowaychuk: with error handling etc [00:10] skript_ has joined the channel [00:11] TooTallNate: simple counters ftw! [00:11] Gigawatt: hmm, nice [00:11] Gigawatt: so after each iteration check the length's [00:11] Gigawatt: if they equal then call the callback and break [00:11] tjholowaychuk: in each callback do that [00:12] skript_ has joined the channel [00:12] tjholowaychuk: then when they are all done [00:12] tjholowaychuk: it will invoke the main callback [00:12] chbrown: Gigawatt: or, similarly: https://gist.github.com/1057596 [00:14] ngs has joined the channel [00:15] brianseeders has joined the channel [00:15] jakehow has joined the channel [00:16] tilgovi has joined the channel [00:17] muk_work has joined the channel [00:18] wdperson has joined the channel [00:20] _jgr has joined the channel [00:20] mkrecny has joined the channel [00:22] carmony has joined the channel [00:22] level09 has joined the channel [00:22] level09: any one worked with jsdom ? [00:22] level09: or request module [00:23] Gigawatt: this is ok for base64 conversion isn't it? data.toString('base64') [00:23] tjholowaychuk: data is a Buffer? [00:23] leahculver has joined the channel [00:23] Gigawatt: no [encoding=itf8] [00:23] Gigawatt: utf-8 [00:24] jacobolu_ has joined the channel [00:24] t|f: npm is considered best practice for dependency management right, not using git submodules? [00:25] tjholowaychuk: correcto [00:25] isaacs: t|f: you can use git submodules if you prefer that [00:25] isaacs: t|f: i use git submodules for npm [00:25] mikey_p: unless you have to patch all your submodules, or are doing development on the submodules, npm is probably easier [00:26] level09: is it easy to configure git submodules [00:26] isaacs: i don't use submodules in any *other* packages, just in npm itself. [00:26] isaacs: also, there's an "npm submodule" command in 1.0.16 [00:27] t|f: :) Thanks :) Actually I really prefer npm right now. Used submodules before with not too much trouble, but I can't get jsdav to work anymore and it seems related to either the async.js submodule or the node-o3-xml-v4 submodule [00:27] radiodario has joined the channel [00:28] t|f: Anyone know another webdav implementation in Node? I haven't found one [00:28] gozala1 has joined the channel [00:28] Gigawatt: https://gist.github.com/1057622 - i think that the if(count == 0) will fail because the loop will finish before the filereads, how can i get around that [00:29] cjm has joined the channel [00:29] infynyxx1 has joined the channel [00:29] garbagegod has joined the channel [00:30] garbagegod: im having some issues installing node.js, whenever i run ./configure i get a syntax error [00:31] Gigawatt: garbagegod, whats the error ? [00:31] AvianFlu has joined the channel [00:31] Gigawatt: and have you run make before [00:31] garbagegod: SyntaxError: invalid syntax [00:31] garbagegod: yes [00:31] garbagegod: scripting.py line 146 [00:31] drefined has joined the channel [00:31] Gigawatt: is there a stack ? [00:31] garbagegod: i think it has to do with the pyton im using [00:32] garbagegod: what version of python is this designed to run with [00:32] garbagegod: 2.x or 3.x? [00:32] mandric has joined the channel [00:32] Gigawatt: latest [00:32] Gigawatt: i would expect [00:32] Gigawatt: Ryan is always pushing updates from all aspects of the system [00:32] isaacs: garbagegod: 2.x [00:32] garbagegod: make gives a syntax error too [00:32] isaacs: garbagegod: there's an open issue to make it work on 3.x [00:33] garbagegod: how do i run it with 3.x [00:33] isaacs: garbagegod: you don't :) [00:33] garbagegod: i dont even know if thats the issue, i just suspect it [00:33] isaacs: alias python=python2 [00:33] isaacs: or whatever [00:33] garbagegod: ah [00:33] Gigawatt: my bad [00:33] isaacs: oh,a ctually, id ont' think that'll trick env [00:33] Gigawatt: isaacs, wahts the best way of dealing with this: https://gist.github.com/1057622 [00:33] davidcoallier has joined the channel [00:34] garbagegod: nah, didnt work [00:34] puffpio has joined the channel [00:35] patcito has joined the channel [00:35] garbagegod: http://pastebin.com/qAf27xFf check out the error [00:35] garbagegod: sorry for it being in there twice >_< [00:35] isaacs: Gigawatt: i don't know what that is? [00:36] isaacs: garbagegod: yeah, that's python 43 [00:36] isaacs: *3 [00:36] isaacs: garbagegod: what does `python --version` output? [00:36] Waha has joined the channel [00:36] Gigawatt: isaacs, i need to read multiple files and when all files have been read execute a callback, that code is failed as the if statement will never be true [00:36] garbagegod: python 3.2 [00:37] isaacs: garbagegod: ok. get python 2 [00:37] minimalist has joined the channel [00:37] isaacs: garbagegod: make it the python that's in your path [00:37] garbagegod: i have python 2 [00:37] garbagegod: alright [00:37] garbagegod: theres no mention of python in the config script, wheres the thing i need to change exactly? [00:38] scottschecter has left the channel [00:38] garbagegod: so the Makefile has a bunch of what appear to be python instances [00:38] garbagegod: ill try and change them all and see what happens [00:39] devaholic has joined the channel [00:39] garbagegod: nope [00:39] garbagegod: im pretty sure thats not even what i was supposed to do [00:40] xandrews has joined the channel [00:40] jesusabdullah: garbagegod: Make it such that when you type python --version it says python 2.7 or so [00:40] jtsnow has joined the channel [00:40] garbagegod: jesusabdullah: i have python 2.7.1 installed, and i can alias it, but that dosent work [00:40] garbagegod: what file has the line where it invokes python [00:40] garbagegod: that i need to change to python2 [00:41] garbagegod: doing it in the Makefile dosent work [00:41] jesusabdullah: wny not add a symbolic link from python to python2 in your /home/bin ? [00:41] garbagegod: alright [00:41] jesusabdullah: and set your $PATH variable such that it looks in /home/bin before it looks in /usr/bin or wherever? [00:42] sgk has joined the channel [00:42] garbagegod: worked [00:42] garbagegod: the symbolic link worked [00:42] garbagegod: thanks buddy [00:43] Xenoraze has joined the channel [00:43] sgk has joined the channel [00:43] leahculver has joined the channel [00:43] leahculver has joined the channel [00:44] leahculver has joined the channel [00:44] leahculver has joined the channel [00:44] samsonjs has joined the channel [00:44] Xenoraze: How do I get a remote address for a connection in socket.io 0.7.x ? [00:44] Mrfloyd has joined the channel [00:44] radiodario has joined the channel [00:45] Xenoraze: socket.connection.remoteAddress works in 0.6.x but no longer in 0.7.x [00:46] willwhite has joined the channel [00:46] minimalist has joined the channel [00:46] ji0n has joined the channel [00:47] leahculver has joined the channel [00:49] garbagegod: once i have node.js installed, how do i test it to make sure its working and all that? [00:49] iammerrick has joined the channel [00:49] garbagegod: lol /usr/bin/node [00:50] leahculver has joined the channel [00:50] leahculver has joined the channel [00:50] garbagegod: being a php developer myself, I'm frankly amazed at javascript reaching out to the server side [00:50] garbagegod: also kind of scared [00:50] garbagegod: and kind of horny. [00:51] scottschecter has joined the channel [00:53] scottschecter has left the channel [00:54] gde33 has joined the channel [00:55] scottschecter has joined the channel [00:56] gavin_huang has joined the channel [00:56] garbagegod has left the channel [01:01] drefined: does anyone know if express-resource able to use route middleware? [01:02] drefined: i'm searching for it but i can't find anything on it [01:02] niftylettuce has joined the channel [01:05] Xenoraze: How do I get a remote address for a connection in socket.io 0.7.x ? [01:05] shinuza has joined the channel [01:06] raja_ has joined the channel [01:07] t|f: what is the recommended way of organizing a big project, one that is organized into modules but modules that won't likely be used in other projects? Options seem to be (1) organize in dir tree under lib; (2) break into separate npm packages (possibly prefixed by project name); (3) use git submodulesl (4) something else? [01:07] isaacs: t|f: split into multiple modules. [01:07] k1ttty has joined the channel [01:08] piscisaureus has joined the channel [01:08] isaacs: t|f: whether you use submodules, published npm packages, unpublished npm packages, or private-registry-published npm packages, breaking into multiple small pieces with their own tests etc is almost alwyas the right answer. [01:08] isaacs: split it up *now*, before it's big and hard to break up [01:08] isaacs: it's much easier at this point to start in the right direction. [01:09] t|f: isaacs, ok thanks, that's way I was leaning. Its what I do in other langs (Erlang, Java, Python) [01:10] JasonSmith has joined the channel [01:10] t|f: isaacs, is it considered bad form to publicly publish a project's modules? In other words, do people consider it polluting the public registry if I have something like jsDAV-exceptions? [01:10] isaacs: it's fine :) [01:10] t|f: Cool, thx [01:10] isaacs: tf: be aware that it's public, of course. [01:11] isaacs: so don't publish anything you don't want public :) [01:11] k1ttty_ has joined the channel [01:11] mundanity has joined the channel [01:11] Gigawatt: v8: {}.length [01:11] v8bot: Gigawatt: SyntaxError: Unexpected token . [01:11] Gigawatt: v8: [].length [01:11] v8bot: Gigawatt: 0 [01:11] isaacs: v8: ({}).length [01:11] v8bot: isaacs: undefined [01:11] Gigawatt: v8: ({}).length [01:11] v8bot: Gigawatt: undefined [01:11] t|f: Yep, am a big fan of transparency. Though have gotten when I went back to old code on github and was embarassed as hell [01:12] Gigawatt: v8: ({}).length [01:12] v8bot: Gigawatt: undefined [01:12] t|f: s/gotten/gotten bit [01:12] Gigawatt: hmmm [01:12] gtramont1na has joined the channel [01:12] abraxas has joined the channel [01:15] level09 has joined the channel [01:21] t|f: Is o3-xml the XML parser most Node coders use? [01:22] tbranyen: Gigawatt: objects don't have lengths... [01:22] cafesofie: i'm using libxmljs right now [01:22] Gigawatt: yea i just learnt that :) [01:23] tbranyen: t|f: regex [01:23] Gigawatt: guys ive got an issue, im connecting to an SMTP Server such as google, and i require sending commands and then sending data and receiving data, but doing this async is causing me issues [01:24] Gigawatt: it looks like im going to have to have like 20 functions within functions :/ [01:24] Gigawatt: is there a simple technique for this? [01:24] t|f: tbranyen, :) yeah, done that for some very simple stuff, but need an actual XML parser that's namespace aware. [01:25] t|f: cafesofie, do you know is libxmljs handles namespaces? [01:25] tbranyen: t|f: yea was kidding :-p [01:26] ditesh|cassini has joined the channel [01:26] tbranyen: luckily i haven't had to deal with xml yet in ndoe [01:26] jtsnow has joined the channel [01:27] deoxxa has left the channel [01:29] t|f: I've been using node for a few months, but mostly for experiments and stuff. Trying to use it on a real project now [01:29] perlmonkey2 has joined the channel [01:38] Xenoraze: Does anyone know how to get a remote address for a connection in socket.io 0.7.x ? [01:39] unvamp has joined the channel [01:41] Nexxy: Xenoraze, try socket.handshake.addres [01:41] Nexxy: address* [01:43] rfay has joined the channel [01:44] saschagehlich has joined the channel [01:44] Gigawatt: whats a simpel step library for nodejs [01:44] Xenoraze: Nexxy getting closer but that seems to be the server's address/port [01:44] Nexxy: Xenoraze, .remoteAddress ? [01:45] Nexxy: I only mention that cuz I asked `3rdEden the same question yesterday [01:45] Nexxy: but I haven't had a chance to figure it out yet [01:46] Xenoraze: Nexxy: undefined [01:46] Nexxy: Xenoraze, I'm not sure then ;< let me know if you figure it out though! [01:46] Xenoraze: socket.connection.remoteAddress worked in 0.6, but 0.7 has me stumped [01:47] Nexxy: fwiw I'm told it's fixed in 0.8 [01:47] Nexxy: hopefully? [01:47] Nexxy: maybe? [01:47] broofa has joined the channel [01:47] Nexxy: I just did a tacky hack and used a post to get the client's address [01:48] Nexxy: lol [01:48] Melkor_ has joined the channel [01:48] Xenoraze: Well I posted the question in the google group and hopefully I get an answer back soon [01:49] Xenoraze: If so I'll let you know [01:49] Poetro has left the channel [01:49] F1LT3R has joined the channel [01:53] AvianFlu has joined the channel [01:54] baoist has joined the channel [01:55] storrgie has joined the channel [01:55] t|f: Hmm...I try npm install libxmljs and get the error "/Users/wolf/node/include/node/uv.h:36:25: error: c-ares/ares.h: No such file or directory", even though I've previously done sudo port install c-ares . Anyone know whats going on? [01:55] t|f: oh..sudo port c-ares-dev ? [01:56] t|f: Nope, no such package. [01:56] brianc has joined the channel [01:57] scottschecter has left the channel [01:58] scottschecter has joined the channel [01:59] t|f: Just found https://github.com/joyent/node/pull/1204 which seems related, is this a case 'update node'? [01:59] systemfault has joined the channel [01:59] systemfault has joined the channel [02:00] k1ttty has joined the channel [02:00] softdrink has joined the channel [02:01] namelessnotion has joined the channel [02:02] bhitee has joined the channel [02:03] bhitee: when i installed nodejs on my mac, i was able to run it without sudo [02:03] bhitee: but i dont know what happened cos it doesn't even find the binary when i run the command without sudo [02:03] bhitee: pls what could be run [02:03] Lorentz: Try "which sudo" [02:03] bhitee: pls what could be wrong? [02:03] Lorentz: Uh, "which node" [02:03] bhitee: it runs in my /usr/local/bin directory [02:04] bhitee: node.js [02:04] t|f: I am running it without sudo, I just had to do ./configure --prefix=/Users/wolf/node [02:04] bhitee: basically some commands that have been running on my mac without using sudo now require me to login as root to run them on my mac [02:05] bhitee: yes, it used to run without sudo for me b4 now [02:05] bhitee: even wget says not found [02:05] jacter has joined the channel [02:05] bhitee: until i login as root [02:05] bogomips2__ has joined the channel [02:06] t|f: Dont know, perhaps a chown that went wrong or a path var change in your profile setup file recently? [02:07] stalled has joined the channel [02:07] t|f: You've prob tried it, but did you try exiting out of that shell completely, starting a new one, and trying it? If still not working then check path env variable and permissions on wget [02:09] bhitee: @t|f thanks for the suggestion but it has been like that for some days now, of which i've restarted terminal several times [02:09] Gigawatt: how the hell are you supposed to do TCP In sync mode :/ [02:10] t|f: Btw, if any1 else if having libxmljs install issues...rebuilding from current head of node and installing that fixed it. Seems to have been related to some recent libuv changes in Node.js [02:10] bhitee: checking permissions on wget alone won't solve the problem as several commands that used to work without sudo now requires sudo [02:10] Aria: Permissions on the bin directory? [02:10] siculars has joined the channel [02:11] caiges has joined the channel [02:11] t|f: bhitee, hmm..perms on bin dir check is a good idea. You can also capture output of set command as you, then diff with output of set as root [02:12] t|f: Path is the main thing I'd think, but something else might be relevant, maybe [02:12] t|f: Sounds like a non-node thing though [02:13] softdrink: Mess up your .profile or the main .bashrc? [02:14] CStumph has joined the channel [02:15] leahculver has joined the channel [02:15] leahculver has joined the channel [02:15] bhitee: t|f, what shd the perms for the bin be [02:16] Xenoraze: Nexxy: thanks for pointing me in the right direction I was able to patch my copy of manager.js to expose the remoteAddress [02:16] edude03 has joined the channel [02:16] t|f: 755 [02:16] AvianFlu has joined the channel [02:16] bhitee: i did check path sometimes ago and even earlier today, added /usr/local/bin to it and restarted terminal but still no progress [02:16] postwait has joined the channel [02:17] jerrysv has joined the channel [02:17] zouguo has joined the channel [02:18] softdrink: Change everything to 777 recursively from / [02:18] zouguo has left the channel [02:18] JohnnyL has left the channel [02:19] jamescarr has joined the channel [02:20] bhitee: u're seriously unserious [02:20] bhitee: t|f thanks i finally figured it out thanks [02:21] sorensen: softdrink: nice [02:21] sorensen: lol [02:21] abraxas: Has anyone here done any kind of data reduction in websockets? utf8 compatible text compression... [02:21] softdrink: Yeah do NOT do what I said a minute ago [02:21] t|f: Cool, out of curiousity..what was problem? [02:21] sorensen: ahahahha [02:21] bhitee: perms [02:21] niftylettuce has joined the channel [02:21] sorensen: rm /usr? [02:22] bhitee: why don't u rm -rf / [02:22] bhitee: thanks once again t|f [02:23] Murugaratham has joined the channel [02:23] t|f: I actually got bit once by rm -rf / wolf/sandbox as root (note space), thankfully was in VMWare or some such instance [02:23] jerrysv has joined the channel [02:23] t|f: bhitee, very welcome [02:23] sorensen: ahaha, nice correction [02:24] jamescarr: anyone here use mongoose-auth with their express app? [02:24] sorensen: eh, never got into it, probably should [02:24] sorensen: looked like it would be a bitch to do with sockets [02:24] sorensen: what are you concerned about [02:26] yozgrahame has joined the channel [02:28] mrryanjohnston: so i thinka tthis pioint i'm too tired to do productive coding, BUT [02:29] blippedxd has joined the channel [02:29] mrryanjohnston: i have events = require('events'); [02:29] mrryanjohnston: and eventEmitter = new events.EventEmitter() [02:29] mrryanjohnston: later on in the code, I do an evenEmitter.emit('name', { foo: bar }) [02:30] mrryanjohnston: later on in the code, I do eventEmitter.on('name', function() {}); [02:30] mrryanjohnston: the eventEmitter.on never triggers [02:30] mrryanjohnston: what am I doing wrong yo [02:30] mrryanjohnston: I had it working earlier but I forget how I did it :3 [02:32] CodyGray has joined the channel [02:33] CodyGray has left the channel [02:35] Nexxy: Xenoraze, awesome! thanks :) [02:35] drefined: jamescarr: yeah what about it? [02:36] jamescarr: I deployed it to my site and started having problems recently... the callback for the password step never gets called [02:36] jamescarr: works fine locally though [02:36] jamescarr: so it's driving me nuts [02:36] drefined: the authenticate? [02:37] t|f: Anyone worked with Calipso CMS? [02:38] chestone has joined the channel [02:38] caiges_ has joined the channel [02:39] chbrown has joined the channel [02:39] AvianFlu has joined the channel [02:40] jamescarr: yeah [02:41] rfairchild has joined the channel [02:42] mike5w3c has joined the channel [02:42] Wa has joined the channel [02:44] Ravatar- has joined the channel [02:45] superstructor has joined the channel [02:45] Ravatar- has joined the channel [02:46] Mrfloyd has joined the channel [02:46] perlmonkey2: In some MVC examples I've seen some people adding their controllers and models to the app object {app.controllers.myController, etc}, do many people do this? [02:48] mrryanjohnston: oh gosh darnit [02:49] mrryanjohnston: I had it right. [02:49] mrryanjohnston: was missing a ) in the client code. [02:49] mrryanjohnston: ffffff [02:49] AvianFlu has joined the channel [02:50] paznicul has joined the channel [02:51] sourcode has joined the channel [02:53] unvamp has joined the channel [02:53] ceej has joined the channel [02:54] sub_pop has joined the channel [02:54] AvianFlu has joined the channel [02:54] Xenoraze: mrryanjohnston: I tend to do that sort of thing a lot when I'm tired too [02:55] blueadept: anybody catch the nodeup podcast? http://nodeup.com/ [02:55] blueadept: needs some intro music [02:55] Mrfloyd has joined the channel [02:57] t|f: Looks like jsDav is not working for me, neither is refresh for different reasons. Seem to be the only two WebDAV implementation for Node out there [02:57] t|f: night all [02:57] xerox: blueadept: cool thanks for the link [02:58] JoshC1 has joined the channel [02:59] xerox: blueadept: urgh 150 MB [02:59] xerox: how long is it? two hours? [02:59] blueadept: ha yeah it's about 1hr 26m [03:00] xerox: that's waaaaaaay too long for a podcast! [03:00] blueadept: plus it's all technical [03:00] blueadept: haha [03:00] xerox: : ) [03:01] blueadept: they drive right into cross-browser testing [03:01] blueadept: hardcore [03:01] k1ttty has joined the channel [03:01] caiges_ has joined the channel [03:02] unvamp: google+ and sparks makes finding nodejs articles easy [03:02] xerox: it's hard to skip in an audio podcast [03:02] xerox: one reason to keep them short [03:02] blueadept: facebook should be scared of googles new social push [03:02] xerox: (they have no indexes= [03:02] xerox: plus people listen to them during commutes or short trips or ... [03:03] caiges has joined the channel [03:03] blueadept: xerox: what's interesting is that i have been lacking on my node testing [03:03] unvamp: blueadept: i didn;t think they could pull it off, but they stopped that design by commity shit and let one person do his design magic [03:03] blueadept: so about 1hr of node specific technical discussion on testing in particular is useful [03:03] blueadept: yes [03:03] blueadept: this is key [03:04] blueadept: the design is killer [03:04] blueadept: and by that i mean that it's just clean and it works and it's got good flow [03:04] blueadept: this is what happens when you put engineers back in charge [03:05] blueadept: because if anything the engineers will defer to those engineers that have solid UX, UI cred [03:05] blueadept: business managers will just fuck everything up and have it go all to hell [03:06] softdrink has joined the channel [03:09] blueadept: make a decision yokoe [03:09] dnunes has joined the channel [03:10] k1ttty_ has joined the channel [03:13] kriszyp has joined the channel [03:14] mrryanjohnston: good night noders [03:14] mrryanjohnston: thanks to everyone who demod my rps app today, btw :) [03:14] mrryanjohnston: gotta love this community [03:17] xeodox has joined the channel [03:18] azeroth_ has joined the channel [03:19] sechrist_ has joined the channel [03:20] blueadept: whats the url? [03:21] rchavik has joined the channel [03:21] saschagehlich has joined the channel [03:22] siculars has joined the channel [03:24] jerrysv: anyone have any thoughts about exposing private parts of modules for testing, but not in exports? is there an existing pattern for this? [03:24] jslatts has joined the channel [03:24] jesusabdullah: What if you wrapped private parts in submodules? [03:24] jerrysv: i'm not sure i like that [03:25] jerrysv: was thinking maybe defining test before the module inclusion [03:25] mikegerwitz: jerrysv: Don't test your privates. It's testing too close to the implementation. If they must be tested, you need further abstraction. [03:25] jerrysv: and: var test = test || { } [03:25] mikegerwitz: Of course, this is pulling heavily from testing with classical OO code. I'm not sure how your code is structured. [03:26] jerrysv: mikegerwitz: normally i'd agree with you, but i only want to expose one function, and keep the rest private, but since the one function i'm expsosing is "createServer()" i want to be able to either overwrite in the module, or include a mock in the module [03:26] jerrysv: i don't like either of those [03:27] jerrysv: or expose more [03:27] jerrysv: i am planning on using mock request and response objects in the tests [03:27] mikegerwitz: jerrysv: Well, in a classical OO sense, your solution would be to inject the necessary dependencies so they can be mocked. It's likely that your module is doing too much if you ened to test private members [03:28] jerrysv: so, in this case, it's not really privates (i mispoke), but more testing parts that i don't want to expose as a public api [03:28] mikegerwitz: jerrysv: Then create a facade that would glue it all together, and that wouldn't need to be tested in the same sense [03:28] jerrysv: eg, i don't want to expose that part of the api as a contract [03:28] howie has joined the channel [03:28] jerrysv: hm. [03:29] jerrysv: might complicate things a bit more, but that does give me room for thought [03:29] mikegerwitz: jerrysv: That's what the facade is for :) to remove that complication and make the interface easy to use. I'm not sure the best way to go about what you're suggesting otherwise... [03:30] mikegerwitz: jerrysv: You're encountering the same issues that most OOP do. The only difference here is that you're using "modules" instead of "classes" [03:30] jerrysv: heh, true. and as i said, normally i'd agree [03:30] howie: I'm having some trouble installing node from source on an ubuntu server. I've gotten it to work before but am not sure what's different this time... Erroring out on the "make" step [03:31] howie: anyone seen something like "Build failed: -> task failed (err #2): {task: uv uv.h -> uv.a} " [03:31] jerrysv: and i don't actually mind conceptually even making the request handler public [03:31] jerrysv: hm. maybe i'll do that - that would add more flexibility anyways [03:31] jerrysv: thanks for the sounding board! [03:32] CodyGray has joined the channel [03:32] CodyGray has left the channel [03:32] mikegerwitz: jerrysv: np..sorry I can't be of much more help other than that [03:33] jerrysv: s'ok! it helped clear my head [03:33] tilgovi has joined the channel [03:33] tilgovi has joined the channel [03:34] mikegerwitz: jerrysv: if you can find a copy or excerpts of the book "XUnit Test Patterns", it may have some useful tips in there too. It's been a while since I've looked it over, but you can apply many of the concepts to non-xunit-style testing [03:35] mikegerwitz: jerrysv: dependency injection isn't the only solution [03:36] jerrysv: i know, and i've been unit testing for years :) this is just a little bit different - not on the module front, but in what i'm trying to choose to expose [03:36] mikegerwitz: jerrysv: ahh, alright then :) [03:37] jerrysv: i'm looking for a tiny bit more freedom in the ability to change my api with very little consequences [03:37] jerrysv: in short, i'm trying to be very selfish [03:39] mikegerwitz: jerrysv: Well, if you change the public API, surely your tests will break regardless :) [03:41] mynyml has joined the channel [03:43] jerrysv: ha. good point :) [03:45] niftylettuce has joined the channel [03:45] McMAGIC--Copy has joined the channel [03:45] Gigawatt: anyone good with SMTP Servers [03:45] temp01 has joined the channel [03:46] Gigawatt: Everytime i send STARTTLS To google mail they close the connnection :( [03:46] Gigawatt: Im assuming it's to do with the connection, i need to create a secure connection with Gmail via Sockets [03:49] ekryski has joined the channel [03:49] jerrysv: gigawatt: did you ehlo? [03:51] jerrysv: gigawatt: you should be able to simulate it by hitting it via telnet do a ehlo, then it should tell you starttls is available, at which point it should work [03:53] wookiehangover has joined the channel [03:54] monokrome has left the channel [03:54] jacter has joined the channel [03:55] jacobolus has joined the channel [03:56] raja has joined the channel [03:58] Gigawatt: jerrysv, ive set up a small test here: https://gist.github.com/1057844 [03:59] Gigawatt: closes when i send AUTH LOGIN [03:59] wookiehangover has joined the channel [04:00] wookiehangover has joined the channel [04:01] dexter_e has joined the channel [04:03] chbrown has joined the channel [04:03] jerrysv: AUTH LOGIN [04:03] jerrysv: 502 5.5.1 Unrecognized command. q22si9058271bku.78 [04:03] Gigawatt: sorry you have to change HELO to EHLO [04:03] jerrysv: if i do an ehlo, i get an instant disconnect at the auth login -- if i helo i get that [04:03] kriszyp has joined the channel [04:04] Gigawatt: google does not allow non secure connections [04:04] Gigawatt: so you have to use the secure means [04:04] saikat has joined the channel [04:05] Gigawatt: ive been researching all night, and because nodes docs aint fully there yet it's hard to find out what i need to do [04:05] Gigawatt: im going to try again tomorrow, you you happen to find a fix, can you PM me :) [04:05] Gigawatt: Night all [04:06] AvianFlu has joined the channel [04:07] boehm has joined the channel [04:10] perezd has joined the channel [04:11] ChrisPartridge1 has joined the channel [04:12] lstoll has joined the channel [04:12] puffpio has joined the channel [04:13] tk has joined the channel [04:14] tk has joined the channel [04:15] k1ttty has joined the channel [04:20] nornagon has joined the channel [04:22] sw8sw8 has joined the channel [04:23] ryan[WIN] has joined the channel [04:24] tk has joined the channel [04:27] drefined has joined the channel [04:27] AvianFlu has joined the channel [04:29] edude03 has joined the channel [04:30] gwark has joined the channel [04:30] broofa has joined the channel [04:32] febits has joined the channel [04:36] CodyGray has joined the channel [04:36] CodyGray has left the channel [04:36] raja has joined the channel [04:36] cjm has joined the channel [04:39] willwhite has joined the channel [04:40] vid_ has joined the channel [04:41] namelessnotion has joined the channel [04:42] sergej222 has joined the channel [04:42] xeodox has left the channel [04:42] xeodox has joined the channel [04:42] xeodox has left the channel [04:43] mcluskydodallas has joined the channel [04:43] odie5533: Where can I find example usage of Node.js? [04:45] sorensen: what are you looking for? anything? [04:45] odie5533: Pretty much. [04:45] sorensen: uh [04:46] sorensen: http://sorensen.no.de [04:46] sorensen: is my current project [04:46] odie5533: a big blank gray page? [04:46] sorensen: :O [04:46] sorensen: loaded for me in chrome [04:46] sorensen: havnt browser tested [04:46] sorensen: hehe [04:46] odie5533: I worked on a similar project once, it was planned to be red but we decided it was too costly to go forward with. [04:46] slickplaid: blank grey page for me in chrome [04:47] sorensen: :O [04:47] sorensen: ACTION shoots self [04:47] odie5533: sorensen: any other examples? :D [04:47] sorensen: must have broke it in my last push today... anyways... [04:47] slickplaid: underscore doesn't seem to be loading [04:48] slickplaid: sorensen: keyCandy, mustache, underscore all 404 [04:48] odie5533: lol your js is cached on your pc so no one else can use it [04:48] sorensen: hahaha [04:48] sorensen: that could be [04:48] sorensen: i converted everything to submodules, mighta fucked up on joyent [04:48] sorensen: how about... http://darkteal.org:8080/#/rooms/general [04:48] odie5533: gray page. [04:49] sorensen: hell [04:49] sorensen: http://browserling.com [04:49] sorensen: i feel ashamed now [04:50] sorensen: at least i know something is wrong though [04:50] jerrysv: http://legitimatesounding.com:8080/ [04:50] odie5533: Why do people use port 8080 for their node.js projects? [04:50] jerrysv: node, redis, arduino [04:50] sorensen: 8080 is the default port for node i think [04:50] sorensen: and i can get to it from work :) [04:50] jerrysv: odie5533: only because i have port 80 bound by something else until i rebuild my blog engine [04:51] maushu: sorensen, http://stackoverflow.com/questions/2326004/prevent-selection-in-html/2326028#2326028 [04:51] jerrysv: and this is a one-off for my freezer :) [04:51] odie5533: jerrysv: redis? [04:51] jerrysv: odie5533: yeah, as the data store for the temperature data [04:52] odie5533: Is the thing running on a VPS? home PC? dedi? [04:52] jerrysv: my server in a colo [04:52] odie5533: so you just load up any apps you need, like redis? nice. [04:52] AvianFlu has joined the channel [04:53] maushu: odie5533, try www.linode.com [04:53] maushu: it's relatively cheap [04:54] jerrysv: evening avianflu [04:54] odie5533: Are any large sites using node.js? [04:55] sorensen: maushu: regarding what? [04:55] sorensen: http://calip.so [04:55] sw8sw8 has left the channel [04:55] sorensen: http://howtonode.org [04:57] kawaz_ has joined the channel [05:01] meso has joined the channel [05:02] AvianFlu: sup jerrysv [05:02] jerrysv: de nada. writing and testing, writing and testing. [05:03] rhdoenges has joined the channel [05:04] AvianFlu: at least you're not testing and writing [05:04] riven has joined the channel [05:04] riven has joined the channel [05:11] unlink has joined the channel [05:11] unlink has joined the channel [05:11] Twelve-60 has joined the channel [05:14] Xano has joined the channel [05:16] dgathright has joined the channel [05:18] jacter has joined the channel [05:18] kbni has joined the channel [05:20] tilgovi has joined the channel [05:20] tilgovi has joined the channel [05:24] caiges_ has joined the channel [05:30] MrTopf has joined the channel [05:32] mike5w3c has joined the channel [05:33] mraleph has joined the channel [05:33] fangel has joined the channel [05:35] skm has joined the channel [05:35] mhausenblas has joined the channel [05:38] SamuraiJack has joined the channel [05:39] pquerna has joined the channel [05:39] Mrfloyd has joined the channel [05:40] ngs has joined the channel [05:40] Mrfloyd has joined the channel [05:41] jvduf has joined the channel [05:42] MarcinM1 has joined the channel [05:43] ryanmcgrath has joined the channel [05:43] Mrfloyd has joined the channel [05:44] Mrfloyd has joined the channel [05:45] Mrfloyd has joined the channel [05:45] amerine has joined the channel [05:45] Mrfloyd has joined the channel [05:46] Mrfloyd has joined the channel [05:47] tilgovi has joined the channel [05:47] tilgovi has joined the channel [05:47] Mrfloyd has joined the channel [05:49] Mrfloyd has joined the channel [05:52] muhqu has joined the channel [05:52] Mrfloyd has joined the channel [05:53] Mrfloyd has joined the channel [05:54] Mrfloyd has joined the channel [05:56] jakehow has joined the channel [05:57] Mrfloyd has joined the channel [06:00] brownies has joined the channel [06:01] brownies has left the channel [06:02] saurabhverma has joined the channel [06:03] stephank has joined the channel [06:04] Emmanuel__ has joined the channel [06:05] AvianFlu has joined the channel [06:08] muk_work has joined the channel [06:08] brianmario has joined the channel [06:08] pig has joined the channel [06:09] Murugaratham has joined the channel [06:11] mraleph has joined the channel [06:12] raja has left the channel [06:16] Mrfloyd_ has joined the channel [06:17] Mrfloyd has joined the channel [06:20] ekryski has joined the channel [06:20] Xano has joined the channel [06:24] jacobolus has joined the channel [06:26] dexter_e has joined the channel [06:30] cosmincx has joined the channel [06:31] euforic has joined the channel [06:33] dexter_e_ has joined the channel [06:36] odie5533 has left the channel [06:36] `3rdEden has joined the channel [06:37] jeroen| has joined the channel [06:38] liar has joined the channel [06:40] groom has joined the channel [06:40] euforic: any one here using nodester ? I set up a socket.io chat and I am trying to connect remotely but cant through port 80 and I dont have access to the apps listening port ? [06:41] tayy has joined the channel [06:42] ChrisPartridge has joined the channel [06:42] btipling has joined the channel [06:42] Mrfloyd has joined the channel [06:43] Jakwac has joined the channel [06:43] djcoin has joined the channel [06:43] Mrfloyd has joined the channel [06:44] saikat has joined the channel [06:45] Yoric has joined the channel [06:48] Aiden has joined the channel [06:50] dvv has joined the channel [06:51] Mrfloyd has joined the channel [06:52] mraleph has joined the channel [06:53] Mrfloyd has joined the channel [06:54] neshaug has joined the channel [06:55] dvv has left the channel [06:55] Mrfloyd has joined the channel [06:56] simenbrekken has joined the channel [06:57] dgathright has joined the channel [06:57] skm has joined the channel [06:57] cognominal_ has joined the channel [07:02] dexter_e has joined the channel [07:03] bogomips2_ has joined the channel [07:04] path[l] has joined the channel [07:06] fangel has joined the channel [07:06] ivanfi has joined the channel [07:07] cognominal has joined the channel [07:08] jvduf has left the channel [07:08] saurabhverma has joined the channel [07:16] cognominal has joined the channel [07:20] migimunz has joined the channel [07:20] topaxi has joined the channel [07:20] yozgrahame has joined the channel [07:20] AvianFlu has joined the channel [07:20] bbrandon has joined the channel [07:22] yozgrahame1 has joined the channel [07:22] aliem has joined the channel [07:25] sechrist has joined the channel [07:25] catphive has joined the channel [07:28] mendel_ has joined the channel [07:29] Bj_o_rn has joined the channel [07:31] christkv has joined the channel [07:32] MrTopf has joined the channel [07:33] Bj_o_rn has left the channel [07:33] rio{ has joined the channel [07:35] CIA-110: node: 03Yoshihiro KIKUCHI 07v0.4 * r99b210d 10/ lib/tty_posix.js : [07:35] CIA-110: node: tiny fixes in tty_posix.js [07:35] CIA-110: node: Close #1158 [07:35] CIA-110: node: Close #1160 [07:35] CIA-110: node: Close #1252 - http://bit.ly/m8LrfM [07:36] JasonSmith has joined the channel [07:37] yozgrahame has joined the channel [07:37] tuhoojabotti: tiny fixes don't usually close 3 issues :D [07:37] hwinkel has joined the channel [07:38] tuhoojabotti: hah [07:38] tuhoojabotti: changed === to !== [07:38] jacter has joined the channel [07:38] tuhoojabotti: and l -> L [07:38] tuhoojabotti: :P [07:38] kixxauth has joined the channel [07:38] `3rdEden: Fixes Y U NO INCLUDE TESTCASE [07:40] tuhoojabotti: Testing is for people who write bad code. :/ [07:40] tuhoojabotti: ":D" [07:40] edude03 has joined the channel [07:41] sridatta has joined the channel [07:41] christkv has joined the channel [07:42] seivan has joined the channel [07:42] springify has joined the channel [07:44] espadrine` has joined the channel [07:45] simenbrekken has joined the channel [07:45] espadrine`: Hello! [07:45] uchuff has joined the channel [07:45] espadrine`: When installing node.js, I couldn't make doc [07:45] espadrine`: Got an error in markdown.js [07:46] tuhoojabotti: espadrine`: Do you need it? [07:46] espadrine`: like this: /Users/administrator/?/?/node/tools/doctool/markdown.js:152 [07:46] espadrine`: if ( ( m = (/^(\s*\n)/)(input) ) != null ) { [07:46] espadrine`: I wish I had it [07:46] tuhoojabotti: I just read the api doc online. :P [07:46] espadrine`: yes, but... you know... man pages are always handy [07:47] espadrine`: you're not always online [07:49] pigmej has joined the channel [07:49] espadrine`: Anybody knows what I should do, or why this happened? [07:49] espadrine`: This error seems legit. [07:49] espadrine`: But it probably isn't [07:51] littlebiged has joined the channel [07:52] tuhoojabotti: I'm always online. :/' [07:52] fly-away has joined the channel [07:54] espadrine`: I often want to program while on a train, so... [07:54] skm has joined the channel [07:55] bogomips2__ has joined the channel [07:55] AAA_awright_ has joined the channel [07:56] bergie has joined the channel [07:56] tuhoojabotti: Copy the api locally [07:56] tuhoojabotti: :D [07:56] tuhoojabotti: the site [07:56] tuhoojabotti: save it [07:56] tuhoojabotti: :P [07:57] saschagehlich has joined the channel [07:57] __doc__ has joined the channel [07:57] markwubben has joined the channel [07:58] ablomen has joined the channel [08:00] jomoho has joined the channel [08:00] Druide_ has joined the channel [08:01] espadrine`: well, sure, but man pages are feitherweight [08:01] espadrine`: I only code in the terminal, so it's literally always three keystrokes away [08:01] tuhoojabotti: So you also have low hdd space. [08:01] tuhoojabotti: ;) [08:02] espadrine`: now I do, yes [08:02] espadrine`: old computers... [08:03] tuhoojabotti: :) [08:08] christkv has joined the channel [08:09] dsirijus has joined the channel [08:10] riven has joined the channel [08:10] riven has joined the channel [08:12] Murugaratham has joined the channel [08:14] Sebastien-L has joined the channel [08:17] gozala has joined the channel [08:20] cachemoney has joined the channel [08:22] espadrine` has left the channel [08:25] seyz has joined the channel [08:26] path[l] has joined the channel [08:27] radiodario has joined the channel [08:27] Benjie: Does node have an statement akin to include? require() creates a new namespace for the module, I want to use the same namespace if possible. [08:30] mc_greeny has joined the channel [08:32] dall has joined the channel [08:32] dall: hello [08:32] jonaslund: Benjie: check the VM modules functionality [08:33] Esteb has joined the channel [08:34] jonaslund: worst case you'll have to load the file manually before evaluating [08:34] Benjie: jonaslund, thanks :) [08:35] jonaslund: np [08:36] adrianmg has joined the channel [08:36] neoesque has joined the channel [08:37] jonaslund: I loved require when i first discovered it.. unfortunally it goes badly with hot-code replacement/reloading [08:37] jonaslund: (Then again most code does so if you don't think it through) [08:40] tim_smart: jonaslund: I don't think hot code reloading is a very good idea with the v8 vm [08:41] tim_smart: It isn't really designed for that [08:41] tim_smart: Best method is to spin up more than one worker process and reload them one at a time. [08:42] jonaslund: err,, you do know that you can push code changes at runtime from the eclipse plugin? [08:42] jonaslund: but it wasn't that i was referring to [08:42] tim_smart: LiveEdit is a debug tool [08:42] simenbrekken has joined the channel [08:43] jonaslund: i was thinking more of the erlang way of doing things [08:43] jonaslund: have determined structures and push changes [08:43] espadrine` has joined the channel [08:43] jonaslund: for the mutation code [08:43] jonaslund: and keep the data between reloads [08:43] MattJ has joined the channel [08:44] tim_smart: While it is possible to do in node, it isn't a very good idea. [08:44] FireFly|n900 has joined the channel [08:45] tkroo has joined the channel [08:45] tim_smart: But you have to intentionally structure your code differently to do it. [08:45] tim_smart: It can lead to memory leaks etc. [08:45] jonaslund: why would that lead to more memory leaks ? [08:46] tim_smart: Creating aditional references that could get caught up in closures [08:47] tim_smart: *additional [08:47] jonaslund: assuming the closures get to live [08:47] jonaslund: but closures are exactly why require is a bad match for hot code reloading [08:48] tim_smart: erlang does it well because it was designed to do it well, v8 / node has not. [08:48] jonaslund: it's more about JS [08:49] jonaslund: code reloading is simple because you are really forced to behave well [08:49] jonaslund: in JS you ain't [08:49] thalll has joined the channel [08:50] andree has joined the channel [08:51] tim_smart: Well the very fact that JS is so dynamic doesn't help. [08:55] TomY has joined the channel [08:57] herbySk has joined the channel [08:59] bzinger has joined the channel [09:00] ditesh|cassini has joined the channel [09:03] muk_work has joined the channel [09:03] robhawkes has joined the channel [09:03] quiccker has joined the channel [09:04] beejeebus has joined the channel [09:04] Emmanuel__ has joined the channel [09:04] jonaslund: erl is pretty dynamic aswell.. but since they force all data to explicit structures and avoid circular refs it helps [09:05] jonaslund: silly to compare them [09:05] jonaslund: but since JS is dynamic hot reloading is just a step away [09:06] jonaslund: the big question is if we should enforce conventions that makes it harder or easier [09:07] jonaslund: for me atleast the thing that mainly resides in the global namespace is functions and constructors (and their prototypes) [09:08] jonaslund: now require makes private namespaces.. and that is great for separation of data,etc but it doesn't help if you want to update things on the fly [09:09] zomgbie has joined the channel [09:09] jonaslund: If i ignore modules i can update code with the repl [09:10] cspencer has joined the channel [09:11] jonaslund: hmmmm [09:11] jonaslund: right now the header a required module in node is something like function (exports,module..) { [09:11] c-spencer has joined the channel [09:12] blup has joined the channel [09:12] jonaslund: could modify it to function (exports,module..) { module.eval=function(x) { return eval(x); }; [09:12] jonaslund: and one could moduleEval("modulepath","blabla..."); [09:12] philhawksworth1 has joined the channel [09:12] jonaslund: (or something similiar) [09:12] philhawksworth1 has left the channel [09:16] tbassetto has joined the channel [09:17] jbpros has joined the channel [09:18] dall: guys, where can i see the parameters to pass to Error module? [09:18] saikat has joined the channel [09:19] dall: i some examples i found throw new Error("404 not found"); [09:19] dall: can i only pass a string? [09:19] level09 has joined the channel [09:20] jonaslund: you can pass anything [09:20] dall: also the code? [09:21] dall: example Error("not found", 404) [09:21] dall: = [09:21] dall: ? [09:22] jonaslund: new Error({msg:"Blabla",code:404}) [09:22] Mrfloyd has joined the channel [09:22] jonaslund: however.. look at http://stackoverflow.com/questions/1382107/whats-a-good-way-to-extend-error-in-javascript [09:23] dall: yes interesting.......an object ......and then create all the properties i want [09:23] dall: good [09:23] dall: i see the link [09:24] asabil has joined the channel [09:24] jonaslund: I guess it's a matter of style [09:24] iaincarsberg has joined the channel [09:25] chjj has joined the channel [09:25] jbpros has joined the channel [09:25] dall: yes [09:25] jonaslund: be careful with exceptions though [09:25] jonaslund: since you need someone to catch them [09:25] dall: jonaslund, yes....i'm using Express [09:26] dall: i can do next(new Error()); [09:26] dall: then express will catch the exception [09:26] logicc2 has joined the channel [09:27] gde33 has joined the channel [09:28] niftylettuce has joined the channel [09:29] bnoordhuis has joined the channel [09:30] Mrfloyd has joined the channel [09:32] andrewfff has joined the channel [09:32] christkv_ has joined the channel [09:33] tim_smart: SubStack: ping [09:33] tuhoojabotti: pong [09:33] tuhoojabotti: I like this game! [09:34] jvduf has joined the channel [09:36] hybsch has joined the channel [09:36] jacter has joined the channel [09:37] tim_smart: browserify people: Creating a browser bundled version of a package; the code is designed to run in multiple runtimes and I want to package a version for the browser. [09:37] Mrfloyd has joined the channel [09:37] tim_smart: The best way to do this with browserify is... [09:38] euforic has left the channel [09:39] davidcoallier has joined the channel [09:39] kytibe has joined the channel [09:40] Mrfloyd has joined the channel [09:43] ditesh|cassini has joined the channel [09:44] Mrfloyd has joined the channel [09:44] tokumine has joined the channel [09:46] fly-away has joined the channel [09:47] riven` has joined the channel [09:47] riven has joined the channel [09:48] cognominal_ has joined the channel [09:49] pickels has joined the channel [09:51] paznicul has joined the channel [09:52] Emmanuel__ has joined the channel [09:52] espadrine`: Does somebody know why `make doc` doesn't work when building the troff pages? [09:52] espadrine`: I get : /Users/administrator/?/?/node/tools/doctool/markdown.js:152 [09:52] espadrine`: if ( ( m = (/^(\s*\n)/)(input) ) != null ) { [09:53] sreeix has joined the channel [09:53] espadrine`: (using the head of the master node.js branch) [09:54] rauchg has joined the channel [09:54] zomgbie has joined the channel [09:54] shinuza has joined the channel [09:56] davidcoallier has joined the channel [09:57] Mrfloyd has joined the channel [09:58] Skola has joined the channel [10:01] Mrfloyd has joined the channel [10:02] Mrfloyd_ has joined the channel [10:03] riven has joined the channel [10:03] riven has joined the channel [10:03] Mrfloyd has joined the channel [10:05] sounko has joined the channel [10:05] skm has joined the channel [10:06] skm has joined the channel [10:07] sjbreen has joined the channel [10:08] dall: hmmm [10:08] dall: guys if i do console.log(err) [10:08] dall: i see [10:08] dall: Error: 500 [10:08] dall: is it normal? (500 is the number i passed) [10:10] dall: why it pass 'Error:' string before �_� [10:10] dall: i only waould handle the number or object i passed to it [10:12] cosmincx has joined the channel [10:13] pomodoro has joined the channel [10:15] dexter_e: Anyone know how to put JSON strings into a Mustache render? [10:15] pdelgallego has joined the channel [10:15] mandric_ has joined the channel [10:17] fermion has joined the channel [10:17] sth: dexter_e: stringify it and then display it? [10:17] herbySk has joined the channel [10:18] dexter_e: Thats what I'm doing but it comes out looking like this : {"_id":"aa63a8d [10:18] felixge has joined the channel [10:18] felixge has joined the channel [10:18] dexter_e: a bunch of: " instead of a string that I can just eval after it arrives in browser [10:18] dexter_e: it seems to be working but mustache seems to convert the " " to " " [10:19] Murvin has joined the channel [10:19] Xano has joined the channel [10:19] Murvin: people still awake? lol [10:21] mAritz has joined the channel [10:22] CoinOpeBoy has joined the channel [10:24] stephanepayrard_ has joined the channel [10:28] cosmincx1 has joined the channel [10:28] Murvin: O Canada [10:33] infynyxx has joined the channel [10:34] skm has joined the channel [10:36] muk_work has joined the channel [10:36] squeese has joined the channel [10:42] riven` has joined the channel [10:43] materialdesigner has joined the channel [10:45] ChrisPartridge has joined the channel [10:46] ChrisPartridge has left the channel [10:46] Wizek has joined the channel [10:48] patrikkarlin has joined the channel [10:53] skohorn has joined the channel [10:55] cosmincx has joined the channel [10:55] nornagon has joined the channel [10:56] littlebiged has joined the channel [10:56] HeikkiV_ has joined the channel [10:56] Kaitsu has joined the channel [10:56] Kaitsu: Hey can anyone help me with Node's VM module? [10:57] yorick: possibly [10:57] Kaitsu: Whenever I run code that contains fs.readFile for instance in VM, then the code will never execute the callback [10:57] Kaitsu: the same code works outside of VM [10:57] Kaitsu: for some reason, VM code can't read/find files [10:58] Kaitsu: whether it's absolute or relative [10:58] k1ttty has joined the channel [10:59] Kaitsu: e.g. var fs = require('fs'); fs.readFile('/home/kai/test', callback); <-- if I run that code in VM it won't find the file and never execute the callback even though the code works outside of VM [10:59] micrypt has joined the channel [10:59] sourcode has joined the channel [11:03] \sega has joined the channel [11:03] Skola: Love the podcast by Felix, James and Isaac [11:05] supster has joined the channel [11:05] Kaitsu: Actually, it seems I can't do require('any_module') in code that I run in VM [11:05] framlin: Skola: do u have the url for that podcast? [11:06] littlebiged has joined the channel [11:06] Skola: http://nodeup.com/ [11:07] nornagon_ has joined the channel [11:07] Mrfloyd has joined the channel [11:07] paul_uk has joined the channel [11:08] paul_uk: hi all, hope someone can help. trying to install node-expat and I keep on getting ImportError: No module named Scripting then later `sh "-c" "node-waf configure build"` failed with 1. I'm running node v0.49 and npm v1.0.15 [11:10] matwill has joined the channel [11:10] ceej has joined the channel [11:11] riven has joined the channel [11:17] Bwen has joined the channel [11:17] beejeebus has left the channel [11:18] ironyboy has joined the channel [11:18] ironyboy: any socket.io users able to help me with a problem? [11:19] nornagon has joined the channel [11:19] paul_uk: ironybox maybe try #socket.io or the google groups if you get no answer :) [11:19] ironyboy: @paul_uk - I have :( [11:19] paul_uk: anyone know what the wafadmin tools are? I keep on getting node-waf configure build Traceback (most recent call last): File "/usr/bin/node-waf", line 14, in import Scripting ImportError: No module named Scripting [11:19] paul_uk: then ask the Q and wait for an answer [11:20] zomgbie has joined the channel [11:20] Mrfloyd has joined the channel [11:21] paul_uk: could it be my version of python? python-2.6.4-27 [11:21] Mrfloyd has joined the channel [11:22] ironyboy: I seem not to be able to pick up a message on a specific socket using socket.io, but can when broadcasting to all, yet from the client I can't see why that would be the case [11:23] pHcF has joined the channel [11:23] carmony has joined the channel [11:24] negev has joined the channel [11:24] negev: hi, latest node is failing to compile on ubuntu 10.4.2 lucid - uv-linux.c:34: error: ‘NANOSEC’ undeclared (first use in this function) [11:25] Kaitsu: Is there a better way to manage hot reloads for Node other than monitoring filesystem changes for .js files and restarting the server? [11:26] kuya: SubStack: you there? [11:27] eldios has joined the channel [11:33] shinuza has joined the channel [11:34] nornagon_ has joined the channel [11:34] hellp has joined the channel [11:35] storrgie has joined the channel [11:40] siculars has joined the channel [11:40] Emmanuel__ has joined the channel [11:42] ditesh|cassini has joined the channel [11:42] piscisaureus has joined the channel [11:45] confoocious has joined the channel [11:45] confoocious has joined the channel [11:45] F1LT3R has joined the channel [11:46] jonasen has joined the channel [11:46] johncarse has joined the channel [11:47] johncarse: Is anyone using IntelliJ's NodeJS plugin for development/debugging? [11:50] fangel has joined the channel [11:50] devaholic has joined the channel [11:51] openbala has joined the channel [11:51] jarek has joined the channel [11:51] jarek has joined the channel [11:52] johncarse: I guess it's late in the US [11:52] johncarse: I'm in Japan. Anyone here in Japan? [11:53] mega: im in sweden :D [11:54] jonaslund has joined the channel [11:55] jonaslund_ has joined the channel [11:56] johncarse: It must be early afternoon in Sweden. [11:56] devaholic: its morning in the US [11:56] johncarse: I guess it probably is. [11:56] jonaslund_: 13:56 over here [11:56] devaholic: 6:54 [11:56] jonaslund_: (sweden) [11:56] devaholic: how's that sun [11:56] johncarse: My son lives in Texas.. Austin. [11:56] okuryu has joined the channel [11:56] mega: i dont se a node.js plugin in the plugins tag johncarse [11:57] tuhoojabotti: I'm in Finland. [11:57] tuhoojabotti: 14:57 Finland :P [11:57] jonaslund_: (What was that about sweden when i joined?) [11:57] zomgbie has joined the channel [11:57] devaholic: who's using dnode? my project got raaaped when i updated [11:57] johncarse: http://plugins.intellij.net/plugin/?webide&id=6098 [11:57] devaholic: only dnode@0.7.2 is working for me >.> [11:58] pigmej: what's recommended mysql driver? [11:58] Renegade001 has joined the channel [11:58] seivan has joined the channel [11:58] devaholic: i meant how is the sun, dont you guys (fin/swede) get like 20 hours of sunlight a day right now or something ridiculous like that [11:59] johncarse: I'm new to node, but it looks REALLY interesting.. as I'm sure you all believe [11:59] devaholic: derrp [11:59] johncarse: I've been working a lot of today on getting a development environment up and running.. [11:59] mega: is there 20 hours of sun here :O [11:59] mega: dont think so [11:59] devaholic: isnt there a lot though? [12:00] devaholic: i spoke with a guy from norway, maybe he is waaay farther north [12:00] mrryanjohnston has joined the channel [12:00] Ezku\: devaholic: no, you're quite right [12:00] mega: yea if he is beyond a serten line [12:00] squeese: Im in south part of norway, its close to 20h sun, but not quite [12:00] jobim: same here, except fin [12:01] squeese: however, in the norhtern part (where Im born) its soon going to be 24h ;) [12:01] jonaslund: damn what a fin invasion :P [12:01] jonaslund: err [12:01] jonaslund: squeese: we've passed the top point already [12:01] skohorn has joined the channel [12:01] Ezku\: helsinki (souther finland) has a bit less than 19 hours between sunrise and sunset [12:01] Ezku\: +n [12:01] squeese: oh, ok :) [12:01] devaholic: see mega, told u [12:02] jonaslund: june 20th-23rd or smth like that i think [12:02] devaholic: tryin to trick me ;) [12:02] Ezku\: so a bit norther up you'd easily get 20h [12:02] jonaslund: it'll just keep getting darker from now on :( [12:02] jonaslund: atleast the women are still wearing short shorts :D [12:02] devaholic: i dont know if i would find that really awesome or if it'd drive me crazy but i'd like to experience at least one haha [12:02] devaholic: i bet the reverse in the winters really sucks balls, tbh [12:02] squeese: well, its not really "hot" 20 hours.. :) [12:03] Ezku\: plus it's a 25C heat wave right now, which for us finns is more than adequate [12:03] johncarse: Has anyone used IntelliJ for NodeJS development? [12:03] espadrine` has left the channel [12:03] devaholic: 25c a heat wave lol [12:03] mega: im instaling it :D [12:03] Ezku\: the sunsets at midsummer tend to be awesome. [12:03] squeese: devaholic: not really, if youre a nerd - summer is a constant guilt trip "I should be outside doing stuff", winter is just right, no guilt trip - always stay inside and geek! :D [12:03] johncarse: mega, I'm hoping that it makes more sense to you than me.. [12:03] Ezku\: squeese: correct :D [12:03] devaholic: endless night [12:03] mega: its not working for you? [12:04] devaholic: missing the few hours of sunlight in the winter could be depressing [12:04] jonaslund: johncarse: last i heard you needed a beta version of webstorm to get that plugin working [12:04] devaholic: if you slept through it on accident or something lol [12:04] jonaslund: (No idea how closely related webstorm/intellij are) [12:04] johncarse: According to the site, it has support for IDEA [12:04] johncarse: And.. I can get it to run the script. [12:04] Ezku\: devaholic: they're in the middle of the day, so it can even be likely that you'll miss it [12:05] johncarse: However, it doesn't seem to be exactly working.. [12:05] jonaslund: devaholic: I had the bad habit of pulling allnighters (acquired during shiny summers) and it can really backfire during the winter yeah [12:05] Ezku\: like, there's sunlight from afternoon to late afternoon... if you stay at work past, say, 5, it's already gone. [12:05] jonaslund: ACTION used to live some 40kms south of the polar circle [12:05] johncarse: It wants a "Path to Node App JS File" -- and I have no idea what it is.. [12:06] johncarse: For some reason, I think it's a file that describes the node API for the intellisense stuff .. [12:06] devaholic: you dont need intellisense, use the force [12:07] mega: or the docs :P [12:07] TechCel has joined the channel [12:07] mrryanjohnston: hey guys, I'm experiencing some weirdness with my code and was hoping someone could point me in the right direction: https://github.com/rjohnston/svn-monitor-node. I have an svn hook doing `curl -i -H "Accept: application/json" -X POST -d "author=$AUTHOR&comment=$COMMENT&diff=$DIFF" http://localhost:3000`. It fires, causing the socket.io to send the commit to the user's screen. However, when I reload the page, the commit is s [12:07] devaholic: interesting to learn about that, ezku, jonaslund [12:08] paul_uk: hi all, hope someone can help. trying to install node-expat and I keep on getting ImportError: No module named Scripting then later `sh "-c" "node-waf configure build"` failed with 1. I'm running node v0.49 and npm v1.0.15 [12:08] jonaslund: the summer is great though [12:08] mrryanjohnston: The first commit will show up once, the second shows up 2 times, the third 4, the fourth 5 times, the fifth 6 times [12:08] jonaslund: because just before midsummer the sun is only just below the horizon [12:08] mrryanjohnston: paul_uk: do you have the "Scripting" module installed? [12:08] jonaslund: so if you're out boozing you sometimes find yourself chatting at a girl at 3am without even realizing the time [12:08] FireFly|n900 has joined the channel [12:08] devaholic: paul_uk your node/npm versions seem whack. [12:08] jonaslund: since the sun never set [12:09] jonaslund: (or it did set but it was bright enough that you didn't notice) [12:09] paul_uk: mrryanjohnston, there is no scripting module [12:09] mrryanjohnston: paul_uk: ah, well then, what dev said [12:09] paul_uk: devaholic, yeah i thought that might be the case, but what should they be? [12:09] rauchg_ has joined the channel [12:09] paul_uk: npm 2.x or something? [12:10] devaholic: : that late night sun would be AWESOME i think [12:10] devaholic: do npm install n [12:10] devaholic: then use n to install 0.4.7 or something [12:10] devaholic: might have better luck with that [12:11] devaholic: or perhaps, check the package.json of what you are installing [12:11] sfoster has joined the channel [12:11] paul_uk: devaholic, it says n@0.4.1 ./node_modules/n [12:11] Ezku\: devaholic: right... sorry for the off-topic :) [12:12] devaholic: sorry, n is just a package to easily change your node version [12:13] devaholic: the version of n doesnt matter ;) [12:13] paul_uk: ok so im still confused at what i should do. [12:13] paul_uk: am i running to close to the edge? [12:14] devaholic: yeah possibly [12:14] devaholic: if you install n okay, just try n 0.4.7 which is the stable version of node [12:14] paul_uk: isn't 0.4.9 the stable version? [12:14] devaholic: if that still doesnt work, i'd investigate the package.json of whatever you are installing, unless its a reportes issue with that package [12:15] paul_uk: this is the package.json https://github.com/astro/node-xmpp/blob/master/package.json [12:15] devaholic: i think its 0.4.7, but i could be wrong [12:15] skript_ has joined the channel [12:15] devaholic: and yeah if its not a dependency issue and its somethign with the project itself then we are just blowing hot air [12:15] paul_uk: 2011.06.29 node-v0.4.9.tar.gz thats what they have on the nodejs site [12:15] _jgr has joined the channel [12:15] jvduf has joined the channel [12:16] paul_uk: devaholic, ok well thanks. i have opened an issue on the github for the project. so im gonna leave it at that [12:16] devaholic: i'd still give an earlier version of node a try, it's pretty easy to do [12:16] devaholic: "engine": "node >=0.4.0" [12:16] devaholic: thats pretty far from 0.4.9 [12:17] paul_uk: isn't he saying it should just be greater or equal to 0.4.0 [12:17] paul_uk: as in if you are 0.2.x then you should upgraed? [12:17] devaholic: yes [12:18] devaholic: but if he created it when 0.4.0 came out that was quite a while ago, is all [12:18] devaholic: not really worth debating about [12:20] johncarse: I got the IntelliJ plugin working. [12:21] hash3g has joined the channel [12:21] fangel has joined the channel [12:21] johncarse: The "Path to Node App JS File" is your js that you want to debug [12:22] johncarse: There is no "type" of project that is write for creating the initial project, from what I can tell. [12:23] johncarse: You create a run/debug configuration with the path to node and the path to your js file.. you'll have one configuration for each, I guess [12:23] johncarse: write.. right [12:23] hash3g: hi there, could somebody help me with installing node.js from git? I have error https://gist.github.com/1055024. [12:23] johncarse: And, when you click debug, it brings up the browser. [12:24] johncarse: ..I'm sorry.. not a browser.. it brings up the debug console. [12:24] johncarse: You can set breakpoints, etc.. seems to work ok. [12:24] paul_uk: Anyone here using Fedora (13) and running node-expat ? [12:26] devaholic: johncarse sounds cool [12:26] devaholic: is that the one that looks like the chrome debugger? [12:27] johncarse: No, it doesn't quite look the chrome debugger... [12:27] johncarse: I found something called node-inspector that uses chrome to do the debugging. [12:27] johncarse: I may switch to that. [12:27] devaholic: hash3g do you have g++ or something installed? [12:27] matwill has joined the channel [12:28] johncarse: http://www.youtube.com/watch?v=AOnK3NVnxL8 [12:28] devaholic: johncarse: ah, hrm, i bookmarked a debugger tool that let you do as you described, it had the same UI as the chrome dev tools, seemed pretty powerful [12:28] devaholic: i want to track it down now... [12:29] mrryanjohnston: ah nevermind I got it [12:29] hash3g: devaholic, I have both gcc and g++ installed [12:29] devaholic: it had a pretty simple name, iirc [12:29] mrryanjohnston: There's somethiung a little nutty with socket.io [12:29] johncarse: Check that link.. http://www.contentwithstyle.co.uk/content/debug-your-node-js-with-node-inspector/ [12:29] CIA-110: libuv: 03Igor Zinkovsky 07master * r320057d 10/ (17 files in 2 dirs): uv_stream_t - http://bit.ly/md3AtA [12:29] devaholic: oh, yeah thats it [12:29] devaholic: haha. [12:29] devaholic: you dont think that looks like chrome?! [12:30] cosmincx has joined the channel [12:30] johncarse: no.. it doesn't look like chrome.. it is chrome [12:30] johncarse: ;) [12:30] johncarse: He sets up a web server to send the javascript to chrome to debug. [12:30] devaholic: ohh [12:31] devaholic: ... still ... looks ... like [12:31] johncarse: yes.. just like [12:33] devaholic: heh [12:33] devaholic: its a pretty cool project [12:35] jonasen has joined the channel [12:35] al3xnull_ has joined the channel [12:37] devaholic: sigh.. dnode connections keep dying without any event or error or anything [12:39] rauchg has joined the channel [12:39] ph^ has joined the channel [12:39] azeroth_ has joined the channel [12:40] Poetro has joined the channel [12:41] hash3g: any suggestion? i do not know gcc to make nodejs compilation work [12:42] johncarse: hash3g, what OS are you using? [12:43] hash3g: johncarse, ubuntu 11.04 x86_64 [12:43] johncarse: sudo apt-get install node [12:43] Yoric has joined the channel [12:43] johncarse: might be.. sudo apt-get install nodejs [12:43] broofa has joined the channel [12:43] johncarse: it'll be 0.4.9 [12:44] johncarse: you're running the same OS as I am.. [12:44] sylvinus has joined the channel [12:45] riven has joined the channel [12:45] riven has joined the channel [12:45] ph^ has joined the channel [12:48] hash3g: apt successfully installed nodejs but when i install npm I have errors like "Error: Cannot find module 'semver'" and so on [12:48] fumanchu182 has joined the channel [12:49] zmbmartin has joined the channel [12:49] hash3g: https://gist.github.com/1058475 complete log of "curl http://npmjs.org/install.sh | sh" [12:53] samBiotic has joined the channel [12:53] jslatts has joined the channel [12:55] onr: hash3g: which version of nodejs your apt installed? [12:56] hash3g: щткЖ v0.2.6 [12:56] hash3g: onr: v0.2.6 [12:57] onr: hash3g: you should build from source [12:57] dexter_e has joined the channel [12:58] hash3g: onr: i tried but have an error when doing make. see https://gist.github.com/1055024. [12:59] kriszyp has joined the channel [13:00] muk_work has joined the channel [13:00] pomodoro has joined the channel [13:01] jlecker has joined the channel [13:01] stepheneb has joined the channel [13:02] postwait has joined the channel [13:03] pastak has joined the channel [13:03] onr: hash3g: hmm. sorry i cant help you [13:05] avalanche123 has joined the channel [13:07] ianward has joined the channel [13:09] sylvinus has joined the channel [13:12] skohorn has joined the channel [13:16] xandrews has joined the channel [13:18] hdon: hi all :) i have done "npm -g install db-mysql" and it installed in /usr/local/lib/node/node_modules. when i strace node require('db-mysql') i notice it is not looking in /usr/local/lib/node/node_modules, it only looks in /usr/local/lib/node. any help? [13:20] mike5w3c has joined the channel [13:21] romainhuet has joined the channel [13:21] sreeix has joined the channel [13:22] hdon: OH.. i have no /usr/local/lib/node/node_modules, i have /usr/local/lib/node_modules ! [13:23] hdon: for now, then, it appears that a NODE_PATH of /usr/local/lib/node_modules works, however i am afraid this is probably not ideal [13:23] hdon: anyone with any advice please /msg me :) [13:23] openbala has left the channel [13:24] appa has joined the channel [13:25] appa: hi [13:25] appa: i'm getting an error building node on ubuntu [13:26] appa: of error: ‘NANOSEC’ undeclared [13:26] appa: any ideas? [13:26] thalll has joined the channel [13:27] devaholic: ahhh ive seen that one [13:27] devaholic: cant remember how to fix it though, sorry [13:27] appa: hmm [13:27] appa: :) [13:27] appa: any pointers? [13:29] CoinOpeBoy has joined the channel [13:30] taf2: building node.js master on linux fails... NANOSEC is undefined in uv-linux.c [13:30] taf2: just finished running grep -r NANOSEC /usr/include/ and found no references to that const.... [13:30] appa: yeah [13:30] appa: facing the same error [13:30] taf2: looks like a node.js specific const? [13:31] taf2: see it defined in test-hrtime.c when it's not defined... [13:31] appa: i've googled it, and not finding anyone else running into the same issue... [13:31] taf2: the comment in uv-linux.c is interesting: There's probably some way to get time from Linux than gettimeofday() [13:33] unomi has joined the channel [13:33] taf2: appa, i have a patch, https://gist.github.com/1058549 [13:34] taf2: would be nice to address the comment though... [13:34] k1ttty has joined the channel [13:34] appa: thanks! [13:34] appa: let me try that out [13:35] appa: that worked, thanks much [13:35] taf2: the real bugger with node.js for me is on mac though... it's use of #include in places where it should be #include "platform.h" // use < when it's a system library dep and " when it's a project specific header... [13:35] taf2: sucks because tidy has the same header [13:36] taf2: what's the best way to get patches into node :) [13:38] mrryanjohnston: taf2: github :3 [13:39] jacobolus has joined the channel [13:39] taf2: https://github.com/joyent/node/issues/1003 [13:39] taf2: mrryanjohnston, yeah... i wish my issue 1003 would get fixed [13:39] wlkh has joined the channel [13:40] taf2: can you see if that would break anything... my understanding is if headerX is part of your project use "" otherwise use <> [13:40] aheckmann has joined the channel [13:40] taf2: if you have tidy-devel installed you can't build node.js [13:40] mrryanjohnston: taf2: I'm not the right guy to ask about that :P [13:41] mrryanjohnston: have you tried pinging ryah_ in here? [13:41] nail_: heh, I clicked the github link and thought that was my face... cognitive dissonance [13:42] matwill has joined the channel [13:42] mrryanjohnston: taf2: perhaps send him a /msg [13:42] hdon has joined the channel [13:43] taf2: done thanks :) [13:43] samBiotic: Is there any way to specify a local path to a dependency using npm? [13:43] jlecker has left the channel [13:43] necrodearia has joined the channel [13:43] mrryanjohnston: taf2: sure thing. sorry i can't be of more help :) [13:43] pifantastic has joined the channel [13:44] hdon: hi all :) npm -g install installs in /usr/local/lib/node_modules but node looks in /usr/local/lib/node -- any idea why the discrepancy? [13:44] devuo has joined the channel [13:45] brianseeders has joined the channel [13:46] necrodearia has joined the channel [13:49] jonasen has joined the channel [13:50] path[l] has joined the channel [13:52] tbassetto has joined the channel [13:52] CIA-110: libuv: 03Ryan Dahl 07master * r8cd3d71 10/ (config-unix.mk uv-linux.c): fix linux build - http://bit.ly/inF5Fi [13:52] stagas_ has joined the channel [13:53] patrikkarlin has joined the channel [13:53] dtan has joined the channel [13:54] mega: anny node developers here? [13:54] bnoordhuis: mega: yes [13:54] unvamp has joined the channel [13:55] mega: i meant contributors sorry [13:55] lmorchard has joined the channel [13:55] mega: still true? [13:55] pigmej: anyone using mongose / [13:56] mhauri has joined the channel [13:57] bnoordhuis: mega: still true [13:57] bbrandon has joined the channel [13:58] Gigawatt: anyone know how to upgrade a socket to tls? [13:58] Gigawatt: https://gist.github.com/848444 [13:58] Gigawatt: I can't figure it out [13:59] maushu has joined the channel [13:59] mega: bnoordhuis: i whant to help contributing anny pointers on something to start on? [13:59] CodyGray has joined the channel [14:00] CodyGray has left the channel [14:00] bnoordhuis: mega: one thing we could really use is bug triage [14:00] bnoordhuis: mega: the issue tracker is building up a big backlog and most of those issues are probably not relevant anymore [14:01] bnoordhuis: mega: i'm trying to work through it myself but they're coming in faster than one man can resolve them [14:01] nibblebot has joined the channel [14:01] mega: so check if there still relevant? [14:02] bnoordhuis: mega: yes [14:02] bnoordhuis: mega: not the most glamorous work in the world [14:02] bnoordhuis: mega: but needed [14:02] catshirt has joined the channel [14:03] pigmej: is anyone using Mongoose ? [14:03] pigmej: I'm interested if it supports Replica setup [14:04] bnoordhuis: okay, gtg [14:05] brianc has joined the channel [14:07] wbw72 has joined the channel [14:08] simenbrekken has joined the channel [14:08] willwhite has joined the channel [14:09] pifantastic has joined the channel [14:15] agrohe21 has joined the channel [14:16] jslatts has joined the channel [14:17] ksheurs has joined the channel [14:18] figital has joined the channel [14:18] dall: what is the difference betweek exports.myFunction = myFunction and module.exports = myFunction ? [14:19] jbroman: dall: Whatever module.exports is set to will be what will be returned when someone runs require('mymodule') [14:19] asabil has joined the channel [14:19] bronson has joined the channel [14:19] jbroman: If you set exports to a function, then reaching your function will look like this: var myfunc = require('mymodule'); myfunc(1, 2, 3); [14:19] al3xnull_ has joined the channel [14:19] Charuru has joined the channel [14:20] jbroman: If you set a property on the exports object, then it will look like this: var mymodule = require('mymodule'); mymodule.myfunc(1, 2, 3); [14:20] jbroman: You can assign any sort of data you'd like to module.exports, and it will be returned when your module is required. By default, there is an empty object there that you can assign properties to, but you are totally free to put whatever you want. [14:20] dall: jbroman, perfect! [14:20] dall: thank you alot [14:21] mhausenblas has joined the channel [14:23] hij1nx has joined the channel [14:24] bshumate has joined the channel [14:24] bshumate has joined the channel [14:25] devuo has left the channel [14:26] mandric has joined the channel [14:26] lmorchard has joined the channel [14:27] pigmej: Lol [14:27] kulor-uk has joined the channel [14:27] pigmej: did mongose really need to restart app to reconnect to mongo :| [14:27] jameson has joined the channel [14:29] rio{ has joined the channel [14:29] mandric has joined the channel [14:30] mandric has joined the channel [14:31] sonnym has joined the channel [14:31] matwill has joined the channel [14:32] mandric has joined the channel [14:32] taf2: any thoughts on having node's c++ headers in a sub folder? e.g. node/* ... this would help avoid issues like https://github.com/joyent/node/issues/1003 [14:33] taf2: v8 also has a platform.h [14:34] devuo has joined the channel [14:34] sbisbee has joined the channel [14:36] descipher has joined the channel [14:37] Swizec has joined the channel [14:40] Know1edge has joined the channel [14:40] jtsnow has joined the channel [14:41] dexter_e: Does npm have a central place it keeps track of installed packages? It seems that when I copy an entire App it still uses files from the old location... [14:43] Know1edge has left the channel [14:45] blup: is it possible to call a node.io process from a regular nodejs module, and retrieve the results as a variable? [14:46] kmiyashiro has joined the channel [14:46] JoshC1 has joined the channel [14:47] mynyml has joined the channel [14:49] mcutler has joined the channel [14:50] FIQ has joined the channel [14:50] mcutler has left the channel [14:52] level09 has joined the channel [14:53] level09: any 1 worked with JSdom [14:53] level09: or request [14:53] mapleman has joined the channel [14:53] level09: I'm looking for a library to fetch HTML pages while being able to set the user agent [14:53] matwill has joined the channel [14:54] MrTopf has joined the channel [14:54] blueadept has joined the channel [14:54] dexter_e: Yeah I've been trying to figure out JSDOM too [14:55] dexter_e: like can we insert a script tag with inline JSON strings [14:55] mandric: hello i am running node 0.4.5 and npm 1.0.6 and wondering why it seems node does not see the /usr/lib/node_modules/ directory. i.e. npm install -g does not work as expected. [14:55] mandric: do i need to upgrade or is it something else? [14:55] kuya: SubStack: is there a way to make dnode look down the prototype chain? [14:56] pandeiro has joined the channel [14:56] eveningsky has joined the channel [14:57] ironyboy has joined the channel [14:57] wlkh has joined the channel [14:57] onr: he who knows js and c can conquer the world [14:58] dvv has joined the channel [14:58] sub_pop has joined the channel [15:00] pigmej: I wonder who 'invented' that connection fuckup in mongoose... [15:00] pigmej: how a 'well tested' + 'popular' library [15:00] pigmej: can behave like this ;/ [15:00] clifton has joined the channel [15:01] taf2: what's the issue? [15:01] pigmej: when the connection to mongo breaks [15:01] pigmej: you need to restart application [15:01] pigmej: also I have no idae how to use replicas in mongose [15:02] pigmej: mongoose [15:02] dvv: have you created the bug reports? [15:02] FireFly|n900 has joined the channel [15:02] taf2: pigmej, you're saying there's no way to call mongoose.connect again on a disconnect? [15:02] pigmej: dw: reported in april [15:03] taf2: can you link to the report [15:03] pigmej: sure [15:03] pigmej: for me the mongoose [15:03] pigmej: seems to be a 'joke' [15:03] pigmej: https://github.com/LearnBoost/mongoose/issues/306 [15:03] taf2: keep it productive ;-) and jokes and be overcome [15:04] pigmej: also I have no idea if you can use replicas in mongoose [15:04] pigmej: if not another fail :) [15:04] bradleymeck_ has joined the channel [15:05] taf2: s/and/can [15:05] stagas has joined the channel [15:05] BillyBreen has joined the channel [15:06] davidsklar has joined the channel [15:08] jakehow has joined the channel [15:08] pigmej: also [15:08] pigmej: the same problem [15:08] pigmej: is with winston-mongo [15:08] pigmej: it can't connect to replicas also [15:09] onr: pigmej: redis<3 [15:09] pigmej: it's not the same [15:09] pigmej: completelly different usecase [15:09] pigmej: also.. redis [15:09] pigmej: doesn't have a proper cluster setup [15:10] pigmej: only some master-slave 'shit' [15:10] pigmej: ;-) [15:10] onr: mongo = redis+serialization+indexes [15:10] CIA-110: libuv: 03Ryan Dahl 07master * r0259b67 10/ (uv-unix.c uv-unix.h): unix: Fix uv_getaddrinfo() - http://bit.ly/jtlRS6 [15:10] nphase has joined the channel [15:10] nphase has joined the channel [15:10] pigmej: ? [15:11] mrmanager has joined the channel [15:12] taf2: pigmej, mongoose uses node-mongodb-native internally and it has notes on how to connect to a replica set... might have a look https://github.com/christkv/node-mongodb-native/blob/master/docs/replicaset.md [15:12] pigmej: taf2: so how to pass it to mongoose ? [15:12] pigmej: also... there is a bug [15:12] taf2: also, i bet from those docs there is a close event... and could also listen to that... [15:12] pigmej: because you can't specify options [15:12] pigmej: for that :P [15:13] pigmej: (it's also in github bugtracker) [15:13] taf2: then it might be worth a fork [15:13] pigmej: also not resolved [15:13] pigmej: taf2: sorry.... for me it means 'that lib is a joke' [15:13] pigmej: for 'small blogs' [15:13] pigmej: maybe [15:13] pigmej: for bigger things => not possible [15:13] pigmej: also the reaction... [15:13] pigmej: 2 months and even not commented.. [15:13] jensn has joined the channel [15:19] SingAlong has joined the channel [15:19] SingAlong: hey all! [15:21] taf2: pigmej, http://groups.google.com/group/mongoose-orm/browse_thread/thread/433eb99a1d7256c4 [15:21] SingAlong: I installed node via brew on my Mac and then npm. When I install a node package, I'm not able to find the binary of the pkg. for ex: I installed coffee-script using "npm install coffee-script", and I'm not able to find the coffee binary [15:21] onr: SingAlong: npm install coffee-script -g [15:22] taf2: SingAlong, check $PATH [15:22] bitwise_ has joined the channel [15:22] pigmej: taf2: read second post;D [15:22] taf2: pigmej, also: https://github.com/LearnBoost/mongoose/issues/217 [15:22] SingAlong: taf2: I don't find any node stuff in the path. [15:22] pjacobs has joined the channel [15:23] shinmei has joined the channel [15:23] SingAlong: taf2: should I add any dir to $PATH to be able to use node package binaries? [15:23] taf2: i think try what onr said first SingAlong [15:23] admc has joined the channel [15:24] SingAlong: onr: sorry missed what you posted [15:24] caiges has joined the channel [15:24] pigmej: taf2: "This issue was closed" + no answer [15:24] SingAlong: onr: taf2: thanks! worked. [15:24] pigmej: fom the devs;D [15:24] chjj: SingAlong: thats one way to do it, otherwise use npm with '-g' [15:24] taf2: pigmej, i believe as it is resolved... also for your autoreconnect try this: http://groups.google.com/group/mongoose-orm/browse_thread/thread/f41f87ae5e0d880a [15:25] SingAlong: chjj: I got it working by using the -g option. But just curious as to which dir I to add to path. [15:25] chjj: youd look in package.json [15:25] onr: SingAlong: current ./node_modules [15:25] justinw312 has joined the channel [15:25] pigmej: taf2: "but now the server just doesn't get results when I do queries  [15:25] pigmej: after it has disconnected. " [15:25] pigmej: not a solution :) [15:25] SingAlong: onr: thanks again :) [15:26] onr: SingAlong: np :) [15:26] chjj: it will say "bin": "./" [15:26] chjj: etc [15:26] hash3g has left the channel [15:27] chjj: but if youre using npm, its pointless, just do npm install -g [15:27] patrikkarlin has joined the channel [15:28] softdrink has joined the channel [15:30] djcoin has joined the channel [15:32] rio{ has joined the channel [15:32] eveningsky has joined the channel [15:32] jslatts has joined the channel [15:35] jameson has joined the channel [15:35] EyePulp has joined the channel [15:35] JasonSmith has joined the channel [15:36] bnoordhuis has joined the channel [15:36] criswell has joined the channel [15:38] Brian` has joined the channel [15:38] jomoho has joined the channel [15:39] Yoric has joined the channel [15:40] FIQ has joined the channel [15:41] brianseeders has joined the channel [15:41] Xano has joined the channel [15:45] stephank has joined the channel [15:45] DoNaLd` has joined the channel [15:45] brianseeders has joined the channel [15:47] ditesh|cassini has joined the channel [15:47] christkv has joined the channel [15:47] philtor has joined the channel [15:48] junkee[] has joined the channel [15:49] vipaca has joined the channel [15:49] vipaca has joined the channel [15:51] eveningsky has joined the channel [15:51] mhausenblas has joined the channel [15:52] taf2: pigmej, https://gist.github.com/1058819 there code to reconnect to mongodb using mongoose... [15:53] pigmej: ok one bug solved [15:53] jtsnow has joined the channel [15:54] antti_s2 has left the channel [15:54] CIA-110: libuv: 03Ryan Dahl 07master * r17ee773 10/ (config-unix.mk uv-unix.c): [15:54] CIA-110: libuv: unix: All objects should be compiled with _LARGEFILE_SOURCE and _FILE_OFFSET_BITS=64 [15:54] CIA-110: libuv: Fixes uv_getaddrinfo on linux - http://bit.ly/lROWDB [15:54] taf2: w00t! [15:55] infynyxx has joined the channel [15:56] taf2: pigmej, just updated didn't need the extra setTimeout [15:56] taf2: perhaps the only challenging thing about this was.... mongoose.connection.db.on('close' ... [15:57] zeade has joined the channel [15:57] taf2: sorry and having to force mongoose.connection.readyState = 0 [15:57] edude03 has joined the channel [15:58] level09: how Do I log something ? I'm using node server.js > debug.log but I cant find my console.log calls in the output [15:58] Ramosa has joined the channel [16:00] taf2: level09, output from console.log will go to STDOUT... you *should* be seeing that output in debug.log [16:00] bnoordhuis: level09: console.error() and redirect stderr to debug.log [16:00] taf2: i'ts buffered... [16:00] pigmej: taf2: well... i didin't even started writing using it [16:00] pigmej: just read the bug reports [16:00] taf2: read less english more code :P [16:00] iori has joined the channel [16:01] level09: taf2: thanks, strange I cant see my log messages, perhaps that part of code is not reached [16:01] taf2: very likely... [16:01] dmcquay has joined the channel [16:01] CIA-110: node: 03Henry Rawas 07master * r4c48055 10/ lib/net_uv.js : net_uv: reuse socket - http://bit.ly/kOrmva [16:01] mandric_ has joined the channel [16:01] level09: taf2: is process.exit() the correct way to terminate the executing ? could it be executed somehow before the console.log ? [16:02] DoNaLd` has joined the channel [16:02] taf2: level09, yeah, i use process.exit to exit also... it's possible but without seeing can't be sure :) [16:03] puffpio has joined the channel [16:03] bnoordhuis: level09: `node debug script.js` will start your script in debug mode [16:03] iori has joined the channel [16:03] taf2: level09, try like bnoordhuis says and use console.error and node server.js >debug.js 2>&1 [16:04] level09: taf2: what does &1 mean at the end ? [16:04] taf2: 2>&1 means redirect stderr into stdout [16:04] level09: ah alright thanks [16:04] level09: got it [16:05] taf2: stderr is unbuffered... so if you're logging to stdout and not seeing it ... could be buffered e.g. not enough output to spill into the file [16:05] bbrandon has joined the channel [16:05] Yuffster_work has joined the channel [16:07] pjacobs2 has joined the channel [16:07] thejh has joined the channel [16:07] mhausenblas has joined the channel [16:09] mediahack has joined the channel [16:10] jerrysv has joined the channel [16:10] jslatts has joined the channel [16:11] sylvinus_ has joined the channel [16:12] pifantastic has joined the channel [16:15] ditesh|cassini has joined the channel [16:16] johnnyj has joined the channel [16:16] puffpio has joined the channel [16:18] bzinger has joined the channel [16:19] bx2 has joined the channel [16:24] unlink has joined the channel [16:24] unlink has joined the channel [16:24] iori has joined the channel [16:25] TooTallNate has joined the channel [16:26] djcoin has joined the channel [16:26] davidsklar has joined the channel [16:27] tjholowaychuk has joined the channel [16:28] ryan0x2 has joined the channel [16:29] djcoin has joined the channel [16:29] amerine has joined the channel [16:30] CIA-110: libuv: 03Ben Noordhuis 07master * r09bd08e 10/ test/test-hrtime.c : Assert that uv_hrtime() actually sleeps for several microseconds. - http://bit.ly/kQWOzq [16:30] CIA-110: libuv: 03Ryan Dahl 07master * r35e1c62 10/ uv-linux.c : Fix hrtime on linux - http://bit.ly/mzxL4p [16:30] puffpio_ has joined the channel [16:31] eresair has joined the channel [16:33] localhost has joined the channel [16:34] CIA-110: node: 03Ryan Dahl 07master * r412e413 10/ (48 files in 13 dirs): Upgrade libuv - http://bit.ly/llhVxC [16:34] dgathright has joined the channel [16:34] mrryanjohnston: Wow. the everyauth module is incredibly well documented. [16:34] puffpio has joined the channel [16:35] dexter_e: Change default VIEWS fold for express? Anyone? [16:35] tjholowaychuk: app.set('views', path) [16:36] bradleymeck has joined the channel [16:36] dexter_e: tjholowaychuk: Monsterous! Thank You very much! [16:36] meg`: express has views ... :D [16:38] mc_greeny has joined the channel [16:39] CIA-110: node: 03Ryan Dahl 07master * r17ac031 10/ (21 files in 2 dirs): Complete libuv upgrade - http://bit.ly/mScKVs [16:39] jeroen| has joined the channel [16:39] Illusioneer has joined the channel [16:39] braddunbar has joined the channel [16:41] sreeix has joined the channel [16:42] hij1nx has joined the channel [16:42] braddunbar: Is there a way to get a stack trace from a call stack overflow? [16:43] steffkes has joined the channel [16:44] towski has joined the channel [16:45] Swimming_bird has joined the channel [16:46] Nuck has joined the channel [16:46] jbpros has joined the channel [16:47] mega: catching it seems to give you an empty object [16:47] mega: :( [16:47] kkaefer: so..., suppose I have various modules implementing an interface, and one facade module that abstracts away the different implementations [16:48] kkaefer: how do I "register" the interface-implementing modules with the facade module? [16:48] kkaefer: one option would be globals, the other is to rely on the module cache [16:48] kkaefer: both aren't very good [16:48] kkaefer: is there a third solution? [16:49] mega: are we talking about some dispatching? kkaefer [16:49] dexter_e: tjholowaychuck: if I just want to inject JSON strings into app templates sitting in the public dir.. should I set public as view dir? [16:49] asabil has joined the channel [16:50] dscape has joined the channel [16:50] kkaefer: something like https://gist.github.com/ab041b54459e91c601ee [16:50] tjholowaychuk: dexter_e: hm yeah i guess so [16:51] kkaefer: but that depends on the module cache [16:51] dexter_e: Is there something that is more recommended? [16:51] sylvinus has joined the channel [16:52] CIA-110: node: 03Robert Mustacchi 07master * r2cfab04 10/ deps/v8/src/platform-solaris.cc : Fix solaris build (http://codereview.chromium.org/7282034/) - https://github.com/joyent/node/commit/2cfab040376679f7c49da92a541ee52e4add0d9a [16:52] mega: rigth so when you call some method you whant it to dispatch to the rigth implementation? [16:52] dexter_e: tjholowaychuck: Thanks again! [16:52] saikat has joined the channel [16:53] gozala has joined the channel [16:54] mega: maybe the modules can extend the "facade" them self and you you require the modules you need and maybe have some defualt ones in your index.js? [16:55] Wa has joined the channel [16:55] FireFly|n900 has joined the channel [16:58] dshaw_ has joined the channel [16:58] sechrist has joined the channel [16:59] smtlaissezfaire has joined the channel [16:59] SingAlong has left the channel [17:00] bradleymeck has joined the channel [17:01] kmiyashiro has joined the channel [17:01] wookiehangover has joined the channel [17:01] vipaca_ has joined the channel [17:04] dgathright has joined the channel [17:04] broofa has joined the channel [17:06] taf2: writing some new code and wondering about the binary encoding? [17:06] taf2: i want to read and write some pixels out of an image into a Buffer [17:06] taf2: if not binary what encoding should i use? [17:07] garbagegod has joined the channel [17:08] taf2: For example, pixel = new Buffer(43); pixel.write(fs.readFileSync('ts.gif', 'binary'), 'binary', 0); // is what i have now... so how would i change this to avoid using 'binary' ? [17:08] chjj: taf2: just use a buffer, a buffer is used if no encoding is specified [17:08] vipaca has joined the channel [17:08] vipaca has joined the channel [17:08] chjj: fs.readFileSync('ts.gif') [17:08] taf2: chjj, okay got it so no need to specify an encoding [17:08] taf2: thanks [17:08] jbpros has joined the channel [17:10] garbagegod: so just take this as a conceptual question, could i in theory use node.js and socket.io to make a web application where say two people would go to a page, and (just using this as an example) you could track their mouse movement or something and have it be sent to the other persons browser to display a little icon of a mouse where the other persons cursor is? [17:10] garbagegod: the point in all this is just me asking if you can send information from one client through the server to another client [17:10] garbagegod: in realtime [17:11] taf2: i think so [17:11] Draggor: garbagegod: why not? [17:11] garbagegod: i dont know, thats what i was asking you guys for Draggor :P [17:11] Draggor: You've got sockets and events, tis all you need! [17:11] taf2: yeah man that seems reasonable [17:11] garbagegod: because it seems feasable, but due to my inexperience with node.js and socket.io i wouldnt know [17:11] garbagegod: cool, thanks alot [17:11] EyePulp: it's already being done [17:12] garbagegod: nice, that encourages me, haha [17:12] taf2: cool [17:12] bradleymeck: garbagegod i forget if its still around but speedo was an app that did that [17:12] bradleymeck: who here can tell me why i cant spawn node scripts from init.d files [17:12] garbagegod: i sure cant find anything but swimwear on google bradleymeck :P [17:13] siculars has joined the channel [17:13] bradleymeck: http://2010.nodeknockout.com/teams/speedo [17:13] samsonjs has joined the channel [17:13] bradleymeck: 3rd result for `speedo nodejs` [17:14] garbagegod: i need to install npm, but cant find anything but .js files [17:14] garbagegod: im more looking for a tarball with executable files to install [17:14] Poetro1 has joined the channel [17:14] Poetro1 has joined the channel [17:15] Emmanuel__ has joined the channel [17:15] broofa has joined the channel [17:15] garbagegod: any idea where i might find that? [17:16] garbagegod: i think i found what im looking for [17:16] DTrejo has joined the channel [17:17] garbagegod: sweet, got node and npm installed :) [17:18] bene has joined the channel [17:19] Poetro has joined the channel [17:19] Emmanuel_ has joined the channel [17:19] DTrejo_ has joined the channel [17:20] bene has left the channel [17:20] jarek has joined the channel [17:20] jarek has joined the channel [17:21] DTrejo has joined the channel [17:21] _sorensen_ has joined the channel [17:21] vid_ has joined the channel [17:22] springmeyer has joined the channel [17:23] agrohe211 has joined the channel [17:23] rfay has joined the channel [17:26] hwinkel has joined the channel [17:27] Cleer has joined the channel [17:28] arlolra has joined the channel [17:28] jonasen has joined the channel [17:31] blup has joined the channel [17:34] vipaca has joined the channel [17:34] vipaca has joined the channel [17:35] RC1140 has joined the channel [17:35] sreeix has joined the channel [17:36] keikubo has joined the channel [17:36] Poetro has joined the channel [17:36] vipaca has joined the channel [17:36] vipaca has joined the channel [17:37] saurabhverma has joined the channel [17:37] vid___ has joined the channel [17:39] xandrews has joined the channel [17:41] Poetro has joined the channel [17:42] mikeal has joined the channel [17:42] CarterA has joined the channel [17:44] jbpros has joined the channel [17:45] shinuza has joined the channel [17:46] thalll has joined the channel [17:48] CStumph has joined the channel [17:49] dexter_e: What do you guys recommend for auto-restarting your Node when files change? Supervisr ? [17:49] harth has joined the channel [17:50] ceej has joined the channel [17:51] seemann has joined the channel [17:52] rpflo has joined the channel [17:52] leahculver has joined the channel [17:52] AvianFlu has joined the channel [17:53] jameson has joined the channel [17:53] ceej_ has joined the channel [17:53] jga023 has joined the channel [17:55] xerox: dexter_e: so far I saw recommended 'forever' and 'node- [17:55] xerox: cluster' [17:56] seemann: I'm using socket.io and once i load the html via chrome, node breaks [17:56] seemann: node: ../src/node.cc:1210: ssize_t node::DecodeWrite(char*, size_t, v8::Handle, node::encoding): Assertion `b[1] == 0' failed. [17:56] seemann: Aborted [17:56] seemann: works fine with firefox, but breaks with chrome [17:56] seemann: any idea why is that? [17:56] leahculver has joined the channel [17:57] pifantastic has joined the channel [17:58] CIA-110: libuv: 03Henry Rawas 07master * rba1c38f 10/ (config-mingw.mk eio/xthread.h): fix mingw for eio - https://github.com/joyent/libuv/commit/ba1c38f2d8d6146f0a23fea47553dfd314605037 [17:59] bnoordhuis: seemann: what version of node? [17:59] leahculver has joined the channel [17:59] leahculver has joined the channel [17:59] seemann: bnoordhuis 0.5.0-pre [17:59] CIA-110: node: 03Ryan Dahl 07master * r70a8927 10/ (4 files in 3 dirs): Upgrade libuv to ba1c38f to fix mingw build - https://github.com/joyent/node/commit/70a8927a936928136a4ed087e2a1817ce106ad07 [18:00] bnoordhuis: seemann: can't be the latest master though [18:00] zeade has joined the channel [18:00] seemann: latest master is 0.49 [18:00] bnoordhuis: seemann: no, that's the latest stable :) [18:01] seemann: hummm [18:01] yozgrahame has joined the channel [18:01] bnoordhuis: 0.4.9 is what you want though [18:01] bnoordhuis: master is pretty unstable right now [18:01] seemann: ok, tyvm [18:02] bnoordhuis: my pleasure [18:02] jonaslund has joined the channel [18:04] adrianmg has left the channel [18:05] harth has joined the channel [18:05] jvduf has joined the channel [18:07] mrryanjohnston: Is there a way to use package.json and automatically install deps? [18:08] ryah: mrryanjohnston: i think just 'npm install' [18:08] mrryanjohnston: ryah: herp derp. [18:08] mrryanjohnston: thank you [18:09] euforic has joined the channel [18:11] leahculver has joined the channel [18:11] leahculver has joined the channel [18:12] garbagegod has joined the channel [18:13] jensn has joined the channel [18:14] Mrfloyd has joined the channel [18:15] leahculver has joined the channel [18:16] sfragis has joined the channel [18:16] `3rdEden has joined the channel [18:17] arlolra: ryah: do you ever look at those perf graphs / the buildbot? [18:21] balaa has joined the channel [18:22] Jakwac has joined the channel [18:22] zeade has joined the channel [18:24] dexter_e has joined the channel [18:27] temp01 has joined the channel [18:28] SamuraiJack_ has joined the channel [18:31] kuya: SubStack: awake yet? [18:31] seemann has joined the channel [18:32] SubStack: kuya: affirmative [18:32] galaxywatcher has joined the channel [18:32] kuya: yay [18:32] seemann: another question concerning chrome and socket.io. Why doesnt chrome uses the same URL to connect to the socket as firefox? [18:33] seemann: apparently that messes the way chrome works with socket.io [18:33] kuya: SubStack: is there any reason dnode doesnt use the prototype chain for wrapped objects? [18:33] SubStack: kuya: because json doesn't roll that way [18:33] kuya: yea but this isnt json [18:34] SubStack: if for instance you want to send an array [18:34] SubStack: you shouldn't have to send all the .toString, .instanceOf [18:34] kuya: this is true [18:34] dexter_e: Its making the ports on this network card warm. What a beast this thing. [18:34] kuya: couldnt those be detected as builtins tho? [18:36] sreeix has joined the channel [18:36] kuya: i wondered if it might be possible to add a method to objects that if exists signals dnode to use the return object from that function instead of the regular object [18:36] kuya: that way someone could return what they want to expose, instead of what dnode thinks [18:38] kuya: maybe im thinking about this wrong [18:38] SubStack: yes [18:39] kuya: should my_complicated_class_structure just return some sort of interface object that i pass on to dnode? [18:40] gazumps has joined the channel [18:40] tomtomaso has joined the channel [18:40] seemann: Does anyone knows if is there really is a difference between the way chrome "interacts" with socket.io and the way firefox does? [18:41] mikeal has joined the channel [18:41] SubStack: kuya: you can do this.member = this.member [18:41] SubStack: which assigns a prototype method into the current object and is enumerable [18:42] darshanshankar has joined the channel [18:42] kuya: yeaa... thats a tiny bit annoying imo [18:42] kuya: ill think about it some more [18:43] kuya: i had a bunch more questions for you... but i forgot them all - carry on! thanks :) [18:43] amaudy has joined the channel [18:44] bx2 has joined the channel [18:46] zackattack has joined the channel [18:46] SubStack: kuya: I mostly use object literals in place of prototypical inheritance [18:46] flippyhead has joined the channel [18:46] temp01 has joined the channel [18:47] sechrist: Is supervisor still the way to have express start upon changes? [18:47] sechrist: or is there a built in mechanism for dev environment in express now? [18:47] tbranyen: prototype inheritance model is too baller to ignore [18:47] tbranyen: especially when using __proto__ [18:47] chjj: this ^ [18:47] chjj: not to mention, prototypes are super optimized in v8 [18:47] kuya: "baller"? [18:47] tbranyen: SubStack: i know what you mean sometimes its not necessary [18:47] mange has joined the channel [18:47] tbranyen: but to always use one or the other seems silly [18:48] SubStack: I'm speaking in the context of using dnode [18:48] SubStack: don't mix prototypes and dnode [18:48] SubStack: it will just make everything harder [18:48] tbranyen: SubStack: ah came in late on that one [18:48] tbranyen: i scrolled up :) [18:48] chjj: i actually dont know whats going on, i just decided to but in [18:48] tbranyen: yeah same [18:48] chjj: ;p [18:48] tbranyen: SubStack: lemme lecture u some more [18:48] kuya: hehe [18:49] kuya: is it "bad" to return an object in a dnode function with more functions attached to it? [18:50] kuya: mydnodefunction: function(x, cb) { cb( {another_function: function() { ... }} ); } [18:50] kuya: mostly because i cant see how that object can ever be gc'd [18:51] tbranyen: kuya: big problem with closures yea [18:51] SubStack: kuya: that works by design [18:51] SubStack: it is awesome [18:51] SubStack: don't even worry about gc [18:52] tbranyen: famous last words :-p [18:52] kuya: SubStack: i know it works, but is it bad practice? how will that object ever be freed? [18:52] SubStack: pfft who cares? [18:52] kuya: me! [18:52] SubStack: when the connection drops all the closure refs go away [18:53] baoist has joined the channel [18:53] kuya: so in theory i could crash it by never closing the connection and making millions of these nasty objects [18:53] kuya: because it would just run out of mem [18:54] bergie has joined the channel [18:54] pkrumins: OMG so much awesomeness at browserling.com [18:54] pkrumins: we launched a new feature - tunnels - and upgraded to npm 1.0.15 and node.js 0.4.9 [18:55] SubStack: kuya: yes [18:56] mandric has joined the channel [18:57] elijah has joined the channel [18:58] feydr has joined the channel [18:58] springmeyer has joined the channel [19:00] topaxi has joined the channel [19:01] hij1nx has joined the channel [19:01] bradleymeck_ has joined the channel [19:01] brianc has joined the channel [19:03] tsutton has joined the channel [19:04] markwubben has joined the channel [19:05] vid_ has joined the channel [19:06] feydr: been a while since I used node -- anyone know what this ev_rt_now error is? http://pastie.org/2151319 [19:07] thejh has joined the channel [19:10] leahculver has joined the channel [19:10] leahculver has joined the channel [19:12] leahculver has joined the channel [19:13] AvianFlu has joined the channel [19:17] dve_ has joined the channel [19:17] rfay has joined the channel [19:18] lmatteis has joined the channel [19:18] lmatteis: hi [19:18] leahculver has joined the channel [19:19] lmatteis: if i run a setTimeout(function(),3000); what's the logic behind making the request idle while others are being served on the *same thread*? [19:20] iammerrick has joined the channel [19:20] necrodearia has joined the channel [19:20] adnam: that it's way simpler when you only use one thread [19:21] lmatteis: adnam: sure, but i meant to find out a little more low-level details [19:21] Brandonn has joined the channel [19:21] lmatteis: on that logic [19:21] sridatta has joined the channel [19:22] feydr has left the channel [19:22] adnam: hmm, not sure where that would be specified, probably not in ecma-262 [19:23] lmatteis: adnam: what? it's not a syntax thing [19:23] adnam: obviously not [19:23] insin has joined the channel [19:25] _fat has joined the channel [19:27] feydr has joined the channel [19:28] leahculver has joined the channel [19:28] leahculver has joined the channel [19:32] intelx5 has joined the channel [19:33] leahculver has joined the channel [19:34] Cleer has joined the channel [19:34] feydr: what's best of breed headless testing nowadays? zombie.js looks abandoned? [19:34] mcluskydodallas has joined the channel [19:37] onr has joined the channel [19:37] leahculver has joined the channel [19:38] cloudhead has left the channel [19:40] hosh_work has joined the channel [19:41] malkomalko has joined the channel [19:42] japj has joined the channel [19:43] taf2: feydr, i like phantomjs [19:43] LowValueTarget has joined the channel [19:44] feydr: taf2: thnx -- I'll have to chk it out [19:44] knuthy has joined the channel [19:44] mike5w3c has joined the channel [19:45] matwill has joined the channel [19:45] malkomalko: taf2: any luck using phantomjs with node? [19:45] MattJ has joined the channel [19:45] malkomalko: just released our cucumber implementation today, https://github.com/didit-tech/peanut [19:45] malkomalko: still need to write up a proper readme [19:45] malkomalko: but the features directory there should give a heads up, if anybody is interested [19:47] jesusabdullah: malkomalko: Did you know about https://github.com/nodejitsu/kyuri ? [19:47] malkomalko: yes, [19:47] jesusabdullah: Ah! [19:47] malkomalko: it had a lot of holes [19:47] jesusabdullah: Yes [19:47] tsutton has joined the channel [19:47] malkomalko: and I didn't want to write vows stubs [19:47] malkomalko: peanut is agnostic [19:47] jesusabdullah: I was actually going to say that from what I remembered it was incomplete [19:47] jesusabdullah: Oh? [19:47] jesusabdullah: That's cool [19:47] malkomalko: and has a web runner [19:47] malkomalko: runs your scenarios in parallel [19:48] jesusabdullah: So, wait, does peanut generate tests, or is it its own test runner? [19:48] jesusabdullah: or do I completely misunderstand cucumber? ;) [19:48] malkomalko: it has it's own test runner, but you can use anything you want for assertions [19:49] malkomalko: assert, should.js, vows [19:49] malkomalko: https://github.com/didit-tech/peanut/tree/master/features [19:49] malkomalko: here's some steps https://github.com/didit-tech/peanut/blob/master/features/step_definitions/parser_steps.js [19:49] japj: anyone here that can close node issues on github? I think both #222 and #223 can be closed (I can not reproduce the valgrind errors with node 0.4.8) [19:50] jbpros has joined the channel [19:50] supster has joined the channel [19:50] jtrally has joined the channel [19:51] dscape has joined the channel [19:53] jesusabdullah: malkomalko: cool. *watch* [19:53] leahculver has joined the channel [19:53] leahculver has joined the channel [19:54] hij1nx has joined the channel [19:54] malkomalko: it's still young, but it's really usable right now [19:55] F1LT3R has joined the channel [19:56] temp01 has joined the channel [19:57] pkrumins: psyched here [19:57] jtrally: has anyone used msgpack? [19:58] hereicode has joined the channel [19:58] jesusabdullah: I'm unfamiliar with it, jtrally [19:58] patcito has joined the channel [19:58] jtrally: they have an npm but it's for v0.1.x [19:59] hereicode: does anyone know how to debug a cpp module in nodejs? it compiles fine but when i try to run it i get an error about an undefined symbol [19:59] jesusabdullah: It looks interesting, at least [19:59] leahculver has joined the channel [19:59] jesusabdullah: jtrally: File an issue? [20:00] jesusabdullah: there are a jillion serialization formats :/ [20:00] jtrally: any you can recommend? something "faster" than JSON. [20:02] martyziff has joined the channel [20:03] tsutton has joined the channel [20:03] micheil has joined the channel [20:04] bitwise_ has joined the channel [20:04] leahculver has joined the channel [20:04] kblake has joined the channel [20:05] `3rdEden: jtrally V8 crankshaft comes with speed improvments for json en/decoding [20:05] igl has joined the channel [20:06] `3rdEden: Alternative parsing solutions like bsion, msgpack have different performance characteristics. For example BISON encoding is faster than JSON when it comes down to smaller strings, but JSON is faster for bigger strings [20:06] zeade has joined the channel [20:06] mc_greeny has joined the channel [20:06] smtlaissezfaire has joined the channel [20:08] `3rdEden: unrelated question does anybody here know a vim plugin for markdown that supports githubs `redcarpet` syntax [20:08] leahculver has joined the channel [20:08] leahculver has joined the channel [20:11] brianc has joined the channel [20:11] leahculver has joined the channel [20:11] leahculver has joined the channel [20:12] Artak has joined the channel [20:13] Artak has left the channel [20:13] gwsavage has joined the channel [20:14] thejh has joined the channel [20:15] matwill has joined the channel [20:15] feydr has left the channel [20:17] fly-away has joined the channel [20:19] leahculver has joined the channel [20:19] leahculver has joined the channel [20:20] smtlaissezfaire has joined the channel [20:21] FireFly|n900 has joined the channel [20:21] AvianFlu has joined the channel [20:21] zwittar has joined the channel [20:23] mraleph has joined the channel [20:23] unlink has joined the channel [20:23] unlink has joined the channel [20:23] beriberikix has joined the channel [20:23] Aria has joined the channel [20:24] leahculver has joined the channel [20:24] leahculver has joined the channel [20:24] beriberikix: Is there a service like http://www.scriptlets.org/ built on node.js? [20:25] lmatteis has left the channel [20:28] mikeal has joined the channel [20:28] dgathright has joined the channel [20:28] hlindset has joined the channel [20:28] hlindset has joined the channel [20:28] Hosh has joined the channel [20:29] micheil: beriberikix: try ajax.org's cloud9ide [20:29] patrikkarlin has joined the channel [20:29] jakehow has joined the channel [20:32] beriberikix: I actually don't want a full ide - mostly quick scripets for mock testing [20:32] tilgovi has joined the channel [20:32] kmiyashiro: cloud9ide isn't really a full ide [20:32] cognominal has joined the channel [20:34] beriberikix: True, but I'm looking for something more Gist-easy [20:34] ryanj has joined the channel [20:36] softdrink: what functionality do you need? [20:36] `3rdEden: beriberikix repl it [20:36] beriberikix: need a quick way to make hosted endpoints [20:37] beriberikix: return sample data, either hardcoded or light logic based on request [20:37] beriberikix: Exactly like scriptlets.org :) but not using Jack [20:40] leahculver has joined the channel [20:43] radiodario has joined the channel [20:43] AvianFlu has joined the channel [20:43] tsutton has joined the channel [20:45] Nuck has joined the channel [20:46] sreeix has joined the channel [20:48] vid_: . [20:50] leahculver has joined the channel [20:50] leahculver has joined the channel [20:55] temp01 has joined the channel [20:56] leahculver has joined the channel [20:56] leahculver has joined the channel [20:56] saikat has joined the channel [20:57] martyziff has left the channel [20:57] jakehow has joined the channel [20:58] maushu_ has joined the channel [20:59] maushu__ has joined the channel [20:59] pifantastic has joined the channel [21:01] hookdump has joined the channel [21:02] jetienne has joined the channel [21:02] leahculver has joined the channel [21:02] leahculver has joined the channel [21:03] agrohe21 has joined the channel [21:03] yoole has joined the channel [21:05] yoole: anyone familiar with orlando vasquez's 'node-sqlite' module? [21:05] materialdesigner has joined the channel [21:06] sechrist has joined the channel [21:06] yoole: anyone? [21:06] ryan0x2 has joined the channel [21:07] patrikkarlin: sorry :( [21:08] ryan0x2 has joined the channel [21:08] yoole: :( [21:08] gozala has joined the channel [21:10] level09 has joined the channel [21:10] mega: problem yoole? [21:10] sonnym has joined the channel [21:10] leahculver has joined the channel [21:10] korre has joined the channel [21:11] EyePulp has joined the channel [21:12] charleyd has joined the channel [21:12] yoole: im new to node.js and im trying to learn it for a project im working on. the person that was working on the project before me apparently wasnt too big on commenting and ive been finding his code hard to follow [21:13] yoole: the project uses orlando vasquez's node-sqlite module [21:13] yoole: in the code it says [21:13] springify has joined the channel [21:13] yoole: var sqlite = requires("sqlite"); [21:14] mega: seems right :P [21:14] yoole: for some reason, though, this doesnt work [21:14] mega: have you installed the module [21:14] mega: ? [21:14] yoole: it was already in the project folder that was given to me [21:15] mega: normaly dependencies are gitignored [21:15] mega: if you are using git [21:15] yoole: im not using git [21:15] mega: you just got a file? [21:15] mega: folder i mean [21:16] yoole: yeah [21:16] mega: if you using the suntax require("blabla") instead of require("./blabla") [21:16] mega: btw what error do you get [21:16] iammerrick has left the channel [21:17] yoole: Error: dlopen(/Users/yoole/Desktop/proj/node-sqlite/build/default/sqlite3_bindings.node, 1): no suitable image found. Did find: [21:17] yoole: /Users/yoole/Desktop/proj/node-sqlite/build/default/sqlite3_bindings.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00 [21:18] mega: yea i tried installing the module myself and got the same error [21:18] yoole: whats suntax, btw? [21:18] level09: how do I make async function syncronous [21:18] mega: no i whas youst checking where you are getting the module from [21:19] mega: so you where importing it rigth [21:19] mega: but that wasent the prob [21:19] yoole: oh ok [21:19] yoole: do i need to install sqlite or something? [21:19] mega: this feels like the project migth be outdated maybe... i gonna check on github [21:20] mega: try compiling an older version of nde [21:20] mega: node [21:21] yoole: how would i do that? [21:21] yoole: lol. sorry, im a noob [21:25] dgathright has joined the channel [21:26] mange has joined the channel [21:26] gde33 has joined the channel [21:26] Edler has joined the channel [21:27] Edler: hey [21:27] Edler: if i want to code a chatroom in Node.JS [21:27] Edler: and i know good javascript [21:27] Edler: where can i learn/tutorial ? [21:27] xerox: youtube [21:28] Edler: okay thanks [21:28] xerox: remove the grammar for your question and get a thousand videos of people doing exactly that [21:28] Edler: and if i have specific questions i can do that in here ? [21:28] Edler: question [21:28] Edler: if i got a quad core server but only with 256mb ram, how many concurrent connections you think it can handle ? [21:29] softdrink: eleventy beelions. [21:29] softdrink: (i have no idea) [21:29] Edler: haha [21:29] Edler: alrighty (Y) [21:29] Edler: my question really was [21:30] jtsnow has joined the channel [21:30] Edler: does ram affect how many people can connect to my node.js server [21:30] Edler: ? [21:31] chjj: edler: it depends on how much memory you allocate per connection [21:31] Edler: ah alright [21:31] dmcquay_ has joined the channel [21:31] Edler: but i'm worried about the network aspect [21:31] Edler: not memory aspect [21:31] Edler: does network relate to memory ? [21:31] Prometheus: quad core server with 256mb sounds funky [21:32] chjj: it depends on what youre doing, if youre sequencing the human genome for every connection, that will use a lot of memory [21:32] Prometheus: or if you are using TLS :) [21:32] chjj: on the other hand, if your http server is just a proxy-like server, you might not be using much memory [21:32] mega: yoole: still here? [21:32] stepheneb has joined the channel [21:33] Edler: Prometheus: it's a cloud server [21:33] Edler: virtual quad [21:33] yoole: mega: yeah [21:33] Prometheus: ah [21:33] yoole has left the channel [21:33] yoole has joined the channel [21:33] amerine has joined the channel [21:34] mega: i tried to compile it from the github repo and it still dosent work maybe there has been an api change i dont know how to make c binidngs that well [21:34] yoole: mega: sorry, im back [21:34] mega: the src is from january [21:35] dingomanatee has joined the channel [21:35] jarek has joined the channel [21:35] dingomanatee: off topic, I know - but - any reccommendations on a jQuery library that doe good scatter plotting(x/y)? [21:35] jarek: Hi [21:36] mega: sup [21:36] mrmanager has joined the channel [21:36] Prometheus: dingomanatee: there's #jquery you know [21:36] dingomanatee: okie [21:36] Prometheus: they are a lot better at suggesting plugins ;0 [21:36] tomtomaso has joined the channel [21:36] level09: is there a way to force a function to be synchronous ? [21:37] softdrink: dingomanatee: have you checked out highcharts or protoviz? [21:37] dingomanatee: not yet - thankx [21:37] level09: I dont want to continue before getting the result of it [21:37] jarek: why "Github Pages" service requires me to keep site files inside a branch? Wouldn't it make more sense to keep site files in separate repository? [21:37] Prometheus: level09: then write it so =P [21:37] SubStack: level09: there is but it's a terrible thing to do [21:37] dingomanatee: level09: functions by default are blocking. [21:37] softdrink: they're not jquery-specific, but they're good. [21:37] dingomanatee: Node is single threaded. [21:37] jarek: oopps, sorry, wrong channel... [21:37] _1marc has joined the channel [21:37] level09: hmm, I guess I'm missing something here :D [21:37] level09: ACTION going back to review the code [21:38] chjj: level09: what is the function? [21:38] dingomanatee: only methods that are designed to be asynchonous will block - generally speaking those are DB request related or file system related. [21:38] level09: chilts: I'm fetching a url [21:38] level09: using request [21:38] dingomanatee: You'll notice there is a fooSync() version of most of the asynchronous functions. [21:38] cystbear has joined the channel [21:38] level09: then I want to pass the result to express [21:38] dingomanatee: I also created a gate class that will execute a block after one or more async functions have executed so you get [21:38] level09: I dont want to put all my login within app.get( [21:38] dingomanatee: effective asynchronycity. [21:41] level09: ah thanks, gonna take a look [21:42] leahculver has joined the channel [21:42] leahculver has joined the channel [21:42] level09: speaking of effectiveness [21:43] level09: I'm trying to improve the performance of one of my old / heavy php apps [21:43] level09: by rewriting parts in node.js [21:43] level09: how does for example, node mysql module compare to php mysql extension [21:43] level09: does any one have any idea ? [21:44] mrryanjohnston has joined the channel [21:46] descipher has joined the channel [21:47] yoole: mega: still there? [21:47] mega: yea [21:48] level09: where does node developers come from in terms of previous expertise ? C, C++ or javascript ? [21:48] sechrist has joined the channel [21:48] kmiyashiro: CSS [21:48] level09: hahaha [21:48] kmiyashiro: :( [21:48] wink_: level09: it really depends on the developer (if i understood you correctly) [21:49] level09: yeah, I was just wondering if this technology attracts specific developers more than others [21:49] dingomanatee: level09: I've only used node with MongoDB/Couch (hint hint) --- but my prediction is that [21:49] mrryanjohnston: level09: PHP [21:49] mrryanjohnston: ;) [21:49] Swizec has joined the channel [21:49] level09: ah cool [21:50] mrryanjohnston: and now I guess .Net [21:50] level09: found one colleague :D [21:50] wink_: at this point it seems to be a really wide distribution [21:50] mrryanjohnston: whattup PHP bro [21:50] dingomanatee: node might not make mysql faster "per se" but it will make concurrent access to mysql less consumptive of system resources. [21:50] level09: mrryanjohnston: have you tried integrating both php / node ? [21:50] mrryanjohnston: level09: lollll no [21:50] mrryanjohnston: level09: most I would do is make restful calls. [21:50] mrryanjohnston: I wouldn't want to mix the two. [21:50] dingomanatee: That is, you will have less spiking of cpu/memory usage if several processes are waiting for MySQL to complete. [21:51] mrryanjohnston: level09: though, tbh I have been keeping a close eye on the node.js module in drupal ;) [21:51] _1marc has joined the channel [21:51] level09: mrryanjohnston: saw that, it does nice notifications with sockets [21:52] level09: dingomanatee: so I would only need to use it if I want some kind of distributed queries [21:52] mega: yoole: if you call node -v what do you get? [21:52] mrryanjohnston: level09: it does. but, to be honest, I'd rather make all of my future apps in node, and only use PHP if necessary [21:52] mrryanjohnston: PHP is becomming the new .Net [21:52] mrryanjohnston: ; [21:52] mrryanjohnston: ) [21:52] level09: lol [21:53] level09: php-fpm was really good though [21:53] dingomanatee: Node functions well as a web service - so for instance if you wanted to display a data grid in PHP and poll a node web service for populating rows with data that would be a safe first step. [21:53] level09: dingomanatee: that seems like a great idea [21:53] level09: btw [21:53] level09: have any one did a comparison [21:54] level09: between a node server [21:54] level09: ex : express.js [21:54] level09: and nginx [21:54] flippyhead has joined the channel [21:54] level09: both are event based [21:54] level09: and have modules etc .. [21:54] dingomanatee: The general consensus is that flat file serving is questionably better in node [21:54] level09: I know some people still run nginx in front of node [21:54] mrryanjohnston: I heard of some voodoo of people running node in nginx but Idkwtf that was about [21:55] level09: to be on the safe side [21:55] yoole: mega: if youre still there, i installed the sqlite module from npm and the program seems to be working now [21:55] dingomanatee: but the reason most people end up on this channel is that node kicked ass against Ruby or PHP or .NET in terms of performance and concurrent resource usage. [21:55] yoole: now to just figure out what its doing :P [21:55] level09: that is good to hear [21:55] yoole: mega: thanks! [21:55] josephboyle has joined the channel [21:55] mega: ok good [21:55] yoole has left the channel [21:55] mega: witch version did you have? [21:56] level09: that could be another ggood idea , I will configure apache to it redirects all static file serving to a node server [21:57] Dulak: node-inspector is incredibly useful, wow [21:58] niftylettuce has joined the channel [21:58] leahculver has joined the channel [21:58] leahculver has joined the channel [21:59] Mrfloyd has joined the channel [21:59] mrryanjohnston: dingomanatee: I'm in here because you can make real-time webapps in like 5 lines of code or something stupid simple. [21:59] mrryanjohnston: there's literally [21:59] mrryanjohnston: no argument [21:59] mrryanjohnston: against that [21:59] CodyGray has joined the channel [21:59] kmiyashiro: mrryanjohnston: tyep them out here! [21:59] CodyGray has left the channel [22:00] dingomanatee: I can do that too - with Ruby :D [22:00] dingomanatee: on heroku [22:00] mrryanjohnston: var nowjs = require("now"); var everyone = nowjs.initialize(httpServer); everyone.now.distribute = function(message){ everyone.now.receive(this.now.name, message); }; [22:01] mrryanjohnston: server [22:01] mrryanjohnston: 5 lines [22:01] mrryanjohnston: ;) [22:01] level09: but [22:01] mrryanjohnston: NO BUTS [22:01] mrryanjohnston: INTERNET. [22:01] level09: that now.js must have changed [22:01] level09: because socket.io has a completely new api [22:01] dingomanatee: Simplicity is a useful metric, however the complexity of a codebase does not in and of itself drive a businesses sucess. It just changes your personal level of happiness. [22:01] level09: now.js is built on top of socket [22:01] ryah: now.js is pretty cool [22:01] level09: and socket is still experimental [22:01] mrryanjohnston: level09: touche [22:02] ryah: dnode is pretty hot though:) [22:02] dingomanatee: '

Hello, world

' - one line [22:02] mrryanjohnston: level09: so you're saying it'd be even less lines now? ;) [22:02] mrryanjohnston: dingomanatee: REAL TIME!!! [22:02] davidwalsh has joined the channel [22:02] mrryanjohnston: ryah: I think I'm too dumb to understand dnode [22:02] dingomanatee: I can type pretty fast. [22:03] level09: yeah probably, but we're just waiting for the stable version to come out [22:03] kylefox has joined the channel [22:04] dingomanatee: << still waiting for the stable version of PHP. [22:04] jmoyers has joined the channel [22:04] dingomanatee: this one has memory leaks. [22:04] jtsnow_ has joined the channel [22:04] dingomanatee: load spikes, too. [22:04] chrisdickinson: mrryanjohnston: you could do that in <5 lines: with(require('now')) { (everyone = initialize(httpServer)).distribute = function(msg) { everyone.now.recieve(this.now.name, message); }; } [22:04] chrisdickinson: just to prove the argument that there are limits to the "less lines is more better" argument :) [22:05] chrisdickinson: *s/argument$//g [22:05] mrryanjohnston: chrisdickinson: Nice [22:05] mrryanjohnston: though, to be fair, I wasn't saying more better by any stretch ;) [22:06] mrryanjohnston: I mostly meant it to mean "pretty coo." [22:06] chrisdickinson: mrryanjohnston: cool :) [22:06] corbin has joined the channel [22:06] mrryanjohnston: chrisdickinson: :) [22:07] pHcF has joined the channel [22:07] mandric has joined the channel [22:07] Prometheus: dingomanatee: couldn't agree more with your statement about simplicity =) [22:07] Prometheus: been there, felt that [22:08] perezd has joined the channel [22:08] dingomanatee: I do like simplicity - I do think it is a long term asset - however I would point out that Microsoft has so far been one of the best providers of simple/RAD systems - they really cater to that market - and it has not played out well because their products have performance issues. [22:08] kylefox has left the channel [22:09] dingomanatee: I mean, Access is by far the "Simplest" database. Or perhaps whatever they are calling Filemaker nowadays. [22:10] Prometheus: simplistic vs simple =) [22:11] Edler: Anyone here can really help in coding a Node.JS chat room ? [22:11] Edler: I'll pay [22:11] xerox: come on [22:12] xerox: are your really that unable to google >_> [22:13] mrryanjohnston: Edler bro [22:13] mrryanjohnston: imma help you save some money [22:13] Edler: mrryanjohnston, how ? [22:13] mrryanjohnston: http://spechal.com/2011/03/19/super-simple-node-js-chatroom/ [22:13] mrryanjohnston: bam [22:13] Jakwac: char rooms are kind of the "hello world" of nodejs. [22:13] Edler: xerox: it's an advanced chatroom, not a simple one [22:13] mrryanjohnston: 50 dollarz plz. [22:14] xerox: use irc :X [22:14] Edler: well i need sessions [22:14] mega: dahl did a presentation where he wrote a simple chat [22:14] Edler: sql logging [22:14] Prometheus: :s [22:14] Edler: private query chats [22:14] Edler: an irc clone [22:14] bitwise_: getting an error trying to load howtonode.org. i npm install wheat and cloned the repo for htn, then i see Object has no method 'conditionalGet' in app.js [22:15] bitwise_: maybe a connectjs question [22:15] mrryanjohnston: Edler: https://github.com/alexyoung/ircd.js [22:15] mrryanjohnston: and irc daemon [22:15] rfay has joined the channel [22:15] mrryanjohnston: an* [22:15] mrryanjohnston: that will be 100 dollarz. [22:15] mrryanjohnston: yew ess dowlars [22:16] Edler: so i can run my own irc server on node.js ? [22:16] Jakwac: yep [22:16] mrryanjohnston: Edler: it would appear that way! [22:16] Edler: and i can connect and interact with it using html5 websockets ? [22:16] mrryanjohnston: Edler: I dunno, perhaps you should click the link ;) [22:16] Edler: and of course i can customize it since it's open source [22:16] xerox: mrryanjohnston: you're getting rich so fast! [22:17] mrryanjohnston: xerox: gonna retire early [22:17] micheil: Edler: you'd need to make a irc server, and connect it together with websockets [22:17] micheil: or, you can write a proxy service [22:17] Edler: isn't ircd an irc server ? [22:17] Edler: or at least one written in node.js [22:17] micheil: something that connects to an irc server and proxies that to a websocket connection [22:17] xerox: mrryanjohnston: google a node implementation of jabber daemon, it's on Edler [22:18] micheil: Edler: you've just given me a new pusherapp idea. :D [22:18] Edler: okay guys listen [22:18] Edler: irc is a good idea since i can have channels [22:18] Edler: what i'm trying to do is have the visitors on my website [22:18] micheil: (I work for pusher, hence the reason I say that) [22:18] Edler: see a mini chatroom [22:18] Edler: which is real time [22:18] micheil: Edler: sounds like a perfect use for pusher.com :/ [22:19] Edler: using websockets [22:19] micheil: exactly. [22:19] Edler: pusher.com ? [22:19] micheil: yeah [22:19] Edler: opening [22:19] micheil: we do websockets as a service [22:19] Edler: micheil: explain to me more [22:19] Edler: what do you provide ? [22:19] micheil: all you need to do would be to write the connector between an irc client and a pusher connection. [22:19] niftylettuce has joined the channel [22:20] micheil: we provide things like a standard channels and events layer on top of websockets (things that you'd normally implement yourself) [22:20] Edler: but that's way too expensive for me [22:20] Edler: i prefer managing my own server [22:20] micheil: not so, for now it's all free. [22:20] Edler: than subscribing to a server [22:20] Edler: service [22:20] Edler: i see 100 connection and 200 000 message per day [22:20] Edler: 100 connection won't do [22:21] xerox: https://github.com/tarnfeld/PusherChat [22:21] Edler: i need at least 3000 [22:21] micheil: okay, well, just remember, there's no such thing as a free lunch; somewhere along the lines you'll pay for it. [22:21] Edler: i want to pay [22:21] Edler: but not for my push usage [22:21] bergie has joined the channel [22:22] Edler: i'll pay for my server [22:22] Edler: which includes rent and bandwidth [22:22] micheil: Edler: okay then :) [22:22] Edler: :D [22:22] Edler: but thanks for the info [22:22] Edler: however this node.js thingy is still confusing me [22:22] Edler: i'm used to client side js scripting [22:22] micheil: but at any rate, you could easily prototype on our service (I'm actually going to do that idea now, just as another proof of concept of a new thing we're working on) [22:23] Edler: now ? [22:23] micheil: soon. [22:23] sechrist: Can I access environment / some kind of global variable inside of the express templates, or do I have to explicitly pass them to render every time? [22:23] tjholowaychuk: sechrist: look at the docs/examples [22:23] tjholowaychuk: many ways [22:23] tjholowaychuk: app.helpers() etc [22:23] sechrist: I've been looking, I haven't found an example yet [22:23] micheil: I'm currently working on tests for our javascript library, and as part of that, I'm writing a client-side javascript async testing framework. [22:23] sechrist: maybe I'm just bad at sifting through docs [22:26] bitwise_: how do i get the conditionalGet middleware? [22:26] leahculver has joined the channel [22:26] leahculver has joined the channel [22:26] tjholowaychuk: bitwise_ it was removed [22:27] tjholowaychuk: too general, you would still have to compute the response [22:27] tjholowaychuk: so it was kinda useless [22:27] tjholowaychuk: and wasteful [22:27] bitwise_: just saw that [22:27] bitwise_: thanks and if i want to run wheat can i just comment it out? assuming wheat author is in here [22:29] brownies has joined the channel [22:30] mikeal has joined the channel [22:32] skohorn has joined the channel [22:32] level09: have any 1 worked with twitter modules ? any recommendations ? [22:32] dingomanatee: is there a way to translate rgb to hsb in canvas? [22:32] leahculver has joined the channel [22:33] hookdump has joined the channel [22:36] stepheneb has joined the channel [22:37] leahculver has joined the channel [22:37] leahculver has joined the channel [22:39] level09: I was wondering if there is a library that can create Image snapshots of URLs [22:39] leahculver has joined the channel [22:39] leahculver has joined the channel [22:39] level09: any 1 knows a module that can do that [22:40] level09: I had some success with phantomjs [22:40] level09: but that's not node [22:40] level09: plus its like killing a fly with a canon [22:41] CIA-110: node: 03Ryan Dahl 07v0.4 * rf78f654 10/ lib/_debugger.js : [22:41] CIA-110: node: Revert "debugger: don't allow users to input non-valid commands" [22:41] CIA-110: node: breaks 'print' command [22:41] CIA-110: node: This reverts commit 37d529f818aacd1146b1d927b3251bbefcea389f. - http://bit.ly/iofX6q [22:42] chjj has joined the channel [22:42] wadey has joined the channel [22:45] Mrfloyd has joined the channel [22:45] unlink has joined the channel [22:45] unlink has joined the channel [22:48] andrewfff has joined the channel [22:49] F1LT3R has joined the channel [22:49] F1LT3R has left the channel [22:51] leahculver has joined the channel [22:52] baoist has joined the channel [22:54] softdrink: anyone use jsbin? [22:55] tuhoojabotti: Google says to use eval [22:55] brianseeders has joined the channel [22:55] softdrink: google says a lot of things [22:56] brianseeders has joined the channel [22:56] tuhoojabotti: In their JS best pracitses [22:56] tuhoojabotti: practises* [22:56] tuhoojabotti: :D [22:58] SubStack: vm.runInNewContext is handy [22:58] tuhoojabotti: I know, that's what I use. [22:58] SubStack: even browser-side [22:58] tuhoojabotti: Well I don't need eval on the frontend [22:58] hookdump has joined the channel [23:00] ekryski has joined the channel [23:00] CIA-110: node: 03Ryan Dahl 07v0.4 * refca545 10/ (lib/http.js test/simple/test-regress-GH-877.js): [23:00] CIA-110: node: Fixes #877. Don't wait for socket pool to establish connections. [23:00] CIA-110: node: Thanks to Yann Biancheri for putting together an initial test. - http://bit.ly/jFujNs [23:01] MarcinM has joined the channel [23:01] xandrews has joined the channel [23:01] _sorensen_ has joined the channel [23:01] Mrfloyd has joined the channel [23:02] bitwise_: trying to run the heat-tracer example in howtonode and get cannot find module libdtrace, any hints for anoobie? [23:02] jtsnow has joined the channel [23:02] Mrfloyd has joined the channel [23:04] jerrysv has joined the channel [23:04] kbni has joined the channel [23:05] jerrysv has joined the channel [23:07] Sorella has joined the channel [23:09] jerrysv has joined the channel [23:09] Mrfloyd has joined the channel [23:09] zomgbie has joined the channel [23:09] c4milo has joined the channel [23:14] ezmobius has joined the channel [23:14] [[zzz]] has joined the channel [23:15] _1marc has joined the channel [23:16] carpeliam has joined the channel [23:16] _1marc has left the channel [23:21] cafesofie has joined the channel [23:25] jaket has joined the channel [23:29] gde33 has joined the channel [23:30] bergie has joined the channel [23:31] infynyxx has joined the channel [23:32] thejh has joined the channel [23:38] mikeal has joined the channel [23:40] tcurdt has joined the channel [23:42] TooTallNate has joined the channel [23:43] level09: does firefox 5 have websockets open by default ? [23:43] hlindset has joined the channel [23:44] jmoyers: its disabled [23:44] jmoyers: i think [23:45] jmoyers: "a key reason WebSockets is currently disabled by default in Firefox 4 and 5 is the discovery of a security issue in the protocol's design" [23:45] jmoyers: level09^ [23:45] blup has joined the channel [23:46] level09: hmm [23:46] level09: so they discovered a security issue that is unfixable [23:46] level09: weird [23:47] c4milo1 has joined the channel [23:47] tokumine has joined the channel [23:49] fangel has joined the channel [23:51] materialdesigner has joined the channel [23:55] jborst has joined the channel [23:55] nornagon has joined the channel [23:55] brownies has joined the channel