[00:00] ben_alman: mc i have in the past, but i've recently stopped [00:00] mc: i was tasked with researching it, thought i'd see what other people are doing [00:00] mc: why'd you stop? for code cleanliness? [00:00] konobi: i generally write docs by hand [00:00] ben_alman: because it yields too high of a comment-to-code ratio https://github.com/cowboy/jquery-bbq/blob/master/jquery.ba-bbq.js [00:00] konobi: (using POD or similar) [00:01] mc: yeah, that's a common complaint [00:01] ben_alman: i'm going to be writing docs by hand in the future, just not sure how i'm going to go about it [00:01] konobi: ben_alman: POD is pretty decent [00:01] ben_alman: maybe textile. unsure, i know i want people to be able to browse docs directly on github [00:01] mc: konobi: do you have issues with updating code and forgetting to update docs? or have you managed to break that habit? [00:02] joshsmith: what am I doing wrong here? https://gist.github.com/1573130 [00:02] konobi: mc: i generally update the docs first and then the code [00:02] gigafied has left the channel [00:02] mc: makes sense. like test based development [00:02] konobi: yup [00:02] mc: write what you want it to do, then make it do it [00:02] ben_alman: konobi: link to POD? [00:03] StanlySoManly1 has joined the channel [00:03] ben_alman: or do you mean "plain ol documentation"? [00:03] konobi: http://en.wikipedia.org/wiki/Plain_Old_Documentation [00:03] ben_alman: ya [00:03] mc: ben_alman: what tool did you used to use for the auto generation? [00:03] joshsmith: I keep getting undefined is not a function on line 8 of test.js [00:03] saikat has joined the channel [00:03] ben_alman: mc: natural docs [00:03] markq has joined the channel [00:04] mc: ah ok [00:04] ben_alman: it did a good job, but not perfect. none of them are [00:04] mc: right [00:04] joshsmith: I've tried passing in app to that constructor, passing in app during the require() step [00:04] joshsmith: nothing seems to work [00:04] ben_alman: it's impossible to auto-generate docs when you're using arguments [00:05] konobi: joshsmith: missing comma after the first require? [00:06] joshsmith: konobi: hah, yes. but that breaks things even more [00:06] ben_alman: oh wow, github can parse .pod [00:06] ben_alman: that's pretty sweet [00:06] ben_alman: never noticed [00:07] ben_alman: i will definitely check that out [00:07] konobi: joshsmith: oh... you're called the constructor and sending that back as the export [00:07] ben_alman: anyone know if there's a javascript pod parser? i'd love to see a preview before committing [00:07] joshsmith: konobi: what should I be doing? [00:08] joshsmith: just module.exports = Company; ? [00:08] konobi: yarp [00:08] plow: what's the recommended node testing framework? [00:08] cmr: plow: there isn't one, there are many [00:08] plow: cmr: can you recommend one :) ? [00:09] cmr: plow: I like tap [00:09] plow: cmr: any other good ones I should consider? [00:09] joshsmith: thanks konobi [00:09] cmr: plow: I've heard good things about mocha and nodeunit [00:09] joshsmith: plow: mocha [00:09] konobi: joshsmith: of course you then need to pass app in within test.js [00:09] plow: nodeunit sounds official [00:09] joshsmith: mocha is super-extensible [00:09] cmr: It isn't. [00:09] joshsmith: konobi: yeah, got it [00:09] jaequery has joined the channel [00:09] cmr: (@plow, not @johnsmith) [00:09] plow: so mocha? [00:09] cmr: s/hn/sh/ [00:10] joshsmith: ACTION cries. [00:10] gaYak has joined the channel [00:10] cmr: plow: try a few and see what you like [00:10] joshsmith: ACTION thought he was being hated, and then *was* hated [00:10] plow: cmr: I'll have a loook around, thanks [00:10] joshsmith: cmr: mocha will let you play around with different flavors of testing [00:10] mmalecki: I like vows and tap [00:10] joshsmith: you can use should, assert, or whatever [00:11] joshsmith: plus you can have a cool landing strip reporter: http://visionmedia.github.com/mocha/images/reporter-landing-fail.png [00:11] martin_sunset: mmalecki: Take a look a mocha. I switched from vows to it, really like te syntax [00:11] Hanspolo has joined the channel [00:11] spolu has joined the channel [00:12] mmalecki: martin_sunset: I know, I tried mocha [00:12] cmwelsh has joined the channel [00:12] mmalecki: martin_sunset: still, I prefer vows [00:12] sstainsby has joined the channel [00:12] mmalecki: I like this mocha feature, lol https://github.com/visionmedia/mocha/blob/master/bin/_mocha#L268-283 [00:13] SamWhited has joined the channel [00:16] joshsmith: anyone here use node-mysql [00:16] plow: cmr: should 'npm install tap' make tap an env var, is that how you run tests in a direcotry? [00:17] konobi: just use the tap script [00:17] konobi: (or the tapr scripts) [00:17] plow: konobi: where? [00:17] konobi: https://github.com/jeffbski/tapper [00:18] tomlion has joined the channel [00:19] noodletraveler has joined the channel [00:20] plow: konobi: seems to be working thanks [00:20] joshsmith: woohoo! got my database testing to work! [00:20] Wizek-other has joined the channel [00:20] joshsmith: perfect timing, too. dinner's ready [00:21] Aria has joined the channel [00:21] plow: konobi: I'm just getting this error: execvp(): Permission denied [00:21] CIA-109: node: 03Ryan Dahl 07v0.6 * r2cddcdf 10/ (446 files in 63 dirs): Merge branch 'v0.6' of github.com:joyent/node into v0.6 - http://git.io/tFMkxQ [00:21] CIA-109: node: 03Ryan Dahl 07v0.6 * rd393be4 10/ (node.gyp vcbuild.bat): support nosnapshot in vcbuild.bat - http://git.io/tRMFMg [00:22] sylvinus has joined the channel [00:22] konobi: mmalecki: have you tried "prove" with a tap based test script yet? [00:23] ryanfitz has joined the channel [00:23] LukeBrookhart has joined the channel [00:23] tokumine has joined the channel [00:23] devongovett has joined the channel [00:24] mikeal has joined the channel [00:25] mmalecki: konobi: nope, should I? [00:26] konobi: mmalecki: it just shows some of the benefit of having tap [00:26] MUILTR has joined the channel [00:26] socketio\test\77 has joined the channel [00:26] CIA-109: node: 03Ryan Dahl 07v0.6 * rbca88b2 10/ (node.gyp vcbuild.bat): support nosnapshot in vcbuild.bat - http://git.io/qh08OQ [00:26] konobi: assuming your script has `#!/bin/env node` at the top... you should be able to `prove --color --ext=js tests/some_test.js` [00:27] teadict: does someone knows of any CRUD scaffolding modules? [00:27] ly- has joined the channel [00:27] CIA-109: node: 03Ryan Dahl 07master * r8e5674f 10/ (47 files in 13 dirs): Upgrade V8 to 3.8.5 - http://git.io/8-SMHw [00:27] michaelhartau has joined the channel [00:28] plow: anyone seen this error with tapr? [00:28] plow: Assert: "Timeout!", found: undefined wanted: undefined timers.js:83 [00:28] plow: my bad [00:28] plow: should have ended the test :S [00:29] plow: tl;dr [00:30] slajax has joined the channel [00:32] martin_sunset has joined the channel [00:33] monokrome has joined the channel [00:37] zitchdog has joined the channel [00:38] Gekz has joined the channel [00:38] Gekz has joined the channel [00:38] Juan77 has joined the channel [00:40] teadict: `npm WARN node-proxy@0.5.2 package.json: bugs['web'] should probably be bugs['url']` [00:40] teadict: that's been in `npm list` since forever [00:41] pmcalpine has joined the channel [00:42] warz: i see it all the time, yea. [00:42] teadict: I don't care, but y'know, one wonders [00:42] mmalecki: teadict: did you actually ping the author? [00:42] teadict: nou.. [00:42] mmalecki: :) [00:43] teadict: figured it was known and would be fix next release [00:43] mmalecki: teadict: please do - if he doesn't respond, I think isaacs is able to fix it [00:43] jchris has joined the channel [00:44] TheJH: TooTallNate, erm, are you serious about the precompiling modules stuff on the ML? [00:44] mmalecki: TheJH: he is. ryah wants to do it in this way. [00:44] teadict: mmalecki: is email the common contact way? [00:44] mmalecki: TheJH: actually, link me, I haven't seen this thread [00:44] TooTallNate: TheJH: sessir [00:44] mmalecki: teadict: github issues [00:44] teadict: k [00:44] TooTallNate: "ya" I mean [00:45] TheJH: mmalecki, http://groups.google.com/group/nodejs/browse_thread/thread/d0720af27dc072f9 [00:45] TheJH: ryah, mmalecki, TooTallNate, that just sounds wrong to me :( [00:45] TooTallNate: TheJH: I'm sure there will be tools to make it easier [00:46] TheJH: if the registry does it - mhm, well, ok, works for me. if the user does it - cool. if the dev has to do it: UGLY [00:46] TooTallNate: like a multi-platform build system in the cloud [00:46] mmalecki: TheJH: neither it does to me. I can understand some reasoning. [00:46] mmalecki: but well, it's dirty [00:46] TheJH: TooTallNate, which would probably be something connected to npm [00:46] TooTallNate: TheJH: possibly [00:46] TooTallNate: i'm more inclined to not use npm's bin stuff though [00:47] TooTallNate: and just bundle all binaries together in the repo [00:47] TheJH: in the REPO? [00:47] TheJH: binaries in the repo? [00:47] TooTallNate: based off the fact that in my native modules, most of the time, the bindings aren't changing [00:47] TooTallNate: but the JS code is [00:47] slajax has joined the channel [00:47] TheJH: uaaaaaah [00:47] TheJH: still... binaries in the repo... [00:47] TooTallNate: still though, a multi-platform build-system in the cloud is the 1st step [00:48] TooTallNate: TheJH: ehh, I'm doing it already [00:48] TooTallNate: https://github.com/TooTallNate/node-weak/tree/master/compiled [00:48] TooTallNate: i don't think it's that big a deal in the end [00:48] TooTallNate: and it definitely makes it easier for the end-user [00:49] TooTallNate: which is what ryah was intending [00:49] martin_sunset: Looking for a sane way to implement webhooks, any libraries out there? [00:49] plow: now do I do breakpoints in node, can I do it in emacs some how? [00:49] martin_sunset: Plow node-inspector [00:50] clutchski has joined the channel [00:50] konobi: TooTallNate: npants! [00:50] monokrome has joined the channel [00:50] TheJH: TooTallNate, uh... we need some build tools for the devs or for npm or for the users. so, up until now, we let the user side handle it. it should be easier to do it on the target pc than on the devs computer, no? [00:51] teadict: who's using railwayjs? [00:51] TooTallNate: konobi: ??? [00:51] konobi: npats even [00:51] TheJH: so letting the dev do it would just be mad. doing it in the cloud might work... but I still don't really see the benefit [00:52] TheJH: also, this encourages people to use node without being able to fully contribute to the modules they're using [00:52] TooTallNate: TheJH: how so? [00:52] plow: martin_sunset: my god I'm impressed!!! [00:53] konobi: TooTallNate: npats would be a good first step towards that goal i think [00:53] mmalecki: I would never commit a binary [00:53] mmalecki: never fucking ever [00:53] jerrysv: ACTION waits. there will be a day. [00:53] TooTallNate: mmalecki: lol [00:53] konobi: commit... hells no... make available... maybe [00:54] TooTallNate: i think you're being too philosophical about it [00:54] heavysixer has joined the channel [00:54] teadict: fuck you railway, you need to much stuff [00:54] TooTallNate: konobi: where is this npants? [00:54] mmalecki: TooTallNate: no. I just hate turning repo into bloated pile of shit [00:54] teadict: I'll build my own cruds [00:54] TheJH: TooTallNate, well, you're encouraging people to use your native code without being able to just modify and recompile it [00:54] konobi: TooTallNate: it's part of npm [00:54] slajax has joined the channel [00:54] konobi: report-npats [00:54] reid has joined the channel [00:55] Swizec has joined the channel [00:55] mmalecki: look at these idiots https://github.com/playframework/play [00:55] TheJH: TooTallNate, I'd prefer a simple build system for windows over a complicated build system in the cloud which makes sure that developing software locally is a pain in the ass [00:55] mmalecki: *here* https://github.com/playframework/play/tree/master/support [00:55] mmalecki: I MEAN REALLY?! [00:55] mmalecki: zip? [00:55] TheJH: :D [00:56] baoist has joined the channel [00:56] TooTallNate: TheJH: if they're a developer then they shoud know how to recompile it [00:56] mmalecki: TooTallNate: well, all your users are developers [00:56] TooTallNate: JS devs vs. C++ devs I mean [00:56] mmalecki: also, https://github.com/playframework/play/tree/master/python [00:56] mmalecki: TooTallNate: tell people to man up and learn how to compile [00:57] mmalecki: TooTallNate: or just add a simple .bat to do it for them [00:57] TheJH: TooTallNate, I wrote bindings, too, and I know approximately no C++ [00:57] Jarred has joined the channel [00:57] konobi: development vs deployment though? [00:57] Jarred: How big is Node.js? [00:57] Jarred: including libv8 [00:57] TooTallNate: mmalecki: people don't usually have MSVC installed though [00:57] xtianw: sooo big [00:57] konobi: a billion people hours [00:57] Jarred: In file size [00:58] Jarred: (or better put, bytes) [00:58] konobi: Jarred: TIAS [00:58] xtianw: | -------- | <- this big [00:58] TooTallNate: Jarred: depends on the platform [00:58] TooTallNate: version [00:58] TheJH: Jarred, the "node" binary? [00:58] TooTallNate: etc. [00:58] Jarred: The latest stable release on Linux [00:58] TooTallNate: why would you need to know the size in bytes anyway? lol [00:59] dylang has joined the channel [00:59] TheJH: Jarred, 9.2M on my linux machine, why are you asking? [00:59] mmalecki: TooTallNate: well, tell them to install it? I mean, really. it's obvious in unix world. no gcc, gtfo. why can't we make it obvious in windows/ [00:59] TheJH: mmalecki++ [00:59] catb0t: mmalecki now has 1 beer [00:59] konobi: Jarred: which linux, which version, static or non-static, with openssl or not? [00:59] TooTallNate: mmalecki: well you can have that debate with ryah :D [00:59] xtianw: Jarred: 7063936 [00:59] Jarred: xtianw, Thanks [00:59] slajax has joined the channel [00:59] Jarred: I was not seriously wondering if it'd fit onto an Arduino [00:59] TooTallNate: but i don't personally want to have to install MSVC on every comp I use node in [01:00] TheJH: ryah, we know you're here! :P [01:00] konobi: c++ has no stable binary interface... so you need to compile your addons with the same compiler used to build node [01:00] mmalecki: TooTallNate: I've had that debate already. I can understand why he wants to do that - linking is hard and stuff. but I don't feel like checking binaries into repos/making it easy because of poor windows users who can't learn how to fucking compile shit [01:00] CarterL has joined the channel [01:00] konobi: Jarred: it wouldn't run on an arduino... x86 and ARM only [01:01] Jarred: konobi, The newer Arduino's processor's architecture is ARM [01:01] chrisdickinson: mmalecki: ... so what's the problem, say, with using git submodules to link to a binary repo? [01:01] konobi: Jarred: mkay... which arm variant? [01:01] warz: fucking ... shit ... [01:01] Jarred: Cortex ARM3 iirc [01:01] konobi: so armv3? [01:01] justicefries: xtianw: (not to scale) [01:02] TooTallNate: mmalecki: it sounds to me like you're resisinting change since it's mainly for the benefit of windows users [01:02] Jarred: konobi, Probably [01:02] stride: jarred: is the arduino 1.0 in shops already? [01:02] mmalecki: chrisdickinson: no :). I refuse to put binaries in any repo. also, have you tried actually compiling thing on one linux distribution and running on another? [01:02] Jarred: yeah [01:02] TheJH: chrisdickinson, you/some service/... still has to compile your code to that submodule and bump the version in your repo [01:02] Jarred: stride, yeah [01:02] konobi: Jarred: i'd have to check on my ARM box when i get home to get a better size indication [01:02] mmalecki: TooTallNate: that too :) [01:02] stride: jarred: oh, nice [01:02] mmalecki: what konobi, no stable interface [01:02] warz: windows is dangerous [01:02] mmalecki: *konobi said [01:02] TooTallNate: well I like the static library part [01:02] TheJH: warz++ [01:03] TheJH: http://www.fefe.de/nowindows/ [01:03] TooTallNate: for instance, now that libffi is bundled, I can use some of the newer API functions [01:03] skm has joined the channel [01:03] TooTallNate: TheJH: lol [01:04] TheJH: TooTallNate, well, he has a point, no? [01:04] mmalecki: TheJH++ [01:04] TooTallNate: so the new build system haters == the windows haters [01:04] TooTallNate: TheJH: no i completely agree [01:04] mmalecki: TooTallNate: no [01:04] TooTallNate: i just like having my code work everywhere more [01:04] TooTallNate: for the learning experience at least [01:04] mmalecki: TooTallNate: again, please try compiling thing on Fedora and running on Debian (for example) [01:05] TooTallNate: mmalecki: i'll do that and get back to ya ;) [01:05] TooTallNate: but that's an important one, i agree [01:05] mmalecki: TooTallNate: awesome :) [01:05] mashed has joined the channel [01:05] warz: lets just write a vm for our vm [01:05] konobi: libc vs libc6 was a fun one too [01:05] jocafa has joined the channel [01:06] warz: and let somebody maintain vm #1 [01:06] warz: while we all love vm #2 [01:06] konobi: by having a build system in place, you're also giving people the able to build it themselves though... [01:07] mmalecki: konobi: actually, a build system will be hidden from users [01:07] mmalecki: you'll need node source tree to build an addon [01:07] konobi: i'd have thought it'd be open [01:07] nodebiscut has joined the channel [01:07] mmalecki: like, there's a gyp_addon executable somewhere [01:08] brianthecoder has joined the channel [01:08] TooTallNate: mmalecki: ya, i didn't like the fact that gyp_addon wasn't going to be distributed with node :\ [01:08] slajax has joined the channel [01:09] mmalecki: TooTallNate: it just sucks, that's about it. I DON'T WANT MAKE IN MY LINUX NOW. [01:10] TheJH: IMO, compiling stuff anywhere but on the machine where it's going to run is stupid. Devs should be able to just change all code. If code doesn't work, you can fix it and do a pull request. I don't want users of my lib to say "X doesn't work and I don't have the build stuff installed, so I can't fix it" [01:10] mmalecki: TAKE IT AWAY, IT'S DANGEROUS. [01:10] mmalecki: TheJH++ [01:10] clutchski has left the channel [01:11] TheJH: have a look at java land: many people and projects distribute their libs as release zipfiles, not as repos. You don't like something? Work around it. You can't patch the code - as soon as you want the newer version, your changes are gone [01:11] StanlySoManly has joined the channel [01:12] neurodrone has joined the channel [01:12] joshsmith: http://stackoverflow.com/questions/8766493/resetting-mysql-auto-increment-as-tear-down-step-in-node-js-unit-test [01:14] caolanm has joined the channel [01:15] stride: thejh: you clone the repo, make your changes, bundle it up, use it and send a pull request. some people just don't like build chains on production boxes [01:15] odyniec_ has joined the channel [01:16] TheJH: "some people just don't like it" is a very bad reason [01:17] franciscallo has joined the channel [01:18] jbboehr has joined the channel [01:19] Rushing[away] has joined the channel [01:21] fairwinds has joined the channel [01:21] fairwinds_ has joined the channel [01:22] k1ttty has joined the channel [01:22] mmalecki: stride: lol, I don't like downloading untrusted binaries [01:22] fairwinds_ has joined the channel [01:22] RLa: i have some c++ libs i compile on single machine but run on many [01:23] mmalecki: if the build happened on npm server, it'd be fine [01:23] TheJH: mmalecki, yes, also that [01:27] marcello3d has joined the channel [01:27] AvianFlu has joined the channel [01:28] marcello3d has joined the channel [01:30] lzskiss has joined the channel [01:35] Sir_Rai has joined the channel [01:36] metapandava has joined the channel [01:37] fermion has joined the channel [01:37] CIA-109: node: 03isaacs 07v0.6 * rd84a6ba 10/ Makefile : Remove snapshot from Mac binary build - http://git.io/21Xc-g [01:37] CIA-109: node: 03isaacs 07v0.6 * rd5a189a 10/ (6 files in 4 dirs): (log message trimmed) [01:37] CIA-109: node: 2012.01.06, Version 0.6.7 (stable) [01:37] CIA-109: node: * V8 hash collision fix (Breaks MIPS) (Bert Belder, Erik Corry) [01:37] CIA-109: node: * Upgrade V8 to 3.6.6.15 [01:37] CIA-109: node: * Upgrade npm to 1.1.0-beta-10 (isaacs) [01:37] CIA-109: node: * many doc updates (Ben Noordhuis, Jeremy Martin, koichik, Dave Irvine, [01:37] CIA-109: node: Seong-Rak Choi, Shannen, Adam Malcontenti-Wilson, koichik) [01:37] CIA-109: node: 03isaacs 07v0.6 * rff4096f 10/ src/node_version.h : Now working on v0.6.8 - http://git.io/vmh-_Q [01:38] CIA-109: node: 03isaacs 07v0.6 * rd84a6ba 10/ Makefile : Remove snapshot from Mac binary build - http://git.io/21Xc-g [01:38] CIA-109: node: 03isaacs 07v0.6 * rd5a189a 10/ (6 files in 4 dirs): (log message trimmed) [01:38] CIA-109: node: 2012.01.06, Version 0.6.7 (stable) [01:38] CIA-109: node: * V8 hash collision fix (Breaks MIPS) (Bert Belder, Erik Corry) [01:38] CIA-109: node: * Upgrade V8 to 3.6.6.15 [01:38] CIA-109: node: * Upgrade npm to 1.1.0-beta-10 (isaacs) [01:38] CIA-109: node: * many doc updates (Ben Noordhuis, Jeremy Martin, koichik, Dave Irvine, [01:38] CIA-109: node: Seong-Rak Choi, Shannen, Adam Malcontenti-Wilson, koichik) [01:38] CIA-109: node: 03isaacs 07v0.6 * rff4096f 10/ src/node_version.h : Now working on v0.6.8 - http://git.io/vmh-_Q [01:38] CIA-109: node: 03Jon Seymour 07console-to-stderr-switch * rf5fd098 10/ lib/console.js : [01:38] CIA-109: node: Allow stream used by console to be selected by process._console_selector. [01:38] CIA-109: node: Existing behaviour is preserved unless --console-to-stderr has been specified [01:38] CIA-109: node: on the command line. [01:38] CIA-109: node: Signed-off-by: Jon Seymour - http://git.io/y23DXQ [01:38] CIA-109: node: 03Mikeal Rogers 07dgram-error-output-v2 * r698b1da 10/ lib/http.js : getAgent consistancy between https and http - http://git.io/0tZxvA [01:38] CIA-109: node: 03Jon Seymour 07console-to-stderr-switch * r2daeba0 10/ src/node.cc : [01:38] CIA-109: node: Add support for --console-to-stderr switch. [01:38] CIA-109: node: If present, forces console.log() and console.info() to use stderr for output, [01:38] CIA-109: node: Drop logging of stack altogether. Change from console.log to console.error [01:38] CIA-109: node: to avoid polluting stdout with diagnostic output. [01:38] CIA-109: node: Signed-off-by: Jon Seymour - http://git.io/WkZwcA [01:38] CIA-109: node: 03isaacs 07i0.1.90 * r4522bf2 10/ doc/api.markdown : Correct the documentation wrt module loading (+7 more commits...) - http://git.io/kk045g [01:38] Sir_Rai: You should use something like pastebin [01:39] TheJH: Sir_Rai, huh? Are you talking to CIA-109? :D [01:39] Sir_Rai: uhm [01:39] TheJH: TURING TEST COMPLETED :D [01:39] Sir_Rai: yup [01:39] Sir_Rai: xDD [01:41] isaacs: sorry for that [01:41] isaacs: pushed a bunch of extra tags. [01:42] eboy: What happens when you use code to open a UNIX socket on a windows machine? [01:43] TheJH: eboy, automatic installation of a POSIX-compatible system, node RAM dump, reboot, dump reload, code eecution continues [01:43] TheJH: *execution [01:43] chjj: eboy: you computer falls apart [01:43] chjj: your* [01:43] stride: eboy: the singularity happens [01:44] eboy: Perfect! [01:44] eboy: ACTION is not familiar with windows programming [01:44] TheJH: We should really put an error message there saying "Nt supported by your OS. Install Linux? (Y/n)" [01:44] marcello3d has joined the channel [01:44] eboy: what would be the equivalent thing to do? [01:44] captain_morgan has joined the channel [01:44] TheJH: *Not [01:45] chjj: TheJH: YYYYYYYYYYY [01:45] TheJH: chjj, :) [01:45] eboy: yes.exe | node [01:45] TheJH: eboy, I remember reading about windows having some kind of named pipes, too [01:47] wadey has joined the channel [01:51] langworthy has joined the channel [01:51] flip_digits has joined the channel [01:52] rgl has joined the channel [01:58] skm has joined the channel [01:58] elijah-mbp has joined the channel [02:02] hsilberman_ has joined the channel [02:02] zitchdog has joined the channel [02:09] jergason has joined the channel [02:09] kmczn has left the channel [02:11] joshsmith: why is this.company undefined in the create method? https://gist.github.com/7f0634bf31de1aeff8e4 [02:12] eboy: joshsmith: because `this` is not what you think it is [02:12] eboy: instead of callback(null, result), do callback.call(this, null, result) [02:13] eboy: callback(err) → callback.call(this, err); [02:13] joshsmith: eboy: ahhh, the nesting [02:13] eboy: nesting is a possible cause of the cause of the problem [02:13] teadict: you can't touch this [02:14] bkaney has joined the channel [02:15] eboy: ACTION always makes sure callbacks have the expected value of `this` [02:16] joshsmith: eboy: so I should be making that change to the hashPassword method or what? [02:17] c4milo has joined the channel [02:18] eboy: joshsmith: Yeah the changes I just made [02:18] eboy: :14pm :47 < eboy> instead of callback... [02:18] joshsmith: eboy: I have two callbacks within two methods, so I wasn't sure which you meant [02:18] eboy: All of them reall [02:18] eboy: really* [02:19] joshsmith: you pass this to *all* your methods? [02:21] TheJH: that's why coffeescript has a fat arrow :D [02:22] TheJH: => - bind "this" to parent scope [02:22] eboy: yes all of them because `this` on a callback should usually represent the object that added the callback [02:23] eboy: i mean, it should not be surprising what the value of `this` is, and it should not usually be the global object [02:23] joshsmith: ah, fatrocket makes me like coffeescript some, then [02:25] metapandava has joined the channel [02:25] Bonuspunkt has joined the channel [02:25] agnat_ has joined the channel [02:25] aGHz has joined the channel [02:26] joshsmith: argh, I keep getting unexpected token this [02:27] ryan_stevens has joined the channel [02:28] eboy: util.puts (util.inspect (this)) [02:28] eboy: oh wait [02:28] eboy: then your syntax is bad [02:29] fbzhong has joined the channel [02:29] teadict: pastebin is your friend [02:29] Bonuspunk has joined the channel [02:30] fbzhong: Hi, is there any way to get the sockfd in nodejs http server? [02:31] boltR has joined the channel [02:32] BrianE has joined the channel [02:33] fbzhong: Does anyone can help me on how to get the socket fd from http server req or res? [02:33] tmcw has joined the channel [02:36] TooTallNate: fbzhong: why would you need the fd? [02:36] LukeBrookhart has joined the channel [02:36] fbzhong: TooTallNate: I want to use the sendfile facility, which requires the socket fd. [02:37] TooTallNate: ahh, yes [02:38] TooTallNate: have you tried something like this? [02:38] TooTallNate: https://gist.github.com/702695 [02:38] stdarg_ has joined the channel [02:38] disappea_ has joined the channel [02:38] ryanrolds: Woop. Got my TCP/IP Illustrated box set today. [02:39] fbzhong: TooTallNate: I did try it. However, the req.connection.fd is undefined always in git master branch... [02:39] TooTallNate: oh ok, then I think the answer is "not anymore" [02:39] TooTallNate: that code is for < 0.6.0 [02:39] fbzhong: TooTallNate: yes... [02:40] TooTallNate: i don't think there's a way to get the fd on the current versions of node [02:40] fbzhong: ... [02:40] ryanrolds: The FDs shouldn't be going futher then libuv these days. [02:41] k1ttty has joined the channel [02:41] TooTallNate: you need a sendfile abstraction for libuv I guess :p [02:41] fbzhong: It's strange that sendfile will increase performance a log. [02:41] fbzhong: lol [02:41] fbzhong: wish they will implement it soon... [02:41] TooTallNate: not very strange really [02:41] eboy: Maybe you can pipe the fd [02:41] fbzhong: oh? how to pipe the fd? [02:41] ryanrolds: This is a horrible idea, but are you using any of the 0.6.x functionality? [02:42] eboy: Famous last words [02:42] joshsmith: how do I run multiple mocha tests in different dirs at once? [02:42] eboy: "This is a horrible idea, but..." [02:42] shinuza has joined the channel [02:42] fbzhong: actually, I am trying to use the node-spdy module, which requires the 0.7.0 in master branch. [02:43] devongovett has joined the channel [02:43] fbzhong: the performance of node-spdy seems better when testing with static files. [02:44] fbzhong: However, it's not good enough. So that is why I am trying to use sendfile in my tests. [02:44] fbzhong: to get to know the spdy performance improvement in nodes. [02:45] fbzhong: eboy: Hi, I am wondering to know how to pipe the fd? Do you have more comments on that? [02:45] TooTallNate: fbzhong: i don't think sendfile would work in your case then anyways [02:45] eboy: fbzhong: I've never used sendfile but I was throwing a random suggestion [02:45] TooTallNate: since (I'm assuming) SPDY needs to do other things on the wire [02:45] eboy: I think there is a pipe function [02:45] eboy: I can't really say anymore [02:45] johnnychimpo has joined the channel [02:46] rgl has joined the channel [02:48] fbzhong: ok, thanks~ Let me have a try :) [02:49] fbzhong: The node-spdy did some works on spdy, and it works. [02:49] wantez has joined the channel [02:51] [[zz]] has joined the channel [02:52] Aria has joined the channel [02:52] L_star has joined the channel [02:54] overthemike has joined the channel [02:56] johnnychimpo: has anyone had any luck getting server stats in node? [02:56] johnnychimpo: using the os.* I can get CPU + Mem [02:56] johnnychimpo: but without writing my own C module, cant think of a way to get HD or Network [02:57] jxson_ has joined the channel [02:59] michaelhartau has joined the channel [02:59] Aria: That's going to take some OS-specific code anyway. [02:59] Aria: Those aren't things that are any kind of standard. Call out to df or ifconfig? [03:00] boehm has joined the channel [03:00] langworthy has joined the channel [03:00] ryanrolds: johnnychimpo: The ghetto way to do it is with child_process and make calls to bash. [03:00] johnnychimpo: thought about that, kind of feels dirty to keep shelling out [03:00] ryanrolds: JohnBeales: http://stackoverflow.com/questions/8389974/how-to-run-commands-via-nodejs-child-process [03:00] ryanrolds: err doh, johnnychimpo: http://stackoverflow.com/questions/8389974/how-to-run-commands-via-nodejs-child-process [03:01] gigafied has joined the channel [03:01] lsdafjklsd has joined the channel [03:02] johnnychimpo: maybe the only way, os.freemem(); felt so nice! =) [03:02] ryanrolds: Aria is right. It's going to be messy and it's going to be a lot of OS specific stuff. [03:02] Aria: What's the task at hand? [03:03] eboy: Write some C code [03:03] johnnychimpo: a little management console to get all of the stats from the box [03:03] johnnychimpo: yeah, thats what Im thinking too, I saw a post somewhere with some GNU utils I think [03:04] johnnychimpo: kind of hoping someone had done it before, happy to be the first [03:04] ryanrolds: have you hit search.npmjs.org very hard? [03:05] metapandava has joined the channel [03:06] johnnychimpo: yeah, nothing popped out. More stats collections then stats generation [03:06] gigafied: anybody here familiar with express? [03:06] Vennril2 has joined the channel [03:07] deedubs has left the channel [03:08] ryanrolds: i AM A BIT. [03:08] ryanrolds: I am a bit [03:08] lz has joined the channel [03:09] ryanrolds: I saw you're question in #express, I have have an answer. [03:09] ryanrolds: *er don't have [03:09] RLa: ryanrolds, can't 'enter' be sent on terminal by using write('\n')? [03:09] hcchien has joined the channel [03:09] fbzhong_ has joined the channel [03:10] ryanrolds: RLa: I don't know, haven't tried it. That SO page suggests not. [03:11] RLa: nobody mentions sending line end there [03:11] RLa: and write will certanly not do it [03:11] joshsmith: can I/should I be passing app around in express? [03:12] joshsmith: to routes [03:12] ryanrolds: joshsmith: Are you using it for something other then binding routes? [03:12] RLa: ryanrolds, booting windows now, going to try it [03:12] c4milo has joined the channel [03:13] joshsmith: ryanrolds: yeah, I need access to app in my controllers [03:13] joshsmith: so I instantiate them like controller = new Controller(app); [03:13] ryanrolds: What are the controllers doing with it? [03:14] lwille has joined the channel [03:14] joshsmith: ryanrolds: using app.set() to get a MySQL client [03:15] cryptix has joined the channel [03:15] illumina has joined the channel [03:15] illumina has left the channel [03:16] captain_morgan has joined the channel [03:16] illumina has joined the channel [03:16] ryanrolds: I don't see why not, TJ may have reasons it shouldn't be done that way. [03:16] illumina: Is node unit the preferred unit test framework? [03:16] joshsmith: illumina: there is no preferred [03:17] joshsmith: ryanrolds: how would I even pass it in? [03:17] joshsmith: (req, res, app) ? [03:18] RLa: ryanrolds, tested on xp with node 0.6 and also posted it on the so question [03:18] ryanrolds: Are you binding your routes in the controllers? It may already be accessable. [03:18] RLa: i'm pretty sure with bash or other shells you have to do same [03:19] joshsmith: no, the routes, e.g. app.post(), are being defined in app.js [03:19] gregpascale has joined the channel [03:19] ryanrolds: What are you doing to handle MySQL connection being closed by the server? [03:19] plutoniix has joined the channel [03:19] mmalecki: funny thing on testing frameworks: I wrote a node test in bash [03:19] joshsmith: ryanrolds: so that's one thing I wasn't sure about. I'm not doing anything [03:19] joshsmith: that connection is being reused across the entire application space [03:20] mmalecki: https://github.com/nodejitsu/forever/blob/master/test/cli-test [03:20] tomgallacher has joined the channel [03:20] ryanrolds: Having a specific module you require in to each of your controller files may make more sense. [03:20] joshsmith: you mean just a small configuration that exports the client? [03:20] joshsmith: I was worried that'd create a lot of extra code, but it wouldn't be that much extra [03:21] ryanrolds: You can create single connection or a pool for use by anyone including that module. [03:22] ryanrolds: By including I mean requiring. [03:22] joshsmith: which would be better? single or pool? [03:23] tytsim has joined the channel [03:23] ryanrolds: Depends on what you're doing and load. [03:23] gigafied: https://gist.github.com/1573659, I'm calling app.configure… app.set("views") and getting undefined/undefined [03:23] langworthy has joined the channel [03:23] joshsmith: I don't know enough about pooling to really know the high-level differences [03:23] gigafied: anybody seen this behavior before? (this is express) [03:24] ryanrolds: I wouldn't be suprised if the nicer mysql client modules can maintain the pool for you. [03:24] gigafied: and nm, figured it out [03:24] ryanrolds: What was it? [03:25] gigafied: app.configure(function(){this;} != this outside of the closure [03:25] koo3 has joined the channel [03:30] joshsmith: ryanrolds: if I take this approach, how would I change the configuration for tests vs. production? [03:31] joshsmith: if I have it as a separate module, I'm not sure how to require one vs the other depending on environment [03:31] ryan_stevens has joined the channel [03:31] mikeric has joined the channel [03:32] amasad has joined the channel [03:33] Success has joined the channel [03:34] Success: hello [03:34] Success: im using require how do i update that every time the function is called [03:34] dshaw_1 has joined the channel [03:34] illumina: has anyone tried node unit, mocha, and vows -- and then picked one? I'd like to save time comparing them :-) [03:35] markq: mocha [03:35] Success: idk what those are soo... [03:35] markq: i love how they pick coffee names [03:35] markq: mocha, expresso, express [03:35] illumina: that the killer feature of mocha? the name? [03:35] markq: no [03:35] markq: the killer feature is that it's awesome [03:35] markq: the name is just a bonus [03:36] Success: what are those? [03:36] okee has joined the channel [03:37] illumina: markq: they certainly have a pretty website. What do you like about Mocha? (other than it being awesome) [03:37] Success: how do I update the require file with a function because right now just putting require inside the function doesn't seem to be doing it [03:38] illumina: Success: what are you trying to do? Your question doesn't make sense [03:39] lsdafjklsd has joined the channel [03:39] Success: ok well im kinda new to node js and im making an irc bot and every pm i want to reload the commands list ( not really never time but eventually make a function that reloads it ) [03:40] Success: so i have irc4.js and irc4_commands.js i want irc4 to require and load irc4_commands.js with a function [03:41] MatthewS has joined the channel [03:41] illumina: Success: read up on Node modules (http://nodejs.org/docs/latest/api/modules.html). make sure you learn about "export" to define your public interfaces from modules. [03:41] jaket has joined the channel [03:42] bingomanatee: if I want to access the ejs object in express to add filters, how do I get to it? [03:43] rasterburn has joined the channel [03:44] blueadept has joined the channel [03:44] mikeal has joined the channel [03:44] jakehow has joined the channel [03:44] illumina: bingomanatee: the expressjs docs explain how it works. Checkout the "view rendering" section in the guide [03:45] aidanns has joined the channel [03:46] tomlion has joined the channel [03:46] Success: so i do new require("./irc4_commands.js").exports ?? but i cant do that immediatly [03:47] sj26: Success: you shouldn't need the .exports on the end [03:47] bradleymeck has joined the channel [03:47] Success: just do new require("./page.js") ?? what if its not immediate though? does it not matter? [03:48] illumina: Success: the "exports" object is what gets returned by require() [03:48] illumina: you can think of it like… when require is run, it will load the file and execute it, then return the exports object [03:48] Success: var cmds=new require("./irc4_commands.js"); cmds is same every time (cache) even when i update the page [03:49] joshsmith: is there any way I can run one set of mocha unit tests and then run another set afterwords [03:49] joshsmith: the async nature of the testing is screwing things up for me otherwise [03:50] dr0id has joined the channel [03:50] Success: joshsmith: from texas? [03:50] tomlion_ has joined the channel [03:50] joshsmith: no? [03:50] Success: ok nvm thought you were someone else [03:50] joshsmith: well, yes, but no [03:50] monteslu__ has joined the channel [03:50] joshsmith: ACTION forgot he was born in T [03:50] saikat has joined the channel [03:50] joshsmith: X [03:51] jxie_ has joined the channel [03:52] joshsmith: there has to be a way to sensibly do this [03:53] cjm has joined the channel [03:56] sheng_ has joined the channel [03:57] Success: it doesnt work [03:59] mikeal has joined the channel [04:00] caludio has joined the channel [04:00] markq: any tips on where to start learnign express from [04:00] markq: learning [04:00] Success: i just want to update require [04:01] joshsmith: markq: the docs? [04:01] joshsmith: they're pretty complete [04:04] rasterburn has left the channel [04:11] kazupon has joined the channel [04:11] Success: oh i guess i have to reload bot every time [04:15] Lingerance: Success: I load my commands from a DB (for my bot), just: this.commandList[name] = new Function('m', body) [04:15] Success: what eval? [04:15] voidvector has joined the channel [04:15] Lingerance: Effectively yes, effectively that's the same thing that require() does. [04:16] Success: alright i guess thanks [04:16] Lingerance: Where m is a Message object that can be used to make the bot do things. [04:17] Success: https://pastee.org/n2btr thats what my commands look like atm [04:18] insin: 0.6.7? omg [04:19] insin: to the nvm-mobile [04:20] voidvector: node is written entirely in C + javascript, right? [04:21] vol4ok has joined the channel [04:23] slajax has joined the channel [04:23] ringzero__ has joined the channel [04:25] gavin_huang has joined the channel [04:28] k1ttty_ has joined the channel [04:29] aoberoi has joined the channel [04:31] MUILTR has joined the channel [04:36] mikeal has joined the channel [04:36] fastest963 has joined the channel [04:37] AAA_awright: voidvector: Well, C++ [04:37] JHartig_ has joined the channel [04:37] AAA_awright: Some of the build system is python (*gag*) [04:38] voodootikigod_ has joined the channel [04:40] dexter_e has joined the channel [04:41] MatthewS has joined the channel [04:42] voidvector: so it would theoretically possible to write a compiler that compiles node-based JS file into binary files, am i right? [04:44] tim_smart: voidvector: Node currently includes the core js source files in the node binary yes [04:45] tim_smart: But I'm not sure if anyone has offered a solution to add more ecmascript source files to the node binary. I guess you could fork node and patch from there. [04:46] tbranyen: might be able to do that within visual studio now too [04:49] tim_smart: voidvector: https://github.com/joyent/node/blob/master/node.gyp#L207 [04:50] JdpB42 has joined the channel [04:50] voidvector: ah, thanks tim, i didn't know this was already included [04:51] amigojapan has joined the channel [04:52] amigojapan_ has joined the channel [04:52] tim_smart: Does node now use gyp by default? [04:53] disappea_ has joined the channel [04:54] wilmoore has joined the channel [04:55] jetienne has joined the channel [04:55] Druide_: http://apina.biz/53738 [04:56] kitt has joined the channel [04:57] cyberRodent has joined the channel [04:57] djbell has joined the channel [04:58] bradleymeck has joined the channel [04:58] rauchg has joined the channel [05:00] brianloveswords has joined the channel [05:02] nicholas_ has joined the channel [05:02] devongovett has joined the channel [05:05] jxie has joined the channel [05:05] OmidRaha has joined the channel [05:06] insin has joined the channel [05:08] neoesque has joined the channel [05:09] djbell has joined the channel [05:11] lz1 has joined the channel [05:14] dshaw_ has joined the channel [05:14] jxie has joined the channel [05:14] chadskidmore has joined the channel [05:19] jaket has joined the channel [05:23] wedtm has joined the channel [05:28] Shaunzie has joined the channel [05:29] meso has joined the channel [05:30] boltR has joined the channel [05:37] jacobolus has joined the channel [05:37] secoif has joined the channel [05:38] secoif has joined the channel [05:40] ovaillancourt has joined the channel [05:40] devaholic has joined the channel [05:42] Treffynnon has joined the channel [05:42] springmeyer has joined the channel [05:42] brianloveswords has joined the channel [05:43] mast3rof0 has joined the channel [05:44] mashed has joined the channel [05:45] CIA-109: node: 03koichik 07v0.6 * r57653ad 10/ (3 files): docs: small changes. - http://git.io/44WsLg [05:47] socketio\test\75 has joined the channel [05:50] socketio\test\70 has joined the channel [05:52] ryanfitz has joined the channel [05:55] nicholasf has joined the channel [05:59] Shaunzie has joined the channel [05:59] socketio\test\48 has joined the channel [06:00] mashed has joined the channel [06:01] socketio\test\30 has joined the channel [06:01] djbell has joined the channel [06:06] ly- has joined the channel [06:10] sebastia_ has joined the channel [06:12] mikegerwitz has joined the channel [06:12] mikegerwitz has joined the channel [06:14] threedaymonk has joined the channel [06:18] illumina has joined the channel [06:19] voodootikigod_ has joined the channel [06:19] bengl has joined the channel [06:23] illumina: I need to make a full copy of a string. is there some trick that I'm missing? new String(org); org.toString(); and org.valueOf(); don't see too work [06:23] systemfault: illumina: It doesn't make sense as strings are immutable in JS [06:25] isaacs has joined the channel [06:25] illumina: okay let me be more specific than. I am looping through an array and defining accessor properties for each element. I am then using the element string within the anonymous accessor functions. And that "element" variable is being reused across each anonymous function (like a pointer/reference). [06:25] illumina: I do not want that behavior [06:25] _jzl has joined the channel [06:25] LarsSmit has joined the channel [06:27] rurufufuss has joined the channel [06:27] SubStack: illumina: that sounds like a container reference problem, not a string problem [06:27] SubStack: .. var x = { s : 'a' }, y = { s : x.a }; x.s += 'b'; [ x, y ] [06:27] catb0t: [{ s: "ab" },{ s: undefined } ] [06:27] SubStack: .. var x = { s : 'a' }, y = { s : x.s }; x.s += 'b'; [ x, y ] [06:27] catb0t: [{ s: "ab" },{ s: "a" } ] [06:27] SubStack: that, rather [06:28] SubStack: whereas if you copy the object reference [06:28] SubStack: .. var x = { s : 'a' }, y = x; x.s += 'b'; [ x, y ] [06:28] catb0t: [{ s: "ab" },{ s: "ab" } ] [06:28] SubStack: illumina: or it could be a problem with how you're looping [06:29] SubStack: the async for loop trap [06:29] SubStack: in which case try swapping for for forEach [06:29] SubStack: but really without any code it's all speculation [06:29] illumina: hmm. okay its not async… but i am using coffee. so I suspect it may be doing something stupid along the lines of what you're suggesting. let me inspect the JS [06:31] SubStack: or just paste the code someplace [06:32] illumina: okay check it: (this is the coffee) http://pastebin.com/UeAnje5B [06:32] SubStack: .. var res = []; function push (fn) { process.nextTick(res.push.bind(res, fn)) }; for (var i = 0; i < 5; i++) push(function () { return i }); res [06:32] catb0t: Exception: ReferenceError: process is not defined [06:32] SubStack: beh [06:32] SubStack: illumina: don't use a for loop [06:33] SubStack: for loops don't close over state [06:33] SubStack: use a forEach [06:34] SubStack: or else wrap the whole for body in a (function (key) { ... })(key) [06:34] SubStack: however you would do that in coffee script [06:34] Carmivore has joined the channel [06:34] illumina: hmm okay… let me read up [06:38] illumina: well that worked. cool. [06:38] illumina: not totally sure I understand why though :-) [06:42] jaket has joined the channel [06:43] ly-_ has joined the channel [06:44] kazupon has joined the channel [06:45] poop has joined the channel [06:46] poop: whois @isaacs [06:46] isaacs: i am [06:46] isaacs: whois @poop? [06:46] isaacs: did you mean to type "/whois isaacs"? [06:46] mikeal has joined the channel [06:49] jtsnow has joined the channel [06:50] saikat_ has joined the channel [06:51] sharkbird has joined the channel [06:51] jayne has joined the channel [06:52] disappea_: Hey if I have the following [ [userId, targetId], [userId, targetId], .. ] and I want to make it { targetId: [userId, userId] } aside from groupby what can I apply? [06:52] CIA-109: node: 03koichik 07v0.6 * r9ef3c62 10/ ChangeLog : docs: fix ChangeLog - http://git.io/h6Rtsg [06:54] nickradford has joined the channel [06:56] nickradford: Hi, I have a node server, running on my mac fine, but on our ubuntu deployment server, when running `node app` or `cake`, I get "Cannot find module 'zlib'". I'm under NDA, as this is a work project, so will give details where I can. Thanks in advanced :) [06:56] mashed has joined the channel [06:58] aidanns has joined the channel [06:59] RLa: node uses own zlib or system one? [06:59] nickradford: We actually have no calls to zlib in our codebase. We're using 0.4.7 though, so I'm worried that might be an issue [07:00] sj26: nickradford: 0.4.7 doesn't look like it includes zlib: http://nodejs.org/docs/v0.4.7/api/ [07:01] herbySk has joined the channel [07:01] sj26: github's new code browsing styles are really throwing me [07:01] nickradford: Yeah, I understand that. I'm pretty sure none of our dependencies require zlib (otherwise npm install would fix that). [07:02] RLa: hm, 0.6 includes zlib source [07:02] nickradford: And we've had this server up for a couple months, but some recent change is causing this issue. [07:03] saikat has joined the channel [07:03] catshirt has joined the channel [07:03] RLa: sj26, in older times you needed separate npm package for zlib functionality? [07:04] nickradford: We're not actively using zlib. A ctrl+f for 'zlib' returns 3 text files, none of which are executable code. [07:04] sj26: nickradford: can you post your strack trace? [07:04] nickradford: sure thing [07:04] isaacs has joined the channel [07:04] sj26: possible one of your required modules is using zlib [07:04] nickradford: paste bin or gist, whats the standard here? [07:04] sj26: and hasn't marked its node dependency properly [07:04] sj26: I prefer gists [07:04] nickradford: coolio [07:06] nickradford: https://gist.github.com/1574066 [07:07] nickradford: I added our package.json in there too [07:08] sj26: okay, check what /home/qui_test/deploy/qui/node_modules/open.core/lib/src/open.server/util/converters/pygments.coffee line 10 is requiring [07:08] nickradford: line 10 is actually a comment, which says "See: http://pygments.org/" [07:09] nickradford: and restler.js line 7 is a new line. [07:09] catshirt has joined the channel [07:10] sj26: nickradford: ah, it's basing the line numbers on the compiled javascript, not coffeescript [07:10] sj26: looks like restler [07:11] Shaunzie: nickradford: your using coffee script so line numbers won't matchup correctly. Try compiling the coffee script and examining the rendered source [07:11] nickradford: rastler is raw js [07:11] sj26: ... and if we look up the strack trace which I didn't do because i'm a tool, /home/qui_test/deploy/qui/node_modules/open.core/node_modules/restler/lib/restler.js line 7 [07:12] nickradford: it's a new line, there is a require on line 6, which requires("./multipart"), part of the raster lib [07:12] catshirt has joined the channel [07:13] nickradford: er, restler (it's late for me) [07:14] nickradford: Shaunzie: line 10 of the compiled pygments.coffee is also a new line, it's previous require statement is for restler. [07:15] sj26: npm registry seems very slow :-/ [07:16] mdel has joined the channel [07:17] nickradford: so, if it is restler that requires zlib, and I have zlib1g, zlib1g-dbg, and zlib1g-dev installed on our server, what could the issue be? [07:18] sj26: restler: zlib = require('zlib'); [07:18] vguerra has joined the channel [07:19] sj26: that's a requirement on a nodejs library called zlib [07:19] metapandava has joined the channel [07:19] sj26: which is built-in to recent versions of node, but not in 0.4.7 [07:19] nickradford: okay, like version 6. [07:19] sj26: restler should have a node requirement of later versions [07:19] nickradford: yes it should, lol [07:19] nickradford: why is it working fine on my macbook then? I am also developing with 0.4.7 [07:19] _jzl has joined the channel [07:20] sj26: on your server, do `npm -g install zlib` [07:20] isaacs: sj26: why? zlib is built into node now [07:20] sj26: isaacs: because he's using an old version [07:20] isaacs: sj26: oh, that [07:20] isaacs: sure. [07:20] nickradford: sj26, we are working in 0.4.7, pm's decision [07:21] sj26: isaacs: I'm also using 0.4 because a bunch of stuff was removed, mainly socket support [07:21] isaacs: nickradford: your prime minister is making engineering decisions? [07:21] nickradford: lololol [07:21] skm has joined the channel [07:21] isaacs: there is no sane reason to use 0.4.7. [07:21] nickradford: ;) [07:21] sj26: i'm using 0.4.13 [07:21] isaacs: even if you are stuck on 0.4, use 0.4.12 [07:21] sj26: 12 [07:21] sj26: rather [07:21] isaacs: but don't do that. [07:21] isaacs: seriously. [07:21] isaacs: 0.6 is much much better. stabler, faster, more secure. [07:22] nickradford: I agree, we'll likely be upgrading soon, just wanted to keep things sane while we were doing a bulk of this development. [07:22] isaacs: more future proof [07:22] sj26: yes, but removed a bunch of sockets functinoality :-( [07:22] nickradford: is this *the* issacs? [07:22] isaacs: ACTION is the isaacs [07:22] nickradford: I'm quoting you on this, as proof we need to jump ship to 0.6 [07:22] isaacs: sj26: all the sockets functionality removed was unix domain sockets. (not unix sockets) [07:22] sj26: isaacs: while you're here, can I add the ttl/broadcast/multicast facilities back into libuv and nodejs? [07:22] isaacs: sj26: nope. [07:22] isaacs: sorry [07:23] sj26: but these are cross platform [07:23] isaacs: bring it up on the dev list. [07:23] sj26: windows supports ttl, broadcast and multicast [07:23] isaacs: the people to convince are ben, bert, and igor. [07:23] sj26: alternative is to extend something like unix_dgram to support inet too? [07:23] sj26: (I've been doing both) [07:24] sj26: otherwise networking stuff like mdns is impossible [07:26] mikeric has joined the channel [07:26] boltR has joined the channel [07:26] nickradford: Thanks sj26 and issacs :) [07:28] nickradford: Would you recommend I contact restler's devs about listing zlib as a requirement? [07:29] sj26: nickradford: yes, although that's tricky because it depends on the version of node [07:30] sj26: pretty sure npm can handle that though [07:30] nickradford: maybe at least updating there wiki [07:30] isaacs: nickradford: yes. [07:30] isaacs: nickradford: if they do require("zlib/") (with the slash) then they'll ge the version npm installed, not the native. [07:30] isaacs: nickradford: but they should probably move to using the native one. [07:31] isaacs: it's much more tested, doesn't require compilation at install-time, etc. [07:31] nickradford: as in bumping up the required node version [07:34] pig_ has joined the channel [07:35] qsobad has joined the channel [07:35] HT has joined the channel [07:36] mikeal has joined the channel [07:37] slaskis has joined the channel [07:39] pig has joined the channel [07:44] pig has joined the channel [07:47] rgl has joined the channel [07:47] fangel has joined the channel [07:48] topaxi has joined the channel [07:51] abraxas has joined the channel [07:58] _Tristan has left the channel [08:02] segv has joined the channel [08:02] koo3 has joined the channel [08:05] break57382 has joined the channel [08:06] jay_zawrotny has joined the channel [08:07] illumina: I'm trying to create fairly complicated parent/child class relationship and I need to do something that is roughly equivalent to defining code in the Parent that runs when the Child is being defined. (or possibly after the fact enumerate all Child types and then inject some data into them). Any advice on how to approach this? [08:07] lwille has joined the channel [08:08] SomeoneWeird_ has joined the channel [08:10] meso has joined the channel [08:10] RLa: illumina, what is the goal of it [08:11] SomeoneWeird_ has joined the channel [08:12] illumina: I want to run some code at app-start up time that caches some values in each Child. And the actual class name of the Child is a parameter to the start-up code [08:12] illumina: (I'm making a database ORM Model base class and want to pre-cache db connections where the child class names are the tables) [08:13] RLa: and entities should be created using new keyword? [08:13] davetayls has joined the channel [08:13] slajax: So why not use typical prototypical inheritance illumina ? [08:14] RLa: otherwise dependencies could be injected by factory [08:14] RLa: i.e new MyClass() vs orm.create(MyClass) [08:14] illumina: slajax: well… i'm using coffeescript. so it has a more typical class hierarchy setup with an *extends* keyword. If this was pure JS I could just put some code where the parent/child relationship is setup. [08:14] illumina: RLa that is possible. but I am trying to allow the new keyword [08:14] davetayls has joined the channel [08:14] stonebranch has joined the channel [08:15] k1ttty has joined the channel [08:18] RLa: my last attempt on orm ended with primitive sql generation class and nothing more :/ [08:18] astropirate has joined the channel [08:20] mmyjona has joined the channel [08:21] disappea_: Anyone know why this line is throwing error? _.chain(this.users).values().each(function(user) { user.notifyEnd(); }); this.users is { userId: user instance}. Error: TypeError: Object function (obj) { return new wrapper(obj); } has no method 'chain' [08:23] RLa: looks like function is used where the result of function application should be used [08:24] RLa: hm, that does not help debugging the code [08:24] disappea_: Oh it's some retarded conditions that I forgot to add [08:24] disappea_: sorry my bad [08:27] rendar has joined the channel [08:28] ritch has joined the channel [08:30] Morkel has joined the channel [08:31] whitman has joined the channel [08:31] disappea_: So annoying that _.chain(myObject).values() will turn it to non wrapper [08:32] catshirt has joined the channel [08:33] bergie has joined the channel [08:33] Shrink has joined the channel [08:33] Shrink has joined the channel [08:34] agnat has joined the channel [08:34] disappea_: How come this raises an error RLa _.chain(_.values(this.users)) [08:35] disappea_: where this users = { userId: userinstance} [08:40] Guest80789 has joined the channel [08:40] RLa: same error as above? [08:43] disappea_: Do you use nodeunit? [08:43] disappea_: I am trying to debug why [08:43] disappea_: but I dun think it supports node-inspector [08:45] ph^ has joined the channel [08:46] Margle has joined the channel [08:49] versicolor has joined the channel [08:51] kevwil has joined the channel [08:51] kevwil has left the channel [08:57] Guest80789 has joined the channel [08:58] rendar has joined the channel [08:59] bingomanatee_ has joined the channel [09:00] SubStack: beh I keep getting shasum errors pushing a new version of dnode [09:00] Druide_ has joined the channel [09:00] wilmoore has joined the channel [09:01] SubStack: there it goes finally [09:01] aliem has joined the channel [09:01] khrome has joined the channel [09:04] gamera has joined the channel [09:06] uwek has joined the channel [09:10] nickynyfiken has joined the channel [09:11] ppcano has joined the channel [09:13] magnetik has joined the channel [09:14] nickynyfiken: if I for examppe require logme after doing npm install on it I can use it everywhere in app.js but what about if I want to use it in /router/index.js [09:14] nickynyfiken: ? [09:14] nickynyfiken: do I have to make a require in each file i want to use it? [09:15] Shrink has joined the channel [09:15] Shrink has joined the channel [09:16] koo3 has joined the channel [09:18] phluffy has joined the channel [09:20] rgl has joined the channel [09:21] LeMike has joined the channel [09:23] Margle has joined the channel [09:25] Locke23rus has joined the channel [09:28] nickynyfiken: is it possible to make so that app.js becomes app.coffee or does it have to be js? [09:30] gamera has joined the channel [09:33] hellp has joined the channel [09:35] swhit has joined the channel [09:37] jbpros has joined the channel [09:37] hz has joined the channel [09:39] adambeynon has joined the channel [09:40] fracek has joined the channel [09:43] aoberoi has joined the channel [09:45] Shrink has joined the channel [09:45] Shrink has joined the channel [09:45] Libra102 has joined the channel [09:50] qsobad_ has joined the channel [09:51] Sami_ZzZ has joined the channel [09:51] boehm has joined the channel [09:52] break57382 has joined the channel [09:52] thalll has joined the channel [09:52] k1ttty has joined the channel [09:53] braoru has joined the channel [09:56] SubStack: socket.io stupid logging thing is crashing the new deploy still >_< [09:58] vol4ok has joined the channel [09:58] cjm has joined the channel [09:58] pors has joined the channel [09:59] aoberoi: anyone else here doing codesprint? [09:59] aoberoi: they don't have javascript as one of the languages for submissions, psh. [09:59] SubStack: what's what? [09:59] andrenkov has joined the channel [10:00] `3rdEden has joined the channel [10:04] Shrink has joined the channel [10:04] rgl has joined the channel [10:05] V1 has joined the channel [10:05] joshgillies has joined the channel [10:05] Wizek has joined the channel [10:08] `3rdEden has joined the channel [10:09] mmalecki: SubStack: just wait :) [10:09] mmalecki: SubStack: I have something quite cool upcoming, you'll want to use it instead of socket.io [10:09] guybrush: wooot [10:10] SubStack: well there's engine.io and socksjs [10:10] SubStack: but porting over to different transports is lots of work [10:11] unmanbearpig has joined the channel [10:11] mmalecki: SubStack: all I'm going to say is 'soon' :) [10:12] mmalecki: but no, really. my thing is just logic - transports are totally decouple [10:12] mmalecki: *decoupled [10:12] mmalecki: so you can use http, tcp, udp, localStorage in browser, whatever [10:13] mara has joined the channel [10:13] SubStack: that's nifty [10:13] mmalecki: :) [10:13] SubStack: specifically I'm running into a bug inside of socket.io through dnode right now with the new browserling redesign [10:14] mmalecki: SubStack: how can logging crash it? [10:14] SubStack: I know right? [10:14] SubStack: this.log.info('booting client') [10:14] SubStack: TypeError: Cannot call method 'info' of undefined [10:14] SubStack: is how [10:14] mmalecki: lolwtf? [10:15] mmalecki: that's lame as fuck [10:15] insin: someone accidentally the whole this? [10:16] mmalecki: SubStack: fix it and bundle socket.io with this line removed. you're hosting on your own server or on nodejitsu? [10:16] SubStack: it's on rackspace [10:16] SubStack: in particular this is running on a windows desktop [10:16] mmalecki: yeah, I mean, hotfix in production [10:16] SubStack: pkrumins is already on the case [10:17] michaelhartau has joined the channel [10:17] mmalecki: that sounds good :) [10:17] shinuza has joined the channel [10:17] Hanspolo_ has joined the channel [10:18] rio{ has joined the channel [10:18] westo has joined the channel [10:19] plow: hello [10:19] westo: Anyone used Heroku for a production app? [10:20] plow: westo: not in production [10:20] plow: westo: I'll probably use joyent since heroku doesn't support websockets [10:21] ritch: does nodejitsu support web sockets? [10:21] LarsSmit has joined the channel [10:21] mmalecki: ritch: yeah, we do [10:21] westo: plow: are there any indication to the costs for joyent? [10:21] ritch: does that mean socket.io will work over http-proxy [10:21] plow: https://github.com/joyent/node/wiki/Node-Hosting [10:21] mmalecki: ritch: yes [10:22] plow: westo: $60 per month min [10:22] plow: westo: I haven't been able to get a free server, says they are used up [10:23] RLa: why http://www.joyent.com/services/cloudhosting gives 404 [10:24] SubStack: socket.io works with http-proxy [10:24] plow: mmalecki: when sholud I get an invitation for nodejitsu? [10:24] RLa: btw, linode vps are 20$ per lowest machine, using these for some projects [10:24] westo: plow: I was looking at heroku for an app I'm working on but the database add-ons are a little expensive. For this app it will probably cheaper to use EC2 and MySQL. [10:25] plow: westo: it will always be, a lot are backed by EC2 [10:25] RLa: westo, do you have more specific requirements [10:25] mmalecki: plow: maybe now :) ? [10:25] martin_sunset: Westo you can always use external services with heroku like monohq or xeround [10:25] plow: mmalecki: did you jsut send it ? :) [10:25] mmalecki: plow: join #nodejitsu, I'll grab some details and activate you [10:26] plow: mmalecki: thanks! [10:27] westo: RLa: I'm in the initial stages of developing an app. Very basic data entry type app. Basically just need node and MySQL at this stage. [10:27] RLa: i guess then vps is cheapest choice [10:28] RLa: and probably gives most flexibility in your environment [10:29] westo: RLa: I think so. I'll take a look at linode [10:29] plow: westo: check out nodejitsu, they have a great attitutde [10:29] LarsSmit has joined the channel [10:29] SubStack: and spinny cubes [10:30] mraleph has joined the channel [10:30] `3rdEden: rewriting all the things [10:30] sveimac has joined the channel [10:30] mmalecki: `3rdEden: we're almost done :) [10:30] `3rdEden: =p [10:30] SubStack: curl -sSN surrender-cube.nodejitsu.com [10:31] mmalecki: SubStack++ [10:31] catb0t: SubStack now has 1 beer [10:32] churp has joined the channel [10:32] SubStack: I keep having to restart it though [10:32] SubStack: some interval leak somewheres [10:32] disappea_ has joined the channel [10:33] mmalecki: SubStack: setInterval(process.exit, whatever) [10:33] mmalecki: we'll restart it [10:33] SubStack: hah [10:33] shinuza has joined the channel [10:34] mmalecki: SubStack: it's all forever man :) [10:34] Shrink has joined the channel [10:34] Shrink has joined the channel [10:34] SubStack: pow [10:35] SubStack: there, every 30 seconds why not [10:36] mara has joined the channel [10:36] mmalecki: ACTION goes to see the epic logspam [10:38] __doc__ has joined the channel [10:40] RLa: i'm not seeing forced restarts as actual fix :) [10:40] salva has joined the channel [10:40] RLa: but maybe it's just me [10:41] mmalecki: RLa: because they are not a fix :) [10:42] mmalecki: I'd go nuts after doing it in production [10:42] RLa: remains me clever usage of remotely controlled cd-rom drives to hit server's reset button [10:43] mmalecki: haha [10:43] RLa: http://thedailywtf.com/Articles/ITAPPMONROBOT.aspx [10:44] confoocious has joined the channel [10:44] confoocious has joined the channel [10:47] mmalecki: RLa: yeah, this was awesome [10:48] p1d has joined the channel [10:49] RLa: i have a server here which has homegrown circuit to start it after power blackout [10:50] mmalecki: RLa: there are some professional circuits to do that [10:50] RLa: it would not start itself if power comes back [10:50] mmalecki: and bios can do it for you [10:50] RLa: there was no option for it in bios [10:50] RLa: it is one of older computers [10:50] mmalecki: aw, lame [10:51] andrewfff has joined the channel [10:52] RLa: there is ups too but it only lasts 5 minutes [10:52] salva has left the channel [10:52] RLa: if there is power outage there is high probability it will take longer than 5 minutes [10:52] RLa: last year i had no power for couple of days [10:53] Lokiheero has joined the channel [10:56] saesh has joined the channel [10:56] mmalecki: lol http://www.therestartpage.com/ [10:57] mikeal has joined the channel [10:58] npa has joined the channel [10:58] HardPhuc has joined the channel [11:00] RLa: uh, some good memories [11:04] Shrink has joined the channel [11:04] Shrink has joined the channel [11:04] sylvinus has joined the channel [11:05] HardPhuc: what's the best way to sort an array of objects: [{name: 'someone', count: 3}, {name'someoneelse', count: 5} …. ] [11:05] SubStack: HardPhuc: array.sort(fn) [11:05] insin: .sort(function(a, b) { /* sort logic */ }) [11:06] HardPhuc: I'm interested in the /* sort logic */ part :) [11:06] insin: .sort(function(a, b) { if (a,name < b.name) return -1; if (a.name > b.name) return 1; return 0; }) [11:06] insin: .sort(function(a, b) { return a.count - b.count }) [11:06] broofa has joined the channel [11:06] HardPhuc: thank you [11:07] insin: ACTION tips hat :) [11:07] HardPhuc: I guess a is the current element and b is the next one [11:07] insin: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/sort [11:07] RLa: you could also make some comparison function that takes property name [11:08] insin: yeah, if you want something generic, take a property name, figure out what type it is and perform the appropriate sort based on that [11:09] HardPhuc: great, will try it out, thanx insin++ [11:09] einaros has joined the channel [11:11] tomtomaso has joined the channel [11:13] jomoho has joined the channel [11:16] stefpb has joined the channel [11:17] dylang has joined the channel [11:19] Cromulent has joined the channel [11:23] stagas has joined the channel [11:23] fangel has joined the channel [11:25] dexter_e has joined the channel [11:27] mikl has joined the channel [11:32] booyaa: y0 [11:33] robotmay has joined the channel [11:34] tytsim has joined the channel [11:35] Morkel has joined the channel [11:38] hongymagic has joined the channel [11:39] wantez has joined the channel [11:39] tytsim has joined the channel [11:42] booo has joined the channel [11:43] Shrink has joined the channel [11:43] Shrink has joined the channel [11:48] k1ttty has joined the channel [11:49] hipsters_ has joined the channel [11:49] satyr has joined the channel [11:49] adrianmg has joined the channel [11:51] k1ttty has joined the channel [11:51] stagas has joined the channel [11:52] AndreasMadsen has joined the channel [11:56] EyePulp has joined the channel [11:57] spurge has joined the channel [11:59] plow: why might I not be able to access environment vars from package.json, only my native ENV vars are showing up? [12:00] dexter_e has joined the channel [12:00] adrianmg: hi [12:01] Margle has joined the channel [12:02] thalll has joined the channel [12:03] Dregond has joined the channel [12:03] blup has joined the channel [12:04] Dregond: Anyone knows how to make a UDP connection with node.js? [12:04] Dregond: im trying to connect with a UDP API [12:04] eldios has joined the channel [12:04] jbpros has joined the channel [12:04] AndreasMadsen: Dregond: http://nodejs.org/docs/v0.6.6/api/dgram.html [12:05] Dregond: AndreasMadsen: been trying it but not so sure how to send a request after connecting [12:06] AndreasMadsen: Dregond: There is no connecting in UDP [12:06] descipher has joined the channel [12:06] AndreasMadsen: Dregond: You just send a message and hope somebody will receive it [12:07] Dregond: i mean the socket XD sorry, im not used to UDP stuff, i have no idea why the api would even be in it [12:07] Dregond: i need to send an AUTH command like [12:07] Dregond: AUTH user=baka&pass=baka&protover=25&client=someclient&clientver=1&tag=abc123 [12:07] Dregond: and recive the output of that message being sent [12:08] AndreasMadsen: Dregond: there is no sockets in UDP [12:08] pintofbeer has joined the channel [12:08] AndreasMadsen: Dregond: this is how you send messages http://nodejs.org/docs/v0.6.6/api/dgram.html#dgram.send [12:09] Dregond: Thanks AndreasMadsen =] any idea how to receive from it ? [12:09] tokumine has joined the channel [12:09] AndreasMadsen: Dregond: What is "it" [12:09] Dregond: http://wiki.anidb.info/w/UDP_API_Definition [12:09] colinjonesx has joined the channel [12:10] Dregond: its confusing as hell documentation, one of the reasons why i was pretty stuck on figuring it out. [12:10] AndreasMadsen: Dregond: You will need to create a server: http://nodejs.org/docs/v0.6.6/api/dgram.html#dgram.bind [12:10] eeemsi: does this matter while building nodejs 0.6.7? -> scons: warning: Ignoring missing SConscript 'obj/test/release/SConscript' [12:10] d0k has joined the channel [12:11] AndreasMadsen: Dregond: I do not know that specific API, sorry only normal UDP. [12:11] Dregond: thanks for the help AndreasMadsen, appreciate it =] ill give it atry [12:13] zilch_ has joined the channel [12:17] colinjonesx: I am encountering error suppression in my installation of node (recently compiled 0.6.4 on linux). I have encountered some exception (process.nextTick etc), but for instance running 'node db_test.js' from the test directory of mongodb module outputs nothing??? [12:19] eeemsi: can's someone give the topic another category? something like nodejs released | npm released | nodejs.org | npmjs.org ?? [12:20] eeemsi: s/can's/cant [12:20] petrjanda has joined the channel [12:20] hz has joined the channel [12:21] cnu has joined the channel [12:21] snearch has joined the channel [12:22] TheJH has joined the channel [12:27] tiglionabbit_ has joined the channel [12:28] tiglionabbit_: so the current version of the sqlite package on npm is broken with node 6.x. However, someone has patched it to work and submitted a pull request that hasn't been accepted yet. I can download and build it, but how do I install it? [12:30] mehlah has joined the channel [12:31] TheJH: tiglionabbit, download it in a seperate directory, then do "sudo npm link" without arguments there [12:31] TheJH: tiglionabbit, then go into your projects folder and type "npm link qqlite" [12:32] TheJH: tiglionabbit, that will symlink the package you downloaded instead of downloading the npm version of it [12:32] TheJH: tiglionabbit, or, alternatively, you can directly install from git [12:32] TheJH: tiglionabbit, you can even specify the repository as dependency in your package.json [12:32] TheJH: tiglionabbit, just specify the git:// url [12:33] TheJH: (but the second approach only works if the patch is on master, I think) [12:33] tiglionabbit_: I can install directly from git? [12:33] tiglionabbit_: how? [12:33] tiglionabbit_: npm install (url) ? [12:35] postwait has joined the channel [12:35] tiglionabbit_: hm, that didn't work [12:35] tiglionabbit_: it just gave me a single newline of output and didn't seem to do anything [12:36] tiglionabbit_: man, I'm just trying to get sqlite to work with node 0.6.x [12:36] tiglionabbit_: but it seems to be broken [12:37] tiglionabbit_: what's a simple single-user database I can use? [12:37] Dmitrijus: tiglionabbit_: mongodb. [12:37] akter has joined the channel [12:37] jhbot has joined the channel [12:38] tiglionabbit_: Dmitrijus: heh I was thinking even simpler but I guess... [12:38] Dmitrijus: tiglionabbit_: mongodb is very easy to install/deploy [12:38] TheJH: tiglionabbit, try the first approach, with npm link [12:38] tiglionabbit_: honestly I could just use a json file [12:39] dob_ has joined the channel [12:39] tiglionabbit_: TheJH should it be usable if I just build it and then require it with a path? I think it has other problems... [12:39] modelman has joined the channel [12:39] kazupon has joined the channel [12:39] TheJH: tiglionabbit, mmh, yes, I think that should work, too [12:40] tiglionabbit_: yeah I don't know if there is a working version of it out there anywhere [12:41] lzskiss has joined the channel [12:42] munichlinux has joined the channel [12:42] tiglionabbit_: oh hey, sqlite3 looks similar and more updated [12:44] christkv has joined the channel [12:44] modelman_ has joined the channel [12:45] kriszyp has joined the channel [12:45] QaDeS has joined the channel [12:46] V1 has joined the channel [12:46] Cromulent has joined the channel [12:46] kuebk has joined the channel [12:46] rgl has joined the channel [12:46] kuebk: hi [12:47] kuebk: what can be done using scripts option in package.json [12:47] kuebk: in help there are listed only 2 possible values [12:47] kuebk: preinstall and start [12:47] modelman: Is there any way to get a transcript of the irc chat for the Node Up podcasts? [12:47] kuebk: is there any documentation for other possible options? [12:50] skm has joined the channel [12:52] satyr has joined the channel [12:55] jaminja has joined the channel [12:55] jaminja has joined the channel [12:56] adrianF has joined the channel [12:57] liar has joined the channel [12:57] Dregond has left the channel [13:01] Tricks_ has joined the channel [13:02] scott_gonzalez has joined the channel [13:03] munichlinux: doing a readdir and find stat with isDirectory and isFile is the only to find the directory or a file? [13:06] k1ttty has joined the channel [13:10] kuebk: is preinstall command omitted when there is a wscript file? [13:11] kuebk: there is no possibility to edit it? [13:11] madhums has joined the channel [13:11] stagas has joined the channel [13:13] amasad has joined the channel [13:13] break57382 has joined the channel [13:16] saesh has joined the channel [13:18] lperrin has joined the channel [13:19] k1ttty has joined the channel [13:19] [aTOMics] has joined the channel [13:20] tdegrunt has joined the channel [13:21] kyonsalt has joined the channel [13:25] amasad has joined the channel [13:25] BrianE has joined the channel [13:26] m00p has joined the channel [13:26] stagas has joined the channel [13:27] Hanspolo has joined the channel [13:27] jaket has joined the channel [13:30] _olouv_ has joined the channel [13:34] _olouv_ has left the channel [13:34] Margle has joined the channel [13:35] luke` has joined the channel [13:37] stagas has joined the channel [13:41] stagas has joined the channel [13:42] willwhite has joined the channel [13:43] LarsSmit has joined the channel [13:44] dodo__ has joined the channel [13:44] kuebk has joined the channel [13:45] neurodrone has joined the channel [13:46] Cromulent has joined the channel [13:48] scaner has joined the channel [13:49] Juan77 has joined the channel [13:51] scaner has left the channel [13:51] djcoin has joined the channel [13:52] scaner has joined the channel [13:52] apoc has joined the channel [13:52] scaner has left the channel [13:54] apoc has joined the channel [13:57] gavin_huang has joined the channel [13:57] booo has joined the channel [13:57] uwek has joined the channel [13:57] dolphin278 has joined the channel [13:58] malone has joined the channel [13:59] qsobad has joined the channel [13:59] malsNodes: Does anyone know of a c++ template with a really simple event being returned to node? [13:59] malsNodes: I'd like to duct tape a couple old c programs to be used with node. [13:59] erichynds has joined the channel [13:59] malsNodes: but my c and c++ knowledge is little and mostly forgotten. [14:03] eeemsi: i am sorry for asking again, but is someone having also problems while replicating isaacs registry? [14:03] fairwinds has joined the channel [14:03] EyePulp has joined the channel [14:04] qsobad has joined the channel [14:04] k1ttty has joined the channel [14:07] brian has joined the channel [14:08] ovaillancourt has joined the channel [14:12] pickels_ has joined the channel [14:14] mandric has joined the channel [14:14] bradleymeck has joined the channel [14:15] AndreasMadsen has joined the channel [14:15] kazupon has joined the channel [14:16] mayfield has joined the channel [14:16] Skola has joined the channel [14:17] boogyman has joined the channel [14:19] cjm has joined the channel [14:19] dob_ has joined the channel [14:21] dob_ has joined the channel [14:22] dob_ has joined the channel [14:23] heavysixer has joined the channel [14:25] cody-- has joined the channel [14:25] dudeinthemirror has joined the channel [14:25] context has joined the channel [14:25] sechrist has joined the channel [14:25] alindeman has joined the channel [14:25] lzskiss has joined the channel [14:25] thalll has joined the channel [14:25] 16SAAH4T6 has joined the channel [14:25] dr0id has joined the channel [14:25] wadey|away has joined the channel [14:25] RLa has joined the channel [14:25] eignerchris has joined the channel [14:25] JasonSmith has joined the channel [14:25] blissdev has joined the channel [14:25] shachaf has joined the channel [14:25] githogori has joined the channel [14:25] jhooks has joined the channel [14:25] munro has joined the channel [14:25] polyrhythmic has joined the channel [14:25] nebiros has joined the channel [14:25] geojeff has joined the channel [14:25] trodrigues has joined the channel [14:25] christophsturm has joined the channel [14:25] kanzure has joined the channel [14:25] htoothrot has joined the channel [14:25] _bat has joined the channel [14:25] sente has joined the channel [14:26] shachaf has joined the channel [14:26] githogori has joined the channel [14:26] dr0id has joined the channel [14:27] maushu has joined the channel [14:28] Industrial: What's the best way to do inheritance of prototypes in javascript? [14:30] htoothrot has joined the channel [14:30] gf3: Industrial: there isn't really a best way, they all suck [14:30] Industrial: okay. [14:30] Dmitrijus: ;]] [14:31] Industrial: What's the least sucky way to do inheritance of prototypes in javascript? [14:31] Industrial: xD [14:31] Industrial: Not looking for a big framework [14:31] Industrial: though multiple inheritance can be nice [14:31] Industrial: mixins are awesomer [14:32] gf3: Industrial: I've always been partial to the simplicity of Peter Michaux's implementation: http://michaux.ca/articles/class-based-inheritance-in-javascript [14:32] Industrial: thanks, i'll take a look [14:33] tytsim has joined the channel [14:34] ben_alman: i found his limiting and did this instead https://gist.github.com/66f6dcdf80fdeaa16a82 [14:36] Juan77 has joined the channel [14:36] Industrial: ben_alman: why do you do line 12? don't you already have a prototype available through sub._super.prototype? [14:37] ben_alman: i honestly don't remember [14:37] boogyman1 has joined the channel [14:37] ben_alman: maybe i'm retarded [14:37] bradleymeck has joined the channel [14:37] Industrial: maybe everyone is retarded and you are the only normal person [14:37] willwhite has joined the channel [14:38] ben_alman: i remember wanting it on the existing prototype [14:38] mendel_ has joined the channel [14:38] ben_alman: because it felt weird getting it through the constructor [14:38] ben_alman: but i'm not a classical OOP guy [14:39] boogyman has joined the channel [14:39] bradleymeck: ben_alman, i like to think of things in the context of, if it is mutating state / stateful to the instance, it goes on the constructor (though i missed the first part of the convo) [14:39] ben_alman: i missed all of the convo [14:39] ben_alman: i just butted in where i wasn't invited really [14:40] ben_alman: the only thing i want on the constructor is static properties or static utility methods [14:40] ben_alman: i'd want everything instance-specific to be on the prototype [14:41] bradleymeck: i meant in, not on sorry [14:42] bradleymeck: defaults on prototype, instance in constructor, static on constructor, copy operations on prototype or constructor [14:42] ben_alman: if you have an instance [14:42] ben_alman: say Bar inherits from Foo [14:43] ben_alman: and you have an instance of Bar, bar [14:43] ben_alman: how would you want to get Foo.prototype.prop (assuming it's defined on bar)? Bar._super.prototype.prop or bar._super.prop [14:44] ben_alman: i prefer the latter [14:44] boogyman has joined the channel [14:44] boogyman has joined the channel [14:44] amigojapan has joined the channel [14:45] gf3: ben_alman: well it would be `this._super.prop` [14:45] ben_alman: yes [14:45] chadskidmore has joined the channel [14:46] ben_alman: but with michaux's extend it would be like… this.constructor.superproto.prop [14:46] ben_alman: or something [14:46] ben_alman: it hurts my head [14:47] gf3: fucking OOP [14:48] gf3: worst thing ever [14:48] boogyman: lol [14:48] gamera: it's inheritance the problem, not OOP. [14:49] nickradford has joined the channel [14:49] gf3: gamera: yes but OOP is also the worst [14:51] nerdfiles has joined the channel [14:51] nerdfiles has left the channel [14:52] sdwrage has joined the channel [14:54] ben_alman: if i have a lib called foo that has lib/foo.js and lib/bar.js is there any way i can require() the bar.js? [14:54] ben_alman: in my other lib [14:54] Margle has joined the channel [14:54] ben_alman: their foo.js requires bar.js, but i need to get at it [14:55] dshaw_ has joined the channel [14:56] ben_alman: i think i figured it out [14:57] davetayls has joined the channel [14:57] Cromulent has joined the channel [14:58] TheJH: ben_alman, require('./bar') [14:58] djazz has joined the channel [14:59] adrianmg has joined the channel [15:01] OmidRaha has joined the channel [15:04] davetayls has joined the channel [15:06] spolu has joined the channel [15:06] BrianE has joined the channel [15:06] pickels_ has joined the channel [15:06] jbpros has joined the channel [15:08] larsschenk has joined the channel [15:09] larsschenk has left the channel [15:09] OmidRaha has left the channel [15:11] rio{ has joined the channel [15:13] jxie has joined the channel [15:16] louissmit has joined the channel [15:16] munichlinux has joined the channel [15:16] myrkiada has joined the channel [15:16] k1ttty has joined the channel [15:19] plow: why is it this.emit doesn't seem to work, but I get a result from this.on('addListener') ? [15:19] tuhoojabotti: plow: example code? [15:19] CarterL has joined the channel [15:19] plow: 1 sec [15:20] plow: tuhoojabotti: http://pastebin.com/e0q1uzQ4 [15:20] tuhoojabotti: plow: you could just use process.EventEmitter btw [15:21] plow: tuhoojabotti: is that preferred? [15:21] tuhoojabotti: I think [15:21] tuhoojabotti: At least socket.io does so. :P [15:21] plow: I'll try it instaed [15:22] tuhoojabotti: plow: Also, I don't think you need to call the constructor of EventEmitter [15:22] tuhoojabotti: At least they work for me without it. [15:22] caolanm has joined the channel [15:22] plow: tuhoojabotti: what's the require for process eventEmitter? [15:22] tuhoojabotti: No require. [15:22] tuhoojabotti: sys.inherits(.., process.EventEmitter); [15:22] plow: ah [15:23] tuhoojabotti: plow: Also, Y U no hilighting [15:23] plow: tuhoojabotti: haha, but that still doesn't work [15:23] tuhoojabotti: ye ye, wait [15:24] pongwon has joined the channel [15:24] tuhoojabotti: plow: So you call this.emit pairs, but the callback is never fired? [15:24] plow: tuhoojabotti: right [15:24] plow: here's the updated version [15:24] plow: http://pastebin.com/nRA8PViE [15:25] tuhoojabotti: plow: You could just try QueueManager.prototype = process.EventEmitter.prototype; QueueManager.prototype.constructor = QueueManager; [15:25] r04r has joined the channel [15:25] tuhoojabotti: instead of sys.inherits [15:25] tuhoojabotti: I don't know how it works. [15:25] plow: 1 sec [15:25] plow: still no dice! [15:25] plow: tuhoojabotti: do you have a quick example? [15:26] tuhoojabotti: well [15:27] joshsmith has joined the channel [15:28] tuhoojabotti: sec [15:29] tuhoojabotti: Hmm [15:30] Locke23rus_ has joined the channel [15:30] r04r has joined the channel [15:30] r04r has joined the channel [15:30] tuhoojabotti: What the hell. :D [15:30] gamera: plow: EventEmitter.prototype.listeners does not what you think... [15:30] lzskiss has joined the channel [15:30] td123 has joined the channel [15:31] plow: gamera: listeners lists the listeners, I know [15:31] plow: the point is it doesn't show the listener I want [15:31] gamera: you are passing a callback [15:31] tuhoojabotti: got it! [15:31] gamera: the signature is different. [15:32] plow: gamera: what should i be doing? [15:32] neurodrone has joined the channel [15:32] tuhoojabotti: plow: http://pastebin.com/8z1U5v3x [15:32] gamera: var my_listeners = this.listeners('pair') [15:33] kyonsalt has joined the channel [15:33] plow: tuhoojabotti: thanks, that works! [15:33] gamera: but it will be empty since you didn't registered any listener for that event [15:33] tuhoojabotti: Yes [15:33] tuhoojabotti: I was just getting to that. [15:34] tuhoojabotti: You emit before there's a listener. [15:34] martin_sunset: Some off topic awesomeness for all nerds: check out twine on supermechanical.com/twine [15:35] aliem has joined the channel [15:36] tuhoojabotti: martin_sunset: Missing protocol, how to open that? [15:36] plow has left the channel [15:36] martin_sunset: tuhoojabotti: It's a website. [15:36] tuhoojabotti: martin_sunset: I tried spdy://, but it didn't work. [15:37] tuhoojabotti: :( [15:37] tuhoojabotti: martin_sunset: The point is, it's not clickable like that. [15:37] uberhanz has joined the channel [15:38] martin_sunset: tuhoojabotti: Geez, it perfectly is on my iPad chat client. But here it is the link again: http://supermechanical.com/twine [15:38] tuhoojabotti: I'm far to lazy to change the regexp in Putty [15:39] jhbot: 'Client-side session after authentification' by 03Randomblue01 http://stackoverflow.com/q/8770816 (tags: everyauth) [15:40] gamera: tuhoojabotti: your way to inherit is wrong. you are modifying the EventEmitter prototype that way. [15:41] tuhoojabotti: gamera: I was thinking about that. [15:41] r04r has joined the channel [15:41] tuhoojabotti: I guess I should just use sys also [15:41] gamera: check the implementation in core (lib/util.js) [15:41] gamera: sys is deprecated. since long time the module is called util [15:41] gamera: which version are you using? [15:41] tuhoojabotti: ah [15:41] tuhoojabotti: Well, I meant util [15:41] thalll has joined the channel [15:43] thalll_ has joined the channel [15:43] buttface has joined the channel [15:44] nickadeemus2002 has joined the channel [15:44] chrisvwebdev has joined the channel [15:45] till__ has joined the channel [15:45] chrisvwebdev has left the channel [15:45] till__: i have my modules installed in a local ./node_modules folder, but my process is unable to pick them up. is there a debug mode for the 'resolv' part to see where it's actually checking? [15:49] emilsedgh has joined the channel [15:49] Venom_X has joined the channel [15:50] Sorella has joined the channel [15:50] r04r has joined the channel [15:50] monteslu_ has joined the channel [15:51] emilsedgh: Hi everyone. I wrote a SOCKS5 server based on nodejs. I have one single issue left. I use dns.lookup() ro find the ip address of remote hosts. For some domain names, it throws out this error: "{ errno: 4, code: 'ENOTFOUND' }". Please note that i can actually ping those domains fine. (github is among them). [15:51] emilsedgh: Im using Node 0.4.12 on Debian. [15:52] nodebiscut has joined the channel [15:53] goloroden has joined the channel [15:54] goloroden: does anyone know if the v8-profiler project by Danny Coates is still actively maintained? last update was in December 2010, as it seems ... and at least for me it is not installable at node 0.6.6 [15:54] Juan77 has joined the channel [15:55] td123: hi all, I just built nodejs 0.6.7 and I'm getting the following errors with make test, http://pastie.org/3143653 does anyone have any insight into how I can fix them? or should I report them [15:55] slaskis has joined the channel [15:55] r04r has joined the channel [15:55] r04r has joined the channel [16:00] bas_ has joined the channel [16:00] jomoho2 has joined the channel [16:05] gamera has joined the channel [16:06] rio{ has joined the channel [16:06] dannyamey has joined the channel [16:07] r04r has joined the channel [16:07] r04r has joined the channel [16:08] jscheel has joined the channel [16:10] amasad has joined the channel [16:11] blup has joined the channel [16:12] pors has joined the channel [16:12] criswell has joined the channel [16:13] Wizek-other has joined the channel [16:14] thax has joined the channel [16:15] djazz has left the channel [16:16] joshsmith: does anyone here use express-validator? [16:18] r04r has joined the channel [16:18] r04r has joined the channel [16:19] ryan_stevens has joined the channel [16:22] gavin_huang has joined the channel [16:22] hipsters_ has joined the channel [16:22] k1ttty has joined the channel [16:23] freewil has joined the channel [16:23] freewil has joined the channel [16:25] till__: fwiw, i removed the base64 module and replaced it with Buffer('foo', 'base64') [16:25] willwhite has joined the channel [16:25] till__: td123: maybe try to install it with "n" [16:26] td123: not sure what that means [16:27] r04r has joined the channel [16:27] r04r has joined the channel [16:28] brian has joined the channel [16:29] jhbot: 'Stopping execution flow after an error in express-validator' by 03Josh Smith01 http://stackoverflow.com/q/8771148 (tags: validation, express) [16:29] magnetik_ has joined the channel [16:30] adrianF has joined the channel [16:30] qsobad has joined the channel [16:31] joshsmith: hey, that's me! [16:31] till__: td123: npm install n, then use n to install the node version. n is the node version manager (nvm). i found it incredibly helpful. [16:31] janeUbuntu has joined the channel [16:32] sp3ctr has joined the channel [16:32] jhbot: 'Bidimensional array table' by 03user103178201 http://stackoverflow.com/q/8771174 [16:32] captain_morgan has joined the channel [16:32] npa has joined the channel [16:32] captain_morgan has left the channel [16:34] phluffy has joined the channel [16:36] TheJH: joshsmith, :D [16:36] joshsmith: TheJH: thanks, dude! [16:36] joshsmith: I don't know how I missed that in the readme [16:36] joshsmith: not awake enough :( [16:36] TheJH: :D [16:37] garrensmith has joined the channel [16:38] r04r has joined the channel [16:39] bitwalker has joined the channel [16:39] Destos has joined the channel [16:39] isaacs has joined the channel [16:40] jchris has joined the channel [16:40] swestcott has joined the channel [16:40] bitwalker: Hey all, if any of you are interested, I'm looking for feedback on a package I just published: https://github.com/bitwalker/stringex [16:41] bitwalker: It's more or less a port of https://github.com/rsl/stringex [16:42] Cromulent has joined the channel [16:43] triptec has joined the channel [16:43] td123: till__: ah ok, thanks for the suggestion [16:44] tomstai has joined the channel [16:44] joshsmith: TheJH: how would you send the original data back to the form? [16:45] joshsmith: (I'm rendering with Jade) [16:45] TheJH: joshsmith, uh, no idea, I'm using neither jade nor express [16:45] joshsmith: haha fair enough [16:45] tomstai: Anyone been using connect-assets and care to help a node beginner out? I am trying to load all js and to make a file that determines the order but it does not work. I have build option set to true and it converts my assets but how can I make them all to one file and load them in the correct order? as for now I single load all js files in my layout file [16:45] MatthewS has joined the channel [16:45] SuMarDi has joined the channel [16:46] rgl has joined the channel [16:46] markq: TheJH: what are you using? [16:46] icebox has joined the channel [16:47] TheJH: markq, I'm not doing much frontend stuff, but I wrote a little forum and for that, I made my own templating engine [16:47] TheJH: !npm info vacuum [16:47] jhbot: vacuum by Jann Horn, version 0.1.3: Clean streamed templates (primarily for HTML) [16:47] TheJH: with JS templates and childblocks and stuff [16:47] eb4890 has joined the channel [16:48] TheJH: https://github.com/thejh/node-vacuum [16:48] tuhoojabotti: TheJH: Advertiser. :D [16:49] mandric has joined the channel [16:49] markq: this looks nice and simple [16:49] TheJH: tuhoojabotti, hmm? he asked :P [16:49] bitwalker has joined the channel [16:49] markq: pretty cool actually [16:49] TheJH: markq, here I use it: http://nodeforum.nodejitsu.com/ [16:49] tuhoojabotti: TheJH: Awesome layout [16:49] kuebk has joined the channel [16:49] TheJH: tuhoojabotti, yes, I spent years on this layout [16:49] markq: lol i like the forum [16:49] TheJH: tuhoojabotti, so good to know that someone appreciates it :) [16:50] markq: this looks so cool :D [16:50] tuhoojabotti: http://tuhoojabotti.com/nm/ I made this in couple hours :D [16:50] davetayls has joined the channel [16:50] tuhoojabotti: TheJH: Notice the awesome blink effect? :DD [16:51] TheJH: tuhoojabotti, :D [16:52] tuhoojabotti: TheJH: That also scales well on mobile. :P [16:53] mast3rof0 has joined the channel [16:54] Swizec has joined the channel [16:54] Stephen has joined the channel [16:55] marcello3d has joined the channel [16:55] ritch has left the channel [16:56] wantez: Hey, anyone know how to get NPM to work for windows without having to use cygwin? [16:56] tuhoojabotti: install node.js [16:56] bitwalker: wantez: It's bundled with the installer [16:56] tuhoojabotti: set path [16:56] tuhoojabotti: use it [16:56] tuhoojabotti: -> profit [16:57] isaacs: wantez: http://nodejs.org/dist/v0.6.7/node-v0.6.7.msi [16:57] Carmivore has joined the channel [16:57] isaacs: wantez: run that [16:57] isaacs: bam [16:57] wantez: I know that it's bundled, but when I for example try to install libxmljs it fails at make [16:57] tuhoojabotti: isaacs: Planning on adding linkin support? :d [16:57] isaacs: wantez: well, that's a problem with libxmljs ;) [16:57] bitwalker: I've found that I have to call it as npm.cmd myself [16:57] bitwalker: Ah [16:57] wantez: are there any xml modules installable in windows? [16:57] isaacs: bitwalker: it should work as just "npm" unless you've removed .cmd from your executable extension list in windows [16:57] bitwalker: Error message? [16:57] isaacs: wantez: tehre's sax [16:58] wantez: ah ok, will try it out, thanks [16:58] isaacs: wantez: sax is just js [16:58] MatthewS has joined the channel [16:58] bitwalker: isaacs: I use osx primarily, that's just at work [16:59] tommyvyo has joined the channel [17:03] ryan_stevens has joined the channel [17:03] esmevane has joined the channel [17:06] stagas has joined the channel [17:08] jetienne has joined the channel [17:08] leofseige has joined the channel [17:08] jetienne_ has joined the channel [17:09] bitwalker has left the channel [17:10] josh-k has joined the channel [17:10] uwek has joined the channel [17:10] petrjanda has joined the channel [17:10] Hanspolo has joined the channel [17:11] td123 has left the channel [17:12] liar has joined the channel [17:12] MRdNk has joined the channel [17:12] arcanis has joined the channel [17:13] nodebiscut has joined the channel [17:15] BrianE has joined the channel [17:16] Stephen has joined the channel [17:16] jaminja has joined the channel [17:18] MRdNk: hi all, can anyone help me with nodejs dns? The context is a corporate intranet, so for example we already have a url "http://intranet" which points to the machines ip address, I then want to resolve "http://intranet/myapp" to point to 127.0.0.1:1337 which is simple enough with something like IIS, but how would I go about this with nodejs? Apologies if this is simple stuff, I'm not really a DNS guy. [17:18] MRdNk: or server engineer [17:19] quijote has joined the channel [17:19] Lingerance: DNS doesn't point to ports [17:19] Lingerance: It's just name->IP, nothing more. [17:20] MRdNk: oh ok. So how would I go about this task? [17:20] Lingerance: IIS does it with a special redirection webserver (usually a full page frame) [17:20] Hanspolo has joined the channel [17:20] Lingerance: ... or a proxy [17:20] quackquack has joined the channel [17:20] MRdNk: So is there a good way to do this/? [17:20] Lingerance: I suggest a prozy solution as it's generally simpler. [17:20] devongovett has joined the channel [17:20] MRdNk: Any pointers, on how to use proxies in nodejs? [17:21] Lingerance: Yes, I do that sort of thing with nginx actually. [17:21] quackquack: SubStack: when using browserify, how do I define what "../" and "./" is relative to, from the command line? [17:21] cha0s has joined the channel [17:21] cha0s has joined the channel [17:22] Lingerance: Just look up "nginx reverse proxy", you should get a basic configuration you can use. [17:22] zilch_ has joined the channel [17:23] patcito has joined the channel [17:23] MRdNk: any nodejs examples? [17:24] cmr: MRdNk: why are you writing a proxy server in node? [17:24] Lingerance: ^ [17:24] cmr: MRdNk: just use nginx, like you would use IIS and not ASP.NET to do the proxying. [17:24] MRdNk: Open to suggests, but ideally it needs to work on window [17:25] stride: is child_process.fork doing something weird when it starts the node instance? I thought it was just doing something equivalent to node foo.js [args] with the specified options but I get all sorts of exceptions from the JS parser when I try to use that with the examples int he docs [17:25] MRdNk: ok so I can just do it in IIS? [17:26] qsobad has joined the channel [17:26] enmand has joined the channel [17:27] spolu_ has joined the channel [17:27] MRdNk: I'm trying to get my employers interested and want to demo stuff to them... I might be able to get a couple of desktop PCs installed with Linux (nginx - might be pushing it), and I know the question I'll be asked is, how do I create a new 'application' name that resolves to the node app. [17:28] MRdNk: So with IIS, and Visual Studio, you just write your app, open IIS and give it a name (or publish to the server)... and all the node examples I've seen, are type the IP Address and add the port number. [17:28] MRdNk: - in your browser. [17:29] MRdNk: plus - i know nothing about nginx, and I'm guessing the tech team are the same. If I can do it with IIS, then I might give that a go. [17:29] magnetik__ has joined the channel [17:31] bnoordhuis has joined the channel [17:32] mc has joined the channel [17:33] luke` has joined the channel [17:34] jaminja has joined the channel [17:34] jaminja has joined the channel [17:35] deep has joined the channel [17:35] madhums has joined the channel [17:35] delizu has joined the channel [17:36] deep: hello I'm getting this error: Uncaught SyntaxError: Unexpected token ILLEGAL [17:37] deep: in this line: $("ul #friends_using_app").append( [17:37] deep: anybody knows what can cause it ? [17:38] arnee has joined the channel [17:39] phluffy: that looks more like jQuery than node.js, deep [17:39] oleyb1 has joined the channel [17:39] deep: you are right on that... [17:39] deep: it happens inside a socket [17:40] deep: that i; trying to open with socket.io [17:40] deep: that's why I ask here [17:41] delizu: I have been doing rails the last year and now trying node.js. In rails I rendered eco templates on the server and it made a global variable where all the views become a javascript function so that I could use them client side. Does anyone know how to do this in node and if there is any template engine that supports this? or know how to make templates avaible as a function on the client [17:41] markq: delizu: express/jade [17:42] delizu: markq: but how can I use jade from the client? [17:42] delizu: I am making a single page app [17:42] delizu: so don't want to render on the server [17:42] markq: ah [17:45] phluffy: maybe mustache.js, delizu? [17:47] delizu: mustache falls out of the picture since it is logic less. of course I don't want alot of logic in the views but an if here and there can sometimes be good [17:48] delizu: thanks for the tip tho [17:48] oleyb1 has joined the channel [17:49] qsobad has joined the channel [17:49] markq: this looks interesting: http://icanhazjs.com/ [17:49] Swizec_ has joined the channel [17:49] markq: delizu ^ [17:49] marcello4d has joined the channel [17:50] flip_digits has joined the channel [17:50] blueadept has joined the channel [17:50] blueadept has joined the channel [17:51] booo has joined the channel [17:52] booo has joined the channel [17:52] ryanfitz has joined the channel [17:53] Brandon_R has joined the channel [17:54] brianloveswords has joined the channel [17:54] delizu: markq: that seems pretty cool mate :) will go with it! thanks [17:54] markq: glad it worked for you [17:55] jakehow has joined the channel [17:55] tytsim_ has joined the channel [17:55] Brandon_R: hey guys [17:56] Brandon_R: anyone here got some libuv tuts? [17:56] sp3ctr has joined the channel [17:56] LukeBrookhart has joined the channel [17:56] cmr: Brandon_R: why would you expect any? It's really quite new [17:56] Brandon_R: I thought it's what node.js uses? [17:57] cmr: They wrote it for node [17:57] Brandon_R: or docs [17:57] postwait has joined the channel [17:58] jomoho has joined the channel [17:59] Vennril has joined the channel [17:59] lietu has joined the channel [18:00] pandeiro has joined the channel [18:01] pandeiro: didn't EventEmitter used to be a global? or did you always have to require('event')? [18:01] kuebk has joined the channel [18:01] lietu: anyone know of a require() implementation on the browser side that is fully compatible with node.js? I want a require that's compatible in the browser and node, was thinking if I have to write a small wrapper around node's require and require.js [18:01] iRoj has joined the channel [18:01] djcoin has joined the channel [18:02] strevat_ has joined the channel [18:03] tokumine has joined the channel [18:03] qsobad has joined the channel [18:03] earthrise has joined the channel [18:05] nickradford: lietu: Stitch has a require.js that I've used which is pretty nice [18:06] tbranyen: lietu: require.js already works in node [18:08] ryan_stevens: lietu: browersify lets you require node modules in the browser [18:08] level09 has joined the channel [18:08] jomoho2 has joined the channel [18:12] till__ has left the channel [18:12] lietu: meh, require.js in node would require you to use different function calls in node and the browser, at least according to their example .. [18:12] lietu: and browserify seems like quite annoying to use [18:13] quackquack: lietu: browserify has my vote, despite that its driving me crazy atm.. "Can only load non-root modules in a node_modules directory" anyone? [18:13] lietu: and I'm not sure what you meant, nickradford [18:13] jhbot: 'Authenticate with Twitter in the same page' by 03Randomblue01 http://stackoverflow.com/q/8771889 (tags: everyauth) [18:14] nickradford: lietu: I guess it's not exactly a file, if you look at sstephenson/stitch on github, in the compiled js, he has this line: https://github.com/sstephenson/stitch/blob/master/lib/stitch.js#L92. We use it for work, and i've got to run right now. [18:16] nickradford: Stitch compiles commonjs modules into a single file, and you can access those modules using a require statement. Using the same notation stitch uses to require those modules, you can later call `require('foo')` and get your foo.js module. [18:17] BrianE has joined the channel [18:17] joshthecoder has joined the channel [18:18] insin: anybody tried this one? https://github.com/azer/onejs [18:20] insin: mocha has a for-its-needs build script: https://github.com/visionmedia/mocha/tree/master/support which uses a modified version of this: https://github.com/weepy/brequire [18:20] insin: ACTION has been investigating to replace his awful means of sharing code with a require() which already has all the necessary modules packaged [18:20] nickradford: insin: Nope, but this commit message made me laugh, https://github.com/azer/onejs/commit/9215701d5435af6bf8a7f922cfd2941c418b4031 [18:23] quackquack: insin: seems like browserify would be perfect if it werent for these ridiculous cryptic errors... >< [18:23] jay_zawrotny has joined the channel [18:24] warz has joined the channel [18:24] warz has joined the channel [18:24] nerdfiles has joined the channel [18:25] andrewfff has joined the channel [18:25] nerdfiles has left the channel [18:27] AndreasMadsen has joined the channel [18:29] jchris has joined the channel [18:30] cw3de has joined the channel [18:30] jeromegn has joined the channel [18:31] cw3de has left the channel [18:31] jeromegn: SubStack: got a quick question about node-browserify, is it possible to alias a required file? (right now looks like it's only possible to alias a package) [18:31] socketio\test\18 has joined the channel [18:31] jeromegn: woah, this channel really got big. [18:32] tek has joined the channel [18:33] oleyb1 has joined the channel [18:33] jetienne_ has joined the channel [18:34] sdwrage has joined the channel [18:35] olivier2 has joined the channel [18:35] brianseeders has joined the channel [18:36] MatthewS has joined the channel [18:36] ceej_ has joined the channel [18:37] joshkehn has joined the channel [18:39] `3rdEden has joined the channel [18:42] Aria has joined the channel [18:42] wilmoore has joined the channel [18:44] dexter_e has joined the channel [18:45] pandeiro has left the channel [18:45] Swizec_ has joined the channel [18:45] kuebk has joined the channel [18:46] rgl has joined the channel [18:46] leofseige_ has joined the channel [18:46] zeade has joined the channel [18:46] petrjanda_ has joined the channel [18:46] arcanis has joined the channel [18:48] leogseige__ has joined the channel [18:50] _dc has joined the channel [18:52] mixin has joined the channel [18:52] jhbot: 'node.js - replace PHP, and asynchronously connect to it' by 03v3rt1g001 http://stackoverflow.com/q/8772115 [18:52] Aria has joined the channel [18:52] joshkehn has joined the channel [18:53] tuhoojabotti: TheJH: What's your bot spamming? [18:53] JmZ_ has joined the channel [18:53] JmZ_ has joined the channel [18:53] lukegb: tuhoojabotti: from the looks of it, new SO posts mentioning node.js [18:53] tuhoojabotti: SO? [18:53] markq: pretty convienient actually [18:53] TheJH: exactly [18:53] cmr: StackOverflow [18:53] tuhoojabotti: ah [18:54] tuhoojabotti: TheJH: No links? [18:54] lukegb: There is a link :P [18:54] TheJH: tuhoojabotti, uh... [18:54] lukegb: [18:52:47] 'node.js - replace PHP, and asynchronously connect to it' by v3rt1g0 http://stackoverflow.com/q/8772115 [18:54] lukegb: At the end [18:54] TheJH: tuhoojabotti, I can see a link :D [18:54] madhums has joined the channel [18:54] tuhoojabotti: asd [18:54] tuhoojabotti: invisible links [18:54] rphillips has joined the channel [18:54] rphillips has joined the channel [18:54] TheJH: tuhoojabotti, it spams all new stackoverflow questions with tag node.js into this channel [18:54] tuhoojabotti: TheJH: http://tuhoojabotti.com/r/prsc/link.png (956x55) [18:55] TheJH: tuhoojabotti, ahahah [18:55] tuhoojabotti: bad choice of color. [18:55] TheJH: tuhoojabotti, yes, the rest is black :D [18:55] TheJH: hmmmh... [18:56] TheJH: is there a code for resetting color? [18:56] cmr: tuhoojabotti: Which irc client is that? [18:56] tuhoojabotti: irssi of course [18:56] tuhoojabotti: the client of the future [18:57] fwg: past AND presen [18:57] cmr: tuhoojabotti: in your .Xdefaults (or .Xresources if you are cool person) set the black color of your terminal emulator to something that isn't the background color [18:57] tuhoojabotti: cmr: why would I do that. :E [18:57] nerdfiles1 has joined the channel [18:57] tuhoojabotti: Colors are gay [18:57] tuhoojabotti: :D [18:57] cmr: Then turn off colors in irssi! [18:58] tuhoojabotti: I rather whine! [18:58] JmZ- has joined the channel [18:59] sdwrage has joined the channel [18:59] jhbot: 'Scalable voting system with MongoDB' by 03Randomblue01 http://stackoverflow.com/q/8772200 (tags: mongodb, voting-system) [18:59] SamWhited has joined the channel [19:00] nerdfiles1 has left the channel [19:02] jomoho has joined the channel [19:05] tokumine has joined the channel [19:06] quackquack: SubStack: w/ browserify what is the fix for "Can only load non-root modules in a node_modules directory for file"? [19:07] Edy has joined the channel [19:07] Edy has joined the channel [19:08] VladGh has joined the channel [19:09] jhbot: 'Rails on Heroku and node.js on linode?' by 03LDK01 http://stackoverflow.com/q/8772269 (tags: heroku, dns, websocket) [19:11] quijote has joined the channel [19:11] break57382 has joined the channel [19:12] jomoho has joined the channel [19:13] break57382 has joined the channel [19:15] disappe__ has joined the channel [19:17] shinuza has joined the channel [19:17] sambao21 has joined the channel [19:18] sambao21 has left the channel [19:19] MatthewS has joined the channel [19:19] bitwalker has joined the channel [19:20] jomoho has joined the channel [19:21] pizthewiz has joined the channel [19:22] Wizek has joined the channel [19:22] jbpros_ has joined the channel [19:22] j`ey has joined the channel [19:23] j`ey: How can I "decode" something in Nodejs? [19:23] j`ey: passigng stuff in as a url param, and now I want to decode it [19:23] EvRide has joined the channel [19:23] j`ey: ah querystring [19:23] augustl: anyone know why "npm link" doesn't work on windows? It errors with a "not implemented yet" type error message. [19:24] booyaa: augustl: is this the msi? [19:24] augustl: booyaa: yes [19:24] augustl: 0.6.7 [19:24] augustl: j`ey: you want to parse query strings? [19:24] j`ey: yeah [19:25] augustl: j`ey: http://nodejs.org/docs/latest/api/querystring.html [19:25] LarsSmit has joined the channel [19:25] booyaa: augustl: not sure why, you'd think if you bundle npm you'd expect people to want to compile the modules... [19:25] booyaa: npm link just adds your newly compiled code as a module to your project right? [19:26] booyaa: ask isz when comes on next [19:26] augustl: booyaa: "npm link" reads package.json and puts stuff in node_modules iirc [19:26] oleyb1 has joined the channel [19:26] txdv has joined the channel [19:26] jomoho has joined the channel [19:26] cmr: Yes, it creates symlinks from global modules. [19:26] booyaa: i wonder what happens when you try to install modules and don't have a c compiler handy with the msi version of node... [19:27] cmr: Windows has no symlinks iirc, so I don't know how they would handle that. [19:27] augustl: windows does have symlinks [19:27] augustl: perhaps that's the issue, node only got an API for symlinks on windows in o.6.7 [19:27] augustl: 0.6.7* [19:27] augustl: it's called "junctions" on windows I think [19:27] Lingerance: Yes [19:27] Lingerance: Windows doesn't really have tools to deal with them though :/ [19:28] Lingerance: Despite being available since XP at least [19:28] augustl: I had to run the shell as admin to be able to symlink in node :) [19:28] augustl: windows sure is unfamiliar territory [19:28] lietu: mklink .. it's a pain [19:29] augustl: I installed junction.exe from technet or something, it's pretty easy to work with. `junction source target` [19:29] davetayls has joined the channel [19:29] lietu: I made some "symbolic link" in windows a long time ago, now I can't delete the folder it's in, because the file it pointed to is deleted, or something [19:30] CrawfordComeaux has joined the channel [19:30] booyaa: lulz [19:30] adrianF has joined the channel [19:30] lietu: this require.js isn't working very well in node for me .. keeps giving me some odd "unexpected token" and a random character from the file .. works fine with the browser-side require.js though [19:30] adambeynon has joined the channel [19:30] booyaa: bet there was a lot of FUUUUUUUUU [19:31] booyaa: then you became meh [19:32] markq: we need more useful bots on here [19:33] jomoho2 has joined the channel [19:34] augustl: is there such a thing as useful IRC bots? [19:34] markq: AI_IRC robots [19:34] markq: next-gen IRC bots [19:35] Wa has joined the channel [19:35] bitwalker: If any of you guys have a few minutes, I'd appreciate any feedback you can give on a module I created: https://github.com/bitwalker/stringex [19:38] booo has joined the channel [19:40] j`ey has left the channel [19:42] jihem has joined the channel [19:44] jihem: Hi... ? [19:45] Stephen has joined the channel [19:46] bitwalker: Hi! [19:46] jihem: Hello [19:46] jihem: Nice to meet someone... [19:46] bitwalker: Not much going on in here right now... [19:46] bitwalker: Likewise [19:46] jihem: First attempt... [19:46] markq: people are watching [19:47] markq: they're just dormant [19:47] jihem: I looking for some information about how to deploy a nodester server (to build my own cloud) [19:47] markq: this irc is async in a way lol [19:48] jihem: I have found a PPA for ubuntu [19:48] jihem: but... having trouble with it (npm refuse to do anything with -g on ubuntu 11) [19:48] dilvie has joined the channel [19:48] Swizec has joined the channel [19:48] jihem: ok [19:49] mandric has joined the channel [19:49] jihem: I just see there's a security update [19:50] jgornick has joined the channel [19:50] jihem: I'm switching for C#/SQLServer/IIS/MVV3 to nodejs/express/jade/mondoDB... and that's do the job [19:50] bitwalker: I doubt you can -g without sudo on ubuntu [19:51] jihem: Just looking for an experimented nodester user (who has built his own cloud)... [19:51] bitwalker: Have you consulted the nodester docs? [19:51] jihem: Yes [19:52] jihem: It's too old... [19:52] jihem: I have found 2 script on the git [19:52] jihem: One to test if the config is enabled and one to install [19:53] bitwalker: https://github.com/nodester/nodester [19:53] jihem: I have done the job to add nodejs, npm and the required package (with npm install xxx) [19:53] bitwalker: The readme at the bottom may help [19:53] kriszyp has joined the channel [19:54] jihem: The first script said OK that's all right... but the second script refuse to do anything (as root) [19:54] V1 has joined the channel [19:54] bitwalker: #nodester may be a better place to get help [19:55] bitwalker: Which script, how are you executing it, and what is the error? [19:55] jihem: I have read the readme too... I think there is a problem with the install script... so I would like to find someone who use it (with success) to know what's wrong with me [19:56] sorensen__ has joined the channel [19:56] `3rdEden has joined the channel [19:57] jihem: https://github.com/nodester/nodester/blob/master/bin/install.js <= doen't work [19:57] kitt has joined the channel [19:57] jihem: https://github.com/nodester/nodester/blob/master/bin/install-deps.sh <= said everything is OK [19:57] delizu: when starting a new project with express I get a default route and a route file called index. why can't I change the name of the file? [19:59] jihem: @delizu You can change the name of the see below : var products=require('products'); var express=require('express'); var app=express.createServer(); // NODE_ENV=Debug app.configure('Debug',function(){ app.use(express.logger()); app.use(express.errorHandler({ dumpException: true, showStack: true })); }); app.set('views',__dirname+'/views'); app.set('view engine','jade'); app.use(express.static(__dirname+'/stati [19:59] kuebzky has joined the channel [19:59] bitwalker: Are you executing the install script like: node installs? [19:59] churp has joined the channel [20:00] bitwalker: Oops: node install.js [20:00] davidbanham has joined the channel [20:01] jihem: There's a good tutorial about express on nodetuts (by Pedro Teixero episode 9 to 11) [20:01] davidban_ has joined the channel [20:01] vol4ok has joined the channel [20:02] bitwalker: delizu: the routes folder acts as a module, so the index.js is necessary for the module to load [20:02] jihem: Yes node install.js fails... [20:02] bitwalker: Error message? [20:03] delizu: I see so I have to require for each [20:03] delizu: ok then I get it [20:03] jihem: Exception about modules not found... (?!) and install-deps found them.... [20:03] delizu: thanks [20:03] bitwalker: delizu: no problem [20:03] boogyman has joined the channel [20:03] boogyman has joined the channel [20:04] bitwalker: jihem, did you do npm install in the same directory as the package.json? [20:04] Edy has joined the channel [20:04] Edy has joined the channel [20:05] jihem: i have done everything in the same directory: just do a sudo to excute 'node install' as root (npm refuse to install package as root) [20:05] bitwalker: I'm asking if you ran npm install manually [20:06] jihem: yes [20:06] martin_sunset has joined the channel [20:06] p1d_ has joined the channel [20:07] bitwalker: Can you pastebin the output of that command? [20:07] jihem: npm install -g pool express request npm-wrapper cradle connect coffee-script colors nodemailer bouncy nodeinfo... [20:07] ppcano has joined the channel [20:07] jihem: for each package I use "npm install -g" [20:07] bitwalker: Why are you executing it as a global install, is that really necessary? [20:08] jihem: It was described like that in the documentation [20:09] bitwalker: Hmmm, well pastebin the command output and I'll take a look [20:09] rwaldron has joined the channel [20:09] jihem: I have try without "-g" too but 'node install.js refuse to execute. node install.js must be launch as root [20:10] jihem: ok I'll have to power on the VM again and connect (need 10min)... ok? [20:10] brianloveswords has joined the channel [20:10] bitwalker: Sure, I should still be around [20:11] jihem: Thanks [20:12] metapandava has joined the channel [20:15] tarnfeld_ has joined the channel [20:15] aGHz1 has joined the channel [20:15] tarnfeld_: Hey everyone, anyone using the "connect-auth" middleware? [20:16] tarnfeld_: I've got a problem, I seem to get "TypeError: Object # has no method 'isAuthenticated'" when I use it with express, I've looked around and my code seems no different to any other samples on the web : [20:17] SteveDekorte has joined the channel [20:18] bitwalker: Are you adding it to your express app configuration? [20:18] ryanfitz has joined the channel [20:18] tarnfeld_: bitwalker: yeah, here's a snippet of what i'm doing [20:19] tarnfeld_: bitwalker: http://scrp.at/aV5 [20:20] bitwalker: Looking... [20:20] jomoho has joined the channel [20:20] tarnfeld_: bitwalker: thanks :) [20:21] tarnfeld_: bitwalker: here's my "routes.index" - http://scrp.at/aV6 [20:21] insin: connect-auth, everyauth, passport... are the others? :) [20:22] mc: i've been pretty happy with passport [20:22] tarnfeld_: i've not looked around that much, i need something well built for Facebook authenticcation [20:22] tarnfeld_: if theres something better, and integrated into Express i'd be happy to switch :D [20:24] perezd has joined the channel [20:24] snearch has joined the channel [20:25] CarterL has joined the channel [20:26] martin_sunset: tarnfeld_: Passport works quite well [20:27] strevat_ has joined the channel [20:28] jihem: @bitwalker I'm back. Just saw that you're from Luxembourg... May be you speak french ? [20:29] martin_sunset: Anyone here working for github? I need a little feature implemented... [20:29] delizu: Hi, I am using a micro template engine called ICanHaz which looks like this, http://pastebin.com/K8qTMnaZ . In the code you see a // comment and that is the part I would like to break out to its own seperate file but can't figure out how to do it. Any tips? ICanHaz will look for all script tags with text/html and take the ID and set them at a global variable so I need them in the layout or something.. any better ideas I would be thril [20:29] jihem: In fact my package.json was corrupt I downloaded it again and it works [20:29] jihem: env_create.sh do the job... [20:30] jihem: First time I got such issue... Hu... [20:30] bitwalker: jihem: great! I'm not sure why it says I'm from Luxembourg, I'm actually from the U.S [20:31] jihem: git gave me strange caracters in the file. I downloaded it manualy again and everything went ok. From US... Huh, not the same place [20:31] bitwalker: tarnfeld_: I'm not sure what the issue is, your code looks correct, but I'm not familiar enough with connect-auth to spot the likely culprit [20:31] jihem: You're an usual user of the IRC? [20:32] tarnfeld_: bitwalker: alright, thanks for your help :) [20:32] bitwalker: jihem: casual user, I'm by no means a regular [20:32] boltR has joined the channel [20:33] bitwalker: tarnfeld_: If I wasn't on my phone, I'd dig deeper, but it's too unwieldy with this thing [20:34] jihem: Thanks... I hope I can do something for you one day... Who knows ? Have a good year [20:34] hotchkiss has joined the channel [20:34] bitwalker: :) you too [20:36] deep has left the channel [20:36] tarnfeld_: bitwalker: heh no problem :) [20:36] nodokodo has joined the channel [20:37] MatthewS has joined the channel [20:38] disappe__: Hey I have Object.prototype.to_a defined to be something now when I iterate an array, aka for (var j in test.users) { I am getting j = to_a; What's the right way to define this? [20:39] insin: Make it non-enumerable: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty [20:40] kuebk has joined the channel [20:42] perezd: does anyone have any recommended reading on the topic of v8/node on ARM [20:42] Juan77 has joined the channel [20:46] _dc has joined the channel [20:47] dshaw_ has joined the channel [20:48] boltR has joined the channel [20:49] dubenstein has joined the channel [20:51] isaacs has joined the channel [20:54] Cromulent has joined the channel [20:54] icy` has joined the channel [20:54] dubenstein has joined the channel [20:54] kitt has joined the channel [20:54] kitt has joined the channel [20:54] dubenste1n has joined the channel [20:55] icy`: anyone know of a good way to test a couchdb validation without saving a record? [20:55] tarnfeld_: bitwalker: found it! I was doing my app.use(auth… too late in the configure function [20:55] rphillips has joined the channel [20:55] rphillips has joined the channel [20:55] bitwalker: tarnfeld_: nice work! I'll have to remember that for the future [20:55] mast3rof0 has joined the channel [20:57] al3xnull has joined the channel [20:57] mikrosystheme has joined the channel [20:59] dubenstein has joined the channel [21:00] m00p has joined the channel [21:01] DTrejo has joined the channel [21:02] perezd has joined the channel [21:03] TimTim has joined the channel [21:03] mikeric has joined the channel [21:03] Shaunzie has joined the channel [21:06] stride: https://github.com/DanielRapp/twss.js lol [21:07] arnee has joined the channel [21:07] Shaunzie: stride: what's the joke? O.o [21:08] markq: lmao [21:08] Shaunzie: oh… "that's what she said" [21:09] DTrejo: roflmfao [21:09] markq: hahaha i have to see if this work [21:09] abraxas has joined the channel [21:09] davidban_ has joined the channel [21:10] lmatteis has joined the channel [21:10] markq: "feedback form: 'Help! I'm having trouble logging in!' Response: 'That's what she said'" [21:12] igl has joined the channel [21:15] jhbot: ''net' refuses to emit 'close' event in nodejs' by 03adam01 http://stackoverflow.com/q/8773161 [21:17] Juan77 has joined the channel [21:17] _dc has joined the channel [21:17] jakehow has joined the channel [21:19] bnoordhuis: TheJH: is it possible for your bot to include a link to the issue? [21:19] descipher has joined the channel [21:20] delizu: I am using backbone.js and using the pushState true option to my router but if I do like localhost/hello node will hijack it al tho I want backbone router to handle it. does anyone know how I solve this? [21:21] markq: bnoordhuis: It's already included [21:21] markq: "[15:15] ''net' refuses to emit 'close' event in nodejs' by adam http://stackoverflow.com/q/8773161" [21:21] willwhite has joined the channel [21:22] bnoordhuis: markq: apparently xchat2 filters out the link [21:22] rwaldron has joined the channel [21:22] markq: on mIRC here [21:23] mikedeboer has joined the channel [21:24] descipher has joined the channel [21:25] bnoordhuis: TheJH: reworded question: can you fix the colors so that xchat2 doesn't drop everything after the user name? :) [21:25] SteveDekorte has joined the channel [21:26] wilmoore has joined the channel [21:27] bitwalker: delizu: Is that url the one you are loading the page with, or is it a link you are clicking? [21:27] delizu: bitwalker: I came a bit further on the problem. [21:27] delizu: it works fine when I use router.navigate which I should. but if I do a refresh node takes over [21:28] delizu: I want node to only care about / and that is it. everything else should go trough / and the rest should backbone handle [21:29] arcanin has joined the channel [21:29] bitwalker: If you postback, node handles the request. Backbone is intended to intercept the request when a link is clicked. Refreshing the page doesn't give backbone the chance to do so [21:30] aaronmcadam has joined the channel [21:31] bitwalker: Ideally, you want node to act as a fallback for backbone routes anyways, in case the user has js disabled [21:33] tomtomaso has joined the channel [21:34] sdwrage has joined the channel [21:34] kriszyp has joined the channel [21:35] delizu: bitwalker: i was afraid it was so. I am doing a single page app [21:35] ramkamx has joined the channel [21:35] delizu: bitwalker: maybe I should stick with hash symbol then? [21:37] rio{ has joined the channel [21:38] bitwalker: delizu: That's what I've been doing, but if you want pushstate to work, setup node to handle all of your backbone routes as expected, once the page loads, backbone takes over [21:39] delizu: bitwalker: that is a solution [21:41] bitwalker: delizu: honestly, I've been avoiding pushstate due to reported issues on mobile devices, so there's that to consider also fwiw [21:41] mikedeboer has joined the channel [21:41] ramkamx has joined the channel [21:41] TheJH: bnoordhuis, mhm, I'll just turn off colors [21:41] bnoordhuis: TheJH: cool, thanks [21:41] tbranyen: bitwalker: like what? [21:42] aGHz has joined the channel [21:42] jhbot has joined the channel [21:44] bitwalker: delizu: http://stackoverflow.com/questions/6161701/is-history-api-broken-on-ios-location-bar-doesnt-update-on-pushstate [21:44] ramkamx: Hi there, i'm new to node js, and need some help on install/uninstall of the node osx pkg (installed it but bcause its a hackintosh, processor is not re ognised, so i compiled from the src, i need to cleanup / remove the previous installs). Any1 coild help ? [21:45] tbranyen: bitwalker: what version of ios is that [21:45] delizu: bitwalker: thanks! I will go with the # for now on. thanks alot for the information [21:45] tbranyen: hard to believe ios 5 has that issue [21:45] tbranyen: ah ios 4.3 [21:47] Shaunzie: ramkamx: if you installed using make, you should be able to run "make uninstall" [21:47] ramkamx: Shaunzie: I need to remove what the installer.pkg file did, i doubt it was done with make [21:48] joshsmith: anyon here use node-mysql? [21:48] bitwalker: delizu: np, keep your eyes peeled for fixes to that api though! Hopefully it gets fixed soon [21:48] Shaunzie: ramkamx: sorry I've never used the installer package :-/ [21:48] joshsmith: I'm getting nulls returned as strings and not null [21:48] fson has joined the channel [21:49] ramkamx: Shaunzie: I'm looking of a list of the installed files, google finds nothing. [21:49] jhbot: 'Solaris 11: Node.JS: Could not autodetect OpenSSL support' by George Bailey http://stackoverflow.com/q/8773360 (tags: build, openssl, solaris) [21:49] idefine: ramkamx: try something like app zapper [21:49] halldorh has joined the channel [21:49] bitwalker: I'm out, see you all later [21:50] bitwalker has left the channel [21:50] ramkamx: idefine: No app was installed, the files have been dumped in /usr/bin and /lib and /user/local [21:51] idefine: ramkamx: ah, you're right [21:51] enmand has joined the channel [21:52] ramkamx: Any knows about the osx pkg installer ? [21:53] warz: in general, if im writing a function that calls an async method inside of it, and i want to return the result of that async method, do i have to make the function accept a callback and pass the result out in that callback? [21:53] warz: is that the typical pattern [21:53] chrisdickinson: warz: yes. [21:54] chrisdickinson: you could also use event emitters. [21:54] ramkamx: warz: Yep [21:54] idefine: ramkamx: try this: http://geekyninja.com/archives/how-to-uninstall-mac-os-x-pkg-packages/ [21:54] amasad has joined the channel [21:55] ramkamx: idefine: Me stupid, there must be a log of installs pkg, checking the link thx [21:57] VICODAN has joined the channel [22:02] tiglionabbit_ has joined the channel [22:02] langworthy has joined the channel [22:04] benvie has joined the channel [22:05] ramkamx has joined the channel [22:06] ramkamx: idefine: Whow what a mess :-) [22:06] idefine: ramkamx: where you able to get it all cleaned up? [22:07] pekim has joined the channel [22:07] idefine: were* [22:07] DTrejo has joined the channel [22:08] mikeric has joined the channel [22:09] ramkamx: idefine: Lsbom-pf gives me clues, but pathes are relative, trying to find a trick to avoid trashing files that shouldnt [22:11] mikl has joined the channel [22:11] SteveDekorte has left the channel [22:13] ramkamx: idefine: For example, npm.cmd is listed in lsbom as being in ./npm.cmd, but i find it in ./local/lib/node_modules/npm/bin/npm.cmd [22:13] isaacs: ramkamx: that's just a copy of where the original lives. [22:14] isaacs: ramkamx: when you install npm, the npm.cmd should be in your PATH somewhere, usually right next to node.exe [22:14] isaacs: ramkamx: if you install using the node MSI, it's in %ProgramFiles%\nodejs\npm.cmd, I believe [22:14] ramkamx: Isaacs: it's osx/bash [22:14] isaacs: ramkamx: ahhh, mv [22:14] ramkamx: Nix [22:14] isaacs: *nvm [22:14] isaacs: rigg [22:15] salva has joined the channel [22:15] isaacs: then you shouldn't have to worry about npm.cmd [22:15] isaacs: unless i'm coming in mid-stream here or something... [22:15] isaacs: might be missing the point, sorry *^_^* [22:15] ramkamx: No no pb, help is welcome [22:16] ramkamx: Installed via pkg on osx, but on a hckintosh, processor is not recognised, so i want to remove the install [22:16] kerigan has joined the channel [22:16] ramkamx: Before reinstalling via macports or so [22:17] ramkamx: Tried the bom approach, but find where the files are is going to cost a lot of time [22:17] postwait has joined the channel [22:18] kerigan: hi guys I have a node.js script I want to run periodically every few seconds, whats the best way to do this? [22:18] ramkamx: But you gave me hint, the package contains both nix and win files... [22:19] ramkamx: While true; do (your command); sleep 1; done [22:19] isaacs: ramkamx: heh [22:19] kerigan: that works? ok :) [22:19] isaacs: ramkamx: the pkg drops everything in /usr/local/ [22:19] ramkamx: While in lowercase [22:20] isaacs: ramkamx: `make uninstall` in the node source should remove it all [22:20] isaacs: ramkamx: then `make install` will install it [22:20] kerigan: is there any good tool then that monitors the node process in case it needs to be restart? [22:20] ramkamx: Isaacs: the latest version, and the previous version in /usr [22:20] ramkamx: Ah ok [22:20] ramkamx: Thx i'll try [22:21] ramkamx: Kerigan: top [22:21] ramkamx: Or ps aux [22:21] isaacs: kerigan: i recommend using whatever process stuff you have on your system. [22:21] isaacs: ramkamx: i think kerigan means some kind of "if this service goes down, restart it" type thing [22:21] ramkamx: Lsof to list open files [22:21] dshaw_1 has joined the channel [22:21] ramkamx: Isaacs: yups [22:22] isaacs: kerigan: upstart, monit, smf, etc. are all good things to investigate. what's your operating system? [22:22] kerigan: currently osx but i want to make a dedicated linux box [22:22] isaacs: kerigan: you should check out upstart and monit for linux [22:22] isaacs: osx has some process registration stuff, but i'm not super familiar with it [22:22] kerigan: okay thanks very much [22:23] mmalecki: forever is fine [22:23] VICODAN: sup [22:23] isaacs: mmalecki: for development, sure [22:23] mikedeboer has joined the channel [22:23] isaacs: mmalecki: but it doesn't come back if you restart the box, does it? [22:23] VICODAN: anyone here know irc.io/socket.io? [22:23] isaacs: or if you `killall node`? [22:23] mmalecki: isaacs: it can [22:23] zzak: init.d? [22:23] mmalecki: https://github.com/nodejitsu/forever/blob/master/bin/foreverd [22:23] isaacs: mmalecki: how? does it hook into the os stuff? [22:23] Cromulent has joined the channel [22:23] MatthewS has joined the channel [22:23] mmalecki: isaacs: initd scripts and stuff [22:24] isaacs: mmalecki: right, but you still have to wire that up to initd or whatever. [22:24] isaacs: and the mac has their own thing like that [22:24] isaacs: with xml [22:24] isaacs: and .pref files and stuff [22:24] blup has joined the channel [22:24] mmalecki: isaacs: yeah. well, we can't handle everything [22:24] isaacs: exactly [22:24] isaacs: :) [22:25] isaacs: besides, at some point, you ought to have something registered with the os to say what should start at startup [22:25] isaacs: and, i'm not 100% sure, but i'd guess that forever has a bug or two still ;) [22:25] isaacs: i know node does [22:25] mmalecki: isaacs: hey, not like it's perfect, ya know :) [22:25] isaacs: sure [22:26] mikeal has joined the channel [22:26] mmalecki: isaacs: but yeah, well, we use it in production, both as an API and as a CLI tool [22:26] mmalecki: isaacs: I'd say the API is much more stable, maybe because I didn't change it much [22:28] mmalecki: isaacs: and what do you guys use again? [22:28] isaacs: mmalecki: smf [22:28] isaacs: mmalecki: for lots and lots of stuff. [22:28] mmalecki: ah, right [22:28] isaacs: i mean, it's a part of smartos, no reason not to use it. [22:28] isaacs: it's rock solid, with many years of huge production deployments behind it. [22:29] mmalecki: isaacs: totally reasonable :) [22:29] chrisdickinson: so, i wonder how much barf this causes: https://github.com/chrisdickinson/jabbascript [22:29] neurodrone has joined the channel [22:29] pquerna: (we use runit for this kinda stuff, meh) [22:29] TooTallNate has joined the channel [22:30] chrisdickinson: (basically a small set of syntax additions to JS that add jashkenas' simple class syntax (that desugars to ES5), a "strong binding lookup" binary and unary operator, and multiline strings) [22:30] augustl: isaacs: npm link doesn't work on windows. I'm guessing because node haven't had symlinking support on windows until recently? [22:30] isaacs: augustl: it has it now? [22:30] ramkamx: isaacs: Nope, it just dumps the execs, make uninstall finds no rule [22:30] chrisdickinson: i'd love any thoughts on the matter. especially from folks that get grossed out by coffeescript. [22:31] augustl: isaacs: yeah, due to different APIs you just need to specify "dir" or "file" [22:31] augustl: new in 0.6.7 [22:31] isaacs: augustl: oh! that landed! awesome. [22:31] isaacs: augustl: wanna send me an npm patch that enables link? ;) [22:31] isaacs: that'd be rad [22:31] isaacs: i wasn't sure if that got in yet [22:31] isaacs: i know symlinking to files will fail most of the time, if you're not running cmd in admin mode. [22:32] augustl: you also need to run the node process as admin for some reason [22:32] augustl: ya.. [22:32] chrisdickinson: i was also thinking of patching ASI so that "[" and "(" after a newline don't become part of the previous statement. [22:32] augustl: I tried symlinking dirs, all in my users home directory, but it failed unless I ran as admin [22:32] augustl: quite silly, I can use the "junction" command as unelevated user [22:33] Nuck has joined the channel [22:34] Juan77 has joined the channel [22:34] cjm has joined the channel [22:34] franciscallo has joined the channel [22:35] rev has joined the channel [22:37] zackf has joined the channel [22:38] petrjanda has joined the channel [22:39] salva has left the channel [22:42] jakehow has joined the channel [22:43] shanez_ has joined the channel [22:45] descipher has joined the channel [22:46] Shaunzie has joined the channel [22:46] rgl has joined the channel [22:50] uncrtnmind has joined the channel [22:52] jhbot: '"Generic Collection" in MongoDB?' by japrescott http://stackoverflow.com/q/8773783 (tags: javascript, mongodb) [22:53] Wizek: Who would like have a beautiful, reliable and simple-to-use TDD framework? Meet Tree.js: https://github.com/Wizek/Tree Would love to hear your feedback on it! [22:53] tiglionabbit_ has joined the channel [22:55] Brandon_R has joined the channel [22:56] zomg: Wizek: for a moment I thought you were confused about what Three.js does... =) [22:57] Wizek: zomg, Nope. :) [22:57] Brandon_R: hey guys [22:57] Brandon_R: what is the throughput for node.js? [22:58] zomg: "throughput"? [22:58] zomg: In doing what? [22:59] Swizec has joined the channel [22:59] _dc has joined the channel [23:00] frogstarr78 has joined the channel [23:00] jhbot has joined the channel [23:00] Brandon_R: messages per second [23:01] Shaunzie: Brandon_R: erm… depends [23:01] zomg: Brandon_R: messages? chat? xmpp? socket.io? [23:01] Brandon_R: http [23:01] Brandon_R: assume hello world example [23:01] zomg: Depends on the hardware [23:01] Brandon_R: simple responce.end [23:02] ryanfitz has joined the channel [23:03] mikeal has joined the channel [23:03] rio{ has joined the channel [23:03] Shaunzie: Brandon_R: with simple hello world, you can get into the 10s of thousands easily depending on hardware, but that's kind of meaningless cause it's not actually doing anything... [23:04] shinuza has joined the channel [23:05] zomg: My express based app on a cheap vps does 150 reqs per second and it isn't at all optimized, does some mongo queries etc. [23:06] zomg: It probably isn't even in production mode for express so the templates aren't cached [23:06] Brandon_R: can i have a link? [23:06] zomg: www.bf3web.com [23:06] FIQ has joined the channel [23:07] mmalecki: my nodejs-vs-ror app got like shitload of reqs [23:07] mmalecki: let me do the counting [23:07] wereHamster: when using the vm module and creating a new context, can I put functions into the context which have access to my outer context? [23:07] wereHamster: or are the two contexts completely separated? [23:08] Brandon_R: is there a library like facebook pagelets? [23:08] Brandon_R: to stream the page out in boxes? [23:08] Brandon_R: i think learnboost does it [23:09] warz: boxes? [23:09] Brandon_R: you divide the page into boxes and stream each [23:09] warz: actual divs, are you meaning like partials? [23:09] Brandon_R: like the header would be a box [23:09] Brandon_R: yeah [23:09] Shaunzie: I got 219.66 trans/sec with the hello world app on the nodes.com website on my laptop [23:09] spolu has joined the channel [23:09] warz: i use hogan.js for my template lib, and it does partials. [23:10] mehlah has joined the channel [23:11] Brandon_R: is it fast? [23:11] Brandon_R: nvm vague question [23:11] Brandon_R: i will check it out [23:11] Shaunzie: Transaction rate: 659.86 trans/sec [23:11] khrome has joined the channel [23:11] Shaunzie: I'm on a mac so file descriptor limits but yah... [23:11] Brandon_R: does twitter use hogan.js on their website? [23:11] Brandon_R: or is it like a hobby project [23:11] Brandon_R: thanks [23:12] Brandon_R: that sounds good shanw [23:12] khrome has joined the channel [23:14] Juan77 has joined the channel [23:15] nicholasf has joined the channel [23:15] sylvinus has joined the channel [23:16] rio{ has joined the channel [23:17] Shaunzie has joined the channel [23:18] oleyb1 has joined the channel [23:18] oleyb1 has left the channel [23:19] Locke23rus has joined the channel [23:20] kerigan: man js is weird [23:21] TheJH: kerigan, sure? [23:21] chjj: js needs pointers and goto statements [23:21] Brandon_R: c needs a dom [23:21] baoist has joined the channel [23:21] kerigan: how is there a difference between: setTimeout ( reportTask(), 5000 ); and setTimeout ( function(){reportTask()}, 5000 ); [23:21] mansoor has joined the channel [23:21] Aria has joined the channel [23:21] chrisdickinson: chjj: lolwat. [23:21] TheJH: chjj, well, "do { ... break ... } while(false)" is some kind of replacement for goto, although not as good, no? [23:21] chjj: chrisdickinson: you heard me sir [23:22] robhawkes has joined the channel [23:22] wereHamster: kerigan: what does reportTask() return? [23:22] Brandon_R: we have a troll in the house [23:22] kerigan: first one executes immediately, the second one waits 5secs [23:22] TheJH: chjj, for pointers, make an object with one "ref" property :D [23:22] chjj: TheJH: no, i dont want some half-baked solution! [23:22] chrisdickinson: chjj: hack it into uglify! [23:22] kerigan: doesn't return anything [23:22] chjj: TheJH: i want the real deal [23:22] Brandon_R: then use a language with pointers [23:22] wereHamster: kerigan: the first will call whatever object reportTask() returns after 5000ms, the second will call reportTask afture 5000ms [23:23] jchris has joined the channel [23:23] wereHamster: kerigan: so the first one won't work [23:23] chrisdickinson: unless reportTask returns a function. [23:23] chrisdickinson: in which case the second wouldn't work. [23:23] wereHamster: kerigan: what you could do is setTimeout(reportTask, 5000), depending on whether you caer what `this` should be in that function [23:23] kerigan: oh ok i see, thats still weird that it works that way though :) [23:23] c4milo has joined the channel [23:23] wereHamster: chrisdickinson: of course it would, the second case dons't care what that function returns [23:24] TheJH: kerigan, it's not weird. in fact, it's more consistent. [23:24] chrisdickinson: wereHamster: yes, but it wouldn't work as expected. [23:24] IrishGringo has joined the channel [23:24] wereHamster: kerigan: why is it weird? reportTask() calls the function. [23:24] wereHamster: chrisdickinson: yes, that's true [23:24] chrisdickinson: wereHamster: it would return the function that you expected to be executed, instead of executing it. [23:24] joshsmith: when doing res.redirect() in Express is there any way to pass in a value (like if I'm posting to a form and redirecting, I'd love to be able to display on the redirected page that you've saved the form) [23:24] jhbot has joined the channel [23:24] wereHamster: joshsmith: use res.render() [23:25] tilgovi has joined the channel [23:25] joshsmith: wereHamster: the problem with res.render() is that it doesn't change the URL in the browser bar [23:25] kerigan: you would think it means: call this function after X delay, not call what this functions returns after X delay [23:25] bnoordhuis: kerigan: i personally would not [23:25] wereHamster: kerigan: the first case is no different than 'var x = reportTask(); setTimeout(x, 5000)' [23:25] TheJH: !admin eval process.exit() [23:25] TheJH: mmalecki, ^ [23:25] jhbot has joined the channel [23:25] mmalecki: TheJH: ^ :) [23:25] TheJH: :) [23:25] wereHamster: kerigan: which means: call the function, take what it returns, pass it as the first argument to setTimeout.. [23:26] mmalecki: TheJH: can you check if he''s zlib available? [23:26] aoberoi has joined the channel [23:26] mmalecki: just to make sure [23:26] TheJH: !admin eval Object.keys(require('zlib')).join() [23:26] jhbot: Z_NO_FLUSH,Z_PARTIAL_FLUSH,Z_SYNC_FLUSH,Z_FULL_FLUSH,Z_FINISH,Z_BLOCK,Z_OK,Z_STREAM_END,Z_NEED_DICT,Z_ERRNO,Z_STREAM_ERROR,Z_DATA_ERROR,Z_MEM_ERROR,Z_BUF_ERROR,Z_VERSION_ERROR,Z_NO_COMPRESSION,Z_BEST_SPEED,Z_BEST_COMPRESSION,Z_DEFAULT_COMPRESSION,Z_FILTERED,Z_HUFFMAN_ONLY,Z_RLE,Z_FIXED,Z_DEFAULT_STRATEGY,ZLIB_VERNUM,ZLIB_VERSION,Z_MIN_WINDOWBITS,Z_MAX_WINDOWBITS,Z_DEFAULT_WINDOWBITS,Z_MIN_CHUNK,Z_MAX_CHUNK,Z_DEFAULT_CHUNK,Z_MIN_MEMLEVEL,Z_MAX_ME [23:26] jhbot: _LEVEL,Z_DEFAULT_LEVEL,Deflate,Inflate,Gzip,Gunzip,DeflateRaw,InflateRaw,Unzip,createDeflate,createInflate,createDeflateRaw,createInflateRaw,createGzip,createGunzip,createUnzip,deflate,gzip,deflateRaw,unzip,inflate,gunzip,inflateRaw [23:26] TheJH: looks good [23:26] mmalecki: a'ight! [23:27] mmalecki: TheJH: yeah, it's called like that :) [23:28] mmalecki: TheJH: it just doesn't have a valid reverse dns [23:28] mmalecki: TheJH: so here it's just an IP [23:28] TheJH: mmalecki, ah, ok [23:28] Destos has joined the channel [23:29] _dc has joined the channel [23:29] strevat_ has joined the channel [23:32] maxogden has joined the channel [23:33] kerigan: anyway my auto-delete-flagged-entries script works now, i'm finally at piece with my mind, thanks for help [23:34] npa has joined the channel [23:35] shanez_ has joined the channel [23:37] mikeal has joined the channel [23:38] dgathright has joined the channel [23:40] rev has left the channel [23:40] cjm has joined the channel [23:41] jaket has joined the channel [23:42] socketio\test\38 has joined the channel [23:44] marcello3d has joined the channel [23:44] storrgie has joined the channel [23:44] spolu has joined the channel [23:46] isaacs_mobile has joined the channel [23:47] isaacs_mobile: Substack hey I'm here [23:47] mgolawala has joined the channel [23:47] SubStack: ahoy! [23:48] isaacs_mobile: There is an ambulance here [23:50] mikeal has joined the channel [23:51] chilts: joshsmith: you can call res.redirect() but add in a query in the url you're redirecting to : http://example.com/done?id=blahblahblah [23:51] chilts: on that done page you can figure out what message you want [23:51] chilts: (in fact, you can add a message to the query, but I don't personally do that much) [23:53] Cheery has joined the channel [23:53] Cheery: does node.js/express or something already have a publishing platform of some sort? [23:53] Cheery: similar to wordpress or such. [23:53] chilts: do you mean a CMS? [23:54] chilts: hmm, not that I know of but there may be things out there ... someone recently did a forum-type site [23:54] joshsmith: chilts: yeah, I figured I could do it that way. how do you GET the query? req.body? [23:54] freewil has joined the channel [23:54] freewil has joined the channel [23:56] chilts: joshsmith: wouldn't that be a req.query.whatever? [23:56] joshsmith: ah right [23:56] joshsmith: I've only worked with post, not get [23:56] chilts: wait, you can just use req.param I think ... http://expressjs.com/guide.html#req.param() [23:56] jhbot: 'Node.js module for managing users who are online?' by fancy http://stackoverflow.com/q/8774168 [23:56] chilts: have a go at that and see if it works :) [23:56] joshsmith: I will, thanks for your thoughts chilts [23:57] chilts: no worries :)