[00:00] nsswb has joined the channel [00:01] broofa: Anyone here familiar with Nodes DNS lookup code? I've got an HTTP load test tool I'm writing that starts spitting "ECONNREFUSED, Could not contact DNS servers" after the 250th http.Client I create. Any idea what might be causing this? [00:02] Phyllio has joined the channel [00:03] broofa: (I'm connecting from/to 'localhost', btw, so DNS errors seem a bit odd) [00:03] dthompson has joined the channel [00:03] dthompson has joined the channel [00:04] pyrotechnick: broofa: it sounds like a limitation of your OS [00:05] pquerna: broofa: what os, what dns server? [00:05] EyePulp: is there a proper/elegant way to implement something akin to a jquery style $.extend() in node? [00:05] broofa: pyrotechnick: macosx. weird thing is this was working earlier. had 1,000 connections open. :P [00:06] pyrotechnick: EyePulp: i think there's an exten in util [00:07] pyrotechnick: EyePulp: http://nodejs.org/docs/v0.3.4/api/util.html#util.inherits [00:07] pyrotechnick: EyePulp: you can just include jquery in node though [00:07] pyrotechnick: google it [00:08] pyrotechnick: there's also underscore etc which have extension and inherits helpers [00:08] EyePulp: pyrotechnick: I'll look at inherits - I'm hoping to avoid any big inclusions for this somewhat minor need =) thanks for the pointer [00:09] pyrotechnick: just rip it out of jquery then [00:09] EGreg has joined the channel [00:09] skm has joined the channel [00:09] ossareh has joined the channel [00:09] pyrotechnick: dont be afraid to chop up libraries [00:09] pyrotechnick: this is node.js after all [00:09] mikew3c_ has joined the channel [00:11] heavysixer has joined the channel [00:11] ashleydev has joined the channel [00:11] skm has joined the channel [00:12] dida has joined the channel [00:12] isaacs_ has joined the channel [00:12] dida: any one tried zombie.js? [00:13] EyePulp: on that front, there is a small version I found here: http://onemoredigit.com/post/1527191998/extending-objects-in-node-js [00:13] mgutz has joined the channel [00:13] astoon has joined the channel [00:14] EyePulp: pyrotechnick: I'm wondering what the idiom is for manipulating the Object like that in your code and having it be available throughout all my subsequent code. [00:14] sh1mmer has joined the channel [00:14] EyePulp: as in all my sub modules [00:15] EyePulp: dida: I've looked at it, but not yet tried it [00:15] benburkert has joined the channel [00:15] dida: I was just looking how to get started [00:16] dida: the 'getting started' page still pointing to the main hompeage [00:16] dida: it's in http://zombie.labnotes.org/guts.html [00:17] echosystm: how do you get the current time? [00:17] echosystm: i cant find it in the api [00:20] murz: not sure, but prbly (new Date).getTime() [00:20] Tim_Smart: or Date.now() [00:20] echosystm: cool, thanks [00:22] hunterloftis has joined the channel [00:23] pietern has joined the channel [00:26] ben_alman: creationix: there? [00:27] creationix: yep [00:27] ben_alman: i just need to know the step i'm missing. i've cloned howtonode.org ... do i need to also clone wheat separately? [00:27] ben_alman: i'm trying to take this all apart to understand it [00:27] ben_alman: and.. i'm such a noob [00:27] tokumine has joined the channel [00:27] CIA-121: node: 03Ryan Dahl 07master * r202dd83 10/ (4 files in 3 dirs): Add setsid option to child_process - http://bit.ly/h56pTY [00:27] creationix: just install wheat with npm [00:27] CIA-121: node: 03Ryan Dahl 07master * r1f38046 10/ lib/tty.js : [00:27] CIA-121: node: tty.open() returns stream instead of slaveFD [00:27] CIA-121: node: Also is run in its own session. - http://bit.ly/gNIfyH [00:27] creationix: it's a library [00:27] ben_alman: oh, i didn't realize [00:27] ben_alman: hmmn [00:28] ben_alman: i wanted to hack at it myself and not use it as a library [00:28] ben_alman: maybe i need a different approach [00:28] creationix: well, then clone the wheat source and link it [00:28] creationix: "npm link" [00:28] creationix: it will install your cloned copy [00:28] ben_alman: interesting [00:28] nejucomo has joined the channel [00:29] nonnikcam has joined the channel [00:29] creationix: or just clone wheat and adjust the require path to go direct to your wheat clone [00:29] creationix: (the require path in your howtonode.org clone) [00:29] ben_alman: sure [00:30] ben_alman: i want to just see what's getting put together here so i can roll my own, somehow [00:30] josephhitchens_ has joined the channel [00:32] CIA-121: node: 03Ryan Dahl 07master * r907e569 10/ (15 files): Fix expired keys - http://bit.ly/etKl01 [00:32] kr4fty has left the channel [00:32] kr4fty has joined the channel [00:32] ryah: someone fixed the osx buildbots [00:32] ryah: thank you - whoever [00:33] ryah: arlo and pqurena i assume [00:33] ben_alman: hrmn how can i clone the submodules... [00:33] jchris has joined the channel [00:34] creationix: ben_alman: best to install wheat from npm [00:34] springmeyer: anyone know how to find all the possible values for process.platform? [00:34] creationix: that will grab all the deps [00:34] ben_alman: damn [00:34] creationix: do you now have npm? [00:34] kr4fty: hey, does Orlando Vazquez hang out here? (sqlite + node.js) [00:34] ben_alman: yeah [00:34] creationix: *not [00:34] springmeyer: ACTION notices only "linux2" and "darwin" are listed at http://nodejs.org/api/process.html#process.platform [00:34] ben_alman: i have npm [00:34] creationix: it's ok to have release version of wheat installed, and then link a dev version [00:34] creationix: I do it all the time [00:34] ben_alman: ok, cool [00:35] ben_alman: what i'm trying to do is see what exactly wheat does, to see how i might need to change it [00:35] ben_alman: or if i need to use something totally different [00:35] isaacs: ben_alman: npm explore wheat [00:35] isaacs: ben_alman: to go poke around in the running folder [00:35] ryah: kr4fty: not usually [00:36] ben_alman: thanks isaacs [00:36] kr4fty: ryah: thanks, i'll try e-mailing him. [00:39] q_no has joined the channel [00:40] elijah-mbp has joined the channel [00:40] Druid_ has joined the channel [00:42] benburkert has joined the channel [00:42] springmeyer: ah, found it (where process.platform comes from)... [00:43] isaacs_ has joined the channel [00:43] isaacs: springmeyer: it's in tools/wafadmin/Utils.py, I believe [00:43] springmeyer: tools/wafadmin/Utils.py, which uses python's sys.platform, which in turn uses `uname -s` [00:43] isaacs: springmeyer: it's set to "win32" on windows, though [00:43] springmeyer: isaacs: yep, thanks [00:43] isaacs: and i think there are some other hardcoded ones, right? [00:43] springmeyer: isaacs: great, thats what I'm wonders [00:43] springmeyer: er, wondering [00:44] isaacs: springmeyer: isWindows = process.platform === "win32" [00:44] springmeyer: also on linux I get "linux" but the docs say "linux2" [00:44] sh1mmer has joined the channel [00:44] springmeyer: linux2 perhaps was pulled from the python sys.platform doc... [00:45] jimt has joined the channel [00:45] piscisaureus: ryah: ? [00:47] kr4fty: ryah: i am getting this exception from the c++ part of the sqlite driver: node: ../src/database.h:38: virtual Database::~Database(): Assertion `db_ == __null' failed. [00:48] ryah: piscisaureus: ? [00:48] kr4fty: ryah: i try closing the database handle and i get an out of memory exception. [00:48] kr4fty: has anyone ever reported anything like this? [00:49] ryah: kr4fty: sorry, can't help you right now [00:49] kr4fty: alright [00:50] piscisaureus: ryah! [00:51] ryah: piscisaureus: ? [00:51] piscisaureus: ryah: this makes sense to you: https://github.com/piscisaureus/node/commit/e6dd60d8c35f4424f1c755c7e07b1d86dbcc4daa [00:51] piscisaureus: or is it unclear/inefficient/wrong ? [00:52] jchris has joined the channel [00:52] russ_nyc has joined the channel [00:52] piscisaureus: s.startTTYWatcher(function() { [00:52] piscisaureus: console.log(Array.prototype.slice.call(arguments, 0)); [00:52] piscisaureus: }); [00:52] piscisaureus: [ 'keypress', null, 16, 16 ] [00:52] piscisaureus: [ 'keypress', 'N', 78, 16 ] [00:52] piscisaureus: [ 'keypress', 'o', 79, 0 ] [00:52] piscisaureus: [ 'keypress', 'd', 68, 0 ] [00:52] piscisaureus: [ 'keypress', 'e', 69, 0 ] [00:52] piscisaureus: [ 'resize', 30, 80 ] [00:54] ryah: RegisterWaitForSingleObject(&tty_wait_handle, hStdin, tty_want_poll, NULL, INFINITE, WT_EXECUTEINWAITTHREAD | WT_EXECUTEONLYONCE); [00:54] mikew3c has joined the channel [00:54] broofa has joined the channel [00:55] ryah: what's it do? [00:55] piscisaureus: it waits for a handle to become signaled (a console handle is signaled if there is data to read) [00:56] piscisaureus: then it calls the callback (tty_want_poll) from that same thread (as per WT_EXECUTEINWAITTHREAD) [00:56] ryah: ok [00:56] piscisaureus: oh I should mention that windows manages separate 'wait threads' that wait for one or more handles [00:56] c4milo has joined the channel [00:57] jimt has joined the channel [00:58] ryah: it seems okay to mee [00:58] ryah: needs lint [00:58] piscisaureus: make lint doesn't do it right? [00:58] kr4fty: 2A:q [00:59] ryah: python tools/cpplint.py src/node_stdio.cc [00:59] piscisaureus: :-) thnx [00:59] piscisaureus: If you don't think this f*cks up your code, I'll go on with it [00:59] ryah: well - we should attempt the unix side of things before you go much further [01:00] ryah: but i think it looks okay [01:00] hosh_work has joined the channel [01:00] piscisaureus: needs some char mapping still. the shift, ctrl, alt bitflags need to be defined [01:00] ryah: so this will all be internal, or? [01:00] cronopio has joined the channel [01:00] piscisaureus: ryah: so long, yeah [01:00] ryah: also - rather than having a static var with Persistant [01:00] galaxywatcher has joined the channel [01:00] piscisaureus: should be used by readline [01:01] ryah: maybe just look at process.binding('stdio').onttyevent [01:01] ashleydev has joined the channel [01:01] ryah: ? [01:01] piscisaureus: er, [01:01] piscisaureus: onttyevent not in my codebase, do I need to rebase? [01:02] ryah: no, i mean - just look for that function to be defined [01:02] dida: I can't install base64 [01:02] piscisaureus: ryah: oh. [01:02] ryah: piscisaureus: know what i mean? [01:02] ryah: piscisaureus: not so important right now - this is internal api it can change later [01:02] MikhX has joined the channel [01:02] dida: "directory does not contain a wscript file" says node-waf configure build [01:03] dida: what does it mean? [01:03] piscisaureus: ryah: ok. don't really understand now. iq < 100, sorry, nothing can change that [01:03] ryah: dida: base64 is kind of built into node now [01:03] dida: ryah: so? [01:04] dida: I'm trying to install zombie [01:04] dida: and use node 0.3.3 [01:04] dida: so may be using node 0.2.6 woud work? [01:04] dida: it works :) [01:05] namelessnotion_ has joined the channel [01:07] galaxywatcher_ has joined the channel [01:07] benburkert has joined the channel [01:09] tim_smart has joined the channel [01:09] softdrink has joined the channel [01:09] warz has joined the channel [01:10] dylang has joined the channel [01:11] svnlto has joined the channel [01:11] zentoooo has joined the channel [01:13] isaacs_ has joined the channel [01:13] matt_c has joined the channel [01:15] ben_alman: damn, creationix left [01:15] ben_alman: anyone here using wheat in their site? [01:15] jakehow has joined the channel [01:15] CIA-121: node: 03Ryan Dahl 07master * r63bd237 10/ (3 files in 2 dirs): typo setuid -> setsid - http://bit.ly/hhi3yJ [01:16] ryah: isaacs: thanks [01:17] MattDiPasquale has joined the channel [01:17] isaacs: np [01:18] arlolra has joined the channel [01:18] sprout has joined the channel [01:19] sh1mmer has joined the channel [01:19] dnolen has joined the channel [01:20] Prometheus: ben_alman: when can I expect to start downloading awesome node apps from your website? ;) [01:20] ben_alman: dude, i'm just trying to wrap my head around anything [01:20] ben_alman: this is like.. the most frustrating thing ever for me [01:21] Prometheus: I would think this would be a cakewalk for you :) [01:21] blowery: ben_alman: could you change your nick? i'm the only ben on the internet. (jk) [01:21] ben_alman: i get javascript, but i don't really understand many of the node idioms [01:21] ben_alman: they're somewhat unfamiliar to me [01:21] ben_alman: not to mention general lack of documentation and unfamiliarity with require / packages / etc [01:21] ben_alman: blowery: lol, i used to be "cowboy" but had to change that [01:21] ben_alman: no chance now! [01:21] ben_alman: :P [01:21] blowery: hah [01:22] blowery: maybe i should revisit hilighting on "ben" [01:22] c4milo has joined the channel [01:22] blowery: worked fine when adium didn't support irc [01:22] ben_alman: i just highlight on my nick now [01:22] ben_alman: and tell ppl if they want me to say my damn nick [01:22] blowery: rule removed [01:22] ben_alman: perfect, i'll start idling again [01:22] blowery: perfect [01:22] ben_alman: ACTION afk [01:23] warz: so, i recently finished a side project of mine. i used nodejs, socket.io, express and jade. these are all new to me. the only real thing that i require is socket.io, though, and subsequently nodejs. im trying to picture a "production deployment" of this setup. [01:23] warz: does anyone know of any github repos with simple examples of production deployments of something like this? [01:23] namelessnotion has joined the channel [01:23] BrianTheCoder has joined the channel [01:24] warz: would it be advised to just run a nodejs / socket.io service for that portion of the site, and perhaps a few static pages with nginx or something? [01:24] davidc_ has joined the channel [01:24] warz: like, im debating just powering my pages with python and nginx, since thats what im familiar with, and running nodejs / socket.io on like a subdomain, or something. [01:25] bartt has joined the channel [01:26] SubStack: warz: if you want static pages just use connect or express with staticProvider [01:26] SubStack: http://expressjs.com/ [01:26] warz: yea, thats what im currently doing. its great and all. i guess i just need to get used to it. [01:26] warz: i was also looking into something you wrote, I think. [01:26] SubStack: ah cool [01:26] warz: dnode? [01:26] warz: the rpc module [01:27] SubStack: yep that's mine [01:27] SubStack: it's super fun times [01:27] warz: cool, yea. i think im going to use it. looks nice. [01:28] piscisaureus: ryah: use c++ style casts instead? [01:28] warz: the main thing i need to overcome, still, is the callback nature of all of this. especially when dealing with database queries where i want to do additional queries based on the results of the first one. [01:28] warz: like, i have one method that has like 10 levels of nesting because of this. =X [01:28] SubStack: ah yeah [01:28] SubStack: warz: check out asynchronous flow control libraries for that [01:29] SubStack: or write your own it's fun! [01:29] warz: async.js, for example? i was looking at it, but am not sure how to apply it yet. haha. [01:30] ryah: piscisaureus: pleaes [01:30] SubStack: I wrote one called seq [01:30] AAA_awright_ has joined the channel [01:30] SubStack: warz: also check out step [01:30] SubStack: step is a good one to start with I think because it's super simple [01:30] warz: ok cool. found it on github. ill check it out [01:31] arlolra: ryah: freebsd makes me sad http://arlolra.no.de/waterfall/ab-hello-world-buffer-102400/ts/ [01:32] Lorentz: What are the graphs represent? [01:33] mikew3c_ has joined the channel [01:33] chrischris has joined the channel [01:33] piscisaureus: ryah: I thought you hated c++ :s [01:33] warz: SubStack, I feel like I have the tools for success, now. :P [01:33] SubStack: \o/ [01:34] ryah: arlolra: look at those crazy osx histograms [01:35] ryah: solaris box looks the best :) [01:35] hornairs has joined the channel [01:36] ryah: arlolra: seeing this data is so great [01:36] MikhX has joined the channel [01:36] ryah: it does look slow though... [01:37] ryah: http://buildbot.nodejs.org/bench_graphs/linux32/ab-hello-world-buffer-1024/hist/907e5699802ee07d20ab79b9dbc94ca4b6ac178a.png [01:37] ryah: ^-- 10ms+ response time? [01:37] ryah: seems wrong.. [01:38] ryah: piscisaureus: i do, but i try to code like a c++ person :) [01:40] dguttman has joined the channel [01:40] erikvold: issacs: I ran into this prob http://superuser.com/questions/231590/running-rebaseall-on-cygwin\ [01:42] mgutz_ has joined the channel [01:42] pignata has joined the channel [01:43] isaacs has joined the channel [01:44] tylerstalder has joined the channel [01:47] CIA-121: node: 03Ryan Dahl 07master * rb9cfd95 10/ (lib/readline.js lib/tty.js src/node_stdio.cc): getWindowSize/setWindowSize - http://bit.ly/dFgOcP [01:48] sh1mmer has joined the channel [01:50] bentruyman has joined the channel [01:52] common has joined the channel [01:54] m0rganic has joined the channel [01:55] EGreg has joined the channel [01:57] EGreg has joined the channel [01:58] matt_c_ has joined the channel [01:59] sh1mmer has joined the channel [02:00] ben_alman: is there a list somewhere of all "middleware" supported by express, by default? [02:00] dguttman has joined the channel [02:00] CIA-121: node: 03Ryan Dahl 07master * r320a56b 10/ benchmark/plot.R : Bump size of bench histogram to 100ms - http://bit.ly/emefVw [02:00] dguttman has joined the channel [02:01] whyme has joined the channel [02:02] piscisaureus: ryah: is there any particular reason you didn't include the improved path.resolve docs? [02:02] ron_frown has joined the channel [02:04] piscisaureus: if you just missed it each time, https://github.com/piscisaureus/node/commit/8ded663d233df27acbf9905d7772bf410ccee63f [02:04] piscisaureus: (can make a patchfile if you care) [02:04] ryah: https://github.com/piscisaureus/node/commit/8ded663d233df27acbf9905d7772bf410ccee63f.patch [02:04] ryah: ^-- nice github feature [02:05] ryah: so i can do: [02:05] ryah: curl https://github.com/piscisaureus/node/commit/8ded663d233df27acbf9905d7772bf410ccee63f.patch | git am [02:05] piscisaureus: ryah: ugh. Why didn't I know that???? [02:05] CIA-121: node: 03Bert Belder 07master * r0114826 10/ doc/api/path.markdown : Improve path.resolve documentation - http://bit.ly/gKHQ6H [02:05] piscisaureus: it would have spared me all that useless git format-patch and copy paste [02:05] ryah: piscisaureus: thanks [02:06] ben_alman: and you can use it to get people's email address too! [02:06] Prometheus: uh oh! [02:06] piscisaureus: ryah: np. [02:07] ryah: no so hard to write sshd in node these days [02:07] ryah: at least a simple one [02:08] davidc_ has joined the channel [02:09] EGreg has joined the channel [02:10] skm has joined the channel [02:10] jashkenas has joined the channel [02:12] echosystm: if i'm writing an snmp module, which has a Pdu class and a Type class, what's the usual way to export them? [02:13] echosystm: i figured some index file that exports.snmp = { Pdu: Pdu, Type: Type }; [02:13] echosystm: ? [02:13] nejucomo has joined the channel [02:14] isaacs_ has joined the channel [02:14] halfhalo: Ping rickard2 [02:17] mfernest has joined the channel [02:17] jmcneese has joined the channel [02:18] jmcneese: hey noders. has anyone else had any problems (or success) with using getters/setters for node modules? [02:18] echosystm: ? [02:18] pkrumins: they work [02:18] pyrotechnick: not me [02:18] pyrotechnick: jmcneese: sucess here [02:18] echosystm: why would getters or setters not work jmcneese ? [02:18] jmcneese: my attempts are not meeting with much success [02:18] echosystm: show us your code [02:18] jmcneese: i have no idea ;) thus my question. [02:19] amerine has joined the channel [02:19] theloniousBot has joined the channel [02:19] jmcneese: ok, gimme a sec to pastebin [02:19] jmcneese: http://pastebin.com/v2ByjLpn [02:20] jmcneese: i've tried it this way, as well as setting them via __defineSetter__ in the constructor [02:20] jmcneese: i get call stack exceeded when i set one of the vars [02:20] kriskowal: there's also Object.defineProperty [02:21] kriskowal: i wasn't aware that the style you're using or __defineSetter__ were implemented in v8. [02:21] bitdrift: so what's the deal with query string parsing in v0.2 to v0.3 ...it looks like v0.2 parses full paths inferred from dots (.) and v0.3 doesn't? was that intentional, or is it just a work in progress? [02:21] kriskowal: they're both in spidermonkey though. [02:22] jmcneese: it says that all ecma5 setter/getter methods (including set()/get()) are in v8 [02:22] kiddphunk has joined the channel [02:23] jmcneese: http://cl.ly/3p0y3g0a1I3y2n000d1A [02:23] jmcneese: i see the __defineGetter__ method [02:24] dguttman has joined the channel [02:25] cronopio has joined the channel [02:25] piscisaureus: ryah: getWindowSize, does that give you the height of the screen buffer or the height of the area actually visible on linux? [02:25] theloniousBot has joined the channel [02:26] ryah: piscisaureus: visible [02:26] piscisaureus: also in width? [02:26] ryah: yes [02:26] piscisaureus: hmm [02:26] dnyy has left the channel [02:27] piscisaureus: it is pretty uncommon for windows console apps to cut off at the visible border of the window if there is room to scroll sideways [02:29] pedrobelo has joined the channel [02:30] Phyllio has joined the channel [02:30] bmizerany has joined the channel [02:30] bitdrift: no love :-(...nobody knows about the query string module? [02:32] ryah: bitdrift: intentional [02:32] ryah: bitdrift: we wanted less complex querystring parsing [02:32] sprout has joined the channel [02:32] bitdrift: ryah: ok great thank you [02:32] theloniousBot has joined the channel [02:32] bitdrift: ryah: (and good move btw) [02:33] coffee has joined the channel [02:33] bitdrift: hm...so then, what's the easiest way to determine the node version number from within a module? [02:33] theloniousBot has joined the channel [02:34] ryah: bitdrift: https://github.com/ry/node/commit/422d3c93bc7391e105cfb4363011088c27ec86a6 [02:34] ryah: bitdrift: process.version [02:35] Kenta has joined the channel [02:35] dguttman_ has joined the channel [02:36] bitdrift: ryah: ah fantastic...thank you [02:37] arpegius has joined the channel [02:37] whyme has joined the channel [02:41] josephhitchens has joined the channel [02:42] ryah: isaacs_: i dont' get it - does nobody have uid -2 on your system ? :/ [02:44] jmcneese: doh. i was being stupid re: getters/setters [02:44] jmcneese: you have to reference an internal property that is called something other than the property being called [02:44] isaacs has joined the channel [02:45] echosystm: if i have a file that should export one class... i dont want to require it like require('file').ClassName; [02:45] echosystm: how can i just require it like require('class_name'); ? [02:45] echosystm: i cant work out how to do the export [02:45] ryah: echosystm: module.exports = [02:45] echosystm: ah, thanks [02:45] ryah: module.exports = somtehin; [02:47] mikeal has joined the channel [02:47] echosystm: yeah, i was trying to do exports = something; but it wasnt working :P [02:50] piscisaureus: time to go to bed again. goodbye :z [02:51] cronopio: piscisaureus: have a nice night! [02:51] piscisaureus: thnx [02:54] russ_nyc has joined the channel [02:58] SubStack: why does `exports =` not work anyhow? [02:58] SubStack: ACTION experiments [02:59] MikhX has joined the channel [03:00] SubStack: v8: process [03:00] v8bot: SubStack: ReferenceError: process is not defined [03:01] arpegius has joined the channel [03:01] jspiros has joined the channel [03:05] SubStack: > var box = {}; new(process.binding('evals').Script)('exports = 4').runInNewContext(box); box [03:05] SubStack: { exports: 4 } [03:05] SubStack: why can't node just do that? [03:05] SubStack: ACTION digs into the source [03:07] pyrotechnick: umm [03:07] pyrotechnick: someone better start writing a node app that can fix floods [03:07] pyrotechnick: brisbane, australia is in some serious trouble [03:07] SubStack: still? [03:08] pyrotechnick: it's gotten alot worse [03:08] pyrotechnick: and it's still POURING down [03:08] pyrotechnick: our main dam is full. we are screwed. [03:08] SubStack: :( [03:08] pyrotechnick: 10 people or so have died [03:08] pyrotechnick: 100 or so are missing [03:09] pyrotechnick: im making an app to track loved ones, share cautions, track progress of the fixup [03:09] pyrotechnick: that kind of thing [03:09] SubStack: Move to San Francisco! No natural catastrophes ever happen here. [03:09] pyrotechnick: lol [03:09] pyrotechnick: dont u guys get quakes [03:09] Aria: That's the irony. [03:10] pyrotechnick: i get it [03:10] pyrotechnick: i get jokes. [03:11] mikeal has joined the channel [03:13] Yuffster_work has joined the channel [03:14] confoocious has joined the channel [03:15] mjr_: I have died several times now from earthquakes [03:15] mjr_: They keep on destroying my house too. [03:15] mjr_: Fucking earthquakes. [03:15] pyrotechnick: stop building them out of paper [03:15] pyrotechnick: use some bricks [03:15] SubStack: pyrotechnick: think of it this way: your country has too much water, but other countries don't have enough [03:15] SubStack: business opportunity [03:15] pyrotechnick: substack [03:15] pyrotechnick: hahahha [03:16] pyrotechnick: 6 months ago [03:16] pyrotechnick: EVERYONE was tripping balls here because of the drought [03:16] pyrotechnick: now EVERYONE is tripping balls and dying because of the floods [03:16] SubStack: can't win! [03:16] pyrotechnick: they should not have rain-danced so well [03:16] mjr_: Somehow it will be 39F in Oakland tonight. This is not cool. [03:16] mjr_: except that IT IS [03:17] kiddphunk: lol yeah, bay is hella cold now [03:17] SubStack: mjr_: I walked to university every day in interior Alaska [03:17] SubStack: BOTH WAYS [03:17] mjr_: It would be great if my ancient house had some insulation at all. [03:17] SubStack: oh yeah these buildings aren't made for cold [03:18] SubStack: of course, neither are the buildings in Alaska [03:18] mjr_: Back in my day, we had to wrestle a bear down, saddle it up, and ride it to school if we didn't want to walk. [03:18] mjr_: Kids these days. [03:20] possibilities has joined the channel [03:21] perlmonkey2 has joined the channel [03:22] joe_alman: does anyone actually write content in jade? or do they just use it for templates and have separate markdown files for content [03:22] possibilities: interesting how difficult async makes it to walk a directory tree and know when it's done. not asking how, just venting (: [03:22] SubStack: ACTION doesn't have enough content to answer that question [03:22] guid has joined the channel [03:23] xSmurf has joined the channel [03:23] SubStack: possibilities: eh? I've done that and it's not so hard [03:23] SubStack: just use recursion [03:24] SubStack: oh right perhaps I'll add a recursion combinator to Seq now [03:24] SubStack: ACTION channels his haskell-foo for this one [03:25] possibilities: i'm fine until i want to know when the walking is done [03:25] SubStack: an event emitter seems pretty appropriate [03:25] SubStack: emit 'end' when you're done [03:25] SubStack: emit 'dir' or 'file' otherwise [03:26] SubStack: I bet there's even a module that does that on npm already [03:26] SubStack: or if not there, on github [03:26] Moominpapa1 has joined the channel [03:26] echosystm: under what circumstances is expresso better than vows and vice versa? [03:26] pyrotechnick: apparently it's going to be worse than this [03:26] pyrotechnick: http://www.brisbanebusinessfinance.com/images/1974_Flood_map.pdf [03:26] pyrotechnick: youd think we would have learned [03:26] possibilities: yeah, there's async directory listing and async lstats all happening so there's no spot in the code where i'm sure that another directory will be discovered [03:26] pyrotechnick: and built things a bit higher, but no, we're stupid humans [03:26] echosystm: i'm not all that familiar with different testing approaches [03:27] SubStack: everything on stilts! [03:27] possibilities: err, won't be [03:27] MattDiPasquale has joined the channel [03:27] SubStack: or better, a city in the trees, ewok-style [03:28] possibilities: i guess i need to figure out the control flow so that isn't all happening at once [03:28] perlmonkey2: Hmm, the API docs don't actually take you to any API docs, but to the docs home for the selected version. Is there a way to actually view the API? [03:28] __sri has joined the channel [03:28] SubStack: possibilities: I see finder, walk, and walker on npm. I would check those out to see how they do it. [03:28] perlmonkey2: I see, must use the link for the two released version in the nav. [03:28] xSmurf has joined the channel [03:29] rednul_ has joined the channel [03:30] stagas_ has joined the channel [03:34] possibilities has joined the channel [03:34] echosystm: in vows, if i specifically wanted to test whether or not something has failed (rather than succeeded), how would you do that? [03:34] pHcF_ has joined the channel [03:36] JimBastard has joined the channel [03:36] bitdrift has joined the channel [03:36] echosystm: eg. the test is correct if an exception occurs [03:37] brianm_ has joined the channel [03:37] whyme has joined the channel [03:37] amerine has joined the channel [03:37] doffm has joined the channel [03:37] trigrou has joined the channel [03:37] muk_mb has joined the channel [03:37] yrashk has joined the channel [03:37] keeto has joined the channel [03:37] persson has joined the channel [03:37] jtrally has joined the channel [03:37] ashb has joined the channel [03:37] Nevtus has joined the channel [03:37] beawesomeinstead has joined the channel [03:37] brainproxy has joined the channel [03:37] papyromancer has joined the channel [03:37] r00s has joined the channel [03:37] stbuehler has joined the channel [03:37] morgabra has joined the channel [03:37] mde has joined the channel [03:37] MaSch has joined the channel [03:37] disq has joined the channel [03:38] jchris has joined the channel [03:39] Sami_ZzZ has joined the channel [03:40] confoocious has joined the channel [03:40] confoocious has joined the channel [03:43] possibilities: there we go [03:45] langworthy has joined the channel [03:46] mjr_ has joined the channel [03:46] briznad1 has joined the channel [03:46] arpegius has joined the channel [03:48] bingomanatee_ has joined the channel [03:48] dthompson has joined the channel [03:53] AAA_awright_ has joined the channel [03:54] ashleydev has joined the channel [03:55] jashkenas: Fun. The "real" reason for the existence of JSLint, according to Crockford: [03:55] jashkenas: "I intended [03:55] jashkenas: to then create a JavaScript engine with the compiler and other components [03:55] jashkenas: written in JavaScript, but the language contained so many design errors that I [03:55] jashkenas: could not bring myself to replicate them all. [03:55] jashkenas: So instead I turned the parser into a code quality tool." [03:55] stepheneb has joined the channel [03:56] SubStack: self-hosting is hard [03:56] SubStack: but then so is writing c [03:56] dguttman has joined the channel [03:56] bingomanatee_ has joined the channel [03:57] shinmei has joined the channel [03:58] bingomanatee_: Howdy noders! [03:58] SubStack: oh hello [04:00] hobodave has joined the channel [04:01] warz: hrm [04:02] warz: are there any heroku-ish services for nodejs? [04:02] yrashk: warz: I think joyent has something in that direction [04:02] yrashk: warz: https://no.de/ [04:03] warz: nice. thanks. just looking for insight into a typical production deployment. [04:03] SubStack: git push deployment <3 [04:04] SubStack: need to get that working for my own stuff :/ [04:04] meso_ has joined the channel [04:04] warz: not going to lie. i have basically never used git for a project. [04:05] warz: of my own, that is. [04:06] yrashk: ACTION is playing with an idea to prototype a heroku-ish service for erlang, with heavy git support as well [04:06] SubStack: git is pretty good and github is a mystical experience shared by everybody [04:07] warz: yup. github is nice. [04:07] SubStack: also nodejitsu is coming along but still in private beta [04:07] warz: ah yea. i feel like that thing has been private for so long. [04:08] mgutz: i still can't believe Heroku was acquired for that much, was there any big site on Heroku? [04:08] warz: i had always heard heroku was over priced for a rapidly scaling site. [04:08] pyrotechnick: it's not what it is [04:08] pyrotechnick: it's what it can be [04:08] pyrotechnick: that's why people buy stuff like heroku [04:09] warz: they just want it to be "theirs" [04:09] mgutz: i undersand that, but for 1/10 of the money, they could have hired rock star admins and developers [04:09] mgutz: 250 mil? [04:09] mgutz: wow [04:09] warz: the company buying heroku wasnt buying them for their admin expertise [04:10] SubStack: the customers and name recognition probably factored a lot into their calculation [04:10] SubStack: plus anything to do with "cloud" is trendy right now [04:11] SubStack: ACTION says that as one of those "cloud" things [04:11] mgutz: whom do you work for? [04:11] warz: yea, im not sure what i think about the cloud trend, as a trend, right now [04:11] warz: i feel liek it may be on the decline, soon [04:11] halfhalo: Cloud calculator! [04:11] warz: as a "trend word" that is [04:11] SubStack: ACTION is cofounding StackVM [04:12] SubStack: warz: well I doubt "cloud" in the sense of distributed hosted architecture is going anywhere [04:12] warz: no definitely not [04:12] warz: im just saying as like a buzz word, or whatever [04:12] SubStack: yeah probably [04:13] SubStack: especially as companies pick off the low-hanging fruit and come up with more specific terms for what they do [04:13] halfhalo: Next it will be the "mist" [04:13] yrashk: SubStack: StackVM is interesting [04:13] warz: although i will admit, i still want to find something and market it using the cloud buzz [04:13] SubStack: yrashk: give browserling a spin [04:13] mgutz: pretty cool substack. Is that similar to Microsoft Expression [04:14] yrashk: SubStack: yeah I saw the video [04:14] SubStack: seeing what that is, the first I've heard of it [04:14] yrashk: its cool [04:14] mgutz: i forogt what it was called, but it allowed you to preview web pages in different browsers [04:14] SubStack: with live updates and interaction? [04:15] mgutz: and if you didn't have the browser installed lcoally it would send it to their servers [04:15] yrashk: SubStack: playing with browserling right now [04:15] mgutz: let me find info [04:15] meso_ has joined the channel [04:15] SubStack: oh but that microsoft thing looks like it only runs locally [04:15] SubStack: browserling is all about hosted browsers [04:15] mgutz: http://www.microsoft.com/expression/products/SuperPreview_Overview.aspx [04:15] SubStack: mgutz: ah that is a cool feature [04:16] mgutz: it markets better than it worked [04:16] comster has joined the channel [04:16] SubStack: browserling would work a little better if we had more money for servers [04:17] echosystm: whats the best way to extend Error ? [04:17] SubStack: echosystm: why would you want to do such a thing? [04:17] echosystm: for assertion testing [04:18] SubStack: what does assertion testing entail? [04:18] echosystm: being able to differentiate between errors [04:18] SubStack: ah [04:18] echosystm: eg. TypeMismatchError [04:18] SubStack: you should be able to just set a function prototype [04:18] SubStack: and check with instanceof [04:19] echosystm: i'd like it to be able to still do the stacktrace stuff [04:19] echosystm: so i'm not sure what's required to keep that [04:19] SubStack: v8: function MeowError () {}; MeowError.prototype = new Error; new MeowError instanceof Error [04:19] v8bot: SubStack: true [04:20] SubStack: and then the constructor trick [04:20] SubStack: or use util.inherits [04:20] SubStack: *utils [04:20] SubStack: oh they both work [04:20] SubStack: I hate that name, utils [04:21] pyrotechnick: me too [04:21] pyrotechnick: but sys was even worse [04:21] SubStack: also true [04:23] ossareh has joined the channel [04:23] echosystm: whats this super_ thing? [04:24] echosystm: why is there an underscore [04:24] SubStack: I have no idea. [04:24] echosystm: someone needs to write a document on conventions [04:24] comster: inherits sets it to something... I was having trouble using it the other day [04:24] SubStack: I haven't used utils.inherits in any real code, only in the debugger [04:25] echosystm: or we're going to end up in a pile of mess like perl [04:25] SubStack: but then I try to avoid classical OO design in javascript [04:26] SubStack: echosystm: http://nodejs.org/api/all.html#util.inherits [04:26] kiddphunk has joined the channel [04:28] jashkenas: SubStack: if you don't use prototypes classically in JS, yer doing it wrong™ [04:28] jashkenas: not that this needs to be harped on again. [04:28] jashkenas: But here, for example: https://github.com/substack/dnode/blob/master/lib/conn.js [04:28] jashkenas: Every new Conn object brings with it another memory-heavy copy of each of Conn's methods. [04:28] SubStack: my style has been evolving since I wrote that [04:29] SubStack: and private state ftw [04:29] daveyjoe has joined the channel [04:29] SubStack: I hate writing stuff the Fn.prototype.xxx way [04:29] comster: jashkenas, thanks for the harping, I'm listening [04:29] tim_smart: Dance party! ftw? [04:29] jashkenas: me too, but it's how it works. [04:30] SubStack: pfft [04:30] SubStack: jashkenas: sounds like premature optimization to me [04:30] tim_smart: I was mean to say "RAM usage! ftw?" [04:30] SubStack: write it the pretty way first and optimize it later if it's not fast enough [04:30] mif86 has joined the channel [04:30] tim_smart: Don't know how dance party got in there [04:31] jashkenas: (or write it in coffeescript and have it be pretty and fast the first time around) ... but I'll shut up now. [04:31] skm has joined the channel [04:32] noahcampbell has joined the channel [04:32] SubStack: passing state around through attributes sucks for encapsulating stateful transactions [04:33] jashkenas: what's the difference, other than the "this." prefix? [04:33] comster: F. I was about to say how much I hate coffeescript, and let me know if I'm wrong but, if it is only making it "pretty" and not functionally less "broken" than js can be sometimes... I think it'd be better to just have the javascript in plain text so it's easier to learn from etc.. [04:33] echosystm: function MyError() {}; util.inherits(MyError, Error); [04:34] jimt_ has joined the channel [04:34] jashkenas: comster: both pretty and less broken, hopefully. [04:34] echosystm: when i throw new MyError(), i dont get a stack trace [04:34] echosystm: what am i doing wrong? [04:34] comster: although I'm selfish in the idea that I don't want to learn more languages [04:34] comster: kinda a massive benefit of server js / client js [04:38] rednul has joined the channel [04:43] hunterloftis has joined the channel [04:44] Desmont has joined the channel [04:46] saschagehlich has joined the channel [04:49] creationix has joined the channel [04:49] creationix: mikeal: you around? [04:50] mikeal: yeah [04:50] jameshome has joined the channel [04:50] skm has joined the channel [04:53] jameshome has left the channel [04:53] fugoki has joined the channel [04:54] tylerstalder has joined the channel [04:55] JimBastard has joined the channel [04:56] PyroPeter has joined the channel [04:57] arrty has joined the channel [04:57] tylerstalder_ has joined the channel [04:59] tylerstalder__ has joined the channel [04:59] masahiroh has joined the channel [04:59] bingomanatee_: Its always good to learn a new language - but coffescript is just a dialect. It doesn't make things run faster or better or enable features that Javascript lacks. [05:01] comster: to me that seems counter productive then, as do most "templating engines" [05:02] bingomanatee_: Lost opportunity is counter productive [05:03] shaver: hug it out, guys [05:05] sechrist has joined the channel [05:05] tylerstalder has joined the channel [05:05] echosystm: anyone know how to subclass Error properly? [05:05] MikhX has joined the channel [05:06] creationix: why subclass it? [05:06] echosystm: for assertion testing [05:06] ashleydev has joined the channel [05:06] echosystm: assert.throws(function() {...}, SpecificErrorHere); [05:06] creationix: function MyClass{} MyClass.prototype.__proto__ = Error.prototype [05:07] echosystm: ok, let me try that [05:07] benburkert has joined the channel [05:08] creationix: ashleydev: sup [05:13] tylerstalder_ has joined the channel [05:13] tylerstalder_ has joined the channel [05:13] dnolen has joined the channel [05:22] mattly has joined the channel [05:22] langworthy has joined the channel [05:24] JimBastard: where is isaacs [05:25] creationix: California I believe [05:29] tylerstalder_ has joined the channel [05:29] JusticeFries has joined the channel [05:29] tylerstalder_ has joined the channel [05:29] sprout has joined the channel [05:31] bmizerany has joined the channel [05:31] creationix has left the channel [05:32] boaz has joined the channel [05:34] rsms has joined the channel [05:39] googol has joined the channel [05:44] ron_frown: so a question of dev [05:44] forzan has joined the channel [05:44] ron_frown: I'd like to have a asp.net server in effect act like another client to node.js server [05:44] ron_frown: and push and recieve stuff [05:45] ron_frown: but establishing/reestablishing socket connections and making sure its connected seems like it may be a lto of work [05:45] ron_frown: vs just adding a post handler [05:46] ron_frown: you guys think I'd stand to gain a lot by trying to keep server connected to node.js [05:46] ron_frown: but actually maintain a few worksers sending messages? [05:47] dgathright has joined the channel [05:47] warz: hrm. honestly, if i were looking into server to server communication id look into other protocols [05:48] warz: i dont have the answer as to which one is best for your scenario though [05:48] warz: be back tomorrow! [05:49] tylerstalder_ has joined the channel [05:50] fangel has joined the channel [05:51] wilmoore has joined the channel [05:52] Figaroo has joined the channel [05:55] matjas has joined the channel [05:55] mikew3c_ has joined the channel [05:56] tilgovi has joined the channel [05:57] JimBastard has joined the channel [05:58] echosystm: is there no way to extend the Error class properly? [05:59] echosystm: nothing ive found on google works how it is supposed to [06:00] Aria: Heh. It's possible, but differs across runtimes from what I've seen. [06:01] echosystm: i only want to do it on node.js [06:02] echosystm: i need the subclass to have a stacktrace when thrown and also be an instance of its own class [06:02] meso_ has joined the channel [06:02] Figaroo has joined the channel [06:02] springmeyer has joined the channel [06:02] isaacs has joined the channel [06:04] gaYak has joined the channel [06:05] Aria: Man, I'm trying to remember what I did when I was playing with this. [06:05] echosystm: am i doing it wrong? [06:05] ajpiano has joined the channel [06:06] echosystm: coming from other languages, having exceptions seems a bit useless if you can't differentiate between them properly [06:06] sudoer has joined the channel [06:06] Aria: It does, but the usual way is to look at properties of an error. [06:06] Aria: Javascript is definitely sloppy if not outright weak on this. [06:07] derferman has joined the channel [06:07] tylerstalder has joined the channel [06:07] Aria: https://gist.github.com/774092 [06:08] devdrinker has joined the channel [06:08] TheEmpath2 has joined the channel [06:08] bmizerany has joined the channel [06:09] TheEmpath2: harro [06:09] TheEmpath2: anyone familair with how to make DBRefs in Mongoose? [06:09] beawesomeinstead has joined the channel [06:09] beawesomeinstead has joined the channel [06:10] mattly has joined the channel [06:11] echosystm: Aria: what is core ? [06:11] Figaroo: how do I sent emails in node.js? [06:11] Aria: Just a namespace object. [06:12] dgathright has joined the channel [06:13] jpld has joined the channel [06:14] Ond has joined the channel [06:15] mgutz: echosystm: this works on server side https://gist.github.com/774103 [06:18] tylerstalder has joined the channel [06:18] Aria: mgutz: Does that have a backtrace? [06:19] mgutz: nah, basically you can throw any class you want [06:19] mgutz: you'd have to build your own hierarchy [06:20] admc has joined the channel [06:20] Aria: right. That's the problem. [06:20] Aria: You need to use Error to get the backtrace. [06:23] orospakr: Hey, has anyone used strtok with an incoming HTTP request? I am aware that the Request object quacks like a Stream, and strtok.parse() expects a Stream, but I think there are some unknown unknowns that I am not taking into account. [06:25] Figaroo: I'm thinking of just quiting PHP cold turkey and going with Node.js. What do you think, and can Node.js replace all everything I can do with PHP? [06:25] Aria: Yes. They're both turing complete. [06:25] Aria: And both can bind C libraries. Question is how much work it's gonna be. [06:26] Aria: HOW you do it may well be different. Very much so. [06:26] Aria: Yargh. I can now crash webkit reliably. [06:27] dnyy has joined the channel [06:28] mgutz: i find node + express good for things I used Sinatra for -- data services, apis ... i'm still on rails for heavy UI (form generators, admin areas, etc) [06:28] mgutz: node will eventually get there, but it's not there yet [06:32] fgnass has joined the channel [06:32] derren13 has joined the channel [06:33] SamuraiJack has joined the channel [06:41] devdrink_ has joined the channel [06:42] AAA_awright_ has joined the channel [06:42] bitdrift has joined the channel [06:45] SubStack: mgutz: you can help it get there by writing code! :D [06:45] mgutz: I am, slowly but surely [06:45] vIkSiT has joined the channel [06:45] vIkSiT: hi all [06:46] SubStack: the fittest idioms and approaches are still emerging and it's fun times [06:46] vIkSiT: I'm running a spawned tail -f command, and trying to print the data received to stdout. But I end up getting ASCII representations of the data. [06:46] vIkSiT: Is tehre a way to convert this to string and print it? [06:47] vIkSiT: I'm using the code mentioned here: http://stackoverflow.com/questions/3499152/minimum-websocket-nodejs-tail-example/3646471#3646471 [06:47] vIkSiT: and instead of sys.write, I use sys.puts/print [06:47] vIkSiT: s/sys.write/res.write [06:47] vIkSiT: any ideas on whats going on here? [06:47] SubStack: probably a buf, you can .toString() it [06:48] devdrinker has joined the channel [06:49] SubStack: oh strange I would have thought you can res.write buffers [06:49] vIkSiT: SubStack, hehe great, thats what i needed. thanks [06:49] jimt has joined the channel [06:50] desaiu has joined the channel [06:51] bitdrift: ok so the query string parsing strategy in v0.2 makes it impossible to parse some openid requests [06:52] bitdrift: for instance, i can have both openid.ns=foo and openid.ns.ext1=bar in the same query string [06:53] SubStack: it's not too hard to write a parser for that [06:53] bitdrift: SubStack: correct, in fact it's already done in the v0.3 branch [06:53] bitdrift: BUT [06:54] bitdrift: i imagine the v0.2 branch can't be changed without breaking a bunch of code out there [06:55] bitdrift: so I'm wondering if it makes sense to have some sort of option to override the default parser? [06:57] SubStack: just throw up a module oldquerystring on npm [06:57] Figaroo: Is there a framework for Node that is similar to codeigniter in that it's view files are just HTML pages and you basically load them while passing data to them? [06:58] isaacs: bitdrift: yeah, i agree. [06:58] isaacs: bitdrift: the dot-separating stuff should never have landed, imo [06:58] isaacs: no other system does that [06:58] isaacs: the [] stuff is pretty cool, but not worth the complexity cost. [06:58] SubStack: you could fix it with proxies >:D [06:58] shaver: haha [06:59] isaacs: actually, openid chose . *because* no platforms mess with it [06:59] isaacs: pretty much all other punctuation is somehow relevant [06:59] SubStack: or rather, hoxies, as I'm now calling them [06:59] bitdrift: haha [06:59] SubStack: everyone should call harmony proxies hoxies now, I've decided [07:01] bitdrift: SubStack: what's this about proxies? [07:01] bitdrift: is that like a plugin/module thing? [07:01] SubStack: but I'm just guessing that v0.3 splits on dots to build a nested structure? [07:01] SubStack: bitdrift: harmony proxies [07:01] tylerstalder has joined the channel [07:02] bitdrift: nope, actually v0.3 just keeps the strings whole [07:02] SubStack: bitdrift: they're like operator[] and operator[]= [07:02] SubStack: which of course in javascript traps attribute access because that's just the way javascript rolls [07:02] void_ has joined the channel [07:02] CrypticSwarm has joined the channel [07:03] Mike_L has left the channel [07:04] bitdrift: SubStack: ah interesting [07:05] meso_ has joined the channel [07:05] bitdrift: I guess I'd rather just have a v0.2 module that forces v0.3 style though [07:05] saschagehlich has joined the channel [07:06] gaYak: mm, how well does socket.io scale/work without the WebSockets support (which is going to get removed at least temporarily from Chrome/Opera/Firefox) ? [07:08] herbySk has joined the channel [07:11] mr_daniel has joined the channel [07:13] ewdafa has joined the channel [07:14] Moominpapa has joined the channel [07:14] echosystm has joined the channel [07:15] echosystm: sorry dudes, had to run off before or i'd miss my bus [07:15] echosystm: so... subclassing the Error class [07:15] case__ has joined the channel [07:15] echosystm: how? [07:16] echosystm: or should i just not be using custom errors? [07:19] kawaz_air has joined the channel [07:19] whyme: echosystm: http://nodejs.org/docs/v0.3.4/api/util.html#util.inherits [07:19] whyme: available in 0.2.x too [07:20] herbySk: echosystm: What's the problem with classical subclassing pattern? Does it not work? [07:21] echosystm: hang on 2 seconds [07:22] eags_ has joined the channel [07:23] eags_: how stable is 3.4 vs 2.6? I want to write some real apps using node.js but nothing so mission critical that I'd want to give up a lot of good improvements and new features if 3.4 was actually pretty solid. [07:23] perezd has joined the channel [07:23] echosystm: the issue was getting the stacktrace to happen properly too... ive worked it out now [07:24] herbySk: echosystm: Yes, util.inherits is fine, plus do not forget to put Error.apply(this, arguments) as the first statement in the constructor of subclass itself (or something other than Error, if you do nested subclasses) [07:24] cadrlife has joined the channel [07:24] echosystm: var MyError = function() { Error.captureStackTrace(this, MyError); }; MyError.prototype.__proto__ = Error.prototype; [07:24] echosystm: that seems be ok [07:25] echosystm: ah, forgot apply [07:25] echosystm: thanks [07:26] herbySk: echosystm: __proto__ is not standard :-), plus, util.inherits probably sets constructor right (but if you does not bother about constructor, what you've done is ok). [07:28] echosystm: cool [07:28] echosystm: thanks [07:28] herbySk: echosystm: The 'canonical' way is to do MyError.prototype = Object.create(Error.prototype) [07:28] muhqu has joined the channel [07:29] xSmurf has joined the channel [07:29] echosystm: i'm just going to use inherits [07:29] echosystm: :P [07:29] echosystm: i had a question earlier though, perhaps you can shed some light on that too... [07:30] echosystm: why does inherits add super_ ? whats the significance of the underscore? [07:30] echosystm: sorry that was worded bad haha, i just want to know what the underscore is for [07:30] echosystm: (just curious if it is some convention that i should be using myself) [07:32] whyme: echosystm: nothing special, i believe [07:32] herbySk: echosystm: It adds it for convenience for those who are used to have some accessor named "super" or "inherited" for the superclass, the underscore is used to denote "internal", "private" things -- here it was probably done mainly not to cause nameclash should someone use the "normal-looking" property super [07:32] echosystm: ah [07:32] echosystm: ok [07:32] echosystm: shouldnt the underscore be at the beginning ? :P [07:32] echosystm: _hidden seems to be the usual [07:33] shaver: in C, underscore-leading is reserved [07:33] shaver: so v8 code uses trailing [07:33] echosystm: ok [07:35] echosystm: so the inherits function runs in c, not javascript? [07:38] whyme: echosystm: see: https://github.com/ry/node/blob/v0.3.4/lib/util.js#L390 [07:42] echosystm: so... just looking at those lib files [07:42] echosystm: it seems modules that just export functions have their names_like_this [07:42] echosystm: but modules that export 'classes' have nameslikethis [07:42] echosystm: correct? [07:45] echosystm: no, nevermind [07:49] ivanfi has joined the channel [07:50] zentoooo has joined the channel [07:51] Bakafish_ has joined the channel [07:59] virtuo has joined the channel [07:59] under_ has joined the channel [08:02] linac has joined the channel [08:03] ajpiano has joined the channel [08:03] sechrist has joined the channel [08:04] meso_ has joined the channel [08:04] butu5 has joined the channel [08:05] mAritz has joined the channel [08:05] butu5: Hello guys.. I am able to start with node.js + barista + coffeescript + rails successfully in Mac.. but getting hard time on running the same on cygwin.. [08:06] ph^ has joined the channel [08:06] butu5: I am getting "WideCharToMultiByte: The data area passed to a system call is too small.Error: ENOENT, No such file or directory '/cygdrive/c/hack/iliketea/C:/Documents" error [08:11] mgutz: isn't /cygdrive/c == C: ? [08:11] butu5: yes [08:11] butu5: but from where that /C:/Docu* taking I have no idea [08:12] butu5: actually I ran rake barista:brew for compiling the .coffee file to .js using nodejs [08:13] daveyjoe has joined the channel [08:13] case__ has joined the channel [08:13] jbpros has joined the channel [08:14] butu5 has left the channel [08:24] kriskowal has joined the channel [08:26] kawaz_air has joined the channel [08:27] Gruni has joined the channel [08:28] Remoun has joined the channel [08:30] borior has joined the channel [08:30] borior has joined the channel [08:30] q_no has joined the channel [08:32] DH1JC has joined the channel [08:33] qFox has joined the channel [08:34] fUD has joined the channel [08:34] DH1JC: ACTION failed on compiling node.js on cygwin on part 51/72 building libv8.a [08:36] ttpva has joined the channel [08:36] adambeynon has joined the channel [08:40] felixge has joined the channel [08:40] felixge has joined the channel [08:42] jstemmer has joined the channel [08:44] mayfield has joined the channel [08:45] gozala has joined the channel [08:48] Gruni has joined the channel [08:48] DH1JC: are there known problems on compiling on cygwin (win xp.. 32bit) [08:50] mikedeboer has joined the channel [08:51] DH1JC: ./configure works without problem, then make gives an error on compileing the libv8.a [08:52] sechrist has joined the channel [08:55] pdelgallego has joined the channel [08:55] skm has joined the channel [08:56] skm has joined the channel [08:57] AAA_awright_ has joined the channel [08:58] mikedeboer has joined the channel [09:00] evanmeagher has joined the channel [09:01] butu5 has joined the channel [09:01] koning_r1bot has joined the channel [09:02] Druid_ has joined the channel [09:02] koning_r1bot: how do I get a backtrace that shows more than 10 frames? [09:02] evanmeagher: isaacs: npm version doesn't seem to work. [09:02] ROBOd has joined the channel [09:02] isaacs: evanmeagher: gist? [09:03] isaacs: oh, it thinks the git working dir is not empty [09:04] evanmeagher: isaacs: https://gist.github.com/8876ee6dab70453d7110 [09:04] glenngillen has joined the channel [09:04] evanmeagher: isaacs: yeah, the filter in checkGit doesn't empty list completely [09:05] q_no has joined the channel [09:05] butu5: cygwin + node.js + barista + coffeescript error while compiling .coffee file to .js using node.js https://gist.github.com/774219 [09:06] isaacs: yeah [09:06] DH1JC: @butu5 ... i can't even compile the node.js on cygwin... ;( [09:06] arnorhs has joined the channel [09:06] springify has joined the channel [09:06] glenngillen has left the channel [09:07] butu5: @DHIJC: I can able to compile you followed the link.. https://github.com/ry/node/wiki/Building-node.js-on-Cygwin-(Windows) ? [09:07] sechrist has joined the channel [09:07] butu5: you need to install couple of library stuff to get it compile.. [09:08] butu5: I can able to run the sample example too... first http server :) [09:08] arnorhs has joined the channel [09:08] SamuraiJack_ has joined the channel [09:08] DH1JC: it complains about errors while compiling libv8.a [09:09] butu5: you are compiling from github branch or the stable one? [09:09] DH1JC: Now I try again on the 0.3.4... [09:09] isaacs: evanmeagher: fixed on 43e09e1 [09:09] isaacs: thanks [09:09] evanmeagher: np :) [09:10] devdrinker has joined the channel [09:10] ntelford has joined the channel [09:11] ntelford has joined the channel [09:11] DH1JC: @butu5 nope. even then 0.3.4 does not compile ... soemthing like: error: cannot allocate an object of abstract type 'v8::internal::CygwinMutex' [09:12] DH1JC: ... and a few more lines ;( [09:12] butu5: hmmm [09:12] butu5: I tried 0.2.6 [09:12] DH1JC: give me a sec... [09:12] butu5: u running on xp or window 7 [09:12] butu5: okie [09:12] aklt has joined the channel [09:14] augustl has joined the channel [09:14] SamuraiJack_ has joined the channel [09:15] herbySk has joined the channel [09:16] DH1JC: that one seems to work... but also reading might help... there is a patch for the c8 cygwin thing... ( on the page you mentioned ) [09:16] DH1JC: ;/ dumb me [09:16] butu5: cool good you figure it out [09:16] butu5: I am still digging on my issues [09:17] butu5: looks like it is HOME directory set in cygwin [09:17] butu5: @DH1JC are you comfortable with cygwin.. [09:17] DH1JC: uhm yes. mostly. Why? [09:18] butu5: I think by default.. cygwin set it's home directory at C:\Documents and Settings\Administrator [09:18] butu5: which has spaces in folder name and causing all problem [09:18] butu5: can I change to some other directory [09:18] butu5: without reinstalling cygwin? [09:19] DH1JC: good question... I installed c:\cygwin\home\jc so no spaces ;) [09:19] DH1JC: for testing you might can choose some temp directory for compiling to see if the problem is still there?! [09:19] butu5: hmm [09:21] butu5: coffee -c test.coffee working great [09:22] margle has joined the channel [09:22] DH1JC: Now compiling the 0.3.4 .. with the supplied patch (Crossing Fingers...) [09:22] butu5: best of luck! [09:23] margle has joined the channel [09:24] B2oba has joined the channel [09:24] [AD]Turbo has joined the channel [09:24] [AD]Turbo: hi there [09:25] DH1JC: @butu5.. whoa seems to work [09:25] butu5: gr8.. cool :) [09:25] SamuraiJack_ has joined the channel [09:25] TomY has joined the channel [09:26] B2oba: Hey... I have a CentOS VPS, and want to host a node.js application there. I can't figure out how to create a deamon that 1. Starts on startup, 2. Restarts App if node process goes down.... anyone knows a tutorial that cover that? or let me know of option to research? (I'm 1 week new to linux) [09:26] sriley has joined the channel [09:29] wdperson has joined the channel [09:31] DH1JC: @b2oba my friend uses http://cr.yp.to/daemontools.html for such things... [09:32] muk_mb: B2oba: ruby gem called God will do it too [09:33] B2oba: @DH1JC: Thanks looking at the document [09:33] DH1JC: ur welcome [09:34] B2oba: muk_mb: hum, sorry I did not understand that sentence "ruby gem called God" ? [09:35] muk_mb: a gem is a ruby library/module thingy [09:36] muk_mb: http://god.rubyforge.org/ [09:38] jbpros has joined the channel [09:39] sebs has joined the channel [09:40] B2oba: muk_mb: Thanks, reading the documentation. I just read about "monit" which seems to do something similar. I'll try hacking something out. Thanks! [09:43] karboh has joined the channel [09:47] DH1JC: oh. node.exe v.0.3.4 segfaulted on windows. xp [09:48] koning_r1bot: how do I get a backtrace that shows more than 10 frames? [09:50] bzinger has joined the channel [09:52] Blink7 has joined the channel [09:57] agnat has joined the channel [10:03] butu5 has left the channel [10:05] Bakafish_: @member:b2oba I've been successfully using daemontools to keep my node proc up. [10:05] mikew3c_ has joined the channel [10:08] case__ has joined the channel [10:08] gozala has joined the channel [10:09] Evet has joined the channel [10:11] Evet: what is your favourite single sign-on method? [10:14] xla has joined the channel [10:16] gozala has joined the channel [10:16] altamic has joined the channel [10:18] fgnass has joined the channel [10:18] jetienne has joined the channel [10:22] markwubben has joined the channel [10:23] cadrlife: JimBastard: Hi, jamescarr said I should ask you about getting in the Nodejitsu beta. [10:23] JimBastard: hey cadrlife did you sign up? [10:24] cadrlife: I entered my email in the box. ray.myers@gmail.com [10:29] [AD]Turbo has joined the channel [10:30] fgnass has joined the channel [10:31] JimBastard: cadrlife: ill see if i can get you in the next batch, should be shortly [10:31] cadrlife: Thank you much [10:32] herbySk has joined the channel [10:37] tanepiper: ohman, want this: http://rush.heroku.com/ but with nodejs [10:41] romainhuet has joined the channel [10:42] common- has joined the channel [10:42] jetienne has left the channel [10:42] jetienne has joined the channel [10:43] clarkfischer has joined the channel [10:45] handle_with_care has joined the channel [10:48] pgte has joined the channel [10:53] handle_with_care has joined the channel [10:53] okuryu has joined the channel [11:00] ivanfi has joined the channel [11:00] altamic_ has joined the channel [11:02] ron_frown has joined the channel [11:05] pgte has left the channel [11:06] hellp has joined the channel [11:06] pgte has joined the channel [11:06] ron_frown: anyone around? [11:06] pgte: hello [11:06] sveisvei: Hola [11:06] pgte has left the channel [11:07] ron_frown: I am confused about something [11:07] pgte has joined the channel [11:07] dalssoft has joined the channel [11:07] sveisvei: Share :) [11:08] ron_frown: I've got code I've built that allows socket.io to connect and chug along... basically set up on('message'), on('connect') and on('disconnect') [11:08] ron_frown: but ahve seen code that effectively would let me do things with that the usual way [11:08] ron_frown: and then also define "urls" for loading content [11:09] handle_with_care has joined the channel [11:09] ron_frown: I cant seem to find that content any longer [11:09] sveisvei: You talking server or client? [11:09] ron_frown: server [11:10] ron_frown: eg, I want to have a couple 'url handlers" that an app can do http posts to, in addition to the socket send/recieve stuff [11:10] sveisvei: e.g. a router? [11:10] ron_frown: uhh I dont know [11:10] ron_frown: is that what its called in node.js? [11:11] sveisvei: expressjs does it like this. app.post("/url/to/post/to", function(req, res){//Return something}) [11:12] Kingdutch has joined the channel [11:12] sveisvei: or connect even, express builds on connect [11:12] fly-away has joined the channel [11:13] sveisvei: You find alot of routers here, in the first section: [11:13] sveisvei: https://github.com/ry/node/wiki/modules [11:13] ron_frown: hmm [11:13] ron_frown: so I could have express in place with a couple urls defined [11:14] ron_frown: and then have socket.io included and do io.listen and handle the events and not step on eachothers toes? [11:16] noahcampbell has joined the channel [11:16] desaiu has joined the channel [11:20] echosystm: yes [11:20] echosystm: do you understand how socket.io works? [11:21] sth: I'm tempted to roll out socket.io, and give it another go [11:21] echosystm: i meant ron_frown [11:21] echosystm: :P [11:21] sth: Does socket.io have event source yet? [11:21] sth: echosystm: I know, but it triggered my response :D [11:22] sth: hi ron_frown [11:22] clarkfischer has joined the channel [11:24] ivanfi has joined the channel [11:25] dsirijus has joined the channel [11:27] mraleph has joined the channel [11:28] ron_frown: sth: hello [11:29] ron_frown: well I get that socket.io isnt really straight up socket back and forth under the scenes [11:29] iszak has joined the channel [11:29] ron_frown: I mean its different depending on which transport ultimately ends up getting used [11:30] ttpva has joined the channel [11:30] Evet has joined the channel [11:43] alek_br has joined the channel [11:47] d0k has joined the channel [11:50] tk has joined the channel [11:52] fermion has joined the channel [11:56] virtuo has joined the channel [11:59] killfill has joined the channel [11:59] WarriorSl has joined the channel [12:01] jtsnow has joined the channel [12:02] zorzar has joined the channel [12:07] fermion has joined the channel [12:12] piscisaureus has joined the channel [12:14] muhqu_ has joined the channel [12:17] eee_c has joined the channel [12:17] killfill has joined the channel [12:18] matjas has joined the channel [12:18] overra has joined the channel [12:20] crohr has joined the channel [12:28] ron_frown: building node for windows anyone? [12:28] ron_frown: I heard cygwin works but that there was a mingw version in the works or already there [12:31] piscisaureus: ron_frown: cygwin build is usable, tho it's 0.2 branch only [12:31] piscisaureus: mingw branch is in the works really [12:31] ron_frown: that means progress but not usable at all [12:31] DH1JC: I ddi build it today. [12:31] ron_frown: ? [12:31] piscisaureus: ron_fown: well, I can use it :-) [12:31] DH1JC: so the 0.2.6 works fine... the 0.3.4 compiles (after applying a patch) but then segfaulted... [12:32] DH1JC: sure useable... but not latest version... [12:32] ron_frown: piscisaureus: are you ry? [12:32] ron_frown: 2.6 would work for me [12:32] ron_frown: but running on cygwin sounds... highly undesirable [12:32] piscisaureus: ron_frown: no. ry is ryah. But he should be asleep right now. [12:32] ron_frown: right now I am running on my osx box [12:32] ron_frown: I should be too [12:33] ron_frown: but I am not! =) [12:33] squeek: I really don't get these workplaces, schools that lock the fuck down on everything and refuse flat out to install whatever to get the job done. [12:33] squeek: gah wrong channel [12:33] squeek: fml. [12:34] squeek has left the channel [12:34] adambeynon has joined the channel [12:34] jpld has joined the channel [12:34] jpld has joined the channel [12:34] virtuo has joined the channel [12:36] piscisaureus: ron_frown: cygwin sucks indeed. that's why we're moving away from that [12:38] piscisaureus: stuck with osx for a few more weeks until the mingw build gets more stable [12:38] ron_frown: you think thats all we're going to need? [12:38] ron_frown: I mean it wont be the end of the world to have a beefy linux box running all my node.js stuff [12:38] ron_frown: but ultimately I'd like to install along side my iis boxes [12:38] piscisaureus: for stability, yeah [12:38] piscisaureus: performance, no [12:39] piscisaureus: hmm [12:39] piscisaureus: i don't really have any experience with iis honestly [12:39] ron_frown: I totally get and respect peoples choices as far as not building it cross platform from the get go [12:39] dytrivedi has joined the channel [12:39] dytrivedi: hallo guise [12:39] ron_frown: but it does kind of suck that there are some rediculously promising projects [12:39] ron_frown: and I cant do much with them =) [12:39] piscisaureus: you would need to run node as a service I imagine, don't know how difficult that would be [12:39] dytrivedi: what does this error mean? "OutgoingMessage.prototype.close has been renamed to end() [12:39] ron_frown: change .close to .end() [12:40] ron_frown: means exactly what it says [12:40] ron_frown: piscisaureus: nah [12:40] dytrivedi: hmm let me see [12:40] ron_frown: I can run it just like anyone else woudl [12:40] ron_frown: just needs to listen on diff port and compile and run for windows [12:40] ron_frown: just saying I'd rather have each webserver node have its own node instance [12:41] piscisaureus: ok [12:41] sebs: hello noders [12:42] dytrivedi: thank you. [12:42] dytrivedi has left the channel [12:42] ron_frown: in regular js form a webpage where would JSON.stringify come from? [12:43] devkorcvince has joined the channel [12:43] devkorcv1nce has joined the channel [12:43] piscisaureus: The well-known JSON2 lib. Modern browsers have it built-in [12:43] ben_alman: or just google json2.js [12:43] ron_frown: well it was working on this other page I was just messing with [12:43] ron_frown: as soon as I tossed that logic in its own .js file [12:43] ron_frown: seems to be complaining [12:45] gozala1 has joined the channel [12:49] perlmonkey2 has joined the channel [12:50] devkorcvince: HugoGF have you installed restricted Drivers? [12:50] bentruyman has joined the channel [12:50] sriley has joined the channel [12:53] pdelgallego has joined the channel [12:54] marlun: If I want to start using node.js, should I install 2.x or 3.x? Homebrew has 2.x (brew install node will install 2.x). [12:54] pgte: marlun: install latest, compile by hand [12:55] margle: does anyone here use backbone.js? [12:55] enrik3 has joined the channel [12:55] pgte: marlun: follow instructions on http://nodejs.org [12:55] pgte: marlun: http://nodejs.org#download [12:57] jetienne: margle: install 2.x this is the stable branch. you dont need to experience all the 3.0 bumps while learning :) [12:57] margle: maybe for marlun [12:57] marlun: pgte: would've rather used homebrew so I could've easily uninstalled. [12:58] pgte: marlun: make uninstall [13:02] dobe has joined the channel [13:02] virtuo has joined the channel [13:07] booths has joined the channel [13:07] booths has joined the channel [13:08] marlun: pgte: Ah, a lot of other packages I've used havn't supported uninstalling with make. Thanks! [13:09] ron_frown: hrmm [13:10] baoist has joined the channel [13:13] booths: Could anyone help me out, I [13:13] booths: I'm having some difficulty... typing too apparently [13:15] booths: I'm getting ENOBUFS, No buffer space available. It's an in house program at the company I'm working at, so I have the /etc/resolv.conf set to the internal DNS... It seems to handle the initial connection because socket.io connects, but crashes shortly after. [13:15] booths: http://pastebin.com/Ua6Zu6xz is the actual output [13:16] mbrochh has joined the channel [13:16] mbrochh has joined the channel [13:17] zorzar_ has joined the channel [13:17] booths has joined the channel [13:22] virtuo has joined the channel [13:26] shinmei has joined the channel [13:27] piscisaureus: booths: cygwin :-( [13:27] karboh has joined the channel [13:27] booths: Yeah, unfortunately [13:27] piscisaureus: can you get a more meaningful stacktrace with node_g and gdb? [13:28] booths: I could probably try, but it takes a while for it to crash, upwards of 4-6 hours [13:28] piscisaureus: which ver? [13:28] booths: 0.3.1 [13:28] booths: It was running 0.2.6 as well, doing the same thing [13:30] piscisaureus: I think it is windows complaining that it ran out of socket buffers [13:30] piscisaureus: if you do netstat, do you see a lot of connections in TIME_WAIT state? [13:31] booths_ has joined the channel [13:31] booths_: Sorry, got disconnected, wireless here is finicky at best. Let me check [13:32] perezd has joined the channel [13:32] qnt4b has joined the channel [13:33] booths_: Not currently, but I'm not sure if that will change. [13:33] booths_: seems to have none at this time [13:33] piscisaureus: hmm [13:34] piscisaureus: I have seen problems where ENOBUFS on windows was caused by having too many sockets open [13:35] piscisaureus: event if in node the socket was closed, windows keeps the socket in TIME_WAIT state for a long time [13:35] booths_: The program basically is parsing XML that is posted to it and turning it into data, so there's a lot of regular HTTP POST connections happening, it just seems as soon as a regular browser connection happens [13:36] booths_: And past socket.io, because it handles the initial connection, as socket.io connects [13:36] dnolen has joined the channel [13:39] piscisaureus: booths_: don't understand what you're just saying [13:39] booths_: The regular http post requests don't connect to socket.io, is the only difference I can think of. I left the server running over night and those continued to work overnight. [13:39] booths_: But when I connected this morning it died immediately. [13:41] piscisaureus: I don't think that's it [13:42] piscisaureus: The ENOBUFS originates here: https://github.com/ry/node/blob/v0.3.1/src/node_net.cc#L369 [13:42] ron_frown: if I wanted to include an external js file in node.js app [13:42] ron_frown: do I just use require and plop the js file in the same dir? [13:42] piscisaureus: apparently your program is trying to connect to some other something [13:42] piscisaureus: that's where it crashes [13:43] booths_: An outgoing connection from the server? Hmm... [13:44] arpegius has joined the channel [13:44] piscisaureus: from dns apparently [13:44] djanowski has joined the channel [13:45] booths_: Well I do post a LDAP request shortly after connection using http.createClient [13:48] virtuo has joined the channel [13:48] aelaguiz: so after my unit tests are completed successfully for some reason I'm getting a "Object.keys called on non-object" exception, with a stack trace that roots in an EventEmitter - any pointers in tracking this down? [13:48] Ari-Ugwu has joined the channel [13:50] nsswb has joined the channel [13:52] aelaguiz: nvm, got it ;) [13:52] MattJ has joined the channel [13:53] booths_: Might be onto something piscisaureus [13:54] booths_: I refreshed a lot just to get a lot of LDAP connections to go out, and I see the active connections in established state. When I killed the server they're still here in TIME_WAIT [13:55] JusticeFries has joined the channel [13:58] mape: Anyone here used spark to spawn multiple instances along with socket.io? [13:58] piscisaureus: Can you also reproduce the crash? [13:58] piscisaureus: Unfortunately there's not much you can do about the time_wait trouble with node itself [13:58] piscisaureus: however you can change the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\TCPIP\Parameters\TcpTimedWaitDelay to a lower valye [14:00] booths_: Haven't reproduced the crash yet [14:00] m0rganic has joined the channel [14:00] booths_: They sit in time_wait for a while, and there's multiple. They do fall off, but once I reconnect w/ the same client they all come back and sit in established [14:00] piscisaureus: hmm [14:01] piscisaureus: how many connections? [14:01] booths_: 9 right now, I've refreshed a few times to get it that high [14:01] piscisaureus: 9 is not much. that shouldn't hurt [14:02] booths_: Hmm [14:02] aelaguiz: hey what debugger do you guys use? I've tried to get eclipse & google remote debugger working and failed - is that the current best way? [14:02] piscisaureus: how busy is that server normally, in terms of reqs per hour/sec/day? [14:03] booths_: It'd in dev right now, but in production it'd probably be about 100-200 people using it constantly during business hours, and taper down to about 50 people over night. [14:05] qnt4b: aelaguiz: node-inspector (GUI), ndb or gdb (command line) [14:05] booths has joined the channel [14:05] piscisaureus: booths: I don't know. Maybe you should just change node so it tries again a little later it it gets ENOBUFS [14:06] aelaguiz: qnt4b: thanks [14:06] rob__ has joined the channel [14:06] piscisaureus: https://github.com/ry/node/blob/v0.3.1/src/node_net.cc#L368 [14:06] piscisaureus: - if (r < 0 && errno != EINPROGRESS) { [14:06] piscisaureus: + if (r < 0 && errno != EINPROGRESS && errno != ENOBUFS) { [14:07] Sembiance: good morning everyone :) [14:07] booths: So what would 'trying a little later' do exactly? Refuse the connections in the mean time? [14:08] chrischris has joined the channel [14:08] piscisaureus: booths: no the crash happens in an *outgoing* connection [14:08] piscisaureus: try the connect a little later on ENOBUFS [14:08] piscisaureus: this does that: [14:09] piscisaureus: In https://github.com/ry/node/blob/v0.3.1/src/node_net.cc#L368 [14:09] piscisaureus: change [14:09] piscisaureus: if (r < 0 && errno != EINPROGRESS) { [14:09] piscisaureus: into [14:09] piscisaureus: if (r < 0 && errno != EINPROGRESS && errno != ENOBUFS) { [14:09] booths: Alright, I'll give it a try [14:09] tapwater has joined the channel [14:10] pHcF has joined the channel [14:10] thinkingpotato has joined the channel [14:10] matjas has joined the channel [14:11] dylang has joined the channel [14:20] Insanity5902 has joined the channel [14:21] charlenopires has joined the channel [14:25] ron_frown: anyone do anything with express? [14:25] ron_frown: I am trying to capture a guid for id on query string [14:26] augustl_ has joined the channel [14:33] EGreg has joined the channel [14:36] Ori_P has joined the channel [14:39] amacleod has joined the channel [14:40] sveimac has joined the channel [14:41] julienXX has joined the channel [14:42] hdon has joined the channel [14:43] jherdman has joined the channel [14:43] devkorcvince: clear [14:43] devkorcvince: ls [14:43] devkorcvince: clea [14:43] qnt4b: ron_frown: req.query gets you the query string, if that's what you're looking for [14:43] devkorcvince: sudo vimgol [14:43] angel333 has joined the channel [14:43] shinmei has joined the channel [14:44] devkorcvince: sudo vimgolsetup [14:44] devkorcvince: sudo vimgolhelp [14:44] devkorcvince: sudo vimgolsetup [14:44] devkorcvince: vimgold error on setup [14:44] devkorcvince: f [14:45] devkorcvince: Vim [14:45] eee_c has joined the channel [14:46] devkorcvince: vimgolf setup [14:47] devkorcvince: vimgolf setup require error [14:47] qnt4b: sudo getburrito [14:47] dnolen has joined the channel [14:48] devkorcvince: gem list [14:49] davidsklar has joined the channel [14:51] pengwynn has joined the channel [14:51] davglass has joined the channel [14:56] akahn has joined the channel [14:56] ceej has joined the channel [14:58] fumanchu182 has joined the channel [14:58] paulrobinson has joined the channel [15:00] Phyllio has joined the channel [15:02] russ_nyc has joined the channel [15:04] fangel has joined the channel [15:05] broofa has joined the channel [15:05] davidwalsh has joined the channel [15:05] jakehow has joined the channel [15:08] lukegalea has joined the channel [15:10] akahn has joined the channel [15:12] sivy has joined the channel [15:14] jelveh has joined the channel [15:15] jelveh: is there a way to make a stream writeable again? [15:16] jelveh: I'm using the node-utils request magic and give it a writeable stream to put the response in [15:16] jelveh: but when it does a redirect the writeable stream is not writable anymore [15:17] clarkfischer has joined the channel [15:18] devkorcvince: mplayers TraRe-zoom [15:23] creationix has joined the channel [15:24] bingomanatee_ has joined the channel [15:26] viirya has joined the channel [15:33] arnorhs has joined the channel [15:36] josephhitchens has joined the channel [15:36] mattly has joined the channel [15:36] wasabist` has joined the channel [15:39] femtoo has joined the channel [15:42] nefD has joined the channel [15:42] ivanfi has left the channel [15:43] softdrink has joined the channel [15:43] dylang_ has joined the channel [15:44] fumanchu182 has joined the channel [15:45] devkorcvince: f6~6~ [15:45] matt_c has joined the channel [15:49] devkorcvince: Vim [15:50] devkorcvince: ubuntu [15:52] blueadept_work has joined the channel [15:52] strmpnk has joined the channel [15:52] elijah-mbp has joined the channel [15:52] julienXX: hello! I have a list of facebook pages and I would like to retrieve their posts then comments in parallel. How could I do that? [15:53] case__: hmmm you could ask on a facebook related channel maybe :) [15:53] case__: that sounds more fb-api related [15:53] case__: to me [15:54] joemccann has joined the channel [15:54] julienXX: the FB part is ok, I'm doing it right now but it seems to me that my implementation is kinda synchronous. I'm just looking for the parallelization part? [15:54] BrianTheCoder has joined the channel [15:56] joemccann: sup yall [15:56] virtuo has joined the channel [15:56] joemccann: anyone familiar with how node handles/doesn't handle server side includes? [15:56] alek_br has joined the channel [15:57] MikhX has joined the channel [16:00] nook has joined the channel [16:02] benburkert has joined the channel [16:06] mikew3c_ has joined the channel [16:06] case__: julienXX, dunno, show us some code... [16:06] case__: joemccann, go on with your question [16:07] joemccann: case__: apache,IIS and nginx all handle the same convention for static html server side includes [16:07] joemccann: case__: node does not it appears [16:07] julienXX: case__: here https://gist.github.com/774628 thanks! [16:07] joemccann: case__: unless im wrong [16:07] astoon has joined the channel [16:07] case__: joemccann, not sure to understand your "static html server side includes" [16:08] jankoprowski has joined the channel [16:08] joemccann: case__: do you know what i mean by server side includes? [16:08] brianc: joemccann: node doesn't support this out of the box [16:08] yozgrahame1 has joined the channel [16:09] case__: joemccann, no [16:09] joemccann: brianc: thx, i didn't think so...back to nginx reverse proxy i suppose [16:09] brianc: joemccann: it'd have to be coded into something like connect, express, or some other framework if they're doing the actual html delivery [16:09] joemccann: brianc: right...im using express and it doesn't pick it up by default [16:09] brianc: joemccann: I believe it's still suggested to run with an nginx reverse proxy for better security anyway [16:10] case__: julienXX, hmmm from what i read it's allready async... [16:10] brianc: joemccann: though I would _like_ to not use nginx since removing it makes the stack more simple [16:10] nonnikcam has joined the channel [16:11] josephhitchens_ has joined the channel [16:11] joemccann: brianc: agreed, but surely better to use nginx than apache or IIS [16:11] brianc: joemccann: hell yes [16:12] joemccann: brianc: yeah and i usually don't use ss includes, but the project i just got on is using them [16:12] brianc: joemccann: and thankfully nginx's power doesn't come at the cost of extremely complicated setup or configuration too so is not a terrible burden [16:12] joemccann: brianc: yeah "brew install nginx" [16:13] julienXX: case__: ok thanks a lot! [16:13] ryah: ACTION waves [16:15] mape: bingomanatee_: Around? [16:16] ephesus has joined the channel [16:17] joemccann has left the channel [16:18] montylounge has joined the channel [16:21] julienXX: Is there a lib available for node to decompress gzip on the fly? [16:22] thinkingpotato_ has joined the channel [16:22] AAA_awright_ has joined the channel [16:25] mape: Anyone here used node-mongodb-native and mapReduce? [16:26] Gruni has joined the channel [16:26] noahcampbell has joined the channel [16:26] devkorcvince has joined the channel [16:27] JusticeFries has joined the channel [16:27] devkorcvince: for everyone\ using vim like this page on fb http://on.fb.me/eMJcmk [16:28] pagameba has joined the channel [16:28] Sami has joined the channel [16:29] nook has joined the channel [16:30] KUHRT has joined the channel [16:30] elux has joined the channel [16:31] WarriorSl has joined the channel [16:32] daniellindsley has joined the channel [16:33] tylerstalder has joined the channel [16:33] qnt4b: anybody using node-postgres with latest node? I can't trap an error on connect (bad connection string), it just hangs. [16:33] Kingdutch has joined the channel [16:33] craigbarnes has joined the channel [16:34] dguttman has joined the channel [16:36] m0rganic has joined the channel [16:36] dmcquay has joined the channel [16:37] perezd has joined the channel [16:39] Desmont has joined the channel [16:40] jamund has joined the channel [16:41] briznad has joined the channel [16:43] stepheneb has joined the channel [16:43] hornairs has joined the channel [16:43] c4milo has joined the channel [16:44] bitdrift has joined the channel [16:45] devkorcvince has left the channel [16:46] nefD has joined the channel [16:47] ben_alman has joined the channel [16:49] CIA-121: node: 03Ryan Dahl 07master * rb7419df 10/ (16 files): Upgrade libev to 4.3 - http://bit.ly/fiIlEo [16:49] JusticeFries has joined the channel [16:51] binarypie has joined the channel [16:52] hij1nx has joined the channel [16:53] briznad has joined the channel [16:55] kiddphunk has joined the channel [16:56] bradleymeck has joined the channel [16:58] jameshome has joined the channel [16:59] jackson_ has joined the channel [17:00] robotarmy has joined the channel [17:00] ben_alman has joined the channel [17:00] bingomanatee_: yea about to commute whats up mape? [17:00] bingomanatee_: mape: y6es [17:00] orospakr has joined the channel [17:00] ashleydev has joined the channel [17:00] jpick has joined the channel [17:00] stephank has joined the channel [17:01] craigbarnes has left the channel [17:01] hunterloftis has joined the channel [17:03] mape: bingomanatee_: I was trying to do a mapReduce with the native driver, think I figured it out though [17:04] bingomanatee_: yes itswonky but it can be done, using comnand. [17:04] mape: Yeah [17:04] bingomanatee_: I ** hate M/R - mongo is working on more elegant syntax for it but we [17:04] bingomanatee_: re stuck with what we got for now. [17:04] jackson_: I was playing with libev last night and it seems like it calls IO watchers in FILO order. Does this cause any problems in node? [17:05] bingomanatee_: good luck and good night :D [17:05] estrathmeyer has joined the channel [17:05] mape: Hehe k, nn [17:05] mattly has joined the channel [17:05] jij1nx has left the channel [17:07] estrathmeyer has left the channel [17:08] eee_c has joined the channel [17:08] jackson_: I guess it doesn't really matter, seems like FIFO would be ideal though. [17:08] danoyoung has joined the channel [17:09] elijah-mbp has joined the channel [17:09] balaa has joined the channel [17:10] broofa has joined the channel [17:11] kriskowal has joined the channel [17:12] SwiftLayer has joined the channel [17:12] hijinx has joined the channel [17:12] isaacs has joined the channel [17:13] jakehow has joined the channel [17:13] bradleymeck: jackson_ you could argue if we weighted watchers it could be "more" ideal based upon frequency of use, but that would probably be too difficult to calculate and lower performance on situations where you have few watchers [17:13] piscisaureus: ryah: https://github.com/ry/node/commit/b7419dfaadc512f46898f4ca8dae30b19fede83f#L7L1292 *snif* [17:14] jackson_: bradleymeck: good point. I guess I'm too focused on hello world type tests. [17:17] yozgrahame has joined the channel [17:19] bradleymeck: any v8 gurus know if you can check if something and all of its properties (recursive) are in the NearDeath state without a full walk? [17:20] claudiu__ has joined the channel [17:20] virtuo has joined the channel [17:22] mraleph: bradleymeck: one Handle knows nothing about other Handle. why do you need this? [17:22] robotarmy has joined the channel [17:22] bradleymeck: dont need it, just had a thought about shared memory and wondered [17:24] MikhX has joined the channel [17:25] nefD has joined the channel [17:25] nook has joined the channel [17:26] mraleph: bradeleymeck: mapping one C++ object to several JS objects in different isolates... it would be a bit painful :-) [17:26] ryah: piscisaureus: ? [17:27] ryah: piscisaureus: oh, is that your code? [17:27] ryah: piscisaureus: if you want me to float patches, i can - but please commit the patch file [17:28] Aria has joined the channel [17:28] amerine has joined the channel [17:29] brianc has joined the channel [17:30] bradleymeck: mraleph i think it would be ok complexity wise but probably slower than counter based, just the walk could have to take a while so wanted to avoid it. as for the C++ host objects from addons etc, meh [17:32] tjholowaychuk has joined the channel [17:33] w0rse has joined the channel [17:33] sonnym has joined the channel [17:33] q_no has joined the channel [17:34] trigrou has joined the channel [17:35] sudoer has joined the channel [17:36] jpld has joined the channel [17:36] jpld has joined the channel [17:36] ryah: piscisaureus: let's put together a gist with target API for tty stuff [17:37] ryah: piscisaureus: i want to attempt to build the unix backend [17:38] virtuo has joined the channel [17:39] ntelford has joined the channel [17:40] msekimura has joined the channel [17:41] EyePulp has joined the channel [17:41] charlenopires has joined the channel [17:42] nejucomo has joined the channel [17:45] eee_c has joined the channel [17:46] Sembiance: hrm [17:47] devdrinker has joined the channel [17:47] hobodave has joined the channel [17:48] devdrinker: i have a property set to enumerable:false basically an 'extends' method that hangs off object.prototype it seems to get included in JSON serialization [17:48] piscisaureus: ryah: I'm not really available now really, should be in 1-2 hours [17:48] tjholowaychuk: devdrinker: hmm it should not be [17:49] tjholowaychuk: enumerable: false is the default though BTW [17:49] devdrinker: well at least that what Im think is happening, let me check node-couchdb lib to ensure they are using JSON.stringify as basically the query object ends up looking like ..&extend=function blah blah [17:50] tjholowaychuk: Object.defineProperty(obj, 'foo', { value: bar }) should be good enough [17:50] devdrinker: yeah that what i got except with emerable: false too [17:51] nefD has joined the channel [17:52] dguttman has joined the channel [17:52] devdrinker: ah bullocks ignore, its my implementation of extends [17:52] alek_br has joined the channel [17:55] nook has joined the channel [17:56] boaz has joined the channel [17:58] virtuo has joined the channel [17:59] Ori_P has joined the channel [18:00] mif86 has joined the channel [18:00] possibilities has joined the channel [18:01] steffkes has joined the channel [18:02] mnbvasd_ has joined the channel [18:03] MikhX has joined the channel [18:03] benburkert has joined the channel [18:05] mnbvasd_: hi, I'm having trouble with node closing long-lived connections on me.. it seems to close them after a few minutes if it's not received data on it... I've tried things like: socket.setTimeout(0); , socket.setKeepAlive(enable=true,60000); , socket.setNoDelay(noDelay=true); , and also setInterval( function(){socket.send(" \n");},50000 ); - none of which seem to solve my problem... anyone got any ideas, or can point me at an obvious mistake? [18:06] jpld has joined the channel [18:06] mnbvasd_: I'm using the dev branch, and have been having this issue from v3.2 to v3.4 [18:07] tjholowaychuk: enable=true ? you are not actually writing that right? [18:07] vprajapa has joined the channel [18:07] tjholowaychuk: setKeepAlive(true..) ? [18:07] mnbvasd_: yeah, should I just write true? [18:07] tjholowaychuk: yeah [18:07] tjholowaychuk: otherwise you are creating globals [18:07] sudoer has joined the channel [18:07] mnbvasd_: ok thanks. [18:07] davidc_: tswicegood, ping [18:07] tjholowaychuk: mnbvasd_: coming from py? [18:08] tswicegood: davidc_: pong [18:08] vprajapa: when running make on cygwin I'm getting {task: libv8.a SConstruct -> libv8.a} error [18:08] CIA-121: node: 03isaacs 07master * r6f5d95d 10/ (4 files in 3 dirs): (log message trimmed) [18:08] CIA-121: node: child_process: Add gid/uid flags to spawn config [18:08] CIA-121: node: This is mostly working, but not completely ideal for two reasons. [18:08] CIA-121: node: 1. Rather than emitting an error on the ChildProcess object when the [18:08] CIA-121: node: setgid/setuid fails, it is simply printing the error to stderr and [18:08] CIA-121: node: exiting. The same happens with the cwd, so that's not completely [18:08] CIA-121: node: terrible. [18:08] mnbvasd_: tjholowaychuk: not really, I've done a little - but I mainly do shell and perl nowerdays... [18:08] tjholowaychuk: ah ok [18:10] deepthawtz has joined the channel [18:10] mnbvasd_: tjholowaychuk: I thought it was a bit strange, but then I find js a bit strange. [18:11] tjholowaychuk: was that in the docs or something? [18:11] dgathright has joined the channel [18:11] mnbvasd_: tjholowaychuk: aye, though I think it's more luser error, as it's basic js rather than node specific. [18:11] dgathright has joined the channel [18:11] lukegalea has joined the channel [18:12] tjholowaychuk: yeah I guess they just use that to illustrate the defaults [18:12] tjholowaychuk: ive seen that throw people off a few times though [18:13] pandark_ has joined the channel [18:17] djanowski has joined the channel [18:17] charlenopires has joined the channel [18:17] mnbvasd_: tjholowaychuk: thanks, it looks to have solved my problem :) [18:18] bitdrift: is it possible to force require() to load certain modules from a local path instead of the system path? [18:18] bitdrift: I thought this might work: require.paths.unshift(__dirname + "/support"); [18:18] bitdrift: but apparently not :-( [18:19] bitdrift: still loads the system modules unless I use a path [18:19] CIA-121: node: 03Ryan Dahl 07master * rb923296 10/ (doc/api/streams.markdown doc/api/util.markdown): Fix spelling mistakes - http://bit.ly/epYEoE [18:19] BrianTheCoder has joined the channel [18:20] yozgrahame has joined the channel [18:20] mnbvasd_: hmm.. [18:20] mnbvasd_: nope, not solved my problem. [18:20] c4milo: tjholowaychuk: expresssjs complains if I try to register one route twice? [18:21] mnbvasd_: exactly 10 minutes. [18:21] c4milo: tjholowaychuk: sorry for the question I haven't how to test that in this moment [18:21] c4milo: i don't ahve [18:21] tjholowaychuk: hm [18:21] tjholowaychuk: does it? [18:21] EGreg: hi [18:22] tjholowaychuk: not sure if i have tried that, same method as well? [18:22] c4milo: tjholowaychuk: probably no [18:26] trotter has joined the channel [18:28] hij1nx has joined the channel [18:29] jherdman has joined the channel [18:30] JojoBoss has joined the channel [18:30] charlenopires has joined the channel [18:31] femtoo has joined the channel [18:33] nook has joined the channel [18:34] dsirijus has joined the channel [18:35] sh1mmer has joined the channel [18:35] dsirijus has joined the channel [18:36] jimmyjazz14 has joined the channel [18:36] Aikar: anyway to access 'locals' in node like you would be able to do window.X in browser? [18:36] tjholowaychuk: Aikar: global.foo [18:36] tjholowaychuk: ? [18:37] jimmyjazz14: Aikar, you mean globals? [18:37] Aikar: var a = 1; [18:37] sam_mccall has joined the channel [18:37] Aikar: then being able to do blah.a [18:38] tjholowaychuk: ? [18:38] jimmyjazz14: 'a' is in scope [18:38] tjholowaychuk: wups [18:38] hornairs has joined the channel [18:38] Aikar: basically trying to do var a = 1, b = 2; ['a','b'].forEach(function(c) { //do something for vars and and b [18:38] Aikar: to avoid duplication of code [18:39] Aikar: sure i could put those vars in an object, but would be nice for a diff way [18:39] Aria: Yea? [18:39] Aria: I'd just var o = {a: 1, b: 2}; for(var c in o) { // do something with o[c] [18:40] Aria: Since that's almost exactly what you want. [18:40] aheckmann has joined the channel [18:40] Aikar: it is, was just trying to do it w/o changing those vars around [18:41] jimmyjazz14: Aikar, why pass the names (as strings) when you could just pass the value itself? [18:41] Aikar: going to use it for another object too which shares same names [18:42] jimmyjazz14: Aikar, sounds like some black magic [18:42] trotter has joined the channel [18:42] devdrinker has joined the channel [18:43] devdrinker: http://pastie.org/1449230 is it possible that this can cause a stackoverflow, or does setTimeout presumably break the stack? [18:43] Aikar: i have 4 objects which behave the same way, and i want to extract info out of each one and store it into a new object, so rather than 4 code blocks that extracts from 1 and stores to new, save some code [18:45] jimmyjazz14: Aikar, then why is 'a' and 'b' not part of an object? [18:45] Phyllio has joined the channel [18:46] Druid_ has joined the channel [18:46] jimmyjazz14: devdrinker, you are probably safe [18:47] stride: guys, anybody knows which version of node-amqp is currently advisable to fork when you want to add some stuff? [18:47] Aikar: jimmyjazz14: not a problem for it to be, just when i originally wrote the code for it i did var objtest1 = blah.getObj('test1'), objtest2 = blah.getObj('test2'), objtest3 = blah.getObj('test3'); and i then asked the question to see if i could achieve same thing w/o changing the code [18:47] jimmyjazz14: anyone know why npm is suddenly putting all my packages in "/n" [18:48] isaacs: jimmyjazz14: whoa, that's weird [18:48] isaacs: jimmyjazz14: npm config s [18:48] isaacs: *npm config ls [18:48] isaacs: then gist that^ [18:48] c4milo: isaacs: can we use npm with a private repository? [18:48] isaacs: c4milo: sure. npm help registry [18:48] isaacs: c4milo: just change the "registry" config. [18:49] c4milo: isaacs: cool, thanks [18:49] mraleph has joined the channel [18:49] dmcquay has joined the channel [18:50] virtuo has joined the channel [18:50] jimmyjazz14: isaacs, http://pastebin.com/Bc0eHDhR [18:50] c4milo: isaacs: doesn npm has this fancy web UI that mape did the other day in production? [18:50] isaacs: c4milo: well, there's npm.mape.me, or search.npmjs.org [18:50] isaacs: http://npm.mape.me and http://search.npmjs.org [18:51] isaacs: jimmyjazz14: and it's putting packages where now? [18:51] c4milo: isaacs: inotify doesn't show up :s [18:51] Aikar: isaacs: do you think you could add some form of 'export' command thatll export all npm installed libs into a barebone folder structure w/o symlinks? ie npm install blah then npm export /path/to/project/libs/ would make ./libs/express ./libs/connect ./libs/socket.io etc so could then require.paths.unshift('./libs'); and require('socket.io') still work as expected. I ask cause you know windows isnt that friendly with the idea of symlinks, and trying to put the [18:52] isaacs: Aikar: making npm work without symlinks would be a HUGE undertaking. [18:52] Aikar: ;( [18:52] isaacs: Aikar: that is, not likely, not any time soon. [18:52] isaacs: Aikar: also, you can't put relative dirs in require.paths [18:53] isaacs: Aikar: doesn't windows have some kind of symlink function? /cc piscisaureus [18:53] Aikar: i tried writing a script that exported the copy of /active/package/ of each library to my folder but stuff like express expects the require('connect/middleware/router') to be there which wasnt in the package folder [18:53] Aikar: yeah but checking out/downloading project from linux box to work on gets iffy [18:54] Aikar: and IDE seemed to of got stuck in an infinite recursion scan lol [18:54] jimmyjazz14: isaacs, well for example I have a small package https://github.com/jamessanders/iterators.js and it installs it at ~/.node_libraries/iterators@0.0.1/c/iterators.js [18:54] langworthy has joined the channel [18:54] Aikar: sounds right jimmyjazz14 [18:55] jchris has joined the channel [18:55] isaacs: jimmyjazz14: awesome, we got a test case. just a sec. [18:55] Aikar: look in the iterators@.001/ at index.js [18:55] pkrumins has joined the channel [18:55] sh1mmer: /msg ryah [18:55] ryah: sh1mmer: hey [18:55] sh1mmer: hm [18:55] sh1mmer: irc fail [18:56] isaacs: jimmyjazz14: i get this: https://gist.github.com/7e801616fe749d128bcc [18:57] jimmyjazz14: isaacs, yeah thats what I was originally getting [18:57] isaacs: jimmyjazz14: so, what changed? [18:57] hij1nx has joined the channel [18:57] tfe_ has joined the channel [18:57] MikhX has joined the channel [18:58] isaacs: jimmyjazz14: it seems like we're using the same version of npm [18:59] jimmyjazz14: isaacs, I get http://pastie.org/1449309 [18:59] jimmyjazz14: isaacs, notice the directory 'c' [18:59] isaacs: yeah [18:59] isaacs: jimmyjazz14: what version of node? [18:59] isaacs: (guessing path.join() or path.dirname() changes) [18:59] jimmyjazz14: v0.2.6 [19:00] isaacs: aha. k, just a second [19:00] matt_c_ has joined the channel [19:00] altamic has joined the channel [19:00] mattly has joined the channel [19:01] kevwil has joined the channel [19:01] isaacs: aha. so... if you start your folder name with "./" then it works the same. i think this is due to path.dirname() returning "" or something [19:01] bradleymeck has joined the channel [19:01] isaacs: definitely some kind of path-string-length cutting issue [19:03] bingomanatee_ has joined the channel [19:03] isaacs: ah, yep. join returning "" instead of "." [19:04] herbySk has joined the channel [19:05] sh1mmer has joined the channel [19:06] jimmyjazz14: isaacs, okay adding "./src" to my package file (instead of just "src") fixed the problem [19:06] isaacs: jimmyjazz14: i got a fix, one se [19:06] isaacs: c [19:08] isaacs: jimmyjazz14: npm i npm and it'll work [19:09] isaacs: thanks for the find :) [19:09] isaacs: (still feel free to add ./ onto the lib dir, of course, that'll still work) [19:12] kjeldahl has joined the channel [19:12] dgathright has joined the channel [19:13] jimmyjazz14: isaacs, thanks for the fix [19:14] hukash has joined the channel [19:15] aklt has joined the channel [19:16] montylounge has joined the channel [19:17] sechrist has joined the channel [19:18] bingomanatee_: : sends isaacs two porn stars [19:19] isaacs: bingomanatee: ...thanks? [19:20] jchris has joined the channel [19:21] ryah: :) [19:22] pkrumins: ryah: we'll be in SF tomorrow! we're meeting Brian Noguchi and also meeting with sauce labs. [19:23] pkrumins: sauce labs at 12:30, and then Brian Noguchi at 3pm. [19:23] pkrumins: we could all meet and have lunch [19:23] ryah: pkrumins: sweet - come by for an early lunch? [19:23] SubStack: oh yeah and I was poking around at runInNewContext and runInThisContext and it looks possible to make `exports = ...` work [19:23] ryah: pkrumins: or after your meetings? [19:23] pkrumins: after the meetings is better! [19:24] ryah: ok [19:24] pkrumins: where are you at? [19:24] ryah: 345 california st, 20th floor [19:24] pkrumins: sauce labs is on 3rd street [19:24] pkrumins: ryah: joyent right? [19:24] ryah: yeah [19:25] pkrumins: close to 3rd street [19:25] pkrumins: cool! [19:25] pkrumins: ryah: if we meet Brian (he didnt yet respond to our email), can he come along? [19:25] ryah: sure [19:25] pkrumins: awesome! [19:25] pkrumins: let's meet tomorrow then :) [19:26] ryah: cool :) [19:26] charlenopires_ has joined the channel [19:26] soniczen has joined the channel [19:27] fly-away has joined the channel [19:28] piscisaureu_ has joined the channel [19:28] m14t has joined the channel [19:29] jimmyjazz14: isaacs, I'm not sure that fixed it [19:29] teddy_ has joined the channel [19:30] svnlto has joined the channel [19:30] gf3 has joined the channel [19:31] Ond has joined the channel [19:32] hukash has joined the channel [19:32] sh1mmer has joined the channel [19:35] norviller has joined the channel [19:35] gf3` has joined the channel [19:36] springify has joined the channel [19:36] ossareh has joined the channel [19:38] ashleydev has joined the channel [19:39] Aria has joined the channel [19:42] piscisaureus: isaacs: Aikar: only vista and later come with symlink support. with quirks, as might be expected [19:42] isaacs: jimmyjazz14: oh? seeing other issues? [19:43] BrianTheCoder has joined the channel [19:43] piscisaureus: on xp and 2k, something symlink-like exists for directories only ('junction points') but they have even more quirks and I'm not sure whether it's safe to use them [19:44] ryah: doesn't windows have shortcuts? [19:44] ryah: that's a symlink - right? [19:44] steffkes: symlinks? not on windows [19:44] piscisaureus: nope [19:44] ryah: what is it? [19:45] steffkes: there is nothing like that on windows [19:45] piscisaureus: shortcuts are supported only by the explorer [19:45] piscisaureus: steffkes: wrong [19:45] agnat has joined the channel [19:45] piscisaureus: vista and above have full symlink support [19:45] steffkes: really? [19:46] piscisaureus: did you ever wonder how it made c:\users and " c:\documents and settings" point to the same location [19:46] JojoBoss has joined the channel [19:46] curtisc has joined the channel [19:47] gf3` has joined the channel [19:47] Aikar: piscisaureus: yes but it doesnt behave the same way. apps/explorer included see it as just another folder. [19:47] steffkes: piscisaureus, not really .. it's windows. so .. if it's working .. don't ask :D [19:48] jimmyjazz14: isaacs, I am using npm 0.2.14-6 now and the exact same problem as before is happening [19:48] isaacs: orly? [19:48] clarkfischer has joined the channel [19:49] dthompson has joined the channel [19:51] isaacs: jimmyjazz14: did you remove the iterators package and clean the cache before re-installing? [19:51] jimmyjazz14: isaacs, yeah [19:51] isaacs: hm... [19:51] jimmyjazz14: pretty weird stuff [19:51] isaacs: npm rm iterators ; npm cache clean ; npm install [19:51] c4milo: isaacs: can I just added a new package source to npm? [19:52] c4milo: isaacs: just like I can do with apt-get [19:52] c4milo: s/added/add/ [19:52] Aikar: hmm, whats syntax for a hot require, i thought it was require.hot ? [19:52] bebbo has joined the channel [19:52] isaacs: c4milo: i dont' understand teh question [19:53] c4milo: isaacs: do you know apt-get? [19:53] isaacs: c4milo: you want to publish something? or install something? [19:53] mikeal-iPhone has joined the channel [19:53] isaacs: c4milo: a little yeah [19:53] isaacs: oh, you want a new registry [19:53] isaacs: c4milo: it only talks to one registry at a time. [19:53] c4milo: isaacs: ohh I see [19:53] c4milo: isaacs: that would be a cool feature [19:53] isaacs: c4milo: the registry is a couchapp. you can replicate it if you want, or selectively replicate it. [19:53] isaacs: c4milo: yeah, but it's very not easy. [19:53] c4milo: isaacs: yes, I understand [19:54] isaacs: c4milo: imagine writing a proxy server that gets requests and then routes them to the appropriate registry. [19:54] isaacs: you'll get a request like /foo/1.2.3 [19:54] c4milo: isaacs: yeah, that could be a workaround [19:55] isaacs: c4milo: ok, now you get a PUT request. [19:55] DewBoy3d has joined the channel [19:55] isaacs: where do you write it? [19:55] c4milo: isaacs: I wanted a similar behavior to gem —source [19:55] isaacs: if someone wants to go through the effort to explicitly detail how each edge case would work, i have no philosophical objection. [19:55] isaacs: it's just not nearly as easy as it seems once you really dig into it [19:55] jimmyjazz14: isaacs, having multiple repos would be nice [19:56] isaacs: jimmyjazz14: yeah, sure. the hard part is all the writing stuff. [19:56] isaacs: and the reading is kinda tricky a lot of time,s too [19:56] isaacs: you basically lose the referential consistency of the dependent relationships, and end up having to deal with conflicts, where before there were none. [19:56] bebbo has left the channel [19:57] jimmyjazz14: isaacs, could it not just ask you which repo you want to publish to? [19:57] isaacs: jimmyjazz14: right. perhaps you could specify that with the "registry" config ;{ [19:57] isaacs: ;P [19:57] jimmyjazz14: ? [19:57] isaacs: it means making all the registry stuff twice as complicated. [19:57] isaacs: right now, it's like "what's the registry url? great! that's where i read from and write to!" [19:58] mjr_ has joined the channel [19:58] isaacs: it'd have to be "what are my registry urls? which one do you want to write to? what order should i try to read from them in?" [19:58] isaacs: caching gets an extra layer of complexity, too [19:58] isaacs: has to cache per-server rahter than just per-uri [19:58] jimmyjazz14: isaacs, you just treat them all as one big repo [19:58] isaacs: jimmyjazz14: that's not really an answer. [19:58] jimmyjazz14: when reading [19:59] isaacs: jimmyjazz14: i mean, i don't currently read from "one big repo". i read from "one" repo [19:59] jimmyjazz14: thats how most package managers do it [19:59] isaacs: again, not saying it's impossible. just that it's a lot harder than it looks. [19:59] pdelgallego has joined the channel [19:59] isaacs: npm does a lot ofthings that most package managers don't do. [19:59] jimmyjazz14: they just get a manifest from all the repos and combine them locally into a kinda single repo [20:00] isaacs: and referential integrity of dependency links is important. [20:01] isaacs: jimmyjazz14: so, just as a very light first step, the smallest possible way to move in that direction: [20:01] xla has joined the channel [20:01] isaacs: supply a list of registry-read urls, right? [20:01] jpld has joined the channel [20:01] isaacs: when you try to look up something, if it's not in the first, try the second, etc. [20:01] isaacs: 1. now needs to handle 404 responses differently. [20:02] isaacs: 2. caching will be weird. but i guess presuming that they're couchapps that replicate some or all of their data, ETag caching could still work, and you could still use one big cache. [20:02] femtooo has joined the channel [20:02] sh1mmer has joined the channel [20:02] isaacs: 3. registry.GET("/") will *never* 404, and has to be smart enough to fetch from all of them and collate. [20:03] isaacs: 4. registryA might have /foo, but not /foo/1.2.3. registryB might have /foo but not /foo/1.2.4 [20:03] jimmyjazz14: isaacs, most package managers use some sort of 'update' like command to download the latest package manifest from the server then store the repo data locally [20:03] isaacs: so, if bar->foo@>=1.2.4, and you request /foo to see what verions are available, again, you have to be smart enough to fetch from all of them and collate. [20:03] isaacs: jimmyjazz14: right. npm doesn't. [20:03] isaacs: jimmyjazz14: it fetches the data as needed, and caches it by etag and date. [20:04] jimmyjazz14: isaacs, perhaps it should though [20:04] isaacs: i have a problem with invalid data :) [20:04] isaacs: i also have a problem with storing more data than you need. [20:05] isaacs: downloading a monolithic list of several thousand modules from multiple different places is stupid. [20:05] isaacs: yes, yes, i know apt-get does it. [20:05] isaacs: it's stupid when apt-get does it, too. [20:05] creationix has joined the channel [20:05] jimmyjazz14: isaacs, why? [20:05] mikeal-iPhone: Where is creationix? [20:05] isaacs: jimmyjazz14: it's slow. [20:05] creationix: mikeal-iPhone: hey [20:06] isaacs: jimmyjazz14: slow to read, slow to generate on teh server, slow to download, slow to store [20:06] mikeal-iPhone: Creationix: I'm at the fairy building [20:06] possibilities: anyone know... is there a guide for rates per hour for programming based on the area? [20:06] possibilities: some database of average rate based on language and location, etc [20:06] jimmyjazz14: isaacs, speed has never been a problem for me with apt [20:06] creationix: ok, mikeal-iPhone do you have my phone number [20:07] isaacs: jimmyjazz14: apt packages only have one version each. [20:07] isaacs: jimmyjazz14: that is, you usually just download the "debian-stable" or whatever. [20:07] jimmyjazz14: isaacs, one installed version maybe [20:08] walkah has joined the channel [20:08] walkah has joined the channel [20:08] jimmyjazz14: but many versions are available in the repos [20:08] isaacs: anyway, here's my point: npm's not gonna do it like apt. different conceptual model, doesn't fit. multiple registries are fine, but hard to implement. if you wanna implement it, that's great, do it. [20:08] springmeyer has joined the channel [20:08] derferman has joined the channel [20:09] augustl has joined the channel [20:09] softdrink: is anyone using Springpad? [20:09] isaacs: in teh meantime, there are bigger fish to fry [20:09] isaacs: everyone who really cares a lot about this is already running their own registry, and it's easy to talk to any registry you want with the client, you just can only do one at a time. [20:10] dmcquay has joined the channel [20:10] jimmyjazz14: isaacs, I have nothing against the way npm does it, I am merely playing the devils advocate [20:10] isaacs: jimmyjazz14: yeah. i hear ya. [20:10] devdrinker has joined the channel [20:10] isaacs: jimmyjazz14: anyway, i can't repro this ./c/ thing [20:10] pandark_ has joined the channel [20:10] jimmyjazz14: isaacs, I'll try it on another machine just to make sure [20:11] tjholowaychuk: why the sudden change of comma-first? [20:11] tjholowaychuk: well lack of [20:11] Aikar: tis ugly! lol [20:11] liar has joined the channel [20:11] isaacs: jimmyjazz14: https://gist.github.com/775032 [20:11] tjholowaychuk: hah [20:11] tjholowaychuk: node is so consistent lol [20:12] isaacs: tjholowaychuk: closure-ilnter [20:12] isaacs: tjholowaychuk: thank google. [20:12] tjholowaychuk: FML [20:12] tjholowaychuk: fuck lint crap man [20:12] tjholowaychuk: wtf [20:12] stride: hm. should node-utils/request do https requests on node 0.3.2 successfully? [20:12] isaacs: tjholowaychuk: you are so far behind the times, man [20:13] tjholowaychuk: lint is newbish lol its cool for detecting "real" issues [20:13] tjholowaychuk: but thats about it [20:14] russ_nyc: hi all, does anyone have experiance with http://caolanmcmahon.com/async.html [20:14] qnt4b: where we looking here? node source? [20:14] mgutz: russy_sync: i started using it [20:15] russ_nyc: i am having trouble with the way it works. here is have my function http://pastie.org/1449679 [20:15] russ_nyc: and for some reason it just hangs. it never makes to to the return statement [20:15] qnt4b: the commas, I mean, and the putting of where... [20:16] russ_nyc: im sure i am just doing something wrong here but i cant find any great documentation on how to set run the functions [20:18] eee_c has joined the channel [20:19] mgutz: the code looks right as far as i can tail. h [20:19] mgutz: The code looks right as far as i can tell. [20:19] jimmyjazz14: isaacs, just tried it on another machine and I got the same problem [20:19] tjholowaychuk: isaacs: so you guys changed all of node, just to support this closure thing? [20:19] tjholowaychuk: :s [20:19] bradleymeck: tjholowaychuk, just wait on a linter that includes parsing for "bad practices" on the ast level [20:19] jimmyjazz14: isaacs, fyi they are both linux boxes if that matters [20:20] tjholowaychuk: bradleymeck: well yeah I mean catching globals n shit is all good, but it doesnt take a genious to realise "a = b" should not be "a=b" if the rest of project is following the first style [20:20] dsirijus has joined the channel [20:20] tjholowaychuk: insanely overrated [20:21] mgutz: however, the value of `return fails` is not likely valid since since the filter is an async operation [20:21] bradleymeck: hey, some projects i have submitted patches to delete them cause I forget to strip whitespace at end of line [20:21] russ_nyc: well it never makes it to return fails [20:21] gf3 has joined the channel [20:22] russ_nyc: i just want to run all the engines in parrallel and if one fails then the entire function returns fail [20:23] stride: \o/ [analytics] undefined (undefined Status: undefined Created: undefined): undefined [20:23] tjholowaychuk: bradleymeck: yeah, its not like node maintains a graceful codebase though [20:23] russ_nyc: but it gets to fails = results.length > 0 [20:23] tjholowaychuk: it still looks like ass [20:23] russ_nyc: and it hangs there [20:23] qnt4b: oh I see, stripped commas from variable declarations, one-per now... [20:23] qnt4b: bummer [20:24] russ_nyc: it never makes it out of the loop [20:26] bradleymeck: id rather have an ass looking codebase that follows sane design than some java stuff [20:26] brianc: need moar singletonz [20:27] tjholowaychuk: bradleymeck: yeah, but how is this linting any different than before, I dont see much of a benefit [20:27] bartt has joined the channel [20:27] tjholowaychuk: just me I guess [20:27] pedrobelo has joined the channel [20:27] tjholowaychuk: IMO that effort should go to cleaning up what we have now [20:27] tjholowaychuk: so it is actually readable [20:28] bradleymeck: tjholowaychuk, its not. its dumb, but meh. If someone wanted to hook up a pretty printer to it I think it would make more sense [20:28] piscisaureus: ryah: syn [20:28] bradleymeck: variable names yay! [20:29] dsirijus has joined the channel [20:30] mgutz: russ_nyc: here's a simple example of filter https://gist.github.com/775066 [20:31] mgutz: must be something in decide() [20:32] russ_nyc: as for right now i have decide always returning true [20:33] stepheneb has joined the channel [20:33] mikeal has joined the channel [20:34] milar has joined the channel [20:35] mgutz: is it possible engine.decide is in infinite loop? you're calling decide from decide function [20:37] russ_nyc: it isnt caliing itself, theres another object with the method of decide [20:37] dsirijus has joined the channel [20:37] russ_nyc: mgutz: do you think there is a better way that this to run each in parralel and return false if any of the return false? [20:38] milar: Hello. is there anyone here that can help me with the following error that i get when i run cloud9. Tried using both provided bin and own build from stable version of node. everything fires up ok. but when i try to open up a folder this message shows in my terminal where i run cloud9. FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed. [20:43] MikhX has joined the channel [20:43] gf3 has joined the channel [20:43] kuhrt has joined the channel [20:43] mmso has joined the channel [20:43] Kami_ has joined the channel [20:43] romainhuet has joined the channel [20:43] rwaldron_ has joined the channel [20:43] chris____ has joined the channel [20:43] milar has joined the channel [20:43] stepheneb has joined the channel [20:43] pedrobelo has joined the channel [20:43] bartt has joined the channel [20:43] eee_c has joined the channel [20:43] dmcquay has joined the channel [20:43] derferman has joined the channel [20:43] springmeyer has joined the channel [20:43] creationix has joined the channel [20:43] jpld has joined the channel [20:43] xla has joined the channel [20:43] pdelgallego has joined the channel [20:43] mjr_ has joined the channel [20:43] DewBoy3d has joined the channel [20:43] dthompson has joined the channel [20:43] curtisc has joined the channel [20:43] agnat has joined the channel [20:43] BrianTheCoder has joined the channel [20:43] Aria has joined the channel [20:43] ashleydev has joined the channel [20:43] ossareh has joined the channel [20:43] springify has joined the channel [20:43] Ond has joined the channel [20:43] svnlto has joined the channel [20:43] teddy_ has joined the channel [20:43] m14t has joined the channel [20:43] piscisaureu_ has joined the channel [20:43] soniczen has joined the channel [20:43] dgathright has joined the channel [20:43] kjeldahl has joined the channel [20:43] bingomanatee_ has joined the channel [20:43] bradleymeck has joined the channel [20:43] mattly has joined the channel [20:43] altamic has joined the channel [20:43] matt_c_ has joined the channel [20:43] tfe_ has joined the channel [20:43] hij1nx has joined the channel [20:43] pkrumins has joined the channel [20:43] langworthy has joined the channel [20:43] mraleph has joined the channel [20:43] Druid_ has joined the channel [20:43] Phyllio has joined the channel [20:43] trotter has joined the channel [20:43] aheckmann has joined the channel [20:43] hornairs has joined the channel [20:43] jimmyjazz14 has joined the channel [20:43] jherdman has joined the channel [20:43] yozgrahame has joined the channel [20:43] djanowski has joined the channel [20:43] lukegalea has joined the channel [20:43] deepthawtz has joined the channel [20:43] vprajapa has joined the channel [20:43] benburkert has joined the channel [20:43] mnbvasd_ has joined the channel [20:43] steffkes has joined the channel [20:43] possibilities has joined the channel [20:43] mif86 has joined the channel [20:43] boaz has joined the channel [20:43] alek_br has joined the channel [20:43] dguttman has joined the channel [20:43] nefD has joined the channel [20:43] hobodave has joined the channel [20:43] nejucomo has joined the channel [20:43] msekimura has joined the channel [20:43] ntelford has joined the channel [20:43] q_no has joined the channel [20:43] sonnym has joined the channel [20:43] w0rse has joined the channel [20:43] tjholowaychuk has joined the channel [20:43] brianc has joined the channel [20:43] amerine|away has joined the channel [20:43] claudiu__ has joined the channel [20:43] isaacs has joined the channel [20:43] SwiftLayer has joined the channel [20:43] broofa has joined the channel [20:43] stephank has joined the channel [20:43] orospakr has joined the channel [20:43] ben_alman has joined the channel [20:43] kiddphunk has joined the channel [20:43] briznad has joined the channel [20:43] binarypie has joined the channel [20:43] JusticeFries has joined the channel [20:43] bitdrift has joined the channel [20:43] c4milo has joined the channel [20:43] m0rganic has joined the channel [20:43] daniellindsley has joined the channel [20:43] elux has joined the channel [20:43] vineyard has joined the channel [20:43] noahcampbell has joined the channel [20:43] AAA_awright has joined the channel [20:43] thinkingpotato has joined the channel [20:43] josephhitchens_ has joined the channel [20:43] mikew3c has joined the channel [20:43] strmpnk has joined the channel [20:43] blueadept_work has joined the channel [20:43] fumanchu182 has joined the channel [20:43] dylang_ has joined the channel [20:43] softdrink has joined the channel [20:43] wasabist` has joined the channel [20:43] viirya has joined the channel [20:43] sivy has joined the channel [20:43] akahn has joined the channel [20:43] davidwalsh has joined the channel [20:43] fangel has joined the channel [20:43] russ_nyc has joined the channel [20:43] paulrobinson has joined the channel [20:43] ceej has joined the channel [20:43] davglass has joined the channel [20:43] pengwynn has joined the channel [20:43] davidsklar has joined the channel [20:43] hdon has joined the channel [20:43] julienXX has joined the channel [20:43] sveimac has joined the channel [20:43] amacleod has joined the channel [20:43] matjas has joined the channel [20:43] tapwater has joined the channel [20:43] MattJ has joined the channel [20:43] Ari-Ugwu has joined the channel [20:43] arpegius has joined the channel [20:43] karboh has joined the channel [20:43] zorzar_ has joined the channel [20:43] mbrochh has joined the channel [20:43] gozala1 has joined the channel [20:43] adambeynon has joined the channel [20:43] overra has joined the channel [20:43] killfill has joined the channel [20:43] piscisaureus has joined the channel [20:43] jtsnow has joined the channel [20:43] tk has joined the channel [20:43] d0k has joined the channel [20:43] Evet has joined the channel [20:43] desaiu has joined the channel [20:43] pgte has joined the channel [20:43] jetienne has joined the channel [20:43] common has joined the channel [20:43] case__ has joined the channel [20:43] Blink7 has joined the channel [20:43] mriley has joined the channel [20:43] SamuraiJack_ has joined the channel [20:43] ROBOd has joined the channel [20:43] koning_r1bot has joined the channel [20:43] mayfield has joined the channel [20:43] jstemmer has joined the channel [20:43] qFox has joined the channel [20:43] borior has joined the channel [20:43] Remoun has joined the channel [20:43] ajpiano has joined the channel [20:43] under_ has joined the channel [20:43] xSmurf has joined the channel [20:43] Moominpapa has joined the channel [20:43] ewdafa has joined the channel [20:43] mr_daniel has joined the channel [20:43] CrypticSwarm has joined the channel [20:43] jimt has joined the channel [20:43] dnyy has joined the channel [20:43] beawesomeinstead has joined the channel [20:43] gaYak has joined the channel [20:43] forzan has joined the channel [20:43] rsms has joined the channel [20:43] sprout has joined the channel [20:43] PyroPeter has joined the channel [20:43] rednul has joined the channel [20:43] comster has joined the channel [20:43] Sami_ZzZ has joined the channel [20:43] disq has joined the channel [20:43] MaSch has joined the channel [20:43] mde has joined the channel [20:43] morgabra has joined the channel [20:43] stbuehler has joined the channel [20:43] r00s has joined the channel [20:43] papyromancer has joined the channel [20:43] brainproxy has joined the channel [20:43] Nevtus has joined the channel [20:43] ashb has joined the channel [20:43] jtrally has joined the channel [20:43] persson has joined the channel [20:43] keeto has joined the channel [20:43] yrashk has joined the channel [20:43] muk_mb has joined the channel [20:43] doffm has joined the channel [20:43] brianm_ has joined the channel [20:43] __sri has joined the channel [20:43] guid has joined the channel [20:43] Yuffster_work has joined the channel [20:43] jspiros has joined the channel [20:43] mfernest has joined the channel [20:43] davidc_ has joined the channel [20:43] pignata has joined the channel [20:43] namelessnotion has joined the channel [20:43] galaxywatcher has joined the channel [20:43] hosh_work has joined the channel [20:43] kr4fty has joined the channel [20:43] mgutz has joined the channel [20:43] mdoan has joined the channel [20:43] inarru has joined the channel [20:43] broquaint has joined the channel [20:43] blowery has joined the channel [20:43] aconran_ has joined the channel [20:43] geeks_bot has joined the channel [20:43] webr3 has joined the channel [20:43] jamesarosen has joined the channel [20:43] zedas has joined the channel [20:43] dspree has joined the channel [20:43] pjackson has joined the channel [20:43] Vertice has joined the channel [20:43] cyraxx has joined the channel [20:43] figital has joined the channel [20:43] crodas has joined the channel [20:43] DoNaLd` has joined the channel [20:43] btipling has joined the channel [20:43] stephen_mcd has joined the channel [20:43] halfhalo-foood has joined the channel [20:43] mlins has joined the channel [20:43] aelaguiz has joined the channel [20:43] gbot2 has joined the channel [20:43] cnu has joined the channel [20:43] T-Co has joined the channel [20:43] chilts has joined the channel [20:43] pekim has joined the channel [20:43] skohorn has joined the channel [20:43] marlun has joined the channel [20:43] SvenDowideit has joined the channel [20:43] mrtrosen has joined the channel [20:43] Silks has joined the channel [20:43] tmzt has joined the channel [20:43] ollie has joined the channel [20:43] MrNibbles has joined the channel [20:43] rudebwoy has joined the channel [20:43] sideshow has joined the channel [20:43] sanslocust has joined the channel [20:43] aurynn has joined the channel [20:43] mfb has joined the channel [20:43] bruse has joined the channel [20:43] janne has joined the channel [20:43] TheEmpath has joined the channel [20:43] hober has joined the channel [20:43] joeshaw___ has joined the channel [20:43] jwcooper has joined the channel [20:43] kawaz_home has joined the channel [20:43] mape has joined the channel [20:43] hasenj has joined the channel [20:43] KyleXY has joined the channel [20:43] jdub has joined the channel [20:43] sth has joined the channel [20:43] nolan_d has joined the channel [20:43] rickard2 has joined the channel [20:43] AlexMax has joined the channel [20:43] ircretary has joined the channel [20:43] Astro has joined the channel [20:43] riven has joined the channel [20:43] vasudeva has joined the channel [20:43] Lorentz has joined the channel [20:43] cognominal has joined the channel [20:43] eirikur has joined the channel [20:43] mischief has joined the channel [20:43] kawaz_work has joined the channel [20:43] scoates has joined the channel [20:43] node-faq has joined the channel [20:43] Twelve-60 has joined the channel [20:43] hjjaa has joined the channel [20:43] devinus has joined the channel [20:43] nail_ has joined the channel [20:43] mlangenberg has joined the channel [20:43] iFire` has joined the channel [20:43] sugardave has joined the channel [20:43] amirpc has joined the channel [20:43] sgronblo has joined the channel [20:43] alloc has joined the channel [20:43] statik has joined the channel [20:43] rphillips has joined the channel [20:43] FMJag has joined the channel [20:43] m0 has joined the channel [20:43] hosh_office has joined the channel [20:43] andoma has joined the channel [20:43] adamholt has joined the channel [20:43] caligula_ has joined the channel [20:43] LoRe has joined the channel [20:43] er1c_ has joined the channel [20:43] ybit has joined the channel [20:43] dantalizing has joined the channel [20:43] onar has joined the channel [20:43] slloyd has joined the channel [20:43] cferris|afk has joined the channel [20:43] temp01 has joined the channel [20:43] rot13 has joined the channel [20:43] EGreg_ has joined the channel [20:43] haxorjim has joined the channel [20:43] zhware has joined the channel [20:43] justin_ has joined the channel [20:43] mgc has joined the channel [20:43] wereHamster has joined the channel [20:43] wink_ has joined the channel [20:43] gkatsev has joined the channel [20:43] Connorhd has joined the channel [20:43] roaet has joined the channel [20:43] RichardJ has joined the channel [20:43] RockShox has joined the channel [20:43] marcab has joined the channel [20:43] meso has joined the channel [20:43] olegp_ has joined the channel [20:43] zum has joined the channel [20:43] mrkurt has joined the channel [20:43] sstephenson has joined the channel [20:43] aegir has joined the channel [20:43] rbranson has joined the channel [20:43] Roelven has joined the channel [20:43] shajith has joined the channel [20:43] volve has joined the channel [20:43] cainus has joined the channel [20:43] naneau has joined the channel [20:43] tswicegood has joined the channel [20:43] phiggins has joined the channel [20:43] Sembiance has joined the channel [20:43] su_aska has joined the channel [20:43] mojombo has joined the channel [20:43] v8bot has joined the channel [20:43] kgf has joined the channel [20:43] Pilate has joined the channel [20:43] coffeecup has joined the channel [20:43] guybrush has joined the channel [20:43] Prometheus has joined the channel [20:43] thebigbad has joined the channel [20:43] Atmoz has joined the channel [20:43] WaterCooled has joined the channel [20:43] adrienf has joined the channel [20:43] wattz has joined the channel [20:43] sitron has joined the channel [20:43] jakob has joined the channel [20:43] bingomanatee has joined the channel [20:43] Ezku\ has joined the channel [20:43] vileda has joined the channel [20:43] wao has joined the channel [20:43] BHSPitMonkay has joined the channel [20:43] SubStack has joined the channel [20:43] Gregor has joined the channel [20:43] beppu_ has joined the channel [20:43] thedjinn has joined the channel [20:43] aakour has joined the channel [20:43] kkaefer has joined the channel [20:43] dispalt has joined the channel [20:43] rjack has joined the channel [20:43] tanepiper has joined the channel [20:43] freeformz has joined the channel [20:43] lstoll has joined the channel [20:43] shachaf has joined the channel [20:43] Kudos has joined the channel [20:43] webben has joined the channel [20:43] L_star has joined the channel [20:43] jesusabdullah has joined the channel [20:43] meder has joined the channel [20:43] maru_cc_ has joined the channel [20:43] stalled has joined the channel [20:43] synoptase`off has joined the channel [20:43] johnnywengluu has joined the channel [20:43] mediacoder has joined the channel [20:43] Tobias| has joined the channel [20:43] chapel has joined the channel [20:43] sugyan has joined the channel [20:43] MikeW has joined the channel [20:43] JCS0 has joined the channel [20:43] bengl has joined the channel [20:43] nuba has joined the channel [20:43] Aikar has joined the channel [20:43] niclone has joined the channel [20:43] Draggor has joined the channel [20:43] chrisdickinson has joined the channel [20:43] skampler has joined the channel [20:43] _alex has joined the channel [20:43] Noya has joined the channel [20:43] sid3k has joined the channel [20:43] kloeri has joined the channel [20:43] zilt_ has joined the channel [20:43] jwm has joined the channel [20:43] franck34 has joined the channel [20:43] nlacasse has joined the channel [20:43] CIA-121 has joined the channel [20:43] stride has joined the channel [20:43] sstreza has joined the channel [20:43] voodootikigod has joined the channel [20:43] zz_raja has joined the channel [20:43] sandymahalo has joined the channel [20:43] Nacho has joined the channel [20:43] pquerna has joined the channel [20:43] cha0s has joined the channel [20:43] elliottcable has joined the channel [20:43] DoubleV has joined the channel [20:43] cce has joined the channel [20:43] sadiq has joined the channel [20:43] roger_raymond has joined the channel [20:43] joshthecoder has joined the channel [20:43] lianj has joined the channel [20:43] steadicat has joined the channel [20:43] shaver has joined the channel [20:43] russell_h has joined the channel [20:43] themcgruff has joined the channel [20:43] konobi has joined the channel [20:43] zmack has joined the channel [20:43] inimino has joined the channel [20:43] gwoo has joined the channel [20:43] izz has joined the channel [20:43] yonkeltron has joined the channel [20:43] jan____ has joined the channel [20:43] Epeli has joined the channel [20:43] polyrhythmic has joined the channel [20:43] pzich has joined the channel [20:43] slickplaid has joined the channel [20:43] m3nt0r^aw has joined the channel [20:43] mqt has joined the channel [20:43] d0gie has joined the channel [20:43] rwhitby has joined the channel [20:43] wang_ has joined the channel [20:43] ebi has joined the channel [20:43] ivan has joined the channel [20:43] sstephenson has joined the channel [20:43] mrkurt has joined the channel [20:43] under_ has joined the channel [20:43] pandark_ has joined the channel [20:43] tilgovi has joined the channel [20:43] chrischris has joined the channel [20:46] dsirijus has joined the channel [20:48] er1c_ has joined the channel [20:49] Tprice has joined the channel [20:50] hobodave_ has joined the channel [20:53] SubStack: so early [20:54] stride: so late [20:55] dsirijus has joined the channel [20:56] jperras has joined the channel [20:57] ben_alman: does anyone know of an ansi color -> html javascript lib? [20:57] ben_alman: i want to output a colored git diff to html, really [20:58] mfernest: colored git? that's racist [20:58] mikeal has joined the channel [20:59] konobi: diff2html [20:59] ben_alman: so that's a python thing [20:59] charlenopires_ has joined the channel [21:00] Prometheus: huh [21:00] Prometheus: how so :P [21:00] ben_alman: or a bash script? [21:00] theloniousBot has joined the channel [21:00] Prometheus: bash colors presumably [21:00] ben_alman: i've seen both a python script and bash script called "Diff2html" [21:01] ben_alman: i could also use pygments [21:01] Prometheus: well surely there are scripts available in just about any language [21:01] Prometheus: but pygments would make things easy [21:01] ben_alman: i don't see one in javascript :) [21:03] Prometheus: btw, I didn't know you did python, ben [21:03] Prometheus: thought you were strictly php ;) [21:03] Prometheus: (and javascript, obviously) [21:03] ben_alman: i don't [21:03] ben_alman: never used python [21:03] ben_alman: mostly js [21:03] ben_alman: some php [21:03] ben_alman: very little php if i can help it [21:04] ben_alman: i want to redo my site using node [21:04] tjholowaychuk: ben_alman: ive done it for some CI stuff, nothing totally complete [21:04] ben_alman: it = ? [21:04] derferman_ has joined the channel [21:04] tjholowaychuk: but .replace() with a function, then map the ansi escape codes to some classes on the tags you generate [21:04] ben_alman: sorry, i'm talking about so many things at once [21:05] ben_alman: yeah i thought about that too, the ansi codes aren't crazy by any means [21:05] tjholowaychuk: its really easy if you only have to target a few codes [21:05] ben_alman: yeah, git diffs aren't too crazy [21:05] bluegene has joined the channel [21:06] DewBoy3d: I am reading a directory and getting Error: ENAMETOOLONG, File name too long. how can i know which file in the directory is causing that error? and how do i know what the filename size limit is? [21:07] ashleydev has joined the channel [21:07] mfernest: DewBoy3d: which OS are you using? [21:07] wink_: DewBoy3d: thats going to be an OS dependency [21:07] DewBoy3d: linux x86 32 bit (ubuntu 9.04) [21:08] nonnikcam has joined the channel [21:10] mfernest: DewBoy3d: it's a limit attributed to the filesystem. I don't know if that's tunable or configurable with what you're using [21:12] brianmario has joined the channel [21:14] c4milo: tjholowaychuk: do you know about some example of expressjs and requierejs? [21:14] DewBoy3d: mfernest: thanks [21:15] stagas has joined the channel [21:17] cloudhead has joined the channel [21:17] tjholowaychuk: c4milo: requirejs? [21:17] tjholowaychuk: express isnt for the client [21:17] c4milo: tjholowaychuk: yes sir [21:17] c4milo: tjholowaychuk: you can use requirejs in nodejs as well [21:17] tjholowaychuk: oh lol [21:17] tjholowaychuk: well nope :p [21:17] tjholowaychuk: no examples [21:18] c4milo: tjholowaychuk: I don't want to use two different CommonJS implementations and the NodeJS implementation sucks [21:18] rburhum has joined the channel [21:19] tjholowaychuk: they all suck [21:21] eddanger has joined the channel [21:21] matt_c has joined the channel [21:21] sh1mmer has joined the channel [21:21] matt_c has joined the channel [21:21] EGreg has joined the channel [21:24] montylounge has joined the channel [21:24] astoon has joined the channel [21:25] possibilities has joined the channel [21:27] eee_c has joined the channel [21:29] prettyrobots has joined the channel [21:30] BrianTheCoder has joined the channel [21:30] _derferman has joined the channel [21:31] Figaroo has joined the channel [21:32] MikhX_ has joined the channel [21:34] lukegalea has joined the channel [21:34] jchris has joined the channel [21:34] cadrlife has joined the channel [21:35] piscisaureus: ryah: still gone [21:35] piscisaureus: ? [21:35] bmizerany has joined the channel [21:35] admc has joined the channel [21:36] muk_mb1 has joined the channel [21:36] devdrinker has joined the channel [21:37] ryah: here [21:37] piscisaureus: ah, good [21:37] piscisaureus: 1. you want patches floating on top of deps committed [21:37] piscisaureus: i can do that for libev because it's a simple patch [21:37] EGreg: hey [21:37] EGreg: what's node.js up to these days, what's the roadmap? [21:38] piscisaureus: but for libev it will be hard because there is so much [21:38] piscisaureus: also freebsd and mac fixes - those aren't committed either [21:38] piscisaureus: maintaining those patches in the repository will be a crime [21:39] ryah: why? [21:39] piscisaureus: why not do deps upgrades on a separate branch? [21:39] ryah: piscisaureus: i don't know how to do that [21:39] Anti-X has joined the channel [21:39] ryah: how would that work? [21:39] piscisaureus: let me explain, just a sec, it takes some drawing :-) [21:42] Remoun has joined the channel [21:44] piscisaureus: A -B - C -D -E - M [21:44] piscisaureus: \ - C' ------ / [21:44] piscisaureus: suppose B = the last time libeio was unpatched [21:44] piscisaureus: C-E are commits on master, that may also affect libeio [21:44] piscisaureus: now you do a libeio upgrade in C', then merge that commit in M' [21:44] piscisaureus: Now if you want to upgrade libeio again, some time later, the next upgrade gets C' as its parent, and it is merged again, so it looks like this: [21:45] piscisaureus: A -B - C -D -E - M - F - G - N [21:45] piscisaureus: \ - C' ------- / - D' -----/ [21:45] piscisaureus: Where D' is the new libeio upgrade and F,G are commits to master that may change libeio [21:45] ben_alman: creationix: your node-git example shows Git.exists and Git.getTags .. but those methods don't even exist! [21:45] ben_alman: do you have them in a branch or something? [21:45] piscisaureus: ryah: ^ [21:46] nils_2 has joined the channel [21:47] arpegius has joined the channel [21:47] ryah: piscisaureus: :/ [21:47] piscisaureus: ryah: don't understand or don't like? [21:47] ryah: don't understand [21:48] bradleymeck has joined the channel [21:48] piscisaureus: ryah: hmm. I must be a bad teacher. take 2 coming up [21:48] ryah: so i upgrade libeio in a separate branch? [21:49] bradleymeck: tjholowaychuk, ping? [21:49] tjholowaychuk: bradleymeck: pong [21:49] hukash has joined the channel [21:49] ryah: piscisaureus: which was branched before changes? [21:49] bradleymeck: tj, did you ever get a window container setup for node-canvas? [21:49] vasudeva has left the channel [21:49] ryah: then merge it back in ? [21:49] vasudeva has joined the channel [21:50] tjholowaychuk: bradleymeck: nope [21:50] tjholowaychuk: no personal need for it [21:50] piscisaureus: to bootstrap it, branch master before changes [21:50] piscisaureus: then upgrade in that branch [21:51] piscisaureus: now we have an upgrade commit X where the dep is upgraded but without node-specific patches [21:51] charlenopires has joined the channel [21:51] piscisaureus: this branch gets merged into master [21:51] sh1mmer has joined the channel [21:51] piscisaureus: now if you want to upgrade the same dep some other time, you switch back to X [21:51] piscisaureus: there you do the upgrade [21:51] bradleymeck: k that answers my questions then [21:51] piscisaureus: then the upgrade branch gets merged to master, again [21:52] piscisaureus: the node merge logic will make sure that you don't lose your node-specific patches [21:52] piscisaureus: it's simple really [21:52] piscisaureus: ehm node merge logic = git merge logic [21:55] saikat has joined the channel [21:55] CIA-121: node: 03isaacs 07master * r435ece5 10/ (3 files in 2 dirs): child_process: Support setting uid/gid by name - http://bit.ly/ewKkIA [21:56] hobodave has joined the channel [21:56] isaacs: horray! [21:56] ryah: isaacs: thanks [21:57] opengeard has joined the channel [21:57] ryah: piscisaureus: okay [21:58] ryah: let's try it with libeio, i think there are new changes [21:58] maushu has joined the channel [21:58] lukegalea has joined the channel [21:58] piscisaureus: okay, we nned too find a commit where libeio is unpatched but the same version as in master (let's hope one still exists) [21:59] piscisaureus: ryah: best bet would be c5183738388e8e5cbfcac7deccec1d960389ae9d [21:59] gartenstuhl has joined the channel [22:00] ben_alman: how can i download a newer version of a git repo than npm has and use that instead of what's in npm? [22:00] broofa has joined the channel [22:00] piscisaureus: ryah: git checkout -B vanilla-libeio c5183738388 [22:00] isaacs: ben_alman: git clone (whatever) ; cd (whatever) ; npm link [22:01] piscisaureus: now upgrade libeio && commit [22:01] ben_alman: thanks! [22:01] isaacs: ben_alman: here's the fun part, you might be able do get teh repo from npm [22:01] dylang has joined the channel [22:01] ben_alman: o rly [22:01] isaacs: ben_alman: git clone $(npm view repository.url) [22:01] paulrobinson has left the channel [22:01] ryah: piscisaureus: lol, that's pretty long ago [22:01] ryah: :) [22:01] isaacs: ben_alman: you can also cd into that dir, and do `npm install` if you don't plan to make changes. [22:02] ben_alman: do i have to uninstall the current version first? [22:02] ryah: oh man [22:02] ryah: you have to see this file... [22:02] isaacs: ben_alman: nah, it'll overwrite it [22:02] piscisaureus: ryah: I think U was wrong [22:02] piscisaureus: i mean i was wrong [22:02] ryah: http://nodejs.org/old_spec/ <- [22:02] piscisaureus: should be 61448bfc4e0714dbe [22:02] ryah: \m/ [22:03] piscisaureus: :-) [22:03] piscisaureus: I wasn't born then [22:03] bradleymeck: nice ryah [22:03] ryah: we should use that css file for our docs [22:03] ryah: looks so cool [22:04] ben_alman: thanks isaacs, now if only compress worked :/ [22:04] isaacs: ben :) [22:04] piscisaureus: ryah: honestly, I don't know how to download the latest libeio CVS [22:04] bradleymeck: can we get a wiki set of docs that just posts updates to a maintainer? [22:04] aelaguiz has joined the channel [22:04] piscisaureus: No tengo cliento do CVS [22:04] stepheneb has joined the channel [22:04] bradleymeck: id rather that than css [22:05] trotter has joined the channel [22:05] Phyllio has joined the channel [22:06] ryah: bradleymeck: maybe there is some comment overlay service we can add to the docs [22:06] mikew3c_ has joined the channel [22:06] ryah: bradleymeck: we could put a button on there to enable it [22:06] nils_2 has left the channel [22:06] sriley has joined the channel [22:07] piscisaureus: ACTION powering up a virtualbox for just a cvs checkout [22:08] jchris has joined the channel [22:08] ashleydev has joined the channel [22:09] bradleymeck: ryah, ill look up something with comment overlay [22:10] dingomanatee has joined the channel [22:10] dingomanatee: "A dingo ate my manatee" [22:10] dspree: hilarious [22:11] dspree: :D ! [22:12] aklt has joined the channel [22:13] ryah: piscisaureus: i think it worked [22:14] EGreg: dingo lol [22:14] EGreg: australianz [22:15] mikeal has joined the channel [22:15] piscisaureus: ryah: then your master should look like mine now [22:15] eddanger_ has joined the channel [22:16] CIA-121: node: 03Ryan Dahl 07master * rb8d63c1 10/ (9 files): Upgrade libeio - http://bit.ly/eae57z [22:16] Me1000 has joined the channel [22:17] CIA-121: node: 03Ryan Dahl 07master * r464f5d4 10/ (9 files): [22:17] CIA-121: node: Merge branch 'vanilla-libeio' [22:17] CIA-121: node: Conflicts: [22:17] CIA-121: node: deps/libeio/config.h.in - http://bit.ly/dZwXzO [22:17] sh1mmer has joined the channel [22:18] piscisaureus: ryah: well done [22:19] piscisaureus: ryah: If you need to do another libev upgrade, apply it on top of the `vanilla` branch, then merge that branch again [22:20] piscisaureus: ryah: and to inspect everything that we're floating on top of libeio, just `git diff vanilla-libeio..master -- deps/libeio` does the trick [22:20] piscisaureus: sweet, hah [22:21] jbergstroem: ryah: i'm trying to look at the build failures at my slave. do you perhaps know which openssl versions other buildslaves run? [22:21] jbergstroem: s/build failures/test failures [22:21] tekky has joined the channel [22:21] ryah: jbergstroem: i think they're all running 0.9 something [22:23] jimmyjazz14: isaacs, you around? [22:23] jbergstroem: ryah: could be one possible reason; i'm at 1.0.0c. i'll try downgrading on another box and see what happens [22:23] HAITI has joined the channel [22:24] bradleymeck: ryah, for free commenting and easy to integrate, disqus.com seems to be well qualified [22:25] devdrinker has joined the channel [22:25] ryah: jbergstroem: which error? [22:25] jbergstroem: release test-tls-securepair-client [22:26] Druid_ has joined the channel [22:26] HAITI has left the channel [22:27] ryah: jbergstroem: what's the output? [22:28] jbergstroem: ryah: http://buildbot.nodejs.org:8010/builders/Gentoo%2032bit/builds/174/steps/shell_2/logs/stdio , search for above [22:31] ryah: jbergstroem: the output looks good [22:32] ryah: i wonder which assert is fialing... [22:32] milar: Hello. is there anyone here that can help me with the following error that i get when i run cloud9. Tried using both provided bin and own build from stable version of node. everything fires up ok. but when i try to open up a folder this message shows in my terminal where i run cloud9. FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed. [22:33] paulrobinson_ has joined the channel [22:35] bradleymeck: ryah looks like assert is failing due to timeout in process.on("exit"...)? [22:35] trotter has joined the channel [22:36] brianmario has joined the channel [22:36] CIA-121: node: 03Ryan Dahl 07master * r6dbf491 10/ (3 files in 2 dirs): Use html5 spec stylesheet for docs - http://bit.ly/hF3g0M [22:36] bradleymeck: milar that is a pretty specific question that ajax.org people would know better, somewhere the C++ parts are not doing the proper thing [22:36] bradleymeck: a gist of the stack trace might help if you can strace it [22:37] rsms has left the channel [22:37] Anti-X has joined the channel [22:39] milar: alright thx. [22:40] stonebranch has joined the channel [22:41] ryah: jbergstroem: it's about the exit code [22:41] ryah: or something... [22:41] ryah: jbergstroem: if you run that test, how long does it take? [22:41] ryah: longer than 5 seconds? [22:42] Anti-X: more than 9000 [22:42] Anti-X: !!11!1 [22:42] piscisaureus: ryah: curl https://github.com/piscisaureus/node/commit/680181397fdf6dd9554fe0071c1c6b57c0337e74.patch | git am -3 [22:43] piscisaureus: :-) [22:43] hornairs: is there an easy way to call .apply while constructing an instance? i dont know if i could call new MyConstructor.apply(), what context do i pass? [22:44] bradleymeck: you dont use.appy with new, make a defaulted object lets call it myObj then MyConstructor.apply(myObj,[...]) [22:44] fly-away has joined the channel [22:44] augustl has joined the channel [22:45] liar has joined the channel [22:45] echosystm has joined the channel [22:47] sh1mmer has joined the channel [22:48] augustl has joined the channel [22:48] CIA-121: node: 03Bert Belder 07master * rb9540c2 10/ deps/libev/ev.c : Libev windows fixes - http://bit.ly/ekgRmg [22:49] WarriorSl has joined the channel [22:49] jbergstroem: ryah: looking at the timings (02:31 -> 02:36), i'd say yes [22:49] ryah: jbergstroem: can i have access to that machine? [22:50] agnat has joined the channel [22:50] jbergstroem: ryah: i'll set up an account, could you mail me a pubkey (its getting late here too, would 12-13 hours bee to much of a wait?) [22:51] dingomanatee has joined the channel [22:52] devnieL has joined the channel [22:53] mikeal: ryah: are the new docs going live? [22:54] astoon has joined the channel [22:54] ryah: mikeal: ? [22:54] mikeal: i thought we had new docs [22:55] Remoun has joined the channel [22:55] Chaosbit has joined the channel [22:56] liar has joined the channel [22:56] ryah: mikeal: nope... [22:56] mikeal: hrm.... [22:56] alek_br has joined the channel [22:56] mikeal: maybe it was just something micheil was showing me [22:57] mikeal: i love it on the mailing list, when ryah is like "we aren't going to do that ever" and people just keep talking about it [22:57] ryah: mikeal: http://nodejs.org/docs/v0.3.4/api/ ? [22:57] mikeal: people love to just waste their time entirely [22:57] mikew3c: ryah: just wanted to give you a heads-up that because I noticed that http://nodejs.org/old_spec/ uses and , we have decided that we can now claim that node is part of HTML5 [22:57] mikeal: this could be it [22:57] mikeal: oh definitely, this was it [22:57] ryah: mikew3c: :) [22:57] mikeal: i was looking at the single page last time [22:58] mikeal: and they are still talking about it.... [22:58] jchris has joined the channel [23:00] bradleymeck: mikeal topics always stay popped up like that, had to post on it cause I haven't heard ryah say 100% no to it til then [23:00] mikeal: he did, in that thread :) [23:00] mikeal: that one isn't the worst current thread tho [23:00] mikeal: there are two about adding non-async io [23:01] mikeal: which is like [23:01] bradleymeck: yep :), which is fine by me, as I can now link it [23:01] mikeal: did you miss the entire point of node.js? [23:01] bradleymeck: shhhh [23:01] thedjinn has joined the channel [23:01] bradleymeck: node.js needs non-async io so that... we can hide the problems of what we write and go back to semawhores [23:02] JojoBoss has joined the channel [23:02] bradleymeck: well anywho it seems people dont understand that the process is sitting there doing nothing [23:02] mikeal: like [23:02] stride: hrhr [23:02] mikeal: if you have node.js + sync IO [23:02] mikeal: it wouldn't be node.js [23:02] Naked has joined the channel [23:03] mikeal: and like, sure, go do that, good luck and all [23:03] mikeal: i won't be using it [23:03] bradleymeck: it would be ringo.js - threads which is... odd [23:03] mikeal: but if you think it's a blocker for the whole world, go ahead and build it [23:03] stride: and we should rethink that approach [23:03] mikeal: stride: huh? [23:04] bradleymeck: dont give me no php template style file [23:04] stride: mikeal: just kidding [23:05] mikeal: jspp *uses* node, it's not like, part of node [23:05] matt_c has joined the channel [23:05] stride: wow. that thread on the list really got big.. meh [23:05] mikeal: it fills a use case, but it's definitely not for every use case [23:06] JusticeFries has joined the channel [23:06] pieterv has joined the channel [23:07] Druide_ has joined the channel [23:08] masahiroh has joined the channel [23:08] bingomanatee__ has joined the channel [23:10] nook has joined the channel [23:14] davidc_ has joined the channel [23:14] AndroUser2 has joined the channel [23:15] piscisaureus: ryah: when you're not too busy we can discuss the tty api [23:16] eddanger has joined the channel [23:18] svnlto has joined the channel [23:20] easternbloc has joined the channel [23:20] piscisaureus: https://gist.github.com/29da783028be9a516230 [23:21] perlmonkey2 has joined the channel [23:23] devnieL has left the channel [23:26] ajpiano has joined the channel [23:28] robtmr has joined the channel [23:33] malkomalko has joined the channel [23:33] bbttxu has joined the channel [23:36] brianc: mikeal: just saw jspp - very impressive [23:36] SubStack: I don't get the hate either [23:36] mikeal: thanks [23:36] mikeal: going for simple [23:37] mikeal: really want to get rid of that end() callback [23:37] SubStack: php sucks becuse the language sucks not because can't work [23:37] mape: tjholowaychuk: Around? [23:38] brianc: yah [23:38] tjholowaychuk: mape: yip [23:38] tjholowaychuk: yup* [23:38] mape: tjholowaychuk: Was wondering, any way of using spark to keep the children alive? [23:38] CIA-121: node: 03Ryan Dahl 07master * r8e46167 10/ test/simple/test-tls-securepair-client.js : [23:38] CIA-121: node: Put a little delay into test-tls-securepair-client.js [23:38] CIA-121: node: Avoids race. openssl s_server is a terrible program. - http://bit.ly/eIGedk [23:38] mape: Ie if one dies just create a new one [23:38] tjholowaychuk: mape: nah, I was going to add that stuff way back when I started it [23:38] tjholowaychuk: but tim / myself clashed with what it should do [23:38] tjholowaychuk: so its kinda dead [23:39] killfill has joined the channel [23:39] mape: Oh :/ [23:40] mape: Using it for a project at work and works really nice with 8 express+socket.io instances [23:40] tjholowaychuk: joys of working with other peopel [23:40] m0rganic has joined the channel [23:40] tjholowaychuk: we will be replacing it within the next few months, not sure what the priority is for that project [23:40] skm has joined the channel [23:40] malkomalko: anyone have any suggestions for injecting new columns into a tsv data file with node? I've been spawning off awk processes to do the job but it's kind've crappy and jams things up [23:41] mape: tjholowaychuk: higher priority then that date thingy? ;) [23:41] tjholowaychuk: I dont think so [23:41] tjholowaychuk: not sure [23:41] tjholowaychuk: haha [23:41] mape: So how much time do you reccon it takes to make spark self healing? [23:41] tjholowaychuk: not to much, but we have some other ideas so the spark model wont work to well [23:41] tjholowaychuk: although I like all the cli config [23:41] isaacs has joined the channel [23:42] tjholowaychuk: but this one will be far more extensible [23:42] ryah: piscisaureus: hey. looks okay [23:43] ryah: piscisaureus: id rather stick the constants on require('tty') [23:43] piscisaureus: ryah: ok [23:43] mape: tjholowaychuk: more manager features? [23:43] piscisaureus: ryah: more comments? [23:43] tjholowaychuk: mape: yeah, all kinds of stuff [23:44] ryah: piscisaureus: stdout.cursorTo(null, 0); ? [23:44] ryah: piscisaureus: first column current line? [23:44] piscisaureus: move cursor to column 0, same line [23:44] chewbranca has joined the channel [23:45] ryah: we need an eraseRight() [23:45] ryah: or clearRight() [23:46] piscisaureus: whatever can be supported with an ansi control char [23:46] piscisaureus: I didn't do an in-depth check into what control codes exist and what is used by readline [23:46] ryah: also - it's missing a setRaw() [23:47] echosystm: hey dudes, i'm working on my first module that i'm hoping to get on npm [23:47] nsswb has joined the channel [23:47] piscisaureus: ryah: what should it do (defined in a platform-independent manner) [23:48] mayfield: node.js is amazing! [23:48] ryah: for example '\n' coming in will not print a line in the output [23:48] echosystm: now, a pet hate of mine is the sort of thing that goes on in the CPAN world, where every cowboy does things 'their way'^tm [23:48] ryah: \t rather [23:48] piscisaureus: oh so disable echo? [23:48] mayfield: the cloud server bindings are nice as well! [23:48] ryah: so there are various options - right now we just have raw and normal [23:48] pquerna: can someone else make a wsdl to node generator for me. [23:49] pquerna: kthxbye [23:49] echosystm: so i'm trying to get a better grasp of the node.js best practices and intend to write some kind of style guide from my findings [23:49] echosystm: would anyone be interested in this? [23:49] mayfield: of course. [23:49] hellp has joined the channel [23:49] piscisaureus: well we could define raw as 'no echo + ... ' but I need to know what exactly [23:50] pquerna: echosystm: +1; We have been trying to follow the google closure code styles more or less. [23:50] ttpva has joined the channel [23:50] ryah: piscisaureus: https://github.com/ry/node/blob/b9cfd9527acad0a686083078863bff028dfd785a/src/node_stdio.cc#L49-61 [23:50] ryah: piscisaureus: well, what settings do you have? [23:50] softdrink: damn. can't seem to do generated css content around input placeholders [23:51] piscisaureus: relevant ones: [23:51] piscisaureus: * echo [23:52] piscisaureus: * line input (as opposed to char input) [23:52] ryah: yes, yes [23:52] ryah: (raw = char input) [23:53] [[zzz]] has joined the channel [23:53] piscisaureus: * insert mode (in line edit mode only) [23:53] piscisaureus: * (mouse event) [23:53] piscisaureus: * ctrl+c raw [23:53] piscisaureus: * (select text with mouse) [23:53] piscisaureus: * capture buffer size changes [23:54] piscisaureus: for output [23:54] ryah: capture buffer size changes? [23:54] piscisaureus: * interpret backspace, tab, BELL, CR, LF on/off [23:54] piscisaureus: * wrap at eol [23:54] piscisaureus: is like sigwinch [23:55] ryah: piscisaureus: anyway - just set some we'll need to play with them to get readline working [23:55] piscisaureus: but it triggers if the buffer size changes (so not the console window but the underlying text buffer) [23:55] ryah: but raw is basically no echo, char input [23:55] Country has joined the channel [23:55] ryah: wnat the ctrl+c too [23:56] piscisaureus: yeah ok [23:56] piscisaureus: should distinguish between output raw mode and input raw mode [23:56] echosystm: ryah: quick question - what is your convention for package names? i noticed some are like 'some_name', while others use 'somename'. also, what do double leading underscores (eg. __somevar) and a single trailing underscore (eg. super_) signify? [23:56] piscisaureus: but I don't think there is anything raw about output atm [23:57] echosystm: i want to write my code in as similar way to the standard library as possible [23:58] piscisaureus: ryah: what are the kind of keys that can be captured on linux [23:58] [[zz]] has joined the channel [23:58] mikedeboer has joined the channel [23:58] piscisaureus: ryah: on windows anything can be discerned, like LCTRL+numpad6 != RCTRL+6 [23:59] ryah: piscisaureus: look at this [23:59] ryah: https://github.com/ry/node/blob/b92329667ff1f32a112e277bbb3cd6bc192c6f6d/lib/readline.js#L320