[00:00] CoverSlide: but using spawn instead of exec, you can pipe the stdout of each process and do whatever instead of saving it to a buffer and clog up your memory
[00:00] softdrink: woot. docco-generated docs in my project now
[00:00] DrMcKay: sechrist: but I've read about no-knock raids and things
[00:00] sechrist: DrMcKay: it is, and I'm having terrible problems with flash (on my mac, of course)
[00:00] sechrist: I shouldn't have upgraded
[00:00] sechrist: ACTION screams
[00:01] DrMcKay: sechrist: HTML5 ftw!
[00:01] sechrist: the flash blocking plugins i've used have been too obtrusive
[00:01] sechrist: maybe I should look around more
[00:01] CoverSlide: is it so hard for google to convert youtube to html5
[00:01] booo has joined the channel
[00:02] DrMcKay: CoverSlide: yeah, I've always wondered
[00:02] Archio: sechrist: Flash on Lion? I had issues, but they stopped when I updated Flash.
[00:02] DrMcKay: CoverSlide: they have converted part of videos, but not all
[00:02] chrisumbel has joined the channel
[00:02] sechrist: Archio: I upgraded and started having issues
[00:02] Archio: Oh, I see.
[00:02] sechrist: is there some way to share cookies between safari and chrome?
[00:03] sechrist: I'm fine with using safari for flash stuff
[00:03] sechrist: but the state isn't shared
[00:03] Archio: Well... they're separate processes, right?
[00:03] mcavage has joined the channel
[00:03] sechrist: yeah, I'm curious if there's some plugin thing
[00:03] Archio: Haven't heard of one...
[00:04] slip has joined the channel
[00:05] apanda has joined the channel
[00:06] abjorn: Eh, well cookies are just a sqlite db named "Cookies", so it's possible to transfer I suppose.
[00:06] clifton has joined the channel
[00:09] Archio: abjorn: Really? Hmm... maybe there is a plugin then
[00:09] abjorn: yeah
[00:09] abjorn: I know on windows it's just in AppData\Local\Google\Chrome\User Data\Default
[00:09] abjorn: not sure about mac or linux
[00:09] tktiddle: Is it possible to connect to a V8 terminal while debugging?
[00:10] tktiddle: termianl == console
[00:10] levi501d has joined the channel
[00:10] tk has joined the channel
[00:12] abjorn: https://github.com/smtlaissezfaire/ndb not sure if this is what you're looking for or not, tktiddle
[00:12] smtlaissezfaire: yeah, ndb is buggy, though. There are some pretty serious issues that need to be fixed there
[00:13] abjorn: yeah theres also this:
[00:13] abjorn: https://github.com/joyent/node/wiki/using-eclipse-as-node-applications-debugger
[00:13] slifty has joined the channel
[00:14] hij1nx has joined the channel
[00:15] abresas has joined the channel
[00:15] sirdancealot has joined the channel
[00:16] abresas has left the channel
[00:16] inspired12 has joined the channel
[00:16] inspired12: greetings!
[00:16] inspired12: is there anyone on the air?
[00:18] DrMcKay: inspired12: no, we're all on the ground I think
[00:18] DrMcKay: but I may be wrong ;)
[00:18] inspired12: alright! DrMcKay
[00:18] DrMcKay: don't call me Meredith.
[00:19] inspired12: so, Im in the process of installing etherpad lite, which requires node.js
[00:19] ryanfitz has joined the channel
[00:19] inspired12: I seem to have everything lined up, but when I do the build script, it looks like npm is throwing some errors
[00:19] technoweenie has joined the channel
[00:19] euforic: how would i call a python script in my node module using child_process.spawn with out using its absolute path?
[00:19] DrMcKay: inspired12: gist them or paste somewhere else
[00:20] jj0hns0n has joined the channel
[00:21] inspired12: https://gist.github.com/1172390
[00:21] jhbot: inspired12, your 'tar' program is broken/outdated, install a new one
[00:21] sivy has joined the channel
[00:21] CIA-69: libuv: 03Bert Belder 07master * r27c52a6 10/ src/win/tcp.c : win: stop reading on tcp receive error - http://git.io/TEb7fg
[00:21] CIA-69: libuv: 03Bert Belder 07master * r39aac4a 10/ (include/uv-win.h src/win/pipe.c): win: better shutdown for pipes - http://git.io/NyXOcA
[00:21] slip has joined the channel
[00:22] inspired12: I was able to install node.js as far as I can tell, but npm says "npm not ok"
[00:25] ckknight has joined the channel
[00:25] DrMcKay: inspired12: update your tar
[00:25] DrMcKay: jhbot++
[00:25] v8bot_: DrMcKay has given a beer to jhbot. jhbot now has 1 beers.
[00:25] catb0t: jhbot now has 1 beer
[00:26] DrMcKay: inspired12: you're on Linux or Windows?
[00:26] inspired12: oh man, sweet you guys got beers here :D --- Linux
[00:26] DrMcKay: inspired12: what distro?
[00:26] inspired12: RedHat
[00:27] aoberoi has joined the channel
[00:27] DrMcKay: inspired12: oh... sudo yum update -y
[00:27] DrMcKay: inspired12: if there's no tar update, update it from test-updates
[00:29] inspired12: hmmm looks like there was a kernel update
[00:29] inspired12: would that cover it? alternatively, how do I test-updates?
[00:29] DrMcKay: inspired12: did tar get updated?
[00:29] hekkwan_ has joined the channel
[00:30] CrisO has joined the channel
[00:30] DrMcKay: and you guys probably got 3.0 now :)
[00:30] inspired12: it didn't explicitly say tar
[00:30] DrMcKay: well, enable test-updates repo, if you have it
[00:30] DrMcKay: (I only do Fedora, so I know shit about EL)
[00:32] inspired12: yum install tar --enablerepo=updates-testing ?
[00:34] DrMcKay: inspired12: yes
[00:34] DrMcKay: no
[00:34] DrMcKay: yum update
[00:34] inspired12: lol thanks
[00:34] perezd: anyone in here load balancing with socket io?
[00:35] inspired12: hmmm repo not found
[00:35] tmzt_ has joined the channel
[00:36] skm has joined the channel
[00:37] slip has joined the channel
[00:38] DrMcKay: inspired12: I have that repo (but I'm on Fedora)
[00:39] DrMcKay: inspired12: you can build tar from source
[00:39] inspired12: gotcha, so what gave you guys the clue that tar needs updating?
[00:39] binarychef has joined the channel
[00:39] inspired12: I can look into that further, but I gotta head out soon
[00:39] inspired12: DrMcKay++
[00:39] v8bot_: inspired12 has given a beer to DrMcKay. DrMcKay now has 2 beers.
[00:39] catb0t: DrMcKay now has 1 beer
[00:39] CIA-69: node: 03Bert Belder 07master * r6ab4a4c 10/ (3 files in 2 dirs): Upgrade libuv to 39aac4a5 - http://git.io/4SLPtA
[00:40] DrMcKay: inspired12: it wasn't me to discover that, so I don't know
[00:40] inspired12: assuming the jhbot is a bot, did he figure that our based on previous entries on this channel?
[00:41] DrMcKay: inspired12: no, of course not (he's not a neural network and he's got no inteligence)
[00:41] DrMcKay: well, at least, I hope
[00:42] inspired12: ok good. I thought the internet was getting way smarter way sooner than expected
[00:42] DrMcKay: this is TheJH's bot and he coded some rules to find issues which were asked about the most
[00:42] inspired12: thats awesome, I will see you guys around, thanks for your help
[00:42] inspired12: ++beers for everyone
[00:42] Isaiah has joined the channel
[00:42] DrMcKay: inspired12: :). see you around :)
[00:43] sechrist_ has joined the channel
[00:43] heavysixer has joined the channel
[00:45] jaredscribe has joined the channel
[00:48] torsd has joined the channel
[00:49] sirdancealot has joined the channel
[00:50] ggg has joined the channel
[00:51] dshaw_ has joined the channel
[00:51] ggg: http://stackoverflow.com/questions/7169273/mongoose-everyauth-weird-behavior
[00:51] ggg: anyone why it saves the _id properly, but the other parameters saved are the previous entry
[00:53] habblelabble has joined the channel
[00:55] ggg: wondering if its a bug with either mongoose, everyauth or express or maybe mongodb
[00:55] hekkwan has joined the channel
[00:55] ggg: I input in the console my values, but they arent whats saved in the database...
[00:55] weilies has joined the channel
[00:56] weilies: hi there, anyone know how to fix 'throw e; // process.nextTick error, or 'error' event on first tick' error?
[00:56] weilies: i m stucked
[00:57] ggg: need more details
[00:57] ggg: gist it
[00:58] devongovett has joined the channel
[01:00] davidascher has joined the channel
[01:00] cjroebuck has joined the channel
[01:00] apanda has joined the channel
[01:00] rmcastil has joined the channel
[01:01] shipit_ has joined the channel
[01:01] tjholowaychuk has joined the channel
[01:02] isufy has joined the channel
[01:02] cjheath: Any node devs online? Node (current git version) no longer builds on OSX 10.5.8, because it believes FDATASYNC is available when it isn't
[01:03] cjheath: I've hacked it for now, but you should fix it properly
[01:05] cjheath: Oh, I see the issue has been reported: https://github.com/joyent/node/issues/1534
[01:05] max_dev has joined the channel
[01:05] slip has joined the channel
[01:06] achiu has joined the channel
[01:08] tjholowaychuk has joined the channel
[01:09] sirdancealot has joined the channel
[01:09] jacobolus has joined the channel
[01:10] guillermo has joined the channel
[01:11] tjholowaychuk has joined the channel
[01:11] sirdancealot has joined the channel
[01:12] criswell has joined the channel
[01:12] hermanjunge has joined the channel
[01:12] mnutt has joined the channel
[01:13] hermanjunge has joined the channel
[01:15] bnoordhuis: cjheath: if you have a good solution, i'd love to hear it
[01:17] jojohess has joined the channel
[01:17] Emmanuel` has joined the channel
[01:18] sechrist_: oh man, I set up this thing that imports a browserify rendered file as a userscript
[01:18] sechrist_: it's really like I'm controlling an app without owning the app
[01:18] cjheath: There's code in deps/uv/src/eio/libeio.m4 to check the presence of fdatasync, but the setting is overridden at a higher level so it doesn't appear to use that check
[01:18] cjheath: I don't know enough about how the build system works to know how
[01:19] enhydra has joined the channel
[01:19] cjheath: bnoordhuis: ping.
[01:19] kdng-saleem3 has joined the channel
[01:20] dominictarr has joined the channel
[01:20] kdng-saleem3 has left the channel
[01:20] bnoordhuis: cjheath: pong
[01:21] bnoordhuis: we don't use the autoconf system right now
[01:21] cjheath: ahh, ok
[01:21] cjheath: I thought that configuration was faster than autoconf usually is :)
[01:21] bnoordhuis: yeah
[01:22] bnoordhuis: it's mostly because we're porting to windows
[01:22] DrMcKay: well, autoconf is outdated and not so portable
[01:22] bnoordhuis: and autotools doesn't work there (not that anyone has it installed anyway)
[01:22] cjheath: I'm going to need to cross-compile node onto Cortex A8 soo, which I believe has been done, but I'll need to understand how the build system works a bit better
[01:22] cjheath: autotools works on Windows if you build uder cygwin
[01:23] bnoordhuis: cygwin is exactly what we're trying to avoid :)
[01:23] DrMcKay: seriously, cygwin? it's slow!
[01:23] hornairs has joined the channel
[01:23] cjheath: right, good idea
[01:23] bnoordhuis: cjheath: re build system: it's waf + scons for v8 + make for libuv
[01:24] bnoordhuis: or gyp if you use the bleeding edge
[01:24] cjheath: Yeah, Ive seen that, but never used waf or scons before
[01:24] DrMcKay: waf is even nice
[01:24] cjheath: I've just done a git pull :)
[01:24] cjheath: so I assume gyp is in play
[01:24] tjholowaychuk: drudge: could clicking the reconnect thing in linkinus retain the channel selections?
[01:24] DrMcKay: I use it for all my projects lately
[01:25] cjheath: I'm not a python user, so I don't :)
[01:25] bnoordhuis: cjheath: gyp is optional atm
[01:25] bnoordhuis: default is still waf
[01:25] DrMcKay: cjheath: but it's easy and doesn't require any python knowledge
[01:25] cjheath: Ok. I just did what the README said
[01:25] bnoordhuis: waf?
[01:25] enhydra has joined the channel
[01:26] bnoordhuis: DrMcKay: ^
[01:26] pizthewiz_ has joined the channel
[01:26] smus has joined the channel
[01:26] jerrysv has joined the channel
[01:26] DrMcKay: bnoordhuis: yeah, I didn't feel like using my Python superpowers while writing a compile scripy
[01:26] mbutubuntu has joined the channel
[01:26] DrMcKay: *script
[01:27] bnoordhuis: gah, waf
[01:27] bnoordhuis: i hate it, hate it, hate it
[01:27] DrMcKay: but with bigger projects ymmv
[01:27] bnoordhuis: stab stab
[01:27] mbutubuntu: hello folks, in the method fs.mkdir(path, mode)... what mode is?
[01:27] DrMcKay: bnoordhuis: why?
[01:27] bnoordhuis: DrMcKay: anytime i want to do something more complicated than just compiling files i have to dive into the waf source to find out how
[01:27] cjheath: what's cmake?
[01:28] bnoordhuis: and that's mostly because the documentation says 'do this' and when you do that, it crashes with an obscure error
[01:28] bnoordhuis: cjheath: an alternative build system, mostly used by the webos guys
[01:28] cjheath: too many moving parts :(
[01:28] bnoordhuis: yeah
[01:28] DrMcKay: bnoordhuis: most complicated thing I did in waf was linking libraries, so you're probably right
[01:28] bnoordhuis: that's why we're moving to gyp
[01:28] shanebo has joined the channel
[01:29] cjheath: How cn I find out what "waf install" ins going to do?
[01:29] slip has joined the channel
[01:29] DrMcKay: bnoordhuis: also, I like jam, but it isn't really documented well
[01:29] bnoordhuis: cjheath: try it :)
[01:29] cjheath: You used to be able to read the makefile to see what make install would do, now, it's ... hidden
[01:30] cjheath: NO
[01:30] bnoordhuis: DrMcKay: i've used jam in the past - no strong opinion on it
[01:30] cjheath: I wont insytall until I can see what it wants to do...
[01:30] bnoordhuis: it copies files, that's about it
[01:30] cjheath: Where's the code for waf install?
[01:30] cjheath: Where's the list of files then
[01:31] bnoordhuis: in the wscript file
[01:31] cjheath: ok, thx
[01:31] zeade has joined the channel
[01:31] DrMcKay: ACTION goes to write a sane build system
[01:32] cjheath: DrMcKay: That's what everyone else said too
[01:32] DrMcKay: cjheath: I know :(
[01:35] DrMcKay: but I actually will.
[01:35] DrMcKay: tomorrow.
[01:35] technowe_ has joined the channel
[01:36] cjheath: bnoordhuis: B&*^#$ hard to find what wscript says to install, and where
[01:36] bnoordhuis: cjheath: yep, it's not pretty but grep for install_files
[01:36] davidascher has joined the channel
[01:37] cjheath: also it doesn't seem to have a --pretend option
[01:37] DrMcKay: bnoordhuis: so you say that gyp is the way?
[01:37] justicefries: is there gonna be a node knockout IRC channel?
[01:37] bnoordhuis: DrMcKay: well... a way
[01:37] bnoordhuis: for my personal projects i use makefiles and sometimes autotools
[01:37] LevyYoung has joined the channel
[01:38] bnoordhuis: not a fan of autotools but well
[01:38] bnoordhuis: cjheath: no, i've never found the dry run mode in waf
[01:38] DrMcKay: bnoordhuis: so much choices.
[01:38] cjheath: To be fair, there are a lot of 3rd party deps
[01:38] deoxxa has left the channel
[01:39] cjheath: One of the most important things about a build system is that it can be introspected
[01:39] Drakonite has joined the channel
[01:39] cjheath: which is the main reason why it's important to have few moving parts
[01:40] wookiehang0ver has joined the channel
[01:40] rurufufuss has joined the channel
[01:40] neoesque has joined the channel
[01:41] wookiehangover has joined the channel
[01:41] piscisaureus has joined the channel
[01:42] abraxas has joined the channel
[01:42] toki_kanno_ has joined the channel
[01:43] smus has joined the channel
[01:47] tktiddle: So seems I cant use var osc = require('./lib/osc'); because require.paths has been removed, so how doo i get node to find osc? I tried renaming lib directory to 'osc' and placing it in node_modules but node still can't find it
[01:47] Renegade001 has joined the channel
[01:48] jesusabdullah: node has an osc module?
[01:48] a_suenami has joined the channel
[01:48] tktiddle: eeerm, theyres something on git called node-osc im trying to run an example
[01:49] jesusabdullah: link?
[01:49] DrMcKay: !npm search osc
[01:49] jhbot: package oscar: An OSCAR protocol module for node.js
[01:49] jhbot: package osc4node: OpenSoundControl implementation for node
[01:49] jesusabdullah: I did an npm search, found a module with a different name
[01:49] jesusabdullah: yeah, osc4node
[01:49] jesusabdullah: idk what oscar is
[01:49] tktiddle: not that one
[01:49] tktiddle: its buggy
[01:49] jesusabdullah: but I do know a little about osc
[01:49] tktiddle: im trying to use this one https://github.com/samBiotic/node-osc
[01:51] jesusabdullah: Honestly, I kinda like seeing node code get released as mit instead of gpl
[01:51] jesusabdullah: Not a big deal, but part of me was like, "maaan"
[01:51] d0k has joined the channel
[01:53] jesusabdullah: i know osc from tuio.
[01:53] tar_ has joined the channel
[01:54] apanda has joined the channel
[01:54] abraxas: Does anyone know if it's possible to run Jakefiles from within node?
[01:55] abraxas: Alternatively: what do you guys use to build javascript (from many files to say, one) on-the-fly in NodeJS, before sending it to the client?
[01:56] tktiddle: so if i want to run this https://github.com/samBiotic/node-osc/blob/master/server.js what do i replace the require with?
[01:56] tktiddle: jesusabdullah: are you talking about this? http://bubblebird.at/tuioflash/guides/sending-osc/
[01:57] hekkwan has joined the channel
[01:57] tktiddle: jesusabdullah: im trying to do osc from web browser
[01:57] jesusabdullah: tktiddle: Yeah, same tuio. Look at http://tuio.org though
[01:57] jesusabdullah: Oh, neat1
[01:58] jesusabdullah: !*
[01:58] tktiddle: Just because thats how i prefer to make interfaces
[01:58] jesusabdullah: What do you mean?
[01:59] jesusabdullah: Can you proxy your osc's?
[01:59] jesusabdullah: wait, that's what you're doing
[01:59] jesusabdullah: I was thinking, like, "cut out the middle man"
[01:59] jesusabdullah: pure client-side
[01:59] jesusabdullah: could be interesting but I don't think a web browser is equipped to do that without greasemonkey or something.
[01:59] jesusabdullah: That said, there are definitely tuio interfaces that work with greasemonkey or some such, so I'm sure that's possible with raw osc
[02:01] slip has joined the channel
[02:01] tktiddle: browser > socket > node > OSC > nanode
[02:02] tylerstalder has joined the channel
[02:02] c4milo1 has joined the channel
[02:06] jesusabdullah: nanode?
[02:06] jesusabdullah: What is this.
[02:07] dexter_e has joined the channel
[02:07] jesusabdullah: This sounds really cool, tktiddle !
[02:07] CStumph has joined the channel
[02:07] tktiddle: cheap ethernet PIC for Internet of things http://wiki.london.hackspace.org.uk/view/Project:Nanode
[02:07] jesusabdullah: Why osc, if you don't mind me asking?
[02:07] scottschecter has joined the channel
[02:07] constantx has joined the channel
[02:07] tktiddle: jesusabdullah: thanks! hope I can get it to work!
[02:08] jesusabdullah: It sounds like you aren't working with osc-enabled instruments from here
[02:08] tktiddle: what else? theyres good libraries for arduion
[02:08] smus has joined the channel
[02:08] slip has joined the channel
[02:08] tktiddle: osc library for arduino
[02:09] tktiddle: works with nanode
[02:09] jesusabdullah: I see
[02:09] jesusabdullah: My go-to probably would've been json over tcp or http
[02:10] cjheath: bmoordhuis: The wayt to detect that version thing appears to be the CPP macro __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
[02:10] cjheath: which is defined to be 1058 on my 10.5.8 system
[02:10] cjheath: bnoordhuis: sorry got your name wrong
[02:10] seivan has joined the channel
[02:10] jesusabdullah: but I also say this without knowing a whole lot about arduino/nanode
[02:11] rurufufuss has joined the channel
[02:11] jesusabdullah: tktiddle: So what are you gonna make with your nanodes?
[02:12] vikstrous has joined the channel
[02:14] EvRide has joined the channel
[02:14] slip has joined the channel
[02:14] bnoordhuis: cjheath: yes - the main problem is that it's not entirely clear when fdatasync became available
[02:15] mrryanjohnston: This statement should go near the beginning of every source file, close to the copyright notices.'
[02:15] smus_ has joined the channel
[02:16] mrryanjohnston: Fffff. So I have to put the gpl notice in all of my source files then.
[02:16] dexter_e has joined the channel
[02:16] cjheath: bnoordhuis: I'm on the latest Leopard, 10.5.8, and it's not there. Almost everyone else is on Snow Leopard. amd I bet they all have it. Be a fair bet anyhow
[02:17] edude03 has joined the channel
[02:17] willwhite has joined the channel
[02:18] yept has joined the channel
[02:18] bnoordhuis: cjheath: can you submit a patch?
[02:18] cjheath: Ahhh, ok, will look into it, shouldn't be hard
[02:18] bnoordhuis: cjheath: shouldn't it be __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1058
[02:18] cjheath: have to clean my checkout, I think I have merged fixes
[02:19] cjheath: Yes, > not >=
[02:19] bnoordhuis: ps, can you sign the cla when you submit the pull request?
[02:19] WarriorSl has joined the channel
[02:19] bnoordhuis: i always have to ask people that :)
[02:19] misterm has joined the channel
[02:20] vidi has joined the channel
[02:23] bartt has joined the channel
[02:24] jamescarr has joined the channel
[02:24] jamescarr: does heroku still not have the ability to use websockets???
[02:27] brainproxy: jamescarr: I think that's still the case, at least I read that again recently
[02:27] igl1 has joined the channel
[02:27] jamescarr: brainproxy, wow
[02:27] cjheath: They do, but they have more than one stack. Make sure your app is in the right one
[02:28] brainproxy: http://devcenter.heroku.com/articles/node-js
[02:29] cjheath: Damn - Express wants {"node":">= 0.4.1 < 0.5.0"} - wont install using trunk node
[02:29] brainproxy: ^^ indicates web sock not supported in "Cedar" stack
[02:29] cjheath: Can I over-ride a packages version dependencies experimentally (force install)?
[02:30] andersonfreitas has joined the channel
[02:31] andersonfreitas has joined the channel
[02:32] Archio: cjheath: Check this out: http://www.rpm.org/max-rpm/s1-rpm-install-additional-options.html
[02:32] Archio: oops, sorry, that's rpm, not npm :P
[02:32] cjheath: :P
[02:32] cjheath: "npm install--help" doesn't
[02:33] Archio: npm install --force?
[02:34] cjheath: Nope
[02:34] Archio: hmm...
[02:34] cjheath: what does npm insyall 's -g option do? and why doesn't npm instyall--help list the install options?
[02:34] cjheath: sorry for typos, very cold hands
[02:35] jwall has joined the channel
[02:36] tzmartin has joined the channel
[02:36] achiu has joined the channel
[02:36] jwall has joined the channel
[02:37] Ratty_: cjheath: global install rather that in ./node_modules
[02:37] jkwiii_ has joined the channel
[02:37] cjheath: ok
[02:37] slifty_corsair has joined the channel
[02:37] jj0hns0n has joined the channel
[02:38] geetarista has joined the channel
[02:38] andersonfreitas has left the channel
[02:38] andersonfreitas has joined the channel
[02:39] trotter has joined the channel
[02:40] slip has joined the channel
[02:41] vikstrous has joined the channel
[02:43] jakehow__ has joined the channel
[02:43] jakehow_ has joined the channel
[02:43] jakehow has joined the channel
[02:44] test_ has joined the channel
[02:45] tmzt has joined the channel
[02:45] wonginator has joined the channel
[02:47] jerrysv: cjheath: try bricks.js instead
[02:48] cjheath: Just trying to get someone else's code going, but thx
[02:48] dguttman has joined the channel
[02:52] kmiyashiro has joined the channel
[02:53] JoshC1 has joined the channel
[02:54] tjholowaychuk: cjheath if npm doesnt have that feature it should
[02:54] abraxas: Does anyone here build client-side JS through NodeJS? And if so, what kind of approach do you use?
[02:55] achiu has joined the channel
[02:55] tjholowaychuk: would prevent a lot of explaining
[02:55] trave has joined the channel
[02:55] sirdancealot has joined the channel
[02:56] beezey has joined the channel
[02:56] cjheath: not just features, but every option should always be explained in --help
[02:56] tjholowaychuk: yeah
[02:56] tjholowaychuk: i find the help almost too verbose sometimes
[02:56] ji0n has joined the channel
[02:57] tjholowaychuk: and not verbose enough in some spots
[02:57] cjheath: Have you looked at "npm install --help
[02:57] beezey: what's the coffee way of writing this out:
[02:57] cjheath: ?
[02:57] beezey: io = require ('socket.io').listen 8080
[02:57] Chani: yep
[02:57] Chani: ...oh, I appear to be scrolled up. o.0
[02:57] cjheath: No options at all (hence my request about -g)
[02:58] tjholowaychuk: cjheath yeah that's no good
[02:58] cjheath: ACTION is new to node, not to dev or JS
[02:58] tjholowaychuk: if you dont need to use 0.5.x i would skip that for now though
[02:58] tjholowaychuk: unless you have a reason for using the unstable stuff
[02:58] Chani: I'm also misreading words. damnit. when is someone going to write a debugger for my brain? ;P
[02:59] cjheath: ACTION is, in fact, old enough to have become very opinionated about such things :P
[02:59] tjholowaychuk: but it *should* be easier to opt-in to using mods
[02:59] beezey has left the channel
[02:59] Chani: abraxas: I wrote a client to test a server for a school assignment. not sure if that counts :)
[03:00] abraxas: Chani: I'm just curious about how people go about achieving this…. using a makefile, server side includes, …etc
[03:01] mykul has joined the channel
[03:01] sirdancealot has joined the channel
[03:01] meso has joined the channel
[03:01] Chani: oh, I didn't do anything so complicated as to need a makefile...
[03:02] Chani: even my server was just a handful of .js files that I sent with instructions on installing node.
[03:03] kriszyp has joined the channel
[03:03] tjholowaychuk: jesus
[03:03] tjholowaychuk: the bash bison grammar is huge
[03:03] tjholowaychuk: what a mess
[03:04] jamescarr: would it be cheating if I forked the express boilerplate app my mape and added my API keys?
[03:04] trotter has joined the channel
[03:04] jamescarr: s/my/by
[03:04] chrislorenz has joined the channel
[03:04] jamescarr: before node knockout starts?
[03:05] tjholowaychuk: probably not, i think a few people wrote support libs before last time
[03:05] cjheath: Bash is a mess, b/c is extends the Boure shell which was a mess. Why is that such a surprise?
[03:05] tjholowaychuk: i dont know
[03:05] cjheath: * Bourne
[03:05] tjholowaychuk: cjheath haha i never peeked at the code
[03:06] cjheath: No, I mean the syntax is a mess, so of course the grammar is :)
[03:06] Chani: node knockout? :)
[03:06] tjholowaychuk: yeah, it must be much larger than i know because there's no reason the grammar should be ~7k
[03:06] Nexxy: you just don't do enough psychedelics to understand the syntax
[03:06] tjholowaychuk: LOC
[03:06] tjholowaychuk: haha
[03:06] tjholowaychuk: yeah it's pretty fucked up
[03:07] jamescarr: bash
[03:07] jamescarr: bah
[03:07] tjholowaychuk: some stuff is handy but the substitution stuff etc is retarded
[03:07] jamescarr: I use zsh with oh-my-zsh
[03:07] jamescarr: it really rocks
[03:07] Nexxy: we're talking about something that was written in the 1970's
[03:07] Nexxy: drugs are required for comprehension
[03:07] tjholowaychuk: esac
[03:07] tjholowaychuk: haha
[03:08] tjholowaychuk: ftw
[03:08] Nexxy: yeah exactly
[03:08] tjholowaychuk: i like ... the case statement
[03:08] tjholowaychuk: thats about it
[03:08] tjholowaychuk: -h|--help|help) etc is pretty slick
[03:08] bnoordhuis: any of you ever worked with csh or tcsh?
[03:08] tjholowaychuk: cant say i have
[03:08] abjorn has left the channel
[03:09] jerrysv: bnoordhuis: i grew up on csh, then went to tcsh when it emerged
[03:09] bnoordhuis: well, just be glad there's bash :)
[03:09] bnoordhuis: same here
[03:09] jerrysv: still go back to tcsh for loops sometimes
[03:09] bnoordhuis: i hate it with a passion now
[03:09] jerrysv: i don't mind it. use bash at this point, but no real preference
[03:09] cjheath: I worked with csh for a while, many years ago, when it was the only alternative to bourne shell (there was no ksh nor bash)
[03:09] jerrysv: can also slip in and out of vi/emacs with ease at this point
[03:09] cjheath: switched to ksh in about 1987
[03:10] cjheath: and bash after that
[03:10] jerrysv: but for serious work, i'll use awk/sed
[03:10] bnoordhuis: hah no, i've never grokked emacs
[03:10] jerrysv: ah, yes, way too much time in /sbin/sh and /bin/sh
[03:10] bnoordhuis: it's just... i've only two hands you know?
[03:10] jerrysv: back when /sbin meant static
[03:10] jamescarr: hmmmm
[03:11] jamescarr: wondering if we should go with linode or no.de
[03:11] bnoordhuis: no.de obviously
[03:11] jerrysv: jamescarr: no clue, i self-host
[03:11] jamescarr: jeremyselier, I usually self host, but I dont like the idea of spending ages putting together the instance
[03:11] tk has joined the channel
[03:11] jamescarr: I could easily spend all night doing that when the competition starts
[03:12] jerrysv: oh, you mean for knockout
[03:12] jerrysv: n/m
[03:12] cjheath: bnoordhuis: pull request and cla sent
[03:13] bnoordhuis: cjheath: sweet, thanks
[03:13] bnoordhuis: i'll look at it tomorrow
[03:13] dguttman_ has joined the channel
[03:13] mjr_ has joined the channel
[03:14] srw has joined the channel
[03:14] jamescarr: awww
[03:14] sjunkin has joined the channel
[03:14] jamescarr: heroku and linode sent the invites out
[03:14] jamescarr: joyent hasn't yet :(
[03:14] infynyxx has joined the channel
[03:14] jamescarr: I'm guessing our app would be comorichweb.no.de ?
[03:15] jamescarr: (setting up API keys
[03:15] bnoordhuis: jamescarr: yes
[03:15] Guest88426: hi, I have a weird issue with nodejs + socket.io. I posted on SO without any response yet: http://stackoverflow.com/questions/7189849/javascript-scope-issue-or-nodejs-v8-bug
[03:16] slip has joined the channel
[03:17] bnoordhuis: Guest88426: try running your app with `NODE_DEBUG="net http" node app.js`
[03:18] bnoordhuis: socket.io probably has debug logging too
[03:18] achiu has joined the channel
[03:19] Guest88426: but the issue is very weird, it seems to loose some reference to an string.
[03:19] jamescarr has joined the channel
[03:19] Guest88426: I can use socket.io perfectly until I try to send messages between different scopes
[03:20] boehm has joined the channel
[03:21] bnoordhuis: ACTION is off to bed
[03:22] MacDiva has joined the channel
[03:22] Eemouk has joined the channel
[03:22] codehero has joined the channel
[03:22] patrickstokes has joined the channel
[03:23] codehero: hi anybody running node on cygwin here?
[03:23] jamescarr: mape, thank you
[03:23] jamescarr: mape, that boilerplate express app is a true winnar
[03:23] Archio: I'm sure glad I'm not haha
[03:24] _numbers: why is this confusing to me? i can't envision how to chain things so that X and Y execute before Z. see example https://github.com/mikesmullin/buildr.npm/commit/7504b6a4aca62ba4b3ab1ccda71969d4dce849a7
[03:25] codehero: on cygwin, node apparently thinks that EST has 0 offset
[03:25] _numbers: what am i missing? i need a keyword to research
[03:25] codehero: 'Fri Aug 26 2011 01:49:46 GMT+0000 (EST)'
[03:25] jamescarr: codehero, doesn't surprise me
[03:26] codehero: why not?
[03:26] cjheath_ has joined the channel
[03:27] tktiddle: How should i serve static files for a small web application?
[03:28] Eemouk: Does node express boilerplate contain the html5 boilerplate?
[03:28] tjholowaychuk: tktiddle check out connect's static() middleware
[03:28] tjholowaychuk: tktiddle takes one line to set up
[03:29] jamescarr has joined the channel
[03:29] ditesh|cassini has joined the channel
[03:29] jamescarr: hmmmm
[03:30] jamescarr: is there something for redis like mongoose?
[03:30] syst3mw0rm_ has joined the channel
[03:31] sqpat has joined the channel
[03:31] liveink has joined the channel
[03:31] hermanjunge has joined the channel
[03:32] tktiddle: tjholowaychuk: looks good, thanks
[03:32] jamescarr has joined the channel
[03:32] sqpat: i need a little bit of help extending my app to run on multiple cpus (child_process.fork() i assume is the way to go)
[03:33] sqpat: its just a basic server process that accepts socket connections and does nothing with them for now
[03:34] shapeshed has joined the channel
[03:34] sqpat: you wouldn't want two processes listening on the same port, correct?
[03:34] slip has joined the channel
[03:34] isaacs has joined the channel
[03:36] willwhite has joined the channel
[03:37] jamescarr has joined the channel
[03:38] mrryanjohnston: First alpha release of RPS Node :) http://rpsnode.nodejitsu.com
[03:38] smus has joined the channel
[03:38] DennisRasmussen has joined the channel
[03:38] tktiddle: what do i do :? http://fpaste.org/pXDN/
[03:38] jamescarr: rps node?
[03:39] jamescarr has joined the channel
[03:40] jamescarr: fun
[03:40] jamescarr: needs some chatting
[03:40] Archio: haha
[03:40] Archio: yeah
[03:41] AvianFlu: mrryanjohnston++
[03:41] v8bot_: AvianFlu has given a beer to mrryanjohnston. mrryanjohnston now has 1 beers.
[03:41] catb0t: mrryanjohnston now has 1 beer
[03:41] jamescarr: also, I noticed I beat you in one instance when you chose paper, I chose rocks
[03:41] jamescarr: guess they're appllying the rock burns scissors rules :)
[03:41] mrryanjohnston: thanks, AvianFlu :)
[03:41] mrryanjohnston: also really, jamescarr ? that's weird
[03:42] Archio: Also, the bloop sounds seemed out of sync... could just be my browser though.
[03:42] Archio: Fun though ;)
[03:42] mrryanjohnston: sweet, thanks Archio ! :)
[03:42] tktiddle: night
[03:42] blueadept: anyone here use zappa? https://github.com/mauricemach/zappa
[03:43] Archio has left the channel
[03:43] justinTNT has joined the channel
[03:44] mrryanjohnston: welp, that's enough excitement for one day :) night
[03:44] justinTNT: 'mornin.
[03:45] Cybrix has joined the channel
[03:46] jamescarr: blueadept, eh, I am giving up on serverside coffee for a little while
[03:46] jamescarr: I like it, love the syntax...
[03:46] geetarista has joined the channel
[03:46] jamescarr: but it kinda burned me lately
[03:47] Cybrix: I have a question but I don't know if it should be asked here or on a JS channel. Any reason why this: console.log( "test blablabla test2".match("(.*?<\/b>)") ); gives [ 'test', 'test' ] instead of [ 'test', 'test 2' ]
[03:47] blueadept: jamescarr: how so?
[03:47] jamescarr: difficult debugging because it doesn't give me precise line numbers
[03:47] blueadept: yeah i know what you mean
[03:47] jamescarr: granted, I'd have to perform the step of compiling it down and then running the result to find the bugs
[03:48] jamescarr: s/bugs/fuckups
[03:48] jamescarr: I realized lately that calling self inflicted mistakes is only excused by calling them bugs ;)
[03:48] jamescarr: trying to stop calling them that
[03:48] blueadept: right now i'm trying to figure out how to refactor the way i write because of the closures on each separate file, zappa looks like something that has abstracted a bit of that away
[03:49] DTrejo has joined the channel
[03:49] blueadept: but all these tools are so unstable as it stands
[03:49] blueadept: i would very much like to write all my server side in coffee script though
[03:49] jamescarr has joined the channel
[03:49] blueadept: i'm attempting to power though it
[03:49] apoc has joined the channel
[03:49] apoc has joined the channel
[03:50] jamescarr has joined the channel
[03:50] blueadept: so far running up against a lot of walls at each turn.
[03:50] _numbers has left the channel
[03:51] jamescarr has joined the channel
[03:53] blueadept: wait, just figure out how zappa splits up files
[03:53] blueadept: see this is the thing, all these new tools have great ways of rethinking about how to build your app, its just you have to sink a bit of time into each new project.
[03:53] amerine has joined the channel
[03:56] mike5w3c: I have a question about the felixge node-mysql api
[03:56] mike5w3c: ab
[03:56] mike5w3c: ou
[03:56] mike5w3c: t t
[03:56] mike5w3c: he
[03:56] mike5w3c:
[03:56] mike5w3c: oops
[03:56] mike5w3c: (sorry)
[03:56] mike5w3c: about the 'end' event
[03:57] arthurdebert has joined the channel
[03:57] mike5w3c: I see that the docs say, "In case there is no result set, a result parameter is provided which contains the information from the mysql OK packet."
[03:57] mike5w3c: but I'm not sure how to check the contents of that result parameter
[03:57] boltR has joined the channel
[03:58] theCode has joined the channel
[04:00] kuebk^ has joined the channel
[04:00] JaKWaC has joined the channel
[04:01] losing has joined the channel
[04:01] andrewfff has joined the channel
[04:03] mrdoodles has joined the channel
[04:04] chovy has joined the channel
[04:04] chovy: /usr/bin/ld: cannot find -luv
[04:04] chovy: collect2: ld returned 1 exit status
[04:04] chovy: i'm getting this error when making on debian.
[04:05] jamescarr has joined the channel
[04:06] jaredscribe has left the channel
[04:06] ryantm has joined the channel
[04:06] seivan has joined the channel
[04:06] meso has joined the channel
[04:07] jamescarr has joined the channel
[04:08] newy has joined the channel
[04:09] slip has joined the channel
[04:10] Isaiah has joined the channel
[04:12] tperson has joined the channel
[04:13] hij1nx has joined the channel
[04:15] mike5w3c_ has joined the channel
[04:19] luke`_ has joined the channel
[04:20] ryanfitz has joined the channel
[04:20] Nuck has joined the channel
[04:20] Cybrix has left the channel
[04:20] dgathright has joined the channel
[04:21] kmiyashiro has joined the channel
[04:21] blueadept has joined the channel
[04:21] blueadept has joined the channel
[04:23] Nuck: ACTION yawns loudly
[04:24] justinTNT: ACTION chucks an apple
[04:24] schwab has joined the channel
[04:26] jamescarr has joined the channel
[04:27] andrewfff has joined the channel
[04:28] slip has joined the channel
[04:31] CStumph has joined the channel
[04:31] lightcap_ has joined the channel
[04:31] blueadept: Nuck: you should try out zappa, https://github.com/mauricemach/zappa
[04:37] andrewfff has joined the channel
[04:38] liveink has joined the channel
[04:38] JaKWaC has joined the channel
[04:41] wookiehangover has joined the channel
[04:44] nardoo has joined the channel
[04:45] davve: /win 3
[04:46] nibblebot has joined the channel
[04:46] andrewfff has joined the channel
[04:47] sqpat: for child_process.fork(modulePath, arguments, options)
[04:47] sqpat: is arguments passed as a list or an associative array or something?
[04:47] Qbix1 has joined the channel
[04:49] ryah: sqpat: array
[04:50] ryah: aka list
[04:50] sqpat: got it, thanks
[04:51] smus has joined the channel
[04:51] markdaws has joined the channel
[04:55] levity_island has joined the channel
[04:57] andrewfff has joined the channel
[04:58] achiu has joined the channel
[04:58] trotter has joined the channel
[04:59] bitwise_ has joined the channel
[04:59] sebastia_ has joined the channel
[05:00] gartenst_ has joined the channel
[05:04] achiu has joined the channel
[05:04] seivan has joined the channel
[05:04] meso has joined the channel
[05:05] fangel has joined the channel
[05:06] tylerstalder has joined the channel
[05:09] martinciu has joined the channel
[05:12] mbthomas has joined the channel
[05:13] dominictarr has joined the channel
[05:14] zilch_ has joined the channel
[05:15] mbthomas has left the channel
[05:16] hongymagic has joined the channel
[05:17] pizthewiz has joined the channel
[05:20] avalanche123 has joined the channel
[05:20] zilch_ has joined the channel
[05:20] andrewfff has joined the channel
[05:26] petrjanda has joined the channel
[05:32] mbthomas has joined the channel
[05:33] jacobolus has joined the channel
[05:33] zilch_ has joined the channel
[05:34] bripkens has joined the channel
[05:34] JaKWaC has joined the channel
[05:34] steffan_ has joined the channel
[05:37] JoshC1 has joined the channel
[05:37] jacobolu_ has joined the channel
[05:44] krittick_ has joined the channel
[05:44] tedeh has joined the channel
[05:45] pifantastic has joined the channel
[05:45] andrewfff has joined the channel
[05:45] hij1nx has joined the channel
[05:50] k1ttty has joined the channel
[05:50] SamuraiJack has joined the channel
[05:52] meso_ has joined the channel
[05:56] simenbrekken has joined the channel
[05:56] stephank has joined the channel
[05:56] kmiyashiro has joined the channel
[05:56] zilch_ has joined the channel
[05:58] edude03 has joined the channel
[05:59] kenperkins has joined the channel
[06:01] edude03 has joined the channel
[06:03] fairwinds: hi, any recommendations for package for file and folder watching
[06:05] meso has joined the channel
[06:07] seivan has joined the channel
[06:07] nuby_on_nails has joined the channel
[06:09] massivebiz has joined the channel
[06:13] amit_usual has joined the channel
[06:13] cpetzold has joined the channel
[06:13] kurtzhong_ has joined the channel
[06:13] chjj: web inspector console has a `clear()` function i just discovered
[06:13] chjj: how did i not know about this
[06:14] chjj: webkit inspector*
[06:15] andrewfff has joined the channel
[06:16] pizthewiz_ has joined the channel
[06:16] cjheath has joined the channel
[06:18] raphdg has joined the channel
[06:20] zilch_ has joined the channel
[06:21] AvianFlu: fairwinds: http://github.com/mikeal/watch
[06:22] seivan has joined the channel
[06:22] davidascher has joined the channel
[06:24] FireFly|n900 has joined the channel
[06:25] amerine has joined the channel
[06:26] hekkwan has joined the channel
[06:26] svnlto has joined the channel
[06:27] zilch_ has joined the channel
[06:28] Yoric has joined the channel
[06:29] amigojapan has joined the channel
[06:34] achiu has joined the channel
[06:35] versicolor has joined the channel
[06:35] krittick_: getting this error when doing make: 'PR_SET_NAME' was not declared in this scope
[06:35] krittick_: using gcc 4.1.1 and 2.6+ kernel
[06:36] robotmay has joined the channel
[06:36] cjheath_ has joined the channel
[06:37] Aiden has joined the channel
[06:38] meso has joined the channel
[06:38] pickels has joined the channel
[06:41] bosky101 has joined the channel
[06:43] dob_ has joined the channel
[06:43] k1ttty has joined the channel
[06:44] groom has joined the channel
[06:45] steffan_ has joined the channel
[06:46] zilch_ has joined the channel
[06:47] svnlto has joined the channel
[06:48] kwk has joined the channel
[06:48] kwk: Hi. Where can I find an RPM Specfile for NodeJS?
[06:48] spetrea has joined the channel
[06:51] nuby_on_nails has joined the channel
[06:52] nuby_on_nails has left the channel
[06:52] steffan__ has joined the channel
[06:53] bosky101 has joined the channel
[06:56] tomtomaso has joined the channel
[06:56] zilch_ has joined the channel
[06:56] mikeal has joined the channel
[06:58] bosky101 has joined the channel
[07:00] djcoin has joined the channel
[07:00] hybsch has joined the channel
[07:01] fangel has joined the channel
[07:01] zomgbie has joined the channel
[07:01] amigojapan has joined the channel
[07:03] ph^ has joined the channel
[07:09] tdegrunt has joined the channel
[07:14] topaxi has joined the channel
[07:14] kwk has left the channel
[07:14] Druide_ has joined the channel
[07:16] shapeshed has joined the channel
[07:16] EyePulp has joined the channel
[07:18] karlbright has joined the channel
[07:18] slip has joined the channel
[07:18] bergie has joined the channel
[07:18] karlbright: Hey guys, looking for best way to do mock/stubs with nodeunit. Sinon-nodeunit or is there an alternative out there?
[07:18] karlbright: Or should i be looking at another TDD framework and why? expresso?
[07:19] synkro has joined the channel
[07:22] vizzord has joined the channel
[07:22] Nexxy has joined the channel
[07:24] yikes has joined the channel
[07:26] yikes: just upgraded t npm 10.27 from 0.2, after re-installing the packages I had before, as instructed, sudo npm ls, does not show any packages, but they are present and working ? any ideas?
[07:26] rudyl313 has joined the channel
[07:26] cpetzold has joined the channel
[07:28] yikes: #npm
[07:29] ablomen has joined the channel
[07:29] hackband has joined the channel
[07:30] ccare has joined the channel
[07:30] losing has joined the channel
[07:31] sylvinus has joined the channel
[07:31] [AD]Turbo has joined the channel
[07:31] dominictarr has joined the channel
[07:31] [AD]Turbo: hi there
[07:31] karlbright: yo
[07:32] zilch_ has joined the channel
[07:34] slip has joined the channel
[07:35] simenbrekken has joined the channel
[07:35] MUILTFN has joined the channel
[07:38] thalll has joined the channel
[07:39] uchuff has joined the channel
[07:42] Margle has joined the channel
[07:42] andree has joined the channel
[07:43] mraleph has joined the channel
[07:43] petrjanda has joined the channel
[07:43] JKarsrud has joined the channel
[07:48] slip has joined the channel
[07:49] JasonKing has joined the channel
[07:49] jomoho has joined the channel
[07:50] JakeyChan_ has joined the channel
[07:51] hekkwan has joined the channel
[07:51] Nexxy: is anyone using recurly.js? ;o
[07:52] avalanche123 has joined the channel
[07:53] __doc__ has joined the channel
[07:53] martinciu has joined the channel
[07:53] _kud has joined the channel
[07:54] robhawkes has joined the channel
[07:55] Margle: JakeyChan: ninja?
[07:55] JakeyChan: yes :D
[07:55] radiodario has joined the channel
[07:57] Nexxy has joined the channel
[07:58] bosky101 has joined the channel
[07:59] slip has joined the channel
[07:59] fly-away has joined the channel
[07:59] CrypticSwarm has joined the channel
[08:00] zilch_ has joined the channel
[08:00] Wa has joined the channel
[08:00] ttpva has joined the channel
[08:00] dexter_e has joined the channel
[08:01] stonebranch has joined the channel
[08:02] robotmay has joined the channel
[08:02] bosky101 has joined the channel
[08:09] robi42 has joined the channel
[08:10] Remoun has joined the channel
[08:11] cosmincx has joined the channel
[08:13] luke` has joined the channel
[08:15] junkee[] has joined the channel
[08:17] kurtzhong has joined the channel
[08:19] burningdog has joined the channel
[08:19] burningdog has left the channel
[08:19] squeese has joined the channel
[08:20] cjheath has joined the channel
[08:20] hackband_ has joined the channel
[08:20] tdegrunt has joined the channel
[08:21] eldios has joined the channel
[08:25] slip has joined the channel
[08:25] bergelmir has joined the channel
[08:25] bergelmir has joined the channel
[08:27] markwubben has joined the channel
[08:28] mpavel has joined the channel
[08:28] zilch_ has joined the channel
[08:29] bosky101 has joined the channel
[08:30] JakeyChan_ has joined the channel
[08:30] newy has joined the channel
[08:31] FireFly|n900 has joined the channel
[08:31] Glenjamin: karlbright: sinon + nodeunit would be my recommendation
[08:32] karlbright: Glenjamin: Cheers, have had another look into it and messing with options :)
[08:33] aaronmcadam has joined the channel
[08:33] eldios: is nesting the only way to use the output of a callback in another async function?
[08:33] eldios: nesting or events I mean
[08:33] rfay has joined the channel
[08:34] eldios: I need to use the output of an exec in another exec and I cannot find any other way than those two
[08:35] SamHasler has joined the channel
[08:35] amit_usual has joined the channel
[08:38] Glenjamin: eldios: check out "async" on npm
[08:39] eldios: mmm thanks Glenjamin
[08:40] zomgbie has joined the channel
[08:40] jackbean has joined the channel
[08:41] karlbrigh has joined the channel
[08:41] felixhummel has joined the channel
[08:42] theCode: what's the best redis client for Node?
[08:42] dsirijus has joined the channel
[08:42] theCode: I checked the one named 'redis', it sucks
[08:43] theCode: inconsistent functionality, if it does even work
[08:44] rfay has joined the channel
[08:46] slip has joined the channel
[08:47] theCode: goddamnit, none of them seem to be supporting zrange
[08:51] christophsturm has joined the channel
[08:51] rakesh314 has joined the channel
[08:51] altamic has joined the channel
[08:51] rakesh314 has left the channel
[08:51] mc_greeny has joined the channel
[08:52] martinciu has joined the channel
[08:53] jvduf has joined the channel
[08:53] japj has joined the channel
[08:54] vidi has joined the channel
[08:55] MUILTFN has joined the channel
[08:55] jackbean has joined the channel
[08:57] kulor-uk has joined the channel
[09:00] kulor-uk has joined the channel
[09:03] sfoster has joined the channel
[09:04] liveink_ has joined the channel
[09:05] doctorm has joined the channel
[09:06] doctorm: Is anyone aware of a function that will decode a php session? I haven't had any luck finding one, and php.js' unserialize function doesn't work.
[09:07] doctorm: Nm, I found a couple php versions I can port.
[09:08] kulor-uk has joined the channel
[09:09] CIA-69: libuv: 03Igor Zinkovsky 07fs * r0e322fa 10/ (13 files in 5 dirs): uv_fs & uv_work APIs - http://git.io/_Z5iWQ
[09:09] rurufufuss has joined the channel
[09:09] karlbrigh: I need to stub out a method that is used within a constructor. Any better way than just Object.prototype.methodToStub = function... ? Surely there must be a better way?
[09:10] mcouzinet has joined the channel
[09:11] Glenjamin: karlbrigh: have a look at sinonJS, maybe in combination with some explicit dependency injection if its a method on a different object
[09:11] karlbrigh: cheers again Glenjamin :)
[09:11] zilch_ has joined the channel
[09:11] groom: I'm hunting a bug. Can s.o. please point me to the source code of socket.end()?
[09:12] sechrist has joined the channel
[09:14] alaudidae has joined the channel
[09:14] LevyYoung has joined the channel
[09:14] yokoe has joined the channel
[09:15] zgryw has joined the channel
[09:15] markwubben has joined the channel
[09:16] slip has joined the channel
[09:17] bosky101 has joined the channel
[09:17] paulwe has joined the channel
[09:18] sechrist has joined the channel
[09:21] tdegrunt has joined the channel
[09:21] louissmit has joined the channel
[09:22] N0va` has joined the channel
[09:23] tcurdt has joined the channel
[09:24] Treffynnon has joined the channel
[09:25] hekkwan has joined the channel
[09:27] slip has joined the channel
[09:28] mendel_ has joined the channel
[09:30] zomgbie has joined the channel
[09:31] zilch_ has joined the channel
[09:31] japj: groom: it depends on which version of node you have
[09:31] groom: japj: 0.4.10
[09:31] madsleejensen has joined the channel
[09:32] japj: groom: https://github.com/joyent/node/blob/v0.4.10/lib/net.js#L866
[09:33] groom: japj: thank you
[09:35] booo has joined the channel
[09:36] Aiden has joined the channel
[09:36] jhurliman has joined the channel
[09:37] stonebranch has joined the channel
[09:44] Esteb has joined the channel
[09:44] MUILTFN has joined the channel
[09:44] confoocious has joined the channel
[09:44] confoocious has joined the channel
[09:45] bosky101 has joined the channel
[09:45] zilch_ has joined the channel
[09:46] alaudidae has left the channel
[09:48] asabil has joined the channel
[09:48] adrianmg has joined the channel
[09:49] squeese has joined the channel
[09:50] Treffynnon has joined the channel
[09:52] slip has joined the channel
[09:52] Layke has joined the channel
[09:53] navaru has joined the channel
[09:54] navaru has left the channel
[09:57] bartt has joined the channel
[09:59] mldevbrissy has joined the channel
[09:59] bosky101 has joined the channel
[09:59] zilch_ has joined the channel
[09:59] madsleejensen1 has joined the channel
[10:00] m00p has joined the channel
[10:00] fangel has joined the channel
[10:01] Wizek has joined the channel
[10:05] bosky101 has joined the channel
[10:05] zilch_ has joined the channel
[10:05] slip has joined the channel
[10:06] sylvinus has joined the channel
[10:10] ditesh|cassini has joined the channel
[10:11] fermion has joined the channel
[10:12] TheFuzzball has joined the channel
[10:12] fermion has joined the channel
[10:13] junkee[] has left the channel
[10:13] navaru1 has joined the channel
[10:14] navaru1 has left the channel
[10:14] chjj: does anyone here use showdown as their markdown parser?
[10:14] chjj: i need to take a poll or something
[10:15] mike5w3c_ has joined the channel
[10:16] CIA-69: libuv: 03Igor Zinkovsky 07master * re954b4c 10/ (vcbuild.bat create-msvs-files.bat): merge create_msvs_files.bat and vcbuild.bat into vcbuild.bat - http://git.io/qKAC8Q
[10:18] fly-away has joined the channel
[10:19] toki_kanno_ has joined the channel
[10:20] Wa has joined the channel
[10:21] japj has joined the channel
[10:22] zgryw has joined the channel
[10:22] chrisumbel has joined the channel
[10:23] chrisumbel_ has joined the channel
[10:23] rope has joined the channel
[10:23] Wa has joined the channel
[10:25] slip has joined the channel
[10:25] Wa has joined the channel
[10:26] neilk_ has joined the channel
[10:27] jbrokc_ has joined the channel
[10:28] skm has joined the channel
[10:31] mendel_ has joined the channel
[10:32] Wa has joined the channel
[10:34] ph^ has joined the channel
[10:36] mikeal1 has joined the channel
[10:42] davve has joined the channel
[10:44] liveink has joined the channel
[10:44] chrisumbel has joined the channel
[10:45] mendel_ has joined the channel
[10:46] mendel_ has joined the channel
[10:47] ParadoxQuine has joined the channel
[10:47] mendel_ has joined the channel
[10:49] mendel_ has joined the channel
[10:49] Layke: What kind of a connection do I want to open from PHP if I want to send some event to my socket.io server.
[10:49] jvduf has joined the channel
[10:50] mendel_ has joined the channel
[10:53] mendel__ has joined the channel
[10:53] jzacsh has joined the channel
[10:54] slaskis has joined the channel
[10:54] FireFly|n900 has joined the channel
[10:54] FireFly|n900 has joined the channel
[10:56] industrial: When are require()'s done? before runtime?
[10:56] H4ns: industrial: no, requre() is just a normal function.
[10:57] industrial: right
[10:57] H4ns: industrial: there is no such thing as "runtime" with javascript.
[10:57] H4ns: industrial: (if you want to contrast it with "compile time")
[10:58] industrial: well i was wondering if it might cache things to prevent unneeded loading
[10:58] H4ns: industrial: it does.
[10:58] industrial: okay, thats fine then
[10:58] industrial: so if I include file A from B and C, file A will only run once?
[10:58] Layke: Does this actually exist? http://nodejs.org/docs/v0.5.0/api/dgram.html
[10:58] H4ns: industrial: no. caching is per using module.
[10:58] Layke: Iḿ trying to allow PHP to send messages to my node.js server.
[10:59] Layke: Would this be the correct way?
[10:59] SubStack: industrial: correct
[10:59] SubStack: H4ns: what
[10:59] H4ns: SubStack: no?
[10:59] H4ns: SubStack: then i've misinterpreted the documentation, let me check
[10:59] SubStack: ACTION performs an experiment
[10:59] Nexxy: SubStack, it is 4AM young man don't you have school in the morning?!
[10:59] H4ns: SubStack: http://nodejs.org/docs/v0.4.11/api/all.html#require
[11:00] H4ns: SubStack: i thought this was clear, but i'm not a native english speaker, so i might be wrong.
[11:00] Nexxy: H4ns, if it means anything you type english better than many native speakers
[11:00] industrial: "Modules are cached after the first time they are loaded. This means (among other things) that every call to require('foo') will get exactly the same object returned, if it would resolve to the same file."
[11:00] industrial: ACTION should read the docs
[11:00] H4ns: Nexxy: thanks, but still.
[11:00] SubStack: H4ns: I'm confirming my initial claim that A will only run once
[11:00] SubStack: I'll gist it
[11:01] H4ns: SubStack: so you are saying the documentation is misleading when it says that require "is local to each module"?
[11:02] _druu has joined the channel
[11:02] SubStack: https://gist.github.com/1173193
[11:02] dexter_e has joined the channel
[11:02] SubStack: H4ns: the cache is global
[11:02] _druu has left the channel
[11:02] H4ns: SubStack: ok. then i'd say that the documentation is not clear, but it may be me.
[11:03] H4ns: industrial: sorry for the false info :/
[11:03] dominictarr: if npm installs a module multiple times (possible, as npm supports version conficts) you can got two versions of the same module, which runs the modules twice
[11:03] Nexxy: require with node is moar liek require_once
[11:03] Nexxy: from what I can tell anyway
[11:04] Glenjamin has joined the channel
[11:04] SubStack: dominictarr: I've got ansi progress bars working in testling now when you curl -T a file to it
[11:04] dominictarr: it saves the cache[absolute path] = exports object
[11:04] industrial: H4ns: hey np
[11:05] slip has joined the channel
[11:05] industrial: Anyone have an open source project that uses NodeJS, Connect, Express and a key/value store? I'm interested in your file structure =)
[11:06] dominictarr: sweet!
[11:06] jetienne has joined the channel
[11:07] dominictarr: that reminds me, I need a brief description of testing for the talk,
[11:08] dominictarr: I could give them a description of what I think testling is, but I'd just like to make sure the description vaguely resembles tho description.
[11:09] SubStack: testling is a service that lets you run javascript tests in all browsers
[11:10] SubStack: without installing anything
[11:10] SubStack: unless you want to
[11:12] fairwinds has joined the channel
[11:13] mendel_ has joined the channel
[11:14] mendel_ has joined the channel
[11:15] mendel__ has joined the channel
[11:15] mikl has joined the channel
[11:17] arthurdebert has joined the channel
[11:18] zgryw has joined the channel
[11:19] mendel_ has joined the channel
[11:21] mikl has joined the channel
[11:21] mendel_ has joined the channel
[11:22] mendel_ has joined the channel
[11:22] Wa has joined the channel
[11:22] slip has joined the channel
[11:23] mendel_ has joined the channel
[11:24] museic has joined the channel
[11:26] jzacsh has joined the channel
[11:27] hellp has joined the channel
[11:29] kdng-humanchimp has joined the channel
[11:29] blueadept has joined the channel
[11:29] blueadept has joined the channel
[11:29] mendel_ has joined the channel
[11:30] mendel_ has joined the channel
[11:30] kulor-uk has joined the channel
[11:31] FireFly|n900 has joined the channel
[11:32] rfay has joined the channel
[11:33] sylvinus has joined the channel
[11:34] anubhaw has joined the channel
[11:35] anubhaw: can someone please explain me the reasoning behind it : http://stackoverflow.com/questions/6645796/node-js-performance-with-zeromq-vs-python-vs-java . I myself tested this code on my local machine and found python code to be twice faster than node.js code
[11:36] liveink__ has joined the channel
[11:36] brianseeders has joined the channel
[11:37] dob_ has joined the channel
[11:37] brianseeders has joined the channel
[11:38] Lorentz: anubhaw: Who knows
[11:39] gurleyman has joined the channel
[11:40] anubhaw: Lorentz: I expected node.js to be performing better than java/python particularly in this case
[11:41] chjj: anubhaw: is that a zeromq binding?
[11:41] massivebiz has joined the channel
[11:41] anubhaw: chjj: yes
[11:42] chjj: anubhaw: as far as i know the crossover between js and linked machine code, or "c++ land" is fairly expensive
[11:43] chjj: i have no idea how that binding is written, but judging node based on a third party module doesnt seem to be the best to way go about doing it
[11:43] jzacsh has joined the channel
[11:43] jzacsh has joined the channel
[11:44] chjj: if you were instead judging it by nodes native tcp interface, then i might be concerned
[11:45] Lorentz: And really, does it matter, you're putting the cart before the horse.
[11:45] Lorentz: Write app first. Then compare. There's no point to compare it like that, there's always time for optimisation.
[11:45] Lorentz: That's not even counting how different things are.
[11:46] anubhaw: chjj: zeromq node binding used is pretty common one . but I somewhat agree to your point. looks like I need to do some tetsing with native tcp interface.
[11:47] chjj: anubhaw: that would be better, i would be interested to see that
[11:48] chjj: but a lot of the time, c++ bindings to v8 can be slow, its better to write most things in JS
[11:48] anubhaw: Lorentz: The performance hit claimed in that post is pretty high. Moreover I wanted to do some research/ get others views before I actually make technology decision.
[11:49] anubhaw: chjj: thanks for your input. I'll try out that
[11:49] andree has joined the channel
[11:49] chjj: anubhaw: i think it might be part of the reason most popular database bindings to node are written in pure JS
[11:49] chjj: not only do people not want to compile things
[11:49] chjj: but it actually has the potential to be faster
[11:49] toki_kanno has joined the channel
[11:50] chjj: i think ry gave a talk about this a while back, when coding the buffer objects for node, he noticed that they were actually *a lot* faster if he wrote most everything in JS as opposed to c++
[11:51] chjj: so he did what he needed to in c++ land, but mostly implemented everything else in JS
[11:51] mcepl has joined the channel
[11:52] chjj: if bnoordhuis or someone were here they might be able to give you a more thorough explanation
[11:53] DrMcKay has joined the channel
[11:54] meso has joined the channel
[11:54] yept has joined the channel
[11:55] booo has joined the channel
[11:55] meso has joined the channel
[11:55] bshumate has joined the channel
[11:55] bshumate has joined the channel
[11:56] Cromulent has joined the channel
[11:56] __tomb has joined the channel
[11:57] CStumph has joined the channel
[11:59] gurleyman has left the channel
[12:03] kdng-humanchimp has joined the channel
[12:07] _kud has joined the channel
[12:07] random123 has joined the channel
[12:08] __tomb has joined the channel
[12:09] hij1nx has joined the channel
[12:09] kdng-humanchimp has joined the channel
[12:10] kdng-humanchimp has joined the channel
[12:14] zilch_ has joined the channel
[12:15] albertosheinfeld has joined the channel
[12:15] bosky101 has joined the channel
[12:16] cosmincx has joined the channel
[12:16] arthurdebert has joined the channel
[12:19] zilch_ has joined the channel
[12:20] sylvinus has joined the channel
[12:21] xtianw has joined the channel
[12:21] micheil has joined the channel
[12:21] bosky101 has joined the channel
[12:24] zilch_ has joined the channel
[12:26] kriszyp has joined the channel
[12:27] SamHasler has joined the channel
[12:27] nibblebot has joined the channel
[12:27] bosky101 has joined the channel
[12:28] zilch_ has joined the channel
[12:28] Cromulent has joined the channel
[12:28] Remoun_ has joined the channel
[12:30] altamic has joined the channel
[12:31] CoinOpeBoy has joined the channel
[12:32] NetRoY has joined the channel
[12:32] zilch_ has joined the channel
[12:32] langworthy has joined the channel
[12:33] bosky101 has joined the channel
[12:35] robotmay has joined the channel
[12:37] slip has joined the channel
[12:37] zilch_ has joined the channel
[12:38] bosky101 has joined the channel
[12:39] sivy has joined the channel
[12:41] Poetro has joined the channel
[12:41] timbermar has joined the channel
[12:42] massivebiz has joined the channel
[12:42] prettyrobots has joined the channel
[12:43] japj_ has joined the channel
[12:43] bosky101 has joined the channel
[12:43] rfay has joined the channel
[12:45] Vertice has joined the channel
[12:46] schwab has joined the channel
[12:46] m0s has joined the channel
[12:47] bosky101 has joined the channel
[12:49] piscisaureus has joined the channel
[12:50] industrial: I don't understand, from the NodeJS 0.4.10 docs, how do send a request body with http.request().
[12:50] Metal3d has joined the channel
[12:50] industrial: http://nodejs.org/docs/v0.4.10/api/http.html#http.request
[12:50] kdng-tr7 has joined the channel
[12:50] postwait has joined the channel
[12:51] industrial: oh, right
[12:51] industrial: write data do it.
[12:53] hdon- has joined the channel
[12:53] bnoordhuis has joined the channel
[12:53] agnat_ has joined the channel
[12:53] jamescarr has joined the channel
[12:53] bosky101 has joined the channel
[12:53] jamescarr: quick question
[12:56] JoshC1 has joined the channel
[12:56] amigojapan has joined the channel
[12:56] ank has joined the channel
[12:57] jamescarr has joined the channel
[12:58] bnoordhuis: jamescarr: quick answer
[12:58] japj: how quick?
[12:58] jamescarr: got disconnected. Does joyent offer email servers in their offerings? :)
[12:58] japj: lol
[12:58] jamescarr: bnoordhuis, :)
[12:58] bosky101 has joined the channel
[12:58] jamescarr: trying to stake out how we can use email quickly in the KO
[12:58] japj: isn't there a nodejs email server?
[12:58] jamescarr: I mean, send email from our applications
[12:59] bnoordhuis: jamescarr: you can run mail servers on no.de instances
[12:59] kylejginavan has joined the channel
[12:59] jamescarr: bnoordhuis, nice!
[12:59] bnoordhuis: jamescarr: i think they come installed with a mail daemon running but don't quote me on that
[13:00] DrMcKay: um, that reminded me that I was supposed to roll out a RESTful e-mail protocol...
[13:00] CStumph has joined the channel
[13:00] DrMcKay: and my productivity is gone.
[13:00] japj: isn't there a #joyent channel aswell?
[13:00] zilch_ has joined the channel
[13:00] bnoordhuis: japj: yes
[13:00] baoist has joined the channel
[13:00] kylejginavan: great opportunity for someone to test their node skills. http://jobs.nodejs.org/a/jbb/job-details/549161
[13:01] micheil: jamescarr: I think there's also a service that does mail that's free for contestants to use
[13:01] slip has joined the channel
[13:02] jamescarr: micheil, oh?
[13:02] micheil: http://nodeknockout.com/services
[13:02] japj: why does the jobs section on nodejs contain html javascript viruses?
[13:02] micheil: will tell you what you can use
[13:02] DrMcKay: japj: ?
[13:02] zilch_ has joined the channel
[13:02] pickels has joined the channel
[13:02] bosky101 has joined the channel
[13:03] DrMcKay: also, this jobs thing needs a bit of love.
[13:03] japj: according to avira it "Contains recognition pattern of the HTML/Crypted.Gen HTML script virus"
[13:03] DrMcKay: it's simply ugly.
[13:04] jamescarr: dont see any mail services on the services page
[13:04] DrMcKay: japj: I don't see anything like that in the code
[13:04] jamescarr: plus a lot of the ones we heard about arent even listed
[13:04] trupppOFF has joined the channel
[13:05] mikl has joined the channel
[13:05] zilch_ has joined the channel
[13:05] bosky101 has joined the channel
[13:06] slip_ has joined the channel
[13:07] zilch_ has joined the channel
[13:07] altamic_ has joined the channel
[13:07] altamic_ has joined the channel
[13:07] bosky101 has joined the channel
[13:08] zilch_ has joined the channel
[13:09] kulor-uk has joined the channel
[13:10] mpavel has left the channel
[13:10] bosky101 has joined the channel
[13:11] zilch_ has joined the channel
[13:14] dennisjbell has joined the channel
[13:15] sylvinus has joined the channel
[13:15] bosky101 has joined the channel
[13:15] Kingdutch has joined the channel
[13:17] eazyigz has joined the channel
[13:20] mcepl has joined the channel
[13:22] thomblake has joined the channel
[13:23] thomblake has left the channel
[13:23] adambeynon has joined the channel
[13:25] bosky101 has joined the channel
[13:26] Juan77 has joined the channel
[13:26] slip has joined the channel
[13:27] davidsklar has joined the channel
[13:27] Juan77 has joined the channel
[13:28] mcouzinet has joined the channel
[13:28] bosky101 has joined the channel
[13:28] jtsnow has joined the channel
[13:28] evg has joined the channel
[13:29] kylejginavan has left the channel
[13:29] zilch_ has joined the channel
[13:30] bosky101 has joined the channel
[13:31] zilch_ has joined the channel
[13:31] evg: Hello. Can anybody help me with Error inheritance?
[13:31] evg: http://pastebin.com/yq4SWx9A
[13:31] rmcastil has joined the channel
[13:33] bnoordhuis: evg: .apply doesn't work with constructors
[13:33] bnoordhuis: evg: or rather, it's complicated
[13:33] dguttman has joined the channel
[13:34] slip has joined the channel
[13:34] zilch_ has joined the channel
[13:34] bosky101 has joined the channel
[13:34] evg: bnoordhuis: it does for primitive A, B classes
[13:34] evg: But it doesn't for internal Error class
[13:34] bingomanatee has joined the channel
[13:35] kulor-uk has joined the channel
[13:35] evg: of course, not _class_ but _function_
[13:35] bnoordhuis: evg: yes, you're right - that's why i added that disclaimer :)
[13:35] evg: so what is the best approach to extend Error?
[13:35] bnoordhuis: well
[13:35] zilch_ has joined the channel
[13:36] Sembiance: node has 8,828 watchers on github. jquery has 8,901 Everyone go to https://github.com/joyent/node and click watch, let's try and beat jQuery ;)
[13:36] bnoordhuis: i think that one of the reasons that we don't extend Error in core is that the semantics are icky
[13:36] dguttman has joined the channel
[13:36] bnoordhuis: stuff like stack traces don't always work right and such
[13:36] kurtzhong has joined the channel
[13:36] voodootikigod has joined the channel
[13:36] evg: bnoordhuis: so? should I thrown an instance of my own class?
[13:37] evg: * throw
[13:37] evg: like "Exception" or whatever
[13:37] bnoordhuis: evg: in node core we just throw Error and be done with it
[13:38] zilch_ has joined the channel
[13:38] evg: bnoordhuis: probably checking err.name is the way
[13:38] evg: cuz I need to return a different code depending on an error type
[13:39] evg: 404 or 500, for instance
[13:39] evg: I make a REST API, I didn't say.
[13:39] evg: http://expressjs.com/guide.html#error-handling confused me
[13:39] evg: they extend Error
[13:39] evg: but their way also doesn't work
[13:40] museic has joined the channel
[13:41] Cromulent has joined the channel
[13:41] bnoordhuis: evg: you'll probably have to tinker with Error.captureStackTrace()
[13:42] nibblebot has joined the channel
[13:43] NodeBleed has joined the channel
[13:44] NodeBleed: Getting 504 gateway timeout with nginx in front of node.ks
[13:44] NodeBleed: Help! :<
[13:44] zmbmartin has joined the channel
[13:44] evg: bnoordhuis: ok, thank you
[13:45] industrial: with the NodeJS https.request(), how do I give it a content length?
[13:45] Sembiance: NodeBleed: pastebin/gist your nginx config and maybe the relevant port/address info from your node.js startup
[13:46] mcouzinet has left the channel
[13:46] NodeBleed: ok
[13:47] jtsnow has joined the channel
[13:47] ksheurs has joined the channel
[13:47] N0va` has joined the channel
[13:49] NodeBleed: Sembiance: https://gist.github.com/1173437
[13:50] sylvinus has joined the channel
[13:51] NodeBleed: Higher timeout?
[13:51] codigoespagueti has joined the channel
[13:52] hornairs has joined the channel
[13:52] ablomen: NodeBleed, on a side note, wont setting headers from ngx interfere with setting headers from node?
[13:53] NodeBleed: dunno
[13:53] pandeiro has joined the channel
[13:53] brianc has joined the channel
[13:54] Sembiance: NodeBleed: looking at your config...
[13:54] willwhite has joined the channel
[13:55] NodeBleed: I know it's a bit unorthodox :>
[13:55] klaustsen has joined the channel
[13:56] pNstK has joined the channel
[13:56] ParableTF2 has joined the channel
[13:56] brianc has joined the channel
[13:57] kimico has joined the channel
[13:57] sid3k`` has joined the channel
[13:57] zilch_ has joined the channel
[13:57] Bonuspunk has joined the channel
[13:57] Archio has joined the channel
[13:58] mape_ has joined the channel
[13:58] Sembiance: NosBleed: it looks ok to me, here is what I'm using in production https://gist.github.com/1173452
[13:59] Sembiance: NodeBleed: any /node/* requests end up going to my node.js server listening locally on port 7714
[13:59] NodeBleed: ?
[13:59] ben_alman_ has joined the channel
[13:59] fdenbow has joined the channel
[13:59] jvolkman_ has joined the channel
[13:59] NodeBleed: Ah
[13:59] mnutt has joined the channel
[14:00] jwm_ has joined the channel
[14:00] versicolor has joined the channel
[14:00] bsutt has joined the channel
[14:00] aspect_ has joined the channel
[14:00] zilch_ has joined the channel
[14:00] jheusala_ has joined the channel
[14:00] AD7six_ has joined the channel
[14:00] progme has joined the channel
[14:00] slsh_ has joined the channel
[14:01] dcelix has joined the channel
[14:01] PrgmrBill^ has joined the channel
[14:01] JoeMaverickSett has joined the channel
[14:01] Sembiance: NodeBleed: have you examined your firebug/chrome network tab? to see which HTTP headers are sent, and which are received? have you looked at your nginx error/access logs to see what it thought of the request?
[14:01] azend_ has joined the channel
[14:01] Sembiance: NodeBleed: have you verified whether or not the request is actually getting to your node server or not?
[14:01] kee has joined the channel
[14:01] inimino has joined the channel
[14:01] jamesd has joined the channel
[14:01] jetienne_ has joined the channel
[14:01] slip_ has joined the channel
[14:01] pzich has joined the channel
[14:01] mrkurt_ has joined the channel
[14:01] pradeepto_bhatta has joined the channel
[14:01] chilts has joined the channel
[14:02] Anton_ has joined the channel
[14:02] jakehow__ has joined the channel
[14:02] jakehow_ has joined the channel
[14:02] jakehow has joined the channel
[14:02] bronson has joined the channel
[14:02] sivy has joined the channel
[14:02] Sembiance has joined the channel
[14:02] phiggins has joined the channel
[14:02] slickplaid has joined the channel
[14:02] dawolf has joined the channel
[14:02] zilch_ has joined the channel
[14:02] PrgmrBill has joined the channel
[14:02] hopbit has joined the channel
[14:02] ryanfitz has joined the channel
[14:02] Yuffster has joined the channel
[14:02] pandeiro has joined the channel
[14:03] Sembiance: NodeBleed: had to disconnect/reconnect there, might have missed a message or two from you
[14:03] necrodearia has joined the channel
[14:03] joeytwiddle has joined the channel
[14:04] mcepl has joined the channel
[14:04] leonh has joined the channel
[14:04] NodeBleed: Sembiance: What does proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for do?
[14:04] zilch_ has joined the channel
[14:04] rsterner has joined the channel
[14:04] hopbit: test
[14:04] kee has joined the channel
[14:05] _sri has joined the channel
[14:05] oliland has joined the channel
[14:06] stepheneb has joined the channel
[14:07] zilch_ has joined the channel
[14:07] MrNibbles has joined the channel
[14:08] mikey_p_ has joined the channel
[14:08] grekko has joined the channel
[14:08] timbermar has left the channel
[14:08] Sembiance: NodeBleed: well, since nginx is acting like a proxy here, it ensures that node.js has access to the original IP address of the client. SeE: http://wiki.nginx.org/HttpProxyModule#.24proxy_add_x_forwarded_for
[14:09] Cromulent has joined the channel
[14:09] nibblebot has joined the channel
[14:09] NodeBleed: Sembiance: Does that help prevent 504 errors?
[14:09] nibblebot has joined the channel
[14:09] Yoric has joined the channel
[14:10] zilch_ has joined the channel
[14:10] Sembiance: NodeBleed: depends on how your node.js server is configured, but likely they are unrelated. You should determine whether nginx or node.js is returning the 504 and then figure out why :)
[14:10] slip has joined the channel
[14:11] Sembiance: NodeBleed: take a look at the HTTP headers sent/received by using the Firebug or chrome 'net' panels. that can give a good hint. Also examine the nginx logs (both error and access) and also add some console.log() statements in your node.js server to determine if the request is even getting there or not
[14:11] NodeBleed: right
[14:12] fangel has joined the channel
[14:12] zilch_ has joined the channel
[14:12] TheJH has joined the channel
[14:13] AD7six has joined the channel
[14:14] versicolor has joined the channel
[14:14] zilch_ has joined the channel
[14:14] ghostwriter has joined the channel
[14:16] brianc has joined the channel
[14:16] mrtazz_ has joined the channel
[14:17] zilch_ has joined the channel
[14:17] DrMcKay: TheJH: it doesn't rain here, but AFAIK, Warsaw is taking massive rain hit as well
[14:17] Yoric has left the channel
[14:18] DrMcKay: fuck, do you guys know any scripts to make IRSSI less pain?
[14:18] aheckmann has joined the channel
[14:18] grekko has joined the channel
[14:18] else- has joined the channel
[14:18] zgryw: DrMcKay: as for now, there is no rain here in Warsaw, as well as it doesn't look like raining today...
[14:19] DrMcKay: zgryw: oh, you're in Warsaw? in news I've seen few flooded streets
[14:19] zilch_ has joined the channel
[14:20] zgryw: DrMcKay: yeah, last few days where a bit "rainy", escpecially in the evenings...
[14:20] jetienne has joined the channel
[14:21] tshpaper has joined the channel
[14:21] DrMcKay: zgryw: I knew TVN24 lies :D
[14:22] DrMcKay: (or maybe it was me not paying attention)
[14:22] zilch_ has joined the channel
[14:22] steveheyes has joined the channel
[14:22] steveheyes: hi there
[14:22] DrMcKay: zgryw: anyway, your streets aren't flooded?
[14:23] steveheyes: I was wondering if anyone could help me with a problem
[14:23] zgryw: i didn't see any, but also, i'm not living near the flooded-by-every-little-rain areas
[14:23] steveheyes: i'm using the code over at https://gist.github.com/911289
[14:23] clifton has joined the channel
[14:23] steveheyes: but keep getting a error message: TwitterNode parser error: Object # has no method 'broadcast'
[14:23] steveheyes: wondered if anyone could help?
[14:24] CoverSlide has joined the channel
[14:24] steveheyes: i know it's a socket.io issue but their irc channel was hugely helpful
[14:24] jacobolus has joined the channel
[14:24] zilch_ has joined the channel
[14:24] sonnym has joined the channel
[14:26] DrMcKay: steveheyes: I'm not sure if that's how you should be constructing this socket
[14:26] brianc has joined the channel
[14:26] steveheyes: right
[14:26] skm has joined the channel
[14:26] steveheyes: how do you mean?
[14:27] steveheyes: (thanks for the input :) )
[14:27] DrMcKay: wait, no, you're doing it right
[14:28] zilch_ has joined the channel
[14:28] Ezku_ has joined the channel
[14:28] steveheyes: lol
[14:29] DrMcKay: no, you're doing it right
[14:29] steveheyes: ok. so any idea why i'm getting the error?
[14:30] DrMcKay: (also, you guys may want to ignore me today, I'm being incompatible with rest of the world)
[14:30] zilch_ has joined the channel
[14:30] zastaph has joined the channel
[14:31] apoc_ has joined the channel
[14:31] jacobolus has joined the channel
[14:31] alaudidae has joined the channel
[14:32] DrMcKay: also, anyone attending devmeeting in Poznań here?
[14:32] Malar has joined the channel
[14:33] `3rdEden has joined the channel
[14:33] zilch_ has joined the channel
[14:33] wink_: steveheyes: try to let socket.io handle the server creation instead of doing it manually and see if that removes the error, it'll at least let you narrow it down a little
[14:33] wink_: but i think thats likely where things are jumping the rails
[14:34] steveheyes: ok cool. How do i do that?
[14:34] dingomanatee has joined the channel
[14:34] dexter_e has joined the channel
[14:34] Kai`_ has joined the channel
[14:35] slip has joined the channel
[14:35] madsleejensen has joined the channel
[14:35] wink_: line 18 of your gist, just give it a port number instead of the http server object, comment that bit out and see if it still blows up
[14:35] Clex_ has joined the channel
[14:35] wink_: comment that bit out = the createserver/listen call
[14:35] zilch_ has joined the channel
[14:35] TheJH: huh? what kind of topic is that?
[14:35] TheJH: can someone explain it to me?
[14:35] spetrea_ has joined the channel
[14:36] zined_ has joined the channel
[14:36] pct_ has joined the channel
[14:36] wereHamster has joined the channel
[14:36] swaj has joined the channel
[14:36] swaj has joined the channel
[14:36] pdm_ has joined the channel
[14:36] aelien27 has joined the channel
[14:36] Aikar has joined the channel
[14:36] Aikar has joined the channel
[14:36] pquerna has joined the channel
[14:36] Astro has joined the channel
[14:37] davidcoallier has joined the channel
[14:37] slloyd has joined the channel
[14:38] zilch_ has joined the channel
[14:38] DrMcKay: TheJH: this won't work: https://gist.github.com/911289
[14:38] steveheyes: nope, still didn't worked and produced the error
[14:38] ohtogo has joined the channel
[14:38] ralphholzmann has joined the channel
[14:38] wink_: regist it please
[14:39] steveheyes: https://gist.github.com/1173539
[14:39] tmm1 has joined the channel
[14:39] TheJH: DrMcKay, what's that?
[14:39] wink_: steveheyes: thats the same gist?
[14:39] ivaldi has joined the channel
[14:40] _kud has joined the channel
[14:40] steveheyes: how do you mean regist it?
[14:40] wink_: let me see what it looks like now that you've changed it :p
[14:40] steveheyes: i'm using that code
[14:40] steveheyes: and it doesn't work
[14:40] kevwil has joined the channel
[14:40] DrMcKay: TheJH: steveheyes' code
[14:40] zilch_ has joined the channel
[14:41] DrMcKay: steveheyes: explain it to TheJH, he may work something out
[14:41] adambeynon has joined the channel
[14:41] wink_: steveheyes: i just added a comment, try that version
[14:41] clu3 has joined the channel
[14:42] cnu has joined the channel
[14:42] sylvinus has joined the channel
[14:42] steveheyes: nope, still get TwitterNode parser error: Object # has no method 'broadcast'
[14:43] dingomanatee: Here is the data I am storing (for above question) http://stackoverflow.com/questions/7206413/monngo-is-taking-a-huge-amount-of-space-to-save-this-data
[14:43] dingomanatee: do these numbers seem out of whack to anyone else?
[14:43] dingomanatee: sorry missend
[14:43] zilch_ has joined the channel
[14:43] PhilK has joined the channel
[14:43] steveheyes: TheJH: I'm using teh code in the gist to get twitter stream to work. But I keep getting the same error message: "TwitterNode parser error: Object # has no method 'broadcast'"
[14:43] don_jones has joined the channel
[14:44] TheJH: steveheyes, what does this say? console.log(socket.constructor.name + ' ' + Object.keys(socket))
[14:44] gerard0 has joined the channel
[14:44] wao has joined the channel
[14:44] tg has joined the channel
[14:44] sivy has joined the channel
[14:44] jamesd has joined the channel
[14:44] jheusala_ has joined the channel
[14:44] mikeal1 has joined the channel
[14:44] adrianmg has joined the channel
[14:44] confoocious has joined the channel
[14:44] cjheath has joined the channel
[14:44] simenbrekken has joined the channel
[14:44] temp01 has joined the channel
[14:44] JasonSmith has joined the channel
[14:44] jspiros has joined the channel
[14:44] SuMarDi has joined the channel
[14:44] garrensm_ has joined the channel
[14:44] ceej has joined the channel
[14:44] adalgiso has joined the channel
[14:44] anatoo has joined the channel
[14:44] mikekunze has joined the channel
[14:44] devrim has joined the channel
[14:44] pig_ has joined the channel
[14:44] er1c_ has joined the channel
[14:44] unmanbearpig has joined the channel
[14:44] lmorchard has joined the channel
[14:44] rhutchison_ has joined the channel
[14:44] Pilate has joined the channel
[14:44] berasa has joined the channel
[14:44] fuzzyone has joined the channel
[14:44] halfhalo has joined the channel
[14:44] maru_cc_ has joined the channel
[14:44] Draggor has joined the channel
[14:44] Utkarsh has joined the channel
[14:44] tomaw has joined the channel
[14:44] Hadaka has joined the channel
[14:44] madari_ has joined the channel
[14:44] couchquid_ has joined the channel
[14:44] DrPizza has joined the channel
[14:44] a11235 has joined the channel
[14:44] sstephenson has joined the channel
[14:44] heavysixer has joined the channel
[14:44] __doc__ has joined the channel
[14:44] rhutchison_ has joined the channel
[14:45] steveheyes: it says "Manager server,namespaces,sockets,settings,handshaken,connected,open,closed,closedA,rooms,roomClients,oldListeners,_events,gc"
[14:45] kenperkins has joined the channel
[14:45] sivy has joined the channel
[14:45] smtlaissezfaire has joined the channel
[14:46] zilch_ has joined the channel
[14:46] unmanbearpig has joined the channel
[14:46] hydrozen has joined the channel
[14:46] slip has joined the channel
[14:46] cjm has joined the channel
[14:46] TheJH: steveheyes, https://github.com/LearnBoost/socket.io says you need socket.broadcast.emit or so
[14:46] steveheyes has left the channel
[14:46] steveheyes has joined the channel
[14:46] steveheyes: sorry could you re paste that link
[14:47] steveheyes: i had a bit of issue with my irc channel!
[14:47] steveheyes has left the channel
[14:47] TheJH: steveheyes, https://github.com/LearnBoost/socket.io says you need socket.broadcast.emit or so
[14:47] bradleymeck has joined the channel
[14:48] steveheyes has joined the channel
[14:48] steveheyes: again, sorry, can you repaste the link?
[14:48] steveheyes: thanks :D
[14:48] zilch_ has joined the channel
[14:48] kmiyashiro has joined the channel
[14:49] max_dev has joined the channel
[14:50] zilch_ has joined the channel
[14:50] jtsnow has joined the channel
[14:51] indexzero has joined the channel
[14:51] zemanel has joined the channel
[14:53] gartenst_ has joined the channel
[14:53] hybsch has joined the channel
[14:53] hybsch1 has joined the channel
[14:53] zilch_ has joined the channel
[14:55] pjacobs has joined the channel
[14:55] ceej has joined the channel
[14:56] ryanfitz has joined the channel
[14:56] geetarista has joined the channel
[14:56] zilch_ has joined the channel
[14:58] madsleejensen has joined the channel
[14:58] SuMarDi has joined the channel
[14:59] zilch_ has joined the channel
[14:59] dingomanatee: I have a long array of signed ints - what is the best way to compress it into a binary lump of data?
[15:01] hackband has joined the channel
[15:01] zilch_ has joined the channel
[15:01] liveink_ has joined the channel
[15:01] DrMcKay: dingomanatee: compress or just serialize?
[15:01] dingomanatee: serialize.
[15:01] jackbean has joined the channel
[15:01] dingomanatee: I am storing an array of 128 x 128 ints and it is choking the s**t onto fmongo
[15:02] DrMcKay: dingomanatee: oh, sure it does
[15:02] andrewfff has joined the channel
[15:02] dingomanatee: I just want to store them in the same packed format as I'm getting them in the first place.
[15:02] dylang has joined the channel
[15:02] TheJH: dingomanatee, well, then don't deserialize them?
[15:02] DrMcKay: dingomanatee: you could just use their binary representation
[15:02] dingomanatee: I am getting them in chunks of 5,000 x 11, 0000 ints
[15:02] dingomanatee: 11,000 that is
[15:02] dingomanatee: This is Martian terrain.
[15:03] Sembiance: dingomanatee: just save them in the same format you get them in?
[15:03] dingomanatee: I want to work on smaller units of information.
[15:03] aconbere has joined the channel
[15:03] steveheyes has left the channel
[15:03] zilch_ has joined the channel
[15:03] context: thats 55 million ints
[15:03] Sembiance: dingomanatee: as far as saving to disk, decide whether you want speed or compression. if speed: http://code.google.com/p/snappy/
[15:03] DrMcKay: Sembiance++
[15:03] v8bot_: DrMcKay has given a beer to Sembiance. Sembiance now has 2 beers.
[15:03] catb0t: Sembiance now has 1 beer
[15:03] dingomanatee: yeah that is what I was hoping for
[15:04] sub_pop has joined the channel
[15:04] RORgasm has joined the channel
[15:04] shanebo has joined the channel
[15:04] DrMcKay: dingomanatee: also, are you sure that Mongo is the right database for you?
[15:04] dingomanatee: not at this point - not for this purpose
[15:05] DrMcKay: dingomanatee: so why are you using it?
[15:05] zilch_ has joined the channel
[15:05] dingomanatee: Well, its probably better than MySQL for this purpose - and I think the data is just too big for couch.
[15:06] Sembiance: dingomanatee: if you want to store more structured data... maybe http://code.google.com/p/protobuf/
[15:06] dingomanatee: someone suggested Redis - that would be my next experiment.
[15:06] DrMcKay: dingomanatee: well, Redis might fit beter
[15:06] Sembiance: dingomanatee: that was me, but redis only makes sense if your data set fits in RAM and you need blazing fast access to it (and even better if you change the data once in a while)
[15:06] losing has joined the channel
[15:06] dingomanatee: I'm actually thinking of just storing the binary data back to the file system.
[15:06] DrMcKay: dingomanatee: but +1 for experimenting :)
[15:06] slip has joined the channel
[15:06] dingomanatee: I don't think tit will.
[15:07] Sembiance: dingomanatee: I don't know enough about how the data is being used to really suggest what might be best to store it in
[15:08] zilch_ has joined the channel
[15:08] dingomanatee: I'm making WebGL terrain out of it. but at this point the data is still very coarse - I am likely going to take it and interpolate up to 16 times more data from this binary chunk
[15:08] CIA-69: node: 03koichik 07master * r43cdbec 10/ test/simple/test-tls-client-abort.js :
[15:08] CIA-69: node: test: simple/test-tls-client-abort fails on SunOS
[15:08] CIA-69: node: Fixes #1583. - http://git.io/qoBzjQ
[15:08] Sembiance: dingomanatee: got a link? sounds like something neat to look at
[15:08] dingomanatee: So I of course find it disturbing that the coarse grained data is taking 5MB to store!
[15:08] cjm has joined the channel
[15:09] dingomanatee: https://gist.github.com/1173528 is the raw data dump
[15:09] dingomanatee: I think I just need to put it back in a file buffer and save it in file chunks.
[15:10] Sembiance: dingomanatee: well with all those integers, mongodb is almost certainly not the correct storage choice.
[15:10] DrMcKay: dingomanatee: it seems like it definitely won't fit right into Mongo
[15:10] dingomanatee: yeah.
[15:11] dingomanatee: I need it in 2d arrays when I process it but I guess I'll have to unpack it every time I need it
[15:11] smus has joined the channel
[15:11] DrMcKay: dingomanatee: can you fit your algorithms into mapreduce?
[15:11] zilch_ has joined the channel
[15:11] burningdog has joined the channel
[15:11] Sembiance: dingomanatee: well if your goal is to output something with WebGL, you should pre-convert this data into whatever format you can most easily work with to display with WebGL. Then just chunk that up and save it, probably as snappy encoded files
[15:12] dingomanatee: Probably. But if the end product is still massively wasteful I might as well just stick to binary blocks of data in files.
[15:12] ckpcw has left the channel
[15:12] dingomanatee: Snappy will be nice, as there is bound to be a lot of repetition of values.
[15:13] dingomanatee: however snappy seems string oriented.
[15:13] robertfw has joined the channel
[15:13] achiu has joined the channel
[15:13] tjholowaychuk has joined the channel
[15:14] zilch_ has joined the channel
[15:14] Sembiance: dingomanatee: seems like you have enough info/answers now to go and start coding up some stuff
[15:14] hakunin has joined the channel
[15:15] dingomanatee: yeah … thanks. I was kind of hoping that I could store the data in arrays so I could do array operations on terrain points in Mongo but this seems like an unhealthy path to go down.
[15:16] dingomanatee: It was less stupid than storing each point in a Mongo record… that was pretty scary !
[15:16] isaacs has joined the channel
[15:16] creationix has joined the channel
[15:16] zilch_ has joined the channel
[15:17] DrMcKay: dingomanatee: how long did it take to insert :D ?
[15:17] dingomanatee: days.
[15:17] dingomanatee: Currently the model I gist'd is about 40% done - and its been running all week!
[15:18] dingomanatee: <-- is a sad panda
[15:18] neilk_ has joined the channel
[15:18] newy has joined the channel
[15:18] dingomanatee: Well, yo ho ho, its the binary life for me!
[15:18] shajith_ has joined the channel
[15:19] sorensen: nice
[15:19] zilch_ has joined the channel
[15:20] ben_alman has joined the channel
[15:20] DrMcKay: well, I would killall mongod if I had to wait days for it to insert
[15:20] dingomanatee: Stupid Mars.
[15:21] DrMcKay: :D
[15:21] zilch_ has joined the channel
[15:21] sneakyness_wk has joined the channel
[15:23] edude03 has joined the channel
[15:23] ben_alman has joined the channel
[15:24] zilch_ has joined the channel
[15:24] Destos has joined the channel
[15:25] jackbean has joined the channel
[15:27] dingomanatee: The sick part is the data is stored cartographically - meaning the 25% of the data at the poles takes as much space as the 50% of the data in the equator - thinking of recompressing it into a square, like Bizarro's home world.
[15:27] slifty has joined the channel
[15:29] slip has joined the channel
[15:29] killfill: anyone uses node with freebsd?
[15:29] bnoordhuis: killfill: yes
[15:30] killfill: bnoordhuis: you think its a likee slower than linux?
[15:30] DrMcKay: dingomanatee: geocouch maybe?
[15:30] elijah-mbp: dingomanatee, maybe stuff it into postgresql with one of the postgis-compatible data storage forms?
[15:31] CoverSlide: according to benchmarks its slower than linux
[15:31] elijah-mbp: if it's really terrain data and you're going to do surface-like operations on it....
[15:31] CoverSlide: iirc
[15:31] bnoordhuis: killfill: i don't think it is, i *know* it is
[15:31] CoverSlide: but that depends on which benchmark you looked at
[15:31] CoverSlide: but it'll probably be more stable
[15:31] bnoordhuis: killfill: working on it but freebsd has lower priority than linux obviously
[15:31] mbthomas has joined the channel
[15:31] DrMcKay: now I feel like installing few VMs and benchmarking node on them
[15:32] mbthomas has joined the channel
[15:32] Glenjamin: i'd say thats not going to be your bottleneck
[15:32] Glenjamin: ever
[15:32] chjj has joined the channel
[15:32] dingomanatee: Your results will be virtually indisputable :D
[15:32] smtlaissezfaire has joined the channel
[15:32] killfill: bnoordhuis: ooh, i alwais thought ab was somehow cracked up. i just uses blitz.io and like on 100 concurrent users, the thing begins to stress
[15:32] Glenjamin: and you'll probably en up deploying on virtualised hardware anyway
[15:32] dguttman has joined the channel
[15:32] DrMcKay: dingomanatee: :D
[15:32] jacobolus has joined the channel
[15:33] Glenjamin: presumably freebsd ~= OS X for that sort of thing
[15:33] bnoordhuis: killfill: what do your libuv `make bench` numbers look like?
[15:33] bnoordhuis: killfill: cd deps/uv && make bench
[15:34] mykul has joined the channel
[15:34] killfill: Glenjamin: yah, i actually have an osx in home. alwais thought ab was bad, or the nodejs version i was using.. :P
[15:34] killfill: never thought there was a prob on *bsd.. :P
[15:34] killfill: ACTION recompilling node
[15:35] DrMcKay: bnoordhuis: btw, why don't you make uv a git submodule? (just curious)
[15:35] killfill: bnoordhuis: is there a place where this problem is reported? or could i track the progress... im a bsd user.. :P
[15:35] bnoordhuis: DrMcKay: because git submodules suck balls
[15:35] ryanfitz_ has joined the channel
[15:35] bnoordhuis: killfill: there's a freebsd tag in joyent/node's issue tracker
[15:35] DrMcKay: bnoordhuis: fair enough.
[15:36] descipher has joined the channel
[15:36] bnoordhuis: pardon my french btw
[15:36] jj0hns0n has joined the channel
[15:37] rfay has joined the channel
[15:39] zgryw has joined the channel
[15:40] agrohe21 has joined the channel
[15:41] zeropx has joined the channel
[15:41] DrMcKay: vim highlights text between different HTML tags in different ways or is it just VTE going crazy?
[15:43] stepheneb has joined the channel
[15:43] hesh has joined the channel
[15:43] zilch_ has joined the channel
[15:44] slip has joined the channel
[15:45] thinkt4nk has joined the channel
[15:45] chrislorenz has joined the channel
[15:46] zilch_ has joined the channel
[15:47] creationix has left the channel
[15:47] rfay_ has joined the channel
[15:48] DrMcKay: .. ++[[]][+[]]+[+[]]
[15:48] catb0t: '10'
[15:48] synkro has joined the channel
[15:48] Glenjamin: haha
[15:48] DrMcKay: seriously, JavaScript?
[15:48] zilch_ has joined the channel
[15:48] DrMcKay: http://stackoverflow.com/questions/7202157
[15:48] Glenjamin: if that sort of thing is causing problems in your code
[15:48] Glenjamin: you're writing weird code
[15:49] DrMcKay: Glenjamin: this is my whole script :D
[15:49] DrMcKay: I think I will actually start using this kind of expressions...
[15:49] Glenjamin: exactly
[15:49] Glenjamin: there's a bunch of weird gotchas, but clean code should never really hit them
[15:50] Glenjamin: the only one that screws me over is:
[15:50] arthurdebert has joined the channel
[15:50] Glenjamin: .. var a; 'text' + a
[15:50] catb0t: 'textundefined'
[15:50] zilch_ has joined the channel
[15:50] DrMcKay: oh... I could write an array like that and then convert it to ASCII and eval it
[15:51] achiu has joined the channel
[15:51] jesster7_ has joined the channel
[15:51] DrMcKay: Glenjamin: that's worse:
[15:51] DrMcKay: .. [1,2] == [1,2]
[15:51] stephank has joined the channel
[15:51] catb0t: false
[15:51] killfill: hmm.. dont have deps/uv..
[15:51] bnoordhuis: killfill: 0.4.x or 0.5.x?
[15:51] killfill: yah 4, getting 5 now
[15:52] bnoordhuis: killfill: you can get libuv directly at joyent/libuv
[15:52] JumpMast3r has joined the channel
[15:52] Archio has joined the channel
[15:52] killfill: ill just install 5
[15:53] zilch_ has joined the channel
[15:53] Glenjamin: DrMcKay: you can cheat a bit depending on the type of array....
[15:53] Glenjamin: .. ''+[1,2] == ''+[1,2]
[15:53] catb0t: true
[15:53] Glenjamin: .. ''+[1,2] == ''+[1,2,3]
[15:53] catb0t: false
[15:53] DrMcKay: Glenjamin: but it's still a hack :)
[15:54] DrMcKay: I wonder if he supports typed arrays
[15:54] DrMcKay: .. new ArrayBuffer(1);
[15:54] catb0t: ReferenceError: ArrayBuffer is not defined
[15:55] zilch_ has joined the channel
[15:55] Yuffster_work has joined the channel
[15:56] martinciu has joined the channel
[15:56] Glenjamin: .. require("net").createServer().listen(1337)
[15:56] catb0t: ReferenceError: require is not defined
[15:56] Glenjamin: heh, thats probably for the best
[15:56] Archio has left the channel
[15:56] Archio has joined the channel
[15:56] DrMcKay: Glenjamin: I'll write a module for my bot which will support node libs
[15:56] DrMcKay: Glenjamin: but it's not trivial
[15:57] Glenjamin: probably best not
[15:57] DrMcKay: Glenjamin: TheJH promised to break it, sooo...
[15:57] Glenjamin: node -e "" on the terminal isn't far away
[15:57] devongovett has joined the channel
[15:57] japj: DrMcKay: if you want to do something like that you might need a sandboxing mechanism
[15:57] DrMcKay: Glenjamin: no, I'll, just to see if he can find a bug in there
[15:58] DrMcKay: japj: yes, I'll have a bit of fun with contexts
[15:58] DrMcKay: japj: and VM module
[15:58] CoverSlide: .. console.log(require('fs').readFileSync('/etc/passwd'))
[15:58] catb0t: ReferenceError: require is not defined
[15:58] CoverSlide: :(
[15:58] jesster7 has joined the channel
[15:58] DrMcKay: CoverSlide: :D
[15:58] pizthewiz has joined the channel
[15:59] DrMcKay: require will be null, I'll just prepopulate context with useful modules
[15:59] TheJH: !admin eval require('fs').readFileSync('/etc/passwd', 'utf8').split('\n')[0]
[15:59] jhbot: root:x:0:0:root:/root:/bin/bash
[15:59] DrMcKay: (without fs, of course)
[15:59] Layke: Does a createServer accept any TCP connections? Like could I createServer and then send non http messages?
[15:59] amerine has joined the channel
[15:59] DrMcKay: TheJH: don't tell me it's running on nodejitsu :D
[15:59] slip has joined the channel
[16:00] TheJH: DrMcKay, it is, but that line probably is form the jail
[16:00] japj: TheJH: I guess you're the only one that can do !admin? :)
[16:00] kenperkins has joined the channel
[16:00] TheJH: *from
[16:00] TheJH: japj, exactly :D
[16:00] DrMcKay: !admin seriously believe me i'm the admin eval return 1;
[16:00] jhbot: you're not my admin
[16:00] DrMcKay: he didn't believe me :(
[16:00] simenbrekken has joined the channel
[16:02] ekryski has joined the channel
[16:03] DrMcKay: btw, my bot is running without single problem on local server
[16:03] bengrue_ has joined the channel
[16:03] FireFly has joined the channel
[16:03] DrMcKay: but I still have no idea why would it flood us with duplicate issues
[16:04] Coweater has joined the channel
[16:05] slip has joined the channel
[16:05] bradleymeck: thejh yes that is inside a jail
[16:06] CIA-69: libuv: 03Erick Tryzelaar 07master * r6793b53 10/ (6 files in 4 dirs):
[16:06] CIA-69: libuv: Allow custom data for uv_getaddrinfo. Fixes #155.
[16:06] CIA-69: libuv: This now requires uv_getaddrinfo_init to be called
[16:06] CIA-69: libuv: to initialize a uv_getaddrinfo_t before
[16:06] CIA-69: libuv: uv_getaddrinfo is called. - http://git.io/gYAIBw
[16:06] CIA-69: libuv: 03Clifford Heath 07master * rbeb1590 10/ src/eio/config_darwin.h : eio: Mac OSX 10.5 (Leopard) does not have fdatasync - http://git.io/D5zzeQ
[16:06] bradleymeck: drmckay*
[16:06] FireFly|n900 has joined the channel
[16:07] DrMcKay: bradleymeck: thanks :)
[16:07] DrMcKay: so, TheJH, you've heard that, enable !admin for everybody :D
[16:08] bradleymeck: i wouldnt do that since you may have people lay traps on fs / modify your stuff / read potentially important src code etc.
[16:08] kenperkins: :P
[16:08] jakehow has joined the channel
[16:08] CoverSlide: !admin exec "require('child_process').exec('shutdown -P')"
[16:08] jakehow_ has joined the channel
[16:08] jhbot: you're not my admin
[16:08] DrMcKay: bradleymeck: shhh... ;)
[16:08] jakehow__ has joined the channel
[16:08] CIA-69: libuv: 03Clifford Heath 07master * r835782a 10/ src/eio/config_darwin.h : eio: Mac OSX 10.5 (Leopard) does not have fdatasync - http://git.io/CFHRPQ
[16:11] CIA-69: node: 03Ben Noordhuis 07master * r5e765fe 10/ (deps/uv/src/eio/config_darwin.h deps/uv/vcbuild.bat): uv: upgrade to 835782a - http://git.io/0195bQ
[16:11] killfill: bnoordhuis: http://pastebin.com/xKG6yHnn dont know what it means really..
[16:11] dshaw_ has joined the channel
[16:12] fumanchu182 has joined the channel
[16:12] pizthewiz has joined the channel
[16:13] Cromulent has joined the channel
[16:13] slip has joined the channel
[16:13] eldios: how do I "return" stdout from an exec?
[16:14] jesster7 has joined the channel
[16:14] eldios: it succesfully does console.log .. or any other callback I give it
[16:14] eldios: but it seems that return is not an option
[16:14] zilch_ has joined the channel
[16:14] eldios: whhyyyyyyy... oh whyyyyyy
[16:14] CoverSlide: you don't return in callbacks
[16:14] CoverSlide: usually at leasy
[16:14] jetienne has joined the channel
[16:14] mike5w3c_ has joined the channel
[16:14] eldios: but I need to use the result of the stdout outside of the cb
[16:15] CoverSlide: then write a function outside the cb that uses stdout
[16:15] CoverSlide: and call that in the cb
[16:15] bnoordhuis: killfill: afk now but back in an hour or two
[16:15] newy has joined the channel
[16:15] bnoordhuis: killfill: i suspect you're running an older 0.5.x version though, it's missing a number of tests
[16:15] eldios: CoverSlide, I made a function called returnIt
[16:16] eldios: which returns the argument you give it
[16:16] jkwiii_ has joined the channel
[16:16] eldios: and that doesn't work :P
[16:17] CoinOpeBoy has joined the channel
[16:17] jesster7 has joined the channel
[16:17] TheJH: DrMcKay, I'm not that stupid :D - you could make my bot spam the channel :D
[16:17] zilch_ has joined the channel
[16:18] bradleymeck: eldios it doesnt return, it passes it along, that how async programming works, in order to prevent wait locking you use continuation style passing and callbacks generally
[16:18] CoverSlide: I probably wouldn't make it spam the channel, I'd probably have it try to brute-force into the CIA or something
[16:18] xicubed has joined the channel
[16:19] DrMcKay: CoverSlide: we already set up a node-chat there, don't you remember?
[16:19] CoinOpeBoy has joined the channel
[16:19] Yoric has joined the channel
[16:19] CoverSlide: of course!
[16:19] Yoric has left the channel
[16:20] zilch_ has joined the channel
[16:20] softdrink: poor yoric. i knew him well.
[16:20] Qbix1 has joined the channel
[16:21] ditesh|cassini has joined the channel
[16:22] Archio: I knew him, softdrink; a fellow of infinite jest, of most excellent fancy; he hath borne me on his back a thousand times...
[16:23] zilch_ has joined the channel
[16:23] eldios: bradwright, CoverSlide here --> https://gist.github.com/1173788
[16:23] killfill: bnoordhuis: dont know if it helps, but http://imageshack.us/photo/my-images/191/bsdd.png/
[16:23] eldios: this *shoud* work...
[16:23] guillermo has joined the channel
[16:23] CoverSlide: eldios: nay, it shan't
[16:24] theCode has joined the channel
[16:24] cpetzold has joined the channel
[16:24] tylerstalder has joined the channel
[16:24] eldios: indeed it works not..
[16:24] eldios: as a matter of fat it kinda works only in my mind :)
[16:24] killfill: maybes its my bw tho.
[16:24] eldios: lulz
[16:24] eldios: matter f fact*
[16:24] maushu has joined the channel
[16:25] softdrink: one more time eldios
[16:25] eldios: matter of fact*
[16:25] eldios: \o/
[16:25] softdrink: well done, sir
[16:25] zilch_ has joined the channel
[16:26] tdegrunt has joined the channel
[16:26] tomtomaso has joined the channel
[16:27] CoverSlide: well for one thing, listGrms never returns anything, but that doesn't matter
[16:27] smus has joined the channel
[16:27] felixhummel has joined the channel
[16:27] zilch_ has joined the channel
[16:27] eldios: cause since exec it's async it is in charge of return-ing anything
[16:27] vidi has joined the channel
[16:27] ronnieboy has joined the channel
[16:28] tomtomaso has joined the channel
[16:28] eldios: theoretically
[16:28] TooTallNate has joined the channel
[16:28] jesster7 has joined the channel
[16:29] DrMcKay: would it be responsible to propose node.js for Fedora packaging?
[16:29] CoverSlide: with an async function, you have to have a callback, it just doesn't do anything without one
[16:29] kmiyashiro has joined the channel
[16:30] zilch_ has joined the channel
[16:30] CoverSlide: so you really shouldn't have a use-case where cbk is undefined
[16:30] jesster7 has joined the channel
[16:31] rmcastil has joined the channel
[16:31] markdaws has joined the channel
[16:31] CoverSlide: also, if(typeof cbk === 'function') is much better at detecting whether a variable is a function, because it it's a number, you'll have a TypeError
[16:32] eldios: oof
[16:32] jesster7 has joined the channel
[16:32] eldios: you're right
[16:32] eldios: I'll change that now
[16:32] eldios: I upadted the gist meanwhile
[16:32] CoverSlide: so I'd catch that before the call to exec at all
[16:32] zilch_ has joined the channel
[16:33] eldios: ok
[16:33] eldios: updated again
[16:33] kmiyashiro has joined the channel
[16:34] dominictarr has joined the channel
[16:35] zilch_ has joined the channel
[16:37] jergason has joined the channel
[16:38] zilch_ has joined the channel
[16:38] eldios: CoverSlide, no.. I don't want to catch it *before* the exec
[16:38] eldios: since if it's a function
[16:38] jergason: hello node friends
[16:38] eldios: then you should exec the cb
[16:38] creationix has joined the channel
[16:38] slip has joined the channel
[16:38] eldios: instead if there's no cb supplied
[16:38] markdaws has joined the channel
[16:38] eldios: the stdout should be simply returned
[16:38] eldios: (and this is the part which is not working)
[16:38] CoverSlide: but if there is no cb supplied, then the function does nothing
[16:39] CoverSlide: because you can't return from an async function
[16:39] CoverSlide: it is just simply impossible
[16:39] anubhaw has joined the channel
[16:39] CoverSlide: that's the nature of async programming
[16:39] nibblebo_ has joined the channel
[16:39] eldios: eh.. that's the "problem" I'm trying to workaround
[16:39] CoverSlide: there is no workaround
[16:39] CoverSlide: whatever you want to do with stdout, you write in the callback
[16:39] hybsch has left the channel
[16:40] CoverSlide: because returning things only works synchronously, not asynchronously
[16:40] jackbean has joined the channel
[16:40] CoverSlide: and there is no synchronous way to go about what you're trying to do
[16:41] dwt has joined the channel
[16:41] newy has joined the channel
[16:41] eldios: mmm I see
[16:41] eldios: welll I'l try to do a few more cbs
[16:42] petrjanda has joined the channel
[16:42] mnutt has joined the channel
[16:42] eldios: then if nothing comes up.. I supposeI can try with the eventEmitter way
[16:42] dwt: Hi there, I got referred here from #coffeescript. My goal is to find a way to generate CoffeeScript classes at runtime, without eval, while still controlling their name
[16:42] dwt: Something like
[16:42] dwt: name = "fnord"
[16:42] eldios: which would probably be heavier and clumsier but possibly more effective and powerful
[16:42] dwt: class "#{name}" extends Backbone.Collection
[16:42] dwt: (which doesn't work sadly)
[16:42] dwt: Can anybody give me a hint?
[16:43] Kami_ has joined the channel
[16:44] eldios: thank you CoverSlide
[16:44] eldios: gotta go =)
[16:44] eldios: bye
[16:45] markdaws_ has joined the channel
[16:46] CrisO has joined the channel
[16:46] markdaw__ has joined the channel
[16:47] liveink has joined the channel
[16:47] creationix has left the channel
[16:48] markdaws has joined the channel
[16:48] langworthy has joined the channel
[16:48] anubhaw_ has joined the channel
[16:48] alvaro_o has joined the channel
[16:49] dwt has joined the channel
[16:49] codehero has left the channel
[16:50] jerrysv has joined the channel
[16:51] anubhaw_ has joined the channel
[16:52] jkwiii_ has joined the channel
[16:52] chrislorenz has joined the channel
[16:53] slifty has joined the channel
[16:53] luke` has joined the channel
[16:53] aconbere has joined the channel
[16:57] plombardi has joined the channel
[16:58] kenperkins: is there a current test framework favorite?
[16:58] plombardi: Question, doing the install on the git page but i get the an issue with Python running this command "./configure --prefix=$HOME/local/node" I'm assuming this is because my default Python interpreter is v3.x and not 2.x what can I do to rectify this?
[16:59] binarychef has joined the channel
[17:00] DrMcKay: plombardi: gist your output, but I believe that node-waf doesn't work with 3.x
[17:01] DrMcKay: kenperkins: I like node-unit and vows
[17:01] kenperkins: what about straight api tests (not web api, but code api)
[17:03] wadey has joined the channel
[17:04] dshaw_ has joined the channel
[17:04] slip has joined the channel
[17:04] StanlySoManly has joined the channel
[17:04] ryanfitz has joined the channel
[17:06] nibblebot has joined the channel
[17:08] zeade has joined the channel
[17:08] theCode has joined the channel
[17:09] eignerchris has joined the channel
[17:10] jetienne has joined the channel
[17:10] brianc: anyone here live in austin?
[17:11] cpetzold has joined the channel
[17:13] newy has joined the channel
[17:15] jacobolus has joined the channel
[17:16] trentm has joined the channel
[17:16] te-brian has joined the channel
[17:17] robotmay has joined the channel
[17:17] Layke: I've never created anythign with node before. This is my first app. Am I doing things correctly? http://pastie.org/2434526 My server seems to work.. just not wanting to brush up on best practices.
[17:18] Layke: Like how could I make that more readable to someone? You click on it and don'g have a clue what the fuck it does.
[17:18] jetienne has joined the channel
[17:21] sonnym has joined the channel
[17:21] tktiddle has joined the channel
[17:22] tktiddle: what can i do about this? http://fpaste.org/D8Ti/
[17:22] vidi has joined the channel
[17:22] mlb- has joined the channel
[17:23] stonecobra has joined the channel
[17:23] petrjanda has joined the channel
[17:24] mjr_ has joined the channel
[17:25] scottschecter has joined the channel
[17:26] gartenst_ has joined the channel
[17:29] petrjanda has joined the channel
[17:29] slifty has joined the channel
[17:29] fangel has joined the channel
[17:30] RichardNodeJS has joined the channel
[17:30] geetarista has joined the channel
[17:31] slip has joined the channel
[17:31] RichardNodeJS: hey everyone, does anyone know the right middleware to use with express for bodyParser for POST events? having alot of trouble with the default one
[17:31] tjholowaychuk: RichardNodeJS are you setting the content-type?
[17:32] pjacobs has joined the channel
[17:32] RichardNodeJS: yah, I got it to work with json, but my input is just a plain string =/
[17:32] RichardNodeJS: I looked at the code but it looked like it only supported two formats
[17:33] RichardNodeJS: some url encoded ting, and json
[17:33] eee_c has joined the channel
[17:33] cjm has joined the channel
[17:33] RichardNodeJS: was trying to do just context/text =P no luck
[17:33] RichardNodeJS: thing*
[17:33] tjholowaychuk: what is context/text
[17:33] tjholowaychuk: you have to plug in a new parser mapped to that mime type
[17:33] tjholowaychuk: if you want custom stuff
[17:33] RichardNodeJS: oops. sorry text/plain
[17:34] tjholowaychuk: text/plain isnt a format you parse
[17:34] tjholowaychuk: it's just text
[17:34] CIA-69: node: 03Ryan Dahl 07master * r8af0abd 10/ Makefile : prepare for release - website under new user - http://git.io/K8zyiQ
[17:34] CIA-69: node: 03Ryan Dahl 07master * r16b3f2c 10/ lib/dns_uv.js : Fix dns_uv.lookup order - http://git.io/bg9xgA
[17:34] RichardNodeJS: but thats all I need for my post event =P
[17:34] caolanm has joined the channel
[17:34] tjholowaychuk: then buffer the body and use the text :p
[17:34] tjholowaychuk: you dont need bodyParser for that
[17:34] RichardNodeJS: ohh =o
[17:34] softdrink: tjholowaychuk: is there something like docco/dox that i can use with stylus?
[17:34] smathy has joined the channel
[17:35] tjholowaychuk: softdrink nope
[17:35] tjholowaychuk: to build docs for your css?
[17:35] tjholowaychuk: not that i know of no
[17:35] softdrink: oui.
[17:35] Remoun_ has joined the channel
[17:35] stonecobra: anyone having issues with npm timing out trying to download a package from the registry?
[17:35] softdrink: damn
[17:35] RichardNodeJS: huh, I knew I must have been missing something obvious
[17:35] jacobolus has joined the channel
[17:36] mjijackson has joined the channel
[17:37] Layke: How do you guys manage who is currently connected? Should I just restart my server every hour?
[17:37] mjijackson has joined the channel
[17:37] slip has joined the channel
[17:38] Layke: Sorry.. I'm usign sockets.io so that made no sense out of context.
[17:38] gr-eg has joined the channel
[17:38] necrodearia has joined the channel
[17:38] RichardNodeJS: tjholowaychuk: sorry to ask again, but do you know where a good example of buffering the req.body is?
[17:38] RichardNodeJS: I'm just finding example that seem to use bodyParser
[17:38] tjholowaychuk: RichardNodeJS bodyParser :p
[17:38] anubhaw has joined the channel
[17:39] hekkwan has joined the channel
[17:39] tjholowaychuk: but parsing a buffered body and just buffering the body are different things
[17:39] tjholowaychuk: use node's req.on('data' events
[17:39] mc_greeny has joined the channel
[17:39] tjholowaychuk: if you even need to buffer at all, if you're streaming to a file etc you dont need to
[17:39] ryanfitz has joined the channel
[17:40] RichardNodeJS: nah, nothing fancy, really I just have this really simple string i'm trying to get on the server side of a post event =/
[17:40] RichardNodeJS: pretty dang hard
[17:40] kmiyashiro has joined the channel
[17:41] tjholowaychuk: it's not hard, just read the http server docs
[17:41] tjholowaychuk: you'll see that get "data" events
[17:41] tjholowaychuk: which are the chunks of the body
[17:41] tjholowaychuk: what you do with those is up to you
[17:42] RichardNodeJS: neat! thanks
[17:42] gartenst_ has joined the channel
[17:45] RichardNodeJS: hah, I just found your name in qs tjholowaychuk
[17:46] safed has joined the channel
[17:46] jobject has joined the channel
[17:47] Qbix1 has joined the channel
[17:47] softdrink: … there are over 700 users here right now.
[17:49] anubhaw has joined the channel
[17:49] juyeongpark has joined the channel
[17:49] mraleph has joined the channel
[17:49] fmeyer has joined the channel
[17:52] neilk_ has joined the channel
[17:52] RichardNodeJS: bingo! got it tjholowaychuk =) thanks
[17:53] Gregor: softdrink: And only 569 in ##javascript :P
[17:53] Gregor: (But 889 in #jquery)
[17:54] descipher has joined the channel
[17:55] NickABusey has joined the channel
[17:56] NickABusey has left the channel
[17:57] Remoun_ has joined the channel
[17:57] juyeongpark has joined the channel
[17:59] slip has joined the channel
[17:59] CIA-69: libuv: 03Igor Zinkovsky 07master * r183178a 10/ README : update readme with vcbuild.bat instructions - http://git.io/s6K8eQ
[18:00] zeade has joined the channel
[18:00] anubhaw has joined the channel
[18:01] __sorin_1 has joined the channel
[18:02] __tomb has joined the channel
[18:02] __sorin_1 has joined the channel
[18:03] slifty has joined the channel
[18:03] __sorin_1 has joined the channel
[18:03] CIA-69: libuv: 03Igor Zinkovsky 07master * r25175c7 10/ (13 files in 5 dirs): uv_fs & uv_work APIs - http://git.io/tBtAnw
[18:03] tuhoojabotti: What's the easiest way to empty a file
[18:03] tuhoojabotti: unlink and open/close?
[18:03] tuhoojabotti: :u
[18:04] DrMcKay: !doc link fs#truncate
[18:04] DrMcKay: ah, my bot isn't here
[18:04] DrMcKay: tuhoojabotti: fs.truncate
[18:04] tuhoojabotti: Nice
[18:04] bradleymeck has joined the channel
[18:04] tuhoojabotti: DrMcKay++
[18:04] v8bot_: tuhoojabotti has given a beer to DrMcKay. DrMcKay now has 1 beers.
[18:04] catb0t: DrMcKay now has 1 beer
[18:05] tuhoojabotti: Hihi
[18:05] killfill: im doing ab -n 1000 -c 200 http://127.0.0.1:10260 <-- is it normal that when i make aprox -c > 260, i get this? http://pastebin.com/DKiG6bEr
[18:05] killfill: its just a plain express app, wich does res.send('hello') ...
[18:06] dmkbot has joined the channel
[18:06] tuhoojabotti: lool
[18:06] DrMcKay: (for now his github module is turned off until he completes his test period)
[18:06] tuhoojabotti: Node crashed when I gave truncate a string
[18:06] tuhoojabotti: not a fd
[18:06] tjholowaychuk: killfill can i see a gist of your little app?
[18:06] tuhoojabotti: path that is
[18:07] DrMcKay: tuhoojabotti: crashed?
[18:07] DrMcKay: tuhoojabotti: for me it's TypeError
[18:07] killfill: tjholowaychuk: https://gist.github.com/1174001
[18:08] tuhoojabotti: DrMcKay: Yes that's a crash, because I didn't catch it. :u
[18:08] DrMcKay: tuhoojabotti: well, from that point of view, yeah :)
[18:08] tjholowaychuk: killfill hmm yeah that should be fine
[18:08] tuhoojabotti: I guess I need to open to write
[18:09] DrMcKay: would truncateFile be accessible in core?
[18:09] tuhoojabotti: ?
[18:09] DrMcKay: tuhoojabotti: function to truncate file by name'
[18:09] killfill: tjholowaychuk: i was beginning to think node was not 100% in shape on freebsd.. bnoordhuis told me some hours ago it was actually slow. could this be how it manifest been slow on bsd?
[18:09] tuhoojabotti: fs.truncateSync(fs.openSync(logFile, 'w'), 0); syncetisync
[18:09] tuhoojabotti: :D
[18:09] DrMcKay: tuhoojabotti: well, yes...
[18:09] tuhoojabotti: ACTION hides
[18:10] DrMcKay: tuhoojabotti: but this one doesn't close it ;)
[18:10] tuhoojabotti: Yeh
[18:10] DrMcKay: bnoordhuis: ping?
[18:10] tjholowaychuk: killfill not sure, you usually only see that when you have a race-condition and you respond twice etc
[18:10] DrMcKay: and, oh, not accessible but acceptable
[18:10] piscisaureus has joined the channel
[18:10] tjholowaychuk: killfill but something as simple as res.send() is basically just res.end()
[18:10] tjholowaychuk: it should be totally fine
[18:10] enosis has joined the channel
[18:10] DrMcKay: I'm being incompatible with world today
[18:11] tuhoojabotti: DrMcKay: also that truncate will probably call to my watchFile :P
[18:11] killfill: yup.. its 0.5.4 btw
[18:11] robi42 has joined the channel
[18:11] DrMcKay: tuhoojabotti: yes, I believe yes
[18:11] nibblebo_ has joined the channel
[18:12] bradleymeck: isaacs is there a setting to prevent npm from trying to setuid to nobody (im calling it from a nobody process)
[18:12] Orion- has joined the channel
[18:12] Orion-: hello nodes
[18:12] Orion-: :D
[18:12] tuhoojabotti: Orion-: Well hi there!
[18:12] stepheneb has joined the channel
[18:13] danielleswank has joined the channel
[18:14] Orion-: What's the best way to scale nodes horizontally (spreat on many servers) ?
[18:14] killfill: tjholowaychuk: actually i get this, without express: net_legacy.js:847 close(this.fd); Error: ENOTCONN, Socket is not connected
[18:15] jj0hns0n has joined the channel
[18:15] tjholowaychuk: killfill oh 0.5.x
[18:15] tjholowaychuk: i haven't tested connect or express with 0.5.x yet
[18:15] ronniebo_ has joined the channel
[18:15] piscisaureus_ has joined the channel
[18:16] dshaw_ has joined the channel
[18:16] AvianFlu has joined the channel
[18:17] wadey: hmm, is require('https').getAgent() broken in 0.4.11 ?
[18:17] jmazzi has joined the channel
[18:17] bradleymeck: Orion- best way is to use a balancer / master mesh to maintain along w/ udp discovery if it is across multiple servers (generally this should be customized per your app)
[18:17] Marak has joined the channel
[18:17] slip has joined the channel
[18:18] indexzero has joined the channel
[18:18] teadict: I saw this COMET example once of a screencast with two browsers opened and the guy dragging a piece of text testing messaging with node.. has anyone seen it? I lost it
[18:19] wadey: is there any way to up the default agent.maxSockets in 0.4 ?
[18:20] felixhummel has joined the channel
[18:20] skm has joined the channel
[18:21] [[zz]] has joined the channel
[18:22] djcoin has joined the channel
[18:22] ap3mantus has joined the channel
[18:25] aconbere has joined the channel
[18:25] robotmay_ has joined the channel
[18:26] tdegrunt has joined the channel
[18:26] Destos has joined the channel
[18:26] losing_ has joined the channel
[18:26] CIA-69: libuv: 03Ryan Dahl 07master * r7cad73a 10/ (include/uv-unix.h src/uv-unix.c test/test-fs.c): Fix build for UNIX - http://git.io/qamnNA
[18:27] tuhoojabotti: Does truncate return fd?
[18:28] tuhoojabotti: truncateSync that is
[18:29] tdegrunt_ has joined the channel
[18:29] jmazzi: I'm attempting to require a file the extends a classed declared in the file that required it. It tells me that Search is undefined. Not sure why https://gist.github.com/1174069
[18:30] trotter has joined the channel
[18:31] robinduckett has joined the channel
[18:32] robinduckett: evening
[18:32] adambeynon has joined the channel
[18:32] robinduckett: is there a node knockout irc channel?
[18:33] robinduckett: official or adhoc?
[18:33] bnoordhuis: tuhoojabotti: truncate returns nothing
[18:34] tuhoojabotti: Yeah
[18:34] tuhoojabotti: that's what I feared
[18:34] __sorin_1 has joined the channel
[18:34] geetarista: wondering the same thing robinduckett
[18:34] DrMcKay: bnoordhuis: would truncateFile be acceptable in core?
[18:34] geetarista: worried about the room getting pretty crowded tonight
[18:34] robinduckett: aye
[18:34] bnoordhuis: DrMcKay: you mean ftruncate?
[18:34] DrMcKay: !doc link fs#ftruncate
[18:34] dmkbot: http://nodejs.org/docs/latest/api/fs.html#fs.ftruncate
[18:35] DrMcKay: bnoordhuis: where is it?
[18:35] robinduckett: dunno if there's anyone in here who is at forward
[18:35] DrMcKay: bnoordhuis: I'm talking about a truncate which takes only file name
[18:35] bnoordhuis: DrMcKay: that's what truncate does
[18:35] robinduckett: maybe there could be a channel for each location and for those people competing not at an official place
[18:35] jergason has joined the channel
[18:36] DrMcKay: bnoordhuis: node's truncate takes fd as a parameter
[18:36] geetarista: visnup: is there going to be a #nodeko channel or anything similar?
[18:36] __sorin_1 has joined the channel
[18:36] dob_ has joined the channel
[18:36] bnoordhuis: DrMcKay: oh right, we got that mixed up
[18:37] geetarista: might be good to post service/server-specific channels (heroku, joyent, mongohq, pusher, etc)
[18:37] geetarista: just so everyone doesn't come in here for everything
[18:37] japj: there is #nodeknockout
[18:37] geetarista: ok, cool
[18:38] geetarista: feel like this channel should be for node-specific chatter
[18:38] DrMcKay: bnoordhuis: so, would truncateFile(path, len, cb) be acceptable?
[18:38] slip has joined the channel
[18:38] geetarista: questions specific to the competition should be in #nodeknockout, and most of the services/servers have their own
[18:39] geetarista: would be nice if we could make a list somewhere
[18:39] geetarista: or post on the blog
[18:40] bnoordhuis: DrMcKay: possibly, maybe - so far no one has complained that it's missing
[18:40] nibblebot has joined the channel
[18:41] DrMcKay: bnoordhuis: so then: todo.unshift('truncateFile')
[18:41] baudehlo: hey bnoordhuis is the node core ever going to open for the things we put into node-fs-ext (flock, seek, utime) ?
[18:42] Bwen has joined the channel
[18:42] visnup: geetarista: #nodeknockout
[18:42] ikaros_daedalos has joined the channel
[18:43] Bwen: if I want to run a shell command and get the output the command generates as it generates it, what should I be using?
[18:44] reid has joined the channel
[18:44] Aikar: Bwen: pipe?
[18:44] DrMcKay: (also, someone could set #nodeknockout as a topic)
[18:44] baudehlo: Bwen: tee (type: man tee)
[18:44] japj: yeah, someone could do that
[18:44] geetarista has joined the channel
[18:44] dnyy has joined the channel
[18:45] DrMcKay: (how do you check who is an op in irssi?)
[18:45] japj: I think bnoordhuis could be an op
[18:46] DrMcKay: bnoordhuis: ping?
[18:46] japj: but I think konobi, piscisaureus_ and ryah are ops
[18:46] slip has joined the channel
[18:46] DrMcKay: timed out.
[18:47] DrMcKay: konobi: ping?
[18:47] cpetzold has joined the channel
[18:47] cpetzold: anyone know how to do a case-insensitive sort with mongoose?
[18:48] patcito has joined the channel
[18:48] dgathright has joined the channel
[18:48] DrMcKay: bnoordhuis: that's called marketing...
[18:48] bnoordhuis: i've secretly always wanted to be a marketeer
[18:49] CrabDude has joined the channel
[18:49] `3rdEden has joined the channel
[18:49] piscisaureus_: you are a marketeer bnoordhuis
[18:49] baudehlo: hey bnoordhuis is the node core ever going to open for the things we put into node-fs-ext (flock, seek, utime) ?
[18:50] ryanfitz has joined the channel
[18:50] cpetzold: never mind, looks like this isn't even solved in mongodb yet.. https://jira.mongodb.org/browse/SERVER-90
[18:50] bnoordhuis: ACTION is hard at work, call back in an hour
[18:50] geetarista: visnup: i got that #nodeknockout is a room, but I'm compiling a list for other related services, etc.
[18:50] baudehlo: heh, I should mail node-dev anyway :)
[18:51] anubhaw has joined the channel
[18:52] anubhaw_ has joined the channel
[18:53] piscisaureus has joined the channel
[18:55] simenbrekken has joined the channel
[18:55] bartt has joined the channel
[18:56] Drakonite has joined the channel
[18:56] devongovett has joined the channel
[18:56] robinduckett has joined the channel
[18:57] zgryw has joined the channel
[18:57] cbrad has joined the channel
[18:58] petrjanda has joined the channel
[18:59] DTrejo has joined the channel
[18:59] dylang: tjholowaychuk: I added your feature request: https://github.com/dylang/changelog/issues/2
[18:59] dylang: tjholowaychuk: and did you see i put this up for you? https://github.com/dylang/my-custom-config
[19:00] versicolor has joined the channel
[19:00] CStumph has joined the channel
[19:00] DTrejo: nice dylang :)
[19:00] qcom has joined the channel
[19:00] versicolor has joined the channel
[19:01] dylang: DTrejo thanks!
[19:02] DTrejo: §
[19:02] tjholowaychuk: dylang sweet! thanks man
[19:02] DTrejo: I use that instead of $, just as an extra touch heh
[19:02] constantx has joined the channel
[19:02] DTrejo: oh, right: dylang++
[19:03] DTrejo: dylang++
[19:03] v8bot_: DTrejo has given a beer to dylang. dylang now has 1 beers.
[19:03] catb0t: dylang now has 1 beer
[19:03] TheJH: what crazy kind of spam is this? what's its goal? http://groups.google.com/group/nodejs/browse_thread/thread/86d8ca123b32100b
[19:03] qcom: if I'm using posting a client form value with superagent, how do I grab that value in an express route?
[19:05] DrMcKay: TheJH: tl;dr
[19:05] DTrejo: tl;mark spam
[19:05] bartt has joined the channel
[19:05] jergason has joined the channel
[19:05] bartt1 has joined the channel
[19:06] TheJH: DrMcKay, ?
[19:06] DrMcKay: TheJH: it looks like "buy a book" or something...
[19:06] TheJH: DrMcKay, aaah, ok
[19:06] DrMcKay: TheJH: but I may be wrong, that guy may be just retarded
[19:07] TheJH: :D
[19:07] tjholowaychuk: qcom: bodyParser, req.body
[19:07] rabidmachine9 has joined the channel
[19:07] H4ns_ has joined the channel
[19:07] rabidmachine9: hello there!
[19:08] rabidmachine9: I want to delete an element with a specific _id from mongodb
[19:08] rabidmachine9: I use mongolian
[19:08] rabidmachine9: https://gist.github.com/eb6ab9da97e1ea39bfd3
[19:09] rabidmachine9: it does not work for some reason
[19:09] jerrysv has joined the channel
[19:09] Kingdutch has joined the channel
[19:09] NodeBuddy has joined the channel
[19:10] kmiyashiro has joined the channel
[19:10] visnup: geetarista: like how to contact us?
[19:10] slip has joined the channel
[19:10] daan has joined the channel
[19:11] visnup: geetarista: all@nodeknockout.com @node_knockout #nodeknockout
[19:11] daan: hi everyone
[19:11] dylang: tjholowaychuk: my node knockout teammate waited until last night to learn node (yeah i know). he almost gave up on express because the `hello world` example at the top of http://expressjs.com/ failed because there's no `var express = require('express');` - any reason I can tell him?
[19:11] __sorin__ has joined the channel
[19:11] tjholowaychuk: dylang hahaha
[19:11] tjholowaychuk: that part is implied, but i guess i should add it
[19:12] DrMcKay: dylang: :D
[19:12] dylang: i also learned yesterday that he's new to Javascript, git, and macs. #notlookinggood
[19:12] tjholowaychuk: that's what happens when people use express before knowing anything about node
[19:12] tjholowaychuk: haha yeah there you go
[19:12] NodeBuddy: ACTION is in trouble. :< https://gist.github.com/1174180
[19:13] NodeBuddy: Everything looks good for the request in node.js. My code gets to calling response.end()
[19:13] dgathright has joined the channel
[19:13] qcom: tholowaychuk: thanks dude
[19:13] heavysixer has joined the channel
[19:14] daan: can i ask you guys an express question?
[19:14] dgreene has joined the channel
[19:14] tjholowaychuk: NO
[19:14] tjholowaychuk: daan jump in #express :p
[19:14] daan: :)
[19:15] daan: I'm using express, restmvc.js and socket.io to build a site
[19:15] daan: or actually it's more like an art installation... anyway
[19:15] daan: Right now i'm using socketio for the streaming part
[19:16] softdrink: the nodeknockout site is far too entertaining.
[19:16] daan: would that be the right approach or can i use express?
[19:16] jhurliman has joined the channel
[19:16] slip has joined the channel
[19:16] NetRoY has joined the channel
[19:16] daan: (by streaming I mean, keeping the connection open en pushing through json)
[19:17] NodeBuddy: Help! upstream timed out (110: Connection timed out) while reading response header from upstream, :(
[19:17] NodeBuddy: Nginx and node.js aren't getting along
[19:17] tjholowaychuk: daan yeah socketio for that
[19:17] daan: ok, cool
[19:17] tjholowaychuk: daan not that you cant use express, they are just unrelated
[19:18] daan: I could use express to keep an open connection?
[19:18] daan: Could figure it out, so that's why i combined it with socketio
[19:18] explodes has joined the channel
[19:18] daan: (That should be couldn't)
[19:19] tmedema has joined the channel
[19:19] springmeyer has joined the channel
[19:19] tmedema: Is there a way to prettify an exception stack when doing util.debug(e.stack)?
[19:19] explodes: I have a function that starts multiple async operations, these operations are supposed to append their results to an array... for reason they don't seem to append anything
[19:21] explodes: Basically, I want to implement producer/consumer
[19:21] daan: tjholowaychuk: I'm not sure if i understood you correctly. Could express do the job? Cause I'd like that. I'm using it for the rest of the installation, so that would keep it nice and simple
[19:21] __sorin__ has joined the channel
[19:22] tjholowaychuk: daan socket.io / express are just totally separate things, you could do long polling etc with express
[19:22] tjholowaychuk: but socketio does a lot more
[19:22] cying has joined the channel
[19:22] tjholowaychuk: daan express is for routing/views/services etc
[19:22] tjholowaychuk: socket.io is for websockets
[19:22] NodeBuddy: I hate nginx.
[19:23] NodeBuddy: Nginx is the spawn of people who set fire to themselves.
[19:23] slip has joined the channel
[19:24] ecin has joined the channel
[19:24] explodes: nginx is actually pretty nice
[19:26] daan: tjholowaychuk: ah, i found a long polling example somewhere. It's like refreshing the page every x seconds i understand it correctly
[19:26] theCode has joined the channel
[19:26] tjholowaychuk: daan why aren't you using socketio though? that's what it's for
[19:27] tjholowaychuk: it's easy to get going too
[19:27] daan: tjholowaychuk: Yeah, looks like sockio is what i need :) thanks
[19:27] daan: Allright, in that case I need another piece of advice :)
[19:27] NodeBuddy: explodes: Then why is it sabotaging node.js??? upstream timed out (110: Connection timed out) while reading response header from upstream,
[19:28] NodeBuddy: https://gist.github.com/1174180
[19:28] NodeBuddy: Here's my configuration: https://gist.github.com/1173452
[19:29] daan: I want to notify the socketio part of my application of any updates that take place through express. I'm trying to use EventEmitter, but either I haven't found the right way to do it yet or it's not right for that purpose. Any ideas?
[19:29] felixhummel has joined the channel
[19:29] slip has joined the channel
[19:30] explodes: dunno, i'd have to go over it. i'd normally help but im swamped and stressed
[19:30] explodes: @ NodeBuddy .. sorry. try #nginx
[19:30] __sorin__ has joined the channel
[19:31] NodeBuddy: explodes: Hmm, actually it *does* seem to be node.js
[19:31] neilk_ has joined the channel
[19:31] NodeBuddy: ACTION may have to look for a node.js genius to fix this :/
[19:32] DTrejo: OOH http://cpants.perl.org/kwalitee.html
[19:32] Anton_ has joined the channel
[19:32] dguttman has joined the channel
[19:33] chrisumbel has joined the channel
[19:34] DrMcKay: DTrejo: are they talking about code quality? in Perl?!
[19:34] tilgovi has joined the channel
[19:34] tilgovi has joined the channel
[19:35] slip has joined the channel
[19:35] massivebiz has joined the channel
[19:36] slifty has joined the channel
[19:37] NodeBuddy: Is node.js HTTP stack not good at handling POSTs?
[19:37] NodeBuddy: My node.js "service" is sometimes timing out
[19:38] NodeBuddy: It happens when it gets swamped with about 12 POST requests at the same time
[19:38] tvaldes has joined the channel
[19:38] daan: Let me try to rephrase that into an actual question: what would be a nice way to trigger a socket notify in my main app.js from somewhere deep inside a controller i build inside express?
[19:38] context: nodebuddy: uhh whats the difference between a POST and GET request, besides one word
[19:39] context: nodebuddy: maybe its the way your code is processing the post request thats bogging it down?
[19:39] context: nodebuddy: try taking a get request that works just fine and change it into a post and see what happens?
[19:39] explodes: If I run a whole bunch of function asynchronously and each of these function manipulates an array (concats results to it), why is the final resulting array empty when the async functions have data to put into the array?
[19:39] context: "troubleshoot"
[19:39] ParadoxQuine has joined the channel
[19:39] explodes: http://pastie.org/2435165 See this for some code about it...
[19:39] sub_pop has joined the channel
[19:39] wlkh has joined the channel
[19:40] Cromulent has joined the channel
[19:41] context: explodes: thats working exactly the way its suppose to
[19:41] context: explodes: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat
[19:41] context: concat does not work the way you are expecting it to.
[19:41] ap3mantus has joined the channel
[19:41] agrohe211 has joined the channel
[19:42] martinciu has joined the channel
[19:42] overra has joined the channel
[19:42] __sorin__ has joined the channel
[19:43] NodeBuddy: context: More headers?
[19:44] context: ACTION hopes you continued reading
[19:44] misterm has joined the channel
[19:44] NodeBuddy: context: Maybe, but I checked my code, and even on the requests that time out, it's getting all the way to calling response.end() (My console.log() test message is seen)
[19:44] dylang has joined the channel
[19:44] NodeBuddy: context: Reading...
[19:45] context: so... if node gets all the way to response.end() id think node is doing a good job :/
[19:45] context: but if browser is saying timed out you might have an issue there
[19:46] calebc has joined the channel
[19:46] slip has joined the channel
[19:46] baudehlo: explodes: you want produced.push(mids);
[19:46] __sorin__ has joined the channel
[19:46] NodeBuddy: context: Yeah, the browser is saying it timed out. But this is only happening when 12 requests are fired off at the same time (XMLHTTPRequest() POSTS)
[19:46] context: nodebuddy: so start from scratch... make the action do nothing, then slowely add more of your code, and see where/when its breaking
[19:46] tvaldes: Hi! I built a small system in jQuery/PHP which warns an inactive user their session is about to expire, and it gives them a few options (stay logged in, extend for 15 mins, and logout). Since it's purely on the client, there are issues when multiple tabs/windows are open. Does this sound like a great use for node.js? I'm totally new to node, can someone provide me some general direction on how I should go about handling this and man
[19:46] NodeBuddy: Actually, even six will do it
[19:46] caolanm has joined the channel
[19:47] anubhaw has joined the channel
[19:47] context: nodebuddy: most browsers limit the # of requests per host, id ask why you are firing off that many at once to begin with
[19:47] NodeBuddy: context: Well, I'm at 1700 lines in node.js :p
[19:47] NodeBuddy: context: Sure, but it shouldn't be timing out
[19:47] context: are you just purposely trying to barrage the server with requests?
[19:47] NodeBuddy: ACTION is doing it to test robustness
[19:48] NodeBuddy: yeah
[19:48] CoverSlide: use apachebench if you want to test
[19:48] Nuck has joined the channel
[19:48] context: nodebuddy: try this: fire off two requests, wait a half sec, two more, etc etc
[19:48] context: yeah dont use a browser to test your server side
[19:48] NodeBuddy: What should I use? Curl?
[19:48] context: you have a LOT more variables there than just how well your server performs
[19:48] context: 14:48 CoverSlid| use apachebench if you want to test
[19:48] isaacs has joined the channel
[19:49] leonh has joined the channel
[19:49] DTrejo: DrMcKay: I'd say it's more about module quality!
[19:49] NodeBuddy: context: Could it also by this network? We have lots of stuff like Sonicwall going on
[19:49] DTrejo: DrMcKay: and something that can definitely be applied to what we're doing with node modules
[19:49] zemanel has joined the channel
[19:49] context: nodebuddy: like i said, you have A LOT MORE variables than you are actually trying to test.
[19:49] DTrejo: well, mostly what izs is doing
[19:49] context: nodebuddy: and thats very probable.
[19:50] NodeBuddy: context: They might be cutting connections when I open more than five or something
[19:50] DrMcKay: DTrejo: so, you say it's actually useful?
[19:50] antono has joined the channel
[19:50] DrMcKay: DTrejo: and that we should port it to node?
[19:51] slip has joined the channel
[19:51] DTrejo: DrMcKay: well, it seems helpful. it would encourage module authors to write tests, include readme, have a license, etc
[19:51] DTrejo: my team's node knockout project is related to this
[19:51] context: nodebuddy: a lot of intelligent people will do that for any server
[19:51] NodeBuddy: ACTION is going to try doing requests on the same server.
[19:52] context: nodebuddy: and IF that is so, what you said earlier does NOT hold true.
[19:52] NodeBuddy: context: So maybe it's even Linode?
[19:52] context: nodebuddy: if the firewall is blocking it, you never get to the request let alone response.end()
[19:52] NodeBuddy: What doesn't hold true?
[19:52] mikeal has joined the channel
[19:52] NodeBuddy: context: Well, then the latter doesn't hold true because I tested this.
[19:53] NodeBuddy: context: I do 12 requests, I got 12 response.end()s
[19:53] context: + the initial request ?
[19:53] DrMcKay: DTrejo: so you're writing it? cool
[19:53] NodeBuddy: No, 12 XHRs = 12 response.ends()
[19:53] DrMcKay: DTrejo: well, in face, it may become something like nodelint
[19:54] bradleymeck has joined the channel
[19:54] DrMcKay: *in fact
[19:54] DTrejo: DrMcKay: no, I'm going for something more like cpants
[19:54] qbit_ has joined the channel
[19:54] DTrejo: DrMcKay: http://cpants.perl.org
[19:54] context: stop testing over the internet for starters. you arent 'testing' shit. besides your home internet connection, whatever random route[s] every request decides to take over the internet, your firewall, your hosts firewall, your hosts network, your vps throughput, your vps firewall, nodejs, the vps resource manageemnt
[19:54] DTrejo: DrMcKay: just something that tests node modules on solaris, to start with
[19:54] NodeBuddy: right
[19:55] Anton_ has joined the channel
[19:55] NodeBuddy: context: Could the firewall somehow be terminating the connection in way that causes the browser to time out?
[19:55] DrMcKay: DTrejo: well, might get useful :)
[19:55] josephholsten has joined the channel
[19:55] DrMcKay: DTrejo: I'll look into it and see which rules can be applied to node, etc.
[19:56] dshaw_ has joined the channel
[19:56] context: nodebuddy: no.
[19:56] context: nodebuddy: if a firewall is gonna block it its gonna not let the connection start to begin with
[19:56] NodeBuddy: Your point is totally valid; I'm going to be doing some tests locally
[19:56] context: nodebuddy: or maybe your testing code is just borked.
[19:56] DTrejo: DrMcKay: I think all the easy and simple ones are the first ones to borrow from what they do
[19:56] DTrejo: "does it contain a test directory, with tests in it"
[19:56] DTrejo: etc
[19:57] NodeBuddy: context: I am looking at the Network panel in Chrome and seeing "Pending" and then "Timed out"
[19:57] DrMcKay: DTrejo: fair enough
[19:57] jetienne has joined the channel
[19:57] context: :/
[19:58] NodeBuddy: I know our network will kill Youtube video downloads as well
[19:58] DrMcKay: NodeBuddy: always do tests locally
[19:58] gr-eg has joined the channel
[19:58] DrMcKay: NodeBuddy: look at, say, node http tests
[19:58] NodeBuddy: DrMcKay: Googling that
[19:58] DrMcKay: NodeBuddy: they use local server, and so should you
[19:59] mynyml has joined the channel
[19:59] NodeBuddy: My boss was really happy about "having our entire production system in the cloud"
[19:59] context: nodebuddy: when testing, you remove as many variables as possible. you testing over the internet is introducing about 5 billion variables, none of which you control
[19:59] DrMcKay: NodeBuddy: Googling what?
[19:59] DrMcKay: NodeBuddy: https://github.com/joyent/node/blob/master/test/simple/test-regress-GH-1531.js
[19:59] NodeBuddy: context: Absolutely true.
[20:00] DrMcKay: NodeBuddy: this is the simplest test I could find which illustrates that
[20:00] DrMcKay: NodeBuddy: (and it's mine, btw)
[20:00] NodeBuddy: Thanks!
[20:00] slip_ has joined the channel
[20:00] NodeBuddy: ACTION is working on localizing testing now
[20:00] mape has joined the channel
[20:00] context: nodebuddy: test: run server locally, setup apachebench to barrage your LOCALLY RUNNING server to see how well node handles them
[20:01] elijah has joined the channel
[20:01] context: thats what you were going for after all.
[20:01] zemanel has joined the channel
[20:07] slip has joined the channel
[20:07] sridatta has joined the channel
[20:07] CIA-69: node: 03Ryan Dahl 07master * r028908a 10/ (44 files in 7 dirs): Upgrade V8 to 3.5.8 - http://git.io/TuVBqA
[20:07] xicubed has left the channel
[20:08] jokil has joined the channel
[20:08] explodes: http://pastie.org/2435310 Why can't multiple producers manipulate a single object? This is a full example. All producers "concat" to a destination array.
[20:10] indexzero has joined the channel
[20:11] slifty has joined the channel
[20:14] Jarrod_ has joined the channel
[20:15] rc2 has joined the channel
[20:16] Skomski has joined the channel
[20:16] explodes: Does really nobody know
[20:16] explodes: I cant find this crap on google
[20:16] CIA-69: node: 03Ryan Dahl 07master * rf1996ff 10/ (5 files in 4 dirs): (log message trimmed)
[20:16] CIA-69: node: Merge remote branch 'origin/v0.4'
[20:16] CIA-69: node: Conflicts:
[20:16] CIA-69: node: AUTHORS
[20:16] CIA-69: node: ChangeLog
[20:16] CIA-69: node: doc/api/stdio.markdown
[20:16] CIA-69: node: doc/index.html
[20:16] pickels_ has joined the channel
[20:18] explodes: Wow I found the problem.
[20:20] JaKWaC has joined the channel
[20:20] explodes: someArray.concat(anotherArray) returns the combination, it doesn't mutate someArray.
[20:20] fairwinds has joined the channel
[20:21] slsh has joined the channel
[20:21] StanlySoManly: this is probably a really silly question, but is there anything in node that should make me expect the same code to behave differently when run twice in a row? I wired up some jasmine tests, ran them, then arrowed up in the terminal and ran the exact same command and got a different result. I haven't seen it again today, but it's a little concerning that it happened at all. Was it a fluke or is there something I haven't read yet?
[20:22] pjacobs has joined the channel
[20:22] bradleymeck: stanlysomanly race condition probably
[20:22] slip has joined the channel
[20:22] shipit has joined the channel
[20:23] walkingeyerobot: it depends very much on the code. it may be you're assuming your callbacks will be called in a certain order, but really they can be called in any order
[20:24] danielleswank has joined the channel
[20:24] context: explodes: cool. i said that like 30 minutes ago.
[20:24] context: so did someone else
[20:25] context: stanlysomanly: possibly race condition or code was changed that one time you ran the test
[20:25] context: stanlysomanly: or you have a form of randomness somewhere in the test
[20:25] context: we have an issue here sometimes with tests and Faker and unique constraint validations
[20:26] StanlySoManly: the code i'm testing is very simple. it's just an email validation routine that returns true/false i'd hope there aren't many race conditions possible there. :)
[20:27] fairwinds: hmm. never used node on windows. Am trying out the new node.exe How to get npm?
[20:27] isaacs: fairwinds: wait, it's coming soon.
[20:27] isaacs: node knockout is taking up 350% of my cpu
[20:28] StanlySoManly: i know the code didn't change because i didn't fetch new code. oh well, it sounds like all the possibilities are that there's something screwy with my VM. just wanted to make sure that was the right assumption. it didn't sound at all like something that would be in node, but just wanted to make sure there wasn't something that was smarter than me. :)
[20:28] context: stanlysomanly: maybe you accidently changed the addr it was testing for that one test ?
[20:28] context: isaacs: url?
[20:28] slip has joined the channel
[20:28] context: nm
[20:28] StanlySoManly: context: i typed the command then literally up arrowed and did it again. didn't give myself the chance to mess up anything. :) but it sounds like there is something amiss here. i'll check other corners. thanks!
[20:29] ryah has joined the channel
[20:30] fairwinds: isaacs: heh. I guess I can just download and link packages in my code. I can give that a try
[20:30] kristsk has joined the channel
[20:30] CIA-69: node: 03Ryan Dahl 07master * r7d38a3b 10/ src/node_buffer.cc : Fix build - due to V8 API change - http://git.io/NvavfQ
[20:30] isaacs: fairwinds: check out ryppi
[20:30] fairwinds: k, thanks
[20:30] isaacs: it's good for simple things
[20:30] fairwinds: super
[20:30] isaacs: https://github.com/japj/ryppi
[20:31] DLi_ has joined the channel
[20:31] CoverSlide: I hope the smoking man's in this one
[20:31] _dc has joined the channel
[20:32] CoverSlide: any way to force npm to make the zip but not publish
[20:33] chrisumbel has joined the channel
[20:33] DTrejo: CoverSlide: npm bundle?
[20:33] isaacs: CoverSlide: npm pack
[20:33] isaacs: npm package
[20:33] chrisumbel has joined the channel
[20:33] RobertStarsi has joined the channel
[20:33] isaacs: ("pack" also works, or "packa" or "packag")
[20:33] isaacs: abbrev ftw
[20:34] heavysixer has joined the channel
[20:35] donald_cook has joined the channel
[20:35] neilk_ has joined the channel
[20:37] rmcastil has joined the channel
[20:38] slip has joined the channel
[20:39] sechrist has joined the channel
[20:39] seebees has joined the channel
[20:39] sechrist: iirc there was a way to make npm automatically update the package.json file upon install
[20:39] sechrist: how u do dat
[20:40] slifty: http://superuser.com/questions/328499/sites-directory-icon-in-lion in case anyone has a clue.
[20:40] tjholowaychuk: SubStack Error: Relative path: testing/foo/bar/baz/raz
[20:40] tjholowaychuk: what's wrong with relative paths for mkdirp?
[20:40] eee_c has joined the channel
[20:40] tjholowaychuk: should just be relative to cwd
[20:42] CIA-69: node: 03Ben Noordhuis 07master * r790f13d 10/ configure : Fix typo in configure script - http://git.io/MHDSrQ
[20:43] softdrink: ACTION pulls out his hair
[20:43] softdrink: if it's not one thing it's something else.
[20:43] softdrink: jsdom doesn't support window.location.hash… which breaks backbone's router.
[20:43] slip_ has joined the channel
[20:44] 15SAA7YA7 has joined the channel
[20:44] jakehow_ has joined the channel
[20:44] 45PAAJI24 has joined the channel
[20:44] softdrink: any other recommendations for testing?
[20:45] jmoyers has joined the channel
[20:46] DrMcKay has joined the channel
[20:46] NKOtestBot has joined the channel
[20:47] visnup: hi NKOtestBot
[20:49] fmeyer has joined the channel
[20:50] piscisaureus has joined the channel
[20:50] CStumph has joined the channel
[20:50] RushPL has joined the channel
[20:51] wadey: sechrist: npm install -S
[20:51] NKOtestBot has joined the channel
[20:53] slip has joined the channel
[20:53] hackband has joined the channel
[20:53] Aphelion has joined the channel
[20:54] nrstott has joined the channel
[20:54] temp01 has joined the channel
[20:55] booo has joined the channel
[20:56] tmzt_ has joined the channel
[20:57] prettyrobots has joined the channel
[20:58] chrisumbel has joined the channel
[20:58] chrisumbel has joined the channel
[20:59] MrNko has joined the channel
[20:59] jokil: hey all, I'm using express.js and I'm getting a rather cryptic error. It says Error: the following middleware invoked next() more than once:
[21:00] jokil: it is followed by a toString of some function. here's the paste bin: http://pastebin.com/DF160NXv . Can anyone make sense of this?
[21:00] shipit_ has joined the channel
[21:01] pquerna: http://news.ycombinator.com/item?id=2588018
[21:02] tjholowaychuk: jokil hmm
[21:02] tjholowaychuk: that was a recent patch
[21:02] tjholowaychuk: but
[21:02] jvduf has joined the channel
[21:02] pt_tr has joined the channel
[21:02] tjholowaychuk: it does not seem to be working right because that middleware clearly does not call it twice, i must have messed something up
[21:03] chrisumbel has joined the channel
[21:03] alexhanh has joined the channel
[21:03] jokil: tjholowaychuk: is there anything I can do in the meantime to get around this?
[21:04] tjholowaychuk: jokil revert to connect 1.6.2 for now
[21:04] tjholowaychuk: im looking into it
[21:04] shipit has joined the channel
[21:05] justicefries has joined the channel
[21:06] aconbere has joined the channel
[21:07] jokil: thanks tjholowaychuk, that did the trick for now.
[21:07] MrNko has joined the channel
[21:08] Me1000 has joined the channel
[21:09] KingJamool has joined the channel
[21:10] skampler has joined the channel
[21:10] ckknight has joined the channel
[21:11] markdaws_ has joined the channel
[21:12] tjholowaychuk: jokil can you gist the route that was doing that, or part of it, trying to reproduce
[21:14] ohtogo has joined the channel
[21:14] NodeBuddy: hmm
[21:14] NodeBuddy: What does response.end() return?
[21:16] jesusabdullah: console.log(response.end()) ?
[21:16] CoverSlide: should be undefined , shan't it?
[21:16] jesusabdullah: I would suspect so, but what do I know?
[21:17] jokil: trying to repro
[21:17] skm has joined the channel
[21:18] nibblebot has joined the channel
[21:18] gerad has joined the channel
[21:19] shipit has joined the channel
[21:19] ckknight has joined the channel
[21:20] slip has joined the channel
[21:21] mrryanjohnston: Is there a way to put socket.io into quiet mode?
[21:21] CoverSlide: NODE_ENV=production node server.js
[21:21] tjholowaychuk: mrryanjohnston i think it's io.set('log level', 0)
[21:22] CoverSlide: that too
[21:22] mrryanjohnston: thanks guys
[21:22] Juan77 has joined the channel
[21:23] CoverSlide: wow, i mistype one letter, and I find an eHow article on "How to Nod"
[21:23] neilk_ has joined the channel
[21:24] Raynos1 has joined the channel
[21:24] rDx3 has joined the channel
[21:24] algopats has joined the channel
[21:24] chrisumbel has joined the channel
[21:24] jeromegn has joined the channel
[21:24] chrisumbel has joined the channel
[21:25] softdrink: io.set('stfu', true)
[21:26] sonnym has joined the channel
[21:30] heavysixer has joined the channel
[21:30] cpetzold: pwned
[21:30] NodeBuddy: hm
[21:31] NodeBuddy: response.end() is returning false, sometimes true :S
[21:31] nickaugust: NodeBuddy: i think it returns a value if something is available
[21:31] jeromegn: Anybody tried mongoose > 2.0? They added DBRef, but they did so in a way that is generally proscribed in the MongoDB documentation and most sites I've read. They added it so that it may reference the same collection every time, but it's advised to use DBRef only if you need a field reference different collections. Wondering if it creates *that* much overhead.
[21:33] chovy: howdy
[21:34] slip has joined the channel
[21:34] chovy: i am writing json string to a log file and I want to read it back it and send an event-stream up to the client, however the json string is not always completed when I tail the log file...any suggestions on how I should do this correctly so the entire line is written before I read from the log file?
[21:35] TheJH: chovy, why do you need the intermediary file?
[21:35] adrianmg has joined the channel
[21:36] kevwil has joined the channel
[21:36] chovy: TheJH: because the feed I'm getting comes in chunks, and it isn't a complete json object until I see a newline character.
[21:36] JaKWaC has joined the channel
[21:36] chovy: i thought it might work if I wrote to a log file and then read it back to get the complete line, but I'm seeing the same problem.
[21:36] levity_island has joined the channel
[21:36] TheJH: chovy, don't do that
[21:37] TheJH: chovy, there are even modules on npm for parsing newline-delimited json
[21:37] robertfw has joined the channel
[21:37] NodeBuddy: console.log(response.end()) is sometimes returning false. When it returns false, node.js can't end the connection so the connection times out and nginx shows 504 gateway timeout! :<
[21:38] chovy: I'm using http.get() with .on("data", function(chunk){}); but the chunk is not always the complete json object (newline delimited).
[21:38] DTrejo has joined the channel
[21:38] ap3mantus has joined the channel
[21:38] TheJH: chovy, I understand that
[21:38] abjorn has joined the channel
[21:38] chovy: ok
[21:38] TheJH: chovy, use a module from npm that can parse newline-delimited JSON for you
[21:38] bicranial has joined the channel
[21:38] nibblebo_ has joined the channel
[21:39] bnoordhuis: people, the hot new thing is here: http://node.js/dist/v0.5.5/node-v0.5.5-rc1.tar.gz <- please test!
[21:40] TheJH: chovy, e.g. this looks good: json-line-protocol Stream protocol handler for CRLF-delimited JSON values =fictorial protocol stream json line
[21:40] trotter has joined the channel
[21:41] daed: hi trotter
[21:41] trotter: hi daed
[21:42] Qbix1 has joined the channel
[21:42] devongovett has joined the channel
[21:42] bradleymeck: isaacs is there some way to get npm to not ignore .git folders (for wheat blogs)
[21:42] chovy: TheJH: But how do I handle the chunk that isn't a complete a line?
[21:42] isaacs: bradleymeck: nope
[21:42] TheJH: chovy, it'll get buffered
[21:42] isaacs: bradleymeck: git folders are gigantic
[21:43] bnoordhuis: make that http://nodejs.org/dist/v0.5.5/node-v0.5.5-rc1.tar.gz <- still, please test it :)
[21:43] mikey_p: silly wheat, git isn't a database
[21:43] DrMcKay: bnoordhuis: is it a tag?
[21:43] isaacs: bnoordhuis: have a prepublish script that mv's .git to _git, and then a preinstall that mv's _git to .git, maybe, as a hack?
[21:43] TheJH: chovy, really, there are some modules on npm that can do it for you. give it the chunks and get out the lines
[21:44] isaacs: i feel like i've written "parse the incoming chunks in lines" like a 1000 times now
[21:44] TheJH: :D
[21:44] isaacs: my tap parser has to do that. yamlish does it.
[21:44] isaacs: that's twice just in one program :)
[21:44] chovy: TheJH: thanks.
[21:44] CoverSlide: what about the 'readline' module
[21:44] isaacs: CoverSlide: readline is a different thing
[21:45] isaacs: CoverSlide: it's for doing stuff like using the up-arrow to search history, etc.
[21:45] bnoordhuis: DrMcKay: yes
[21:45] isaacs: all that reply goodness
[21:45] bnoordhuis: isaacs: sorry?
[21:45] m00p has joined the channel
[21:45] isaacs: bnoordhuis: oh, whoops, that was for bradleymeck
[21:46] jperras has left the channel
[21:46] bnoordhuis: oh, right :)
[21:46] cnu has joined the channel
[21:46] isaacs: bradleymeck: have a prepublish script that mv's .git to _git, and then a preinstall that mv's _git to .git, maybe, as a hack?
[21:46] heavysixer has joined the channel
[21:46] CoverSlide: too many b-names
[21:46] CoverSlide: you guys need to coordinate and not come in at the same time
[21:47] piscisaureus has joined the channel
[21:48] DTrejo has joined the channel
[21:48] rafaelcaricio has joined the channel
[21:48] tvaldes has left the channel
[21:49] bradleymeck: isaacs might work
[21:49] isaacs: bradleymeck: not recommended, though
[21:50] andrewfff has joined the channel
[21:50] isaacs: bradleymeck: it'd be better to have a prepublish script that generates all your wheat pages to html in some kind of cache, and just publish that
[21:50] mrtrosen has joined the channel
[21:50] ap3mantus has joined the channel
[21:50] bradleymeck: least amount of change for now, dunno if there is one of those even, (probably is)
[21:50] robertfw has joined the channel
[21:51] stonebra_ has joined the channel
[21:51] m00p has joined the channel
[21:51] isaacs: bradleymeck: or, you could just publish your wheat blog with git. isn't that kinda the idea?
[21:53] hybsch has joined the channel
[21:53] chovy: npm is the new cpan
[21:53] NodeBuddy: isaacs: Any idea what it means when response.end() returns false? :<
[21:54] Destos has joined the channel
[21:54] isaacs: NodeBuddy: means that the socket isn't flushed
[21:54] slip_ has joined the channel
[21:54] isaacs: NodeBuddy: same as when response.write() returns false
[21:54] CoverSlide: npm is the new tusk
[21:54] isaacs: NodeBuddy: in most cases, you can ignore it. it'll flush eventually
[21:54] chovy: I tried building the latest nodejs on debian and it failed with collect2 error in linking.
[21:54] CoverSlide: tusk was the new cabal
[21:54] stisti has joined the channel
[21:54] CoverSlide: cabal was the new pip
[21:54] CoverSlide: pip was the new gems
[21:55] CoverSlide: gems was the new maven
[21:55] vidi has joined the channel
[21:55] NodeBuddy: isaacs: Well, I noticed the number of times response.end() returns false is exactly the same number of times node.js is timing out.
[21:55] CoverSlide: maven was the new cpan
[21:55] chovy: heh
[21:55] CoverSlide: oh hell im just pulling out of my ass i doubt thats in order
[21:55] hellp has joined the channel
[21:55] chovy: i skipped a few.
[21:55] chovy: brn
[21:55] NodeBuddy: And I can't figure it out. :<
[21:55] chovy: bash repository network.
[21:56] bnoordhuis: chovy: can you gist the build log?
[21:56] chovy: /usr/bin/ld: cannot find -luv
[21:57] chovy: collect2: ld returned 1 exit status
[21:57] chovy: gist?
[21:57] chovy: bnoordhuis: where do i find the buildlog and how do i gist it
[21:57] bnoordhuis: chovy: the build log is what you get when you type `make` :)
[21:57] bnoordhuis: chovy: gist is the new pastie
[21:57] chovy: ok
[21:58] chovy: ok
[21:58] reid has joined the channel
[21:59] perezd has joined the channel
[22:01] vikstrous has joined the channel
[22:02] tim_smart has joined the channel
[22:02] m00p has joined the channel
[22:03] Croms has joined the channel
[22:04] ryanj has joined the channel
[22:05] slip has joined the channel
[22:06] Nuck: So how's NKO doing?
[22:07] Raynos1: its @ T-2h
[22:07] Nuck: I'll probably partake when my company can run itself :D
[22:07] Nuck: lolwat
[22:08] Nuck: So, no.de just gave me an Error of "[object Object]"
[22:08] Nuck: When I tried to log in.
[22:08] Nuck: (my username or password was wrong, I know)
[22:09] wadey: awesome
[22:09] Nuck: rut roh
[22:09] Nuck: Internal Server Error 500
[22:10] NodeBuddy: isaacs: Any ideas why the response object looks like it does in "RESPONSE END 2" vs RESPONSE END 1? https://gist.github.com/1174548
[22:10] NodeBuddy: It looks like it is getting mangled :S
[22:10] isaacs: NodeBuddy: share the code, man
[22:10] softdrink: Is there a way to tell Vows which reporter to use when being run via the api?
[22:11] isaacs: Nuck: yeah, it sometimes gets an error object with a message that isn't a string.
[22:11] NodeBuddy: isaacs: Okay
[22:11] Nuck: Anyone know if no.de is having problems?
[22:11] isaacs: Nuck: if you tried a username that doesnt' exist, then you'll get that error
[22:11] isaacs: you shouldn't get 500 responses, though
[22:11] Nuck: isaacs: I'm in
[22:11] Nuck: But now I'm gettinf 500
[22:11] Nuck: On the Control Panel screens (Machines and Order a Machine)
[22:11] Zuardi has joined the channel
[22:12] isaacs: Nuck: hold on a sec..
[22:12] Nuck: Account Settings works fine tho
[22:12] NodeBuddy: isaacs: Here ya go: https://gist.github.com/36aa61c1b9afb70bab1a
[22:13] Nuck: I always forget that no.de's usernames are case-sensitive :P Luckily for me, Chrome volunteered to store my password.
[22:13] isaacs: Nuck: i'm tailing the log, care to try again?
[22:13] Nuck: isaacs: k
[22:13] wookiehangover has joined the channel
[22:13] atmos has joined the channel
[22:13] Nuck: egads
[22:14] Nuck: isaacs: k I tried https://no.de/smartmachines
[22:14] CoverSlide: damn irccloud
[22:14] NodeBuddy: isaacs: Sorry, here's both files: https://gist.github.com/36aa61c1b9afb70bab1a and https://gist.github.com/5bea24d9db8a04f0a430
[22:14] Nuck: CoverSlide: Serious
[22:14] mike5w3c_ has joined the channel
[22:15] sbisbee_ has joined the channel
[22:15] NodeBuddy: isaacs: I eliminated the eval() by the way. That should be require() :p
[22:16] ajsie has joined the channel
[22:16] jheusala_: there should be a special prize for any person that only uses a mobile phone to participate in NKO :-)
[22:16] bnoordhuis: why don't people use a real irc client?
[22:16] AvianFlu: bnoordhuis++
[22:16] v8bot_: AvianFlu has given a beer to bnoordhuis. bnoordhuis now has 2 beers.
[22:16] catb0t: bnoordhuis now has 1 beer
[22:16] KingJamool has joined the channel
[22:17] paveq has joined the channel
[22:18] adam___ has joined the channel
[22:18] jeremyselier has joined the channel
[22:18] NodeBuddy: Does this look weird for the response object from createServer()? https://gist.github.com/1174566
[22:18] adamfsh: hi!
[22:18] adamfsh: please could anyone help me?
[22:19] AvianFlu: adamfsh: what seems to be the trouble
[22:19] adamfsh: I just would like to know, how to abort a request in nodejs?
[22:19] trotter has joined the channel
[22:19] adamfsh: I mean an HTTP request :)
[22:20] NodeBuddy: Okay, I see what is going on.
[22:20] NodeBuddy: response.socket is null :<
[22:20] AvianFlu: adamfsh: http://github.com/mikeal/request might be of use to you
[22:20] bnoordhuis: adamfsh: req.abort()?
[22:21] slip has joined the channel
[22:21] mnutt has joined the channel
[22:21] Marak: boom: http://docs.nodejitsu.com
[22:22] NodeBuddy: What does it mean if response.socket is null?
[22:23] bartt has joined the channel
[22:23] adamfsh: @bnoordhuis I get this error if I use request.abort()
[22:23] adamfsh: TypeError: Object # has no method 'abort'
[22:23] Nuck: Dear God, I am a bug magnet. I always seem to run into the wierdest glitches which nobody can explain.
[22:23] Nexxy: oh my god that font face
[22:23] bnoordhuis: adamfsh: what version of node?
[22:23] adamfsh: 0.4.9
[22:23] Nexxy: ok well mostly just the dashes
[22:24] Nuck: You shouldn't use fancy fonts for body text :P
[22:25] sylvinus has joined the channel
[22:25] Marak: Nuck: we accept pull requests
[22:25] mnutt: bnoordhuis: figured out my ClientResponse issue from yesterday; it looks like node closes the connection if you don't chunk your responses
[22:26] NodeBuddy: Can you bind the close event when you use createServer()?
[22:27] vikstrous has joined the channel
[22:27] adamfsh: @bnoordhuis request.abort() is in http.ClientRequest which is different from http.ServerRequest what I'm using. I didn't even notice that there is a client request, and I don't even know what is it :D
[22:28] schwab has joined the channel
[22:28] adamfsh: well, i think i've got it
[22:28] Raynos1 has left the channel
[22:28] adamfsh: silly me
[22:28] bnoordhuis: adamfsh: oh right, just res.end()
[22:28] hasenj has joined the channel
[22:28] adamfsh: but
[22:28] adamfsh: that doesn't finished the request
[22:28] adamfsh: finishes*
[22:28] bnoordhuis: mnutt: is the response http/1.1 with a valid content-length header?
[22:29] bnoordhuis: adamfsh: what do you mean?
[22:29] adamfsh: I'm building a file uploader
[22:29] adamfsh: so I can't end the response until the request was finished
[22:29] devongovett has joined the channel
[22:29] adamfsh: so I need to abort the request even before it was finished :D
[22:30] mnutt: bnoordhuis: it's http/1.1, but doesn't have a content-length because the backend continues to send data until the client disconnects. I assume that makes it invalid?
[22:30] adamfsh: I tried, request.connection.destroy();
[22:30] Sorella has joined the channel
[22:31] adamfsh: it seems like it abborted the request, but it not, because the file is still uploading
[22:31] slip has joined the channel
[22:31] adamfsh: Umm.. and I use express, and node-formidable for file uploading
[22:32] bnoordhuis: mnutt: no content-length, no transfer-encoding - yes, that's not a valid response
[22:32] bnoordhuis: adamfsh: sorry, i don't know how express and formidable work internally
[22:32] adamfsh: but I just would like to know how to abort a request :(
[22:32] adamfsh: is it possible?
[22:33] monokrome has joined the channel
[22:33] socketio\test\74 has joined the channel
[22:33] hybsch has left the channel
[22:33] NodeBuddy: Maybe http.CreateServer is a bad idea to use :\
[22:38] donald_cook has joined the channel
[22:39] ckknight has joined the channel
[22:39] jergason has joined the channel
[22:42] vikstrous has joined the channel
[22:43] binaryjohn has joined the channel
[22:44] kenperkins: are there any string resource or globalization modules for node
[22:44] chovy: TheJH: I'm using the json delimiter module, it works but JSON.parse() fails on the client side with the data it is receiving.
[22:44] slip has joined the channel
[22:46] JaKWaC has joined the channel
[22:46] newy has joined the channel
[22:46] TheJH: chovy, try using console.log instead of JSON.parse, what does it show?
[22:47] adamfshh: @AvianFlu but https://github.com/mikeal/request was made for making request not receiving them
[22:47] skm has joined the channel
[22:47] AvianFlu: I thought you were asking about aborting outgoing requests, I must have misunderstood
[22:47] vikstrous has joined the channel
[22:47] chovy: in my node script it looks fine, except the one json line is now split to one line for each property. I suspect this is what is breaking my response.write("data: "+value+"\n\n"); back to the client socket.
[22:48] chovy: does that make sense?
[22:48] TheJH: chovy, you're sending newline-delimited JSON fragments?
[22:48] slip_ has joined the channel
[22:49] TheJH: chovy, this is NOT valid JSON: foo: "bar"
[22:49] chovy: console.log(value) prints it out like this:
[22:49] mrdoodles has joined the channel
[22:49] adamfshh: @AvianFlu and do you know how to abort a received request in http.CreateServer?
[22:49] chovy: {
[22:49] chovy: foo : "bar"
[22:49] chovy: }
[22:49] TheJH: chovy, that's not newline-delimited JSON
[22:49] ckknight has joined the channel
[22:50] dylang has joined the channel
[22:50] MrNko has joined the channel
[22:50] MUILTFN has joined the channel
[22:50] Nuck: chovy: JSON requires the key to be quoted.
[22:51] tuhoojabotti: Yes.
[22:51] tuhoojabotti: JSON<3
[22:51] TheJH: Nuck, that, too, but you also can't just insert newlines where you want to in newline-delimited JSON!
[22:51] chovy: i'm no
[22:51] tuhoojabotti: eww
[22:51] chovy: i'm not inserting.
[22:51] tuhoojabotti: newline-delimited JSON?!?!!?
[22:51] tuhoojabotti: That's just sick.
[22:51] chovy: do i need to JSON.stringify it?
[22:51] TheJH: tuhoojabotti, no, it's how many streaming APIs work
[22:52] TheJH: chovy, response.write("data: "+value+"\n\n"); is wrong
[22:52] tuhoojabotti: Streaming is sick.
[22:52] tuhoojabotti: It's like a stream of vomit!
[22:52] tuhoojabotti: ACTION should go to bed.
[22:52] Nuck: Why newline-delimited
[22:52] Nuck: tuhoojabotti: But you'll miss NKO
[22:52] tuhoojabotti: I'm not even participating
[22:52] chovy: that worked.
[22:52] tuhoojabotti: I'm doing WebGL game!
[22:52] Nuck: Nor am I :P
[22:52] TheJH: tuhoojabotti, what do you expect the twitter firehose to do? long polling? :D
[22:53] tuhoojabotti: long polling ftw!
[22:53] adamfshh: Does anybody have experience in file uploading in nodejs?
[22:53] TheJH: ACTION puts tuhoojabotti on the "trolls" list
[22:53] tuhoojabotti: :(
[22:54] Nuck: TheJH: How about just raw sockets with a JSON object for each tweet, each followed by a \r\n?
[22:54] Nuck: Not a streaming object
[22:54] tmpvar: tuhoojabotti, is it online somewhere?
[22:54] tuhoojabotti: ACTION puts TheJH to the list of people with no sense of humour.
[22:54] TheJH: Nuck, you're taling about newline-delimited JSON
[22:54] Nuck: adamfshh: I use this thing which relies on the HTML5 APIs to deal with shit
[22:54] tuhoojabotti: tmpvar: Yes.
[22:54] Nuck: TheJH: Eh, really?
[22:54] TheJH: *talking
[22:54] Nuck: That's not so bad
[22:55] adamfshh: Nuck what thing?
[22:55] Nuck: adamfshh: Essentially, it just dumps the file in the body of a POST request, which I then pipe to a file using Express middleware
[22:55] Nuck: I forget, lemme see
[22:55] tuhoojabotti: TheJH: You can't judge someone a troll for what one says 2 am.
[22:55] tuhoojabotti: :(
[22:55] dylang has joined the channel
[22:56] NodeBuddy: How do I find out why response.socket is becoming null? :<
[22:56] Nuck: tuhoojabotti: Where the shit are you?
[22:56] tuhoojabotti: Finland still.
[22:56] chovy: TheJH: Why is response.write("data: "+value+"\n\n"); wrong?
[22:56] TheJH: chovy, because "data": 1 is invalid json
[22:56] Zuardi has joined the channel
[22:56] TheJH: chovy, that needs to be inside an object
[22:56] chovy: TheJH: that's not json.
[22:57] chovy: that is an event stream
[22:57] adamfshh: @Nuck and do you know how to end the file uploading if for example you want just .PNG files? Or the size of the file is too large ?
[22:57] mikeal: sup
[22:57] chovy: the value is the json object, "data: { "foo":"bar"}\n\n" is the event data.
[22:58] Validatorian has joined the channel
[22:58] Nuck: adamfshh: The thing I use is http://valums.com/ajax-upload/, and I implemented it in Node by piping the data events from the body to a file
[22:58] TheJH: chovy, if you want to use that format, you'll have to write your own parser
[22:58] __tomb has joined the channel
[22:59] Nuck: adamfshh: It only works in modern browsers though, since it requires some HTML5 File APIs
[22:59] Nuck: Anything older will require you to have a multipart form decoder
[22:59] seebees: trying to compile node/master on osx 10.7.1 and File "/Users/remery/Documents/GITProjects/node_fork2/wscript", line 982, in shutdown
[22:59] seebees: os.symlink('out/Release/node', 'node'). Any ideas?
[22:59] ckknight has joined the channel
[22:59] adamfshh: Nuck : but do you check the file types and file size limit in server side?
[23:00] TheJH: tuhoojabotti, and I shouldn't judge about people when it's 1am here :D
[23:00] achiu has joined the channel
[23:00] tuhoojabotti: Never judge people!
[23:00] chovy: TheJH: it works. I think hyou are confusing the response sent.
[23:00] Nuck: adamfshh: Not yet, and it can't detect the size of files, but I can check filetype by checking the GET parameter qq uploader uses.
[23:00] chovy: i'm using websockets.
[23:00] Validatorian: I'm getting: Object #