[00:01] michaeldeol has joined the channel [00:03] Aria: ./subdir/blah if it's relative to the current file [00:03] ecin_ has joined the channel [00:03] Aria: subdir/blah if it's relative to your package's node_modules [00:03] jbrokc has joined the channel [00:04] JakeSays: wow f*ing cool! [00:05] jacobolus has joined the channel [00:05] jonaslund: ahhhh [00:05] jonaslund: Aria: it seems they've changed from colon delimetered lists to semicolon delimetered lists on windows for 0.6.0 [00:05] enmand has joined the channel [00:05] Aria: Ah, yeah. That too. [00:05] jonaslund: for NODE_PATH [00:05] Aria: YEah. Windows paths now act native. [00:05] Aria: Since node is now a native windows app [00:05] jonaslund: (and that's kinda a good choice since it's the windows standard) [00:06] Aria: (Yeah) [00:06] Aria: (Hell for cross-platform whatnot, but generally, if someone's hacking with that for you, they're doing that wrong) [00:06] JakeSays: ACTION is feelin' the node love [00:06] Aria: ACTION grins at JakeSays [00:09] jonaslund: it's not like you're gonna share launcher scripts anyhow in most cases [00:10] mraleph has joined the channel [00:11] jldbasa has joined the channel [00:12] stagas has joined the channel [00:12] boltR has joined the channel [00:13] mehtryx has joined the channel [00:15] mmalecki has joined the channel [00:17] marcello3d has joined the channel [00:18] replore_ has joined the channel [00:18] replore has joined the channel [00:19] HardPhuck has joined the channel [00:21] neurodrone_ has joined the channel [00:24] a_suenami has joined the channel [00:26] tilgovi has joined the channel [00:26] tilgovi has joined the channel [00:27] scottschecter has joined the channel [00:28] davidbanham has joined the channel [00:28] JakeSays: so if i just want to load a .js file i use require()? or is require only for modules? [00:29] Xano has joined the channel [00:31] Aria: Same. [00:31] JakeSays: ok cool [00:31] Aria: node searches for .js and .node [00:31] JakeSays: so i can use it to break up a huge js file in to smaller files [00:31] Aria: Yeah. [00:33] ryanfitz has joined the channel [00:34] eddyb: JakeSays: require('./someDir'); will load someDir/index.js if it exists [00:34] jbrokc_ has joined the channel [00:35] fairwinds has joined the channel [00:45] hackband has joined the channel [00:45] Swizec has joined the channel [00:46] zomg: Swizec: o hai, I didn't know you used irc =) I'm @jhartikainen [00:46] Swizec: hey dude [00:47] Swizec: what you up to? [00:47] stagas has joined the channel [00:48] zomg: Oh was about to get some sleep but thought I'd say hi first :D [00:48] Swizec: awesome [00:48] Swizec: I'm doing a cool node project, got in way over my head it seems [00:48] yozgrahame has joined the channel [00:49] zomg: Yeah, I'm working on a live tracking / web administration tool for Battlefield 3 :) [00:49] Swizec: I'm making a tool that will say "Yes, this project will run on node 0.6" [00:49] zomg: heh [00:49] hellp has joined the channel [00:49] freewil has joined the channel [00:49] freewil has joined the channel [00:50] zomg: I actually upgraded from 0.4.6 to 0.6.0 today, completely problem free and it even fixed an issue I was having [00:50] Swizec: nice [00:50] Swizec: I saw some api's have gone missing and such [00:51] Swizec: thought it best to check [00:51] Swizec: then of course I didn't think I feel like doing this by hand [00:51] neoesque has joined the channel [00:51] Swizec: :P [00:51] zomg: You probably would be done by now [00:51] zomg: :D [00:51] zomg: Well tbh I have no idea, I did hear about a bunch of libs stopping working [00:52] zomg: I recently read about your sleep stuff on your blog, I seem to be having similar problems [00:52] cognominal has joined the channel [00:52] zomg: It's almost 3 AM and I have work in the morning.. [00:52] zomg: =) [00:52] Swizec: a lot of people with an internet conneciton have that problem [00:52] Swizec: :P [00:53] zomg: Noo.. =) [00:53] alexdoom has joined the channel [00:53] zomg: Well, I better go now or it's gonna be 4 AM before I know it [00:53] Swizec: oh of course not, we all have a bunch of important shit to get done late at night [00:53] Swizec: :P [00:53] Swizec: it's not lolcats and irc at all [00:54] zomg: It's code and cola [00:54] zomg: Off now -> cya [00:54] willwhite: anyone have any tips on tracking progress of data being written to an outgoing http.ClientRequest request? Seems like the only event I can use is `response` once the request is finished. [00:54] jbrokc has joined the channel [00:54] Aria: you're the one writing it. Track it there. [00:56] joeyang has joined the channel [00:56] willwhite: Aria: right, I was hoping for an event since I'm using pipe(), and pipe is actually the one calling write(). [00:56] jtsnow has joined the channel [00:56] Aria: Ah, yeah. You could rewrite pipe to give you one. (And pipe's not that complex.) [00:57] harthur has joined the channel [00:58] willwhite: Aria: thanks, I'll give it a shot. [01:00] DennisRas has joined the channel [01:00] lyte has joined the channel [01:00] lyte has joined the channel [01:02] willwhite: Aria: hm, so I copied pipe() to put some debug output in. it looks like it writes all of the data quite rapidly, but the transfer continues for another minute. I wonder if the transfer part is just happening on a lower level. [01:03] te-brian has joined the channel [01:03] Aria: Yes. Node buffers until the thing it's writing into says 'stop' [01:03] Aria: IF there's nothing to feed back, it just keeps doing it. [01:04] lunchub has joined the channel [01:04] willwhite: ah make sense. is there anyway for node keep me updated on it's progress of actually transferring the data over the wire? [01:05] Yuffster_fun has joined the channel [01:07] kazupon has joined the channel [01:07] WarheadsSE_ has joined the channel [01:07] Aria: Hm. It should pause pretty quickly. Tune your TCP buffers in your OS, though. [01:08] quackquack: what does browserify use dnode for? [01:10] joshthecoder has joined the channel [01:11] skm has joined the channel [01:12] CarterL has joined the channel [01:17] maletor has joined the channel [01:18] Emmanuel` has joined the channel [01:20] eyeOfKdng has joined the channel [01:20] devdazed has joined the channel [01:22] skoom has joined the channel [01:22] JaKWaC|Phone has joined the channel [01:23] Swizec has joined the channel [01:24] scottschecter has joined the channel [01:25] willwhite has joined the channel [01:28] klaemo has joined the channel [01:29] tiagobutzke has joined the channel [01:30] devdazed has left the channel [01:32] JaKWaC|Phone has joined the channel [01:33] eyeOfKdng has joined the channel [01:33] davidbanham has joined the channel [01:33] skm has joined the channel [01:34] jbrokc_ has joined the channel [01:34] isaacs has joined the channel [01:34] JakeSays: hmm. so i require('foo.js'), but i cant access the contents of foo.js [01:35] AvianFlu: are you exporting them? [01:35] Aria: Contents? [01:35] JakeSays: methods, variables, etc [01:35] JakeSays: AvianFlu: no [01:36] AvianFlu: var whatever = exports; whatever.prop1 = 17; etc. [01:37] JakeSays: ah ok cool. that helped. [01:37] eephillip has joined the channel [01:37] jGoods: in other words, Jake the answer to your question a long time ago was that require is just for CommonJS stuff [01:37] jGoods: ie, you have to use exports [01:38] JakeSays: ah ok [01:40] skm has joined the channel [01:40] SubStack: quackquack: dnode uses browserify to build the browser code [01:41] toki_kanno has joined the channel [01:41] quackquack: SubStack: so it uses it statically? [01:41] SubStack: as a build step yep [01:42] SubStack: also you can require('dnode') in browserified code on account of the browserify field in the package.json [01:42] quackquack: ahh, ok. i was worried it was using it to make separate requests for 'require's [01:42] quackquack: w8, what is the 'browserify' field? [01:44] shipit has joined the channel [01:44] cjm has joined the channel [01:48] WarheadsSE: woohoo :) [01:48] travis_ has joined the channel [01:48] WarheadsSE: looks like this is the first node that builds, and evertyhing without a severe beating of v8 [01:48] WarheadsSE: well.. on a ARM v5te, soft [01:49] Aria: Nice [01:49] g4g33k has joined the channel [01:50] meso has joined the channel [01:53] chilts: isaacs: does the search at npm update every so often, or when something is uploaded [01:54] isaacs: chilts: when you search, and something has been updated since last time, it updates. [01:54] chilts: just for context, I uploaded data2xml last week and 'npm search xml' doesn't return it [01:54] broofa has joined the channel [01:54] alexdoom has joined the channel [01:54] chilts: note, it's the first version [01:55] isaacs: chilts: data2xml A data to XML converter with a nice interface (for NodeJS). =chilts data xml data2xml datatoxml js2xml jstoxml json2xml jso [01:55] isaacs: i see it in there [01:55] quackquack: SubStack: is browserify a good fit even if I dont want to use node modules client side, just the module.exports/require style of packages, or is it overkill? [01:55] isaacs: maybe try `npm cache clean` [01:55] chilts: (oh, and I just updated to v0.6.0 and npm version 1.0.104) [01:55] isaacs: then run search again [01:55] chilts: ACTION tries that [01:55] gavin_huang has joined the channel [01:56] SubStack: quackquack: sure people do that [01:56] SubStack: browserify itself is not very much overhead [01:56] chilts: isaacs: thanks, it's there now [01:56] quackquack: SubStack: k. i have tried so many package managers anything that works will be welcome ... :) [01:56] chilts: wonder if it was because it was new, or because I changed my versions of node and npm [01:57] isaacs: chilts: no way to know at this point. you just deleted the evidence :) [01:57] chilts: yep :) [01:57] chilts: sorry :) [01:57] g4g33k has left the channel [01:57] isaacs: i'm ok with it [01:57] isaacs: :) [01:57] chilts: yeah, me too ... but I guess it's a report for if other people see the same behaviour :) [01:57] chilts: thanks for your help :) [01:58] SubStack: quackquack: should be pretty easy then, just do browserify entry.js -o browserify.js [01:58] SubStack: and entry.js can require() all the other modules you want using relative ./ requires [01:58] quackquack: SubStack: sweet! [01:59] instafire has joined the channel [01:59] jj0hns0n has joined the channel [01:59] chadskidmore has joined the channel [02:00] joshkehn has joined the channel [02:00] joshkehn has left the channel [02:01] jtrudeau has joined the channel [02:03] MatthewS has joined the channel [02:04] icewhite has joined the channel [02:07] rio{ has joined the channel [02:08] quackquack: how does browserify decide which directory relative paths start from? [02:09] jarek has joined the channel [02:10] deedubs has joined the channel [02:11] k1ttty has joined the channel [02:12] SubStack: quackquack: relative paths are relative [02:12] SubStack: they start from wherever the file is [02:13] SubStack: quackquack: just write stuff the node way and it will work [02:13] Aria: That takes some getting used to after using languages that are cwd-relative. [02:15] WarheadsSE: Aria, we'll also have armv7h probably within the night, so node will be fully supported on Arch Linux ARM at last [02:15] WarheadsSE: those single threaded waf jobs just take so darn long [02:15] quackquack: SubStack: awesome! got it working. for some reason it didnt like me using '../..' relative paths, but when I moved the main file to the root level it worked great! [02:15] WarheadsSE: but then, I compiled locally on a v5 700mhz.. [02:16] Aria: Sweet, WarheadsSE [02:16] torm3nt has joined the channel [02:16] WarheadsSE: distcc would be nice... .... [02:17] SubStack: quackquack: oh right there are some bugs someplace [02:18] quackquack: SubStack: np :) writing browser modules as if they were on the server.. its like heaven! [02:18] SubStack: as if by magic! [02:20] quackquack: exactly =D [02:21] luke` has joined the channel [02:25] josephg has joined the channel [02:25] SargoDarya: damn gitosis... [02:26] CarterL has joined the channel [02:27] stagas has joined the channel [02:30] francisl_ has joined the channel [02:31] charlenopires has joined the channel [02:32] MatthewS has joined the channel [02:32] jirong has joined the channel [02:35] travis_ has joined the channel [02:35] ryanfitz has joined the channel [02:36] passionke has joined the channel [02:36] charlenopires has joined the channel [02:36] jtsnow has joined the channel [02:37] Revernd has joined the channel [02:38] jirong: hiya~, noticed that MIPS isn't supported for node.js? anyone here know why? [02:38] quackquack: w/ browserify setting watch: true doesnt seem to be doing anything.. i am still having to reload my server to get the bundle recompiled [02:38] JakeSays: how do i pass vars in to a script from the node command line? [02:40] torsd has joined the channel [02:40] kimico has joined the channel [02:40] darinc has joined the channel [02:41] chilts: JakeSays: just add them after the command itself (e.g. node mycommand.js var1 var2) [02:41] JakeSays: chilts: how do i reference them in the script? [02:41] chilts: then use process.env to get at them : http://nodejs.org/docs/v0.4.12/api/process.html#process.env [02:41] JakeSays: ah cool [02:41] chilts: also, take a look at commander.js and optimise.js [02:41] chilts: ACTION just checks the links [02:42] chilts: https://github.com/visionmedia/commander.js [02:43] gpzzd_ has joined the channel [02:43] JakeSays: ah cool [02:43] chilts: oopse, I mean optimist -> https://github.com/substack/node-optimist/ [02:43] charlenopires has joined the channel [02:43] chilts: JakeSays: do you use npm? if you do the package names are optimist and commander [02:44] JakeSays: i dont yet [02:44] jeromegn has joined the channel [02:44] chilts: do eeeet :) [02:47] JakeSays: so does node.js expose a class model of some sort? [02:47] chrislorenz has joined the channel [02:47] chilts: I think the question you're asking is "Does JavaScript expose a class model of some sort?" [02:48] paul__: anyone know about how mongoosejs handles saving changes to embedded documents? they don't seem to be modifiable [02:48] JakeSays: no, i know js doesnt. [02:48] chilts: well, it does in a certain sort of way ... you can simulate it [02:48] chilts: in fact, you can do it a whole bunch of different ways [02:48] JakeSays: yes i was hoping node picked a way so i dont have to use another lib [02:49] chilts: JakeSays: as far as I know, Node's only helper in this respect is util.inherits() : http://nodejs.org/docs/v0.5.10/api/util.html#util.inherits [02:49] chilts: though I could be wrong [02:49] pizthewiz has joined the channel [02:49] skm has joined the channel [02:50] chrislorenz has joined the channel [02:50] JakeSays: hmm. i wonder if ext-core would work under node [02:51] jgornick has joined the channel [02:51] Aria: Maybe! [02:54] Sami_ZzZ has joined the channel [02:54] alexdoom has joined the channel [02:55] JakeSays: heh n-ext has already done it :) [02:55] ollliey has joined the channel [02:55] charlenopires has joined the channel [02:56] Lingerance: I have an ExtJS port going on too. I have Store working (needs DataProxies to be written though) and XTemplate (as well as the dependancies obviously) [02:57] JakeSays: eh, the only part of ext that is really useful is core because of the license [02:57] Lingerance: It's all GPL3... [02:58] JakeSays: actually ext3 core is mit [02:58] MatthewS has joined the channel [02:58] Lingerance: Ah [02:58] sdwrage has joined the channel [02:59] ejhh has joined the channel [03:01] gpzzd has joined the channel [03:06] abraxas has joined the channel [03:11] avalanche123 has joined the channel [03:12] lyte_ has joined the channel [03:12] stagas has joined the channel [03:13] JakeSays: holy crap - node.exe is using over 550MB or ram [03:13] JakeyChan has joined the channel [03:13] jtsnow has joined the channel [03:16] Aria: Are you leaking RAM or loading tons of data? [03:17] JakeSays: i'm rendering a 24"x36" png [03:18] Aria: At what resolution? [03:18] Aria: I take it not 1dpi ;-) [03:18] JakeSays: 400dpi [03:18] Aria: Yeah, that could do it. [03:18] JakeSays: lol [03:18] Aria: That's a lot of pixels. [03:18] smathy has joined the channel [03:18] JakeSays: yeah. eventually i'll switch to rendering pdf instead of png [03:19] boltR has joined the channel [03:19] jeromegn has joined the channel [03:20] animorten has joined the channel [03:22] jtsnow has joined the channel [03:24] Vennril has joined the channel [03:25] JakeyChan has joined the channel [03:26] grampajoe has joined the channel [03:27] stagas has joined the channel [03:28] grampajoe: Hey, I made a little thing with Node and an Arduino where I set the brightness of a bar on http://dev.joefriedl.net/knob/ with a little knob, and it would be super cool if someone who wasn't me could try it out for a minute? [03:30] grampajoe: Thanks [03:31] chilts: ACTION moves the mouse left and right [03:31] chilts: hmm, how is it changing? [03:31] jarek- has joined the channel [03:31] grampajoe: This knob: http://twitpic.com/7bnzhj [03:32] grampajoe: Or potentiometer, if you like those words [03:32] shiawuen has joined the channel [03:33] davidbanham has joined the channel [03:35] chilts: yeah, the grey bar changes lighter and darker [03:35] chilts: is that all you need? [03:35] travis_ has joined the channel [03:35] grampajoe: Yep, thanks! [03:39] mdel has joined the channel [03:40] darinc has joined the channel [03:43] JumpMast3r has joined the channel [03:46] francisl has joined the channel [03:50] darinc has joined the channel [03:52] tilgovi has joined the channel [03:52] tilgovi has joined the channel [03:52] stagas has joined the channel [03:52] Me1000 has joined the channel [03:54] MatthewS has joined the channel [03:56] alexdoom has joined the channel [03:56] lyte has joined the channel [03:56] lyte has joined the channel [03:58] megatx has joined the channel [03:59] ej_h has joined the channel [03:59] ej__h has joined the channel [04:01] coderdad has joined the channel [04:04] jbrokc has joined the channel [04:12] stagas has joined the channel [04:14] shipit has joined the channel [04:15] jyu322 has joined the channel [04:15] MatthewS has joined the channel [04:15] te-brian has joined the channel [04:19] jtsnow has joined the channel [04:19] p1d_ has joined the channel [04:23] zackattack has joined the channel [04:27] BillyBreen has joined the channel [04:29] McPak has joined the channel [04:33] jyu322 has left the channel [04:33] mynyml has joined the channel [04:36] McMAGIC--Copy has joined the channel [04:41] spathi^ has joined the channel [04:42] stagas has joined the channel [04:44] jbrokc_ has joined the channel [04:45] chrixian has joined the channel [04:45] jtsnow has joined the channel [04:45] Yuezi has joined the channel [04:46] AAA_awright: Anyone heard of an asynchronous URL router, so I can, for instance, determine if a database will handle a particular request or not? [04:48] secoif has joined the channel [04:49] secoif has joined the channel [04:54] jbrokc has joined the channel [04:56] jtsnow_ has joined the channel [04:56] alexdoom has joined the channel [04:56] yozgrahame has joined the channel [04:56] saikat has joined the channel [04:57] monokrome has joined the channel [04:58] davidbanham has joined the channel [04:58] Zenith has joined the channel [05:00] githogori_ has joined the channel [05:01] githogori_ has joined the channel [05:03] te-brian2: A co-worker is trying to convince me to switch to CoffeeScript ... but I just don't like the syntax. I find reading code with no punctuation very difficult. Any tips for how to move past my hangups? [05:04] jtsnow has joined the channel [05:04] jbrokc_ has joined the channel [05:04] MooGoo: no [05:05] MooGoo: coffeescript sucks [05:05] te-brian2: elaborate? [05:05] MooGoo: if you want a wacky new language at least use coco [05:06] MooGoo: otherwise just use js [05:06] boltR has joined the channel [05:06] te-brian2: I'm with you buddy ... if only it was my choice [05:06] MooGoo: whats it matter exactly [05:06] MooGoo: they should be interchangable [05:07] tshpaper has joined the channel [05:07] te-brian2: we're literally working on the same files [05:08] MooGoo: do these people understand javascript syntax [05:08] te-brian2: yes [05:08] MooGoo: thats always good [05:09] zackattack has joined the channel [05:09] andrewfff has joined the channel [05:09] eephillip has joined the channel [05:10] Aria: You have to understand JS syntax to use coffeescript. [05:10] Aria: And I'm with you, te-brian2. [05:11] wookiehangover: te-brian2: write something you've written in javascript in coffeescript [05:11] MooGoo: just look at some of the JS generated by the coffesscript compiler [05:11] MooGoo: it's scary [05:11] wookiehangover: and pay attention to the compiled output [05:11] DontHurtMe has joined the channel [05:11] wookiehangover: not at all [05:11] wookiehangover: it all passes jslint [05:11] te-brian2: the output looks mostly fine to me.. I just think the output is more readable than the input [05:12] MooGoo: why would I want my code to pass jslint [05:12] te-brian2: wookiehangover: What do you use to debug ... node-inspector rendered useless? [05:12] wookiehangover: MooGoo: cause you don't assume that you write perfect code the first time, all the time? [05:12] MooGoo: what does perfect have to do with anal [05:13] wookiehangover: te-brian2: debugging is the same [05:13] te-brian2: wookiehangover: Except you are not debuggin your own source, correct? [05:13] wookiehangover: MooGoo: cause its a programming language, not a letter to your grandmother [05:13] MooGoo: I try to make my code look less ridiciules where possible [05:14] wookiehangover: te-brian2: `debugger` works the same [05:14] wookiehangover: you get used to debugging through compiled output [05:14] wookiehangover: i mean, its not like its writing it in arabic or something [05:14] HeikoR has joined the channel [05:14] wookiehangover: its just js [05:14] wookiehangover: MooGoo: that's what jshint is for [05:14] te-brian2: wookiehangover: I assume you are gonna be dealing with all these added closures and whatnot [05:15] wookiehangover: it has a more modern take, better configurations too [05:15] Emmanuel` has joined the channel [05:15] wookiehangover: te-brian2: I've never found that to be a problem [05:15] wookiehangover: and you can turn off the global closure with --compile-bare [05:15] MooGoo: actully I'm fairly certain I write "perfect" code 99% of the time [05:16] MooGoo: if perfect means not leaking global vars [05:16] wookiehangover: srsly, just take something you've already written and re-write it in cs [05:16] HeikoR: Hi - anybody use node_buffer in windows c++ addon ? [05:16] te-brian2: wookiehangover: I will give it a try [05:16] wookiehangover: http://blog.meloncard.com/post/12175941935/how-one-missing-var-ruined-our-launch [05:16] HeikoR: Can't link Buffer::New in my windows C++ addon (node0.6.0) [05:16] wookiehangover: MooGoo: that could happen to you, Mr RockStar [05:17] te-brian2: wookiehangover: Yeah... I've read that ... but its not like they 'missed a var' ... they had scope issues. (it just so happens that adding a var might have fixed it) [05:17] MooGoo: ok lets see.. [05:18] tk has joined the channel [05:19] MooGoo: any decent js programer would find that mistake quickly [05:20] MooGoo: and besides [05:20] ryanfitz has joined the channel [05:20] MooGoo: if you just want var declaration checking [05:20] MooGoo: "use strict" [05:20] AAA_awright: te-brian2: Absolutely not [05:20] wookiehangover: MooGoo: saying no to code quality tools is just foolish [05:21] AAA_awright: If I wanted to write ECMAScript, I would write to ECMAScript, not some other thing [05:21] wookiehangover: the vim plugins for jshint and jslint are great [05:21] wookiehangover: and unobtrusive [05:21] MooGoo: for most people maybe [05:21] AAA_awright: s/to / [05:21] AAA_awright: bah [05:21] wookiehangover: no, for all people [05:22] te-brian2: wookiehangover: dont get trolled .. not worth your time. [05:22] MooGoo: code quality tools cannot detect whether your code is any good [05:22] MooGoo: only that it follows arbitrary syntax rules [05:22] jamiep_ has joined the channel [05:22] MooGoo: most code that passes jslint is trash [05:23] wookiehangover: (╯‵Д′)╯彡┻━┻ [05:23] MooGoo: only because people rigerosly following it are likely to know less about js [05:23] MooGoo: .spell rigerosly [05:23] catb0t: rigorously, vigorously, grisly, grossly, rigorous, regrows, greasily, crossly, recross, regress [05:24] wookiehangover: http://dl.dropbox.com/u/4431744/1229914-lebowski_opinion_super.jpeg [05:24] MooGoo: yea man [05:24] MooGoo: i has opinions [05:24] wookiehangover: listen to brandon eick http://dl.dropbox.com/u/4431744/papa_crock.jpg [05:25] wookiehangover: also, yehooda cats http://dl.dropbox.com/u/4431744/yehuda.png [05:25] MooGoo: you seem to have an abundance of links [05:26] yozgrahame has joined the channel [05:26] wookiehangover: deal with it, motherfucker http://dl.dropbox.com/u/4431744/riker.gif [05:27] cconstantine_ has joined the channel [05:28] MooGoo: no u, http://bigmooworld.com/tngpic/headboom.gif [05:28] Lingerance: wookiehangover: RE:JSHint and vim, I just clone your repo into .vim? [05:28] bnoordhuis has joined the channel [05:28] wookiehangover: http://s3.amazonaws.com/gif.ly/gifs/567/original.gif?1318978524 [05:28] wookiehangover: Lingerance: yes [05:29] wookiehangover: Lingerance: or use it as a bundle with pathogen [05:29] wookiehangover: that's what I recommend [05:29] Lingerance: What does it do? [05:29] wookiehangover: it makes all plugins indenpendently installable [05:29] wookiehangover: https://github.com/tpope/vim-pathogen [05:29] Lingerance: I meant yours, how does it activate? [05:30] wookiehangover: read the docs for https://github.com/hallettj/jslint.vim [05:30] wookiehangover: its literally the same lib with different js [05:31] dgathright has joined the channel [05:31] wookiehangover: but once you install it will start working the next time you restart vim [05:31] wookiehangover: it will highlight broken js, and respect config options in c-style comments at the top of files [05:32] wookiehangover: as well as any globals set in ~/.jshintrc [05:32] shipit has joined the channel [05:33] wookiehangover: also if you're thinking about pathogen consider using https://github.com/gmarik/vundle [05:33] wookiehangover: more idiot proof than submodule-ing [05:34] Lingerance: I'm not seeing anything :/ [05:35] secoif has joined the channel [05:36] madhums has joined the channel [05:37] dreamdust has joined the channel [05:38] wookiehangover: Lingerance: ¯\(°_o)/¯ [05:39] Lingerance: https://gist.github.com/1344249 [05:40] Lingerance: Also tried it with them in .vim and .vim/autoload [05:43] Lingerance: There we go, I got it working, had to cp -r ftplugin [05:44] zackattack has joined the channel [05:46] wookiehangover: great [05:46] CIA-109: node: 03Ben Noordhuis 07master * redcfea5 10/ wscript : [05:46] CIA-109: node: build: fix man page install path on the BSDs [05:46] CIA-109: node: Fixes #2026. - http://git.io/PvXvXQ [05:47] Advant: I'm having trouble calling this method, everytime I try it returns null, http://pastebin.me/50ce2627ae22d5c23d6ff4585c0046f1, I call it like db.eval('sqsDeleteMessage("testq","owner",new ObjectId("4eb6427efaac20007fbf7522"))'), any ideas? [05:48] foo___ has joined the channel [05:48] Aria: What sort of trouble? [05:49] Aria: What is db.eval? [05:49] Advant: Aria: The fact that it returns null, I think it isn't working [05:49] Advant: Aria: from mongodb driver [05:49] Aria: Ah. [05:49] Aria: does db.eval normally return things? [05:49] Advant: I'm actually running it in mongo console, but then I view data and it hasn't changed [05:50] Advant: but I think I'm passing the data correctly [05:50] Advant: bit of a cluster [05:50] Aria: ... That's a bit out of scope for both this channel and my experience. Sounds like you're not in node at all where you're having the problem. [05:51] Advant: no, figured plenty of node people done mongo though [05:51] Advant: #monogodb is dead right now [05:56] bob2 has left the channel [05:56] alexdoom has joined the channel [05:58] passionke has joined the channel [05:58] mmalecki has joined the channel [05:59] tokuzfunpi has joined the channel [06:00] ej_h has joined the channel [06:00] braoru has joined the channel [06:02] svnlto has joined the channel [06:04] garrensmith has joined the channel [06:04] joshkehn has joined the channel [06:04] joshkehn has left the channel [06:05] tisba_ has joined the channel [06:05] stu64 has joined the channel [06:07] megatx has joined the channel [06:07] te-brian2: wookiehangover: How would I do a comprehension with an anonymous function? [06:07] d4rk1ink has joined the channel [06:13] vvo has joined the channel [06:13] MatthewS has joined the channel [06:14] garrensmith has joined the channel [06:14] jtsnow has joined the channel [06:16] vvo_ has joined the channel [06:16] boltR has joined the channel [06:17] fangel has joined the channel [06:21] stalled has joined the channel [06:23] jbrokc has joined the channel [06:26] Sami_ZzZ has joined the channel [06:28] SamuraiJack has joined the channel [06:28] HT has joined the channel [06:30] jacobolus has joined the channel [06:32] mehlah has joined the channel [06:32] bergie has joined the channel [06:33] devmodem has joined the channel [06:33] jbrokc_ has joined the channel [06:35] tekky has joined the channel [06:39] braoru has joined the channel [06:43] secoif has joined the channel [06:44] jbrokc has joined the channel [06:51] confoocious has joined the channel [06:52] stagas has joined the channel [06:56] smgt has joined the channel [06:57] alexdoom has joined the channel [06:57] luke` has joined the channel [07:02] __main__ has joined the channel [07:03] mike5w3c has joined the channel [07:03] monokrome has joined the channel [07:06] harthur has joined the channel [07:06] mraleph has joined the channel [07:07] HeikoR: Hi anybody know of windows C++ addons that work with node 0.6.0 ? Trying to use node::Buffer for binary data, but fail to link to it - not sure if I'm on the wrong track ? [07:07] saikat has joined the channel [07:07] benvie: helloworld.node [07:08] benvie: er [07:08] TheJH_phone has joined the channel [07:08] benvie: headers/ [07:08] Aria: node-canvas does, with JakeSays' changes. [07:08] benvie: node-wrap.h, node-buffer.h, node.h [07:09] benvie: some others [07:09] Aria: What about the headers? [07:10] benvie: just making sure he's linking the right stuff. Simple fix [07:10] kawaz_home has joined the channel [07:10] Aria: Ah. Right. [07:11] benvie: opinion question [07:11] p1d has joined the channel [07:12] benvie: well context [07:13] benvie: it looks like this serialize to json and then remotely reconstruct the whole structure thing I've been working on is pretty much done [07:13] benvie: in terms of, prototype chains [07:13] HeikoR: hi benie - your advice got me far yesterday ... communicating to our legacy server using ctype (tcp/ip packet protocol) [07:13] benvie: object properties and all that [07:14] cosmincx has joined the channel [07:14] HeikoR: but got stuck for last couple of hours trying to return binary encrypted data from node plugin [07:14] benvie: yeah heikor definetely! the best 12 hour oh shit its on fire solution is making the basic commdand line transport do something useful [07:15] benvie: ok back up [07:15] benvie: define [07:15] HeikoR: was considering returning as a UTF8 string and then convert to binary in JS, but would like to get addon to work right - see node::Buffer::new being used, but I can't link to it ? and doesn't seem like its exported for plugins [07:15] benvie: "return", "encrypted", "data from node", and "plugin" [07:15] benvie: all of which can mean a lot of things [07:15] benvie: short answer [07:16] benvie: I've been using websockets to communicate betweem localhost [07:16] benvie: find a transport that works [07:16] benvie: any transport that works for ou [07:16] benvie: it really doesn't matter for the prototype implementation so don't let that be the defining factor [07:17] amigojapan has joined the channel [07:17] HeikoR: * 1) I've got a addon called "customCrypt" or similar [07:17] benvie: just get the data moving and different stuff talking as easily and quickly as possible [07:17] HeikoR: * 2) want to call function "encrypt(...)" and get back binary encrypted data [07:18] benvie: ok [07:18] HeikoR: *3) how do I get binary data back to JS (using latest node 0.6.0 release) [07:18] HeikoR: :) [07:18] benvie: do you know where the specific failure point is [07:18] benvie: well in js it'd involve a stream and setting the stream to encoding: "binary" [07:18] HeikoR: *4) can return string from my addon New::String(...), but how do I return binary buffer ? [07:19] AAA_awright: Anyone else getting an SSL error for GitHub? [07:19] benvie: and you specifically need to set the writable stream to the desired encoding (in js) [07:19] benvie: so [07:19] benvie: streams in Node are defined in JS I believe, now [07:19] HeikoR: yup but how do I do it in C+=? [07:20] asher^ has joined the channel [07:20] benvie: your simplest/quickest bet is to make a simple version work in JS first [07:20] HeikoR: What function/class do I use [07:20] benvie: them going back to C++ [07:20] benvie: couple things [07:20] benvie: if you haven't done so already you probably need to read node-pipe-wrap from top to bottom [07:21] jamiep_ has joined the channel [07:21] HeikoR: good more reference ! :) - thanx - any reading is good - there's not much info out there [07:21] HeikoR: can't find a single windows C++ addon (source code) [07:21] benvie: and then second, I'm not exactly sure. Quite recently an implementation of conversion from javascript typed array buffers was committed to node [07:21] svnlto has joined the channel [07:21] benvie: lol yeah [07:22] benvie: you, me, and apparently JakeSays are probly the 3 of 4 people who've even done it so far [07:22] Garo_ has joined the channel [07:22] HeikoR: mmm - the ppl at work will think I partied all weekend ... meanwhile I was playing/figthing/getting to know Node :) [07:22] benvie: the 4th being Bert Belder, the guy who made it possible [07:22] HeikoR: (gotta leave for work in a mo) [07:23] benvie: tell them there's probably less than the total fingers on your hand of people who've even tried [07:23] Garo_: is there a summary about the new features in 0.6 when compared to 0.4.12? [07:23] benvie: it's new [07:23] benvie: very new [07:23] HeikoR: yup :) I've added Bert to my watch list [07:23] jbrokc_ has joined the channel [07:23] benvie: but yeah quick holy shit my pants are on fire answer [07:23] benvie: do as much as you can in javascript [07:24] asher^: hello all [07:24] benvie: if you'll notice, the majority of node's source is javascript, and this isn't arbitrary [07:24] HeikoR: @benvie - do you have a webpage ? github ? [07:24] HeikoR: And JakeSays ? [07:25] HeikoR: :) [07:25] benvie: my glorious site: bbenvie.com (needs to be updated, https://github.com/Benvie, and most of my actual published effort is http://stackoverflow.com/users/748221/brandon-benvie [07:25] benvie: I have a lot of stuff local I need to publish [07:26] benvie: I've been working on this chromium/node project for so long [07:26] HeikoR: yup - I was trying to do the encrypt decrypt in JS (prob possible) but don't wanna go wrong there - and in C++ its a couple of lines and some lib files [07:26] benvie: and none of it's up anywhere [07:26] HeikoR: ... and ... its fun (sweat!) to write a C++ addon ;) [07:26] benvie: building an easy to use cross platform GUI that brings V8 and V8 together [07:27] simenbrekken has joined the channel [07:27] boltR has joined the channel [07:27] yuwang has joined the channel [07:27] HeikoR: is there a link ? Or is it all still top secret ? [07:27] benvie: not even a secret, just not up [07:28] benvie: I'm tying up some loose ends for a super prototype basic version [07:28] benvie: that's useful [07:28] benvie: https://gist.github.com/1337098 [07:28] HeikoR: and JakeSays ? [07:29] benvie: problem is I keep shooting for perfection instead of "this would be really useful" [07:29] HeikoR: (so when you planning to release :) ) [07:29] HeikoR: I can relate to perfection [07:29] benvie: well as you know the windows native stuff is new. I'm going to spend a few days seeing how feasible it is to hit the ideal goal witht hat new toolset [07:30] benvie: and failing that i'll flal back on what I've been working on, which is useful regardless [07:30] benvie: as its what you'd use for any sort of remote environment [07:30] benvie: being able to JSONify the entire javascript context off the bat, and then use @refs from there [07:31] benvie: so I can do like [07:31] benvie: gui.send(process) [07:31] benvie: and it sends the entire structure, cyclic structures, prototypes, and all, with the minimum transport cost [07:31] benvie: which is instant if you're doing it locally [07:31] HeikoR: - like piping display in unix ? [07:32] asher^: hi guys, im brand new to nodejs. im trying to set it up to run code purely on the server side. do i treat it like a cli program? [07:32] benvie: or in Chromium, socket.send(window) [07:32] benvie: no [07:32] benvie: this is piping a Javascript context [07:32] hackband has joined the channel [07:32] cognominal_ has joined the channel [07:32] benvie: for the goal are having a mirrored structure that puts up a facade of direct access [07:32] benvie: as in say running jQuery in the Node process [07:33] AAA_awright: Are there any good docs for christkv/node-mongodb-native? [07:33] benvie: and having it late binded to the GUI process behind the scenes [07:33] HeikoR: ahh [07:33] zomg: asher^: you can, yes [07:33] benvie: but "late" is a relative term when it's local and you've already mirrored the entire context and prototype chain [07:33] HeikoR: will that improve security ? [07:33] benvie: absolutely not [07:33] asher^: zomg cool, at least im looking in the right place :) [07:34] benvie: everything I do is a security travesty if it were to go remote [07:34] benvie: but I've been working toward primarily local goals [07:35] benvie: making an easy GUI binding for all the myriad of node modules out there [07:35] jbrokc has joined the channel [07:35] magnetik has joined the channel [07:35] benvie: which would also allow someone to hack the everloving shit out of my computer if it somehow was in the internet and connected to me [07:36] HeikoR: :) haha - share the link :-) [07:36] benvie: soon hopefully. I've been pushing for a crosplatform thing since both Node and CEF support Windows/Mac/Linux [07:36] HeikoR: ok gotta go to work :( - will see where I get tonight with the binary buffer stuff - else try a different approach for now [07:37] benvie: trying to figure out the best method here [07:37] benvie: good luck and make sure they know you're a hero [07:37] HeikoR: sometimes you take a break and then when you get back you immediately see a solution [07:37] benvie: yeah [07:37] benvie: or a day and 10 beers [07:37] HeikoR: haha tnx [07:37] benvie: either or [07:38] Circlefusion has joined the channel [07:38] HeikoR: chat again - would like to see you finished product [07:38] HeikoR: ciao & tnx for the info - njoy day [07:38] benvie: wait [07:38] benvie: sec [07:38] benvie: screenshot [07:39] benvie: https://plus.google.com/u/0/photos/105977622763676758576/albums/5650561532044140641?hl=en [07:39] ohtogo has joined the channel [07:39] zomg: People use g+? =) [07:39] zomg: That looks nice though [07:39] benvie: the alpha compositing view [07:39] benvie: well apparently google is combining it all now [07:40] Morkel has joined the channel [07:40] benvie: I didn't even put it there, someone linked me my own album [07:40] groom has joined the channel [07:40] benvie: who the fuck knows [07:41] benvie: first goal was to get CEF in a good state to work with node [07:41] benvie: then I got the basic node module in just using command line, but allows stuff like [07:42] benvie: gs = require("glowstick"); var window = gs.open({ width: 500, height: 500 }) [07:43] benvie: the none-native route went down the whole serialization over sockets ridiculousness [07:44] benvie: useful but every functiona is either async or requires fibers [07:44] sproates has joined the channel [07:44] AAA_awright: Has anyone noticed mongodb-native sucks? [07:44] ph^ has joined the channel [07:44] AAA_awright: No? hm [07:45] benvie: that's kind of general [07:45] benvie: never used it so I can't comment [07:46] AAA_awright: The documentation isn't very good, if the README is indeed the only documentation, and the examples sugguest I must first to connect to a server, then a database, then a collection, all before I can think about running my query [07:46] AAA_awright: I should be able to do this stuff synchronously [07:46] benvie: that does sound pretty terrible [07:46] asher^: noob question: how do i set the include path for modules? [07:46] benvie: well sync is a whole other can of exploding bullshit, but not being able to at least have most of it handled isn't great [07:47] AAA_awright: asher^: NODE_PATH or a symlink named node_modules in the same directory [07:47] neshaug has joined the channel [07:47] `3rdEden has joined the channel [07:47] AAA_awright: asher^: It's in the documentation you should read it [07:48] JakeyChan_ has joined the channel [07:48] benvie: the only reason I haven't enlivened the world of node with massive amounts of rainbows is because an async api for something that should be sync isn't acceptable to me [07:49] blueadept2 has joined the channel [07:50] benvie: nor is fibers though [07:50] pquerna: switch to node-cassandra-client <3 [07:50] pquerna: (while we are on the mongobashtrain) [07:51] harthur has joined the channel [07:51] cjm has joined the channel [07:51] AAA_awright: pquerna: Java is absolutely off-limits [07:51] AAA_awright: Don't even go there [07:51] pquerna: ahhh [07:51] AAA_awright: And python too [07:51] benvie: for me, specifically zero latency local connections that are only blemished by not being in the same process/thread [07:52] AAA_awright: Interestingly the languages Google likes for some upside-down reason [07:52] pquerna: AAA_awright: that must be awefully lonely [07:52] benvie: fuck java upside and inside out [07:52] benvie: and anything like it [07:52] AAA_awright: pquerna: No, just saving the coding/software engineering world while I can [07:52] benvie: rape is a serious offense, and java had its way with me even after I lubed [07:52] pquerna: 'aight [07:53] ph^ has joined the channel [07:53] AAA_awright: https://github.com/marcello3d/node-mongolian looks better [07:54] zomg: Talking about that mongo bashing http://pastebin.com/raw.php?i=FD3xe6Jt [07:54] benvie: maybe I'm biased but my own opinion currently is that anyone who isn't using harmony proxies for an API isn't trying hard enough [07:54] bnoordhuis: benvie: you're saying java is the kobe bryant of programming languages? [07:55] benvie: I'm saying I lost internal organs to an unwillingly inserted java phallice [07:55] benvie: over multiple weeks [07:55] jbrokc_ has joined the channel [07:55] AAA_awright: Oh MongoDB is fine, there just doesn't seem to be any mature Node.js APIs for it [07:55] benvie: er months [07:55] HardPhuc has joined the channel [07:56] benvie: and by that I mean it was happening for an equal amount of hours per day that i was awake [07:56] benvie: until javad into unconsciousness [07:57] HardPhuck has joined the channel [07:57] zomg: AAA_awright: not a guru or anything but mongoose has worked okay for me so far [07:57] alexdoom has joined the channel [07:57] AAA_awright: Mongoose appears to be something else entirely [07:57] benvie: it's the only experience I've had as a programmer that bordered until the terrirtory of unwillingness and then flat out this is rape and I quir [07:57] benvie: quit [07:57] AAA_awright: I'm just looking for a way to insert and query stuff :> [07:58] zackattack has joined the channel [07:58] benvie: inset =/ [07:58] benvie: https://github.com/dachev/nQuery [07:59] djcoin has joined the channel [08:00] joeyang has joined the channel [08:00] ph^_ has joined the channel [08:01] fangel has joined the channel [08:01] domino14 has joined the channel [08:02] domino14: i have a question about nodejs and same origin policy. My django server is at beta.example.com. i have a nodejs server at node.example.com. i connect to the node server just through socket.io and it seems to be fine [08:03] domino14: well, in my case, i'm running locally, my django server is 127.0.0.1:8000 and my node server is some AWS IP at port 3000 [08:03] domino14: i'm not getting any errors and it seems im connected to the socket. is this normal? can i do this in production? [08:03] benvie: subomdains run afould of the same origin policy while ports do not [08:04] vi390 has joined the channel [08:04] vi390 has joined the channel [08:04] domino14: my domains at the moment are completely different — the django server is at http://127.0.0.1:8000, my node server is some amazon ip on port 3000 [08:04] yozgrahame has joined the channel [08:04] domino14: and it seems the websocket is open and everything is fine? [08:05] benvie: oh I saw SOP and thought browsers [08:05] benvie: that doesn't apply out of browsers (in node) so that's something unrelated [08:05] bnoordhuis: benvie: i'm pretty sure that the same origin policy also applies to ports [08:05] domino14: so i can connect to a socket.io server on node.example.com just fine? [08:05] domino14: that makes me so happy! i cnat get this nginx crap to work [08:06] benvie: nnnoon the client you're using is the determining factor [08:06] domino14: firefox? [08:06] benvie: although socket.io uses various types of transports, some of which like flash which don't abide by the same rles [08:07] benvie: so [08:07] domino14: i seem to have no problem with chrome or firefox [08:07] domino14: those are like 90+% of our users [08:07] benvie: all browsers that are current abide by same origin policy, but there's a newer protocol for cross-origin sharing which all the new browsers also implement [08:07] benvie: but it requires server-side cooperation [08:07] ultramagnus has joined the channel [08:07] benvie: cross origin resource sharing whatever [08:08] domino14: my domains are completley different though as i stated. the django server is on localhost, node server is on some aws server, and it's doing fine? [08:08] benvie: it's a handshake process over http that requires the browser to ask, and then the server to authhorize [08:09] benvie: yeah the domain doesn't matter, it's whether the servers are configured to accept CORS requests [08:09] benvie: and whether the browser isn't old IE [08:09] domino14: i didnt set up any CORS things [08:09] k1ttty has joined the channel [08:09] secoif has joined the channel [08:09] benvie: a lot of stuff automatically does so check the configs [08:09] domino14: is node.js suggested to be run behind no proxy? [08:10] domino14: i just want it purely for socket.io [08:10] domino14: can it be lorised/etc [08:10] benvie: node will handle anything that gets to it [08:10] benvie: so if you reverse proxy a port to it, it doesn't care [08:10] benvie: just make sure its getting there [08:10] raphdg has joined the channel [08:11] sproates^^ has joined the channel [08:11] emattias has joined the channel [08:11] TheJH_phone has joined the channel [08:11] benvie: if you're seeing it work locally but not remotely then that's definitely some form of other server config problem [08:11] benvie: node is close to the metal [08:11] benvie: you give it a port, it listens, it does its things [08:12] benvie: it's not like apache or IIS or other stuff that has 18 levels of voodoo magic between the config and reality [08:13] benvie: so the first assumption in multi-server environments is that the other thing is broken [08:13] asher^ has left the channel [08:13] niftylettuce has joined the channel [08:14] domino14: sweet.. [08:15] tomyan has joined the channel [08:15] beevits has joined the channel [08:17] saschagehlich has joined the channel [08:18] rio{ has joined the channel [08:18] uchuff has joined the channel [08:20] uchuff has joined the channel [08:23] ecin has joined the channel [08:24] garrensmith has joined the channel [08:24] jbrokc has joined the channel [08:24] kulesa has joined the channel [08:24] kulesa has left the channel [08:24] lauxley has joined the channel [08:24] ej__h has joined the channel [08:25] CIA-109: libuv: 03Ben Noordhuis 07master * r51df5e3 10/ (include/uv.h src/unix/error.c): unix: map EISDIR - http://git.io/OGoUSw [08:25] ppcano has joined the channel [08:26] rendar has joined the channel [08:30] Morkel has joined the channel [08:30] Druid_ has joined the channel [08:31] DennisRasmussen has joined the channel [08:31] TheCode has joined the channel [08:31] ivanfi has joined the channel [08:31] secoif has joined the channel [08:33] passionke has joined the channel [08:33] loob2 has joined the channel [08:34] jbrokc_ has joined the channel [08:35] andree has joined the channel [08:40] svnlto has joined the channel [08:41] devaholic has joined the channel [08:42] Blorb has joined the channel [08:42] stagas has joined the channel [08:45] jbrokc has joined the channel [08:45] sgimeno has joined the channel [08:46] Fabryz has joined the channel [08:46] swestcott has joined the channel [08:46] burningdog has joined the channel [08:47] mehlah has joined the channel [08:47] Shrink has joined the channel [08:47] Shrink has joined the channel [08:48] bergie has joined the channel [08:48] neshaug has joined the channel [08:49] zackattack has joined the channel [08:50] groom has joined the channel [08:50] mikl has joined the channel [08:52] wbednarski has joined the channel [08:53] kuebk has joined the channel [08:55] eldios has joined the channel [08:55] aliem has joined the channel [08:55] EvRide has joined the channel [08:56] DennisRasmussen has joined the channel [08:58] alexdoom has joined the channel [08:58] socketio\test\60 has joined the channel [09:00] vvo has joined the channel [09:00] AD7six has joined the channel [09:00] aaronmcadam has joined the channel [09:02] rio{ has joined the channel [09:02] HeikoR has joined the channel [09:02] jimt_ has joined the channel [09:02] secoif has joined the channel [09:02] hipsterslapfight has joined the channel [09:03] secoif has joined the channel [09:03] jacobolus has joined the channel [09:08] zilch_ has joined the channel [09:10] mendel_ has joined the channel [09:10] jbpros has joined the channel [09:11] zilch_: Ok, let there be an array of string ... bbb = ["Abc","Xyz","abc"] [09:12] zilch_: I want the array members to be converted into all lowercase strings .. [09:12] zilch_: so I thought of map() function [09:12] lyte_ has joined the channel [09:12] mikedeboer has joined the channel [09:13] adambeynon has joined the channel [09:13] zilch_: doing bbb.map(toLowerCase()) gives error saying toLowerCase is not defined. How id I then do map to get the lowecase ? [09:14] zilch_: bbb = ["Abc","Xyz","abc"] [09:14] zilch_: bbb.map(toLowerCase) [09:14] aron_ has joined the channel [09:14] zilch_: this is not working [09:14] zilch_: what I am missing [09:15] zilch_: I want to convert all my member array to lowe case strings [09:16] whitman has joined the channel [09:16] weezle has joined the channel [09:18] [AD]Turbo has joined the channel [09:18] weezle has joined the channel [09:19] eddyb: zilch_: lol [09:19] eddyb: bbb.map(String.prototype.toLowerCase) [09:19] eddyb: toLowerCase doesn't exist [09:19] eddyb: toLowerCase() calls a non-existing function [09:20] eddyb: String.prototype.toLowerCase (or "".toLowerCase if that makes sense to you) is what you want [09:20] icebox has joined the channel [09:21] [AD]Turbo: hi there [09:21] robhawkes has joined the channel [09:21] vguerra has joined the channel [09:22] markwubben has joined the channel [09:22] TheJH_phone has joined the channel [09:22] Blorb has joined the channel [09:22] zilch_: eddyb, I tried bbb.map(String.toLowerCase) [09:23] eddyb: you forgot .prototype [09:23] eddyb: actually, that won't work [09:23] Fabryz: doesn't seem to work on jsfiddle [09:23] eddyb: String.prototype.toLowerCase.bind() [09:23] Esteb has joined the channel [09:23] eddyb: String.prototype.toLowerCase.call.bind() even [09:23] zilch_ has joined the channel [09:24] eddyb: zilch_: or you can just do bbb.map(function(x){return x.toLowerCase()}); [09:24] eddyb: I wish we had the Dart style in JS [09:24] eddyb: bbb.map((x)=>x.toLowerCase()); [09:25] zilch_: eddyb, yup that I am having as temp means [09:25] zilch_: eddyb, dart seems cool [09:25] eddyb: that's actually the right way [09:25] eddyb: functions require bind trickery [09:26] eddyb: String.prototype.toLowerCase.call.bind(String.prototype.toLowerCase)("AA") [09:26] eddyb: so you want [09:26] eddyb: String.prototype.toLowerCase.call.bind(String.prototype.toLowerCase) [09:26] eddyb: which is [09:27] zilch_: I see [09:27] eddyb: function(){return String.prototype.toLowerCase.call.apply(String.prototype.toLowerCase, arguments);} [09:28] __doc__ has joined the channel [09:28] mc_greeny has joined the channel [09:28] eddyb: so... uhm... better use a function [09:29] zilch_: eddyb, lol, that makes it not-that-readable ! [09:30] Fabryz: "but but... I only wanted to convert a string to lowercase" [09:30] Xano has joined the channel [09:30] rhymes has joined the channel [09:30] lzskiss has joined the channel [09:31] lzskiss: j #debian [09:31] lzskiss: yo [09:31] adrianF has joined the channel [09:31] svnlto has joined the channel [09:31] zilch_: Fabryz, lol [09:31] hackband has joined the channel [09:33] blup has joined the channel [09:33] simenbrekken has joined the channel [09:33] blup_ has joined the channel [09:36] TomY has joined the channel [09:36] sfoster has joined the channel [09:40] mikl has joined the channel [09:40] tvw has joined the channel [09:40] mikl has joined the channel [09:45] secoif has joined the channel [09:45] secoif has joined the channel [09:46] secoif has joined the channel [09:46] torsd has joined the channel [09:46] k1ttty has joined the channel [09:46] secoif has joined the channel [09:51] lzskiss has joined the channel [09:53] nsm has joined the channel [09:54] dnyy has joined the channel [09:57] v8bot_ has joined the channel [09:58] zilch_ has joined the channel [09:58] alexdoom has joined the channel [10:00] guillermo has joined the channel [10:00] netlemur has joined the channel [10:01] guillermo has left the channel [10:01] Guest40957 has joined the channel [10:01] akamike has joined the channel [10:10] paulwe has joined the channel [10:10] akihito_s has joined the channel [10:12] Wizek has joined the channel [10:13] piscisaureus has joined the channel [10:16] clu3 has joined the channel [10:17] simenbrekken has joined the channel [10:17] adrianmg has joined the channel [10:19] adrianmg has left the channel [10:20] fly-away has joined the channel [10:21] mikl has joined the channel [10:22] beevits: hey [10:22] beevits: can i find an upgrade howto from 0.4 to 0.6 anywhere? [10:23] Srirangan has joined the channel [10:23] beevits: (on linux) [10:24] bnoordhuis: beevits: https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 [10:24] adrianF has joined the channel [10:24] markwubben has joined the channel [10:25] captain_morgan has joined the channel [10:26] Mokona has joined the channel [10:26] beevits has joined the channel [10:27] beevits: that's the changelog and not an upgrade tutorial or am i wrong? [10:27] igl: beevits: make install just like at your first install. nothing special to do [10:27] captain_morgan has joined the channel [10:31] mynick has joined the channel [10:33] zilch_ has joined the channel [10:36] rhymes has left the channel [10:37] merlin83 has joined the channel [10:37] muszek has joined the channel [10:37] muszek: hi... anyone knows if there's node.js in debian testing repos? can't find it... [10:38] muszek: (I'm using linux mint debian edition, to be precise) [10:39] mehlah has joined the channel [10:40] TheJH_phone has joined the channel [10:42] akihito__ has joined the channel [10:42] davidbanham has joined the channel [10:43] darinc has joined the channel [10:44] jbrokc_ has joined the channel [10:46] hkjels has joined the channel [10:49] burningdog has joined the channel [10:50] Fabryz: beevits if you initially cloned the repo and installed from there, just checkout the v0.6.0 and reinstall I guess [10:50] okuryu has joined the channel [10:51] jimmysparkle has joined the channel [10:51] adambeynon has joined the channel [10:51] andrewfff has joined the channel [10:52] beevits has joined the channel [10:53] zilch_ has joined the channel [10:55] secoif has joined the channel [10:55] secoif has joined the channel [10:56] secoif has joined the channel [10:56] jamonkko has joined the channel [10:59] bnoordhuis_ has joined the channel [10:59] alexdoom has joined the channel [11:01] level09 has joined the channel [11:01] heavysixer has joined the channel [11:03] tiagobutzke has joined the channel [11:03] zilch_ has joined the channel [11:05] jbrokc has joined the channel [11:05] herbySk has joined the channel [11:06] mmalecki has joined the channel [11:06] pickels_ has joined the channel [11:07] fermion has joined the channel [11:07] wbednarski has joined the channel [11:08] cosmincx has joined the channel [11:08] svnlto has joined the channel [11:08] zilch_ has joined the channel [11:08] jomoho has joined the channel [11:09] JakeSays: HeikoR: what? [11:13] lastk has joined the channel [11:15] mikl has joined the channel [11:16] mike5w3c_ has joined the channel [11:17] __tosh has joined the channel [11:20] Davsebamse has joined the channel [11:21] Davsebamse: Hi, what is the minimum memory requirements for nodejs? I was planning on running nodejs on a bifferboard (http://www.bifferos.com/) but it only have 32 mb ram, so I was wondering if that is enough [11:21] simenbrekken has joined the channel [11:23] coreb has joined the channel [11:24] coreb: does anyone know of a module to convert html to plain text? [11:24] bnoordhuis_ has joined the channel [11:26] kazupon has joined the channel [11:27] aliem: Davsebamse: on my server (64bit debian) it's using 10/15 rss memory. I'm sure memory usage and binary size will drop using uclib, but don't know if v8 will compile at all. [11:29] eldios_ has joined the channel [11:29] svnlto has joined the channel [11:32] kwmiebach_ has joined the channel [11:32] jonaslund_ has joined the channel [11:33] blueadept has joined the channel [11:34] alexdoom has left the channel [11:34] sproates has joined the channel [11:34] Dreamer3 has joined the channel [11:35] munro has joined the channel [11:35] TheJH_phone has joined the channel [11:35] ismell has joined the channel [11:36] lukegb has joined the channel [11:36] necromancer has joined the channel [11:36] eldios__ has joined the channel [11:36] thisandagain has joined the channel [11:36] drudge has joined the channel [11:36] Nuck has joined the channel [11:37] augustl has joined the channel [11:37] mediacoder has joined the channel [11:37] lifty has joined the channel [11:37] metellus has joined the channel [11:37] FearOfMusic has joined the channel [11:37] nail_ has joined the channel [11:37] Aikar has joined the channel [11:37] zemm has joined the channel [11:37] Andeye has joined the channel [11:37] mbruce has joined the channel [11:37] jdparker has joined the channel [11:37] chjj has joined the channel [11:37] RichardBronosky has joined the channel [11:37] finsken has joined the channel [11:37] blup has joined the channel [11:37] d4rk1ink has joined the channel [11:37] swaj has joined the channel [11:37] swaj has joined the channel [11:37] wereHamster has joined the channel [11:37] pransalad has joined the channel [11:38] trupppOFF has joined the channel [11:38] franck34 has joined the channel [11:38] pradeepto has joined the channel [11:39] ouyes has joined the channel [11:39] CrisO has joined the channel [11:40] swestcott has joined the channel [11:40] a_meteorite has joined the channel [11:40] ddollar has joined the channel [11:41] KiNgMaR has joined the channel [11:41] cha0s has joined the channel [11:41] cha0s has joined the channel [11:41] akamike has joined the channel [11:41] eldios has joined the channel [11:41] tg has joined the channel [11:41] PhilK has joined the channel [11:42] shachaf has joined the channel [11:43] mrshogun has joined the channel [11:43] mrshogun: hi ppl [11:44] boltR has left the channel [11:44] kimico has joined the channel [11:46] apoc_ has joined the channel [11:47] dmorlim has joined the channel [11:47] ivanfi has left the channel [11:48] Hamms has joined the channel [11:48] jeremyselier has joined the channel [11:48] RexM has joined the channel [11:48] cjm has joined the channel [11:49] lauxley has joined the channel [11:49] `10` has joined the channel [11:50] JakeSays: Davsebamse: heh. my node is using a little over 550MB. [11:50] mrshogun: just that?! :P [11:51] dford has joined the channel [11:51] mrshogun: i already reached 1GB [11:52] neurodrone has joined the channel [11:52] JakeSays: this was just one request [11:52] mrshogun: wow :P [11:54] Davsebamse: JakeSays: ok thanks [11:54] Davsebamse: in that case, will I not use node.js :-) [11:54] toabi has joined the channel [11:55] JakeSays: Davsebamse: well, dont let my experience turn you off on node.js. i'm generating HUGE images with it. [11:55] Davsebamse: JakeSays: ahh ok [11:56] Davsebamse: i will do some testing then [11:56] jspiros has joined the channel [11:58] nym has joined the channel [11:59] ivanfi has joined the channel [11:59] rendar has joined the channel [11:59] scott_gonzalez has joined the channel [12:01] Xano_ has joined the channel [12:02] remysharp: in the REPL (cmd line) should .clear reset everything (think I'm seeing a bug in 0.6.0) [12:02] remysharp: e.g. [12:02] remysharp: > name = 'remy'; [12:02] remysharp: 'remy' [12:02] remysharp: > name [12:02] remysharp: 'remy' [12:02] remysharp: > .clear [12:02] remysharp: Clearing context... [12:02] remysharp: > name [12:02] remysharp: 'remy' [12:02] remysharp: (sorry - still can't work out how to paste code!) [12:03] CrisO has joined the channel [12:04] coreb: is there something like this for node? https://github.com/aaronsw/html2text [12:05] azend_ has joined the channel [12:06] Davsebamse: coreb: you can run the python thing from your node script :-) [12:07] Kunda has joined the channel [12:08] hotch has joined the channel [12:09] remysharp: ACTION filed a bug for REPL .clear [12:09] freeformz has joined the channel [12:10] boltR has joined the channel [12:10] zilch_: Davsebamse, how we do that ? [12:12] coreb: Davsebamse: I'd rather use html2text for unix then, but do you know how to run a unix command with stdin? [12:12] mytrile has joined the channel [12:12] bnoordhuis_: remysharp: .clear has been removed [12:13] CrisO has joined the channel [12:14] bnoordhuis_: actually, i think it's supposed to warn about deprecation now (but it doesn't) [12:16] braoru has joined the channel [12:19] remysharp: bnoordhuis_: there's no mention of that in the changes doc https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 - .clear was rather useful! :) [12:19] remysharp: bnoordhuis_: it's still in the documentation too (0.6.0 docs) [12:20] boltR has joined the channel [12:20] bnoordhuis_: remysharp: sorry, i was wrong - the removal was reverted [12:21] JakeyChan has joined the channel [12:21] remysharp: bnoordhuis_: phew! :) I filed a bug already too [12:23] fairwinds has joined the channel [12:24] tiagobutzke has joined the channel [12:25] ph^ has joined the channel [12:27] Davsebamse: coreb: http://nodejs.org/docs/v0.4.12/api/child_processes.html#child_process.exec [12:30] beevits has joined the channel [12:31] boltR has joined the channel [12:32] gpzzd has joined the channel [12:33] zilch_ has joined the channel [12:33] TheJH_phone has joined the channel [12:33] hotch_ has joined the channel [12:36] alnewkirk has joined the channel [12:36] jetienne has joined the channel [12:36] ej_h has joined the channel [12:37] svnlto has joined the channel [12:38] cognominal___ has joined the channel [12:41] cha0s has joined the channel [12:41] cha0s has joined the channel [12:42] kkszysiu_ has joined the channel [12:43] shiawuen has joined the channel [12:43] cognominal___ has joined the channel [12:45] jbrokc_ has joined the channel [12:46] npa has joined the channel [12:46] cognominal_ has joined the channel [12:48] madhums has joined the channel [12:50] alcuadrado has joined the channel [12:51] CrisO has joined the channel [12:52] alcuadrado: Hi, I'm having problems with npm [12:52] alcuadrado: can anyone help me? http://pastie.org/private/abtqfstqhoiyjlkoc5fmzg [12:53] alcuadrado: it seems to fail when trying to resolve this URL "https://registry.npmjs.org/-/all" [12:54] jbrokc__ has joined the channel [12:55] zomg: https://github.com/joyent/node/issues/1960 <- This fix didn't make it to 0.6.0? [12:55] TheJH_phone: alcuadrado, does 'nslookup registry.npmjs.org' work? [12:56] zomg: At least I'm seeing the exact message, claimed to be fixed by the person who closed that [12:56] alcuadrado: yep TheJH_phone, I even can download it with FF :s [12:56] alcuadrado: also tryed it with sudo, the same happened [12:57] alcuadrado: may I have an out of date version or smth? [12:58] alcuadrado: my versions: http://pastie.org/private/n6llvkdoqrui4iyy8sq [12:58] mekwall has joined the channel [12:58] hellp has joined the channel [12:59] Blorb has joined the channel [13:00] cjroebuck has joined the channel [13:01] izz_ has joined the channel [13:01] jbpros has joined the channel [13:01] mikl has joined the channel [13:02] darinc has left the channel [13:02] Xano has joined the channel [13:03] spurge has joined the channel [13:03] jlaire has joined the channel [13:04] jbrokc has joined the channel [13:05] zilch_ has joined the channel [13:05] AphelionZ has joined the channel [13:06] liar has joined the channel [13:06] svnlto has joined the channel [13:07] d4rk1ink_ has joined the channel [13:08] enmand has joined the channel [13:09] alexdoom has joined the channel [13:11] Blorb has joined the channel [13:17] daglees has joined the channel [13:17] daglees has joined the channel [13:17] alcuadrado: what's the common practice to install node on linux? gettins privileges to /usr/local? [13:18] Lingerance: If you don't have rool install it to something like $HOME/opt/ [13:18] alcuadrado: and if I do? [13:18] alcuadrado: use root dor the installation? [13:19] Lingerance: Then you install it like every other package, either to /usr/local/ or use the package's defaults, or make it go into /usr/ [13:20] alcuadrado: ok, thanks [13:20] alcuadrado: and the same for npm, right? [13:21] Davsebamse has left the channel [13:21] Lingerance: Yes [13:24] arcanis has joined the channel [13:24] devaholic has joined the channel [13:25] toopay has joined the channel [13:25] dubenstein has joined the channel [13:29] jbpros has joined the channel [13:30] Kunda has joined the channel [13:31] erichynds has joined the channel [13:31] cjm has joined the channel [13:32] mehtryx has joined the channel [13:32] lyte has joined the channel [13:32] zilch_ has joined the channel [13:33] Xano has joined the channel [13:33] ryanfitz has joined the channel [13:36] aliem has joined the channel [13:37] fumanchu182 has joined the channel [13:39] jimmysparkle has joined the channel [13:39] lumgwada has joined the channel [13:41] coreb: require('child_process').spawn('html2text').stdin.write(data) // how do I signal EOF to stdin? [13:41] sylvinus has joined the channel [13:44] vvo has joined the channel [13:45] aron_ has joined the channel [13:46] alexdoom has left the channel [13:47] Fabryz has left the channel [13:47] aslant has joined the channel [13:48] ej__h has joined the channel [13:50] AaronMT has joined the channel [13:50] darinc has joined the channel [13:51] apoc_ has joined the channel [13:54] lazyshot has joined the channel [13:54] mehtryx has left the channel [13:54] megatx has joined the channel [13:56] BenHall has joined the channel [13:56] BenHall: Hello, [13:56] BenHall: [13:56] BenHall: I'm trying to use http.get with a user-agent but sadly it's not being added - any ideas why? I have "User-Agent": user_agent in my options hash [13:57] Glenjamin: BenHall: headers: {"User-Agent" : "blah"} ? [13:59] alexdoom has joined the channel [13:59] lumgwada has joined the channel [13:59] emattias_ has joined the channel [14:00] BenHall: Clenjamin: Thanks, that worked :) Sadly the API is returning me gzipped data (by the looks of it anyway) [14:02] deedubs has joined the channel [14:03] mmalecki has joined the channel [14:04] PhilK has joined the channel [14:04] Poetro has joined the channel [14:04] Poetro has joined the channel [14:05] vkareh has joined the channel [14:05] jspiros has joined the channel [14:06] d0k has joined the channel [14:07] c4milo has joined the channel [14:09] mmalecki: JasonSmith: hey, you there? [14:12] jakobdamjensen has joined the channel [14:12] shedinja_ has joined the channel [14:12] ej_h has joined the channel [14:12] dmwuw_ has joined the channel [14:12] vguerra_ has joined the channel [14:12] riven` has joined the channel [14:12] deedubs_ has joined the channel [14:12] coreb has joined the channel [14:12] mac^_ has joined the channel [14:12] riven has joined the channel [14:12] Xano_ has joined the channel [14:12] hkjels_ has joined the channel [14:12] Twelve-60 has joined the channel [14:12] ^rcaskey has joined the channel [14:12] ashb_ has joined the channel [14:12] mikedeboer_ has joined the channel [14:12] OtherJakeSays_ has joined the channel [14:12] wbednars_ has joined the channel [14:12] Mokona has joined the channel [14:12] mattp_ has joined the channel [14:12] coffeecup has joined the channel [14:12] bbenvie has joined the channel [14:12] joshTheGoods has joined the channel [14:12] atourino has joined the channel [14:12] sstephenson has joined the channel [14:12] blueadept has joined the channel [14:12] blueadept has joined the channel [14:12] dthompso99 has joined the channel [14:12] EvRide has joined the channel [14:12] tiagobutzke_ has joined the channel [14:12] monokrome_ has joined the channel [14:12] aaronmcadam has joined the channel [14:12] cognominal has joined the channel [14:12] kkaefer has joined the channel [14:13] ecin has joined the channel [14:13] broofa has joined the channel [14:13] SEToChan has joined the channel [14:13] Leonidas has joined the channel [14:13] Sami_ZzZ has joined the channel [14:13] Fuu has joined the channel [14:13] ktos has joined the channel [14:13] sproates has joined the channel [14:13] dmorlim_ has joined the channel [14:13] SEToChan: how can i access parameters being passed to node.js script? [14:13] Tobbe has joined the channel [14:13] a11235 has joined the channel [14:13] xerox has joined the channel [14:13] jbrokc_ has joined the channel [14:13] jn has joined the channel [14:13] a_suenam_ has joined the channel [14:13] LifterAH_ has joined the channel [14:13] soFarAslant has joined the channel [14:13] alnewkirk has joined the channel [14:13] shachaf_ has joined the channel [14:13] Lartsa_ has joined the channel [14:13] balgarath_ has joined the channel [14:13] hotch_ has joined the channel [14:13] jeremyselier has joined the channel [14:13] bradwright has joined the channel [14:13] nail_ has joined the channel [14:14] __directory has joined the channel [14:14] zilch_ has joined the channel [14:14] ohtogo has joined the channel [14:14] azend has joined the channel [14:14] zpao_ has joined the channel [14:14] te-brian2 has joined the channel [14:14] finsken has joined the channel [14:14] mmalecki: SEToChan: process.argv [14:14] ollie has joined the channel [14:14] igl has joined the channel [14:14] T-Co has joined the channel [14:14] muszek has joined the channel [14:14] emattias_ has joined the channel [14:14] hellp has joined the channel [14:14] mehlah has joined the channel [14:14] darinc: BenHall: see if you can check the "Accept-Encoding" you send. You don't want to send "gzip, deflate" [14:14] blup_ has joined the channel [14:14] madari has joined the channel [14:14] chjj has joined the channel [14:14] halfhalo has joined the channel [14:14] groom has joined the channel [14:14] thomblake has joined the channel [14:15] tokuzfunpi has joined the channel [14:15] Draggor has joined the channel [14:15] robashton has joined the channel [14:15] thomblake has left the channel [14:15] kei has joined the channel [14:15] hazridi has joined the channel [14:15] zinkem has joined the channel [14:15] `10` has joined the channel [14:15] dubenstein has joined the channel [14:15] thedjinn has joined the channel [14:15] RichardBronosky has joined the channel [14:15] dynacker has joined the channel [14:15] darinc: if the server respects your "Accept-Encoding" then it should not gzip the results. [14:15] Bodil has joined the channel [14:15] mbruce has joined the channel [14:15] Riton has joined the channel [14:15] jonaslund: anyone with experience in buying domains from "land-grabbers" ? [14:15] Newky has joined the channel [14:15] pct has joined the channel [14:15] BenHall: darinc: I wasn't sending the header but the server responsed with it anyway. Used node-compress to get the raw text. Seems to be working. Thanks for the help [14:15] darinc: cool [14:15] toopay has joined the channel [14:15] franksalim has joined the channel [14:15] Gonzih[away] has joined the channel [14:15] jacobrask has joined the channel [14:15] neshaug has joined the channel [14:16] PeeterHome has joined the channel [14:16] fairwinds has joined the channel [14:16] polyrhythmic has joined the channel [14:16] dcelix has joined the channel [14:16] phiggins_ has joined the channel [14:16] scoates has joined the channel [14:16] Mortchek has joined the channel [14:17] secoif has joined the channel [14:17] draco2003 has joined the channel [14:17] beeevits has joined the channel [14:17] figital has joined the channel [14:17] paulwe has joined the channel [14:17] zivester has joined the channel [14:17] ultramag1us has joined the channel [14:17] mrshogun2 has joined the channel [14:17] jspiros has joined the channel [14:17] megatx has joined the channel [14:17] Blorb has joined the channel [14:17] d4rk1ink_ has joined the channel [14:17] CrisO has joined the channel [14:17] freeformz has joined the channel [14:17] Hamms has joined the channel [14:17] tg has joined the channel [14:17] KiNgMaR has joined the channel [14:17] trupppOFF has joined the channel [14:17] lukegb has joined the channel [14:17] passionke has joined the channel [14:17] devmodem has joined the channel [14:17] _baton_ has joined the channel [14:17] jnbek has joined the channel [14:17] JKarsrud has joined the channel [14:17] strax has joined the channel [14:17] blissdev has joined the channel [14:17] Raynos has joined the channel [14:17] rektide has joined the channel [14:17] otih has joined the channel [14:17] 13WAAPWTN has joined the channel [14:17] jebberjeb has joined the channel [14:17] yogurt_truck has joined the channel [14:17] gregmoreno has joined the channel [14:17] s0enke has joined the channel [14:17] meder has joined the channel [14:17] stbuehler has joined the channel [14:17] mediaslave has joined the channel [14:17] Lorentz has joined the channel [14:17] jakeskik has joined the channel [14:17] cnu has joined the channel [14:17] tmm1 has joined the channel [14:17] onr has joined the channel [14:17] jp323 has joined the channel [14:17] m4rcs has joined the channel [14:17] visnup has joined the channel [14:17] rphillips has joined the channel [14:17] sugyan_ has joined the channel [14:17] wao has joined the channel [14:17] beevits has joined the channel [14:17] ph^ has joined the channel [14:17] fearphage has joined the channel [14:17] Dreamer3 has joined the channel [14:17] trose has joined the channel [14:17] mrkurt_ has joined the channel [14:17] DrPizza has joined the channel [14:17] mediaslave has joined the channel [14:17] hdon- has joined the channel [14:17] alcuadrado has joined the channel [14:17] alcuadrado has joined the channel [14:17] avih has joined the channel [14:17] __doc__ has joined the channel [14:17] vvo has joined the channel [14:17] scottschecter has joined the channel [14:18] sstephenson has joined the channel [14:18] rektide has joined the channel [14:18] Mokona has joined the channel [14:18] zivester has joined the channel [14:18] L_star has joined the channel [14:18] Corey has joined the channel [14:18] yogurt_truck has joined the channel [14:18] Dreamer3 has joined the channel [14:18] visnup has joined the channel [14:18] Lorentz has joined the channel [14:18] termie has joined the channel [14:18] benvie has joined the channel [14:18] scott_gonzalez has joined the channel [14:18] inimino has joined the channel [14:18] cjm has joined the channel [14:19] malkomalko has joined the channel [14:19] rphillips has joined the channel [14:19] rphillips has joined the channel [14:19] jp323 has joined the channel [14:19] sugyan has joined the channel [14:19] lastk has joined the channel [14:19] cconstantine_ has joined the channel [14:19] Circlefusion has joined the channel [14:19] CrisO has joined the channel [14:19] __doc__ has joined the channel [14:19] wankdanker has joined the channel [14:20] Venom_X has joined the channel [14:20] ph^_ has joined the channel [14:20] beevits has joined the channel [14:20] lyte has joined the channel [14:20] lyte has joined the channel [14:21] swestcott has joined the channel [14:21] `3rdEden has joined the channel [14:21] dynacker has joined the channel [14:21] jzacsh has joined the channel [14:21] jzacsh has joined the channel [14:22] c4milo has joined the channel [14:22] forzan has joined the channel [14:22] wankdanker_ has joined the channel [14:22] lazyshot_ has joined the channel [14:22] jamesd has joined the channel [14:22] tanepiper has joined the channel [14:22] JasonJS has joined the channel [14:22] heavysixer has joined the channel [14:23] fly-away has joined the channel [14:23] SuMarDi has joined the channel [14:23] c4milo has joined the channel [14:23] aaronj1335 has joined the channel [14:23] HeikoR: Hi benvie you there ? [14:23] a11235 has joined the channel [14:23] xerox has joined the channel [14:23] ircdearia has joined the channel [14:23] HeikoR: Solved my node::Buffer problem ... :D -:) [14:24] localhost has joined the channel [14:24] HeikoR: added NODE_EXTERN to node::Buffer class definition in node_buffer.h [14:24] majek has joined the channel [14:25] aaronj1335: quick node.js build question: i notice that ./configure looks for librt. is this useful for mac os x? would i have a faster node.js installation if i used librt? [14:25] verdoc has joined the channel [14:25] Guest42432 has joined the channel [14:26] Slashbunny has joined the channel [14:26] dubenstein has joined the channel [14:26] inimino has joined the channel [14:26] ceej_ has joined the channel [14:26] passionke has joined the channel [14:26] HeikoR: gcc handles symbol visibility different to msvc so I assume that node::Buffer prob visible from gcc, but not from msvc unless implicit export [14:27] lyte_ has joined the channel [14:27] zaheera has joined the channel [14:27] dhasenan_ has joined the channel [14:27] sstephenson has joined the channel [14:27] fumanchu182 has joined the channel [14:28] jstash has joined the channel [14:29] mavin has joined the channel [14:30] igl1 has joined the channel [14:31] benvie has joined the channel [14:32] avih has joined the channel [14:33] lyte has joined the channel [14:33] lyte has joined the channel [14:34] eephillip has joined the channel [14:35] flexd has joined the channel [14:35] davidsklar has joined the channel [14:35] devongovett has joined the channel [14:35] Druid_ has joined the channel [14:36] benvie has joined the channel [14:37] neurodrone has joined the channel [14:39] stalled has joined the channel [14:39] aaronj1335: is librt just for linux or does it help node.js on mac os x as well? [14:41] Xano has joined the channel [14:41] windyrobin has joined the channel [14:41] Circlefusion has joined the channel [14:42] Wizek has joined the channel [14:42] slloyd has joined the channel [14:44] windyrobin has left the channel [14:45] CarterL has joined the channel [14:45] jbrokc__ has joined the channel [14:46] pandeiro has joined the channel [14:47] k1ttty has joined the channel [14:47] burningdog has joined the channel [14:50] willwhite has joined the channel [14:50] te-brian has joined the channel [14:52] davidwalsh has joined the channel [14:55] ph^ has joined the channel [14:55] ioNull has joined the channel [14:57] plutoniix has joined the channel [14:57] hotch: hey you around isaacs? [14:57] ceej has joined the channel [14:57] mkrecny has joined the channel [14:57] aaronj1335 has joined the channel [14:57] secoif: hey is there any benefit in wrapping modules in (function() { // module goes here })(), while also running strict mode (since strict mode will catch globals for you anyway) ? [14:57] ioNull: is there anyone playing with node-amqp? [14:58] yorick has joined the channel [14:58] mkrecny: how are people centralizing error handling for both sync and asyc function calls? [14:58] secoif: mkrecny what you mean 'centralizing' [14:59] mkrecny: secoif having all errors be captured and handled in one place [14:59] secoif: mkrecny http://stackoverflow.com/questions/7310521/node-js-best-practice-exception-handling [15:00] swaj: for what it's worth, the git config line for windows install instructions for npm didn't work for me. my curl-ca-bundle.crt was in /mingw/bin, not /bin. [15:00] ryanfitz has joined the channel [15:00] mkrecny: secoif yeah seen that one [15:00] ioNull: I get the error message when make node-amqp, can anybody help me? undefined symbol: _ZN2v88internal9Internals13kJSObjectTypeE [15:00] mkrecny: secoif trying to get some more opinions [15:02] alexdoom has joined the channel [15:02] mytrile has joined the channel [15:02] aaronj1335: anyone know if librt is worth installing on mac os x for node? [15:03] paul___ has joined the channel [15:03] zilch_ has joined the channel [15:04] martin_sunset_ has joined the channel [15:04] BenHall has joined the channel [15:04] PeteDaGuru has joined the channel [15:04] rio{: aaronj1335 no, not for node [15:04] maushu has joined the channel [15:05] PeteDaGuru has left the channel [15:05] aaronj1335: rio{: thnx [15:05] jbrokc has joined the channel [15:07] gerard0 has joined the channel [15:07] aaronj1335: rio{: so does os x use something instead of librt? [15:07] jpdery has joined the channel [15:08] aheckmann has joined the channel [15:08] tk has joined the channel [15:12] daglees has joined the channel [15:12] daglees has joined the channel [15:12] akihito_s has joined the channel [15:12] apejens has joined the channel [15:12] FearOfMusic has joined the channel [15:13] Blorb has joined the channel [15:14] pizthewiz has joined the channel [15:14] jspiros has joined the channel [15:14] daglees has joined the channel [15:14] adrianF has joined the channel [15:14] SEToChan has left the channel [15:15] beeevits has joined the channel [15:16] b33vits has joined the channel [15:16] brianc has joined the channel [15:18] daglees has joined the channel [15:19] ej__h has joined the channel [15:19] brianc has joined the channel [15:19] termie has joined the channel [15:20] aaronj1335 has joined the channel [15:20] whse has joined the channel [15:21] Guest55116 has joined the channel [15:24] jbrokc_ has joined the channel [15:25] pixel13 has joined the channel [15:25] daglees has joined the channel [15:26] pixel13 has left the channel [15:26] robhawkes has joined the channel [15:27] daglees has joined the channel [15:27] svnlto_ has joined the channel [15:28] jgornick has joined the channel [15:29] christophsturm has joined the channel [15:30] christophsturm: does node 0.6 cluster support reloads without downtime? [15:31] mpavel has joined the channel [15:32] context: 0.6 !!! [15:32] termie has joined the channel [15:32] termie has joined the channel [15:32] mpavel has left the channel [15:33] fatjonny has joined the channel [15:33] TheJH_phone has joined the channel [15:35] beevits has joined the channel [15:35] beevits has joined the channel [15:36] beevits has joined the channel [15:36] aron_ has joined the channel [15:36] vipaca has joined the channel [15:36] vipaca has joined the channel [15:37] jtsnow has joined the channel [15:37] diogogmt has joined the channel [15:39] beevits has joined the channel [15:40] ryanfitz_ has joined the channel [15:41] shiawuen has joined the channel [15:41] confoocious has joined the channel [15:41] confoocious has joined the channel [15:42] Vennril has joined the channel [15:43] Isaiah has joined the channel [15:45] tvw has joined the channel [15:45] nibblebot has joined the channel [15:46] chase_farmer has joined the channel [15:46] ixti has joined the channel [15:46] dubenstein has joined the channel [15:48] Poetro has joined the channel [15:48] Poetro has joined the channel [15:49] jaequery has joined the channel [15:49] SamuraiJack_ has joined the channel [15:50] smtlaissezfaire has joined the channel [15:50] TheJH_phone has joined the channel [15:53] TheJH has joined the channel [15:54] saikat has joined the channel [15:54] JumpMast3r has joined the channel [15:55] darinc has left the channel [15:55] kriszyp has joined the channel [15:55] fmeyer has joined the channel [15:56] darinc has joined the channel [15:56] mies has joined the channel [15:57] tomlion_ has joined the channel [15:57] mies has joined the channel [15:57] martin_sunset has joined the channel [15:59] Xano has joined the channel [15:59] merlin83 has joined the channel [16:00] imarcusthis has joined the channel [16:00] jocafa has joined the channel [16:00] devdazed has joined the channel [16:01] joshkehn has joined the channel [16:01] joshkehn has left the channel [16:01] nibblebot has joined the channel [16:03] harthur has joined the channel [16:03] Nibelung has joined the channel [16:04] tjh has joined the channel [16:05] alexdoom has joined the channel [16:08] mies has joined the channel [16:09] ritch has joined the channel [16:09] Nibelung has left the channel [16:09] mrshogun2 has joined the channel [16:09] hotch: hey guys, can you specify multiple "authors" in the style of "contributors" for publishing? [16:10] ritch has left the channel [16:10] Aikar: hotch: on what? [16:10] hotch: ahh sorry I'm thinking a mile a minute - busy day. npm [16:10] Aikar: oh you mean package.json [16:10] kenperkins has joined the channel [16:10] ritch has joined the channel [16:10] hotch: for example i have a lot of my own modules that I've written/published .. [16:10] ritch has left the channel [16:11] hotch: i put something on our startups git/name for publishing - not its just a pain in the ass. [16:11] Aikar: http://webcache.googleusercontent.com/search?q=cache:c0fvjqQUw_wJ:wiki.commonjs.org/wiki/Packages/1.0+package.json+author&cd=2&hl=en&ct=clnk&gl=us&client=ubuntu [16:11] hotch: ie, permissions. / switching machines. [16:11] adrianmg has joined the channel [16:11] adrianmg has left the channel [16:12] hotch: so maintainers have perms to publish, right? [16:12] Aikar: oh, to give publish perms thats a seperate npm command [16:12] Aikar: i dont think it relates to package.json [16:12] hotch: ahh [16:12] Aikar: npm help owner [16:13] Aikar: thatll help you [16:13] tjbell has joined the channel [16:13] hotch: great, thanks! [16:14] pradeepto has joined the channel [16:14] Drakonite2 has joined the channel [16:14] chrixian has joined the channel [16:14] miccolis has joined the channel [16:15] ivanfi has left the channel [16:15] Drakonite3 has joined the channel [16:16] Drakonite has joined the channel [16:16] tjbell has joined the channel [16:19] airhorns has joined the channel [16:20] baudehlo has joined the channel [16:20] den512 has joined the channel [16:20] heavysixer has joined the channel [16:21] jbrokc_ has joined the channel [16:22] joshkehn has joined the channel [16:22] ej_h has joined the channel [16:22] beevits: stupid question: how do i update my (self compiled) node installation on ubuntu? [16:22] beevits: i already checked out the 0.6.0 tag [16:22] beevits: did all the installation stuff again [16:22] beevits: configure, make, make install [16:23] TheJH: beevits, should work [16:23] joshkehn: I'm using prompt to fetch some input and getting an error about the stdout object becoming undefined at some point. [16:23] beevits: but node -v still says 0.4.11 [16:23] joshkehn: Gist: https://gist.github.com/76bb706abfc904bf2200 [16:23] TheJH: beevits, what does "whereis node" say? [16:23] aron_ has joined the channel [16:23] beevits: node: /usr/bin/node /usr/local/bin/node /usr/local/lib/node /usr/share/man/man1/node.1.gz [16:23] beevits: uuuh [16:23] TheJH: beevits, :D [16:24] TheJH: beevits, sure you didn't install the node package? :D [16:24] beevits: i did a lot of stuff because my first installation attempt failed ;) [16:24] TheJH: beevits, well, just uninstall the package [16:24] TheJH: beevits, apt-get remove node or so [16:25] beevits: Package node is not installed, so not removed [16:25] TheJH: beevits, hmm... [16:26] TheJH: beevits, you could just "rm /usr/bin/node"... but that'd be somewhat unclean... [16:26] halfhalo has joined the channel [16:26] TheJH: beevits, apt-get remove nodejs maybe? [16:26] alvaro_o has joined the channel [16:26] TheJH: beevits, I think node was something else than nodejs, at least in the debian repos [16:26] hotch: Is node a standard debian packaged app now? [16:27] hotch: if so, pretty awesome. [16:27] whse: It is in Arch :) [16:27] den512 has left the channel [16:27] whse: idk if Debian has caught up yet [16:27] beevits: ah. alright. apt-get remove nodejs seems to work fine [16:27] whse: their armel is shot though. [16:27] TheJH: it has a nodejs package, but probably still 0.4.x [16:27] strmpnk_ has joined the channel [16:28] TheJH: http://packages.debian.org/sid/nodejs is still at 0.4.12-1 [16:28] lulzilla has joined the channel [16:28] JaKWaC has joined the channel [16:28] lulzilla: what does vm in vm module abbreviate to? [16:29] mmalecki: virtual machine [16:29] TheJH: lulzilla, you mean "what does it stand for?"? [16:29] lulzilla: yes [16:29] TheJH: lulzilla, but don't let the name mislead you, it's not intended to run untrusted code [16:30] mmalecki: oh very true. [16:30] fangel has joined the channel [16:30] MooGoo: it is lies actually [16:30] TheJH: :D [16:30] MooGoo: since the "vm" is the same one running normal node code [16:31] TheJH: lulzilla, if you need to run untrusted code, ask MooGoo :D [16:31] Liquid-Silence has joined the channel [16:31] lulzilla: Ok [16:31] MooGoo: yea you can trust me to run your code [16:31] lulzilla: lol [16:31] lulzilla: vm.runInThisContext(code, [filename]) <-- what does filename refer to? [16:32] MooGoo: just that [16:32] MooGoo: a filename [16:32] lulzilla: ANY filename? [16:32] MooGoo: referenced when reporting errors [16:32] MooGoo: pretty much...dont think it matters [16:32] TheJH: lulzilla, in stack traces, it's shown as the files name. doesn't have to be real. [16:32] MooGoo: does it [16:32] lulzilla: ok, something like a virtual file name for that virtual code [16:32] MooGoo: since it gives lines and cols just as well when evaling a string without a filename [16:33] lulzilla: I see, thanks [16:33] maligree has joined the channel [16:33] MooGoo: actully [16:33] MooGoo: last I checked [16:33] MooGoo: the vm functions did not report the line number of syntax errors [16:34] TheJH: !admin eval var err__=try{require('vm').runInNewContext('wrong syntax', 'imagined')}catch(e){err__=e};err__ [16:34] TheJH: !admin eval var err__;try{require('vm').runInNewContext('wrong syntax', 'imagined')}catch(e){err__=e};err__ [16:34] jhbot: SyntaxError: Unexpected identifier [16:34] TheJH: !admin eval var err__;try{require('vm').runInNewContext('wrong syntax', 'imagined')}catch(e){err__=e};err__.stack [16:34] jhbot: SyntaxError: Unexpected identifier [16:34] jhbot: at eval at (/usr/local/src/thejh/nodebot2/nodebot/bot.coffee:583:9) [16:34] jhbot: at /usr/local/src/thejh/nodebot2/nodebot/bot.coffee:583:22 [16:34] jhbot: at /usr/local/src/thejh/nodebot2/nodebot/bot.coffee:946:14 [16:34] jhbot: at IRC. (/usr/local/src/thejh/nodebot2/nodebot/bot.coffee:1088:12) [16:34] jhbot: at EventEmitter. (native) [16:34] jhbot: at EventEmitter.emit (events.js:64:17) [16:34] jhbot: at IRC.parseMessage (/usr/local/src/thejh/nodebot2/nodebot/node_modules/irc-js/lib/irc.js:134:15) [16:34] jhbot: at Socket. (native) [16:34] jhbot: at Socket.emit (events.js:64:17) [16:34] jhbot: at Socket._onReadable (net.js:673:31) [16:35] Aikar: #fail [16:35] beevits: damn, this is sick. i removed the package and "node -v" still says 0.4.11 [16:35] TheJH: MooGoo, mhm, right [16:35] level09 has joined the channel [16:35] saikat has joined the channel [16:35] TheJH: beevits, "whereis node"? [16:35] TheJH: Aikar, what's a fail? [16:35] hellp has joined the channel [16:35] fzzzy has joined the channel [16:36] igl: beevits: which node [16:36] MooGoo: regular eval reports it fine....also crashes your app [16:37] devongovett has joined the channel [16:37] MooGoo: least I think.. [16:37] MooGoo: hm [16:37] igl: beevits: the shell cmd: $ which node [16:37] yozgrahame has joined the channel [16:37] magnetik has joined the channel [16:38] pizthewiz has joined the channel [16:38] Hounth has joined the channel [16:38] kuebk has left the channel [16:38] TheJH: beevits, huh? aren't you using windows? [16:39] ecin has joined the channel [16:39] mquin has left the channel [16:39] level09 has joined the channel [16:43] whse: TheJH: if he was using windows.. how would it be in apt ? [16:43] TheJH: whse, "-beevits- VERSION xchat 2.8.6-2 Windows Vista [Intel/2,19GHz]" [16:44] whse: ah, yes, but then he could just be in chat via xhat :p [16:44] jerrysv has joined the channel [16:44] whse: ACTION uses xchat2 on my W7 pc, but run 5 ARM plugs running Arch Linux ARM [16:44] whse: yes, currently on webchat [16:45] whse: im @work atm [16:45] jbrokc__ has joined the channel [16:45] jbrokc___ has joined the channel [16:46] beevits: TheJH no, ubuntu! ;) [16:48] TheJH: beevits, "whereis node"? [16:48] whse: :p at least a derivative [16:48] beevits: root@Ubuntu-1004-lucid-64-minimal ~ # whereis node [16:48] beevits: node: /usr/local/bin/node /usr/local/lib/node [16:48] beevits: root@Ubuntu-1004-lucid-64-minimal ~ # which node [16:48] beevits: /root/local/node/bin/node [16:48] beevits: root@Ubuntu-1004-lucid-64-minimal ~ # [16:48] whse: looks like it may have been a local compile then! [16:49] beevits: yes it is [16:49] jaequery has joined the channel [16:49] beevits: the git repo is in ~/node [16:49] whse: then the apt-get isnt going to de-install it [16:49] beevits: i did a git pull [16:49] beevits: git checkout v0.6.0 [16:49] beevits: ./configure [16:49] beevits: make [16:49] isaiah_ has joined the channel [16:49] beevits: make install [16:49] AaronMT has joined the channel [16:49] whse: you'd need to add it do ~/.profile or symlink [16:51] beevits: ~/.profile [16:51] beevits: export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules [16:51] _dc has joined the channel [16:51] whse: beevits: ok, but what about PATH ? [16:51] beevits: aaah [16:52] beevits: /usr/local/bin/node is 0.6 now [16:52] Revernd has joined the channel [16:54] joshkehn has left the channel [16:55] beevits: ok [16:56] beevits: i have 0.6.0 running in /usr/local/bin now [16:56] jocafa has joined the channel [16:56] beevits: but "which node" still says /usr/local/bin/node [16:56] beevits: i changed the NODE_PATH inside of my .profile [16:56] BillyBreen has joined the channel [16:56] jrogers has joined the channel [16:56] wbednarski has joined the channel [16:56] beevits: but $ node -v still says 0.4.11 [16:57] beevits: do I need to "reload" my updated .profile or something? [16:57] paul___: bevies i dunno what the problem is but i use nave or nvm to manage node [16:57] paul___: beevits* [16:57] paul___: you can grab them from npm [16:58] whse: beevits: source ~/.profile [17:00] ritch1 has joined the channel [17:00] ritch1 has left the channel [17:00] chrislorenz has joined the channel [17:01] TooTallNate has joined the channel [17:02] c4milo has joined the channel [17:02] Fabryz has joined the channel [17:02] Fabryz: anyone here uses a node.js + express + socket.io boilerplate? [17:02] Jay_Levitt has joined the channel [17:03] r04r has joined the channel [17:03] Fabryz: instead of building stuff every time from scratch [17:03] jtsnow has joined the channel [17:03] context: is that a 'i need one' or 'where can i find out' or just a useless general inquiry [17:03] socketio\test\80 has joined the channel [17:04] ryanrolds_w has joined the channel [17:04] Fabryz: it's a survey to see if there is something decent, or has sense to use [17:04] socketio\test\31 has joined the channel [17:05] Fabryz: on github there are 3, last by mape from august [17:05] alexdoom has joined the channel [17:05] mape: Fabryz: I use mine, but only for quick prototype kinda projects [17:05] socketio\test\87 has joined the channel [17:06] mape: but it makes me able to get something going in a couple minutes [17:06] daglees has joined the channel [17:06] Fabryz: ok [17:06] Fabryz: cloned it a minute ago, but saw I don't have redis on here for a quick test [17:07] mape: should be able to just swap the store [17:07] isaacs has joined the channel [17:07] slloyd has joined the channel [17:07] tomlion has joined the channel [17:08] r04r has joined the channel [17:08] r04r has joined the channel [17:09] caolanm has joined the channel [17:09] strmpnk_ has joined the channel [17:13] r04r has joined the channel [17:13] r04r has joined the channel [17:13] krit has joined the channel [17:14] emattias has joined the channel [17:15] jbrokc_ has joined the channel [17:15] jbrokc has joined the channel [17:16] jocafa: i freaking love it when code works on the first try [17:16] jocafa: nontrivial code. [17:16] adreams: jump for joy moment [17:16] travis has joined the channel [17:17] eignerchris has joined the channel [17:17] Isaiah has joined the channel [17:17] mike5w3c_ has joined the channel [17:17] mandric has joined the channel [17:18] termie has joined the channel [17:18] alphacow has joined the channel [17:18] hotch: jocafa++ [17:18] FIQ|screen has joined the channel [17:18] r04r has joined the channel [17:19] alphacow: quick node.js newbie question: just reading through tutorials, is there any conceptual difference between a "function argument" and a "function callback"? [17:21] dubenstein has joined the channel [17:21] TheJH: alphacow, apart from the fact that a callback must be a function and usually takes an error as the first argument, no [17:21] TheJH: (IMHO) [17:21] Liquid-Silence has joined the channel [17:22] thalll has joined the channel [17:22] alphacow: OK, so a callback is by definition a function [17:22] alphacow: thanks [17:23] lulzilla has joined the channel [17:23] Revernd has joined the channel [17:23] lulzilla: what's the difference between sandbox and context in vm? [17:23] r04r has joined the channel [17:25] dgathright has joined the channel [17:26] lzskiss has joined the channel [17:26] lzskiss: yo [17:26] klaemo has joined the channel [17:28] willwhite: kkaefer: I'm pipeing a large file from a fs readStream into a http.ClientRequest(). Node seems to buffer the whole file in memory and then transfer it. Do you know of any way to a) limit how much it buffers, and b) get updates on the transfer progress? [17:28] flagg0204 has joined the channel [17:29] _numbers has joined the channel [17:29] _numbers has left the channel [17:30] lukegb has joined the channel [17:31] hkjels has joined the channel [17:31] Fabryz has left the channel [17:32] maletor has joined the channel [17:32] irclogger_com has joined the channel [17:32] deedubs has joined the channel [17:33] jimmysparkle has joined the channel [17:34] davididas has joined the channel [17:34] stephank has joined the channel [17:35] patcito has joined the channel [17:35] saesh has joined the channel [17:39] ekryski has joined the channel [17:40] schwab has joined the channel [17:41] gr-eg has joined the channel [17:44] ekryski: isaacs: Seems like a few people are having this tar versioning issue. Any thoughts? I thought I read in another issue that this was temporary? [17:44] isaacs: ekryski: i'm not sure. [17:45] isaacs: ekryski: someone had this sort of random tar crash when using gnutar 1.15, which is garbage. [17:45] kkaefer: willwhite: hm, feels like it shouldn't buffer everything in memory... [17:45] brion has joined the channel [17:46] willwhite: kkaefer: it seems like this might be intentional after reading http://nodejs.org/docs/v0.4.12/api/net.html#socket.bufferSize [17:46] ekryski: isaacs: fair enough. Looks like https://github.com/isaacs/npm/issues/1655 is related as well. [17:46] kkaefer: ah, so it doesn't handle back pressure well [17:46] kenperkins: morning [17:46] kkaefer: can readstream handle pause/resume? [17:47] isaacs: willwhite: the fs.ReadStream doesn't put a limit on how much it reads. [17:47] mmalecki: isaacs: replicetion still fails :( [17:47] kkaefer: hmm, yeah, doesn't have a pause method it seems [17:47] isaacs: willwhite: so, if the fs will give it to node in one chunk, then you get one chunk. [17:47] isaacs: kkaefer: it handles backpressure [17:47] isaacs: and has pause [17:47] githogori has joined the channel [17:48] plutoniix has joined the channel [17:48] kkaefer: ok; I guess I shouldn't claim things I didn't actually check [17:48] isaacs: but if the os gives usthe file in one chunk, then we don't call read multiple times, or limit the size that we're willing to accept [17:48] HeikoR has joined the channel [17:48] isaacs: actually, i'm wrong, you can set the buffersize [17:48] isaacs: but if the file is smaler than the default buffersize, then it will grab thewhole thing, perhaps [17:49] fzzzy has joined the channel [17:49] isaacs: this.bufferSize = 64 * 1024; [17:49] RORgasm has joined the channel [17:49] RORgasm: hey guys [17:49] isaacs: so, if the file is < 64kb, it'll quite possibly get picked up in one read() [17:49] RORgasm: i just realeased an iphone/ipad2 app with a friend of mine.. i did the backend in node, he did the iOS stuff [17:50] tjgillies has joined the channel [17:50] willwhite: I'm seeing multiple 'data' events from the fs.ReadStream, but write() always succeeds. This is a 4 GB file and my node process uses 4 GB of RAM. [17:50] RORgasm: http://cyborgvisionapp.com [17:50] RORgasm: check it out :) [17:50] Wizek has joined the channel [17:50] kuebk^ has joined the channel [17:50] RORgasm: just got covered on thenextweb http://thenextweb.com/apps/2011/11/07/cyborg-vision-for-the-iphone-makes-the-world-look-like-terminator/ [17:50] RORgasm: man [17:50] RORgasm: we were having some server issues [17:50] vguerra has joined the channel [17:50] atourino has joined the channel [17:50] isaacs: ekryski: if you can figure out why your tar program is dying on that tarball, i'd love to hear it. [17:51] Carter has joined the channel [17:51] RORgasm: node server kept crashing coz one of the APIs we're using they were having load issues, so i had to resort to this: [17:51] RORgasm: process.on("uncaughtException", function(err) { [17:51] RORgasm: return console.log("**** UNCaught exception: ***" + JSON.stringify(err)); [17:51] RORgasm: }); [17:51] RORgasm: oops [17:51] RORgasm: sorry meant to pastie :) [17:51] ekryski: isaacs: I'll look into it. just checking to see if I can manually open it. [17:51] RORgasm: but yeah i know that's not good practice [17:52] RORgasm: wonder what everyone is using for monitoring their node apps are running [17:52] RORgasm: i'm using monit currently [17:52] mmalecki: isaacs: any ideas about this replications problems? [17:52] isaacs: mmalecki: nope, sorry [17:53] willwhite: isaacs: my guess is that a 4 GB file isn't being read in one chunk :) [17:53] devdazed: RORgasm: why did you let it get to "uncaughtException"? why couldn't you catch it on the response object? [17:54] mmalecki: isaacs: thanks anyway :). I will just use replicate and deal with it [17:54] RORgasm: devdazed: hey...long time no see :) [17:54] devdazed: RORgasm: yeah, I was in SF for a couple months [17:54] RORgasm: devdazed: i could've caught it earlier [17:54] devongovett has joined the channel [17:54] RORgasm: devdazed: it was more of a moment of panic while we were getting press and trying to figure out what was going on [17:54] RORgasm: devdazed: how's SF [17:55] RORgasm: devdazed: not sure i understand completely why the global uncaughtexception is a bad idea [17:55] RORgasm: devdazed: care to explain [17:55] jGoods has joined the channel [17:55] simenbrekken has joined the channel [17:55] travis_ has joined the channel [17:55] isaacs: RORgasm: so, that request that threw.. [17:55] devdazed: RORgasm: because at that point the server could be in an unstable satte [17:55] isaacs: what happened to it? [17:56] isaacs: did it have any outstanding requests to other servers that should be closed or cleaned up? [17:56] isaacs: was its callback trapping any global state that will now never be cleaned up? [17:56] devdazed: and by not letting it crash, it could be in some sort of limbo where the process exists but its not accepting connections [17:56] sylvinus_ has joined the channel [17:56] RORgasm: i hear that regarding the global uncaught exception [17:56] RORgasm: but not sure i understand what it means [17:56] RORgasm: unstable state [17:56] paul_uk has joined the channel [17:56] RORgasm: i mean i'm not really using any global vairables to store anything [17:56] isaacs: devdazed: well, the process may still be accepting connections, perhaps [17:57] RORgasm: if that's the concern [17:57] isaacs: RORgasm: sure, but you'll almost always end up leaking memory [17:57] RORgasm: oh [17:57] devdazed: isaacs: yeah, i guess so. [17:57] RORgasm: really [17:57] RORgasm: hmm [17:57] isaacs: not 100% of the time [17:57] isaacs: but close to it [17:57] RORgasm: really [17:57] RORgasm: why would it leak memory though [17:57] RORgasm: ? [17:57] isaacs: ugh. need code. hold on. [17:57] mies has joined the channel [17:58] schwab has joined the channel [17:58] maushu: Anyone knows how addon development works on windows? [17:58] isaacs: RORgasm: actually, i don't have time right now to create a demo for this [17:58] TheJH: maushu, maybe "painfully"? [17:58] paul_uk: hey all, anyone have some recent HA guides for Node? [17:58] isaacs: logging is good. [17:59] isaacs: not-crashing is less good. there was a huge thread on the ml about this a while back [17:59] RORgasm: isaacs: lol...no worreis [17:59] isaacs: where matt and mikeal and felix and i eventually found ourselves in violent agreement [17:59] RORgasm: hmm [17:59] ekryski: isaacs: of course I get an empty error message back from tar [17:59] devdazed: a violent agreement. haha [17:59] travis_ has joined the channel [17:59] RORgasm: isaacs: my exceptions looked something like this [18:00] JakeSays: so has anyone tried that gui debugger? [18:00] RORgasm: crap don't have them [18:00] RORgasm: isaacs: i see what you're saying though [18:00] devdazed: JakeSays: yeah, its not bad. [18:00] RORgasm: hmm [18:00] tjbell has joined the channel [18:01] soapyillusions has joined the channel [18:01] ekryski: JakeSays: It works pretty well. [18:01] garrensmith has joined the channel [18:02] arrrrr has joined the channel [18:02] garrensmith has joined the channel [18:03] ekryski: isaacs: tar: Error exit delayed from previous errors. That's it. I'll post the whole verbose output in the issue [18:03] isaacs: ekryski: awesome. [18:03] isaacs: ekryski: that means that it failed to unpack one or more files. [18:03] perezd has joined the channel [18:03] isaacs: ekryski: i think the -v tar output is in --silly, or in the npm-debug.log file. [18:03] JakeSays: devdazed, ekryski with .6? [18:04] devdazed: JakeSays: haven't had a chance to use it with .6. just 0.4 [18:04] ekryski: JakeSays: nope. 0.4.x [18:05] Morkel has joined the channel [18:05] mandric has joined the channel [18:05] alexdoom has joined the channel [18:05] Twelve-60` has joined the channel [18:05] fra000 has joined the channel [18:07] ekryski: isaacs: WTF. I tried running npm install juice for fun again and it worked. [18:07] broofa: Anyone know what might cause "Socket is not writable" exceptions on process.stdout? [18:07] isaacs: ekryski: that's annoying [18:07] arrrrr: hello, I have a perplexing problem that's probably more of a linux question than a node question. I'm using a node.js server to execute a subprocess using child_process.exec, but I'm getting permission errors even though the user the node server is running under is a member of a group that should have permission to do read and write the file. The only thing I can think of is either the subprocess is getting executed as a different [18:07] isaacs: and this is bsdtar, too, which is normally so nice... [18:07] broofa: ^^^ this in a little command line utility that's doing basic text stream processing. [18:07] isaacs: ekryski: what kind of filesystem is it? are you just on a normal mac or something, or is this on some kind of vm or mounted thingie? [18:08] ekryski: isaacs: totally vanilla OSX lion [18:08] isaacs: hm. super weird. [18:08] isaacs: well, back to writing tar in js... [18:08] broofa: ^ like :) [18:09] `3rdEden has joined the channel [18:09] ekryski: ya man. I dunno wtf happened. If it crops up again I'll update that issue with the npm log and ping you. [18:09] JakeSays: so if there isnt any native code in an addon, should it work under .6? [18:09] isaacs: ekryski: this is weird: x package/testdata/.tmp_trackerchecker2.html.51378~: (Empty error message) [18:09] isaacs: those don't look like normal files. [18:10] ekryski: ya. super weird. Unless maybe for some reason one of the modules just got updated?? [18:10] lazyshot has joined the channel [18:11] ultramagnus has joined the channel [18:11] mies has joined the channel [18:11] isaacs: oh, no, nvm, they're normal. [18:11] isaacs: -rw-r--r-- 0 chris staff 144032 Apr 12 2010 package/testdata/.tmp_trackerchecker2.html.75287~ [18:11] isaacs: ekryski: try this: npm view htmlparser@1.7.3 dist.tarball | xargs curl -s | tar vzt [18:12] isaacs: handy way to check the tarball on the registry for any oddities or errors ^ [18:12] themiddleman_itv has joined the channel [18:13] ekryski: isaacs: all good. Thanks for that command. So weird that it's not throwing errors. I'm gonna try reinstalling all my dependencies. [18:13] isaacs: k [18:13] isaacs: maybe `npm cache clean`, just for good measure [18:13] isaacs: in case you've got something weird in there [18:13] skunkape has joined the channel [18:14] ekryski: ok. give me a few secs [18:14] jetienne has joined the channel [18:14] arrrrr: child_process.exec should run the child process as the same user as the user currently running the node.js server right? [18:14] maletor: I need to create a node.js server to poll an API and send POST requests to my server. Is node the right solution? [18:15] _dc has left the channel [18:16] tilgovi has joined the channel [18:16] tilgovi has joined the channel [18:16] JakeSays: maletor: not sure how else you'd create a node.js server w/o node.js [18:17] maletor: lol [18:17] amitayh has joined the channel [18:17] langworthy has joined the channel [18:18] skunkape: I'm having major issues today. Archlinux pachage maintainer updated nodejs package to 0.6 and now npm and deps are broke. is node-0.6 really latest stable now (according to thread in mailing list)? [18:18] tjbell has joined the channel [18:18] kkaefer: https://gist.github.com/70e73a6bfdcb2fd3748d [18:18] TheJH: skunkape, yup [18:18] kkaefer: any idea why node_crypto.h is involved here? [18:19] kkaefer: it's not even included in this project [18:19] ekryski: isaacs: So it worked just fine. That is super fucked up. This sucks that I don't have anything constructive to come out of this. [18:20] maletor: How can I use Node to poll something every 15 seconds? [18:20] ekryski: isaacs: like I said if it crops up again. I'll post to that closed issue and ping you. Thanks for the help I guess... [18:20] strmpnk_ has joined the channel [18:21] sarlalian has joined the channel [18:21] paul_uk: hey, can anyone recommend how to horizontally scale node? [18:21] TheJH: maletor, setInterval(f, 15000) [18:22] tjbell has joined the channel [18:23] gkatsev: n o d e ← horizontally scaled node. :P [18:24] StanlySoManly has joined the channel [18:24] martin_sunset has joined the channel [18:24] strmpnk_ has joined the channel [18:27] trotter has joined the channel [18:27] nils_r has joined the channel [18:27] deedubs: paul_uk: cluster of LB'd node processes that take incoming requests push them onto a queue and wait [18:28] MatthewS has joined the channel [18:28] deedubs: massive amount of render's that pop requests off the queue, render them, and push the responses back to the frontends [18:28] paul_uk: deedubs, yeah something like that i guess [18:29] littleroom has joined the channel [18:29] deedubs: or more simply just load balance between a bunch of node processes [18:29] littleroom: Hello all [18:29] paul_uk: deedubs, yeah that is really what im looking for [18:29] littleroom: Anyone getting a build error for node v0.6.0 on os x? [18:29] paul_uk: i've seen node-http-proxy and not sure if that's the way to go [18:29] dambalah has joined the channel [18:30] strmpnk_ has joined the channel [18:30] dambalah has left the channel [18:30] deedubs: paul_uk: do you use web sockets? [18:30] paul_uk: deedubs, yeah cos i posted the same Q in socket.io :P [18:30] tjh: paul_uk if you're not using proxy features there's not really any reason to [18:30] strmpnk_ has joined the channel [18:31] paul_uk: tjh, well im not sure what to use, never done this before with node [18:32] jsurfer has joined the channel [18:34] paeva has joined the channel [18:35] paeva has left the channel [18:35] skunkape: can someone suggest a package similar to spark2 that is compat with node-0.6? after upgrading, it doesn't seem to work anymore... [18:35] rio{ has joined the channel [18:36] dubenstein has joined the channel [18:36] hellp has joined the channel [18:37] wankdanker has joined the channel [18:37] jhbot has joined the channel [18:38] jetienne has joined the channel [18:39] grampajoe has joined the channel [18:39] tillberg has joined the channel [18:40] Jay_Levitt has joined the channel [18:41] chrislorenz has joined the channel [18:41] CIA-109: node: 03Ryan Dahl 07master * ra936681 10/ doc/index.html : Remove v0.4 links from index.html - http://git.io/xoWzfg [18:41] dnyy has joined the channel [18:41] ultramagnus has joined the channel [18:43] wankdanker has joined the channel [18:43] dilvie has joined the channel [18:44] CIA-109: node: 03Ryan Dahl 07master * r6a83df0 10/ doc/index.html : Update multi-core text on index.html - http://git.io/pgrNww [18:45] svnlto has joined the channel [18:45] neshaug has joined the channel [18:47] zeade has joined the channel [18:48] briancray has joined the channel [18:49] jocafa: man i am on a roll today. i had written gobs of code that i was unable to test 'til just a little while ago. only had a couple of errors. everything is working :D [18:49] btipling has joined the channel [18:49] rio{: well you did have a couple of errors [18:50] paul_uk has left the channel [18:50] spcshpopr8r has joined the channel [18:50] rio{: ;) [18:50] jocafa: aye but they were minor :) [18:50] stu64 has joined the channel [18:51] tjbell has joined the channel [18:52] diogogmt has joined the channel [18:53] ryan0x2 has joined the channel [18:53] stu64 has left the channel [18:53] stu64 has joined the channel [18:54] jbrokc has joined the channel [18:54] janiczek has joined the channel [18:54] markdaws has joined the channel [18:55] tisba has joined the channel [18:55] blup has joined the channel [18:56] travis_ has joined the channel [18:56] blup_ has joined the channel [18:56] christophsturm has joined the channel [18:56] tjbell has joined the channel [18:56] AvianFlu has joined the channel [18:57] stu64 has joined the channel [18:57] schwab has joined the channel [18:58] sylvinus_ has joined the channel [18:59] piscisaureus has joined the channel [18:59] pizthewiz has joined the channel [18:59] perezd_ has joined the channel [19:00] ryan0x2 has joined the channel [19:00] seb` has joined the channel [19:00] darinc has joined the channel [19:01] jxson has joined the channel [19:01] parshap has joined the channel [19:02] lz has joined the channel [19:02] christophsturm: can someone explain how node cluster support works? http://nodejs.org/docs/v0.6.0/api/cluster.html in that demo code only the workers open the http port. shouldnt the master open the port and then pass that port on to the workers? [19:03] jhurliman has joined the channel [19:03] storrgie has joined the channel [19:03] jxson has joined the channel [19:04] chrisdickinson has joined the channel [19:04] wankdanker has joined the channel [19:05] neilk_ has joined the channel [19:05] vipaca has joined the channel [19:05] vipaca has joined the channel [19:05] tjh: christophsturm it does that for you [19:05] tjh: christophsturm check out handleWorkerMessage [19:06] christophsturm: ah interesting [19:06] herbySk has joined the channel [19:08] christophsturm: why can't it just do a real fork() where it doenst start a whole new node process from scratch? [19:08] mmalecki: christophsturm++ [19:08] mmalecki: I would love it as well [19:08] mmalecki: christophsturm: daemon.node does that, though [19:08] tjh: christophsturm windows [19:09] mmalecki: use indexzero's fork [19:09] mmalecki: fuck. [19:09] strmpnk_ has joined the channel [19:09] darinc has joined the channel [19:09] mmalecki: that's why we can't have nice things. [19:09] mmalecki: because of fucking windows. [19:09] p1d has joined the channel [19:10] tjh: little need for plain-old fork() really, not a huge deal [19:10] Epeli has joined the channel [19:10] mmalecki: tjh: daemons [19:10] mmalecki: tjh: btw, you're the TJ? [19:10] tjh: just fork/exec like node lets you [19:11] tjh: yeah linkinus just selects a new name for me if the nick hasnt timed out etc [19:11] christophsturm: so windows is the reason, or does v8 not like to be forked? [19:11] neilk_ has joined the channel [19:11] tjh: christophsturm i imagine it's a windows thing (/me knows little about windows) but it's also [19:12] benvie: pretty sure it's cause windows has no fork [19:12] tjh: with the event loop, i think there's a note about forks [19:12] tjh: in the libev docs [19:12] piscisaureus has joined the channel [19:13] tjh: "Libeio uses pthreads, so this applies, and makes using fork hard for anything but relatively fork + exec uses" [19:13] benvie: they can implement a fakish fork in windows because V8 enables reconstructing things in the way needed [19:13] benvie: the VM anyway [19:13] Circlefusion has joined the channel [19:14] balaa has joined the channel [19:16] jetienne has joined the channel [19:16] aron_ has joined the channel [19:16] dget has joined the channel [19:18] maletor: How do I include jQuery in my Heroku Node.js app? [19:19] davidascher has joined the channel [19:19] tjgillies has joined the channel [19:19] darinc has joined the channel [19:20] termie has joined the channel [19:21] saikat has joined the channel [19:22] hkjels_ has joined the channel [19:23] maletor: nvm [19:23] kevwil has joined the channel [19:24] aaronmcadam has joined the channel [19:24] hkjels_ has joined the channel [19:26] jbrokc has joined the channel [19:26] indexzero has joined the channel [19:26] magnetik_ has joined the channel [19:26] travis_ has joined the channel [19:30] travis_ has joined the channel [19:32] isaacs has joined the channel [19:32] balaa has joined the channel [19:32] r04r has joined the channel [19:32] r04r has joined the channel [19:34] FearTheCowboy has joined the channel [19:35] isaacs: tjh: hey, are you tjholowaychuk? [19:35] tjh: yup [19:35] isaacs: nice nick [19:35] isaacs: i notice that you put { node: '>= 0.4.1 < 0.7.0' } as the engines field in express [19:35] isaacs: you might want to make that <0.7.0- [19:36] isaacs: since "0.7.0-pre" is < 0.7.0 [19:36] tjh: ah right [19:36] tjh: damn [19:36] isaacs: x.y.z- is the lowest possible x.y.z [19:36] jimmysparkle has joined the channel [19:36] jbpros has joined the channel [19:36] wankdanker: wink_: ty? [19:36] isaacs: since "-" < "-pre" or "alpha" or whatever [19:36] franciscallo has joined the channel [19:37] isaacs: tjh: i think you might be able to just do something like this: "~0.4.1 || 0.5 || 0.6" [19:37] isaacs: tjh: since it seems like that's what you are trying to say [19:37] sylvinus_ has joined the channel [19:37] mikl has joined the channel [19:37] FearTheCowboy: Hey there; I'm working on building an installer for npm on Windows (with CoApp) -- I've got a couple questions about how npm on windows works... [19:37] jetienne has joined the channel [19:37] TheJH: tjh, doesn't that nick belong to someone else? nickserv says tjh was "-NickServ- Last seen : Nov 07 04:31:52 2011 (15 hours, 5 minutes, 6 seconds ago)" [19:38] tjh: TheJH i must have disconnected earlier, linkinus assigns a new one [19:39] whitman has joined the channel [19:39] harthur has joined the channel [19:39] darinc1 has joined the channel [19:39] mehlah has joined the channel [19:41] c4milo: Marak: yt? [19:41] wbednarski has joined the channel [19:42] zz_tjgillies has joined the channel [19:42] reid has joined the channel [19:43] stu64 has joined the channel [19:48] Mad_ has joined the channel [19:49] sh1mmer has joined the channel [19:49] Mad_: anyone familiar with thisWaf: Leaving directory `/usr/local/src/node-v0.4.8/build' Build failed: -> task failed (err #1): {task: cxx node_crypto.cc -> node_crypto_4.o} [19:50] darinc has joined the channel [19:50] bosphorus has joined the channel [19:50] sh1mmer: Mad_: start by using 0.6 [19:51] sh1mmer: Mad_: it also looks like it's something to do with binding openssl [19:51] Mad_: ok, will do. thanks! [19:51] sh1mmer: so it's possible you don't have the right sys version, but start with 0.6 and then come back if you get the error still [19:51] Mad_: thanks! [19:53] m00p has joined the channel [19:53] dambalah has joined the channel [19:53] martin_sunset has joined the channel [19:53] tomyan has joined the channel [19:53] flagg0204 has joined the channel [19:54] sfoster has joined the channel [19:54] jesswa has joined the channel [19:54] jesswa: is this the right place to ask questions related to npm? [19:54] devongovett has joined the channel [19:55] jbrokc: isaacs: i mentioned a pattern a while ago where you do && and || on newlines to show the different levels. for multi-line if ( … ) and function ( … ) expressions, I find that the scope inside gets indented another level in and it gets kinda weird. is there a different approach? [19:55] blueadept` has joined the channel [19:55] sh1mmer: jesswa: yes [19:55] maushu_ has joined the channel [19:55] amiller has joined the channel [19:56] Me1000 has joined the channel [19:57] jesswa: great, so I'm trying to reinstall node and npm on OSX using MacPorts - everything seems to finish properly, but if I run the npm command, I get "-bash: /usr/bin/npm: No such file or directory" [19:57] mmalecki: jesswa: exit from bash and run it again [19:57] jbpros has joined the channel [19:57] jesswa: wow [19:57] jesswa: hahah, that was it?!? [19:58] mmalecki: well, it's kind of stupid of bash to do this kind of caching [19:58] jesswa: thanks mmalecki - been stuck for an hour [19:58] mmalecki: jesswa: :) [19:58] AvianFlu has joined the channel [19:59] indexzero has joined the channel [19:59] dmorlim has joined the channel [20:00] darinc has joined the channel [20:00] sh1mmer: it's not caching [20:00] sh1mmer: it probably just updated the path [20:00] sh1mmer: and didn't recall your profile [20:00] tvw has joined the channel [20:00] sh1mmer: or something like that [20:00] jesswa: yea, I didn't know I had to exit in order for the path updates to take effect [20:00] mmalecki: sh1mmer: no, it's caching actually [20:00] sh1mmer: really? [20:00] sh1mmer: where? [20:01] mmalecki: like, it remembere where it found this file [20:01] sh1mmer: symlink update? [20:01] mmalecki: sh1mmer: second, I'll point you to code [20:01] sh1mmer: thanks [20:02] sh1mmer: I'm really interested [20:03] thinkt4nk has joined the channel [20:05] herbySk74 has joined the channel [20:06] schwab has joined the channel [20:07] kkszysiu has joined the channel [20:11] mmalecki: sh1mmer: sorry, had a standup, looking into it now [20:11] sh1mmer: np [20:13] kersny has joined the channel [20:13] JakeSays: so i want to re-run the part of the build that runs nodejs2c. can i do that w/o having gyp rebuild the project files? [20:14] mmalecki: sh1mmer: findcmd.c:300 [20:14] saikat has joined the channel [20:14] mmalecki: sh1mmer: it checks for check_hashed_filenames variable. if it's defined, it does a cache lookup [20:15] sh1mmer: right [20:16] strmpnk_ has joined the channel [20:16] sh1mmer: mmalecki: it's surprising to me there doesn't seem to be a flush method [20:17] strmpnk_ has joined the channel [20:17] travis_ has joined the channel [20:17] coreb has joined the channel [20:18] harthur has joined the channel [20:18] travis_ has joined the channel [20:18] mmalecki: sh1mmer: yeah, it's a bit silly [20:18] markwubben has joined the channel [20:18] mmalecki: especially in an interactive shell [20:18] mmalecki: when you actually don't need it [20:19] mmalecki: I would say that it's a leftover from times when HDs were a lot slower [20:20] postwait has joined the channel [20:21] balaa has joined the channel [20:22] tjbell has joined the channel [20:22] arcanis has joined the channel [20:23] f1gm3nt has joined the channel [20:24] sylvinus has joined the channel [20:26] jbrokc has joined the channel [20:26] mrshogun has joined the channel [20:27] xicubed has joined the channel [20:34] saikat has joined the channel [20:36] liar has joined the channel [20:38] balaa has joined the channel [20:38] lukegb has joined the channel [20:40] errordeveloper has joined the channel [20:41] kkaefer: so I'm seeing a difference between ev_async and uv_async: ev_async waits until all sent events have been processed before calling the After function while uv_async doesn't [20:41] kkaefer: does that sound like a plausible behavior? [20:42] dshaw_ has joined the channel [20:43] _1marc has joined the channel [20:43] brion has joined the channel [20:43] brion has joined the channel [20:43] tjbell has joined the channel [20:44] djcoin has joined the channel [20:46] lauxley1 has joined the channel [20:46] Pilate has joined the channel [20:47] reid has joined the channel [20:47] tomtom_ has joined the channel [20:49] tomtom_: Hi all, I've got a newbie node.js question that I hope someone can help me with. [20:49] TheJH: tomtom_, just ask :) [20:50] travis_ has joined the channel [20:50] olivier has joined the channel [20:51] josephg has joined the channel [20:51] captain_morgan has joined the channel [20:51] FearTheCowboy: is there a 'debug' or 'log' mode available with npm? I'm trying to use it on Windows, and its just slowly growing in memory usage without actually finishing. [20:51] tomtom_: Thx. If I have a global variable say total and I start an http server that increments by 1 for every new connection why does it seem to the variable hop by 2 values instead of one. [20:52] maligree_ has joined the channel [20:52] aheckmann has joined the channel [20:53] TheJH: tomtom_, browsers often request the /favicon path without being told so [20:53] charlenopires has joined the channel [20:53] TheJH: tomtom_, so you surf to / and it fetches / and /favicon [20:53] swaj: tomtom_: I'm willing to bet your browser is requesting /favicon.ico :P [20:53] tomtom_: ahh great I thought it must be something like that [20:53] TheJH: tomtom_, try logging the requested URLs to the console [20:53] swaj: or use curl to make the request instead of a browser :) [20:53] coreb: http://nodejs.org/docs/latest/api/child_processes.html#child.stdin how do I do a ctrl+d (signal EOF)? [20:54] lukegb has joined the channel [20:55] martin_sunset has joined the channel [20:55] MooGoo: child.stdin.end() maybe [20:55] nils_r1 has joined the channel [20:56] igl: process.kill(pid) [20:56] yozgrahame has joined the channel [20:57] coreb: MooGoo: it says that often terminates the process - eof should tell the process to stop reading and start processing [20:59] kkszysiu has joined the channel [20:59] laprice has joined the channel [20:59] springmeyer has joined the channel [21:00] herbySk has joined the channel [21:00] MooGoo: im no nix expert...but I'd assume that many proccess terminate on EOF because they choose to [21:00] darinc has joined the channel [21:00] josephg: thats correct. [21:00] tilgovi has joined the channel [21:00] tilgovi has joined the channel [21:01] josephg: I think child.stdin.end() is the equivalent of ctrl+D [21:01] blup_ has joined the channel [21:01] swaj: Ctrl + D = EOT = ascii character 4 [21:01] swaj: you could try sending the ascii code [21:02] MooGoo: I think the control character used to send EOF by most terminals is not relevant [21:03] balaa has joined the channel [21:03] coreb: MooGoo: how's that [21:05] MooGoo: correct me if I'm wrong, but I'm pretty sure EOF is a state associated with a stream [21:05] MooGoo: not a character [21:05] MooGoo: unless C bails on a null byte [21:06] tomlion_ has joined the channel [21:06] vipaca has joined the channel [21:06] vipaca has joined the channel [21:06] coreb: control characters; http://www.robelle.com/smugbook/ascii.html [21:07] coreb: how do I cast from an ascii int to get a char or string in js, anyway? [21:07] swaj: EOF/EOT is ascii character 4 (http://en.wikipedia.org/wiki/End-of-file). I'm wondering if he did something like client.end("\004", "ascii"); if that would work. [21:07] swaj: child.end* [21:08] swaj: if what he's writing to is specifically looking for that control code [21:08] josephg: sounds easy to try. [21:09] MooGoo: control characters are non-printing [21:09] MooGoo: they signal the terminal to do something special [21:09] MooGoo: depending on the character used [21:09] aaronj1335_ has joined the channel [21:09] felixge has joined the channel [21:09] felixge has joined the channel [21:10] swaj: I don't think the child process he's writing to has anything to do with the terminal. [21:10] MooGoo: in the case of EOT or EOF, it signals stdin.end() [21:10] coreb: I'll try it out [21:10] MooGoo: bascily [21:11] MooGoo: well they are not nesecairly printing [21:11] MooGoo: to be more accurate [21:11] zmbmartin has joined the channel [21:14] DrHeiter23 has joined the channel [21:15] DrHeiter23: trying to scrape a page using nodejs + jsdom, want to scrape paeg after javascript execution is done but I have a feeling it's failing and read on google groups that it could be because the page includes scripts with relative url's so the jsdom env is failing to load them. Is there a fix to this or better way to approach the issue? [21:16] EyePulp has joined the channel [21:16] MooGoo: the better way...would be to investigate how the page retrives the data you need, and request that directly [21:17] dshaw_1 has joined the channel [21:17] cognominal_ has joined the channel [21:17] swaj: phantomjs might serve you a bit better, too. You could load up jQuery and do the traditional ready stuff. [21:18] adrianmg has joined the channel [21:18] swaj: http://www.phantomjs.org/ headless webkit, pure awesome. scrape to your heart's content :P [21:18] MooGoo: sounds like total overkill for scraping [21:19] swaj: (we use it to rasterize highcharts stuff) [21:19] swaj: not if what he's trying to scrape is being loaded via AJAX and he needs the DOM to actually work... [21:19] adrianmg has left the channel [21:19] MooGoo: this is what libxmljs is for [21:19] MooGoo: or something similar [21:19] DrHeiter23: yeah i've used phantomjs in the past [21:20] mmalecki: I would suggest looking for an API first [21:20] DrHeiter23: ended up actually just running headless QTWebKit myself [21:20] DrHeiter23: there are some issues with phantomjs [21:20] MooGoo: dunno if things have changed, but jsdom was unuseably slow last time I tried it [21:20] DrHeiter23: in a nodejs project needed to do some scraping and was trying to keep it all in nodejs [21:20] maletor: How can I parse XML in Node.js from an external API call? [21:20] DrHeiter23: it seems fast, just having this issue [21:21] MooGoo: just dig into the page a bit [21:21] swaj: MooGoo: libxmljs isn't going to load up the dom and do the AJAX stuff like a browser would. [21:21] MooGoo: you should be able to get the data more directly [21:21] DrHeiter23: yeah im doing that now, it's a bit complicated.. going to try including the absolute src's manually [21:21] MooGoo: no...but monitoring XHR activity on a web page is easy, so you can just directly request whatever XHR call gets the data you need [21:22] DrHeiter23: hmm yeah [21:22] swaj: true nuff. Use the firebug or webkit's network debugger to see where the XHR stuff is going [21:22] darinc has left the channel [21:22] swaj: -the* [21:23] cjm has joined the channel [21:24] astropirate has joined the channel [21:25] darinc has joined the channel [21:25] MonsieurLu has joined the channel [21:26] shipit has joined the channel [21:28] DrHeiter23: weird now im really confused, according to firebug it doesn't make any XHR's [21:28] DrHeiter23: but the data isn't there initially [21:28] DrHeiter23: :( [21:28] travis_ has joined the channel [21:28] N0va` has joined the channel [21:29] Lingerance: Did you enable the net consonle? [21:29] dambalah has left the channel [21:29] DrHeiter23: yeah works for something like cnn.com [21:31] neurodrone has joined the channel [21:31] travis_ has joined the channel [21:33] MooGoo: could be using an iframe [21:33] balaa has joined the channel [21:34] DrHeiter23: http://www.spokeo.com/search?q=John%20Smith <-- if you have a minute can you peek at that and see where/how the results get filled in..the "3775 found" for Alabama for instance [21:35] torm3nt has joined the channel [21:35] N0va has joined the channel [21:35] travis_ has joined the channel [21:35] cognominal has joined the channel [21:36] piscisaureus has joined the channel [21:37] davidbanham has joined the channel [21:39] thalll has joined the channel [21:39] JakeSays: geez. is this valid js? var origin = paper.view.bounds.bottomCenter - [0,350]; [21:40] tjh: JakeSays yes [21:41] JakeSays: huh. [21:41] tjh: why wouldn't it be [21:41] neilk_ has joined the channel [21:41] JakeSays: bottomCenter is an object [21:41] Sorella has joined the channel [21:41] JakeSays: bottomCenter: { x: 4800, y: 14400 } [21:41] tjh: valueOf [21:42] tjh: depends on the object really [21:42] swaj: DrHeiter23: there's a