[00:02] galaxywatcher has joined the channel [00:04] hunterloftis: Anybody know if there are options for Vows you can pass into .run() or some other config to get the --spec reporting without the 'vows ... --spec' command? [00:05] zinkem has joined the channel [00:06] CIA-109: node: 03Bert Belder 07v0.6 * rcf6cd5e 10/ (src/node.cc src/node.h src/node_file.cc): Rename FSError to UVException and move to node.cc - http://git.io/rO_FgQ [00:06] CIA-109: node: 03Bert Belder 07v0.6 * r7a9b4c9 10/ (src/node.cc test/simple/test-chdir.js): [00:06] CIA-109: node: Win: make process.cwd and chdir support non-ansi characters [00:06] CIA-109: node: Closes GH-2215 - http://git.io/PJAUhg [00:06] CIA-109: node: 03Bert Belder 07v0.6 * r21ba485 10/ src/node.cc : [00:06] CIA-109: node: Exclude getbuf from the windows build [00:06] CIA-109: node: It's not used. - http://git.io/ywqSFQ [00:06] konobi: bnoordhuis: yup [00:06] salva has joined the channel [00:07] gtramontina has joined the channel [00:07] bnoordhuis: konobi: nm, i was looking for someone but the problem's already solved [00:07] konobi: heh [00:07] CrabDude has joined the channel [00:08] konobi: who were you after? [00:08] bnoordhuis: konobi: trevor orsztynowicz [00:08] bnoordhuis: but it turns out he's on holidat [00:09] bnoordhuis: *holiday [00:09] konobi: ah... the msi stuff no doubt [00:09] bnoordhuis: yep [00:09] markwubben has joined the channel [00:11] freewil has joined the channel [00:13] a_suenami has joined the channel [00:17] piscisaureus_ has joined the channel [00:18] ohtogo has joined the channel [00:21] tonymilne has joined the channel [00:21] MUILTFN has joined the channel [00:22] tommyvyo has joined the channel [00:23] raincole has joined the channel [00:24] igl1 has joined the channel [00:25] rchavik has joined the channel [00:26] neilk_ has joined the channel [00:27] adamstantonvan has joined the channel [00:28] bnoordhuis: it's that time of the week again, please test http://nodejs.org/dist/v0.6.4/node-v0.6.4-rc1.tar.gz and http://nodejs.org/dist/v0.6.4/node-v0.6.4-rc1.pkg [00:28] bogomips2_ has joined the channel [00:29] tbranyen: yay [00:30] jerrysv: yay indeed [00:30] jerrysv: does it include an updated npm, with man pages? [00:30] mmalecki: bnoordhuis: SHA? [00:30] isaacs: jerrysv: yes. [00:30] jerrysv: isaacs: huzzah! [00:31] jerrysv: the one time i needed them, they were not there :( [00:31] mmalecki: I think I'm going to sleep. we'll update Travis tomorrow. [00:31] davidascher has joined the channel [00:32] mmalecki: unless release is going to happen in next hour or two. [00:32] jerrysv: mmalecki: travis is yours? [00:32] fairwinds has joined the channel [00:32] mmalecki: jerrysv: nope, I'm just a part of the team [00:32] jerrysv: mmalecki: regardless, great work [00:32] spolu has joined the channel [00:32] eliasp_ has joined the channel [00:33] spolu: hi guys, just wanted to share some node.js fun (WebGL + socket.IO + Three.js) still very rouhg [00:33] versicolor has joined the channel [00:33] spolu: http://escapewar.nodejitsu.com/ [00:33] bnoordhuis: mmalecki: yes, will be made available for the final release [00:33] andree has joined the channel [00:34] mmalecki: bnoordhuis: sha, you mean? [00:34] b_i_d: Hey guys, you are too fast! I was just talking to the Debian maintainer about packaging 0.6.2! :D [00:34] mmalecki: bnoordhuis: I'm asking about git sha. [00:34] bnoordhuis: for the rc's [00:34] bnoordhuis: 75f40e710dc24e2ff86d99a71b727dc08ad299b4 node-v0.6.4.tar.gz [00:34] bnoordhuis: eb77fcdf7fb769a910cc61d24d79ba9a608b242c out/node-v0.6.4.pkg [00:34] bnoordhuis: oh that, i haven't pushed it yet [00:34] bnoordhuis: not until the rc goes final [00:34] xtat has joined the channel [00:34] ktos has joined the channel [00:34] mmalecki: ok [00:34] mmalecki: bnoordhuis: can you give me *any* estimate on that? [00:34] thatmarvin has joined the channel [00:34] mmalecki: like, hours. [00:35] tmm1 has joined the channel [00:35] Lingerance: spolu: All I see is a grid, a circle and a bunch of moving things, one of them is really fast and keeps hitting the edge and teleporting. [00:35] bnoordhuis: mmalecki: between 1 and a million [00:36] mattly has joined the channel [00:36] bnoordhuis: mmalecki: and, in all likelihood, between now and two hours [00:36] spolu: Lingerance: yep use your arrows [00:36] Lingerance: Arrow keys aren't working for me [00:36] tonymilne: spolu its cool mate, good start! :) [00:36] tonymilne: press up to accellerate. [00:36] mmalecki: bnoordhuis: ok, thank you :) [00:36] xy has joined the channel [00:36] tonymilne: spolu (make the player appear red or something to differentiate) [00:36] b_i_d: spolu: Nice black window. I like black... [00:37] spolu: still need collision detection and chrome idle tab handling [00:37] waterhead has joined the channel [00:37] spolu: + shotting [00:37] spolu: +shoot [00:37] spolu: mmalecki: thanks [00:37] spolu: :) [00:37] tonymilne: spolu add a thruster so you can quickly rotate 180 and power on. [00:37] b_i_d: Meaning: Nothing in my browser. ;) [00:37] tonymilne: or handbreak. [00:37] b_i_d: (Chromium on Debian testing) [00:38] spolu: tonymilne: how do you orientate your thrusted? [00:38] thatmarvin: hey guys, is this the place to ask about npm? [00:38] slickplaid: haha [00:38] spolu: thruster? [00:38] slickplaid: ive had that tab open for like 20-30 minutes [00:38] tonymilne: it comes out the back of your ship. [00:38] slickplaid: forgot about it [00:38] tonymilne: so if you are moving forward, [00:38] izepstan3 has joined the channel [00:38] slickplaid: BUT IM SURE MOVING FAST [00:38] tonymilne: but use left / right to rotate opposite direction, [00:38] tonymilne: and use thruster you can quickly change trajectorory, [00:38] neilk_ has left the channel [00:39] tonymilne: (or something like that, its just a little hard to be really manouverable) [00:39] b_i_d: Oh, my mistake. Didn't see that "WebGL" there. You may wanna add an error message for non-WebGL browsers. [00:39] isaacs: thatmarvin: sure [00:39] isaacs: what's up? [00:39] thatmarvin: so if my package.json has {dependencies: { existing-npm-module: my-custom-fork.tar.gz }}, how should i make it such that npm would overwrite the existing version when i do "npm install"? bump version? rename it? [00:40] isaacs: thatmarvin: npm rm existing-npm-module; npm install [00:40] marcello3d has joined the channel [00:40] thatmarvin: oh so i have to explicitly remove it. [00:40] thatmarvin: ok thanks [00:40] isaacs: thatmarvin: or, you could do: npm install http://blah/blah/my-custom-fork.tar.gz [00:40] isaacs: thatmarvin: install will clobber [00:40] isaacs: install (noargs) will just fill in the blanks [00:41] bnoordhuis: pkg installer on os x works [00:41] thatmarvin: so i tried doing that, and it doesn't seem like it clobbered the original module [00:41] izepstan3: hello there, im trying to install nodejs on my debian machine ./configure says: 'configure' finished successfully, WARNING Platform not fully supported. Using src/platform_none.cc make produces an error Build failed -> task failed err #2... i red something about python not installeb but it is configure script checks all green ... [00:41] bnoordhuis: isaacs: what about you? [00:41] spolu: slickplaid: :) [00:41] isaacs: installing now [00:41] bnoordhuis: eh, maybe i should've posted that in #libuv [00:41] spolu: b_i_d: yep [00:41] thatmarvin: isaac: oh nvm i see what you mean. i was just doing "npm install" without specifiying [00:42] isaacs: bnoordhuis: seems to work for me. [00:42] bnoordhuis: cool [00:42] spolu: distributed physics is complicated... [00:42] devongovett has joined the channel [00:42] thatmarvin: isaac: btw, we've prob met back in santa monica a few yrs ago :) [00:43] zeade has joined the channel [00:43] isaacs: bnoordhuis: actually, wait a minute… i think my existing npm link made it confused [00:43] isaacs: trying again [00:43] dgathright has joined the channel [00:43] cgfuh has joined the channel [00:43] isaacs: there we go [00:43] isaacs: npm@1.1.0-alpha-5 /usr/local/lib/node_modules/npm [00:44] bnoordhuis: isaacs: i get this when i `npm install` buffertools or iconv -> Error: EAFNOSUPPORT, file already exists '/var/folders/hj/0d9xmr9508g5_xzg6q94_w480000gn/T/npm-1322786659489/1322786659489-0.8288576998747885' [00:44] bnoordhuis: it's 1.1.0-alpha-5 btw [00:45] isaacs: bnoordhuis: eafnosupport usually indicates that node has some issue getting an IP address [00:45] bnoordhuis: isaacs: yeah, but 'file already exists'? [00:45] isaacs: bnoordhuis: that's odd. [00:45] isaacs: bnoordhuis: can you gist the npm-debug.log file [00:45] isaacs: ? [00:46] dwhittle has joined the channel [00:46] ccapndave has joined the channel [00:46] blueadept` has joined the channel [00:46] ryanj has joined the channel [00:46] crcn has joined the channel [00:47] criswell has joined the channel [00:47] bnoordhuis: isaacs: https://gist.github.com/87956a0f3cee06411209 [00:47] isaacs: bnoordhuis: your error codes are all screwy [00:47] isaacs: verbose mkdir (expected) error ERANGE, no such file or directory '/Users/bnoordhuis/.npm/iconv' [00:47] bnoordhuis: odd innit? [00:48] isaacs: bnoordhuis: should be an ENOENT there [00:48] isaacs: bnoordhuis: and youre getting EAFNOSUPPORT instead of EEXIST [00:49] isaacs: bnoordhuis: ok, i'm reproducing [00:49] isaacs: something is very odd here. [00:51] briancray has joined the channel [00:51] bnoordhuis: damnit, i suspect piscisaureus_'s last-minute commit fucked up things [00:52] isaacs: yeah, this is definitely messed up [00:52] isaacs: changing the error code values screws up npm completely [00:52] isaacs: works fine on 0.6.3 [00:56] lyte_ has joined the channel [00:57] isaacs: oh!!! [00:58] Kai` has joined the channel [00:58] isaacs: bnoordhuis: alpha-6 is on my v0.6 branch, but not on master [00:58] bnoordhuis: isaacs: you mean it should be alpha-6 in the rc tarball? [00:59] isaacs: yes [00:59] isaacs: that fixes a bugin the msi build [00:59] bnoordhuis: yes, that's what i merged [00:59] isaacs: oh.. not pushed to joyent, then? [00:59] rwaldron has joined the channel [01:02] seanhess has joined the channel [01:02] spolu has left the channel [01:03] francisl has joined the channel [01:04] skm has joined the channel [01:05] Wa has joined the channel [01:07] CIA-109: node: 03Bert Belder 07v0.6 * rcf6cd5e 10/ (src/node.cc src/node.h src/node_file.cc): Rename FSError to UVException and move to node.cc - http://git.io/rO_FgQ [01:07] CIA-109: node: 03Bert Belder 07v0.6 * r7a9b4c9 10/ (src/node.cc test/simple/test-chdir.js): [01:07] CIA-109: node: Win: make process.cwd and chdir support non-ansi characters [01:07] CIA-109: node: Closes GH-2215 - http://git.io/PJAUhg [01:07] CIA-109: node: 03Bert Belder 07v0.6 * r21ba485 10/ src/node.cc : [01:07] CIA-109: node: Exclude getbuf from the windows build [01:07] CIA-109: node: It's not used. - http://git.io/ywqSFQ [01:07] CIA-109: node: 03isaacs 07v0.6 * r5f96477 10/ (95 files in 6 dirs): npm 1.1.0-alpha-6 - http://git.io/qJXwZQ [01:11] boltR has joined the channel [01:12] jbrokc has joined the channel [01:12] BillyBreen has joined the channel [01:12] blueadept`: anyone going to the node.js meetup in LA? [01:12] CIA-109: node: 03isaacs 07master * ra386753 10/ (139 files in 50 dirs): Update npm to 1.1.0-alpha-2 - http://git.io/D2jcoQ [01:12] blueadept`: i just got to Santa Monica but I can't make it [01:12] blueadept`: i'll have to go next monht [01:13] koo1 has joined the channel [01:13] CIA-109: node: 03isaacs 07v0.6 * r1ad30a2 10/ (95 files in 6 dirs): npm 1.1.0-alpha-6 - http://git.io/QI-QXg [01:14] pointlessjon has joined the channel [01:14] pointlessjon has left the channel [01:16] CIA-109: node: 03Bert Belder 07bugfix * rcf6cd5e 10/ (src/node.cc src/node.h src/node_file.cc): Rename FSError to UVException and move to node.cc - http://git.io/rO_FgQ [01:16] CIA-109: node: 03Bert Belder 07bugfix * r7a9b4c9 10/ (src/node.cc test/simple/test-chdir.js): [01:16] CIA-109: node: Win: make process.cwd and chdir support non-ansi characters [01:16] CIA-109: node: Closes GH-2215 - http://git.io/PJAUhg [01:16] CIA-109: node: 03Bert Belder 07bugfix * r21ba485 10/ src/node.cc : [01:16] CIA-109: node: Exclude getbuf from the windows build [01:16] CIA-109: node: It's not used. - http://git.io/ywqSFQ [01:16] CIA-109: node: 03Bert Belder 07bugfix * r984880f 10/ src/node.cc : Fix UVException errno bug - http://git.io/YeX4sA [01:16] elijah-mbp has joined the channel [01:18] thinkt4nk has joined the channel [01:18] CIA-109: node: 03Ben Noordhuis 07master * rbbd976b 10/ (common.gypi deps/uv/uv.gyp node.gyp): [01:18] CIA-109: node: build: always compile with large file support [01:18] CIA-109: node: Fixes a nasty sizeof(struct stat) mismatch bug that caused random crashes and [01:18] CIA-109: node: silent memory corruption. - http://git.io/YA3ERw [01:18] CIA-109: node: 03Ben Noordhuis 07master * rf44d0b9 10/ (src/node_crypto.cc test/simple/test-crypto.js): [01:18] CIA-109: node: crypto: throw exception on unknown digest method [01:18] CIA-109: node: Fixes #2227. - http://git.io/nGSTvA [01:20] asoltys has joined the channel [01:21] materialdesigner has joined the channel [01:22] CIA-109: node: 03Bert Belder 07bugfix * r823a443 10/ (src/node.cc src/node.h src/node_file.cc): Rename FSError to UVException and move to node.cc - http://git.io/kisa_w [01:22] CIA-109: node: 03Bert Belder 07bugfix * re84edd2 10/ (src/node.cc test/simple/test-chdir.js): [01:22] CIA-109: node: Win: make process.cwd and chdir support non-ansi characters [01:22] CIA-109: node: Closes GH-2215 - http://git.io/HNesuw [01:22] CIA-109: node: 03Bert Belder 07bugfix * rded97eb 10/ src/node.cc : [01:22] CIA-109: node: Exclude getbuf from the windows build [01:22] CIA-109: node: It's not used. - http://git.io/Bp8_KQ [01:22] CIA-109: node: 03Bert Belder 07bugfix * r641f2be 10/ src/node.cc : Fix UVException errno bug - http://git.io/bA1UxQ [01:24] francisl has joined the channel [01:26] Dulak has joined the channel [01:26] CIA-109: node: 03Bert Belder 07v0.6 * r823a443 10/ (src/node.cc src/node.h src/node_file.cc): Rename FSError to UVException and move to node.cc - http://git.io/kisa_w [01:26] CIA-109: node: 03Bert Belder 07v0.6 * re84edd2 10/ (src/node.cc test/simple/test-chdir.js): [01:26] CIA-109: node: Win: make process.cwd and chdir support non-ansi characters [01:26] CIA-109: node: Closes GH-2215 - http://git.io/HNesuw [01:26] CIA-109: node: 03Bert Belder 07v0.6 * rded97eb 10/ src/node.cc : [01:26] CIA-109: node: Exclude getbuf from the windows build [01:26] CIA-109: node: It's not used. - http://git.io/Bp8_KQ [01:26] CIA-109: node: 03Bert Belder 07v0.6 * r641f2be 10/ src/node.cc : Fix UVException errno bug - http://git.io/bA1UxQ [01:27] shancat has joined the channel [01:27] izepstan3: http://pastebin.com/s02DP54P can someone please help me? im tryin to install nodejs on debian with the following error http://pastebin.com/s02DP54P [01:29] seanhess has joined the channel [01:30] langworthy has joined the channel [01:31] bogomips2__ has joined the channel [01:32] gavin_huang has joined the channel [01:33] context: uhh [[ not found? holy damn [01:33] context: how old is this box [01:33] EhevuTov has joined the channel [01:34] context: or is /bin/sh not sh ? [01:34] isaacs: context, izepstan3: could jsut be a box where /bin/sh is sh and not bash [01:34] isaacs: context: [[ is a bash-ish [01:34] isaacs: i wonder where in our build stuff we're using [[ in a script that claims to be sh [01:34] spathi has joined the channel [01:35] context: is it in the make file ? [01:35] context: err nm [01:37] joemccann has joined the channel [01:38] piscisaureus__ has joined the channel [01:38] jldbasa has joined the channel [01:38] bnoordhuis: round two, please test http://nodejs.org/dist/v0.6.4/node-v0.6.4-rc2.tar.gz and http://nodejs.org/dist/v0.6.4/node-v0.6.4-rc2.pkg [01:38] nerdy has joined the channel [01:39] fuzzled has joined the channel [01:40] gtramontina has joined the channel [01:41] skm has joined the channel [01:41] gregmoreno has joined the channel [01:41] sdwrage has joined the channel [01:42] pauls1 has joined the channel [01:44] devongovett has joined the channel [01:46] adamstantonvan has joined the channel [01:46] isaacs: bnoordhuis: works for m [01:46] isaacs: e [01:47] bnoordhuis: yeah, looks good here too [01:47] fairwinds has joined the channel [01:48] tmcw has joined the channel [01:48] DamonOehlman has joined the channel [01:48] davidbanham: Halp! Error when deploying my app to the production machine when installing node-time [01:48] davidbanham: npm ERR! error installing time@0.6.5 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 127 [01:49] isaacs: davidascher: please share the rest of the output [01:49] isaacs: er, davidbanham not davidascher [01:49] isaacs: ACTION shakes fist at Alphabet, his old nemesis [01:49] isaacs: davidbanham: gist the output, and additionally the npm-debug.log file if one was created. [01:49] davidbanham: isaacs: Sorry, busy panicing. Output here - https://gist.github.com/1421331 [01:50] elijah has joined the channel [01:50] isaacs: sh: node-waf: not found [01:50] isaacs: sh: node-waf: not found [01:50] isaacs: davidbanham: ^ [01:50] isaacs: davidbanham: node-waf is installed with node [01:50] isaacs: how did you install node? [01:50] isaacs: davidbanham: from source, or from a pacakge manager or something? [01:50] CrabDude has joined the channel [01:50] davidbanham: Ahh, on these machines I download the tarball and install from source. [01:51] isaacs: k [01:51] isaacs: well, `make install` should've installed node-waf [01:52] secoif: hm. let's say I have a common 'config' thing that I'm requiring in every file in my entire app. but this config has some kind of async setup, is my only choice to wrap every module in some kind of on('ready') or something? [01:52] eignerchris has joined the channel [01:52] Emmanuel` has joined the channel [01:53] ditesh|cassini has joined the channel [01:53] marcostoledo has joined the channel [01:54] isaacs: secoif: yes. [01:54] isaacs: secoif: or, load it into the env or something before you start your app [01:54] davidbanham: isaacs: I think I might have lied. Just tried to reinstall from source and there's no libssl-dev installed. Rebuilding 0.4.9 and will reinstall. Thanks for the pointer. [01:54] isaacs: davidbanham: np [01:55] isaacs: davidbanham: btw, 0.4.12 might have some bug fixes that could be relevant to you, but you probably want to change as little as possible right now. [01:55] secoif: isaacs loading the env before starting app is a good idea, need to figure out how to get that to work with the test suite [01:55] davidbanham: isaacs: That's my plan! Just make it work is the goal today. I'll jump straight to the 6 branch once I sort out my application's test suite. [01:56] isaacs: sweet! [01:56] neoesque has joined the channel [01:56] kazupon has joined the channel [01:56] innociv has joined the channel [01:56] WarheadsSE has joined the channel [01:56] maletor has joined the channel [01:57] secoif: isaacs I could… do a while loop in the config file that blocks… until the async completes… [01:57] isaacs: secoif: !!! [01:57] isaacs: please dont' do that [01:57] isaacs: secoif: it won't actually complete. [01:57] idefine has joined the channel [01:57] secoif: oh of course [01:57] isaacs: secoif: since it'll never dip back into the thread pool [01:57] secoif: cause [01:57] secoif: yeah [01:57] isaacs: no interrupts in node :) [01:58] isaacs: secoif: you know, you can actually put configs in npm, and then packages can see them if you start your stuff with `npm start ` [01:58] chilts: oooh ... cool [01:58] isaacs: http://npmjs.org/doc/config.html#Per-Package-Config-Settings [01:58] chilts: can that also determine if it's a dev, testing, staging, live environment? [01:58] isaacs: sure [01:58] chilts: excellent, that's what I've been looking for :) [01:59] chilts: isaacs: ++ [01:59] chilts: hmm, no beer count [01:59] isaacs: so if you do `npm config set name:key val` then when you do `npm start name` it'll see process.env.npm_package_config_key="val" [01:59] innociv has joined the channel [02:00] chilts: sweet [02:00] secoif: isaacs my current configuration management is a little convoluted, that sounds pretty simple [02:00] isaacs: secoif: it's not very well documented, but it is pretty simple [02:00] secoif: though again, test suite is a problem. [02:00] isaacs: secoif: i think the nodejitsu guys have a much fancier thing that can hook into different backends [02:00] secoif: isaacs yeah I'm using nconf right now, but I feel like I'm using a tractor to eat my breakfast [02:01] isaacs: hahah [02:05] TN has joined the channel [02:06] secoif: isaacs so, I've got to run `nodeunit ./test/something` and the something requires '../config' is there a way I can set up the values of that config module before nodeunit runs [02:06] secoif: using npm [02:06] secoif: somehow [02:06] MUILTFN has joined the channel [02:07] scott_gonzalez has joined the channel [02:07] CrabDude has joined the channel [02:08] k1ttty has joined the channel [02:08] isaacs: secoif: um… no? [02:08] secoif: also that "npm_package_config_" prefix is a little, unwieldy [02:08] isaacs: secoif: you can require("../config.js"), i mean, that's sync, right? [02:09] isaacs: secoif: i usually have a config.js or something that just does exports.foo = process.env.npm_package_config_foo ... [02:09] torm3nt has joined the channel [02:09] icewhite has joined the channel [02:09] isaacs: and then do var conf = require("./config.js") [02:09] mikeric has joined the channel [02:09] isaacs: and then do server.listen(conf.port) [02:09] isaacs: etc. [02:09] secoif: yeah, but, like, I'm thinking prepriming the module cache or something [02:09] isaacs: what's wrong with using require()? [02:09] noodlehaus has joined the channel [02:09] isaacs: does the config have to fetch something or do some network io? [02:10] noodlehaus: hi folks [02:10] noodlehaus: any recommended mysql ORM for nodejs? [02:10] secoif: noodlehaus http://toolbox.no.de/search?q=orm [02:10] noodlehaus: currently looking at either persistence.js and sequelize, would appreciate any feedback on them [02:10] noodlehaus: yeah sec, done that, in the process of getting feedback on some options [02:11] secoif: noodlehaus cool [02:11] secoif: isaacs yeah it's got to do a bunch of file checks and whatnot, the app startup time is a bit crappy [02:11] isaacs: secoif: well, i mean, it's just startup, though, right? [02:11] isaacs: secoif: fwiw, this is why i have npm.load(…) and then that calls an ini.resolveConfigs() that does all the config file readin [02:12] isaacs: secoif: some packages we have at joyent just put all the configs in a json file, and do var conf = require("./config.json") [02:12] strmpnk has joined the channel [02:12] isaacs: secoif: that's easy, because then you can have a production one and a dev one, and just swap a symlink [02:12] secoif: til require can load a json file. [02:14] EyePulp has joined the channel [02:15] secoif: isaacs thanks, I think I know what must be done [02:15] cgfuh has joined the channel [02:16] jocafa has joined the channel [02:16] CIA-109: node: 03Ben Noordhuis 07v0.6 * r9170077 10/ (doc/index.html doc/template.html src/node_version.h): Bump version to v0.6.4 - http://git.io/rGEF0g [02:16] CIA-109: node: 03Ben Noordhuis 07v0.6 * ra29a7c7 10/ src/node_version.h : Now working on v0.6.5 - http://git.io/DsC9Tw [02:17] Wa has joined the channel [02:17] fzzzy has joined the channel [02:18] devongovett has joined the channel [02:18] Wa has joined the channel [02:19] joshsmith: what am I doing wrong to get this error: https://gist.github.com/1421402 [02:21] context: line 10 ! [02:21] context: you aren't catching an exception [02:21] joshsmith: is it because of the connection.session() MemoryStore? [02:22] context: whats line line 10 [02:22] context: and shouldn't be. thats a warning [02:22] joshsmith: people are getting a 500 error [02:22] joshsmith: I think because of that [02:22] context: cause your app is throwing an exception [02:22] context: why are you using memory sessions in production [02:23] joshsmith: idk that I am explicitly doing so [02:24] context: im assuming its the default then [02:24] joshsmith: context: here's the relevant app.js: https://gist.github.com/1421433 [02:25] r1ngzer0 has joined the channel [02:26] context: err im not sure. thats not your app on line 10 [02:26] context: maybe its one of the plugins [02:27] luoluoluo has joined the channel [02:27] context: remove one of the options at a time and see if its one of those [02:27] context: put it looks like its related to the postgres connection [02:27] secoif: yep [02:28] NetRoY has joined the channel [02:28] secoif: joshsmith when you create your pg connection, listen for the 'error' event and deal accordingly [02:28] AD7six has joined the channel [02:28] context: i doubt nodejitsu is letting you login to postgres as postgres [02:29] joshsmith: context: it's on a remote server with Rackspace [02:29] joshsmith: secoif: could this be caused by not closing the connection properly? [02:29] context: i doubt rackspace is letting you login as postgres [02:29] context: nor should you be using the postgres user for apps [02:30] joshsmith: well, I am able to login as postgres [02:30] secoif: joshsmith listen for 'error' and the param passed to the handler might give you more info [02:30] pauls1 has joined the channel [02:30] secoif: attach it to the client… something like client.on('error', function() {console.log(arguments)}) [02:30] context: and over the internet.... scary [02:30] context: you know by default postgres doesn't allow logging in as postgres over tcp [02:31] context: just cause it works locally doesn't mean it will work remotely [02:31] joshsmith: it is working, but I didn't realize it shouldn't be [02:31] joshsmith: ideally how should I set it up? [02:31] luoluoluo: hi there, can I do nodejs do like require("http://api.map.baidu.com/api?v=1.2") to include remote api js? [02:31] context: joshsmith: you should have a user made specific for your app [02:32] secoif: luoluoluo you might want to look into browserify, stitch, or requirejs if you want to do that… or even dnode [02:32] context: luoluoluo: considering that url is doing document.write() with html i doubt its gonna do much for you in node [02:33] luoluoluo: context: that means I can only do it in browser instead of server side? [02:33] secoif: luoluoluo actually, are you trying to require remote file into node, or node into yout html [02:33] ChaoWang has joined the channel [02:33] context: and the script it includes has everything inclosed in an anonymous scope its rather useless [02:33] luoluoluo: secoif: require remote file into node [02:33] context: luoluoluo: yes. [02:33] secoif: luoluoluo why are you doing 'document.write' on the server?? [02:34] secoif: i am confused. [02:34] luoluoluo: context: I see...... thanks. :) [02:34] luoluoluo: secoif: that's an 3rd party api provided by baidu.com not mine [02:35] luoluoluo: secoif: in its document it just show how to do it in browser. But I want to do it on server side. So I think about node [02:35] piscisaureus__ has joined the channel [02:35] EyePulp has joined the channel [02:35] jxson has joined the channel [02:35] augustl has joined the channel [02:36] context: luoluoluo: you would have to ask baidu about it, or reverse engineer their api js script [02:36] secoif: ok i understand now [02:37] context: he is trying to access their browser specific script from node. but its not designed for that [02:37] secoif: you could try using it inside a headless browser [02:37] luoluoluo: context: thanks, I may just do it in browser. :D [02:37] joshsmith: secoif: what param should I be passing to the handler? [02:37] luoluoluo: secoif: thanks [02:38] joshsmith: client.on('error', function( what? ) { console.log( what? ); }); [02:38] secoif: joshsmith you can call it whatever you want [02:38] joshsmith: do I write that before client.connect()? [02:38] vlucas has joined the channel [02:39] secoif: joshsmith if you console.log(arguments) you'll see what data is passed to the function [02:39] joshsmith: are you using node-postgres? [02:39] context: beatport might be one of my new favorite sites [02:39] secoif: joshsmith yep, before .connect because the connect funciton itself might be throwing the error [02:40] secoif: s/thowing/emitting [02:40] secoif: joshsmith nope. [02:40] JakeyChan has joined the channel [02:41] JakeyChan_ has joined the channel [02:42] secoif: joshsmith looks like it's probably a connection issue https://github.com/brianc/node-postgres/blob/master/lib/client.js#L118 [02:42] joshsmith: secoif: after adding that in I only get a 404 error [02:42] secoif: joshsmith and what does your console say [02:42] joshsmith: nothing [02:42] dwhittle has joined the channel [02:42] secoif: gist. [02:42] joshsmith: same thing as before [02:43] pyrotechnick has joined the channel [02:43] pointlessjon has joined the channel [02:44] joshsmith: ah [02:44] joshsmith: I'm doing it locally now [02:45] joshsmith: "sorry, too many clients already" [02:45] context: bingo ! [02:45] joshsmith: so I need to be explicitly closing the clients [02:45] context: if the process dies it closes the connection [02:45] context: how many damn connections do you have [02:45] context: you should only need one per node process [02:45] joshsmith: no idea [02:46] joshsmith: I'm specifying the connection in each model I have... [02:46] secoif: joshsmith yeah, I wouldn't do that [02:46] joshsmith: there are only two models [02:46] joshsmith: how should I be structuring it? [02:47] joshsmith: in the README of node-postgres there's a spot where he calls client.end() [02:47] joshsmith: should I be doing that ever? [02:47] secoif: I'd probably set up the connection as the app boots [02:48] joshsmith: and then call it how? [02:48] joshsmith: I want it to be available in the models [02:48] Venom_X has joined the channel [02:48] secoif: joshsmith keep a reference to it, and require some 'config' module [02:48] joshsmith: secoif: keep a reference to it how? [02:48] secoif: joshsmith http://en.wikipedia.org/wiki/Don't_repeat_yourself [02:48] SirFunk: anyone here use forever? [02:49] joshsmith: like app.settings.client? [02:49] secoif: joshsmith wherever. [02:49] secoif: something like that [02:50] elijah-mbp has joined the channel [02:50] mikeal has joined the channel [02:51] garann: can you use node's dependency loader to get text as a string? [02:51] joshsmith: secoif: okay, trying that now [02:52] sh1mmer has joined the channel [02:52] secoif: garann what do you mean? a text file? [02:52] garann: yeah secoif [02:52] garann: not js or json [02:52] garann: like html or css [02:53] JasonJS has joined the channel [02:53] secoif: garann why not just read the file using fs? [02:53] joshsmith: secoif: can you try this and see if you get a 500: app.settings.client [02:53] joshsmith: whoops [02:53] joshsmith: http://wadsup.nodejitsu.com/ [02:53] tbranyen: garann: fs.readFileSync("filename").toString() would be what you are expecting [02:54] garann: secoif: cause if you can get it with the dependency loader that would be tidier :) [02:54] garann: tbranyen: i know [02:54] pointlessjon has left the channel [02:54] tbranyen: :| now i know [02:54] garann: was just wondering if it would work like require.js [02:54] secoif: garann you could write a helper function that wraps fs if you want it tidier [02:54] secoif: joshsmith worked fine [02:55] joshsmith: secoif: I'm still getting uncaught errors [02:55] secoif: joshsmith different onces? [02:55] joshsmith: same one [02:55] Seb_ has joined the channel [02:55] secoif: oh [02:55] idefine_ has joined the channel [02:55] JasonSmith: isaacs: About the conditional expression, whatcha think? A better case statement? https://gist.github.com/1421499 [02:56] secoif: you need to make sure you put the event listener on this new connection object you set up [02:56] Seb_: Hi all - could I ask a quick question? [02:56] strmpnk has joined the channel [02:57] joshsmith: I had, I thought [02:57] Seb_: I want to share JavaScript code between the server and client - and it looks like a pain in the ass to do. Am I doing something wrong? [02:57] joshsmith: or do I need to do that multiple places? [02:57] isaacs: JasonSmith: i usually indent it differently [02:57] isaacs: also, i usually use an actual switch if it's doing stuff, rather than conditional [02:58] r04r has joined the channel [02:58] JasonSmith: isaacs: I'm kind of digging the cheating, blurring the distinction between a statement and an expression [02:59] joshsmith: secoif ^^ [02:59] JasonSmith: You do that in Erlang all the time. Somevalue = case expr of foo -> it_was_foo() ; bar -> it_was_bar() end [02:59] jerrysv has joined the channel [03:00] pizthewiz has joined the channel [03:00] secoif: joshsmith you should only need it in the one place [03:00] JasonSmith: Also. switch fall through? break? Are you kidding? [03:00] joshsmith: I have it there [03:00] joshsmith: secoif: https://gist.github.com/1421530 [03:01] secoif: joshsmith can you show me the code where you attach the listener [03:02] deedubs has joined the channel [03:02] willwhite has joined the channel [03:02] joshsmith: secoif: https://gist.github.com/1421530 [03:03] joshsmith: someone is getting a 500 socket hang up [03:03] jskulski has joined the channel [03:03] r04r has joined the channel [03:03] secoif: joshsmith and you don't have "new pg.Client" anywhere else in your code [03:04] joshsmith: I don't believe so [03:04] fairwinds has joined the channel [03:04] secoif: perhaps grep for it [03:04] joshsmith: nope, I don't [03:04] koo5 has joined the channel [03:06] secoif: joshsmith doesn't make sense. [03:06] joshsmith: I know, it's bugging me so much [03:06] edwardw has joined the channel [03:07] Vennril2 has joined the channel [03:07] joshkehn has joined the channel [03:07] joshkehn has left the channel [03:08] r04r has joined the channel [03:10] abraxas has joined the channel [03:10] _sorensen_ has joined the channel [03:12] joshsmith: secoif: the error looks like it's on connecting to the database, line 47 [03:12] joshsmith: https://github.com/brianc/node-postgres/blob/master/lib/client.js#L47 [03:13] secoif: joshsmith wrong file. [03:13] edwardw has joined the channel [03:13] joshsmith: whoops, you're right [03:13] r04r has joined the channel [03:14] boltR has joined the channel [03:15] dr0id has joined the channel [03:15] strmpnk_ has joined the channel [03:16] spathi has joined the channel [03:16] secoif: joshsmith double check you're not calling pg.connect more than once. Also, ensure that the new client code isn't being called more than once [03:16] sdwrage has joined the channel [03:17] joshsmith: secoif: what do you mean the new client code isn't being called more than once? [03:17] joshsmith: should I be calling it in app.configure() or something? [03:17] joshsmith: I'm just calling it directly in the app.js [03:18] joshsmith: is that my problem? [03:18] secoif: joshsmith just make sure it doesn't create the client multiple times. use console logs or debugger [03:18] secoif: joshsmith I don't know [03:18] skm has joined the channel [03:18] langworthy has joined the channel [03:19] mansoor-s has joined the channel [03:19] joshsmith: secoif: if multiple users connect, should it still only create the client once? [03:20] secoif: the app should have a single connection to the db [03:21] joshsmith: well, I stuck it right in the app.configure() function [03:21] joshsmith: did some logging locally and only saw it create the client once there [03:21] joshsmith: but *still* getting the errors on prod [03:21] pixel13 has joined the channel [03:22] pixel13 has left the channel [03:22] secoif: joshsmith sorry I'm out of juice. have to get back to work. [03:22] joshsmith: ah, well thanks anyway [03:22] secoif: np [03:22] joshkehn has joined the channel [03:23] hij1nx_ has joined the channel [03:23] context: joshsmith: stop connecting so many times? [03:23] joshsmith: context: I only connect once now [03:23] context: joshsmith: that url says no app for wadsup.nodejitsu [03:24] joshsmith: I destroyed and re-created it just now [03:24] joshsmith: just in case [03:24] joshkehn: Anyone know how I can enable reads from secondary servers in Mongo using Mongoose? [03:25] joshsmith: I used github to search and make sure that I'm not connecting multiple times, and I'm not [03:25] context: so.... are you connecting to the db for every request ? [03:25] socketio\test\96 has joined the channel [03:25] joshsmith: context: it's connecting only in app.configure() [03:26] context: actually node + db is a little odd i just realized [03:26] context: at least for transactions [03:28] joshsmith: context: any more ideas? [03:28] jaequery has joined the channel [03:28] joshsmith: it's still doing it [03:28] joshsmith: I restarted postgres, just in case [03:29] joshsmith: context: it's throwing this error like every half a second or more [03:29] context: it sounds like you are connecting a lot [03:29] context: and app.js doesnt show any actual connection being made [03:30] context: you are setting values... where are they used [03:30] r04r has joined the channel [03:30] joshsmith: you mean I'm setting the client? [03:30] joshsmith: or what do you mean? [03:31] jbrokc has joined the channel [03:31] Gregor has joined the channel [03:32] zivester has joined the channel [03:35] smathy has joined the channel [03:36] johnnywengluu: what assertion lib are you using for the browser? i have to use something in conjunction with Mocha [03:36] joshsmith: context? [03:38] joshsmith: context: if I run the same app in Heroku, I don't get the errors [03:38] tkaemming has joined the channel [03:39] context: :/ maybe nodejitsu is doing sometihng crazy [03:39] joshsmith: yeah, it's baffling [03:39] context: im sure you could do some logging of some sort on postgres to see whats going on [03:40] context: simple.com [03:40] djbell has joined the channel [03:41] joshsmith: uhhh yeah [03:41] joshsmith: password authentication failed for user "postgres" [03:41] joshsmith: it's like that multiple times a second [03:42] willwhite has joined the channel [03:42] CarterL has joined the channel [03:42] cgray has joined the channel [03:43] lyte has joined the channel [03:43] lyte has joined the channel [03:43] wilmoore has joined the channel [03:44] context: yeah. either your code is connecting per request, or nodejitsu is doing something weird [03:45] joshsmith: well, I created a new user [03:45] joshsmith: I'm not making multiple requests per second though [03:45] joshsmith: every second [03:46] joshsmith: so jitsu has to be doing something odd [03:47] joshsmith: actually, I think it's connecting per request [03:47] joshsmith: the logs are still showing someone trying to connect as postgres [03:47] joshsmith: which isn't jitsu [03:48] creationix has joined the channel [03:48] JumpMast3r has joined the channel [03:48] joshsmith: that's heroku that's trying that one [03:50] ryanfitz has joined the channel [03:52] dilvie has joined the channel [03:54] ceej has joined the channel [03:57] lazyshot has joined the channel [03:58] r04r has joined the channel [03:58] r04r has joined the channel [03:58] neilk_ has joined the channel [03:59] idl3 has joined the channel [03:59] dilvie has joined the channel [03:59] ryanfitz has joined the channel [04:02] blueadept` has joined the channel [04:03] r04r has joined the channel [04:06] weizhong has joined the channel [04:07] weizhong: I plan to build a website use node. What is most used node framework? [04:07] r04r has joined the channel [04:07] joshkehn: weizhong: What kind of website? [04:09] weizhong: a site will allow people to play online game, use four card to calculate to 24 [04:09] ciju has joined the channel [04:10] weizhong: in my mind it needs login, friend management, and maybe 2d animation [04:11] boehm has joined the channel [04:11] weizhong: a small site for excecise purpose only [04:11] weizhong: so do you have any recommendation? [04:11] joshkehn: Not really. [04:11] sh1mmer has joined the channel [04:13] koo3 has joined the channel [04:13] r04r has joined the channel [04:13] willwh: weizhong: you may want to check out https://github.com/jbueza/node-pokemon.git [04:13] ecin has joined the channel [04:14] willwh: it's a pretty decent start for a card framework [04:14] JHartig has joined the channel [04:16] jaequery has joined the channel [04:17] weizhong: willwh: sounds great, thanks! [04:17] jbrokc has joined the channel [04:19] JHartig has joined the channel [04:19] neoesque has joined the channel [04:19] lorfds: anybody use zombie.js and want to help me out [04:20] tbranyen: BRAINS [04:20] jj0hns0n has joined the channel [04:21] r04r has joined the channel [04:21] willwh: weizhong: fork it on github [04:21] willwh: weizhong: let's see what you come up with :) [04:21] willwh: weizhong: you probably want to look in to using everyauth too... :) [04:21] jtsnow has joined the channel [04:22] td123 has joined the channel [04:22] td123 has left the channel [04:23] fastest963 has joined the channel [04:23] fastest963 has joined the channel [04:25] JanLi has joined the channel [04:26] r04r has joined the channel [04:28] lyte has joined the channel [04:30] davidbanham has joined the channel [04:30] torsd has joined the channel [04:30] MUILTFN has joined the channel [04:30] r04r has joined the channel [04:31] TooTallNate has joined the channel [04:31] zeade has joined the channel [04:32] davidban_ has joined the channel [04:32] yuwang has joined the channel [04:32] mandric has joined the channel [04:35] davidbanham has joined the channel [04:35] r04r has joined the channel [04:35] scott_gonzalez has joined the channel [04:36] scott_gonzalez_ has joined the channel [04:38] hannibal has joined the channel [04:39] JakeyChan has joined the channel [04:39] JakeyChan: hey, :) [04:39] Guest48248: can Node.js on windows run C++ addons? I have an addon that works on Linux, but fails to load on Windows [04:40] JakeyChan: can I get the current file name ? [04:40] deedubs: I'm attempting to extend should.js can anyone see why this would cause double failures? http://hastebin.com/Fv9RTWNLYl.js [04:40] r04r has joined the channel [04:40] benvie: yes it can if they're compiled for it [04:41] Guest48248: is there some switch to indicate what OS I am compiling for or something? [04:41] benvie: some modules rely on libraries that would need to be proted to windows [04:41] Guest48248: the source code is straight from the nodejs docs [04:41] benvie: some just need to be commpiled is VC++ and that's it [04:41] benvie: windows doesn't have a portable build system yet though [04:42] benvie: on the other hand binaries are nearly 100% portable [04:42] benvie: so they can be distributed once you make them [04:42] benvie: those two things are related... [04:42] joshkehn has left the channel [04:42] PyroPete1 has joined the channel [04:42] ecin_ has joined the channel [04:43] Guest48248: Sorry, I don't completely understand.. How do I compile a .node file with VC++? Is that something I would change in wscript? [04:44] benvie: no [04:44] benvie: on windows you need to compile vis Microsoft Vidual C++ (mostly) [04:44] benvie: which most people don't have [04:44] benvie: however once you are able to compile the binary, assuming you want to distribute it, then it will work on any Windowxs computer that can run node [04:44] Guest48248: am I trying to get a .dll or an .exe out of that? [04:45] benvie: a .node is a .dll named funny [04:45] benvie: on windows [04:45] Guest48248: ohh, ok. I'll try that out then :) [04:45] benvie: linked against node.lib which you get compiling node [04:45] ecin has joined the channel [04:45] Guest48248: ok, thanks [04:45] brianseeders has joined the channel [04:45] benvie: one more [04:45] Guest48248: also, what did you mean by a 'portable build system'? [04:46] r04r has joined the channel [04:46] benvie: https://github.com/springmeyer/hello-gyp [04:46] benvie: portable as in you could expect your users to be able to compile it [04:46] benvie: and especially regardless of their system [04:46] benvie: which is basically true for the old build system on not-windows [04:47] benvie: but compiling is generally not something you expect is doable on any given windows PC [04:47] benvie: since they don't necessarily have the stuff to even do it [04:47] benvie: probably don't [04:47] benvie: but the upshot is you can more easily distribute binaries that will work [04:48] ecin_ has joined the channel [04:49] jacobolus has joined the channel [04:49] benvie: and I was just commenting that those facts are related. Windows took the path of making an OS where you could compile once run anywhere, and that's related to why most people on Windows don't have the tools or experience to do it [04:49] benvie: when it's trivial and built into unix [04:49] Guest48248: hm, why does compiling anywhere make it hard to run anywhere? [04:49] benvie: and prebuilt binaries are far from trivial [04:49] benvie: less so now [04:50] benvie: but you don't expect to get much breadth for a binary in linux or even OS X. You can eun basically anything compiled today on Windows XP SP3 a decade old [04:50] harthur has joined the channel [04:51] benvie: not anything but nearly so [04:51] r04r has joined the channel [04:51] r04r has joined the channel [04:51] ericmuyser has joined the channel [04:51] idefine has joined the channel [04:51] Guest48248: why does being able to compile everywhere mean that it will be hard to run anywhere? [04:51] benvie: they're just related to one another [04:52] benvie: it was necessary to compile your own software since time began using unix [04:52] benvie: it became part of the way things were done [04:52] nrdb: can anyone tell me why when I compile with these commands http://paste.debian.net/147760/ ... everything compiles OK ... but when I run node (without installing, as a test) ... "node-v0.6.3# ./node" I get an "Illegal instruction" ? [04:53] benvie: it wasn't a problem to fix so much. Effort was put into making sure every system had the tools to compile things [04:53] benvie: and users expected and had to compile things [04:53] benvie: so those things become intertwined [04:53] MatthewS has joined the channel [04:53] benvie: on Windows the opposite evolved [04:53] Destos has joined the channel [04:53] kazupon has joined the channel [04:53] benvie: compiling is an alien thing, but you expect to compile once and barely worry about itunless you're making video games [04:54] benvie: a tiny subset of people on windows even have compilers [04:54] nrdb: ACTION and they cost big [04:54] Guest48248: yeah, only developers would have compilers - and that seems normal to me actually lol [04:54] benvie: so it'd be stupid of you to expect your users to compile things [04:54] benvie: people who have always used unix see the opposite [04:55] Kunda has joined the channel [04:55] benvie: every single computer has a whole set of tools and it's required [04:55] benvie: fortunately both ways works, but it makes things more complicated for the heroic few who try to do both sides [04:56] benvie: like our node creators =D [04:56] Guest48248: Does it make deploying Linux apps much harder? [04:56] Guest48248: lol [04:56] benvie: well as it is [04:56] nrdb: to many small variations in what each has installed. [04:56] benvie: it's not too difficult on either side [04:56] benvie: but making a single system that works for both [04:57] jerrysv has joined the channel [04:57] benvie: node provides a unified system so catoring to those completely opposite ways is complicated [04:57] jacobolu_ has joined the channel [04:58] Z3R0 has joined the channel [04:58] Z3R0: I'm sure you guys don't offer the support here, but is there a channel for nodejs-win ? [04:59] r04r has joined the channel [04:59] benvie: nono it's here [04:59] benvie: that's the cool thing about node [05:00] benvie: they've done such a great job in providing a top quality on both sides [05:00] benvie: on windows it's much more recent so the community and knowledge is lopsided [05:00] benvie: but there's a few of us [05:00] Z3R0: well... I'm using the latest -win on windows 7... everything about this installation worked fine on my work pc on windows xp... but for some reason using the "simplechat" tutorial files, I can't see to get my client to load localhost:8000/socket.io/socket.io.js // netstat shows it infi-looping until it times out [05:00] benvie: a lot more every day since it works as good on windows as it does in linux and mac [05:01] lulzilla has joined the channel [05:01] benvie: you're connecting from localhost? [05:01] Z3R0: basically just testing stuff and yes [05:01] benvie: and you have a new node version [05:01] benvie: 0.6.x [05:01] Z3R0: again, worked flawlessly on winxp [05:01] Z3R0: 0.6.3.1 I believe [05:01] Z3R0: same install, same files, same setup [05:01] indexzero has joined the channel [05:02] Z3R0: I thought originally it may be ipv6, so I disabled that, and modified my hosts file to make sure localhost resolves to 127.0.0.1 (ok done) still nothing [05:02] benvie: it's almost definitely going to be a configuration problem with either the browser or the socket.io server [05:02] benvie: like 99% chance [05:02] Z3R0: well the socket.io server is pre-installed as a namespace with nodejs-win [05:02] benvie: it's not [05:02] benvie: node comes with awesome tools [05:03] Z3R0: you sure? I didn't install anything but nodejs-win on my xp machine, and it loads just fine [05:03] benvie: it comes with http, https, dns, tls, etc. [05:03] benvie: but socket.io is a module [05:03] benvie: third party module for supporting various types of ways to connect to a browser [05:03] Z3R0: and resolves the localhost:8000/socket.io/socket.io.js // even though it doesn't exist in my /www/ [05:03] benvie: it uses that built in stuff and gives you extra on top [05:04] benvie: when you say you did it on windows xp [05:04] benvie: you were serving from windows xp and then connecting on that same computer to itself [05:04] Z3R0: XP: installed nodejs-win 0.6.3.1 -> program files / nodejs (ran server with server.js file from simplechat) [05:04] Z3R0: made client.html in /htdocs/ on my localhost apache server [05:04] Z3R0: browser -> localhost/client.html [05:04] Z3R0: worked fine [05:04] benvie: ok [05:05] Z3R0: Win7: Duplicated setup exactly [05:05] Z3R0: socket.io won't laod [05:05] benvie: so apache is a thing [05:05] benvie: that fucks things up and is complicated [05:05] Z3R0: hmmm I do have diff version of apache I believe [05:05] benvie: do this [05:05] benvie: simple test [05:05] benvie: double click on node [05:05] Z3R0: I love simple tests... [05:06] Z3R0: node.exe? [05:06] willwhite has joined the channel [05:06] Z3R0: ok done, opened (i believe this is the js interpreter window) [05:06] Z3R0: yep it is [05:07] tonymilne has joined the channel [05:07] benvie: sec [05:07] Z3R0: god if you solve this I will be so happy right now lol [05:08] benvie: require('http').createServer(function(x){console.log(x)}).listen(8000) [05:08] Z3R0: although, this weekend, I think I'll just setup a vm and get everything [05:08] benvie: then go to http://localhost:8000 in a browser [05:08] Z3R0: uh it listed a whole bunch of crap [05:09] benvie: it worked ;) [05:09] Z3R0: I guesS? [05:09] benvie: node is that exe [05:09] benvie: that's all node is [05:09] benvie: it has a lot of stuff built INTO it [05:09] benvie: like require('http') [05:09] Z3R0: yes, the server runs just fine [05:09] Z3R0: but my client fails to retrieve the socket.io.js from localhost:8000 [05:09] benvie: so socket.io [05:09] Z3R0: whoa [05:10] benvie: this is a module you get using npm [05:10] benvie: or github [05:10] benvie: you'd need node to find where it is, it's going to be external javasccript files [05:10] benvie: require('http') is inside node.exe but socket.io isn't [05:10] Z3R0: hmmm... [05:10] benvie: it's a bunch of javascript files that you usually get using npm [05:10] Z3R0: wonder why it worked on my other pc then [05:11] benvie: which now comes with node when you use the node installer [05:11] benvie: you would do like [05:11] benvie: npm install socket.io [05:11] Z3R0: but this is windows... there is no npm is there? [05:11] benvie: and it'll grab it off the internet for you and put it in your node_modules directory [05:11] benvie: as of the last week or so it now installs with node [05:12] benvie: http://nodejs.org/dist/v0.6.4/node-v0.6.4.msi [05:12] Z3R0: o.o [05:12] Z3R0: new node [05:12] benvie: that'll put node in program files, and npm will be in node/node_modules/npm [05:12] Z3R0: i'm stil really confused why it worked on xp [05:12] Z3R0: without me downloading or doing anything with socket.io [05:12] benvie: then you can open cmd there do stuff like npm search sockets [05:13] benvie: well [05:13] benvie: apache was doing stuff [05:13] benvie: probably more than you realized [05:13] benvie: socket.io is half server half client [05:13] benvie: it can do either half alone if you have some other thing doing the server part [05:14] benvie: and it supports transports that are web standards [05:14] Z3R0: ok, so installed 6.4 [05:14] benvie: ok yeah I don't know if there's a convenient way to pull up npm otherwise but [05:14] benvie: if you run [05:15] benvie: cmd and then cd c:/Program Files(x86)/node/npm [05:15] benvie: you can run npm [05:15] benvie: I haven't actually installed it that way so I don't know if it sets up so you can run npm anywhere [05:15] benvie: but it might just work straight from run [05:15] Z3R0: well I'm in the directory of /nodejs/ [05:15] Z3R0: I just run it from there, because it's easier lol [05:15] benvie: yeah that works [05:15] Z3R0: npm alone, shows a bunch of commands [05:16] benvie: no node_modules folder in there? Is this a new install? [05:16] benvie: it should end up in program files [05:16] Z3R0: well I overwrote the other one [05:16] Z3R0: so there's a bunch there atm [05:16] benvie: oh npm worked [05:16] benvie: cool [05:16] benvie: npm install socket.io [05:16] slifty has joined the channel [05:16] Z3R0: let me make it a fresh install I have a feeling something I had before is conflicting [05:17] benvie: and it'll then be available from node by doing var socketio = require('socket.io') in your js [05:17] benvie: it'll takes like 30 seconds to install [05:19] catshirt has joined the channel [05:19] Z3R0: how do I know if it's installing? [05:19] Z3R0: I did "npm install socket.io" and it just has a blinking cursor [05:19] benvie: yeah it's working then [05:19] fastest963: its probably downloading it [05:19] benvie: needs better feedback [05:19] Z3R0: ya verbose mode ;) [05:19] benvie: it'll screem if it's broken [05:19] benvie: npm knows how to do that [05:20] Z3R0: either my net sucks or this takes a while lol [05:21] benvie: socket.io is a very hefty one [05:21] benvie: the way node modules are [05:21] aaditmshah has joined the channel [05:21] langworthy has joined the channel [05:21] benvie: they mostly each implement one thing very well and then require other modules [05:22] benvie: socket.io does a lot, but it does that by having a buttload of other dependencies [05:22] benvie: if you go into its folder you'll find node_mofules folder in it [05:22] benvie: and probably all told like 20 more modules [05:22] Z3R0: yes [05:22] benvie: so it's getting all of those [05:22] benvie: but they'll also be cached [05:22] Z3R0: oh ok [05:22] benvie: and there's a set that are used in a ton of stuff [05:22] Z3R0: so it IS doing something [05:22] aaditmshah: @benvie - Hey, I have some doubts about root, GLOBAL, and global. [05:23] benvie: boiletplate type modules that you'll now have cached [05:23] benvie: which part? [05:23] lorfds has joined the channel [05:23] aaditmshah: First, is root and GLOBAL always the same? [05:23] ericmuyser has joined the channel [05:23] benvie: those come into play when vm is used, which happens when the repl isn't run globally, when you're running things in the vm, or when node is configured to run modules in their own context [05:24] benvie: sec lemme pull up the code for it [05:24] benvie: i don't know of a place that root is reassigned. It can be not availablr to you, or you could be given a fake one if someone decides to do that with vm [05:24] benvie: same for global [05:24] benvie: GLOBAL [05:24] benvie: but it's not done by anything in node core [05:24] lulzilla: is socket,io limited only to port 80? [05:25] lulzilla: or can it connect to any port? [05:25] benvie: shouldn't be limited [05:25] davidban_ has joined the channel [05:25] lulzilla: anyone confirmation? [05:25] benvie: depends on the transport [05:25] benvie: websockets have no limitation in their protocol [05:25] lulzilla: ok [05:25] Z3R0: I was about to say, I used 8000 lol [05:25] aaditmshah: Alright, so the only foolproof way to get to the global object is to recursively use the Object.getPrototypeOf method on this? [05:26] benvie: that doesn't even work [05:26] benvie: example, if you run the repl not globally [05:26] aaditmshah: Ah, right... that only works in RingoJS. [05:26] nrdb: can anyone tell me why when I compile with these commands http://paste.debian.net/147760/ ... everything compiles OK ... but when I run node (without installing, as a test) ... "node-v0.6.3# ./node" I get an "Illegal instruction" ? [05:26] benvie: which is like vm.runInNewContext I think [05:27] benvie: any Object reference you get is going to be limited [05:27] ericmuyser has joined the channel [05:27] aaditmshah: Hmm... would you suggest me how to define the global object in node.js then? [05:27] benvie: in that it won't be the same Object.prototoype that other objects you see in your context inherit from [05:27] aaditmshah: I'm really confused. [05:27] benvie: like I had issues specifically with that [05:27] fastest963: wait, I missed what you need to put in the global scope [05:27] benvie: I couldn't add things to prototypes of things that were provided in the context [05:27] aaditmshah: Oh, alright. [05:28] benvie: like this was stuff for my own utility [05:28] benvie: so adding things to native prototypes is a no brainer [05:28] benvie: I was running the REPL using repl-utils or edit or some helper module [05:28] aaditmshah: So, that's not entirely possible in node? [05:28] fastest963: nrdb: what happens when you run make test? [05:28] benvie: which was running it as non global, and then adding the global context to the repl context [05:28] benvie: so I could see the global context [05:29] benvie: but there was an invisible barrier in actually editing it [05:29] mike5w3c_ has joined the channel [05:29] benvie: I could do tab completion on Object. [05:29] benvie: or root.Object. [05:29] benvie: but root.Object === undefined [05:29] Z3R0: where woudl it create a socket.io folder? [05:30] aaditmshah: Why does that happen? [05:30] Z3R0: it just hangs there, don't see anything being modified or added to file structure during this time [05:30] tilgovi has joined the channel [05:30] tilgovi has joined the channel [05:30] benvie: node/node_modules I'd expect. And if it failed, go to C:/Users/YourName/.npm-cache [05:30] benvie: or whatever it's called [05:30] caffine has joined the channel [05:30] nrdb: fastest963, when I run "make test" every test fails with a "--- CRASHED ---" [05:31] benvie: it's because node's current implementation of vm and controlling contexts/sandbox is a hack [05:31] Z3R0: users/me/.npm* doesn't exist :( [05:31] nrdb: fastest963, with a "[00:12|% 100|+ 0|- 300]: Done" at the end [05:31] benvie: oh no dot [05:31] benvie: npm-cache [05:31] aaditmshah: I don't guess Ryan is going to fix that anytime soon? [05:32] benvie: it'll be fixed for 0.8 [05:32] benvie: v8 isolates are the thing that do this correctly [05:32] neilk_ has joined the channel [05:32] NetRoY has joined the channel [05:32] Z3R0: same lol [05:32] benvie: do you have like an old folder maybe it'd go to? [05:32] Z3R0: there's a appdata/roaming/npm folder [05:32] aaditmshah: That's good. I hope root and global are documented properly. It really bugs me. [05:32] benvie: if you had like NODE_PATH in your env or somethig [05:32] Z3R0: but empty as well [05:32] Z3R0: hmmm.... [05:32] benvie: yeah isolates are great [05:32] NetRoY has joined the channel [05:33] fastest963: sorry nrdb no idea :/ [05:33] benvie: and v8 went crazy with them in 3.8 [05:33] benvie: they use isolated for goddamn everything and they work well [05:33] Z3R0: only 1 node_path [05:33] Z3R0: well 2 one each temp, and tmp [05:33] Z3R0: both pointing to same /nodejs/node_modules [05:33] benvie: there's some crazy things coming once the new v8 gets pulled in and they do their magic for 0.8 [05:33] aaditmshah: Anyway, I gtg. So thanks for your time. [05:33] benvie: np night [05:34] benvie: anything in there? [05:34] Z3R0: just npm [05:34] benvie: check [05:34] benvie: if there's a npm/node_modules [05:34] nrdb: fastest963, Do you know that the extra options is correct? [05:34] benvie: well there is [05:34] benvie: but check in it [05:34] Z3R0: command: npm install socket.io ? right [05:34] benvie: it might have ended up under npm [05:34] satyr has joined the channel [05:34] chjj has joined the channel [05:34] benvie: npm is itself a module [05:34] Z3R0: nothing there either, it just hangs [05:34] benvie: and it has a node_modules folder which it uses [05:35] benvie: if npm never returns [05:35] benvie: just sits there dead [05:35] benvie: then either your computer is busted or node is [05:35] benvie: er npm [05:35] Z3R0: hmm... [05:35] benvie: try doing a less big module [05:35] benvie: install like [05:35] benvie: npm install color [05:36] benvie: npm help, npm search toast [05:36] benvie: npm ls [05:36] benvie: should list stuff if it exists [05:36] NetSkay has joined the channel [05:37] Z3R0: buliding index for first time [05:37] Z3R0: currently asked to be patient [05:38] benvie: yeah there's like 4000 modules [05:38] fastest963: nrdb: https://github.com/joyent/node/issues/1566 can you find anything in there? [05:39] benvie: npm still isn't 100% yet [05:40] benvie: getting there [05:40] Z3R0: is there another way to get it ? [05:40] benvie: no I mean, the windows version [05:40] benvie: is newish and has been heavily worked on [05:40] Z3R0: I know, I mean is there another way to download socket.io (files and dependencies)? [05:40] benvie: so it's finally just getting to be reliable enough [05:40] benvie: yeah just you'll have to manually hunt them down one by one [05:41] benvie: I haven't used another manager so I don't know what the state of windows ones is like [05:41] benvie: most modules are on github [05:41] Z3R0: hmmm the -win i must've downloaded on my xp must've had it pre-compiled [05:41] benvie: and they all have module.json that lists their exact dependencies [05:41] Z3R0: because i didn't have to do this at all, and it worked right out of the box [05:41] benvie: so just a matter of doing a little bit of github searching [05:42] benvie: I know they exist but can't say much [05:42] benvie: search npm for package manager =D [05:42] Z3R0: ERR! Couldn't read dependencies. [05:42] Z3R0: ERR! Error: ENOENT, no such file or directory 'c:\Program Files\NodeJS\package.json' [05:43] guest___ has joined the channel [05:43] benvie: er I mean like [05:43] benvie: https://github.com/LearnBoost/socket.io [05:43] benvie: in the base of that is package.json [05:43] benvie: and there will be one in every node module also [05:44] benvie: https://github.com/LearnBoost/socket.io/blob/master/package.json [05:44] nrdb: fastest963, this was linked to from there http://stackoverflow.com/questions/6788768/cannot-build-node-on-sheevaplug-armv5t-with-debian-squeeze and in that it said someone solved a very similar problem by using version 0.4.10.... do you think I should go back to an older version? [05:44] duffman: anyone mind explaining what any of this means to someone new to node.js ? http://pastebin.com/7eXGFWe8 [05:44] broofa has joined the channel [05:45] benvie: what version of node is that duffman? [05:45] duffman: 0.6.3 [05:46] zivester has joined the channel [05:46] benvie: was the the secret key in quotes? [05:47] benvie: yuo can use a hex literal like that [05:47] duffman: i haven't edited the original server.js [05:47] benvie: any context for this? [05:48] duffman: it's identical to : https://github.com/atmos/camo/blob/master/server.js [05:48] Z3R0: oooo [05:48] Z3R0: I found it [05:48] mikeal has joined the channel [05:48] Z3R0: installed under my htdocs/nodejs didn't realize that was still there [05:48] Z3R0: wasn't listed in any of my PATH or NODE_PATh though [05:48] benvie: yeah I figured it was something like that [05:49] nrdb: fastest963, the 'latest' has changed now to version 0.6.4 today [05:49] Z3R0: is there anyway to clear all the path's and node_path quickly ? [05:49] Z3R0: I have a feeling all these multiple installations are screwing with me [05:50] benvie: that code's probably doing something that's not the correct syntax anymore [05:50] duffman: benvie ok :( [05:50] benvie: the whole io/net thing was redone between then and now [05:50] davidascher has joined the channel [05:50] crcn has joined the channel [05:50] benvie: yeah [05:51] benvie: it's trying to use a file descriptor when it writes to disk [05:51] benvie: which is no longer allowed [05:51] benvie: or wait maybe no [05:51] ryanfitz has joined the channel [05:51] benvie: it might just be [05:51] benvie: it's using an octal literal, 0600 [05:51] benvie: change that 384 [05:52] duffman: same error. [05:52] benvie: oh yeah and it is trying to use a file descriptor. So it's just that whole chunk at the end [05:52] roblevin has joined the channel [05:52] innociv_ has joined the channel [05:52] benvie: Fs.open("tmp/camo.pid", "w", 0600, function(err, fd) { [05:52] benvie: return Fs.writeSync(fd, process.pid); [05:52] benvie: }); [05:52] benvie: server.listen(port); [05:53] dshaw_ has joined the channel [05:53] benvie: no the last line,get rid of the three before it [05:53] duffman: ok [05:53] benvie: find some other example for writing to disk [05:53] benvie: that part's broke [05:53] duffman: now it's running :) [05:53] k1ttty has joined the channel [05:54] benvie: in the process of normalizing between *nix and windows, file descriptor support was dropped. Buffer provide a better abstraction usually anyway [05:54] benvie: buffers and streams [05:55] zilch_ has joined the channel [05:55] duffman: thank you for your patience and help, i would have not figured this one out any time soon. [05:55] duffman: i was starting to look into missing modules and what not. [05:55] duffman: you saved me :) [05:56] benvie: yeah you would never figure that one out because it's so small and obscure and everything else was right [05:57] nrdb: fastest963, trying again with the latest version 0.6.4 if that doesn't work I will try earlier version and see if it that works. [05:57] benvie: node is awesome but it has this funny hidden problem [05:57] benvie: there's a lot of writing out there that is just right enough to look right [05:57] benvie: and just wrong enough to be completely broken [05:57] duffman: case in point: this. [05:58] duffman: Especially with a commit about 4 months ago i thought it would be recent enough. [05:58] benvie: yeah. 0.6 was a huge huge change. This shouldn't be a problem going forward [05:58] benvie: but bringing full support to windows from only supporrting linux before makes it understandable [05:58] T1234 has joined the channel [05:58] benvie: yeah no [05:58] duffman: I really like how lightweight node is, atleast this is what it looks like to a novice. [05:58] benvie: thing as little as a month or two are likely wrong [05:58] zilch_ has joined the channel [05:58] jxie has joined the channel [05:58] duffman: windows :( [05:59] benvie: or 90& right, and 10% wrong enough to be broken [05:59] benvie: http://nodejs.org/docs/v0.6.4/api [05:59] benvie: at this point if it's not like a new article, the node docs are the best bet [05:59] benvie: for a while [05:59] duffman: do you contribute to node.js? [06:00] duffman: besides being awesome in the irc channel that is :P [06:00] benvie: starting to now. I hadn't until recently, just doing my own things [06:00] benvie: but the more I do the more I end up finding things I need node to have fixed [06:00] benvie: or get support for [06:00] CiRlE has joined the channel [06:00] duffman: so you end up fixing them. [06:00] benvie: and have learned enough about it pouring over its source a thousand times trying to figure out why my stuff is broken [06:01] benvie: so that I know it like my own project, so if I find something I fix it [06:01] benvie: https://github.com/Benvie/node [06:01] duffman: that's awesome. [06:01] benvie: like I have this version i compiled with the new V8 [06:02] benvie: because I'm doing a lot of stuff with the ES6 Harmony things and also v8's isolates [06:02] benvie: and found various bugs along the way to getting that going correctly [06:03] nrdb: what does the snapshot feature do? [06:03] duffman: he last few lines besides v8 went straight over my head. [06:03] benvie: it's a cache of all the stuff in the javascript context [06:03] benvie: like all the functions, Object, Array, process, etc. [06:04] benvie: instead of building that whole that whole structure up [06:04] benvie: reparsing all the functions, etc. [06:04] benvie: it does it once, then snapshots the memory [06:05] benvie: it's a bigger deal in browsers when you h ave like 300 DOM prototypes to load on every page [06:05] zilch_ has joined the channel [06:05] Z3R0: ok... that's it... [06:05] Z3R0: Im installing a gm [06:05] Z3R0: vm* [06:05] Z3R0: can this work with centos? already have the iso so it would be easier [06:06] benvie: yeah [06:06] benvie: it works on iphone and android ;) [06:06] Z3R0: ok, so i'll read up on how ot do this via linux lol [06:07] Z3R0: this is too crazy for me, and I'll just test alot at work [06:07] Z3R0: don't know what's up with this machine [06:07] benvie: yeah I mean [06:07] Z3R0: apparently we were using a forked version (which included socket.io) [06:07] benvie: it used to be a pain but now it runs really smoothly on windows, node and npm [06:07] Z3R0: which is why my original worked just fine [06:07] Z3R0: but for some reason it's not now, and I can't get socket.io to work with a regular installation [06:07] benvie: well [06:07] benvie: if you do [06:08] benvie: run "env" [06:08] benvie: delete NODE_PATH [06:08] Z3R0: did already [06:08] benvie: ah [06:08] Z3R0: killed NODE_PATH killed all paths in path that pointed to any node [06:08] Z3R0: reinstalled [06:08] Z3R0: still nothing [06:08] benvie: there's also [06:08] benvie: in your user folder or somewhere from before [06:08] benvie: .npmrc [06:09] dr0id has joined the channel [06:09] Z3R0: eh, eventually we'll be running it on a linux box anyway [06:09] benvie: config file it may be getting bad old info from [06:09] Z3R0: so I may as well test it there [06:09] _dc has joined the channel [06:09] benvie: basically that computer had too much old cruft leftover from when it was poorly configured [06:09] Z3R0: yea [06:10] Z3R0: I'm planning on reverting it back to default soon anyway slol [06:10] Z3R0: probably will do that tomorrow @ work [06:10] benvie: makes it hard to learn [06:10] suzuken has joined the channel [06:10] seebees has left the channel [06:11] maqr has joined the channel [06:12] zilch_ has joined the channel [06:16] innociv has joined the channel [06:16] arvindravi has joined the channel [06:17] jrogers has joined the channel [06:18] arvindravi: hi all,I'm a newbie to node and express,I just got express installed on my fedora box,when i tried to start the default app.js,i get this error http://pastebin.com/ayiE1kZ6 ,am i doing something wrong? [06:18] BillyBreen has joined the channel [06:21] ecin has joined the channel [06:24] Margle has joined the channel [06:25] ecin has joined the channel [06:26] ecin_ has joined the channel [06:26] willwhite has joined the channel [06:27] twolfson: arvindravi: you are missing dependencies [06:27] twolfson: run npm install -d [06:28] tonymilne has left the channel [06:28] leah has joined the channel [06:29] mikeric has joined the channel [06:29] SamuraiJack has joined the channel [06:30] skm has joined the channel [06:33] fangel has joined the channel [06:33] arvindravi: twolfson: thanks! [06:34] smgt has joined the channel [06:36] butu5 has joined the channel [06:36] objectiveous has joined the channel [06:37] devaholic: sup butu5 [06:37] butu5: hello devaholic [06:38] k1ttty has joined the channel [06:38] EhevuTov has joined the channel [06:39] zivester has joined the channel [06:39] dgathright has joined the channel [06:39] pitlimit has joined the channel [06:39] pitlimit: Is there a way for me to get the time in microseconds? [06:39] jamescarr has joined the channel [06:41] whynobuff has joined the channel [06:41] m4rcs has joined the channel [06:42] whynobuff: I am using child_process.exec and getting: maxBuffer exceeded. [06:42] whynobuff: How do I increase the buffer [06:42] otakutomo has joined the channel [06:45] jimt_ has joined the channel [06:48] ryan_stevens has joined the channel [06:48] whynobuff: How do I get around EMFILE, too many open files [06:48] ryan_stevens: you can increase the ulimit [06:48] ryan_stevens: which is a system level setting [06:49] pitlimit: ryan_stevens, do you know how I can get the date with greater precision? [06:50] ryan_stevens: uhhhh…. eeerrr… greater than thousanth of a second [06:50] ryan_stevens: do this for your ulimit if your on a mac btw [06:50] ryan_stevens: ulimit -n 2048 [06:50] otakutomo has joined the channel [06:50] JumpMast3r has joined the channel [06:51] ryan_stevens: whynobuff ^ [06:52] whynobuff: so in terminal I do ulimit and see unlimited [06:52] whynobuff: This is osX [06:53] ryan_stevens: whynobuff: type "ulimit -n 2048" [06:53] ryan_stevens: which should set it higher [06:53] ryan_stevens: not sure why it says unlimited without the flags [06:55] purr has joined the channel [06:56] whynobuff: I did ulimit -n 10000 [06:56] whynobuff: still getting EMFILE, too many open files [06:56] k1ttty has joined the channel [06:57] whynobuff: Basically Im loop through 13,000 files and doing var stream = fs.ReadStream('); [06:57] zivester has joined the channel [06:57] whynobuff: Do I have to explicitly call stream.close or will the stream close automatically? [07:00] izepstan3 has joined the channel [07:00] zeade has joined the channel [07:00] zilch_ has joined the channel [07:02] lxsameer has joined the channel [07:02] tyler-vortex has joined the channel [07:02] martin_sunset has joined the channel [07:03] tyler-vortex: hellow :) [07:03] tyler-vortex: please [07:03] tyler-vortex: How can I implement a counter to the auction nodejs? [07:05] mikeal has joined the channel [07:07] tyler-vortex has left the channel [07:08] Hosh has joined the channel [07:08] kazupon has joined the channel [07:10] wilmoore has joined the channel [07:12] eeemsi: hi [07:13] eeemsi: will the build instructions be updated also? [07:13] clu3 has joined the channel [07:13] braoru has joined the channel [07:14] eeemsi: i think that the npm part should be updated on it [07:16] jxie_ has joined the channel [07:16] truedat101 has joined the channel [07:17] neshaug has joined the channel [07:17] jp232 has joined the channel [07:18] stonebranch has joined the channel [07:19] p1d has joined the channel [07:21] jacobolus has joined the channel [07:21] zivester has joined the channel [07:22] edwardw has joined the channel [07:23] Net_RoY has joined the channel [07:24] indexzero has joined the channel [07:27] acemtp has joined the channel [07:28] harthur has joined the channel [07:29] rwasielewski has joined the channel [07:29] kazupon has joined the channel [07:29] zilch_ has joined the channel [07:34] ph^ has joined the channel [07:34] zennny has joined the channel [07:35] HT has joined the channel [07:36] kickingvegas has left the channel [07:37] MerlinDMC has joined the channel [07:38] mikeal has joined the channel [07:43] sh1mmer has joined the channel [07:44] boltR has joined the channel [07:44] beseku has joined the channel [07:45] nso95 has joined the channel [07:45] Morkel has joined the channel [07:45] nso95 has left the channel [07:45] manecocomph has joined the channel [07:45] neshaug has joined the channel [07:46] simenbrekken has joined the channel [07:49] hipsters_ has joined the channel [07:51] robotmay has joined the channel [07:52] groom has joined the channel [07:56] bosphorus has joined the channel [07:56] satyr has joined the channel [07:56] petrjanda has joined the channel [07:58] gut4 has joined the channel [07:58] cosmincx has joined the channel [08:00] mansoor-s has joined the channel [08:00] anaio has joined the channel [08:01] Net_RoY has joined the channel [08:01] fangel has joined the channel [08:02] [1]alnewkirk has joined the channel [08:03] DennisRasmussen has joined the channel [08:04] rendar has joined the channel [08:05] nso95 has joined the channel [08:05] jomoho has joined the channel [08:07] manecocomph: hi [08:09] devrim has joined the channel [08:11] sindresorhus has joined the channel [08:11] k1ttty has joined the channel [08:11] garrensmith has joined the channel [08:12] devrim1 has joined the channel [08:12] zilch_ has joined the channel [08:13] devrim2 has joined the channel [08:16] ecin has joined the channel [08:18] maletor_ has joined the channel [08:19] emattias has joined the channel [08:22] mikeal has joined the channel [08:23] `3rdEden has joined the channel [08:23] cjroebuck has joined the channel [08:23] ShinyDarkness has joined the channel [08:25] raphdg has joined the channel [08:26] beevits has joined the channel [08:28] socketio\test\98 has joined the channel [08:32] aaronmcadam has joined the channel [08:33] robhawkes has joined the channel [08:34] sheng_ has joined the channel [08:35] seth-- has joined the channel [08:35] uchuff has joined the channel [08:36] saurabh has joined the channel [08:37] eddyb has left the channel [08:40] ecin has joined the channel [08:41] gut4 has joined the channel [08:41] arcanis has joined the channel [08:41] ChaoWang has joined the channel [08:43] Xano has joined the channel [08:45] rurufufuss has joined the channel [08:46] devaholic has joined the channel [08:46] cache_za has joined the channel [08:48] jbpros has joined the channel [08:48] Druid_ has joined the channel [08:49] beseku has joined the channel [08:49] shedinja_ has joined the channel [08:50] kuebk has joined the channel [08:51] salva has joined the channel [08:51] igl: http://gs.statcounter.com/?PHPSESSID=2onctp7f76g1ssmigaggeg19i6 =o [08:51] igl: chrome passing FF [08:53] gut4 has joined the channel [08:53] wereHamster: and IE increasing again [08:55] kuebk1 has joined the channel [08:57] djcoin has joined the channel [08:58] ehedenst has joined the channel [09:01] cjroebuc_ has joined the channel [09:01] dgathright has joined the channel [09:01] stonebranch has joined the channel [09:02] loob2 has joined the channel [09:03] shapeshed has joined the channel [09:03] hipsters_ has joined the channel [09:06] satyr has joined the channel [09:07] nils_r has joined the channel [09:09] robi42 has joined the channel [09:10] josh-k has joined the channel [09:12] eldios has joined the channel [09:14] mraleph has joined the channel [09:14] AdTaylor has joined the channel [09:14] benvie: IE9 made PCWorld’s 100 best products of 2011, Internet Explorer 9 comes in at #19, the only major browser to make the list this go around. [09:14] benvie: lol [09:15] benvie: I wonder how much that costs [09:16] garrensmith: benvie: lol thats classic [09:16] mikl has joined the channel [09:16] mange has joined the channel [09:17] aliem has joined the channel [09:18] _baton_ has joined the channel [09:18] [AD]Turbo has joined the channel [09:18] [AD]Turbo: hi there [09:19] lzskiss has joined the channel [09:20] mpavel has joined the channel [09:20] lulzilla has joined the channel [09:20] lzskiss: yoű [09:20] mpavel has left the channel [09:21] booyaa: do you guys benchmark as part of your unit tests? [09:21] SubStack: booyaa: nope [09:22] booyaa: just wondering what the value is, given we have different hardware/configs. [09:23] matti has joined the channel [09:23] matti has joined the channel [09:23] mansoor-s: Anyone know of a biased random number generator written in JS? I'm looking for something that is biased towards smaller numbers rather than bigger in a given interval [09:23] bergie has joined the channel [09:24] booyaa: mansoor-s: what's it for? [09:24] JakeyChan has joined the channel [09:24] booyaa: if there's a bias, it's not really random [09:24] SubStack: mansoor-s: you could just take the square of a random number in [0,1] [09:24] SubStack: or some other power >1 [09:25] SubStack: then re-normalize back to the range you want [09:25] ccapndave has joined the channel [09:25] SubStack: booyaa: biased random weighting is a pretty common thing [09:25] zilch_ has joined the channel [09:25] booyaa: crikey :) yeah don't listen to me then mansoor-s ;) [09:25] Wizek has joined the channel [09:25] SubStack: I have a module for doing discrete random weighting https://github.com/substack/node-deck [09:26] mansoor-s: thanks SubStack ! thanks booyaa for taking a shot :D [09:26] adambeynon has joined the channel [09:26] booyaa: good thing i'm signed up for this crypto class [09:26] mansoor-s: SubStack, you have a library for everything :S [09:26] booyaa: arf [09:27] MrBenn has joined the channel [09:30] mikedeboer has joined the channel [09:30] AdTaylor: is there an alternative to calypso that works on current (or even 0.5.x) versions on node? [09:31] Glenjamin: booyaa: i recently notice that each new test was adding about 10ms, then profiled it to find out why [09:31] markwubben has joined the channel [09:31] Glenjamin: but i wouldn't instrument timings on every test run [09:32] jimt has joined the channel [09:32] booyaa: Glenjamin: how did you know it was 10ms? do you log previous timings? i appreciate if you're constantly running tests you'll spot it, just wondering if that wasn't the case. [09:32] zilch_ has joined the channel [09:33] Glenjamin: i was constantly running [09:33] aesptux has joined the channel [09:33] Glenjamin: the suite went from 0.8 to 1.2 seconds with a few new tests [09:33] amigojapan has joined the channel [09:35] JanLi has joined the channel [09:36] ecin has joined the channel [09:37] adrianmg has joined the channel [09:37] adrianmg has left the channel [09:38] booyaa: Glenjamin: by profiling was that using the profile switch in node or some equally voodoo like tool/ [09:39] mehtryx has joined the channel [09:40] Glenjamin: node-inspector + v8-profiler.startProfile/stopProfile [09:43] booyaa: cool, cheers for that [09:43] zilch_ has joined the channel [09:44] hellp has joined the channel [09:45] cjroebuck has joined the channel [09:46] ShinyDarkness has joined the channel [09:47] JakeyChan_ has joined the channel [09:48] jomoho has joined the channel [09:48] JakeyChan_ has joined the channel [09:56] TomY_ has joined the channel [09:56] zilch_ has joined the channel [09:58] Emmanuel` has joined the channel [10:00] fly-away has joined the channel [10:00] jimmysparkle has joined the channel [10:00] vguerra has joined the channel [10:01] CodeRarity has joined the channel [10:01] jimmysparkle has joined the channel [10:01] Wizek has joined the channel [10:02] kuebk has joined the channel [10:02] robi42 has joined the channel [10:03] raphdg has joined the channel [10:05] ppcano has joined the channel [10:06] rchavik has joined the channel [10:06] cgfuh has joined the channel [10:06] pyparadigm has joined the channel [10:07] piscisaureus_ has joined the channel [10:08] bradleyg has joined the channel [10:11] zilch_ has joined the channel [10:14] MrNibbles has joined the channel [10:14] zilch_ has joined the channel [10:17] kuebk1 has joined the channel [10:19] Cromulent has joined the channel [10:23] TheNumb has joined the channel [10:23] eldios: would you advise to read "Javascript:the good parts" from Crockford or "Professional-JavaScript-Developers-Wrox-Programmer" to an intermediate willing dev? [10:24] eldios: looks like the Wrox's one is more extensive [10:24] zilch_ has joined the channel [10:25] huskyr has joined the channel [10:27] Wizek has joined the channel [10:27] mraleph has joined the channel [10:28] booyaa: eldios: i like good parts, never got in to wrox books [10:28] booyaa: but don't take good parts as gospel. it is a good start though [10:28] thekirbylover has joined the channel [10:28] booyaa: it's a bit like clean coder, they just set you up to be a better programmer in the long run. [10:31] eldios: mmm I already listened to the talk like 4 times [10:31] thekirbylover: Hi everyone, I'm making a HTTPS server in node that responds to a non-standard request method. But I can't find anything in the docs about choosing which method to listen for. Does anyone know how to do this? [10:32] eldios: its fun and pleasing still it's not making my JS much better than previously... like teaching me new patterns,extensive best practices... so I suppose I should go on now [10:32] tauren has joined the channel [10:32] hackband has joined the channel [10:32] maushu|work has joined the channel [10:32] ShinyDarkness: thekirbylover: In the callback you pass to createServer, check request.method. [10:33] whitman has joined the channel [10:34] thekirbylover: ShinyDarkness: I'll try that. Thanks [10:35] ShinyDarkness: thekirbylover: You are welcome. // Where request is the callback's first parameter, I forgot to say. [10:36] jimt_ has joined the channel [10:36] markwubben has joined the channel [10:38] booyaa: eldios: so why not read about patterns for js? there's an oreilly book for that [10:39] ccapndave has joined the channel [10:39] zilch_ has joined the channel [10:40] thekirbylover: ShinyDarkness: I tried curl -k https://localhost -X ACE and it says empty reply, even though my script sends data back. Any more suggestions? [10:40] tih-ra has joined the channel [10:41] ShinyDarkness: thekirbylover: I honestly do not know. I am a newbie myself. [10:41] liar has joined the channel [10:41] thekirbylover: ShinyDarkness: Ok, I'll keep looking [10:44] stagas has joined the channel [10:45] MrNibbles has joined the channel [10:46] ccapndave: Wohoo! Upgrade to 0.6.4 for Windows and now npm is installing all the things I had to use a VM for before :) [10:46] ccapndave: Good work node people [10:47] Net_RoY has joined the channel [10:48] bogomips2_ has joined the channel [10:49] ShinyDarkness: Do I have to uninstall 0.6.3 before installing 0.6.4? [10:52] izepstan3 has joined the channel [10:59] stagas has joined the channel [11:02] Lingerance: No. [11:03] zilch_ has joined the channel [11:04] broofa has joined the channel [11:06] huskyr has joined the channel [11:06] Renegade001 has joined the channel [11:06] jbpros has joined the channel [11:10] ciju has joined the channel [11:14] Drakonite has joined the channel [11:14] zilch_ has joined the channel [11:15] burningdog has joined the channel [11:16] cmr has joined the channel [11:17] cmr: Can net.Socket emit 'data' events while still handling previous 'data' events? [11:18] edsu has left the channel [11:18] SamuraiJack has joined the channel [11:18] martin_sunset_ has joined the channel [11:21] Cromulent has joined the channel [11:22] augustl: cmr: no, node is single threaded [11:23] augustl: cmr: or, that depends on your definition of "handling" ;) [11:23] zilch_ has joined the channel [11:23] fly-away has joined the channel [11:24] izepstan4 has joined the channel [11:24] augustl: cmr: for example on("data", function () { setTimeout(function () {}, 1);}); [11:24] augustl: cmr: in that case you don't know for sure which of the functions - the data handler or the timeout handler - that will be called first, that's up to the event loop [11:25] pandeiro has joined the channel [11:26] cmr: augustl: If I understand you correctly, as long as the handler is synchronous I don't have to worry about it? [11:26] augustl: cmr: exactly [11:26] cmr: Wonderful [11:26] cmr: augustl: thank you [11:27] EuroNerd has joined the channel [11:29] mike5w3c_ has joined the channel [11:29] DennisRasmussen has joined the channel [11:30] adrianF has joined the channel [11:31] zilch_ has joined the channel [11:32] sarapretty has joined the channel [11:33] liar has joined the channel [11:34] cognominal___ has joined the channel [11:35] D3f0 has joined the channel [11:35] fermion has joined the channel [11:37] nicholasf has joined the channel [11:37] tvw has joined the channel [11:40] huskyr has joined the channel [11:41] cognominal_ has joined the channel [11:42] phiggins has joined the channel [11:43] zilch_ has joined the channel [11:43] robotmay has joined the channel [11:44] vervain has joined the channel [11:46] MUILTFN has joined the channel [11:47] satyr has joined the channel [11:48] jgallen24 has joined the channel [11:50] Cromulent has joined the channel [11:50] idl3 has joined the channel [11:50] zilch_ has joined the channel [11:53] lulzilla has joined the channel [11:55] adamstantonvan has joined the channel [11:56] mange has joined the channel [11:59] stagas has joined the channel [11:59] squeeks has joined the channel [11:59] michaelhartau has joined the channel [11:59] Carter_ has joined the channel [12:02] franky_ has joined the channel [12:03] sh0ewatw3e has joined the channel [12:04] spolu has joined the channel [12:05] jbpros has joined the channel [12:06] matejv has joined the channel [12:06] squeeks: Is there some sane cross platform way to find the js libs bootstrapped at runtime like buffer.js etc? [12:07] augustl: squeeks: detect whether you're in node or browser, you mean? [12:07] squeeks: No. [12:07] eldios: booyaa, I finally decided to buy JS patterns, test-driven JS development and Crockford's goodParts [12:07] eldios: ^_^ [12:07] tdegrunt has joined the channel [12:07] augustl: eldios: it pleases me that the TDD book is on your list [12:08] eldios: augustl, did you write that? [12:08] squeeks: from my understanding, node bootstraps a tonne of JS at runtime to provide the buffers, http, etc etc. I want to, cross platform find the location of these files [12:08] augustl: squeeks: not sure what you mean by finding js libs bootstrapped at runtime [12:08] augustl: eldios: my partner in crime over at busterjs.org did ;) [12:08] eldios: kewl [12:08] augustl: squeeks: it's compiled into node afaik, they aren't separate files [12:08] squeeks: ARGH [12:08] augustl: squeeks: what exactly are you trying to do? [12:08] squeeks: get to their source. [12:09] augustl: squeeks: in order to do what? [12:09] eldios: that was one of the must-buy since I think I'm really missing something on the test-driven development [12:09] squeeks: augustl: building a deep inspecting profiler. [12:09] augustl: eldios: automated testing at least, if not TDD [12:09] eldios: I actually read good reviews of that book that's why I chose to buy it [12:09] eldios: nono.. I'm lost even in manual TDD :P [12:10] eldios: I'm still in that phase in which you develop by feelings :P [12:10] squeeks: basically taking the output from v8's profiler, and I want to be able to profile node's own internal code as well, and show source towards the slow bits, since v8 shows file/line number [12:10] cognominal_ has joined the channel [12:11] maushu|work: Anyone knows if its possible to run node.js on windows without opening a cmd window? [12:11] squeeks: if node embeds it into the binary and I can't get the specific source for it, that's really crap for what I'm after - and it makes for a grey box. [12:13] augustl: squeeks: it's compiled in [12:13] squeeks: :( [12:13] augustl: and you can't make a module called "http" - require knows about the built-in modules [12:13] augustl: etc [12:13] squeeks: so I see, I've just discovered NativeModule. [12:16] bergie_ has joined the channel [12:17] mehtryx has joined the channel [12:17] fff has joined the channel [12:17] fff: hi [12:18] fff has left the channel [12:19] shoebat has joined the channel [12:20] Glenjamin: squeeks: there's a way to access the code [12:20] Glenjamin: but i forget what it is off the top of my head, or where i saw it [12:21] squeeks: something tells me I need to poke around v8 internals to find it [12:21] Glenjamin: it's exposed to node [12:22] squeeks: meh, think I'll go looking for it later before I get tunnel vision and run out of diet coke [12:22] Glenjamin: try emailing the guy who wrote node-inspector [12:23] Glenjamin: or a github message perhaps [12:23] Glenjamin: it's definitely exposed somewhere... [12:23] marcostoledo has joined the channel [12:24] augustl: what happens with require.resolve("http")? [12:24] augustl: hmm, it returns 'http' [12:25] shoebat has joined the channel [12:25] satyr has joined the channel [12:26] madhums has joined the channel [12:26] Kunda has joined the channel [12:28] Kami_ has joined the channel [12:28] JakeyChan has joined the channel [12:29] squeeks: great, my npm setup is hosed randomly, again. [12:29] socketio\test\49 has joined the channel [12:29] augustl: squeeks: you complain a lot :) [12:29] ciju has joined the channel [12:30] squeeks: I live in britain and trying hard to blend in with the locals. And I'm a spoiled brat writing with languages/tools that have solved half the stuff I get stuck in node already [12:30] maushu|work has joined the channel [12:30] herbySk has joined the channel [12:30] __doc__ has joined the channel [12:31] Xano has joined the channel [12:31] Glenjamin: so use them? [12:31] squeeks: ... [12:31] augustl: squeeks: hehe, the bane of using 0.x releases in production ;) [12:32] Glenjamin: we use node because it works for the problems we're trying to solve [12:32] Glenjamin: if it didn't, we'd use something else [12:32] augustl: I use node because *sunglasses* of the event loop YEEAAAAAAAAAH [12:33] scott_gonzalez has joined the channel [12:33] squeeks: There's room for a pun involving callbacks in there. [12:33] augustl: I use node because *sunglasses* callbacks YEEEEAAAAAH [12:34] squeeks: ha, how original [12:34] augustl: why can't I ack when callbacks? [12:35] zilch_ has joined the channel [12:35] k1ttty has joined the channel [12:37] d0k has joined the channel [12:37] avih has joined the channel [12:39] zilch_ has joined the channel [12:39] saurabh has joined the channel [12:40] N0va` has joined the channel [12:41] simenbrekken has joined the channel [12:42] erichynds has joined the channel [12:44] shoebat has joined the channel [12:45] avih has joined the channel [12:45] skm has joined the channel [12:47] xy has joined the channel [12:47] josh-k has joined the channel [12:47] simenbrekken has joined the channel [12:47] skm has joined the channel [12:48] gtramontina has joined the channel [12:49] avih has joined the channel [12:49] booyaa: eldios: is the tdd js by christian johansen(sp?) [12:50] Glenjamin: when you say TDD, do you mean unit tests first? [12:50] booyaa: the unit tests you write create the code [12:51] Glenjamin: i often find when starting a new project, doing pure TDD, unit tests to code make it difficult to prototype/refactor quickly [12:51] Glenjamin: I prefer to start with BDD, then flesh out unit tests once stuff works [12:51] cognominal_ has joined the channel [12:52] Morkel has joined the channel [12:52] squeeks: TDD is more geared towards meeting the required specification. If you're not sure how you're going to structure things, both TDD and BDD suck. [12:52] Glenjamin: TDD is geared towards implementation, because a proper unit test can only test a single unit. no dependencies [12:53] shoebat has joined the channel [12:53] booyaa: still learning this stuff... bdd looks cool too. seems to be the usual thing, right tool (or xDD) for the right job [12:53] squeeks: CDD is pretty effective. [12:53] booyaa: wtf is cdd? [12:53] Glenjamin: customer? [12:53] booyaa: code driven development? [12:53] squeeks: Conference Driven Development. [12:53] booyaa: arf [12:54] creationix has joined the channel [12:54] zilch_ has joined the channel [12:54] booyaa: how about wolf pack driven development? [12:54] booyaa: let me see if i can find the video.. it's amusing [12:54] francisl has joined the channel [12:54] munichlinux has joined the channel [12:54] squeeks: meeting people FROM THE INTERNET in real life causes "Hey I/we should make *" and I end up spend more time hacking in conferences and talking to people than actually attending talks. [12:54] booyaa: http://skillsmatter.com/podcast/agile-scrum/bdd-as-its-meant-to-be-done [12:55] booyaa: also a bdd master class [12:56] shoebat has joined the channel [12:56] hackband_ has joined the channel [12:58] thoolihan has joined the channel [12:59] shoebat has joined the channel [13:01] shoebat has joined the channel [13:04] tomlion has joined the channel [13:04] trose has joined the channel [13:04] augustl: Glenjamin: TDD makes refactoring easier when done right [13:05] augustl: but yeah, if you decide to completely change the API of your modules you need to change the tests as well [13:05] Typo has joined the channel [13:05] scottschecter has joined the channel [13:05] augustl: so I should say TDD makes changing the implementations and keeping the APIs easier ;) [13:05] augustl: not even that. Replace TDD with automated tests. [13:07] Poetro has joined the channel [13:07] tdegrunt has joined the channel [13:07] Glenjamin: yes [13:07] zilch_ has joined the channel [13:07] Glenjamin: so i'm advocating BDD over TDD for new systems [13:08] Glenjamin: where TDD = unit test driven development, and unit test = test which operates on a single unit [13:08] augustl: BDD isn't really "over" TDD.. [13:08] augustl: BDD is really TDD with a twist, no? [13:08] Glenjamin: depends what you mean by TDD i guess, yeah [13:08] Glenjamin: it generally comes down to the fact that very few "unit tests" are actually true unit tests [13:09] jldbasa has joined the channel [13:10] Ezku: Glenjamin: do elaborate :o [13:11] Glenjamin: if a test operates on more than one unit, its not a unit test [13:11] Glenjamin: true unit tests are tried to implementation [13:11] ryanfitz has joined the channel [13:12] Glenjamin: and at the early stage of a project, when many things are subject to change, i reckon that value provided by such tests is low in most cases - assuming you have BDD-style integration tests [13:13] tomlion has joined the channel [13:14] augustl: Glenjamin: how are true unit tests tied to implementations? [13:14] augustl: shouldn't unit tests be tied to APIs? [13:14] satyr has joined the channel [13:14] sarapretty has joined the channel [13:15] enmand has joined the channel [13:16] Glenjamin: yes, but very low level APIs [13:16] Glenjamin: so you unit test that when you call the API of database abstraction layer correctly calls the API of the database driver [13:18] Wizek has joined the channel [13:18] mc_greeny has joined the channel [13:19] brianseeders has joined the channel [13:20] erichynds has joined the channel [13:21] clithe has joined the channel [13:22] daniel2surf has joined the channel [13:22] sheng_ has joined the channel [13:22] cognominal___ has joined the channel [13:22] clithe: Hello! Is there any way to handle socket.io's 'authorization' event on client side? [13:23] huskyr has joined the channel [13:24] zilch_ has joined the channel [13:24] clithe: damn, sorry for a premature help request, found and answer in socket.io's wiki :> [13:25] jomoho has joined the channel [13:25] aheckmann has joined the channel [13:28] hipster__ has joined the channel [13:28] Typo has joined the channel [13:28] lavluda has joined the channel [13:30] Xano has joined the channel [13:32] JakeyChan has joined the channel [13:33] erichynds has joined the channel [13:33] Net_RoY has joined the channel [13:39] woeye has joined the channel [13:47] bnoordhuis has joined the channel [13:48] Circlefusion has joined the channel [13:50] mdel has joined the channel [13:55] kriszyp3 has joined the channel [13:57] pauls1 has joined the channel [13:59] lazyshot has joined the channel [14:00] fumanchu182 has joined the channel [14:02] AaronMT has joined the channel [14:03] tiagobutzke has joined the channel [14:04] rwhitby has joined the channel [14:04] creationix: rwhitby: welcome [14:04] tomlion has joined the channel [14:05] creationix: it's still early for California isn't it [14:05] hellp has joined the channel [14:05] rwhitby: Greetings. I'm using 'request' to access a server which gives json responses. I'd like to create a module which builds on 'request' and does some error checking parsing of the returned json. Any good examples? [14:05] jarek has joined the channel [14:06] Venom_X has joined the channel [14:06] rwhitby: the aim being that the script calling this module gets a combined error object which includes errors from the `request` call, plus any errors parsed from the json body when the `request` call is successful. [14:06] Vennril has joined the channel [14:07] rwhitby: to centralise that server-specific error checking into one place [14:07] mehtryx has joined the channel [14:08] rwhitby: my question is whether anyone knows of an existing module which does something similar that I can use as an example, before I go and write something from scratch myself (which will be my very first module) [14:08] Phlogistique has joined the channel [14:08] Phlogistique: Hi [14:08] EvanDotPro: rwhitby: i have generally had success with returning single faults with json-rpc. [14:08] Phlogistique: Is there a prefered way to add binaries installed by npm to the $PATH under Unix? [14:10] d0k has joined the channel [14:10] francisl has joined the channel [14:10] Phlogistique: (actually zsh under Arch Linux, npm from the nodejs package in pacman, used as non-root. It seems the binaries are in ~/.npm///package/bin [14:10] joshsmith: when using node-mongodb-native, can I pass in a username:password? [14:10] davidarkemp_ has joined the channel [14:11] rwhitby: EvanDotPro: https://github.com/ericflo/node-jsonrpc ? [14:11] Glenjamin: Phlogistique: when you use npm install -g, it should put them all in the same place [14:11] Raynos: https://github.com/joyent/node/wiki/Installation [14:11] Raynos: Should we update the install instructions to say `git checkout 0.6.4` ? [14:12] Phlogistique: Glenjamin: I did not use -g; I prefer to install as a normal user. [14:12] EvanDotPro: rwhitby: yeah that could work for you. i actually had just wrote my own reallllly simple client function a long time ago before there was a module, heh. [14:12] Glenjamin: Phlogistique: -g implies "global", not root [14:12] baudehlo has left the channel [14:12] rwhitby: EvanDotPro: ok, I was looking to build on 'request', but that gives me some ideas. [14:12] Phlogistique: Glenjamin: oh; I thought "global" meant root [14:12] Glenjamin: you can choose where the global install goes [14:12] baudehlo has joined the channel [14:13] mansoor-s has joined the channel [14:13] Phlogistique: So can I update a package to be installed globally? [14:13] Glenjamin: don't ask me how though, it'll be in npm config somewhere [14:13] EvanDotPro: rwhitby: json-rpc is a pretty decent spec to build on [14:14] versicolor has joined the channel [14:15] Phlogistique: Glenjamin: well, it looks like installation with sudo is _more_ secure than without because of the scripts being executed as nobody; I'll just install as root. [14:15] Phlogistique: Glenjamin: thanks for your help! [14:15] rwhitby: EvanDotPro: oh, the server is not under my control, so I don't get to choose it's return syntax [14:15] lyte_ has joined the channel [14:16] EvanDotPro: rwhitby: ohhh, well damn. that sucks then :( [14:16] EvanDotPro: though, that does mean you were on the right path. [14:17] Lingerance: joshsmith: db.authenticate(user, pass, cb) [14:18] edwardw has joined the channel [14:18] hunterloftis has joined the channel [14:19] k1ttty has joined the channel [14:20] bic2k has joined the channel [14:21] bic2k: question: how often to people ask if this is the slap chop support channel? [14:21] davidsklar has joined the channel [14:22] AndreasMadsen has joined the channel [14:23] AndreasM_ has joined the channel [14:23] lduros has joined the channel [14:23] davidarkemp_: has anyone had any success building v0.6.3 on armt5e? I've got it to compile, but it just says "illegal instruction" when I run it. [14:24] AndreasMadsen has joined the channel [14:24] adrianmg has joined the channel [14:24] truedat101 has joined the channel [14:25] adrianmg has left the channel [14:25] pauls1 has joined the channel [14:26] JasonJS has joined the channel [14:27] amigojapan has joined the channel [14:27] `3rdEden has joined the channel [14:27] deedubs has joined the channel [14:27] thomblake has joined the channel [14:28] idl3 has joined the channel [14:28] hotch has joined the channel [14:28] AdTaylor: Can anyone recommend an alternative to Calipso ( that works with 0.5.x + )? [14:28] JasonJS has joined the channel [14:29] jtsnow has joined the channel [14:31] bradleyg has joined the channel [14:32] MrBenn has joined the channel [14:32] jstash has joined the channel [14:32] huskyr has joined the channel [14:32] saurabh has joined the channel [14:34] vkareh has joined the channel [14:35] rwhitby has left the channel [14:36] atriv has joined the channel [14:39] diogogmt has joined the channel [14:39] JasonJS has joined the channel [14:40] pgherveou has joined the channel [14:40] thomblake has left the channel [14:40] johnnywengluu_ has joined the channel [14:40] pgherveou has joined the channel [14:42] johnnywengluu_ has joined the channel [14:42] piscisaureus___ has joined the channel [14:45] zmbmartin has joined the channel [14:46] doki_pen: how can I set a timeout on http requests? [14:46] ceej has joined the channel [14:46] tih-ra_ has joined the channel [14:47] rwaldron has joined the channel [14:47] jstash: doki_pen: http://nodejs.org/docs/v0.6.4/api/http.html#request.setTimeout [14:48] JakeyChan_ has joined the channel [14:48] RedSofa has joined the channel [14:49] jtrudeau has joined the channel [14:49] doki_pen: jstash: does that work in 0.4.12? [14:49] creationix has joined the channel [14:49] jstash: no [14:49] doki_pen: anyway in 0.4.12? [14:51] jstash: start a timer with setTimeout() then clearTimeout once you get the 'end' on the response, i think. [14:51] jstash: call req.abort() or res.destroy() to clean up [14:51] doki_pen: ah, cool [14:51] doki_pen: thanks [14:52] postwait has joined the channel [14:52] Z3R0 has joined the channel [14:55] CAP1455 has joined the channel [14:55] JakeyChan_ has joined the channel [14:56] lyte has joined the channel [14:57] lazyshot has joined the channel [15:05] tdegrunt_ has joined the channel [15:05] chrisvwebdev has joined the channel [15:06] munichlinux has joined the channel [15:06] willwhite has joined the channel [15:07] chuck_daniel has joined the channel [15:07] chrisvwebdev has left the channel [15:09] Destos has joined the channel [15:09] johnnywengluu_ has joined the channel [15:10] devongovett has joined the channel [15:12] hotch_ has joined the channel [15:12] mehtryx has left the channel [15:13] tih-ra has joined the channel [15:16] joemccann has joined the channel [15:17] tomlion has joined the channel [15:20] aconbere has joined the channel [15:20] davidwalsh has joined the channel [15:21] piscisaureus__ has joined the channel [15:23] robhawkes has joined the channel [15:23] CIA-109: node: 03koichik 07v0.6 * r3ebbdc6 10/ ChangeLog : Update ChangeLog - http://git.io/Egg0qw [15:25] dmsuperman has joined the channel [15:26] dmsuperman: Using mongoose and defining a schema, how might I define a custom data type which basically acts as a string but has extra logic? new Schema({ field: function(value){if(value =='derp') return new String(value);} }); ? [15:26] vipaca has joined the channel [15:26] vipaca has joined the channel [15:26] dmsuperman: Or function(){ return new String(this); } [15:26] dmsuperman: or what [15:27] joshsmith has joined the channel [15:28] aelien27 has joined the channel [15:28] dinarcon has joined the channel [15:29] colinclark has joined the channel [15:31] lwille has joined the channel [15:31] CarterL has joined the channel [15:32] alFReD-NSH has joined the channel [15:32] davemo has joined the channel [15:32] truedat101 has joined the channel [15:33] ovaillancourt has joined the channel [15:34] tdegrunt has joined the channel [15:35] pauls1: are there any tools with express middlewere that i can use to combine & host in 2 files my css + js? [15:35] pauls1: cause i have many css and many js files that should be combined [15:36] Lingerance: dmsuperman: Google JS inheritance [15:37] dmsuperman: Lingerance: I'm not asking how to make a data type, I'm asking how mongoose creates the object [15:37] dmsuperman: Does it pass it as the constructor argument or as the context [15:38] JumpMast3r has joined the channel [15:39] strmpnk has joined the channel [15:39] fangel has joined the channel [15:39] strmpnk has joined the channel [15:40] doki_pen: I'm returning an emitter from a function. When I emit a complete or error event, things work fine, but when I try to emit some other custom event, the on handler never recieves the event. Is there anything special about emitting complete or error? [15:40] NetRoY has joined the channel [15:41] davidascher has joined the channel [15:41] alexa has joined the channel [15:41] MatthewS has joined the channel [15:41] torsd has joined the channel [15:42] vlucas has joined the channel [15:42] joshsmith_ has joined the channel [15:42] joemccann has joined the channel [15:43] colinclark has joined the channel [15:43] cgray has joined the channel [15:44] wilmoore has joined the channel [15:44] kazupon has joined the channel [15:46] Destos has joined the channel [15:48] doki_pen: doh, [15:48] scottp_ has joined the channel [15:48] jj0hns0n has joined the channel [15:48] mraleph has joined the channel [15:48] jstash: error is a special event; if there aren't any listeners an exception is thrown [15:49] zmbmartin has left the channel [15:49] joshsmith_: is anyone else having major latency with a jitsu app? [15:49] jslatts has joined the channel [15:50] Morkel has joined the channel [15:50] zalun has left the channel [15:51] franky_ has joined the channel [15:51] igl1 has joined the channel [15:58] cronopio has joined the channel [15:58] briancray has joined the channel [15:58] jtsnow has joined the channel [15:59] coreb has joined the channel [16:00] ritch has joined the channel [16:01] dshaw_ has joined the channel [16:02] edwardw has joined the channel [16:03] fatjonny has joined the channel [16:04] alexcheninfo has joined the channel [16:04] tjholowaychuk has joined the channel [16:04] przemoc has joined the channel [16:04] tjholowaychuk has joined the channel [16:04] tbranyen: tjholowaychuk: i have my site content in github for a reason ^_^ [16:04] tbranyen: h8s [16:05] strmpnk has joined the channel [16:06] joshkehn has joined the channel [16:06] joshkehn has left the channel [16:06] tjholowaychuk: what [16:08] pyrotechnick1 has joined the channel [16:09] saurabh_ has joined the channel [16:10] guidocalvano has joined the channel [16:10] guidocalvano: yo! [16:11] guidocalvano: (: [16:11] saurabh has joined the channel [16:12] julien_ has joined the channel [16:12] julien_: Hello [16:12] guidocalvano: quick question... when using requirejs, how do you require node style files? [16:12] julien_: I'm creating a small app using node.js and for the purpose of testing, I'm trying to mock DNS lookup [16:13] guidocalvano: question is how? [16:13] julien_: does anyone know if/how that could be done (process wide obviously, not just in a context) [16:13] squeeks: julien_: you want to mock a nameserver? [16:13] mandric has joined the channel [16:13] guidocalvano: I do that by defining my modules using functions [16:13] julien_: squeaks not really… somewhere in my app a dependency does an srv resolution [16:14] julien_: I don't want it to do the actual resolution, because I want a specific IP to be returned [16:14] neurodrone has joined the channel [16:15] ryanfitz has joined the channel [16:15] atriv: can anyone reccomend a good module for interfacing with ms sql server? [16:15] guidocalvano: let me create a pastebin for you [16:16] Renegade001 has joined the channel [16:16] julien_: no-one? [16:17] squeeks: julien_: nah, it's a bit beyond me, I don't do crazy DNS shenanigans [16:17] julien_: squeaks : thx anyway :) [16:18] booyaa: atriv: https://github.com/vivina/node-mssql [16:18] pizthewiz has joined the channel [16:19] edwardw: what usually causes node to report a 'no such module' exception? I saw one when trying to execute joyent smartdc CLI command [16:19] atriv: booyaa: thank you [16:19] guidocalvano: http://pastebin.com/ETcxsbEJ [16:19] guidocalvano: check this code out [16:19] zomg: bnoordhuis: regarding errno 110, what sort of testcase would you need for this? [16:19] criswell has joined the channel [16:19] guidocalvano: it assumes you use require js [16:20] guidocalvano: but you can pull the same trick with conventional exports based code [16:20] shiawuen has joined the channel [16:20] bnoordhuis: zomg: something that dies with errno 110 :) [16:20] zomg: As far as I can tell it's any net.Socket [16:21] guidocalvano: the key to that snippet is that you create your module using a function that is actually added as a member to the module object [16:21] zomg: Currently looks like it's because of node-irc and it trying to connect to undernet1.irc.quakenet.org [16:21] blueadept` has joined the channel [16:21] zomg: erm underworld1.no.quakenet.org [16:21] zomg: on port 6667 [16:21] bnoordhuis: zomg: can you post a snippet that i can copy/paste/run? [16:22] zomg: Well it's not doing it anymore... :D [16:22] guidocalvano: so if I require that module, then at a later point in time I can use that function to reinstantiate another version of that module. But because the dependencies of the module are passed to its factory function via its arguments, it is also possible to pass mock objects [16:22] zomg: It would appear that you just need to net.createConnection, and then it fails, causing the error [16:23] jocafa has joined the channel [16:23] guidocalvano: and thus instantiate the module in an environment that is completely or, if you prefer, partially mocked [16:23] zomg: bnoordhuis: I'll see if I can repro it with some sort of hack which causes the connection to die before it opens [16:23] guidocalvano: julien_: do you get it? [16:23] bnoordhuis: zomg: cool [16:24] guidocalvano: hey ben, how are things going? [16:24] julien_: guidocalvano : yup [16:24] julien_: guidocalvano : thx… I thinkI got it and it works :) [16:24] booyaa: zomg <-- my 2nd favourite nick, mine obviously being the 1st [16:24] guidocalvano: julien_: there is also some extention to requirejs that does what I described, but it didn't work on all situations for me [16:25] alvaro_o has joined the channel [16:25] booyaa: just need someone to be called lolcats and i will be content [16:25] dmojoryder has joined the channel [16:26] kuebk1 has left the channel [16:27] fmeyer has joined the channel [16:27] zomg: bnoordhuis: this seems to be reproducing the issue on my end currently: http://pastie.org/2955651 [16:27] jakehow has joined the channel [16:27] zomg: Run it, if you get 'connected', then restart until you don't -> boom [16:27] airhorns has joined the channel [16:27] rwasielewski has joined the channel [16:28] bnoordhuis: zomg: can you post it in the issue? [16:28] zomg: Yeah but I'm not sure how long that is going to reproduce it since they will probably eventually fix that server [16:28] adnam has joined the channel [16:28] icebox has joined the channel [16:29] djMax has joined the channel [16:29] ecin has joined the channel [16:29] djMax: for something like mongoose where I define a bunch of models, would I typically "require" that in each controller or somehow do it only once? [16:30] TheJH has joined the channel [16:33] ovaillan_ has joined the channel [16:33] davidarkemp_: has anyone got v0.6.x running on armv5te? [16:34] ecin has joined the channel [16:35] yangfei has joined the channel [16:35] saurabh_ has joined the channel [16:36] Xano_ has joined the channel [16:36] martin_sunset has joined the channel [16:36] devongovett has joined the channel [16:37] Swizec has joined the channel [16:37] broofa has joined the channel [16:38] jscheel has joined the channel [16:40] alexa has joined the channel [16:41] chirag has joined the channel [16:43] zilch_ has joined the channel [16:43] jocafa has joined the channel [16:43] ritch has left the channel [16:44] wilmoore has joined the channel [16:45] smathy has joined the channel [16:46] sfoster has joined the channel [16:46] petrjanda has joined the channel [16:47] bnoordhuis: davidarkemp_: sheevaplug? [16:49] stephank has joined the channel [16:49] colinclark_ has joined the channel [16:50] Cromulent has joined the channel [16:51] martin_sunset has joined the channel [16:53] jerrysv has joined the channel [16:54] simenbrekken has joined the channel [16:54] creationix has joined the channel [16:55] strmpnk has joined the channel [16:55] isaacs has joined the channel [16:56] petrjanda has joined the channel [16:56] Mathias has joined the channel [16:57] Mathias: Nice to be back on IRC :) [16:57] shiawuen_ has joined the channel [16:58] Mathias: Hi shiawuen [16:58] pizthewiz has joined the channel [16:58] Xano has joined the channel [16:58] ryan0x2_ has joined the channel [16:59] GrizzLyCRO has joined the channel [16:59] Mathias: I just installed Node.js on a window$. I might got a bit confused about the concepts, but how do I test that it works? Like going to http://localhost when you install apache [16:59] bergie has joined the channel [16:59] dilvie has joined the channel [17:00] dgathright has joined the channel [17:00] mandric has joined the channel [17:01] Swizec has joined the channel [17:03] dannyamey has joined the channel [17:03] jbrokc has joined the channel [17:03] saesh has joined the channel [17:03] bnoordhuis: Mathias: run a script? [17:03] Renegade001 has joined the channel [17:04] jbrokc: does stylus have a .js file to compile everything without node? simillar to less [17:05] davidarkemp_: bnoordhuis: yeah - trying to get it to work on [guru]plug [17:05] saurabh_ has joined the channel [17:05] bnoordhuis: davidarkemp_: compile with -march=armv5t -mfloat-abi=soft [17:06] mandric has joined the channel [17:06] bnoordhuis: konobi said he had to add -ftree-sink but i didn't need that myself [17:07] davidarkemp_: bnoordhuis: ah - missing the -mfloat-abi=soft - I'll give that a go. thanks [17:07] ph^ has joined the channel [17:07] lzskiss has joined the channel [17:08] chrisvwebdev has joined the channel [17:10] devongovett has joined the channel [17:10] KiNgMaR: does anybody know what happens if I delete a branch that has an open pull request, then recreate a new branch of the same name? [17:10] Mathias: bnoordhuis : yes, run a script [17:10] metaverse has joined the channel [17:10] Mathias: (sorry for the complete noob question) [17:11] bnoordhuis: Mathias: fire up the command prompt, make sure the node exe is on your path, then `node script.js` [17:11] bnoordhuis: KiNgMaR: the old commits are deleted [17:12] davidarkemp_ has left the channel [17:12] Poetro_ has joined the channel [17:12] Mathias: ahh.. ok ok... I get it :) [17:12] KiNgMaR: yeah :) was just wondering if github would like that.. I'll try and see it how it goes, heh [17:13] Morkel has joined the channel [17:14] creationix_ has joined the channel [17:16] catshirt has joined the channel [17:18] shiawuen has joined the channel [17:18] jskulski has joined the channel [17:18] maletor has joined the channel [17:19] NetSkay has joined the channel [17:20] diogogmt has joined the channel [17:20] jaequery has joined the channel [17:20] munichlinux has joined the channel [17:21] creation- has joined the channel [17:21] sarapretty has joined the channel [17:23] eldios: best e-mail sending module for nodeJS? [17:23] eldios: mailer from marak? [17:24] TheJH: eldios, SubStack recently built something that looks interesting [17:24] TheJH: eldios, actually, he built two libs [17:24] appinsanity-mike has joined the channel [17:25] tomlion has joined the channel [17:25] chrisvwebdev has left the channel [17:25] munichpython has joined the channel [17:25] tilgovi has joined the channel [17:25] tilgovi has joined the channel [17:25] eldios: pony [17:25] eldios: mm [17:25] eldios: checking it [17:26] djMax: for something like mongoose where I define a bunch of models, would I typically "require" that in each controller or somehow do it only once? [17:26] saurabh has joined the channel [17:27] eldios: TheJH, mailer looks better in having SSL included [17:27] caolanm has joined the channel [17:27] KiNgMaR: btw, the 0.6.4 ChangeLog file stops at 0.6.3. [17:28] eldios: http://www.nodemailer.org/ [17:28] eldios: this one looks even better [17:28] eldios: I'm using this last one [17:28] eldios: as long as it works with 0.6.4 :P [17:29] mike5w3c_ has joined the channel [17:29] TheJH: btw, what do you guys think about my repl suggestion on the nodejs ml? [17:30] TheJH: http://groups.google.com/group/nodejs/browse_thread/thread/b6a91cf95aa3c235 [17:30] bnoordhuis: Kingdutch: that's been fixed [17:30] bnoordhuis: (only after the release though) [17:30] pyrotechnick1 has left the channel [17:32] bosphorus has joined the channel [17:32] creationix has joined the channel [17:33] jsurfer has joined the channel [17:34] CIA-109: libuv: 03Ben Noordhuis 07master * rf5c2a4a 10/ (34 files in 6 dirs): [17:34] CIA-109: libuv: Merge branch 'v0.6' [17:34] CIA-109: libuv: Conflicts: [17:34] CIA-109: libuv: src/unix/core.c [17:34] CIA-109: libuv: src/win/winapi.h (+6 more commits...) - http://git.io/Ij-ZFQ [17:34] CIA-109: node: 03Ben Noordhuis 07isolates * r6c41c5d 10/ (src/node.cc src/node.h): core: isolate-ify (+6 more commits...) - http://git.io/swHulA [17:34] CIA-109: node: 03Ben Noordhuis 07master * r49ba55b 10/ (345 files in 36 dirs): [17:34] CIA-109: node: Merge branch 'v0.6' [17:34] CIA-109: node: Conflicts: [17:34] CIA-109: node: src/node_version.h (+22 more commits...) - http://git.io/tQFY9Q [17:35] smgt has joined the channel [17:35] bogomips2__ has joined the channel [17:36] mandric has joined the channel [17:39] pointlessjon has joined the channel [17:40] dthompso99 has joined the channel [17:41] bluesmoon has joined the channel [17:42] bluesmoon: so how do I do a make install on the code in git? [17:43] pig_ has joined the channel [17:43] hotch has joined the channel [17:44] mmalecki: bluesmoon: what's the output of `make install`? [17:46] criswell has joined the channel [17:46] ryan_stevens has joined the channel [17:47] joaquin_win_ has joined the channel [17:47] sorensen has joined the channel [17:48] mange has joined the channel [17:49] bluesmoon: $ sudo make install [17:49] bluesmoon: Password: [17:49] bluesmoon: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [17:49] bluesmoon: $ sudo make install [17:49] bluesmoon: Password: [17:49] makeInstallBot: bluesmoon: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [17:49] bluesmoon: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [17:49] makeInstallBot: bluesmoon: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [17:49] bluesmoon: $ sudo make install [17:49] Pilate: /cheer [17:50] kickingvegas has joined the channel [17:50] mange has joined the channel [17:51] elijah-mbp has joined the channel [17:52] EvRide has joined the channel [17:52] caffine has joined the channel [17:52] subdeuxed has joined the channel [17:53] criswell has joined the channel [17:53] dantalizing has joined the channel [17:53] dantalizing has joined the channel [17:54] przemoc has joined the channel [17:54] GrizzLyCRO1 has joined the channel [17:55] colinclark has joined the channel [17:55] gut4 has joined the channel [17:56] bjy: I have a question about http.globalAgent. If I set http.globalAgent.maxSockets, is that global across the entire process, or do I have to set it in any modules I require as well? [17:56] adamstantonvan has joined the channel [17:57] trotter has joined the channel [17:57] stagas has joined the channel [17:58] raphdg has joined the channel [17:58] joshsmith_: has anyone done anything with imagemagick and S3 for auto-resizing photos? [17:59] bjy: never mind; answered my own question. for the curious, http.globalAgent.maxSockets needs to be set in any require()'ed modules [17:59] petrjanda has joined the channel [17:59] ryan_stevens: joshsmith_: not in node, but its a fairly common practice [17:59] hipsters_ has joined the channel [17:59] joshsmith_: ryan_stevens: yeah, I did something previously [18:00] joshsmith_: in PHP [18:00] Phlogistique: anyone knows why coffeescript syntax does not allow Haskell-like arbitrary line continuation with indentation? [18:00] cjm has joined the channel [18:00] Phlogistique: is it worth asking on the issue manager or has it already been discussed? [18:01] _dc has joined the channel [18:01] saurabh_ has joined the channel [18:01] kickingvegas has joined the channel [18:01] BillyBreen has joined the channel [18:02] joshsmith_: ryan_stevens: do you know of any *best* practices for it? [18:02] joshsmith_: I used a database previously [18:02] joshsmith_: I think several tables [18:04] Agwatic has joined the channel [18:04] criswell has joined the channel [18:04] Agwatic: hello , i want to compile nodejs with crypt support [18:05] Renegade001 has joined the channel [18:06] dshaw_ has joined the channel [18:06] jarek has joined the channel [18:06] jarek has joined the channel [18:07] tomlion_ has joined the channel [18:08] trotter has joined the channel [18:09] gripir has joined the channel [18:09] gripir has left the channel [18:10] adamstantonvan has joined the channel [18:12] eignerchris has joined the channel [18:12] langworthy has joined the channel [18:13] ericmuyser has joined the channel [18:14] eldios: how do I use a property of an object in another attribute? [18:14] ecin_ has joined the channel [18:14] eldios: say I have an object --> text={"user":'eldios',"pass":'pass',"auth":user+':'+pass} [18:14] eldios: will this work? if not how? [18:14] zeade has joined the channel [18:15] Agwatic has left the channel [18:16] patcito has joined the channel [18:19] `3rdEden has joined the channel [18:19] eldios: well.. guess I'll have to wait =) cya later [18:21] TooTallNate has joined the channel [18:22] benlyn has joined the channel [18:22] shiawuen has joined the channel [18:22] gregpascale has joined the channel [18:24] mange has joined the channel [18:24] r1ngzer0 has joined the channel [18:27] crescendo has joined the channel [18:27] Renegade001 has joined the channel [18:27] franciscallo has joined the channel [18:28] lauxley has left the channel [18:28] reid has joined the channel [18:30] tyler-vortex has joined the channel [18:32] warspawn has joined the channel [18:32] Morkel has joined the channel [18:32] xicubed has joined the channel [18:32] mikeal has joined the channel [18:32] tlynn has joined the channel [18:32] warspawn: what's the windows equivalent of node-waf ? [18:33] deedubs: ACTION resists making joke about format c: ... [18:34] mmalecki: deedubs++ [18:34] v8bot_: mmalecki has given a beer to deedubs. deedubs now has 2 beers. [18:34] catb0t: deedubs now has 1 beer [18:35] fzzzy has joined the channel [18:35] deedubs: is there a list of 'cool wins' for node.js? Would be interesting to see where node.js is starting to be used in unexpected places [18:35] faced has joined the channel [18:36] tyler-vortex has left the channel [18:37] JJMalina has joined the channel [18:38] broofa has joined the channel [18:38] arcanis has joined the channel [18:38] zeade has joined the channel [18:39] joshsmith_: why was this a bad question to ask on SO? http://stackoverflow.com/questions/8360822/how-should-you-handle-dynamic-server-side-image-resizing-and-storage [18:39] joshsmith_: deedubs: you know Klout uses it, right? [18:39] deedubs: yes and LinkedIn [18:39] dgathright has joined the channel [18:39] baudehlo: deedubs: hasn't it got too big for that? There are some obvious ones like Linkedin. [18:39] churp has joined the channel [18:40] baudehlo: I'm hoping to have a major one to announce soon. [18:40] herbySk has joined the channel [18:40] joshsmith_: deedubs: any idea why that question ^ was considered poor? [18:40] warspawn: so no one knows the windows equivalent of node-waf? is it not possible? [18:40] joshsmith_: baudehlo: can't share now? [18:40] lazyshot has joined the channel [18:41] deedubs: baudehlo: I guess. Doing a pretty cool project myself [18:41] baudehlo: joshsmith_: not really my place to share it. But if you're on the Haraka mailing list you can make an obvious guess. [18:42] jgallen23 has joined the channel [18:42] AvianFlu has joined the channel [18:42] euforic has joined the channel [18:45] springmeyer has joined the channel [18:45] TheJH: is there anything that turns v8.log into something readable that works? "~/gitty/node/deps/v8/tools/linux-tick-processor" just fails here [18:46] TheJH: "ReferenceError: arguments is not defined" [18:46] halfhalo has joined the channel [18:46] jsurfer has joined the channel [18:47] Guest68631 has joined the channel [18:47] joemccann has joined the channel [18:47] firebalrog has joined the channel [18:48] mikl has joined the channel [18:49] mange has joined the channel [18:50] baudehlo: for profiling? [18:51] CiRlE has joined the channel [18:51] bnoordhuis: TheJH: try the nprof branch of node-profiler [18:52] p1d has joined the channel [18:52] euforic has left the channel [18:52] euforic has joined the channel [18:53] hij1nx has joined the channel [18:53] sheng_ has joined the channel [18:54] ekryski has joined the channel [18:54] TheJH: bnoordhuis, ah, cool :) [18:55] sorensen has joined the channel [18:55] Swizec has joined the channel [18:56] euforic has joined the channel [18:56] delian66: is there a way to inspect the keys of an array, and not only the values, using util.inspect ? [18:56] TheJH: delian66, erm, inspect the keys of an array? [18:57] maxogden: Object.keys bro [18:57] delian66: well, probably I mean the numeric indexes [18:57] delian66: maxogden: 10x, I'll try that [18:57] TheJH: delian66, no, I mean, why do you want to see them? [18:58] maxogden: delian66: it only works on objects cause arrays dont have keys [18:58] TheJH: delian66, you'll only see something like 0,1,2,3,4,5,6,7 [18:58] TheJH: maxogden, huh? [18:58] bengrue has joined the channel [18:58] delian66: yep, I want the numbers [18:58] TheJH: maxogden, arrays can have keys [18:58] maxogden: arrays have indexed, objects have keys [18:58] maxogden: indexes* [18:58] TheJH: maxogden, no [18:58] skm has joined the channel [18:58] delian66: in js, objects behave somewhat are hashes [18:58] TheJH: .. o=[];o.a=1;o.a [18:58] catb0t: 1 [18:58] TheJH: maxogden, ^ [18:58] delian66: s/are/like/ [18:59] TheJH: .. Object.keys(["a","b","c"]) [18:59] catb0t: [ "0", "1", "2" ] [18:59] maxogden: TheJH: yes you can assign properties to anything but thats not what i was saying [18:59] nex3 has joined the channel [19:00] davidascher has joined the channel [19:00] maxogden: catb0t: WHOA i didnt even know that worked [19:00] catb0t: worked a charm [19:00] nex3 has left the channel [19:00] maxogden: cool i gave accidental advice [19:01] broofa has joined the channel [19:01] TheJH: maxogden, well, it's just a key (with a tiny bit of added magic) [19:01] jxson has joined the channel [19:01] ryan_stevens: maxogden: that's almost as good as a bug that accidentally adds an amazing feature [19:02] isaacs has joined the channel [19:02] TheJH: bnoordhuis, why isn't the nprof stuff on your main branch? [19:02] bartt has joined the channel [19:02] bnoordhuis: TheJH: i need to pretty it up and merge it [19:03] tvw has joined the channel [19:03] petrjanda has joined the channel [19:04] diminoten: test [19:05] TheJH: diminoten, test not successful [19:06] diminoten: wrong channel, heh [19:07] fbartho has joined the channel [19:07] kitt has joined the channel [19:07] kitt has joined the channel [19:07] gr-eg has joined the channel [19:08] levi501d has joined the channel [19:09] sarlalian has joined the channel [19:09] dilvie has joined the channel [19:09] coreyrec__ has joined the channel [19:10] ryanfitz has joined the channel [19:11] bergie has joined the channel [19:11] fermion: anybody know of any resources re: using node.js + Apple's push notification API? [19:11] guillermo has joined the channel [19:12] PhilK has joined the channel [19:12] colinclark has joined the channel [19:12] Samuel_Roldan has joined the channel [19:12] hij1nx has joined the channel [19:12] colinclark has joined the channel [19:13] sh1mmer has joined the channel [19:13] warspawn has left the channel [19:14] jrogers has joined the channel [19:15] atourino has joined the channel [19:15] atourino has joined the channel [19:16] jhurliman has joined the channel [19:16] strmpnk has joined the channel [19:18] tomlion has joined the channel [19:18] GrizzLyCRO has joined the channel [19:21] pkrumins: just wrote the 2nd article in "node.js modules you should know about" series [19:21] pkrumins: this time - node-optimist - http://www.catonmat.net/blog/nodejs-modules-optimist/ [19:22] Xano has joined the channel [19:22] tomlion_ has joined the channel [19:23] gregmoreno has joined the channel [19:24] baudehlo: pkrumins: can you put a list of similar alternatives at the end? I use nopt, so it'd be good to have that there too. [19:24] pkrumins: i just added nopt for another blog pot [19:24] pkrumins: i just added nopt for another blog post [19:24] baudehlo: blog pot would be great. [19:25] bnoordhuis: blog pot, gotta remember that one [19:25] saurabh_ has joined the channel [19:25] bic2k has joined the channel [19:25] seebees has joined the channel [19:26] baudehlo: Someone should port Getopt::Declare to node. [19:26] joshsmith_: can someone tell me what they think of my dynamic image resizing strategy? [19:26] baudehlo: It's so much better just writing your Usage string, and having the options figured out for you :) [19:26] harthur has joined the channel [19:27] sarlalian: fermion: there is a api service called boxcar… and an example of using it with hook.io at http://ejeklint.github.com/2011/10/11/hook.io-for-dummies-part-3-a-deeper-look/ [19:27] al_ol has joined the channel [19:27] tilgovi has joined the channel [19:27] tilgovi has joined the channel [19:27] Bonuspunk: anyone knows why there is String.prototype.anchor/big/link/bold/etc at V8? [19:27] fermion: sarlalian: ahh, cool! I found https://github.com/argon/node-apn, just starting to play with it a bit [19:27] joshsmith_: I want something that's ideally decoupled from the rest of my project (and therefore more reusable) [19:28] fermion: sarlalian: thanks for the info :-) [19:28] sarlalian: np, and excellent [19:28] sarlalian: I'll check out the one you are looking at too [19:28] joshsmith_: so I'll upload the image to the server, rename the image to an md5 hash of: context + id of context + size, then upload the image to s3 [19:28] fermion: sarlalian: the intent, for what I'm doing, is actually to create another boxcar [19:28] CarterL has joined the channel [19:28] fermion: sadly [19:28] joshsmith_: on a user calling the image, I call the context, id, and size, try to fetch from S3 [19:29] joshsmith_: if the photo doesn't exist, fetch the original, resize, and place on s3 with a similarly hashed filename [19:29] baudehlo: joshsmith_: a lot of this depends on how many users you have and what the profile is of people viewing images. [19:29] joshsmith_: that way if a user uploads a photo, we don't resize the image 10 different ways on the first upload [19:30] baudehlo: like how often do you need them all resized? If always, then resize on upload, if rarely, resize on view. [19:30] joshsmith_: it might be rarely, it might be often [19:30] baudehlo: there are so many strategies. [19:30] MrNibbles has joined the channel [19:30] baudehlo: I wrote a gallery app once and opted for the "resize and cache when viewed" [19:30] joshsmith_: I think it's smarter to go that route [19:30] sarlalian: fermion: Thats cool, so far as far as my company is concerned, any 3rd party service we can tie into and not have to build ourselves is great [19:31] joshsmith_: baudehlo: how would you cache? just set the headers in s3 appropriately? [19:31] zomg: Hrms, I started an app with forever but forever list now claims it isn't running anything, although the app is clearly running :P [19:31] baudehlo: I dunno, I've never used S3. [19:31] fermion: sarlalian: I'm definitely going to look at this, though. It shouldn't matter whether it's a home grown API, imho, but how well it performs and how difficult it is to maintain [19:31] fermion: I'd prefer to use a 3rd party, we'll see [19:31] mmalecki: zomg: node v0.6 [19:32] sarlalian: joshsmith: you could use something like hook.io to broadcast an image upload event and do background processing on the images at your leisure [19:32] zomg: mmalecki: ? [19:32] mmalecki: zomg: I mean, it's fucked there [19:32] zomg: Bah, of course :P [19:32] zomg: Any alternatives which aren't? [19:32] baudehlo: joshsmith_: and it wasn't a node app. It was Perl. So I just wrote to the filesystem, and if it was cached I could just use sendfile() to attach it to the http stream. [19:32] mmalecki: zomg: there's my pull request for that [19:33] mmalecki: or you can wait for a big mothafuckin' rewrite [19:33] zomg: Heh [19:33] zomg: Guess I'll take a look at your pull request =) [19:33] baudehlo: or use runit instead :) [19:33] mmalecki: (which starts today, btw) [19:33] baudehlo: or daemontools [19:34] zomg: Oh, does that also run node apps in addition to virtual CD-drives? ;) [19:34] mmalecki: lol [19:34] baudehlo: ACTION doesn't get the joke :-( [19:34] arturadi_ has joined the channel [19:34] FIQ has joined the channel [19:35] zomg: baudehlo: daemon-tools is probably the most commonly used tool to mount disc images on Windows [19:35] baudehlo: oh. [19:35] baudehlo: I don't do Windows. [19:36] baudehlo: I recommend runit rather than daemontools though, it seems a bit nicer. [19:36] baudehlo: and it's been rock solid for me. [19:36] zomg: Well, as long as it restarts node when it dies :D [19:36] tkaemming has joined the channel [19:37] zomg: Going to start spamming my node app a bit soon so might get users who like to try breaking things more than my current test users do [19:37] zomg: =) [19:37] baudehlo: yes it does the restart on crash thing [19:37] lyte has joined the channel [19:37] ecto has joined the channel [19:37] baudehlo: and your stdout gets logged to disk and logs rotated automatically [19:38] baudehlo: and timestamps added (optionally) [19:38] Carter_ has joined the channel [19:38] baudehlo: it's a beautiful thing. [19:38] zomg: Yeah sounds good [19:38] ecto: Hey guys, I wrote an Arduino framework last night. What do you think? https://github.com/ecto/duino [19:39] maushu has joined the channel [19:39] zomg: haha, forever seems to be actually working... [19:39] zomg: at least in that it's restarting my app [19:39] guybrush has joined the channel [19:39] zomg: but not much besides that :P [19:41] arturadib has joined the channel [19:45] jerrysv: ecto: what are the memory requirements? [19:45] halfhalo has joined the channel [19:45] jerrysv: and does tcp/ip work? [19:45] shapeshed has joined the channel [19:46] mmalecki: zomg: yeah, it restarts it [19:46] mmalecki: wait, it does? lol [19:46] mmalecki: yeah, it should [19:46] mmalecki: it just fails to set up a socket [19:48] robotmay has joined the channel [19:49] ovaillancourt has joined the channel [19:50] V1 has joined the channel [19:50] petrjanda has joined the channel [19:52] martin_sunset has joined the channel [19:52] materialdesigner has joined the channel [19:52] maxogden: baudehlo: nice, hadnt heard of daemontools before [19:53] tbranyen: maxogden: has built in malware too! [19:53] monokrome has joined the channel [19:54] joemccann has joined the channel [19:54] pizthewiz has joined the channel [19:56] JumpMast3r has joined the channel [19:56] idefine has joined the channel [19:57] sh1mmer has joined the channel [19:58] leonhardtwille has joined the channel [20:00] hackband has joined the channel [20:00] braoru has joined the channel [20:01] fcoury has joined the channel [20:01] salva has left the channel [20:01] quackquack has joined the channel [20:02] tbranyen: quackquack: http://openwalls.com/image/20126/colorful_duck_3499x2332.jpg [20:02] quackquack: ? [20:02] fermion has joined the channel [20:02] Renegade001 has joined the channel [20:02] tbranyen: i think its self explanatory [20:08] gut4 has joined the channel [20:12] ecto: jerrysv: memory on the arduino or computer? [20:13] ecto: jerrysv: and the reason for it is so you can use node for http/tcp and let the arduino handle low-level stuff [20:14] `3rdEden has joined the channel [20:15] truedat101 has joined the channel [20:15] insin has joined the channel [20:15] AvianFlu has joined the channel [20:16] jbpros has joined the channel [20:16] zeade has joined the channel [20:18] mikl has joined the channel [20:19] socketio\test\17 has joined the channel [20:20] fangel has joined the channel [20:22] KiNgMaR: bnoordhuis: I updated my pull request for padding control in crypto (#2014) [20:26] jakehow has joined the channel [20:27] stagas has joined the channel [20:27] jacobolus has joined the channel [20:34] jskulski has joined the channel [20:35] bradleymeck has joined the channel [20:35] mjr_ has joined the channel [20:36] bradleymeck: is there an easy way to push data back onto stdin from node? [20:37] localhost has joined the channel [20:38] hij1nx has joined the channel [20:38] devongovett has joined the channel [20:39] mikedeboer has joined the channel [20:39] adamstantonvan has joined the channel [20:40] inf_l00p has joined the channel [20:40] mange has joined the channel [20:40] gtramontina has joined the channel [20:41] maxogden: tbranyen: not that daemontools [20:41] mmalecki: bradleymeck: you're trying to fix node-prompt? [20:41] grampajoe has joined the channel [20:42] Draggor: what's the env variable to use multiple jobs? [20:42] inf_l00p has left the channel [20:43] bradleymeck: mmalecki im just sending out feelers cause i dont want to use c++ [20:43] mmalecki: bradleymeck: wait until someone fixes the core, I'd say [20:44] augustl: https://github.com/douglascrockford/JSLint isn't a commonjs module. Is there a commonjs module available somewhere? [20:44] tbranyen: augustl: why would it be? [20:45] tbranyen: part of a build process? [20:45] augustl: tbranyen: because I want to use it in a commonjs project :) [20:45] augustl: sort of yep [20:46] dwhittle has joined the channel [20:48] N0va` has joined the channel [20:48] mikeric has joined the channel [20:49] msch has joined the channel [20:49] FireBomb has joined the channel [20:50] hij1nx has joined the channel [20:51] Draggor: When did node change to auto reducing fractions to decimals? [20:52] reid has joined the channel [20:54] TheJH: Draggor, erm, whut? [20:54] TheJH: Draggor, node is not a calculator :/ [20:55] TheJH: Draggor, in *every* programming language, a division either rounds or gives you a float [20:55] TheJH: Draggor, at least I know none in which you have fractions [20:55] Morkel has joined the channel [20:55] Draggor: At the repl, node used to leave franctions of whole numbers in a displayed fraction form [20:55] Draggor: if I entered 1/5 it stayed 1/5 [20:55] Draggor: I'm not entirely sure what the JS spec for taht is [20:56] TheJH: Draggor, impossible [20:56] TheJH: Draggor, maybe you entered it as a string? [20:56] levi501d has joined the channel [20:56] Draggor: Y'know what, I'm retarded, disregard me, I confused node with clisp [20:57] jarek has joined the channel [20:57] jarek has joined the channel [20:58] Draggor: just that kind of day [21:01] context: if you are using nosql, do you use it as well for user data (ie: login info) [21:02] chrisvwebdev has joined the channel [21:04] joshsmith_: anyone here use formidable? [21:05] joshsmith_: context: I use Mongo for sessions and that's it [21:05] voodootikigod: ryah: any idea why I a node app would crash with this output when being access by a local NAT address? https://gist.github.com/e985b0a5d1c7405b48b9 [21:06] joshsmith_: I have a formidable form.parse() that's just hanging. I've tried logging inside the callback and get nothing, and I've logged it's return value: https://gist.github.com/1424813 [21:06] joshsmith_: *its [21:06] voodootikigod: I can get around it by leaving addressing lookup to a higher level [21:06] context: you people and storing sessions on the server [21:07] voodootikigod: but if I try to do it where my system is the router, it dies [21:07] joshsmith_: context: you have a better idea? [21:07] context: store it in a cookie ? [21:07] context: like most larger mvc frameworks do [21:07] joshsmith_: I do [21:07] context: no... the entire session. not a session id [21:07] jbpros: little NPM publishing question: should packages support node 0.5 or not? (i.e. should it be specified in package.json "engines" field?) [21:07] baudehlo has joined the channel [21:07] joshsmith_: store the entire session in a cookie? [21:08] joshsmith_: all that data? [21:08] Margle has joined the channel [21:08] joshsmith_: I have stuff like Facebook access tokens [21:08] Venom_X_ has joined the channel [21:09] context: shouldn't that be stored in the users profile/info in the db? or does it disappear after they are gone [21:09] context: and how big is an access token [21:09] context: joshsmith_: and yes. [21:09] joshsmith_: its stored in their profile in the db, yes [21:09] joshsmith_: buuuuut I'm using everyauth [21:09] harthur has joined the channel [21:10] sfoster has joined the channel [21:10] context: then all you need is the users id in the session [21:10] joshsmith_: I have that [21:10] context: nm. [21:10] rauchg has joined the channel [21:10] joshsmith_: maybe I should be doing something else, then [21:11] OneOfOne has joined the channel [21:11] OneOfOne has joined the channel [21:12] Poetro_ has joined the channel [21:12] Poetro_ has joined the channel [21:12] jbrokc_ has joined the channel [21:12] sh1mmer has joined the channel [21:14] jimmysparkle has joined the channel [21:14] jerrysv: ecto: was afk, sorry. i meant specifically what kind of footprint on the arduino [21:14] purr has joined the channel [21:15] d0k has joined the channel [21:15] fbartho has joined the channel [21:17] franky has joined the channel [21:18] boxysean has joined the channel [21:18] ashb has joined the channel [21:19] qbit_ has joined the channel [21:19] phzbox has joined the channel [21:19] progrock` has joined the channel [21:19] eviltwin_ has joined the channel [21:20] keeto has joined the channel [21:20] V1 has joined the channel [21:23] koo1 has joined the channel [21:23] scottschecter has joined the channel [21:26] sarapretty has joined the channel [21:28] jrogers has joined the channel [21:28] Sorella has joined the channel [21:29] pizthewiz has joined the channel [21:30] mandric has joined the channel [21:30] brainproxy has joined the channel [21:31] coreyrec__ has left the channel [21:31] GauthierD has joined the channel [21:31] blueadept` has joined the channel [21:32] GauthierD has left the channel [21:32] `3rdEden has joined the channel [21:32] 14WAAYTH7 has joined the channel [21:33] GauthierD has joined the channel [21:33] sarapretty has joined the channel [21:33] ryah has joined the channel [21:34] eviltwin_ has joined the channel [21:34] joaojeronimo has joined the channel [21:35] NewCoder has joined the channel [21:35] joaojeronimo: Does anyone know of a good module like LearnBoost's Cluster but with NodeJS's current version's built in cluster module ? Something ready for graceful restarts... [21:37] jbrokc_ has joined the channel [21:38] benlyn has joined the channel [21:41] icebox has joined the channel [21:42] franksalim has joined the channel [21:43] NewCoder has joined the channel [21:43] jrogers has joined the channel [21:44] alejandromg has joined the channel [21:45] recycle has joined the channel [21:46] lyte has joined the channel [21:46] Kunda has joined the channel [21:46] nils_r has joined the channel [21:47] chrisvwebdev has joined the channel [21:47] mraleph has joined the channel [21:48] jsurfer has joined the channel [21:50] mehtryx has joined the channel [21:51] truedat101 has joined the channel [21:53] isaacs_mint has joined the channel [21:54] apejens has joined the channel [21:55] ace has joined the channel [21:55] jacobolus has joined the channel [21:56] Kunda has joined the channel [21:56] jergason has joined the channel [21:57] alejandromg has joined the channel [21:57] bambams has joined the channel [21:57] bambams: Well that's better. xD [21:57] smithclay has joined the channel [21:57] ruzu has joined the channel [21:58] bambams: I'm surprised that process.argv[0] isn't resolved to be absolute always. [22:01] adamstantonvan has joined the channel [22:02] sh1mmer has joined the channel [22:03] smithclay: anyone have words of wisdom on using object document mapping/object relational mapping libraries in node (or even if it's worth going down that path with a redis db?) [22:05] bambams has left the channel [22:06] wereHamster: smithclay: mongoose [22:06] lorfds has joined the channel [22:06] chrislorenz has joined the channel [22:06] jskulski has joined the channel [22:06] wereHamster: smithclay: redis = key/value store, it's not a document database [22:06] ciju has joined the channel [22:07] zzak has joined the channel [22:07] pauls1 has joined the channel [22:08] smithclay: @wereHampster is it common typically build some sort of abstraction layer on top of redis, though? [22:09] thalll has joined the channel [22:09] augustl: smithclay: not sure about commonly.. But if all you need is key lookup you can store JSON as the value I guess [22:09] GrizzLyCRO: i have my jade liek this https://gist.github.com/1425047 [22:09] GrizzLyCRO: that is layout [22:09] GrizzLyCRO: how can i include actual template that i want in that layout [22:10] GrizzLyCRO: using express [22:10] hydrozen has joined the channel [22:10] hackband has joined the channel [22:11] lwille has joined the channel [22:12] adrianmg has joined the channel [22:12] smithclay: yeah, it's a growing project and it's quickly becoming a little bit more than simple redis key lookup -> json output (post-processing, aggregating, authentication, etc). Just wondering what's the good pattern to use here (since ODM doesn't work) [22:13] adrianmg has left the channel [22:14] fly-away has joined the channel [22:14] lwille has joined the channel [22:14] NewCoder has joined the channel [22:14] sarlalian has joined the channel [22:14] sdwrage has joined the channel [22:15] slloyd has joined the channel [22:15] aklt has joined the channel [22:15] otakutomo has joined the channel [22:20] mandric has joined the channel [22:23] piscisaureus__ has joined the channel [22:23] tomlion has joined the channel [22:36] TheJH: bnoordhuis, what do you think? http://thejh.github.com/bu.html http://thejh.github.com/td.html [22:36] TheJH: (you can go into a box by clicking) [22:36] mikeal has joined the channel [22:36] TheJH: bottom-up and top-down cpu profiles of my proxy :) [22:36] igl has joined the channel [22:36] TheJH: (looks best with reduced font size) [22:37] enmand has joined the channel [22:43] sammi has joined the channel [22:44] nixer1102 has joined the channel [22:45] jtsnow has joined the channel [22:45] francisl has joined the channel [22:46] iDennis has joined the channel [22:46] ecto: jerrysv: the arduino client is 154.24 bytes [22:48] jldbasa has joined the channel [22:50] sammi has left the channel [22:51] bartt has joined the channel [22:51] tiagobutzke has left the channel [22:53] mikeal1 has joined the channel [22:54] jerrysv: ecto: neat, i'm going to watch it and see if i can play with it this weekend. 2 things i think are fun - node and arduino [22:56] CIA-109: node: 03isaacs 07v0.6 * rffc8110 10/ deps/npm/lib/utils/tar.js : Workaround: A/V software prevents folder rename - http://git.io/vrjCjA [22:56] jhbot has joined the channel [22:57] truedat101 has joined the channel [22:57] dubenstein has joined the channel [22:59] jxson has joined the channel [22:59] mmalecki: what is this commit I don't even [23:01] isaacs: mmalecki: workaround for windows [23:01] briancray has joined the channel [23:02] rmg has joined the channel [23:02] mmalecki: isaacs: yeah, I mean, I could've expected that [23:02] isaacs: this should fix the sporadic EACCES that some windows users are seeing [23:02] isaacs: other than that, feedback so far has been very positive [23:02] isaacs: mmalecki: how's it working out for travis? [23:02] mmalecki: isaacs: fair enough then :) [23:03] mmalecki: isaacs: our vms are quite fucked up now, we sometimes fail to ssh into them [23:03] mmalecki: we're not doing 0.6.4 deploy today [23:03] mmalecki: waiting for Josh and antares to be around [23:04] FIQ has joined the channel [23:05] mmalecki: isaacs: btw, we've spotted another issue http://travis-ci.org/#!/flatiron/union/builds/365843 [23:05] mmalecki: isaacs: no, wait, it's the old one [23:05] edwardw has joined the channel [23:05] mmalecki: isaacs: here http://travis-ci.org/#!/flatiron/utile/builds/367923 [23:05] secoif has joined the channel [23:06] isaacs: mmalecki: that's using 0.6.3 [23:06] isaacs: mmalecki: you want 0.6.4 [23:06] isaacs: that is, the "write() after end()" bug is fixed on 0.6.4 [23:06] mmalecki: isaacs: I know, just wanted to make sure it's fixed in 0.6.4 [23:06] isaacs: yep [23:06] isaacs: the issue is that gnutar is garbage. [23:06] mmalecki: isaacs: ok, awesome. you're the man :) [23:07] isaacs: it puts around 20kb of \0 at the end of tarballs. [23:07] isaacs: only 1kb is necessary. [23:07] mmalecki: wat [23:07] isaacs: yeah [23:07] isaacs: so, tar's a weird format. [23:07] isaacs: you have to endit with 2 blocks of \0 [23:07] isaacs: but you CAN end it with as many null blocks as you want [23:07] isaacs: and gnutar is very liberal with its null blocks [23:07] isaacs: and node-tar was thinking "wait, you already ended, why are you giving me more nulls!?!?" [23:09] mmalecki: well, wow. I don't think I even understand how tar works, really [23:09] mmalecki: but indeed, it's weird [23:09] isaacs: it's not that complicated, really. just old. [23:09] isaacs: so there's a lot of different implementation specific bs [23:09] Nohryb has joined the channel [23:10] Wizek has joined the channel [23:10] rmg has left the channel [23:12] No9 has joined the channel [23:12] Nohryb has left the channel [23:15] elevenarms has joined the channel [23:20] Carter_ has joined the channel [23:22] shapeshed has joined the channel [23:22] devongovett has joined the channel [23:23] spolu has joined the channel [23:24] colinclark_ has joined the channel [23:26] konobi: isaacs: no doubt it's for some blocksize implementation for some tape device [23:26] truedat101 has joined the channel [23:26] isaacs: konobi: that seems super doubtful to me. [23:26] isaacs: konobi: though, it does seem to be the blocksize implementation for hard drives. [23:26] isaacs: so that could be why it does that [23:29] diminoten: what's a good font to code in? [23:29] mike5w3c_ has joined the channel [23:29] Dulak: diminoten: envy code R or droid sans mono are my preferred ones [23:30] josh9 has joined the channel [23:30] diminoten: hm ok [23:30] diminoten: I' [23:30] diminoten: ll look at those [23:33] MatthewS has joined the channel [23:33] shoebat has joined the channel [23:34] Wa has joined the channel [23:34] kindbeard_ has joined the channel [23:35] cjm has joined the channel [23:36] indexzero has joined the channel [23:36] petrjanda has joined the channel [23:36] markwubben has joined the channel [23:37] Hamms has joined the channel [23:39] satyr has joined the channel [23:39] shoebat has joined the channel [23:42] harthur has joined the channel [23:42] tellnes has joined the channel [23:43] gregmoreno has joined the channel [23:44] base698 has joined the channel [23:44] jimmysparkle has joined the channel [23:45] dshaw_ has joined the channel [23:45] josh9: "Do not extend the prototypes of any objects, especially native ones. There is a special place in hell waiting for you if you don't obey this rule." [23:45] lzskiss: byte [23:45] josh9: can someone explain the issue with extending prototypes? [23:45] kuya has joined the channel [23:45] dshaw_ has left the channel [23:46] dshaw_ has joined the channel [23:47] chrisvwebdev has joined the channel [23:48] subbyyy has joined the channel [23:49] mikeal has joined the channel [23:50] mdel has joined the channel [23:50] towski has joined the channel [23:52] jonsul has joined the channel [23:53] tomlion has joined the channel [23:53] maxogden: josh9: monkeypatching/metaprogramming leads to confusing and hard to debug side effects. its better to clearly subclass [23:54] caffine has joined the channel [23:54] delian66_ has joined the channel [23:56] enmand has joined the channel [23:57] enos_feedler has joined the channel [23:57] josh9: maxogden: got it. i am learning js now and googled for subclassing. is subclass a method you add to your js code to have inherintance looks nicer than the built in js way? http://www.golimojo.com/etc/js-subclass.html [23:59] maxogden: josh9: that page looks oooollddd [23:59] jimt_ has joined the channel [23:59] fson_ has joined the channel [23:59] josh9: maxogden: can u refer me to a better explanation of subclassing in js?