[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 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]) (/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 tag at the bottom of the page that has all that stuff
[21:42] swaj: DrHeiter23: a bunch of calls to the RG() method
[21:42] JakeSays: tjh: thats the object: {x: 4800, y: 14400}
[21:42] tjh: k well then no
[21:43] Swizec_ has joined the channel
[21:43] swaj: DrHeiter23: RG(38020,3775,'State','Alabama',0,0, false, 'Alabama')
[21:44] joshgillies has joined the channel
[21:44] skunkape: Hello, I'm trying to use cluster the "recommended" way however, I am unable to start the server. I get the error, "TypeError: object is not a function" on the line I call cluster('./app.js').
[21:44] atourino has joined the channel
[21:44] skunkape: My code is here: http://pastebin.com/79acBEeu
[21:45] skunkape: If I require the app.js and set debugger, I can see my app object... I'm not really sure what's wrong.
[21:45] tjh: skunkape "cluster" is a core module now, so if you're using 0.6.x
[21:45] tjh: you'll get that error
[21:45] DrHeiter23: swaj: wow not sure how I missed that - thanks
[21:46] swaj: DrHeiter23: np :P
[21:46] Industrial: Is there something for magaging 'virtual environments' for NodeJS (like RVM for Ruby of virtualenv for Python). I don't mean only the NPM packages (since those are local already) but also the NodeJS installation.
[21:46] isaacs: Industrial: nave
[21:46] Industrial: thanks
[21:46] isaacs: Industrial: or nvm, n, and a few others
[21:46] isaacs: but i wrote nave, so i support and recommend that one :)
[21:46] Industrial: heh, k
[21:46] devaholic has joined the channel
[21:46] DrHeiter23: still not easy to scrape because it's jscript and not just a dom -sucks.
[21:47] Industrial: Gunna try and play with Node Window Manager, which uses 0.4.x, but I want 0.5 (0.6?) for my web stuff
[21:47] JakeSays: geez. when did js get operator overloading??
[21:47] skunkape: tjh, thanks. I'm using 0.6 so what do I do? Can you suggest some docs or sample for me to review? I try to find "cluster" in node-0.6 documentation but I see nothing...
[21:47] swaj: 0.6 is out, don't use 0.5.x :P
[21:47] TheJH: JakeSays, huh?
[21:47] echoSMILE has joined the channel
[21:47] swaj: skunkape: http://nodejs.org/docs/v0.6.0/api/cluster.html
[21:47] tjh: skunkape: learnboost/cluster is a completely different library
[21:47] echoSMILE has joined the channel
[21:47] tjh: (and wont work with 0.6.0)
[21:48] JakeSays: TheJH: i'm trying to understand a piece of js.. it looks like they're subtracting two objects
[21:48] darinc has left the channel
[21:48] TheJH: >> 1
[21:48] TheJH: > 1
[21:48] TheJH: .. 1
[21:48] catb0t: 1
[21:48] skunkape: swaj, thanks. I didn't see that on the "all in one page" docs...
[21:48] swaj: skunkape: it's the last subject covered, so it'll be close to the bottom
[21:48] TheJH: .. {valueOf: function(){return 5}} - {valueOf: function(){return 4}}
[21:48] catb0t: Exception: SyntaxError: Unexpected token (
[21:48] TheJH: .. ({valueOf: function(){return 5}} - {valueOf: function(){return 4}})
[21:48] catb0t: 1
[21:49] TheJH: JakeSays, ^
[21:49] TheJH: JakeSays, subtraction calls valueOf on objects
[21:49] skunkape: swaj, it's def not here: http://nodejs.org/docs/v0.6.0/api/all.html
[21:50] xicubed_ has joined the channel
[21:50] swaj: hah, good catch, you're right
[21:50] JakeSays: TheJH: wow. i had no idea.
[21:51] JakeSays: well thats a fine mess.
[21:51] mraleph has joined the channel
[21:51] TheJH: JakeSays, hmm, why?
[21:51] JakeSays: because it doesnt seem to be working.
[21:51] JakeSays: this: var origin = paper.view.bounds.bottomCenter - [0,350];
[21:52] JakeSays: returns NaN
[21:52] swaj: isaacs: did you guys notice that? 0.6.0 api "all in one page" docs don't show the cluster documentation.
[21:52] JakeSays: when bottomCenter is { x: 4800, y: 14400 }
[21:52] skunkape: tjh, I'm looking for something like spark and I discovered learnboost/cluster. Is there something that provides the reload feature that I can use for node-0.6?
[21:52] mraleph has joined the channel
[21:52] TheJH: JakeSays, btw: that's why you can't optimize `;a-0;` to nothing :D
[21:52] tjh: skunkape 0.6.0 has that stuff in core now
[21:52] tjh: it's just minimal
[21:52] tjh: but no everythign else will be broken
[21:53] sirdancealot has joined the channel
[21:53] tjh: im working on the successor to learnboost/cluster
[21:53] skm has joined the channel
[21:53] tjh: though I just saw that the npm name is taken already haha
[21:53] tjh: grrr
[21:53] echoSMILE has joined the channel
[21:54] isaacs: tjh: which one?
[21:54] tjh: cloud
[21:54] JakeSays: tjh: hey are you the tjh who did node-canvas?
[21:54] tjh: JakeSays yup
[21:55] armagad has joined the channel
[21:55] armagad has left the channel
[21:55] JakeSays: tjh: ah very cool. i'm using it on node .6
[21:55] tbranyen: i'm the tjh who made the canvas
[21:55] tjh: is it working ok? I haven't tested it much with 0.6.0
[21:55] tjh: seemed ok
[21:55] coreb: proc.stdin.end(); worked fine
[21:55] JakeSays: i needed to make one change (this is v.6 on windows)
[21:56] JakeSays: tjh: had to re-do the EIO_ stuff on Canvas
[21:56] coreb: but spawn and writing to stdin was a lot slower than writing to a file, and using that file as input to the process with exec
[21:56] tjh: JakeSays ah ok cool
[21:56] isaacs: tjh: i think we need to come up wiht some kind of statute of limitations on npm names.
[21:56] JakeSays: but other than that it seems to work great. i'm going to extend it to generate pdfs and svgs
[21:57] isaacs: like, a year without an update to a 0.0 project means your name is now up for grabs again.
[21:57] tjh: isaacs haha yeah that might be reasonable
[21:57] tjh: i could go with cloudjs or something
[21:57] tjh: JakeSays awesome, we'll definitely be using it for pdfs, but not yet
[21:58] CarterL has joined the channel
[21:58] deedubs: isaacs: +1 to that idea. or a way to dispute a name. an email is sent to the current owner and if they don't click the 'I still want this' link then it gets retired
[21:58] travis_ has joined the channel
[21:59] tjh: i'll ask him if he really wants/needs it
[21:59] tjh: doesn't look overly used
[22:00] Swizec has joined the channel
[22:00] isaacs: deedubs: it'd have to also not be a dependency.
[22:00] tbranyen: ACTION registers remaining one two and three letter names
[22:00] deedubs: true
[22:00] tjbell has joined the channel
[22:00] wink_: and like that, npm name squatting was born
[22:01] swaj: man, the search.npmjs.org fonts look terrible in chrome on Windows. Firefox and IE both look great. Strange that chrome would screw up the fonts so bad.
[22:01] JakeSays: ACTION sees an npm name market on ebay
[22:02] JakeSays: so this whole valueOf thing is really messing with my head
[22:02] travis_ has joined the channel
[22:03] tjh: JakeSays haha magic sucks hey :p
[22:03] tjh: boo magic
[22:03] Lingerance: It's the same as .toString() except it triggers at different conditions.
[22:03] JakeSays: yeah big time
[22:03] isaacs: JakeSays: what valueOf thing?
[22:03] JakeSays: isaacs: var origin = paper.view.bounds.bottomCenter - [0,350];
[22:03] JakeSays: origin = NaN
[22:03] Lingerance: .. {valueOf: function() { return 5 }} + 5
[22:03] catb0t: Exception: SyntaxError: Unexpected token (
[22:03] tjh: JakeSays that's just what you get
[22:03] tjh: if you -
[22:03] Lingerance: .. ({valueOf: function() { return 5 }}) + 5
[22:03] tjh: an object
[22:03] catb0t: 10
[22:03] isaacs: JakeSays: why are you subtracting an array from a number?
[22:03] JakeSays: where in a browser it doesnt = NaN
[22:04] balaa_ has joined the channel
[22:04] isaacs: .. parseInt([0, 350])
[22:04] catb0t: 0
[22:04] JakeSays: isaacs: i didnt write this. just trying to port it to node
[22:04] isaacs: JakeSays: what is paper.view.bounds.bottomCenter
[22:04] isaacs: ?
[22:04] JakeSays: its a Point from paper.js
[22:04] swaj: probably another point?
[22:04] swaj: doh, too late :P
[22:05] JakeSays: isaacs: bottomCenter: { x: 4800, y: 14400 }
[22:05] swaj: .. ({ x: 4800, y: 14000 } - [0,350])
[22:05] catb0t: NaN
[22:05] saikat has joined the channel
[22:06] travis_ has joined the channel
[22:06] JKarsrud: Anyone know if this is a problem with buster or node-glob? https://gist.github.com/50678cb6945ad6b3afe1
[22:06] TheJH: v8-knowers question: is this true? http://groups.google.com/group/nodejs/msg/a87e6ef936fda1c8
[22:06] JakeSays: swaj: heh. thats exactly what i'm seeing.
[22:06] TheJH: that'd make an epic increase in node startup time possible
[22:06] dshaw_ has joined the channel
[22:07] mmalecki: isaacs: that song you tweeted is awesome.
[22:07] mmalecki: even though I don't listen to this kind of music
[22:07] tomlion has joined the channel
[22:07] isaacs: mia is good for coding
[22:07] __class__ has joined the channel
[22:08] edenli has joined the channel
[22:09] eephillip has left the channel
[22:09] TheJH: mmalecki, isaacs, MEEEEH! why can we NEVER watch the good stuff on youtube in germany?
[22:09] eephillip has joined the channel
[22:09] TheJH: "Leider ist dieses Video in Deutschland nicht verfügbar, da es Musik enthalten könnte, für die die GEMA die erforderlichen Musikrechte nicht eingeräumt hat. Das tut uns leid."
[22:09] TheJH: translated something like "we can't show this to you in germany, the GEMA doesn't allow us to do it. We're sorry"
[22:10] mmalecki: TheJH: GEMA?
[22:10] isaacs: TheJH: /o\
[22:10] cognominal has joined the channel
[22:10] TheJH: mmalecki, http://en.wikipedia.org/wiki/Gesellschaft_f%C3%BCr_musikalische_Auff%C3%BChrungs-_und_mechanische_Vervielf%C3%A4ltigungsrechte
[22:10] jj0hns0n has joined the channel
[22:10] mmalecki: TheJH: (also, it sounds like war declaration)
[22:11] josephg has joined the channel
[22:11] isaacs: TheJH: http://www.amazon.com/Arular-Explicit/dp/B000VN9WKK/ref=sr_1_3?ie=UTF8&qid=1320703866&sr=8-3
[22:11] TheJH: mmalecki, hmm? disallowing german people to watch stuff on youtube? yup, anonymous already put such a message on the GEMA homepage :D
[22:11] mmalecki: TheJH: no, that sentence
[22:11] jbrokc: mmalecki: i laughed
[22:11] thalll_ has joined the channel
[22:11] TheJH: mmalecki, what then?
[22:12] mmalecki: TheJH: but I guess everything in German sounds like a war declaration
[22:12] swaj: man, just reading ryah's post on windows node performance... I'm really impressed. It's damn close to Linux.
[22:12] jbrokc: mmalecki: also found your vim plugin today for digging out node shebangs after I ran into the issue myself. thanks
[22:12] swaj: (and in one case faster)
[22:12] mmalecki: jbrokc: :)
[22:12] TheJH: isaacs, mhm, sounds weird, but sounds like it might be good for coding
[22:12] jbrokc: mmalecki: (i thought you were cheating in the plugin but turns out that's how you're supposed to do it). have you written anything else in VimL?
[22:12] vkareh has joined the channel
[22:13] mmalecki: jbrokc: nah, it's my first plugin
[22:13] thalll has joined the channel
[22:13] jbrokc: mmalecki: wooooooo partyyyyyy
[22:13] mmalecki: jbrokc: haha :D
[22:13] mmalecki: jbrokc: I've been thinking about some kind of auto-require for vim
[22:13] jbrokc: mmalecki: how so?
[22:14] broofa has joined the channel
[22:14] mmalecki: jbrokc: detecting usage of built-in modules and requiring them at the top of the file
[22:14] mmalecki: but that's silly
[22:14] jbrokc: super silly
[22:14] mmalecki: too many edge cases
[22:14] jbrokc: oh hey just decided to name all of my functions Socket
[22:15] quackquack has joined the channel
[22:15] mmalecki: yeah :D
[22:15] jbrokc: mmalecki: but a K on a keyword -> node API would be pretty cool
[22:15] gf3 has joined the channel
[22:16] JakeSays: ah what the hell - that stupid code was paperscript, not js.
[22:16] swaj: lol
[22:16] level09 has joined the channel
[22:16] JakeSays: i hate shit like that
[22:17] JakeSays: friggin' voodoo developers
[22:17] swaj: coulda been dart :P
[22:17] JakeSays: fart on dart
[22:17] TheJH: mmalecki, I'm wondering how klingon must sound to you if even german sounds like war declaration to you... :P
[22:18] mmalecki: jbrokc: and code completion would be awesome as well
[22:18] mmalecki: that actually sounds easy
[22:18] jbrokc: mmalecki: code completion exists
[22:18] tjh: JakeSays: ew :(
[22:18] mmalecki: oh, cool
[22:18] tjh: that sucks
[22:18] mikegerwitz has joined the channel
[22:18] mikegerwitz has joined the channel
[22:18] tjh: the lib looked good other than that
[22:18] devongovett has joined the channel
[22:18] JakeSays: tjh: yup
[22:19] mmalecki: jbrokc: link?
[22:19] jbrokc: mmalecki: so there's a couple of ways to go about it (anyone here who uses javascript in Vim would get benefit from this if they don't know of it already)
[22:20] jbrokc: mmalecki: make sure syntax omnicompletion is turned on by default. type :h ft-syntax-omni for more details. then just use in a javascript (or, now coffeescript with vim-coffeescript) file
[22:20] JKarsrud: what kind of folder structure would you guys recommend for an application that will reuse some of the code for frontend and backend? put it in src or something?
[22:20] JKarsrud: (using express)
[22:20] tbranyen: i use common
[22:20] mmalecki: jbrokc: does it contain all node.js core methods?
[22:20] jbrokc: mmalecki: for auto-code completion (like, showing you the autocomplete popup automatically) try a plugin link neocomplcache or something. I find them distracting
[22:20] tbranyen: to share between the two
[22:20] jbrokc: sorry, that should have been
[22:20] jbrokc: mmalecki: oh, no, sorry.
[22:20] mmalecki: jbrokc: yeah, I mean, I know how to do autocomplete
[22:21] jbrokc: mmalecki: whoops ;_;
[22:21] mmalecki: I just want node.js completion :D
[22:21] mmalecki: jbrokc: it's ok :)
[22:21] jbrokc: mmalecki: if you take a look at :e $VIMRUNTIME/autoload/javascriptcomplete.vim and poke around there it shouldn't been too difficult
[22:22] quackquack: SubStack: what does this error mean (from browserify): "Error: Can only load non-root modules in a node_modules directory for file"?
[22:22] tjh: the deprecation warnings really need linenos
[22:22] tjh: no clue what dep these are even from
[22:22] SubStack: quackquack: it means it couldn't rebase the paths properly
[22:22] mmalecki: looks easy
[22:23] captain_morgan has joined the channel
[22:23] quackquack: SubStack: k, ty
[22:23] jesusabdullah: SubStack: Did you do your talk? How did it go?
[22:23] swaj: I like when I start my express app using the new cluster API, I get spammed about "sys" being renamed to "util" 8 times :P
[22:23] tjh: hmm
[22:24] tjh: the recent release shouldn't use it at all
[22:24] swaj: yeah I couldn't find it
[22:24] swaj: I'm wondering if it's one of my requires
[22:24] tjh: we could easily add filenames/linenos
[22:24] tjh: to those
[22:25] ryah: tjh: is rauchg online?
[22:25] tjh: ryah nope
[22:25] ryah: tjh: he was telling me that you guys were hitting some assert
[22:25] ryah: tjh: do you know what that is?
[22:25] tjh: I'll ask the guys
[22:26] SubStack: jesusabdullah: yep
[22:26] swaj: tjh: yeah it seems to be one of my requires... I just did a fresh express app and it's not showing that warning anymore. I'll have to dig around.
[22:26] TheJH: ryah, https://github.com/joyent/libuv/issues/206 maybe?
[22:26] SubStack: quackquack: the path rebase step to map to targets really needs moved to when the bundle() happens
[22:26] SubStack: known problem
[22:26] TheJH: ryah, random crashes because of an untranslated error code
[22:26] ryah: ok
[22:26] TheJH: (that's what it looks like)
[22:27] quackquack: SubStack: how bout this one :P "Can only load non-root modules in a node_modules directory for file ..."
[22:27] JKarsrud: tbranyen: aight, cool :)
[22:27] tjh: ryah https://github.com/visionmedia/libuv/commit/c6065b33df122cc90b19dda629b9ecb9089e7466
[22:28] tjh: git that though
[22:28] tjh: hit*
[22:28] tjh: today
[22:30] wbednarski has joined the channel
[22:30] TheJH: ryah, the bad error code apeared in backtraces
[22:30] lazyshot has joined the channel
[22:31] joshgillies has left the channel
[22:31] joshgillies has joined the channel
[22:31] TheJH: ryah, "#1 0x081509dd in node::SetErrno (code=104) at ../src/node.cc:1103"
[22:32] jerrysv: ryah: error code was 104
[22:32] jerrysv: ryah: and bnoordhuis just closed the ticket
[22:32] TheJH: ryah, here's a symptom fix: https://github.com/joyent/libuv/pull/238
[22:32] jerrysv: should see what pull request 239 gets resolved as
[22:32] swaj: express devs, how do you do validation? I'm using mongoose's validation right now, though I'm getting a bit snagged up on the fact that you can't push multiple custom validators on a schema. Also, I'd like to write something that can work client-side, but fallback gracefully to server side if the user uses something lame like noscript.
[22:32] incredimike has left the channel
[22:32] chadskidmore has joined the channel
[22:32] mc_greeny has joined the channel
[22:32] tjh: swaj join #express
[22:32] swaj: tjh: will do, thanks
[22:33] jerrysv: TheJH: same symptoms fix as tjh's 239
[22:33] TheJH: jerrysv, 238 and 239 are completely different
[22:33] wao: tjh: you're one of that which commit to connect/express?
[22:33] tjh: wao yup
[22:33] jerrysv: TheJH: not really, both add the same missing error codes
[22:33] wao: tjh: well, is connect/express ready for 0.6.0 ?
[22:33] Aikar: do we have a node.js page on G+? (pref an official one from joyent...)
[22:33] tjh: wao yup they should be fine
[22:34] mmalecki: tjh: change your nick or you'll receive shitload of similar questions ;p
[22:34] charlenopires has joined the channel
[22:34] TheJH: jerrysv, 239 adds a new error code translation and a new internal error code, 238 seems to just hack it so that the error codes in kernel and libuv are the same
[22:34] balaa has joined the channel
[22:34] TheJH: jerrysv, looks like a HUUUGE difference
[22:34] jerrysv: TheJH: not really, that enum is where the translation occurs
[22:35] TheJH: jerrysv, errm, whut? the translation occurs in the two translation methods
[22:35] DrHeiter23 has left the channel
[22:35] TheJH: jerrysv, uv__translate_lib_error and uv_translate_sys_error
[22:36] jerrysv: TheJH: yes, the enum in the include, and the translation in uv_common
[22:36] funktronic has joined the channel
[22:37] funktronic has left the channel
[22:37] TheJH: jerrysv, well, 239 does it the way it's supposed to work, yours is like "we forgot a minus sign somewhere, so we'll just put minus signs in random places until it works"
[22:37] wao: tjh: alright, thanks.
[22:37] mehtryx has joined the channel
[22:37] TheJH: jerrysv, it makes stuff work again, sure
[22:37] jerrysv: TheJH: that was hardly a random place
[22:38] TheJH: jerrysv, I admit that this example wan't that good
[22:38] TheJH: *wasn't
[22:38] jerrysv: no, it was actually kind of insulting :)
[22:38] Lingerance: node-glob only works on the filesystem?
[22:40] TheJH: jerrysv, true - I guess I like taking examples from my own life and telling people that they did the same :D
[22:40] jesswa1 has joined the channel
[22:40] TheJH: ACTION once fixed a minimax algorithm that always did the worst possible move that way
[22:40] TheJH: jerrysv, sorry
[22:41] mmalecki: TheJH: that's how I do my maths
[22:42] chadskid_ has joined the channel
[22:42] strmpnk_ has joined the channel
[22:42] TheJH: mmalecki, oh, I think I read something like "when you know the solution but not how to get there, derive wildly from the begin and the end until stuff looks roughly alike, connect it and hope that the teacher won't notice" somewhere
[22:42] jimmysparkle has joined the channel
[22:43] materialdesigner has joined the channel
[22:43] mmalecki: TheJH: so, like, do your maths in the agile way?
[22:44] TheJH: mmalecki, huh?
[22:44] mmalecki: just being silly ;)
[22:45] simenbrekken has joined the channel
[22:45] jtrudeau has joined the channel
[22:46] schwab has joined the channel
[22:46] _unary has joined the channel
[22:47] JakeSays: tjh: ok so apparently paper suppors their weird language under node.js
[22:47] tjh: :s
[22:47] tjh: yay..
[22:47] tjh: haha
[22:47] JakeSays: although everything rendered really really small
[22:47] coderdad has joined the channel
[22:47] travis_ has joined the channel
[22:47] aron_ has joined the channel
[22:48] JakeSays: but that might have something to do with the way i have the canvas configured
[22:48] coreb has joined the channel
[22:49] travis_ has joined the channel
[22:49] aaronj1335 has joined the channel
[22:50] stu64 has joined the channel
[22:50] dshaw_ has joined the channel
[22:50] smtlaissezfaire has joined the channel
[22:51] rektide: i was having problems with npm, so i thought i'd update node & npm; i'm getting the same general exception now that i'm trying to install npm
[22:52] rektide: the pastebin of the npm-debug.log: http://pastebin.com/mUdRsTwH
[22:52] rektide: some kind of EINVAL on the dns lookup?
[22:52] isaacs: hell yes. https://gist.github.com/1346461
[22:52] rektide: any suggestions?
[22:52] tjh: isaacs beautiful haha
[22:53] akihito_s has joined the channel
[22:53] isaacs: rektide: um... you said that you updated node and npm. but your'e on an outdated version of each?
[22:54] isaacs: rektide: info using npm@1.0.27
[22:54] isaacs: info using node@v0.5.6-pre
[22:54] isaacs: rektide: i'd recommend getting node 0.6, and then installing npm fresh with that
[22:54] isaacs: ircretary: inst rektide
[22:54] ircretary: rektide: `curl http://npmjs.org/install.sh | sh` (or, if there are permission issues, you can try: `curl http://npmjs.org/install.sh | sudo sh`)
[22:56] rektide: isaacs: apologies!
[22:56] rektide: http://pastebin.com/qJf2Ra4B is the correct paste
[22:57] isaacs: rektide: what command did you run?
[22:57] JakeSays: tjh: does Image.src work with urls or just local files?
[22:58] rektide: isaacs: ./configure --prefix=/opt/npm && sudo make install
[22:58] tjh: JakeSays just Buffers / data uris / local files
[22:58] JakeSays: ah ok
[22:58] isaacs: rektide: ok. the problem is that `make install` is failing.
[22:59] isaacs: rektide: it's having problems fetching ronnjs, which it needs to build the docs, which it needs to do since you're installing from the dev source rather than from a release.
[22:59] isaacs: rektide: try this:
[22:59] rektide: isaacs: and it looks like dns is failing to resolve the library
[22:59] rektide: rather, failing to resolve some kind of hostname
[22:59] isaacs: ./configure --prefix=/opt/npm && sudo make latest
[23:00] isaacs: rektide: or, better yet, rather than fetch the source from github, fetch it from the registry.
[23:00] isaacs: ie, http://registry.npmjs.org/npm/-/npm-1.0.104.tgz
[23:01] isaacs: download that, crack it open, and `node cli.js install -gf .
[23:01] isaacs: which is what the install script does
[23:01] rektide: isaacs: http://pastebin.com/v8Fv8FrR was the sudo make latest result
[23:01] rektide: i'll keep reading & following along
[23:01] isaacs: rektide: ERR! Error: ENOSYS spawn
[23:01] isaacs: why is there no spawn?
[23:01] woeye has joined the channel
[23:02] schwab has joined the channel
[23:02] strmpnk_ has joined the channel
[23:03] rektide: isaacs: i'll degrade to node 0.6.0, try this all again, and carry on. the EINVAL dns lookups happened after npm had been working for a decent amount of time, prompting me to upgrade, but there could be something odd with node going on
[23:03] ryan0x2 has joined the channel
[23:03] captain_morgan has joined the channel
[23:03] rektide: thanks for your, as usual, extremely fast & thorough help looking into this
[23:03] spasquali has joined the channel
[23:03] spasquali has left the channel
[23:04] balaa has joined the channel
[23:05] willwhite has joined the channel
[23:05] batseb has joined the channel
[23:06] isaacs: rektide: np
[23:06] batseb: hi!
[23:06] schwab has joined the channel
[23:06] isaacs: rektide: i'm really curious about why you're getting ENOSYS from spawn. it's almost as if spawn is explicitly disabled in your node build. i've heard of that with Cloud9's hosted stuff, but not anywhere else.
[23:07] kevwil has joined the channel
[23:07] batseb: I am new to node and have a question related to child_process.spawn
[23:08] batseb: does someone knows how to send stout to a web socket in real time ? I tried ls.stdout.on('data', function (data) {
[23:08] batseb: console.log('stdout: ' + data);
[23:08] batseb: });
[23:08] batseb: but it cumulates all the outputs before sending it
[23:08] ohtogo has joined the channel
[23:09] fzzzy has joined the channel
[23:09] Lingerance: batseb: .pipe()?
[23:10] batseb: Lingerance Thanks! I go back to read the doc to use it.
[23:11] neurodrone has joined the channel
[23:12] MatthewS has joined the channel
[23:12] RylandAlmanza has joined the channel
[23:13] devongovett has joined the channel
[23:13] TheFuzzball has joined the channel
[23:13] RylandAlmanza: Anyone know what I might use to make a p2p program in node.js?
[23:13] jdpacker has joined the channel
[23:13] zomg: RylandAlmanza: sockets probably
[23:13] RylandAlmanza: net.Sockets?
[23:13] context: def. sockets
[23:14] context: though, if you have to ask such a question, you are probably out of your league
[23:14] zomg: Yeah =)
[23:14] lzskiss has joined the channel
[23:15] jj0hns0n has joined the channel
[23:15] RylandAlmanza: Oh, I know that. :) That's how I learn though. I start huge, then go small after hours of headaches, and then gradually go back to huge. :)
[23:15] zomg: Heh, sounds like what I did
[23:15] zomg: :P
[23:15] mmalecki: RylandAlmanza++
[23:15] zomg: You can also use crypto if you need hashing
[23:15] mraleph: TheJH: context snapshot will contain source code so as a IP protection it will not work.
[23:16] TheJH: mraleph, and for node startup boost?
[23:16] mraleph: it will require some work but it is possible.
[23:16] TheJH: mraleph, just uglifying node core gives you 10% less startup time
[23:16] TheJH: (yes, I measured that)
[23:17] travis_ has joined the channel
[23:17] mike5w3c_ has joined the channel
[23:17] TheJH: mraleph, sounds like a huge optimization opportunity
[23:18] k1ttty has joined the channel
[23:18] travis_ has joined the channel
[23:18] mraleph: might be
[23:19] mraleph: but requires engineering effort
[23:19] TheJH: of course not for long-running stuff
[23:19] TheJH: true
[23:19] TheJH: but for scripting with node, it'd be good
[23:20] aaronj1335_ has joined the channel
[23:20] plutoniix has joined the channel
[23:22] 77CAAWK0T has joined the channel
[23:22] bnoordhuis_ has joined the channel
[23:23] MooGoo: save state for the v8 VM?
[23:24] eephillip: Can someone point me to some docs, about install npm packages without npm or rather manually
[23:25] isaacs: eephillip: check out http://npmjs.org/doc/install.html and http://npmjs.org/doc/folders.html
[23:25] Guest72801 has joined the channel
[23:25] jj0hns0n has joined the channel
[23:25] isaacs: eephillip: those documents detail the process pretty clearly. it's nothing you can't do by hand.
[23:25] isaacs: eephillip: tl;dr crack open the tarball in ./node_modules/
[23:26] coreb: is there a profiler module for node that allows me to see what's taking time during a request?
[23:26] eephillip: nice, thanks I thinks thats what I need
[23:26] mrshogun: yeap coreb
[23:26] mrshogun: node-inspector
[23:27] CIA-109: node: 03Ben Noordhuis 07master * rd7bcf21 10/ wscript :
[23:27] CIA-109: node: build: fix race in parallel build
[23:27] CIA-109: node: Run `make clean` first, *then* `make all` - http://git.io/mAFK0w
[23:28] stu64 has joined the channel
[23:29] coreb: mrshogun: ok thanks
[23:30] skampy has joined the channel
[23:30] davidbanham has joined the channel
[23:32] heavysixer has joined the channel
[23:33] jj0hns0n has joined the channel
[23:34] coreb1 has joined the channel
[23:34] benvie: .. {valueOf:function(){return arguments.callee.caller.name} * 5
[23:34] catb0t: Exception: SyntaxError: Unexpected token (
[23:34] teadict: jsdom lets me do a createElement('div') and then throw that as a http response so the browser renders it transparently? that's its purpose?
[23:34] igl1 has joined the channel
[23:34] benvie: .. ({valueOf:function(){return arguments.callee.caller.name}) * 5
[23:34] catb0t: Exception: SyntaxError: Unexpected token )
[23:34] balaa_ has joined the channel
[23:35] mattp_ has joined the channel
[23:35] munro has joined the channel
[23:35] benvie: .. ({valueOf:function(){return arguments.callee.caller.name}}) * 5
[23:35] catb0t: NaN
[23:35] jesusabdullah: Can anybody recommend a library for reading atom feeds
[23:35] jesusabdullah: ?
[23:36] JP has joined the channel
[23:36] benvie: .. ({valueOf:function(){return arguments.callee.caller.arguments[1]*1000}}) * 5
[23:36] catb0t: NaN
[23:37] jesusabdullah: That's not an atom feed reader
[23:37] fzzzy has joined the channel
[23:38] smathy has joined the channel
[23:39] garann has joined the channel
[23:39] benvie: .. atom = { read: function(s){ return s; } }; atom.read("feed");
[23:39] catb0t: "feed"
[23:40] Marak has joined the channel
[23:41] TooTallNate has joined the channel
[23:42] enmand has joined the channel
[23:43] robb1e_ has joined the channel
[23:43] ncb000gt has joined the channel
[23:44] neilk_ has joined the channel
[23:44] CIA-109: node: 03Eric Lovett 07master * r69d3bf1 10/ doc/api/cluster.markdown : docs: minor grammar fix in cluster page - http://git.io/zzr0BQ
[23:45] tiglionabbit has joined the channel
[23:45] dubenstein has joined the channel
[23:45] lmatteis has joined the channel
[23:45] ryanseddon has joined the channel
[23:46] bradwright has joined the channel
[23:47] saschagehlich has joined the channel
[23:49] base698 has joined the channel
[23:49] rektide: git clone https://github.com/isaacs/npm.git is spitting out an error at me: error: while accessing https://github.com/isaacs/npm.git/info/refs
[23:49] freewil has joined the channel
[23:49] freewil has joined the channel
[23:50] isaacs: rektide: it seems like your system can't do git over https.
[23:50] dubenstein has joined the channel
[23:50] dubenste1n has joined the channel
[23:50] isaacs: rektide: try this: git config --system http.sslcainfo /bin/curl-ca-bundle.crt
[23:50] travis_ has joined the channel
[23:51] travis__ has joined the channel
[23:51] dubenstein has joined the channel
[23:51] alnewkirk has joined the channel
[23:53] patcito has joined the channel
[23:54] TheFuzzball has joined the channel
[23:56] dubenstein has joined the channel
[23:56] dubenste1n has joined the channel
[23:57] Blorb has joined the channel
[23:58] blueadept has joined the channel
[23:58] mrshogun: hello ppl
[23:58] koo6 has joined the channel
[23:58] mrshogun: theres anyone that ever had experience with vows?
[23:58] chilts: mrshogun: it's easier to just ask the question than to ask if anyone has had experience and then ask the question :)
[23:59] rektide: isaacs: where is /bin/curl-ca-bundle.crt supposed to come from?
[23:59] rektide: i'm on debian testing-unstable
[23:59] isaacs: rektide: yeah, i dunno. that's just what i found googling for 'git https failing'
[23:59] strmpnk_ has joined the channel