[00:00] initohen: b knows that c requires old-d
[00:00] initohen: a knows that b requires old-d
[00:00] initohen: and i know that a requires it
[00:00] initohen: a bigger problem would be: why would you name the handler the same if it was incompatible
[00:00] initohen: :\
[00:00] initohen: i guess since there's no versioning in file extensions you have a tricky dilemma
[00:01] initohen: but i expect that most libraries in active use will try to keep current
[00:01] initohen: i prefer not to depend on a dozen things
[00:01] initohen: which is why i went with zombie over uhh.. whatever that other one was... phantom?
[00:01] tmike: your package.json will enforce versions
[00:01] maxownz has joined the channel
[00:01] initohen: his problem is that he has two packages, both required, that may differ in version
[00:01] initohen: but will compete for the same extension
[00:02] tmike: same extension?
[00:02] initohen: iced-coffee-script supplies .coffee and .iced
[00:02] tmike: ah
[00:02] initohen: but the dependency on coffee-script i guess downloads coffee-script?
[00:02] initohen: i dunno
[00:02] iangreenleaf: Yes, coffee-script is an npm module just like any other.
[00:02] tmike: The dependency on coffee-script would download coffee-script
[00:03] initohen: sure, but if it was a little smarter it'd be able to recognize that the coffee-script dependency is satisfied without coffee-script
[00:03] initohen: it seems that if the two are version-incompatible you have a difficulty, however
[00:04] iangreenleaf: IMO require.extensions should be scoped by modules. That would be consistent with the way require searches for packages.
[00:05] iangreenleaf: i.e. require("foo") will prefer a locally-installed foo over a global foo
[00:05] initohen: fair enough
[00:08] iangreenleaf: Anyways, thanks for the chat. I'm gonna poke around the node issues tomorrow and see if it has come up.
[00:08] EyePulp has joined the channel
[00:12] copongcopong has joined the channel
[00:14] YoY has joined the channel
[00:14] Juan77 has joined the channel
[00:15] broofa has joined the channel
[00:15] lmjabreu has joined the channel
[00:16] Raverix has joined the channel
[00:17] kinow has left the channel
[00:22] willwhite has joined the channel
[00:22] felixhummel has joined the channel
[00:27] daniel` has left the channel
[00:27] chasewg has joined the channel
[00:28] c4milo has joined the channel
[00:30] rklancer has joined the channel
[00:31] ningu has joined the channel
[00:32] dwhittle has joined the channel
[00:32] pendlepants has joined the channel
[00:33] nicholasf has joined the channel
[00:37] elijah has joined the channel
[00:40] jacobolus has joined the channel
[00:40] c4milo has joined the channel
[00:41] Raverix: Hello, I'm getting a lot of throw e; // process.nextTick error, or 'error' event on first tick errors, from what I've found searching it appears this is related to the content-length of the response being 0... but yet I don't see how to fix this? Any suggestions? Thanks
[00:42] bnoordhuis: Raverix: where/when do you get those errors?
[00:42] kevinswiber has joined the channel
[00:42] rwaldron has joined the channel
[00:43] tmike: rwaldron: I'm pretty sure just about every generic node error looks like that
[00:44] kitt has joined the channel
[00:45] ericmuyser has joined the channel
[00:46] Druid_ has joined the channel
[00:47] k1ttty has joined the channel
[00:47] rhio has joined the channel
[00:48] Raverix: bnoordhuis: hard to figure out when... It'll work for 5 minutes, and then randomly die.
[00:48] conancat has joined the channel
[00:48] Raverix: Here, I found a bit more information...
[00:49] bnoordhuis: Raverix: probably means you haven't attached an error listener to a socket or something
[00:49] Raverix: hmm
[00:49] bnoordhuis: can you gist the stack trace?
[00:51] Raverix: bnoordhuis: Hold on just a moment... I've discovered something really weird... I'm getting a LOT of requests going through my proxy which I cannot explain.
[00:51] octayn has joined the channel
[00:51] xippi has joined the channel
[00:51] st_luke has joined the channel
[00:52] agnat_ has joined the channel
[00:52] andrehjr has joined the channel
[00:53] Raverix: I'm getting hundres of ads going through my proxy / minute.
[00:54] rwaldron: tmike sorry, not sure what you're referring to?
[00:55] tmike: Sorry I think I autocompleted you by accident
[00:55] tds has joined the channel
[00:55] rwaldron: no worries!
[00:55] sorensen has joined the channel
[00:56] heavysixer has joined the channel
[00:57] CIA-19: node: 03Nathan Rajlich 07master * r35043ad 10/ src/node.cc : process: use NODE_STRINGIFY macro to set process.versions.uv - http://git.io/bfPNMQ
[00:57] subbyyy has joined the channel
[00:57] joshfinnie has joined the channel
[00:58] warz has joined the channel
[00:58] warz has joined the channel
[00:59] langworthy has joined the channel
[00:59] Anthus has joined the channel
[00:59] Anthus: quiet.
[00:59] halfhalo has joined the channel
[00:59] nerdfiles has joined the channel
[01:00] octayn: Anthus: you joined a minute ago, how could you gauge that?
[01:00] Anthus: ratio of people logged in to people talking ;)
[01:00] octayn: The larger the channel the smaller the ratio, regardless of activity. Tons of people idle.
[01:01] insin: 'tis the way of the help channel
[01:01] Anthus: Mmm. I suspect that isn't true, as numbers grow even larger, even idle activity must grow.
[01:01] insin: ask an interesting question and just try to stop people talking ;)
[01:02] Anthus: Anyway, I didn't say that as a criticism or as a serious observation as much as I was trying to see who was listening.
[01:03] caioketo has joined the channel
[01:04] brainss has joined the channel
[01:04] chapel: there are a lot of factors
[01:04] chapel: when I was first learning node I was super active in here
[01:04] chapel: after I learned more, I continued to be active and helpful
[01:05] chapel: now that I work full time doing node, it is harder to keep up with the activity and help, so for me at least, that is why I idle more than talk in here
[01:07] Anthus: I see
[01:07] mandric has joined the channel
[01:07] Anthus: How'd you get into Node?
[01:08] takumination has joined the channel
[01:08] michaelhartau has joined the channel
[01:08] bradleyg has joined the channel
[01:09] octayn: I found it by accident and thought it was pretty cool.
[01:09] octayn: I think a friend mentioned it in passing
[01:11] igl has joined the channel
[01:11] baudehlo has joined the channel
[01:12] tmike: I want a job in node so bad
[01:13] kevinswiber: Make your job. There's a startup boom.
[01:13] tmike: I'm thinking of doing exactly that. However I'm terrible at ideas ;)
[01:13] hgg has joined the channel
[01:14] sj26 has joined the channel
[01:14] kevinswiber: Solve a problem you have. If you think you don't have a solvable problem, you've just gotten used to the pain.
[01:14] brainss: tmike: there are some places hiring
[01:14] c4milo has joined the channel
[01:14] ningu: I had a really terrible idea earlier
[01:14] tmike: kevinswiber: lol good point
[01:14] brainss: tmike: voxer and yammer come to mind
[01:15] Anthus: haha, there's something about that statement that needs a swig of bourbon after it
[01:15] ningu: I like node and the libraries it provides, and so I've gotten in the habit of using it for scripts and such
[01:15] kevinswiber: Well... I am drinking.
[01:15] JasonSmith has joined the channel
[01:15] Anthus: me too, cheers.
[01:15] ningu: so I thought it might be possible to hack node into making its async functions sync, just for the purpose of making code cleaner in batch scripts
[01:15] tmike: woof
[01:16] ningu: but I don't think it can really be done :)
[01:16] tommyvyo has joined the channel
[01:16] diogogmt has joined the channel
[01:16] ningu: the module would be called blockhead
[01:16] ningu: and the instructions would say it's a terrible idea and never to use it
[01:16] insin: ningu: it's been done. repeatedly :-p
[01:16] insin: fibers and that
[01:16] ningu: hmmm
[01:17] tmike: fibers just makes your code LOOK sync. I think ningu's talking about killing all asynchronicity
[01:17] diva has joined the channel
[01:18] octayn: As long as it looks sync that's all that matters, right?
[01:18] octayn: if the objective is "clean code"
[01:19] ningu: yes, that's all I really meant
[01:19] insin: when was the last mailing list ding-dong on fibers?
[01:19] ningu: I was talking about doing it by actally making it sync, but whatever
[01:19] kevinswiber: Call me a masochist, but sometimes, when it's late at night... I enjoy passing continuations. :X
[01:20] ningu: continuations are awesome
[01:20] ningu: there are just situations where they are annoying, too
[01:20] octayn: kevinswiber: manual cps is a bitch but I wouldn't mind an 'async' keyword or similar that does CPS implicitly for you
[01:20] ningu: and I like node enough that I'd want to use it for those situations too, if I could :)
[01:20] kevinswiber: Aren't there a bunch of solutions offering that inline "async/yield" functionality?
[01:21] theBrettman has joined the channel
[01:21] ningu: npm sure has been updated a lot lately
[01:21] octayn: kevinswiber: haven't really looked into it
[01:22] octayn: node-sync looks promising
[01:22] whaley has joined the channel
[01:23] ningu: yeah, it's a syntax issue more than anything, in most ways
[01:23] ningu: I don't mind the logic of async code
[01:23] ningu: it can just be hard to grok quickly when you read it
[01:24] tmike: It's a little better if you're super strict about naming your functions and not indenting more than one or two levels
[01:24] ningu: well, in my experience it gets really messy when you have a long task that must execute in sequence
[01:24] bwen has left the channel
[01:24] ningu: not sure if async waterfall or substack's Seq is better for that
[01:25] ningu: I have things like cb, cb2, cb3, etc. so I can remember which is at which level
[01:25] xippi has joined the channel
[01:26] ningu: http://pastebin.com/YVG7J72i
[01:26] ningu: example
[01:28] abraxas has joined the channel
[01:28] gr4yscale has joined the channel
[01:29] tmike: Yeah it can get messy. I'm not familiar with async or Seq though
[01:29] rklancer has joined the channel
[01:32] ningu: I might try rewriting that script in seq just for fun
[01:33] ningu: see if it gets any easier
[01:34] Eruadan: hey ningu, i think i was a bit equivocated yesterday, when i said about normal apps in node also. Is not because the server is async that the apps must be also. Also, I was thinking about all this forums online, like phpbb etc. they suffer always from slows in the searches, maybe node could help there. Now, i'm putting a blog up and running. npm is addictive ;p
[01:35] sphinxxx has joined the channel
[01:35] ningu: Eruadan: of course, anything that runs on a server is much better if it's async
[01:35] ningu: I was just talking about making node pleasant to use in other situations
[01:35] ningu: there are plenty of other tools for that, but it would be nice, if a particular node library was exactly what I needed anyway.
[01:36] Eruadan: sure, and not only more pleasant but faster
[01:36] ningu: yeah, although that isn't my main concern for scripts
[01:36] ningu: I write lots of little scripts, for example right now I'm writing a paper and using a script to generate a LaTeX table from an excel spreadsheet
[01:36] ningu: node doesn't have an excel parsing lib, can't use node ;)
[01:36] Eruadan: what you think if all those forums everywhere were in node? would they support a higher number of searches?
[01:37] ningu: I don't know. I don't really know how slow they are, to be honest.
[01:37] ningu: and most forum searches are really bad :P
[01:37] octayn: If it's CPU heavy, of course not.
[01:37] ningu: I tend to just use google
[01:37] jj0hns0n has joined the channel
[01:37] Eruadan: i think they are slow. but it may also be related to db
[01:38] boogyman has joined the channel
[01:38] boogyman has joined the channel
[01:38] dekub has joined the channel
[01:39] Eruadan: real-time forum search
[01:39] Eruadan: that is a thread
[01:41] rklancer has joined the channel
[01:43] jdparker has joined the channel
[01:44] Eruadan: what could be the equivalent to http://lucene.apache.org/solr/ , but for node.js
[01:45] Eruadan: ?
[01:45] jzacsh has joined the channel
[01:45] jzacsh has joined the channel
[01:45] theBrettman has joined the channel
[01:45] NuLLedge has joined the channel
[01:46] ningu: hmm, node-fibers looks quite cool
[01:47] ericmuyser: Eruadan: or just use it as a service over JSON, ala elasticsearch
[01:47] Eruadan: mm, cool
[01:48] ningu: hrm... "asynchronous function which was called synchronously through node-sync doesn't blocks the whole process - it blocks only current thread!" ... I thought node was single-threaded?
[01:48] Eruadan: mm, so it reverses the game?
[01:49] octayn: ningu: you can create threads
[01:49] octayn: And I'm guessing that's what node-fibers does
[01:49] kevinswiber: I think the fiber is "thread-like," though not a thread.
[01:49] kevinswiber: The project threads_a_go_go creates real threads.
[01:50] kevinswiber: https://github.com/xk/node-threads-a-gogo
[01:51] xippi has joined the channel
[01:52] neoesque has joined the channel
[01:52] ericmuyser: it was probably worth mentioning because you could have your own threading, but also node does spawn a few worker threads for its pool iirc, like buffering data from a network connection (guessing here, it's what boost asio does)
[01:54] kevinswiber: ericmuyser: Yeah, I believe that's correct, though I think that piece may be abstracted behind libuv.
[01:54] Eruadan: amazing stuff, must read
[01:56] hydrozen has joined the channel
[01:56] hydrozen: Hi there. What's the recommended tool to easily switch between node versions these days?
[01:57] kevinswiber: I use nvm, but there's also n and nave.
[01:57] cmwelsh has joined the channel
[01:57] octayn: I've heard good things about n and nvm
[01:57] kevinswiber: https://github.com/creationix/nvm
[01:58] kevinswiber: https://github.com/visionmedia/n
[01:58] kevinswiber: https://github.com/isaacs/nave
[01:59] hydrozen: too many choices
[01:59] hydrozen: pick for me
[01:59] octayn: ...
[01:59] hydrozen: :P
[01:59] kevinswiber: What's your OS?
[02:00] hydrozen: does nvm do any of the weird stuff rvm does? like messing around with cd and stuff
[02:00] hydrozen: kevinswiber: Lion
[02:01] kevinswiber: As long as your OS has a bash shell, any of those options should work.
[02:01] kevinswiber: They're all simple shell scripts.
[02:01] crescendo has joined the channel
[02:01] kevinswiber: RVM is way more involved.
[02:01] kevinswiber: If I had to pick for you, I'd choose nvm, because it's what I already know. :P
[02:03] insin: same here, just happened to find nvm first when I went looking, works, didn't need to try the others
[02:05] briancray has joined the channel
[02:05] poehls has joined the channel
[02:06] hydrozen: off to a good start.. i cloned it… run the command to source it and it says "nvm_ls:17: no matches found: vdefault*"
[02:06] poehls: I'm getting `Permission denied - /usr/local/lib/node/wafadmin` when I try to `brew upgrade node`. Has anyone seen this before?
[02:07] hydrozen: seems related to me using zsh maybe..
[02:07] a_meteorite has joined the channel
[02:07] poehls: I am using zsh... guess I'll try bash
[02:08] orlandovftw has joined the channel
[02:08] poehls: No luck in bash either.
[02:08] hydrozen: poehls: sorry, i was talking about my problem not yours
[02:08] poehls: ah, my bad :)
[02:10] Sami_ZzZ has joined the channel
[02:12] CromeDome has joined the channel
[02:12] LuckySMack has joined the channel
[02:12] hydrozen: ok well no luck with nvm on zsh… so I'll have to try n
[02:13] jldbasa has joined the channel
[02:13] takumination has joined the channel
[02:13] kevinswiber: poehls: Not using brew, but it's just a permissions issue (seemingly). Either give yourself permission or use "sudo brew upgrade node".
[02:13] blueadept has joined the channel
[02:13] blueadept has joined the channel
[02:14] boltR has joined the channel
[02:16] githogori has joined the channel
[02:17] carlyle has joined the channel
[02:18] a_suenami has joined the channel
[02:23] pandeiro has joined the channel
[02:25] willwhite has joined the channel
[02:27] brandwe has joined the channel
[02:33] jdeibele has joined the channel
[02:33] dilvie has joined the channel
[02:34] kirbysayshi has joined the channel
[02:36] Joeysomo has joined the channel
[02:37] dwhittle has joined the channel
[02:38] Avanine has joined the channel
[02:39] noodlehaus has joined the channel
[02:39] warz has joined the channel
[02:39] warz has joined the channel
[02:40] dwhittle has joined the channel
[02:40] takumination has joined the channel
[02:42] infynyxx has joined the channel
[02:45] __main__ has joined the channel
[02:46] neoesque_ has joined the channel
[02:46] orlandovftw has joined the channel
[02:48] ep0x has joined the channel
[02:48] ep0x: hey, I just installed for the first time node.js on Windows using the node.js installer, where does it install it?
[02:48] tuhoojabotti: Program Files.
[02:49] ep0x: lol woah... I'm stupid
[02:49] ep0x: thanks :)
[02:49] tuhoojabotti: :D
[02:49] tuhoojabotti: np
[02:50] context: that was almost as bad as someone asking where they put the gas in their car
[02:50] thurmda has joined the channel
[02:50] iangreenleaf has joined the channel
[02:50] conancat has joined the channel
[02:50] ep0x: lol, sshh I'm used to having complicated installs with open source software
[02:51] automata has joined the channel
[02:51] octayn: that's only because you're on the minority platform ;)
[02:52] ep0x: you're right, Infact if you want a heart attack : I'm still on XP
[02:52] m3rk3r_ has joined the channel
[02:52] Lorentz: eh, I'm stuck on xp at work
[02:52] ep0x: Lorentz: Same, and it's not just XP that's outdated at my workplace
[02:52] m3rk3r_: Does anyone know why supervisor would be throwing an error:200 on the newest version of node?
[02:53] ningu: I use XP on my netbook because windows 7 is too much for it
[02:53] rklancer has joined the channel
[02:55] dnolen has joined the channel
[02:55] blissdev has joined the channel
[02:56] mansoor has joined the channel
[02:57] janne has joined the channel
[02:57] Qzen has joined the channel
[02:57] m3rk3r_: Does anyone have any idea why im getting an error when running supervisor? http://pastebin.com/41E3YEFb running node -version v0.7.7-pre
[02:57] kevinswiber has joined the channel
[02:58] RobWC has joined the channel
[02:58] RobWC has left the channel
[03:00] garann has joined the channel
[03:00] boltR has joined the channel
[03:01] pradeepbv has joined the channel
[03:03] shanebo: hey guys is there a socket for every request, or visitor connection?
[03:04] shanebo: ˆˆ when using socket.io
[03:04] brandwe: Anyone have experience with snapshot feature in node.js not working on EC2 x64 Amazon Linux? Got gdb attached but looking for help: https://github.com/joyent/node/issues/2912
[03:06] perezd has joined the channel
[03:07] satyr has joined the channel
[03:08] Vennril2 has joined the channel
[03:09] raghu_ has joined the channel
[03:09] tuhoojabotti: Is there a bench graph which shows the performance for each version of node
[03:09] ningu: shanebo: visitor connection
[03:09] ningu: shanebo: but it depends on the transport -- there isn't necessarily a 'socket' exactly
[03:09] raghu_: Hi do we have any live example in learning node.js
[03:09] raghu_: like building a blog on node.js
[03:10] ningu: raghu_: http://howtonode.org/express-mongodb
[03:10] ningu: not live, but step by step
[03:10] shanebo: ningu, I'm using nodejitsu proxy + socket.io and it causes bad memory spikes so I'm wondering if I'm implementing socket.io correctly
[03:11] shanebo: ningu I put sockets in a room, and then in a route action I access to that room and broadcast to it as needed
[03:11] raghu_: @ningu - well saw this post but they start of with express.js which is a framework for node. do u suggest me in reading that ??
[03:12] context: if you are gonna make a blog you are prolly gonna use express
[03:12] achiu1 has joined the channel
[03:13] CarterL1 has joined the channel
[03:13] boogyman has left the channel
[03:14] raghu_: okay thanks context, do u suggest where i can get the understanding about node, so that i can jump in to try the post which ningu suggested
[03:15] plato: raghu i'm in the same boat
[03:15] raghu_: oh gr8 plato.. welcome to node learning..
[03:16] kevinswiber: http://howtonode.org/
[03:16] plato: raghu_: this seemed like a good intro http://www.nodebeginner.org/
[03:16] Fuu` has joined the channel
[03:17] pizthewiz has joined the channel
[03:17] plato: haha http://www.howtonode.org 404's
[03:17] ningu: raghu_: just follow the tutorial, it's very short
[03:17] ningu: and you should get the idea right away if you are familiar with web programming
[03:17] raghu_: one more question, is node a gud programming for build a analytics system ??
[03:17] raghu_: building*
[03:17] ningu: and howtonode.org doesn't 404 for me ;)
[03:19] plato: ningu: www. does
[03:19] zodiak has joined the channel
[03:19] mark__ has joined the channel
[03:19] plato: raghu_: i have only just started with express but in their docs it explained that requests pass through a chain of middleware
[03:20] plato: so you can build an analytics function that takes the request and does stuff and passes it on
[03:20] ningu: plato: hmm, true
[03:20] ningu: odd
[03:20] raghu_: but is node ready for building apps that PHP and ROR does...
[03:21] tuhoojabotti: Depends.
[03:21] tuhoojabotti: I'd say yes.
[03:21] plato: raghu_: it certainly looks like a shallower learning curve
[03:22] ningu: raghu_: node is faster than php and ruby. it has fewer existing libraries. not a small number of libraries, but less pre-fab things like drupal for php
[03:22] raghu_: okay
[03:23] raghu_: so have u guys built any app on node
[03:23] ep0x: raghu: I cry like a litle girl when I see javascript code, join me to the darkside of using coffeescript with node.js
[03:23] ep0x: mouahhaa
[03:23] tuhoojabotti: :E
[03:23] broofa has joined the channel
[03:23] sphinxxx has joined the channel
[03:23] boehm has joined the channel
[03:24] plato: ep0x: coffeescript looks neat
[03:24] raghu_: i checked out coffeescript seems adicting :)
[03:25] sorensen__ has joined the channel
[03:25] isaacs has joined the channel
[03:26] raghu_: heard about tower.js ?
[03:26] ep0x: I cant say I have
[03:26] ningu: there are a million frameworks
[03:26] ningu: too many :P
[03:26] michaelmartinez has joined the channel
[03:27] michaelmartinez: Whad up Nodemon's?
[03:27] raghu_: ningu: Yea takes us to a confusion state.. and finally makes us to build our own framework for our requirments :)
[03:28] michaelmartinez: So I was talking to some java jsp'ers
[03:28] michaelmartinez: they were like... blah, blah, blah
[03:28] ningu: and you were like blah, blah, blah?
[03:28] mansoor has joined the channel
[03:28] michaelmartinez: So I throat punched them for even talking like that
[03:29] michaelmartinez: the end
[03:29] Sadin: Could anyone give me a good guide on adding Jquery to your pages properly without screwing up your node app
[03:29] raghu_: plato: how do u feel about node.. the main reason for me on trying node is because of even driven.. that makes real time apps REAL TIME
[03:29] ningu: Sadin: err, it's the same as adding jquery to anything
[03:29] Sadin: ningu really? i added links in my header and it broke my express app...
[03:29] Sadin: had to revert
[03:30] viven has joined the channel
[03:30] ningu: maybe you used invalid jade syntax
[03:30] ningu: dunno
[03:30] kevinswiber: Sadin: Sure it wasn't your templating engine?
[03:30] kevinswiber: ningu: Jinx. Smart.
[03:30] plato: raghu_: the future is distributed networks, node is good for that
[03:30] Sadin: kevinswiber who knows all i get from nodejitsu is internal server error lol
[03:30] Sadin: ill try again though
[03:31] levi501d has joined the channel
[03:31] plato: http://blog.nodejitsu.com/building-an-anonymous-cloud-database
[03:31] kevinswiber: Unfortunately, Jade doesn't do a pretty print of HTML, so it's hard to work backwards when debugging.
[03:31] ningu: Sadin: test locally before pushing to nodejitsu
[03:31] ningu: kevinswiber: I just use the chrome element view, usually
[03:31] michaelmartinez: ningu that what I was thinking
[03:32] kevinswiber: ningu: Yeah, that works. Inspect!
[03:32] Eruadan: nice, i just installed nodepress :)
[03:32] michaelmartinez: I don't know how to do shit yet, but I do know I need to develop that bitch locally
[03:32] ningu: kevinswiber: yeah, it's just faster
[03:32] chadskidmore has joined the channel
[03:32] ep0x: Sadin: I googled that awhile back and found this link : http://stackoverflow.com/questions/1801160/can-i-use-jquery-with-node-js it's got a bunch of other links that might be interesting to you
[03:32] raghu_: so plato u have account at nodejitsu.com ?
[03:33] TooTallNate has joined the channel
[03:33] dshaw_ has joined the channel
[03:34] ningu: ep0x: that's probably for server-side, he was just talking about client-side
[03:34] Sadin: does this look wrong to you guys? https://gist.github.com/2033831
[03:34] ningu: plato with an account at nodejitsu... what an anachronism
[03:34] ningu: besides, we all know plato used lisp
[03:35] Fuu has joined the channel
[03:35] dnolen has joined the channel
[03:35] kevinswiber: Sadin: Looks like you're mixing ' and " in your script tags.
[03:36] raghu_: kevinswiber: will that really matter ??
[03:36] michaelmartinez: raghu it matters for coffeescript
[03:36] Sadin: i didnt think so but thanks for pointing it out
[03:36] ningu: it only matters if you do it within one string
[03:36] ningu: jade doesn't care
[03:36] ep0x: ningu: I think there's a way to write your node.js along with jquery on the server side, and then just send out the jquery code to the client
[03:36] technel has joined the channel
[03:36] kevinswiber: raghu_: Actually, I have no idea how Jade handles that.
[03:37] ningu: kevinswiber: it looks fine to m
[03:37] ningu: e
[03:37] ningu: oh
[03:37] ningu: the issue is in index.jade
[03:37] ningu: you need to separate attributes with commas
[03:37] ningu: not spaces
[03:38] plato: raghu_: no i don't have a nodejitsu account, ive only seen their blog
[03:38] methoddk has left the channel
[03:38] methoddk has joined the channel
[03:38] Spion_ has joined the channel
[03:38] plato: do they host node apps?
[03:38] raghu_: yea palto they do
[03:38] plato: k
[03:39] plato: i have no need for scaling right now, i test on a vps
[03:39] raghu_: oh gr8
[03:39] ningu: if you have a vps you don't need nodejitsu
[03:39] ningu: I mean, just to start out
[03:39] ningu: I used nodejitsu first cause i didn't have anywhere else to host
[03:39] raghu_: is cloud a gud suggestion for node or we can still stick with a VPS like linode ?
[03:40] ningu: nothing wrong with a vps
[03:40] ningu: you can run the node app on its own or through a reverse proxy like nginx
[03:40] plato: raghu_: dont use linode for bitcoin, har har
[03:41] raghu_: suggest me one.. linode is cheap thats what i know
[03:41] kevinswiber: raghu_: Re: cloud vs VPS... It really depends on what you're doing.
[03:41] ningu: I'm doing little enough that I'm using a VPS for now :)
[03:42] dnolen has joined the channel
[03:42] rtgibbons has joined the channel
[03:42] scottdware has joined the channel
[03:42] plato: raghu_:
[03:42] plato: http://www.google.com/search?q=date:2011-2012%20vps%20comparison
[03:48] Sadin: OKay im trying to get this http://jsfiddle.net/YDfKE/8/ to show up in my node app here http://sparkzdev.jit.su/ as you can see it doesnt show up properly i cant figure out what im missing/did wrong is it a jade error? heres a gist of my jade files too. https://gist.github.com/2033884 sorry to bother with these stupid little questions :/
[03:49] Sadin: raghu dont pay for linode....
[03:49] Sadin: http://alienvps.com/
[03:49] Sadin: much cheaper and they have deals on holidays :P
[03:50] Eruadan: i' m having an issue with nodepress. i installed mongodb then installed nodepress, it seems all good. http://127.0.0.1:8000 works in the browser, but when i hit http://127.0.0.1:8000/blog/install i got Oops! This link appears to be broken. what could it be? problem with mongo connection i guess...
[03:51] dnolen has joined the channel
[03:51] insin: the jsfiddleversion doesn't have type='text/Javascript' in it
[03:52] insin: nm, doesn't seem to matter, same when you add it in jsfiddle
[03:53] insin: the way you're loading jquery after a script which depends on it might be an issue though :)
[03:53] warz has joined the channel
[03:53] warz has joined the channel
[03:53] insin: "jQuery is not defined"
[03:54] Sadin: ah insin your one smart cookie didnt think of that
[03:55] Sadin: cause jsfiddle loads it by default of course...!
[03:55] insin: yup
[03:55] Sadin: insin thanks! worked like a charm! :D
[03:55] raghu_: hey i have this node thing running. When i open in browser its just getting downloaded
[03:56] raghu_: i mean a "Hello World" Program
[03:56] Sadin: ragu_ gist your program
[03:56] Sadin: raghu_
[03:56] jacobolus has joined the channel
[03:57] ningu: raghu_: sounds like you forgot to call a callback, but yeah, paste the code
[03:57] jdeibele has joined the channel
[03:57] raghu_: Sadin: here you go https://gist.github.com/2033945
[03:58] Sadin: texxt/plain
[03:58] ningu: erm, you misspelled the content type :P
[03:58] Sadin: ningu "high five" got that one!
[03:58] ningu: hehe
[03:58] ningu: at least it wasn't xxx
[03:58] Sadin: lololol
[03:58] Sadin: O.o what was node doing lol
[03:59] ningu: that would be nude.js
[03:59] raghu_: hahaha thx
[03:59] Sadin: XD
[03:59] raghu_: yea my new library :)
[03:59] jxie has joined the channel
[03:59] raghu_: http://www.patrick-wied.at/static/nudejs/ :)
[03:59] sreeix has joined the channel
[04:01] Enoria has joined the channel
[04:03] pradeepbv_ has joined the channel
[04:03] take_cheeze has joined the channel
[04:04] mraxilus has joined the channel
[04:05] sreeix has joined the channel
[04:06] alejandr1mg has joined the channel
[04:07] diva has joined the channel
[04:08] gavin_huang has joined the channel
[04:10] alejandromg has joined the channel
[04:11] jdeibele has joined the channel
[04:13] joshwines has joined the channel
[04:14] caffine has joined the channel
[04:22] isufy has joined the channel
[04:23] pradeepbv has joined the channel
[04:23] stagas has joined the channel
[04:25] davidbanham has joined the channel
[04:28] lumgwada has joined the channel
[04:32] jetienne has joined the channel
[04:33] shanebo: hey guys how can I stream a buffer rather than res.end(buffer)?
[04:34] lumgwada has joined the channel
[04:38] petschm_ has joined the channel
[04:38] orlandovftw has joined the channel
[04:39] orlandovftw has joined the channel
[04:39] dilvie has joined the channel
[04:40] yaymukund has joined the channel
[04:42] MagiC3PO has joined the channel
[04:42] smorin has joined the channel
[04:42] redir has joined the channel
[04:45] meso_ has joined the channel
[04:48] stagas has joined the channel
[04:51] Derzzle has joined the channel
[04:52] dr0id has joined the channel
[04:53] OmidRaha has joined the channel
[04:53] warz has joined the channel
[04:53] warz has joined the channel
[05:00] willwhite has joined the channel
[05:03] dnolen` has joined the channel
[05:03] arvidkahl has joined the channel
[05:06] joshfinnie has joined the channel
[05:09] Enoria has joined the channel
[05:11] kenperkins has joined the channel
[05:12] rlidwka has joined the channel
[05:18] patcito has joined the channel
[05:20] kevwil has joined the channel
[05:20] madhums has joined the channel
[05:20] isaacs has joined the channel
[05:21] Spion has joined the channel
[05:22] ohtogo has joined the channel
[05:25] arvidkahl has joined the channel
[05:27] gr4yscale has joined the channel
[05:27] khrome has joined the channel
[05:28] mattgifford has joined the channel
[05:28] codelahoma has joined the channel
[05:28] skm has joined the channel
[05:32] arvidkahl has joined the channel
[05:32] dnolen` has joined the channel
[05:33] sreeix has joined the channel
[05:37] dnolen` has joined the channel
[05:37] relling has joined the channel
[05:38] stagas has joined the channel
[05:39] plato: im having trouble with node or express molesting my static files
[05:39] plato: it's adding at the top of .js files. i don't know how a request for my javascript files is being handled
[05:41] kmiyashiro: plato: that's weird
[05:42] kmiyashiro: maybe it thinks they are views
[05:42] plato: its something to do with my express code. i am trying to rework snippets of it
[05:42] plato: app.use(express.static(__dirname + '/public')); is the last item in my middleware chain
[05:43] kmiyashiro: seems default
[05:43] kmiyashiro: probably something you changed
[05:43] plato: very
[05:44] vam3c has joined the channel
[05:44] michaelmartinez has left the channel
[05:44] alejandromg: plato: did you check the statusCode of the response? What is it?
[05:45] plato: curl gives me 200 OK
[05:45] Eruadan has joined the channel
[05:48] copongcopong1 has joined the channel
[05:49] plato: hmm i had a bad reference
[05:49] arvidkahl has joined the channel
[05:52] porco has joined the channel
[05:53] fangel has joined the channel
[05:57] sammmy has joined the channel
[05:57] zackattack has joined the channel
[05:59] zackattack: this has been boggling my mind for a day now. can someone take a look? http://pastie.org/3591353
[06:03] toothr has joined the channel
[06:03] plato: q
[06:04] Morkel has joined the channel
[06:05] zackattack: q?
[06:05] plato: mistyped, thought this was vim
[06:05] plato: sorry
[06:05] plato: :(
[06:06] sammmy: *cough cough*troll*cough cough*
[06:07] plato: should you use this.mostRecentScores instead of self?
[06:07] michaelmartinez has joined the channel
[06:08] disappearedng has joined the channel
[06:09] sammmy: How do I use a different layout for a view render in Express?
[06:09] zackattack: plato: self.mostRecentScores is working though
[06:09] michaelmartinez: Fuck Yeah Baby!!! I have completely ported this site to node as a learning tool... trivial but I am get my MOTHEREFFING learn on! http://lab.caffeineindustries.com/
[06:09] zackattack: when i console.log it, it works.
[06:10] michaelmartinez: That is all... carry on.
[06:10] ziyadb has joined the channel
[06:10] michaelmartinez: sammmy: app.set('view engine', 'ejs');
[06:10] michaelmartinez: for example
[06:11] sammmy: michaelmartinez: not how do I use another engine, how do I use another layout file.
[06:12] michaelmartinez: as 2 layout files?
[06:12] michaelmartinez: You want 2 layout files?
[06:12] sammmy: Well, don't views get rendered then passed to layout.ejs as the 'body' local?
[06:12] plato: zackattack: hmm JSON.stringify(getLeaderboard.mostRecentScores) is fucking up?
[06:13] plato: what type is mostRecentScores?
[06:13] michaelmartinez: They can
[06:13] michaelmartinez: You can specify what gets placed where
[06:14] sammmy: michaelmartinez: But how do you make another layout file and use that for a render?
[06:14] michaelmartinez: The flexibility is crazy and maddening at time... I just finally wrapped my mind around this
[06:14] michaelmartinez: Have you specified a bodyparser?
[06:16] michaelmartinez: I just use the layout for the "shell" then I place all the body stuff in different ejs files that are passed to layout before final render
[06:16] michaelmartinez: At least that is how I think it works and my site is running on localhost:4000 as we speak
[06:17] plato: i'm following socket.io docs to load the client side socket.io script with
[06:17] plato: but that's 404'ing
[06:18] jacoblyles has joined the channel
[06:19] michaelmartinez: plato: what does your folder structure look like? I've never seen a leading "/" with out a .. infront of it client side
[06:19] michaelmartinez: try removing it
[06:19] michaelmartinez: or adding ..
[06:20] OmidRaha has joined the channel
[06:21] jacoblyles: Why do some exceptions crash the node interactive prompt and others do not? If a particular exception always terminates the node prompt, should I report it?
[06:21] jacoblyles: (I'm using a new irc client, so please forgive any odd behavior)
[06:23] michaelmartinez has left the channel
[06:25] ircdearia has joined the channel
[06:27] ditesh|cassini has joined the channel
[06:27] ohtogo has joined the channel
[06:28] jacoblyles has joined the channel
[06:28] zackattack: plato: mostRecentScores is an object array
[06:28] jkridner has joined the channel
[06:29] zackattack: plato: inside my callback, i do a console.log(arguments) and it's {}....
[06:30] plato: can you JSON.stringify(mostRecentScores[0])
[06:30] plato: zackattack: ^
[06:30] zackattack: ACTION tries..
[06:31] zackattack: plato: i can't
[06:32] zackattack: but i can do... arguments[0]
[06:32] zackattack: wtf???
[06:34] systemfault: zackattack:What's up?
[06:34] zackattack: Hi?
[06:35] systemfault: Hi :P
[06:35] systemfault: What is the problem?
[06:35] zackattack: :p
[06:36] zackattack: callback insanity
[06:36] systemfault: You have a big callback triangle of death? :P
[06:36] erujolc has joined the channel
[06:37] zackattack: the bermuda of callbacks
[06:38] systemfault: Do you have some code we could see?
[06:38] tornad has joined the channel
[06:38] skylamer` has joined the channel
[06:38] zackattack: Is there a limit to the size of an object that can be passed to jade?
[06:39] tilgovi has joined the channel
[06:41] zackattack: yep, that was the problem
[06:41] zackattack: jade can't handle associative arrays.
[06:41] garrensmith has joined the channel
[06:42] plato: cool
[06:48] stagas has joined the channel
[06:48] framlin: just use weld ;)
[06:48] dekub has joined the channel
[06:49] copongcopong has joined the channel
[06:55] MerlinDMC has joined the channel
[06:56] sigurding has joined the channel
[06:57] PsiliPharm has joined the channel
[06:58] Joeysomo has joined the channel
[06:58] Joeysomo has joined the channel
[06:58] stagas has joined the channel
[06:58] SamuraiJack has joined the channel
[06:59] yawNO has joined the channel
[07:00] Raverix has joined the channel
[07:01] Athanasius has joined the channel
[07:01] Athanasius has left the channel
[07:01] MagiC3PO has joined the channel
[07:02] mansoor has joined the channel
[07:03] pid1 has joined the channel
[07:03] umren has joined the channel
[07:05] Raverix has joined the channel
[07:05] arvidkahl has joined the channel
[07:06] frnkkpp has joined the channel
[07:06] sandfox has joined the channel
[07:07] OmidRaha has joined the channel
[07:13] graeme_f has joined the channel
[07:13] eboy: I need to cross-platformly create path.join(foo, "blah", "config.json") if it doesn't exist. Is there an easy way to do that? My current solution only works on non-Windows.
[07:13] PsiliPharm has joined the channel
[07:13] eboy: It's pretty horendous.
[07:16] seige has joined the channel
[07:17] seige: nodejs mongodb noob here. I am using mongodb-native-driver module and my find().toArray() never returns
[07:17] seige: any pointers why ?
[07:17] MerlinDMC: eboy, require('path').join('1','2','3')
[07:19] bartek has joined the channel
[07:19] eboy: MerlinDMC: Sorry, but that doesn't create directories.
[07:20] MerlinDMC: eboy, then i missunderstood the question ;)
[07:20] eboy: Heh yes.
[07:20] seige: does anyone know why mongodb-native-client find().toArray() call hangs ?
[07:20] seige: my callback is never invoked
[07:20] eboy: This creates a file in a directory. If the directory doesn't exist, it creates the directory.
[07:21] eboy: I'm sure I can hack something up.
[07:22] pvankouteren has joined the channel
[07:25] MrNko has joined the channel
[07:33] innociv has joined the channel
[07:33] sirwan has joined the channel
[07:34] fangel has joined the channel
[07:35] velo has joined the channel
[07:36] Bonuspunkt has joined the channel
[07:37] rendar has joined the channel
[07:37] nqbao has joined the channel
[07:38] _baton_ has joined the channel
[07:40] ph^ has joined the channel
[07:42] Chel has joined the channel
[07:42] levi501d: hariballs
[07:42] rlidwka has joined the channel
[07:42] levi501d: s/hari/hair
[07:42] levi501d: sorry first thing that popped into my head
[07:43] levi501d: anyone in here use drupal? and played with the nodejs drupal module?
[07:43] stagas has joined the channel
[07:43] dannyamey has joined the channel
[07:45] redir has joined the channel
[07:47] Drevokocur has joined the channel
[07:48] nqbao1 has joined the channel
[07:49] criswell has joined the channel
[07:49] skm has joined the channel
[07:52] PsiliPharm has joined the channel
[07:54] redir has joined the channel
[07:55] groom has joined the channel
[07:56] benvie has joined the channel
[07:56] Shrink has joined the channel
[07:56] Shrink has joined the channel
[07:58] Edler has joined the channel
[07:59] Edler: hey guys, my first time using WebSockets
[07:59] Edler: i've gotten my client side code which should connect to a websocket
[07:59] Edler: now if i have a node server
[07:59] Edler: where can i get a sample code to listen and open a socket on the server side (node) ?
[07:59] uchuff has joined the channel
[08:00] bergie_ has joined the channel
[08:00] meso has joined the channel
[08:01] umren has joined the channel
[08:01] yawNO has joined the channel
[08:01] aliem has joined the channel
[08:01] mansoor: Edler, if you want just a WS server https://github.com/einaros/ws seems to be a good choice
[08:02] Edler: where is the js file i must run using node ?
[08:03] herbySk has joined the channel
[08:03] mansoor: Edler, you install that via npm
[08:03] nqbao1 has left the channel
[08:03] mansoor: what OS are you running and how did yo uinstall node?
[08:04] spolu has joined the channel
[08:04] stafamus has joined the channel
[08:04] Edler: Ubuntu 10.04
[08:04] Edler: using python
[08:05] \mSg has joined the channel
[08:05] thalll has joined the channel
[08:05] Hanspolo has joined the channel
[08:06] mansoor: Edler, install NPM its a package manager for node.js modules http://npmjs.org/
[08:06] Edler: yes
[08:06] emattias has joined the channel
[08:07] Edler: i just did and installed the ws module
[08:07] Edler: checking it out, thanks
[08:07] djcoin has joined the channel
[08:07] kPb_in has joined the channel
[08:08] Knowledge has joined the channel
[08:09] thirdknife has joined the channel
[08:09] Edler: manor, didn't work :(
[08:10] OmidRaha has joined the channel
[08:10] Edler: here's the code i have on server : http://pastebin.com/dsSd2G0h (running)
[08:10] Edler: on client side i try to do : OurWebsocket = new WebSocket("ws://myserver:8080/");
[08:10] Edler: and it closes the socket immediatly
[08:11] Knowledge has joined the channel
[08:11] RLa has joined the channel
[08:12] thirdknife: whats the most stable release?
[08:13] riverraid has joined the channel
[08:16] hipsters_ has joined the channel
[08:17] [AD]Turbo has joined the channel
[08:18] copongcopong has joined the channel
[08:18] dekroning has joined the channel
[08:19] stonebranch has joined the channel
[08:19] [AD]Turbo: yo
[08:19] [[zz]] has joined the channel
[08:19] pizthewiz has joined the channel
[08:20] tomnewmann has joined the channel
[08:21] josh-k has joined the channel
[08:22] jetienne has joined the channel
[08:24] bvmount has joined the channel
[08:26] jkarsrud has joined the channel
[08:28] salva has joined the channel
[08:29] markwubben has joined the channel
[08:30] rushed has joined the channel
[08:30] AD7six has joined the channel
[08:32] Wizek has joined the channel
[08:35] zomg: thirdknife: probably the latest version in 0.6.x
[08:35] thirdknife: thanks zomg
[08:38] stagas has joined the channel
[08:39] whitman has joined the channel
[08:39] RLa: aren't earliest (and obsolete) versions most stable since they are not developed anymore?
[08:39] tanepiper has joined the channel
[08:40] mehlah has joined the channel
[08:42] ccare has joined the channel
[08:43] __doc__ has joined the channel
[08:44] schredder has joined the channel
[08:44] timoxley has joined the channel
[08:45] zomg: RLa: Earlier releases would contain all the bugs which were fixed in newer releases
[08:47] joshgillies has joined the channel
[08:49] RLa: but won't newer releases contain more code and thus more possibilities for bugs :)
[08:49] zomg: Not necessarily
[08:50] zomg: The core would be more stable with newer releases but the newly added features could contain bugs, but you wouldn't even have those features with the old ones
[08:50] zomg: This would be my assumption of it anyways
[08:52] kjeldahl has joined the channel
[08:53] ppcano has joined the channel
[08:54] raphaelT_ has joined the channel
[08:55] graeme_f has joined the channel
[08:55] raphaelT_ has joined the channel
[08:56] raghu_ has joined the channel
[08:57] DuoSRX has joined the channel
[08:57] rio{ has joined the channel
[09:01] tokumine has joined the channel
[09:01] fengliu has joined the channel
[09:02] hackband has joined the channel
[09:02] kPb_in has joined the channel
[09:03] bergie_ has joined the channel
[09:03] stagas has joined the channel
[09:06] hipsters_ has joined the channel
[09:07] mikedeboer has joined the channel
[09:08] satyr has joined the channel
[09:09] tanepiper has joined the channel
[09:13] jxie has joined the channel
[09:13] insin has joined the channel
[09:14] zackattack has joined the channel
[09:17] disappearedng has joined the channel
[09:17] disappearedng has joined the channel
[09:17] disappearedng: Weird that there's no console.debug in ndoejs
[09:18] maritz has joined the channel
[09:19] kPb_in: hey guys.. where can I get the source code of "os" module? tried finding it in github repo but couldn't
[09:20] emattias_ has joined the channel
[09:23] insin: https://github.com/joyent/node/blob/master/lib/os.js
[09:25] mansoor has joined the channel
[09:27] RLa: you might want to look at https://github.com/joyent/node/blob/master/src/node_os.cc too
[09:28] tokumine has joined the channel
[09:29] riven has joined the channel
[09:29] riven has joined the channel
[09:29] brianleroux has joined the channel
[09:31] icebox has joined the channel
[09:31] level09 has joined the channel
[09:32] stinnes has joined the channel
[09:34] HardFu has joined the channel
[09:35] felixhummel has joined the channel
[09:35] unomi has joined the channel
[09:36] erikzaadi has joined the channel
[09:37] spolu has joined the channel
[09:38] Evanlec has joined the channel
[09:39] thirdknife: is npm now already within node
[09:39] thirdknife: ?
[09:39] unomi: https://plus.google.com/u/0/114020236201265101594/posts/frDfcNXxAMK
[09:39] mansoor: thirdknife, it comes with node installer on windows
[09:39] mansoor: may MAYBE* on macs
[09:39] markwubb_ has joined the channel
[09:40] vguerra has joined the channel
[09:43] pgte has joined the channel
[09:43] ohtogo has joined the channel
[09:43] riverraid has joined the channel
[09:43] TomY has joined the channel
[09:44] `3rdEden has joined the channel
[09:45] riven has joined the channel
[09:45] riven has joined the channel
[09:45] michaelhartau has joined the channel
[09:47] _tors has joined the channel
[09:48] zed0 has joined the channel
[09:50] kPb_in: thanx insin RLa
[09:50] bergie_ has joined the channel
[09:50] Guest10816 has joined the channel
[09:51] dannyamey has joined the channel
[09:52] zivester has joined the channel
[09:53] DrPheltRight has joined the channel
[09:54] zed0 has joined the channel
[09:59] sandfox has joined the channel
[09:59] versicolor has joined the channel
[10:00] diva has joined the channel
[10:03] QiBala has joined the channel
[10:03] dubenstein has joined the channel
[10:04] thalll has joined the channel
[10:05] riven has joined the channel
[10:05] hz has joined the channel
[10:06] boltR has joined the channel
[10:06] emattias has joined the channel
[10:09] akasha has joined the channel
[10:09] argami has joined the channel
[10:11] SamuraiJack has joined the channel
[10:13] robhawkes has joined the channel
[10:14] ginkosama has joined the channel
[10:14] ginkosama: hi
[10:14] sandfox has joined the channel
[10:16] ginkosama: I have a problem using node.js : I made a simple chat application using node.js and socket.io, i launch it on the server with "node chat.js &" and everything is fine, it run very well, but sometimes, the server just stop to run... and i don't know why, i can't find any node error log or similar problem on google, the problem iss obviously in my code, but how can i get the reason that make node stop ?
[10:16] lmjabreu has joined the channel
[10:17] diva has joined the channel
[10:18] ginkosama: i tired to run it like this "node chat.js 1>node.log 2>node.err" and the console log are in node.log, but when the server crash, nothing in node.err
[10:18] mansoor: ginkosama, you could wrap the whole thingin a try catch :)
[10:18] ginkosama: tried*
[10:18] insin: http://nodejs.org/docs/latest/api/process.html#process_event_uncaughtexception
[10:18] ginkosama: mansoor, yep that's a good idea
[10:18] ginkosama: cool
[10:18] ginkosama: thank you insin
[10:18] ginkosama: i mean thank you both
[10:20] icebox: ginkosama: if you exit from the shell, you should use "nohup" to launch the server
[10:20] bradleyg has joined the channel
[10:24] grefven has joined the channel
[10:25] jacobolus has joined the channel
[10:26] eldios has joined the channel
[10:26] _ralph has joined the channel
[10:28] jimmysparkle has joined the channel
[10:28] shinuza has joined the channel
[10:29] aslant has joined the channel
[10:30] ginkosama: if i put an "&" it's not enough icebox ?
[10:32] copongcopong has joined the channel
[10:33] icebox: ginkosama: no
[10:34] disappea_ has joined the channel
[10:34] icebox: ginkosama: the parent process of node one is the shell. If the shell is closed, the children processes are closed
[10:35] icebox: ginkosama: http://en.wikipedia.org/wiki/Nohup
[10:35] ginkosama: yes i'm reading it :)
[10:35] ginkosama: thanks
[10:36] icebox: ginkosama: but maybe it is not that your issue :)
[10:36] mansoor: Anyone know if its possible to forward a request for static content to nginx from node-http-proxy?
[10:37] mansoor: the reason why i'm not forwarding from nginx to node is because nginx doesn't have support for websockets and I need that
[10:38] level09 has joined the channel
[10:40] tvw has joined the channel
[10:40] icebox: mansoor: http://stackoverflow.com/questions/2214289/is-there-a-solution-that-lets-node-js-act-as-an-http-reverse-proxy
[10:40] booo has joined the channel
[10:41] icebox: mansoor: is it relevant to your issue?
[10:41] MerlinDMC: mansoor, nginx could handle the requests: https://github.com/yaoweibin/nginx_tcp_proxy_module
[10:41] Wizek has joined the channel
[10:42] anoop has joined the channel
[10:42] mansoor: yah just saw that
[10:42] anoop: how can I check the state of process from node, with it's PID
[10:42] mansoor: i guess i'll go with nginx being the reverse proxy
[10:42] mansoor: thanks icebox and MerlinDMC
[10:43] larsschenk has joined the channel
[10:43] larsschenk1 has joined the channel
[10:43] larsschenk1 has left the channel
[10:44] rlidwka has joined the channel
[10:44] flou has joined the channel
[10:45] majek has joined the channel
[10:47] cosmincx has joined the channel
[10:47] anoop: I have spawned a process from a script, after some delay i have to kill it. When trying to kill, if the process is dead alredy the script breaks.
[10:47] fair_weather has joined the channel
[10:47] level09 has joined the channel
[10:47] anoop: so how can i check whether a process is up or not, before killing it
[10:48] icebox: anoop: http://flowcoder.com/88
[10:48] icebox: anoop: it gets ps command output
[10:48] icebox: anoop: you may parse it
[10:49] anoop: ok, will try it, thanks icebox
[10:50] pickels has joined the channel
[10:50] asteros has joined the channel
[10:52] pickels has joined the channel
[10:54] niloy has joined the channel
[10:56] iksik_ has joined the channel
[10:57] robm has joined the channel
[10:57] mattp_ has joined the channel
[10:59] aranw has joined the channel
[10:59] socketio\test\96 has joined the channel
[11:00] socketio\test\35 has joined the channel
[11:04] dekub has left the channel
[11:08] pickels has joined the channel
[11:13] scottdware has joined the channel
[11:13] stagas has joined the channel
[11:15] darrenlooby has joined the channel
[11:17] ppcano has joined the channel
[11:17] rlidwka: anoop: script should not break if a child process is dead
[11:17] rlidwka: try wrapping your code with try...catch
[11:17] rlidwka: and listen for 'error' events
[11:19] louissmit has joined the channel
[11:20] Morkel has joined the channel
[11:22] ohtogo has joined the channel
[11:22] fangel has joined the channel
[11:22] Vennril has joined the channel
[11:24] bburhans has joined the channel
[11:25] anoop: rlidwka, The script breaks when trying to Process.kill() on already dead process
[11:25] ezmobius has joined the channel
[11:26] wingie: does fs has problems with reading ACL protected folders?
[11:26] ezmobius has joined the channel
[11:26] wingie: even though there are no permissions on it yet
[11:28] fangel has joined the channel
[11:29] ezmobius has joined the channel
[11:30] Knowledge has joined the channel
[11:30] ezmobius has left the channel
[11:34] hipertracker has joined the channel
[11:35] baudehlo has joined the channel
[11:36] enmand has joined the channel
[11:43] rlidwka: anoop: what does mean "breaks"? your script throws some error that you have to catch, right?
[11:44] thirdknife has joined the channel
[11:47] i42n has joined the channel
[11:50] nicholasf has joined the channel
[11:53] michaelh_ has joined the channel
[11:58] arduix has joined the channel
[12:00] cjm has joined the channel
[12:01] artusrocha has joined the channel
[12:02] baudehlo has joined the channel
[12:03] pbgc has joined the channel
[12:05] Vespakoen has joined the channel
[12:06] hz has joined the channel
[12:07] ohtogo has joined the channel
[12:08] tommyvyo has joined the channel
[12:08] emilsedgh has joined the channel
[12:09] wizonesolutions has joined the channel
[12:10] conancat has joined the channel
[12:10] k1ttty has joined the channel
[12:10] Fuu has joined the channel
[12:11] lmjabreu has joined the channel
[12:18] stagas has joined the channel
[12:20] arduix has joined the channel
[12:20] stonebra_ has joined the channel
[12:20] hipsters_ has joined the channel
[12:20] satyr has joined the channel
[12:24] thalll has joined the channel
[12:26] subbyyy has joined the channel
[12:27] pickels has joined the channel
[12:31] fairwinds has joined the channel
[12:31] djbell has joined the channel
[12:33] anoop: rlidwka, the script exits
[12:33] robi42 has joined the channel
[12:33] stagas has joined the channel
[12:34] hipertracker has joined the channel
[12:35] robi42_ has joined the channel
[12:35] fangel has joined the channel
[12:37] thinkt4nk has joined the channel
[12:37] Vainoharhainen has joined the channel
[12:37] hellp has joined the channel
[12:37] subbyyy has joined the channel
[12:39] rurufufuss has joined the channel
[12:40] fumanchu182 has joined the channel
[12:42] brianseeders has joined the channel
[12:43] Morkel has joined the channel
[12:43] timoxley has joined the channel
[12:44] uchuff has joined the channel
[12:46] vkareh has joined the channel
[12:47] arduix has joined the channel
[12:49] pickels_ has joined the channel
[12:49] jomoho has joined the channel
[12:50] Vespakoen has left the channel
[12:50] antono has joined the channel
[12:51] snoj has joined the channel
[12:52] timoxley has joined the channel
[12:52] pauls1 has joined the channel
[12:56] thurmda1 has joined the channel
[12:56] smorin has joined the channel
[12:57] whaley has joined the channel
[12:58] necromancer has joined the channel
[13:01] vbabiy has joined the channel
[13:01] sphinxxx has joined the channel
[13:01] xippi has joined the channel
[13:01] fermion has joined the channel
[13:03] level09_ has joined the channel
[13:06] thinkt4nk_ has joined the channel
[13:10] erikzaadi has joined the channel
[13:10] madtimber has joined the channel
[13:10] CromeDome has joined the channel
[13:12] AaronMT has joined the channel
[13:14] lduros has joined the channel
[13:15] Drevokocur has joined the channel
[13:16] bnoordhuis has joined the channel
[13:17] tmike1 has joined the channel
[13:17] asd has joined the channel
[13:18] crutex has joined the channel
[13:18] crutex has joined the channel
[13:19] phrearch has joined the channel
[13:19] phrearch: hi
[13:20] phrearch: im new to node.js. would like to install vogue (https://github.com/quizlet/vogue/tree/master/src), but all it has is a source package. how can i install that with npm?
[13:21] benvie: says `npm install vogue -g`, that work?
[13:21] crutex has joined the channel
[13:21] crutex has joined the channel
[13:23] owenb has joined the channel
[13:23] kPb_in has joined the channel
[13:23] mmalecki: is putting file extension at the end of a route RESTful?
[13:24] phrearch: benvie: doesnt that install from the main repos? i think that vogue version is deprecated
[13:24] mmalecki: like, PUT /route/resource/:id.tgz?
[13:24] phrearch: at least, socket.io doesnt work properly within my browser
[13:26] smorin has joined the channel
[13:26] benvie: oh
[13:26] kmiyashiro has joined the channel
[13:27] phrearch: ah the package file seemed to be invalid
[13:27] phrearch: its installing now
[13:27] benvie: good question mmalecki
[13:28] benvie: the other way seems less elegant, adding like a whole extra part to the route to specify format
[13:29] benvie: either that or using request headers to specify
[13:29] mmalecki: benvie: yeah, I'm currently using content-type, but it introduces hell lot of problems
[13:29] mmalecki: like, I accept JSON or tarball
[13:29] benvie: and isn't something a user can easily change by hand
[13:29] gtramontina has joined the channel
[13:30] phrearch: great, this version of vogue runs fine
[13:30] CromeDome has joined the channel
[13:30] phrearch: it seemed to be the socket.io version
[13:30] rwaldron has joined the channel
[13:30] tmcw has joined the channel
[13:30] philips has joined the channel
[13:31] timoxley has joined the channel
[13:31] spacesuit has joined the channel
[13:32] BrianE|mobile has joined the channel
[13:33] fangel has joined the channel
[13:35] mraxilus has joined the channel
[13:36] CarlosC has joined the channel
[13:36] briancray has joined the channel
[13:37] level09 has joined the channel
[13:39] pandeiro has joined the channel
[13:39] malcolmva has joined the channel
[13:39] nqbao has joined the channel
[13:40] nqbao has left the channel
[13:40] tmcw has joined the channel
[13:41] MartinCleaver has joined the channel
[13:41] erichynds has joined the channel
[13:42] niloy has joined the channel
[13:43] timoxley has joined the channel
[13:44] muddo has joined the channel
[13:45] bkaney has joined the channel
[13:46] bburhans has joined the channel
[13:46] shinuza has joined the channel
[13:47] pendlepants has joined the channel
[13:48] willwhite has joined the channel
[13:49] brainss has joined the channel
[13:50] lazyshot has joined the channel
[13:51] c4milo has joined the channel
[13:51] carlyle has joined the channel
[13:51] carlyle has joined the channel
[13:53] thomblake has joined the channel
[13:53] thomblake has left the channel
[13:55] esteth has joined the channel
[13:56] bandu has joined the channel
[13:57] Aikar has joined the channel
[13:57] Aikar has joined the channel
[13:57] Wizek has joined the channel
[13:58] relling has joined the channel
[13:58] mraxilus has joined the channel
[14:00] jdeibele has joined the channel
[14:01] plutoniix has joined the channel
[14:01] dilvie has joined the channel
[14:02] bkaney_ has joined the channel
[14:04] mandric has joined the channel
[14:06] OmidRaha has joined the channel
[14:06] qbit_: is there a way to kill a response from http.get after x chunks have been received?
[14:07] pgte has joined the channel
[14:09] tomh has joined the channel
[14:09] Joeysomo has joined the channel
[14:11] Lee- has joined the channel
[14:11] Lee- has joined the channel
[14:12] gqlewis has joined the channel
[14:12] Destos has joined the channel
[14:12] HacDan has joined the channel
[14:13] apoc has joined the channel
[14:14] Cromulent has joined the channel
[14:14] Poetro has joined the channel
[14:14] Poetro has joined the channel
[14:14] newbieNode has joined the channel
[14:14] stagas: qbit_: res.destroy() maybe
[14:15] qbit_: wew - yep
[14:15] qbit_: thanks :D
[14:15] beejeebus has joined the channel
[14:15] josh-k has joined the channel
[14:16] newbieNode: hello, I'm trying to get node-v0.6.12 built on redhat and i'm getting a build error:
[14:16] newbieNode: Build failed: -> task failed (err #2):
[14:16] newbieNode: {task: uv uv.h -> uv.a}
[14:16] newbieNode: any thoughts?
[14:17] apoc has joined the channel
[14:17] apoc has joined the channel
[14:17] materialdesigner has joined the channel
[14:18] apoc_ has joined the channel
[14:18] vam3c has joined the channel
[14:18] kmiyashiro has joined the channel
[14:19] davidsklar has joined the channel
[14:19] jscheel has joined the channel
[14:19] jscheel has joined the channel
[14:19] hipertracker has joined the channel
[14:20] sigurding has joined the channel
[14:20] diva has joined the channel
[14:22] ohtogo has joined the channel
[14:22] newbieNode: does anyone have any experience building Node on RedHat Enterprise?
[14:24] mansoor: newbieNode, is it similar to fedora? o_O
[14:24] newbieNode: maybe...i think the root of my build issue is this: cc1: unrecognized option `-Wextra'
[14:24] ditesh|cassini has joined the channel
[14:25] tmike: newbieNode: paste the output of the build
[14:25] newbieNode: with version node-v0.6.12
[14:25] newbieNode: [jsmith@dev04 node-v0.6.12]$ make Waf: Entering directory `/home/jsmith/node/node-v0.6.12/out' DEST_OS: linux DEST_CPU: ia32 Parallel Jobs: 1 Product type: program [ 1/35] copy: src/node_config.h.in -> out/Release/src/node_config.h [ 2/35] cc: deps/http_parser/http_parser.c -> out/Release/deps/http_parser/http_parser_3.o /usr/bin/gcc -rdynamic -pthread -m32 -g -O3 -DHAVE_OPENSSL=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAV
[14:25] diogogmt has joined the channel
[14:25] tmike: into a pastebin
[14:26] newbieNode: pastebin?
[14:26] tmike: pastebin.com
[14:26] newbieNode: i'm blocked from pastebin.com :(
[14:26] tmike: paste.totallymike.info
[14:28] baudehlo has joined the channel
[14:28] newbieNode: http://paste.totallymike.info/?p=i67fYBcv
[14:29] shinuza has joined the channel
[14:29] tmike: lol I didn't realize gcc had a 'pedantic' flag
[14:29] CromeDome has joined the channel
[14:29] newbieNode: easy fix?
[14:30] tmike: Are you sure you have all the build dependencies? What version of RHEL are you using?
[14:30] tmike: (Those are two different questions)
[14:30] MartinCleaver has joined the channel
[14:30] MartinCleaver has joined the channel
[14:31] newbieNode: i've installed the latest python and openssl and i get this build error.
[14:31] tmike: What version of RHEL are you using?
[14:31] newbieNode: my version is: Linux dev04 2.4.21-47.EL #1 Wed Jul 5 20:46:55 EDT 2006 i686 i686 i386 GNU/Linux LSB_VERSION="1.3" Red Hat Enterprise Linux ES release 3 (Taroon Update 8)
[14:31] tmike: ooh yeah, you've probably got a tremendously old version of gcc, not to mention linux 2.4
[14:32] tmike: I don't know much about building it on that old of a system :-/
[14:32] newbieNode: oh ok...so should i upgrade gcc first and try that?
[14:32] SomeoneWeird has joined the channel
[14:32] SomeoneWeird: Anyone know how to make express use ssl?
[14:33] tmike: You'll have a heck of a time getting that system to run a modern version of gcc
[14:33] tmike: what version is it, by the way?
[14:33] newbieNode: ok...thanks....i'll have to hunt for a more recent box..thanks Mike!
[14:33] tmike: Are you trying to build it on a server?
[14:33] newbieNode: yes
[14:33] tmike: I'm surprised to see RHEL3 still out there
[14:34] newbieNode: this is just an old development playground box...no real use...i think i can find a more updated box somewhere...
[14:34] tmike: You'll likely have an easier time of it there. I wish you luck.
[14:34] newbieNode: thanks for the help tmike :)
[14:35] tmike: Not that I was much help, you're welcome.
[14:36] tmike: HAS anyone built node on a 2.4 system?
[14:36] blup has joined the channel
[14:37] tmike: I can't imagine it even has gcc 4.x on it.
[14:38] dgathright has joined the channel
[14:39] vipaca has joined the channel
[14:39] vipaca has joined the channel
[14:40] gsmcwhirter has joined the channel
[14:41] bergie_ has joined the channel
[14:42] jxie has joined the channel
[14:42] pid1 has joined the channel
[14:44] booo has joined the channel
[14:44] rowanu has joined the channel
[14:45] adambeynon has joined the channel
[14:46] joshfinnie has joined the channel
[14:46] piscisaureus_ has joined the channel
[14:46] halfhalo has joined the channel
[14:46] kriszyp has joined the channel
[14:46] halfhalo has joined the channel
[14:48] theCole has joined the channel
[14:48] CarterL has joined the channel
[14:49] rauchg has joined the channel
[14:50] chrisvwebdev has joined the channel
[14:51] marcostoledo has joined the channel
[14:52] cryptix has joined the channel
[14:52] dannyamey has joined the channel
[14:53] JJMalina has joined the channel
[14:53] dwhittle has joined the channel
[14:53] EhevuTov has joined the channel
[14:53] rtgibbons has joined the channel
[14:53] kevinswiber has joined the channel
[14:54] jimt_ has joined the channel
[14:55] josh_k has joined the channel
[14:55] jocafa has joined the channel
[14:55] postwait has joined the channel
[14:55] c4milo has joined the channel
[14:56] igl has joined the channel
[14:58] gavin_huang has joined the channel
[15:02] sphinxxx has joined the channel
[15:02] pendlepants has joined the channel
[15:02] yawNO has joined the channel
[15:03] yawNO: sup
[15:05] thejefflarson has joined the channel
[15:05] jtsnow has joined the channel
[15:07] dthompso99 has joined the channel
[15:07] baudehlo: tmike: I tried once, and failed. It needs epoll which came in 2.6.
[15:07] kevwil has joined the channel
[15:09] MerlinDMC: baudehlo, there should be an epoll patch for 2.4 around
[15:09] tjholowaychuk has joined the channel
[15:09] kevwil has joined the channel
[15:10] MerlinDMC: http://www.xmailserver.org/linux-patches/nio-improve.html#patches there :)
[15:10] lmjabreu has joined the channel
[15:10] spacesuit has joined the channel
[15:10] dr0id has left the channel
[15:10] colinclark has joined the channel
[15:11] colinclark has joined the channel
[15:12] isaacs has joined the channel
[15:14] sorensen__ has joined the channel
[15:15] wankdanker has joined the channel
[15:16] _baton_ has joined the channel
[15:17] redir has joined the channel
[15:18] joshfinnie has joined the channel
[15:19] baudehlo: MerlinDMC: yeah I know, but really if you're going to patch your kernel to add in epoll, why not just run a new kernel?
[15:20] artusrocha has joined the channel
[15:20] MerlinDMC: maybe because of some weird old hardware that has no usable drivers in newer kernels ... I would not run a 2.4 kernel if I can choose
[15:20] infynyxx has joined the channel
[15:22] baudehlo: *nod*
[15:22] yawNO: *node*
[15:22] baudehlo: we had the opposite problem at my last company - new hardware required a newer kernel and we didn't want to upgrade the OS.
[15:22] yawNO: ok that was a terrible joke :<
[15:23] baudehlo: But then, it was Red Hat 8.
[15:23] AbeEstrada has joined the channel
[15:25] Edy has joined the channel
[15:26] Zzaichik has joined the channel
[15:27] clu3 has joined the channel
[15:28] Morkel has joined the channel
[15:28] rtgibbons has joined the channel
[15:29] stafamus has joined the channel
[15:29] maritz: yawNO: yo mama is so blocking, the event loop just gave up and comitted suicide when it saw her.
[15:29] maritz: now that is a terrible joke.
[15:30] mmalecki: I facepalmed and lol'd at the same time
[15:30] robm has joined the channel
[15:31] yawNO: maritz: yo mama's so dumb she took a spoon to the super bowl
[15:31] yawNO: now what?
[15:32] maritz: my momma don't even know wat da supa bowl is, dude
[15:32] maritz: oh wait, that was the joke
[15:32] maritz: .... :x
[15:32] yawNO: its known that germans dont get jokes
[15:32] yawNO: no problem
[15:32] maritz: alhtough i suspect she knows the difference between supper and super.
[15:32] adrianF has joined the channel
[15:33] djcoin has joined the channel
[15:33] yawNO: maritz: super is also big
[15:33] maritz: yes, i know
[15:33] Destos has joined the channel
[15:33] yawNO: yo mama so fat when she wears something yellow they call her taxiii
[15:33] yawNO: and thats all i know ._.
[15:33] maritz: better than zeppelin
[15:33] yawNO: im no comedian
[15:34] ohtogo has joined the channel
[15:34] perezd has joined the channel
[15:35] yawNO: why
[15:35] yawNO: zeppelins are solid and reliable
[15:35] CoverSlide: I'm so async my legos are non-blocking
[15:35] bnoordhuis: *drum roll*
[15:35] yawNO: you should call your next project zeppelin, maritz .. it will be a blast
[15:36] CoverSlide: call it hindenberg
[15:36] maritz: and introduce a hindenbug
[15:37] yaymukund: anyone know why should.not.exist(null) isn't working? (using should.js)
[15:37] yawNO: i was trying to make it more subtle.. thank you captain Obvious :(
[15:37] maritz: ok, next target in life: built a web app that has an automatic switch that deletes all source code, databases and backups once it hits 1m users.
[15:37] maritz: *build
[15:37] yawNO: maritz: its called pinterest
[15:37] yawNO: wait and see.
[15:37] mansoor: uhhh all this witty word play is freeking me out
[15:37] mansoor: :(
[15:38] yaymukund: looks like the Readme.md commit that adds documentation for should.not.exist is merged into master, but not the actual code that implements it lol
[15:38] maritz: mansoor: don't worry, it's not witty at all, it's just stupid. so you're better off not reading it :D
[15:38] mansoor: yippe
[15:38] rtgibbons has joined the channel
[15:40] yawNO: yaymukund: because null is treated as false? just guessing
[15:40] yawNO: oh wait
[15:40] yawNO: read it wrong.. sry
[15:40] blueadept has joined the channel
[15:40] maritz: yawNO: haha, if you go to pinterest and just press page down until you're at the bottom, it transfers over 20mb overall :D
[15:40] yawNO: maritz: its art, not stupid jokes
[15:41] yawNO: Y U NO get it
[15:41] rlidwka has joined the channel
[15:41] yawNO: maritz: twitter isnt that far away
[15:41] JSONB has joined the channel
[15:41] yaymukund: yawNO: it fails with "Object has no property exist". I think there's a ticket but it seems weird that the docs would say it works when it doesn't. oh well..
[15:41] yawNO: thank god they fixed my internet
[15:41] maritz: oh well, i guess 19mb of that is facebook pictures, so pinterest doesn't care about the traffic :D
[15:41] CoverSlide: why does the first world problems meme picute look like a domestic abuse shot?
[15:42] CoverSlide: *picture
[15:42] yawNO: yaymukund: you sure its not and not not()?
[15:42] yawNO: maritz: hot linking is for loosers
[15:42] yawNO: i would directly iframe the page
[15:42] yawNO: :trollface:
[15:43] maritz: no, i made a mistake, it's actually hosted on the pinterest cdn but initiated by facebook graph bullshit
[15:43] yawNO: maritz: you should check out towerjs
[15:43] yawNO: looks like the framework for you
[15:44] CoverSlide: coffee sucks
[15:44] CoverSlide: coffee is not for closures
[15:44] yawNO: well i like coffee
[15:44] yawNO: i think you mean cs though
[15:45] maritz: yaymukund: where are you using shoul.js? node.js or in the browser?
[15:45] kenperkins has joined the channel
[15:45] geetarista has joined the channel
[15:46] diogogmt has joined the channel
[15:46] yaymukund: maritz, yawNO: could be my error. I am taking another look at my code. I'm using should.js with Mocha
[15:46] salva has joined the channel
[15:47] maritz: can you show a gist?
[15:47] yaymukund: maritz, yawNO: that is, with node
[15:47] yawNO: yaymukund: wat?
[15:47] maritz: yeah, i was just asking because some browsers don't support getters/setters yet and for some reason tj loves using them (although i've seen him comment that they're a bad thing, i think)
[15:48] yawNO: getter setters are sloooow
[15:48] tjholowaychuk: i dont love them
[15:48] yawNO: hohoho
[15:48] misza222 has joined the channel
[15:48] tjholowaychuk: should.js isnt supposed to be a browser lib
[15:48] remysharp: anyone know if there's a websocket node module that supports wss? (secure)?
[15:48] yawNO: maritz: you got owned :D
[15:48] tjholowaychuk: there's expect.js / chai available as well
[15:48] tjholowaychuk: and assert() of course
[15:49] tjholowaychuk: getters are only "good" for cute little test APIs haha
[15:49] tjholowaychuk: if even then
[15:49] aheckmann has joined the channel
[15:49] yawNO: they slow the hell down.. i hope proxies will fix this bottleneck.. havent looked at benchmarks though
[15:49] maritz: yeah, i mean looking at the should.js code gives me a bit of a headache to be honest. (at least compared to most of the other code i've seen from you which is mostly clean and awesome).
[15:50] tjholowaychuk: haha yeah exactly
[15:50] tjholowaychuk: proxies / accessors are just
[15:50] tjholowaychuk: unnecessary
[15:50] yawNO: why
[15:50] tjholowaychuk: but they're there so it can be tempting to use them
[15:50] tjholowaychuk: unfortunately
[15:50] maritz: there's like 4 different ways to get a not.exist() in there
[15:50] gr4yscale has joined the channel
[15:50] Spion has joined the channel
[15:50] yaymukund: https://gist.github.com/73ce62dda992a9ddc029
[15:51] tjholowaychuk: oh i didnt add that
[15:51] tjholowaychuk: i dont like that
[15:51] tjholowaychuk: assert(foo)
[15:51] yawNO: i mean its kinda nice to be able to implement method missing etc
[15:51] tjholowaychuk: ftw
[15:51] tjholowaychuk: yawNO nooo
[15:51] tjholowaychuk: that's bad
[15:51] tjholowaychuk: hah
[15:51] broofa has joined the channel
[15:51] tjholowaychuk: anyway im out
[15:51] maritz: bye :)
[15:51] yawNO: tjholowaychuk: damn .. next time you join tell me why
[15:51] yawNO: :P
[15:51] yaymukund: maritz: actually, crap, I think I just got a different bug. It's not the should.not.exist that's breaking
[15:52] yaymukund: maritz: I think I need to debug this myself for a bit longer before bothering anyone else :)
[15:52] rtgibbons has joined the channel
[15:52] yawNO: frozen coffee
[15:52] yawNO: or whatever its name is
[15:52] remysharp: secure websockets - any modules support this yet?
[15:53] CoverSlide: iced-coffee-script
[15:53] maritz: yeah, it's coffeescript anyways which is being investigated for irc-help-sanctions by the international congress for internets
[15:53] umren has joined the channel
[15:53] maritz: remysharp: you mean wss? i think most ws implementations should be able to handle it?! socket.io does, afaik
[15:54] yawNO: remysharp: http://groups.google.com/group/socket_io/browse_thread/thread/ba8d5bd06db781b1
[15:54] yawNO: 5 secs on google.. GIYF
[15:54] yawNO: maritz: thats modded cs
[15:54] maritz: wtf?
[15:54] remysharp: off top of your head - is that in websocket.io? I couldn't find any references
[15:54] yawNO: it introduces defer and awaits
[15:54] maritz: that's banned by the UN
[15:55] maritz: yawNO: your link is 2 years old.... :D
[15:55] yawNO: which should make your code more readable
[15:55] maritz: remysharp: no idea
[15:55] rowanu has joined the channel
[15:55] CoverSlide: tame.js added defer and waits, iced just puts that into coffescript
[15:55] yawNO: maritz: so? :< old things are the good ones
[15:55] maritz: (you missed that it's only 1.5 years old, phew)
[15:55] rick- has joined the channel
[15:56] conancat has joined the channel
[15:56] steveoh has joined the channel
[15:56] steveoh has left the channel
[15:57] CoverSlide: the old pythonism should apply to javascript "We're all consenting adults here"
[15:57] yawNO: maritz: i found icecreams in my refrigerator
[15:57] yawNO: fuck you
[15:57] yawNO: :D
[15:57] insin: CoverSlide++
[15:57] colinclark_ has joined the channel
[15:57] yawNO: just being completely unrelated because i have no more arguments
[15:58] jerrysv has joined the channel
[15:59] kenperkins: is there a recommended way of sending a static file on disk over the wire via http? I've seen implementations using both fs.readFile and fs.createReadStream
[15:59] bindr has joined the channel
[15:59] CoverSlide: fs.createReadStream would be the best
[15:59] CoverSlide: because is writes as it reads
[16:00] epa_ has joined the channel
[16:01] yaymukund: ok it works :D the test was breaking because, uh, the thing it was testing was broken.
[16:01] kenperkins: thanks CoverSlide
[16:01] Leemp has joined the channel
[16:01] colinclark__ has joined the channel
[16:01] kenperkins: lol CoverSlide: http://stackoverflow.com/questions/4589732/what-are-the-pros-and-cons-of-fs-createreadstream-vs-fs-readfile-in-node-js
[16:01] kenperkins: search is my friend
[16:02] nerdfiles1 has joined the channel
[16:02] nerdfiles1 has left the channel
[16:02] bshelton has joined the channel
[16:02] jn: just finished my node.js project!
[16:02] jn: http://jnordberg.github.com/wintersmith/
[16:02] joshontheweb has joined the channel
[16:02] maritz: yawNO: i ate a litre of ice over the past 2 days, i'm done with ice for at least a week :D
[16:03] yawNO: ice or icecreams
[16:03] yawNO: and .. why in hell do you measure ice in liters?
[16:04] maritz: ice cream, yeah. uhhm... beceause that's what ice cream is measured in?!
[16:04] dscape: any pointers on how to use domains in current node ?
[16:05] smorin has joined the channel
[16:06] CoverSlide: are domains even implemented yet?
[16:07] yawNO: maritz: we measure it in kilos
[16:07] yawNO: ._.
[16:07] voodootikigod has joined the channel
[16:08] rtgibbons has joined the channel
[16:08] ericmuyser has joined the channel
[16:08] michaelmartinez has joined the channel
[16:08] shadowshell has joined the channel
[16:09] michaelmartinez: Where are the cool kids hosting thier node apps these days?
[16:09] yawNO: vacations
[16:10] mmalecki: michaelmartinez: nodejitsu :)
[16:10] CoverSlide: nodejitsu mothafuckaaaaah
[16:10] cyphase has joined the channel
[16:10] diogogmt has joined the channel
[16:10] nathanielk: personal rackspace?
[16:10] maritz: yawNO: i bet berlusconi introduced that?!
[16:10] Karmaon has joined the channel
[16:10] michaelmartinez: Mmalecki... Yeah, you have a horse in that game. haha. I've signed up but have yet to hear anything.
[16:10] yawNO: maritz: its because you dont DRINK icecream
[16:10] yawNO: you EAT it
[16:11] yawNO: at least real ice cream
[16:11] kenperkins: nathanielk: that's what we do (rackspace)
[16:11] maritz: nodejitsu (or as a backup if nodejitsu doesn't offer what i need *yet*, a vps)
[16:11] mmalecki: michaelmartinez: http://gimmesomebeta.jit.su/ - our magical unicorn will hook you up :)
[16:11] mmalecki: maritz: what do you need?
[16:11] jj0hns0n has joined the channel
[16:11] nathanielk: kenperkins: i'm a unixbeard control freak... heroku, nodejitsu and friends just stress me out
[16:11] maritz: yawNO: ice cream at room temperature is a liquid which is why it's measured in litres. don't try to argue with me, i'm going to hammer you with italy stereotypes! :P
[16:11] CoverSlide: screw rackspace, use joyent!
[16:11] kenperkins: I actually think they are great, when you don't have a lot of limitations
[16:12] michaelmartinez: mmalecki: nice! The magical unicorn. FTFW!
[16:12] kenperkins: or your ambition is well defined
[16:12] kenperkins: rather, when you don't mind limitations
[16:12] maritz: mmalecki: did you get libxm2-dev installed on nodejitsu? :D
[16:12] nathanielk: CoverSlide: i would if i could afford it :)
[16:12] nathanielk: i like what i've read of smartos
[16:12] yawNO: maritz: whats wrong with you guys.. icecream is goddam solid
[16:12] nathanielk: but for sideprojects and things (even for my startup) i need cheap as possible
[16:12] mmalecki: maritz: we'll roll this out in the next deploy
[16:12] yawNO: if you melt gold do you measure it in kilos?
[16:12] yawNO: dafuq
[16:12] maritz: yawNO: everything is solid at 0K
[16:13] yawNO: *liters
[16:13] maritz: it's about room temperature (or maybe 0, at which ice cream melts as well btw)
[16:13] yawNO: maritz: actually 0K is where you dont have any mass
[16:13] maritz: mmalecki: see, until then my app is running on my vps :)
[16:13] CoverSlide: eww xml
[16:14] michaelmartinez: xmhell
[16:14] maritz: CoverSlide: yeah, sadly the api i'm querying is still working on a json output and doesn't have a release date for that yet. :(
[16:14] yawNO: maritz: so do you measure beer in kilos
[16:14] maritz: it's worse though, because it's a huge amount of data, the preferred format is xml in zip files. :D
[16:14] TheJH has joined the channel
[16:14] yawNO: i remember a oub i went in berlin
[16:14] CoverSlide: there are pure JS xml parsers / builders
[16:14] michaelmartinez: ha
[16:14] maritz: yawNO: no, because it is liquid at room temperature. wtf?!
[16:14] yawNO: you could ask for a meter of beer
[16:15] maritz: CoverSlide: i know. and they all suck.
[16:15] yawNO: supah cool
[16:15] CoverSlide: do they?
[16:15] maritz: yes
[16:15] maritz: utterly
[16:16] michaelmartinez: How much data maritz, just curious
[16:16] maletor has joined the channel
[16:16] yawNO: maritz: you mean your app that implodes when it reaches 1m users?
[16:17] joshthecoder has joined the channel
[16:17] Industrial: Does FlatIron have an IRC channel
[16:17] Dreamer3 has joined the channel
[16:18] kriskowal has joined the channel
[16:18] yawNO: Industrial: join #nodejitsu
[16:18] Industrial: k
[16:18] maritz: yawNO: no, that's a different one
[16:18] yawNO: too bad
[16:18] yawNO: :(
[16:18] boltR has joined the channel
[16:18] maritz: michaelmartinez: good question, no idea. wasn't my idea with the zip stuff. :D
[16:18] CoverSlide: hows rackspace cloud compare to ec2?
[16:19] ohtogo has joined the channel
[16:19] nathanielk: CoverSlide: vastly cheaper. $11-15/month for 24/7 uptime of their smallest linux
[16:19] baudehlo: ec2 is vastly over priced. Convenient though.
[16:20] baudehlo: access to S3 is nice and fast too.
[16:20] AndreasMadsen has joined the channel
[16:20] maritz: michaelmartinez: thetvdb.com theoretically "huge amount of data" is really dramatizised and i assume it's just to save a couple of mb because the traffic needs to be paid by someone and there isn't really any income for thetvdb.com except through donations.
[16:20] maritz: i'd really prefer tar.gz though :D
[16:21] tmike: Where I come from, a huge amount of data is billions of rows ;)
[16:22] michaelmartinez: I see... is this a client of yours or your project?
[16:22] CoverSlide: rows are for dinosaurs
[16:22] CoverSlide: keys are the new rows
[16:22] tmike: quite so
[16:22] yawNO: maritz: you make money out of donations? shame on you
[16:23] tmike: ACTION still has to use db2 at work
[16:23] baudehlo: CoverSlide: http://blog.evernote.com/tech/2012/02/23/whysql/
[16:23] michaelmartinez: yawNO that is how the US makes money
[16:23] yawNO: michaelmartinez: really
[16:23] michaelmartinez: Fuck that world goes round on donations. it is what it is
[16:23] michaelmartinez: the world
[16:23] yawNO: lets have a startup that processes donations
[16:24] yawNO: \s
[16:24] tmike: listening to rms, donations is the only ethical way to write software
[16:24] maritz: well, just getting the tv info of lost is >5k lines of xml. sure, nothing in an enterprise environment, but in an opensource self-financed api, every bit matters. :/
[16:24] Industrial: With Flatiron's Resourceful:
[16:24] Industrial: can I do this: Tag = resourceful.define 'tag' Tag.property 'name', String Item = resourceful.define 'item' Item.property 'tags', [Tag]
[16:24] michaelmartinez: At the end of the day, when you pay someone, you are giving them a donation
[16:24] Industrial: I'd be using a MongoDB backend, and expect Tag to be saved on the Item document
[16:24] maritz: yawNO: not me... thetvdb.com. i'm just using their api.
[16:24] Industrial: I'm looking for an odm that automatically converts subdocument trees to model isntances when you find it
[16:24] Industrial: that is not Mongoose, because I've found it to be slow
[16:24] EuroNerd has joined the channel
[16:24] maritz: michaelmartinez: my own project :D
[16:25] yawNO: maritz: y dont they use json
[16:25] yawNO: much more compact
[16:25] michaelmartinez: nice, good luck brosef
[16:25] CoverSlide: a donation that's not tax-deductible
[16:25] maritz: (again, not thetvdb.com but an app that queries it)
[16:25] Industrial: I'm using a homebrew solution at work but it doesn't support any kind of data content validation, just types on save.
[16:25] michaelmartinez: I gots some shit to get done... until next time gentlemen
[16:25] yawNO: byw
[16:25] maritz: yawNO: Y U NO READ? (they're developing a json api)
[16:25] Industrial: https://github.com/pmlopes/p-odm
[16:25] yawNO: oh
[16:25] yawNO: csb
[16:25] tmike: Not everyone has grok'd json yet. Some APIs still think xml's the way to go
[16:25] yawNO: i like json better
[16:26] CoverSlide: yaml ftw!
[16:26] tmike: of course, we're working with js ;)
[16:26] yawNO: its a matter of choice i suppose
[16:26] maritz: it really depends on what kind of data you have. there are still valid uses for xml, imo
[16:26] tmike: such as heavily attributed data
[16:26] maritz: *troll*like SOAP*/troll*
[16:26] yawNO: tmike: thats true
[16:27] tobias2 has joined the channel
[16:27] yawNO: but you could just embed a document and its done
[16:27] yawNO: uhm
[16:27] wendall911 has joined the channel
[16:27] yawNO: to watch or not to watch resident evil?
[16:27] tmike: I agree. As I'm saying that I'm thinking it could still be easier just to hash everything out in JSON
[16:27] CoverSlide: residentevil--
[16:27] CoverSlide: they all sucked
[16:28] yawNO: i've seen 2 and 3
[16:28] tmike: It's the "I Love My Wife's Tits" film series.
[16:28] yawNO: not great but now awful eithet
[16:28] jerrysv has joined the channel
[16:29] maritz: the first was awesome
[16:29] maritz: especially the soundtrack
[16:29] orlandovftw has joined the channel
[16:29] tmike: baudehlo: I'm reading this WhySQL article, and I'm thinking. It seems like the summary of the article is "ACID ACID ACID", but Couch is ACID too, no?
[16:31] BillyBreen has joined the channel
[16:31] Industrial: Anyone have an idea?
[16:31] Industrial: mmalecki: ?
[16:31] maritz: tmike: does any database sufficently implement the D part that isn't a file system based database?
[16:31] t0mmyvyo has joined the channel
[16:31] Industrial: (I remember you advising me FlatIron :p)
[16:31] yawNO: yeah im having pizza tonight
[16:32] Industrial: Burger king then snowboarding (in a hall) for me :)
[16:32] baudehlo: tmike: well couch is acid when you write one record. But you can't update "relations" in couch in an ACID way.
[16:32] yawNO: wat?
[16:32] tmike: maritz: I really don't know. I'm just getting into playing with couch
[16:32] yawNO: snowboarding?
[16:32] fangel has joined the channel
[16:32] yawNO: jeez snow melted here ;_
[16:32] yawNO: i hate you
[16:32] Industrial: snowboarding in a fake environment with real snow, to like, relax, you know.
[16:32] Industrial: with a roof on it ;o
[16:32] tmike: baudehlo: I dig. That requires running the view and having it rebuild the whole view cache thing, right?
[16:32] yawNO: wat?
[16:33] yawNO: whats that?
[16:33] mmalecki: Industrial: sup?
[16:33] Industrial: can I do this: Tag = resourceful.define 'tag' Tag.property 'name', String Item = resourceful.define 'item' Item.property 'tags', [Tag]
[16:33] Industrial: with a mongodb backend saving the tags a subdocument on the item
[16:33] baudehlo: tmike: I'm not sure. I don't even think it's possible in NoSQL databases because they don't have relations in the traditional sense.
[16:33] tmike: right
[16:33] baudehlo: everything is denormalised.
[16:34] baudehlo: I considered using Couch (and tried really hard) when I was writing some mailing list software for Haraka...
[16:34] mmalecki: Industrial: interesting question
[16:34] tmike: It seems like the going philosophy is to try to dodge relations entirely, right?
[16:34] mmalecki: let me see
[16:34] Industrial: mmalecki: another is if when finding a document it would convert the document structure of the subdocuments back into model instances
[16:34] maritz: tmike: there are libs that do relations on nosql dbs
[16:35] baudehlo: but when it came down to it, if you updated your email address you'd have to go through every list you were a member of and update the address there too. And it just seemed like I was replicating the concepts of a relational db, when I could just use one.
[16:35] mmalecki: Industrial: we actually use Array
[16:35] mmalecki: so I guess it's not that simple
[16:35] Industrial: right
[16:35] tmike: baudehlo: you can't just slap an array of mailing list IDs to each user?
[16:36] baudehlo: tmike: that would be incredibly slow.
[16:36] tmike: I don't know very well the structure of haraka though
[16:36] tmike: indeed
[16:36] Industrial: There's several other ODM's out there like JugglingDB but I don't know the innards of one yet :)
[16:36] arthabaska has joined the channel
[16:36] baudehlo: because you if you get an email to a list, to find who to send it to you'd have to go through every user to see if they had that list.
[16:36] tmike: you'd have to query each user and then see if they were in a list
[16:36] Industrial: I'm using https://github.com/pmlopes/p-odm at work but it's fairly simple
[16:36] maritz: if anyone wants to give a try to a redis orm, i've got nohm :D
[16:37] baudehlo: again, it came down to "why am I trying so hard? This is what relational DBs were built for"
[16:37] tmike: how about attaching a user ID to each list? I suppose that would require a million and a half queries against the users to get all their addresses at that point
[16:37] tmike: And again, that is exactly what relational DBs are for.
[16:37] RobWC has joined the channel
[16:37] baudehlo: well I'm sure there is probably a way.
[16:37] baudehlo: but I didn't know couch/nosql at all.
[16:37] RobWC has left the channel
[16:38] baudehlo: so I felt like I was fighting against the architecture just to be able to say "I'm using NoSQL".
[16:38] pizthewiz has joined the channel
[16:38] baudehlo: when using postgres was just the right thing to do.
[16:38] CoverSlide: well internally isn't that what the RDBMS's are doing anyways?
[16:38] tmike: I don't know it well at all either. I'm just asking because I've not dug into nosql enough to have met these problems, so your experience is useful to me.
[16:39] tmike: CoverSlide: I think the difference is that RDBMs have been optimized over however many decades to be really super good at mapping out these requests
[16:39] shanebo has joined the channel
[16:39] CoverSlide: perhaps
[16:40] baudehlo: right. Plus RDBMs' build indexes for this stuff. And have really good query optimisers.
[16:40] tmike: I'm only supposing out loud though, so if I'm wrong I hope someone speaks up ;)
[16:40] tmike: indeed indexes have a lot of strength
[16:40] baudehlo: I think a lot of people use NoSQL because they've bought the kool-aid rather than actually knowing where SQL is good and the real strengths of NoSQL.
[16:41] kokotron has joined the channel
[16:41] CoverSlide: One thing I hate about SQL is SQL
[16:41] tmike: It's nice if you want a simple key/value store with a bit of querying sugar
[16:41] baudehlo: Hehe yeah - see I don't mind SQL.
[16:41] tmike: And that's more than sufficient for a lot of applications
[16:41] baudehlo: But I learned it well about 18 years ago.
[16:41] tmike: I use SQL quite a lot.
[16:42] tmike: again, the whole billions of rows thing
[16:42] baudehlo: This was pretty impressive: http://www.postgresql.fr/en:temoignages:le_bon_coin
[16:42] CoverSlide: I don't like the idea of constantly building a DSL string
[16:42] tmike: DSL string?
[16:42] CoverSlide: I'd prefer to have something more programmatic
[16:42] CoverSlide: SQL is a DSL
[16:42] tmike: Oh forming an SQL query
[16:42] baudehlo: well with NoSQL Javascript is often your "DSL"
[16:42] tmike: yeah, you can get around it pretty well
[16:43] dpino has joined the channel
[16:43] baudehlo: so you pick your battles.
[16:43] tmike: with stored predures, and preparing your queries
[16:43] tmike: procedures*
[16:43] tmike: baudehlo: broken link?
[16:43] baudehlo: tmike: wfm
[16:43] CoverSlide: syntax is horrible though, seemed to be created for people who don't know how to program
[16:44] thalll has joined the channel
[16:44] tmike: It's a suitable syntax for what it is. It needs to be clear and flexible, rather than concise
[16:45] baudehlo: CoverSlide: every language has horrible aspects of syntax. I don't really even see it any more. All I see now is blonde, brunette, redhead.
[16:45] tmike: indeed, consider the curve with javascript
[16:45] adrianFa has joined the channel
[16:45] isaacs has joined the channel
[16:46] baudehlo: yeah. Here's your (function (thing) { … })(thing_to_capture)
[16:46] baudehlo: barf
[16:46] baudehlo: although "let" will mitigate that.
[16:46] tmike: mmm
[16:46] tmike: ES6 is looking pretty hot
[16:46] CoverSlide: couch and mongo use spidermonkey, which already has let
[16:47] baudehlo: I think node does too, right? If you pass certain flags at startup.
[16:47] CoverSlide: right, but not by default
[16:47] tmike: coming from python, [a, b] = (function (a, b) {return [b, a]})(a, b) is pretty attractive
[16:47] baudehlo: --harmony_block_scoping ?
[16:47] CoverSlide: yeah something like that
[16:48] baudehlo: yeah it's a shame you can't do something like: "use strict"; "use harmony_block_scoping";
[16:48] CoverSlide: but it all depends on the size of they gat
[16:48] blup has joined the channel
[16:50] unomi has joined the channel
[16:50] technel has joined the channel
[16:50] chrisjpowers has joined the channel
[16:51] tmike: or even [a, b] = [b, a]
[16:51] mattgifford has joined the channel
[16:51] tmike: var a = 1, b = 2; [a, b] = [b, a];
[16:51] bartt has joined the channel
[16:51] lduros has left the channel
[16:53] benvie: oh wow
[16:54] benvie: this verion of v8 has
[16:54] benvie: --harmony_proxies default: true
[16:54] benvie: --harmony_collections default: true
[16:54] mmalecki: oh? neat!
[16:54] yawNO: wat?
[16:54] emilsedgh has joined the channel
[16:54] yawNO: benvie: version?
[16:54] chrisjpowers: Hey guys, I'm trying to create an NPM mirror that replicates from the main registry and houses internal NPM packages. I have a CouchDB 1.1.1 instance running and have successfully replicated the registry and pushed the couchapp. Unfortunately, npm adduser seems to be adding user to a "/registry/-" document rather than the _users db. I assume this means the redirects are not working properly -- do I need to install CouchDB 1.2.0?
[16:54] benvie: is this right? wtf
[16:54] mmalecki: benvie: seems disable on node master
[16:54] benvie: 3.9.5
[16:55] CoverSlide: too bad proxies got dropped from harmony
[16:55] mmalecki: wtf?
[16:55] benvie: oh wait nm
[16:55] yawNO: :|
[16:55] mmalecki: they got dropped? why? when?
[16:55] benvie: I think it's my setu-
[16:55] benvie: and no they didn't
[16:55] CoverSlide: they got replaced by "direct proxies"
[16:55] yawNO: they did not drop in harmony
[16:55] yawNO: exactly
[16:55] benvie: oh lol
[16:55] benvie: that's just better proxies
[16:55] CoverSlide: which is a different syntax
[16:55] benvie: way easier to use
[16:56] yawNO: well theyre always proxies
[16:56] benvie: yeah
[16:56] benvie: mostly the same, same semantics basically
[16:56] yawNO: benvie: so what
[16:56] yawNO: are they enabled?
[16:56] benvie: sec
[16:56] franciscallo has joined the channel
[16:56] yawNO: thx
[16:57] benvie: woops sorry
[16:57] yawNO: ;_;
[16:57] CoverSlide: I'm just saying --harmony_direct_proxies doesn't use the current Proxy syntax, it uses the old one
[16:57] benvie: it says default but
[16:57] alvaro_o has joined the channel
[16:57] benvie: it's just cause I have it set to run with the flag always
[16:57] CoverSlide: --harmony_proxies*
[16:57] benvie: I know
[16:57] isaacs: chrisjpowers: you need to set up a redirect, or point the registry config to url.local/registry/_design/app/_redirect
[16:57] benvie: that is why this exists: https://github.com/Benvie/Direct-Proxies-Shim-Shim-for-Node-and-Chrome
[16:57] isaacs: chrisjpowers: er, "set up a *vhost"
[16:57] benvie: ;)
[16:58] benvie: doesn't work in chrome anymore cause I don't feel like fixing browser loading
[16:58] benvie: works fine in node though
[16:58] yawNO: you could have chosen a longer nane
[16:58] yawNO: :P
[16:58] benvie: I don't think I could have in fact
[16:58] tomnewmann has joined the channel
[16:58] CoverSlide: shimmy-shimmy bang-bang
[16:58] benvie: it shims a shim
[16:58] CoverSlide: how about dp-shim
[16:58] benvie: which shims proxies
[16:58] chrisjpowers: Thanks isaacs, I'll give that a try
[16:59] achiu1 has joined the channel
[16:59] diogogmt has joined the channel
[17:00] benvie: at least the npm module name is just "direct-proxies"
[17:00] tobias3 has joined the channel
[17:00] artusrocha has joined the channel
[17:01] benvie: but yeah as I was trying to get originally, these are the flags in recent v8
[17:01] benvie: harmony_typeof, harmony_scoping, harmony_modules, harmony_proxies, harmony_collections
[17:01] CarterL has joined the channel
[17:02] benvie: and harmony, but modules are bugged in the v8 in node (unless it was upgraded in 0.7.6)
[17:02] booyaa_ has joined the channel
[17:03] booyaa_: halp!
[17:04] benvie: ooh looks like v8 upgrade came in then, cool
[17:04] booyaa_: how do use mikeal's request within a module i'm writing so it return the contents of the body
[17:05] booyaa_: will gist the module
[17:05] benvie: Added Object.is, Number.isFinite, Number.isNaN, Added basic interface inference for modules (behind the --harmony flag)
[17:05] benvie: sweet
[17:06] piscisaureus_ has joined the channel
[17:07] yaymukund has joined the channel
[17:08] felixhummel has joined the channel
[17:08] willwhite has joined the channel
[17:09] booyaa_: https://gist.github.com/2037937
[17:09] chrisvwebdev has left the channel
[17:09] benvie: Object.is(NaN, NaN) --> true. That somehow seems misplaced on Object
[17:09] booyaa_: I know I could assign a variable to the contents, but then I still need some way for the return to run after the callback has completed
[17:10] jsurfer has joined the channel
[17:11] yawNO: benvie: would you rather have instance.is(NaN)
[17:11] yawNO: ?
[17:11] benvie: no lol I guess there's not really a better answer
[17:12] YoY has joined the channel
[17:16] maritz: wait, what? what happened to isNaN? or am i missing something here?
[17:17] benvie: it's on Number
[17:17] benvie: and Object.is is stricter equals that returns true for NaN compared to NaN
[17:17] TooTallNate has joined the channel
[17:18] benvie: well technically less strict
[17:18] EhevuTov has joined the channel
[17:18] maritz: booyaa_: wait, what? you're doing an async request at which point you shouldn't return anything (except if you're going for a promise style)
[17:19] bnoordhuis: benvie: isn't a main concept of a NaN that it's unequal to everything, including itself?
[17:19] elijah|home has joined the channel
[17:19] benvie: with strict equals yeah
[17:19] benvie: but that's an issue for some stuff
[17:19] bnoordhuis: .. Nan === NaN
[17:19] bnoordhuis: where's that damn bot?
[17:19] sechrist_: anybody know if an iphone 4s battery fits a 4?
[17:19] benvie: it's still the same
[17:19] benvie: but now you can do Object.is
[17:20] bnoordhuis: sechrist_: try #churchofsteve
[17:20] benvie: if you need it be equal to itself and for -0 to equal 0
[17:20] benvie: which is important for Maps and WeakMaps
[17:20] ryanj has joined the channel
[17:20] sechrist_: har har
[17:20] benvie: like you can't use indexOf to find NaN in an array because it uses strict equals
[17:20] benvie: so NaN is like a ghost
[17:20] ramitos has joined the channel
[17:20] ianl` has joined the channel
[17:21] sechrist_: I don't praise the guy like he's a demigod. I just think apple devices are high quality
[17:21] booyaa_: maritz: so what's best way to use request within a module?
[17:22] bnoordhuis: sechrist_: not a demigod?
[17:22] booyaa_: i'm trying to do all the parsing of the body and just return plain text via a function call
[17:22] benvie: it's pretty easy to accidentally fill a Map up with NaN if every usage of it is unique, that's kind of ridiculous really that it works like that
[17:22] bnoordhuis: ACTION grabs his torch
[17:22] rickibalboa has joined the channel
[17:23] maritz: booyaa_: read up on what it means to do asynchronous stuff
[17:23] adamkittelson has joined the channel
[17:23] maritz: you don't return anything
[17:23] spacesuit has joined the channel
[17:23] maritz: you have a callback as an argument and call that once you're done
[17:23] maritz: (in an async function where you don't use a promise style of async callbacks)
[17:24] booyaa_: not even via callback function?
[17:24] booyaa_: i.e. callback(null, blah)
[17:24] maritz: what the??????
[17:25] maritz: yes via callback
[17:25] ianl` has joined the channel
[17:26] maritz: yawNO: help me out here
[17:26] yawNO: maritz: wat
[17:26] maritz: help booyaa_
[17:26] maritz: i've gotta go
[17:26] maritz: :D
[17:26] maritz: TAG, YOU'RE IT
[17:26] maritz: bye
[17:26] yawNO: im watching a movie
[17:26] yawNO: crap
[17:27] booyaa_: yawNO: heh
[17:28] booyaa_: nm, always worth asking here first. will go hunt down a module that does something similar and rip the code
[17:28] andrewdeandrade has joined the channel
[17:29] TooTallNate has joined the channel
[17:30] ph^ has joined the channel
[17:30] hydrozen has joined the channel
[17:31] kevinswiber has joined the channel
[17:32] Hephaistos has joined the channel
[17:32] Hephaistos has joined the channel
[17:33] Hebo has joined the channel
[17:35] monokrome has joined the channel
[17:36] dgathright has joined the channel
[17:37] infynyxx has joined the channel
[17:37] thinkt4nk has joined the channel
[17:38] mundanity has joined the channel
[17:38] Vespakoen has joined the channel
[17:40] tomnewmann has joined the channel
[17:40] dgathright has joined the channel
[17:40] jimmysparkle has joined the channel
[17:40] nodebiscut has joined the channel
[17:40] ryanrolds_w has joined the channel
[17:42] tmike: nodejitsu is hot. This infrastructure is pretty neat.
[17:42] gde33 has joined the channel
[17:43] michaelmartinez_ has joined the channel
[17:43] yawNO: true
[17:44] mmalecki: :)
[17:44] jetienne has joined the channel
[17:44] nodebiscut has joined the channel
[17:45] nodebiscut has left the channel
[17:45] tmike: I hope you don't mind that I seduced the unicorn into starting my account.
[17:45] wooo has joined the channel
[17:45] EvRide has joined the channel
[17:46] recursivevirus has joined the channel
[17:46] stagas: you guys should run this on chrome https://github.com/stagas/maptail/blob/master/examples/extreme-traffic.js
[17:47] stagas: node doesn't even sweat
[17:47] mmalecki: tmike: not at all :)
[17:47] stagas: even with higher values, but then chrome gets slow
[17:47] gtramontina has joined the channel
[17:47] dthompso99 has left the channel
[17:47] tmike: Thanks!
[17:48] nodebiscut has joined the channel
[17:50] M1l3n1um has joined the channel
[17:51] patcito has joined the channel
[17:51] khrome has joined the channel
[17:51] recursivevirus: @stagas VERY nice :)
[17:52] stagas: recursivevirus: you ran it? :)
[17:52] dgathright has joined the channel
[17:53] Gloorian has joined the channel
[17:53] Gloorian: Hello
[17:53] Gloorian: I have a little problem
[17:54] Gloorian: I'm making a url shorter for training
[17:54] akasha has joined the channel
[17:54] Gloorian: but my generator of shorters doesn't work because I can't find a way to check if there are another one taken in the db
[17:55] Gloorian: -are +is
[17:55] pizthewiz has joined the channel
[17:55] automata has joined the channel
[17:56] Gloorian: have you ever done an url shorter with node ?
[17:56] yawNO: what's the problem?
[17:56] ash____ has joined the channel
[17:57] Gloorian: yawNO: well, I'm doing an url shorter
[17:57] yawNO: check if the url is already taken in the db
[17:57] Gloorian: and I have to generate a string like 'eUhg'
[17:57] yawNO: ej
[17:57] yawNO: *eh
[17:57] Gloorian: but the problem is that I have to generate one that is not already taken
[17:58] Gloorian: and I don't see how to generate another one each time my db query gives me a result
[17:58] Gloorian: I thought about a loop, but it doesn't really work well
[17:58] yawNO: recursive ftw
[17:58] Gloorian: recursive ?
[17:58] artusrocha has joined the channel
[17:58] yawNO: function that calls itself til a condition is verified
[17:59] Gloorian: Oh, good, but I don't know how to do it
[17:59] Gloorian: :'(
[17:59] Avanine has joined the channel
[17:59] EhevuTov: what is behind isaacs in his new gravatar? It's freaking me out.
[18:00] wankdanker: looks like drift wood
[18:00] wankdanker: with a weird red face and a ribbon that says happy birthday
[18:00] yawNO: Gloorian: google
[18:01] Gloorian: yawNO: that's what I'm doing :D
[18:01] recursivevirus: I'm being asked to report code coverage on node.js projects. Anyone recommend one of the available tools?
[18:01] westg has joined the channel
[18:01] isaacs: EhevuTov: it's a wood smiling man
[18:01] maritz has joined the channel
[18:01] wankdanker: isaacs: does it say happy birthday?
[18:01] redir has joined the channel
[18:01] perezd: ryah: is the nodejs mac installer pkg open sourced in some way?
[18:01] joshfinnie has joined the channel
[18:02] isaacs: wankdanker: close! no.
[18:02] wankdanker: ha
[18:02] yawNO: isaacs: that explains everything...
[18:02] maritz: yawNO: did you help him? :D
[18:02] EhevuTov: ah, I see the hi-res now. I thought it was like a dried tiger penis or something.
[18:02] wooo: guys
[18:02] langworthy has joined the channel
[18:02] wankdanker: yeah, the small version looks like a brown stuffed snake wearing a pirate hat
[18:02] yawNO: maritz: no, i watched teh movie
[18:02] maritz: haha :D
[18:03] wooo: anyone knows a function to convert from decimal to any numeric system?
[18:03] wooo: say 32 or 50 or 100 based
[18:03] wooo: lol
[18:03] micheil has joined the channel
[18:03] yawNO: maritz: wasnt that bad
[18:03] wooo: in javascript ofkoz
[18:03] yawNO: a little bit exagerated though
[18:03] nkuttler has joined the channel
[18:04] rlidwka: wooo:
[18:04] rlidwka: > (134).toString(32);
[18:04] rlidwka: '46'
[18:05] orlandovftw has joined the channel
[18:05] maritz: uhm... parseInt
[18:05] rlidwka: but that's from 2 to 36... for 50 you have to write smth yourself :)
[18:05] wooo: rlidwka: i check it ty
[18:05] EhevuTov: .. (134).toString(32)
[18:05] yawNO: what maritz said
[18:05] orlandovftw has joined the channel
[18:05] CoverSlide: .. Buffer
[18:05] yawNO: parseInt's first arg is the radix
[18:05] yawNO: CoverSlide: its offline
[18:05] maritz: secon
[18:05] maritz: d
[18:05] kPb_in has joined the channel
[18:05] yawNO: yeah sry
[18:05] yawNO: second
[18:06] CoverSlide: muddyforker
[18:06] AbeEstrada has joined the channel
[18:06] yawNO: dafuq?
[18:06] CIA-19: node: 03Shigeki Ohtsu 07master * rd2fba2b 10/ test/addons/hello-world/test.js : test: Fix path to require hello-world module - http://git.io/HRcQAw
[18:07] wooo: how do i represent a hexadecimal number numerically in javascript?
[18:07] wooo: prefixing by # or what?
[18:08] wooo: this says illegal token (ac).toString(10)
[18:08] tomb: http://www.javascripter.net/faq/octalsan.htm
[18:09] icebox has joined the channel
[18:09] wankdanker: 0xac
[18:10] EhevuTov: .. console.log(0x10)
[18:10] EhevuTov: ah still not up
[18:10] slajax has joined the channel
[18:10] bnoordhuis: perezd: it's in the repo
[18:10] bnoordhuis: perezd: look under the tools/ directory
[18:10] dekroning has joined the channel
[18:10] maxogden: TooTallNate: CONGRATS!!!
[18:11] TooTallNate: maxogden: thanks :)
[18:11] bnoordhuis: TooTallNate: no schmoozing, get back to work
[18:11] EhevuTov: is there a cause for celebration?
[18:11] TooTallNate: hahaha
[18:11] bnoordhuis: ;)
[18:11] fatjonny has joined the channel
[18:11] bnoordhuis: EhevuTov: TooTallNate just joined the core team
[18:12] EhevuTov: oh awesome! I thought he already was core. Congratulations
[18:12] maxogden: _.-------._
[18:12] maxogden: .-'; ;` '& ; `&.
[18:12] maxogden: & & ; & ; ; \
[18:12] maxogden: \ ; & &_/
[18:12] maxogden: F"""---...---"""J
[18:12] maxogden: | | | | | | | | |
[18:12] maxogden: J | | | | | | | F
[18:12] maxogden: `---.|.|.|.---'
[18:12] maxogden: CUPCAKES FOR EVERYBODY@!!!!!!
[18:12] felixhummel has joined the channel
[18:12] dexter_e has joined the channel
[18:12] brianleroux has joined the channel
[18:12] micheil: maxogden: dude, that's one messed up cupcake.
[18:12] EhevuTov: ACTION \o/ catching raining cupcakes
[18:13] maxogden: micheil: you mean you dont normally sprinkle ampersands on your cupcakes?
[18:13] kmiyashiro has joined the channel
[18:13] dexter_e: anyone know how to get the full path of request... of the top of their head ?
[18:13] brandwe: Anyone have experience with snapshot feature in node.js not working on EC2 x64 Amazon Linux? Got gdb attached but looking for help: https://github.com/joyent/node/issues/2912
[18:13] micheil: maxogden: no, my cupcakes are usually not lopsided
[18:13] bnoordhuis: brandwe: i've experience in so far that i replied on the issue :)
[18:13] maritz: dexter_e: in what context?
[18:14] wankdanker: mmmm ampersands. yum
[18:14] nathanielk: dexter_e: require('url').parse(request.url).path?
[18:14] bnoordhuis: brandwe: does it work with --without-snapshot?
[18:14] hipsters_ has joined the channel
[18:14] dexter_e: I am calling localhost:8000/this/is/my/path?and=params&=what I would like to just get the /this/is/my/path?and=params&=what
[18:14] teadict: does SequelizeJS have a channel or is its author around?
[18:14] dexter_e: including the params
[18:14] nathanielk: dexter_e: http://nodejs.org/api/http.html#http_request_url
[18:15] jetienne has joined the channel
[18:15] jxson has joined the channel
[18:15] aranw has joined the channel
[18:15] dexter_e: rocking! thanks!
[18:15] capelio has joined the channel
[18:16] teadict: how do you Mysql using people currently do MtoN associations on node?
[18:16] nathanielk: dexter_e: np :)
[18:16] gr4yscale has joined the channel
[18:17] carlyle has joined the channel
[18:17] carlyle has joined the channel
[18:17] brandwe: bnoordhuis: It does work without-snapshot, but that is a workaround not a fix. I'm trying to get to a fix :-) I got another break after without-snapshot though on make install, but that's a matter for later :-)
[18:18] jxson has joined the channel
[18:18] wdperson has joined the channel
[18:18] kevinswiber has joined the channel
[18:18] bnoordhuis: brandwe: one thing you can try is an in-place upgrade of v8
[18:19] bnoordhuis: brandwe: i.e. rm -rf deps/v8 && git clone git://github.com/v8/v8.git deps/v8/
[18:19] bnoordhuis: it's possible that the issue is fixed in upstream v8
[18:19] flagg0204 has joined the channel
[18:19] SamuraiJack has joined the channel
[18:20] argami has joined the channel
[18:20] mmalecki: is there any way to take a heap snapshot of a live node app under linux?
[18:20] aranw has joined the channel
[18:21] gnuanu has joined the channel
[18:22] plainprogrammer has joined the channel
[18:22] bnoordhuis: mmalecki: node-inspector?
[18:22] aslant has joined the channel
[18:22] marcostoledo has joined the channel
[18:23] mmalecki: bnoordhuis: didn't work for me when I tried it
[18:23] mmalecki: (also, node v0.6)
[18:24] nathanielk: would there be a way to invoke https://github.com/dannycoates/v8-profiler ?
[18:24] bnoordhuis: mmalecki: check the repo, there's a branch that works with 0.6.x
[18:24] bnoordhuis: or did, last time i checked it
[18:24] mmalecki: bnoordhuis: ah, thanks
[18:25] jimmysparkle has joined the channel
[18:26] yawNO_ has joined the channel
[18:27] jimmyspark has joined the channel
[18:28] mcavage has joined the channel
[18:28] brandwe: bnoordhuis: Thanks, Trying that now.
[18:29] tornad has joined the channel
[18:29] `3rdEden has joined the channel
[18:29] jkridner_ has joined the channel
[18:29] dshaw_ has joined the channel
[18:30] plainprogrammer: what's the best way to catch an EPIPE exception from net.js?
[18:31] stepheneb has joined the channel
[18:31] rklancer has joined the channel
[18:31] rklancer: itch3
[18:31] plainprogrammer: https://gist.github.com/2038399
[18:33] pickels has joined the channel
[18:33] pid1 has joined the channel
[18:34] jocafa has joined the channel
[18:34] rklancer: How would 'npm install contextify' suddenly start trying to run a build script in '/home/brianmcd/...' (the author's home dir) if I don't see that string implied by wscript
[18:34] dudeinthemirror has joined the channel
[18:35] rklancer: or anything else in the newly-updated commit to the repo
[18:35] stepheneb_ has joined the channel
[18:36] isaacs: rklancer: there's probably a .waf-pickle or something in there
[18:37] yawNO has joined the channel
[18:37] shanebo: isaacs we're getting this error https://gist.github.com/2038399 using bouncy + socket.io. Any idea how we can swallow this error gracefully?
[18:37] riverraid has joined the channel
[18:37] rklancer: isaacs, thanks for the tip. I'll pass it on to brianmcd (who just responded...he pushed a point update about an hour ago)
[18:38] shanebo: isaacs (i'm only asking because it's lower level in net.js and I'm unsure how to swallow the error from within bouncy)
[18:39] EyePulp has joined the channel
[18:39] shanebo: isaacs btw, we're on node 0.6.12
[18:39] thirdknife has joined the channel
[18:40] shinuza has joined the channel
[18:40] timoxley has joined the channel
[18:41] AvianFlu has joined the channel
[18:41] astropirate has joined the channel
[18:43] hipsters_ has joined the channel
[18:44] vam3c has joined the channel
[18:44] EhevuTov has joined the channel
[18:45] Destos has joined the channel
[18:45] rklancer: isaacs, that was it. He unpublished the bad point release and now it installs. Thanks again.
[18:45] timoxley has joined the channel
[18:47] bartt1 has joined the channel
[18:47] AvianFlu has joined the channel
[18:49] phidah has joined the channel
[18:50] AdamGoodrich has joined the channel
[18:50] slloyd has joined the channel
[18:50] stepheneb: bundler has some capabilities that would be very useful for this kind of problem we just had with npm and contextify
[18:50] isaacs: stepheneb: what's that?
[18:50] kriskowal has joined the channel
[18:51] stepheneb: in the ruby gem world as managed by bunder if jsdom and contextify were rubygems ...
[18:51] yawNO has joined the channel
[18:52] stepheneb: and jsdom speced that it would work with 0.1.x of contextify (and assuming that contextify v0.1.2 had been pushed and was bad) then when bundler installs jsdom it would also try and install the bad v0.1.2 of contextify
[18:52] stepheneb: but ... I could spoecify in my Gemfile that I wanted contextify v0.1.1 installed.
[18:53] perezd: must be doing something wrong, when trying to do make pkg osx I get this error: Unable to install the file 'config.h'
[18:53] AbeEstrada has joined the channel
[18:53] stepheneb: bundler would see that AND take a look at jsdoms requirement for 10.1.x and because my more specific request ALSO met jsdoms need I'd get qa working setup
[18:53] perezd: ah I am doing something stupid
[18:53] sbisbee has joined the channel
[18:53] perezd: I've fixed
[18:54] perezd: bnoordhuis: hey, does the mac installer actually compile stuff or just take the contents of /out/dist-osx and copy it over
[18:54] stepheneb: but with npm even if I install contextify 0.1.1 -- if I also need jsdom it will install it's own version => 0.1.2
[18:55] tmcw has joined the channel
[18:55] EhevuTov has joined the channel
[18:55] bnoordhuis: perezd: there's a makefile target that compiles node and bundles it
[18:56] stepheneb: so as long as I haven't speced something mutually inconsistent bundler will put all of the gems I state I need on the Ruby load path
[18:56] stepheneb: but with npm when jsdom runs it uses it's own copy of contextify
[18:56] perezd: bnoordhuis: I am writing a custom installer
[18:56] perezd: that has node within it
[18:56] stepheneb: d3 which I also use installs it's version of jsdom (whgich has it's version of contextify)
[18:57] sbisbee: Hey * - QQ: Does npm ignore files based on .gitignore?
[18:57] Fuu has joined the channel
[18:57] jxson_ has joined the channel
[18:58] isaacs: shanebo: sorry, no idea. i'd have to go digging through the app, and i'm not really familiar with socket.io or bouncy in a deep way
[18:58] isaacs: sbisbee: yes, if a .npmignore file is not present.
[18:58] vguerra has joined the channel
[18:58] stepheneb: as I am understanding more about npm it seems that when I use jsdom -- it gets all of it's dependencies loaded -- but those are separate than those loaded by d3
[18:58] shanebo: isaacs, alright, any idea how to swallow the error though?
[18:59] sbisbee: isaacs: okay, so then that's why my built main.js file isn't landing in the repo :)
[18:59] sbisbee: ty
[18:59] isaacs: stepheneb: npm already works the same as bundler in that regard...
[18:59] sbisbee: isaacs: is an empty .npmignore sufficient to have it skip .gitignore?
[18:59] isaacs: sbisbee: yes.
[19:00] stepheneb: I have a demo starting in just a couple of minutes and the project started breaking about an hour ago ... works now ... just thinking about how I could have worked around this kind of issue much more quickly with bundler
[19:00] isaacs: stepheneb: that's how npm works already, though.
[19:00] isaacs: stepheneb: unless you have an old version or there's been a regression or something.
[19:01] isaacs: but i doubt it.
[19:01] isaacs: stepheneb: you can also use shrinkwrap to lock everything in place.
[19:01] isaacs: (at least, down to the name@version/url level)
[19:01] euforic has joined the channel
[19:01] stepheneb: when I look at a tree view of my ./node_modules dir I see multiple copies of jsdome/node_modules/contextify
[19:02] isaacs: stepheneb: did you install contextify *after* jsdom?
[19:02] isaacs: stepheneb: or are you using an old version of npm?
[19:02] isaacs: i just tested with 1.1.8 and it works like thi
[19:02] isaacs: *this
[19:02] stepheneb: I have to demo now ... will be back or write to the email list with more description ... thanks!
[19:03] isaacs: stepheneb: https://gist.github.com/2038692
[19:03] `3rdEden has joined the channel
[19:03] isaacs: ircretary: tell stepheneb https://gist.github.com/2038692
[19:03] ircretary: isaacs: I'll be sure to tell stepheneb
[19:03] Wa has joined the channel
[19:03] isaacs: ircretary: thanks
[19:03] ircretary: isaacs: You're welcome :)
[19:03] arvidkahl has joined the channel
[19:04] erichynds has joined the channel
[19:04] mmalecki: isaacs: jitsu is released, btw
[19:05] mmalecki: AvianFlu++
[19:05] githogori has joined the channel
[19:05] timoxley has joined the channel
[19:06] isaacs: mmalecki, AvianFlu: Awesome, thanks!!
[19:06] ghost_olli has joined the channel
[19:06] isaacs: And I apologize deeply for npm 1.1.0-beta* still being on the regsitry. they're hazardous. i'm going to remove them.
[19:07] Skaag has joined the channel
[19:07] AvianFlu: isaacs, we all really expected <1.1.0 to stop us at the terminal 1.0.x version
[19:08] plato: i'm opening a socket.io socket in my onload function, then calling a function that's defined outside the onload function. i can't access my socket from there - "socket is not defined"
[19:08] AvianFlu: the beta thing makes sense, except that we didn't expect alpha and beta versions at all >.<
[19:08] stepheneb has joined the channel
[19:08] plato: whats happening with the scope here? i'm calling the external function from within my onload function, shouldn't the sibling function inherit the scope of the thing that invokes it?
[19:09] Sadin has joined the channel
[19:09] plato: http://codepad.org/wCW4t4bL error is occuring in line 58 when I click a hex
[19:09] xSmurf has joined the channel
[19:09] rklancer has joined the channel
[19:10] graeme_f has joined the channel
[19:10] plato: do i need to pass the socket in through placegrid() and then placehex() so i can set it as an attribute of each hex? surely there's some simpler way
[19:11] ryanrolds_w has joined the channel
[19:12] thirdknife: whats the best b
[19:12] thirdknife: best database match these days with node
[19:12] robi42 has joined the channel
[19:12] jxson has joined the channel
[19:12] cryptix has joined the channel
[19:12] sechrist_: to do subdomains and vhosts is the only way recommended to bind another express instance and proxy? I was thinking middlewares to skip routes based on domain but that seems clunky to me
[19:13] sechrist_: in express ^^
[19:13] plato: thirdknife: this is the best Ƃ
[19:13] thirdknife: sorry plato ?
[19:13] plato: it's a B!
[19:14] thirdknife: best database match these days with node
[19:14] plato: but seriously, i started to play with couchdb a bit
[19:14] Edy: Бб
[19:14] plato: i'm new to this whole REST idea but it seems simple enough
[19:14] thirdknife: right
[19:14] thirdknife: what about riak
[19:14] plato: someone complained that there's no real way to filter data in couchdb without understanding and using map/reduce functions
[19:14] sechrist_: I wish couchdb had a binary api (unless it does and I'm oblivious)
[19:14] pandeiro has joined the channel
[19:15] plato: i don't know if that's a problem with NoSQL stuff in general
[19:15] sechrist_: creating new request objects for every db call seems bleh to me
[19:15] mikeal has joined the channel
[19:16] tmike: map/reduce doesn't seem much harder than learning SQL concepts
[19:16] plato: yeah couch seems well suited to volatile use cases
[19:16] tmike: at least to me
[19:16] plato: distributed databases, sometimes-on document stores
[19:16] plato: reduntant stuff
[19:17] plato: i don't know what, but i imagine there's better stuff if you intend to do everything on your own machine
[19:17] plato: sorry
[19:17] booo has joined the channel
[19:18] shinuza has joined the channel
[19:19] FIQ has joined the channel
[19:20] sreeix has joined the channel
[19:21] mikeal1 has joined the channel
[19:23] kjeldahl has joined the channel
[19:23] sreeix has joined the channel
[19:24] pgte has joined the channel
[19:24] heavysixer has joined the channel
[19:25] M1l3n1um has joined the channel
[19:26] tobias2 has joined the channel
[19:26] rtgibbons has joined the channel
[19:26] rauchg has joined the channel
[19:27] argami has joined the channel
[19:27] tobias2 has joined the channel
[19:29] josh-k has joined the channel
[19:30] mcluskydodallas has joined the channel
[19:30] riverraid has joined the channel
[19:31] yawNO has joined the channel
[19:32] bingomanatee__ has joined the channel
[19:32] larsschenk has joined the channel
[19:32] rtgibbons has joined the channel
[19:33] te-brian has joined the channel
[19:33] sphinxxx_ has joined the channel
[19:34] rwaldron has joined the channel
[19:37] simenbrekken has joined the channel
[19:37] luizlopes has joined the channel
[19:37] harthur has joined the channel
[19:38] marcostoledo has joined the channel
[19:39] artusrocha has joined the channel
[19:40] hackband has joined the channel
[19:41] kevwil has joined the channel
[19:41] HacDan has joined the channel
[19:42] cjlicata has joined the channel
[19:44] Maxani has joined the channel
[19:45] argami has joined the channel
[19:46] kevwil has joined the channel
[19:47] muddo has joined the channel
[19:48] pgte has joined the channel
[19:50] scottdware has joined the channel
[19:51] fred_____ has joined the channel
[19:52] dobber has joined the channel
[19:53] stagas has joined the channel
[19:54] isao has joined the channel
[19:54] Vespakoen has joined the channel
[19:55] sorensen has joined the channel
[19:56] rtgibbons has joined the channel
[19:59] larsschenk has left the channel
[19:59] argami_ has joined the channel
[20:01] michaelmartinez_ has left the channel
[20:01] Vainoharhainen has joined the channel
[20:01] zackattack has joined the channel
[20:01] whitman has joined the channel
[20:02] jmar777 has joined the channel
[20:03] rauchg has joined the channel
[20:03] graeme_f has joined the channel
[20:04] scottdware has joined the channel
[20:05] kevinswiber has joined the channel
[20:06] `3rdEden has joined the channel
[20:07] hipsters_ has joined the channel
[20:07] briancra_ has joined the channel
[20:08] ssmithstone has joined the channel
[20:08] izepstan has joined the channel
[20:10] colinwd has joined the channel
[20:11] graeme_f has joined the channel
[20:11] disappea_: I need my Node to update database stuff created by my rails. Any recommendation besides using mysql-activerecord?
[20:12] creationix: disappea_, just use a node mysql driver
[20:12] creationix: felixge has a good one
[20:12] creationix: it will be raw mysql SQL quereis thogh
[20:12] enmand has joined the channel
[20:12] creationix: no activerecord API from node
[20:13] brianseeders has joined the channel
[20:13] ziro` has joined the channel
[20:13] ziro`: can anyone point me at any resources that will show me good examples of how to structure my code architecturally
[20:14] ziro`: coming from the land of PHP, where I define classes and create instances, I need help :D
[20:14] creationix: ziro`, you can do that in node too
[20:15] creationix: Constructor + prototype is like a class
[20:15] creationix: but only do it for objects, not for *everything* like java does
[20:15] fomatin has joined the channel
[20:15] creationix: ziro`, http://howtonode.org/object-graphs-2
[20:16] hellp has joined the channel
[20:17] tmike: benvie: you're on dailyjs today
[20:18] shapeshed has joined the channel
[20:18] ziro`: thanks :0
[20:18] ziro`: :)
[20:18] disappea_: Is there like a defacto db driver where I can just change the database type and it will continue to work in the new RDBMS db?
[20:18] sphinxxx_ has joined the channel
[20:18] disappea_: I develop on sqlite3 but then on heroku I am more likely using pgsql
[20:19] ziro`: my directory structure sucks :/
[20:19] creationix: ziro`, in fact, coming from PHP, I would recomment part I as well (the article before that)
[20:19] creationix: ziro`, PHP references are different from JS ones, but close enough to be terrible confusing
[20:19] ziro`: i've tried to go for some coffee script compiled to js in a node require thing
[20:20] creationix: coffeescript is fine, but I wouldn't touch it till you mastered raw node and js first
[20:20] ziro`: i'm close to just going for a flat js file :D
[20:20] Eruadan has joined the channel
[20:20] Eruadan has joined the channel
[20:20] ziro`: I'm fine with JS, just not the prototype stuff
[20:20] creationix: one file apps work fine
[20:21] thirdknife: who wins express or core.js?
[20:21] tjholowaychuk: thirdknife compare for yourself, there is no "wins", there's a wins for you perhaps but you have to check them all out
[20:22] creationix: core.js?
[20:22] creationix: is that a new one
[20:22] thirdknife: corejs
[20:22] zanefactory has joined the channel
[20:22] thirdknife: right tjholowaychuk
[20:22] theCole_ has joined the channel
[20:22] wingie: http://echo.nextapp.com/site/corejs
[20:23] phidah has joined the channel
[20:23] wingie: that one?
[20:24] wingie: it seems that corejs is only working on client side
[20:24] ziro`: is there any 'standard' unit testing for node?
[20:24] wingie: how could it be compared to express?
[20:24] konobi: tap ?
[20:24] yawNO: hey tjholowaychuk .. you gotta tell me why proxies are bad
[20:24] yawNO: or useless .. i think thats what you said before
[20:26] Venom_X has joined the channel
[20:26] umren has joined the channel
[20:28] ccare has joined the channel
[20:28] wereHamster: great. res.contentType('application/json'); only works by chance. res.contentType('application/javascript') fails, because that's not how you're supposed to use that function
[20:31] mytrile has joined the channel
[20:31] pendlepa_ has joined the channel
[20:32] pendlepa_ has joined the channel
[20:32] shedinja has joined the channel
[20:34] benvie: tmike: yeah I just saw that ha
[20:34] uberbrady has joined the channel
[20:34] benvie: tmike: I was like hmm something happened, I sense a disturbance in the internets
[20:35] tmike: lol
[20:35] uberbrady: Howdy folks - anyone got any gotchyas or anything for overriding the Agent with a custom-built one for the built-in http.js in Node?
[20:35] tmike: congrats, I know you've been working hard to promote it
[20:35] uberbrady: I did a bench with agent: false and it went way faster than any other Agent settings, I think I want to try to override the default implementation and make my own.
[20:35] benvie: thanks =D I need to put some more time into it soon
[20:36] benvie: and finish some of the stuff I've been wanting
[20:36] vam3c has joined the channel
[20:36] benvie: too much time in binary data land makes for dull javascript
[20:36] timoxley has joined the channel
[20:37] boltR has joined the channel
[20:37] AvianFlu has joined the channel
[20:39] uberbrady: I'm figuring I just start with Mything.prototype=Agent and go from there…override where I need to. Or I should maybe start from scratch? Not sure.
[20:39] benvie: Mything.prototype = Object.create(Agent)
[20:39] alejandromg has joined the channel
[20:39] benvie: then you can put stuff on it without changing the core one
[20:39] benvie: and then in Mything(){ Agent.call(this) }
[20:40] alejandromg: #couchdb
[20:40] uberbrady: Sounds like a good start, thanks!
[20:40] admc has joined the channel
[20:40] benvie: no problem, I always am here for people trying to break stuff
[20:40] phidah has joined the channel
[20:40] benvie: that's my main priority
[20:40] benvie: breaking things
[20:40] krisu has joined the channel
[20:41] uberbrady: Yeah - well, my worst-case scenario is if I completely screw up this agent thing I'll go back to agent: false and no one gets hurt, except my pride.
[20:42] uberbrady: At what point would I want to consider not inheriting, and just re-implementing? Never?
[20:43] uberbrady: Or when I find that I'm working around things more than I am extending them?
[20:43] benvie: you will be inheriting by default
[20:43] benvie: and you override by adding the same named thing to your own
[20:43] benvie: so it's pretty good, you override bit by bit
[20:43] benvie: starting from what works
[20:43] rauchg has joined the channel
[20:44] uberbrady: cool.
[20:44] benvie: the trick with prototypal inheritance in js is that it will automatically go to the parent until you decide to override it
[20:44] robi42 has joined the channel
[20:45] shinuza has joined the channel
[20:45] benvie: weee it works var int8_5x4x10_array = new ArrayType(new ArrayType(new ArrayType(Block.Int8, 5), 4), 10)
[20:45] zackattack has joined the channel
[20:46] TooTallNate: benvie: i've been meaning to play around with your stuff again
[20:46] TooTallNate: been super busy the last few days
[20:46] ziro`: node have any functionality to break down a uri to domain, path etc
[20:46] benvie: I reworked it entirely anyway
[20:46] benvie: th stuff I put up today is mostly new
[20:46] timoxley has joined the channel
[20:47] benvie: I was mulling over it for a while and then implementing
[20:47] dodo_ has joined the channel
[20:47] benvie: but it's good now =D
[20:47] TooTallNate: cool, ya it all looks a lot better now, should be fun
[20:48] tmike: ziro`: get you some docs
[20:48] ziro`: got some
[20:48] tmike: specifically the url module
[20:48] ziro`: sorry
[20:48] ziro`: :)
[20:48] benvie: the turning point was when I found the es6 imeplementation by the draft author, and then was confident in my opinion that it sucks or I really don't get it
[20:48] ziro`: thanks
[20:48] ziro`: !
[20:48] benvie: so at that point I was able to decide to just do what i wanted
[20:49] dekroning has joined the channel
[20:51] jsurfer has joined the channel
[20:52] artusrocha has joined the channel
[20:52] Christopher has joined the channel
[20:53] pid1 has joined the channel
[20:53] Christopher: Hello everyone
[20:53] Guest66647: Hello again
[20:53] ag4ve has joined the channel
[20:53] mikeal has joined the channel
[20:54] Guest66647: Just a question! Can I write a file to a directory from a File Object ?
[20:54] michaelhartau has joined the channel
[20:54] muddo has joined the channel
[20:56] aslant has joined the channel
[20:58] kickingvegas has joined the channel
[20:59] myndzi has joined the channel
[21:00] mcluskydodallas has joined the channel
[21:00] myndzi: got a question about streams and http
[21:00] myndzi: the http docs say for http.ClientRequest that 'the request implements the writable stream interface'
[21:01] myndzi: i have some existing code that sets response.on events for data and end
[21:01] perezd has joined the channel
[21:01] dekroning has joined the channel
[21:01] myndzi: it seems like it might be possible to bind these to a different stream so that i can get "in between" the socket response and the existing code
[21:01] myndzi: but i'm not sure how to do it
[21:02] thinkt4nk has joined the channel
[21:02] myndzi: primarily, how do i make a stream object to pipe to that i can attach the existing code to and have it behave the same?
[21:02] vervain has joined the channel
[21:02] mikeal1 has joined the channel
[21:02] Vespakoen_ has joined the channel
[21:03] colinclark has joined the channel
[21:03] fairwinds: hi. curious whether anyone has seen this error - Error: spawn Unknown system errno 23. I get this sort of randomly once in a while when child process is spawned to execute convert command for imagemagick
[21:06] upb: grep 23 /usr/include/asm-generic/errno-base.h
[21:06] upb: #define ENFILE 23 /* File table overflow */
[21:07] stepheneb has joined the channel
[21:07] uberbrady: too many open files?
[21:07] PPPaul has joined the channel
[21:07] PPPaul: anyone use faye.js here?
[21:07] beawesomeinstead has joined the channel
[21:07] beawesomeinstead has joined the channel
[21:07] beawesomeinstead has joined the channel
[21:08] sridatta has joined the channel
[21:09] fairwinds: uberbrady, upm: this is on macosx. I have set ulimit to 10000 in terminal session
[21:09] luizlopes has left the channel
[21:10] uberbrady: maybe you're opening files and forgetting to close them - leaking descriptors?
[21:10] ziro`: http://pastebin.com/5kiuXPcy
[21:10] kanzure has left the channel
[21:10] ziro`: right way?
[21:10] djcoin has joined the channel
[21:13] cronopio has joined the channel
[21:14] hydrozen has joined the channel
[21:14] Hanspolo has joined the channel
[21:15] beawesomeinstead has joined the channel
[21:15] tommyvyo has joined the channel
[21:16] josh-k has joined the channel
[21:17] fairwinds: uberbrady: thx, just reviewing my code. Am creating writeStream from results then have listeners on 'data', 'error' and 'exit'
[21:17] Fuu has joined the channel
[21:17] greg606 has joined the channel
[21:17] uberbrady: fairwinds: Well, do you close the writeStream when you're done? That's my only guess.
[21:18] aslant has joined the channel
[21:19] myndzi: speaking of write streams.... :P
[21:19] Axsuul has joined the channel
[21:20] myndzi: how can you create a stream for other code to read from? not wanting to output to a file
[21:21] joshwines has joined the channel
[21:23] fairwinds: uberbrady: on 'exit' am currently calling outputFile.end()
[21:23] augustl: can child processes spawned by node be disowned?
[21:24] uberbrady: fairwinds: Only one outputFile? Or is there one 'per' something (http stream? Something like that?)
[21:29] tokumine has joined the channel
[21:29] Derzzle has joined the channel
[21:29] erichynds has joined the channel
[21:31] stafamus has joined the channel
[21:32] dshaw_ has joined the channel
[21:32] iangreenleaf: tjholowaychuk: Has no one bugged you to suppor iced-coffee-script in mocha yet?
[21:32] tjholowaychuk: oh no
[21:33] tjholowaychuk: no moar :(
[21:33] iangreenleaf: tjholowaychuk: :)
[21:33] cronopio has joined the channel
[21:33] TooTallNate: is that a real thing?
[21:33] iangreenleaf: tjholowaychuk: I'm gonna throw a PR your way, I'll try to make it as painless as possible :)
[21:33] iangreenleaf: TooTallNate: http://maxtaco.github.com/coffee-script/
[21:34] TooTallNate: lol
[21:34] iangreenleaf: TooTallNate: It's an extension of CS that offers a flow control mechanism.
[21:34] ag4ve: i noticed this in .7.8: cluster: support passing of named pipes (Ben Noordhuis) is there any documentation for how to do this?
[21:34] ag4ve: ie, the passing of named pipes (cluster or not)
[21:35] fairwinds: uberbrady: right, spawning once for each file. ie. var convertOptions = ['-resize', '30%', inputFile, '-'] , convert = spawn('convert', convertOptions)
[21:35] uberbrady: fairwinds: I wonder if you have to do some kind of cleanup when the spawn finishes?
[21:36] fcoury has joined the channel
[21:36] ramitos has joined the channel
[21:37] fairwinds: uberbrady: I am only doing this atm .on('exit', function(code) { outputFile.end(); });
[21:37] blissdev has joined the channel
[21:37] _ralph has joined the channel
[21:37] owenb has joined the channel
[21:38] _th_n has joined the channel
[21:38] jperkin has joined the channel
[21:38] sveisvei has joined the channel
[21:39] uberbrady: fairwinds: So long as you close each file after it's been spawned, that ought to do it. Maybe you have to also limit the number of spawned processes you end up spinning up? Maybe you're spinning up a ton of them?
[21:39] terite has joined the channel
[21:39] dleary has joined the channel
[21:40] garann has joined the channel
[21:41] springmeyer has joined the channel
[21:42] eeemsi: wow… so many people are using irccloud?!
[21:42] myndzi: there were like 800 users in here
[21:42] tmike: And all of them are paying for it, it seems
[21:42] myndzi: maybe 30 quit?
[21:42] myndzi: more than 30, less than 100
[21:43] iaincarsberg has joined the channel
[21:43] eeemsi: without the goal of making anyone these angry, but i was asking when i have to search for popcorn
[21:43] eeemsi: ^^
[21:44] brianseeders has joined the channel
[21:44] fred_____ has joined the channel
[21:45] caioketo has joined the channel
[21:45] jkarsrud has joined the channel
[21:46] bvmount has joined the channel
[21:46] samsonjs has joined the channel
[21:46] niftylettuce_ has joined the channel
[21:47] lmjabreu has joined the channel
[21:47] tilgovi has joined the channel
[21:48] pendlepants has joined the channel
[21:50] yogig has joined the channel
[21:51] Nomon__ has joined the channel
[21:51] JasonSmith has joined the channel
[21:52] Eruadan has joined the channel
[21:52] Eruadan has joined the channel
[21:53] Autolycus has joined the channel
[21:53] Autolycus: does anyone know backbone.js chat channel here
[21:54] jmoyers has joined the channel
[21:55] EyePulp has joined the channel
[21:55] michaelhartau has joined the channel
[21:55] enmand has joined the channel
[21:55] Marak has joined the channel
[21:56] mcluskydodallas has joined the channel
[21:56] sandfox has joined the channel
[21:56] martinciu has joined the channel
[21:56] ziro`: http://pastebin.com/bTtYQAa5
[21:57] ziro`: what am i doing wrong?
[21:57] dscape has joined the channel
[21:57] ziro`: Autolycus: #documentcloud
[21:58] _ralph has joined the channel
[21:58] hdon has joined the channel
[21:58] Autolycus: thanks ziro
[21:58] uberbrady: ziro`: that should work if you POST data to it? It hink?
[21:58] hdon: -_- https://gist.github.com/4f8150860aaf9ca508df
[21:59] ziro`: 'end' never fires :/
[21:59] hdon: this is what i get for operating a computer with no slepe
[21:59] cjheath has joined the channel
[22:00] mehlah has joined the channel
[22:00] uberbrady: ziro`: your data handler is wrong - you need a parameter
[22:01] uberbrady: but that still doesn't explain why 'end' never fires.
[22:01] uberbrady: req.on('data',function (data) { content+= data; });
[22:01] ziro`: well spotted
[22:01] tilgovi_ has joined the channel
[22:01] ziro`: fail :D
[22:02] ph^ has joined the channel
[22:02] bshelton has left the channel
[22:03] Skaag has joined the channel
[22:03] magn3ts has joined the channel
[22:03] dleary has joined the channel
[22:03] ziro`: eugh
[22:03] ziro`:
[22:03] ziro`: i'm a noob, it was firing
[22:03] ziro`: i wasn't ending the response :/
[22:04] ziro`: fail instance 2
[22:04] tomh has joined the channel
[22:04] tomh has joined the channel
[22:04] tomh has joined the channel
[22:04] blup has joined the channel
[22:04] daleharvey has joined the channel
[22:04] _ralph has joined the channel
[22:05] uberbrady: d'oh!
[22:06] terite has joined the channel
[22:06] robb1e_ has joined the channel
[22:06] Crowb4r has joined the channel
[22:06] majek has joined the channel
[22:06] jmar777 has joined the channel
[22:06] RobWC1 has joined the channel
[22:06] RobWC1 has left the channel
[22:07] sriley has joined the channel
[22:08] iaincarsberg has joined the channel
[22:08] stonebranch has joined the channel
[22:08] bizniz98 has joined the channel
[22:09] beawesomeinstead has joined the channel
[22:09] rauchg has joined the channel
[22:09] HeikkiV_ has joined the channel
[22:10] ryanseddon has joined the channel
[22:10] ziro`: yay :)
[22:10] ziro`: thanks!
[22:10] chunhao_ has joined the channel
[22:11] JasonSmith has joined the channel
[22:11] lohkey has joined the channel
[22:11] relix has joined the channel
[22:11] fcoury has joined the channel
[22:13] Hosh has joined the channel
[22:13] poincare101 has joined the channel
[22:13] shanebo has joined the channel
[22:13] pauls1 has joined the channel
[22:13] poincare101: Hi everyone. I'm having a bit of trouble with Node. Is it possible to set up a connection to an external server, and then write to it "later"? I know this a sequential mindset, but, is it possible?
[22:14] technel has joined the channel
[22:14] jemparing has joined the channel
[22:14] nym has joined the channel
[22:15] Cromulent has joined the channel
[22:15] poincare101 has left the channel
[22:16] lmatteis has joined the channel
[22:16] garann has joined the channel
[22:17] strmpnk has joined the channel
[22:18] sharkbird has joined the channel
[22:18] dnyy has joined the channel
[22:18] myndzi: what do you mean write to it later? what's the trouble?
[22:18] nebiros has joined the channel
[22:18] zomg: He left already
[22:18] nebiros has joined the channel
[22:19] zomg: Waited whole two minutes =)
[22:19] Eruadan has joined the channel
[22:19] dscape has joined the channel
[22:20] owenb has joined the channel
[22:20] MagiC3PO has joined the channel
[22:20] MagiC3PO has joined the channel
[22:20] RexM has joined the channel
[22:20] myndzi: oh right, didn't check all the joins and parts :P
[22:21] cmwelsh has joined the channel
[22:21] andrewdeandrade has joined the channel
[22:22] Jaylee_ has joined the channel
[22:23] trotter has joined the channel
[22:23] darrenlooby has joined the channel
[22:24] bartek has joined the channel
[22:24] coderarity has joined the channel
[22:24] wavded has joined the channel
[22:25] jeremyselier has joined the channel
[22:26] pgte has joined the channel
[22:26] TTSDA_ has joined the channel
[22:26] mintbridge_ has joined the channel
[22:26] Brunoz has joined the channel
[22:26] JSONB has joined the channel
[22:27] uberbrady: Argh, trying to do inheritance properly is annoying - I think the parent I'm inheriting from - or I'm delegating from, I dunno - is calling its own methods instead of mine.
[22:27] uberbrady: oh, whoops, no it isn't.
[22:27] necromancer has joined the channel
[22:27] uberbrady: I just can't code properly, because I'm stupid.
[22:28] TTSDA_ has joined the channel
[22:28] ziyadb has joined the channel
[22:28] kermitPT has joined the channel
[22:28] FilipeDias has joined the channel
[22:29] oal has joined the channel
[22:29] dre has joined the channel
[22:30] duncanbeevers has joined the channel
[22:30] kmiyashiro: what is going on: Function.call.bind(Number)
[22:30] jj0hns0n has joined the channel
[22:31] svnlto has joined the channel
[22:31] joshontheweb has joined the channel
[22:31] dre: Hello! I'm trying to profile my node code, so I ran my code with node -prof and it generated a v8.log. I built v8 from source and was previously able to run ./linux-tick-processor v8.log, but now it just exits without any new files or new output.. Do I need any path settings or anything?
[22:31] Country has joined the channel
[22:33] greg606 has left the channel
[22:33] blissdev has joined the channel
[22:33] ryah: perezd: yeah it's in the repo https://github.com/joyent/node/tree/master/tools/osx-pkg.pmdoc
[22:34] sveisvei has joined the channel
[22:34] BruNeX has joined the channel
[22:34] lmjabreu has joined the channel
[22:35] niftylettuce_ has joined the channel
[22:36] dre: anyone have any ideas?
[22:36] dre: or is that just a stupid question?
[22:37] fred___ has joined the channel
[22:37] blueadept: anyone know if there's a way to give mongoose.js an array of fields to search in the find query?
[22:37] blueadept: like you can give find 10 _ids, and it goes out and gets those docs and returns in one async call?
[22:38] BrianE has joined the channel
[22:38] blueadept: wait, $in
[22:38] blueadept: n/m
[22:38] Raynos has joined the channel
[22:38] mattgifford has joined the channel
[22:39] nicholasf has joined the channel
[22:40] remysharp has joined the channel
[22:41] myndzi: how does stream.pipe work? do you have to call it to pipe each chunk of data, or does it just work in the background?
[22:41] blueadept: it should do it in the background
[22:41] myndzi: so, instead of response.on(data) etc.
[22:41] _th_n has joined the channel
[22:42] myndzi: in the response event
[22:42] myndzi: i could create a gunzip stream and then do like gzip.on data instead?
[22:42] blueadept: readStream().pipe(res)
[22:42] myndzi: and put the code that WAS in response.on data into gzip.on data?
[22:42] myndzi: (and have it "just work")
[22:42] yawNO_ has joined the channel
[22:43] kenperkins: anyone know of a module that does nonces?
[22:43] blueadept: myndzi: http://pastie.org/private/xdqkhn58afnjalqy6c4q
[22:44] blueadept: this is an example using gridfs as a datastore
[22:45] __main__ has joined the channel
[22:45] Knowledge has joined the channel
[22:46] blueadept: the gridfs_obj is the chunked stream, and i pipe it to the express response handler
[22:46] gtramontina has joined the channel
[22:47] myndzi: here: http://pastie.org/3597053
[22:47] myndzi: this is what i'm trying to do in concept, but i'm having to work in coffeescript at the same time and i'm just getting lost
[22:47] myndzi: is that on the right track?
[22:49] entropax has joined the channel
[22:49] dre: so has anyone here used the profiler tools to profile their node code?
[22:49] Fabryz has joined the channel
[22:49] Maxani has joined the channel
[22:49] RobWC1 has joined the channel
[22:50] RobWC1 has left the channel
[22:50] crutex has joined the channel
[22:50] crutex has joined the channel
[22:51] jsurfer_ has joined the channel
[22:51] RGoodfellow has joined the channel
[22:52] maritz has joined the channel
[22:53] maritz: yawNO: some dude made this little game as a js learning experience: http://www.hamiltondraws.com/scripts/game.html#
[22:53] booo has joined the channel
[22:53] k1ttty has joined the channel
[22:53] maritz: i beat it
[22:53] maritz: can you?
[22:53] maritz: :D
[22:53] automata has joined the channel
[22:53] maritz: (without accessing any of the global vars)
[22:54] maritz: or changing the dom
[22:54] HacDan has joined the channel
[22:55] halfhalo has joined the channel
[22:55] jdeibele has joined the channel
[22:55] Cromulent has joined the channel
[22:55] Nomon__ has joined the channel
[22:56] halfhalo has joined the channel
[22:57] skomski has joined the channel
[22:57] colinwd has joined the channel
[22:57] materialdesigner has joined the channel
[22:58] fred___ has joined the channel
[22:59] isao1 has joined the channel
[22:59] Swizec_ has joined the channel
[22:59] martinciu has joined the channel
[23:02] jacobolus has joined the channel
[23:02] isao has joined the channel
[23:03] TTSDA has joined the channel
[23:04] ramitos has joined the channel
[23:04] Destos has joined the channel
[23:04] jacobolus has joined the channel
[23:05] dilvie has joined the channel
[23:05] yogig has joined the channel
[23:07] dazoe has joined the channel
[23:07] skomski has joined the channel
[23:08] spolu has joined the channel
[23:08] perezd has left the channel
[23:08] felixhummel has joined the channel
[23:09] joshgillies has joined the channel
[23:09] perezd has joined the channel
[23:09] fomatin has joined the channel
[23:10] andrewdeandrade has joined the channel
[23:11] lohkey has joined the channel
[23:11] MagiR2D2 has joined the channel
[23:12] stepheneb has joined the channel
[23:13] brainss has joined the channel
[23:14] Knowledge has joined the channel
[23:15] samsonjs has joined the channel
[23:15] Swizec has joined the channel
[23:16] maritz: yawNO: ping
[23:16] patcito_ has joined the channel
[23:17] patcito has joined the channel
[23:19] stalled has joined the channel
[23:21] te-brian has joined the channel
[23:22] briancra_ has joined the channel
[23:25] tilusnet has joined the channel
[23:25] martinciu has joined the channel
[23:25] madhums has joined the channel
[23:27] piscisaureus_ has joined the channel
[23:27] c4milo has joined the channel
[23:27] panosru has joined the channel
[23:28] boltR has joined the channel
[23:29] Gregor has joined the channel
[23:30] tilusnet: Hi. Is there a way to cross-compile node-js?
[23:30] copongcopong has joined the channel
[23:30] tilusnet: Unfortunately I am not familiar with the python build tool it uses.
[23:32] maritz: why would you need to be familiar with it?
[23:33] tilusnet: well, perhaps to specify a different build target
[23:33] context: http://fastr.github.com/articles/cross-compiling-node.js-for-arm.html
[23:33] maritz: hm, ok. no idea :D
[23:33] context: https://gist.github.com/1430861
[23:33] papandreou has joined the channel
[23:34] maritz: context: did you use the black magic that is google or did you just have those links lying around? :D
[23:34] tilusnet: cheers, context.
[23:34] Kami_ has joined the channel
[23:34] context: maritz: i have honed the underground art of black magic
[23:34] tilusnet: (the black magic didn't work for me :P)
[23:35] context: i just typed in "cross compile nodejs"
[23:35] maritz: tilusnet: yeah, you need to be authorized by the black hat group of wizards.
[23:35] context: maritz: its not really an authorization though. its more of a certificate that you have learned said art form
[23:36] maritz: right, i wouldn't know, i've only heard rumors
[23:36] Eruadan has joined the channel
[23:36] maritz: who would've thought http://baldursgate.com/ would be overloaded in 2012? :D
[23:36] context: and its not so much a "group of black hat wizards" its just *they*
[23:37] context: *they* must authorize you
[23:37] jergason has joined the channel
[23:38] papandreou: Any streaming experts around? I'm working on a module that allows you to "hijack" and rewrite an HTTP response, but I'm having troubles with some weird multi-pipe scenarios. Right now I'm wondering whether it makes sense for Stream.prototype.pipe to run cleanup when the destination stream emits the 'end' event: https://github.com/joyent/node/blob/master/lib/stream.js#L115
[23:39] papandreou: The docs for the 'end' event specifically say that you may be able to keep writing: "Emitted when the stream has received an EOF (FIN in TCP terminology). Indicates that no more 'data' events will happen. If the stream is also writable, it may be possible to continue writing."
[23:39] joshfinnie has joined the channel
[23:39] Hamms has joined the channel
[23:39] colinwd has joined the channel
[23:40] dnolen has joined the channel
[23:41] context: papandreou: MAY. not for tcp connections though
[23:42] context: different types of io ports you need to specifically close both streams (recv / trx)
[23:43] paulwe has joined the channel
[23:43] shinuza has joined the channel
[23:43] zeade has joined the channel
[23:43] papandreou: context: Sure -- but as far as my understanding goes, the 'end' event of the destination stream is irrelevant to whether the pipe should keep going. Seems to me that it only has to do with the "readable stream-ness" of the object :)
[23:43] context: correct.
[23:43] tlrobinson__ has joined the channel
[23:44] isao has joined the channel
[23:44] myndzi\ has joined the channel
[23:44] papandreou: context: Do you agree that L115 of stream.js should be removed, then?
[23:45] CIA-19: node: 03Rod Vagg 07v0.6 * rc12a1dc 10/ doc/api/path.markdown : path.exists*() as 2nd level head not 3rd - http://git.io/MkYbbQ
[23:45] CIA-19: node: 03Artur Adib 07v0.6 * rc834ef4 10/ (3 files in 2 dirs): Doc highlight fix - http://git.io/wOw2Hg
[23:45] CIA-19: node: 03isaacs 07v0.6 * rad5a108 10/ (21 files in 3 dirs): Update uv to 5d21056 - http://git.io/3ZduqQ
[23:45] CIA-19: node: 03isaacs 07v0.6 * rf631c1d 10/ (228 files in 40 dirs): Update npm to 1.1.9 - http://git.io/Z9p1Vg
[23:45] context: no?
[23:45] context: papandreou: why would you remove it ?
[23:45] pickels has joined the channel
[23:45] reid has joined the channel
[23:45] reid has joined the channel
[23:46] Sembiance has joined the channel
[23:46] zedas has joined the channel
[23:46] Lorentz has joined the channel
[23:46] bburhans has joined the channel
[23:46] jenner has joined the channel
[23:46] JuanCri has joined the channel
[23:46] Rob__ has joined the channel
[23:46] githogori has joined the channel
[23:46] majek has joined the channel
[23:46] jzacsh has joined the channel
[23:46] jzacsh has joined the channel
[23:46] terite has joined the channel
[23:47] alex1 has joined the channel
[23:47] jperkin has joined the channel
[23:47] _root_ has joined the channel
[23:47] svnlto has joined the channel
[23:47] papandreou: context: I have a use case where the same object is a readable and writable stream, but the two don't represent the same socket. The "readable stream part" represents the original request, and the "writable stream part" the rewritten one. Usually the original request ends before the rewritten one, but that breaks pipe.
[23:48] papandreou: context: ... if I'm piping something INTO the object at the moment when the original request ends.
[23:49] FireFly has joined the channel
[23:49] context: node is single threaded. you cant send AND recv at the EXACT same time
[23:50] context: its like putting your car in reverse and forward at the same time
[23:50] papandreou: context: I know, I know.
[23:50] papandreou: context: But the pipe is monitoring the events and tears down the pipe when the readable stream emits 'end'.
[23:50] Crowb4r has joined the channel
[23:51] papandreou: context: This is my project btw.: https://github.com/papandreou/express-hijackresponse
[23:51] context: you probably want two pipes? the pipe is doing its job. exactly that. piping the connection. connection dies. pipe does.
[23:52] andrehjr_ has joined the channel
[23:52] papandreou: context: Yeah, one use case is running the original request through a filter using two pipes. That also breaks because of this issue.
[23:54] context: pipes almost seem useless to me personally
[23:54] context: or does the pipe let you catch things
[23:54] context: ive never used pipes myself
[23:55] ramitos has joined the channel
[23:55] sorensen__ has joined the channel
[23:56] ^robertj has joined the channel
[23:56] myndzi\: the zlib api says that it makes streams, but i'm getting a type error (object function (o) { return new Unzip(o); } has no method 'on')
[23:56] mandric has joined the channel
[23:56] myndzi\: what am i doing wrong?
[23:56] SubStack: EVERYTHING
[23:57] papandreou: context: Stream.prototype.pipe is an awesome abstraction.
[23:57] SubStack: actually I have no idea
[23:59] papandreou: Ah, it looks like the line I'm complaining about was added by mikeal in a seeming unrelated commit (2a65d296). Anyone seen him around?
[23:59] papandreou: *seemingly
[23:59] riverraid has joined the channel
[23:59] CarterL has joined the channel