[00:02] topaxi_ has joined the channel [00:03] pHcF has joined the channel [00:07] davidbanham has joined the channel [00:09] Renegade001 has left the channel [00:10] Lorentz has joined the channel [00:12] newy_ has joined the channel [00:12] Joad has joined the channel [00:15] ThorAdam has joined the channel [00:15] brianseeders has joined the channel [00:17] sharkbird has joined the channel [00:18] niftylettuce: Prometheus: check paul's youtube page, he just posted a new vid [00:19] othiym23 has joined the channel [00:22] niftylettuce: if i want to run a setTimeout on a function() and stop the function (or the loop inside of it rather) once 5000ms has been reached, how might I achieve that? [00:25] AvianFlu has joined the channel [00:26] prettyrobots has joined the channel [00:28] burg has joined the channel [00:28] Emmanuel__ has joined the channel [00:29] piscisaureus has joined the channel [00:30] dnunes has left the channel [00:31] stagas: niftylettuce: you need a conditional in the loop [00:31] niftylettuce: stagas: I'm basically trying to run a loop for X milliseconds [00:31] niftylettuce: stagas: so putting conditional is easiest? [00:32] niftylettuce: stagas: won't that hog memory? [00:33] cjm has joined the channel [00:34] stagas: niftylettuce: or a while [00:35] stagas: niftylettuce: var timeIsUp = false; fn() { while(!timeIsUp) { ... } }; setTimeout(function() { timeIsUp = true; }, 5000); [00:35] newy_ has joined the channel [00:37] arpegius has joined the channel [00:37] Me1000 has joined the channel [00:38] shirro has joined the channel [00:38] root has joined the channel [00:38] MarcinM has joined the channel [00:38] stagas: niftylettuce: wait [00:38] stagas: niftylettuce: no it's impossible :P [00:39] niftylettuce: stagas: lol [00:39] stagas: niftylettuce: unless you're counting time in the loop [00:40] niftylettuce: stagas: but you'd need to know how fast the loop was going through i++; [00:40] amerinese has joined the channel [00:41] niftylettuce: stagas: would a timer work? [00:41] gtramont1na: ... you could assign setInterval to a variable and then clearInterval with a setTimeout [00:41] stagas: niftylettuce: or making a loop with process.nextTick() or setTimeout [00:43] stagas: niftylettuce: a timer yes. there are lots of ways [00:43] niftylettuce: stagas: performance wise, which is best route? [00:43] niftylettuce: stagas: is this apples to oranges? [00:43] stagas: niftylettuce: dunno, do them all and use jsperf :P [00:44] jsChr has joined the channel [00:47] DTrejo has joined the channel [00:48] cafesofie has joined the channel [00:48] isaacs has joined the channel [00:49] dspree has joined the channel [00:49] dspree has joined the channel [00:53] k1ttty has joined the channel [00:53] xandrews has joined the channel [00:55] mykul has joined the channel [00:56] bnoordhuis: niftylettuce: a timer won't work - while your loop is running the event loop is blocked so the timer won't fire [01:01] niftylettuce: bnoordhuis: yeah :/ [01:02] newy_ has joined the channel [01:04] tomb has joined the channel [01:04] edude03 has joined the channel [01:08] niftylettuce: gtramont1na: ty, i ended up using setInterval and clearInterval method [01:08] bwinton has joined the channel [01:08] gtramont1na: niftylettuce: ;-) you're welcome. [01:09] mrmanager has joined the channel [01:09] ggg: what is the easiest way to implement an authetication system on node? [01:10] niftylettuce: node oauth [01:10] niftylettuce: ?g node.js oauth [01:10] pquerna: can you be more specific with what you want to do [01:10] rcode has joined the channel [01:10] niftylettuce: weird google didnt work [01:10] jacter has joined the channel [01:10] ggg: thank you [01:10] ggg: ill take a look right now :P [01:11] niftylettuce: ggg: https://github.com/ciaranj/node-oauth [01:12] sh1mmer has joined the channel [01:12] ggg: what about openid ? [01:14] rcode: Guys, can anyone help me please, I have spent hours trying to get this piece of code to work. I can't send a http response once I launch ffmpeg as a child process. Here is the code: http://stackoverflow.com/questions/6483553/ffmpeg-hangs-the-whole-nodejs-process [01:14] rcode: anyone? [01:15] rcode: The code works fine with any other child processes, but when using ffmpeg it hangs. [01:15] Prometheus: niftylettuce: thanks for the heads up, will check that out [01:15] AvianFlu: rcode: have you tried just req.pipe? [01:16] rcode: req.pipe and req.connection.pipe [01:16] AvianFlu: in other news, sys is deprecated [01:16] AvianFlu: let me look at the code some more [01:17] AvianFlu: is ffmpeg starting [01:17] AvianFlu: ? [01:17] rcode: yeah, the thumnail gets created [01:17] ryanmcgrath has joined the channel [01:18] AvianFlu: do a console.log for the error code, as a sanity check [01:19] rcode: even the child process 'exit' event gets triggered, if I use any other library than ffmpeg it works fine [01:20] dhasenan has joined the channel [01:21] Prometheus: niftylettuce: hrm, can't seem to find the video, where'd you find it again? [01:21] rcode: exit code: 0 [01:21] AvianFlu: odd [01:22] kawaz_air has joined the channel [01:23] niftylettuce: Prometheus: http://www.youtube.com/watch?v=MllBwuHbWMY&feature=BFa [01:23] Prometheus: niftylettuce: oh that's unlisted video, sneaky sneak [01:24] rcode: So any ideas on what might be wrong with the code? [01:24] niftylettuce: Prometheus: ;) [01:24] Prometheus: good video [01:25] niftylettuce: dang I can't get the timing right on this :'( [01:25] niftylettuce: im basically estimating how long it takes for something to occur based off clients procesor, and having a constant for the timer [01:25] Tobsn has joined the channel [01:25] kawaz has joined the channel [01:27] JoshC1 has joined the channel [01:27] neoesque has joined the channel [01:27] abraxas has joined the channel [01:28] niftylettuce: gtramont1na: i still cant perfect it [01:28] niftylettuce: gtramont1na: i have to find a way to set the variable for setInterval equal to how long it takes for the loop to go through once [01:29] niftylettuce: gtramont1na: is there some way to do a setTimer and then store that as a var [01:29] ctide: oh [01:29] ctide: nifty [01:29] niftylettuce: almost like a stopwatch [01:29] ctide: err, look at my pull request [01:29] ctide: didn't realize you were in here [01:29] ctide: just saw it on HN [01:29] niftylettuce: ctide: nice :) [01:29] niftylettuce: ctide: yeah I'm integrating play.js [01:29] niftylettuce: ctide: (so we can have audio) [01:30] niftylettuce: ctide: the infinite loop prob is not needed since we need it to run for 3 min 30 seconds [01:30] ctide: ah, yeah, i just saw your comment about wanting it to run forever so i made it run forever [01:30] niftylettuce: ctide++ [01:30] v8bot: niftylettuce has given a beer to ctide. ctide now has 1 beers. [01:30] niftylettuce: let me see how u did it [01:30] niftylettuce: why'd you use console.err? [01:30] ctide: it blocks [01:31] ctide: you want your output to block so that the process.nexttick isn't called before it's all done [01:32] abraham has joined the channel [01:32] gtramont1na: niftylettuce: So you'd like to run the loop once, see how much it took to run and set this value to setInterval? [01:32] ctide: all the stdout functions are nonblocking [01:33] ctide: i'd probably just start a timer for 3:30 when you start playing the audio [01:33] ctide: and then just have that timer display the logo and process.exit [01:36] unlink has joined the channel [01:36] unlink has joined the channel [01:37] niftylettuce: gtramont1na: yeah [01:37] niftylettuce: gtramont1na: so it is optimized based off client's speed [01:37] creationix has joined the channel [01:37] gtramont1na: niftylettuce: do you have any gist so I can take a look? [01:37] niftylettuce: ctide: do you mind if I put you in contributors section of package.js [01:37] niftylettuce: package.json* [01:37] ctide: no, i don't mind [01:38] creationix has left the channel [01:38] niftylettuce: ctide: im going to incorporate nonblocking stuff [01:38] niftylettuce: :) [01:39] Nuck: I need to test an API, specifically with PUT, anyone know of any sorta "test kitS" [01:39] Nuck: I don't have a frontend and I don't wanna hafta start now [01:40] ctide: might not matter, i don't know what problem you were having previously getting it to run forever [01:40] niftylettuce: gtramont1na: ill gist what i got so far [01:40] gtramont1na: cool [01:40] Nuck: niftylettuce: You still working on that Nyancat.js? [01:41] niftylettuce: Nuck: yeah i integrated audio [01:41] xerox: worthy pursuits [01:41] Nuck: goddamn that's pretty fuckiny epic. [01:41] Nuck: niftylettuce: Is Nyancat in it yet? [01:42] T0bsn has joined the channel [01:42] niftylettuce: Nuck: no someone made suggestion on hacker news to use the gikoneko cat [01:42] niftylettuce: http://news.ycombinator.com/item?id=2699295 [01:44] xerox: haha [01:45] Nuck: niftylettuce: but... but... NYAN NYAN NYAN NYAN NYAN NYAN NYAN PUDDI NYAN NYAN NYAN NYAN NYAN [01:46] xerox: how old are you [01:46] niftylettuce: me? [01:46] niftylettuce: or Nuck? [01:46] Me1000 has joined the channel [01:46] niftylettuce: Nuck is 6*2+10-5 [01:46] Nuck: ACTION checks niftylettuce's math [01:46] Nuck: v8: 6*2+10-5 [01:46] v8bot: Nuck: 17 [01:46] Nuck: Holy fuck how do you do that :V [01:46] amerinese_ has joined the channel [01:47] niftylettuce: gtramont1na: aighttt [01:47] amerinese has joined the channel [01:47] jamescarr_ has joined the channel [01:49] jamescarr_: anyone using stylus that could help me construct a function [01:50] jamescarr_: I am pretty sure I can construct a function to do http://colinaarts.com/articles/float-containment/ in a single statement [01:50] jamescarr_: just not sure how ;) [01:50] gtramont1na: niftylettuce: Im playing with a jsfiddle here. Might get back to you soon with some solution. :-) [01:50] gtramont1na: niftylettuce: did you post your gist? I might have missed it. [01:51] iffy|x200 has joined the channel [01:51] niftylettuce: gtramont1na: hang on my ascii art is effdd [01:53] Badababuba has joined the channel [01:54] xeodox has joined the channel [01:55] sethetter has joined the channel [01:56] ditesh|cassini has joined the channel [01:58] gtramont1na: hey niftylettuce, not sure if this does what you expect... take a look and tell me what you think: http://jsfiddle.net/UfNZ6/ [01:59] nannto has joined the channel [02:03] gtramont1na: niftylettuce: if you add a console.log('i am here') right before returning in the loop function, you'll see it being printed about nine times (in my machine) [02:05] avalanche123 has joined the channel [02:06] ggg: how do i get an oauth provider to use node-oauth YY [02:07] ggg: ??? [02:08] niftylettuce: gtramont1na: yea ty im experimenting [02:14] marcello3d has joined the channel [02:15] boehm has joined the channel [02:16] stelcheck has joined the channel [02:19] ArgumentExceptio has joined the channel [02:19] stelcheck: anyone had some experience into getting haibu to work? [02:19] niftylettuce: gtramont1na: what is this for? for (var j=0; j<10000; j++) [02:19] ArgumentExceptio: How can I get the hostname of the server my application is running on [02:19] gtramont1na: niftylettuce: I was just simulating a time consuming process... [02:20] gootdude has joined the channel [02:20] niftylettuce: gtramont1na: thats what I figured, was just curious [02:20] gtramont1na: niftylettuce: ;-) [02:20] gtramont1na: niftylettuce: Did it help in any way? [02:21] ggg: how can i make a Oauth provider? [02:22] ArgumentExceptio: Anybody know how to get the local hostname? [02:22] niftylettuce: gtramont1na: trying it out [02:22] theCole: anyone know a good dom scraper for node? [02:22] materialdesigner has joined the channel [02:22] ArgumentExceptio: Got it: os.hostname() [02:27] meso has joined the channel [02:27] iffy has joined the channel [02:27] iffy: hmm/nick iffy|x200 [02:28] Nexxy has joined the channel [02:29] raydeo has joined the channel [02:30] Swizec has joined the channel [02:33] Me1000 has joined the channel [02:36] josephboyle has joined the channel [02:41] kuhrt has joined the channel [02:41] JoshC1 has joined the channel [02:41] niftylettuce: how would I listen for a particular string that gets outputted from a "console.log('completed');"? [02:41] kuhrt has joined the channel [02:42] niftylettuce: i guess with socket [02:43] unibomb has joined the channel [02:43] samaclacda has joined the channel [02:44] MooGoo: let's push things forward guys [02:45] kmiyashiro has joined the channel [02:46] KellyM has joined the channel [02:47] samaclacda has left the channel [02:47] cjm has joined the channel [02:48] _fat has joined the channel [02:52] epopt37 has joined the channel [02:53] prettyrobots has joined the channel [02:55] nannto has joined the channel [02:57] jacter has joined the channel [02:59] mike5w3c has joined the channel [03:00] mwhooker has joined the channel [03:03] avalanche123 has joined the channel [03:06] WhyNoSocket has joined the channel [03:06] WhyNoSocket: Howdy, got a question about net [03:06] WhyNoSocket: Basicallly doing var socket = new net.Socket({ type: 'tcp4', allowHalfOpen: false }); [03:07] WhyNoSocket: Then: socket.connect('2525', '127.0.0/1, function() { [03:07] WhyNoSocket: Then: socket.connect('2525', '127.0.0.1', function() { //code here }); [03:07] WhyNoSocket: Getting error though: Error: Socket already opened [03:08] josephboyle has joined the channel [03:10] akshatj has joined the channel [03:11] jbroman: WhyNoSocket: That seems to work for me; are you sure you don't have any other code that would call connect [03:13] michaelrice has joined the channel [03:14] WhyNoSocket: Maybe I have another node process running, how can I check in mac? I tried ps aux | grep 'node' but got nothing [03:14] havenn has joined the channel [03:15] jbroman: You should be able to connect to a given port multiple times; I believe that error means that that particular socket is already connected. [03:15] jbroman: (You cannot ask the net.Socket to connect multiple times.) [03:15] WhyNoSocket: Only calling socket.connect once [03:16] jbroman: WhyNoSocket: Can you paste your code? Just the two lines you pasted work fine for me. [03:16] jbroman: (pastebin or equivalent) [03:16] caolanm has joined the channel [03:16] rfay has joined the channel [03:18] WhyNoSocket: Ahhh I see my problem, basically I have a init() function which does the new net.Socket and I have another function connect which calls connnect, but mutliple things can call connect. How do I do this? I want each call to connect do its work and close. Don't want to keep the socket open [03:18] mikeal has joined the channel [03:19] jbroman: WhyNoSocket: If you're making multiple connections, why not create a net socket each time? [03:19] jbroman: (i.e. for clients, one socket is typically used more or less for one connection) [03:20] mikeal has joined the channel [03:21] xeodox has joined the channel [03:22] xeodox: How do I get a list of files in a certain directory? [03:22] WhyNoSocket: Basically, the application is sending data to another node process over TCP. INstead of creating and socket and keeping it open, while the process is running, I would like the connection to be created, then wait until data needs to be sent, connect, and close. [03:22] Nuck: ACTION goes to program a testkit for his API [03:23] WhyNoSocket: No need to keep a persistant socket. Does that make sense? [03:23] jbroman: xeodox: fs.readdir or fs.readdirSync [03:23] WhyNoSocket: So instead of having a single socket, do I just need to create NEW sockets every data [03:23] jbroman: WhyNoSocket: Yeah, I would just go ahead and create a new socket each time you want to open a new connection. [03:24] xeodox: jbroman: how can I get the current directory? [03:24] jbroman: xeodox: As in, a directory listing of the current directory, or the path to the current directory? [03:24] kmiyashiro has joined the channel [03:24] xeodox: path to the current directory [03:25] jbroman: xeodox: process.cwd() [03:25] KellyM has joined the channel [03:25] amerine has joined the channel [03:26] jbroman: xeodox: Both of these things are fairly clearly documented in http://nodejs.org/docs/v0.4.8/api/ for future reference. [03:26] xeodox: jbroman: thanks [03:29] WhyNoSocket: If I call socket.end() in the callback of socket.write() taht will close it right. Do I need to set socket = null to have it ceared out [03:31] jbroman: WhyNoSocket: Yeah, socket.end() should close the connection. I don't think it will be garbage collected until you remove your reference to it (e.g. by setting the variable to null, or having it go out of scope), but that is likely not a big deal. [03:31] rchavik has joined the channel [03:38] Emmanuel__ has joined the channel [03:39] justicefries has joined the channel [03:40] dnunes has joined the channel [03:42] andrenkov has joined the channel [03:42] skm has joined the channel [03:42] themiddleman has joined the channel [03:44] jamescarr_: hey mongoosers... anyway to add methods to a model? [03:46] Me1000 has joined the channel [03:46] jbroman: jamescarr: MySchema.method('methodname', function(args) {}); [03:47] jbroman: These will be copied to the prototype of model instances. [03:47] jbroman: There is also 'static' if you want a static method. [03:47] unomi has joined the channel [03:50] Me1000 has joined the channel [03:50] zinkem has joined the channel [03:51] jamescarr_: thanks [03:51] jamescarr_: a lot [04:00] elpinguino has left the channel [04:01] jackbean has joined the channel [04:01] Skola has joined the channel [04:05] ditesh|cassini has joined the channel [04:05] saschagehlich has joined the channel [04:05] riven` has joined the channel [04:06] systemfault has joined the channel [04:06] systemfault has joined the channel [04:06] rchavik has joined the channel [04:12] rauchg_ has joined the channel [04:13] thatthep has joined the channel [04:13] josephboyle has joined the channel [04:28] bronson has joined the channel [04:29] mhausenblas has joined the channel [04:29] mhausenblas_ has joined the channel [04:32] jhurliman: i saw a few mentions last week of very simple static file servers using node, but can't find the links any more [04:32] jhurliman: i just want to point at a directory and start serving up files on some port [04:33] Emmanuel__: hm [04:33] Emmanuel__: shouldn't be too hard to write [04:34] darshanshankar has joined the channel [04:34] Emmanuel__: jhurliman: https://github.com/joyent/node/wiki/modules#web-frameworks-static [04:34] Emmanuel__: luckily, people already wrote it :) [04:35] jhurliman: neither of the two are listed there, strange [04:35] eyesUnclouded has joined the channel [04:37] jga023 has joined the channel [04:38] xDROPx has joined the channel [04:42] Me1000 has joined the channel [04:42] iMiksu has joined the channel [04:42] jhurliman: aha found one of them: http://blog.nodejitsu.com/http-server [04:45] temp01 has joined the channel [04:46] NHQ has joined the channel [04:47] emet has joined the channel [04:50] tomb has joined the channel [04:50] niftylettuce: now with a real nyancat, animated feet, and fully working audio @ https://github.com/niftylettuce/nyancat.js [04:51] Nuck: lol I'm doing an API Tester for my current project, using jQuery to whip it out real fast [04:51] niftylettuce: Nuck: check it out [04:51] shirro has joined the channel [04:51] Nuck: And I just about treated the event binding for .change as a callback that would recieve the data of the form XD [04:52] Nuck: ACTION has gotten too used to Node.js [04:52] Nuck: niftylettuce: YAY! [04:52] niftylettuce: :) [04:52] niftylettuce: wheres ma beeeer? [04:52] niftylettuce: full screen on terminal looks awesome with nyancat.js [04:52] Nuck: Hold on I have an idea... [04:56] Nuck: niftylettuce: http://www.asciimation.co.nz/ [04:58] niftylettuce: Nuck: ? [04:58] Nuck: niftylettuce: Ascii in the browser. Imagine the possibilities. Or better yet, set up a telnet server :P [04:58] niftylettuce: Nuck: holy crap [04:58] Nuck: niftylettuce: telnet towel.blinkenlights.nl [04:59] justicefries: the web is dying. telnet only. [04:59] justicefries: it's the future. [05:02] liar has joined the channel [05:02] niftylettuce: Nuck: updated package preview on the repo, its much sexier [05:05] infynyxx has joined the channel [05:05] infynyxx has left the channel [05:05] infynyxx has joined the channel [05:10] gbgallardo has joined the channel [05:10] gbgallardo: niftylettuce: Hey man [05:10] gkmngrgn has joined the channel [05:11] tomb has joined the channel [05:16] jacter has joined the channel [05:16] niftylettuce: gbgallardo: yo :) [05:16] niftylettuce: gbgallardo: im headed down on friday [05:16] gbgallardo: niftylettuce: Awesome work on the nyancat.js lol [05:16] niftylettuce: gbgallardo++ [05:16] v8bot: niftylettuce has given a beer to gbgallardo. gbgallardo now has 1 beers. [05:17] ShreeKavi has joined the channel [05:18] niftylettuce: gbgallardo: did you try it out using "node nyancat.js"? [05:18] gbgallardo: niftylettuce: Yes, it's absolutely epic. Sound and all :P [05:19] niftylettuce: gbgallardo: bahaha awesome =^.^= [05:20] gbgallardo: niftylettuce: But I'm hitting the sack man...hit me up when you're in town. Great work lol. [05:20] NHQ: anybody ever seen this error before: ld.so.1: node: fatal: relocation error: file /home/jill/local/node/bin/node: symbol BIO_set_flags: referenced symbol not found [05:20] niftylettuce: gbgallardo: thanks will do! [05:23] jakeg has joined the channel [05:25] mendel_ has joined the channel [05:26] harth has joined the channel [05:27] Skola has joined the channel [05:28] CodyGray has joined the channel [05:29] tomb has joined the channel [05:33] kawaz_air has joined the channel [05:33] herbySk has joined the channel [05:35] fostah has joined the channel [05:38] josephboyle has joined the channel [05:39] NHQ: I get this error trying to use connect sessions: [05:39] NHQ: ld.so.1: node: fatal: relocation error: file /home/jill/local/node/bin/node: symbol BIO_set_flags: referenced symbol not found [05:39] NHQ: running Solaris (joyent) [05:40] NHQ: any insights? [05:41] Emmanuel__: niftylettuce: don't get sound with it though [05:41] Emmanuel__: is it me ? [05:42] Emmanuel__: (and I just noticed that the original video gets a special layout) [05:42] Emmanuel__: http://www.youtube.com/watch?v=QH2-TGUlwu4 [05:42] niftylettuce: Emmanuel__: haha yeah and plus Sprint is airing nyancat commercials apparently [05:43] niftylettuce: Emmanuel__: did you do "npm install play" ? [05:43] Emmanuel__: seriously, Lolcats and shit are taking over the world [05:43] niftylettuce: Emmanuel__: see Marak's colors.js examples if you need to debug why audio isn't working [05:43] Emmanuel__: and I can't help not listening to it [05:43] niftylettuce: Emmanuel__: it gives you error output I believe [05:44] jacter1 has joined the channel [05:44] niftylettuce: Emmanuel__: http://news.ycombinator.com/item?id=2699295 [05:46] jim__ has joined the channel [05:46] Emmanuel__: holy shit, there is a 15 minutes version [05:49] stephank has joined the channel [05:50] mraleph has joined the channel [05:51] Xano has joined the channel [05:54] brimster___ has joined the channel [05:54] mykul|Home has joined the channel [05:58] mikeal has joined the channel [05:59] jungly has joined the channel [06:04] Xano has joined the channel [06:06] caolanm has joined the channel [06:08] frewsxcv: anyone here ever used cradle with couchdb+node.js? how do you sort? [06:08] jacter has joined the channel [06:08] mikeal has joined the channel [06:10] unlink has joined the channel [06:10] unlink has joined the channel [06:11] skm has joined the channel [06:12] TooTallNate has joined the channel [06:14] mwhooker has joined the channel [06:15] jacter1 has joined the channel [06:15] SamuraiJack has joined the channel [06:16] jacter1 has joined the channel [06:16] Skola has joined the channel [06:17] jacter2 has joined the channel [06:17] Yoric has joined the channel [06:18] jacter has joined the channel [06:19] mike5w3c has joined the channel [06:19] MarcinM: ok, I can't figure it out. how do I listen for post? [06:20] maqr has joined the channel [06:20] maqr has joined the channel [06:21] jacter1 has joined the channel [06:25] Nuck: Man, they weren't kidding when they said accepting file uploads was a bitch in Node... [06:26] springify has joined the channel [06:29] Nuck: Actually [06:29] Nuck: Might not be Node's fault [06:29] ryanmcgrath has joined the channel [06:29] Nuck: the multiparts aren't decoding in Charles either [06:30] blup has joined the channel [06:30] markwubben has joined the channel [06:31] Nuck: WTF is ------WebKitFormBoundarymlvnSzrOCDEPqnez-- [06:32] ph^ has joined the channel [06:32] simenbrekken has joined the channel [06:34] wilmoore has joined the channel [06:35] maqr has joined the channel [06:37] framlin: frewsxcv: I use cradle. I sort via the keys of my views [06:38] TomY has joined the channel [06:39] ShreeKavi has left the channel [06:39] aurojit has joined the channel [06:39] pifantastic has joined the channel [06:40] muhqu has joined the channel [06:40] iffy|x200 has joined the channel [06:40] niftylettuce: \o peace out [06:41] `3rdEden has joined the channel [06:41] huang47 has joined the channel [06:42] mehlah has joined the channel [06:42] RC1140 has joined the channel [06:42] djcoin has joined the channel [06:46] hybsch has joined the channel [06:46] jacekp has joined the channel [06:47] root____8 has joined the channel [06:47] caolanm has joined the channel [06:48] mraleph has joined the channel [06:48] niftylettuce has joined the channel [06:48] __doc__ has joined the channel [06:49] saschagehlich_ has joined the channel [06:50] hassox has joined the channel [06:51] JoESanche_z has joined the channel [06:53] sub_pop has joined the channel [06:53] caolanm has joined the channel [06:54] topaxi has joined the channel [06:54] aron_ has joined the channel [06:54] Nican has joined the channel [06:57] ivanfi has joined the channel [06:57] steffan has joined the channel [06:58] Nuck: Okay, there anyone here who is fuckign good with HTTP verbs? [06:58] Nuck: Or better yet, some multipart-expert? [06:58] alexandere has joined the channel [07:00] groom has joined the channel [07:00] frkout has joined the channel [07:00] frkout has joined the channel [07:01] JoshC1 has joined the channel [07:01] tuhoojabotti: :P [07:02] tuhoojabotti: Nuck: Put it to google. [07:02] marvin_ has joined the channel [07:03] Nuck: tuhoojabotti: I've tried. [07:03] tuhoojabotti: step 2: read the results [07:03] Nuck: uploading a file is *supposed* to be an easy 3-liner. [07:03] tuhoojabotti: :P [07:03] jensn has joined the channel [07:04] Nuck: But for some reason, when I try to PUT in jQuery, it gives me a broken multipart :/ [07:04] stride: there are modules that handle that for you on npm [07:04] Nuck: stride: I know, I just need somebody to explain why the fuck PUT is so hard to me lol [07:05] tuhoojabotti: Nuck: Because you're doing it wrong, happy? [07:05] rook2pawn has joined the channel [07:08] caolanm has joined the channel [07:09] mendel_ has joined the channel [07:10] Nuck: Ugh sounds like AJAXing uploads is a severe PITA [07:10] Nuck: So I guess I'm gonna hafta use a jQ plugin :/ [07:11] romanb has joined the channel [07:11] coreb has joined the channel [07:13] andree has joined the channel [07:14] amaudy has joined the channel [07:15] littlebiged has joined the channel [07:15] tuhoojabotti: It's gonna kill ya [07:16] Nuck: I swear, file uploads are a bitch. [07:16] Skola: how long have you invested in exploring your options? [07:17] Nuck: What options? I'm doing a RESTful API, I'm sorta stuck with PUT (or POST if I'm willing to compromise) [07:18] Nuck: Plus, I would need to use AJAX either way [07:18] sgimeno has joined the channel [07:18] Nuck: So I might as well use PUT [07:18] kawaz_air has joined the channel [07:18] Nuck: jQuery Forms looks good :D [07:18] Nuck: ACTION settles on that for now [07:19] Nuck: Not like it matters that much, it's just a quick strewn-together way to test my APIs [07:20] framlin: Nuck: aafaik browsers do not support PUT [07:20] Nuck: framlin: Ah, but they do! [07:20] Nuck: However, only in XHR$ [07:20] framlin: ah, ok [07:20] Nuck: Forms only allow POST or GET [07:21] bergie has joined the channel [07:21] framlin: i think I mismatched this [07:25] fly-away has joined the channel [07:26] neoesque has joined the channel [07:27] mikeal has joined the channel [07:29] ChrisPartridge has left the channel [07:32] dgathright has joined the channel [07:35] jakeg has joined the channel [07:38] [AD]Turbo has joined the channel [07:38] sylvinus has joined the channel [07:38] [AD]Turbo: hi there [07:38] __tosh has joined the channel [07:41] gozala has joined the channel [07:42] hassox has joined the channel [07:44] ardianzzz has joined the channel [07:48] AAA_awright: Nuck: Just use an HTTP-Method-Equif field which Node.js reads, and if it finds it, override the actual HTTP method [07:48] AAA_awright: *Equiv [07:48] AAA_awright: Or something similar [07:48] Nuck: AAA_awright: But my problem is getting jQ to post [07:48] Nuck: ERm, PUT [07:49] svenlito has joined the channel [07:49] AAA_awright: $.POST({"HTTP-Method-Equiv":"PUT", ...}) ? [07:49] Nuck: I've got the middlware thingy for multipart [07:49] AAA_awright: er, $.post [07:49] AAA_awright: I wouldn't trust it for anything but GET and POST [07:49] Nuck: AAA_awright: Will Express treat it properly? [07:50] AAA_awright: Nuck: I think express has support for some way to change the HTTP method with a form field [07:50] AAA_awright: I don't actually use Express [07:50] hackband has joined the channel [07:50] AAA_awright: It's a... bug of mine [07:50] Nuck: AAA_awright: Honestly, I think the hardest part will be gathering formdata [07:50] Nuck: Because it DOES send a PUT [07:50] Nuck: It just doesn't have a valid multipart [07:51] d0k has joined the channel [07:51] AAA_awright: Oh hm [07:52] Nuck: AAA_awright: And I know it's not just Node either, because it shows up as invalid in Charles too. [07:53] AAA_awright: I can't imagine it's Node [07:53] Nuck: AAA_awright: Exactly [07:53] Nuck: It's not even getting to Node, so there might be a glitch on there, but there might not be [07:54] mikey_p: you can do other methods with jQuery if you use ajax, and just set type: METHOD [07:54] Nuck: mikey_p: I've gotten that far [07:54] Nuck: The problem is not with the ajax functions, I have that [07:55] Nuck: It's getting the file from the form to the AJAX [07:55] mikey_p: i use DELETE all the time with jQuery and UI Dialogs [07:55] tbassetto has joined the channel [07:55] loob2 has joined the channel [07:55] mikey_p: I don't even pretend to understand how file handling would work in that situation [07:56] rauchg has joined the channel [07:56] Yoric has joined the channel [07:58] riven has joined the channel [07:59] jungly has joined the channel [08:04] smgt has left the channel [08:04] JoshC1 has joined the channel [08:06] Yoric has joined the channel [08:07] uchuff has joined the channel [08:08] liorkesos has joined the channel [08:09] liorkesos: I'm trying to integrate jqueryui tabs in brunch - [08:09] adambeynon has joined the channel [08:09] liorkesos: still wrapping my head around the backbone oriented structure. [08:10] liorkesos: How and where should I "call" the tabs in jquery obviously it's not in templates/home.eco [08:11] dgathright has joined the channel [08:11] liorkesos has left the channel [08:11] sudhirjonathan has joined the channel [08:12] Sebastien-L has joined the channel [08:12] ditesh|cassini has joined the channel [08:14] unlink has joined the channel [08:14] unlink has joined the channel [08:15] hassox has joined the channel [08:17] markwubben has joined the channel [08:18] paznicul has joined the channel [08:18] Nuck: I'm gonna need a helluvalotta caffeine tonight :S [08:18] Nuck: Because this code is a biiiiiiiitch. [08:19] Skola: what time is it where you're at [08:19] Nuck: 1:18AM [08:19] Skola: hah [08:19] Nuck: ACTION grabs a glass of chai [08:19] Skola: gonna skip a night? [08:19] Skola: :p [08:19] Nuck: Probably lol [08:19] Yoric has joined the channel [08:19] Nuck: I need to do that to shift my sleep schedule back to normal times :P [08:19] Nuck: I've gotten to where I keep oversleeping every day [08:20] Nuck: Which pushes back my sleep time each day [08:20] Nuck: Which results in me sleeping from 4:30 AM to 3PM [08:21] Skola: that's a loooong time [08:21] Skola: I sleep from 12PM to 5-6AM [08:22] jvduf has joined the channel [08:22] bosphorus has joined the channel [08:25] mikl has joined the channel [08:25] mikl has joined the channel [08:26] Nuck: Skola: Normally, I get about 8-9 hours, but recently, my sleep has been going as late as 3PM [08:26] Skola: isabitmuchno? [08:27] Skola: you're like always on it seems [08:27] Skola: can't get normal sleeping pattern when you work 24/7 [08:27] TomY has joined the channel [08:28] Nuck: lol [08:28] Nuck: Skola: So tonight, I sleep from 0 to 0 [08:32] iffy|x200 has joined the channel [08:33] confoocious has joined the channel [08:33] confoocious has joined the channel [08:34] petrjanda has joined the channel [08:35] david has joined the channel [08:35] jbpros has joined the channel [08:36] tk has joined the channel [08:36] Ravatar has joined the channel [08:37] aron_ has joined the channel [08:37] mertimor has joined the channel [08:38] kbni has joined the channel [08:39] aabt has joined the channel [08:40] tuhoojabotti: Sleep from undefined to undefined! [08:40] tk has joined the channel [08:40] tuhoojabotti: I slept 9 hours last night. :P [08:40] tuhoojabotti: Now arrays inside arrays works! :D [08:41] tuhoojabotti: https://gist.github.com/1045566 See comments for screenie :D [08:41] tuhoojabotti: no wait [08:41] tuhoojabotti: that screenshot is wrong ;D [08:42] davidbanham has joined the channel [08:44] gozala has joined the channel [08:46] tuhoojabotti: http://www.tuhoojabotti.com/r/prsc/JSON_JEA.png [08:46] tuhoojabotti: Here's the working one :P [08:48] gavin_huang has joined the channel [08:48] adrianmg has joined the channel [08:50] jeremyselier has joined the channel [08:50] svenlito has joined the channel [08:51] fangel has joined the channel [08:53] kulor-uk has joined the channel [08:55] seyz has joined the channel [08:57] littlebiged has joined the channel [09:00] blup has joined the channel [09:00] simenbrekken has joined the channel [09:00] bosphorus has joined the channel [09:02] vyvea has joined the channel [09:04] jbpros has joined the channel [09:05] meso_ has joined the channel [09:06] huang47 has joined the channel [09:07] jonaslund has joined the channel [09:08] jbpros has joined the channel [09:09] hassox has joined the channel [09:10] bnoordhuis has joined the channel [09:10] bpierre has joined the channel [09:17] svenlito has joined the channel [09:21] springify has joined the channel [09:21] cwo has joined the channel [09:24] mendel_ has joined the channel [09:24] dexter_e has joined the channel [09:27] dexter_e: Hello , I successfully ( almost ) implemented an online example of file upload using ofrmidable, but now the uploaded images are the right size and file name but seem corupted. Any ideas? [09:27] dexter_e: Using formidable: http://rahulmehta1.wordpress.com/2011/04/26/uploading-a-file-in-node-js-by-formidable/ [09:27] dexter_e: The upload works , but the files are corrupted. [09:31] awenkhh has joined the channel [09:32] Nuck: Wow, that sounds like a living hell. [09:32] Nuck: Yeah, I'm basically just using a basic HTML5 file upload for my shit, where it encodes it as regular ol' binary data. [09:33] Nuck: Though I'm gonna adsd fallbacks shortly [09:33] mpoz2 has joined the channel [09:33] svnlto_ has joined the channel [09:37] MattJ has joined the channel [09:37] Emmanuel__: f yeah [09:37] bosphorus_ has joined the channel [09:37] Emmanuel__: I think I just finished my tasks for last week \o/ [09:38] Emmanuel__: and it's 5.40 the next monday [09:38] Emmanuel__: (pm) [09:38] Emmanuel__: I'm so gonna hit the bar [09:39] DJazz has joined the channel [09:40] aliem has joined the channel [09:41] dexter_e: which html5 encoder are you using? [09:42] Multiply has joined the channel [09:42] dexter_e: err Which 'basic HTML5 file upload' ? [09:44] Ravatar has joined the channel [09:44] piscisaureus has joined the channel [09:45] bosphorus has joined the channel [09:46] rio{ has joined the channel [09:48] Nuck: dexter_e: https://developer.mozilla.org/en/using_files_from_web_applications#Example.3a.c2.a0Uploading_a_user-selected_file [09:49] Nuck: This stuff [09:49] dexter_e: Nuck: Thanks, peeping it now. [09:50] aabt has joined the channel [09:50] dexter_e: Are you Receiving the file with Node.JS ? [09:51] dexter_e: what are you using to parse the request ? [09:51] huang47 has joined the channel [09:52] ParadoxQuine has joined the channel [09:53] hecticjeff has joined the channel [09:57] josephboyle has joined the channel [09:57] JoESanche_z has joined the channel [09:59] aurynn has joined the channel [10:00] huang47 has joined the channel [10:00] Emmanuel__ has joined the channel [10:01] yoav1 has joined the channel [10:03] t4nk458 has joined the channel [10:03] davve has joined the channel [10:06] t4nk458: n00b here: i'm trying to run a node server on port 80 by using http-proxy to proxy port 80 to my node server on port 9000. (just like the first example here: https://github.com/nodejitsu/node-http-proxy) it worked for a few minutes, then i restarted by server and now i'm told that node can't bind to port 80 without running as root. [10:07] t4nk458: (i'm almost positive i had this working a few minutes ago, just can't figure out why it won't work now) [10:07] indutny: t4nk458: you can't run server on low ports on most of linux systems [10:08] jomoho has joined the channel [10:09] t4nk458: indutny: right, but i'm somewhat under the impression that node-http-proxy could make this work. if it can't, i'm guessing i have to set the proxy up with nginx outside of my node app? [10:09] Mrfloyd has joined the channel [10:10] indutny: t4nk458: nope, you should run "sudo -E node yourapp.js" [10:10] indutny: t4nk458: or turn off security restrictions [10:10] indutny: t4nk458: steps to do that depends on your linux distribution [10:11] amerinese has joined the channel [10:12] kriszyp has joined the channel [10:12] desdur has joined the channel [10:12] t4nk458: (ubuntu 10.4). when i run sudo node app.js with or without -E, it doesn't work because node isn't available to the root user [10:13] fermion has joined the channel [10:13] indutny: t4nk458: yep, but if you'll run with -E - what would you get? [10:14] t4nk458: indutny: sudo: node: command not found [10:14] indutny: t4nk458: ok, where is your `node` executable? could you please run `which node`? [10:15] pen has joined the channel [10:16] t4nk458: indutny: /home/zach/local/node/bin/node (single-user) [10:16] t4nk458: (i can, of course, run everything just fine on port 1024+) [10:17] indutny: t4nk458: sudo 'export PATH="/home/zach/local/node/bin/:$PATH"; node' [10:17] rcode has joined the channel [10:19] t4nk458: yep, my $PATH is /home/zach/local/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [10:19] ThorAdam has joined the channel [10:20] indutny: yep, but that will run it from root user [10:20] ThorAdam has left the channel [10:22] indutny: t4nk458: or even better sudo env PATH="$PATH" node yourcript.js [10:22] indutny: yourscript, of course [10:23] t4nk458: COOL! [10:24] t4nk458: indutny: thanks! [10:24] indutny: t4nk458: np [10:25] t4nk458: i'm curious though, why do the generic node installation steps have you install node in single-user mode if it needs this to run on port 80? is this standard practice? [10:25] eyesUnclouded has joined the channel [10:27] indutny: t4nk458: yes [10:27] indutny: t4nk458: for development it's better to use higher ports [10:28] t4nk458: ah, okay then [10:29] dexter_e has joined the channel [10:33] simenbrekken has joined the channel [10:36] Wizek has joined the channel [10:37] saurabhverma has joined the channel [10:37] beck5k has joined the channel [10:41] Shrink has joined the channel [10:42] TheJH_ has joined the channel [10:48] kawaz_home has joined the channel [10:48] migimunz2 has joined the channel [10:49] blup has joined the channel [10:49] okuryu has joined the channel [10:58] _jgr has joined the channel [10:59] beck5k has left the channel [10:59] beck5k has joined the channel [11:03] patrickgamer has joined the channel [11:06] necrodearia has joined the channel [11:07] ashb has joined the channel [11:08] bnoordhuis has joined the channel [11:09] ditesh|cassini has joined the channel [11:11] MattJ has joined the channel [11:11] svenlito has joined the channel [11:11] t|f has joined the channel [11:13] ngs has joined the channel [11:14] cosmincx has joined the channel [11:15] rcode has joined the channel [11:16] sharkbird has joined the channel [11:16] rcode: Hello everyone, has anyone encountered this issue before, seems to be an internal problem with stream.pipe when running ffmpeg: http://stackoverflow.com/questions/6483553/ffmpeg-hangs-the-whole-nodejs-process [11:17] igl1 has joined the channel [11:18] bnoordhuis: rcode: check out the chat logs, there was some discussion on that yesterday or the day before [11:18] necrodearia has joined the channel [11:18] bnoordhuis: rcode: unless that was you, of course [11:18] rcode: that was me, duh [11:19] CIA-104: node: 03Ben Noordhuis 07master * rc626f8b 10/ test/simple/test-tls-connect.js : Test case for issue #1218: uncatchable exception on TLS connection error. - http://bit.ly/mlQ5wh [11:20] beck5k has left the channel [11:22] DJazz has left the channel [11:23] Druide_ has joined the channel [11:25] jan____ has left the channel [11:25] skm has joined the channel [11:26] dexter_e has joined the channel [11:27] jensn has joined the channel [11:31] markwubben has joined the channel [11:36] Sami_ZzZ has joined the channel [11:37] davidcoallier has joined the channel [11:37] patrickgamer has left the channel [11:38] aabt has left the channel [11:45] gleicon has joined the channel [11:47] Bj_o_rn has joined the channel [11:48] bkozal has joined the channel [11:51] Yoric has joined the channel [11:52] jtrudeau has joined the channel [11:53] hij1nx has joined the channel [11:53] LiamMagee has joined the channel [11:53] FIQ has joined the channel [11:53] xandrews has joined the channel [11:59] christoph_ has joined the channel [12:06] shirro has joined the channel [12:06] shirro has joined the channel [12:08] achristianson has joined the channel [12:11] nornagon has joined the channel [12:11] jeremyselier has joined the channel [12:13] Bj_o_rn has left the channel [12:13] dberlinger has joined the channel [12:13] Xano has joined the channel [12:18] DaTa_ has joined the channel [12:18] DaTa_: hello [12:18] DaTa_: anybody here? [12:18] anybody: no [12:19] mdeboard` has joined the channel [12:19] `3rdEden: all the 560+ irc users are hiding [12:19] mdeboard`: Does anyone have links to information/articles that provide some critical analysis of node.js's strengths and weaknesses for serving content? [12:20] DaTa_: I'm having one very unpleasant error with node.js :( [12:20] broofa has joined the channel [12:20] ceej has joined the channel [12:20] F1LT3R has joined the channel [12:20] DaTa_: Error: Socket is not writable [12:20] Yoric has joined the channel [12:20] fly-away has joined the channel [12:20] piscisaureus: you're writing to a closed socket [12:21] klovadis has joined the channel [12:21] DaTa_: hm [12:21] piscisaureus: oh don't use master btw - use the v0.4 branch [12:21] DaTa_: and how do i open socket? [12:22] piscisaureus: well, by creating a connection or accepting one [12:22] amerinese has joined the channel [12:23] elpinguino has joined the channel [12:25] DaTa_: so I need to accept the connection somehow [12:25] pigmej has joined the channel [12:25] piscisaureus: DaTa_ you have some code to show? [12:25] DaTa_: yeah, good idea ;) [12:25] pigmej: does anyone know how to perform AXFR via ndns client? [12:25] DaTa_: var tcpServer = net.createServer(function(socket) { console.log('TCP Server running...'); tcpSocket = socket; tcpSocket.setEncoding("utf8"); tcpSocket.on("connect", onTcpConnect); tcpSocket.on("data", onTcpData); }); function onTcpConnect() { console.log("Connected to Flash"); } [12:25] DaTa_: uff [12:26] `3rdEden: pastebin / gist it [12:26] piscisaureus: DaTa_ yes, this is unreadable [12:26] DaTa_: http://pastebin.com/hiRTBimG [12:26] klovadis: could someone help me out? I suddenly can't get a websocket server with express & socket.io running. I've reduced things to the most basic settings but it throws an error: http://pastebin.com/X3iUizft [12:26] zemanel has joined the channel [12:27] pali has joined the channel [12:27] `3rdEden: klovadis io returns a socket.io instance [12:28] piscisaureus: DaTa_: you probably don't get the error on the first connection [12:28] `3rdEden: so either do io = require('socket.io').listen(app); [12:28] `3rdEden: or instancename = io.listen(app); [12:28] `3rdEden: and than a instancename.sockets.on [12:28] DaTa_: yeah, error is on line 49 [12:28] piscisaureus: DaTa_: you are overwriting tcpSocket every time a new connection comes in [12:28] klovadis: 3rdEden: Thank you very much! facepalming myself : ) [12:29] `3rdEden: klovadis also, there is a dedicated #socket.io channel :) [12:29] DaTa_: yes, possibly, buut thre will be just one connection on tcpSocket [12:29] xandrews has joined the channel [12:29] Charuru has joined the channel [12:29] fumanchu182 has joined the channel [12:29] klovadis: 3rdEden: I'll remember that. thanks again! [12:29] fumanchu182 has joined the channel [12:29] DaTa_: problem is when I'm trying to write to tcpSocket... [12:30] DaTa_: on line 49... :0 [12:31] piscisaureus: well, likely you end()ed tcpSocket before writing to it [12:31] aelaguiz has joined the channel [12:32] framlin: mdeboard`: there are no weaknesses. If there were, there would be fixed ;) [12:32] svnlto_ has joined the channel [12:33] `3rdEden: DaTa_ also, your tcpSocket is a global [12:33] `3rdEden: so if you have 2 people connecting to your server, you are basiclaly, fucked [12:33] pali: piscisaureus: but the same code goes under Windows, we have that problem only under linux [12:33] Bwen has joined the channel [12:33] `3rdEden: ACTION loves seeing people using socket.io 0.7 <3 [12:34] tmzt has joined the channel [12:34] DaTa_: `3rdEden there will be just one conenction on that server [12:34] mike5w3c has joined the channel [12:34] `3rdEden: ok [12:34] pigmej: nobody uses axfr requests in node ? ;/ [12:34] johnnywengluu has left the channel [12:34] Bwen: ACTION slaps `3rdEden with a large socket namepsace... get back to work! :@ [12:35] zmbmartin has joined the channel [12:35] piscisaureus: DaTa_: get rid of the tcpServer.close statement [12:35] Nuck has joined the channel [12:35] `3rdEden: ;D [12:35] piscisaureus: just stick to end() [12:35] Yoric has joined the channel [12:36] asobrasil has joined the channel [12:36] DaTa_: piscisaureus: but close() is called only ich data is "exit\0" [12:37] DaTa_: if [12:37] piscisaureus: and this never happens? [12:37] pali: piscisaureus: yes never [12:37] DaTa_: it really works under windows... [12:37] pali: but we tested it without it, and still Socket is not writable [12:38] pali: what about socket permissions under linux? cant be something with that? [12:38] mpoz2 has joined the channel [12:38] piscisaureus: not likely [12:38] shinuza has joined the channel [12:39] piscisaureus: if 9002 were a restricted port node wouldn't listen on it in the first place [12:39] piscisaureus: maybe the the the remote end drops the connection [12:41] leahculver has joined the channel [12:41] piscisaureus: add a listener for the close event, e.g. tcpSocket.on('close', function() { console.log('closed'); }); [12:42] aron_ has joined the channel [12:42] Nuck: wow haven't seen you in a while, piscisaureus [12:43] piscisaureus: well, I'm around a lot [12:43] DaTa_: piscisaureus: ok, I'm trying it [12:43] Nuck: piscisaureus: laiz. [12:43] kulor-uk has joined the channel [12:43] pali: piscisaureus: thanks, it's really closing before writing [12:44] pali: but why :) [12:44] Nuck: piscisaureus: Prolly just on when I'm not (the 4 AM to 3 PM zone :P) [12:44] brianseeders has joined the channel [12:44] broofa has joined the channel [12:45] bradleymeck_ has joined the channel [12:46] piscisaureus: pali: I don't know, but since you don't get an error event the remote end probably gracefully closes the connection [12:46] piscisaureus: I don't know why [12:46] piscisaureus: because they don't like ya [12:46] piscisaureus: :p [12:46] DaTa_: :p shitty flash [12:46] jscheel has joined the channel [12:47] DaTa_: but why it does work on windows but not on linux? [12:48] postwait has joined the channel [12:48] unlink has joined the channel [12:48] unlink has joined the channel [12:50] svenlito has joined the channel [12:50] lukegalea has joined the channel [12:50] migimunz has joined the channel [12:50] aheckmann has joined the channel [12:51] rfay has joined the channel [12:51] JoshC1 has joined the channel [12:52] piscisaureus: obviously I don't know [12:52] eyesUnclouded has joined the channel [12:55] \sega has joined the channel [12:57] vyvea_ has joined the channel [12:58] AaronMT has joined the channel [13:00] bosphorus_ has joined the channel [13:04] c4milo has joined the channel [13:04] dexter_e: Why would file uploads using formidable be the right size and filename but be corrupted upon arrival ? [13:04] beejeebus has joined the channel [13:07] xandrews has joined the channel [13:09] k1ttty has joined the channel [13:09] mike5w3c has joined the channel [13:10] jlecker has joined the channel [13:10] andree_ has joined the channel [13:12] cbibler_ has joined the channel [13:13] trotter has joined the channel [13:13] jbpros has joined the channel [13:13] dall has joined the channel [13:13] dall: hello everybody [13:13] iman_vt has joined the channel [13:13] romainhuet has joined the channel [13:14] JasonSmith has joined the channel [13:14] Fodi69 has joined the channel [13:17] marcello3d has joined the channel [13:18] philhawksworth has joined the channel [13:19] Yoric has joined the channel [13:19] avalanche123 has joined the channel [13:19] Katibe has joined the channel [13:21] rpj8 has joined the channel [13:21] rpj8 has left the channel [13:22] thomblake has joined the channel [13:22] mrryanjohnston has joined the channel [13:22] piscisaureus has joined the channel [13:24] Katibe has joined the channel [13:25] temp01 has joined the channel [13:26] simenbrekken: How do I convince my clients internal hosting department node.js isn't the devil or poison or cancer or islam? [13:27] tuhoojabotti: simenbrekken: It's not?! [13:27] MooGoo: Node.js is Jebus approved [13:28] JasonSmith: I love NodeJS. But it's poison for sure. [13:28] tuhoojabotti: simenbrekken: Show them random pics you make with meme-generator. [13:28] ianward has joined the channel [13:28] JasonSmith has left the channel [13:28] simenbrekken: I did manage to say the sentence "Winter is coming" during the meeting, nobody got it. I thought it would be adequate [13:28] MooGoo: he died of posion [13:29] tuhoojabotti: simenbrekken: I didn't get it. :D [13:29] catshirt has joined the channel [13:29] MooGoo: I bet they want you to use PHP [13:29] svnlto_ has joined the channel [13:29] MooGoo: truly the spawn of satan [13:30] tuhoojabotti: :D [13:30] simenbrekken: Shrug, it works. Just not for my project :) [13:30] MooGoo: I'd only really want to use Node.js for something very specialized in any business context [13:30] MooGoo: for now at least [13:31] eyesUnclouded has joined the channel [13:31] simenbrekken: MooGoo: for me it's mostly that the entire backend is 90 lines and runs at the speed of light. The PHP version is unimaginable [13:31] tuhoojabotti: :D [13:32] MooGoo: backend to do what? [13:32] simenbrekken: MooGoo: geo search/storage [13:32] MooGoo: they dont have to know you know [13:32] simenbrekken: it's the backend of an iOS app that stores walks basically. [13:33] tuhoojabotti: :P [13:33] MooGoo: just have apache redirect to your node app [13:33] simenbrekken: so node.js + mongo = sweet love [13:33] MooGoo: running on some super secret port [13:34] tuhoojabotti: Yes like mine. [13:36] shinuza has joined the channel [13:38] amaudy has joined the channel [13:39] trotter has joined the channel [13:43] davidsklar has joined the channel [13:43] F1LT3R has joined the channel [13:45] infynyxx has joined the channel [13:45] Xano has joined the channel [13:46] christkv has joined the channel [13:46] voodootikigod has joined the channel [13:46] christkv: anyone got example code on how to return a Buffer object from a node extension in a function call [13:46] voodootikigod_ has joined the channel [13:46] tuhoojabotti: return buf; [13:46] tuhoojabotti: ":D" [13:46] ksheurs has joined the channel [13:48] christkv: in c++ :) [13:48] christkv: the node_buffer class [13:49] christkv: I want to use Buffer* Buffer::New(char* data, size_t length) [13:49] christkv: then I need to wrap the instance to return it to js [13:49] christkv: that's what I'm having problems figuring out [13:49] sub_pop has joined the channel [13:49] bnoordhuis: christkv: return Buffer("foo", 3)->handle_; [13:49] ceej has joined the channel [13:50] bnoordhuis: christkv: err.... return Buffer::New("foo", 3)->handle_; [13:50] bradleymeck_ has joined the channel [13:52] christkv: @bnoordhuis hmm [13:52] bosphorus has joined the channel [13:52] rcode has joined the channel [13:53] adrianmg has joined the channel [13:53] liquidproof has joined the channel [13:54] voodootikigod has joined the channel [13:55] piscisaureus has joined the channel [13:57] bshumate has joined the channel [13:57] willwhite has joined the channel [13:59] willwhit_ has joined the channel [14:00] Lorentz has joined the channel [14:00] voodootikigod has joined the channel [14:00] mynyml has joined the channel [14:00] zum has left the channel [14:00] simenbrekken has joined the channel [14:01] kixxauth has joined the channel [14:01] jtsnow has joined the channel [14:02] ts__ has joined the channel [14:02] Vertice has joined the channel [14:04] voodootikigod has joined the channel [14:04] daglees has joined the channel [14:04] daglees has joined the channel [14:05] hellp has joined the channel [14:05] Swimming_bird has joined the channel [14:06] voodootikigod has joined the channel [14:07] voodootikigod_ has joined the channel [14:07] fangel has joined the channel [14:09] balaa has joined the channel [14:09] jonasen has joined the channel [14:09] zemanel has joined the channel [14:09] willwhite has joined the channel [14:10] ianward has joined the channel [14:12] beejeebus has left the channel [14:12] boaz has joined the channel [14:12] infynyxx has left the channel [14:14] bosphorus has joined the channel [14:14] christkv: @member:bnoordhuis seems to work so far :) [14:14] christkv: @member:bnoordhuis weird that it returns a SlowBuffer as default with v8 3.4.6 [14:15] bnoordhuis: christkv: there is an explanation for that but it's involved and rather boring [14:16] bnoordhuis: christkv: the gist of it is that fast buffers are linked to a parent buffer and slow buffers aren't [14:16] patrickgamer has joined the channel [14:17] patrickgamer has left the channel [14:17] christkv: so what do you suggest ? [14:17] christkv: I create a slow buffer [14:17] christkv: then link a fast buffer ? [14:17] sudhirjonathan has joined the channel [14:17] christkv: It's for output to a tcp connection [14:18] Nuck: What's that thing that people use to have multiple node instances work together? [14:19] eldar has joined the channel [14:19] Tidwell has joined the channel [14:19] lukegalea: Nuck: do you mean https://github.com/Marak/hook.io ?? [14:20] bnoordhuis: christkv: just stick with the slow buffer, it'll be faster than first turning it into a fast buffer before writing it to the socket [14:20] bnoordhuis: counterintuitive, i know :-/ [14:21] justicefries has joined the channel [14:21] christkv: I'm doing a branch for the mongodb driver for buffer support when fast buffers get into node [14:21] christkv: hope they push 3.4.6 to a node 0.49 or something [14:21] iMiksu has joined the channel [14:22] christkv: the purejs version went up from 2.8K ops/s to 5.5K ops/s [14:22] christkv: c++ is still around 15K ops/s [14:22] jga023 has joined the channel [14:25] eldios has joined the channel [14:26] bentruyman_ has joined the channel [14:26] brianc has joined the channel [14:27] bentruyman_ has joined the channel [14:28] willwhite has joined the channel [14:28] edude03 has joined the channel [14:29] dexter_e has joined the channel [14:29] Poetro has joined the channel [14:30] pibi has joined the channel [14:30] lukegalea: Nuck: or do you mean cluster? [14:31] willwhit_ has joined the channel [14:32] postwait has joined the channel [14:33] davidwalsh has joined the channel [14:33] pandeiro has joined the channel [14:34] harth has joined the channel [14:34] BillyBreen has joined the channel [14:35] mandric has joined the channel [14:36] mandric has joined the channel [14:38] mapleman has joined the channel [14:38] baudehlo has joined the channel [14:39] coreb has joined the channel [14:40] TomY_ has joined the channel [14:40] mrmanager has joined the channel [14:40] root____8 has left the channel [14:40] bnoordhuis: am i being trolled or is this guy really that clueless? https://github.com/joyent/node/issues/1235 [14:41] `3rdEden: bnoordhuis it's the neternet what do you expect ;) [14:41] bentruyman_ has joined the channel [14:41] iman_vt has left the channel [14:41] `3rdEden: internet* [14:41] willwhite has joined the channel [14:41] tuhoojabotti: nether [14:42] tuhoojabotti: bnoordhuis: I guess it's the "xD" that makes it a good subject to trolling. [14:42] `3rdEden: I would just tell him to install mod_node [14:42] bnoordhuis: hah [14:42] bnoordhuis: gotta be friendly to newbies [14:42] willwhit_ has joined the channel [14:42] bnoordhuis: but some don't make it easy :-/ [14:43] tuhoojabotti: bnoordhuis: What are you trying to do? [14:43] bnoordhuis: tuhoojabotti: trying to keep my calm [14:43] tuhoojabotti: With Node. [14:44] bnoordhuis: tuhoojabotti: are you trolling me too now? [14:44] bradleymeck_: bnoordhuis, looking at the google results for his username, i think he is just clueless [14:44] kmiyashiro has joined the channel [14:44] pibi: anyone uses node-ffi? [14:45] fangel has joined the channel [14:45] bradleymeck_: if this is about node-ffi on cygwin it doesnt work. [14:45] tuhoojabotti: bnoordhuis: No, I'm trying to help, but I don't have a clue what you are trying to achieve. [14:45] pibi: no, i can't figure how to translate the stat struct [14:45] kmiyashiro has joined the channel [14:45] pibi: linux x86 [14:46] bentruyman_ has joined the channel [14:46] bnoordhuis: bradleymeck_: i think you nailed it [14:48] josephboyle has joined the channel [14:49] mcutler- has joined the channel [14:49] bentruyman_ has joined the channel [14:49] Nuck: So, apparently I gotta implement this shit in Node now: https://github.com/valums/file-uploader/blob/master/server/readme.txt [14:50] bentruyman_ has joined the channel [14:50] EyePulp has joined the channel [14:51] yozgrahame has joined the channel [14:53] mcutler- has joined the channel [14:53] t|f: Nuck: This might be helpful http://debuggable.com/posts/streaming-file-uploads-with-node-js:4ac094b2-b6c8-4a7f-bd07-28accbdd56cb [14:53] dexter_e has joined the channel [14:54] mapleman has joined the channel [14:56] tuhoojabotti: Oh wait [14:56] tuhoojabotti: bnoordhuis: I thought that was your issue. :P [14:56] Nuck: tj should build a middleware from scratch for this shit :P [14:56] seawise has joined the channel [14:56] pjacobs has joined the channel [14:56] seawise: can we track WebSockets requests by Firebug or similar tools? [14:57] shanez has joined the channel [14:58] bentruyman_ has joined the channel [14:58] seawise: is it possible to place Node.js + MongDB stack inside Amazon EC2? [14:58] pjacobs: seawise, yes [14:59] kriszyp has joined the channel [15:00] seawise: is it an answer to my first or second question? :) [15:01] cosmincx has joined the channel [15:01] Destos has joined the channel [15:02] pjacobs: seawise, about node and mongo on an ec2 instance [15:02] gazumps has joined the channel [15:03] seawise: I'm unfamiliar with EC2, can we install our software on EC2 instances? [15:03] Prometheus: yes [15:03] seawise: or they come prefab [15:03] Prometheus: pro tip: google [15:03] thejh has joined the channel [15:04] seawise: I've thought they come prefab and unchangeable? [15:04] markwubben has joined the channel [15:04] Prometheus: no [15:04] seawise: few [15:04] seawise: phew [15:04] Jalava: we use rightscale to run ec2 instances with mongo+node.js [15:04] seawise: any other cloud hosting in Asia (Singapore)? [15:04] Prometheus: jesus [15:05] Prometheus: seawise: please, Google [15:05] Prometheus: honestly. [15:05] Prometheus: this is all on there :) [15:05] cosmincx: Hello, I can see a number of nodejs mysql implementations, is there a recommended one? I'm mostly looking for speed, but also some friendlyness(orm'ish like) [15:05] Jalava: where is this google thing everybody is talking about? [15:05] Jalava: :P [15:05] seawise: I'm trying to absorb knowledge here, from real people that have node experience [15:05] davidascher has joined the channel [15:06] Prometheus: seawise: half of your questions have nothing to do with node [15:06] Prometheus: sorry, 75% [15:06] seawise: okay, I'm try to google that Google [15:06] Jalava: seawise: what Prometheus means that he doesn't know and feels bad about it :P [15:06] HamsterLord has joined the channel [15:06] seawise: okay, guys, I'm silent [15:06] Prometheus: seawise: no no, stick to just node questions and you're fine :P [15:06] sbisbee has joined the channel [15:07] Jalava: check rackspace too [15:07] Prometheus: just that.. it makes more sense to ask the omnipotent google when you want to know about Cloud infrastructure in Asia =P [15:07] jan____ has joined the channel [15:07] Jalava: when I was 10 years younger, irc-channels were not just text based Quoras [15:07] adelgado: omniscient [15:08] Jalava: but general interest channels that gathered likeminded people together, but conversation was not limited to context [15:08] HamsterLord: Where is it limited to context? [15:08] F1LT3R has joined the channel [15:08] HamsterLord: I talk about world politics in a programming channel [15:08] Jalava: it is kind of sad looking at many practically dead channels in freenode because people just come and ask and go away [15:08] HamsterLord: then I switch to trolling [15:09] HamsterLord: then I go back and ask about something in programming [15:09] Jalava: that is how it should be :P [15:09] thejh: HamsterLord: all ops away in the channels you're inside? [15:09] HamsterLord: just do a /list and join all the crowded channels if you're that type [15:09] Prometheus: adelgado: that too :) [15:09] HamsterLord: no, ops accept small amounts of troll [15:09] HamsterLord: and good trolls aren't obvious trolls [15:09] pjacobs2 has joined the channel [15:09] HamsterLord: So [15:09] HamsterLord: What is this channel about? [15:09] thejh: HamsterLord: good point [15:10] Jalava: at least the annoying twitter carboncopy bot is not here ;) [15:10] t|f: I've found Node.js helpful, but found it to be the most helpful when others see me trying to help others with less Node.js experience. IRC Karma? [15:10] josephboyle has joined the channel [15:10] HamsterLord: Nope [15:10] HamsterLord: Just normal human social interactions [15:10] Nuck: Jalava: Hey, I for one like that one. [15:10] Prometheus: t|f: teaching is the best way to learn, I've found ;) [15:11] HamsterLord: What is this channel about? [15:11] Nuck: HamsterLord: I do the same thing, talking about politics in a programming room. [15:11] HamsterLord: General java-script? [15:11] Prometheus: HamsterLord: about pushing things, according to the topic :) [15:11] Nuck: This room is about breats. [15:11] Jalava: HamsterLord: nodejs.org [15:11] t|f: Prometheus: Agreed [15:11] Nuck: *breasts [15:11] MooGoo: this is the #cybersex channel [15:11] MooGoo: a/s/l?? [15:11] adelgado: 14/f/san diego [15:11] Jalava: is there really ever been functional #cybersex in irc [15:11] Nuck: HamsterLord: I put on my robe and wizard hat [15:11] HamsterLord: 80,m,your neighbour [15:12] Jalava: i've only heard rumours from DalNET [15:12] HamsterLord: Nuck I put on my conjurer condom [15:12] Nuck: 15/m/your shower [15:12] MooGoo: im 15/school girl/japan [15:12] Nuck: HamsterLord: I cast a level 12 englargment on my penis [15:12] HamsterLord: ACTION runs to the shower, ready to give whoever is inside suprise but-sex [15:12] bwinton: MooGoo: You too? What are the chances? [15:12] MooGoo: on irc...about 95% [15:12] HamsterLord: ACTION casts penis-bloodflow-stopping-spell on your penis [15:13] MooGoo: .peen [15:13] MooGoo: er [15:13] MooGoo: meh [15:13] Nuck: but no [15:13] Nuck: 17/m/Modesto, CA [15:13] MooGoo: young'ns [15:13] HamsterLord: 15/m/egypt [15:13] HamsterLord: trollface.jpg [15:14] Nuck: adelgado: You lie, because you said female [15:14] HamsterLord: 20/f/england [15:14] HamsterLord: 23/m/china [15:14] Nuck: And it is well known that there are no females on the internet [15:14] HamsterLord: 40/f/japan [15:14] colinclark has joined the channel [15:14] pibi: I see I have no chance here [15:14] adelgado: I'm actually a lesbian in Syria. [15:15] MooGoo: I'm Bill Clinton [15:15] Nuck: adelgado: Lesbians are women too, so that can't be true either [15:15] MooGoo: not nesecarily Nuck [15:15] Nuck: MooGoo: Isn't there a vagina that should be eating you alive? [15:15] pibi: 32/lgbt/vatican [15:16] MooGoo: that cunts a failure, couldnt even beat some nig...black guy in the primary [15:16] kriszyp has joined the channel [15:16] nk_ has joined the channel [15:16] MooGoo: I should have married Sarah Palin [15:16] BillyBreen has left the channel [15:16] Nuck: MooGoo: Nah, then you'd have been shot in the head for getting that blowjob [15:16] thejh: HamsterLord: that trolling worked very good :) [15:17] jbpros has joined the channel [15:17] pibi: back on programming: anyone could help me to figure how to translate a struct stat from __xstat() with node-ffi on linux x86? [15:17] CodyGray has joined the channel [15:18] CodyGray has left the channel [15:18] HamsterLord: thejh it wasn't even intentionall [15:18] nk_ has left the channel [15:19] thejh: HamsterLord: sure - two times "What is this channel about?", I'll put that in some private HOWTO [15:19] MooGoo: so are things being pushed forward [15:20] HamsterLord: itsnot in the topic [15:20] HamsterLord: someone change the topic and include the link in it [15:20] adelgado: you get spammed with a link whenever you join the channel [15:20] HamsterLord: I just find channels by looking in the channel list and joining any channel that has lots of people [15:20] HamsterLord: nope [15:21] HamsterLord has left the channel [15:21] HamsterLord has joined the channel [15:21] HamsterLord: I did not get sent anything [15:22] mandric_ has joined the channel [15:23] mandric_ has joined the channel [15:23] aron_ has joined the channel [15:24] willwhite has joined the channel [15:24] Ramosa has joined the channel [15:26] shinuza has joined the channel [15:27] rcode has joined the channel [15:30] pandeiro has joined the channel [15:30] taf2: i think i found a bug in http.js [15:30] Ramosa: excited about windows version.. surprised that some of the comments are so negative. Platform independence is a good thing [15:30] jakehow has joined the channel [15:31] MooGoo: haters gonna hate [15:31] mape: Ramosa: Only issue I see is modules assuming people are on nix [15:31] taf2: ACTION works on narrowing in on a repeatable test case [15:31] zanst has joined the channel [15:31] mcutler has left the channel [15:31] RVS has joined the channel [15:31] mikeal has joined the channel [15:32] systemfault: The guys with negative comments can go to hell.. really. [15:32] t|f: MS wants to do Node.js port because it highlights Windows 7 feature, first version of windows (well, they're pro version) that really has a posix implementation built in [15:32] JoshC1 has joined the channel [15:32] MooGoo: eh? [15:32] systemfault: Windows is necessary to further increase the popularity of node.js. [15:32] MooGoo: windows has technicly had posix support in the kernel for a very long time but it's rarely used and being phased out in recent versions I think [15:33] t|f: SUA - Subsystem for Unix Based Applications [15:33] fumanchu182: systemfault, If that was the case then how come other pieces of technology have gotten along quite fine without windows? [15:33] systemfault: MooGoo: It has right along with the OS/2 subsystem :P [15:33] MooGoo: lol [15:33] viewsrc has joined the channel [15:33] Ramosa: oh look what I started, a flame war :( [15:33] MooGoo: I still have a stack of Microsoft OS/2 floppys [15:33] Ramosa: thats what the word Windows does nowadays :-p [15:33] fumanchu182: No just saying, Windows is not necessary. [15:33] systemfault: fumanchu182: It helps, you can't deny it.. PHP became that popular because of how easy you could run it on Windows. [15:34] t|f: Posix support yes, full posix compatibility (ie all the functions) no. At least as far as it was explained to me. [15:34] Nuck: systemfault: And I'd love it, since it's getting annoying having to keep WinSCP open all the time [15:34] systemfault: And 90% of the desktop users use Windows. [15:34] markwubb_ has joined the channel [15:34] fumanchu182: Sure sure, just like Windows was the reason Apache became successful... [15:34] mcutler has joined the channel [15:34] JJMalina has joined the channel [15:34] Ramosa: superusers like their libraries underground, so they can be exclusive :) [15:34] HamsterLord: but 80% of servers are.... [15:34] Nuck: fumanchu182: Windows is a popualr development environment. The ready aviliability of PHP on Windows did contribute to its success. [15:34] taf2: in my application, after connecting ftp to knox i get exceptions on this line :https://github.com/joyent/node/blob/master/lib/http.js#L697 [15:34] taf2: where connection is null [15:34] Nuck: HamsterLord: LINUX@ [15:35] systemfault: Ramosa: They're hipsters, they wouldn't like if node become too mainstream. [15:35] taf2: adding an extra check for && !connection fixes my app [15:35] tjholowaychuk has joined the channel [15:35] fumanchu182: lmao [15:35] HamsterLord: Windows is the thing if you want a consumer-friendly product [15:35] MooGoo: guess they should fork it when all the Windows cruft starts getting added in [15:35] taf2: but i think i need a better isolated use case... thoughts on whyt hat could be null? [15:35] HamsterLord: Linuz is better if you can put some work and time into it [15:35] t|f: http://technet.microsoft.com/en-us/library/cc772343.aspx [15:35] HamsterLord: But they made it easy as fuck to use, for example ubuntu [15:35] MooGoo: ubuntu sux [15:36] Nuck: HamsterLord: tis easy, but still harder than Windows. [15:36] systemfault: MooGoo: The average beginner cannot use Arch.. [15:36] HamsterLord: Yeah [15:36] Nuck: I use Ubuntu Desktop on my home server [15:36] taf2: hey guys let's keep this channel about node.js :) [15:36] HamsterLord: Like I said, gotta put some time on it [15:36] MooGoo: the averate beginner should stick to windows [15:36] Nuck: Since it runs some desktop apps too [15:36] HamsterLord: taf2 fuck no, [15:36] systemfault: node.js++ [15:36] Nuck: I *can* use Linux, I'm just too lazy. [15:36] Nuck: nodejs++ [15:36] v8bot: Nuck has given a beer to nodejs. nodejs now has 1 beers. [15:36] Nuck: Noes! [15:36] fumanchu182: lol [15:36] Nuck: Node++ [15:36] v8bot: Nuck has given a beer to Node. Node now has 1 beers. [15:36] HamsterLord: I *like* linuz [15:36] Nuck: THEFUCK [15:37] fumanchu182: nodejs is now drunk, it is an easy date... [15:37] HamsterLord: but my modem does not support it [15:37] blup has joined the channel [15:37] Ramosa: too bad the blog post had no time schedule [15:37] HamsterLord: HamsterLord++ [15:37] v8bot: HamsterLord: Don't cheat! You can't give a beer to yourself. [15:37] HamsterLord: ehehehe [15:37] HamsterLord: Who wants to trade beers [15:37] jzacsh has joined the channel [15:37] jzacsh has joined the channel [15:37] Nuck: t|f: That article you linked about Streaming File Uploads, it's so fucking old it uses modules which don't exist any more. [15:38] Nuck: var multipart = require('multipart'); [15:38] Nuck: And it's pre-npm [15:38] someone: HamsterLord++ [15:38] v8bot: someone has given a beer to HamsterLord. HamsterLord now has 1 beers. [15:38] someone: HamsterLord++ [15:38] v8bot: HamsterLord is getting too many beers. Don't let HamsterLord get drunk! [15:38] someone: HamsterLord++ [15:38] v8bot: HamsterLord is getting too many beers. Don't let HamsterLord get drunk! [15:38] someone: HamsterLord++ [15:38] v8bot: HamsterLord is getting too many beers. Don't let HamsterLord get drunk! [15:38] fostah has joined the channel [15:38] abraham has joined the channel [15:38] HamsterLord: Stupid robot [15:38] HamsterLord: I drink the beers [15:38] Nuck: HamsterLord: Sixty-second interval ;) [15:38] t|f: Umm, modules do not exist anymore? and wahts wrong with NPM? [15:38] HamsterLord: I still gave myself beers [15:38] Nuck: t|f: That module doesn't exist any more [15:38] HamsterLord: That's an easy fix though [15:39] simenbrekken has joined the channel [15:39] Nuck: t|f: "First of all we include the multipart.js parser which is a library that has just been added to node.js." [15:39] t|f: Oh article is pre-npm. Well, yes but that's not a big impact if you know NPM, is it? [15:39] Nuck: There is none. [15:39] HamsterLord: It can track nick changes and assign a custom name to each thread of nicks [15:39] fumanchu182: quote of the day on the blog: "Piss off back to .NET you idiot." [15:39] systemfault: Exactly the kind of guy the node community needs.. [15:39] rfay has joined the channel [15:39] Ramosa: if one likes js in the style of mootools (or the likes) what would one need to get for node.js ? this post says the 2 aren't exactly compatible right now: http://davidwalsh.name/mootools-nodejs [15:39] t|f: Trying to help. Helped me when I saw it. [15:40] Nuck: t|f: I guess I'll just wait until tjholowaychuk.. oh hai tjholowaychuk, can you make a better middleware for x-multipart stuff? [15:40] bradleymeck_: Ramosa, the article is ancient, and im not sure what you mean [15:41] tjholowaychuk: Nuck I have one for abstract multipart parsing [15:41] Nuck: Because the current one is very low quality for the current stuff [15:41] Nuck: tjholowaychuk: connect-form? [15:41] tjholowaychuk: I needed one for non-multipart/form-data [15:41] tjholowaychuk: nope [15:41] stephank has joined the channel [15:41] softdrink has joined the channel [15:41] tjholowaychuk: that's node-formidable which is great if you just need to parse form data [15:41] willwhit_ has joined the channel [15:42] Nuck: tjholowaychuk: I just wanna get the damn file uploads working :/ [15:42] Nuck: And it's an abnormally large pain in the ass [15:42] tjholowaychuk: ah, then yeah look at node-formidable [15:42] Ramosa: bradleymeck_, that I'd like Class and the high level language contructs that mootools deliver, but for node.js [15:43] Nuck: tjholowaychuk: Also, can you help me figure out how to implement a server for this in Express? https://github.com/valums/file-uploader/blob/master/server/readme.txt [15:43] Nuck: It seems pretty simple, but I'm not sure hwo to do the Method #2 [15:43] frewsxcv: anyone here ever used cradle with couchdb+node.js? how do you sort? [15:43] Badababuba has joined the channel [15:44] tjholowaychuk: Nuck formidable writes it to a temp file already for you [15:44] jacobolus has joined the channel [15:44] pigmej: frewsxcv: sort in js [15:44] Nuck: tjholowaychuk: I know, but this thing is a different way of submitting data [15:44] Nuck: It's not multipart-encoded [15:44] Nuck: It's just the raw data lodged in the HTTP body [15:45] Nuck: It's using the HTML5 File APIs [15:45] fly__ has joined the channel [15:45] slajax has joined the channel [15:45] Nuck: Which means drag and drop, multiple-file selection, and more [15:45] taf2: might want to look into using the FormData API? [15:45] taf2: much easier... xhr.send(form) [15:45] asdf__ has joined the channel [15:45] Nuck: taf2: That's what it uses [15:46] Nuck: It's the RECIEVING that's problematic [15:46] Nuck: Because it's not x-multipart [15:46] Nuck: I need to find a way to take the raw body and write it to a file [15:46] taf2: ACTION thought FormData's whole point was to be multipart... [15:47] Nuck: taf2: Maybe so, but I've settled on my client-side library :P [15:47] Nuck: This one provides the lightweight, narrowly-focused purpose I want, plus it has graceful degredation [15:47] Nuck: (and the JSON response is PERFECT for my API) [15:47] taf2: cool [15:48] Nuck: tjholowaychuk: So is there any way to get the RAW body in Express? I'm thinking the best thing would be to add another type handler for the bodyParser middleware [15:48] tjholowaychuk: yeah [15:49] tjholowaychuk: same way as you would with node [15:49] Nuck: And even if I *do* get teh raw body, I'm not sure how I would go about piping it into a file :/ [15:49] Nuck: tjholowaychuk: Is the body the raw data it recieves? [15:49] tjholowaychuk: nope [15:49] Nuck: :/ [15:49] Nuck: tjholowaychuk: Because I'm gonna be transferring binary data through the body [15:49] RORgasm has joined the channel [15:50] pibi: sorry for reposting this last time: anyone could help me to figure how to translate a struct stat from __xstat() with node-ffi on linux x86? [15:50] al3xnull_ has joined the channel [15:50] necromancer has joined the channel [15:51] Nuck: pibi: I'm gonna be quite frank, I have no fucking clue what you're on about :P [15:51] Nuck: I'm not a Linux user, though, TBH [15:51] Nuck: And I barely comprehend stat :P [15:52] frewsxcv: pigmej: i have to loop through everything and sort it? that is the most efficient wy? [15:52] tbranyen: ffi sux [15:52] pibi: Nuck: ok, you can't [15:53] pibi: anyone else? [15:53] niftylettuce has joined the channel [15:53] frewsxcv: pigmej: how would i sort by key? [15:54] pibi: i'm stuck on this, I just use node-ffi because it's too simpler than native port [15:54] yenz: frewsxcv: sorting is a function of your couchdb views [15:54] yenz: cradle doesn't really have anything to do with it [15:55] jtsnow has joined the channel [15:55] frewsxcv: yenz: so if i use cradle, how am i expected to sort [15:55] frewsxcv: since i'm not directly using the couchdb api? [15:55] pibi: tbranyen: :) [15:55] Nuck: If I just take the data from POST and lodge it directly into a file, do you think it'll work? [15:55] taf2: pibi, it says struct code is experimental... i'm new to node-ffi... but did you see the section about structures here: https://github.com/rbranson/node-ffi/wiki/Node-FFI-Tutorial [15:55] yenz: frewsxcv: cradle doesn't do much more than wrap the couchdb api, really [15:56] Yuffster_work has joined the channel [15:56] Ramosa: is IOCP available in the desktop versions of Windows ? [15:56] yenz: just try out a tutorial or two on couchdb views and you'll get the hang of it [15:56] postwait: Ramosa: yes. [15:56] systemfault: Ramosa: Since forever AFAIK.. [15:56] kimico has joined the channel [15:56] systemfault: Ramosa: Like.. NT 3.5 [15:56] taf2: my guess, is look in the header file for how stat is defined... and map the types you need as it gives the example for time [15:56] kriszyp has joined the channel [15:56] willwhite has joined the channel [15:57] frewsxcv: yenz: https://github.com/cloudhead/cradle i'm looking where it says Querying a VIew [15:57] liquidproof has joined the channel [15:59] TomY_ has joined the channel [15:59] eresair has joined the channel [15:59] mandric has joined the channel [16:00] yenz: frewsxcv: if you want your view results to come back sorted in a particular way, your map function needs to emit that sorting element as part of the key [16:00] slloyd has joined the channel [16:00] yenz: that's what i mean by "cradle is unrelated" :) [16:01] pibi: taf2: thanks, but I got a pointer to a stat struct instance, so my definition for __xstat is : "__xstat": [ "int", [ "int", "string", "pointer" ] ] [16:01] frewsxcv: yenz: what do you mean by the map function? [16:01] yenz: frewsxcv: have you gone through any couch tutorials? [16:02] yenz: given the nature of your question i'd suggest you back up a bit and start with the couchdb basics [16:02] yenz: it's quite different than other dbs [16:02] frewsxcv: yenz: not really, link? [16:02] jj0hns0n has joined the channel [16:02] yenz: jfgi? ;) [16:03] Nuck: fuck couchdb, mongo 4 life [16:03] halfhalo: real men use a filing cabinet and robots for their database [16:03] Nuck: ACTION spraypaints MONGO on a couch [16:03] Nuck: halfhalo: I do that, but I use Mongo's query system :P [16:03] halfhalo: GOOD MAN! [16:04] Yoric has joined the channel [16:04] dall: hey guys [16:04] Nuck: dall: Hey guy [16:04] MooGoo: real men have all their papers/files randomly tossed about their room/hard disk [16:04] chrischris has left the channel [16:04] dall: i would start to write web page in JS / NODE [16:04] pibi: or you suggest i have to pass a StatStruct pointer to the __xstat call? [16:04] dall: Hu Nuck [16:04] dall: *Hi [16:04] dall: do i have to use a template engine...or can i write a web page without it? [16:05] Nuck: MooGoo: That's my "cave" [16:05] riven has joined the channel [16:05] riven has joined the channel [16:05] Nuck: dall: I just use EJS for my pages, but you an also just serve your pages statically [16:06] adrianmg: I use ejs in Express [16:06] dall: Nuck, I have dinamy web pages [16:06] dall: dinamic [16:06] Nuck: daleharveyDinamic? [16:06] Nuck: ERm, dynamic, and dall [16:07] CrabDude has joined the channel [16:07] Nuck: Doublefail [16:07] dall: ? [16:07] Nuck: dall: What language are they in? [16:07] mendel_ has joined the channel [16:07] isaacs has joined the channel [16:07] Nuck: Or do you INTEND to make them? [16:07] Nuck: isaacs: mornin [16:07] isaacs: Nuck: hi [16:07] dall: i have to make them...i wlayws used PHP --> MYSQL now i what to use NODE --> mongodb [16:08] dall: so i'm starting with node...i should make them [16:08] Nuck: dall: If you're used to PHP, I suggest checking out EJS [16:08] Nuck: It's a LOT like the PHP stuff [16:08] isaacs: ejs is the best template. [16:08] isaacs: no religion. [16:08] Nuck: That's what I believe. [16:09] dall: nuck so i MUST use a template engine if i want dinamic pages right? [16:09] MooGoo: lol [16:09] podman has joined the channel [16:09] podman: hola [16:09] isaacs: dall: you can also just res.write("" + something + "") [16:09] isaacs: dall: the template engines just make it simpler. [16:09] dall: i also heard mustache [16:09] dall: good!! [16:09] Nuck: I personally suggest Express + EJS [16:09] podman: anyone know of any good deployment tools for node? I was going to try Capistrano, but it's too rails centric [16:09] isaacs: nuck++ [16:09] v8bot: isaacs has given a beer to nuck. nuck now has 1 beers. [16:10] dall: isaacs, mustache? [16:10] Nuck: isaacs: Did you know v8bot doesn't normalize in storage? It handles Nuck++ separately from nuck++ [16:10] tjholowaychuk: podman https://github.com/visionmedia/deploy [16:10] Nuck: It's ridiculous. [16:10] isaacs: Nuck++ [16:10] v8bot: isaacs has given a beer to Nuck. Nuck now has 5 beers. [16:10] isaacs: CapsSensitivity++ [16:10] v8bot: isaacs has given a beer to CapsSensitivity. CapsSensitivity now has 1 beers. [16:10] dall: but can i use sessions......cookie without a framework like Express ? [16:10] tjholowaychuk: podman it's just a shell script [16:10] pibi: If this does not work, I could always use the stat instance pointer and use the functions from node-ffi pointer to get the data [16:10] isaacs: CaseSensitive++ [16:10] v8bot: isaacs has given a beer to CaseSensitive. CaseSensitive now has 1 beers. [16:11] Nuck: I had to add that feature when I ported to my PHP bot on deviantART chat. [16:11] tjholowaychuk: dall if you want to do that all yourself sure [16:11] Nuck: lots of strtolower's [16:11] podman: tjholowaychuk: works for me if it does what i want :) [16:11] isaacs: dall: express doens't do anything you can't do yourself. it's "just" javascript [16:11] anno^da has joined the channel [16:11] isaacs: dall: but express does make a lot of things easier. [16:11] Nuck: dall: Trust me, things aren't as easy as in PHP :P [16:11] dall: isaacs, so i can use express and ejs [16:11] \sega has joined the channel [16:11] isaacs: Nuck: well, some things are easier. [16:12] dall: express = framework and EJS for templates engine ? [16:12] riven` has joined the channel [16:12] Nuck: isaacs: Not when it comes to websites :P [16:12] isaacs: Nuck: but most of the things that are "easier" in node are just impossible in php, and that's why :) [16:12] sharkbird has joined the channel [16:12] isaacs: Nuck: websockets are way easier in node. [16:12] vipaca has joined the channel [16:12] vipaca has joined the channel [16:12] Nuck: isaacs: Yeah [16:12] stephenallred has left the channel [16:12] tjholowaychuk: dall express is not bound to ejs, you can use anything that supports it, mustache, ejs, jade, haml, etc [16:12] softdrink: socket.io is brainlessly easy to use. i love it [16:13] Nuck: isaacs: I'm facing one of the fun lacks that Node has right now. It's called "file uploads" :P [16:13] taf2: guys i think this line is wrong, https://github.com/joyent/node/blob/master/lib/http.js#L697 [16:13] pibi: isaacs: I try to port fuse on nodejs using node-ffi. i see your repo, could you explain where you are blocked? [16:13] taf2: it shhould be if (this.output.length === 0 && this.connection && this.connection._httpMessage === this) { [16:13] isaacs: pibi: i'm blocked on not enough time [16:13] dall: ok, so ejs is good, fasten :P ? [16:13] taf2: look above in that function how hot is defined [16:13] isaacs: pibi: i should really write up the next steps for that repo... maybe file issues or something. [16:13] taf2: this.connection can be null [16:14] isaacs: pibi: basically, the best way to go is not using node-ffi, but talking directly to the fuse lowlevel utils [16:14] tjholowaychuk: dall if you like that kind of syntax sure [16:14] isaacs: pibi: and then, take the stuff that's done in the fuse_loop function, and do it in an ev loop instead. [16:14] Nuck: tjholowaychuk: Beats the living hell out of HAML and Jade [16:14] tjholowaychuk: haha [16:15] pibi: yep, i tried this but i'm too newbie to understand when i can use ev_asyn_send to callback my main thread [16:15] isaacs: pibi: when you set up the ev loop, also pass in a struct with pointers to methods that get called for each of the fuse functions. there's a bit of translation that has to be done, because everything isn't named the same, but the goal is to have an object that exactly models the fs util, but in reverse. [16:15] pibi: with node-ffi it just work [16:15] dall: tjholowaychuk, yes i used php [16:15] isaacs: pibi: sure. but it's gonna be crazy slow. [16:15] dall: but i heard that mustache is very good [16:15] dall: (very fast) [16:15] tjholowaychuk: not the js ones [16:15] tjholowaychuk: they are pretty slow [16:16] tjholowaychuk: well, "slow", template engines are rarely an issue [16:16] justicefries_ has joined the channel [16:16] dall: tjholowaychuk, no one moment....are you telling it to me? :-) [16:16] tjholowaychuk: ? [16:16] dall: tjholowaychuk, are JS templates slow? [16:16] temp02 has joined the channel [16:16] tjholowaychuk: no [16:16] tjholowaychuk: mustache.js is no faster than anything else [16:17] dall: aaaaah, my mistake.... [16:17] dall: hmmm sure? [16:17] pjacobs: can someone help me translate this : {"_id": {$lt : ObjectId("4e07a8762921a15d18000017")}} into a proper mongoose query? [16:17] tjholowaychuk: rendering a chunk of html will not be your bottleneck [16:17] dall: tjholowaychuk, http://jsperf.com/dom-vs-innerhtml-based-templating/111 [16:17] dall: i see mustache is fasten the other [16:17] tjholowaychuk: you're wasting your time [16:17] tjholowaychuk: the fastest, is not using a template engine at all :P [16:17] Nuck: Just pick whatever looks best to you and go [16:18] tjholowaychuk: enjoy those concats :o [16:18] pjacobs: I'm thinking the issue is getting an ObjectId.. I've tried DocumentObjectId.fromString(), like I've seen in the mongoose tests, but not luck... [16:18] podman: tjholowaychuk: does deploy require one to tag each release? [16:18] dall: tjholowaychuk, i know....but i mean........if we have to use a "template engine" what is the faster? [16:18] dall: :) [16:18] tjholowaychuk: podman the tag can be any git ref so a commit sha etc [16:19] Nuck: dall: Dont' bother [16:19] tjholowaychuk: but yeah [16:19] Nuck: The speeds will be minutely different [16:19] podman: tjholowaychuk: gotcha [16:19] tjholowaychuk: dall: wasting your time [16:19] pjacobs: rauchg, didn't you write a good portion of mongoose? Can you help me out? [16:19] tjholowaychuk: dall it will all be faster than php lol so dont worry about it [16:19] Nuck: dall: They're all 10ms. Now which one looks best. [16:19] coreb has left the channel [16:19] harth has joined the channel [16:19] c-spencer has joined the channel [16:19] rauchg: pjacobs [16:19] rauchg: what's up [16:20] dall: Nuck sure...but if it has to handle 30k unique visitors daily it should't be the same.. no? [16:20] justicefries has joined the channel [16:20] andrenkov has joined the channel [16:20] pibi: isaacs: so I just have to spawn another ev_loop instead of calling fuse_session_loop? [16:20] rauchg: you can just do that in mongoose :D [16:20] tjholowaychuk: dall that's not very many [16:20] rauchg: .find() [16:20] Nuck: dall: It's cached by Express, IIRC [16:20] tjholowaychuk: you'll be fine [16:20] tjholowaychuk: with anything [16:20] pjacobs: rauchg, how? [16:20] dall: ooook [16:20] dall: so [16:20] Nuck: Plus, as tjholowaychuk says, 30k is nothing for node :P [16:21] dall: EXPRESS + EJS................... I MUST to study hem [16:21] dall: :D [16:21] dall: them [16:21] Nuck: That could prolly kill wordpress, but node? Pfff! [16:21] dguttman has joined the channel [16:21] Nuck: Poppycock! [16:21] isaacs: pibi: yeah [16:21] isaacs: pibi: and look at the guts of what fuse_session_loop is doing, and do that in your ev loop [16:21] rauchg: pjacobs Model.find({ _id: $lt: { 'asjdijsadijasd' } }) [16:21] rauchg: where Model is your model [16:22] rauchg: where jasdjasjdasjd is the hex string of the objectid [16:22] philtor has joined the channel [16:22] rauchg: or an ObjectId instance [16:22] Nuck: tjholowaychuk: Is there some way I can make a "fallback" for the bodyParser, which will just put the raw body in the body var if it can't parse it? [16:22] pibi: isaacs: i don't need ev_async_send to callback the main thread [16:22] isaacs: pibi: i'm not sure [16:22] tjholowaychuk: Nuck you wont want to buffer multipart form data [16:22] Mook_as has joined the channel [16:23] tjholowaychuk: just listen on req "data" events [16:23] Nuck: tjholowaychuk: But this isn't multipart [16:23] Nuck: This is the raw body [16:23] dall: http://embeddedjs.com/ right? :-D [16:23] tjholowaychuk: k well yeah use the data events though [16:23] jbpros has joined the channel [16:23] newy_ has joined the channel [16:23] tjholowaychuk: dall: nope, that's a really bloated client-side one [16:23] tjholowaychuk: github.com/visionmedia/ejs [16:23] Nuck: tjholowaychuk: Okay, so I make my own "body parser" thingymawhozit? Coolio. [16:23] davidascher has joined the channel [16:24] pibi: isaacs:thanks a lot, i'll try the ev_loop way [16:24] podman: tjholowaychuk: is there any way to specify multiple hosts with deploy? [16:25] tjholowaychuk: podman just envs for now [16:25] tjholowaychuk: it's a small script though if you want to add something in [16:25] dilvie has joined the channel [16:25] podman: tjholowaychuk: ah, that would work for my need. thanks [16:25] TooTallNate has joined the channel [16:26] Nuck: tjholowaychuk: When is the function with req and res called? [16:27] Nuck: Because I need the bodyParser middleware, but I need to also have it fall through to a hand-parsed body :/ [16:27] tjholowaychuk: bodyParser only parses json and x-www-form-urlencoded [16:27] colinclark_ has joined the channel [16:27] Dickmaster has joined the channel [16:27] bene has joined the channel [16:28] Nuck: tjholowaychuk: Does it immediately just next() if it can't parse? [16:28] tjholowaychuk: yup after checking the content-type [16:28] Nuck: ah good [16:29] dall: no guys one moment.......i have to put ejs on the client side? i really do not want it...i would that node will render it and then write the output [16:29] dall: https://github.com/visionmedia/ejs/blob/master/examples/client.html [16:29] Nuck: dall: EJS is server-side [16:29] tjholowaychuk: dall you can use that one on the SS or CS [16:30] tjholowaychuk: res.render('some.ejs') [16:30] dall: aaaaaaaah oook [16:30] chrischris has joined the channel [16:30] podman: tjholowaychuk: cool. deploy works as advertised [16:30] philhawksworth has left the channel [16:31] Nuck: tjholowaychuk: Now, does req work like a socket, can I change the encoding? [16:31] cbibler has joined the channel [16:31] tjholowaychuk: yeah [16:32] Nuck: tjholowaychuk: Is the encoding already set by Express to something other than a Buffer? [16:33] broofa has joined the channel [16:33] Nuck: aaaaactually [16:33] Nuck: I could probably .pipe it >_> [16:33] Nuck: ACTION contemplates the idea [16:33] Corren has joined the channel [16:34] caolanm has joined the channel [16:35] jerrysv has joined the channel [16:35] bronson has joined the channel [16:35] pjacobs: rauchg, I get: message: 'Can\'t use $lt with ObjectId.' [16:36] viewsrc has joined the channel [16:36] catphive has joined the channel [16:36] mcutler has joined the channel [16:37] rauchg: pjacobs [16:37] rauchg: is that a legal query [16:37] rauchg: on the mongo cli ? [16:37] springmeyer has joined the channel [16:39] amerine has joined the channel [16:41] hdon- has joined the channel [16:41] srikanth has joined the channel [16:41] sduret_ has joined the channel [16:41] sduret has joined the channel [16:41] davidascher has joined the channel [16:42] asabil has joined the channel [16:42] pjacobs: rauchg, yes, it is [16:43] H5Phone has joined the channel [16:44] AAA_awright: Nuck: Btw here's the cool thing I can do with Jade that I can't do with plain old HTML (as easily)... Javascript literals: [16:44] AAA_awright: div(about=input["http://magnode.org/Page"]) [16:44] AAA_awright: h1.title(property="rdfs:label",content=title)=title [16:44] AAA_awright: So when this gets rendered by Jade, it also searches the database with SELECT * { $input["http://magnode.org/Page"] rdfs:label ?title } and then writes the contents of the h1.title tag with the result of ?title [16:44] pjacobs: rauchg, this is what I'm doing: https://gist.github.com/1049252 [16:45] AAA_awright: Nuck: Which is VERY VERY COOL [16:46] markwubben has joined the channel [16:47] c-spencer: Getting an 'ERANGE, Result too large' when trying to stream two https requests to disk, any known problem with doing that? (https://gist.github.com/44d3d657ebd7e6cd64f2) [16:47] AAA_awright: tjholowaychuk++ for creating such a flexible template language [16:48] AAA_awright: No comment field? [16:48] AAA_awright: tjholowaychuk++ [16:48] v8bot: AAA_awright has given a beer to tjholowaychuk. tjholowaychuk now has 36 beers. [16:48] dall: tjholowaychuk, poor readme......i'm looking at the example.....what is .compile() function ? [16:48] dall: there isn't on the example [16:48] tjholowaychuk: compile(str_of_ejs) => Function [16:48] tjholowaychuk: that function is the template [16:48] isaqual has joined the channel [16:48] H5Phone_ has joined the channel [16:48] tjholowaychuk: compile(str)(locals) => HTML [16:49] TooTallNate has joined the channel [16:49] dall: �_� [16:50] jakeg has joined the channel [16:50] lukstr: dall: you compile your source ( ejs ) into a function you then run with parameters ( locals ) to produce your result output ( html ). [16:51] tjholowaychuk: dall express does ejs.compile(string_of_ejs) caches that function returned for all subsequent requests [16:51] dall: lukstr, ok but is not required [16:51] tjholowaychuk: so it's not constantly re-compiling [16:51] dilvie has joined the channel [16:51] boehm has joined the channel [16:51] dall: ok but i'm seeing the example.. [16:51] dall: is not there [16:51] tjholowaychuk: look at the express integration example ./examples/ejs [16:52] dall: where? [16:52] dall: https://github.com/visionmedia/ejs [16:52] dall: i'm seeing it [16:52] eggsby has joined the channel [16:53] tjholowaychuk: https://github.com/visionmedia/express/blob/master/examples/ejs/app.js [16:53] dall: yes yes [16:53] dall: found [16:55] slajax has joined the channel [16:55] dall: tjholowaychuk, excuse me where do you see .complie() ? [16:55] dall: *compile [16:55] tjholowaychuk: .. express uses it internally [16:55] tjholowaychuk: res.render() is what you use [16:56] khug has joined the channel [16:56] khug has left the channel [16:56] dall: tjholowaychuk, ok but what i mean.....express you told me cahce ther equest right ? [16:56] dall: it doesn't render it agian and again [16:56] dall: right [16:56] dall: ? [16:57] eggsby has left the channel [16:57] tjholowaychuk: it doesnt compile the template into a function more than once [16:57] awenkhh has joined the channel [16:57] sandis_ has joined the channel [16:58] Croms has joined the channel [16:58] dall: tjholowaychuk, do you men....it reanders it ONE time.....creates the function...and then for the others requests it execute the function without render it again ? [16:58] khug has joined the channel [16:58] tjholowaychuk: yeah [16:58] dall: tjholowaychuk, ok [17:00] dall: tjholowaychuk, last question.... :-) for example....if i have to work with sessions ...express create a session.... it send it to the client as a cookie.....then THEN client how it can get this cookie? how can i read this cookie using EJS ? [17:00] lukstr: dall: you can retrieve the cookie on the request and pass whatever locals you want to ejs [17:01] lukstr: there are examples in express for using sessions, iirc [17:01] tjholowaychuk: dall the sess cookie is httpOnly by default [17:01] pibi has left the channel [17:01] lukstr: (is he trying to read it client side?) [17:01] lukstr: ACTION backs away into the darkness [17:01] tjholowaychuk: hahaha [17:01] riven has joined the channel [17:01] riven has joined the channel [17:02] rfay has joined the channel [17:02] broofa has joined the channel [17:02] newy_ has joined the channel [17:02] justicefries has joined the channel [17:03] dguttman has joined the channel [17:03] lukstr: I have to try not to half-pay attention :) [17:03] caolanm has joined the channel [17:04] dall: lukstr, back into the darkness [17:04] dall: :D [17:04] dall: ahahahha [17:04] lukstr: ACTION waves his cape and disappears [17:04] dall: :) [17:05] dall: lukstr, before you dissappear....can i work with cookie without EXPRESS ?i only would do some test....can i do them without express...or not ? [17:05] dall: thank :D [17:05] dall: *you [17:06] lukstr: not sure, what are you trying to do? I can't imagine a scenario where I wouldn't want to deal with the cookie in express.. [17:07] dall: ok [17:08] broofa has joined the channel [17:08] chrislorenz: I am pretty sure dall is the physical representation of the cookie monster [17:09] jga023 has joined the channel [17:09] dall: :) [17:09] dall: ahah [17:09] Murvin has joined the channel [17:09] lukstr: chrislorenz: he thinks he has found a way to manufacture cookies, if only he could get them out of that damn monitor? [17:10] chrislorenz: lol [17:10] Prometheus: see, this is why PHP is a problem [17:10] riven has joined the channel [17:10] riven has joined the channel [17:11] chrislorenz: Prometheus : There are many reasons why php is a problem :) [17:11] bradleymeck_ has joined the channel [17:11] Prometheus: yes, but this among the numerous other reasons :P [17:12] dexter_e has joined the channel [17:12] ryanmcgrath has joined the channel [17:14] Poetro1 has joined the channel [17:14] ryanj has joined the channel [17:14] temp01 has joined the channel [17:14] sduret_ has left the channel [17:15] brolin has joined the channel [17:15] jonaslund: <3 php <3 [17:15] jonaslund: <3 asp <3 [17:15] Sebastien-L: php 8==> ~~ [17:15] jonaslund: <3 jsp <3 [17:15] tbranyen: one someone gets php working on libuv its game over for node [17:15] Aikar: >______________> [17:15] jonaslund: <3 brainfuck <3 [17:15] Aikar: asp yuck [17:16] lukstr: tbranyen: uh... [17:16] jonaslund: libuv ? [17:16] lukstr: I wouldn't count on _someone_ existing [17:16] Aikar: ACTION is a PHP dev as day job (node in the evening/personal stuff) so cant 'hate' php, but always very grumpty at its shortfalls! [17:16] Nuck: Why would anyone want PHP anyways? [17:17] tbranyen: scared js devs worried their skills b gone if php wins (which it will) [17:17] Murvin: what is PHP? [17:17] Nuck: Node is very much superior. [17:17] Murvin: ohhh.. i saw php in museum .... [17:17] sudhirjonathan has joined the channel [17:17] bradleymeck_: php, not garbage collecting functions since it was declared nofix, great for async [17:17] eresair has joined the channel [17:18] mikey_p: just for the module system alone, JS massively beats PHP [17:18] tbranyen: JS has a module system? [17:18] Murvin: yes. [17:18] bradleymeck_: commonjs [17:18] Nuck: mikey_p: You're thinking of CommonJS [17:18] mikey_p: well the node.js require stuff [17:18] tbranyen: thats neat, you should tell implementors about that [17:18] jonaslund: tbranyen: no worries really.. it's "impossible" to fix php to run async [17:18] tbranyen: commonjs is about as unofficial as it gets [17:18] tbranyen: jonaslund: good thing ram is cheap [17:18] bradleymeck_: tbranyen module system is not core to the language which is interesting, but not terribly uncommon [17:19] jonaslund: tbranyen: the php memory model requires total destruction for the heap to clear stuff out [17:19] mikey_p: PHP has no way it'll ever be that flexible [17:19] Nuck: jonaslund: Mark that as "nofix" ;) [17:19] Murvin: just wondering, how many people here decide to forget about PHP or not going to use it ? :) [17:19] saurabhverma has joined the channel [17:19] mikey_p: if you want a PHP like scripting language with those features, use lua [17:19] Nuck: PHP is a shitty language that is the result of a myriad of cludges and clusterfucks. [17:19] mikey_p: or use PHP with 0mq [17:19] tbranyen: mikey_p: lua is way closer to js than it ever will be to php [17:19] bradleymeck_: murvin once i got oauth and paynode working in like 1 day, php was dead to me [17:19] tbranyen: by far [17:20] tbranyen: it doesn't look anything like php [17:20] tbranyen: or work anything like php for that matter [17:20] Nuck: bradleymeck_: The moment I did the Hello World, I was like "Okay, guess it's time to switch off PHP now :D" [17:20] mikey_p: tbranyen: the syntax and langauge is structured like JS, but mod_lua for apache exists [17:20] mikey_p: so it has the same deployment advantages [17:20] Murvin: bradleymeck_ : :-) I am working on my last PHP & MySQL project. and swear to myself that I will use node & mongo lol [17:20] iammerrick has joined the channel [17:20] tbranyen: if thats the only comparison, you might as well have brought up perl [17:21] Nuck: Murvin: I'm working on my first REALLY big Node project. [17:21] Murvin: perl Oh my god. [17:21] Badababuba has joined the channel [17:21] Nuck: Don't remind me that I tried to learn that shit once /vomit [17:21] iffy|x200 has joined the channel [17:21] Nuck: I was young, and naive. [17:21] Murvin: Nuck: nice. i m also working on a very important system with node & mongo now. but facing some technical issues with node. :) [17:21] Nuck: I was only 11 :( [17:22] jakeg: Murvin what kind of tech issues? [17:22] Nuck: Murvin: Me too. Big technical issue is file uploads, though part of that isn't Node, it's also submitting the file [17:22] jakeg: we've also had big file upload headaches here [17:22] Murvin: jakeg: socket leak. i have many posts and issues about it already. [17:23] lukstr: perl is a nice language... D: [17:23] Murvin: yes.. Perl is nice [17:23] Nuck: ACTION vomits on lukstr and Murvin [17:23] steffan has joined the channel [17:23] Nuck: I disagree. [17:23] jakeg: Murvin: linky to an issue pls? [17:23] Murvin: but in the graveyard though [17:23] elpinguino has joined the channel [17:23] Aikar: i strongly disagree [17:23] tbranyen: my work here is finished [17:23] Aikar: perl can diaf [17:23] Nuck: diaf? [17:24] tbranyen: drown in a fire [17:24] Aikar: die in a fire [17:24] lukstr: I highly doubt perl will be replaced any time in my lifetime [17:24] Nuck: Aikar: I concur wholeheartedly. [17:24] Murvin: Nuck: gist.github.com/1032413 [17:25] Murvin: Nuck: github.com/joyent/node/issues/1176 [17:25] Aikar: off topic, anyone experienced with real estate in the US and agents and able to offer advice? :3 [17:25] tbranyen: pay in cash [17:25] Aikar: lol [17:25] jakeg: Murvin: my name isn't nuck [17:25] jakeg: but thanks [17:25] Aikar: specifically about working with dual agent [17:25] Nuck: jakeg: I was wondering if he'd realize his mistake ;) [17:25] Murvin: I'm still looking into the node's http.js and net.js and hopefully find where the connection pool is doing or leaking [17:26] Murvin: jakeg: Oppss oppps Oppsss. lol [17:26] Murvin: Nuck: i realize now. lol that'a a bug [17:26] Murvin: jakeg: yo. lol hahaha [17:26] Nuck: Okay, now to figure out concatenation of Buffers [17:27] pandeiro has joined the channel [17:28] jakehow has joined the channel [17:28] jakeg: node is a big learning curve. myself and a colleague are working at it but it's a big change from PHP and synchronous coding. hoping we'll make the leap though :) [17:28] Plouj- has left the channel [17:28] alessio_alex has joined the channel [17:28] Murvin: jakeg: thanks for subscribing to the issue. :) [17:29] Murvin: jakeg: well.. good for you to have a colleague working with you. [17:29] sudhirjonathan_ has joined the channel [17:29] Nuck: How do I deal with Buffers in data events? [17:30] blup has joined the channel [17:30] jakeg: several days just end in "argh.... let's give up and go back to PHP" but it's socket.io and the "real-time web" that have kept us at it so far [17:30] Murvin: jakeg: I'm on my own. the only node.js warrior in the company. and if I can bring my project success, then I can convert more projects into node. :) [17:30] Nuck: I'm starting a company in Node.js [17:30] Nuck: :P [17:30] Murvin: oh. good for u. Nuck. :) [17:30] jakeg: anyone here based in the UK? [17:30] Murvin: Nuck.js? [17:31] Nuck: lolno [17:31] Nuck: It's an art site [17:31] dberlinger has joined the channel [17:31] Nuck: I'm building on Node.js [17:31] Murvin: that's nice. [17:31] omni5cience has joined the channel [17:31] Murvin: wondering, if there any node.js base CMS.. [17:32] Nuck: Smart peoples: how do I concatenate Buffers? [17:32] Nuck: or how would I pipe data from the data events to a file [17:32] hackband has joined the channel [17:32] mhooks has joined the channel [17:32] xerox: you start reading the latter when you've consumed all of the former? [17:32] chrischris has left the channel [17:33] caolanm has joined the channel [17:33] Mrfloyd has joined the channel [17:33] Nuck: tjholowaychuk: actually, you might be able to help. Can I .pipe data from the body stuff? [17:33] Murvin: Nuck: out of my expertise.. [17:34] meat_popsicle has joined the channel [17:34] jakeg: Nuck: fs.createWriteStream('/path/to'); stream.on('data', function(chunk){ out.write(chunk) }; ? [17:34] `3rdEden has joined the channel [17:34] mhooks: I've been working with Railway. I've got the intro example project up, but it seems to just hang on an open socket when I try to connect to / which routes to index for posts. Has anyone else played with this and does anyone have any ideas? [17:34] Murvin: Nuck: what if you new Buffer (Buffer1.toString() + Buffer2.toString() ) ? [17:35] Nuck: jakeg: I think you might be onto something. [17:35] Murvin: mhooks: so, the socket doesnt release [17:35] Murvin: ? [17:35] tswicegood has joined the channel [17:36] Cleer has joined the channel [17:36] mhooks: Murvin: Yeah. It just hangs. "Mon Jun 27 2011 17:36:42 GMT+0000 (UTC) GET / controller: posts action: index " [17:36] baoist has joined the channel [17:36] mikeal has joined the channel [17:36] mhooks: the browser just says waiting. [17:36] Renegade001 has joined the channel [17:37] Murvin: mhooks: are you using http.request? [17:37] Country has joined the channel [17:38] mhausenblas has joined the channel [17:38] mhooks: Murvin: I'm using railwayjs, so I'm sure at some level it's using http.request, but I've just been dealing with the routes. [17:38] Murvin: mhooks: hangup is usually caused by 1) timeout - system socket timeout is 2 minutes and 2) not enough socket available. [17:39] mange has joined the channel [17:39] AAA_awright: Murvin: base CMS? [17:39] Murvin: mhooks: for changing timeout, you have to change it in lib/net.js and look for socket.setTimeout change it and the redo the "Make" and "Make install" [17:40] Nuck: FUCKING YES [17:40] Nuck: I DID IT [17:40] tuhoojabotti: "FUCK YEA" [17:40] tuhoojabotti: not fucking yes [17:40] tuhoojabotti: :/ [17:40] mendel_ has joined the channel [17:40] Nuck: I TRANSFERED A FILE IN A RAW BINARY BODY. [17:40] mhooks: Murvin: I'll look into that. Thank you. [17:40] tuhoojabotti: Nuck: IS IT CAPSLOCK DAY AGAIN? [17:40] Murvin: mhooks: for issue 2) - not enough socket available -- in your code, you have to set maxSocket to a larger number. by default, only 5 [17:41] jakeg: Nuck: did my advice help or another way? [17:41] mhooks: Murvin: Thank you! [17:41] AAA_awright: Is it just me or does node-inspector not work on Node.js master? [17:41] Nuck: jakeg: Yours did, I was using fs.open, I didn't realize I had to fs.opneWritableStream [17:42] jakeg: woot! [17:42] Murvin: mhooks, and the maxium sockets in Linux is 1024. if you want to have a larger number, you have to increase the socket in your OS first. Then, set the http.agent.maxSocket to a huge number. There is a leak in socket. so I suggest you to set it to a large number [17:42] Murvin: AAA_awright: yes.. any CMS built in node.js? :) [17:42] AAA_awright: Nuck: Yeah createWriteStream is a lifesaver [17:43] AAA_awright: Murvin: http://magnode.org/ is my own project [17:43] Murvin: AAA_wright: node-inspector always work for me. :) [17:43] Murvin: AAA_awright: cool!!! [17:43] Nuck: var fd = fs.createWriteStream('/tmp/' + req.query.qqfile); req.pipe(fd); [17:43] eddanger has joined the channel [17:45] `3rdEden has joined the channel [17:45] bradleymeck_: Murvin: http://code.danyork.com/2011/06/17/calipso-a-content-management-system-cms-written-in-node-js/ ? [17:46] Murvin: another question.. is there any good module for authenticating a request. similar to apache that I can password protect a file or folder. in node, I want people type in login & password when they hit a request. e.g. get('/mypage.html'); [17:46] AAA_awright: Ah that's the name [17:47] Murvin: bradleymeck_ : thanks. ^_^ [17:47] willwhit_ has joined the channel [17:48] isaacs has joined the channel [17:49] bradleymeck_: murvin: connect-auth, http://stackoverflow.com/questions/3498005/user-authentication-libraries-for-node-js (i feel pretty much the same) [17:49] svenlito has joined the channel [17:49] Murvin: bradleymeck_: cool. let me take a look now. [17:50] xandrews has joined the channel [17:50] SamuraiJack has joined the channel [17:51] dexter_e has joined the channel [17:51] Nuck: So, time to make it do shit with the uploads 8D [17:51] caolanm has joined the channel [17:51] RVS has joined the channel [17:52] davro has joined the channel [17:52] blup: anybody using socketstream? [17:53] pthurlow has joined the channel [17:53] josephboyle has joined the channel [17:53] jakeg: blup: are you? any luck with it? haven't tried it yet myself [17:55] RVS: Hello! I use Async lib from Caolan and run 5-10 function with Parallel and I measure time of function call by getTime(). I always thought that the result will be something like that (in ms): 10 40 12 52 5, but what I see is that: 10 14 16 20 30 40 50. Why is it linearly increase? It's the parallel %) Maybe I don't understand something [17:56] cjm has joined the channel [17:56] mcluskydodallas has joined the channel [17:58] jacekp has joined the channel [17:58] skohorn has joined the channel [17:59] bradleymeck_: RVS javascript engines are single threaded, concurrency in them is not the same as with threads [17:59] bradleymeck_: so, it will linearly go down the list, and execute the functions in a blocking fashion if no async calls are made [18:00] rfay has joined the channel [18:01] skript has joined the channel [18:02] blup: jakeg: havent tried it out yet, but it looks interesting [18:02] margle has joined the channel [18:02] chrischris has joined the channel [18:02] AntelopeSalad_: random js question: is converting floats to whole numbers to perform math the only sane way to really get true decimal accuracy? [18:03] nadirvardar has joined the channel [18:03] Murvin: RVS: what dos Caolan do? [18:03] RVS: Caolan is the man who wrote Async lib :D [18:04] Murvin: RVS: LOL.. then what is Async Lib do? other than.. async something.. lol [18:04] puffpio has joined the channel [18:04] petrjanda has joined the channel [18:05] Murvin: RVS: what happen when you run your function for a lot of requests and for a long time? [18:06] HamsterLord has joined the channel [18:07] _Sorensen has joined the channel [18:07] Renegade001 has joined the channel [18:09] leahculver has joined the channel [18:09] leahculver has joined the channel [18:10] dve has joined the channel [18:11] mcutler has left the channel [18:11] jacobolus has joined the channel [18:11] Nuck: I need a quick way to generate a relatively unique identifier for an image. I'm thinking MD5 checksums? [18:11] RVS: Murvin: the same. The more function, the more time of call. [18:12] jslatts has joined the channel [18:12] RVS: Node.js is async, but not parallel? So, if the one function calculate something in 50 ms, next function will perform only after previous - say 4ms and then 10. Total row of timing will be: 50 54 64. [18:12] Draggor: Nuck: that doesn't depend on an internal counter? :3 [18:12] Nuck: Maybe just take the first 100 bytes, concatenate with a timestamp and a random number (to prevent problems in images that differ only further down) and MD5 that? [18:12] Nuck: Draggor: Aye [18:12] Nuck: Because this is for my temporary storage [18:13] Nuck: Once it's into permanent storage, it'll be stored that way [18:13] bradleymeck_: RVS correct, CPU tasks are done serially, IO is async [18:13] hybsch has joined the channel [18:13] Nuck: Node.js is built on V8 though, so the CPU tasks are done pretty damn fast. [18:14] mandric has joined the channel [18:14] Nuck: Draggor: Think my idea will work? [18:14] Nuck: Actually [18:14] Nuck: A timestamp and tandom number should be eough [18:15] Nuck: If I combine it with the username too, for good measure [18:15] thejh has joined the channel [18:16] adambeynon has joined the channel [18:17] awenkhh has joined the channel [18:17] sub_pop has joined the channel [18:18] pjacobs has joined the channel [18:19] bit_monger has joined the channel [18:19] bene has left the channel [18:20] bit_monger has left the channel [18:20] willwhite has joined the channel [18:21] bit_monger has joined the channel [18:21] pkrumins: is there a trick to make asychronous piece of code run synchronously? [18:21] jgv_ has joined the channel [18:21] pkrumins: i need one fragment of code to execute right before the rest of the program [18:21] jakeg: pkrumins: yes. indent the rest [18:22] jakeg: pkrumins: or use a synchronous call instead of an async one [18:22] pkrumins: there isn't a synchronous one [18:22] taf2: depends on the async call.. lots of io calls have Sync versions... [18:22] Nuck: pkrumins: If it's async, just indent the rest :P [18:22] pkrumins: indent? what do you mean [18:22] pkrumins: this isnt #python [18:22] Nuck: ... [18:22] taf2: probably a callback [18:22] Draggor: Nuck: I am by no means an authority, but timestamp + number and a sanity check to make sure you're not overwriting something should do it [18:22] eddanger has joined the channel [18:23] pkrumins: it's output from .on('data') from a process launched by child_spawn [18:23] Chani: ACTION isn't sure what he means either [18:23] caolanm has joined the channel [18:23] STUPIDWIFI has joined the channel [18:23] liquidproof has joined the channel [18:23] Chani: pkrumins: but bascially... 1) use a sync function. or 2) continue your work in hte callback from the async. one [18:23] maushu has joined the channel [18:24] pkrumins: Chani: i currently have it as 2) [18:24] bradleymeck_: pkrumins, you are going to want your bootstrap (w/e is firing .on) to call another module that accepts the results, otherwise you get people telling you "dont abstract the thing that has an obvious abstraction, indent it" [18:24] unnikrishnan has joined the channel [18:24] jhurliman has joined the channel [18:24] sirganya has joined the channel [18:25] sirganya: any opinions on coffee script? [18:25] mrmanager has joined the channel [18:25] Chani: bradleymeck_: I still don't get this "indent it" thing :) [18:25] pkrumins: Chani: putting it in a callback [18:25] pkrumins: i just realized what it ment [18:25] Nuck: lol [18:25] Chani: mmkay. [18:25] jakeg: sirganya: not a big fan myself [18:26] jakeg: am happy enough with JS snytax [18:26] Nuck: sirganya: It can suck my regular JS dick. [18:26] sirganya: you should see a doctor about that.. [18:27] chrisdickinson: i like coffeescript [18:27] chrisdickinson: i didn't start out liking it, but i gave it a chance and i warmed to it [18:27] taf2: ACTION grabs pitch fork [18:27] Nuck: I read about the features that CS adds [18:27] sirganya: what are the pros and cons? Seems to be a bit of a divide here [18:27] mandric_ has joined the channel [18:27] Nuck: But the thing is, I don't like the syntax [18:27] chrisdickinson: only thing i don't like is that now instead of python folks complaining about me using javascript, i've got javascript folks and python folks complaining about my use of javascript and coffeescript, respectively. [18:28] taf2: that's the pro [18:28] chrisdickinson: sirganya: ultimately, it speeds you up once you get the hang of it. [18:28] Nuck: Some people like the syntax, others don't [18:28] Nuck: chrisdickinson: I disagree, I've got things that speed C-style languages more [18:28] chrisdickinson: there's a lot of boilerplate in vanilla javascript -- not that i don't like javascript! -- but you don't notice it until you don't have to write it. [18:29] mandric_ has joined the channel [18:29] Nuck: chrisdickinson: Why did they repalce the language as a whole? [18:29] Nuck: Why not just, ya know, extend it? [18:29] chrisdickinson: Nuck: they didn't. [18:29] chrisdickinson: there are a few syntactic changes, but it's sugar on top of js. and it feels like JS, writing it. [18:30] tjholowaychuk: ACTION just wants regexp offset [18:30] taf2: ACTION use the force luke [18:30] Nuck: chrisdickinson: I disagree. There's NOTHING but syntactical changes [18:30] Nuck: arrow function syntax [18:30] Nuck: Lack of braces [18:30] Nuck: There's nothing for me to like there [18:30] dgathright has joined the channel [18:30] chrisdickinson: Nuck: shorter functions are good -- 8 letters for "function" is a little silly -- braceless is contentious, ultimately it didn't end up bothering me (though it started out doing so) [18:31] Nuck: However, the support for default argument values and the inheritance could be nice [18:31] mandric has joined the channel [18:31] taf2: ACTION code is all about the texture... pets code [18:31] chrisdickinson: see, i don't like the inheritance :) [18:31] sirganya: but no problems with it compiling into something that doesn;t work? [18:31] chrisdickinson: the iteration is better (much, much better). [18:31] AAA_awright: I'm getting really bizarre results for util.inspect within Jade... I get either null, undefined, NaN, and key Object.keys() shows the correct properties [18:31] bradleymeck_: tjholowaychuk, there are many regexp stuff we all want /cry [18:31] mendel_ has joined the channel [18:31] chrisdickinson: sirganya: you will run into issues occasionally as you learn how coffeescript works [18:31] tjholowaychuk: bradleymeck_ i saw the /y proposal haha [18:31] tjholowaychuk: so weird [18:32] Nuck: Typing "function" doesn't bother me [18:32] chrisdickinson: but nothing show-stopping. and the code maps fairly cleanly to coffeescript [18:32] Nuck: The arrows do [18:32] chrisdickinson: Nuck: why? [18:32] tjholowaychuk: yeah i prefer function over -> [18:32] Nuck: chrisdickinson: It's fucking ugly, that's why. [18:32] tjholowaychuk: personally [18:32] tjholowaychuk: but im not getting involved haha [18:32] tjholowaychuk: ACTION back to work [18:32] Nuck: There's nothing more to say :P [18:32] chrisdickinson: haha. [18:32] Nuck: I just think it looks absolutely horrific. [18:32] chrisdickinson: Nuck: well, I'm not gonna convince you to like it, obviously :) [18:33] perezd has joined the channel [18:33] chrisdickinson: I'd just like to cut down on the vitriol pointed at it. [18:33] tuhoojabotti: http://tuhoojabotti.com/r/prsc/IE6-proof.png (812x448) omg look at it go. ;DD [18:33] HamsterLord|Away has joined the channel [18:33] sirganya: well I wasn;t too worroed about aesthetics, I was hoping to find out if it was reliable and really did save time [18:33] tuhoojabotti: Hmm [18:33] tuhoojabotti: The nav bugs :D [18:33] mikeal has joined the channel [18:33] chrisdickinson: sirganya: I've found that it saves time, though there's a little upfront cost of learning how things work. [18:34] sirganya: Nuck: have you used it a lot? [18:34] chrisdickinson: you will likely get stung by how loose the parser can be at times, especially in interpreting function invocations [18:34] tuhoojabotti: http://tuhoojabotti.com/r/prsc/IE-proof2.png (805x375) Look at this instead ;D [18:34] kmiyashiro: any good blog apps in node yet? [18:34] Nuck: chrisdickinson: I just don't get why they felt the need to reinvent the syntax instead of just adding a thin layer of magic [18:34] Nuck: sirganya: No, wouldn't touch it with a 500-foot-pole. [18:35] Nuck: The syntax made me gag the first time I saw it. [18:35] djcoin has joined the channel [18:35] sirganya: Nuck: well with all due respect.. I think you're overreacting a little [18:35] Nuck: sirganya: I'm actually not. I really hate it that vehemently. [18:36] Nuck: I think it was a well-intentioned idea that went overboard [18:36] Nuck: What should've just fixed some of the broken parts of JS ended up replacing the whole damn language. [18:36] gozala has joined the channel [18:37] tjholowaychuk: Nuck but changing syntax makes the language more popular than fixing real issues :D [18:37] chrisdickinson: Nuck: to be fair, i started out pretty much sharing that sentiment -- i wasn't a fan. i gave it a try and ended up liking it a lot. [18:37] Nuck: tjholowaychuk: Obviously. [18:37] Nuck: chrisdickinson: I don't do Ruby, sorry. [18:37] iammerrick has joined the channel [18:37] Nuck: I do JavaScript. [18:37] lukstr: oh, we're talking about coffeescript? [18:37] Nuck: And I like my JavaScript not to be raped in the face by Ruby. [18:38] Nuck: Therefore I do not like CS. [18:38] chrisdickinson: Nuck: granted. I don't do ruby, either. [18:38] lukstr: I don't think whitespace syntax ads any value [18:39] lukstr: the whole thing just seems silly to me! I don't know [18:39] awenkhh has joined the channel [18:39] AAA_awright: What is going on here! Input: [18:39] AAA_awright: null [18:39] AAA_awright: Scope: [18:39] AAA_awright: { input: undefined } [18:39] sirganya: chrisdickinson: can you elaborate more on the loose parser, [18:39] AAA_awright: er [18:39] Nuck: chrisdickinson: From where I stand, CoffeeScript is just Ruby syntax for JS. [18:39] AAA_awright: util.inspect is useless [18:39] Nuck: With a TINY bit of magic [18:39] chrisdickinson: sirganya: wellll. there's paren-less invocation of functions. [18:40] caolanm has joined the channel [18:40] Nuck: Which could very well be implemented without changing the syntax entirely. [18:40] tjholowaychuk: AAA_awright is that express? what's the render() call look like? [18:40] chrisdickinson: And then there's nesting those paren-less invocations. [18:40] Nuck: In fact, I'm tempted to fork CS and tear out the syntax lol [18:40] Nuck: I should do that some time XD [18:40] tjholowaychuk: visual ambiguity sucks [18:40] chrisdickinson: And then there's passing object literals to paren-less invocations -- which just looks like the function on one line, then an indented block of key:val [18:40] MooGoo: yea you dont need significant whitespace for parenless functions [18:41] pjacobs has joined the channel [18:41] AAA_awright: tjholowaychuk: No it's not, this is console.log(util.inspect(...)) [18:41] AAA_awright: Locals: { input: undefined } [18:41] AAA_awright: Object.keys(Locals.input): [ 'db', 'authz', ... ] [18:41] sirganya: ugh.. [18:41] AAA_awright: What. The. Cuss. [18:41] tjholowaychuk: woah [18:41] tjholowaychuk: hmm [18:41] tjholowaychuk: :s [18:42] Nuck: Sometime in the next few months, I'll fork it and wipe Ruby's feces off its face, leaving nothing but a thin layer of compiled magic (essentially, those features we've wanted for fucking years) [18:42] tjholowaychuk: get rid of them end end end ends [18:42] Nuck: I bet I could get a lot of people to switch to my fork :P [18:43] chrisdickinson: sirganya: it's confusing at first, but like i said, you'll start to understand the m.o. [18:43] sirganya: Nuck: you're very persuasive... [18:43] sirganya: what if Nuck tries to kick the shit out of me for using it? [18:43] sirganya: ;) [18:43] chrisdickinson: haha [18:43] davidascher has joined the channel [18:44] Nuck: sirganya: I've got a vendetta against CS because it analraped JS, my native tongue. [18:44] Nuck: So forgive me if I'm a tad harsh ;) [18:44] sirganya: ow, nothing worse than getting your tounge a-raped [18:44] AAA_awright: Hahaha [18:45] sirganya: :) [18:45] jerrysv: i don't suppose there are any zombie.js maintainers around, are there? [18:45] sirganya: seriously though, thanks for the insights y'all [18:45] Nuck: sirganya: no problem, just don't use CS ;P [18:46] AAA_awright: And node-inspector is giving me TypeError: Cannot read property '_idleNext' of undefined at Object.append (_linklist.js:65:24) [18:46] mraleph has joined the channel [18:46] Illusioneer has joined the channel [18:46] AAA_awright: I wonder if it's related [18:47] Illusioneer: hey, this isn't so much a design, more of a style question [18:47] Illusioneer: would it be better to put all my views/controllers/helpers in the same dir or separate them by controller, view, etc [18:47] sirganya: Nuck: :| [18:47] Illusioneer: I could see it as being a six of one, half dozen of the other, but I'm wondering if one way has a better performance impact [18:47] Nuck: sirganya: :P [18:48] hosh_work has joined the channel [18:48] Alex_R has joined the channel [18:49] chrischris has left the channel [18:49] chrisdickinson: sirganya: hope you give it a try / hope it works out for you! [18:50] sirganya: i like the way it looks.. [18:50] harth has joined the channel [18:51] cagdas has joined the channel [18:51] jesusabdullah: Illusioneer: I would worry less about performance, and more about what you can keep in your head. [18:51] jesusabdullah: Illusioneer: If you find you're having performance issues later, you can find pain points and optimize those. I have a feeling directory organization won't be a pain point. [18:52] awenkhh has joined the channel [18:52] konobi: hardware is cheap [18:52] Illusioneer: I was wondering if there was some preferred convention for layout [18:53] jesusabdullah: Whatever makes sense for you, dude [18:53] Bwen: I kinda disagree with the "only start paying attention to performance when you get a problem"... [18:53] jesusabdullah: Well, you shouldn't necessarily ignore performance if you can *see* something will be a problem later [18:53] jesusabdullah: but much more important than performance, in a lot of cases, is just being able to understand wth you're doing [18:53] Illusioneer: jesusabdullah: well if it was only me i'd agree but i'm gonna have other people working with me too [18:54] jerrysv: premature optimization is the root of all evil [18:54] Illusioneer: I'd rather code to a preferred style than have to go back and change it should that become an issue [18:54] Bwen: well yeah, but the whole point of understanding what you are doing is what is efficient and what isnt [18:54] Illusioneer: that's what she said [18:54] Illusioneer: (sorry couldn't help myself) [18:54] jerrysv: s'ok [18:55] Bwen: jerrysv: yeah I agree lets fire all the architects... lets just wing it [18:55] RVS: Thanks to all! Bye [18:55] jesusabdullah: Illusioneer: I don't think there's a strong preconceived notion of how you should lay out your app [18:56] Illusioneer: jesusabdullah: pretty much the answer I was looking for… well one that answers the question at any rate :) [18:56] jesusabdullah: Bwen: No, the whole point of understanding what you're doing is to be able to do what you *actually* want to do instead of doing something that's kinda like what you want to do but turns out to be buggy [18:56] jesusabdullah: ;) [18:56] EyePulp: anyone using lesscss that know's if you can do var replacement within parameter names? ie. -moz-border-radius-@v@h : @radius; [18:56] EyePulp: *knows [18:56] sirganya: devinus in the sproutcore room had a few points against coffescript. [18:56] jerrysv: bwen: good idea. better have an argument with knuth too [18:56] h50 has joined the channel [18:56] jesusabdullah: Illusioneer: You may find looking at example projects using your libraries of choice useful [18:57] Illusioneer: jesusabdullah: actually it was the looking that raised the question in the first place LOL [18:57] jesusabdullah: Illusioneer: express, for example, does have some preconceived notions---I believe it expects a views/ folder, but it's been a while since I've express'd [18:57] Illusioneer: jesusabdullah: too many styles [18:57] jesusabdullah: I see! [18:57] jesusabdullah: FOUR HUNDRED STYLES [18:57] Illusioneer: yes! LOL [18:57] sirganya: he said: dont like the JS it compiles down to, it creates a lot of contexts, fragments the JS community into coffeescript modules vs pure JS modules. t would be a differnet story if browsers just exported a bytecode interface that e.g. JS and CS could compile down to [18:57] softdrink has joined the channel [18:57] Illusioneer: so basically it's a free-for-all [18:58] jesusabdullah: indeed [18:58] Illusioneer: doesn't jibe with my inner-anal-retentive [18:58] jesusabdullah: One of the strengths of a lightweight system such as express is that you can organize things however you like [18:58] EyePulp: his fragmentation point has some validity. [18:58] jesusabdullah: the weakness, of course, being that you have to think about such things [18:58] jesusabdullah: with great hackerliness comes great responsibility? [18:59] Illusioneer: or with great slackness comes great flexibility? [18:59] ph^ has joined the channel [18:59] dmose has joined the channel [19:00] hydrozen has joined the channel [19:00] jameson has joined the channel [19:00] Bwen: illusioneer: nodejs is very efficient and flexible. Its up to you to pick the wrong frameworks or code it all yourself. I personally like the code it yourself, best way to learn :) [19:00] pietern has joined the channel [19:01] jesusabdullah: I'm a fan of using good abstractions. Express is a pretty good one [19:01] Bwen: then once you learned, you are more equiped to pick the right frameworks [19:01] Bwen: yourself [19:01] Illusioneer: Bwen: true, but since I am hoping others will be reading and extending the code I write, I'd rather their first thought not be "what dumbass set this up?" [19:01] jesusabdullah: That will *always* be the first thought. [19:01] jesusabdullah: Go with it. [19:03] hydrozen: Hi there. I am *still* trying to get a Flash to connect a node.js socket using XMLSocket. The socket is running on port 9000. I have a flash policy server running on 843 to serve the policy file. Yet, when the Flash is embedded in an HTML document, I always get a #2048 error.... but on my localhost if I had the file to the security exceptions and open the swf file directly in the browser, it does connect to the socket. Anyone has any idea how I could [19:03] hydrozen: troubleshoot this? I have NO idea why Flash doesn't want to connect. [19:03] leahculver has joined the channel [19:03] leahculver has joined the channel [19:03] Hamms has joined the channel [19:04] bpierre has joined the channel [19:04] Bwen: hydrozen: are you using socket.io? [19:04] hydrozen: Bwen: no, seems like that wouldnt work easily so I'm using the standard sockets that come with node. [19:04] Bwen: oh nevermind :P [19:05] hydrozen: Adobe really needs to make their shit clearer.. [19:05] ricn has joined the channel [19:06] jerrysv: bwen: or when you've coded it yourself, decide what you don't like about the frameworks [19:07] Bwen: jerrysv: I know what I like about frameworks... I prefer libraries [19:07] supster has joined the channel [19:07] Bwen: what I DONT like about frameworks, I meant [19:07] insin has joined the channel [19:07] jerrysv: i caught what you meant :) [19:07] jslatts: does node have any native methods to work with named pipes? [19:08] xeodox has joined the channel [19:08] CrabDude has joined the channel [19:10] sfragis has joined the channel [19:10] dmose has left the channel [19:11] baudehlo: jslatts: no, but you can probably just open them as files. [19:11] zomgbie has joined the channel [19:12] baudehlo: and create them with child_process.exec('mkfifo', ...) [19:12] rook2pawn has joined the channel [19:13] jslatts: baudehlo: so use fs.ReadStream to pipe data out? [19:15] dexter_e has joined the channel [19:15] warreng has joined the channel [19:15] leahculver has joined the channel [19:15] leahculver has joined the channel [19:16] warreng: are there any dns server projects anybody is aware of? (i.e. similar to bind/named) [19:16] Alex193824 has joined the channel [19:16] Alex193824: Hello, I was wondering if there was a possibility to include files like in C? [19:17] Alex193824: Or like "include" in PHP [19:17] Tidwell: Alex193824: not explicitly like you are describing - read up on node's "require" [19:18] Alex193824: Well, "require" basicly wants me to do modules [19:19] asobrasil has joined the channel [19:19] creationix has joined the channel [19:19] Alex193824: So I basicly need to put all my code into one single file? [19:19] stride: the vm module might have something for you. though following the module pattern is not a bad idea imho [19:19] asobrasil has left the channel [19:21] Alex193824: Well, is there no different possibility than vm? [19:21] leahculver has joined the channel [19:21] leahculver has joined the channel [19:23] springmeyer_ has joined the channel [19:24] rixius has joined the channel [19:24] Alex193824: Well, okay, thanks anyway [19:25] jacekp has joined the channel [19:26] leahculver has joined the channel [19:26] leahculver has joined the channel [19:26] AvianFlu has joined the channel [19:26] chrischris has joined the channel [19:27] stagas has joined the channel [19:30] cafesofie has joined the channel [19:31] leahculver has joined the channel [19:31] leahculver has joined the channel [19:31] blup has joined the channel [19:33] baudehlo: warreng: not that I know of. Unfortunately I don't think there's a way to easily construct dns packets with the dns module. [19:34] baudehlo: jslatts: well a writestream to write to the FIFO and a readstream to read from it. [19:34] warreng: baudehlo: drats... [19:34] jslatts: baudehlo: thanks. i'll investigate more [19:37] baudehlo: warreng: yeah there isn't. You'd have to do it manually (yuck). [19:37] Aiden has joined the channel [19:37] baudehlo: warreng: what do you want/need it for? [19:38] warreng: trying to replace bind/named [19:38] alessioalex has joined the channel [19:38] warreng: more specifically, i want better dynamic access to creating/modifying records [19:38] baudehlo: hmm... Can't you use TSIG? [19:39] baudehlo: and IXFR? [19:39] baudehlo: it's not pretty, but it works. [19:39] warreng: as a first step, was thinking about building a node.js as the master dns server and then setting up two named/bind servers as slaves... where the named/bind would be the public ones and would just do zone transfers and cache the results [19:40] baudehlo: well you don't need to do zone transfers. Just set them up as caching nameservers with the backend one as authority [19:40] warreng: right [19:41] pt_tr has joined the channel [19:41] baudehlo: it's easy to write one in perl, but I guess that probably isn't where you want to go :) [19:41] warreng: haha... i'm looking for an excuse to use more node.js [19:42] baudehlo: well think of this as your opportunity to hack on the core :) [19:42] warreng: dns protocol doesn't look too complicated [19:43] baudehlo: it's not. It's just a bit binary. [19:43] hellp has joined the channel [19:43] AvianFlu has joined the channel [19:44] baudehlo: this is a good description: http://www.netfor2.com/dns.htm [19:45] willwhit_ has joined the channel [19:45] dyer_ has joined the channel [19:45] dyer_ has joined the channel [19:45] kbni has joined the channel [19:45] MattJ: dns protocol doesn't look too complicated [19:45] MattJ: This is where it all starts :) [19:46] warreng: MattJ: what rabbit hole? [19:46] baudehlo: Doesn't look like ares has any support for constructing answer packets (only parsing them). [19:47] patcito has joined the channel [19:47] mikeal has joined the channel [19:48] svenlito has joined the channel [19:48] baudehlo: you could probably take the code from rbldnsd though: http://git.corpit.ru/?p=rbldnsd.git;a=blob;f=rbldnsd_packet.c;h=314d05e64e1e24f7c7830ed7d821abfce7105671;hb=HEAD [19:48] MattJ: warreng: It depends on exactly what you'll be doing with your DNS server, but security issues plague DNS implementations (even the well-established ones) [19:49] baudehlo: only because they try to do so much. [19:49] warreng: i wonder what a good backend would be for the records... [19:49] Tobsn has joined the channel [19:50] warreng: mysql was an initial thought... [19:50] baudehlo: I honestly think you're reinventing the wheel here :) [19:51] baudehlo: PowerDNS has a MySQL backend. [19:51] baudehlo: you could just use that. [19:53] warreng: ya, i was a bit more excited about it before building packets from hand became involved ;-) [19:56] HamsterLord has joined the channel [19:56] JustCute: hmm npm adduser / publish does not work instant? [19:57] Yoric has joined the channel [19:58] Bonuspunkt: oh it does :D [19:58] gustavowt has joined the channel [19:58] sweetd has joined the channel [19:59] gde33 has joined the channel [20:00] topaxi has joined the channel [20:00] samuelj has joined the channel [20:01] balaa has joined the channel [20:01] tenum has joined the channel [20:02] mange has joined the channel [20:02] _fat has joined the channel [20:02] tenum: Hello Noders [20:02] _fat: isaacs: do you have a second? [20:03] igl has joined the channel [20:03] tilgovi has joined the channel [20:03] tilgovi has joined the channel [20:03] unnikrishnan has left the channel [20:03] samuelj: Hey, I need some advice on architecture here. How do services that offer live text editing (a la Google Docs) store their data? Is it likely they use HTML5 web storage, then just sync every minute or so? And what type of database is the text stored in? I can't think of a database paradigm that fits large blocks or text well, is it likely to be stored on the FS? Thanks for any advice you guys [20:03] samuelj: can give! [20:04] qbert_ has joined the channel [20:05] balaa has joined the channel [20:05] stride: I'd guess they use operational transformations to sync client and server state when online. there were some papers on that related to google wave [20:06] shinuza has joined the channel [20:06] rixius: samuelj: asked in #sinatra as well. [20:06] AAA_awright: tjholowaychuk: Appearently util.inspect calls the inspect property if that's defined, which it was in my case, that's what was going on. [20:06] tjholowaychuk: AAA_awright right right, forgot about that [20:06] stride: #sinatra? that's ruby land. they have bats and stuff [20:07] AAA_awright: tjholowaychuk: I didn't, and the documentation doesn't talk about that [20:07] AAA_awright: Which I would consider a bug... [20:07] AvianFlu: stride: We can't stop here! THIS IS RUBY COUNTRY! [20:07] tjholowaychuk: im not sure if it's used often at all really [20:07] stride: AvianFlu: exactly! [20:09] bradleymeck_: samuelj : look into lawnchair.js for storage needs [20:11] Aria has joined the channel [20:12] khug has joined the channel [20:13] khug has left the channel [20:17] leahculver has joined the channel [20:17] seanrucker has joined the channel [20:18] davidascher has joined the channel [20:18] seanrucker: Anyone know how to nest multi calls with node_redis? [20:19] jerrysv: seanrucker: npm install redis [20:20] LiamMagee has joined the channel [20:20] jerrysv: var multi = redisClient.multi(); [20:20] samuelj: what are the pros/cons of storing text files in the fs? they'll be read from/written to frequently. Though relatively small, there are plenty of them! should i definitely be using a database? [20:20] jerrysv: seanrucker: not sure you can with node_redis [20:21] bogomips2_ has joined the channel [20:21] bogomips2_: hi, someone have notice of conflict between mootools and node-validator ? [20:21] seanrucker: jerrysv: npm install redis is using node_redis [20:21] seanrucker: jerrysv: https://github.com/mranney/node_redis/ [20:22] isaacs: jerrysv: npm docs redis [20:22] isaacs: try that command^ [20:22] aron_ has joined the channel [20:22] jerrysv: isaacs,seanrucker: show offs [20:22] isaacs: :) [20:22] isaacs: ACTION likes to show off with obscure npm commands [20:22] isaacs: i put them in there so that i could do that [20:22] jerrysv: then my previous statement stands :) redisClient.multi(); [20:23] isaacs: (actually, `npm docs ` was mjr_'s idea) [20:23] jerrysv: then like multi.smembers(); [20:23] jerrysv: followed by multi.exec() [20:23] asobrasil1 has joined the channel [20:23] asobrasil1 has left the channel [20:23] jerrysv: i appreciate it -- i don't like going to search.npmjs.org [20:24] dmact has joined the channel [20:24] m00p has joined the channel [20:24] seanrucker: Ya, my problem is that I need to nest multi calls [20:24] seanrucker: E.g. [20:25] seanrucker: for (var x = x1; x < x2; x++) { [20:25] seanrucker: for (var y = y1; y < y2; y++) { [20:25] seanrucker: multi.lrange('usermap:' + x + ':' + y, 0, -1, function(err, userids) { [20:25] seanrucker: for (var i = 0; i < userids.length; i++) { [20:25] seanrucker: multi.hgetall('user:' + userids[i], function(err, user) { [20:25] seanrucker: data['users'].push(user); [20:25] seanrucker: }); [20:25] seanrucker: } [20:25] seanrucker: }); [20:25] seanrucker: } [20:25] seanrucker: } [20:25] xeodox has joined the channel [20:25] Wa has joined the channel [20:26] broofa has joined the channel [20:26] jerrysv: seanrucker: https://github.com/JerrySievert/temperature/blob/master/server.js#L206 [20:26] jerrysv: 1 or more calls in a loop, followed by a single exec() [20:27] febits has joined the channel [20:28] seanrucker: Yes but what if I need to queue more calls based on the responses? [20:29] seanrucker: I have a list of user ids, I need to loop through them and get the data for each id [20:31] tilgovi has joined the channel [20:31] tilgovi has joined the channel [20:32] __doc__ has joined the channel [20:32] zomgbie has joined the channel [20:32] jerrysv: (sorry, got called into a meeting) [20:33] anno^da has joined the channel [20:34] avalanche123 has joined the channel [20:34] caiges has joined the channel [20:35] leahculver has joined the channel [20:35] leahculver has joined the channel [20:36] dgathright has joined the channel [20:37] leahculver has joined the channel [20:37] leahculver has joined the channel [20:38] pickels has joined the channel [20:39] meat_popsicle_ has joined the channel [20:40] ezmobius has joined the channel [20:42] simenbrekken has joined the channel [20:43] leahculver has joined the channel [20:43] leahculver has joined the channel [20:44] Murvin: isaacs here? [20:44] Murvin: :) [20:44] isaacs: yo [20:45] jbpros has joined the channel [20:45] Murvin: hey.. so do you know if any core guy is working on the socket leak? [20:45] bbttxu has joined the channel [20:45] jaigouk has joined the channel [20:46] bogomips2__ has joined the channel [20:47] ricn has left the channel [20:47] tav_ has joined the channel [20:47] jaigouk has joined the channel [20:47] isaacs: yeah, ryan and dap are looking into something. i think tom croucher ran into a similar issue. [20:48] piscisaureus has joined the channel [20:49] Murvin: cool. :) I was looking into the net.js and http.js too. still trying to understand the code. hope i can find something helpful. :) [20:49] samuelj has left the channel [20:49] leahculver has joined the channel [20:49] leahculver has joined the channel [20:51] Draggor: Socket leak? [20:53] ASDFer has joined the channel [20:53] mandric has joined the channel [20:55] Ramosa: I would like UDP in node.js [20:55] awenkhh has joined the channel [20:55] leahculver has joined the channel [20:55] leahculver has joined the channel [20:56] xDROPx: i agreed [20:56] xDROPx: with Ramosa [20:56] liquidproof has joined the channel [20:56] systemfault: It has AFAIK.. [20:57] systemfault: require('dgram'); [20:58] Ramosa: nice.. then node.js would be great for a game server I think? [20:58] Murvin: are express.cookieParser() and connect.cookieDecoder() the same thing? [20:58] Ramosa: real time game [20:58] mnbvasd: ACTION fires a datagram off to systemfault and forgets again. [20:58] tjholowaychuk: Murvin: yeah it was just renamed [20:58] tjholowaychuk: Murvin: ps you should join the #express channel :D [20:58] jerrysv: seanrucker: still here? [20:59] Murvin: tjholowaychuk: so, i should use the express, right? [20:59] tjholowaychuk: for what? [20:59] seanrucker: Yes. [20:59] Murvin: for connect-auth [20:59] bogomips2_ has joined the channel [20:59] seanrucker: I ended up using multiple multi clients. [20:59] tjholowaychuk: Murvin I haven't used that one [20:59] hij1nx has joined the channel [21:00] lobstr has joined the channel [21:01] Mook_as: does building master w/ mingw/gcc seem like something that would give me a useful binary? I got something that runs, but can't seem to use npm (due to require('net') failing in net_legacy.js, problems with process.binding('net') - it looks like node_net.cc wasn't built) [21:01] jerrysv: seanrucker: ouch, but i guess it works [21:01] dall has joined the channel [21:01] dall: hello [21:01] Murvin: tjholowaychuk: hmmm I wanna do simple authentication (with session). and my server is running with expressjs. but just don't know how it works with connect-auth. or if there is simpler way.:) [21:02] svnlto_ has joined the channel [21:02] isaacs: Mook_as: no, mingw build doesn't work at the moment for many things. Use cygwin until you get too rageful, then switch to virtualbox or vmware. [21:02] dall: guys, how can i update NPM ? [21:02] isaacs: dall: curl http://npmjs.org/install.sh | sh [21:02] tjholowaychuk: Murvin: I just write my own auth stuff, so I'm not sure what is good as far as "out of the box" type modules [21:02] Murvin: sudo npm update [21:02] tjholowaychuk: I know there are a few [21:02] puffpio_ has joined the channel [21:02] dall: i have 1.0.9-1 [21:02] isaacs: dall: or, post 1.0.14, `npm update npm -g` [21:02] isaacs: dall: yeah, do the curl thing [21:02] Mook_as: isaacs: hah, thanks. I guess I'll stick with running things remotely for a bit, then. [21:03] isaacs: Mook_as: native windows coming soon-ish (like, this year) [21:03] dall: but it will replace the previous version? [21:03] Murvin: tjholowaychuk: :) i thought u wrote connect stuff , ^^ [21:03] robi42 has joined the channel [21:03] isaacs: dall: yes. [21:03] tjholowaychuk: Murvin i did [21:03] tjholowaychuk: but not that module [21:03] Murvin: oh [21:03] dall: isaacs, i can do the command in every directory? [21:03] dall: it will put npm in the correct dir? [21:03] tjholowaychuk: a side from stuff like oauth etc I dont find authentication logic is very modular [21:03] Murvin: tjholowaychuk: let me try. if it works, i let you know. :D [21:03] isaacs: dall: what do you want to do? [21:03] isaacs: dall: npm installs itself globally, because it's a cli program [21:03] isaacs: . [21:03] dall: globally [21:04] dall: ok perfect [21:04] Murvin: dall: it will update everything [21:04] dall: hmmm [21:04] dall: It failed [21:04] Murvin: dall: if u run ubuntu, i also recommend you to update apt-get from time to time. :) [21:04] Murvin: suo [21:04] Murvin: sudo [21:05] dall: apt-get ? [21:05] dall: do i have to isntall npm from there? [21:05] Murvin: yes [21:05] Murvin: non [21:05] Murvin: nono [21:05] isaacs: dall: if you want to update npm, just install it again. it's the same process. [21:05] Murvin: npmjs.org [21:05] isaacs: dall: it'll update the global one. [21:05] dall: it failed... [21:05] dall: i'm reading the log [21:05] dall: one moment [21:06] chrischris has left the channel [21:06] dall: Error: EACCES, Permission denied '/usr/local/lib/node_modules/___npm.npm' [21:06] dall: hmmm [21:06] isaacs: dall: sudo it. [21:06] dall: i run it with sudo [21:06] isaacs: did you really? [21:06] dall: sudo wget [21:06] isaacs: or did you just sudo curl | non-sudo sh? [21:07] dall: *curl [21:07] isaacs: wget http://npmjs.org/install.sh ; sudo sh install.sh [21:07] isaacs: or curl http://npmjs.org/install.sh | sudo sh [21:07] dall: ok [21:07] Murvin: yeah.. that will work. especially if you running on ec2. [21:07] isaacs: the script running bit is that part that has to be sudone [21:07] Murvin: that happened to me before. :) [21:07] gozala has joined the channel [21:08] dall: good [21:08] dall: perfect, done! :-) [21:08] nk_ has joined the channel [21:08] dall: so now i have the latest version...for the next npm update npm -g [21:08] dall: ? [21:08] isaacs: dall: yeah [21:08] zemanel has joined the channel [21:08] isaacs: npm update is like npm install, but only for things that are out of date. [21:08] dall: what does mean "-g" [21:08] isaacs: if you give it a package name, it'll also restrict itself to packages by that name [21:09] dall: ? [21:09] isaacs: -g means global [21:09] dall: ok [21:09] isaacs: npm help global [21:09] Murvin: and better to do npm update at least every week. :) [21:09] eyesUnclouded has joined the channel [21:09] dall: good [21:09] dall: npm update [21:09] dall: but i would like to use it for each project... [21:09] dall: so i have to do npm update in each project's directory [21:09] dall: right? [21:10] dall: it has to update the local /node_modules/ [21:10] jerrysv: isaacs: did you ever fix that semver ~v0.4.8 bug? [21:11] dall: no? [21:11] Prometheus: dall: yes [21:11] isaacs: jerrysv: nope, guess not [21:11] Transformer has joined the channel [21:11] Prometheus: dall: also, nvm is nice :) [21:11] jerrysv: heh, ok [21:11] dall: nvm ? [21:11] isaacs: dall: yes [21:11] isaacs: dall: you'd have to update in each project. [21:12] dall: ok [21:12] isaacs: dall: or, you can use npm link, and then global updates will affect the projects that link in those packages. [21:12] dall: so npm update on the project's dir will update the packages locally....if i run npm update -g will update the packages globally [21:12] dall: ah ok [21:12] isaacs: dall: "global" ==> "in /usr/local/" [21:13] isaacs: but otherwise the global space is basically the same sort of thing as the local space. [21:13] isaacs: except that executables end up in your PATH [21:13] dall: good [21:14] piscisaureus_ has joined the channel [21:14] Murvin: tjholowaychuk: are you familiar with connect-cluster? [21:14] hdon has joined the channel [21:14] tjholowaychuk: Murvin nope haven't seen that one either [21:14] Murvin: :) [21:14] Murvin: thanks [21:15] Murvin: I'm looknig for something that can spawn multiple (few) node processes, and respawn if one dies. [21:16] Murvin: like a monitoring process, and restart process. :) [21:16] tjholowaychuk: ah well i wrote cluster but i have no clue what connect-cluster is [21:17] Murvin: oh.. i mean... cluster. not connect-cluster. oopps. [21:17] Murvin: lol [21:17] mraleph has joined the channel [21:17] patcito_ has joined the channel [21:17] materialdesigner has joined the channel [21:18] dall: isaacs, npm is a good tool! fuck...before i cloned each package by myself �_� [21:18] Aiden has joined the channel [21:18] Murvin: what happen if I kill a process (process.exist), will cluster restart a new process? [21:18] tjholowaychuk: yup [21:19] cognominal_ has joined the channel [21:20] Murvin: hjholowaychuk: just want to understand.. let say there are multiple requests still running & haven't done in a process. and then should I app.close() first then wait a while to process.exist() ? [21:21] dall: guys is there a complete guide for expressjs ? [21:21] Murvin: expressjs.com, click "guide" button [21:21] dall: i cant read expressjs website [21:21] tjholowaychuk: Murvin: so you're saying you want to kill worker(s) intentionally, and just have them not respawn? [21:22] dall: i cannot read white on black.... it makes my eyes crazy [21:22] jameson has joined the channel [21:22] baudehlo: use lynx :) [21:23] mc_greeny has joined the channel [21:23] Murvin: tjholowaychuk: Yes..I want to kill the worker intentionally. and then respawn a new worker. [21:23] tjholowaychuk: oh [21:23] tjholowaychuk: well then just kill it, and cluster will respawn [21:25] dall: guys i have installed socket.io and express.... not to install EJS i have to go to myproject/node_modules/express/ and do nom install ejs ? [21:25] Murvin: tjholowaychuk: ok.. let me try.. because i used another package now, but it will throw socket error if there are still requests not done. [21:25] dall: or i can do it on the main dir? [21:26] tjholowaychuk: dall main dir should be fine [21:27] rpj8 has joined the channel [21:27] dall: tjholowaychuk, i told you that because i see another /node_modules/ inside myproj/node_modules/express/ [21:27] dall: why? [21:28] tjholowaychuk: because that's how npm works [21:28] isaacs: dall: dependencies are nested [21:28] isaacs: dall: npm ls [21:28] smcguinness has joined the channel [21:29] dall: isaacs, yes.....so now i have to install ejs i will use it with express so in the main dir or inside /express/node_modules/ ? [21:30] Murvin: can i do that: express.createServer(connect.router( myRouter) ); or there is express.router( ... ) ? [21:30] tjholowaychuk: Murvin best to use app.get() etc directly [21:30] tjholowaychuk: connect's router will be gone (or greatly simplified) in the future [21:31] darrendr has joined the channel [21:31] Murvin: ok [21:31] Murvin: :) [21:33] onr: could you suggest me a good parser generator for js? [21:33] PeterPeterPeter has joined the channel [21:33] tjholowaychuk: onr there are quite a few, for what? [21:33] isaacs: dall: install in your package. [21:34] isaacs: dall: each package inherits from the ones above it [21:34] davidascher has joined the channel [21:34] bbrandon has joined the channel [21:34] dall: ok [21:35] davida has joined the channel [21:35] onr: tjholowaychuk: i'll try to translate c into js [21:35] dall: ok [21:35] tjholowaychuk: onr: ah, i see, well jison is probably the fastest [21:36] twoism has joined the channel [21:36] tjholowaychuk: and then you can just grab some c ebnf and go from there [21:36] eyesUnclouded has joined the channel [21:37] voodootikigod: ryah: you around [21:38] davidascher has joined the channel [21:38] zemanel has joined the channel [21:38] Druide_: http://lol.escoflip.com/ [21:40] al3xnull has joined the channel [21:41] tauren: which date formatting module do people prefer? https://github.com/timrwood/underscore.date https://github.com/JerrySievert/node-date-utils/ https://github.com/felixge/node-dateformat or something else? [21:42] tauren: I want to be able to do something like this: dateFormat(now, "dddd, mmmm dS, yyyy, h:MM:ss TT"); [21:42] jerrysv: tauren: you can guess mine :) [21:42] markwubben has joined the channel [21:42] tauren: ;) [21:42] darshanshankar has joined the channel [21:43] jerrysv: tauren: date-utils has a format method that will do it like sql, but only supports MM,DD,YY,YYYY,HH,HH24,MI,SS [21:43] jerrysv: easy to add on Mon [21:43] onr: tjholowaychuk: jison looks cool, thanks [21:43] Wa has joined the channel [21:44] stephanepayrard_ has joined the channel [21:44] bbttxu has left the channel [21:45] tauren: jerrysv: ok, i'll check it out. i think i need more flexibility, such as including day names, abbreviated day names, month names, abbrev month names, etc. [21:46] dall: btw guys the only guide is on expressjs.com ? [21:46] Murvin: yes.. [21:46] Murvin: i think so [21:46] Murvin: i can't find it anywhere [21:47] Murvin: u remind me to save the page. :) [21:47] jeroen| has joined the channel [21:47] keeto has joined the channel [21:47] dall: white on black is horrible for eyes [21:47] quackquack has joined the channel [21:47] bitwise_ has joined the channel [21:48] Murvin: then use photoshop to reverse color. :) [21:48] dall: :D [21:49] baudehlo: dall: https://github.com/visionmedia/express/blob/master/docs/guide.md [21:49] Murvin: what does app.router do? [21:50] jvduf has joined the channel [21:50] mikeal has joined the channel [21:50] tjholowaychuk: app.router is the routes [21:50] dall: baudehlo, gooooooooood [21:50] FireFly|n900 has joined the channel [21:50] Murvin: hmmm isn't that app.get already do the routing? [21:51] tjholowaychuk: yeah, but the router is implemented as middleware [21:51] tjholowaychuk: so you can position it above/below other middleware in your config [21:51] tjholowaychuk: if you want [21:51] Murvin: oh [21:51] tjholowaychuk: if you leave it out then it will auto-use() the router [21:52] Murvin: so, if i leave it , then app.get will be used in top level. and i can't catch error by express.errorHandler? [21:52] Murvin: OOOO [21:52] Murvin: get it [21:53] Murvin: looking at the example few more times and now figure it out. :) [21:53] srid has joined the channel [21:56] Guest28566_ has joined the channel [21:56] jerrysv: tauren: always welcome to fork and ask for a pull request :) [21:57] Moe has joined the channel [21:57] balaa has joined the channel [21:57] skm has joined the channel [21:58] revolunet has joined the channel [21:59] LiamMagee has joined the channel [22:00] bene has joined the channel [22:00] russell_h has joined the channel [22:01] balaa has left the channel [22:02] mapleman has joined the channel [22:03] Murvin: tjholowaychuk: lol i m looking at your express auth example. it is useful. thanks. :) [22:03] drefined has joined the channel [22:03] coreb has joined the channel [22:05] smcguinness has joined the channel [22:05] kkaefer: tauren: there's also https://github.com/kkaefer/chrono.js [22:06] tjholowaychuk: kkaefer crazy i was going to call mine that haha, just never finished it [22:06] kkaefer: heh [22:07] caiges_ has joined the channel [22:08] mikey_p|afk: kkaefer++ [22:08] v8bot: mikey_p|afk has given a beer to kkaefer. kkaefer now has 1 beers. [22:08] smcguinness: Can I use socket.io to handle notifications for an application written in PHP? [22:08] mikey_p|afk: smcguinness: there are some examples out there [22:08] n00dles has joined the channel [22:08] mikey_p|afk: i do that [22:09] bnoordhuis has joined the channel [22:09] smcguinness: mikey_p|afk: been trying to find the right google term, but haven't found anything specifically. [22:09] Alfred has joined the channel [22:10] mikey_p|afk: smcguinness: basically you just need to write a 2 way API between your PHP app and your node app, use some sort of auth token that node can use to auth incoming connections against PHP [22:11] kimico: ACTION Miauuuuuu online [22:12] n00dles has left the channel [22:12] JoshC1 has joined the channel [22:13] mikey_p|afk: smcguinness: here's an example: http://drupalcode.org/project/nodejs.git/blob/refs/heads/7.x-1.x:/server.js [22:13] kimico has left the channel [22:14] pjacobs: anyone able to perform a conditional on _id in mongoose? I get: Can\'t use $lt with ObjectId. [22:14] mikey_p|afk: its a great example of how to write node code in the style of PHP [22:14] davidbanham has joined the channel [22:15] pjacobs: please help, I'm stuck on this: https://gist.github.com/1049252 [22:15] darrendr has left the channel [22:16] davidascher has joined the channel [22:17] smcguinness: mikey_p|afk: thanks for the link. I'm checking it out now. [22:17] robi42 has joined the channel [22:18] iammerrick has joined the channel [22:19] mikey_p|afk: smcguinness: these folks are trying to make a web service out of that so that you don't have to run node, just your php app [22:21] dgbc has joined the channel [22:21] remysharp has joined the channel [22:22] pjacobs: helloo, anyone able to help me out with mongoose? [22:22] dall: express: http://nopaste.info/afb52f7a87.html [22:22] dall: it seems doesnt render the page... [22:23] skript has joined the channel [22:23] dall: /views/test.ejs => /views/index.ejs [22:23] dall: i wrote wrong.... [22:24] dall: btw doesn't render...i have read that if i set app.set('view engine', 'ejs'); it require('ejs') automatically [22:24] dall: no? [22:24] tjholowaychuk: that's correct [22:24] AvianFlu has joined the channel [22:24] tjholowaychuk: test.ejs is not mentioned anywhere though [22:24] tjholowaychuk: res.render('test', ...) [22:24] seanrucker has joined the channel [22:25] tjholowaychuk: and you dont need locals: {} [22:25] HamsterLord has joined the channel [22:26] dall: tjholowaychuk, i write wrong...i always used 'index' [22:26] dall: res.render('index', { locals: { test: "Text Text Text Text Text" } }); [22:27] dall: don't need locals:{} ? how can i put the text on [22:27] dall: ? [22:27] dall: *

[22:27] level09 has joined the channel [22:28] russell_h has joined the channel [22:28] tjholowaychuk: res.render('index', { text: 'whatever' }) [22:28] tjholowaychuk: <%= text %> [22:28] dall: so when to use locals ? [22:28] elpinguino has joined the channel [22:28] tjholowaychuk: rarely, it's legacy from the last version of express [22:29] smcguinness: mikey_p|afk: I've seen pusher.com, but it is kinda expensive for connections and itd be great if I could handle it myself [22:29] dall: k [22:30] dall: btw at the moement i'm running the latest express [22:30] dall: i try [22:30] zomgbie has joined the channel [22:30] hij1nx_ has joined the channel [22:31] dall: tjholowaychuk, nothing....the same output:

[22:31] tjholowaychuk: <%= [22:31] dall: it doenst render the page [22:31] dall: grrrrrrrrrrrrrrrrrr [22:31] dall: right [22:32] dall:

Text Text Text Text Text

[22:32] dall: :) [22:32] dall: now it works :-D [22:32] chrischris has joined the channel [22:32] dall: tjholowaychuk, can i load the object to pass to .ejs from another file ? [22:32] tjholowaychuk: fun fun fun [22:33] blup: is there a way to getHtml from within a node.io process? in other words, crawl a webpage? [22:33] Determinist has joined the channel [22:33] bitwise_: is there a preffered oauth lib? [22:34] jerrysv: bitwise_: provider or consumer? [22:34] bitwise_: jerrysv: consumer [22:35] dall: tjholowaychuk, is it possible? [22:35] tjholowaychuk: not sure what you are asking [22:35] bitwise_: I think. basically I want to make api requests from my module [22:36] jerrysv: bitwise_: https://github.com/ciaranj/node-oauth is what i use [22:36] dall: tjholowaychuk, example take a look at: http://nopaste.info/a242b9bbb7.html [22:36] dall: tjholowaychuk, as you cann see i pass the object of each (this is only an example) [22:37] tjholowaychuk: read about helpers [22:37] dall: tjholowaychuk, I mean how can i load { test: "Text Text Text Text Text" } from another file [22:37] tjholowaychuk: using node's fs module [22:37] dall: i don't want to write it there.... [22:37] kmiyashiro has joined the channel [22:37] dall: because now i have only onw string but...if the page is "heavy" i can't write all the object there [22:38] tjholowaychuk: like i said, helpers [22:38] tjholowaychuk: read the guide a bit [22:38] tjholowaychuk: or look at some of the examples [22:39] shirro has joined the channel [22:39] shirro has joined the channel [22:41] dall: ok [22:41] Murvin: hey.. can express.session.store be mongo? [22:42] leahculver has joined the channel [22:42] leahculver has joined the channel [22:42] tjholowaychuk: yeah [22:42] Melkor_ has joined the channel [22:42] Murvin: so, i define my mongo (mongoose) and assign to the store? and do I have to configure collection name? [22:43] tjholowaychuk: check the connect wiki [22:43] Murvin: ok [22:43] tjholowaychuk: for mongo session stores [22:43] Murvin: thanks. [22:43] dgbc has left the channel [22:44] dmcquay has joined the channel [22:45] voodootikigod: anyone here up on IOWatcher? [22:45] voodootikigod: and why it wouldnt be hooking into the event loop [22:45] voodootikigod: after first callback [22:45] mikey_p|afk: Murvin: I think https://github.com/kcbanner/connect-mongo is the most up to date [22:46] ceej has joined the channel [22:46] Murvin: thanks.. i am gonna ask.. because i can't find the example in connect. let me take a look at connect-mongo. thanks. :) [22:46] bnoordhuis: voodootikigod: what are you trying to do? [22:46] voodootikigod: fix node-serialport for all uses [22:46] voodootikigod: it works when compiled sometimes [22:46] voodootikigod: in certain (yet undetermined) cnfigurations [22:46] voodootikigod: and others [22:46] voodootikigod: not [22:47] bnoordhuis: voodootikigod: is this c++ or js code? [22:47] voodootikigod: https://github.com/voodootikigod/node-serialport/blob/master/serialport.js#L79 [22:47] voodootikigod: once that fires once [22:47] voodootikigod: it never fires again [22:47] felixge has joined the channel [22:47] voodootikigod: the callback seems to shut down [22:47] dall: tjholowaychuk, no i have read...helpers are very good dinamichelpers too, but i mean..... put the object on another file...otherwise i also have to restart node app.js [22:47] felixge: mikeal: did you find the cloudfront info? [22:47] voodootikigod: I have wrapped all places where .stop() is [22:47] voodootikigod: and it never gets called [22:48] mikeal: yeah [22:48] mikeal: it all says that it uses S3 [22:48] felixge: mikeal: their docs may not be fully updated, but the landing page clearly says they support all kinds of pull origins [22:48] mikeal: plus a bunch of other crap [22:48] felixge: mikeal: http://aws.amazon.com/cloudfront/ -> An origin server is the location of the definitive version of your object. This could be another Amazon Web Service – Amazon S3 bucket, Amazon EC2 instance – or this could be your own origin server. [22:48] bnoordhuis: voodootikigod: what kind of fd are you passing it? [22:49] felixge: mikeal: they only supported S3 in the beginning IIRC, but AFAIK that is no longer the case [22:49] voodootikigod: bnoorduis: https://github.com/voodootikigod/node-serialport/blob/master/serialport_native/serialport_native.cc#L90 [22:49] mikeal: right, there are no docs on custom origin server that i can find [22:50] Sorella has joined the channel [22:50] catphive has joined the channel [22:51] felixge: mikeal: http://docs.amazonwebservices.com/AmazonCloudFront/2010-11-01/DeveloperGuide/index.html?CreatingDistributions.html ? [22:51] bnoordhuis: voodootikigod: i take it you're opening a /dev/* file and passing that in? [22:51] voodootikigod: yea [22:51] sh1mmer has joined the channel [22:51] voodootikigod: through ftdi driver [22:51] mikeal: Rackspace seems like a much better API :) [22:51] eyesUnclouded has joined the channel [22:51] bnoordhuis: voodootikigod: not all drivers support asynchronous mode, i think [22:51] bnoordhuis: that's always been a problem with linux drivers :-/ [22:52] voodootikigod: i would believe [22:52] voodootikigod: except [22:52] voodootikigod: it was working on my machine [22:52] sh1mmer: hello [22:52] voodootikigod: i recompiled [22:52] voodootikigod: same system [22:52] voodootikigod: same version [22:52] voodootikigod: and it worked [22:52] voodootikigod: so its not the driver [22:52] voodootikigod: recompiled again [22:52] voodootikigod: and doesnt work [22:52] voodootikigod: so its somehting funky [22:53] cnu has joined the channel [22:53] bnoordhuis: voodootikigod: have you tried tracing it with gdb? [22:53] voodootikigod: not yet [22:53] Nuck: Does Express.bodyParser support foo[bar] and other such features in a form-encoded body? [22:53] voodootikigod: couldn't figure out where to gdb it yet [22:54] tjholowaychuk: Nuck yeah [22:54] Nuck: tjholowaychuk: awesome, I was worried that I'd hafta only accept JSON :D [22:54] voodootikigod: gotta run [22:54] voodootikigod: w [22:54] voodootikigod: will be on later [22:54] Nuck: tjholowaychuk: If I use numbers for the [] portion, does it make it an array? [22:54] year2013 has joined the channel [22:55] tjholowaychuk: Nuck foo[]=1&foo[]=2 etc works foo=1&foo=2 is also an array [22:55] Nuck: tjholowaychuk: Ah good, that makes my life pretty easy! thanks! [22:55] populuxe has joined the channel [22:56] Nuck: Is there a limit to how deeply nested those arrays and objects can be? [22:57] tjholowaychuk: nope [22:57] Nuck: AWESOME! [22:57] lobstr has joined the channel [22:57] Nuck: It's like JSON, but flatter and a million times clunkier. [22:58] seciuf has joined the channel [22:59] bogomips2__ has joined the channel [22:59] rook2pawn has joined the channel [22:59] rook2pawn has joined the channel [23:01] podman has left the channel [23:01] slip has joined the channel [23:02] mikeal has joined the channel [23:03] Murvin: relax question: what song u listen when coding? lol [23:03] Nuck: Progressive Rock, like Yes. [23:03] threshold has joined the channel [23:03] pt_tr has joined the channel [23:03] igl: tycho ^^ [23:04] xerox: brahe [23:04] Murvin: pop.. lol gaga haha [23:04] Nuck: I often transition to other music, though, moving to Oysterhead and Rx Bandits and Beirut and Battles [23:04] Nuck: Sometimes I mix it up a bit with some Gypsy Punk [23:04] mc_greeny1 has joined the channel [23:04] Murvin: that's nice. :) [23:05] Murvin: hmm can node do streaming music? [23:05] Nuck: Murvin: If it hasn't been done already, it should be easily doable. [23:05] isaacs: lady gaga is awesome for coding [23:06] Murvin: Code this way.. lol [23:06] isaacs: Nuck: gogol bordello? [23:06] jesusabdullah: gogol bordello is fun [23:06] Nuck: isaacs: Of course :P [23:06] jerrysv: code like an egyptian? [23:06] Nuck: ACTION <3 Gogol Bordello [23:07] dall: guys if i do: res.render('index', { test: "Text Text Text Text Text" }); it will load index.ejs and render the page with that object.....but, if i have a big object (many properties) how can i get it from a file ? or do i have to put the obhect on the index.ejs ? (but i think in the manner it will not cached [23:07] dall: what is the better manner? [23:07] iffy|x200 has joined the channel [23:07] Nuck: If I wanted to represent an array of objects in x-form-encoded, how would I do this? [23:08] Murvin: what is your concern of not passign the big object? [23:08] Corren has joined the channel [23:08] isaacs: Nuck: my favorite coding mix lately is gogol bordello and of montreal on random [23:09] dall: Murvin, if i have a lot of pages the main js file (app.js) will be too big...i would like to create index.ejs (html) and something like index.obj (if i have a big object) [23:09] Murvin: gogol bordello. :) [23:09] dall: wrong? [23:09] Nuck: isaacs: I mostly blast Gogol Bordello mid-day [23:09] drudge: mape: ping [23:09] Nuck: It's good to keep you going :P [23:10] Nuck: I just scroll around my iPod, looking for upbeat shit, and Gogol Bordello is one of the things I choose a lot. [23:10] Murvin: dall: the problem isn't the html, is that you have many app.get('/ ') and you need to organize it, right? [23:11] drudge: https://github.com/mape/node-scraper do the examples work for anyone? [23:11] dall: Murvin, yes surelly...i have to organize them.....sure [23:11] c4milo1 has joined the channel [23:12] dall: but the question is can i load the object from another file if this object is too big? [23:12] dall: and if it possible then if i load the object it will be cached ? [23:12] tjholowaychuk: dall what is it that you are trying to display?... what are these big chunks of text? [23:12] mikeal has joined the channel [23:13] dall: tjholowaychuk, i don't have it at the moment i only would like to know how can i manage this kind of necessity [23:13] tjholowaychuk: doing something without motivation [23:13] tjholowaychuk: doesnt make sense [23:13] tjholowaychuk: and makes it hard to answer your questions [23:14] dall: tjholowaychuk, because i think if the object is too long it makes the code unredable [23:14] tjholowaychuk: yes but in practice you wouldnt do that [23:14] tjholowaychuk: static content would be in a template, dynamic would be from a database query [23:15] Murvin: dall: sorry... can't really see the problem of the relationship between the object u gonna load, and the code readibility. hmm [23:15] Nuck: tjholowaychuk: I can't do an object in x-form-encoded, can I? [23:16] Nuck: :/ [23:16] dall: if i do it: res.render('index', { test: "Text Text Text Text Text" }); [23:16] sely has joined the channel [23:16] dall: will it be cached? [23:16] tjholowaychuk: Nuck yeah, user[name]=tj&user[email]=whatever [23:16] Nuck: tjholowaychuk: Can I embed an object in an array? [23:16] dall: i think it will be "unredable" [23:16] tjholowaychuk: dall you're asking about issues that dont exist lol work on your app first and come up with issues [23:17] dall: issues ? [23:17] dall: ok no problem tjholowaychuk [23:17] Murvin: dall: usually, in this case, your text will be from DB.. instead of hard coding it. right? [23:17] Nuck: dall: Stop worrying, tjholowaychuk already did that for you when he developed Express. [23:17] Murvin: dall: and for caching. I am not 100% sure but i guess it will be cached. [23:17] dall: Murvin, yes [23:18] tjholowaychuk: coming up with a problem before you actually encounter it, is really weird [23:18] jeroen| has joined the channel [23:18] dall: ok guys, thank you...i know i asked a lot of questions...sorry about that, you are very available :) [23:18] Nuck: tjholowaychuk: It's that old form of development, what's it called? The thing before agile. [23:18] Nuck: :P [23:19] Nuck: Can this be turned into x-form-encoded, and if so, how? [23:19] Nuck: {'artists' : [ { 'name' : 'Nuck', 'role' : 'Programmer' }, { 'name' : 'tlejeck', 'role' : 'Artist' } ] } [23:20] Wizek_ has joined the channel [23:20] Nuck: Essentially, I want "artists[][name]=Nuck" kidna thing [23:20] xerox: there's a programmer inside your artists [23:20] tjholowaychuk: Nuck why not use json? [23:20] Nuck: xerox: I know, I just threw a couple of roles, the first two that popped into my head :P [23:20] Murvin: tjholowaychuk: in the express auth/app.js example there is res.redirect('back') is the 'back' actually saying that go back to where it is from? [23:20] Murvin: or a page called "back". [23:20] tjholowaychuk: Murvin yeah back will check for Referrer/Referer [23:21] tjholowaychuk: you can map custom redirection strings [23:21] tjholowaychuk: but back/home are defaults [23:21] Murvin: ok. that's useful. [23:21] dall: guys, thank you all! you help is very appreciable...........i have to go too late 01:21 am, thank you see you soon [23:21] tjholowaychuk: i dont think anyone uses them but me haha [23:21] Nuck: tjholowaychuk: Meh, that's a valid point... I just dunno how good support for json-form-encoding is... [23:21] Nuck: On other clients, that is [23:21] Nuck: In XHR, it's easy [23:22] Nuck: But IDK about Obj-C and such [23:22] andrewfff has joined the channel [23:22] Murvin: cool. let me try it out. :) hahaah hidden function. :P [23:23] khug has joined the channel [23:23] Murvin: tjholowaychuk: i was wondering for a while.. and thought i missed something in the code. lol [23:23] khug has left the channel [23:23] tjholowaychuk: there's quite a few small things i dont think anyone really uses/knows, because people often glance through the docs and when they come across a new problem they dont look back [23:23] tjholowaychuk: they just rebuild it or do something else [23:24] tjholowaychuk: and some things i just dont even have documented well at all [23:24] Murvin: haha.. I'm looking at every single word in the doc. lol no spelling error yet. :P [23:25] tjholowaychuk: oh god, probably tons of those, my spelling/grammar skills are brutal [23:28] Swizec has joined the channel [23:29] niftylettuce has joined the channel [23:30] leahculver has joined the channel [23:30] leahculver has joined the channel [23:31] AvianFlu has joined the channel [23:32] leahculver has joined the channel [23:32] leahculver has joined the channel [23:35] mikey_p: wow back even checks both referrer and referer headers! [23:37] niftylettuce: wow 4k hits on nyancat.js in 1 day [23:37] Wizek has joined the channel [23:38] JojoBoss has joined the channel [23:41] blippedxd has joined the channel [23:42] luisloazi has joined the channel [23:42] lobstr has joined the channel [23:42] luisloazi: hi [23:42] skm has joined the channel [23:42] luisloazi: how you fix crossdomain [23:42] luisloazi: in nodejs [23:42] luisloazi: allow dynamicly other domains [23:42] gavin_huang has joined the channel [23:42] Aikar: thats not a language level problem [23:42] luisloazi: to consue the web service [23:42] Aikar: its an infrastructure/implementation level problem [23:43] Aikar: run both sides of the service on the same domain name [23:43] skm has joined the channel [23:43] Aikar: if your providing a service to others, provide a JSONP interface [23:43] luisloazi: I need to run the consumer in another domain [23:43] Eucharis has joined the channel [23:43] Aikar: then you must provide a JSONP imp [23:44] jtsnow has joined the channel [23:44] Nuck: Or access the other domain on the server, of course [23:44] ngs has joined the channel [23:44] Nuck: but I think that kinda defeats the purpos, now doesn't it? [23:45] luisloazi: mmm let's see [23:46] Mrfloyd has joined the channel [23:46] niftylettuce: oh crap, guys should I take my thing down ? nyancat.js? http://www.youtube.com/watch?v=QH2-TGUlwu4 [23:46] niftylettuce: looks like he did a copyright claim [23:46] Waha has joined the channel [23:47] luisloazi: I think i need to change some header properties in the response [23:47] jerrysv: nyan.cat person? [23:47] Nuck: lesse... [23:47] pifantastic has joined the channel [23:47] Aikar: luisloazi: that can help on some browsers, but not all. [23:48] jerrysv: we have multiple nyan cats going at the office right now [23:48] luisloazi: mmm [23:48] Nuck: niftylettuce: Wrong [23:48] Nuck: http://twitter.com/#!/prguitarman [23:48] Nuck: Not him [23:48] luisloazi: mobile browsers? [23:48] Aikar: http://youtube.com/user/prguitarman was deleted :O [23:48] Aikar: so he copyrigt claims that vid then gets deleted himself? lol [23:48] luisloazi: I need it to be functional [23:49] Nuck: Aikar: It wasn't him [23:49] Aikar: oh [23:49] Nuck: Aikar: http://twitter.com/#!/prguitarman <-- look at his tweets [23:49] Nuck: "Apparently YouTube filed a copyright claim on the Nyan Cat video? I didn't do that. I wonder what's going on." [23:50] luisloazi: so for all browsers , is there a general solution? [23:50] Aikar: luisloazi: JSONP [23:51] _jgr has joined the channel [23:51] ngs has joined the channel [23:52] hippich has joined the channel [23:53] luisloazi: ok [23:54] luisloazi: thanks [23:55] jerrysv: how does one get a .cat domain? [23:55] smcguinness: when trying to follow the socket.io example using express. I get an error that states "node.js:180 throw e; // process.nextTick error" [23:55] smcguinness: Without using socket.io, all works fine [23:55] Slashbunny has joined the channel [23:55] Murvin: is there any problem of using connect-mongodb and mongoose in the same code? [23:55] Murvin: or known issue.. [23:56] drefined: has anyone successfully implemented dynamic namespaces with socket.io on node? [23:56] davidbanham has joined the channel [23:57] xandrews has joined the channel [23:58] slickplaid: Murvin: there shouldn't be any issues due to the way node.js handles require() and exports to variables... the namespace is protected [23:58] kersny: jerrysv: apparently you have to 'promote catalan language and culture' [23:58] kersny: http://en.wikipedia.org/wiki/.cat [23:58] vyvea has joined the channel [23:58] Murvin: slickplaid: thanks [23:58] jerrysv: hence the link on the nyan.cat site [23:58] jerrysv: i suppose i can teach my cat catalan [23:59] rauchg has joined the channel