[00:00] superlou has joined the channel [00:00] CoverSlide: any case, ("%s", new Date) gets the string version, ("%d", new Date) gets the int version [00:00] CoverSlide: eezy breezy [00:01] zeunix_ has joined the channel [00:01] panosru has joined the channel [00:01] r04r has joined the channel [00:01] r04r has joined the channel [00:01] daniel`: I did `var str = require("util").format` -- beautiful! [00:01] daniel`: :D [00:01] xaq: Anybody know what the best way to livestream audio is (essentially to enable voice chat). Buffers and Socket.IO? [00:02] CoverSlide: flash [00:02] mraleph has joined the channel [00:02] xaq: any good examples/tutorials you know of with flash/nodejs? [00:02] TimTimTim has joined the channel [00:02] panosru: Hi, I'm wondering what people use on their node.js apps to create breadcrumb... custom implementation or something else? [00:03] t0mmyvyo has joined the channel [00:03] saurb has joined the channel [00:04] copongcopong has joined the channel [00:04] jaha has joined the channel [00:05] devongovett has joined the channel [00:06] r04r has joined the channel [00:06] r04r has joined the channel [00:07] retornam has joined the channel [00:08] nhunzaker has joined the channel [00:09] davidbanham has joined the channel [00:10] davidbanham: On HN a few months ago there was a nice site that gathered a whole bunch of browser data, plugins etc, then allowed you to email it to someone. [00:10] davidbanham: It was intended for devs to send to users to gather relevant information from them. [00:10] AaronMT has joined the channel [00:10] davidbanham: I can't for the life of me find it. Anyone remember it or know something similar? [00:12] r04r has joined the channel [00:13] RobWC1 has joined the channel [00:14] kurtzhong has joined the channel [00:14] wingie: anyone using superagent here? [00:15] jhbot: 'Using mongoose to find by id and 10 subsequent objects' by thedjpetersen http://stackoverflow.com/q/9303698 (tags: mongoose) [00:15] pauls1: anyone use ejs? how can i include a partial without using express? i need to be able to go ejs.render inside of flatiron [00:17] r04r has joined the channel [00:19] jesusabdullah: I don't think ejs supports partials internally? You can nest renders though I bet [00:19] pauls1: yeah have just decided to go that route! thanks again :) [00:19] akiva_ has left the channel [00:20] chilts: davidbanham: sounds like it could be quite useful :) [00:20] davidbanham: chilts: I know! It was awesome! Kicking myself for not bookmarking it. [00:21] chilts: ACTION wonders how you get extension info [00:21] wingie: pauls1: im nesting multiple ejs.render() [00:21] wingie: works great [00:21] EhevuTov_ has joined the channel [00:21] chilts: presumably it's all gathering the data in JS [00:21] wingie: chilts: why don't you use plates with flatiron? [00:21] diverdude: anybody know if is it possible to change request string before its forwarded to another ip in HAProxy? [00:21] chilts: I've been doing a similar thing recently, but mainly about screensize [00:21] davidbanham: chilts: Yeah it's through the DOM. I had something that did a similar job in a much uglier way, but never put it in VC and now it's lost, too. [00:21] chilts: wingie: ??? is that question for someone else? [00:21] wingie: i mean pauls1 [00:21] wingie: yeah=) [00:22] pauls1: wingie: do you mean that you're doing a replace once you get the html from the ejs render? [00:22] pauls1: hm [00:22] clarkfischer: github's broke [00:22] davidbanham: From memory it's just an array or objects under window.plugins or something [00:22] r04r has joined the channel [00:22] r04r has joined the channel [00:22] pauls1: wingie: ah yes, because i need to render on the client side [00:22] pauls1: re: plates [00:23] wingie: pauls1: no im doing ejs.render(html, {partial: ejs.render(...)}) [00:23] chilts: davidbanham: there is a document.plugins, but is empty in my case [00:23] pauls1: wingie: oh, that makes sense [00:23] pauls1: tx [00:23] wingie: pauls1: yeah and very simple [00:23] wingie: no need for supporting anything [00:24] wingie: i like such architecture [00:24] isaacs: dshaw_1: i lol'ed [00:24] pauls1: wingie: me too!! [00:24] wingie: who is attacking github every day [00:25] Nickname123 has joined the channel [00:25] agnat_ has joined the channel [00:25] gr4yscale has joined the channel [00:25] sirwan has joined the channel [00:25] davidbanham: chilts: It's window.navigator.plugins [00:25] Nickname123 has left the channel [00:26] teslan has joined the channel [00:26] chilts: davidbanham: cool! :) [00:26] EhevuTov_: angry rainbow unicorns [00:26] boehm has joined the channel [00:27] r04r has joined the channel [00:27] davidbanham: chilts: You will now spend the next 5 minutes saying "What? When did I install THAT?" [00:28] nicholasf has joined the channel [00:28] tonymilne has joined the channel [00:28] chilts: heh, I've installed 2 plugins ... and both of those in the past 2 days! :) [00:29] chilts: never did plugins much beforehand [00:30] tonymilne: when using child_process.spawn('command', [args]) - anyone know how i can achieve something like "node /path/to/file.js -t 20 -p 4" [00:30] tonymilne: It seems that passing filename, t, p in the args array makes node receive them, and doing it as a string errors saying "Cannot find module" [00:31] looopy has joined the channel [00:31] tonymilne: (for node 0.4.12) [00:31] josh-k has joined the channel [00:32] r04r has joined the channel [00:32] r04r has joined the channel [00:32] davidbanham: tonymilne: It's a bash-sh hack, but try child_process.spawn('cd /absoulte/path/goes/here && node /path/to.file.js -args') [00:32] EhevuTov: why would someone DoS github [00:32] xaq has joined the channel [00:32] davidbanham: NFI if it will work, but that's what I would try. [00:32] dshaw_1: :) [00:34] tonymilne: davidbanham i can set the cwd, so i might do that first - but thanks for the suggestion. [00:34] dswabster has joined the channel [00:37] r04r has joined the channel [00:37] r04r has joined the channel [00:39] marcello3d has joined the channel [00:40] badger has joined the channel [00:40] thalll has joined the channel [00:41] dunder-mifflin: is there any tool to measure cyclomatic complexity in node.js/javascript libs? [00:42] r04r has joined the channel [00:42] r04r has joined the channel [00:43] johnmdonahue has joined the channel [00:43] mAritz has joined the channel [00:44] Cromulent has joined the channel [00:44] jj0hns0n has joined the channel [00:47] diverdude: EhevuTov: hey [00:47] jhbot: 'Why do I see "define not defined" when running Mocha test with RequireJS?' by andrew cooke http://stackoverflow.com/q/9303945 (tags: javascript, npm, requirejs, mocha) [00:47] EhevuTov: diverdude, what's shakin [00:47] khrome has joined the channel [00:47] r04r has joined the channel [00:47] diverdude: EhevuTov: not workin after all :/ [00:48] EhevuTov: diverdude, bah, I wonder what it could be [00:48] diverdude: EhevuTov: only auth is working...not message passing [00:48] EhevuTov: diverdude, I recommend you just dive into the code [00:48] diverdude: EhevuTov: i know what the problem is more or less [00:49] EhevuTov: diverdude, what do you think it is now [00:49] diverdude: EhevuTov: it has to do with the fact that socket.io actually cannot go through http proxy,...it needs a proxy the operations on a lower level in the osi model i think [00:49] diverdude: like HAProxy [00:51] bbbb has joined the channel [00:51] EhevuTov: diverdude, I'd think it just needs to do HTTP/1.1 [00:52] diverdude: apache does http 1.1 [00:52] diverdude: and apache cannot do it [00:52] diverdude: something to do with some http upgrade header which websockets use [00:52] r04r has joined the channel [00:52] r04r has joined the channel [00:53] boltR has joined the channel [00:53] konobi: diverdude: apache does 1.1, but i think it does 1.0 to backend proxies [00:53] konobi: needs to be 1.1 the whole way through [00:54] diverdude: konobi: oh ok maybe thats it then [00:54] kvey has joined the channel [00:54] diverdude: so i have installed HAProxy new...trying to figure out how to set that up [00:55] diverdude: its not that easy [00:55] sebicas has joined the channel [00:56] infynyxx has joined the channel [00:56] tonymilne has joined the channel [00:58] zeissoctopus has joined the channel [00:58] r04r has joined the channel [00:58] k1ttty has joined the channel [00:58] adrianF has joined the channel [00:58] sarlalian has joined the channel [01:01] lohkey has joined the channel [01:01] unomi has joined the channel [01:03] neoesque has joined the channel [01:04] r04r has joined the channel [01:06] bnoordhuis: konobi: mod_proxy supports http/1.1, maybe you're thinking of nginx? [01:06] johnmdonahue: anyone know what's up with vows@0.6.1 install/package.json? Flatiron has it as a dependency - just wondering if anyone else is getting this and the preferred work around: https://gist.github.com/1840473 [01:06] konobi: bnoordhuis: ah maybe... last i was looking it didn't [01:06] matehat has joined the channel [01:08] vincentcr has joined the channel [01:09] diverdude: konobi: i dont remember if already asked you if you are also a socket.io user? [01:09] mattgifford has joined the channel [01:10] konobi: nope, just plenty experience with http, proxies, etc. [01:10] jergason has joined the channel [01:10] r04r has joined the channel [01:10] diverdude: konobi: ahh ok. ever used HAProxy? [01:10] jj0hns0n has joined the channel [01:11] recur has joined the channel [01:11] hhutch has joined the channel [01:12] c4milo has joined the channel [01:12] konobi: nope... at that level i generally switched to commercial offerings [01:12] Karmaon has joined the channel [01:14] diverdude: konobi: ok. are they better? Or have better support just? [01:14] boccato has joined the channel [01:14] gr4yscale has joined the channel [01:15] konobi: diverdude: various reasons to use them [01:15] diverdude: konobi: whats the price of those actually [01:16] konobi: really depends... i've had cisco local directors before... but there's also appliance and software too [01:16] konobi: zxtm for example [01:18] CIA-74: node: 03Bert Belder 07v0.6 * r077f9d7 10/ src/node.cc : Windows: use unicode environment - http://git.io/cR_zrQ [01:18] CIA-74: node: 03Bert Belder 07v0.6 * rd91bc7c 10/ (lib/path.js src/node.cc): Windows: get rid of process._cwdForDrive() - http://git.io/_wG4ow [01:19] briancray has joined the channel [01:19] r04r has joined the channel [01:19] r04r has joined the channel [01:19] sideshownz has joined the channel [01:24] r04r has joined the channel [01:25] davidwalsh has joined the channel [01:25] eignerchris has joined the channel [01:26] jhbot: 'Using 'return' when creating objects with 'new'' by Kevin McTigue http://stackoverflow.com/q/9304206 (tags: javascript, web-development) [01:26] jergason has joined the channel [01:28] sorensen__ has joined the channel [01:29] r04r has joined the channel [01:29] r04r has joined the channel [01:29] enmand has joined the channel [01:30] tkaemming has joined the channel [01:30] dekub has joined the channel [01:30] Behi has joined the channel [01:30] aristidesfl has joined the channel [01:31] Rob__ has joined the channel [01:31] dudeinthemirror has joined the channel [01:33] trotter has joined the channel [01:33] themiddleman_itv has joined the channel [01:34] r04r has joined the channel [01:34] sebicas has left the channel [01:34] knite has joined the channel [01:35] ryanfitz_ has joined the channel [01:35] bbbb has joined the channel [01:35] pradeebv has joined the channel [01:35] kurtzhong_ has joined the channel [01:36] Twelve-60 has joined the channel [01:39] r04r has joined the channel [01:41] bindr has joined the channel [01:41] ohtogo has joined the channel [01:43] sideshownz has joined the channel [01:43] r04r has joined the channel [01:43] daniel` has joined the channel [01:44] matehat has joined the channel [01:44] daniel`: any neat library for parsing function arguments? (for things like optional arguments) [01:44] reid has joined the channel [01:45] copongcopong has joined the channel [01:46] daniel`: I’m thinking I’ll do `arguments = [].concat.call(arguments)` + arguments.shift() + arguments.pop() [01:46] ditesh|cassini has joined the channel [01:47] daniel`: anybody see any problems with that? [01:47] ceej has joined the channel [01:47] jtsnow has joined the channel [01:48] TooTallNate: daniel`: no library needed for that, just parse the args manually [01:49] TooTallNate: but if you want to convert "arguments" to a real Array [01:49] TooTallNate: var args = [].slice.call(arguments) [01:49] daniel`: oh, right, I just noticed that [01:49] r04r has joined the channel [01:49] daniel`: `arguments = [].slice.call(arguments)` seems to work too though [01:50] daniel`: arguments works just any other variable, right? [01:51] pVi has joined the channel [01:51] pVi has left the channel [01:52] ryanfitz has joined the channel [01:53] whaley has joined the channel [01:53] kbhit has joined the channel [01:54] abraxas has joined the channel [01:54] Init--WithStyle- has joined the channel [01:54] r04r has joined the channel [01:54] Init--WithStyle-: Hey all, I need to send the same packet to multiple clients at the same time via my node.js server (over websockets). What would be the most efficient method to do this? Just fire off each packet serially? [01:55] arcanis: TooTallNate, Array.prototype should be better than [] [01:55] daniel` has left the channel [01:55] ericmuyser has joined the channel [01:55] mschneider has joined the channel [01:56] Joey_ has joined the channel [01:56] TooTallNate: arcanis: technically, but property accessors are never going to be the bottleneck in any given program [01:56] icewhite has joined the channel [01:56] TooTallNate: / object creation [01:57] bicranial has joined the channel [01:57] _Brun0_: I have asked this today before but I had to leave so I don't know if t was answered: Is there an official way for a View to set Layout page_titile? I could only find this: http://stackoverflow.com/questions/3601080/how-do-i-pass-content-from-a-template-to-a-layout-in-express [02:00] ryanfitz_ has joined the channel [02:00] r04r has joined the channel [02:01] subbyyy has joined the channel [02:01] wookiehangover has joined the channel [02:03] subbyyy has joined the channel [02:03] langworthy has joined the channel [02:03] boccato has joined the channel [02:03] dgathright has joined the channel [02:03] xaq has joined the channel [02:04] rwaldron has joined the channel [02:04] t0mmyvyo has joined the channel [02:05] r04r has joined the channel [02:05] mindeavor has left the channel [02:06] sdwrage has joined the channel [02:08] al3xnull has joined the channel [02:09] robinhoode_ has joined the channel [02:10] r04r has joined the channel [02:10] r04r has joined the channel [02:13] ryanfitz has joined the channel [02:15] r04r has joined the channel [02:17] redir has joined the channel [02:18] mcoffee has joined the channel [02:20] r04r has joined the channel [02:21] c4milo has joined the channel [02:22] huggies has joined the channel [02:23] brianseeders has joined the channel [02:25] fermion has joined the channel [02:25] ovaillancourt has joined the channel [02:26] francisl has joined the channel [02:26] r04r has joined the channel [02:27] innociv_ has joined the channel [02:27] a_suenami has joined the channel [02:28] gregpascale has joined the channel [02:30] gatorcoder has joined the channel [02:31] r04r has joined the channel [02:31] nightfury has joined the channel [02:35] mac^ has joined the channel [02:36] indexzero has joined the channel [02:36] r04r has joined the channel [02:37] b_d has joined the channel [02:37] al3xnull_ has joined the channel [02:39] plantain has joined the channel [02:39] abraxas has joined the channel [02:42] r04r has joined the channel [02:42] r04r has joined the channel [02:45] mac^ has joined the channel [02:46] jacobolus has joined the channel [02:46] clarke2 has joined the channel [02:46] r04r has joined the channel [02:46] r04r has joined the channel [02:47] BillyBreen has joined the channel [02:47] diva has joined the channel [02:50] shanebo has joined the channel [02:50] broofa has joined the channel [02:51] neoesque has joined the channel [02:51] saurb has joined the channel [02:52] mattgifford has joined the channel [02:52] jerrysv has joined the channel [02:52] r04r has joined the channel [02:53] dunder-mifflin has left the channel [02:55] jmar777 has joined the channel [02:55] lohkey has joined the channel [02:55] Karmaon has joined the channel [02:56] hipertracker_ has joined the channel [02:56] jhbot: 'how to get data passed from a form in Express (Node.js)' by Jude Calimbas http://stackoverflow.com/q/9304888 (tags: javascript, express) [02:57] lohkey has left the channel [02:57] r04r has joined the channel [02:57] r04r has joined the channel [02:58] b_d has left the channel [02:59] dabbor has joined the channel [03:01] Vennril2 has joined the channel [03:01] nerdy has joined the channel [03:01] jdeibele has joined the channel [03:02] ericmuyser has joined the channel [03:02] r04r has joined the channel [03:02] r04r has joined the channel [03:04] patcito has joined the channel [03:04] mac^ has joined the channel [03:07] kirbysayshi has joined the channel [03:07] r04r has joined the channel [03:08] lz has joined the channel [03:08] viper1092 has joined the channel [03:09] replore has joined the channel [03:09] replore_ has joined the channel [03:09] mattgifford has joined the channel [03:09] dthompso99 has left the channel [03:10] wingie: what's the best node.js HTTP library? [03:10] wssr has joined the channel [03:10] mmalecki: require('http') [03:10] mmalecki: I've heard it's pretty good XD [03:10] wingie: haha [03:11] wingie: mmalecki: is nodejitsu using that http module to make http requests? [03:11] intripoon_ has joined the channel [03:11] dthompso99 has joined the channel [03:12] jesusabdullah: wingie: You want github.com/mikeal/request then [03:12] warz has joined the channel [03:12] warz has joined the channel [03:12] mandric has joined the channel [03:12] riskish has joined the channel [03:12] mmalecki: wingie: we mostly use request, but I think we use it in some places as well [03:12] stisti has joined the channel [03:12] Me1000 has joined the channel [03:13] r04r has joined the channel [03:14] isaacs has joined the channel [03:15] EvRide has joined the channel [03:16] abraxas has joined the channel [03:16] JasonJS has joined the channel [03:16] wingie: mmalecki jesusabdullah : that one seems more advanced than superagent [03:17] wingie: how do you set the query params with it? [03:17] devongovett has joined the channel [03:17] jesusabdullah: you'll have to read its docs, but you can probably just add them to the url [03:18] r04r has joined the channel [03:18] jesusabdullah: it also has stuff for multipart form posts, setting headers, all that jazz [03:18] pendlepants has joined the channel [03:18] bartt has joined the channel [03:19] boltR has joined the channel [03:19] wingie: jesusabdullah: i have but i might be misunderstanding query params .. if you use query params you shouldn't send anything in the body? [03:19] nerdfiles1 has joined the channel [03:19] wingie: and content type should be application/x-www-form-urlencoded; charset=utf-8 ? [03:19] wingie: or can you send JSON and still set query params [03:20] plantain has left the channel [03:20] wingie: in that way "form" property won't handle it well [03:21] chbrown has joined the channel [03:23] jesusabdullah: wingie: a request body is often encoded with querystrings the same way as query params but those are often part of the url, like, youtube.com/watch?id=whatever&t=2m31s [03:23] jesusabdullah: like, the part after the ? is query params [03:23] SubStack: beep boop [03:24] esundahl has joined the channel [03:25] kitt has joined the channel [03:25] jtsnow has joined the channel [03:26] jacobolus has joined the channel [03:27] r04r has joined the channel [03:28] retornam has joined the channel [03:29] mcoffee has joined the channel [03:29] tkaemming has joined the channel [03:29] icewhite has joined the channel [03:30] cjm has joined the channel [03:30] EhevuTov has joined the channel [03:32] r04r has joined the channel [03:33] trotter has joined the channel [03:37] socketio\test\44 has joined the channel [03:37] indexzero has joined the channel [03:38] r04r has joined the channel [03:38] astropirate has joined the channel [03:39] crutex has joined the channel [03:39] crutex has joined the channel [03:40] ben_alman has joined the channel [03:41] spion has joined the channel [03:43] r04r has joined the channel [03:44] blueadept has joined the channel [03:44] blueadept has joined the channel [03:44] simenbrekken has joined the channel [03:45] ohtogo has joined the channel [03:45] cpetzold has joined the channel [03:45] Behi has joined the channel [03:46] CIA-74: node: 03Maciej Małecki 07master * r3bc3af0 10/ src/node.js : [03:46] CIA-74: node: process: remove old notices about removed methods [03:46] CIA-74: node: These methods were removed a long time ago. Keeping these notices here [03:46] CIA-74: node: makes no sense anymore. [03:46] CIA-74: node: Also, removing this part of code slightly speeds up the startup. - http://git.io/Sg-Uxg [03:47] pilgo has joined the channel [03:48] c0smikdebris has joined the channel [03:48] r04r has joined the channel [03:48] pilgo: I have a problem where everyauth returns the user returns the Facebook info but the callback page is displayed before the user is saved to the db. Any ideas? [03:48] jamund has joined the channel [03:49] boehm has joined the channel [03:49] sarlalian has joined the channel [03:50] ryanfitz has joined the channel [03:50] iangreenleaf has joined the channel [03:52] tylerstalder has joined the channel [03:53] r04r has joined the channel [03:53] r04r has joined the channel [03:53] pilgo: Okay, how can I get notified when a specific document is created with mongoose? [03:55] wssr has joined the channel [03:55] ritch- has joined the channel [03:55] timoxley: pilgo you can just have the Model object emit a 'created' event [03:55] timoxley: or whatever [03:56] pilgo: timoxley: Ok, great. Could you please point me to the documentation, if there is any for that?! [03:56] timoxley: pilgo eg. User.post('save', function(user) { User.emit('created', user) }) [03:56] pilgo: I couldn't find much. [03:56] killing-joke has joined the channel [03:57] joaojeronimo_ has joined the channel [03:57] timoxley: there isn't really anything, except that knowing the Model is an event emitter and you can use it to emit events using the post/pre save/remove middleware [03:58] xaq has joined the channel [03:58] r04r has joined the channel [03:58] r04r has joined the channel [03:59] pilgo: timoxley: Ah, I see. Thanks! [03:59] killing-joke: i want to run 'npm install .' in the root of a project i cloned. i have node 0.6.10 in /usr/bin, and i want npm to use /usr/local/node/$older_version instead [03:59] isaacs: killing-joke: so update your path [03:59] joaojeronimo_: What's the best way to know if a file exists before v0.7.x ? ( fs.exists(file, function (exists) { console.log('exists!')}) does not exist before v0.7.x right ?) [03:59] killing-joke: is there a way to do that? i didn't see one in the repo or man pages [03:59] davidbanham: killing-joke: Use nvm ? [03:59] isaacs: killing-joke: export PATH=/usr/local/node/bin [03:59] pilgo: timoxley: I'm not sure if there's a better fix to this but basically, I'm getting everyauth to return FB data and the my page loads before the user saves which results in an error. [04:00] isaacs: killing-joke: or use nave [04:00] isaacs: or n or nvm or one of the others. [04:00] killing-joke: isaacs, ah. many thanks. [04:00] killing-joke: davidbanham, tyvm [04:00] davidbanham: np [04:00] isaacs: joaojeronimo_: it was path.exists [04:00] isaacs: joaojeronimo_: this was the wrong place for it, unfortunately [04:00] timoxley: pilgo oh [04:00] timoxley: pilgo when you do user.save() it takes a callback [04:00] isaacs: joaojeronimo_: the best way is to use fs.stat() and actually make sure it is the sort of thing you want. [04:01] timoxley: pilgo user.save(function(err, user) { console.log('saved') }) [04:01] joaojeronimo_: isaacs: OK, thanks :) [04:01] dunder-mifflin has joined the channel [04:01] timoxley: pilgo let's move this discussion into #mongoosejs [04:01] pilgo: timoxley: Right! However, I have a catch-22. I'm opening a socket.io connection and not sure what to do if socket is not open by the time user saves. [04:02] Sly__: isaacs, updated that pull request for the last time, unless someone comes up with a bug. [04:02] isaacs: Sly__: great :) [04:04] dgathright has joined the channel [04:04] r04r has joined the channel [04:05] xaq: Hey guys, does anybody know is there a way to read in audio from a user's microphone without flash? [04:08] davidbanham: xaq: x-webkit-speech [04:08] ryantm1 has joined the channel [04:09] r04r has joined the channel [04:10] joshthecoder has joined the channel [04:10] xaq: davidbanham : no cross-browser solution? [04:10] davidbanham: xaq: Not that I'm aware of, but that's not definitive. [04:11] joshkehn has joined the channel [04:11] joshkehn has left the channel [04:11] willwhite has joined the channel [04:13] pradeebv has joined the channel [04:13] pendlepants has joined the channel [04:14] xaq: davidbanham : that's just speech2text, no? Can I pass the audio stream itself to server? [04:15] AkhiAbdullah has joined the channel [04:15] r04r has joined the channel [04:16] ryan_ has joined the channel [04:17] mschneider has joined the channel [04:17] muk_mb has joined the channel [04:17] jakehow has joined the channel [04:20] joshfinnie has joined the channel [04:20] r04r has joined the channel [04:21] redir has joined the channel [04:22] al3xnull has joined the channel [04:22] davidbanham: xaq: Sorry, misinterpreted what that was for. I found this, but I'm just googling at this point. - https://labs.ericsson.com/developer-community/blog/beyond-html5-audio-capture-web-browsers [04:23] xaq: davidbanham: gotcha. Thanks. No worries I'll google around a bit [04:25] kirbysayshi: Does anyone have a recommendation for a node-based asset packager-compiler? I need to package stylus files, and generate compiled template functions. [04:25] r04r has joined the channel [04:25] killing-joke: sorry, i should have thought to ask earlier [04:25] kirbysayshi: I'm trying to avoid things that aren't written in node... I'm hoping to have better integration that way. [04:25] killing-joke: using nave, "Error: npm doesn't work with node v0.4.12" [04:26] killing-joke: which version(s) of 'npm' match up with node v0.4.12 [04:26] wingie: killing-joke: you mean something like browserify? [04:26] isaacs: killing-joke: npm 1.0 [04:26] wingie: killing-joke: why do you wanna use v0.4.12? [04:27] killing-joke: isaacs, awesome. thank you. [04:27] isaacs: killing-joke: 1.1 uses node-tar and requires built-in zlib [04:27] isaacs: killing-joke: but yes, don't use node 0.4, it's ancient :) [04:27] isaacs: killing-joke: if you're in a nave subshell, btw, you can curl http://npmjs.org/install.sh |sh and it'll install the right one [04:27] killing-joke: isaacs, i have been meaning (for about a year) to thank you for the node-tar [04:27] isaacs: a year? has it been that long? [04:27] markq has joined the channel [04:27] SubStack: ACTION is still on 0.4 :p [04:27] killing-joke: not quite, but i needed it for at least that long [04:28] SubStack: although [04:28] SubStack: once I get this terrible bug fixed [04:28] SubStack: we can probably switch [04:28] isaacs: killing-joke: sweet [04:29] kmiyashiro has joined the channel [04:29] isaacs: SubStack: that's great [04:29] isaacs: ACTION can't wait to get off of 0.6 already [04:30] isaacs: seriously, 0.8 can't get here soon enough [04:30] isaacs: it's gonna be so much better. [04:30] AvianFlu has joined the channel [04:30] dshaw_: .2 better! [04:30] isaacs: dshaw_: exactly! [04:30] killing-joke: god damn that was nice. after hacking around in various things all afternoon, it finally just ran all the way through [04:30] killing-joke: (when using the corret version of node) [04:30] r04r has joined the channel [04:30] SubStack: I can't wait for core to stop changing altogether [04:31] killing-joke: ACTION is back on 0.4 tonight. whee! [04:31] SubStack: like awk [04:31] pradeebv_ has joined the channel [04:31] SubStack: save the occasional patch version every few months [04:31] killing-joke: wingie, pega.io does not want to build with 0.6, at least at my level of hack-skill [04:31] gatorcoder: isaacs/dshaw/substack can you guys do another nodeup plz [04:31] killing-joke: so i use 0.4 [04:32] gatorcoder: i just finished going through all the nodeups im obsessed ;0 [04:32] dshaw_: gatorcoder: I think we're on a every other week schedule. [04:32] SubStack: gatorcoder: there's going to be another one on sunday [04:32] gatorcoder: excellent! [04:32] gatorcoder: i will try to catch this one live [04:32] gatorcoder: i came across it last week on reddit [04:33] gatorcoder: and did all 12 in the last week or so during my commute [04:33] isaacs: didn't we do one like just yesterday? [04:33] dshaw_: gatorcoder: Wow! [04:33] isaacs: what day is it? [04:33] isaacs: :) [04:33] gatorcoder: 13? [04:33] SubStack: wednesday for a few more hours [04:33] isaacs: jesus. [04:33] EhevuTov: gatorcoder, that is the first I've heard of a node.js podcast. Nice [04:34] ryanfitz has joined the channel [04:34] SubStack: I made 5 new github repos last week [04:34] davidbanham: It's Thursday! Silly Americans. [04:34] gatorcoder: Its really refreshing to hear a new pod cast/on new topics [04:34] gatorcoder: i did tons of sql server podcasts last year [04:34] dshaw_: I heard isaacs is going to announce the 0.8 release date on this one. /untrue [04:35] gatorcoder: im in a .net shop and was swamped with huge performance issues with a new customer that was pushing the boundry with scale with our app [04:35] SubStack: I should finish up this browserling patch so I can roll out difflet diffs for testling tonight [04:35] r04r has joined the channel [04:35] SubStack: dshaw_: I finally started playing with redis too! [04:36] dshaw_: SubStack: Saw that. [04:36] dshaw_: kewl [04:36] SubStack: I'm going to use it to store experiment data [04:36] EhevuTov: SubStack, is redis clustered yet? [04:36] gatorcoder: Substack more modules from you now? ;) [04:36] dshaw_: All hail our Redis overlords. [04:36] niloy has joined the channel [04:36] isaacs: dshaw_: i heard that voxer is going to release a version that works on blackberry. [04:36] killing-joke: no clusters today [04:36] SubStack: plus I can get it working with seaport as-is [04:36] SubStack: with the seaport cli [04:36] dshaw_: isaacs: lol [04:36] isaacs: haha [04:37] dshaw_: SubStack: Perfect. [04:37] isaacs: it's so hilarious when people try to pretend that there's more than 2 mobile operating systems. [04:37] EhevuTov: gatorcoder, I work in an MS shop. We still use SourceSafe. We right real-time network services in C# [04:37] SubStack: so in my node code I can do ports.get('multi.redis', function (ps) { redis.createClient(ps[0].port, ps[0].host) }) [04:37] isaacs: EhevuTov: my heart goes out to you. [04:37] EhevuTov: gatorcoder, write, even [04:37] dshaw_: Wait, there's more than one? [04:37] isaacs: dshaw_: android is kind of real. [04:38] EhevuTov: isaacs, thank you. Freenode is my support group [04:38] isaacs: dshaw_: at least, outside of the bay area [04:38] dshaw_: pfffffpt! [04:38] kitthod has joined the channel [04:38] gatorcoder: EhevuTov: you know was funny our CEO saw etherpad-lite (node.js port of etherpad a collab notepad app) and was like omg how does this magic work and i was like well funny you ask has alot to do with node.js I can speak to that [04:38] isaacs: actually, android is growing fast. [04:38] dshaw_: Yes, it has the market shares. [04:39] isaacs: it's the windows of mobile [04:39] isaacs: (hilariously, windows mobile is not that) [04:39] dshaw_: yes [04:39] SubStack: windows mobile is the solaris of mobile [04:39] dshaw_: lol [04:39] SubStack: or the freebsd [04:39] gatorcoder: yikes [04:39] isaacs: i always thought of webos as the solaris of mobile [04:40] EhevuTov: gatorcoder, oh now that's nice. My manager doesn't mentally recognize stuff like that. They're also a very NIH shop [04:40] isaacs: objectively better, no one uses it, and hideously mismanaged by a bumbling corp to big for its own good. [04:40] dshaw_: +1 [04:40] jaha has joined the channel [04:40] EhevuTov: SubStack, lay off the fBSD :-) [04:40] isaacs: man, i miss FreeBSD. [04:40] isaacs: yahoo went downhill when they started switching over to rhel [04:40] gatorcoder: EhevuTov: I have recently taken over as the manager of my group we deal with deployment/customizations for our software so I have more say in these things these days so thats nice [04:40] r04r has joined the channel [04:40] r04r has joined the channel [04:40] isaacs: Jails man. Fucking awesome. [04:41] context: whats wrong with solaris [04:41] isaacs: context: oh, i <3 me some sunos. [04:41] context: besides its current owners [04:41] davidbanham: http://searchengineland.com/figz/wp-content/seloads/2011/10/Screen-shot-2011-10-10-at-2.02.57-PM.png [04:41] dshaw_: SubStack: Slaving yet? [04:41] davidbanham: US Smartphone market share [04:41] SubStack: dshaw_: what? [04:41] dshaw_: Redis? [04:41] SubStack: like, that thing that redis can do [04:42] SubStack: nah I'm just using it like a nicer sqlite right now [04:42] dshaw_: ok [04:42] dshaw_: yeah, it's great for that. [04:42] gatorcoder: a nicer sqlite that writes to memory vs disk [04:42] context: davidbanham: i like how thats a screenshot [04:42] context: haha [04:42] context: redis writes to disk now [04:42] dlg: sounds slow now [04:42] gatorcoder: haha [04:43] EhevuTov: gatorcoder, oh that must be really nice [04:43] context: do people really use sqlite cause it writes to disk though ? [04:43] SubStack: yes [04:43] EhevuTov: red is has a 'make benchmark' or something?I forget where it is, but it profiles a lot of the ways it stores with speed info, etc. [04:43] gatorcoder: i use sqlite because I can check it in and then pickup where i left off on anohter machine [04:45] EhevuTov: context, sqlite can write quickly compared to other relational databases. Not as fast as a key/value store, but it has it's purpose [04:45] context: i run xenserver at home and just pptp in when i need anything [04:45] copongcopong has joined the channel [04:46] context: though i run mysql, postgresql, riak, mongo, couch, redis on my laptop at all times [04:46] r04r has joined the channel [04:47] wssr has joined the channel [04:47] killing-joke: what the world needs is a nice port of FreeBSD to Xen/EC2/something, built lean so the whole install is about 80MB [04:47] dgathright has joined the channel [04:47] EhevuTov: SubStack, now I remember redis has an actual benchmark script I think it's distributed with: ./redis-benchmark -n 100000 [04:47] OmidRaha has joined the channel [04:48] nightfury has joined the channel [04:48] EhevuTov: context, why so many? You should try LevelDB sometime [04:48] killing-joke: this is a good read, if you have a spare :30 http://redis.io/topics/benchmarks [04:49] context: riak uses leveldb [04:49] context: ehevutov: i use half of them at work [04:49] context: ehevutov: and... why not [04:49] context: its like a condom [04:49] context: better to have it and not need it, than need it and not have it [04:49] EhevuTov: ?or a bunch of condoms at once [04:50] EhevuTov: kyoto is really fast, but I don't like the license [04:50] skm has joined the channel [04:50] context: never used cabinet [04:51] EhevuTov: It's GPL'ed IIRC so I wouldn't be able to sell the idea to my managers (since we actually sell our software) [04:51] context: well [04:51] sideshownz has joined the channel [04:51] context: you dont have to OS your stuff if you are connecting to it do you ? [04:51] r04r has joined the channel [04:52] djbell has joined the channel [04:54] context: i thought it was just if you included it directly or linked to it [04:56] ohtogo has joined the channel [04:56] EhevuTov: context, I don't think so if its LGPL, but I think FLabs has a commercial license?"If you use Kyoto Cabinet within a proprietary software, the commercial license is required." [04:56] r04r has joined the channel [04:57] muk_mb: can you have periods in a valid url? [04:57] DijkstraGroupie has joined the channel [04:57] muk_mb: something.com/some.path.html? [04:57] context: ahh [04:57] context: muk_mb: uhhh... you just added two [04:57] context: one already being valid [04:57] context: no reason another wouldnt [04:57] EhevuTov: context, yeah, I was in the middle of writing a benchmark for cabinet and the saw that. My heart sank [04:58] context: muk_mb: uri itself knows nothing about extensions... [04:58] context: technically that ".html" means NOTHING in the grand scheme of things [04:58] muk_mb: that makes sense [04:58] EhevuTov: muk_mb, I don't know if it's like "RFC spec" valid, but people use it quite a bit [04:59] context: actually... you have three in there [04:59] isaacs: muk_mb: yes, you can have as many periods as you want [04:59] context: url's are REQUIRED to have periods in them. [04:59] muk_mb: so really, the server should be looking at the Accept header instead of the extension on the path? [04:59] munichlinux has joined the channel [04:59] isaacs: context: nuh uh [04:59] context: isaacs: :x [04:59] isaacs: context: http://server/path <-- valid url [04:59] context: isaacs: 90% of the time they do though [04:59] context: haha [05:00] context: yeah. i use home.domain.net at home :/ [05:00] context: and owning a three char domain helps [05:01] AvianFlu: jit.su FTW :D [05:01] tuhoojabotti: tuh.is would be awesome [05:02] EhevuTov: tuhoojabotti, what would you do what that [05:02] r04r has joined the channel [05:02] tuhoojabotti: EhevuTov: That's what people call me, tuhis. [05:04] mhillsman has joined the channel [05:04] replore has joined the channel [05:04] replore__ has joined the channel [05:04] mhillsman has left the channel [05:05] mhillsman has joined the channel [05:05] EhevuTov: ACTION listening to http://nodeup.com/ I'll be listening to the rest during my daily commute [05:05] LBRapid has joined the channel [05:06] mhillsman has left the channel [05:06] mhillsman has joined the channel [05:06] skm has joined the channel [05:07] astropirate: you kids and your iPods [05:07] tuhoojabotti: I have Galaxy S2 [05:07] astropirate: I have a walkman [05:07] r04r has joined the channel [05:08] astropirate: you can take it out of my dead cold hands [05:08] tuhoojabotti: Thanks. [05:09] EhevuTov: astropirate, I've got a HTC G2 thank you very much :-) [05:09] st_luke has joined the channel [05:09] astropirate: :p [05:09] tuhoojabotti: And I just ordered transformer prime :3 [05:09] wssr has joined the channel [05:09] muk_mb: is there a preferred testing framework? vows? [05:10] AvianFlu: there are several popular ones [05:10] hemanth has joined the channel [05:10] SubStack: there are lots of testing harnesses [05:10] AvianFlu: I like vows... because I learned it and can use it effectively [05:10] EhevuTov: muk_mb, I know that a new one is Mocha that people seem to like. There are a lot [05:10] AvianFlu: there's also node-tap, nodeunit, mocha, and others [05:10] SubStack: ACTION thinks that vows is silly [05:10] SubStack: in that I still don't *get* it [05:10] AvianFlu: ACTION thinks that SubStack *would* think that vows was silly [05:10] SubStack: I like tap [05:10] muk_mb: there's not a primary one yet? [05:10] hemanth: what's wrong in invoking a function like global[ param[2] ](param[1],param[3]); where param's are url.parse(req.url).pathname.split("/") [05:11] SubStack: or some people like just rolling custom asserts [05:11] SubStack: but whatever you do, make sure that your thing works with `npm test` [05:11] AvianFlu: also, TRAVIS ALL THE THINGS! [05:11] SubStack: ALSO THAT [05:11] AvianFlu: custom asserts are fun sometimes [05:12] AvianFlu: that's how every test framework starts out! XD [05:12] riskish has joined the channel [05:12] SubStack: I like the test harness to guard against certain common bugs that are difficult to detect with asserts [05:12] SubStack: like not firing a callback at all is the most common [05:12] AvianFlu: yeah [05:12] SubStack: false positives! [05:12] dilvie has joined the channel [05:12] AvianFlu: you can check that with asserts though [05:13] SubStack: yes but keeping track of that state is annoying [05:13] r04r has joined the channel [05:13] stisti has joined the channel [05:13] SubStack: or setting a timeout that throws and then clearing it in the callback [05:13] SubStack: I used to do that a lot in expresso [05:13] AvianFlu: process.on('exit', function () { assert(fired == true) }) [05:13] AvianFlu: but yeah [05:13] AvianFlu: use a framework XD [05:13] SubStack: then I realized that if I just used a better test harness it would take care of that [05:13] dunder-mifflin: doesn't vows handle that? i.e. if callback is not called, then it will fail the test and displays 'callback is not fired' [05:13] AvianFlu: dunder-mifflin, yes [05:14] AvianFlu: that's why we're saying test frameworks are good :D [05:14] AvianFlu: so you don't have to check that yourself [05:14] SubStack: well *some* test harnesses are good [05:14] SubStack: some are not as good [05:14] AvianFlu: lol true [05:14] SubStack: some are actively bad [05:14] dunder-mifflin: the problem i'm having with vows is when callback is not fired when i'm expecting it to be fired.. figuring out why often takes time [05:15] AvianFlu: refactoring vows is a common topic of discussion at nodejitsu [05:15] AvianFlu: it'll happen [05:15] dunder-mifflin: AvianFlu: i give you guys my moral support! [05:15] SubStack: dunder-mifflin: give tap a spin too, you might like it [05:15] AvianFlu: :D [05:15] AvianFlu: yeah, tap is quite popular [05:15] AvianFlu: and much simpler than vows [05:15] AvianFlu: the way vows is built on sentences can be hard to pick up from scratch [05:16] AvianFlu: having learned it, I like it [05:16] davidwalsh has joined the channel [05:16] mcav has joined the channel [05:16] SubStack: people seem to naturally divide into vows/tap styles [05:16] westg has joined the channel [05:16] SubStack: "bdd/tdd" I guess [05:16] SubStack: although I don't like those terms [05:17] SubStack: dunder-mifflin: plus check this out! http://testling.com/ [05:17] SubStack: it's like tap, but for browsers [05:17] killing-joke: SubStack, do you support Android 4.0 / Chrome|Dolphin ? [05:17] baig772 has joined the channel [05:18] dunder-mifflin: thanks.. i'll check out tap.. atm we have a mix of yuitestunit and vows... vast majority vows.. moving to the next one either means introducing another variety, or migrating the existing ones to the next tool.. won't happen anytime soon :) [05:18] SubStack: killing-joke: we run these http://testling.com/ [05:18] SubStack: erm [05:18] SubStack: http://testling.com/browsers/ [05:18] SubStack: silly clipboard [05:18] r04r has joined the channel [05:19] isao has joined the channel [05:19] killing-joke: ah, not even opera mini [05:19] dunder-mifflin: SubStack: shall check it out.. [05:19] killing-joke: looks like an awesome service for trad web app authors [05:19] mhillsman has joined the channel [05:19] wycats has joined the channel [05:20] baig772: hi all i have xome qestions about node.js is there any forum for it? [05:20] mhillsman has left the channel [05:20] killing-joke: i know the misery level is higher for me in the mobiles. i hope there would be more profit in it for testling [05:20] SubStack: killing-joke: if you know some folks who need android/opera mini and are willing to pay cash monies for them we can probably figure out how to roll those out [05:20] killing-joke: baig772, you are in the right place, mate [05:20] mhillsman has joined the channel [05:20] dunder-mifflin: AvianFlu: when you guys refactor vows.. what will be used to measure whether the refactoring result is good enough? i guess it's a generic question re node.js modules.. how should one measure the code quality? [05:21] dunder-mifflin: AvianFlu: i'm thinking.. measuring cyclomatic complexity could be one metric? [05:21] baig772: ok :) why do we need server side scripting? [05:21] killing-joke: ... unless you are trolling, that is [05:21] mhillsman has left the channel [05:21] dunder-mifflin: AvianFlu: is there already a node.js tool to measure various code quality metrics? [05:22] SubStack: dunder-mifflin: linting or coverage? [05:22] SubStack: oh cyclomatic complexity [05:22] willwhite has joined the channel [05:22] SubStack: I could totally hack something up with burrito for that [05:22] jesusabdullah: what's cyclomatic complexity? [05:23] muk_mb has joined the channel [05:23] killing-joke: jesusabdullah, thank you [05:23] jhbot: 'Nodejs/mongoose. which approach is preferable to create a document?' by Erik http://stackoverflow.com/q/9305987 (tags: mongoose) [05:23] _Steve_ has joined the channel [05:23] dunder-mifflin: SubStack: linting is often not good enough.. coverage.. there's not one good tool for coverage? jscoverage only measures line execution, not path execution [05:23] konobi: there's alpha support for code coverage in node-tap [05:23] jesusabdullah: guys what is cyclomatic complexity [05:23] dunder-mifflin: jesusabdullah: http://en.wikipedia.org/wiki/Cyclomatic_complexity [05:24] SubStack: jesusabdullah: learn 2 wikipedia :p [05:24] SubStack: dunder-mifflin: anyhow I wrote https://github.com/substack/node-bunker for coverage [05:24] killing-joke: #Implications for Software Testing [05:24] criswell has joined the channel [05:24] SubStack: I should roll out bunker for testling too [05:25] konobi: SubStack: is it Devel::Cover style? [05:25] baig772: i am totlay new to node.js. where i can find the best tutorial or book for it? [05:25] SubStack: that'd be pretty boss [05:25] SubStack: konobi: tap uses bunker by way of runforcover [05:25] konobi: yup [05:25] dunder-mifflin: SubStack: ah yep.. i used chrisdickinson's runforcover which uses node-bunker... [05:25] SubStack: I haven't used Devel::Cover [05:25] konobi: it's awesome [05:25] arlolra: baig772: http://howtonode.org/ [05:25] SubStack: cpaning [05:25] r04r has joined the channel [05:26] ryan_: haha [05:26] trupheenix has joined the channel [05:26] orlandovftw has joined the channel [05:27] baig772: arlolra: thanx :) [05:27] konobi: SubStack: http://perl-node-interface.blogspot.com/2011/06/how-to-use-develcover.html [05:28] sideshownz has joined the channel [05:29] versicolor has joined the channel [05:29] bbbb has joined the channel [05:30] porco has joined the channel [05:30] konobi: the output is also the template for Devel::NYTProf which is another superbly awesome tool [05:30] pauls1 has joined the channel [05:30] SubStack: konobi: bunker just emits events when a node gets hit instead of outputting results to disk [05:31] r04r has joined the channel [05:32] italic has joined the channel [05:32] neoesque has joined the channel [05:33] joshkehn has joined the channel [05:33] joshkehn has left the channel [05:34] ohtogo has joined the channel [05:34] astropirate: :O Node.js developer with 5 years of experience? :O i want to work for these peopel :) [05:35] timoxley has joined the channel [05:35] SubStack: not even ryah has 5 years node experience [05:35] dunder-mifflin has joined the channel [05:36] copongcopong has joined the channel [05:36] astropirate: thats the joke [05:36] astropirate: heh [05:36] r04r has joined the channel [05:36] SubStack: I'm almost up to 2 years "experience" I guess [05:36] SubStack: but I hate nebulous terms like that [05:37] porco has joined the channel [05:37] caffine has joined the channel [05:37] Swizec has joined the channel [05:37] SubStack: hiring managers who use "years experience" without objective qualification of exactly what that entails deserve exactly the sort of riffraff who game their resumes for that nonsense [05:38] dunder-mifflin: SubStack: ah yep.. i used chrisdickinson's runforcover which uses node-bunker... but hit a problem when using runforcover with other modules that also calls vm.runInThisContext() [05:39] mikeal has joined the channel [05:39] EhevuTov has joined the channel [05:39] Karmaon has joined the channel [05:39] mattgifford has joined the channel [05:40] benvie: of your day has 72 hours then you can have 5 years of node experience [05:41] r04r has joined the channel [05:41] benvie: my day has 180 hours in it so I have like 16 decades of node experience [05:43] SubStack: if you escape the gravity well of the earth you can get a few extra microseconds a month [05:43] garrensmith has joined the channel [05:44] Chel has joined the channel [05:44] lieut has joined the channel [05:44] benvie: if I travel at the speed of light then time stops and then all bets are off [05:45] umren has joined the channel [05:45] SubStack: that would get you less years of experience than your contemporaries on earth, not more [05:45] lieut: could someone who familiar with mongoose/mongo take a look at this, please http://pastebin.com/xv5yKnv9 [05:46] r04r has joined the channel [05:46] willwhite has joined the channel [05:47] jhbot: 'Can I npm link on a nodejitsu instance?' by fancy http://stackoverflow.com/q/9306163 (tags: npm, nodejitsu) [05:48] willwhite has joined the channel [05:49] AvianFlu: ...on stackoverflow!? really!? [05:49] SubStack: YOU'RE IN THE BIG LEAGUES NOW [05:49] AvianFlu: I've avoided joining that site for years [05:49] AvianFlu: I would say we'd need loudbot in here, but then nothing else would happen in here, ever [05:50] dunder-mifflin: has anyone used stratajs? how does it stack up compared to request module? [05:50] jhbot: 'socket.io redis and memory leak' by user644745 http://stackoverflow.com/q/9306191 (tags: redis, socket.io) [05:50] SubStack: AvianFlu: sounds like they should check in node_modules [05:50] nerdy has joined the channel [05:50] AvianFlu: yeah [05:50] AvianFlu: sounds like they have a different version of "need" than we do [05:50] SubStack: bundledDependencies woo [05:50] AvianFlu: yeah [05:51] r04r has joined the channel [05:51] r04r has joined the channel [05:51] Karmaon has joined the channel [05:52] mikeal has joined the channel [05:55] felixge has joined the channel [05:55] felixge has joined the channel [05:56] r04r has joined the channel [05:57] mattgifford has joined the channel [05:57] timoxley_ has joined the channel [05:59] sideshownz has joined the channel [06:01] maxogden: dunder-mifflin: request is a client and strata is a server [06:01] r04r has joined the channel [06:02] Karmaon has joined the channel [06:02] mhillsman has joined the channel [06:02] dunder-mifflin: maxogden: ah thanks max [06:02] tuhoojabotti: Express crashes on require [06:02] maxogden: yer doin it rong [06:02] tuhoojabotti: yarr [06:03] koo3 has joined the channel [06:03] mcoffee has joined the channel [06:03] joshontheweb has joined the channel [06:04] cyphase has joined the channel [06:04] tonymilne has left the channel [06:04] ohtogo has joined the channel [06:06] zomgbie has joined the channel [06:06] r04r has joined the channel [06:06] Joey_ has joined the channel [06:08] domo1 has joined the channel [06:08] domo1: anyone know of a node js bloom filter? [06:08] Joey_ has joined the channel [06:09] maxogden: domo1: jason davies wrote a pure js one [06:10] domo1: maxogden: any C++ ones? wouldn't it be much faster in c? [06:10] stagas has joined the channel [06:11] maxogden: dunno [06:11] astropirate: bloom filter :S how/why would you do such a thing on node? [06:11] maxogden: its just an algorithm [06:11] domo1: https://github.com/jasondavies/bloomfilter.js/blob/master/bloomfilter.js [06:11] r04r has joined the channel [06:12] domo1: I need to be able to find a keyword in a very, very large set of keywords very quickly [06:12] bbbb: isaacs, in npm is there a config for destination if i don't want it to go into node_modules? [06:12] domo1: so I figured a) python lib in C, b) php extension in C or c) node js extension in c++ [06:12] domo1: that's why I asked [06:13] astropirate: OHHH lol i was thinking of bloom pass shader :p [06:13] maxogden: astropirate: oh hehehe [06:13] domo1: but.. im going to test this in terms of speed against a C python bloom filter [06:13] maxogden: domo1: i'd be interested to hear your results [06:13] isaacs: bbbb: nope [06:13] domo1: isaacs: what's your input? [06:13] bbbb: isaacs, k [06:13] domo1: know of any C++ node js bloom filters [06:13] bbbb: ty much [06:13] isaacs: npo [06:14] patcito has joined the channel [06:14] domo1: i might port the python c bloom filter to node js [06:14] domo1: fuck it - ill use jason's until I grow too big [06:14] maxogden: also leveldb has a nice bloom filter internally [06:14] maxogden: and a fast btree [06:14] domo1: yeah? [06:14] maxogden: and it has node bindings i think [06:15] felixge has joined the channel [06:15] felixge has joined the channel [06:15] maxogden: might be worth checking out [06:15] xbayrockx has joined the channel [06:15] bbbb: maxogden, indutny released a node btree as well [06:17] maxogden: domo1: oh wait i lied, no bloom filter in leveldb [06:17] indutny: dfffhaha [06:17] maxogden: dunno what i was thinking of [06:17] timoxley_ has joined the channel [06:18] r04r has joined the channel [06:18] r04r has joined the channel [06:18] indutny: maxogden: why would it use it? [06:18] indutny: maxogden: to detect if key is definitely not in db [06:19] indutny: maxogden: I don't think bloom will work pretty well for big amounts of random data [06:19] domo1: isaacs: https://github.com/deanmao/bloom [06:19] domo1: wtf [06:20] CIA-74: node: 03Colton Baker 07master * rce48579 10/ (doc/api/readline.markdown lib/readline.js lib/repl.js): (log message trimmed) [06:20] CIA-74: node: Readline proposal and bugfixes. Related: #2737 #2756 [06:20] CIA-74: node: - Removed extra newline from .question(); Users can input a [06:20] CIA-74: node: newline if it they require it. [06:20] CIA-74: node: - Removed .close() due to it only emulating closing, causing a bug where [06:20] CIA-74: node: readline is left open to trigger events such as .on('line', ...'). [06:20] CIA-74: node: - Removed ._attemptClose() [06:20] jhbot: 'How to access data from res.render in Express' by Jude Calimbas http://stackoverflow.com/q/9306478 (tags: javascript, express) [06:21] mh415 has joined the channel [06:23] r04r has joined the channel [06:23] pVi has joined the channel [06:23] Tatort79 has joined the channel [06:23] SamuraiJack has joined the channel [06:24] mac^ has joined the channel [06:25] Karmaon has joined the channel [06:27] zomgbie_ has joined the channel [06:28] r04r has joined the channel [06:29] ashishg has joined the channel [06:30] astropirate: i don't see the point of stackoverflow :S [06:30] astropirate: specially when IRC is around [06:30] tuhoojabotti: astropirate: Point taken. [06:30] tuhoojabotti: astropirate: It's the karma thingy. [06:31] astropirate: I do however like forums :) [06:31] astropirate: But i guess thats the leftover from my l33t h4x0r script kiddie days :[p [06:34] r04r has joined the channel [06:35] felixge has joined the channel [06:35] felixge has joined the channel [06:39] r04r has joined the channel [06:39] Bogh has joined the channel [06:39] Bogh has joined the channel [06:41] bingomanatee: ping isaaacs [06:42] domo1 has left the channel [06:43] Tatort79 has joined the channel [06:44] joshgillies has joined the channel [06:44] wssr has joined the channel [06:44] r04r has joined the channel [06:45] bogdan has joined the channel [06:45] ph^ has joined the channel [06:45] Bogh has joined the channel [06:46] EhevuTov: astropirate, I love SO. It's persistent and my new favorite game [06:46] astropirate: EhevuTov: SO? [06:46] astropirate: what is that [06:46] EhevuTov: also, it helps with signal:noise [06:46] EhevuTov: StackOverflow [06:46] astropirate: ohh lol [06:47] EhevuTov: astropirate, the wet mouse walks backwards at midnight [06:47] astropirate: But how can you know for sure? [06:48] EhevuTov: you just blew my mind [06:48] astropirate: at 12:01 schrodinger's cat at teh wet mouse [06:49] isaacs: Sly__: thanks! [06:49] Sly__: No problem, isaacs. [06:50] r04r has joined the channel [06:53] Ksec has joined the channel [06:54] jxson has joined the channel [06:54] Ksec: testing [06:55] dgathright has joined the channel [06:55] maxogden: Ksec: i'd recommend node-tap [06:56] isaacs: maxogden: aw, thanks [06:56] r04r has joined the channel [06:56] maxogden: i only recommend things by people who give me stuff [06:56] EhevuTov: maxogden++ [06:56] catb0t: maxogden now has 1 beer [06:57] maxogden: it also helps that the last 3 people to give me stuff have been isaacs, mikeal and substack [06:57] joshgillies has joined the channel [06:57] maxogden: (no shortage of things to recommend) [06:57] maxogden: i feel like my catb0t beer count gets reset quite often [06:57] catb0t: count me out [06:57] maxogden: catb0t: exactly [06:57] catb0t: exactly sure what you mean [06:58] isaacs: catb0t: you sound very certain [06:58] catb0t: certain period of time, you should totally get that one still has relevancy [06:58] isaacs: catb0t: tell me more about totally. [06:58] catb0t: totally different name, although I could temporarily throw a node_modules directory inside of which one is being developed at the ticket [06:58] felixge has joined the channel [06:58] felixge has joined the channel [06:58] maxogden: catb0t: philanthropist [06:58] catb0t: philanthropist [06:58] maxogden: suck it markov [06:58] isaacs: catb0t: which one do you think is being developed at the ticket? [06:58] catb0t: developed one for my connect server, final port is the spiritual successor to it , but for repeat but can 't remember exactly what i was enjoying reading the docs but obviously older browsers won't support it [06:59] isaacs: ACTION is going to write an eliza bot that talks to bots. [06:59] koo3 has joined the channel [06:59] maxogden: catb0t: would you recommend redis or riak [06:59] catb0t: recommend a library for that, this more complex and thus you can't give a way to not do anything except perhaps it's already been closed [06:59] isaacs: catb0t: tell me more about spiritual successor [06:59] catb0t: spiritual successor to both E and Textmate, and superior to Gedit [06:59] isaacs: catb0t: tell me about your mother. [06:59] catb0t: mother i love [06:59] maxogden: haha [06:59] isaacs: catb0t: go on [06:59] catb0t: go and write something using it I th I did on [07:00] isaacs: catb0t: tell me more about I did on [07:00] catb0t: about geospatial shit tell [07:00] isaacs: catb0t: do you often shit tell? [07:00] catb0t: often it's maintained says a lot , like jquery's extend , yeah 't really follow js documentation modules, sorry [07:00] maxogden: catb0t: you should try harmony proxies instead [07:00] catb0t: harmony proxies are in bleeding edge [07:00] maxogden: catb0t: mongodb [07:00] catb0t: mongodb connection gets lost and brings my entire app down, anyone run into this issue with npm , does npm does not setup it [07:00] skylamer` has joined the channel [07:01] ohtogo has joined the channel [07:01] maxogden: strangely more coherent than a few actual people who have been in here before [07:01] maxogden: catb0t: breakfastscript is the future of compile step abstraction languages [07:01] catb0t: breakfastscript is the future of dart and it's implications on abstraction [07:01] maxogden: YES CATB0T YES [07:01] catb0t: YES , I think I think it should be a security vulnerability comes out by feel YES [07:01] r04r has joined the channel [07:02] SubStack: catb0t: beep boop [07:02] catb0t: beep boop [07:02] SubStack: catb0t: reduce [07:02] catb0t: reduce in riak is [07:02] dthompso99 has joined the channel [07:03] maxogden: catb0t: if david attenborough observed brendan eich in the wild, what would he say? [07:03] catb0t: attenborough observed brendan eich in the wild, eard of a observed [07:03] mraleph has joined the channel [07:05] paulwe has joined the channel [07:05] benvie: sounds right [07:07] r04r has joined the channel [07:08] joshgillies has joined the channel [07:10] won has joined the channel [07:10] won: hello [07:10] porco has joined the channel [07:10] won: hello [07:10] ashishg has joined the channel [07:10] test has joined the channel [07:10] test: hello [07:10] test: test [07:10] test: 1 [07:11] test: 2 [07:11] test: 3 [07:11] test: 4 [07:11] test: 5 [07:11] test: 6 [07:11] Me1000 has left the channel [07:12] michaelhartau has joined the channel [07:12] copongcopong has joined the channel [07:12] r04r has joined the channel [07:14] astropirate: I call ban hammer [07:16] tdegrunt has joined the channel [07:16] snearch has joined the channel [07:17] r04r has joined the channel [07:17] zomgbie has joined the channel [07:19] tokuzfunpi has joined the channel [07:20] Tatort79 has joined the channel [07:22] Chel has joined the channel [07:22] r04r has joined the channel [07:23] mhillsman has joined the channel [07:25] ryan_stevens has joined the channel [07:25] kylebt has joined the channel [07:27] harthur has joined the channel [07:28] r04r has joined the channel [07:32] snearch has joined the channel [07:32] ohtogo has joined the channel [07:33] Morkel has joined the channel [07:33] r04r has joined the channel [07:34] snearch has joined the channel [07:34] _baton_ has joined the channel [07:35] gripir has joined the channel [07:35] shancat has joined the channel [07:36] shancat: Hello. [07:37] dannyamey has joined the channel [07:38] r04r has joined the channel [07:39] EhevuTov: shancat, hello [07:39] shancat: Do you know if there's anyone online I can speak to about a pull request I might open? [07:40] stonebranch has joined the channel [07:40] EhevuTov: shancat, I don't know how pull requests are handled [07:41] stisti has joined the channel [07:42] trupheenix has joined the channel [07:43] dshaw_1 has joined the channel [07:43] EhevuTov: shancat, have you read this: https://github.com/joyent/node/wiki/Contributing [07:43] Styles: So under my impression of Node.js your basically using javascript to send javascript to be interpreted and run. How would you provide security if you wanted? Put a session key in plain text? [07:43] chrelad has joined the channel [07:44] r04r has joined the channel [07:44] shancat: Yes, I have. I just wanted to know whether it's acceptable to make changes to the CLA. Nothing breaking or drastically changed, just small changes. [07:44] ph^ has joined the channel [07:45] shancat: Styles, if I understand you correctly, that's not what Node is about. [07:45] EhevuTov: Styles, Node is a platform [07:46] Styles: Right. [07:46] EhevuTov: Styles, it runs on the V8 Javascript runtime [07:46] Styles: Yeah by Google [07:46] astropirate: Don't understand the question o_O [07:46] Styles: Ok I get it cool. So how would you provide scurity? [07:47] shancat: Node is a platform. Think of it like writing PHP to run on an Apache webserver or something. You write Javascript to be run by V8 and Node.js is like a library. [07:47] Styles: Yeah I understand [07:47] knite has joined the channel [07:47] Styles: By passing a session key or something? Then load a db module and have it check for for that key? [07:48] EhevuTov: Styles, I don't think we understand your questions [07:48] shancat: What kind of application are you thinking of? [07:48] bbbb: Styles, why do you check for a key, what are you trying to do? [07:48] parshap has joined the channel [07:48] groom has joined the channel [07:50] Styles: I'm trying to have Node.js handle all my ajax requests. It will provide real time action notificaions, like if I message you we can have a full on conversation. I want it to keep track of when people post things... ect. [07:50] r04r has joined the channel [07:50] r04r has joined the channel [07:50] EhevuTov: Styles, Node is server-side [07:50] indutny: Styles: use socket.io [07:51] shancat: socket.io + express perhaps if you wanted to handle ajax requests. [07:51] indutny: yeah [07:51] nerdy has joined the channel [07:51] indutny: Styles: example indutny.com <- #selfpromotion :D [07:51] indutny: haha [07:51] bbbb: Styles, then you will want to keep a session id that you assign from the server side to the browsers, using socket.io from there on it becomes trivial, the session id should be associated with a socket.io connection, this can be done with cookies (pretty standard way of storing a session id) [07:52] stisti has joined the channel [07:52] OmidRaha has joined the channel [07:54] tornad has joined the channel [07:55] r04r has joined the channel [07:55] margle has joined the channel [07:56] ericmuyser has joined the channel [07:56] chrelad: Awesome site indutny :D [07:57] indutny: chrelad: thanks [07:58] EhevuTov: indutny, I don't think it works right for me [07:58] indutny: EhevuTov: why? [07:59] EhevuTov: I type and only see the text. It doesn't do anything else [07:59] indutny: EhevuTov: try pressing arrow keys [07:59] imarcusthis has left the channel [07:59] trupheenix has joined the channel [08:00] tdegrunt has joined the channel [08:01] r04r has joined the channel [08:02] aliem has joined the channel [08:02] hipsterslapfight has joined the channel [08:03] EhevuTov: that's really creative indutny. pretty cool [08:04] cpetzold has joined the channel [08:04] QaDeS has joined the channel [08:05] pvankouteren has joined the channel [08:05] m_ has joined the channel [08:05] m_: . [08:05] m_: so is this web chat server using node? [08:06] r04r has joined the channel [08:06] caolanm has joined the channel [08:07] margle has joined the channel [08:07] indutny: margle: yes [08:07] indutny: oops [08:07] indutny: m_ yes [08:07] margle: indutny: haaai! [08:08] ablomen has joined the channel [08:08] markq has joined the channel [08:09] looopy has joined the channel [08:09] daniel` has joined the channel [08:09] jxson has joined the channel [08:10] jxson has joined the channel [08:10] thalll has joined the channel [08:11] daniel`: I wish `(function (){ return arguments.length })(undefined, 1, undefined)` were == 2 [08:11] westg has joined the channel [08:11] jesusabdullah: why would it be 2 instead of 3? [08:11] dodo has joined the channel [08:11] Octayn: Why? [08:11] jesusabdullah: Oh, I see [08:12] Octayn: I don't! [08:12] r04r has joined the channel [08:12] jesusabdullah: you don't want to have to check if the third argument is of type undefined [08:12] jesusabdullah: Octayn: fxn(undef, 1) and function (undef, 1, undef) should act the same, is the idea [08:13] bbbb: undefined is a valid value, it can be useful to see if someone explicitly gave undefined [08:13] daniel`: I think it would be more useful if undefined meant the same as nothing [08:13] Octayn: Hm [08:13] jetienne_ has joined the channel [08:13] Octayn: But then wouldn't the length by 1? [08:13] Octayn: No [08:13] Octayn: It wouldn't be [08:13] jesusabdullah: no, because f(undef, 1) and f(1) are not the same [08:13] Octayn: Right [08:14] daniel`: right [08:14] daniel`: but it makes sense to remove undefineds from the right side, since those don’t affect the other arguments [08:14] shancat: Why wouldn't you use null if you don't want to set something? [08:14] jesusabdullah: bbbb has a point though [08:14] daniel`: shancat: exactly [08:14] zomgbie has joined the channel [08:15] Octayn: shancat: not necessarily [08:15] Octayn: f(undefined, 1, g()) [08:15] bbbb: shancat, when you pull it off an object? [08:15] Octayn: What happens if g() returns undefined? [08:15] Octayn: That is a valid case [08:16] shancat: Mmmh, I guess so. [08:16] daniel`: yeah, I guess what you’d want it to mean depends on the context [08:16] Octayn: yep [08:16] Glenjamin: when would you care about the difference between null and undefined within the function? [08:16] Octayn: Which means, up to the function to decide what to do. [08:16] Octayn: When do you actually *get* a null in es? [08:16] daniel`: Octayn: yeah, that’s probably best after all [08:16] Octayn: I'm not that far in the standard yet [08:17] r04r has joined the channel [08:17] shancat: To me, if you pass something explicitly pass something undefined then there's an error in your program logic. [08:17] shancat: Whereas if you pass something null then you are saying "hey, look, I'm purposely saying I don't want this." [08:18] daniel`: sometimes it’s nice to have two levels of nothingness, though [08:18] Octayn: ACTION digs out ecma262 [08:18] mytrile has joined the channel [08:18] bbbb: shancat if you pass undefined, it means you don't care in my book, null means you want it empty, and you should almost always use double equals when checking against null [08:19] bbbb: ppl loves them some tripleeqs but it can bite you [08:19] daniel`: undefined means "implicit nothing", null means "explicit nothing" [08:20] shancat: function add (a, b, c) { return a + b + c; } [08:20] shancat: add(1, 2, 3) === 6 [08:20] shancat: add(1, 2, null) === 3 [08:20] shancat: add(1, 2, undefined) == NaN [08:20] shancat: I guess, that's what I'm trying to get across. [08:20] bbbb: type coersion operations want validation, always [08:20] daniel`: interesting point [08:21] take_cheeze has joined the channel [08:21] chjj has joined the channel [08:22] daglees has joined the channel [08:22] daglees has joined the channel [08:22] r04r has joined the channel [08:22] Octayn: .. null === undefined [08:22] catb0t: false [08:23] Octayn: Aha [08:23] OmidRaha has joined the channel [08:23] bbbb: x='1', z = {a:{id:1}}; z.a.id === x ? nope() : operationAssumingIdIsMissingAndOverwritesJunk() [08:23] shancat: I don't see the point you're trying to make Octayn? [08:23] Octayn: shancat: I wasn't, I was reading the spec wrong [08:23] bbbb: .. [null == undefined , null == false] [08:23] catb0t: [ true, false ] [08:23] Octayn: I missed step 1 of strict equality, "If type(x) is different from type(y), return false" [08:24] Yuffster has joined the channel [08:24] shancat: Yes, null is an object I believe. [08:24] Octayn: No, it's a value [08:25] ccare has joined the channel [08:25] Octayn: And... it appears to be entirely unused in the language, you always have to explicitly use null [08:25] bbbb: Octayn, it's type is object but it is a primitive value (lacking prototype) [08:25] Octayn: .. typeof null [08:25] catb0t: "object" [08:25] Octayn: what [08:25] blup has joined the channel [08:25] Octayn: .. typeof undefined [08:25] catb0t: "undefined" [08:25] Octayn: .. typeof true [08:25] catb0t: "boolean" [08:26] Octayn: .. typeof "s" [08:26] catb0t: "string" [08:26] Octayn: .. typeof 1 [08:26] catb0t: "number" [08:26] Octayn: Why the heck is *null* an object, and the rest of them values? [08:26] Octayn: From my reading of ecma262 I thought null was most certainly a value [08:26] Gekz: because javascript sucks. [08:26] shancat_ has joined the channel [08:26] shancat_: Woops, disconnected :l [08:27] Gekz: .. typeof {} [08:27] catb0t: "object" [08:27] bbbb: Octayn, undefined is a value, null is an object because of it's association with explicit emptiness and using it as a prototype [08:27] Gekz: bbbb: what properties does null have [08:28] r04r has joined the channel [08:28] bbbb: Gekz, none, thats the point [08:28] shancat_: I don't think null has properties. [08:28] bbbb: it doesnt have the default properties even [08:28] Gekz: bbbb: that's my point [08:28] Gekz: typeof really should have returned "null" or null [08:29] shancat_: Do you mean typeof {} should return null? [08:29] bbbb: .. [Object.create(null).toString, {}.toString] [08:29] catb0t: [ undefined,[Function: toString] ] [08:29] Gekz: the ideological reason of "explicit emptiness" doesn't make code any more readable :P [08:29] saurb has joined the channel [08:29] bbbb: Geksz see above example [08:29] dpino has joined the channel [08:29] Gekz: .. Object.create().toString [08:29] catb0t: Exception: TypeError: Object prototype may only be an Object or null [08:29] bbbb: Gekz* [08:29] AD7six has joined the channel [08:29] Gekz: and thus, null is a special case [08:30] SubStack: SPECIAL ALL THE CASES [08:30] bbbb: yep :) but its very useful in security to have a null prototype [08:30] bbbb: if you are running 3rd party code* [08:30] bbbb: ACTION wants me some 2nd party code [08:30] slaskis has joined the channel [08:31] gavin_huang has joined the channel [08:31] shancat_: Who was it that wished (undefined, 3, undefined) == 2 or something like that? [08:31] Gekz: I'm simply talking about the typeof null case [08:32] [AD]Turbo has joined the channel [08:32] Gekz: it's unjustifiable that it be considered an "object" when it has no properties that make it object-like [08:32] SubStack: scalar context of tuples what [08:32] Chel has joined the channel [08:32] [AD]Turbo: hi there [08:32] uchuff has joined the channel [08:32] bbbb: Gekz, http://wiki.ecmascript.org/doku.php?id=harmony:typeof_null if you really care [08:32] bbbb: It is still nice to have an object that is guaranteed to not have properties or a prototype [08:33] shancat_: SubStack: "or something like that?" [08:33] slaskis has joined the channel [08:33] r04r has joined the channel [08:33] Gekz: bbbb: im not disagreeing that null should exist [08:33] Gekz: but then you could also use a number, could you not? [08:33] saurb has joined the channel [08:33] Gekz: they have no properties as far as I know [08:33] Octayn: shancat: daniel` did [08:33] Gekz: any of the other primitives [08:33] bbbb: .. 0.toString [08:33] catb0t: Exception: SyntaxError: Unexpected token ILLEGAL [08:34] bbbb: .. (0).toString [08:34] catb0t: [Function: toString] [08:34] Octayn: .. (123).toString(16) [08:34] catb0t: "7b" [08:34] vguerra has joined the channel [08:34] wssr has joined the channel [08:34] Octayn: .. typeof (123).toString(16) [08:34] catb0t: "string" [08:34] Octayn: heh [08:34] SubStack: shancat: == should just always return true [08:34] Octayn: .. typeof Number(123) [08:34] catb0t: "number" [08:34] SubStack: that will teach people to not use it [08:34] Octayn: .. typeof new Number(123) [08:34] catb0t: "object" [08:34] Octayn: There we go [08:34] shancat: Hahahahahahaha [08:35] daniel`: this is the stupidest thing: [08:35] bbbb: Substack be tripleeqing? [08:35] daniel`: .. typeof null [08:35] catb0t: "object" [08:35] daniel`: since null is pretty much the opposite of an object [08:35] Octayn: .. null['f'] [08:35] catb0t: Exception: TypeError: Cannot read property 'f' of null [08:35] Octayn: It's a regular object [08:35] bbbb: its not the opposite, it is a completely blank object [08:35] Octayn: You just can't read or write attributes :) [08:35] bbbb: guaranteed blank [08:36] daniel`: bbbb: nice interpretation [08:36] Octayn: The spec isn't very clear on this, IMO [08:36] DuoSRX has joined the channel [08:36] Druid_ has joined the channel [08:37] bbbb: .. x={y:null}; x.y(); 1 //do this for giggles in ie6 [08:37] catb0t: Exception: TypeError: Property 'y' of object # is not a function [08:37] shancat: Didn't except that, to be honest. [08:37] Octayn: bbbb: how many giggles? about to put it on brwoser shots [08:38] bbbb: Octayn, not much [08:38] bbbb: just silent fail [08:38] Octayn: Isn't that nice of them [08:38] hemanth: ACTION is happy that he was able to bring up a restful app within 20mins which does VNC with queuing, node.js++ :)  [08:38] Octayn: How's this for fun: [08:39] r04r has joined the channel [08:39] dshaw_ has joined the channel [08:39] __doc__ has joined the channel [08:39] Octayn: .. (function() { var a = typeof arguments; return a; function arguments() { return 42; } }) [08:39] catb0t: [Function] [08:39] Octayn: .. (function() { var a = typeof arguments; return a; function arguments() { return 42; } })() [08:39] catb0t: "function" [08:39] Octayn: Nope, nevermind [08:39] Octayn: catb0t is running v8, no doubt about it now [08:39] johnhamelink has joined the channel [08:39] catb0t: running on one of machines [08:39] shancat: hahaha [08:39] Blkt has joined the channel [08:40] Octayn: In spidermonkey, that would return "object" [08:40] bbbb: Octayn, function declaration hoist above variable initialization [08:40] Octayn: bbbb: I know, it's a spidermonkey bug [08:40] bbbb: ah [08:41] mytrile has left the channel [08:41] jomoho has joined the channel [08:42] benvie has joined the channel [08:42] aaronmcadam has joined the channel [08:43] tomasztomczyk has joined the channel [08:43] r04r has joined the channel [08:43] r04r has joined the channel [08:44] shancat: .. null.toString() [08:44] catb0t: Exception: TypeError: Cannot call method 'toString' of null [08:44] shancat: .. new String(hello) [08:44] catb0t: Exception: ReferenceError: hello is not defined [08:44] shancat: .. new String(null) [08:44] catb0t: { null 0: "n", 1: "u", 2: "l", 3: "l" } [08:44] cmr has joined the channel [08:44] shancat: How does new String(null) return "null" but null.toString() doesn't? [08:44] bogomips has joined the channel [08:46] pandark_ has joined the channel [08:46] johnhame_ has joined the channel [08:46] Octayn: .. null.toString() [08:46] catb0t: Exception: TypeError: Cannot call method 'toString' of null [08:46] Octayn: .. null.toString [08:46] catb0t: Exception: TypeError: Cannot read property 'toString' of null [08:46] Octayn: .. new String(null) [08:46] catb0t: { null 0: "n", 1: "u", 2: "l", 3: "l" } [08:47] shancat: .. new String(null).toString() [08:47] catb0t: "null" [08:47] jvduf has joined the channel [08:47] Octayn: .. new String(undefined) [08:47] catb0t: { undefined 0: "u", 1: "n", 2: "d", 3: "e", 4: "f", 5: "i", 6: "n", 7: "e", 8: "d" } [08:47] przemoc has joined the channel [08:47] Octayn: heh [08:47] shancat: .. new String(hello) [08:47] catb0t: Exception: ReferenceError: hello is not defined [08:47] shancat: I don't get it? [08:48] claudio has joined the channel [08:49] r04r has joined the channel [08:49] shancat_ has joined the channel [08:49] AphelionZ has joined the channel [08:49] shancat_: Sorry Octayn, what did you say? [08:49] misza222 has joined the channel [08:49] shancat_: I got disconnected.. [08:49] Octayn: I didn't say anything, I'm thinking [08:50] paera1 has joined the channel [08:50] shancat_: if null doesn't have any methods how does new String() call the toString() method on it. [08:50] Octayn: What makes you think it does? [08:50] paera1 has joined the channel [08:50] shancat_: I'm just assuming it works as it does it c++ [08:51] Octayn: Let me check the spec real quick [08:51] Octayn: Well, consider this [08:51] paera1 has left the channel [08:51] margle has joined the channel [08:51] Octayn: .. new String({toString: function() { return "cow";}}) [08:51] catb0t: { cow 0: "c", 1: "o", 2: "w" } [08:51] mehlah has joined the channel [08:51] shancat: so it does call the toString() method? [08:52] Octayn: Appears so [08:52] shancat: but null doesn't have a toString() [08:52] Octayn: I think this might be a special case [08:52] shancat: it doesn't have anything. [08:52] Octayn: shancat: not to us [08:52] Octayn: But internally it might have a [[ToString]] [08:52] shancat: .. null.toString() [08:52] catb0t: Exception: TypeError: Cannot call method 'toString' of null [08:52] shancat: mmh, maybe. [08:52] dodo has joined the channel [08:52] paera has joined the channel [08:53] Nibelung has joined the channel [08:53] djcoin has joined the channel [08:53] r04r has joined the channel [08:53] r04r has joined the channel [08:53] shancat: .. null.toString = function () { return "hello" }; [08:53] catb0t: Exception: TypeError: Cannot set property 'toString' of null [08:54] Octayn: toString is the result of calling the [[Get]] internal method of object O with argument "toString" [08:54] Octayn: Soooo [08:55] bbbb: Octayn, shancat it calls the internal method instead of js's toString [08:55] Octayn: mmm [08:55] shancat: That's so confusing :s [08:55] cyphase has joined the channel [08:55] jvduf has joined the channel [08:55] bbbb: all objects have an internal method if you go up the prototype chain enough [08:55] benvie: .. var ToString; ({ { toString: function x(){ ToString = arguments.caller.callee; return 'monkeys etc'; } })+'x'); ToString [08:55] catb0t: Exception: SyntaxError: Unexpected token { [08:55] bbbb: and numbers, and undefined, and strings, and functions [08:55] Octayn: .. Object.getPrototypeOf(null) [08:55] catb0t: Exception: TypeError: Object.getPrototypeOf called on non-object [08:56] Octayn: Ok, that's confusing [08:56] benvie: .. var ToString; ({toString: { toString: function x(){ ToString = arguments.caller.callee; return 'monkeys etc'; } })+'x'); ToString [08:56] catb0t: Exception: SyntaxError: Unexpected token ) [08:56] Octayn: I understand that it has no prototype [08:56] Yoms has joined the channel [08:56] Octayn: But at least be consistent [08:56] Octayn: .. typeof null [08:56] catb0t: "object" [08:56] shancat_ has joined the channel [08:56] benvie: typeof is useful at a basic level [08:56] benvie: and typeof null is a bug that won [08:56] benvie: won't be fixefd [08:56] icewhite has joined the channel [08:56] shancat_: Javascript is even more confusing when you're a 17 year old with next to no knowledge of javscript. [08:57] Octayn: Heh [08:57] Octayn: It's better when you are a 17 year old with knowledge of javascript [08:57] bbbb: benvie, JS is unique in that fixing its quirks can cause holy heck amounts of damage (look up the ie cookie limit debauchle) [08:57] Octayn: .. Object.getOwnPropertyNames(null) [08:57] catb0t: Exception: TypeError: Object.getOwnPropertyNames called on non-object [08:57] Octayn: yep [08:57] Octayn: Not getting anywhere with null I think [08:57] robinduckett has joined the channel [08:58] benvie: .. Object.getOwnPropertyNames(Object(null)) [08:58] catb0t: [ ] [08:58] Octayn: bbbb: I don't think JS is unique in that. Look at all the hullaballoo python3 is causing [08:58] shancat_: What language decides to make null an object. [08:58] benvie: bug [08:58] Octayn: shancat_: it's a value, as the spec says [08:58] Octayn: I'm willing to bet this is JS-specific, not all ecmascript implementations [08:58] pors has joined the channel [08:58] benvie: it's a bug but when fixed it breaks the internet [08:58] dshaw_ has joined the channel [08:58] benvie: so it's not fixed [08:58] bbbb: Octayn, but py3 is only causing server issues not client consumption issues [08:59] salva1 has joined the channel [08:59] benvie: it was tried [08:59] benvie: and it broke the internet [08:59] benvie: so it was reverted [08:59] r04r has joined the channel [08:59] shancat_: Wait, Ruby's nil is an object though. Isn't it? [08:59] benvie: it's a pointer to a tail [09:00] Octayn: .. (function() {"use strict"; print(typeof null); })() [09:00] catb0t: "object" [09:00] lperrin: wait until you redefine 'undefined' [09:00] lperrin: then complain about broken specs :) [09:00] benvie: javascript has no concept of pointers or tails or whatever. Javascript jas no concepts relalated to memory [09:01] shancat_: I didn't know js had a print method. [09:01] kwy__ has joined the channel [09:01] chrisvwebdev has joined the channel [09:01] Octayn: 1. it's a function, 2. I think it's a v8 thing [09:01] benvie: it doesn't [09:01] benvie: catbot does [09:01] Octayn: ah [09:01] benvie: it's not a v8 thing [09:02] benvie: it's a catb0t thing [09:02] Octayn: It's definitely in spidermonkey [09:02] catb0t: thing Node can interface with that code in a method of functions to operate on them , but I have three globals, I expect that calling some article saying its amazing [09:02] benvie: jere [09:02] shancat_: method == function? [09:02] Octayn: No [09:02] benvie: v8 contexts have the following, in entirety [09:02] Octayn: Well [09:02] Octayn: shancat_: a function is a method if it is the property of an object [09:03] Octayn: .. global.print [09:03] catb0t: Exception: ReferenceError: global is not defined [09:03] Octayn: .. window.print [09:03] catb0t: Exception: ReferenceError: window is not defined [09:03] shancat_: Octayn: "==" not "===" ;) [09:03] Skola has joined the channel [09:03] benvie: 'Object', 'Function', 'Array', 'String', 'Boolean', 'Number', 'Date', =- 'RegExp', 'Proxy', 'Map', 'Set', 'WeakMap', 'Error', 'EvalError',m 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError', 'eval', 'parseInt', 'parseFloat', 'isNaN', 'isFinite', 'decodeURI', 'decodeURIComponent', 'encodeURI', 'encodeURIComponent' [09:04] dobber has joined the channel [09:04] Octayn: =- ? [09:04] benvie: fat finger [09:04] Octayn: ah [09:04] r04r has joined the channel [09:04] benvie: beyond that is outside builtin JS [09:04] hipsterslapfight has joined the channel [09:05] shancat_: hahahaha [09:05] shancat_: stupid javascript joke, I thought I was funny. [09:06] benvie: javascript is a joke while also being incredibly powerful [09:06] chrisvwebdev has joined the channel [09:06] benvie: so I laugh as well [09:06] benvie: dice roll, what sword do I get? [09:06] Octayn: JS is my favorite language but it's pretty spotty. [09:06] jacobolus has joined the channel [09:07] shancat_: I'd like javascript more if I knew how to do oop in it... :/ [09:07] salva has joined the channel [09:07] benvie: show me a language that expresses so many paradigms at the same time with no alteration [09:07] Octayn: OOP is overrated. [09:07] bbbb: ill take easy to understand and spotty when i take a look at `static final class X : Y` my mind wants to kill whoever designed that [09:07] benvie: oop [09:07] Octayn: shancat_: What do you want? Inheritance? Object creation? [09:07] mekwall has joined the channel [09:07] benvie: make classes, inherit instances from them? [09:08] shancat_: all of that. [09:08] shancat_: private members and methods [09:08] shancat_: etc [09:08] shancat_: I have no clue. [09:08] booyaa: closure [09:08] booyaa: shancat_: have a look at goodparts [09:09] booyaa: i liked the oo section [09:09] shancat_: booya: goodparts? [09:09] Octayn: shancat_: You see, all of that in js is implemented with functional overtones.. let me give you an example [09:09] r04r has joined the channel [09:10] booyaa: yeah recommend chapters 4 and 5 [09:10] benvie: function Poop(owner){ this.owner = owner }; function Article: Article.prototype = new Poop; Aricle.deferTo = Poop.prototype; Article.formatting = someNotIdiotFormatting [09:10] Octayn: shancat_: http://eloquentjavascript.net/ [09:10] booo has joined the channel [09:10] Octayn: Also good [09:10] Octayn: Also free [09:10] booyaa: shancat_: written by douglas crockford [09:10] robotmay has joined the channel [09:10] wssr has joined the channel [09:11] shancat_: prototypes confuse me but I'll have a look at those two resources, thanks. [09:11] tomasztomczyk has joined the channel [09:11] benvie: favorite quote "now that you've douglas crockford, you should now discover when to ignore him" [09:11] Octayn: shancat_: Do you know python? [09:11] shancat_: I've wanted to write a few node modules but I can't get my head around classes in javascript [09:11] benvie: prototypes are like classes [09:11] benvie: except they exist live [09:11] benvie: and can be chanfed [09:11] shancat_: A little bit of python. [09:11] Octayn: Python has prototypical inheritance too [09:12] Octayn: They just sugar it up a bit [09:12] booyaa: benvie: agreed dude, but he gets you on a good footing [09:12] booyaa: certainly made me realise js was a trivial language [09:12] booyaa: wasn't [09:12] vincentcr has joined the channel [09:12] eldios has joined the channel [09:13] shancat_: Octayn: could you give an example? [09:13] booyaa: okay so jslint is a bit vicious so fucking use jshint instead [09:13] Octayn: shancat_: working on it [09:13] benvie: it's like if if I said "I'm a hippy but am guided by the principles of this" and then I said some dumb thing, and then we both just did that but were really strict [09:13] benvie: and did it forever [09:13] benvie: instead of evaluating the situation [09:14] stonebranch has joined the channel [09:14] jhbot: 'Can Node.js have the same functionallity as PHP, or should they be used together?' by bane http://stackoverflow.com/q/9308350 (tags: php, javascript, web-development, server) [09:14] knite has joined the channel [09:15] r04r has joined the channel [09:15] booyaa: geesh [09:15] Octayn: shancat_: http://paste.pocoo.org/show/551858/ [09:15] Octayn: (Sorry for how long that took, it's 4am) [09:16] shancat_: No problem, reading now. [09:16] Octayn: Output is: [09:16] Octayn: hello world [09:16] Octayn: hello [09:16] cosmincx has joined the channel [09:17] Octayn: That's pretty advanced python if you're a newb to it [09:17] jvduf has joined the channel [09:18] shancat_: I understand that pretty well. The only weird thing for me is that calling f._print() outputs anything at all. The underscore makes it look like a private method. [09:18] shancat_: Like in php and javascript I guess. [09:18] robinduckett: shancat_: putting a _ doesn't make it private [09:18] robinduckett: in php or javascript. [09:19] robinduckett: it's inferred as an internal method but it can still be called [09:19] shancat_: by php I meant codeigniter hahahahaha! My mistake, sorry. [09:19] wssr has joined the channel [09:20] r04r has joined the channel [09:20] shancat_: Octayn: Okay, so how would that python be expressed in js? [09:20] claudio has joined the channel [09:20] dannyamey has joined the channel [09:20] Octayn: I should have postfixed the _ [09:20] jungly has joined the channel [09:20] tdegrunt has joined the channel [09:20] Octayn: You just can't have a method named "print" since it's a reserved word [09:21] Octayn: shancat_: In js that'd be.. [09:21] shancat_: How do you define a print method for a custom class then? [09:21] Octayn: What do you mean? [09:22] manuj has joined the channel [09:22] shancat_: Like a javascript's toString() [09:22] Octayn: in python that is the __string__() method I think [09:22] Octayn: __str__() actually [09:22] Octayn: __str__ and __repr__ [09:22] shancat_: Oh, that makes sense then. [09:22] Octayn: (Haven't been using python in a while, bit rusty) [09:23] i42n has joined the channel [09:23] shancat_: So, back to the javascript representation? [09:23] booyaa: ah don't you just create the method for your object? Foo.prototype.toString() = function() { return "some shit you want from your obejct" } [09:23] Octayn: booyaa: in js yeah [09:24] Octayn: http://paste.pocoo.org/show/551861/ [09:24] CIA-74: node: 03isaacs 07json-api-docs * rb88cc7f 10/ (26 files): 'make doc' passing. Still needs more cleanup (+20 more commits...) - http://git.io/KHT46g [09:24] booyaa: wooo :) [09:25] mikedeboer has joined the channel [09:25] booyaa: ^--- api docs [09:26] _posbo has joined the channel [09:26] isaacs: booyaa: you can check out the output here: file://localhost/Users/isaacs/dev/js/node-master/out/doc/api/cluster.json [09:26] isaacs: er, wait, no.. [09:26] Octayn: hah [09:26] isaacs: http://static.izs.me/json-api/cluster.json [09:27] isaacs: that one [09:27] isaacs: :) [09:27] r04r has joined the channel [09:27] shancat_: Octayn: Oh, I see now. [09:28] Octayn: shancat_: It's a simple example, but it gets the point across [09:29] TomY has joined the channel [09:30] shancat_: I always got stuck on constructors. Because you had to do Foo.prototype._print I thought you'd have to do something like Foo.prototype.Foo for a constructor. [09:30] arduix has joined the channel [09:31] munichlinux: i am using expresso, is there a way to call a function before starting the test? [09:31] astropirate has joined the channel [09:31] Octayn: shancat_: The prototype is just an object that properties are looked up in if they aren't defined on the object itself. It's called the prototype chain [09:32] r04r has joined the channel [09:33] shancat_: So how would I do inheritance? [09:33] eldios: morning everyone [09:33] Octayn: shancat_: It's tricky. I just use inherits (npm install inherits). [09:34] isaacs: Octayn: that's what i use mostly, too [09:34] Octayn: isaacs: Of course you use it! [09:34] isaacs: :) [09:34] christkv has joined the channel [09:35] lperrin: Is there anything wrong with util.inherits ? [09:35] herbySk has joined the channel [09:35] lperrin: that's what I usually use, so I'd like to know :) [09:35] jabbslad has joined the channel [09:35] kurtzhong_ has joined the channel [09:36] bbbb: lperrin nothing wrong with it [09:36] shancat_: Octayn: thank you, you've given me a lot to think about. [09:37] r04r has joined the channel [09:37] bbbb: Octayn why are you reading the spec so in depth? are you building something? [09:37] felixhummel has joined the channel [09:37] Octayn: bbbb: Curiosity [09:37] markwubben has joined the channel [09:38] christiankvalhei has joined the channel [09:38] Yoms has joined the channel [09:42] kwmiebach has joined the channel [09:42] r04r has joined the channel [09:42] r04r has joined the channel [09:47] Nopik has joined the channel [09:47] lzskiss has joined the channel [09:47] r04r has joined the channel [09:48] spolu has joined the channel [09:48] panosru has joined the channel [09:48] janekp has joined the channel [09:48] mattgifford has joined the channel [09:49] panosru: Hi, I'm wondering what people use on their node.js apps to create breadcrumb... custom implementation or something else? [09:50] jimmysparkle has joined the channel [09:50] infynyxx has joined the channel [09:51] hellp has joined the channel [09:53] r04r has joined the channel [09:53] r04r has joined the channel [09:54] `3rdEden has joined the channel [09:55] jvduf has joined the channel [09:58] r04r has joined the channel [09:58] merlin83 has joined the channel [09:58] Chel: guys im trying to $npm search waf , and get error: FATAL ERROR: JS Allocation failed - process out of memory [09:59] Chel: my server has 499264k free memory [10:00] gr4yscale has joined the channel [10:01] christkv has joined the channel [10:01] saurb has joined the channel [10:02] mikedeboer_ has joined the channel [10:03] r04r has joined the channel [10:04] christiankvalhei has joined the channel [10:05] tylerstalder has joined the channel [10:05] vdemedes has joined the channel [10:05] vdemedes: Hello! [10:06] vdemedes: I want to show you my latest creation - Mongorito(http://github.com/vdemedes/mongorito). [10:06] vdemedes: Just create simple models, and operate with them, skipping lower level interactions [10:07] vdemedes: Take a look at simple model with validation: http://cl.ly/011v3i0m020B0m240m17 [10:07] vdemedes: Mongorito supports hooks, validations, queries with limits and sorting. Aimed at usage with CoffeeScript [10:09] r04r has joined the channel [10:09] koo3 has joined the channel [10:09] Octayn: vdemedes: what's it like from non-coffeescript? [10:09] fr0ggie: dontwork [10:10] vdemedes: Octayn: It is more pleasure to work with it from CoffeeScript, because I use its extending capabilities extensively [10:10] Octayn: That isn't what I asked :) [10:10] vdemedes: and code will be much clear [10:10] JohnFoo has joined the channel [10:11] vdemedes: Octayn: well, I did not use it with JS, but it will not be a problem, you will just need to use CoffeeScript's extending mechanism and create classes correctly [10:11] vdemedes: Octayn: if that's still not what you wanted to ask, then I don't get [10:12] Octayn: No, that's sufficient [10:13] JohnFoo: Hello. What is the best way to share the db connection between the route handlers in express? [10:13] JohnFoo: Can I attache the connection to the req object? Or is there a better way? Or attach it direct to the app object? [10:13] JohnFoo: Sorry, I'm a noob... [10:14] vdemedes: JohnFoo: I set global variable, because I need to access it across tens of files [10:14] vdemedes: controllers, models, etc [10:14] vdemedes: global.db [10:14] vdemedes: I know that global variables are bad, but still [10:15] r04r has joined the channel [10:15] hipertracker has joined the channel [10:15] vdemedes: So what do you guys think about Mongorito? [10:15] JohnFoo: vdemedes: Ok, it's a solution... (also mine...)... but as you told: bad... [10:15] vdemedes: JohnFoo: but attaching database connection to req is NO WAY [10:16] vdemedes: JohnFoo: attaching it to app is better [10:17] jer0me has joined the channel [10:18] JohnFoo: "is better"... but? No the best solution? In the examples everything is in one file... Not really realworld... [10:18] mikeal has joined the channel [10:19] noderjs has joined the channel [10:19] DrPheltRight has joined the channel [10:19] r04r has joined the channel [10:19] r04r has joined the channel [10:21] rendar has joined the channel [10:21] astropirate has joined the channel [10:22] vdemedes: JohnFoo: yeah, examples are pretty basic. But, I think attaching it to app is not that bad. Better than global.db [10:23] tvw has joined the channel [10:23] ajackbot has joined the channel [10:24] JohnFoo: vdemedes: Thank you.... I'll try it... If it works, problem solved :) [10:24] vdemedes: JohnFoo: ;-) [10:25] r04r has joined the channel [10:26] cha0s has joined the channel [10:26] cha0s has joined the channel [10:26] level09 has joined the channel [10:27] mikedeboer_ has joined the channel [10:29] meso has joined the channel [10:30] knite has joined the channel [10:30] r04r has joined the channel [10:31] logbot69648 has joined the channel [10:32] joshgillies has joined the channel [10:33] Bonuspunkt has joined the channel [10:33] kulor-uk has joined the channel [10:33] logbot54291 has joined the channel [10:34] MrBig has joined the channel [10:36] r04r has joined the channel [10:36] domo1 has joined the channel [10:37] domo1: hey guys - any reason why nodejs is taking my string when running child_process.exec and changing it? I have this line: free -m | awk '/buffers\/cache/{print $3}' runs fine from term [10:37] domo1: but in node i get this error: awk: line 1: syntax error at or near { [10:37] domo1: my node code looks like: exec("free -m | awk '/buffers\/cache/{print $3}'", function(error, [10:38] saurb1 has joined the channel [10:40] iangreenleaf has joined the channel [10:40] appr: domo1: you should escape backslashes once more [10:41] r04r has joined the channel [10:41] r04r has joined the channel [10:41] domo1: wow im tired. [10:41] domo1: im an idiot [10:41] domo1: bed time. [10:41] domo1: thanks appr. [10:42] arduix has joined the channel [10:46] Glenjamin has joined the channel [10:46] r04r has joined the channel [10:46] nphase has joined the channel [10:46] nphase has joined the channel [10:47] BrianE has joined the channel [10:49] devaholic has joined the channel [10:50] merlin83 has joined the channel [10:50] cjroebuck has joined the channel [10:50] vdemedes: Octayn: pushed an update, added guide for pure JS devs [10:50] TomY has joined the channel [10:51] vdemedes: Octayn: http://github.com/vdemedes/mongorito [10:51] xbayrockx has joined the channel [10:51] r04r has joined the channel [10:51] Octayn: vdemedes: I didn't expect that! Thanks bunches! [10:51] vdemedes: Octayn: :-) You're welcome! I just understood that it is really important! Let me know what do you think about Mongorito! [10:51] nphase has joined the channel [10:51] nphase has joined the channel [10:52] Octayn: vdemedes: first impression is "awesome", I'll take a deeper look at it today [10:52] joshgillies has joined the channel [10:53] vdemedes: Octayn: good! If I will not be available, here, I will send you my Twitter and email in PM. [10:53] Octayn: vdemedes: As an aside, in the example, is Posts an array? Why don't you use .forEach instead of simple iteration? [10:53] vdemedes: Octayn: no need :-) it is synchronous operation/block, why should I use forEach? [10:53] Octayn: vdemedes: It's prettier and more functional. .forEach isn't just for async you know, I use it all the time for sync code [10:54] vdemedes: Octayn: Post is a model, it is function [10:54] Octayn: Right [10:54] vdemedes: Octayn: ah, I tried to avoid a lot of callbacks [10:54] vdemedes: Octayn: that's why I use async-ish things only for async operations [10:55] joshgillies has joined the channel [10:55] robinhoode_ has joined the channel [10:55] OmidRaha has joined the channel [10:56] r04r has joined the channel [10:57] domo1 has left the channel [10:57] boehm has joined the channel [11:00] diva has joined the channel [11:01] riskish has joined the channel [11:02] r04r has joined the channel [11:02] r04r has joined the channel [11:04] kmiyashiro has joined the channel [11:07] r04r has joined the channel [11:07] parzo has joined the channel [11:07] parzo has left the channel [11:08] rurufufuss has joined the channel [11:09] felixhummel has joined the channel [11:11] knite has joined the channel [11:11] dekub has left the channel [11:11] r04r has joined the channel [11:16] r04r has joined the channel [11:17] iangreenleaf has joined the channel [11:17] Cromulent has joined the channel [11:18] Nibelung has joined the channel [11:19] d0k has joined the channel [11:20] dnyy has joined the channel [11:21] r04r has joined the channel [11:27] LeftWing has joined the channel [11:29] kmiyashiro has joined the channel [11:29] kuebk has joined the channel [11:29] ljharb has joined the channel [11:29] kuebk: hi [11:29] dipu421 has joined the channel [11:29] kuebk: is there a way to find out on what arch am I? [11:31] FireFly has joined the channel [11:31] dipu421 has left the channel [11:33] Glenjamin: kuebk: uname -v i think [11:33] Glenjamin: vdemedes: the problem with that is that it makes it hard to refactor into something IO later [11:33] huskyr has joined the channel [11:34] Glenjamin: and forEach is helpful because it avoid some potential scoping issues [11:35] oleyb has joined the channel [11:35] Octayn: require('os').arch [11:36] Octayn: That's a function, btw [11:36] Octayn: Glenjamin: and it's uname -m [11:42] johnhame_: So I have a crap-tonne of modules, and I want them to communicate with each other, and there will be a lot of communication and passing of data. Event handlers are OK for this? [11:42] lperrin has joined the channel [11:43] Glenjamin: sounds like a hard system to reason about :) [11:43] johnhame_: Glenjamin, indeed [11:43] johnhame_: I'm building a financial application's API in nodeJS :) [11:44] stagas has joined the channel [11:44] vdemedes: johnhame_: create one, centralized even center [11:44] vdemedes: event* [11:45] vdemedes: well yeah, events [11:45] vdemedes: missed your message [11:45] vdemedes: if modules are remote, on different instances/machines, WebSockets will be awesome for this [11:46] Octayn: There's something else [11:46] Octayn: *made* for passing data between node instances [11:46] Octayn: I wish I could remember the name [11:46] johnhame_: cluster? [11:47] Octayn: no [11:47] johnhame_: vdemedes, I was imaginging something like that… how should this center act? Would it return errors, for example, if the module didn't exist or no contact was made in 2 seconds? [11:47] johnhame_: or would the center load all modules and interface with them directly, and only recieve events? [11:48] Octayn: I'm not going to be able to remember it, sorry :( [11:48] Octayn: I think it was either a nodejitsu or learnboost thing [11:49] johnhame_: nssocket or dnode? [11:49] johnhame_: or hook.io? [11:49] SubStack: johnhame_: yes [11:50] johnhame_: which? :p [11:50] SubStack: yes [11:50] johnhame_: umm… which? [11:50] johnhame_: all of them? [11:52] tokumine has joined the channel [11:52] vdemedes: johnhame_: this question requires detailed answer. I can't give it to you, because I don't know your architecture and how those modules need to communicate and what do they send [11:53] Glenjamin: if you want to communicate between processes, amqp is quite nice [11:57] looopy has joined the channel [12:02] przemoc has joined the channel [12:03] whaley has joined the channel [12:05] rauchg has joined the channel [12:06] caludio has joined the channel [12:09] BrianE has joined the channel [12:09] otakutomo has joined the channel [12:11] michaelhartau has joined the channel [12:11] divoxx has joined the channel [12:12] jhbot: 'Response body in Tobi.js?' by nailer http://stackoverflow.com/q/9311042 (tags: browser) [12:12] cl0udy has joined the channel [12:13] versicolor has joined the channel [12:15] tylerstalder has joined the channel [12:15] larsschenk has joined the channel [12:15] larsschenk has left the channel [12:16] riven` has joined the channel [12:17] otakutomo has left the channel [12:17] jetienne_ has joined the channel [12:18] felixge has joined the channel [12:22] lzskiss has joined the channel [12:25] niloy has joined the channel [12:25] riven has joined the channel [12:25] riven has joined the channel [12:27] copongcopong has joined the channel [12:27] framlin has joined the channel [12:28] jefferai has joined the channel [12:28] fwg has joined the channel [12:28] nail_ has joined the channel [12:28] mhillsman has joined the channel [12:29] joshontheweb has joined the channel [12:29] brazen has joined the channel [12:29] infynyxx has joined the channel [12:29] brazen: hey all [12:30] kwmiebach_ has joined the channel [12:31] gagarine has joined the channel [12:31] _baton_ has joined the channel [12:32] enmand has joined the channel [12:33] zpao has joined the channel [12:40] TomY has joined the channel [12:40] mAritz has joined the channel [12:41] brazen: Where do scripts live in node.js? [12:41] brazen: where do you put then (im on a amc) [12:42] level09 has joined the channel [12:43] erichynds has joined the channel [12:44] ablomen: brazen, doesn't matter, you can just run them with `node script.js` [12:44] EuroNerd has joined the channel [12:44] EuroNerd has joined the channel [12:44] brazen: where does it look for them ablomen ? [12:44] brazen: thats what confuses me which folder [12:44] jhbot: 'How to prevent child node processes from getting killed with the parent node process?' by Fair Dinkum Thinkum http://stackoverflow.com/q/9311470 (tags: javascript, process, popen) [12:45] hackband has joined the channel [12:46] ixti has joined the channel [12:46] ablomen: brazen, you need to give the path to the script, so for example, node /home/user/scripts/script.js (or cd to the dir) [12:46] vervain has joined the channel [12:46] ovaillancourt has joined the channel [12:46] brazen: ablomen: ive put it in the same folder as node [12:46] brazen: inside usr/local/bin [12:46] ablomen: brazen, oh.. don't do that, just put it in your home folder [12:47] ablomen: i think that's something like /Users/username or something like that on mac's [12:47] brazen: ok [12:47] pid1 has joined the channel [12:48] level09_ has joined the channel [12:48] brazen: also my terminal is stuck on ... and im not sure how to exit [12:48] ablomen: ctrl+c, or maybe command+c [12:49] ablomen: if you hit that a few times you should always get back to shell [12:49] brazen: ah yes thank you [12:50] brazen: when i try to run an external js file I just get ... no error or anything how am i supposed to know weather its found it or not [12:50] brazen: sorry im very new to node [12:51] ablomen: depends if it returns anything or just keeps running, but when the file is not found it should return something like "Error: Cannot find module '/some/dir/bla.js" [12:52] brazen: Yes its set to console log in it but even when i select the wrong directory i just get ... [12:52] brazen: im just in the mac terminal [12:53] paera has joined the channel [12:53] huskyr has joined the channel [12:53] boehm has joined the channel [12:53] ablomen: hmm, well i dunno how it works on mac os, so can't really help you there [12:53] brazen: weird [12:54] brazen: i do [12:54] paera has left the channel [12:54] brazen: node test.js and i get ... [12:54] MrNko has joined the channel [12:55] ablomen: what do you get if you type in `node -v` ? [12:55] ablomen: (without the `'s ofc [12:55] brazen: node is not defined [12:55] subbyyy has joined the channel [12:55] cosmincx has joined the channel [12:56] ablomen: lol oh you are still in node, not on the shell [12:57] brazen: ohh [12:57] brazen: I thought I had to do it within node [12:57] robhawkes has joined the channel [12:57] ablomen: nope, you run a script by typing node /some/dir/script.sh\ [12:58] RLa has joined the channel [12:59] xbayrockx has joined the channel [13:00] brazen: ok ablomen thanks for your help thats cleared that up [13:05] riven has joined the channel [13:05] riven has joined the channel [13:07] huskyr has joined the channel [13:08] hhutch has joined the channel [13:09] djcoin has joined the channel [13:10] stisti has joined the channel [13:10] cosmincx has joined the channel [13:11] dve has joined the channel [13:14] fairwinds has joined the channel [13:14] fille12 has joined the channel [13:15] fille12: hello i have this strange thing on my ubuntu system webbrowser chrome, js client script. everything is backwards in the expression [13:16] fille12: lik if( a == 3 && a == 5) is if(a == 3|| a == 5 ) [13:16] fille12: anyone know why it is this way? [13:17] koo3 has joined the channel [13:18] looopy has joined the channel [13:19] nhunzaker has joined the channel [13:19] _th_n has joined the channel [13:20] hz has joined the channel [13:27] RLa: fille12, huh, how that happens [13:28] Joey_ has joined the channel [13:28] tomasztomczyk has joined the channel [13:29] fille12: i dont know [13:30] fille12: i need to restart my computer [13:30] brianseeders has joined the channel [13:31] McMAGIC--Copy has joined the channel [13:31] fermion has joined the channel [13:32] vkareh has joined the channel [13:32] fumanchu182 has joined the channel [13:32] st_luke has joined the channel [13:33] pradeebv has joined the channel [13:33] piscisaureus__ has joined the channel [13:35] level09 has joined the channel [13:37] davv3 has joined the channel [13:37] fille12: just my bad javascript [13:37] navpar has joined the channel [13:37] willwhite has joined the channel [13:37] fille12: was the problem [13:39] BrianE has joined the channel [13:40] jetienne_ has joined the channel [13:40] vdemedes: bye [13:41] Poetro has joined the channel [13:43] avih_ has joined the channel [13:44] poehls has joined the channel [13:45] _baton_ has joined the channel [13:46] sharkbird has joined the channel [13:47] snearch has joined the channel [13:48] pilot419 has joined the channel [13:48] rickibalboa has joined the channel [13:48] dgathright has joined the channel [13:49] louissmit has joined the channel [13:49] dgathright_ has joined the channel [13:50] jtrudeau has joined the channel [13:54] qsobad has joined the channel [13:55] pradeebv has joined the channel [13:56] mschneider has joined the channel [13:58] redir has joined the channel [13:58] dennisjbell has joined the channel [13:58] webguynow has joined the channel [13:59] _baton_ has joined the channel [13:59] AaronMT has joined the channel [13:59] plutoniix has joined the channel [14:01] jxie has joined the channel [14:03] timoxley has joined the channel [14:03] ts__: anybody here ? [14:03] ts__: hi [14:04] BrianE: Hi [14:04] ts__: i had an idea for creating a distributed computation engine by distributing js code to run on available nodes. Code would be executed in a vm [14:04] HardFu has joined the channel [14:04] hhutch has joined the channel [14:04] ts__: is there already such project? [14:05] tricon_ has joined the channel [14:06] thinkjson has joined the channel [14:07] BrianE: That's a great idea, especially if it's not a computation [14:07] BrianE: In fact, yeah [14:07] BrianE: Cool. I haven't heard of anything like it, I'll do some Googling [14:07] BrianE: Call it Nodoop :) [14:07] ts__: lol [14:08] ts__: is this how hadoop work ? so the code is distributed in binary form ? [14:08] thinkjson: felixge: hey, have a sec? [14:08] BrianE: ts__: Hadoop takes a JAR and distributes it to the nodes, then instantiates/calls stuff on a class in that JAR for each piece of data [14:08] felixge: thinkjson: depends, do you have beer? :) [14:09] Venom_X has joined the channel [14:09] jhbot: 'socket.io All threads from one client have the same socket.id' by Harihara Vinayakaram http://stackoverflow.com/q/9312703 (tags: websocket, socket.io) [14:09] ts__: alright [14:09] galaxywatcher has joined the channel [14:09] BrianE: Each task has a class with map/reduce methods, and you do whatever you want in those [14:09] BrianE: And the data comes out the other en [14:09] BrianE: *end [14:09] thinkjson: felixge: even if I did, you're 4000 miles away! :-P [14:09] whaley has joined the channel [14:09] BrianE: But in Node, it'd be awesome [14:09] ts__: yeah [14:09] k1ttty has joined the channel [14:09] BrianE: Obviously hard/not possible to parallise things on the single node [14:10] BrianE: But if it's an event-driven thing, it'd be col [14:10] BrianE: *cool [14:10] thinkjson: felixge: I'm doing multi insert with node-mysql and I'm getting warnings, but the actual error message doesn't appear in the err. I was wondering how to track that down. [14:10] BrianE: Say, downloading things, or migrating some data, or whatever [14:10] ritch- has joined the channel [14:10] BrianE: ts__: Give it a go. I might contribute (majorly) if it's awesome :) [14:10] ts__: i thought using it for aggregating data from many sources (twitter, rss etc) [14:10] Inode has joined the channel [14:11] Inode has left the channel [14:11] felixge: thinkjson: not sure what you mean by warnings. my module doesn't write anything to stdout/stderr [14:11] felixge: if it does it is bug [14:11] felixge: the only thing it might do is emit an error event if there is no callback for a query [14:11] felixge: and if you have no error handler on the client, that will throw [14:11] ts__: BrianE: okay i'll try to do some poc [14:12] thalll has joined the channel [14:12] BrianE: ts__: It'd be great for that purpose [14:12] BrianE: Check out resque and/or beanstalkd [14:12] thinkjson: felixge: yeah, I'm talking about the err object in query.on('error' ... [14:13] BrianE: There's no point building the actual mechanism for distributing it - just running the actual map/reduces themselves and aggregating them [14:13] devdazed has joined the channel [14:13] thinkjson: err.message is just ",Records: 1000 Duplicates: 0 Warnings: 1000" [14:13] felixge: thinkjson: what do you mean by multiple insert? [14:13] aristidesfl has joined the channel [14:13] thinkjson: INSERT INTO ... VALUES (...), (...) ... ; [14:13] felixge: thinkjson: if those are in multiple statements, that's not supported ATM [14:13] thinkjson: one statement [14:13] felixge: thinkjson: ok, single statement should work [14:13] thinkjson: the rows are inserted, but I get this cryptic error about a warning on every row [14:14] felixge: thinkjson: http://dev.mysql.com/doc/refman/5.0/en/show-warnings.html [14:14] davidsklar has joined the channel [14:14] Fuu has joined the channel [14:14] thinkjson: cool. I'll give it a shot. Thanks! [14:15] felixge: thinkjson: wait, I haven't given you my address for the beer deliver yet! :) [14:15] felixge: (that being said, we do not a global beer/coffee payment system for open source) [14:15] felixge: :) [14:15] napperjabber_ has joined the channel [14:16] Vespakoen has joined the channel [14:16] st_luke has joined the channel [14:17] briancray has joined the channel [14:17] thinkjson: felixge: yeah, someone should totally do that [14:17] jergason has joined the channel [14:18] thinkjson: if I ever make it over, I'll look you up, and I can take you out for a beer. deal? :-) [14:18] felixge: thinkjson: sounds good : ). Berlin is fun, you should do it one day [14:18] thinkjson: I totally should [14:18] thinkjson: $$$ is the issue :-( [14:20] CarterL has joined the channel [14:20] crutex has joined the channel [14:20] crutex has joined the channel [14:21] thinkjson: thanks, that worked. [14:21] thinkjson: it's been a while since I used MySQL [14:22] thinkt4nk has joined the channel [14:24] tdegrunt has joined the channel [14:25] redir_ has joined the channel [14:25] cjroebuck has joined the channel [14:26] rwaldron has joined the channel [14:26] manuj has joined the channel [14:28] logicalparadox has joined the channel [14:28] instil123 has joined the channel [14:28] c4milo has joined the channel [14:29] EhevuTov has joined the channel [14:30] colinclark has joined the channel [14:30] lazyshot has joined the channel [14:30] instil123: Hey everyone. Can someone help me with this: If I hook on the 'data' event of a child process' stderr stream, the event fires consistently only if I print the data out to console, otherwise nothing happens. Anyone have any idea about this? [14:30] redir has joined the channel [14:31] urlisse has joined the channel [14:31] ritch-: instil123: could you elaborate on 'nothing happens'? [14:31] jtsnow has joined the channel [14:31] carlyle has joined the channel [14:31] RyanD has joined the channel [14:32] ritch-: it sounds like the error is still occuring, but being caught or just not being printed to the screen [14:33] robhawkes has joined the channel [14:33] tokumine has joined the channel [14:34] cl0udy_ has joined the channel [14:34] instil123: ritch-: Well, I can't think of any other way of displaying what came on the stream, other than console.log-ing it. If I con't console.log, but for example try to call a function with the data that supposedly came on the stream, the function doesn't get called. ... So maybe the data gets accumulated somewhere... but before i can get my hands on it, the process exits [14:34] rauchg has joined the channel [14:35] tomasztomczyk has joined the channel [14:35] robotmay has joined the channel [14:35] Carmivore has joined the channel [14:35] Carmivore has joined the channel [14:35] pendlepants has joined the channel [14:35] markwubb_ has joined the channel [14:35] lem0nbyte has joined the channel [14:36] pyrotechnick has joined the channel [14:36] pyrotechnick: they're really clutching at straws aren't they http://www.apple.com/macosx/mountain-lion/ [14:36] isao has joined the channel [14:36] FIQ has joined the channel [14:36] mandric has joined the channel [14:37] lduros has joined the channel [14:37] divoxx has joined the channel [14:38] thinkjson: pyrotechnick: better than an ocelot... :-) [14:38] pyrotechnick: Messages.app is ~70MB [14:38] pyrotechnick: :s [14:39] RLa: more social crap on mac? [14:39] Pilot419 has joined the channel [14:39] RLa: messages and notifications usually mean annoying popups that will distract and destroy productivity [14:41] willwhite has joined the channel [14:41] RLa: makes sense only on ipads and iphone and other devices where you cannot do work that usually requires the computer [14:41] tokumine_ has joined the channel [14:42] saurb has joined the channel [14:42] francisl has joined the channel [14:43] francisl has left the channel [14:44] robotmay has joined the channel [14:45] stisti has joined the channel [14:46] mschneider has joined the channel [14:46] AndreasMadsen has joined the channel [14:46] deeprogram has joined the channel [14:46] lz has joined the channel [14:47] sh1mmer has joined the channel [14:48] thinkt4nk has joined the channel [14:48] Pilot419 has left the channel [14:50] TheFuzzball has joined the channel [14:51] galaxywatcher has joined the channel [14:53] stride has joined the channel [14:55] tokumine has joined the channel [14:58] margle has joined the channel [14:58] Skaag has joined the channel [14:59] bkaney has joined the channel [14:59] Skaag has joined the channel [15:00] ryanfitz has joined the channel [15:00] CarterL has joined the channel [15:01] jetienne has joined the channel [15:01] _baton_ has joined the channel [15:01] jakehow has joined the channel [15:02] porco has joined the channel [15:03] ritch- has left the channel [15:03] amigojapan has joined the channel [15:04] nerdfiles has joined the channel [15:04] barberdt has joined the channel [15:06] tokumine_ has joined the channel [15:08] robhawkes has joined the channel [15:08] cosmincx has joined the channel [15:09] baudehlo has joined the channel [15:09] meso_ has joined the channel [15:10] vguerra: any idea when the next nodeup episode will be recorded ? =) [15:11] EhevuTov: any suggestions for something besides 'ab' for benchmarking on Mac OS X? [15:11] elijah-mbp has joined the channel [15:11] thomblake has joined the channel [15:13] theBrettman has joined the channel [15:13] devongovett has joined the channel [15:14] thomblake has left the channel [15:15] nibblebot has joined the channel [15:15] daniel`: how do I exec() from Node? [15:15] bbbb: daniel`, require('child_process').spawn or .exec [15:15] pyrotechnick: RTFM http://nodejs.org/docs/latest/api/child_processes.html#child_process.exec [15:15] daniel`: bbbb: I can’t replace the current process? [15:16] pyrotechnick: RTFM http://nodejs.org/docs/latest/api/child_processes.html#child_process.fork [15:16] bbbb: daniel`, nope, and even then thats a risky thing to do if you ever need windows support you cant [15:16] pyrotechnick: i think they got fork working on windows [15:16] daniel`: bbbb: OK [15:16] bbbb: pyrotechnick, we are talking about syscalls [15:17] jerkelens has joined the channel [15:17] ashishg has joined the channel [15:17] fmeyer has joined the channel [15:17] bnoordhuis has joined the channel [15:19] kuebk has left the channel [15:19] rauchg has joined the channel [15:21] yawNO has joined the channel [15:21] mAritz1 has joined the channel [15:21] stride has joined the channel [15:21] ashishg has joined the channel [15:22] adambeynon has joined the channel [15:24] saurb has joined the channel [15:24] bizniz98 has joined the channel [15:24] hz has joined the channel [15:27] Skaag_ has joined the channel [15:30] malletjo has joined the channel [15:31] zarex has joined the channel [15:32] BrianE has joined the channel [15:32] pradeebv_ has joined the channel [15:32] postwait has joined the channel [15:32] infynyxx has joined the channel [15:34] diogogmt has joined the channel [15:35] infynyxx has joined the channel [15:36] ohtogo has joined the channel [15:36] wm_eddie has joined the channel [15:37] merlin83 has joined the channel [15:37] deeprogram has joined the channel [15:38] joshkehn has joined the channel [15:39] jaha has joined the channel [15:40] AvianFlu has joined the channel [15:40] josh-k has joined the channel [15:40] jhbot: 'CSRF_COOKIE sent by Tobi isn't matching' by nailer http://stackoverflow.com/q/9314207 (tags: testing, browser, csrf) [15:40] jetienne has joined the channel [15:40] joshkehn has left the channel [15:40] spion1 has joined the channel [15:41] salva has joined the channel [15:41] caden has joined the channel [15:42] pradeebv has joined the channel [15:44] BrianE has joined the channel [15:44] digitalsabre has joined the channel [15:44] jhbot: 'callbacks and returns with CouchDB and nano.js' by Patrick http://stackoverflow.com/q/9314291 (tags: javascript, callback, couchdb) [15:44] digitalsabre has left the channel [15:47] ppcano has joined the channel [15:48] jocafa has joined the channel [15:48] Yester has joined the channel [15:53] BrianE has joined the channel [15:53] jmar777 has joined the channel [15:54] Venom_X has joined the channel [15:54] joshthecoder has joined the channel [15:55] ph^ has joined the channel [15:55] wink_ has joined the channel [15:55] whitman has joined the channel [15:56] yawNO has joined the channel [15:56] bartt has joined the channel [15:56] cosmincx has joined the channel [15:56] rtgibbons has joined the channel [15:56] teslan: to keep variables out of global space, in straight javascript i would (what?) put them into a package ... in node.js is my main app such a package, where i can put all of my variables, where all of the functions in that main-app.js can get at them ... i have tried this and of course it works but i am curious if this is ok to do, or should i be passing objects around - for the same reason why global variables are bad ;?) [15:56] blup has joined the channel [15:57] pizthewiz has joined the channel [15:57] adrianF has joined the channel [15:58] CoverSlide: use require('./mylib') for each js file [15:58] joshsmith has joined the channel [15:58] willwhite has joined the channel [15:58] lzskiss has joined the channel [15:59] teslan: CoverSlide: being only a Web 0.2 Fellow, i am not following ;) [15:59] gr4yscale has joined the channel [15:59] CoverSlide: you don't know how to use require in node? [16:00] teslan: actually i am using request module with pipe() to boot ;) but how your reply answers my question is what i am not following ;) [16:00] CoverSlide: i really don't understand your question [16:01] jtsnow has joined the channel [16:03] teslan: it's about scope of variables ... should app.js have any variables outside of createServer() which are accessible to all the functions or should i put all such variables into an object that is then passed around between the functions ... i am assuming that each "require" contains its own variables, as parameters passing is all i have seen [16:04] shanebo has joined the channel [16:04] jaha: how do you connect 2 http://socket.io/ "servers"? [16:04] CoverSlide: oh well your choice [16:04] jaha: 1 server will be the "client" which will control a local web app but will be in constant comunication with the "mother" server [16:04] teslan: my choice between what ;?) [16:05] xaq has joined the channel [16:05] CoverSlide: well i'm assuming you're asking whether you should have var a = 1;var b = 2; or var obj= {a:1,b:2}; and just pas obj around [16:05] mephux has joined the channel [16:05] kitt has joined the channel [16:06] sorensen__ has joined the channel [16:07] blueadept has joined the channel [16:07] blueadept has joined the channel [16:07] sorensen__ has joined the channel [16:08] c4milo has joined the channel [16:09] dpino has joined the channel [16:09] nhunzaker has left the channel [16:11] wink__ has joined the channel [16:11] AphelionZ has joined the channel [16:12] Vennril has joined the channel [16:13] trotter has joined the channel [16:13] Tatort79 has joined the channel [16:14] willwhite has joined the channel [16:14] themiddleman_itv has joined the channel [16:14] pendlepants has joined the channel [16:15] davidwalsh has joined the channel [16:15] jdeibele has joined the channel [16:16] markq has joined the channel [16:16] davehamptonusa has joined the channel [16:16] slaskis: jaha: maybe use a web socket client? [16:16] Zdkroot has joined the channel [16:18] andrehjr has joined the channel [16:18] nerdfiles has left the channel [16:19] davehamptonusa has left the channel [16:19] jaha: slaskis: i saw one on the learnboost github but its 11 months since last update and I dont think I need all the protocols since I am controlling the environment, i was hoping it would be simpler than that but unless you know of a simpler way? [16:19] RobWC has joined the channel [16:19] RobWC has left the channel [16:20] davehamptonusa has joined the channel [16:20] gripir has left the channel [16:20] davehamptonusa has left the channel [16:20] BillyBreen has joined the channel [16:20] slaskis: jaha: not really. easiest would maybe be just to use a plain tcp socket between them? no need to use ws protocol, just reroute those messages [16:20] timoxley has joined the channel [16:20] _baton_ has joined the channel [16:21] broofa has joined the channel [16:21] tokumine has joined the channel [16:23] cosmincx has joined the channel [16:25] jaha: slaskis: yea i think im going to look into net a bit more as socket.io (which im already using in another instance) is probbaly not the best tool [16:26] ghasem has joined the channel [16:26] CoverSlide: the best option to get 2 node instances talking to eachother is to use dnode [16:26] Revernd has joined the channel [16:26] jaha: is dnode similar to NOWjs? [16:27] pyrotechnick: yep [16:27] pyrotechnick: but it has tests [16:27] CoverSlide: it's better than nowjs [16:27] SubStack: or upnode if the dnode connections are long-running [16:27] SubStack: or the network is unreliable [16:27] ts___ has joined the channel [16:27] jaha: bascially im looking to create a "kiosk-like" setup [16:27] Yester: hi guys, same question as yesterday. does anyone knwo this issue with socket.io or websockets at all and google chrome: i open a websocket connection which works good. now if i press f5 or close the tab and open it again, it opens 2 websocket connections instead of one. do the same again opens 3 connections, then 4.. 5.. 6.. 7.. [16:28] SubStack: or airport if you want your upnode connections to register with a federated semver-based cluster service registry [16:28] eb4890 has joined the channel [16:28] Edy has joined the channel [16:28] Edy has joined the channel [16:28] jakehow has joined the channel [16:29] jaha: upnode looks interesting [16:29] CoverSlide: Yester: are you saying it opens 2 connections on the first refresh meaning 3 total? or just 2 connections total? [16:29] bbbb: yester never seen it [16:29] Yester: now 2 at all, then 3 , 4, 5 [16:30] c0smikdebris has joined the channel [16:30] Yester: when i stop node and make it run again, it start by 1 again [16:30] Geeknux has joined the channel [16:30] CoverSlide: well each time you refresh the window it should open a new connection [16:30] bbbb: and your client side code is only creating 1 socket explicitly (with socket.io.Socket?) [16:31] bbbb: Yester, can you run a breakpoint when you use io.connect? [16:31] hipertracker_ has joined the channel [16:31] Yester: yes it opens one connection. on refresh i get the message at the server that the connection has been disconnected and stuff. but on refresh it opens 2 then [16:32] Yester: bbbb: sry i don't understand [16:32] bbbb: Yester, when you are starting a socket.io connection you use io.connect right? [16:32] samsonjs has joined the channel [16:32] grampajoe has joined the channel [16:33] Yester: yes, do you know where i can post the code on github. i don't find it anymore [16:33] tmcw has joined the channel [16:33] jgornick has joined the channel [16:33] benvie: gist.github.com [16:33] Zzaichik has joined the channel [16:34] bbbb: yester also I would hit `ctrl+shift+i` got to the scripts tab and set a breakpoint where you call io.connect, then refresh [16:34] jer0me has joined the channel [16:35] kulor-uk has joined the channel [16:35] Yester: https://gist.github.com/1846282 [16:35] rwaldron has joined the channel [16:36] Benn has joined the channel [16:36] Revernd has joined the channel [16:36] logicalparadox has joined the channel [16:37] willwhite has joined the channel [16:37] automata has joined the channel [16:38] Tricon has joined the channel [16:38] colinclark_ has joined the channel [16:39] aaronmcadam has joined the channel [16:39] mandric has joined the channel [16:40] jergason has joined the channel [16:41] hhutch has joined the channel [16:43] grampajoe has joined the channel [16:43] criswell has joined the channel [16:44] Yester: i set a breakpoint [16:44] lzskiss has joined the channel [16:44] Zzaichik has joined the channel [16:44] tmcw has joined the channel [16:45] bindr has joined the channel [16:45] bbbb: Yester, the code seems to be fine on first glance, did you hit the breakpoint multiple times? [16:47] charas has joined the channel [16:47] stonebra_ has joined the channel [16:47] philips has joined the channel [16:48] heroic1 has joined the channel [16:48] Yester: yes, sry i didn't work with breakpoints yet [16:48] jerrysv has joined the channel [16:48] heroic1: hey [16:48] heroic1: could someone help me with the segmentation fault issue [16:48] Yester: it halts before open the socket, and the transport array in object socket is empty then [16:48] heroic1: i tried using the patch mentioned here [16:49] heroic1: https://github.com/joyent/node/issues/2061 [16:49] heroic1: but it still does not work for me [16:49] heroic1: m using a 15" mbp lion 10.7.3 [16:49] alvaro_o has joined the channel [16:49] koo4 has joined the channel [16:50] arcanis has joined the channel [16:50] Zzaichik has joined the channel [16:50] warz has joined the channel [16:50] warz has joined the channel [16:50] dubenstein has joined the channel [16:51] charas: I am also here for the segmentation fault, dammit is it some disease going around [16:52] salva1 has joined the channel [16:52] colinclark_ has joined the channel [16:53] stayarrr has joined the channel [16:53] baldmark has joined the channel [16:53] Yester: i try it tomorrow again, thx bbbb [16:59] alvaro_o has joined the channel [16:59] stagas has joined the channel [16:59] heroic1 has joined the channel [16:59] AvianFlu: charas, heroic1, use a more recent version of node than 0.6.0 [16:59] jtsnow has joined the channel [16:59] heroic1: i am using 0.6.10 [16:59] AvianFlu: you're still seeing a segfault on 0.6.10? [16:59] heroic1: yes [16:59] AvianFlu: the same as this issue? [16:59] jonaslund_ has joined the channel [16:59] heroic1: not exactly the same [16:59] heroic1: i am building from source [16:59] heroic1: and even with the pacage [16:59] heroic1: *package [16:59] AvianFlu: so, it segfaults every time you do anything? [16:59] heroic1: yes [16:59] heroic1: i mean is segfaults whenever i run my express ap [16:59] AvianFlu: did you have an older node installed on the system before this one? [16:59] heroic1: 0.4 [16:59] AvianFlu: can you node -v ? [16:59] jocafa has joined the channel [16:59] heroic1: v0.6.10 [16:59] AvianFlu: or run other node things? [16:59] SamuraiJack_ has joined the channel [16:59] AvianFlu: the issue you linked was an old segfault that would happen on every node start [16:59] heroic1: CLI works fine it seems [16:59] bbbb: dont forget to npm rebuild (or even better just rm -rf node_modules then npm install) [16:59] mrkurt_ has joined the channel [16:59] AvianFlu: okay, so it looks like you have something else [16:59] AAA_awright_ has joined the channel [16:59] ekryski has joined the channel [16:59] heroic1: letme try that [16:59] adrianF has joined the channel [16:59] divoxx has joined the channel [16:59] broofa has joined the channel [16:59] bbbb: im betting ABI compat problem [16:59] AvianFlu: bbbb, me too [16:59] sauerbraten has joined the channel [16:59] heroic1: ABI? [17:00] bbbb: application binary interface (c level stuff) [17:00] ByteCrunch has joined the channel [17:00] heroic1: aah [17:00] AvianFlu: basically, something is trying to use the old libraries by mistake, potentially [17:00] retornam has joined the channel [17:00] heroic1: qute possible [17:00] dropbr has joined the channel [17:00] heroic1: i have had 0.4 installed since it was out in stable [17:00] sauerbraten: why does https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager say I can install node.js via apt on squeeze, when apt tells me there is no such package? is it just outdated and node.js is still in unstable but that is wheezy now? [17:00] AvianFlu: did you install to a different prefix with 0.6, or anything like that? [17:01] stefpb has joined the channel [17:01] heroic1: i removed 0.4 completely [17:01] heroic1: and yes [17:01] heroic1: 0.4 was on $home [17:01] heroic1: and 0.6 is in /usr [17:01] dannyamey has joined the channel [17:01] illourr has joined the channel [17:01] AvianFlu: heroic1, I ran into a hideous problem once where 0.4 didn't remove its header files and stuff like that [17:01] heroic1: btw removing node_modules seems to have worked [17:01] AvianFlu: /usr/local/include maybe [17:01] AvianFlu: yeah, that makes sense [17:01] heroic1: :) [17:01] heroic1: this is awesome! [17:02] wdbl has joined the channel [17:02] heroic1: I owe you big time! [17:02] stephank has joined the channel [17:02] AvianFlu: sauerbraten, I have a bash script that will download and compile it from source for you if you want [17:03] sauerbraten: AvianFlu, nah, I'm already doing that now, thanks though [17:03] heroic1: AvianFlu thanks to you [17:03] heroic1: and bbb [17:03] AvianFlu: np [17:04] heroic1: my first ever node app will see light :) [17:04] isaacs[zzz] has joined the channel [17:04] edwardbc has joined the channel [17:04] stayarrr has joined the channel [17:04] ph^ has joined the channel [17:04] shadowshell has joined the channel [17:05] aristidesfl has joined the channel [17:06] paulwe has joined the channel [17:08] xaq has joined the channel [17:08] mcavage has joined the channel [17:08] isao has joined the channel [17:09] pizthewiz has joined the channel [17:09] AviMarcus has joined the channel [17:09] charas1 has joined the channel [17:10] crutex2 has joined the channel [17:10] infynyxx has joined the channel [17:11] isaacs: SubStack: I'd argue that wreq *has* a build step: it's just at run-time. [17:12] SubStack: well no server-side build step [17:12] dilvie has joined the channel [17:12] SubStack: isaacs: anyways I'm just trolling the ecma harmony folks [17:12] tokumine has joined the channel [17:12] CIA-74: node: 03koichik 07v0.6 * ref50bd2 10/ doc/api/tls.markdown : docs: removed unnecessary STARTTLS section - http://git.io/jU201w [17:13] lohkey has joined the channel [17:13] slloyd has joined the channel [17:15] kenperkins has joined the channel [17:15] Cromulent has joined the channel [17:15] CIA-74: node: 03Ben Noordhuis 07v0.6 * r3415427 10/ (5 files in 4 dirs): (log message trimmed) [17:15] CIA-74: node: tls: mitigate session renegotiation attacks [17:15] CIA-74: node: The TLS protocol allows (and sometimes requires) clients to renegotiate the [17:15] CIA-74: node: session. However, renegotiation requires a disproportional amount of server-side [17:15] CIA-74: node: resources, particularly CPU time, which makes it a potential vector for [17:15] CIA-74: node: denial-of-service attacks. [17:15] CIA-74: node: To mitigate this issue, we keep track of and limit the number of renegotiation [17:15] tdegrunt has joined the channel [17:15] heroic1 has joined the channel [17:16] robhawkes has joined the channel [17:17] fatjonny has joined the channel [17:17] pyrotechnick has left the channel [17:17] pyrotechnick has joined the channel [17:17] mAritz has joined the channel [17:17] isaacs: SubStack: yeah, srsly, harmony modules are kidn of absurd [17:18] isaacs: they're the worst of all possible options. [17:18] ryan_stevens has joined the channel [17:18] ryan1_ has joined the channel [17:18] SubStack: I was thinking "harmony modules considered unnecessary" would be a good blog post title [17:18] mAritz2 has joined the channel [17:18] AvianFlu: better newspaper headline [17:19] pyrotechnick: harmony = java [17:19] pyrotechnick: they're putting the Java back in JS [17:19] joshthecoder: well it is called JavaScript ;) [17:19] dve has joined the channel [17:19] jhbot: 'how to handle unhanded exceptions in libraries in node.js' by MonkeyBonkey http://stackoverflow.com/q/9315850 (tags: redis) [17:20] RobWC has joined the channel [17:20] CoverSlide: your mom handled my exception real good last night [17:21] pyrotechnick: damn i was gunna make a your mum joke but i refrained [17:21] pyrotechnick: good work [17:21] trotter has joined the channel [17:21] Stephen has joined the channel [17:22] base698 has joined the channel [17:22] whaley has joined the channel [17:22] diogogmt has joined the channel [17:22] remysharp has joined the channel [17:22] TimTimTim: sorry for being a lazy jackass and not looking it up, but in node.js, would it be a waste of time to store a JSON object in redis (as opposed to storing it as the stringified version of the JSON object)? i.e., is redis able to store the object as an object or does it automatically serialize the object? and in which case, when i retrieve the object by its redis key, would i need to manually [17:22] TimTimTim: call JSON.parse? [17:22] dve has joined the channel [17:22] bkaney has joined the channel [17:23] SubStack: isaacs: the module and import syntax is soooooo bad [17:23] visitor has joined the channel [17:23] wdbl: SubStack: just curious...what would you rather see? [17:23] joshthecoder: I'd prefer keeping modules out of the spec. Also I hope they never add classes. [17:23] CoverSlide: classes are pretty much confirmed [17:23] Stephen: SubStack! [17:23] SubStack: ACTION ! [17:23] Stephen: lol [17:24] Stephen: yeah, it's me alright [17:24] fermion has joined the channel [17:24] Stephen: So I decided I'm gonna give socket.io another try this week [17:24] pyrotechnick: TimTimTim: the "redis" module on npm can only do strings i believe, it will probably just call toString() on your objects [17:24] ryanfitz has joined the channel [17:24] Stephen: I found socket.io-client, I'm going to see if it will implement in a firefox extension [17:24] SubStack: wdbl: I would rather see something that doesn't suck or nothing at all [17:25] Stephen: And, if not, I'm going to make it do so and submit code [17:25] pyrotechnick: TimTimTim: besides certain properties won't serialise well, such as regular expressions and functions [17:25] thalll has joined the channel [17:25] wdbl: SubStack: Do you have an example of something that doesn't suck? [17:25] CoverSlide: TimTimTim: just use JSON.stringify / JSON.parse [17:25] pyrotechnick: TimTimTim: it's best to write some kind of serialization, even if it's just JSON.stringify [17:25] pyrotechnick: yep [17:25] TimTimTim: ok thank you guys :) [17:25] SubStack: wdbl: node's module system hardly sucks at all [17:26] pyrotechnick: if it's a "model" and not an arbitrary structure you should consider using a hash [17:26] TimTimTim: saved me some time testing some stuff tyty :D [17:26] CoverSlide: you could use HSET and HGET [17:26] pyrotechnick: yep [17:26] pyrotechnick: ^ [17:26] slaskis_ has joined the channel [17:26] CoverSlide: or HMSET rather [17:26] mAritz has joined the channel [17:26] CoverSlide: but then you can't really nest values except with another JSON string [17:27] samsonjs has joined the channel [17:27] wdbl: SubStack: yeah and the harmony semantics are pretty similar to CommonJS. They just use reserved keywords instead of functions. I don't see the big deal. [17:27] pyrotechnick: there's also things like redback [17:27] pyrotechnick: which map objects and arrays to hashes and sets [17:27] CoverSlide: afaik there's really no performance benefit to using hashes [17:27] pyrotechnick: but that's probably overkill [17:27] mattgifford has joined the channel [17:27] SubStack: wdbl: the reserved keywords are also terrible [17:27] CoverSlide: with node at least [17:27] tylerstalder has joined the channel [17:27] pyrotechnick: CoverSlide: you'd get compression [17:27] SubStack: and the syntax is confusing and terrible [17:27] wdbl: SubStack: in your opinion. [17:27] SubStack: and the semantics are restrictive by design [17:27] jamiew has left the channel [17:28] SubStack: wdbl: I would rather they didn't invent more syntax unnecessarily [17:28] CoverSlide: but you may as well be using memcached [17:28] wdbl: SubStack: I don't think so. I'd rather have a reserved keyword than a function. [17:28] pyrotechnick: CoverSlide: true [17:28] djbell has joined the channel [17:28] erichynds has joined the channel [17:28] SubStack: wdbl: but it's not just a function versus a keyword [17:29] maletor has joined the channel [17:29] Sly__: Whether you realize it or not, the reserved keywords are a function at some point in the code. [17:29] SubStack: the keyword syntax is fucking complicated [17:29] reid has joined the channel [17:29] enmand has joined the channel [17:29] SubStack: import { foo : bar } from Baz [17:29] PatrickNegri has joined the channel [17:29] PatrickNegri: Yo guys [17:29] SubStack: module m in 'http://this.is/stupid' [17:29] ericmuyser has joined the channel [17:29] hipsterslapfight has joined the channel [17:29] wdbl: without defining a package system, that's what you have to do. [17:29] SubStack: then there's this notion of "modules" which are distinct from resource paths [17:30] mAritz1 has joined the channel [17:30] Sly__: I'd much rather use `var module = require('module');` than `import` and `module`. [17:30] isaacs: wdbl: the frustrating thing is that it completely ignores the state of the art in modular javascript development. [17:30] pyrotechnick: — is that sync? [17:30] SubStack: I like it when require() or import just returns a regular object [17:30] SubStack: isaacs: exactly this [17:30] isaacs: wdbl: yui, dojo, jquery, narwhal, node. [17:30] isaacs: wdbl: they all do roughly the same thing: [17:31] wdbl: it's: import {foo, bar} from Baz [17:31] isaacs: 1. map a name to a resource (url or file path) [17:31] isaacs: 2. require() gives you the module.exports from that file. [17:31] isaacs: and that's it [17:31] elijah-m_ has joined the channel [17:31] wdbl: how would you import foo, bar from Baz with node's module system? [17:31] PatrickNegri: Any1 can help me with something? I am trying to organize better my code. Inside a class/method. I want to declare there a variable, called OAuthObject. Then i want to call another method that has access to this variable without passing it as a parameter. If the function is inline this works. Made it working only by using this.xyz, but then the var conflicted with simulteaneous use. [17:31] wdbl: It'd take three lines of code [17:31] SubStack: wdbl: you wouldn't because that's stupid [17:31] isaacs: wdbl: what would be nice is to declare a module by doing module { .... } [17:32] SubStack: wdbl: or you could use the new slice syntax for vars that's in harmony [17:32] wdbl: right so, then why do you care that "import {foo, bar} from Baz" seems complicated to you, if you're never going to use it? [17:32] isaacs: wdbl: and then require('foo') gives you the exports defined in the foo resource's module block [17:32] orlandovftw has joined the channel [17:32] SubStack: var { fuck, that, noise } = require('blech') will work [17:32] isaacs: wdbl: `import fo, bar from Baz` <-- broken pattern from a broken platform. [17:32] tornad has joined the channel [17:32] tmcw has joined the channel [17:32] wdbl: because you're going to do: import Baz from Baz - which is not that far removed from var Baz = require('./Baz.js'); [17:32] gagarine has joined the channel [17:32] SubStack: yes we tried python/haskell/modula style imports and they super suck [17:32] PatrickNegri: references: http://pastebin.com/qXwXYcWq [17:32] SubStack: which is why harmony modules need to die in a fire [17:33] wdbl: incorrect [17:33] SubStack: wdbl: but there is ALREADY slice syntax for var and let in harmony [17:33] pyrotechnick: typeof null -> "object" [17:33] wdbl: @isaacs: you're not going to do that though. You're giong to do: import foo from Baz [17:33] pyrotechnick: hmm [17:34] SubStack: so why the fuck does import need to be so fancy [17:34] CoverSlide: not saying all of harmony sucks [17:34] SubStack: I don't understand this at all [17:34] isaacs: wdbl: but why should my var have to be named the same as it is in the Baz resource? [17:34] CoverSlide: typeof null is actually a good idea [17:34] SubStack: the hands, they don't know what the other is doing [17:34] isaacs: wdbl: that's actually the broken bit. [17:34] SubStack: isaacs: ALSO EXACTLY THIS [17:34] wdbl: @isaacs: that was just my example. It doesn't have to be named the same [17:34] isaacs: wdbl: how do you do this in harmony? var up = require('url').parse; [17:34] Sly__: Instead of trying to make major changes to the language, they should make simplistic changes to extend the language. [17:35] isaacs: wdbl: var up = import parse from url? [17:35] Sly__: Not try to rewrite it and make everyone re-learn how to use Javascript. [17:35] Sly__: That shit's annoying. [17:35] SubStack: of course I should expect that isaacs can spot a crappy module system from far away [17:35] hunterloftis has joined the channel [17:35] wdbl: @isaacs: oh I see what you're saying there. Yeah I see that complaint... [17:35] Sly__: Things like... `var [var1, var2] = ['value1', 'value2']` [17:35] Sly__: That would be nice to have. [17:35] isaacs: wdbl: what do you do when two modules export something by the same name? [17:35] wdbl: @isaacs: if that's the case (naming must match), that kinda sucks for a dynamic language [17:35] SubStack: Sly__: that is already in there [17:35] CoverSlide: pattern matching would kick ass [17:35] isaacs: wdbl: import should return a single object, period, not dump garbage into the namespace. [17:36] isaacs: it should be RHS expression. [17:36] Sly__: Hm. Never fucked with it before, SubStack. [17:36] hunterloftis: 1) Installed OSX package from nodejs.org, 2) installed n globally via npm, 3) "sudo n 0.4.11" <-- a bunch of "cp: /usr/local/lib/node//request: No such file or directory" errors ... any tips? [17:36] SubStack: which makes the magical import syntax all the more fucking ridiculous [17:36] gsmcwhirter has joined the channel [17:36] CoverSlide: it's only on spidermonkey now [17:36] CoverSlide: i don't think v8 even has a flag for it [17:36] wdbl: @isaacs: ok well I don't think it just dumps stuff into your namespace [17:36] isaacs: wdbl: import * from foo [17:36] wdbl: @isaacs: here's the renaming example. I don't see the problem with it at all - import { draw: drawShape } from shape; [17:36] Sly__: > var [var1, var2] = ['value1', 'value2']; [17:36] Sly__: ... [17:36] eeemsi: hunterloftis: 0.4.11? [17:36] isaacs: wdbl: that dumps crap into your namespace, yes. [17:36] Sly__: Doesn't work for me @ SubStack. [17:36] CoverSlide: how about import foo.* [17:36] wdbl: if you want to import 2 things and rename them, you can. [17:37] isaacs: wdbl: import Foo from foo <-- like var Foo = require('foo').Foo [17:37] hunterloftis: eeemsi: Yes, that's the version of a project I'm switching to [17:37] wdbl: if you don't want to, then done. [17:37] isaacs: wdbl: but without hte choice of how to name them. [17:37] wdbl: *then don't. [17:37] trose has joined the channel [17:37] isaacs: it ends up being MORE cruft than the current system. [17:37] eeemsi: hunterloftis: dont - security reasons [17:37] wdbl: you have a choice of how to name them... [17:37] isaacs: wdbl: not without a separate line where you assign it to a different var. [17:37] SQLServerIO: so I'm modeling a hierarchy. I'm currently using mongodb and the best method I've found basically duplicates data in each child node to store the parent and ancestor chain. Does redis handle this any better? [17:37] hunterloftis: eeemsi: The project is already on 0.4.11. It's an existing project. Thus, n [17:38] wdbl: @isaacs: that's node's limitation isn't it? [17:38] eeemsi: ok [17:38] isaacs: import Foo from foo as fooFoo; < var fooFoo = require('foo').Foo; [17:38] hunterloftis: eeemsi: I agree though the new branches are much nicer ;) [17:38] SubStack: isaacs: I know right? they call the magic to use a different export name "local renaming" [17:38] SubStack: what in the fucking fuck that is terrible [17:38] hunterloftis: eeemsi: But I do want to be able to go back and work on old stuff, haven't seen this error before with n [17:38] wdbl: @isaacs: to import 2 things and rename them in harmony, isn't it: import {xRenamed: x, yRenamed: y} from "foo.js" [17:39] isaacs: wdbl: i lost track of that spec. [17:39] isaacs: wdbl: it made me too sick to go on [17:39] AviMarcus_ has joined the channel [17:39] mAritz has joined the channel [17:40] wdbl: http://wiki.ecmascript.org/doku.php?id=harmony:modules_examples [17:40] hunterloftis: eeemsi: At some point we'll need to update to the latest stable branch [17:40] Sly__: I don't understand why they're trying to implement Java into Javascript, to put into browsers.. [17:40] Sly__: Can you say exploit much? [17:40] Sly__: Drive by download much? [17:40] eeemsi: hunterloftis: /usr/local/lib/node//request is that valid? [17:40] AvianFlu: if I wrote a blog post called "Things I'm glad I left in other languages", it would look a lot like harmony [17:40] wdbl: oh gimme a break dude. It's not Java [17:40] wdbl: that's such a lame complaint [17:40] wdbl: Java is Java [17:40] SubStack: AvianFlu: hahaha [17:40] eeemsi: hunterloftis: i mean especially the two / [17:40] hunterloftis: eeemsi: I'm guessing it's missing something at the // [17:40] CoverSlide: when harmony drops, let's start working on node.dart [17:40] Stephen: lol [17:41] wdbl: just because something has classes and a module system does not make it Java [17:41] dgathright has joined the channel [17:41] Sly__: wdbl, if they're not trying to implement Java -- why are they attempting to copy its syntax? [17:41] Sly__: Why not come up with something original? [17:41] Sly__: Something simplistic? [17:41] Stephen: It's the CoffeeScript "get rid of excess synatx" craze [17:41] wdbl: Sly__: what syntax? [17:41] Sly__: "import * from shit" [17:41] CoverSlide: LISP IS SUPERIOR TO [insert language here]!!! DISCUSS!!! [17:41] Sly__: etc. etc. [17:41] SubStack: Stephen: s/get rid of/invent even more/ [17:42] wdbl: Sly__: python has an import statement too [17:42] wdbl: Sly__: does that make python Java? [17:42] SubStack: I'm all for getting rid of syntax [17:42] wdbl: it's such a superficial argument, that the addition of a single keyword turns the whole language into Java [17:42] isaacs: wdbl: actually, there were some class proposals that looked quite nice. [17:43] eeemsi: hunterloftis: and n is what exactly? a npm or the alias for nodejs? [17:43] isaacs: wdbl: making javascript more like java actually doesn't bother me too much [17:43] isaacs: wdbl: language features need to be valued based on their merits. [17:43] isaacs: and this one sucks. [17:43] wdbl: me neither. the language needs some more standardized structuring. [17:43] Sly__: Erm. I never said that *one* keyword turned it into Java. I said that it seems they are trying to implement Java into Javascript with the methods they are introducing. [17:43] wdbl: Sly__: ok, what else? classes I presume? [17:43] hhutch has joined the channel [17:43] hunterloftis: eeemsi: It's a simple system for switching node versions, https://github.com/visionmedia/n [17:44] wdbl: lots of languages have classes [17:44] ericmuyser has joined the channel [17:44] eeemsi: hunterloftis: interesting - thanks for the link [17:44] dgathright has joined the channel [17:44] CoverSlide: javascript has too much class to have classes [17:44] Sly__: Fuck if I know. I don't care enough to sit here and look it up, because it'll probably never be released like it is. [17:44] hunterloftis: eeemsi: np [17:45] stonebranch has joined the channel [17:45] arduix has joined the channel [17:45] simb has left the channel [17:45] wdbl: if classes just ride on top of prototypical inheritance, wtf does anyone care. it amounts to a shortcut for doing what you're already doing. [17:45] CoverSlide: ES5 already addresses a lot of the need for classes [17:45] saurb has joined the channel [17:46] wdbl: oh no! don't add any keywords to my language because I like to do things the hard way! [17:46] Sly__: wdbl, you should probably look at https://spreadsheets.google.com/pub?key=pFIHldY_CkszsFxMkQOReAQ&gid=2 before you keep running your skid mouth. [17:46] gr-eg has joined the channel [17:46] Sly__: They're introducing a lot more than just what you've been focusing on for the past 20 minutes. [17:46] isaacs: Sly__: if anythign, there are different cohorts within tc39 warring over whether to turn javascript into something more like self, ruby, java, or c# [17:46] isaacs: or python [17:46] Sly__: ^ [17:46] Sly__: This. [17:47] Sly__: Which leads back to what I was saying originally, before some brat had to prove his worthiness.. [17:47] Sly__: Why? [17:47] CoverSlide: let's just turn javascript into AS3 [17:47] CoverSlide: e4x ftw! [17:47] wdbl: Sly__: right. and you kept complaining that Js is being turned into Java without even knowing why you were complaining about it because you gave one lousy example and then you had to look up the rest of your complaint somewhere. [17:47] kulor-uk has joined the channel [17:47] Sly__: wdbl, actually.. All it took was a quick Google search. I'm happy that you think it took me this long to look that up, though. [17:47] wdbl: oh and you linked to an ES4 worksheet [17:48] wdbl: which has been superseded by harmony [17:48] sh1mmer has joined the channel [17:48] gregpascale has joined the channel [17:48] jimmysparkle has joined the channel [17:48] SubStack: I'm just complaining that harmony modules are stupid [17:48] SubStack: also http://substack.net/images/dismantle_all_the_standards_bodies.png [17:49] boltR has joined the channel [17:49] Sly__: wdbl, how many of those methods do you see implemented in Javascript today? [17:49] ryan_stevens has joined the channel [17:50] Sly__: And are you in the TC39 committee? [17:50] CoverSlide: ES6 adoption will be worse than py3k [17:50] wdbl: Sly__: get to your point [17:50] CoverSlide: noone will fucking use it [17:50] maxogden: settle down children, its just javascript. p.s. once i fed brendan eich a corndog [17:50] CoverSlide: at least we can thank IE for something [17:51] benvie: there's some really amazing things in es6 no matter what you think of other stuff [17:51] CoverSlide: maxogden: i hope corndog is not a euphemism [17:51] wdbl: Sly__: please give us all the examples of how Js is becoming Java...I want to know why you think that. [17:51] maxogden: no i literally handed him a corndog and he ate it [17:51] CoverSlide: the good parts in ES6 i wouldn't call 'amazing', more like 'about fucking time' [17:51] wdbl: Sly__: so far, you've given one example. import. [17:52] Sly__: wdbl, point being: hit me up when you're part of the TC39 team and can say *FOR CERTAIN* that a feature is going to be implemented, before you start an entire argument in a channel about something that you aren't *SURE* is going to happen. [17:52] Sly__: And with that.. back to work I go. Have fun monologuing. <3 [17:52] CoverSlide: let's implement proxies ! oh fuck that, direct proxies now ! [17:52] wdbl: Sly__: I didn't start any arguments! I asked you to backup your complaint and you can't! [17:52] jhbot: 'Expose command or shell script as a webservice' by d135-1r43 http://stackoverflow.com/q/9316387 (tags: java, ruby, web-services) [17:53] AvianFlu: everybody shut up about other people's dumb ideas and go answer that stackoverflow question [17:53] AvianFlu: I haven't read the question but it's a new topic so GO GO GO [17:54] CoverSlide: wow he really wants other people to fuck up his machine [17:56] isaacs: Sly__, wdbl: this is a pointless debate. [17:56] ts___: is it possible to communicate with some code executed in the node vm module ? [17:56] markdaws has joined the channel [17:56] isaacs: ts___: you can share some global objects with it [17:56] wdbl: @isaacs: 1) it's no big deal, we STFU now :) 2) I wasn't debating. I was asking why he kept saying "they're turning it into Java!" like the sky was falling or something [17:56] ts___: so i can pass a callback to the vm [17:56] einaros: 'this is a pointless debate' easily sums up the last 17 years of IRC [17:57] jamesbathgate has joined the channel [17:57] ts___: and the code inside can give me some objects ? [17:57] wdbl: alright, I do apologize for using forceful words. [17:57] isaacs: ts___: yeah [17:57] ts___: isaacs: cool thanks [17:57] isaacs: wdbl: thanks :) [17:57] tommyvyo has joined the channel [17:57] isaacs: by the way, dno't worry. javascript as-it-is will work forever. [17:57] isaacs: tc39 can't steer the course of the web without losing it. [17:58] adamkittelson has joined the channel [17:58] isaacs: if it ever turns out that harmony modules are good for node, of course we'll use them, but... meh. doubtful. [17:58] SubStack: harthur: ff should fix sourceURL so my crazy experiments work better https://twitter.com/#!/gozala/status/170202961119690753 [17:58] StanlySoManly has joined the channel [17:59] kirbysay_ has joined the channel [17:59] saurb has joined the channel [17:59] level09 has joined the channel [18:00] SubStack: totally a dev tooling issue and everything! [18:00] slickplaid: I'm having an error when using mranney's node_redis module. Anyone have any suggestions or an idea on why it won't work? https://gist.github.com/1846735 [18:00] xaq has joined the channel [18:00] mekwall has joined the channel [18:01] einaros: *moan*, the websocket rfc's abnf for extensions isn't very javascript friendly .. extension-param = token [ "=" (token | quoted-string) ] [18:01] adammokan has joined the channel [18:01] harthur: SubStack: fix it yourself, it's open source gosh! [18:02] slickplaid: Not sure if there's something special I need to do to make Node/node_redis use an alternate interface or not. [18:02] SubStack: haha [18:02] arduix has joined the channel [18:02] randylien has joined the channel [18:02] jdeibele has joined the channel [18:02] bbbb: would be nice if AST was available in v8... but thats not in the harmony proposal is it, just the Mozilla reflect thing right? [18:03] SubStack: bbbb: you can do that in user space [18:03] benvie: v8 has an ast internally that could be exposed with a c++ module [18:04] robotmay has joined the channel [18:04] SubStack: it probably super sucks [18:07] bbbb: SubStack, can, but loading it up non-snapshotted and reparsing afterward makes me a sad panda [18:07] pyrotechnick has joined the channel [18:07] booyaa|hs: man i've had a rocking day, but rocking i mean shit [18:07] fwg has joined the channel [18:09] alek_b has joined the channel [18:09] margle has joined the channel [18:10] jmar777 has joined the channel [18:11] mAritz has joined the channel [18:11] kulor-uk has joined the channel [18:12] JohnFoo has joined the channel [18:12] carlyle has joined the channel [18:12] cpetzold has joined the channel [18:13] JohnFoo: Hello everyone. I'm on my "learning curve" and go up and up... but... Some question: [18:14] JohnFoo: If I export only an object, is there a way I can create a new object direct through require?? like: myobj = new require('mod')(); or something? [18:14] wink_ has joined the channel [18:14] eignerchris has joined the channel [18:14] lperrin has joined the channel [18:15] gf3 has joined the channel [18:15] benvie: myobj = new (require('mod')) [18:15] jmar777 has joined the channel [18:15] benvie: or myobj = new (require('mod')(param1, param2, )) [18:16] benvie: er [18:16] benvie: myobj = new (require('mod'))(param1, param2) [18:16] Phoenixz has joined the channel [18:16] SubStack: JohnFoo: you can export a function instead [18:16] SubStack: module.exports = function () { return obj } [18:17] SubStack: I do that pretty much all the time [18:17] BrianE: *All* the time? You never sleep?! [18:17] SubStack: YES [18:17] reid has joined the channel [18:17] Stephen: That's how he functions [18:18] Stephen: objectively [18:18] Stephen: objectivly [18:18] Stephen: You were sticking your object in the functionality [18:19] stagas has joined the channel [18:19] enmand has joined the channel [18:19] dgathright has joined the channel [18:19] illourr has joined the channel [18:20] franciscallo has joined the channel [18:20] jmar777 has joined the channel [18:21] st_luke has joined the channel [18:21] sarlalian has joined the channel [18:22] JohnFoo: SubStack: Thank you... I'll try... [18:22] Phoenixz: console.log('cccccccccccccccccccccccccccccccccccccccccc'); [18:22] Phoenixz: errrrr [18:22] Phoenixz: does fs.mkdirSync() make the entire path? so if only /a exists,. and I fs.mkdirSync('/a/b/c'). will it create the complete path? [18:22] Phoenixz: that :) [18:22] johnmdonahue has joined the channel [18:23] tomasztomczyk has joined the channel [18:23] avalanche123 has joined the channel [18:24] ohtogo has joined the channel [18:24] TooTallNate has joined the channel [18:24] thinkjson has left the channel [18:25] rauchg has joined the channel [18:25] dshaw_ has joined the channel [18:25] bbbb: Phoenixz, nope there is a mkdirp module though [18:26] booyaa has joined the channel [18:27] te-brian has joined the channel [18:28] johnmdonahue has joined the channel [18:29] antono has joined the channel [18:29] hotchkiss has joined the channel [18:29] simenbrekken has joined the channel [18:32] kmiyashiro has joined the channel [18:33] patcito has joined the channel [18:34] lohkey has left the channel [18:36] bizniz98 has joined the channel [18:36] snearch has joined the channel [18:36] _baton_ has joined the channel [18:36] lohkey has joined the channel [18:36] Phoenixz: bbbb: Ah well.. Thanks! Already made my own implementation,, [18:36] Morkel has joined the channel [18:37] samsonjs has joined the channel [18:37] Planet_EN has joined the channel [18:38] Planet_EN: Is recursive timeout better than for-loop for performance critical applications?? [18:38] bbbb: ? [18:38] context: what [18:41] Planet_EN: recursive time out something where you do setTimeout(callback, 0) with callback having a terminating condition compared to a for loop [18:41] napperjabber_ has joined the channel [18:42] jxson has joined the channel [18:42] bizniz98 has joined the channel [18:42] chapel: Planet_EN: depending on what you are doing, it can keep the event loop going [18:42] cam|work: what is a procfile [18:43] dnyy has joined the channel [18:43] Planet_EN: No, there can be terminating condition inside the callback function [18:44] gaarf has joined the channel [18:44] bizniz98 has joined the channel [18:44] Vespakoen has joined the channel [18:44] dgathright has joined the channel [18:44] mikeal has joined the channel [18:44] bbbb: cam|work, heroku config http://devcenter.heroku.com/articles/procfile [18:45] alindeman has joined the channel [18:45] EhevuTov has joined the channel [18:48] aaronpeterson has joined the channel [18:48] igl1 has joined the channel [18:48] aaronpeterson has left the channel [18:48] gaarf:  [18:48] sinofer has joined the channel [18:49] stagas: Planet_EN: you can try http://github.com/stagas/nexttick for stuff like that, it abstracts conditionals, for loops etc with process.nextTick() [18:50] Planet_EN: awesome [18:50] stagas: you also get an exit() thing which is like break [18:51] stagas: and a .then() for doing something afterwards [18:52] riven has joined the channel [18:52] riven has joined the channel [18:52] Planet_EN: stagas: huh? [18:53] wankdanker has joined the channel [18:53] Planet_EN: if you're writing to redis and you want the event to be triggered as soon as you receive data from server request, do you have to make your own event? [18:54] bizniz98 has joined the channel [18:55] indexzero has joined the channel [18:55] shanem has joined the channel [18:56] isao has joined the channel [18:58] johnhamelink has joined the channel [18:59] maxogden: SubStack: dude https://github.com/substack/wreq/blob/master/wreq.js is a piece of art [18:59] stisti has joined the channel [19:00] jergason has joined the channel [19:00] josh-k has joined the channel [19:01] Vespakoen has joined the channel [19:04] simoon has joined the channel [19:05] boltR has joined the channel [19:05] munro has joined the channel [19:07] SubStack: maxogden: that's just the browserified build [19:07] `3rdEden has joined the channel [19:07] SubStack: my compile-less browser-side require() system uses browserify to build itself bwahaha [19:08] enmand has joined the channel [19:09] SubStack: maxogden: this part is what gets compiled https://github.com/substack/wreq/blob/master/src/entry.js [19:09] enmand has joined the channel [19:09] maxogden: oh, less impressed [19:09] maxogden: carry on [19:11] dscape: rauchg: yt? [19:11] kevwil has joined the channel [19:11] tommyvyo has joined the channel [19:12] astropirate has joined the channel [19:13] arduix has joined the channel [19:14] Venom_X has joined the channel [19:14] TXH350 has joined the channel [19:14] gr4yscale has joined the channel [19:16] tkaemming has joined the channel [19:16] langworthy has joined the channel [19:18] insin has joined the channel [19:19] pizthewiz has joined the channel [19:20] pig_ has joined the channel [19:20] CarterL has joined the channel [19:20] CIA-74: node: 03Bert Belder 07reviewme * r9364699 10/ src/node.cc : [19:20] CIA-74: node: Revert "Windows: support non-ansi command line arguments" [19:20] CIA-74: node: CommandLineToArgvW doesn't behave exactly the same as the crt, which makes it useless. [19:20] CIA-74: node: This reverts commit ef032cbe85b46584304c665b539b4f7561c4c26c. - http://git.io/ZzgDPg [19:20] CIA-74: node: 03Bert Belder 07reviewme * rd23e86b 10/ (node.gyp src/node_main.cc): Windows: another attempt to support unicode argv - http://git.io/QJNikw [19:20] tomtomaso has joined the channel [19:21] divoxx has joined the channel [19:21] tomtomaso has joined the channel [19:22] __user has joined the channel [19:22] i42n has joined the channel [19:24] johnhamelink has joined the channel [19:24] isaacs has joined the channel [19:26] jimmysparkle has joined the channel [19:27] orlandovftw has joined the channel [19:27] hipertracker has joined the channel [19:28] madhums has joined the channel [19:29] tylerstalder has joined the channel [19:29] vdemedes has joined the channel [19:31] maxogden: SubStack: but wreq might not work in crappy browsers! oh noes! [19:32] dwhittle has joined the channel [19:33] Planet_EN: just in case if anyone's interested: http://jsperf.com/javascript-map-vs-jquery-map-vs-jquery-each [19:33] astropirate_ has joined the channel [19:33] SubStack: maxogden: yeah somebody can send me a pull request if they want to fix that [19:34] Geeknux has joined the channel [19:34] hij1nx_ has joined the channel [19:34] maxogden: SubStack: i only use enterprise ready libraries [19:34] djbell has joined the channel [19:35] SubStack: it also comes bundled with all of uglify-js [19:35] SubStack: in the browser build [19:35] SubStack: BECAUSE IT NEEDS IT IS WHY [19:35] cris_ has joined the channel [19:39] larsschenk1 has joined the channel [19:39] ekryski has joined the channel [19:39] RobWC has joined the channel [19:40] joshontheweb has joined the channel [19:42] RobWC1 has joined the channel [19:42] elijah-mbp has joined the channel [19:42] chorrell has joined the channel [19:45] chrisdickinson: SubStack: +1 on wreq. [19:46] pendlepa_ has joined the channel [19:46] slickplaid: Can someone help me track down why req.session is coming up undefined? https://gist.github.com/1847141 [19:46] chrisdickinson: (i really hope the module syntax additions are dropped.) [19:47] slickplaid: Relatively certain it has something to do with how I'm passing options to RedisStore on bootApplication.js@L19 https://gist.github.com/1847141 [19:47] spolu has joined the channel [19:48] larsschenk1 has left the channel [19:48] slickplaid: not sure how else to pass the options though https://github.com/visionmedia/connect-redis/blob/master/lib/connect-redis.js#L42 [19:49] dennisjbell has joined the channel [19:49] slickplaid: Anyone? [19:50] wink__ has joined the channel [19:50] stonebranch has joined the channel [19:50] tiglionabbit has joined the channel [19:51] dscape: slickplaid: try #express maybe? [19:51] djbell_away has joined the channel [19:51] dscape: ahah you are already there [19:51] dscape: :) [19:51] slickplaid: :) [19:52] dscape: sorry idk. wish i could help [19:52] nayarb has joined the channel [19:52] slickplaid: I'm pretty sure it's because I'm passing the result of the function rather than the function itself to express.session() [19:52] slickplaid: just not sure how to pass the options to RedisStore without doing that [19:53] jhbot: 'MongoDB count collection Node.js' by MrJaeger http://stackoverflow.com/q/9318086 (tags: mongodb) [19:54] robotmay has joined the channel [19:54] jhbot: 'Paginate embedded field with mongoose' by thedjpetersen http://stackoverflow.com/q/9318109 (tags: mongodb, mongoose) [19:55] indexzero has joined the channel [19:56] AndreasMadsen has joined the channel [19:59] CIA-74: node: 03Bert Belder 07reviewme * rd52f502 10/ (node.gyp src/node_main.cc): Windows: another attempt to support unicode argv - http://git.io/G1DPGw [19:59] CIA-74: node: 03Bert Belder 07reviewme * r67c76f5 10/ (src/node.cc src/platform_win32.cc): Make win32 ansi api usage explicit - http://git.io/rbE42Q [19:59] stisti_ has joined the channel [20:01] socketio\test\08 has joined the channel [20:01] warz: im always amazed when things seem to work, haha. [20:01] ryan_stevens has left the channel [20:01] xaq has joined the channel [20:01] AvianFlu has joined the channel [20:01] dannyamey has joined the channel [20:01] warz: starting like, 3 months ago, i was asked to write some thing at work to bridge this web app we host and a custom rdp-based file viewer we wanted to supliment it with. [20:02] herbySk has joined the channel [20:02] warz: so i wrote a web app with nodejs and i feed it custom session ids, using some js and ajax that i put into the web app. [20:02] warz: generate and send them an .rdp file that points them to our remote app rdp sessions. [20:02] dshaw_ has joined the channel [20:02] warz: todays the first day theyre using it, and it seems to be going well. haha. [20:03] warz: getting like 10 requests a second, anyways. :p [20:03] dshaw_1 has joined the channel [20:04] stisti_: warz: Congrats [20:04] EhevuTov: Can anyone recommend a http benchmark program similar to 'ab' for Mac OS X? [20:04] CoverSlide: warz: geeklist it [20:04] astropirate: EhevuTov: whats wrong for ab? [20:04] creationix has joined the channel [20:04] CoverSlide: ab is shite [20:05] hunterloftis has joined the channel [20:05] creationix: SubStack, ping [20:05] EhevuTov: astropirate, I think it's broke for my mac and I hear it's not the best [20:05] astropirate: lolol [20:05] astropirate: ok [20:05] saurb1 has joined the channel [20:06] EhevuTov: astropirate, I use homebrew package system and would like something in that, but I'm not finding anything in search (I try to stick with some type of package management system [20:06] gr4yscale has joined the channel [20:06] stisti_: Why do you think it is broke? [20:07] EhevuTov: stisti_, I get connection issues. It seems intermittent at times as well [20:08] EhevuTov: ?as if it improperly interacts with system calls for file descriptors [20:08] SubStack: creationix: beep boop [20:08] mcluskydodallas has joined the channel [20:09] creationix: SubStack, I need to make something like dnode and for once I don't want to re-invent the wheel [20:09] creationix: but dnode out of the box doesn't fit my needs [20:09] SubStack: creationix: what are your needs? [20:09] CoverSlide: dluvit? [20:09] stisti_: ab has been there a lot longer than node [20:10] creationix: SubStack, actually dnode-protocol is pretty close, I have a custom transport [20:10] SubStack: aha [20:10] creationix: but I need binary data [20:10] jergason has joined the channel [20:10] stisti_: EhevuTov: You on mac? [20:10] EhevuTov: stisti_ yes [20:10] CoverSlide: can dnode do binary strings? [20:10] creationix: json can't do binary [20:10] SubStack: creationix: dnode-protocol intentionally doesn't do JSON [20:10] CoverSlide: buffers i would assume are out of the question [20:11] creationix: ok, so json isn't part of the core protocol then [20:11] SubStack: oh wait it does [20:11] stisti_: EhevuTov: ab has worked for me on mac [20:11] SubStack: but it's in a very specific place [20:11] SubStack: that you can probably swap out [20:11] creationix: well, either way, I write a pure-js msgpack encoder/decoder [20:11] EhevuTov: BSON [20:11] SubStack: sure [20:11] CoverSlide: use redis protocol [20:11] creationix: it supports everything json does plug undefined and buffers [20:11] creationix: s/plug/plus/ [20:11] stisti_: EhevuTov: But if you find something better, i would be interested too [20:12] insin: last night, I dreamt I invented a module format that had the capabilities of AMD and wasn't butt-ugly. Cruel coding brain :/ [20:12] creationix: SubStack, my real problem is things like preserving the "this" value for remote functions [20:12] stisti_: We use a commercial tool called Neoload at work [20:12] creationix: I want to be able to send over an object and call methods on it [20:12] EhevuTov: stisti_ Ok, I haven't all morning. I saw posts of others having issues and they upgraded from source (but come on, that should be updated my Apple by now I'd think) [20:12] creationix: not just functions [20:12] CoverSlide: where's the source you bastards? [20:13] SubStack: creationix: the folks at koding wrote a module for that [20:13] djbell has joined the channel [20:13] creationix: https://github.com/creationix/msgpack-js btw [20:13] creationix: SubStack, koding? [20:14] SubStack: https://kodingen.com/ [20:14] SubStack: trying to find it [20:14] artusrocha has joined the channel [20:15] creationix: SubStack, heh, their product is like the one I'm working on. I'll bet it's a real good fit [20:15] SubStack: haha yeah [20:15] creationix: I'm working on remote control of vps boxes from a developer environment [20:16] markbao has joined the channel [20:16] artusrocha has joined the channel [20:16] markbao: regarding the "the sys module is now called util" deprecation warning: is that being outputted to STDERR? [20:17] muk_mb has joined the channel [20:17] CoverSlide: yup [20:17] CoverSlide: node -e "require('sys')" 2> /dev/null [20:17] aaronmcadam has joined the channel [20:17] markbao: CoverSlide: thanks! is there any way to hide those? [20:17] markbao: really screwing with my Jenkins script [20:17] TooTallNate: markbao: fix the module [20:17] CoverSlide: yeah, don't use sys [20:17] CoverSlide: don't rely on npm for deployment [20:18] SubStack: creationix: hmmm I'm not finding it [20:18] markbao: so basically freeze the module and fix the sys [20:18] marvin_ has joined the channel [20:18] markbao: thanks! [20:18] EhevuTov: markbao, something like 'node myapp.js 2> /dev/null' ? Just don't require sys though, really [20:18] isaacs: markbao: either use an older version of node, or use modules that don't use deprecated features. [20:18] markbao: EhevuTov: it's in another module other than mine - redis, to be exact [20:19] SubStack: creationix: one trick you can do is just to this.foo = this.foo [20:19] orkuz has joined the channel [20:19] ovaillancourt has joined the channel [20:19] CoverSlide: umm the latest redis should be up-to-date [20:19] isaacs: markbao: pay attention to that warning, though. sys will be gone soon. [20:19] EhevuTov: markbao, I'm having those issues too. Glad you brought it up [20:19] SubStack: which will make foo enumerable because it won't live on the prototype anymore [20:19] CoverSlide: unless you're using the old old old node_redis [20:19] markbao: isaacs: noted. thank you. [20:20] xaq has joined the channel [20:20] creationix: SubStack, so dnode-protocol creates bound versions of the functions when it serializes them? [20:20] creationix: and only on own and enumerable properties [20:21] mraleph has joined the channel [20:21] ashishg: i love node.js [20:21] SubStack: I don't think it binds this [20:21] ashishg: not i gotta get back to work [20:21] SubStack: that is something you could test though [20:21] ashishg: my love for node? [20:21] isaacs: ashishg: thanks :) [20:21] isaacs: ashishg: maybe you need a job where you work on node [20:22] ashishg: i do [20:22] isaacs: oh, awesome, then :) [20:22] ashishg: i mean it's not our primary environment [20:22] ashishg: but there's stuff [20:22] isaacs: kewl [20:22] ashishg: we use up to make sure things stay up [20:22] CoverSlide: i use viagra for that [20:22] isaacs: where do you work? [20:22] ashishg: isaacs: at a start up at NYC [20:23] isaacs: nce [20:23] maxogden: ACTION discourages sexist jokes in already male dominated irc channels [20:23] CoverSlide: there's nothing sexist in what I said [20:23] isaacs: ACTION here we go... [20:23] maxogden: ACTION used the word sexist wrong but you know what i mean [20:23] ashishg: isaacs: so yeah, maybe - with the nature of how start ups are - may end up looking for a job down the road [20:24] isaacs: ashishg: heh. well, good luck! [20:24] jamund has joined the channel [20:24] ashishg: CoverSlide: :o [20:24] ashishg: CoverSlide: maybe that's a nice name i can use somewhere maybe... hmm [20:25] CoverSlide: haha that'd be a great! [20:25] CoverSlide: although cialis sounds better [20:25] ixti has joined the channel [20:26] CoverSlide: cialis - keeps your server up [20:27] isaacs: (only for 24-36 hours, though, and if it stays up for more than 4 hours continuously, see a doctor immediately) [20:27] michaelhartau has joined the channel [20:27] norviller has joined the channel [20:28] jmar777 has joined the channel [20:29] jer0me has joined the channel [20:29] zeade has joined the channel [20:30] khrome has joined the channel [20:30] ashishg: :D [20:31] orkuz: when I run a simple node.io scripts, node exits without any errors or output [20:31] orkuz: what could be the problem? [20:31] orkuz: i'm on windows 7 [20:31] roadt has joined the channel [20:31] marvin_ has joined the channel [20:31] CoverSlide: node.io? [20:31] EhevuTov: orkuz, could you pastbin what scripts? [20:31] orkuz: module [20:32] orkuz has left the channel [20:32] orkuz has joined the channel [20:32] orkuz: ok. sec [20:32] marvin_ has joined the channel [20:32] levi501d has joined the channel [20:32] CoverSlide: yuck [20:32] briancray has joined the channel [20:32] CoverSlide: if you want scraping, use nom [20:32] roadt has joined the channel [20:32] konobi: ircretary: when was caolanm last here? [20:32] ircretary: konobi: caolanm was last seen at 2012-02-16T08:07:16.309Z, joining #Node.js [20:32] kevwil has joined the channel [20:33] marvin_ has joined the channel [20:33] orkuz: http://pastebin.com/55e8KPvM [20:33] tommyvyo has joined the channel [20:34] adrianF has joined the channel [20:34] konobi: sugyan: you added the tap reporter for nodeunit, right? [20:34] ryan_stevens has joined the channel [20:34] stisti_ has joined the channel [20:34] dve has joined the channel [20:34] bj0rn2 has joined the channel [20:34] CIA-74: node: 03Bert Belder 07reviewme * r045b19e 10/ (src/node.cc src/platform_win32.cc): [20:34] CIA-74: node: Make win32 ansi api usage explicit [20:34] CIA-74: node: Use widechar versions in a couple of places. [20:34] CIA-74: node: Don't use C-style cast in C++ code. - http://git.io/XywAnA [20:35] localhost has joined the channel [20:35] orkuz: CoverSlide, where can I find this nom [20:35] orkuz: google doesnt help [20:35] CoverSlide: npm install nom [20:35] rauchg has joined the channel [20:35] orkuz: any documentation? [20:35] EhevuTov: orkuz, do you need 'keyword' to be set to run that function? [20:35] QaDeS has joined the channel [20:35] orkuz: no. [20:35] marvin_ has joined the channel [20:36] spolu has joined the channel [20:36] orkuz: it was in the example [20:36] EhevuTov: oh it's literally the name of the func [20:37] bj0rn2: I'm running a script containing console.log("hello world"); with node but nothing happens... this is in ubuntu in a terminal. what could be going on?! [20:37] EhevuTov: orkuz, what are you expecting the output to be [20:37] Skaag has joined the channel [20:37] CoverSlide: !npm nom [20:38] bj0rn2: oh god.. I've been editing the wrong js file for an hour and just realized it. *embarrased* [20:38] ashishg: nom? is there a github page or other documentation? [20:38] CoverSlide: https://github.com/MatthewMueller/nom [20:38] CoverSlide: and https://github.com/MatthewMueller/cheerio [20:39] CoverSlide: for the cheerio api [20:39] orkuz: EhevuTov, anything.. [20:39] orkuz: should be body of that site [20:39] orkuz: at least an error or smth [20:39] EhevuTov: orkuz, unless I'm missing something, I don't think it outputs to console [20:40] EhevuTov: orkuz, I'm new so I might be, but it looks like all it does is scrape that site, store the result and then admit an event. I don't see anything for stdout [20:40] WeeJeWel has joined the channel [20:40] lz: anyone know how to [20:40] lz: route all requests to a single file [20:40] ashishg: interesting [20:40] lz: using express/connect? [20:41] ashishg: didn't know about it. i build my own using libxmljs [20:41] ashishg: o' well [20:41] orkuz: EhevuTov, changet emit to console.log [20:41] orkuz: still nothing [20:41] orkuz: *changed [20:41] paulwe has joined the channel [20:41] ashishg: (that was in response to nom CoverSlide) [20:42] Wizek has joined the channel [20:42] EhevuTov: orkuz, console.log ("HI") doesn't work either [20:42] dgathright_ has joined the channel [20:42] CoverSlide: node is nearly to the point where external C dependencies are unnecessary [20:42] aheckmann has joined the channel [20:43] spolu has joined the channel [20:43] orkuz: EhevuTov, console.log works in global scope, but not in 'run' function [20:44] EhevuTov: orkuz, correct [20:44] kriszyp has joined the channel [20:45] astropirate has joined the channel [20:46] lamby0102_ has joined the channel [20:48] mikeal has joined the channel [20:48] xaq has joined the channel [20:50] lperrin has joined the channel [20:51] orkuz: EhevuTov, CoverSlide thanks [20:51] orkuz: i'll use nom [20:51] orkuz: =) [20:51] EhevuTov: orkuz, are you sure you need the 'run' [20:51] Stephen_ has joined the channel [20:51] domo1 has joined the channel [20:51] johnmdonahue: lz: app.all('*', function (req, res) {}) [20:52] domo1: what's the best/standard way to run a node.js server as a daemon and restart on crash? [20:52] lohkey has joined the channel [20:52] lz: johnmdonahue what about serving to a single static file? [20:52] jhbot: 'Serving non-standart HTTP method with ExpressJS' by Pierre Buyle http://stackoverflow.com/q/9318837 (tags: http, expressjs) [20:52] lamby0102 has joined the channel [20:52] lz: connect.static() only serves directories [20:53] lz: domo1 I use cluster [20:53] EhevuTov: orkuz, node.io hasn't been updated for 3 months. That's kind of a long time for a node lib [20:53] johnmdonahue: lz: app.all('*', function (req, res) { res.render('index.jade', { title: "Page" }); }); [20:54] johnmdonahue: lz: oh static [20:54] lz: ayup :) [20:54] johnmdonahue: lz: you could redir? [20:54] johnmdonahue: lz: to a public static [20:54] lz: that's an interesting idea [20:54] lz: I'll give it a shot [20:55] lz: actually wait I can't do that [20:55] pixel13 has joined the channel [20:55] lz: I need to retain the url [20:55] lz: this is for a pushstate based backbone app [20:55] lz: I want every route to deliver the backbone app [20:55] bj0rn2 has left the channel [20:56] johnmdonahue: lz: ahh [20:56] lz: I might just have to fs.readfile into memory and serve that copy in the app.get('*' ... [20:56] domo1: lz: anything a little less feature rich? [20:56] redir has joined the channel [20:57] danielfuzz has joined the channel [20:57] pixel13 has left the channel [20:57] johnmdonahue: lz: are there performance issues in just rendering index.js each time? [20:57] lz: domo1 not that I know of, cluster is really good. the closest things I know are only supervisors that reload your app when you edit some code [20:58] johnmdonahue: +1 on node-supervisor: https://github.com/isaacs/node-supervisor [20:58] danielfuzz has left the channel [20:58] lz: johnmdonahue there shouldn't be, it would be cashed in memory [20:58] johnmdonahue: lz: yeah so that would work no? [20:58] vguerra has joined the channel [20:59] lz: johnmdonahue yea it should, just wanted to check if there was a built-in way to do it [21:00] lz: thanks for the help! [21:00] johnmdonahue: lz: gotcha [21:00] cam|work: anytime [21:00] johnmdonahue: np [21:01] lz: ACTION does a little dance [21:02] catshirt has joined the channel [21:02] pizthewiz_ has joined the channel [21:02] harthur has joined the channel [21:03] jscheel has joined the channel [21:03] jscheel has joined the channel [21:06] Sami_ZzZ has joined the channel [21:06] roadt has left the channel [21:07] bbttxu_ has joined the channel [21:07] nicholasf has joined the channel [21:08] piscisaureus_ has joined the channel [21:08] Skola has joined the channel [21:08] boltR has joined the channel [21:09] Galaxor has joined the channel [21:10] Determinist has joined the channel [21:11] torgeir has joined the channel [21:12] c4milo has joined the channel [21:12] jhbot: 'node.js + postgres transaction management' by Jake http://stackoverflow.com/q/9319129 (tags: sql, postgresql, transactions) [21:13] lamby0102: anyone else getting an error running this?: npm install formidable@latest [21:13] gr4yscale has joined the channel [21:13] rtgibbons has joined the channel [21:13] EhevuTov: lamby0102, no [21:14] zomg: Anyone encountered any issues with Winston logging not working properly? [21:14] zomg: I'm not 100% sure but it looks like it's not writing to the log file even though it should be.. [21:14] EhevuTov: what gets returned when you do 'npm -v' [21:14] lamby0102: 1.1.0-3 [21:15] EhevuTov: lamby0102, do 'npm install npm' [21:15] EhevuTov: lamby0102, also, what's your error msg [21:15] EhevuTov: lamby0102, oops [21:15] EhevuTov: lamby0102, actually it's 'npm install npm -g' [21:15] domo1 has left the channel [21:16] lamby0102: i got the message 'failed to fetch from registry: npm' looks like i might need to configure npm to use aproxy... [21:16] pimperle has left the channel [21:16] EhevuTov: lamby0102, yeah, you probably have a connection issue [21:17] cam|work: so what's the deal with using heroku? I put my app on there but when i visit the url it doesn't seem to be working [21:17] EhevuTov: lamby0102, and I did it just fine, so it's most likely something on your end, like a proxy issue [21:17] cam|work: i know the process is running [21:17] Galaxor: Is there a framework for node that takes care of regular web-app stuff? Like, a stock way to handle user self-registration and login and stuff like that? [21:18] Galaxor: People say that express is very popular, but that still looks pretty low-level. [21:18] CIA-74: node: 03Bert Belder 07reviewme * r66438e9 10/ (src/node.cc src/platform_win32.cc): [21:18] CIA-74: node: Make win32 ansi api usage explicit [21:18] CIA-74: node: Use widechar versions in a couple of places. [21:18] CIA-74: node: Don't use C-style cast in C++ code. - http://git.io/NVRIkg [21:18] lamby0102: thanks. i just got it to work using 'npm install formidable -g —proxy http://myproxy.com:80' thankms EhevuTov! [21:19] gagarine has joined the channel [21:19] EhevuTov: lamby0102, awesome. looks like you did most the work. Make sure you don't have npm in your ./node_modules if you ran that first command I gave you(it was wrong). It might cause adverse issues [21:20] Sami_ZzZ has joined the channel [21:20] jgornick has joined the channel [21:20] base698 has joined the channel [21:20] lamby0102: i dont have it there since it failed due to not having the proxy when running that command [21:22] badgerRap has joined the channel [21:22] EhevuTov: lamby0102, oh cool. :-P [21:24] Geeknux has joined the channel [21:24] EhevuTov: Galaxor, I don't know of any to that stage yet. Most of the frameworks out there have helper middleware to do it, but nothing to my knowledge that builds the HTML views for you, etc. [21:24] salva has joined the channel [21:24] tommyvyo has joined the channel [21:24] lohkey_ has joined the channel [21:25] mikeal has joined the channel [21:25] tilgovi has joined the channel [21:25] mateodelnorte has joined the channel [21:26] closure000 has joined the channel [21:26] stisti_ has joined the channel [21:26] mateodelnorte: anybody have experience using node-amqp for topic based exchange messaging? [21:27] zomgbie has joined the channel [21:28] Skaag has joined the channel [21:29] CIA-74: node: 03Bert Belder 07v0.6 * r9364699 10/ src/node.cc : [21:29] CIA-74: node: Revert "Windows: support non-ansi command line arguments" [21:29] CIA-74: node: CommandLineToArgvW doesn't behave exactly the same as the crt, which makes it useless. [21:29] CIA-74: node: This reverts commit ef032cbe85b46584304c665b539b4f7561c4c26c. - http://git.io/ZzgDPg [21:29] CIA-74: node: 03Bert Belder 07v0.6 * rd52f502 10/ (node.gyp src/node_main.cc): Windows: another attempt to support unicode argv - http://git.io/G1DPGw [21:29] CIA-74: node: 03Bert Belder 07v0.6 * r8f2694b 10/ (src/node.cc src/platform_win32.cc): [21:29] CIA-74: node: Make win32 ansi api usage explicit [21:29] CIA-74: node: Use widechar versions in a couple of places. [21:29] CIA-74: node: Don't use C-style cast in C++ code. - http://git.io/54sxOw [21:30] EhevuTov: Cool, Dojo 1.7.2 was just released with official Node 0.6 support in the Dojo build system [21:30] EhevuTov: http://dojotoolkit.org/blog/dojo-1-7-2-released [21:31] KiNgMaR: train huh? can't we have a rocket or something? :( [21:32] EhevuTov: KiNgMaR, http://turtlerocket.nodejitsu.com/img/turtle.png [21:32] KiNgMaR: close enough [21:33] slloyd has joined the channel [21:33] parshap has joined the channel [21:34] criswell has joined the channel [21:35] retornam has joined the channel [21:37] dgathright_ has joined the channel [21:38] aristidesfl has joined the channel [21:38] tmcw has joined the channel [21:38] WeeJeWel has joined the channel [21:38] socketio\test\88 has joined the channel [21:39] mAritz has joined the channel [21:41] a_meteorite has joined the channel [21:42] divoxx has joined the channel [21:43] cpetzold_ has joined the channel [21:44] torgeir has left the channel [21:45] vguerra has joined the channel [21:46] svitor has joined the channel [21:47] joshfinnie has joined the channel [21:47] svitor has left the channel [21:49] dinarcon has joined the channel [21:49] [[zzz]] has joined the channel [21:50] mAritz has joined the channel [21:50] closure000 has left the channel [21:55] jergason has joined the channel [21:56] diminoten: nide worth it? [21:56] AvianFlu has joined the channel [21:57] hij1nx_ has joined the channel [21:59] EvRide1 has joined the channel [22:00] hipertracker has joined the channel [22:00] akiva_ has joined the channel [22:00] diogogmt has joined the channel [22:00] akiva_ has left the channel [22:03] mxbtty has joined the channel [22:03] lamby0102: thats an awesome graphic. ad my new wallpaper [22:03] isao has joined the channel [22:03] cris_ has joined the channel [22:05] xaq has joined the channel [22:06] erichynds has joined the channel [22:06] plutoniix has joined the channel [22:07] Tatort79 has joined the channel [22:07] bicranial has joined the channel [22:08] voodootikigod has joined the channel [22:09] hipertracker has joined the channel [22:09] tylerstalder has joined the channel [22:11] jakehow has joined the channel [22:12] pixel4 has joined the channel [22:13] pixel4: is anyone looking for a JS job in SF bay area? [22:13] pizthewiz has joined the channel [22:13] CIA-74: node: 03Ben Noordhuis 07v0.6 * r2c07712 10/ (lib/http.js test/simple/test-http-server-multiheaders.js): http: allow multiple WWW-Authenticate headers - http://git.io/_Gnk3w [22:13] CIA-74: node: 03einaros 07v0.6 * r83fd1c1 10/ (lib/http.js test/simple/test-http-server-multiheaders.js): Add WebSocket RFC6455 multiheader fields to the http parser. - http://git.io/WcA83w [22:13] Axsuul has joined the channel [22:14] eb4890 has joined the channel [22:16] themiddleman_itv has joined the channel [22:16] arcanis: what is a 'splice' in uglifyjs ? [22:16] tommyvyo has joined the channel [22:19] rtgibbons has joined the channel [22:20] strmpnk has joined the channel [22:21] level09 has joined the channel [22:22] level09: I'm looking for examples of how to configure haproxy to balance many node instances [22:22] level09: any recommendations ? [22:23] robhawkes has joined the channel [22:24] ixti has joined the channel [22:24] pixel4: if you know anyone who'd like to write JavaScript for PLAYSTATION 3, please send them this: https://plus.google.com/107249252665939522093/posts/9YxaZc8NGRh - thank you! [22:25] diogogmt has joined the channel [22:26] Vespakoen has joined the channel [22:27] astropirate has joined the channel [22:27] overthemike has joined the channel [22:27] davemo has joined the channel [22:27] jhbot: 'Store nodejs exec stdout in var' by Nathan Rockhold http://stackoverflow.com/q/9320052 (tags: linux) [22:28] ovaillancourt has joined the channel [22:28] perezd has joined the channel [22:29] piscisaureus_ has joined the channel [22:29] ramitos has joined the channel [22:29] dve has joined the channel [22:29] jimmysparkle has joined the channel [22:29] noderjs has joined the channel [22:30] FireFly has joined the channel [22:35] `3rdEden: Can I assume that request.socket.bytesRead would equal the amounts of data that the user has currently uploaded? [22:37] bnoordhuis: `3rdEden: no [22:38] `3rdEden: doh? [22:38] bnoordhuis: it also includes headers etc. [22:38] `3rdEden: oh [22:38] kevwil has joined the channel [22:39] `3rdEden: I really don't mind that bnoordhuis because I want to limit the amount of bytes send in a POST to prevent attacks on my server with large post requests [22:39] bnoordhuis: `3rdEden: oh right, for that it works fine [22:40] `3rdEden: awesome :) [22:40] eventualbuddha has joined the channel [22:42] carlyle has joined the channel [22:42] joshsmith has joined the channel [22:43] devaholic has joined the channel [22:44] reid has joined the channel [22:45] zemanel has joined the channel [22:45] ovaillancourt has joined the channel [22:46] mikeal has joined the channel [22:47] sauerbraten has joined the channel [22:48] CIA-74: node: 03Ben Noordhuis 07v0.6 * r30e462e 10/ (4 files in 2 dirs): (log message trimmed) [22:48] CIA-74: node: cluster: propagate bind errors [22:48] CIA-74: node: This commit fixes a bug where the cluster module failed to propagate EADDRINUSE [22:48] CIA-74: node: errors. [22:48] CIA-74: node: When a worker starts a (net, http) server, it requests the listen socket from [22:48] CIA-74: node: its master who then creates and binds the socket. [22:48] CIA-74: node: Now, OS X and Windows don't always signal EADDRINUSE from bind() but instead [22:49] slickplaid: is the a way to grab the ip address of an interface with node? Like if I want to know what `eth1`'s ip address is? [22:50] CoverSlide: ifconfig and grep [22:50] slickplaid: that's the best way? [22:51] CoverSlide: yeah [22:51] CoverSlide: probably won't find anything like that inside of node [22:51] slickplaid: http://nodejs.org/docs/latest/api/os.html#os.networkInterfaces [22:51] slickplaid: found it :D [22:51] CoverSlide: oh that must be semi-new [22:52] brianseeders has joined the channel [22:53] ritch- has joined the channel [22:53] CoverSlide: my brain is still on v0.4.x [22:53] CIA-74: node: 03Ben Noordhuis 07v0.6.11-release * r30e462e 10/ (4 files in 2 dirs): (log message trimmed) [22:53] CIA-74: node: cluster: propagate bind errors [22:53] CIA-74: node: This commit fixes a bug where the cluster module failed to propagate EADDRINUSE [22:53] CIA-74: node: errors. [22:53] CIA-74: node: When a worker starts a (net, http) server, it requests the listen socket from [22:53] CIA-74: node: its master who then creates and binds the socket. [22:53] CIA-74: node: Now, OS X and Windows don't always signal EADDRINUSE from bind() but instead [22:53] CIA-74: node: 03isaacs 07v0.6.11-release * r2bbdde7 10/ (5 files in 4 dirs): Upgrade uv to b8649fd - http://git.io/-MBIkg [22:54] dgathright has joined the channel [22:55] leeeb has joined the channel [22:55] dunder-mifflin has joined the channel [22:56] indexzero has joined the channel [22:56] mcav has joined the channel [22:57] take_cheeze has joined the channel [22:57] saurb has joined the channel [22:58] Country has joined the channel [22:58] tokumine has joined the channel [22:59] reid has joined the channel [22:59] carlyle has joined the channel [23:00] andrehjr_ has joined the channel [23:00] CIA-74: libuv: 03Bert Belder 07v0.6 * r86ebe48 10/ src/win/error.c : Windows: add error mappings that map to EPIPE - http://git.io/NZHFGw [23:01] dunder-mifflin: can octets only be represented in 0xNN format? this is re node.js' new Buffer(array-of-octets) [23:02] FIQ has joined the channel [23:03] bradleyg has joined the channel [23:03] RyanD has joined the channel [23:04] RobWC has joined the channel [23:04] RobWC has left the channel [23:04] ovaillancourt has joined the channel [23:06] isao has joined the channel [23:07] bizniz98 has joined the channel [23:08] jocafa has joined the channel [23:08] iangreenleaf: Mocha question: is there a good way to add setup/teardown behavior to *all* my tests? [23:09] astropirate has joined the channel [23:11] cjm has joined the channel [23:12] Geeknux has joined the channel [23:13] Vespakoen has joined the channel [23:15] norviller has joined the channel [23:16] hackband has joined the channel [23:17] mcav has joined the channel [23:17] fatjonny has joined the channel [23:18] yenz: beforeAll() [23:18] yenz: ? [23:18] wdbl: what is SlowBuffer and why does it exist? [23:19] wdbl: also, is anyone supposed to be using it? [23:20] Behi has joined the channel [23:21] alan_ has joined the channel [23:21] whaley has joined the channel [23:22] bnoordhuis: wdbl: no [23:22] bicranial_ has joined the channel [23:22] wdbl: ok, thx [23:22] isaacs: wdbl: it's like a regular Buffer, but slower :) [23:23] bnoordhuis: as to what it is... normal buffers (fastbuffers) are allocated with a slab allocator, slow buffers aren't [23:23] wdbl: haha, get out! [23:23] iangreenleaf: yenz: I mean across multiple test files [23:23] bicranial__ has joined the channel [23:23] wdbl: thx very much bnoordhuis and isaacs [23:23] tomgallacher has joined the channel [23:23] bnoordhuis: happy to help [23:23] isaacs: when you have a bunch of small buffers, crossing the js->c++ boundary gets expensive. so, we allocate one big slowbuffer, and slice it up [23:23] isaacs: ACTION working on a doc patch that actually explains this. [23:24] wdbl: oh ok, it's a ring buffer [23:24] travisennis has joined the channel [23:24] piscisaureus__ has joined the channel [23:24] yenz: iangreenleaf: write your sub tests as modules and require 'em into a larger container? [23:24] yenz: to share setup/teardown [23:25] jer0me has joined the channel [23:26] iangreenleaf: yenz: Yeah, I thought about that. Seems like extra bother, though. [23:27] iangreenleaf: What I'm really looking for is something like what Test::Unit and Rspec offer in Rails, where you can specify setup in your test_helper file, and it gets injected into all the suites [23:27] r04r has joined the channel [23:27] davorin has joined the channel [23:27] CoverSlide: yehuda katz says node is horrible for writing cli apps. discuss! [23:27] artusrocha has joined the channel [23:29] clarkfischer has joined the channel [23:29] maxogden: yehuda katz self promotes his own shit and whines like a baby when he doesnt get his way so i disregard his opinion [23:31] daniel`: how do I create a connect middleware by combining two existing ones? [23:31] maxogden: or, more constructively, plenty of people write node cli apps and love doing so [23:31] AvianFlu: like me and jesusabdullah [23:31] AvianFlu: more likely, yehuda katz is bad at js and feels to important to learn [23:31] Skaag has joined the channel [23:31] boltR has joined the channel [23:32] clarkfischer has left the channel [23:32] r04r has joined the channel [23:32] EhevuTov: I had fun writing a simple temperature conversion CLI using commander.js. It's only a few lines of code and I didn't have an issue writing it [23:32] clarkfischer has joined the channel [23:33] illourr has left the channel [23:33] uchuff has joined the channel [23:33] thepatrick: AvianFlu: he's a member of the jQuery Core team, so I wouldn't necessarily asume he's bad at JS. Not that makes him any more authoritive of course. [23:34] tokumine has joined the channel [23:34] marvin_ has joined the channel [23:35] diva has joined the channel [23:35] iangreenleaf: CoverSlide: perhaps linking to his actual writing would spark more useful discussion and less ad hominems. [23:35] Karmaon has joined the channel [23:35] davorin has joined the channel [23:36] kbhit has joined the channel [23:36] CIA-74: node: 03isaacs 07v0.6.11-release * r7a1a62e 10/ (5 files in 4 dirs): Upgrade uv to 86ebe48660e - http://git.io/AKgTwQ [23:36] r04r has joined the channel [23:36] mcav has joined the channel [23:40] davidbanham has joined the channel [23:40] felixge has joined the channel [23:40] felixge has joined the channel [23:40] lohkey has joined the channel [23:41] davidban_ has joined the channel [23:41] r04r has joined the channel [23:41] r04r has joined the channel [23:41] h4mz1d has joined the channel [23:45] copongcopong has joined the channel [23:45] dunder-mifflin: did yehuda explain why he thinks node is bad for writing cli? what's his preferred option instead of node? [23:46] r04r has joined the channel [23:46] dragon: Is it python? [23:46] EhevuTov_ has joined the channel [23:46] cjm has joined the channel [23:48] AphelionZ has joined the channel [23:48] ovaillancourt has joined the channel [23:49] jzacsh has joined the channel [23:49] jzacsh has joined the channel [23:49] tarkus has joined the channel [23:50] andrehjr has joined the channel [23:50] brianseeders has joined the channel [23:50] westg has joined the channel [23:50] tarkus: Why running "> node r.js -v" prints file not found, it tries to run it from C: [23:50] tarkus: C:\Users\{username}\r.js instead of NPM's dir [23:51] r04r has joined the channel [23:51] RobWC has joined the channel [23:52] francisl has joined the channel [23:52] wingie: could someone tell me how to send images to a remote location on node.js? [23:53] wingie: a bonus if superagent could be used for this [23:53] saurb1 has joined the channel [23:53] davemo has joined the channel [23:53] hydrozen has joined the channel [23:54] Eruadan has joined the channel [23:55] mcav has joined the channel [23:55] cha0s has joined the channel [23:55] cha0s has joined the channel [23:56] Skaag has joined the channel [23:56] r04r has joined the channel [23:56] r04r has joined the channel [23:57] eignerchris_ has joined the channel [23:57] elnn_ has joined the channel [23:57] robm_ has joined the channel [23:58] isaacs: tarkus: i'm confused, what's your problem? [23:59] tarkus: "node r.js -v" throughs an exception: Error: Cannot find module 'C:\Windows\system32\r.js' [23:59] robm has joined the channel [23:59] tarkus: my r.js is located in C:\Users\User\AppData\Roaming\npm\r.js [23:59] isaacs: tarkus: so, cd into that folder :)