[00:00] dnunes has joined the channel [00:02] isaacs has joined the channel [00:05] Charuru has joined the channel [00:09] zilch has joined the channel [00:09] visnup: isaacs: how goes the no.de stuff? [00:09] visnup: isaacs: do you hate me yet? [00:10] isaacs: i could never hate you. [00:10] visnup: dshaw half-hates me now. created more work for him too. :) [00:10] daithi44 has joined the channel [00:11] visnup: isaacs: did emily tell you yet that we want _two_ blog posts from you? [00:11] __sorin__ has joined the channel [00:11] nerdfiles has joined the channel [00:11] nerdfiles has left the channel [00:11] misterm has joined the channel [00:15] __sorin__ has joined the channel [00:16] JumpMast3r has joined the channel [00:21] quackquack has joined the channel [00:22] quackquack: how can i redirect http requests to https on the same port? [00:22] quackquack: (using expressjs) [00:22] zilch has joined the channel [00:23] davidwalsh has joined the channel [00:23] MUILTFN has joined the channel [00:23] devongovett has joined the channel [00:24] masutu has joined the channel [00:27] zilch has joined the channel [00:27] MikeMakesIt has joined the channel [00:28] mikeal has joined the channel [00:29] amerine has joined the channel [00:29] tylergillies_: whats the best way to do var fo = { someVar: "somevalue" } where someVar is an actual variable? [00:29] tylergillies_: or do i have to do fo[someVar]? [00:29] tbranyen: fo[someVar] [00:30] tbranyen: tylergillies_: or you can use Object.defineProperty [00:30] tbranyen: but urgh [00:30] tbranyen: just do hash notation [00:30] tylergillies_: ok [00:30] tylergillies_: thnx [00:30] tbranyen: np [00:35] blup has joined the channel [00:35] clifton has joined the channel [00:35] edude03 has joined the channel [00:36] bazookatooth has joined the channel [00:36] maushu has joined the channel [00:39] zilch has joined the channel [00:39] [[zz]] has joined the channel [00:39] hybsch has joined the channel [00:39] replore_ has joined the channel [00:39] replore has joined the channel [00:41] losing has joined the channel [00:42] tprice: is there a better way to do "hasOwnProperty" or should i keep using it? [00:42] xastey` has joined the channel [00:43] systemfault: tprice: Depends why you use it [00:44] systemfault: If you want to iterate on an object's properties Object.keys(theObject) will give you all its "own properties" [00:44] overra has joined the channel [00:46] hybsch has left the channel [00:46] tprice: i want to test the for a property in an object. i could to value in obj or obj[value] or obj.hasOwnProperty(value) [00:46] Crshman has joined the channel [00:46] tprice: i use the hasOwnProperty every time but just wondering if there is a safer way of doing it [00:46] tbranyen: value is a misnomer there [00:46] tbranyen: you mean key [00:46] Crshman: hey all, so I have a server daemon running and all is right in the world....but I want to write a cli interface to grab/set parameters for that running daemon [00:46] tbranyen: in which you could do key in obj [00:46] Crshman: what's the best way to go about that? [00:47] tprice: lol yeah key [00:47] mscdex: Crshman: repl? [00:47] zilch has joined the channel [00:47] mscdex: Crshman: or something like ncurses? :-D [00:47] Crshman: nothing that complex haha [00:48] Crshman: well it would be something like $ proxy --add-backend="new backend" [00:48] Crshman: or $proxy --list-backends [00:48] JoshC1 has joined the channel [00:48] Crshman: right now the app stores all of it's runtime configs in ram [00:49] SubStack: Crshman: you could have a control service that listens on a port for commands [00:49] SubStack: easy to do with dnode too [00:49] tprice: tbranyen> so i should use key in obj? [00:49] Crshman: hmm [00:49] Crshman: yeah that's an idea, didn't think of that one [00:51] tbranyen: tprice: you can use whatever you want [00:51] tbranyen: thats just another option [00:53] temp02 has joined the channel [00:54] tprice: whats best practice when it comes to it is what im asking. [00:54] misterm: tprice: those options are all slightly distinct, so you would use the one appropriate for what you need [00:55] misterm: tprice: [00:55] AaronMT has joined the channel [00:55] misterm: "in" just checks for the existence of the key...it could be a prototype property, hasOwnProperty check's, as you might imagine, only own properties [00:56] misterm: doing obj[propname] is useful if you need to check the actual value [00:57] misterm: I'd also note that the former check for the actual existence of the property, while the last doesn't [00:57] jspiros has joined the channel [00:57] tprice: misterm> thanks hasOwnProperty is what im looking for [00:59] gazumps has joined the channel [01:01] jomoho has joined the channel [01:01] zilch has joined the channel [01:03] dnunes has left the channel [01:03] dodger_: stupid question but when is the async version of a script better than a sync version other than for explicit multi threaded handling? [01:03] dodger_: whati mean i i notice there are 2 sets of calls in the api, function X and function Xsync [01:04] JoshC1 has joined the channel [01:05] AAA_awright: dodger_: The sync versions are provided for use at startup only, you don't want to call them at runtime [01:05] clifton: its always better unless you're loading config files and dont want your whole app in a callback [01:05] cconstantine_ has joined the channel [01:05] clifton: ^ [01:05] materialdesigner has joined the channel [01:05] brianseeders has joined the channel [01:05] AAA_awright: post-startup runtime I guess [01:05] AAA_awright: dodger_: There's only a single thread, too [01:06] AAA_awright: Node.js is evented not threaded [01:06] cconstantine_: does anyone have emacs syntax highlighting for ejs? [01:06] aoberoi has joined the channel [01:10] AD7six has joined the channel [01:10] cying has joined the channel [01:10] zilch has joined the channel [01:10] quackquack: how can i redirect http requests to https w/ expressjs? [01:12] okuryu has joined the channel [01:14] CIA-65: libuv: 03Ben Noordhuis 07master * r5899192 10/ src/eio/config_linux.h : eio: fix HAVE_SYNC_FILE_RANGE heuristic on linux - http://bit.ly/nvcmSf [01:15] Libra102 has joined the channel [01:15] CIA-65: node: 03Ben Noordhuis 07master * rbfc2982 10/ (deps/uv/AUTHORS deps/uv/src/eio/config_linux.h): uv: upgrade to 5899192 - http://bit.ly/pMP32L [01:16] SubStack: quackquack: try this: [01:16] SubStack: http.createServer(function (req, res) { res.code = 301; res.setHeader('location', 'https://' + req.headers.host + req.url); res.end() }).listen(80) [01:17] AAA_awright: req.headers.host isn't guarenteed to be defined, may want to add a default domain there [01:17] SubStack: s/code/statusCode/ [01:18] quackquack: ty SubStack! [01:18] AAA_awright: http.createServer(function (req, res) { res.statusCode = 301; res.setHeader('location', 'https://' + (req.headers.host||"example.com") + req.url); res.end() }).listen(80) [01:18] SubStack: oh yeah also if you're running the server on a non-80 port you'll want to scrub out the port from the req.headers.host [01:18] zilch has joined the channel [01:19] AAA_awright: I didn't know it provides the port number to Host: [01:20] jspiros has joined the channel [01:20] AAA_awright: Huh guess it does [01:21] AAA_awright: SubStack: And unfortunately because the IETF became brain-dead sometime around writing the ipv6 spec you have to parse it for square brackets too [01:23] zilch has joined the channel [01:24] fr33think3r has joined the channel [01:24] AvianFlu: !insult Oohaboogersbaked [01:24] AvianFlu: lol oops wrong channel [01:25] jesusabdullah: :D [01:25] davidbanham has joined the channel [01:26] dodger_: AAA_awright: gotcha, so lets just say i'm using node.js to automate some tasks (like just regular shell scripting stuff) - i probbaly want to be using the sync versions of the api to cut down on the time wait, right? [01:26] balaa has joined the channel [01:26] AvianFlu: dodger_: that's a bad way to think about it [01:27] mrryanjohnston has joined the channel [01:27] devongovett has joined the channel [01:27] AAA_awright: dodger_: There's no wait, the difference is the sync versions are blocking, nothing else will be executed while they are [01:27] AvianFlu: synchronous means that your process will wait until the sync operation is complete [01:27] AvianFlu: asynchronous means that your process is free to execute other JS until the callback comes back [01:27] AvianFlu: so if you have a bunch of stuff to do at once, asynchronous will take less time [01:32] edude03 has joined the channel [01:32] zilch has joined the channel [01:33] mpoz2 has joined the channel [01:34] rfay has joined the channel [01:34] Nexxy has joined the channel [01:34] Nexxy has joined the channel [01:35] balaa has left the channel [01:36] eliziario has joined the channel [01:40] zilch has joined the channel [01:41] justmoon has joined the channel [01:42] eyesUnclouded has joined the channel [01:44] vikstrous has joined the channel [01:44] fr33think3r: I'm getting this error "An error has occurred: {"stack":"Error: ECONNREFUSED, Connection refused\n at Socket._onConnect (net.js:601:18)\n at IOWatcher.onWritable [as callback] (net.js:186:12)","message":"ECONNREFUSED, Connection refused","errno":111,"code":"ECONNREFUSED","syscall":"connect"}" when I'm trying to run an application on nodester [01:44] fr33think3r: earlier i was trying to listen for socket.io requests on a different port and http on a different port [01:44] fr33think3r: i thought that was causing the error [01:45] fr33think3r: but I changed that so that both would listen on the port assigned by nodester [01:45] fr33think3r: but i still get the same error [01:45] bazookatooth has joined the channel [01:46] bazookatooth has joined the channel [01:46] Anton_ has joined the channel [01:47] zilch has joined the channel [01:48] bazookatooth has joined the channel [01:49] skoom has joined the channel [01:50] vikstrous has joined the channel [01:54] fr33think3r: well figured it out, i was missing a module 'redis' [02:00] skm has joined the channel [02:01] fr33think3r has left the channel [02:02] losing has joined the channel [02:02] zilch has joined the channel [02:02] CIA-65: libuv: 03Ben Noordhuis 07master * r035fd5b 10/ src/eio/config_linux.h : eio: future-proof glibc version detection - http://bit.ly/rbEcgV [02:10] wookiehang0ver has joined the channel [02:10] R4md4c: What is better do I create a new sqlite handle for each request or use the same sqlite handle for any requests ? (Using sqlite-node) [02:11] materialdesigner has left the channel [02:11] zilch has joined the channel [02:12] CIA-65: node: 03Thomas Shinnick 07master * ra5d90c4 10/ lib/path.js : (log message trimmed) [02:12] CIA-65: node: path.js: correct three harmless .length typos [02:12] CIA-65: node: lib/path.js routines normalizeArray() and resolve() have for loops that [02:12] CIA-65: node: count down from end of an array. The loop indexes are initialized using [02:12] CIA-65: node: "array.length" rather than "array.length-1". The initial array element [02:12] CIA-65: node: accessed is always beyond the end of array and the value is 'undefined'. [02:12] CIA-65: node: Strangely, code exists that acts to ignore undefined values so that the [02:14] theRevIsNotDead has joined the channel [02:17] devongovett has joined the channel [02:21] zilch has joined the channel [02:22] hassox_ has joined the channel [02:24] hassox_ has joined the channel [02:25] hassox_ has joined the channel [02:26] boehm has joined the channel [02:29] JoshC1 has joined the channel [02:30] zilch has joined the channel [02:30] dexter_e has joined the channel [02:37] gazumps has joined the channel [02:43] galaxywatcher has joined the channel [02:43] zilch has joined the channel [02:43] hkjels_ has joined the channel [02:43] AvianFlu_ has joined the channel [02:44] k1ttty has joined the channel [02:44] hkjels has joined the channel [02:46] hkjels has joined the channel [02:47] hkjels has joined the channel [02:47] cafesofie has joined the channel [02:49] indexzero has joined the channel [02:49] sheenobu has left the channel [02:50] skm has joined the channel [02:51] bazookatooth has joined the channel [02:52] unomi has joined the channel [02:53] unlink has joined the channel [02:53] unlink has joined the channel [02:56] towski has joined the channel [02:57] zilch has joined the channel [02:57] xastey has joined the channel [02:58] airportyh has joined the channel [03:00] sebastianedwards has joined the channel [03:00] tilgovi has joined the channel [03:00] tilgovi has joined the channel [03:02] sebastianedwards has joined the channel [03:02] skm has joined the channel [03:03] bazookatooth has joined the channel [03:04] zzo has joined the channel [03:04] cconstantine_ has joined the channel [03:05] sebastia_ has joined the channel [03:06] zilch has joined the channel [03:08] zzo1 has joined the channel [03:11] sebastianedwards has joined the channel [03:13] kenperkins has joined the channel [03:13] zilch has joined the channel [03:19] JoshC1 has joined the channel [03:21] CIA-65: node: 03Peter Bright 07master * r16788f4 10/ (14 files in 8 dirs): (log message trimmed) [03:21] CIA-65: node: Rename gyp files to produce useful solution names. [03:21] CIA-65: node: Hoist common settings into common.gypi. [03:21] CIA-65: node: Restrict v8's common.gypi to v8 projects. [03:21] CIA-65: node: Ensure v8 doesn't use /MP in debug builds. [03:21] CIA-65: node: Add basic settings for other platforms. [03:21] CIA-65: node: Make uv import common.gypi properly. [03:21] MUILTFN has joined the channel [03:23] zanes has joined the channel [03:24] Peniar has joined the channel [03:27] CIA-65: libuv: 03Peter Bright 07master * r2942f5a 10/ (common.gypi gyp_uv all.gyp deps/pthread-win32/build/all.gyp): GYP upates - http://bit.ly/nHdasz [03:28] zilch has joined the channel [03:29] CIA-65: libuv: 03Ryan Dahl 07pound-fixes * r99abfd3 10/ (test/benchmark-pound.c test/echo-server.c): Improve pound benchmark by reconnecting in close_cb - http://bit.ly/ruurA2 [03:31] srid has joined the channel [03:31] srid has joined the channel [03:32] igl has joined the channel [03:34] mike5w3c_ has joined the channel [03:35] arpunk has joined the channel [03:35] zilch has joined the channel [03:36] dexter_e has joined the channel [03:36] patcito has joined the channel [03:37] akshatj has joined the channel [03:38] skoom has joined the channel [03:39] neorab has joined the channel [03:39] Spion_ has joined the channel [03:42] mscdex: SubStack: what were you planning on doing with that ANSI stuff the other day? [03:45] avalanche123 has joined the channel [03:45] zilch has joined the channel [03:46] AvianFlu_: mscdex: he made http://github.com/substack/node-charm [03:46] AvianFlu_: I, for one, approve [03:47] SubStack: it works over http [03:47] SubStack: that's what I'm concerned about right now [03:47] Guest82260 has joined the channel [03:47] Guest82260: if I wanna install npm as a user rather than root, what's the easiest way to do that ? [03:47] SubStack: mscdex: next up is progress bars [03:48] SubStack: but multiple progress bars at once [03:48] isaacs: Guest18468: sure. [03:48] isaacs: SubStack: Do that! <3 [03:48] isaacs: SubStack: i need this for npm. [03:48] SubStack: yes sir [03:48] isaacs: SubStack: i want to have every download managed with a nice little stack of progress bars. [03:48] SubStack: isaacs: turns out, ansi codes are wicked simple [03:48] AvianFlu_: SubStack: I was totally picturing npm doing that but can't execute such a thing! [03:48] zilch has joined the channel [03:48] isaacs: SubStack: yeah [03:48] SubStack: and the problem that ncurses solves doesn't really exist anymore [03:49] SubStack: that being terminal incompatibility [03:49] SubStack: since ansi won like 20 years ago [03:49] AvianFlu_: 2011 ftw [03:49] isaacs: Guest18468: sure. just install node in a place that isn't root-owned (like ~/local or something) or specifically set that as your `prefix` config in ~/.npmrc [03:49] isaacs: Guest18468: npm help config, search for "prefix" [03:49] SubStack: 25 years ago really [03:49] SubStack: once BBSes took off [03:50] Ned_: isaacs: yeah, the prefix is the bit I was failing at I think [03:50] isaacs: SubStack: does ncurses support Windows? [03:50] SubStack: no idea [03:50] isaacs: SubStack: i think the windows cli is not ansi [03:50] SubStack: but plenty of windows programs support vt100 and/or ansi [03:50] isaacs: SubStack: cmd.exe [03:50] tbranyen: use something like mintty? [03:51] jesusabdullah: is there a native windows cli curl? [03:51] jesusabdullah: or curl-like tool? [03:51] mscdex: there's wget for windows [03:51] mscdex: heh [03:51] Ned_: isaacs: okay, it's claiming my prefix dir doesn't exist ... but it just created it :_( [03:51] AvianFlu_: I was just gonna say that, I've used wget for windows [03:51] jesusabdullah: huh [03:51] SubStack: isaacs: cmd.exe /A does I guess? [03:52] SubStack: looking at http://ss64.com/nt/cmd.html [03:52] Ned_: ah ha [03:52] Ned_: okay, a rampage-style removing of all the old cruft I could find seems to have fixed it [03:52] kmiyashiro has joined the channel [03:52] AvianFlu_: rampage... [03:53] AvianFlu_: someone needs to re-make that game [03:53] Ned_: heh [03:53] mscdex: i remember playing that game on the Amiga [03:54] mscdex: good times [03:54] AvianFlu_: NES for me [03:54] mscdex: SubStack: awesome, i was going to write something like node-charm if you hadn't already [03:54] mscdex: SubStack: how far are you planning on expanding this module? [03:55] SubStack: mscdex: not very far, only enough to do what I need it to do [03:55] mscdex: SubStack: i might write a windowing layer for it [03:55] mscdex: :-D [03:55] SubStack: yeah that would be cool [03:55] SubStack: as a separate module using charm would be a good way to do it [03:55] SubStack: lots of ways to do windowing [03:56] mscdex: yeah ideally i'd like to have a shim over node-charm to match the node-ncurses api [03:56] SubStack: basic ansi is really simple, it only took me a few hours to get everything working [03:56] SubStack: that would be nifty [03:57] MUILTFN has joined the channel [03:58] mscdex: someone contacted me today about getting their node-ncurses-based game over tcp and since ncurses only deals directly with terminals, having a compatible api for something that can do the same thing over the network would be awesome [03:58] AvianFlu_: that would be pretty sweet [03:58] SubStack: just require('charm')(stream) [03:59] SubStack: works with http even [03:59] SubStack: the response object [03:59] mscdex: yeah [03:59] AvianFlu_: streams FTFW [03:59] SubStack: of course you can only query the cursor position if you provide a readable stream [04:00] zilch has joined the channel [04:00] SubStack: but it works with just a writable stream [04:02] mscdex: right [04:02] AvianFlu_: I'm totally gonna use it to improve the cli clients for hookio/irc and hookio/twitter [04:09] zilch has joined the channel [04:12] iyanski has joined the channel [04:14] kenperkins has joined the channel [04:15] devian has joined the channel [04:16] SubStack: I want node to have tell [04:16] SubStack: would make this so much easier [04:16] AvianFlu: I'm not familiar with `tell` [04:17] SubStack: man ftell [04:17] SubStack: also perldoc -f tell [04:17] SubStack: The ftell() function obtains the current value of the file position indicator for the stream pointed to by stream. [04:17] zilch has joined the channel [04:17] BulletBob has joined the channel [04:18] AvianFlu: I could have sworn I saw something like that in the fs docs [04:19] SubStack: seems like something {Read,Writ}able streams should have [04:19] AvianFlu: yeah, no [04:19] AvianFlu: I agree, but I was wrong about the docs [04:21] SubStack: maybe fstat could return the file pos [04:21] AvianFlu: sounds like time to open a node issue to me [04:21] dexter_e has joined the channel [04:21] SubStack: it could even be a function, that'd be fine [04:21] SubStack: AvianFlu: mind filing it on my behalf? [04:21] SubStack: I got some modules to write yo [04:21] AvianFlu: I'm down [04:21] SubStack: rawk [04:22] ryanallenbobcat has joined the channel [04:22] Ned_: isaacs: so err, if I specify my own prefix [04:22] Ned_: is there an easy way to specify an alternate bin location ? [04:24] SubStack: AvianFlu: so I'm not sure where tell() should be, I just want it :p [04:25] AvianFlu: I'd vote stream method, but I'm gonna make it an open-ended feature request [04:25] SubStack: sounds good [04:25] SubStack: it could be just a pos attribute too depending [04:26] zilch has joined the channel [04:26] dshaw_ has joined the channel [04:31] kenperkins has joined the channel [04:32] Dreamer3 has joined the channel [04:34] shipit has joined the channel [04:35] abpin has joined the channel [04:35] zilch has joined the channel [04:37] jakehow has joined the channel [04:37] jakehow_ has joined the channel [04:37] isaacs: Ned_: the bin location is prefix/bin [04:38] isaacs: Ned_:at least, the global bin location [04:39] dherman has joined the channel [04:39] Ned_: right [04:39] Ned_: I was curious if you could override it [04:39] misterm has joined the channel [04:39] Ned_: it's okay, I just added the bin location to my path ... [04:39] Ned_: :-) [04:46] tylergillies_: its ironic that javascript object notation you need " around everything, yet in javascript, to make an object you can do {foo:"bar"} [04:46] zilch has joined the channel [04:46] progrock: hmm, so whats the defense to the old "you can't extensively automate testing of a program made in a dynamic typed, mutable, non compiledd language as compared to static typed, non mutable, compiled langauge?" [04:46] SubStack: why is that ironic? [04:46] progrock: just asking since my coworkers are all scala developers, while I'm the front end javascript developer [04:46] tylergillies_: because it gets its name from javascript, but in javascript you don't have to do that, hence, irony [04:47] SubStack: but you can do that in javascript [04:47] SubStack: in fact you must for some keys like "function" [04:47] SubStack: or anything with spaces [04:47] tylergillies_: yeah, but you don't have to, whereas in json you do [04:47] aho: the quotes were made mandatory to make it simpler [04:47] SubStack: or any other sort of punctuation [04:47] progrock: tylergillies_: in fact, I think peoples usually conside it good standard to put quotes around keys [04:47] aho: (reserved words) [04:47] tylergillies_: im not saying its wrong [04:47] tylergillies_: im just saying there is some irony [04:47] SubStack: special cases for barewords aren't a very good thing to bake into a data exchange format [04:48] newy has joined the channel [04:48] mundanity has joined the channel [04:48] SubStack: it's just a subset of javascript [04:48] tylergillies_: irony == good imho [04:48] SubStack: makes sense to me [04:48] progrock: tylergillies_: again, not really.. JSON is not just for javascript... definitely easier for it to be universally used usin the quotes [04:49] aho: iirc es5 (5.1?) actually fixed that [04:49] aho: you can use reserved words w/o quotes there [04:50] tylergillies_: regardless of if its used solely for javascript or not, its ironic. http://chzb.gr/bSj5xt [04:51] progrock: ehh, i dont find it to be [04:51] progrock: in javascript you can define functions, in json you cant... thats not ironic to me either... it makes complete sense [04:52] progrock: a javascript object and a json object are 2 different data types [04:52] tbranyen: well unless you do what couch does, and stores them as strings [04:52] tbranyen: but yeah they are still strings, not functions [04:52] progrock: exactly [04:52] devrim has joined the channel [04:52] progrock: but again, makes sense, lol.. wold be fucking retarded if they tried to make some universal way to define code in json [04:53] progrock: lol... way beyond the 1 paragraph explanation of everything in JSON [04:53] devrim: does anyone point me to a good html encoder for nodes ? [04:53] devrim: *nodejs [04:53] tylergillies_: how does something being ironic automatically mean it doesn't make sense? [04:53] devrim: *can [04:54] AAA_awright: tbranyen: Ironic implies a reverse of what you expected... JSON is just a subset of Javascript, {"foo":"bar"} is perfectly a valid Javascript expression [04:54] rurufufuss has joined the channel [04:55] AAA_awright: v8: {"foo":"bar"} [04:55] v8bot_: AAA_awright: SyntaxError: Unexpected token : [04:55] AAA_awright: damnit [04:55] AAA_awright: Not helping my case here, v8bot_ [04:55] tbranyen: AAA_awright: why you telling me that? [04:55] progrock: tbranyen: probably wrong name by accident [04:56] AAA_awright: tbranyen: I have no clue, tab-completion error [04:56] tbranyen: i'm flattered never-the-lesss [04:56] AAA_awright: v8: ({"foo":"bar"}); [04:56] v8bot_: AAA_awright: {"foo": "bar"} [04:56] AAA_awright: v8: {"foo":"bar"}; [04:56] v8bot_: AAA_awright: SyntaxError: Unexpected token : [04:56] AAA_awright: hmm [04:56] progrock: on the otherhand tylergillies_ , yeah, ironic tings are more oe less usually opposites combined.. or close to... thatsnot even close [04:57] tylergillies_: opposites combined i would more attribute to the word "oxymoron" [04:57] tylergillies_: (which literally means sharp/dull) [04:57] progrock: Noun: The expression of one's meaning by using language that normally signifies the opposite, typically for humorous or emphatic effect. [04:58] progrock: I guess combinednot the right wording [04:58] zilch has joined the channel [04:59] cha0s has joined the channel [05:00] progrock: so, which mongo driver should I likely use for node?.. just noticed one o my favorite JS developers forked node-mongodb-native... tho I gotta see why he forked it [05:04] tbranyen: because its good [05:04] csanz_ has joined the channel [05:04] Nexxy has joined the channel [05:04] Nexxy has joined the channel [05:05] progrock: while I suppose I see my coworkers reasoning on using scala for our platforms backend, for the 'ease' of exhaustive testing of all the calculations, etc.... I'm kinda liking the whole no context switching with using Javasrcript for my fontend, server side, and even database... in other words.. model, view, and controller [05:05] zilch has joined the channel [05:07] dshaw_1 has joined the channel [05:08] ironlad has joined the channel [05:10] progrock: Tho, I'm also dying to mess around with Hakyll.. which is a haskell framework for creating a static website... I coul dliterall y host 99.9999 % of the site on a CDN, andprobably scale to Million+ request/hour on a 256mb vps running nginx, and serving ust the minimal index.html [05:10] daithi44 has joined the channel [05:11] seivan has joined the channel [05:11] bentkus: engine engine number nine [05:11] cying has joined the channel [05:11] progrock: probably the easiest/quickest (potentially cheapest) way to set up a HA site in minutes [05:13] newy has joined the channel [05:14] zilch has joined the channel [05:15] jakehow has joined the channel [05:15] jakehow_ has joined the channel [05:15] loob2 has joined the channel [05:17] devian has joined the channel [05:24] skm has joined the channel [05:24] chrisbjr has joined the channel [05:25] zilch has joined the channel [05:29] zanes: Anyone familiar with zappa? [05:29] systemfault: Frank? [05:29] systemfault: :/ [05:29] zanes: In his honor: https://github.com/mauricemach/zappa [05:31] systemfault: Looks nice, thanks for showing :) [05:32] zanes: Haha. Don't get too excited. I can't get some of the examples working. [05:32] zanes: Was wondering whether it was just me. [05:32] skoom has joined the channel [05:35] davidbanham has joined the channel [05:39] zilch has joined the channel [05:44] sivy has joined the channel [05:45] unlink has joined the channel [05:45] unlink has joined the channel [05:45] zilch has joined the channel [05:46] SoulRaven has joined the channel [05:47] Libra102 has joined the channel [05:49] Yuffster has joined the channel [05:49] MUILTFN has joined the channel [05:50] zilch has joined the channel [05:55] Bogh has joined the channel [05:56] Bogh has left the channel [05:56] Bogh has joined the channel [05:56] CIA-65: libuv: 03Ryan Dahl 07master * re89f54e 10/ (deps/pthread-win32/pthread-win32.gyp uv.gyp): Add forgotten gyp files - http://bit.ly/pj25ql [05:56] xAt has joined the channel [05:57] pen has joined the channel [05:58] towski has joined the channel [06:00] zilch has joined the channel [06:00] skm has joined the channel [06:02] MUILTFN has joined the channel [06:02] skm has joined the channel [06:02] vikstrous: Is there anyone awake who uses mustache? [06:03] infynyxx has joined the channel [06:24] cying has joined the channel [06:25] zilch has joined the channel [06:27] necrodearia has joined the channel [06:28] chrisbjr has joined the channel [06:30] confoocious has joined the channel [06:30] confoocious has joined the channel [06:32] devian has joined the channel [06:32] visnup has joined the channel [06:39] zilch has joined the channel [06:42] zilch has joined the channel [06:45] zilch has joined the channel [06:45] Dreamer3 has joined the channel [06:48] madsleejensen has joined the channel [06:48] zilch has joined the channel [06:51] kenperkins has joined the channel [06:53] tristanseifert has joined the channel [07:02] zilch has joined the channel [07:04] k1ttty has joined the channel [07:04] seivan has joined the channel [07:05] vikstrous has joined the channel [07:05] Anton_ has joined the channel [07:13] Charuru has joined the channel [07:13] zilch has joined the channel [07:13] ryah has joined the channel [07:20] perezd has joined the channel [07:21] zilch has joined the channel [07:25] joeytwiddle has joined the channel [07:27] amerine has joined the channel [07:28] zilch has joined the channel [07:28] joeytwiddle has joined the channel [07:28] dob_ has joined the channel [07:29] vikstrous has joined the channel [07:32] meandi2 has joined the channel [07:33] |Freeman| has joined the channel [07:33] plutoniix has joined the channel [07:34] Yoric has joined the channel [07:35] zilch has joined the channel [07:42] zilch has joined the channel [07:46] meandi has joined the channel [07:46] zilch has joined the channel [07:49] liquidproof has joined the channel [07:50] zilch has joined the channel [07:50] aoberoi has joined the channel [07:50] nodokodo has joined the channel [07:52] chrisbjr: loving node.js with express :) [08:02] systemfault: s/with express//g [08:02] zilch has joined the channel [08:07] zilch has joined the channel [08:08] visnup has joined the channel [08:10] zilch has joined the channel [08:12] Bogh has joined the channel [08:13] Bogh has joined the channel [08:13] Nuck has joined the channel [08:13] zilch has joined the channel [08:18] rickharrison has joined the channel [08:19] rissicay has joined the channel [08:20] zilch has joined the channel [08:25] bogdan_ has joined the channel [08:26] zilch has joined the channel [08:28] fille has joined the channel [08:28] fly-away has joined the channel [08:29] __doc__ has joined the channel [08:31] fille: hallo [08:32] boehm has joined the channel [08:33] zilch has joined the channel [08:34] herbySk has joined the channel [08:35] `3rdEden has joined the channel [08:36] piscisaureus has joined the channel [08:36] Nexxy has joined the channel [08:36] Nexxy has joined the channel [08:37] mscdex: hola [08:39] simenbrekken has joined the channel [08:39] fille: whats the story [08:40] zilch has joined the channel [08:43] Marak has joined the channel [08:44] temp01 has joined the channel [08:44] zilch has joined the channel [08:44] Marak: anyone know an easy way to "force" the writing of a file regardless of directory existence. as in, i want to create /foo/beep/bird/boop.txt and if any of those dirs dont exist, just create them [08:45] devian has joined the channel [08:46] zomgbie has joined the channel [08:47] zilch has joined the channel [08:48] jesusabdullah: I used mkdirp the other day [08:48] rurufufuss has joined the channel [08:49] adam_ has joined the channel [08:49] zilch has joined the channel [08:52] Marak: is that what that does [08:53] Marak: lol dammit [08:53] Marak: im an idiot [08:53] Marak: https://github.com/substack/node-mkdirp [08:54] dgathright has joined the channel [08:56] Marak: jesusabdullah: looks like no sync API for make derp, should add that using fs.mkdirSync [08:57] zilch has joined the channel [08:58] zastaph has joined the channel [09:01] booo has joined the channel [09:02] zilch has joined the channel [09:02] tomb has joined the channel [09:03] cognominal_ has joined the channel [09:05] lmorchard has joined the channel [09:06] zilch has joined the channel [09:07] mikl has joined the channel [09:07] mikl has joined the channel [09:07] Marak: https://raw.github.com/gist/1144603/4be46cfd342754d66b7c37b62f155c2cc91191d7/mkdirp-sync.patch [09:07] Marak: there it is [09:14] davidcoallier has joined the channel [09:15] thalll has joined the channel [09:16] zilch has joined the channel [09:20] Yoric has joined the channel [09:23] JoshC1 has joined the channel [09:23] zilch has joined the channel [09:24] blueadept: anyone know how i can insert this redirect into the router statement? http://pastie.org/private/jfdtwxl5es2y80a4wjrhpw [09:24] k1ttty has joined the channel [09:27] Nuck: I think tomorrow [09:27] zilch has joined the channel [09:27] Nuck: I'm gonna add oAuth 2 to my API stuff [09:27] Nuck: :B [09:28] liquidproof has joined the channel [09:30] icebox has joined the channel [09:33] zilch has joined the channel [09:35] shinuza has joined the channel [09:35] lng has joined the channel [09:36] mehlah has joined the channel [09:39] dexter_e has joined the channel [09:39] zilch has joined the channel [09:39] confoocious has joined the channel [09:42] mike5w3c has joined the channel [09:43] FireFly has joined the channel [09:43] NetRoY has joined the channel [09:44] lng has joined the channel [09:44] zilch has joined the channel [09:45] lng: hi! I thougt this script should reuse DB connection, but it doesn't: http://pastie.org/private/nypk66gfhgladyia2yjma [09:45] lng: I used ad tool [09:46] lng: and the number concurrent request were issued was equal the number connections in PROCESS LIST statement [09:46] lng: why? [09:48] piscisaureus has joined the channel [09:48] zilch has joined the channel [09:54] dexter_e_ has joined the channel [09:54] jetienne has joined the channel [09:55] zilch has joined the channel [09:57] mraleph has joined the channel [09:59] zilch has joined the channel [09:59] icebox: lng: http://groups.google.com/group/nodejs/browse_thread/thread/04c24f5b9e7ae260?fwc=1 [10:00] lng: icebox: thanks! [10:06] zilch has joined the channel [10:09] blueadept: anyone know how to pass an array to connect ? http://pastie.org/private/r6rjctvgjn7ztevjqalrma [10:09] zilch has joined the channel [10:14] zilch has joined the channel [10:14] mc_greeny has joined the channel [10:15] EvRide has joined the channel [10:16] davidcoallier has joined the channel [10:16] zilch has joined the channel [10:17] shipit has joined the channel [10:19] lng: icebox: how can I get resultset with node-pool? [10:20] zilch has joined the channel [10:21] mike5w3c has joined the channel [10:22] jomoho has joined the channel [10:24] EvRide has joined the channel [10:24] daglees has joined the channel [10:27] zilch has joined the channel [10:28] markwubben has joined the channel [10:28] EvRide has joined the channel [10:31] zilch has joined the channel [10:32] TruPpp has joined the channel [10:34] ttpva has joined the channel [10:37] zilch has joined the channel [10:39] rtward has left the channel [10:39] dob_ has joined the channel [10:41] daithi44 has joined the channel [10:41] zilch has joined the channel [10:41] replore has joined the channel [10:41] dexter_e has joined the channel [10:41] replore_ has joined the channel [10:42] pongwon has joined the channel [10:42] EvRide has joined the channel [10:42] random123 has joined the channel [10:45] zanes has joined the channel [10:45] barbosu has joined the channel [10:45] tobmaster has joined the channel [10:45] zilch has joined the channel [10:46] sebastianedwards has joined the channel [10:46] barbosu has left the channel [10:48] ryanallenbobcat has joined the channel [10:49] gausby has joined the channel [10:49] fairwinds has joined the channel [10:51] zilch has joined the channel [10:51] EvRide1 has joined the channel [10:55] JoshC1 has joined the channel [10:58] zilch has joined the channel [11:01] FireFly|n900 has joined the channel [11:04] TheJH_phone has joined the channel [11:04] TheJH_phone has joined the channel [11:05] zilch has joined the channel [11:06] Wizek has joined the channel [11:08] zilch has joined the channel [11:12] dexter_e has joined the channel [11:13] eyesUnclouded has joined the channel [11:14] zilch has joined the channel [11:15] EvRide has joined the channel [11:16] Tom has joined the channel [11:16] Tom: Inside an express route, why does res.socket.on('end') or 'close' never emit? I am trying to figure out when the http connection ended. [11:17] SubStack: try req.connection [11:19] Tom: SubStack: great, that works. Though I am confused about the difference [11:19] Tom: Thanks a lot [11:20] zilch has joined the channel [11:22] EvRide1 has joined the channel [11:22] SubStack: I have no idea either [11:25] zilch has joined the channel [11:28] zilch has joined the channel [11:29] hkjels_ has joined the channel [11:31] hkjels_ has joined the channel [11:32] hkjels_ has joined the channel [11:33] blup has joined the channel [11:33] topaxi has joined the channel [11:34] ttpva_ has joined the channel [11:34] hkjels_ has joined the channel [11:35] hkjels_ has joined the channel [11:36] damiano has joined the channel [11:36] damiano: hello [11:36] hkjels has joined the channel [11:37] blueadept: sup [11:38] damiano: i have a problem with Express..... i have the "index" page(visible to the user) and the login (that check if the user exists) if the user doesnt exists i have to print an error (but i want to print that error to "index" not to "login" page, because it doesnt show nothing. [11:38] damiano: how can i do it? [11:38] hkjels_ has joined the channel [11:40] hkjels_ has joined the channel [11:41] hkjels_ has joined the channel [11:41] blueadept: you want to print an error that the users does not exist? [11:41] blueadept: on the index page? [11:41] jakehow_ has joined the channel [11:41] jakehow has joined the channel [11:42] damiano: yes [11:42] damiano: exactly [11:42] damiano: this /login page is called from a FORM [11:43] damiano:
[11:43] damiano: only to check if the user exists [11:43] blueadept: the way i notify improper logins is within my User.authenticate function i have an if else, where if the user goes though, i set the session and redirect, if it fails, i render a specific page which also passes req.flash that shows up with the message "login failed" [11:44] blueadept: so that's one way of doing it [11:44] blueadept: actually i dont pass req.flash, i just set it [11:45] simenbrekken has joined the channel [11:46] simenbrekken has joined the channel [11:46] damiano: yes [11:46] damiano: i redirect if the login is ok [11:46] damiano: but if i do [11:46] Bogh has joined the channel [11:46] damiano: res.render('index') [11:47] blueadept: right [11:47] damiano: i will have the same page at / and /login [11:47] damiano: it's not very good [11:47] damiano: i would like to render a page in that, i mean: 1. redirect 2. render the page automatically [11:47] blueadept: well the key is to make sure you set req.flash to req.flash('warn', 'Login Failed') [11:48] simenbrekken has joined the channel [11:48] blueadept: and on the page you render, set up a - if (flash.warn) p#warn = flash.warn [11:48] damiano: wiat [11:48] damiano: quat req.flash does ? [11:48] damiano: what [11:48] blueadept: it will handle the message you want to preset on that page [11:49] damiano: write the text on a cookie ? [11:50] zilch has joined the channel [11:51] booo has joined the channel [11:51] blueadept: http://pastie.org/private/xdga78ybt2lvyrpq2fbcw [11:52] blueadept: this is sort of a rough way of how i have my apps setup [11:52] damiano: i see [11:55] damiano: blueadept, res.render('sessions/new', {redir: req.body.redir}) it rend the page [11:55] damiano: what is the redir: [11:55] damiano: ? [11:55] wbw72 has joined the channel [11:56] simenbrekken has joined the channel [11:56] spencertheman has joined the channel [11:57] blueadept: hm, perhaps i dont need that in there, but i think it has something to do with redirected pages [11:57] blueadept: you can ignore that i think [11:57] damiano: hmmm...as far i have understand [11:58] damiano: you have the message with .flash [11:58] damiano: and then render the page.. [11:58] damiano: but if you render the page there you are in /sessions [11:58] damiano: is the wrong page [11:58] damiano: so i think that "redir:" it mean that it has to render the page and make a redirect 301 [11:58] damiano: automatically [11:58] damiano: no? [11:59] blueadept: ha i honestly forget [11:59] blueadept: i think it might be there by mistake [11:59] damiano: k [11:59] blueadept: i think it's an artifact [12:00] blueadept: dont mind that [12:00] damiano: but in this case [12:00] damiano: you render the page [12:00] damiano: on /session [12:00] spencertheman has left the channel [12:00] damiano: so why use .flash() ? [12:00] damiano: you just can do [12:00] damiano: res.render('sesssion', {error: 'Wrong login'}); [12:00] blueadept: yep [12:00] damiano: why did you use flash() ? [12:01] blueadept: i think it was just a way of organizing it [12:01] blueadept: you could also do err: 'msg' [12:01] damiano: ok, but to resolve my problem, how could i show a message to render in a different page ? [12:01] damiano: y [12:02] blueadept: what message are you trying to specifically show and on what pages? [12:02] zilch has joined the channel [12:03] damiano: "access denied" [12:03] damiano: or [12:03] damiano: "email and password are not correct" [12:03] damiano: messages like those [12:03] blueadept: well email and password are not correctly only needs to render on which ever page you render on a false login [12:03] blueadept: for access denied [12:04] blueadept: that's something different [12:04] blueadept: let me look at something [12:04] blueadept: ok yeah, you want to pass in a function into all app.get arguments [12:04] blueadept: that checks the session [12:05] saschagehlich has joined the channel [12:05] damiano: example.com?error=text [12:05] damiano: ? [12:05] damiano: hmmm [12:05] damiano: i don't like it [12:05] damiano: the problem is that i don't hav e alogin page [12:05] damiano: i have a form on index [12:05] zilch has joined the channel [12:05] damiano: with action='/login' [12:05] blueadept: http://pastie.org/private/xdga78ybt2lvyrpq2fbcw [12:05] blueadept: you want something like this [12:06] damiano: i see [12:06] blueadept: where you have an anon function that checks the session, and either continues forward, or stops the request and redirects to a new page [12:06] damiano: yes [12:06] damiano: i have that function [12:06] damiano: but [12:06] damiano: that function only check if the session ahs been created [12:06] damiano: and stop [12:07] damiano: i need to print an error [12:07] damiano: if the user write wrong credentials [12:07] damiano: so, this middleware to check if it is logged, [12:07] damiano: yes i have it [12:07] damiano: but BEFORE it [12:07] damiano: i have to show to the user if the login gone well [12:07] blueadept: why so? [12:08] damiano: ? [12:08] blueadept: if they login, then they login and they see a page which indicates they are logged in, if they can't login, they see a page which indicates the reason for their login failure [12:08] damiano: i have [12:08] damiano: yes [12:08] damiano: you are right [12:08] blueadept: if they aren't logged in, they get redirected to a page indicated they arne't logged in [12:08] damiano: i think we are telling the same things [12:08] damiano: :D [12:08] damiano: but [12:08] blueadept: ha [12:08] damiano: there is one problem [12:08] metaverse has joined the channel [12:09] damiano: becuase when you say :"a page which indicates the reason for their login failure" [12:09] damiano: this page has to be the index [12:09] damiano: becase there the user see the previos email/password [12:09] damiano: change it [12:09] damiano: and do the login again [12:09] blueadept: ok, so res.render('index', error: 'login failure') right? [12:09] damiano: i don't want to show a page with an error...because [12:10] ts__ has joined the channel [12:10] blueadept: and in the index do a - if (error) p#error= error [12:10] zilch has joined the channel [12:10] damiano: if i do that...the login, has to move to the home page again, write the login again...and then press the login button [12:10] damiano: yes [12:10] damiano: exactly [12:10] damiano: res.render('index', error: 'login failure') <------ [12:10] damiano: yes [12:10] blueadept: yeah that works [12:10] damiano: but if i do that...it renders the page at [12:10] damiano: /login [12:11] damiano: example.com/login [12:11] damiano: so example.com and exmaple.com/login [12:11] blueadept: so when any users goes to example.com/ it automatically goes to example.com/login ? [12:11] damiano: are the same because i render the same view [12:11] blueadept: oh [12:11] blueadept: i'd split the views up [12:11] damiano: no no [12:11] damiano: there is [12:11] damiano: example.com [12:11] damiano: with a form that has the action to '/login' [12:11] simenbrekken has joined the channel [12:12] blueadept: ok [12:12] damiano: this 'login' is not a page...it only check if the credentials are good or not [12:12] damiano: and then redirect the user if are good [12:12] blueadept: i'm confused :/ [12:12] zilch has joined the channel [12:12] damiano: or show a message if not... but this message has to be on the index page not /login [12:12] damiano: maybe my fucking english :D [12:13] blueadept: where you from? [12:13] damiano: italy [12:13] damiano: u? [12:13] blueadept: us [12:13] blueadept: cool, no your english is good, i think your issue is just oragnizing how you want this all to be setup [12:13] blueadept: keep hacking at it [12:14] damiano: blueadept, the problem (i think) that i can check the form on the same page [12:14] damiano: no ? [12:14] damiano: [12:14] damiano: i created a /login page only to check the POST requests [12:16] blueadept: so you want the form to check the details and not reder or redirect, but show if the message worked or not on the /login page? [12:17] blueadept: that would take some ajax code [12:17] damiano: blueadept, good idea [12:17] blueadept: i use something called nowjs to handle that sort of stuff [12:17] damiano: i can check the credentials with ajax [12:18] cying has joined the channel [12:18] damiano: but if i check email/password using ajax, then, can i do a redirect if are good? [12:18] blueadept: yeah [12:18] zilch has joined the channel [12:18] LazyLucy has joined the channel [12:18] damiano: hmm interesting [12:18] blueadept: actually i want to do something like wehat you're talking about [12:19] damiano: nowjs use socket.io if i'm not wrong [12:19] blueadept: i just haven't had time to fool around, what i have setup now works [12:19] blueadept: yes [12:19] Bogh has joined the channel [12:19] damiano: i think we could just send an ajax request with jquery [12:19] damiano: without open socket [12:19] damiano: no? [12:19] blueadept: right [12:19] blueadept: yeah [12:19] damiano: k [12:20] blueadept: i'm starting to move all mystuff to nowjs anyway [12:20] blueadept: but it could work either way [12:20] simenbrekken has joined the channel [12:20] damiano: why not socket.io directly? [12:20] blueadept: less verbose [12:21] damiano: k [12:22] damiano: blueadept, maybe a bit slower then socket.io ? [12:22] blueadept: i haven't really looked at any benchmarks, but if there is any difference, i can't tell [12:23] damiano: k [12:23] damiano: maybe we are talking about 1 ms :-D [12:23] damiano: ahahah [12:24] damiano: no difference [12:24] blueadept: yeah it has to be very minute [12:24] blueadept: if not at all [12:24] bogdan_ has joined the channel [12:25] damiano: yes [12:25] damiano: blueadept, i can check ajax request with req.xhr right ? [12:26] blueadept: i think so [12:26] damiano: k [12:26] blueadept: i juse use nowjs for everything [12:27] blueadept: i dont even know anymore [12:27] simenbrekken has joined the channel [12:28] jbpros has joined the channel [12:28] damiano: k [12:28] llrcombs has joined the channel [12:29] bogdan__ has joined the channel [12:29] blueadept: brb [12:29] blueadept: good luck [12:29] davidbanham has joined the channel [12:30] hellp has joined the channel [12:30] damiano: you too [12:30] damiano: :) [12:30] damiano: thank you! [12:32] zilch has joined the channel [12:33] mehlah has joined the channel [12:33] eyesUnclouded has joined the channel [12:34] davidbanham has joined the channel [12:40] bogdan_ has joined the channel [12:41] tommg has joined the channel [12:44] ph^ has joined the channel [12:44] zilch has joined the channel [12:44] EvRide has joined the channel [12:45] _artist_m has joined the channel [12:46] bogdan__ has joined the channel [12:47] zilch has joined the channel [12:50] ph^ has joined the channel [12:50] EvRide1 has joined the channel [12:51] bogdan_ has joined the channel [12:51] zilch has joined the channel [12:51] postwait has joined the channel [12:53] zilch has joined the channel [12:55] unlink has joined the channel [12:55] unlink has joined the channel [12:56] EvRide has joined the channel [12:56] vdemedes has joined the channel [12:56] vdemedes: Hello! [12:57] vdemedes: How to listen on port 80 without using sudo? [12:57] vdemedes: I know that sudo is needed when listening on port < 1024, but still [12:57] febits has joined the channel [12:57] vdemedes: when I run my app without sudo, it throws EACCESS: Permission denied [12:57] vdemedes: HTTPServer._doListen [12:58] random123 has joined the channel [12:58] vdemedes: how to fix this without any port forwarding or proxy? [13:02] Sorella has joined the channel [13:03] Country has joined the channel [13:03] zilch has joined the channel [13:03] EvRide1 has joined the channel [13:04] Bogh has joined the channel [13:06] zilch has joined the channel [13:06] pantsoftime has joined the channel [13:07] vdemedes: anyone? [13:07] edude03 has joined the channel [13:09] bogdan_ has joined the channel [13:10] nodokodo: vdemedes: run as root, proxy, forward & perhaps authbind are your only options - why? [13:10] vdemedes: nodokodo: but how does `rails s` listen to port 80 without sudo? [13:11] zilch has joined the channel [13:11] nodokodo: it doesnt [13:11] nodokodo: connections are proxied to backends [13:12] nodokodo: same thing [13:12] nodokodo: why cant you do any of the above? [13:12] vdemedes: nodokodo: when you run `rails s` it runs Rails app and server [13:12] vdemedes: nodokodo: and does not require sudo [13:13] nodokodo: this is #node.js [13:13] zilch has joined the channel [13:13] nodokodo: havent touched rails in ages [13:13] vdemedes: it's just an example [13:13] nodokodo: thats not the way i remember it [13:13] vdemedes: I don't ask you to help with rails [13:13] nodokodo: so whats your point? [13:13] vdemedes: ok, I got it [13:14] nodokodo: theres nothing stopping you running ANYTHING on 80 except beinbg a non-privilged user [13:14] vdemedes: yeah, I know [13:14] nodokodo: so? [13:14] vdemedes: I said "I got it" [13:14] vdemedes: thank yuo [13:14] vdemedes: you [13:15] nodokodo: just trying to understand your issue [13:16] scott_gonzalez has joined the channel [13:17] vdemedes has left the channel [13:17] zilch has joined the channel [13:18] i42n has joined the channel [13:19] EvRide has joined the channel [13:19] rurufufuss has joined the channel [13:19] jbpros has joined the channel [13:20] |Freeman| has joined the channel [13:22] ggg has joined the channel [13:22] knowtheory has joined the channel [13:22] zilch has joined the channel [13:23] ggg: this might sound like obvious for some of you guys, but I keep getting CANT /myGetRequest, if I call /anotherGET, and then I call /myGetRequest, the error is gone, an it works properly. [13:23] ggg: this is under express [13:25] Wizek has joined the channel [13:26] ggg: the error is actually Cannot GET /url [13:28] mike5w3c has joined the channel [13:29] TheJH has joined the channel [13:29] TheJH has joined the channel [13:30] ggg: found it, }); ws missing [13:30] ggg: well rather, was misplaced [13:30] ceej has joined the channel [13:32] zilch has joined the channel [13:33] tmzt_ has joined the channel [13:37] zilch has joined the channel [13:37] blueadept: anyone know the best way i can load dynamic router options here? http://pastie.org/private/wb4j20zcr5klhvyyx0gf4g [13:37] damiano: hey [13:37] damiano: :) [13:37] damiano: back [13:38] blueadept: yeah trying to build this proxy server with custom options [13:38] damiano: is there a method like app.xhr() [13:38] damiano: oh ok [13:38] blueadept: i dont thikn so [13:38] blueadept: there maybe though [13:38] blueadept: you'd have to search the npm library [13:38] damiano: npm ? [13:39] damiano: i'm talking about express [13:39] blueadept: no in express [13:39] blueadept: https://github.com/joyent/node/wiki/modules [13:39] blueadept: one of these might though ^ [13:39] zilch has joined the channel [13:42] mikeycgto has joined the channel [13:42] mikeycgto has joined the channel [13:43] zilch has joined the channel [13:43] damiano: blueadept, what is the url of jquery hosted by GOogle? [13:44] blueadept: https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js [13:44] damiano: thanks [13:44] damiano: 1.5.2 is the latest? [13:45] blueadept: not sure, but i remember updating it not to long ago, maybve a month ago maybe [13:45] damiano: k [13:46] sivy has joined the channel [13:46] Wizek has joined the channel [13:48] omar has joined the channel [13:49] zilch has joined the channel [13:51] omar: I just installed node.js and npm on Ubuntu. The installed seemed to work fine. But npm gets hung when I try to install any package. [13:52] edgarallanpoe has joined the channel [13:52] progme has joined the channel [13:52] omar: anyone seen this before? [13:52] TheJH: omar, I think so [13:52] mehtryx has joined the channel [13:52] zilch has joined the channel [13:53] omar: any fix for this? [13:53] TheJH: omar, never seen it myself, but https://github.com/isaacs/npm/issues/1198#issuecomment-1750605 [13:55] omar: Thanks TheJH, I'll check it out. [13:56] ironlad has joined the channel [13:57] random123: omar, try using sudo, you shouldnt have to but if you do then its a permission prob [13:58] brianseeders has joined the channel [14:00] ralphholzmann: heyo - I have an array of buffers that are being piped in through an event [14:00] ralphholzmann: each buffer is a part of an entire file [14:00] ralphholzmann: how do I take my array of buffers and make it a single buffer [14:01] ralphholzmann: e.g. reconstruct the whole file [14:01] zilch has joined the channel [14:01] TheJH: ralphholzmann, add the lengths of all buffers, create a new buffer with that length and copy the chunks in it. there's probably an npm module for that [14:02] TheJH: !npm search buffertools [14:02] jhbot: package buffertools: Working with node.js buffers made easy. [14:02] TheJH: ralphholzmann, buffertools.concat looks good [14:02] ralphholzmann: ty TheJH [14:02] ralphholzmann: sweet [14:06] tobiassjosten has joined the channel [14:06] tomb has joined the channel [14:06] zilch has joined the channel [14:07] TheJH: omar, are you "mmalecki" on github? [14:07] tobiassjosten: I have just installed Node from GitHub and NPM from it's install.sh. It runs fine but when I try to install socket.io with it, nothing happens. It just sits there, like it's downloading the entire Internet. Any ideas what could be wrong? [14:08] fille: try a stable release [14:08] fille: use the 4.10 [14:09] fille: node.ks [14:09] fille: node.js [14:09] TheJH: tobiassjosten, could you try the same thing again, but with "--registry http://registry.npmjs.org/"? [14:09] adrianmg has joined the channel [14:10] tobiassjosten: TheJH: Hey, that worked! :) [14:10] nf has joined the channel [14:10] TheJH: tobiassjosten, wow, cool! [14:10] omar: random123, seems to be a problem with using https. [14:10] tobiassjosten: TheJH: Did NPM change it's repo address or something? I'm not familiar with how all of this is setup. [14:10] TheJH: tobiassjosten, no, but there seems to be a problem with https access for some people [14:10] nf: how to run nodejs in windows xp without cygwin ? [14:10] omar: TheJH, no I'm not mmalecki on github. [14:11] tobiassjosten: TheJH: Ah. Thanks a lot anyway! [14:11] zilch has joined the channel [14:12] hcvst has joined the channel [14:12] fille: så du ska köra node.js tobiassjosten [14:13] CIA-65: node: 03koichik 07v0.4 * r4d186f2 10/ doc/api/buffers.markdown : [14:13] CIA-65: node: Docs: Not memcpy, but memmove [14:13] CIA-65: node: Fixes #1520. - http://bit.ly/mXTRFH [14:17] zilch has joined the channel [14:17] rurufufuss has joined the channel [14:18] ryanallenbobcat has joined the channel [14:18] mehlah has joined the channel [14:20] k1ttty has joined the channel [14:22] zilch has joined the channel [14:22] neuroerotic has left the channel [14:25] jbrokc has joined the channel [14:26] markwubben has joined the channel [14:27] versicolor has joined the channel [14:28] rfay has joined the channel [14:28] zilch has joined the channel [14:29] trepan has joined the channel [14:30] bshumate has joined the channel [14:31] zilch has joined the channel [14:33] pen_ has joined the channel [14:33] unnikrishnan has joined the channel [14:33] zilch has joined the channel [14:33] unnikrishnan has left the channel [14:34] simenbrekken has joined the channel [14:35] asabil has joined the channel [14:35] pen has joined the channel [14:38] kenperkins has joined the channel [14:43] charleyd has joined the channel [14:43] zilch has joined the channel [14:45] akshatj has joined the channel [14:45] jbrokc: anyone here use jade? for some reason in express it renders jade on a single line and i'm wondering if its possible to overwrite that [14:46] tuhoojabotti: No. [14:46] tuhoojabotti: You're the only one. [14:46] indutny: yep [14:47] Sorella has joined the channel [14:47] jbrokc: i can't seem to find the option in either express' or jade's readme [14:48] TheJH: jbrokc, if you want to know what you can do with code, read its code :D [14:48] TheJH: s/with code/with a module/ [14:49] dexter_e has joined the channel [14:50] zilch has joined the channel [14:52] micheil has joined the channel [14:54] zilch has joined the channel [14:54] jbrokc: TheJH: i tried figuring it out but no dice. is it something to do with layout: false? https://gist.github.com/27166d96058d9e871980 [14:55] TheJH: jbrokc, I know nearly nothing about expres or jade, ask the rest of the channel :D [14:55] jbrokc: bummer. can anyone help me prevent jade from compiling to only a single line when using it as expresses view engine? https://gist.github.com/27166d96058d9e871980 [14:59] trepan has joined the channel [14:59] bazookatooth has joined the channel [15:00] jarek has joined the channel [15:00] jarek has joined the channel [15:01] Generic_Dumbass has joined the channel [15:01] bazookatooth has joined the channel [15:01] zilch has joined the channel [15:01] shipit has joined the channel [15:02] devongovett has joined the channel [15:09] marcello3d has joined the channel [15:09] zilch has joined the channel [15:12] zilch has joined the channel [15:12] insin has joined the channel [15:12] davidbanham: jbrokc: http://groups.google.com/group/express-js/browse_thread/thread/44406b587969cbed [15:13] plutoniix has joined the channel [15:13] towski has joined the channel [15:14] Croms has left the channel [15:14] Croms has joined the channel [15:15] jbrokc: davidbanham: thanks, but unfortunately it didn't work for me https://gist.github.com/450f028861ae9ddd954e [15:15] jbrokc: jade version 0.13.0 [15:15] zilch has joined the channel [15:16] davidbanham: I haven't played with Jade's options at all, the defaults have always worked fine for me. Would declaring pretty: true in view options be the way to go? [15:16] davidbanham: jbrokc: Line 6 here: https://gist.github.com/27166d96058d9e871980 [15:17] shiawuen has joined the channel [15:18] unlink has joined the channel [15:18] davidbanham: jbrokc: What's the thinking behind this? Any particular reason you don't want it all on one line? [15:18] bazookatooth has left the channel [15:18] jbrokc: davidbanham: ah! nice one - i didn't know it was a view option and not a render one [15:18] vikstrous has joined the channel [15:18] davidbanham: jbrokc: Ah, so it worked? Great. [15:19] eyesUnclouded has joined the channel [15:19] jbrokc: i downloaded 0.14.0, the most recent version, and grep'd for "pretty" but turned up nothing [15:19] zilch has joined the channel [15:20] ellisgl has joined the channel [15:20] davidbanham: As I say, I've never touched the options of Jade. All I did was google for "express jade single line" then take guesses. [15:22] Qbix1 has joined the channel [15:25] zilch has joined the channel [15:25] Renegade001 has joined the channel [15:27] Lagnus has joined the channel [15:27] synkro has joined the channel [15:31] zilch has joined the channel [15:31] mike5w3c has joined the channel [15:34] zilch has joined the channel [15:36] vikstrous has joined the channel [15:36] confoocious has joined the channel [15:37] mehlah has joined the channel [15:38] dherman has joined the channel [15:38] zilch has joined the channel [15:40] Spion has joined the channel [15:43] Sorella has joined the channel [15:46] dexter_e has joined the channel [15:46] zilch has joined the channel [15:46] bradleymeck has joined the channel [15:49] cccaldas has joined the channel [15:49] k1ttty has joined the channel [15:51] vikstrous has joined the channel [15:51] zilch has joined the channel [15:51] smathy has joined the channel [15:53] matomesc has joined the channel [15:53] zilch has joined the channel [15:54] csanz has joined the channel [15:56] newy has joined the channel [15:59] shipit has joined the channel [15:59] kenperkins has joined the channel [16:00] WarriorSl has joined the channel [16:00] cafesofie has joined the channel [16:02] losing has joined the channel [16:02] zilch has joined the channel [16:03] markstory has joined the channel [16:06] zilch has joined the channel [16:08] dshaw_ has joined the channel [16:08] infynyxx has joined the channel [16:10] zilch has joined the channel [16:14] TheJH: !remember npm-hang If npm hangs, that's probably because of https. Try re-running it with `--registry http://registry.npmjs.org/` [16:14] jhbot: saved definition of 'npm-hang' [16:14] zilch has joined the channel [16:14] tomb has joined the channel [16:16] mif86 has joined the channel [16:16] vikstrous has joined the channel [16:17] dshaw_ has joined the channel [16:19] jeromegn: anybody did some HTML find and replace with node.js? I'm getting a page's HTML but I'd like to modify it using selectors (if possible) [16:19] zilch has joined the channel [16:19] synkro: jeromegn()just load you html and jquery in a DOM [16:19] jeromegn: jsdom? [16:19] synkro: yeah [16:20] jeromegn: yea, I'm seeing that now [16:20] jeromegn: wondering if it's lightweight enough, let's see! [16:20] synkro: jeromegn() http://blog.nodejitsu.com/jsdom-jquery-in-5-lines-on-nodejs [16:20] synkro: easy as pie [16:22] mhausenblas has joined the channel [16:23] zilch has joined the channel [16:24] mendel_ has joined the channel [16:24] mendel__ has joined the channel [16:26] maushu has joined the channel [16:26] vikstrous has joined the channel [16:27] aoberoi has joined the channel [16:28] amerine has joined the channel [16:29] zilch has joined the channel [16:29] jbrokc: anyone here have any experience with soda.js? i can't seem to get it to work using the following: https://gist.github.com/c4d0b03da174a5eee79c [16:29] jbrokc: or selenium with node for that matter [16:30] necrodearia has joined the channel [16:32] tjholowaychuk has joined the channel [16:33] zilch has joined the channel [16:34] tylergillies_: whats the best way to do a shallow copy of a var? [16:34] tbranyen: tylergillies_: just loop over the properties and copy them to a new var? [16:34] tylergillies_: does node use ES5? [16:34] tbranyen: if its an array you can just do slice [16:34] tbranyen: yes [16:35] tylergillies_: wonder if Object.create would work [16:35] tbranyen: yes it will [16:35] booo has joined the channel [16:36] cying has joined the channel [16:36] kraft has joined the channel [16:37] ryanallenbobcat has joined the channel [16:37] d0k has joined the channel [16:37] ryanallenbobcat has left the channel [16:38] whitman has joined the channel [16:39] tylergillies_: thnx [16:40] DrMcKay has joined the channel [16:40] zilch has joined the channel [16:41] odie5533: Anyone here use a doc generator? [16:41] DrMcKay: TheJH: mmalecki here [16:41] jarek has joined the channel [16:41] jarek has joined the channel [16:42] Yuffster has joined the channel [16:45] nerdfiles1 has joined the channel [16:45] zilch has joined the channel [16:47] shinuza has joined the channel [16:47] TruPpp has joined the channel [16:48] mehtryx has joined the channel [16:48] meandi2 has joined the channel [16:48] bradleymeck has joined the channel [16:49] zilch has joined the channel [16:51] dexter_e has joined the channel [16:52] aoberoi_ has joined the channel [16:52] vikstrous has joined the channel [16:52] d0k has joined the channel [16:53] hkjels: What is the most sane way of sharing modules to a routes file? I need app(express) & db(mongoose) to be available to the routes file [16:53] zilch has joined the channel [16:54] MooGoo: hmm I'm thinking of secretly writing a PHP webapp for work in node [16:54] MooGoo: shud i doit [16:54] jeromegn: would it be possible to interact pretty "deeply" with something like Xvfb spawned as a child process form node.js? [16:55] tmpvar has joined the channel [16:55] MooGoo: jeromegn: is stdout/in message passing deep? [16:56] simenbrekken has joined the channel [16:56] jeromegn: hehe [16:56] jeromegn: I guess sp! [16:56] jeromegn: so [16:56] jeromegn: need to do some testing :) [16:56] WarriorSl has joined the channel [16:57] MooGoo: deep would be like hai i has ur variables nd ur memory [16:57] MooGoo: that'd be nice [16:59] ttpva has joined the channel [16:59] zilch has joined the channel [17:00] visnup has joined the channel [17:01] newy has joined the channel [17:03] zilch has joined the channel [17:04] industrial has joined the channel [17:04] industrial: l [17:04] industrial: I mean, hi! [17:05] pr2012 has joined the channel [17:05] jbrokc has joined the channel [17:06] tuhoojabotti: Hey! [17:06] simenbrekken has joined the channel [17:07] zilch has joined the channel [17:07] nerdfiles1 has left the channel [17:08] jarek has joined the channel [17:08] jarek has joined the channel [17:08] qbit_ has joined the channel [17:08] al3xnull has joined the channel [17:08] industrial: Anyone use Mongoose? I still think that it's quite weird that all the examples on the site do new Schema({}) but when you want to be doing embedded documents yourself you need to do var p={}, PS=new Schema(p), P=mongoose.model('P', PS), c={p:p}, CS=new Schema(c), C=mongoose.model('C', CS); [17:08] industrial: or it will error on you. [17:08] Renegade001 has joined the channel [17:09] vikstrous has joined the channel [17:09] blueadept: could anyone tell me what the big difference is between either of these methods for looping through an object array? http://pastie.org/private/yyterpt2gdfygersiuchgq [17:10] simenbrekken has joined the channel [17:10] industrial: blueadept: you could try each times 100000, see what happens [17:11] industrial: blueadept: I dont know, by the way. [17:11] srid has joined the channel [17:11] srid has joined the channel [17:11] jpart has joined the channel [17:11] kmiyashiro has joined the channel [17:12] bzinger has joined the channel [17:12] zilch has joined the channel [17:12] pr2012: anyone have a suggestion for how to terminate http requests that get stuck in CLOSE_WAIT? [17:13] jpart: I have a problem compiling node 0.4.x on Ubuntu Natty 64bit. I get error: redefinition of ‘struct timeval’ on ares_strcasecmp.c [17:14] jpart: 0.5.x seems to build fine. [17:14] odie5533: it's not like 0.4.x is coming back into style. using 0.5.x =P [17:14] qbit_ has joined the channel [17:14] zomgbie has joined the channel [17:15] knite has joined the channel [17:15] knite has left the channel [17:15] jpart: express.js does not seem to support 0.5.x [17:15] blueadept: it works [17:15] blueadept: you just have to install it manually [17:16] skampler has joined the channel [17:16] knite has joined the channel [17:16] blueadept: though i'm unsure of what the major changes will be in the next version once 0.6 is released [17:16] blueadept: i think a lot of things are under consideration [17:17] dmitrig01 has joined the channel [17:17] zilch has joined the channel [17:18] knite: anyone here using jade? seeing a strange bug in how it parses arguments. [17:18] tjholowaychuk: knite open an issue [17:19] jbrokc has joined the channel [17:19] knite: @tjholowaychuk hoping it's a PEBCAK problem. :-) [17:19] jpart: i get "Cannot read property 'prototype' of undefined" on express/lib/http.js when running express from git master. [17:20] jpart: and using connect from git master. [17:20] tjholowaychuk: jpart master is 2.x [17:20] tjholowaychuk: and master express is 3.x [17:20] tjholowaychuk: you want the 1.x/2.x branches [17:21] TomY has joined the channel [17:21] tjholowaychuk: pretty sure the readme says that [17:22] jpart: The 1.x/2.x do not work with node 0.5.x and I have problem building 0.4. [17:22] tjholowaychuk: why are you using 0.5.x [17:22] woodiz: how to install express with node 0.4.9 https://gist.github.com/1142065 and run the examples [17:22] jpart: Unable to build 0.4.x on ubuntu 64bit [17:22] vikstrous has joined the channel [17:23] curtischambers has joined the channel [17:23] zilch has joined the channel [17:23] tjholowaychuk: jpart well the only reason they dont work is because i have the package.json not supporting 0.5.x [17:23] tjholowaychuk: so those branches should still be fine [17:23] tjholowaychuk: they will be more stable than the masters [17:24] pr2012: might not be close_wait. Seeing cluster hold onto lots of old and unused connections, but netstat isn't releasing them. [17:24] pr2012: *netstat isnt showing them [17:24] jpart: tjholowaychuck: ok. I try 1.x/2.x on 0.5.x. [17:25] tjholowaychuk: pr2012 cluster doesn't do anything with the connections [17:25] tjholowaychuk: your app might be doing something weird [17:25] tjholowaychuk: node sets a ~2 minute timeout I believe by default [17:25] pr2012: yeah, Im just reading off its stats. I had connections that aren't being released after many hours. [17:25] sleeplessinc has joined the channel [17:26] tjholowaychuk: maybe you're not end()ing somewhere [17:26] tjholowaychuk: not sure but i doubt cluster has anything to do with it [17:26] kenperkins has joined the channel [17:27] neurospy has joined the channel [17:27] sleeplessinc: can anyone knowledgeably say what the current wisdom on uncaught exception handler? I was told it's not something we can rely on for some reason. [17:27] sleeplessinc: I find it very helpful however. [17:27] jpart: tjholowaychuk: 1.x/2.x with 0.5.x works! Thanks! [17:28] cccaldas has joined the channel [17:28] jetienne_ has joined the channel [17:28] alek_br_ has joined the channel [17:30] zilch has joined the channel [17:30] dgathright has joined the channel [17:31] edgarallanpoe has joined the channel [17:31] norrec has joined the channel [17:31] norrec has left the channel [17:32] vaheh has joined the channel [17:33] zilch has joined the channel [17:35] vikstrous has joined the channel [17:35] zilch has joined the channel [17:36] devongovett has joined the channel [17:39] jarek has joined the channel [17:44] zilch has joined the channel [17:45] mpavel has joined the channel [17:46] vikstrous has joined the channel [17:46] zilch has joined the channel [17:51] NetRoY has joined the channel [17:51] AvianFlu: sleeplessinc: I've seen like, one issue where it didn't catch something [17:52] AvianFlu: besides that, you'd rather catch your errors before they get to 'uncaughtException' [17:52] AvianFlu: but there's nothing wrong with it per se [17:53] sleeplessinc: avianflu: thanks. [17:55] jeromegn: so if I want to spawn a child process that has a specific different environment variable, I need to add it to process.env? I'm trying to run a command like: "DISPLAY=:0 phantomjs" how would I do that as a process being spawned with node.js? [17:56] AvianFlu: is the child process your code? or is it something you can't modify? [17:56] zilch has joined the channel [17:57] ttpva has joined the channel [17:58] micheil has joined the channel [17:59] jeromegn: AvianFlu: can't modify [17:59] chapel: jeromegn: just put that before the command [17:59] chapel: so instead of "phantom js something" [17:59] chapel: you do "DISPLAY=:0 phantomjs something" [17:59] jeromegn: cool, thanks, trying that now [18:00] chapel: btw, I had to do the same thing, and it worked fine [18:00] AvianFlu: yeah bash is your friend like that lol [18:00] knowtheory has joined the channel [18:00] tristanseifert has joined the channel [18:00] webben has joined the channel [18:02] vaheh_ has joined the channel [18:03] vaheh has joined the channel [18:03] vaheh_ has joined the channel [18:03] zilch has joined the channel [18:05] vaheh has joined the channel [18:06] vikstrous has joined the channel [18:06] soapyillusions has joined the channel [18:07] jeromegn: chapel: it seems to work fine from the command line, but the same exact command doesn't work from node [18:07] idefine has joined the channel [18:07] jeromegn: spawn "DISPLAY=:0 phantomjs", ["../lib/parser.coffee", url], {cwd: __dirname} [18:08] ryanallenbobcat has joined the channel [18:08] vaheh has joined the channel [18:08] soapyillusions: anyone know of any issues with piping http requests (of images) to the file system asynchronously… I am doing quite a few in parallel and am getting Error: Cannot resume() closed Socket. I'm running 0.5.4 [18:09] jarek has left the channel [18:09] indexzero has joined the channel [18:10] chapel: hmm [18:12] chapel: jeromegn: have you tried without the cwd command? [18:12] chapel: err option [18:12] zilch has joined the channel [18:12] VeXii: whats the best way to make sure 2 async jobs are done before you render the client view? [18:13] rickharrison has joined the channel [18:13] VeXii: callback stacking? [18:13] chapel: VeXii: lots of ways to do it [18:14] chapel: a lot of people recommend modules that help with that, ala step, seq, async [18:14] VeXii: i like somthing elegant whith mongoose and express [18:14] VeXii: i looked at step abit and it looked intersting [18:17] zomgbie has joined the channel [18:17] infynyxx has joined the channel [18:21] jeromegn: chapel: no difference, but it seems to work if I use exec instead of spawn [18:22] chapel: yeah, worked for me with exec [18:22] chapel: not sure about spawn [18:22] chapel: could be that it doesn't like the first part [18:22] jeromegn: chapel: ah you're using exec? what's the difference? [18:23] csanz has joined the channel [18:23] chapel: yeah Im using exec [18:23] chapel: I have to go sorry, but Ill be around later [18:23] AvianFlu: child_process.exec runs the child process and buffers all the output for you up to 200kb or something [18:23] jeromegn: oh right [18:24] AvianFlu: child_process.spawn starts the process and gives you the stdin & stdout & stderr streams [18:24] jeromegn: that's fine for now I suppose :) [18:24] jeromegn: ok, I was hoping those were the only differences [18:24] jeromegn: they are fine by me [18:24] unlink has joined the channel [18:24] hellp has joined the channel [18:24] unnikrishnan has joined the channel [18:24] unlink has joined the channel [18:25] industrial: l [18:25] industrial: is jashkenas ever on IRC? [18:26] TheJH: industrial, yes [18:26] TheJH: industrial, most of the time as jashkenas_work [18:26] zilch has joined the channel [18:26] tjholowaychuk: not sure but i doubt cluster has anything to do with it [18:26] tjholowaychuk: woah [18:26] tjholowaychuk: sorry [18:26] tjholowaychuk: pastefail [18:26] TheJH: industrial, but he's only in #coffeescript [18:27] industrial: okay [18:27] TheJH: industrial, he's often online [18:27] avalanche123 has joined the channel [18:27] odie5533: How can I guarantee output to the console? [18:28] zomgbie_ has joined the channel [18:28] S1r10n has joined the channel [18:28] odie5533: synchronously [18:28] skampler: odie5533: console.error() [18:29] skampler: or process.stderr.write() [18:30] isaacs has joined the channel [18:30] pifantastic has joined the channel [18:30] KingJamool has joined the channel [18:31] S1r10n: I can't get npm to install forever... npm install daemon works fine but npm -g install forever complains about the daemon preconfigure script... now I think it's the -g switch that makes it fail but -g is not documented at all in the manpage or in npm help install although --global is mentioned... is it the same switch and can someone help me understand how to work with dependencies and installing forever? [18:32] isaacs: S1r10n: yes, -g and --global are exactly the same thing. [18:32] agnat_ has joined the channel [18:32] S1r10n: ok so what is the difference between local and global isntalation? [18:32] odie5533: Does javascript not lazily execute if (a | b) ? [18:32] S1r10n: and why should daemon install local fine and global not? [18:33] jetienne_: odie5533: it does like in C, same for and [18:33] odie5533: v8: a = true; if (a | b.length) console.log("yes"); [18:33] v8bot_: odie5533: ReferenceError: b is not defined [18:33] DrMcKay: oddie5533: if (a | b): no, if (a || b): yes [18:34] tjholowaychuk: /clear [18:34] macabre has joined the channel [18:34] odie5533: ah, thank you DrMcKay [18:36] odie5533: on Windows, using console.error jsut sends the message to a black hole [18:36] odie5533: it doesn't guarantee output at all. it guarantees it WON'T output =/ [18:37] DrMcKay: oddie5533: cygwin or native build? [18:37] odie5533: native [18:37] MUILTFN has joined the channel [18:37] DrMcKay: and console.warn? [18:38] odie5533: same deal [18:38] patcito has joined the channel [18:39] TheJH: !issue search windows console error [18:39] jhbot: found issues: 6, showing the first 3 [18:39] jhbot: Issue: #1092: CYGWIN(XP) compiled NodeJS cannot use 'dgram.addMembership'. [18:39] jhbot: Issue: #1176: Bug: http.request socket hang up problem [18:39] jhbot: Issue: #1373: Debugger doesn't work on Windows v0.5.1 [18:39] TheJH: :/ [18:39] TheJH: completely unrelated first 3 [18:39] ttpva has joined the channel [18:40] TheJH: I should rewrite that code... [18:40] odie5533: I'd expect nothing less from GitHub's randoms earch results. [18:40] TheJH: odie5533, I'm not using githubs issue search api [18:40] Bogh has joined the channel [18:41] DrMcKay: try putting 2>&1 after executable name, I remeber there were funny things with stderr on Windows [18:41] S1r10n: do I need to complain about daemon not installing global to the author/maintainer of daemon or npm? [18:41] TheJH: odie5533, there's no API for searching in issues that I know of, so I just download all and do a full-text search :D [18:41] isaacs: S1r10n: can you gist the output? [18:42] cying has joined the channel [18:42] S1r10n: yeas sure [18:42] S1r10n: daemon@0.3.0 preinstall: `node-waf configure build` `sh "-c" "node-waf configure build"` failed with 127 [18:43] S1r10n: I'll create a gist bug [18:43] mehlah has joined the channel [18:43] caolanm has joined the channel [18:43] S1r10n: at npm or at daemon? [18:44] zilch has joined the channel [18:46] mc_greeny has joined the channel [18:46] zilch has joined the channel [18:47] isaacs: S1r10n: no, i mean, copy all the output, from `npm install -g daemon` through to the very end, and paste it into an entry on http://gist.github.com/ and then give me the link to it [18:48] S1r10n: https://gist.github.com/1145169 [18:48] isaacs: S1r10n: awesome. here's the issue: sh: node-waf: command not found [18:49] S1r10n: it works without the -g [18:49] isaacs: S1r10n: `which node-waf` <-- what's that output? [18:49] isaacs: S1r10n: or maybe, `which python` [18:49] S1r10n: /root/local/node/bin/node-waf [18:49] S1r10n: /usr/bin/python [18:50] S1r10n: while /root is the ~ [18:51] fille has joined the channel [18:51] zilch has joined the channel [18:52] rickharrison has joined the channel [18:52] fille has joined the channel [18:54] fille has joined the channel [18:55] fille has joined the channel [18:55] gazumps has joined the channel [18:56] jhurliman has joined the channel [18:58] bradleymeck has joined the channel [19:00] arlolra has joined the channel [19:01] Anshu has joined the channel [19:01] goshakkk has joined the channel [19:01] liquidproof has joined the channel [19:01] Anshu: hi guys, any quick advice on how to make nodejs write into a file every minute, instead of on every socket data receive? [19:02] goshakkk: hey guys [19:02] TheJH: Anshu, setInterval(someFunction, 1000*60) [19:02] goshakkk: can anyone recomend me resources on #nodejs? [19:02] Anshu: the key thing is, I am expecting upto 10,000 connections every minute [19:02] Anshu: and i dont want to process all of them individually [19:02] goshakkk: and ... I wanna know when to use node and when rails is enuf [19:03] Anshu: I want to collect the data frmo all the connections for a minute, and then do a batch push [19:03] goshakkk: or maybe they can work together? [19:03] gkmngrgn has joined the channel [19:03] fille has joined the channel [19:03] TheJH: goshakkk, ah, you got my tweet :D - kohai is a bot over in #nodejitsu [19:04] TheJH: goshakkk, I don't have much experience with rails, but you can combine them, yes [19:04] goshakkk: and which work should do node and which work should do rails? [19:05] zilch has joined the channel [19:06] TheJH: goshakkk, that's a question I think I can't answer, but node is good at concurrency and bad at cpu-heavy tasks [19:06] pr2012: With express, how does one access the body of a PUT request? [19:07] pr2012: seems to be absent [19:07] tjholowaychuk: pr2012 if it's x-www-form-urlencoded or application/json you can use bodyParser [19:07] tjholowaychuk: otherwise you can stream/do whatever you want with the data events [19:07] goshakkk: TheJH, can web app be fully writen in node? [19:07] ashu has joined the channel [19:08] pr2012: yeah, bodyParser is missing it. [19:08] MUILTFN has joined the channel [19:08] tjholowaychuk: is it one of those content-types? [19:08] TheJH: goshakkk, I think so [19:08] goshakkk: TheJH, has this approach some disadvantages? [19:09] jetienne_ has joined the channel [19:10] DrMcKay has left the channel [19:10] TheJH: goshakkk, well, it depends on your needs, I think [19:10] booo has joined the channel [19:10] TheJH: goshakkk, but I don't think that there are huge disadvantages [19:10] goshakkk: TheJH, can you give some examples when node is better and when it's not good to use node please? [19:11] zilch has joined the channel [19:11] tjholowaychuk: pr2012 figure it out? [19:11] pr2012: Possibly some groovy restclient weirdness. Gonna debug the other side. [19:11] tjholowaychuk: check the header fields [19:12] tjholowaychuk: may not be giving you Content-Type: application/json etc [19:12] vikstrous has joined the channel [19:12] TheJH: goshakkk, I think that a usecase where node is good would be a webchat or so. Any rails fans here? I don't feel comfortable advertising rails stuff here as I don't even know anything about it [19:12] pr2012: probably it. I don't think it sets the content-type by default. [19:12] tjholowaychuk: ah [19:12] tjholowaychuk: that would be it [19:13] raidfive has joined the channel [19:13] goshakkk: TheJH, rails is the usual web framework [19:13] goshakkk: written in perfect language Ruby ;) [19:13] S1r10n: isaacs ... what now? which node-waf --> /root/local/node/bin/node-waf which python --> /usr/bin/python ... wile ~ is /root it works without the -g option any solution? [19:14] TheJH: goshakkk, I know that it's the usual web framework for ruby, but not much more [19:14] tjholowaychuk: lololool [19:14] goshakkk: TheJH, it's perversely to write simple blog engine in node, right? [19:14] TheJH: goshakkk, btw, I think that ryah says he decided to create nodejs just because ruby was too slow [19:14] isaacs: S1r10n: wha'ts your $PATH environment variable? [19:15] Drakonite has joined the channel [19:15] isaacs: S1r10n: also, are you logged in as root? or using sudo? [19:15] TheJH: goshakkk, no, I don't think so. isaacs, your blog is written in node, right? [19:15] isaacs: TheJH: no, my blog is tumblr [19:15] TheJH: ah, sorry [19:15] isaacs: TheJH: so it's written on clouds and marshmallows and downtime :) [19:15] S1r10n: $PATH --> -bash: /root/local/node/bin:/root/local/node/bin:/root/local/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: No such file or directory [19:16] S1r10n: logged in as root (is a testing server only root exists) [19:16] isaacs: S1r10n: to check an environment variable, you can do `echo $PATH` [19:16] goshakkk: TheJH, yeah ruby is a bit slow, but 1.9.3-preview1 doubled performance of rails bootstraping [19:16] S1r10n: echo $PATH --> /root/local/node/bin:/root/local/node/bin:/root/local/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [19:17] S1r10n: isaacs: echo $PATH --> /root/local/node/bin:/root/local/node/bin:/root/local/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [19:18] isaacs: S1r10n: ok, so node-waf should be in there... [19:18] zilch has joined the channel [19:18] S1r10n: yes right in the first one [19:19] S1r10n: isaacs: it is in there and it works when I install daemon without the -g flag [19:19] isaacs: S1r10n: this is confusing to me. [19:20] S1r10n: isaacs: well to me too I switched too stable (node) extra to test if it was a problem of my setup but the problem remained [19:21] isaacs: yeah, thisis some kind of weird path resolution thing. [19:21] isaacs: it'd be nice if env told you exactly *what* it wasn't able to find, and where it was looking :) [19:23] zilch has joined the channel [19:23] hlindset has joined the channel [19:23] S1r10n: ... why it was looking there maybe ;) [19:24] S1r10n: ok... I g2g (my girlfriend wants to go out) I'll check if I see you the coming days [19:24] shipit has joined the channel [19:24] riven has joined the channel [19:24] riven has joined the channel [19:25] S1r10n: the npm log dosn't help too [19:25] VeXii: is there a easy way to make sure calls to the static folder dont get processed by express? [19:26] zilch has joined the channel [19:26] edude03 has joined the channel [19:29] zilch has joined the channel [19:30] jbrokc has joined the channel [19:30] jbpros has joined the channel [19:34] wookiehangover has joined the channel [19:35] zilch has joined the channel [19:35] macabre has left the channel [19:35] soapyillusions: is unlink how you delete a file? [19:36] AvianFlu: yep [19:36] soapyillusions: thanks [19:38] kmiyashiro has joined the channel [19:38] CrisO has joined the channel [19:38] ellisgl: to create a file, you "touch" it.. to delete it, you "unlink" it - why not "untouch"? [19:39] kmiyashiro has joined the channel [19:39] zilch has joined the channel [19:39] soapyillusions: ellisgl or rm if you wanna follow unix [19:39] AvianFlu: because a file system is really a table of links that says which bytes where are what [19:39] replore_ has joined the channel [19:39] replore has joined the channel [19:39] AvianFlu: when you get rid of the link, it's just random data [19:39] AvianFlu: because who knows what it might be [19:40] ellisgl: I was just saying it's a weird naming scheme =) [19:40] AvianFlu: hence fs.unlink [19:40] soapyillusions: makes sense [19:40] topaxi has joined the channel [19:40] AvianFlu: it's low level and computer-science-y, but there 4is a reason. [19:41] AvianFlu: and that's how deletes are done, really [19:41] ellisgl: Yeah - remove the ref from the table. =) [19:41] AAA_awright: ellisgl: touch updates a file's mtime, like all operations that open a file pointer it creates it if it doesn't exist [19:41] marshall has joined the channel [19:41] marshall: hey node [19:42] AvianFlu: sup supjeff [19:42] AvianFlu: lol [19:42] AAA_awright: There is a link() function too, that does the inverse of unlink() [19:42] Nuck has joined the channel [19:42] supjeff: I'm setting up a demo app that runs some text through a subprocess and sends the output back to the user [19:43] supjeff: but I don't think I'm cleaning up my child-precesses properly [19:43] newy has joined the channel [19:43] supjeff: I put the res.send (using express) inside process.stdout.on('data', function(err, data){ ... }) [19:44] supjeff: and it seems to work the first time, but not after [19:44] ellisgl: *note to self - keeps psuedo jokes to self* [19:44] Qbix1 has joined the channel [19:44] zilch has joined the channel [19:45] supjeff: *not to self - keep sudo jokes for admin users* [19:45] AvianFlu: supjeff: process.stdout is your parent process [19:45] AvianFlu: besides that, are you using child_process.spawn or child_process.exec [19:46] supjeff: spawn [19:46] supjeff: should I use exec? [19:46] AvianFlu: no, you should use spawn if you want the streams [19:46] AvianFlu: what's the child? [19:46] supjeff: markdown [19:46] supjeff: tried using require('markdown') but it appears to be buggy [19:47] piscisaureus has joined the channel [19:47] tomtomaso has joined the channel [19:47] zilch has joined the channel [19:47] supjeff: might look at what's wrong with it later, but I figure now is as good a time as any to learn how to use subprocesses [19:47] matomesc: supjeff: are you trying to parse markdown in child process? [19:47] supjeff: yea [19:48] matomesc: so pipe the req.body into a child [19:48] tbranyen: supjeff: try out robotskirt [19:48] matomesc: stdin [19:49] jetienne_ has joined the channel [19:50] zilch has joined the channel [19:50] jhurliman: this doesn't sound good: "npm ERR! registry error parsing json" [19:50] isaacs: jhurliman: gist output, please [19:50] isaacs: jhurliman: typically that means that there's some reason why your system can't get to the registry [19:50] isaacs: proxy, went down, etc. [19:51] Spion has joined the channel [19:51] jhurliman: isaacs, https://gist.github.com/1145231 [19:51] Sazpaimon has joined the channel [19:51] Wa has joined the channel [19:51] jhurliman: it looks like everything worked in spite of that first line [19:51] chapel: jeromegn: did you figure it out? [19:51] jeromegn: chapel: used exec and it works [19:51] jeromegn: just harder to deal with the big stdout [19:52] chapel: what do you mean? [19:53] theCole_ has joined the channel [19:53] Xano has joined the channel [19:54] ajpiaNOU has joined the channel [19:54] isaacs: jhurliman: yep, routing error apparently [19:54] isaacs: just a sec [19:54] anti has joined the channel [19:55] edgarallanpoe has joined the channel [19:55] Aphelion has joined the channel [19:56] isaacs: jhurliman: refresh dns, or just wait 5 minutes [19:56] jhurliman: k, thanks [19:56] isaacs: man, having a failover set up is nice :) [19:56] isaacs: couch really does make that super easy [19:57] zilch has joined the channel [19:57] zanes has joined the channel [19:57] mehlah has joined the channel [19:58] supjeff: now express seems to be escaping my marked up markdown [19:58] supjeff: or amybe it's jade... [19:58] supjeff: *maybe [19:58] ceej has joined the channel [19:58] AvianFlu: I'm not familiar with express or jade very much, but I'd definitely make my first guess the other templating engine in the picture [19:59] AvianFlu: i.e. jade [19:59] jeromegn: chapel: I mean, exec returns a big stdout as one of the callback args, but spawn lets you listen in on the stdout event which may be fire more than once [19:59] AvianFlu: jeromegn: it's not 'one big stdout', it's all the program's output, buffered [19:59] AvianFlu: spawn gives you access to the streams, which lets you deal with the data in real-time afterwards [20:00] AvianFlu: instead of afterwards, I mean [20:00] chapel: ah jeromegn I don't care about the stdout, just that it completes [20:00] supjeff: AvianFlu: yeah, that's what I'm thinking. Thanks [20:00] blippedxd has joined the channel [20:00] jeromegn: right [20:00] jeromegn: thanks for the clarification [20:00] jeromegn: :) [20:00] jeromegn: struggling with my lexicon (self-taught) [20:01] AvianFlu: at least you know the word 'lexicon', that's certainly something [20:02] jeromegn: hah [20:02] ceej has joined the channel [20:03] mike5w3c has joined the channel [20:06] AvianFlu: goshakkk: a lot of network stuff is really easy in node.js. This is a working IRC connection proxy in 7 lines of code: https://gist.github.com/1144504 [20:06] goshakkk: AvianFlu hmm awesome [20:07] seebees has joined the channel [20:07] AvianFlu: you can make an HTTP server in about the same amount of code [20:07] goshakkk: is there a way to use #haml with #expressjs? [20:07] tjholowaychuk: goshakkk yeah [20:07] tjholowaychuk: there's two hamls though [20:07] DJBouche has joined the channel [20:07] tjholowaychuk: in npm "hamljs" and "haml" [20:07] tjholowaychuk: hamljs works out of the box, not sure about haml [20:08] goshakkk: and how yo use it with expressjs? [20:08] avalanche123 has joined the channel [20:08] tjholowaychuk: app.register('haml', require('hamljs')) [20:08] vikstrous has joined the channel [20:08] tjholowaychuk: to map the .haml extensions to hamljs [20:09] goshakkk: okay thx [20:10] charleyd has joined the channel [20:11] isaacs: jhurliman: working for you now? [20:11] jhurliman: look like it, yeah [20:12] Lagnus has joined the channel [20:13] isaacs: jhurliman: oh, and it looks like the main one is back up. only was down for a few minutes, actually [20:13] jhurliman: cool [20:15] sapht has joined the channel [20:15] vdemedes has joined the channel [20:15] Aphelion has joined the channel [20:16] vdemedes: Hi all [20:16] zilch has joined the channel [20:17] kriszyp has joined the channel [20:18] igl has joined the channel [20:18] mpavel has joined the channel [20:18] random123: Is it frowned upon to use global vars when doing apps (not modules to be distributed) in Node? [20:19] zastaph has joined the channel [20:19] random123: So that you can make variables avaliable in require() scope easily [20:19] random123: without having to call function in the module and suppying argument var to make it avail [20:20] c4milo1 has joined the channel [20:23] zilch has joined the channel [20:27] hij1nx has joined the channel [20:27] zilch has joined the channel [20:27] chapel: you can use whatever you want [20:28] al3xnull has joined the channel [20:29] TheJH: random123, it's not exactly recommended, but you can do it [20:30] TheJH: random123, as long as you fell comfortable hearing "told you so" in case it breaks stuff, it's ok :) [20:30] fille has joined the channel [20:30] TheJH: s/fell/feel/ [20:30] random123: TheJH: oh, i better not then [20:31] zilch has joined the channel [20:31] TheJH: random123, it's unlikely that it will break stuff, but in case it happens, the cause might be difficult to find [20:32] rickharrison has joined the channel [20:34] davidcoallier has joined the channel [20:37] zilch has joined the channel [20:38] vdemedes: How to implement HTTP Streaming in Node.js, like in Rails 3.1? [20:38] vdemedes: it's just multiple res.write() or something else? [20:39] mpavel has left the channel [20:41] fille has joined the channel [20:41] zilch has joined the channel [20:42] tjholowaychuk: vdemedes yeah that's what you would do [20:43] vdemedes: tjholowaychuk: ok, thank you! [20:43] losing has joined the channel [20:44] TooTallNate has joined the channel [20:45] Cromulent has joined the channel [20:45] zilch has joined the channel [20:49] vikstrous has joined the channel [20:49] vid__ has joined the channel [20:51] shinuza has joined the channel [20:51] TooTallNate: mraleph: ping [20:52] vdemedes has left the channel [20:52] mraleph: TooTallNate: pong [20:53] TooTallNate: sweet [20:53] mraleph: how can I help? [20:53] TooTallNate: hey so V8 question [20:53] zilch has joined the channel [20:53] TooTallNate: https://github.com/TooTallNate/NodObjC/compare/046960c2...3f005e11f8 [20:53] TooTallNate: https://github.com/TooTallNate/NodObjC/blob/3f005e11f87893b600106d051d568e16487bd378/tests/extend.js [20:53] TooTallNate: second link, sorry [20:53] TooTallNate: look at that test case [20:53] TooTallNate: it works fine, but the very bottom segfaults, WTF? [20:54] mraleph: have no idea, what does gdb show? [20:55] TooTallNate: https://gist.github.com/bee46219670a8996c7a0 [20:55] TooTallNate: the weird part is that calling .toString() regularly on that object works fine [20:56] visnup: console.log doesn't support '%x'? [20:56] vikstrous has joined the channel [20:58] mraleph: TooTallNate: is this something I can run locally? [20:58] fille has joined the channel [20:59] mraleph: TooTallNate: let me just checkout your code and play with it [20:59] simenbrekken has joined the channel [20:59] Spion has joined the channel [20:59] TooTallNate: mraleph: git clone git://github.com/TooTallNate/NodObjC.git; cd NodObjC; npm install -d; node test/extend.js [20:59] TooTallNate: :p [20:59] AvianFlu: visnup: only %s, %d, and %j for JSON [20:59] visnup: AvianFlu: :( k [21:00] fille has joined the channel [21:01] TooTallNate: visnup: fork and add more! [21:01] mraleph: TooTallNate: are you using node 0.4.x or 0.5.x? [21:01] TooTallNate: 0.4.10 [21:01] newy has joined the channel [21:01] versicolor has joined the channel [21:01] visnup: TooTallNate: now on my long list [21:03] zilch has joined the channel [21:03] mraleph: TooTallNate: I am rebuilding my node so it will take some time (my laptop is not exactly the fastest thing around) [21:04] TooTallNate: mraleph: haha, no worries! i'm in no hurry [21:05] TooTallNate: i'm more just curious what the difference between `instance.toString()` and `instance + '' ` is [21:05] simenbrekken has joined the channel [21:06] fille has joined the channel [21:06] zilch has joined the channel [21:07] fille has joined the channel [21:08] bengrue has joined the channel [21:08] fille has joined the channel [21:09] eboyjr has joined the channel [21:09] tim_smart has joined the channel [21:10] versicolor has joined the channel [21:11] hij1nx has joined the channel [21:14] srid has joined the channel [21:14] zilch has joined the channel [21:15] saikat has joined the channel [21:15] mraleph: TooTallNate: I am getting Error: Could not convert type: r^^{__CFData} [21:16] TooTallNate: mraleph: that's weird... stack trace? [21:16] mraleph: TooTallNate: https://gist.github.com/1145320 [21:16] swhit has joined the channel [21:18] ttpva has joined the channel [21:18] zilch has joined the channel [21:18] TooTallNate: mraleph: ok pull and try again [21:19] TooTallNate: which version of OSX are you on, btw? [21:19] mraleph: 10.6.7 [21:19] TooTallNate: ok thanks [21:19] mraleph: I am getting the same exception [21:20] TooTallNate: wtf? are you sure you pulled? this should have fixed it: https://github.com/TooTallNate/NodObjC/commit/c2df1caf045ca99c20c4f8eaa1406730ef542133 [21:22] mraleph: TooTallNate: yes I have this line [21:22] TooTallNate: yeah i'm fixing it, one sec [21:22] mraleph: v8: /\{/.test("r^^{") [21:22] v8bot_: mraleph: true [21:23] uchuff has joined the channel [21:23] mraleph: TooTallNate: should not it be just type not type[0]? [21:23] jhurliman: isaacs, when is the next node office hours? [21:23] TooTallNate: mraleph: yes, I just fixed [21:23] TooTallNate: please pull [21:23] mraleph: now it works [21:24] TooTallNate: :) [21:24] mraleph: and does not crash >_< [21:24] TooTallNate: as in no segfault? [21:24] mraleph: yep [21:24] TooTallNate: AAHHH WTF? [21:24] TooTallNate: you're on node 0.4.10? [21:24] mraleph: yep [21:25] mraleph: x64 bit build [21:25] TooTallNate: well I mean that's good to hear, but means my computer is crazy :p [21:25] mraleph: maybe it's mac os x version specific [21:25] TooTallNate: oh I'm on Lion [21:25] mraleph: I am not :-) [21:25] TooTallNate: ahh, so we have a suspect [21:26] TooTallNate: i'll be sure to try it out on some machines at work tomorrow and try to narrow it down [21:26] TooTallNate: mraleph: thanks for looking into it [21:27] mraleph: np. sorry I could not be of any help [21:27] MUILTFN has joined the channel [21:28] fille has joined the channel [21:28] TooTallNate: mraleph: do you know why there would be a difference between those two statements though? [21:29] TooTallNate: I'd think they'd be the same [21:29] Hamms has joined the channel [21:29] fille has joined the channel [21:31] random123: TheJH: I am just putting $ on globals, like $app I think that will work well to prevent any problems [21:31] random123: TheJH: It makes things so much easier :) [21:32] TheJH: random123, actually, I think the JS spec says you should only use $ for generated code... [21:32] piscisaureus has joined the channel [21:32] TheJH: random123, but that should help, yes [21:32] fille has joined the channel [21:34] fille has joined the channel [21:34] mraleph: TooTallNate: nuh I don't know [21:35] iammerrick has joined the channel [21:35] fille has joined the channel [21:35] materialdesigner has joined the channel [21:36] infynyxx has joined the channel [21:36] CrisO has joined the channel [21:37] CrisO has left the channel [21:40] zilch has joined the channel [21:40] xerox: I think the common practice is all caps for globals [21:41] ts__ has joined the channel [21:42] Sorella has joined the channel [21:42] alnewkirk has joined the channel [21:43] sleeplessinc has joined the channel [21:43] ironlad has joined the channel [21:45] zilch has joined the channel [21:48] random123: xerox: I like that better [21:48] brianseeders has joined the channel [21:48] i42n has joined the channel [21:49] xerox: they really stick out [21:49] TooTallNate: mraleph: interesting, it works on node 0.5.x [21:50] zilch has joined the channel [21:50] dgathright has joined the channel [21:51] rickharrison has joined the channel [21:52] cccaldas has joined the channel [21:54] TheFuzzball has joined the channel [21:56] kriszyp has joined the channel [21:57] zilch has joined the channel [21:57] maushu_ has joined the channel [21:59] zilch has joined the channel [22:00] soapyillusions has joined the channel [22:01] craigpetchell has joined the channel [22:02] vikstrous has joined the channel [22:03] micheil has joined the channel [22:03] zilch has joined the channel [22:03] MikhX has joined the channel [22:05] zilch has joined the channel [22:06] Sorella has joined the channel [22:07] MikhX has left the channel [22:08] tristanseifert has joined the channel [22:09] davidbanham has joined the channel [22:10] zilch has joined the channel [22:11] Spion has joined the channel [22:12] topaxi has joined the channel [22:14] sleeplessinc has joined the channel [22:15] zilch has joined the channel [22:15] Drakonite has joined the channel [22:19] FireFly|n900 has joined the channel [22:19] zilch has joined the channel [22:20] skm has joined the channel [22:21] zilch has joined the channel [22:22] supjeff has joined the channel [22:22] isaacs_ has joined the channel [22:24] jbrokc has joined the channel [22:24] guidocalvano has joined the channel [22:30] jbrokc has joined the channel [22:31] aoberoi has joined the channel [22:31] ttpva has joined the channel [22:32] jhurliman: if anyone is feeling adventurous, i finished the first version of process.watchers() - https://github.com/joyent/node/pull/1532 [22:33] xerox: http://code.google.com/p/box2dweb/ [22:33] xerox: this is pretty cool [22:33] Renegade001 has joined the channel [22:35] tjholowaychuk: xerox they're all shitty generated ports [22:35] tjholowaychuk: I was rewritting one once to optimize it but ran out of steam [22:35] tjholowaychuk: pretty big library [22:36] bradleymeck has joined the channel [22:36] metaverse: how can I access a variable in the current file by name? In browser I can do this['variable'] [22:37] aoberoi_ has joined the channel [22:37] tjholowaychuk: metaverse i believe node has "this" as exports right now [22:38] Sorella has joined the channel [22:39] newy has joined the channel [22:41] metaverse: tjholowaychuk: hmm, that object is empty. But I guess I can just add my variables in object and reference that instead. Thanks though! :) [22:41] zilch has joined the channel [22:41] tjholowaychuk: metaverse yeah I personally wouldn't rely on "this" being anything significant [22:41] arlolra has joined the channel [22:42] metaverse: tjholowaychuk: hehe what I'm doing is just some utility code for myself so it's not important at all :) [22:42] tjholowaychuk: ah [22:42] jbrokc has joined the channel [22:42] sleeplessinc has left the channel [22:42] hybsch has joined the channel [22:43] adrianmg has joined the channel [22:44] xerox: tjholowaychuk: : ( [22:44] zilch has joined the channel [22:44] hybsch has left the channel [22:45] towski has joined the channel [22:45] ttpva has joined the channel [22:46] gtramont1na has joined the channel [22:55] tcurdt has joined the channel [22:56] random123: Anyone know a module that does reading files from and entire directory and sub directory? [22:57] pr2012 has joined the channel [22:58] random123: ah nvm [22:58] random123: something called "dive" in npm [23:02] temp02 has joined the channel [23:03] hij1nx has joined the channel [23:03] bnoordhuis has joined the channel [23:03] indexzero has joined the channel [23:04] kilian_ has joined the channel [23:04] kilian_: hi to all [23:05] zilch has joined the channel [23:05] tim_smart: csanz: arlolra: So skype call was 9am my time? [23:05] tim_smart: Rofl wrong channel [23:06] kilian_: i'am reading here http://nodejs.org/docs/v0.4.10/api/net.html#server.listen but i can't figure out the host parameter, the server still accepts all connections, is there a way to grab the host of a incoming tcp connection? [23:06] brianseeders has joined the channel [23:08] ohtogo has joined the channel [23:08] zilch has joined the channel [23:09] TheJH: kilian_, did you specify "127.0.0.1" as host? [23:10] kriszyp has joined the channel [23:10] kilian_: TheJH i specified a domain, i want a per host switch, is it possible to do with tcp ? [23:10] secoif has joined the channel [23:11] TheJH: kilian_, only with a per-ip switch, not with a per-hostname switch [23:12] kilian_: so i can't bind hosts, but interfaces instead [23:12] kilian_: or local / external [23:14] TheJH: kilian_, you can have multiple IPs per interface [23:14] kilian_: i know [23:14] zilch has joined the channel [23:14] kilian_: ty TheJH for the help ;) [23:14] supjeff has joined the channel [23:15] indexzero has joined the channel [23:17] zilch has joined the channel [23:18] jbpros has joined the channel [23:20] BillyBreen has joined the channel [23:20] criswell has joined the channel [23:20] Lagnus has joined the channel [23:20] zeade has joined the channel [23:21] zilch has joined the channel [23:22] sfoster has joined the channel [23:26] [[zz]] has joined the channel [23:27] zilch has joined the channel [23:32] mynyml has joined the channel [23:33] zilch has joined the channel [23:36] aoberoi has joined the channel [23:36] davidbanham has joined the channel [23:37] cccaldas has joined the channel [23:38] kenperkins has joined the channel [23:39] zilch has joined the channel [23:41] zilch has joined the channel [23:44] edgarallanpoe has joined the channel [23:45] cying has joined the channel [23:46] MUILTFN has joined the channel [23:47] zilch has joined the channel [23:47] replore_ has joined the channel [23:47] replore has joined the channel [23:48] shipit has joined the channel [23:49] ryanallenbobcat has joined the channel [23:52] aoberoi has joined the channel [23:52] FiveLemon has joined the channel [23:53] zilch has joined the channel [23:56] havenn has joined the channel [23:57] horbz has joined the channel [23:57] clifton has joined the channel [23:57] soapyillusions has joined the channel [23:57] zilch has joined the channel