[00:00] SubStack: and it only really works if I have a good idea how the solution should look, which I rarely do when I start hacking [00:00] Jonasbn_ has joined the channel [00:00] Sebmaster: test driven development is hard if you miss the first part [00:00] perlmonkey2 has joined the channel [00:00] MikhX has joined the channel [00:00] dominictarr: oh yeah, I mean write a test for a feature, [00:00] pHcF: tjholowaychuk: connect.sid is changing [00:00] Sebmaster: the API has to slowly grow up imho [00:01] tjholowaychuk: pHcF: ok, then there is most likely a cookie issues. hmm [00:01] sveimac_ has joined the channel [00:01] SubStack: TDD is better suited for some problems than others [00:01] dominictarr has joined the channel [00:01] SubStack: it's rubbish for exploratory programming [00:01] tim_smart: test driven development is hard when you are writing API wrappers. [00:01] jonaslund: i can't imagine TDD for user interfaces :D [00:01] ryah: SubStack: yes, obviously :) [00:01] jonaslund: esp not if you have marketing people calling the shots [00:01] pHcF: i have a method in my app that i need to get user's id (in session), and i have a infinite loading page (that you scroll and it loads more). the JSON that is downloaded when the user scrolls needs to have the session object (to get user data properly). the first time i scroll to the bottom, it loads nicely, but the second time, the session is reseted [00:01] jonaslund: *nightmares* [00:02] dominictarr: whenI imagine TDD for GUI I imagine actual users sitting somewhere [00:02] tanepiper: jonaslund: Sencha have apparently worked on a headeless TDD app for the next ExtJS, based on reference images [00:02] tjholowaychuk: tanepiper: they already kinda had that [00:02] dominictarr: getting a and instruction "put the peg in the hole" [00:02] dominictarr: and a GUI. [00:02] SubStack: ryah: flashing your new badge I see! [00:03] tjholowaychuk: tanepiper: not overly useful IMO though [00:03] dominictarr: if they can do it, it's passed. [00:03] tim_smart: @ badges are over rated. [00:03] tanepiper: tjholowaychuk: ahh you would have seen it :D yea, i just saw a bit of it in Ed Spencer's video from Senchacon [00:04] ryah: it took me two years to get it [00:04] tjholowaychuk: tanepiper: wouldnt be hard to implement [00:04] Sebmaster: i just noticed, ive no ability to checkout a git [00:04] Sebmaster: anyone an idea, how to get v8 without svn? [00:05] pHcF: tjholowaychuk: any idea about the cookies issue? [00:05] tjholowaychuk: pHcF: not off hand no [00:05] ryah: Sebmaster: git://github.com/v8/v8.git [00:05] mjr_ has joined the channel [00:05] tim_smart: pHcF: They got easten. [00:05] sveimac has joined the channel [00:05] tim_smart: eaten* [00:05] pHcF: tim_smart: lol cookie jokes [00:05] pHcF: :P [00:05] yhahn has left the channel [00:05] Sebmaster: aww thanks ryah [00:06] tim_smart: Why oh why did they call them cookies? [00:06] sveimac_ has joined the channel [00:06] tim_smart: Probably some guy who was stoned. [00:06] pHcF: LOL [00:07] tjholowaychuk: tim_smart: everything is food related lol nibbles i dunno [00:07] pHcF: no donuts for you, tim_smart [00:07] NYCNodist has joined the channel [00:07] tim_smart: I never asked for donuts! [00:07] NYCNodist: hi [00:07] NYCNodist: I actually have a quesiton about how to get cookies :D [00:08] tim_smart: I just had a toasted sandwich, I'm fine thanks. [00:08] mjijackson has joined the channel [00:08] onar_ has joined the channel [00:08] NYCNodist: I need a module that's super easy, like $_COOKIE[] in PHP [00:08] atmos has joined the channel [00:08] tjholowaychuk: ew [00:08] tjholowaychuk: lol [00:08] pHcF: req.cookies? [00:08] pHcF: (no idea) [00:08] NYCNodist: Please tell me someone wrote a cookie parser so I don't have to parse cookie headers :( [00:08] dominictarr: SubStack: how much of your codeing would you call 'exploratory'? [00:09] tim_smart: NYCNodist: Google brought up https://github.com/jed/cookie-node [00:09] tjholowaychuk: NYCNodist: it's not hard at all man [00:09] SubStack: dominictarr: 80% of whatever it is that I do [00:09] ryah: https://github.com/ry/node/wiki/modules [00:09] EyePulp: did mongoose move from .connect() to .createConnection() at some point? [00:09] NYCNodist: tjholowaychuk: I'd rather not add more complexity sorry [00:09] ryah: https://github.com/bmeck/node-cookiejar [00:09] ryah: http://github.com/caolan/cookie-sessions [00:09] dominictarr: okay, interesting. we must have very different coding styles [00:10] NYCNodist: Thanks ryah [00:10] [[zz]] has joined the channel [00:10] SubStack: dominictarr: I usually will be hacking something up and it will bug me so then I modularize that part to contain the suck [00:11] SubStack: I spend most of my time figuring out how the interface should look [00:11] pHcF: i have a method in my app that i need to get user's id (in session), and i have a infinite loading page (that you scroll and it loads more). the JSON that is downloaded when the user scrolls needs to have the session object (to get user data properly). the first time i scroll to the bottom, it loads nicely, but the second time, the session is reseted [00:11] SubStack: the api interface I mean, not in the graphical sense [00:11] mjijackson: How does Node's HTTP parser respond when a request is malformed? [00:12] dominictarr: yeah, interfaces. sometimes you build this big clever thing, and then discover you use it a different way. [00:12] dominictarr: ...gave it the wrong interface [00:12] DTrejo has joined the channel [00:12] dominictarr: so you test when you "modularize that part to contain the suck" [00:12] DTrejo: hey everyone [00:12] iFire has joined the channel [00:13] jonaslund: ryah: hey, would you prefer to get patch files or should i get a github acc ? [00:14] Sebmaster: jonaslund: the problem is definitly in v8 [00:14] gbot2 has joined the channel [00:14] jonaslund: Sebmaster: with both 2.x and 1.x? [00:14] hangomanatee: Substack [00:14] Sebmaster: just 2.x now [00:14] SubStack: hangomanatee! [00:14] hangomanatee: Sorry about the confusion re: meetups [00:14] Sebmaster: its the same error again tho [00:14] SubStack: it's ok [00:14] ryah: jonaslund: either is fine [00:14] hangomanatee: I totally boned it, but the reorg of Meetup.com helped. [00:15] EyePulp: whoa- Schemas are required now in mongoose? [00:15] hangomanatee: There's a meetup of the original group on the 15th. [00:15] jonaslund: ok cool [00:15] Sebmaster: guess ill look into the script more [00:15] hangomanatee: At least I gto to hang with the ryah [00:15] jonaslund: ryah: i'll make a small patch to avoid some dynamic lib linking with mingw that we found yesterday [00:15] hangomanatee: who by the way is EVEN cooler than I imagined hed be. [00:15] jelveh_ has joined the channel [00:15] ryah: SubStack: did you go to the other meetup? [00:15] NYCNodist: If someone makes an async cookie module, they are crazy [00:16] SubStack: ryah: nah I stayed home since I didn't hear back from hangomanatee [00:16] SubStack: also I was pretty sleepy [00:16] hangomanatee: fair enough. [00:16] hangomanatee: I talked to the Hub today. [00:16] hangomanatee: They're bookable for $250 [00:16] hangomanatee: but they have a nice space with a big projetor. [00:17] SubStack: nice! [00:17] hangomanatee: its not out of the question for me, if I can put a basket and get a little help from the community. [00:17] hangomanatee: They actually have a gallery space next to the hub [00:18] hangomanatee: so I won't technically have to put "The Hub" on the meetup invitation. [00:18] pauls has joined the channel [00:18] Tom-: Q: when I create a file read stream, fs.createReadStream(file, ..) how do I make sure that the data chunks are in order? It looks like I sometimes get data later on in the file before some data that should precede it [00:18] hangomanatee: I'm trying to reach out to Matt Humphry the JS meetup guy. [00:18] tim_smart: Tom-: Data events should always be emitted in order. [00:18] jacobolus has joined the channel [00:19] blueadept has joined the channel [00:19] jashkenas has joined the channel [00:19] Tom-: tim_smart: hmm.. for some reason my data seems to get corrupted.. in that case it must be something else [00:21] hangomanatee: Incidentally I turned off the "Suggest a meetup" feature on my meetup site [00:22] yx has joined the channel [00:22] SubStack: hangomanatee: I think just posting a comment to either page would have helped the confusion a bunch [00:23] SubStack: there wasn't enough information to be confident enough in what was going on [00:24] Qbix1 has joined the channel [00:24] davidc_ has joined the channel [00:25] jonaslund: sebmaster: here ? [00:25] Sebmaster: yea [00:26] jonaslund: looking at the history of the v8 sconscript/sconstruct files and there isn't THAT many changes since node 0.3.1 was released [00:26] NYCNodist: How do I get the raw cookies header? [00:26] NYCNodist: request.what? [00:27] Sebmaster: did you diff them? [00:27] jonaslund: Sebmaster: https://github.com/v8/v8/commits/master/SConstruct https://github.com/v8/v8/commits/master/src/SConscript [00:27] jonaslund: with comments and diffs [00:27] jonaslund: not mine [00:27] bingomanatee has joined the channel [00:27] jonaslund: 2010.11.16, Version 0.3.1 (unstable), ce9a54aa1fbf709dd30316af8a2f14d83150e947 [00:27] zomgbie has joined the channel [00:28] jonaslund: 10-15 changes in both since then [00:28] hangomanatee: ryah: and SubStack: I have called the company Matt Humphrey, the Javascript meetup guy, works at to suggest he turn off the "suggest a meetup" feature on his site - thats the best I can do at this point. [00:28] NYCNodist: Anyone? [00:29] bingomanatee: NYCNodist - I think express exposes cookies for you easily [00:29] nejucomo has joined the channel [00:30] SubStack: hangomanatee: I think just a timely comment on the meetup page would have solved the confusion for me [00:30] tjholowaychuk: bingomanatee / NYCNodist: yeah req.cookies [00:30] tjholowaychuk: if you use cookieDecoder() [00:30] NYCNodist: Ah thanks [00:30] bingomanatee: see, TJ just travelled back in time to add that feature. [00:30] siculars has joined the channel [00:31] tjholowaychuk: i hate that name though [00:31] tjholowaychuk: i dont know why tim renamed it :( [00:31] jonaslund: NYCNodist: require("sys").puts(require("util").inspect(request) ); [00:31] bingomanatee: cookieCruncher? [00:31] SubStack: bingomanatee: even just "Hey the meetup is still on as usual ignore the other one." [00:31] bingomanatee: CookieCutter? [00:31] tanepiper: cookieMuncher [00:31] tjholowaychuk: im going to alias staticProvider -> static and cookieDecoder -> cookieParser the way they were [00:31] tjholowaychuk: ACTION does not like camel [00:31] tanepiper: tjholowaychuk++ [00:31] v8bot: tanepiper has given a beer to tjholowaychuk. tjholowaychuk now has 13 beers. [00:31] hangomanatee: Yeah well I had a lot of juggling for the first meetup - just give me another chance. [00:32] hangomanatee: At least we have a backup meetup for the Node Community :D [00:32] Sebmaster: hmm [00:32] Sebmaster: which version of v8 did v0.3.1 use? [00:33] DTrejo: DTrejo++ [00:33] v8bot: DTrejo: Don't cheat! You can't give a beer to yourself. [00:33] DTrejo: dangit [00:33] Sebmaster: 2.5.3 got it [00:33] hangomanatee: bingomanatee++ [00:33] v8bot: hangomanatee has given a beer to bingomanatee. bingomanatee now has 1 beers. [00:33] bingomanatee: hangomanatee++ [00:33] v8bot: bingomanatee has given a beer to hangomanatee. hangomanatee now has 1 beers. [00:34] hangomanatee: bingomanatee++ [00:34] v8bot: bingomanatee is getting too many beers. Don't let bingomanatee get drunk! [00:34] bingomanatee: hangomanatee++ [00:34] v8bot: hangomanatee is getting too many beers. Don't let hangomanatee get drunk! [00:34] SubStack: it's all cool, hard to do [00:34] hangomanatee: ACTION needs a ride :D [00:34] SubStack: bah lag [00:34] SubStack: need money so I can get real internet >_< [00:34] saikat has joined the channel [00:34] hangomanatee: How much do you want? [00:34] hangomanatee: My offer still stands [00:34] hangomanatee: no strings attached. [00:35] SubStack: well we also got an investment offer but the terms are pretty shit, meeting with more [00:35] SubStack: meeting with business types saps so much energy [00:35] chapel: tjholowaychuk: with express/connect, is there a way to add routes into an array and then iterate over the array to do the app.get or whatever? [00:35] hangomanatee: I doubt anyone will ever be able to beat my terms. [00:35] SubStack: Everything is so early. Before noon even. [00:36] tjholowaychuk: chapel: why no do exactly what you just mentioned? [00:36] sprout has joined the channel [00:36] NYCNodist: How do you grab a file sync into a variable using fs? [00:36] chapel: well it doesn't seem to work [00:36] tjholowaychuk: you can just iterate them and keep calling app.get() [00:36] hangomanatee: I know two guys I can put your way. [00:36] tjholowaychuk: hell at runtime you can add more routes dynamically if you wanted to [00:36] hangomanatee: Gary Kremen for one [00:36] Sebmaster: jonaslund: this diff could be a good start, will look through 2-3 more diffs tho https://github.com/v8/v8/commit/6beb8ee6222457facb4e868dec3dc4f60240198d#diff-1 [00:37] chapel: when I arr.forEach( function(route) { app.get(route, fn) } it doesn't register it [00:37] hangomanatee: He founded Clean Power Finance when I was there - hes straight up. [00:37] SubStack: hangomanatee: that would be excellent! [00:37] hangomanatee: Yeah just give me a package I can pass on to him. [00:37] booths has joined the channel [00:37] tjholowaychuk: chapel: hmm it should, it's technically no different [00:37] chapel: thats what I thought [00:37] trotter has joined the channel [00:37] hangomanatee: Or put up a page he can see. [00:38] hangomanatee: He's remarkably well connected for a noncoder. [00:39] jonaslund: ryah: http://www.jlim.se/staticlib.patch <- libstdc++ gets dynamically linked by default eventhough the dll doesn't come with the default install of mingw [00:39] jonaslund: this fixes that [00:39] Sebmaster: ill build some versions of v8 now [00:39] jonaslund: (is that a valid git patch btw? i'm not that experienced with git yet :) ) [00:39] Sebmaster: see where this bug got introduced [00:39] norviller has joined the channel [00:41] Sebmaster: noes :( v8.git is not tagged [00:41] vnguyen has joined the channel [00:41] Tom-: tim_smart: I am pretty sure something is going wrong. I am pretty often pausing and resuming the input stream, maybe that can have an effect on it? I am getting all data in order of the file until it suddenly returns data from somewhere else [00:41] pzich has joined the channel [00:43] hobodave has joined the channel [00:44] techwraith has joined the channel [00:44] Sebmaster: jonaslund: It got introduced at that diff [00:44] techwraith: What's the best way to stop an error on a single request from taking down the whole node app? [00:44] ryah: shaver, mnot: you guys might know this. are there any clients which make a http request and go half-duplex (shutdown write) before getting the response [00:44] ryah: is this allowed? [00:45] jonaslund: Sebmaster: interesting, that patch seems to be from pisci from this channel [00:45] shaver: I don't know of any [00:45] mnot: it's not unknown [00:45] shaver: browsers, at least [00:45] mnot: squid has code to deal with it [00:45] shaver: I'm not sure why you would want to do that [00:46] ryah: mnot: squid handles it as a server? [00:46] mnot: yeah, IIRC [00:46] mnot: sec [00:46] mnot: http://www.squid-cache.org/Doc/config/half_closed_clients/ [00:46] ryah: node also handles it - but it's creating some problems- and i'd liek to remove that behavior [00:47] mnot: http://wiki.squid-cache.org/SquidFaq/InnerWorkings#What_is_a_half-closed_filedescriptor.3F [00:48] NYCNodist: Hmm, how do you sync read a file with node? [00:48] shaver: readFileSync [00:48] tanepiper: wait, what? https://github.com/visionmedia/node-querystring i thought querystring was staying in 0.3.6 > ? [00:48] NYCNodist: ok [00:48] ryah: default is that they do not allow it [00:48] ryah: okay [00:49] Sebmaster: jonaslund: I'm unable to build it with the commit from October 25, 2010 [00:49] ryah: mnot: thanks for the link [00:49] richcollins has joined the channel [00:49] ryah: i'll also make it optional in node [00:49] mnot: np [00:49] Sebmaster: but that was wayy before node 0.3.1 [00:49] techwraith: No info on how to catch http server errors so it doesn't take down the whole server? [00:49] ryah: tanepiper: it is [00:49] Tom-: Q: if I do a string.indexOf('\n'); is it possible that this will not hit on a carriage return (enter) but on a literal "\n" character combination? [00:50] Tom-: or are those two the same? [00:50] jonaslund: Sebmaster: was that version also due to python errors ? [00:50] tanepiper: ryah: ahh cool, tj must be confused :D [00:50] Sebmaster: jonaslund: ye [00:50] jonaslund: hmm [00:51] Sebmaster: i guess im doing something wrong [00:51] Sebmaster: because that patch is version 2.5.1 [00:51] brianc: NYCNodist: did you find what you were looking for with the postgres client? [00:51] Sebmaster: and node 0.3.1 with v8 2.5.3 built fine [00:52] mnot: ryah: btw, the only time I've found turning that setting on useful in the past is when I need a reverse proxy to continue reading a response into cache even when the client times out before it gets headers. [00:52] NYCNodist: brianc: I think so [00:52] booths: Tom- what are you trying to do? Just see if there's one in the string, or replace it, or what? [00:52] NYCNodist: But can someone link me to node-postgres again? [00:52] Sebmaster: maybe its a strange coincidence [00:52] Sebmaster: because im still using node master [00:52] NYCNodist: like on github [00:52] brianc: https://github.com/brianc/node-postgres [00:52] Tom-: booths: I am streaming a file and checking every line by looking for the carriage return [00:53] brianc: NYCNodist: you can also use google for "node postgres" [00:53] Sebmaster: ill revert back to 0.3.1 and just upgrade v8 from there [00:53] alek_br has joined the channel [00:53] Tom-: booths: if the carriage return is not present, I add the string to the buffer and check back later when I have more data [00:53] Tom-: booths: but with big files something goes wrong, I think it has to do with the \n search [00:54] booths: Tom- If someone types "\n" it would match \\n, not \n [00:54] Tom-: booths: alright, so that cannot be the cause of my problem then [00:54] dustinwhittle has joined the channel [00:54] booths: at least in v8 in the browser [00:55] booths: test it in the repl [00:55] booths: I think it will depend on where you get the information. [00:56] booths: If you create a string with "\n" it will match the newline, but if you're pulling from like a textarea, something typed \n will match \\n [00:56] dominictarr: so you test when you "modularize that part to contain the suck" [00:57] brianc: v8: window [00:57] v8bot: brianc: ReferenceError: window is not defined [00:57] brianc: v8: global [00:57] v8bot: brianc: ReferenceError: global is not defined [00:57] booths: Tom-: ping, just making sure you saw what I said above [00:58] Tom-: booths: I created the file myself with "\n" [00:58] till_ has left the channel [00:59] Tom-: booths: to be sure, is there no way to search for a character code rather than an actual string? [00:59] booths: v8: var x = "\n"; x.indexOf("\n"); [00:59] v8bot: booths: 0 [00:59] dguttman_ has joined the channel [00:59] c4milo1 has joined the channel [00:59] Insanity5902 has joined the channel [01:00] Tom-: v8: var x = "hel\\no"; x.indexOf("\n"); [01:00] v8bot: Tom-: -1 [01:00] Tom-: works properly [01:00] DTrejo: oh micheil, I am lost without youu [01:01] Tom-: booths: http://stackoverflow.com/questions/4874521/newline-n-problem-in-js [01:01] Tom-: that is interesting though [01:02] booths: Okay, reading from a text file, \\n is a typed \n, and \n is a physical newline [01:02] booths: in 3.5 [01:02] ryah: mjr_: 'error' or 'abort' ? [01:03] Sebmaster: ryah: Did you at deps/v8/src/plattform_cygwin.cc until node v0.3.1 manually? [01:04] booths: Tom- I created a .txt file with \n typed and a couple regular \n, I can use .split(/\n/) [01:04] ryah: yes [01:04] Sebmaster: ohhh [01:04] Sebmaster: that explains a lot i guess [01:04] springmeyer_ has joined the channel [01:05] Sebmaster: ryah: Since when? [01:05] Tom-: booths: yeah, it works for me as well, until I have passed a like 7000 lines it seems to go wrong [01:05] Tom-: I am trying to pin down the root of the problem [01:05] ryah: Sebmaster: ? [01:05] Tom-: but am unsuccesful, maybe it is something else [01:06] booths: so your strings are terminated by a \n? [01:06] Sebmaster: Did you at deps/v8/src/plattform_cygwin.cc until node v0.3.1 manually? [01:06] booths: that's how you know it's done, essentially? [01:08] Tom-: booths: the fields are yes, it's a comma-separated-file where fields are separated with a \n [01:08] DTrejo: ryah: some were thinking of getting rid of the modules page on the wiki and only using http://search.npmjs.org/ . Is http://search.npmjs.org/ on github? I don't this it is? [01:08] jashkenas has joined the channel [01:08] davidc_ has joined the channel [01:08] DTrejo: I suppose I should make an issue on the npm repo about that, nvm me [01:09] ryah: DTrejo: let's link there. i don't want to remove info from the wiki [01:09] DTrejo: k [01:09] DTrejo: I'll add it [01:09] techwraith: Second question: How do I set a timeout for a request? Should I just use setTimeout() or is there some magic in there? [01:10] Sebmaster: ryah: platform_cygwin.cc was never part of v8, was it? [01:10] dominictarr has joined the channel [01:10] ryah: Sebmaster: no [01:10] tanepiper: ahh goddamit, nodemodules has crashed again [01:10] Vertice has joined the channel [01:10] Sebmaster: ryah: So why did you remove it in v0.3.2? [01:11] hij1nx has joined the channel [01:12] ncb000gt has joined the channel [01:12] bingomanatee has joined the channel [01:12] dominictarr: so you test when you "modularize that part to contain the suck" [01:12] NYCNodist: res.write(fs.readFileSync("/opt/crusherpro/globalheader.html")); [01:12] ryah: Sebmaster: because it was broken [01:12] NYCNodist: Any idea why this doesn't work? :-\ [01:13] Sebmaster: jonaslund: So, theres our explanation [01:13] qschzt has joined the channel [01:13] ryah: it's super easy to port cygwin [01:13] ryah: you should just do it [01:13] qschzt: i h8 cygwin [01:13] qschzt: just virtualbox + ubuntu it [01:14] Sebmaster: i cant write a single line of c/c++ :( [01:14] ryah: if i have to port v8 to cygwin... [01:14] Sebmaster: otherwise id be happy to help [01:15] Jonasbn_ has joined the channel [01:16] Sebmaster: ryah: You like cygwin too, do you? :D [01:16] FireFly|n900: Sebmaster, you can always learn... it's useful with wide programming knowledge :) [01:17] NYCNodist: This is showing nothing: res.write(fs.readFileSync("/opt/html/globalheader.html", "utf8")); [01:17] DTrejo: readfilesync, noo! hehe [01:18] softdrink has joined the channel [01:18] DTrejo: NYCNodist: are you writing the headers and res.end ing? [01:18] Sebmaster: porting v8 to cygwin isnt the standard first-program for beginners i guess :( [01:18] NYCNodist: DTrejo: yeah [01:19] FireFly|n900: Sebmaster, true [01:20] norviller has joined the channel [01:20] Sebmaster: i wish w'd learn more c++ instead of c# at school :( [01:20] DTrejo: NYCNodist: so when you visit it just doesn't work? [01:20] DTrejo: NYCNodist: gist.github.com it to me? [01:21] tanepiper: anyone know if there is a good updated version of this, and without DOM stuff? http://www.cheat-sheets.org/saved-copy/javascript_cheat_sheet.png [01:25] p_nitsch has joined the channel [01:25] qschzt: hey, so what memory profiling tool are you using with node? [01:26] qschzt: I've used this https://github.com/dannycoates/node-inspector for bringing the debugger somewhat into (WebKit's?) debugger [01:26] qschzt: I really need a memory debugger, trying to debug a crashing node-mongodb-native query with cursors [01:27] qschzt: any tips [01:27] qschzt: ryah, please help [01:27] Nevtus has joined the channel [01:27] Nevtus has joined the channel [01:28] dominictarr has joined the channel [01:28] tanepiper: qschzt: node-inspecter [01:28] qschzt: i'm looking at a node-mongodb-native query with a cursor [01:28] qschzt: that never returns the first object [01:29] sivy has joined the channel [01:29] hangomanatee: If anyone sees Substack tell him I'm out of the house but will see him at 9 [01:29] qschzt: then a couple minutes later, the node process dies out of memory [01:30] qschzt: meanwhile, mongodb's verbose log says it's giving her loads and loads of rows [01:30] Sebmaster: v8: new Date() [01:30] v8bot: Sebmaster: "Fri Feb 04 2011 20:30:52 GMT-0500 (EST)" [01:31] Sebmaster: yeah, time to sleep i guess [01:31] Sebmaster: good night [01:32] qschzt: all 0.2.6, using https://github.com/rocketpack/node-mongodb-native, vs. mongodb 1.6.5 and 1.7.5 ... [01:32] qschzt: lemme join the mongodb chan -> [01:34] pHcF: i have a method in my app that i need to get user's id (in session), and i have a infinite loading page (that you scroll and it loads more). the JSON that is downloaded when the user scrolls needs to have the cookie session object (to get user data properly). the first time i scroll to the bottom, it loads nicely, but the second time, the cookie session is reseted [01:37] jonaslund: ah [01:37] qschzt: ah [01:38] qschzt: #tpolm [01:38] jonaslund: ryah: think those 2 lines i pm'd is ok ? [01:38] jonaslund: aahahaaha [01:38] jonaslund: jaakko :) [01:38] qschzt: hi jonas :) [01:39] jonaslund: i had you in mind when i saw the chzt part but wasn't sure [01:39] qschzt: heartfelt welcome to Node Jonas :) [01:40] qschzt: i had no idea [01:40] jonaslund: i've been using it for hacking for a while [01:40] montylounge has joined the channel [01:40] qschzt: what are you doing with it? [01:41] jonaslund: kinda the same as you [01:41] jonaslund: but not really :) [01:41] qschzt: I'm using it for the server side for http://rocketpack.fi/engine/ [01:41] jonaslund: yeah i've seen it [01:41] jonaslund: tried that cat game [01:43] NYCNodist: How do I download something from another server in node.js? [01:43] sivy has joined the channel [01:43] galaxywatcher has joined the channel [01:43] galaxywatcher has joined the channel [01:44] ncb000gt: qschzt: looks pretty awesome [01:44] qschzt: thank you [01:44] ncb000gt: NYCNodist: depends on the protocol but you can use the built in http client or you can use net and create a connection [01:44] NYCNodist: ah [01:44] sprout has joined the channel [01:44] amerine has joined the channel [01:45] ncb000gt: qschzt: although, a beach ball filled with cemment might hurt a bit, say at a baseball game or concert... [01:46] iszak has joined the channel [01:48] jonaslund: qschzt: i'm more into actual games though than doing middleware [01:49] ncb000gt: qschzt: so you're using node to do the SS validation? [01:49] DunNZ has joined the channel [01:49] ncb000gt: i see that you guys mention use of Scala too [01:49] dominictarr: does anyone know in what *.js npm loads it's configuration? [01:50] jonaslund: gotta feed the baby, back in 20 or so [01:50] ncb000gt: dominictarr: ~/.npmrc [01:50] ncb000gt: dominictarr: or do you mean, it actually processes that file in? [01:50] dominictarr: the second. [01:50] qschzt: jonaslund, "actual games"? :-D [01:51] techwraith: in node, what does 'timer' get set to when: var timer = setTimeout(foo(),3000); ? [01:51] qschzt: ncb, SS? [01:51] techwraith: It seems to be getting set to an object, not a number for me [01:51] ncb000gt: qschzt: server side [01:52] techwraith: in which case, how does one clearTimeout() it? [01:52] ncb000gt: for instance, cheat protection [01:52] qschzt: ncb, yeah, we used to run most parts of the system in Scala before moving to Node. [01:52] ncb000gt: dominictarr: not sure but there is a config.js file in lib/ [01:52] ncb000gt: qschzt: gotcha, cool [01:52] ncb000gt: :) [01:52] dominictarr: I want my code to know the npm root, is and i figure npm should be able to tell me. [01:52] dominictarr: i'll check that out thanks. [01:54] rchavik has joined the channel [01:54] vnguyen has joined the channel [01:55] ncb000gt: techwraith: first, you shouldn't call foo in there (unless foo returns a function), second, it returns an object [01:55] ncb000gt: like you said [01:55] siong1987 has joined the channel [01:55] ncb000gt: techwraith: have you tried clearTimeout(timer) [01:55] ncb000gt: ? [01:56] techwraith: Yep, doesn't seem to clear it [01:56] ncb000gt: techwraith: does for me [01:56] techwraith: then again, it could be scope issues, I'm setting the timeout in one method of an object and clearing it in a few others [01:57] ncb000gt: tho, I used setInterval to test it out [01:57] ncb000gt: techwraith: it also worked for me with setTimeout [01:58] ncb000gt: techwraith: when i attempted it in a node repl [01:58] ncb000gt: so i suspect you're right about scoping [01:58] techwraith: yeah, it's working for me too, it's definitely scoping [01:58] ncb000gt: cool [02:01] benburkert has joined the channel [02:03] mikeal has joined the channel [02:05] DTrejo: I'm starting to write this, but it's turning out really bad: http://typewith.me/improve-node-docs [02:05] DTrejo: I don't have a coherent story to tell [02:05] DTrejo: and it's boring [02:05] DTrejo: and somewhat repetetive [02:05] DTrejo: *repetitive [02:05] DTrejo: anyone have any insight on how to write a really good intro to node? [02:05] DTrejo: shall I add in some perkiness and quirkiness and life somehow? [02:06] DTrejo: ryah ^ thoughts on the above? [02:06] DTrejo: has anyone seen an intro to a technology that they really loved, that might be a good model? [02:08] ncb000gt: DTrejo: is this supposed to be a full intro site, book, article? [02:08] ncb000gt: DTrejo: seems like a lot of information for a single article/post [02:09] DTrejo: ncb000gt: good question, I'm not totally sure. I think the main point is to have something maintained on nodejs.org that newcomers can read get an intro to node. [02:09] mikeal has joined the channel [02:10] EyePulp: anyone using mongoose? having trouble with $nin - Foo.find({"bar":{ $nin : [1,2] }}) gives me an error of "$nin needs an array" [02:10] ncb000gt: DTrejo: I'd actually think it shouldn't be maintained by nodejs.org maintainers. The reasoning goes like this, they are too smart for their own good (have their heads in the code all day)... [02:10] ezmobius has joined the channel [02:10] ncb000gt: DTrejo: typically that makes for really poor documentation and examples [02:10] DTrejo: ncb000gt: well, that's why I'm writing it haha. also, there is a documentation team forming, kinda [02:11] ncb000gt: DTrejo: cool. outside of those details, try just telling a story [02:12] DTrejo: stories are the most compelling. I think I may write something shitty and then other people will see how shitty it is and write something better, I dunno if that's a good strategy. [02:12] DTrejo: ncb000gt: ^ [02:12] dominictarr has joined the channel [02:12] ncb000gt: DTrejo: :) that's the beauty of the web right? lots of eyes/editors [02:12] indexzero has joined the channel [02:12] DTrejo: yep :) [02:13] ncb000gt: DTrejo: plus, you never know. you might surprise yourself at how good yours is [02:13] indexzero: nyc javascript party [02:13] ncb000gt: tho, without any content, i can't say whether it's too dry, lacking personality, etc. [02:13] ncb000gt: indexzero: nova JS party! [02:14] mfernest has joined the channel [02:15] indexzero: mcb000gt: Nova as in Nova scotia? [02:15] indexzero: *ncb000gt that is [02:15] ncb000gt: indexzero: nova as in Northern VA [02:15] indexzero: ACTION can't type [02:15] ncb000gt: :) [02:15] indexzero: w000 javascript party [02:15] mfernest: DTrejo: getting your mind around the right opener is a discovery process. [02:16] mfernest: Dtrejo: best way I know to get started is to throw out a bunch of intros and see if anything sticks [02:16] DTrejo: mfernest: mmk, I'll have a shitty intro out in less than 15 minutes [02:16] mfernest: DTrejo: we all have our own standards :-D [02:16] ncb000gt: I have a shitty intro "Hello, welcome to NodeJS" [02:17] ncb000gt: "Let's begin." [02:17] unomi has joined the channel [02:17] pyrotechnick has joined the channel [02:18] pyrotechnick: hey is there anyone who works on mongoose around? [02:18] mfernest: Node.js is an event-oriented programming environment modeled on a threadless single process [02:18] DTrejo: [02:18] mfernest: or go with a meme: "You suck at node" [02:18] ncb000gt: you lost me at event-oriented [02:18] mfernest: ncb000ft: shaddap, did not [02:18] ncb000gt: <.< [02:19] booths: This newer version of chrome seems to be laggier than the previous [02:19] mfernest: booths: wow, that's the worst intro line so far [02:19] booths: lol [02:19] mfernest: not even on topic [02:19] ncb000gt: mfernest: or a better meme "once you get it, you'll shit bricks" [02:19] dguttman has joined the channel [02:20] mfernest: ncb000gt: still working on my first brick, personally. I like node a lot, but I'm not feeling it yet [02:20] galaxywatcher has joined the channel [02:21] mfernest: "Node is like a jelly donut" [02:21] mfernest: It's arrival delights us, and its departure only leaves us hungering for more. [02:21] ncb000gt: mfernest: o.o [02:21] booths: there's your intro [02:21] ncb000gt: DTrejo: http://mislav.uniqpath.com/poignant-guide [02:21] booths: and give out jelly donuts [02:22] mikeal has joined the channel [02:22] mfernest: Node...is like a stream of bat piss. It alone glows when all else is dark. [02:22] ncb000gt: I need more alcohol for this conversation [02:22] EyePulp: wow. that's poetic. [02:22] ncb000gt: and acid apparently [02:22] DTrejo: ncb000gt: I will let that inspire me [02:23] mfernest: Looks like enough time has passed that I can steal Monty Python jokes unabated [02:23] dominictarr has joined the channel [02:23] mfernest: you kids have heard of Monty Python, yes? [02:24] slickplaid: Nope, never heard of it. Ever. [02:24] mfernest: lol, found an age level. Young enough not to know Monty Python, old enough to go silent when being called a kid [02:25] ncb000gt: mfernest: :) I've heard of it [02:25] ncb000gt: had to go get more beer [02:26] booths: Monty Python is the shit [02:26] pyrotechnick: "Node...is like a stream of bat piss. It alone glows when all else is dark. [02:26] pyrotechnick: 12:22 PM" lol [02:26] pauls: ncb000gt++ [02:26] v8bot: pauls has given a beer to ncb000gt. ncb000gt now has 1 beers. [02:26] ncb000gt: I've also seen a bot pf ot [02:26] mfernest: I appreciate that, nothing like being the low-tech guy who kills the conversation [02:26] ncb000gt: erm... bit of it* [02:27] ncb000gt: alright, back to hackery [02:27] slickplaid: hacktastic [02:27] siong1987 has joined the channel [02:27] mfernest: ok, so, to complete the MP trifecta: "Node...is like a dose of the clap. Its arrival delights us, but afterwards it's just a pain in the dong." [02:27] EyePulp: so $in works under mongoose, yet $nin doesn't. [02:28] ncb000gt: EyePulp: no idea, haven't used mongoose [02:28] slickplaid: redis ftw [02:28] slickplaid: :D [02:29] EyePulp: too helpful. =P [02:29] kiddphunk has joined the channel [02:30] ncb000gt: mfernest: I hope you're happy, I now must watch some monty python this weekend... [02:31] mfernest: ncb000gt: me too [02:32] dominictarr has joined the channel [02:34] charlenopires has joined the channel [02:36] dachary: Hi, if I create a server with port 0, it should pick a random port. How can I retrieve the actual port it picked ? [02:39] peol has joined the channel [02:39] peol has joined the channel [02:39] vnguyen has joined the channel [02:41] c4milo1 has joined the channel [02:42] saikat has joined the channel [02:46] tfe__ has joined the channel [02:46] lukegalea has joined the channel [02:50] chapel: anyone have a a module written in coffeescript I can check out? [02:51] atmos: what're you looking for ? [02:51] qschzt: probably not coffeescript :) [02:52] jesusabdullah: chapel: There are lots of coffeescript modules. [02:52] ncb000gt: chapel: one i can think of off the top of my head is riak-js [02:52] wadey has joined the channel [02:53] dominictarr: i'll check that out thanks. [02:53] jesusabdullah: https://github.com/languages/CoffeeScript [02:53] jesusabdullah: Lotsa examples [02:53] chapel: okay, thanks [02:53] chapel: got what I wanted [02:57] tg has joined the channel [02:57] Tom-: Are there any known bugs with readStream.resume() and bad file descriptor errors? [02:57] qschzt: no joy trying to chase a 30k-row mongodb cursor crash in #mongodb. [02:58] qschzt: actually i went for a clustering problem also unsolved [02:58] harth has joined the channel [02:59] qschzt: the crash is a node-side issue [02:59] qschzt: it either gets the cursor (on my Mac) or never (in staging Linux) and crashes a couple minutes later without memory [02:59] ncb000gt: qschzt: sorry, i'm not much help when it comes to mongo [03:00] ncb000gt: qschzt: is this using the native driver? [03:00] Solsys has joined the channel [03:00] ncb000gt: the C/C++ based driver? [03:00] qschzt: both https://github.com/rocketpack/node-mongodb-native and its parent https://github.com/christkv/node-mongodb-native [03:00] qschzt: no, node-mongodb-native. [03:01] qschzt: err, yes, native :D [03:01] harth has joined the channel [03:01] Solsys_ has joined the channel [03:01] void_ has joined the channel [03:01] qschzt: very strange problem, I have an expresso test for it, it works on my 2-core 4GB Mac, with or without MongoDB clustering [03:02] softdrink has joined the channel [03:02] qschzt: it streams the cursor fine [03:02] qschzt: slowly, but [03:02] qschzt: doesn't work at all on a 2GB, 1-core Ubuntu box, with a local small mongodb instance. [03:02] Tom-: Q: sometimes when I call readStream.resume() the readStream.on('close',...) event is fired, indicating that the file descripted was destroyed. What could cause this? A bug maybe? [03:03] Jaye has joined the channel [03:03] Tom-: descriptor* [03:04] sh1mmer has joined the channel [03:04] qschzt: never gets the first cursor item, before it runs out of memory a couple minutes later, and node crashes out of memory [03:04] qschzt: :o wtf [03:04] tg has joined the channel [03:06] dspree: indexzero: can I msg you about something? [03:07] ncb000gt: Tom-: not sure, but I know there are things that use 'resume' and haven't heard of problems...though I could have easily missed them [03:07] ncb000gt: qschzt: strange. do you have the same version of node on your mac and on linux? [03:08] benburkert has joined the channel [03:08] jonaslund: could be different stdlibs, compilers,etc [03:08] Tom-: ncb000gt: do you know in what file I can find the source for the resume method? [03:08] qschzt: ncb, yeah yeah all the same versions, 0.2.6, 1.7.5 mongodb .. [03:08] ncb000gt: Tom-: Take a look at the net code...I believe that is where Stream is defined. [03:09] qschzt: jonaslund is probably right, stdlib?? [03:09] jonaslund: btw.. could node become compiled as x64 ? [03:09] dnyy has joined the channel [03:09] Tom-: ncb000gt: hmm, cannot find it there [03:09] qschzt: the same node-mongodb-native version runs on both, the other returns the cursor and can iterate, the other never returns the cursor before crashing with the size of the result set [03:09] ncb000gt: jonaslund: it wouldn't run if it was compiled for x64 and trying to run on 32bit [03:10] jonaslund: ncb000gt: what i mean is maybe his mac and linux version are compiled for different targets and exposes a pointer-size bug somewhere [03:10] ncb000gt: jonaslund: good call, i thought you meant something else, carry on! :) [03:10] qschzt: ja [03:11] qschzt: it's possible, although extremely rare [03:11] MikhX has joined the channel [03:12] ncb000gt: qschzt: also, i will say this, i have used the native mongo driver on my 64bit ubuntu box [03:12] ncb000gt: local mongo instance [03:12] ncb000gt: and it's been fine [03:12] ncb000gt: though I haven't used it in a long while [03:12] ncb000gt: Tom-: https://github.com/ry/node/blob/master/lib/stream.js [03:12] ncb000gt: sorry [03:12] ncb000gt: it's split out in master/0.3.x [03:13] qschzt: ncb000gt, great, it's the only/best one to use [03:13] ncb000gt: Tom-: if you're on 0.2.x https://github.com/ry/node/blob/v0.2.6/lib/net.js [03:13] jonaslund: well i think it's time to sleep soon [03:13] jonaslund: 4am here [03:13] Tom-: ncb000gt: thanks [03:13] ncb000gt: qschzt: hmm. not really sure. =\ [03:13] Tom-: same jonaslund :p node got me busy for 12 hours straight [03:13] Tom-: eyes hurt [03:13] ncb000gt: shoot the maintainer a note on github? [03:13] boogyman has joined the channel [03:14] qschzt: jonaslund, bigupyaself, sleep tight [03:14] Vertice_ has joined the channel [03:14] Vertice_ has joined the channel [03:18] Yuffster_work has joined the channel [03:19] c4milo1 has left the channel [03:19] boaz has joined the channel [03:19] DTrejo: ncb000gt: https://github.com/DTrejo/node/blob/fbfa756282f34e9120a2190f06d68646aafa2b68/doc/api/synopsis.markdown [03:19] tim_smart: Hmm Grooveshark Desktop is using chrome? [03:20] tim_smart: Wrong chat >.> [03:22] w0rse_ has joined the channel [03:23] ncb000gt: DTrejo: nice intro =P [03:24] ncb000gt: tho, :s/such/suck/ [03:24] ncb000gt: :%s* [03:24] boogyman has left the channel [03:24] boogyman has joined the channel [03:24] ncb000gt: DTrejo: also, you might want to mention the REPL early on [03:24] ncb000gt: because you don't have to do everything in files [03:24] ncb000gt: and in fact, the repl is really good for learning [03:25] Solsys has joined the channel [03:25] Solsys has left the channel [03:25] DTrejo: ncb000gt: ok, I'll make a note of that, and correct the typo [03:26] Solsys has joined the channel [03:28] hij1nx has joined the channel [03:28] thermal has joined the channel [03:28] qschzt: I love V8. [03:28] sivy has joined the channel [03:28] bmp has joined the channel [03:29] p_nitsch has joined the channel [03:29] qschzt: all thanks to ryan, we all love V8 :) fantastic stuff [03:30] qschzt: something I should watch and understand: http://www.youtube.com/watch?v=hWhMKalEicY [03:31] qschzt: (and actively ignore Cockfjord) [03:31] ncb000gt: lol [03:32] qschzt: I can say V8's GC is incredible, having ported a Rhino setup to Node - load went way, way below a tenth [03:34] qschzt: overall what's happened in the last year in Node is incredible, now I'm mainly lacking profiling tools - the Node stack hasn't crashed on me for ages [03:34] mjr_ has joined the channel [03:34] ncb000gt: qschzt: node-profiler [03:34] tg has joined the channel [03:34] ncb000gt: i believe mape put that together [03:34] qschzt: ncb000gt, node-inspector https://github.com/dannycoates/node-inspector [03:34] ncb000gt: aye [03:34] ncb000gt: that's also good [03:34] qschzt: but I need a memory profiling tool [03:35] ncb000gt: i believe node-profiler will do that [03:35] qschzt: nopes [03:35] ncb000gt: or maybe it is just bottlenecks [03:35] ncb000gt: hmm [03:35] qschzt: only cpu [03:35] tg has joined the channel [03:35] ncb000gt: welp...time to get coding? [03:35] ncb000gt: :) [03:35] qschzt: :D again [03:36] qschzt: that's the problem I have working with Node [03:36] qschzt: I find myself forking everything, manipulating/fixing it to my needs [03:36] ncb000gt: qschzt: yea, i tend to do some of that myself, but it's still early [03:37] ncb000gt: qschzt: one of the good and bad things is that the library set wasn't developed [03:37] bradleymeck has joined the channel [03:37] qschzt: getting deeper and deeper into more and more 'cutting edge' or very raw software [03:37] bradleymeck: one of the v8 guys in here? [03:38] qschzt: node-amqp and node-mongodb-native, the backplane of my system, especially heavily modified [03:38] DTrejo: gnight everyone! [03:38] ryah: please test http://nodejs.org/dist/node-v0.3.8.tar.gz [03:38] ncb000gt: DTrejo: night [03:38] DTrejo: contribute to node docs! http://groups.google.com/group/nodejs-dev/browse_thread/thread/7ee4d9bbb79e0481 [03:39] ncb000gt: qschzt: sometimes you just gotta shave a yak [03:39] qschzt: ryah, can I see somewhere how much the API changed from 0.2.6? :) [03:39] ncb000gt: qschzt: there is a migration article on the wiki [03:40] mscdex: qschzt: you can take snapshots of the heap with node-profiler [03:40] ryah: qschzt: https://github.com/ry/node/wiki/Migrating-from-v0.2-to-v0.3 [03:40] qschzt: thanks and thanks [03:41] mikeal: pushed more changes to http://search.npmjs.org/ [03:41] bradleymeck: can i just post a huge amount of "teaching" in the docs to help people understand the how and why of things async. I have em written out [03:41] ncb000gt: qschzt: there are also dtrace bindings that you can look into [03:41] mikeal: we've got 1046 modules [03:41] mikeal: that's crazy [03:42] ryah: mikeal: crazy [03:42] ryah: i want someone to run 'make test-all' tests for 0.3.8 on macintosh [03:42] ryah: please [03:42] qschzt: will do [03:42] bradleymeck: do you need any windows tests run? [03:43] mikeal: 0.3.8 release or master? [03:43] ryah: http://nodejs.org/dist/node-v0.3.8.tar.gz [03:43] thermal has joined the channel [03:43] ryah: this tarball [03:44] mikeal: ok [03:44] ryah: ./configure --debug && make test-all [03:44] mikeal: i'll run it on mac [03:44] ryah: thanks [03:45] qschzt: one step ahead, mikeal [03:45] pedrobelo has joined the channel [03:45] chapel: mikeal: what is the best way to store a date when creating a document in couchdb using node? [03:45] qschzt: when is the new stable due? [03:45] chapel: just new Date() ? [03:46] mikeal: if you pass a new Date() object to JavaScript's JSON.stringify it'll convert it to a UTC string [03:46] qschzt: 2.5 -> 2.6 solved a huge amount of memory leaks btw in production [03:46] mikeal: so it's perfect [03:46] mikeal: other languages you have to be careful tho and do conversions [03:46] chapel: "datetime":"2011-02-05T03:44:48.070Z" [03:46] chapel: so thats what should be expected? [03:46] mikeal: yeah, that's exactly what you want [03:46] mikeal: that will sort properly [03:46] mikeal: if you emit it in a view or anything like that [03:46] chapel: okay cool [03:46] chapel: just making sure [03:46] chapel: :) [03:48] qschzt: we had pretty bad memory leaks in 0.2.3, actually, moving straight to 0.2.6 was painless, and suddenly the GC could run better? [03:48] muk_mb has joined the channel [03:49] qschzt: (sorry, I can only be on #nodejs when it's 5am and I'm sloshed) [03:49] qschzt: time difference in favour of EU, thank you please. [03:49] ncb000gt: :) [03:50] ryah: he ate my heart. he ate my heart. [03:50] ncb000gt: o.0 [03:50] luke`_ has joined the channel [03:51] qschzt: ryah, fail [03:52] qschzt: build ok, test-all fail [03:52] ryah: http://www.youtube.com/watch?v=mP2srT6hh2Y [03:52] ryah: qschzt: which? [03:52] qschzt: AssertionError: 44 == 42 [03:52] ryah: what's the last line [03:52] ryah: it should be -2 [03:53] qschzt: http://pastie.org/1530285 [03:54] ncb000gt: ryah: tests fail for me on 64bit ubuntu [03:54] ncb000gt: === debug test-next-tick-ordering === [03:54] ncb000gt: Path: simple/test-next-tick-ordering [03:54] ryah: that's okay [03:54] ncb000gt: ok [03:54] ncb000gt: cool [03:55] ryah: thanks [03:55] qschzt: huh? [03:56] ncb000gt: ryah: wife yelled at me to turn my bass down...thanks. [03:56] CIA-99: node: Ryan Dahl master * r9493b75 / (AUTHORS ChangeLog doc/index.html src/node_version.h wscript): Bump version to v0.3.8 - http://bit.ly/f0xjXu [03:56] CIA-99: node: Ryan Dahl master * r30f24bb / src/node_version.h : Now working on v0.4.0 - http://bit.ly/fzvrWX [03:56] mscdex: it's not bold? [03:56] qschzt: w00t. I guess [03:56] mscdex: :o [03:57] ryah: ~/projects/node (master) ./node -v [03:57] ryah: v0.4.0-pre [03:58] ncb000gt: ryah: should the tls-large-push test take a while? [03:58] ncb000gt: nvm, it did [03:58] ncb000gt: it's moving on [03:58] qschzt: ryah, why did the tick-test fail? [03:59] ryah: qschzt: it's broken [03:59] harth has joined the channel [03:59] ncb000gt: yep, all is well outside of the tick-test here [03:59] qschzt: heh, yeah [04:00] qschzt: ryah, why is it broken? [04:00] ncb000gt: ryah: any interest in https://github.com/ry/node/issues/issue/516 [04:01] w3dot0 has joined the channel [04:01] ncb000gt: isaac seemed to think it was a good idea, it ended up being an issue for something i was working on, hence the patch [04:02] qschzt: ryah, core build test-all failed on Mac, big problem IMHO [04:02] qschzt: and on linux [04:02] ncb000gt: qschzt: due to the tick issue right? [04:02] qschzt: yes [04:03] ncb000gt: er, tick test [04:03] ryah: qschzt: i could just disable the test - it would still be broken :) [04:03] ncb000gt: i saw the same behavior here [04:03] ryah: better to keep it reminding me [04:03] ncb000gt: lol [04:03] qschzt: why? [04:03] ryah: it's a bug [04:03] qschzt: what bug? [04:03] ryah: don't worry - there are thousands of bugs in node [04:04] qschzt: can I RT u? [04:04] ncb000gt: ryah: no no...it's PERFECT! [04:04] ryah: this is a relatively benign one. [04:04] qschzt: fine, ok [04:04] harth has joined the channel [04:05] qschzt: done [04:05] dominictarr has joined the channel [04:05] mikeal: ryah: you saw Charlies issue with http.Agent vs https.Agent? [04:06] ryah: mikeal: i did [04:06] ryah: i will fix that soon, just had to push this release out [04:06] mikeal: i can write a patch [04:06] qschzt: actually I have no pressing Node bugs in 0.2.6 so I'll step aside [04:06] mikeal: but i'm wondering how you want to do it [04:06] ryah: mikeal: that'd be nice [04:06] mikeal: can we just use http.Agent in https [04:06] mikeal: or keep them seperate but use a consistent API [04:06] ryah: mikeal: not exactly - it needs to overload one method [04:06] mikeal: and if so, which API :) [04:07] mikeal: ok, i'll use inherits [04:07] mikeal: do you want to move both to the options style [04:07] misterm has joined the channel [04:07] mikeal: or the host, port style? [04:07] ryah: i guess both options style [04:07] mikeal: cool [04:08] atmos has joined the channel [04:09] Mike_Rice has joined the channel [04:09] Mike_Rice: ehlo [04:10] ryah: Mike_Rice: i need a repeatable test for ETIMEOUT [04:10] dipser has joined the channel [04:10] qschzt: have a great weekend everyone, time for me to take a walk home. thanks for #node.js, and all [04:10] Mike_Rice: ryah: k [04:11] Mike_Rice: ryah: connect to a server, hit it 500+ times. :-) [04:11] Mike_Rice: ryah: let me see if I can setup something on one of my servers so you don't kill my customers. :-) [04:12] ryah: Mike_Rice: can you make something that happens in a single script? [04:12] ryah: Mike_Rice: server and client? [04:12] ryah: that would be ideal [04:12] Mike_Rice: ryah: a test... hmm [04:13] indexzero has joined the channel [04:13] dominic_ has joined the channel [04:13] bradleymeck has joined the channel [04:15] cloudhead has joined the channel [04:15] indexzero: wattup cloudhead [04:15] indexzero: chilling with tmpvar and hij1nx [04:15] Mike_Rice: ryah: could you just connect on a socket to a script that run's a while loop for a while? It would kill CPU, but theoreticaly work [04:15] Mike_Rice: Hey Charlie [04:16] rburhum has joined the channel [04:17] ryah: Mike_Rice: like, you just need it to not respond? [04:17] Mike_Rice: I need to test more on my clients servers this weekend to see exactly what's happening [04:17] Mike_Rice: I wasn't logging enough when it started happening [04:18] Mike_Rice: ryah: My theory is their Apache starts dropping connections after x conns from an IP in n time [04:18] Mike_Rice: ryah: but I have to test more, and they're not technical enough to know [04:18] bradleymeck1 has joined the channel [04:18] backinnam_ has joined the channel [04:20] ryah: Mike_Rice: okay. I'm leaving now - we'll discuss more later. [04:20] Mike_Rice: ryah: of course, if 0.3.8 was building easily on Windows I could give you a lot more info. :-) but alas, I have to figure out network tracing on Linux [04:20] Mike_Rice: ryah: OK, g'night [04:21] indexzero: sup Mike_Rice [04:22] cloudhead has joined the channel [04:23] mikeal: ryah: sent [04:23] mikeal: also, pretty please, pipe event :) [04:23] chapel: anyone know coffeescript? [04:23] Mike_Rice: indexzero: how goes? [04:23] ncb000gt: lol @ mikeal [04:23] ncb000gt: chapel: no [04:23] mikeal: indexzero: just sent a patch to ryah for your Agent issue [04:23] indexzero: mikeal: w00 collaborative coding [04:24] indexzero: Mike_Rice: good, writing up a tutorial from my talk on node.js @ Columbia this past week http://github.com/indexzero/nodejs-intro [04:24] Mike_Rice: indexzero: pretty sure, not me [04:25] gf3 has joined the channel [04:25] Mike_Rice: indexzero: but I have done things while intoxicated and forgotten [04:25] Mike_Rice: is there another noder named Mike Rice? [04:25] gJ|Alex has joined the channel [04:25] indexzero: Mike_Rice: not sure ... [04:26] indexzero: chapel: I've dabbled in coffescript lately, but I don't know much [04:26] Mike_Rice: http://michael-rice.blogspot.com/2011/01/nodejs-windows-7-install-cxx-error.html [04:26] indexzero: working on some patches to jashkenas' docco [04:26] Mike_Rice: that's the extint of my public noding [04:26] chapel: well I am having a dumb issue, dumb as in I think I am being dumb [04:26] chapel: https://gist.github.com/812201 [04:26] jacobolus has joined the channel [04:27] chapel: if you look at line #8 and #25 [04:27] chapel: I am assigning local variables to those methods from the class this.options [04:27] Mike_Rice: indexzero: link? [04:27] indexzero: chapel: ok, can you just assign class variables via the constructor that way? [04:28] indexzero: Mike_Rice: The slides / code are on Github: http://github.com/indexzero/nodejs-intro [04:28] chapel: yeah indexzero at least that is what it shows in the docs [04:28] chapel: http://jashkenas.github.com/coffee-script/#classes [04:28] Mike_Rice: indexzero: sorry, I completely misunderstood you [04:28] Mike_Rice: indexzero: i thought you were implying a mike rice reviewed your tutorial, LOL [04:28] chapel: but what I dont understand is why the local options to the method is being sent to the class this.options [04:29] Mike_Rice: indexzero: I guess it's time for bed for me... [04:29] chapel: so doing .create and then .update the update is getting the changes from the .create [04:29] Mike_Rice: Long week... [04:30] indexzero: Mike_Rice: I hear ya [04:30] indexzero: chapel: Line 8 is the cause of this [04:30] indexzero: chapel: options = @options won't clone the @options object, it will just set the reference [04:30] chapel: I think I am mis understanding something simple, but I want to be able to take this.options and assign it to a local method variable that is only usable in that method [04:31] chapel: ah [04:31] Mike_Rice: indexzero: does your http-agent run on 0.2.6? [04:31] chapel: thats what I figured was happening, but what is my options then to clone? [04:31] bradleymeck has joined the channel [04:31] onar_ has joined the channel [04:31] harth has joined the channel [04:31] indexzero: Mike_Rice: maybe, but I've been pretty forward facing in my node requirements, push to 0.4.0 you know [04:31] devdrinker has joined the channel [04:32] MatthewMueller has joined the channel [04:32] Mike_Rice: indexzero: I went up to 0.3.8 and went back to request because 0.3.8 had inherent pooling [04:32] indexzero: chapel: https://github.com/indexzero/winston/blob/master/lib/winston/utils/index.js#L51 [04:32] Mike_Rice: indezero: for some reason I was getting an event, but I was too tired to go indepth and just upped the version [04:33] Mike_Rice: wasn't* [04:33] mikeal: oh man [04:33] indexzero: Mike_Rice: I'm really happy about default pooling, but if it's not 100% yet that's good to know [04:34] mikeal: fixing request to work with the new Agent API breaks it for previous versions [04:34] Mike_Rice: indezero: I was talking to mikeal (I think) and he was talking about building in max connections and other things [04:34] mikeal: fuckin hell [04:34] bingomanateeIpho has joined the channel [04:34] indexzero: mikeal: :-/ you'll get it [04:34] Mike_Rice: mikeal: ::HUGS:: [04:34] mikeal: i'm gonna roll the required version to 0.4.0 [04:34] mikeal: once it releases [04:36] indexzero: mikeal: Yeah, I'm going to do the same for all my libraries [04:40] saikat has joined the channel [04:41] jlecker has joined the channel [04:41] cloudhead has joined the channel [04:43] onar_ has joined the channel [04:43] richcollins has joined the channel [04:44] backinnam_ has joined the channel [04:47] saschagehlich_ has joined the channel [04:50] cloudhead has joined the channel [04:50] chapel: indexzero: thanks I think I have it :) [04:50] indexzero: chapel: np [04:52] tg has joined the channel [04:54] chapel: :0 [04:54] chapel: https://gist.github.com/812215 [04:55] chapel: thats the clone fn in coffeescript [04:55] chapel: not sure if it could be cleaner [04:56] sudoer has joined the channel [04:57] cloudhead has joined the channel [04:58] bingomanateeIpho has joined the channel [04:58] ezmobius has joined the channel [04:59] tykelewis has joined the channel [04:59] boogyman has joined the channel [04:59] bingomanateeIpho: Anyone heard from substack lately? [04:59] mikeal: he was here earlier [05:00] bingomanateeIpho: Okie [05:00] mattly has joined the channel [05:01] indexzero: chapel: nice [05:03] cloudhead has joined the channel [05:04] jchris1 has joined the channel [05:08] ryanfitz has joined the channel [05:10] cloudhead has joined the channel [05:10] Utkarsh_ has joined the channel [05:11] bingomanateeIpho has joined the channel [05:13] bingomanateeIpho has joined the channel [05:13] MattDiPasquale has joined the channel [05:16] EyePulp has joined the channel [05:17] cloudhead has joined the channel [05:17] chapel: ryah: I am sending a DELETE method on http.request but it seems to be actually sending a get request [05:18] mikeal: mape: you should totally make search.npmjs.org pretty :0 [05:18] mikeal: i keep adding stuff to it, but I'm not working on making it pretty yet [05:18] mikeal: cause i figured you were [05:18] bingomanateeIpho has joined the channel [05:18] jthoma12 has joined the channel [05:20] tykelewis has joined the channel [05:20] richcollins has joined the channel [05:21] keyvan- has joined the channel [05:21] bingomanateeIpho has joined the channel [05:24] bingomanateeIpho: Hey [05:24] echosystm has joined the channel [05:25] Gruni has joined the channel [05:25] cloudhead has joined the channel [05:26] chapel: https://gist.github.com/812237 [05:26] chapel: for some reason it is hanging on line #13 [05:26] chapel: doesn't actually fire the request [05:26] chapel: that I can tell [05:29] chapel: could it be couchdb doesn't like the delete method node is sending? [05:30] bingomanateeIpho has joined the channel [05:31] bingomanateeIpho: SubStack: Hi? [05:33] cloudhead has joined the channel [05:33] thrumins: bingomanateeIpho: he's asleep [05:33] thrumins: i am staying on his couch :) [05:34] dominic_: cloudhead: hey, does the vows.js API change much? [05:35] bingomanateeIpho: Wake him up and hsve him call me [05:35] bingomanateeIpho: Seriously [05:35] chapel: no ideas though, has anyone used delete method on couchdb with the new http.request? [05:36] thrumins: bingomanateeIpho: he's very tired [05:36] jimt_ has joined the channel [05:36] bingomanateeIpho: Very well [05:36] thrumins: but what's up? [05:37] bingomanateeIpho: Call [05:37] bingomanateeIpho: Can u call me? [05:37] mattly has joined the channel [05:37] thrumins: i can call from gmail [05:37] thrumins: we dont have phones [05:37] bingomanateeIpho: 415 5728712 [05:38] zikes has joined the channel [05:38] thrumins: calling! [05:38] sholmes has joined the channel [05:38] bingomanateeIpho: I have your phones here in a bag [05:38] sholmes: Is narwhal comparable to node.js? [05:38] sholmes: are they to competative frameworks? [05:40] bingomanateeIpho has joined the channel [05:40] thrumins: i am trying to call [05:41] thrumins: i cant call at this connection [05:41] thrumins: Unable to reach Gmail. Please check your internet connection. Help [05:43] mattly has joined the channel [05:43] bradleymeck: sholmes, not really competing in same area for things except they use the same languages [05:44] mattly has joined the channel [05:44] sholmes: bradleymeck what does narwhal do? [05:44] iFire has joined the channel [05:45] bradleymeck: it aims to be a jsgi server environment, node aims to be a general utility [05:46] sholmes: what's a general utility? [05:46] sholmes: and what's a jsgi server environment? [05:47] jimt has joined the channel [05:48] bradleymeck: general utility as in it can do many things (though node takes a stance that async is the proper way to code). a jsgi server environment is a kind of programming environment built to be modular and based upon commonjs standards [05:53] dominic_: nawhal is on JVM isn't it? [05:53] Ond: Yep [05:53] dominic_: ... so it can interface into all that boring java stuff too [05:54] dominic_: have you used it [05:54] dominic_: ? [05:54] Ond: Not to much effect [05:54] dominic_: hello world? [05:54] Ond: I ran some tests on ringo-evented as well, no comparison to node [05:54] bmizerany has joined the channel [05:55] dominic_: would it load a node style .js (assuming it didn't use node only native libs?) [05:55] Ond: I've thought about trying to write JNI bindings for v8 or node but I don't see it being worth the time. [05:55] Ond: Of course the library would be accessible to other JVM languages as they all have access to java libraries. Ideally, Scala or Clojure would be used. [05:56] charlenopires has joined the channel [05:56] dominic_: Scala & Clojure are MUCH cooler than java. [05:56] Ond: And yeah, you could run a .js file much like node [05:57] Ond: Ringo is CommonJS compliant [05:57] Ond: I guess. The next version of Java should be alright (probably) [05:57] shaver: could use rhino [05:57] Ond: Well, RingoJS uses Rhino. [05:57] shaver: well then [05:57] Ond: But Rhino hasn't been modified in quite a while. [05:57] dominic_: ha! they have been talking about add closures for years! [05:57] dominic_: (to java that is) [05:57] Ond: Yeah dominic_ [05:57] Ond: Fingers crossed [05:58] jimt_ has joined the channel [05:58] dominic_: it's like php has closures in 5.3 but it's not compatible with 95% of the ecosystem... so no one uses it. [05:58] sholmes: could Node eventually move on to being a front-end application framework? [05:58] shaver: it already is in WebOS [05:59] bradleymeck: until php can GC a fing function its dead to me [05:59] sholmes: shaver, oh rly? [05:59] dominic_: you could use one of those naked browsers and it would be great. [05:59] shaver: sholmes: yeah [05:59] sholmes: so webOS devices can except HTTP requests? [05:59] shaver: sholmes: http://developer.palm.com/index.php?id=2109&option=com_content&view=article, scroll down a biot [06:00] iszak has joined the channel [06:00] iszak: Woo 0.4.0-pre! [06:00] keyvan- has joined the channel [06:01] jchris has joined the channel [06:02] Aikar: ryah: https://github.com/ry/node/pull/630 small pull req that should help improve startup time. [06:02] shaver: iszak: nice [06:03] sholmes: shaver, So my WebOS app could potentially be a webserver? O.o [06:03] strmpnk has joined the channel [06:03] shaver: not untrue [06:08] cloudhead has joined the channel [06:10] dominic_ has joined the channel [06:11] skm has joined the channel [06:13] jakehow has joined the channel [06:15] jdalton has joined the channel [06:18] themiddleman has joined the channel [06:19] jdalton has left the channel [06:21] backinnam_ has joined the channel [06:24] hangomanatee: Almost everything can accept HTTP requests nowadays. [06:25] hangomanatee: I mean if you wanted to you could make a web server with Unity. Its a bad bad idea and you shouldn't do it but the basic building blocks are there. [06:25] gJ|Alex has joined the channel [06:25] hangomanatee: A friend of mine found a Java exploit that allowed him to rape anyone's browser once they visited his site, and force them to serve any file on their hard drive to the outside world. [06:26] hangomanatee: (til they shut the browser.) [06:26] shaver: java is a disaster [06:26] shaver: biggest security issue we face [06:26] hangomanatee: That got him an article in the WSJ and he flipped that publicity into an apartment. [06:26] hangomanatee: Potentially - though I thought client side Java was pretty much dead. [06:26] shaver: we should be so lucky [06:27] shaver: until recently, the facebook photo uploader used it [06:27] shaver: still lots of casual games [06:28] hangomanatee: who the F would write a casual game in Java when Flash and jQuery exists? [06:28] jchris1 has joined the channel [06:28] hangomanatee: I guess thats what happens when you force feed Java to a generation of engineers and then shift gears on them. [06:28] AAA_awright_ has joined the channel [06:28] hangomanatee: They have to do something with their obsolete skillset. [06:28] shaver: people who wrote their games in 2005 [06:28] hangomanatee: oh. That kind of makes sense. [06:29] hangomanatee: I messed with JavaFX - worst. performant. environment. ever. [06:29] jchris1 has joined the channel [06:29] hangomanatee: Sad too because the language itself was extremely elegant. [06:29] hangomanatee: I would love it if someone reverse engineered JavaFX in Node. [06:32] Misao-chan has joined the channel [06:37] rbranson has joined the channel [06:38] bartmax has joined the channel [06:38] bartmax has joined the channel [06:40] jchris has joined the channel [06:41] mattly has joined the channel [06:43] ChickRuglia has joined the channel [06:44] amerine has joined the channel [06:46] benburkert has joined the channel [06:47] atmos has joined the channel [06:53] void_ has joined the channel [06:57] Remoun has joined the channel [07:02] Solsys has joined the channel [07:04] dgathright has joined the channel [07:05] Utkarsh__ has joined the channel [07:06] EyePulp has joined the channel [07:10] anupbishnoi has joined the channel [07:19] silence has joined the channel [07:20] sherzod has joined the channel [07:22] ryan[WIN] has joined the channel [07:22] anupbishnoi has joined the channel [07:25] Gruni has joined the channel [07:29] keyvan- has joined the channel [07:32] cloudhead has joined the channel [07:39] janm has joined the channel [07:41] Utkarsh_ has joined the channel [07:41] mhausenblas has joined the channel [07:42] andrewfff has joined the channel [07:43] MatthewMueller has joined the channel [07:45] Utkarsh has joined the channel [07:48] Wizek has joined the channel [07:48] nook has joined the channel [07:55] hornairs has joined the channel [07:56] jimt has joined the channel [08:05] rjnienaber has joined the channel [08:13] rot13 has joined the channel [08:14] tc77 has joined the channel [08:15] statim has joined the channel [08:16] mischief has joined the channel [08:18] Jonasbn_ has joined the channel [08:19] rot13 has joined the channel [08:22] zentoooo has joined the channel [08:24] rot13 has joined the channel [08:25] cloudhead has joined the channel [08:26] gJ|Alex has joined the channel [08:28] Jonasbn_: Hi guys. When starting a node server I'm getting "Your node instance does not have root privileges" [08:29] Jonasbn_: I obviously don't, if I'm using sudo, but if I do so, socket.io refuses to work. [08:29] Jonasbn_: Any ideas on how to solve it? :) [08:29] rot13 has joined the channel [08:30] dominic_: you can't open port 80 without root. [08:30] dominic_: thats my guess. [08:31] sherzod: another guess is that maybe port is already opened and busy [08:31] sherzod: and that is why socket.io is not working [08:31] Jonasbn_: Let me check the web server in osx [08:32] dominic_: hmm. or socket.io doesn't want to run in sudo for security. [08:32] mscdex: no, it's trying to open port 843 for Flash [08:32] dominic_: any port under 1000 needs root [08:32] Jonasbn_: socket.io runs fine, but the client cannot access it [08:32] Jonasbn_: (in sudo) [08:32] steffkes has joined the channel [08:32] dpree has joined the channel [08:33] mscdex: Jonasbn_: what does your .listen() look like? [08:33] dpree has left the channel [08:33] Jonasbn_: mscdex: 8080. It works on my mates osx.. [08:33] mscdex: Jonasbn_: ah ok [08:34] mscdex: Jonasbn_: what browser does it not work for you? [08:34] Jonasbn_: mscdex: safari [08:34] dominic_ has joined the channel [08:34] jetienne has joined the channel [08:34] mscdex: 4 or 5? [08:34] qFox has joined the channel [08:34] Jonasbn_: 5 [08:34] okuryu has joined the channel [08:34] iszak: cross origin request perhaps? [08:35] mscdex: safari 5 should use the native websockets [08:35] mscdex: not sure why it wouldn't work [08:35] rot13 has joined the channel [08:35] sherzod: Jonasbn_, did you check connection with telnet [08:36] jetienne has joined the channel [08:36] Jonasbn_: Thanks guys, dunno what I did, but it's working now :) [08:36] mscdex: heh [08:36] sherzod: magic is everywhere [08:37] mscdex: the worst debugging situation [08:37] mscdex: :) [08:37] sherzod: ) [08:39] iszak: >_> [08:40] rot13 has joined the channel [08:40] Blink7 has joined the channel [08:46] rot13 has joined the channel [08:51] rot13 has joined the channel [08:53] warz has joined the channel [08:54] Druid_ has joined the channel [08:55] dominictarr has joined the channel [08:57] rot13 has joined the channel [08:57] ROBOd has joined the channel [08:57] adambeynon has joined the channel [08:57] MikhX has joined the channel [09:02] rot13 has joined the channel [09:02] dhofstet has joined the channel [09:06] dhofstet: hi, I just created a patch for an open issue. Is it enough to create a pull request? Or is something else required? [09:08] aklt has joined the channel [09:11] mscdex: dhofstet: you may also want to post to the nodejs-dev mailing list about it also [09:13] dhofstet: mscdex: ok, will do, thanks [09:16] jonaslund: dhofstet: ryan will need to get in touch with you [09:18] jonaslund: ryah: hey you forgot my patch in 0.3.8 :P [09:19] cloudhead has joined the channel [09:19] skm has joined the channel [09:21] chapel: does anyone have an example of a function that can take an optional argument before a callback? [09:22] mikeal: is there an end use do for publishing packages with npm? [09:22] mscdex: chapel: check if the optional argument is a function and the callback argument is undefined? [09:23] chapel: well thats what Im doing, but just wondering if there was a more elegant way of doing it [09:23] tanepiper: dhofstet: that you finally jumping from cakephp? ;) [09:25] jonaslund: chapel: if (arguments.length>=numArgsWithOpt && arguments[arguments.length-1] instanceof Function) [09:25] Gruni has joined the channel [09:25] dhofstet: tanepiper: yep, though this already happened a while ago [09:26] mscdex: chapel: just know accessing the arguments var can lead to slow cases [09:26] chapel: yeah [09:26] mscdex: chapel: i think that's about as good as you can do without using 'arguments' [09:26] mikeal: re-designed http://search.npmjs.org/ [09:26] iszak: needs work. [09:26] mikeal: http://search.npmjs.org/#/npm [09:27] mikeal: significantly better than it was [09:27] Bosmon has joined the channel [09:27] mscdex: mikeal: how about a loading indicator if it takes awhile for the results to show up? [09:27] tanepiper: mikeal: looks good [09:27] dominictarr has joined the channel [09:27] mikeal: mscdex: that's harder than you think [09:27] mscdex: :S [09:27] mikeal: because it's as you type, and the responses come back async [09:28] tanepiper: THAT'S WHAT SHE SAID [09:28] mscdex: wait, she knows about async programming? [09:28] mikeal: so a response might mean it's done, or it doesn't [09:28] mikeal: because you already typed more [09:29] tanepiper: mikeal: open source? i'd like to see how your handling all the url variations like homepage/url/repo.web/repo.url, etc [09:29] mikeal: most of what i'm trying to improve is browsing modules [09:29] mikeal: tanepiper: lots of crazy jquery :) [09:30] mikeal: tanepiper: https://github.com/mikeal/js-registry/tree/master/ui [09:30] tanepiper: i got some regex's working on it, but still horrible, because people don't write their package.json properly so url's are easy enough to handle, context isn't [09:31] hellp has joined the channel [09:32] dominictarr: how do you tell the difference between a search which returns no results and one that hasn't finished yet? [09:34] yozgrahame has joined the channel [09:36] tanepiper: dominictarr: i presume the one that returns no results will return a http status, but the one that hasn't finished hasn't? [09:37] atmos has joined the channel [09:38] dominictarr: tanepiper: i was't clear. sorry. i'll try again. [09:38] tokumine has joined the channel [09:38] dominictarr: mikeal: how do you tell the difference between a search on search.npm which returns no results and one that hasn't finished yet? [09:39] SamuraiJack has joined the channel [09:39] mikeal: that's not how it's architected [09:39] mikeal: it's kind of hard to explain [09:39] mikeal: basically, it doens't "wait" for a search result [09:40] mikeal: it sends them off, and when they come back it checks if the search term for that response is the current search term and updates [09:40] dominictarr: okay that makes sense. so how does the user tell? [09:41] kal-EL_ has joined the channel [09:41] prettyrobots has joined the channel [09:43] FireFly|n900: by the fact that it's still running? [09:43] FireFly|n900: And hasn't reported "npm done" or something similar [09:43] dominictarr: heres what i do: [09:44] dominictarr: just type a few characters at a time. [09:44] dominictarr: and wait for the response. [09:44] FireFly|n900: hm [09:44] dominictarr: then i can see when it disapears. [09:44] mikeal: ok [09:44] FireFly|n900: righty, you said search.npm, I was thinking of "npm search" in a terminal [09:44] mikeal: just pushed a change [09:45] mikeal: if there were no results, it shows "No Results" [09:45] dominictarr: AMAZING [09:45] dominictarr: mikeal++++++ [09:45] mikeal: makes things a big nicer [09:45] dominictarr: mikeal++ [09:45] v8bot: dominictarr has given a beer to mikeal. mikeal now has 8 beers. [09:45] dominictarr: thanks. [09:46] FireFly|n900: mikeal, nice [09:46] FireFly|n900: mikeal++ [09:46] v8bot: mikeal is getting too many beers. Don't let mikeal get drunk! [09:46] FireFly|n900: heh [09:46] FireFly|n900: oh well [09:46] mikeal: hahaha [09:46] mikeal: v8bot throttles beers [09:46] mikeal: that's hilarious [09:47] dominictarr: it's not just nodejs which is fast and async. the developers are too. [09:47] FireFly|n900: :D [09:48] tanepiper: gahh, i just wish a) people would toppost on the mailing list or b) if they refuse to top post (come on, 2011!) then remove all the google groups crap [09:49] dominictarr: tanepiper: doesn't your email client filter that stuff out? [09:50] tanepiper: no, crappy outlook - but it has the best calendar integration :( it doesn't even keep emails in proper threads. i might just go back to gmail in the browser [09:50] tanepiper: at least my calendars are tied now so i get popups when i have stuff to do [09:50] dominictarr: people who use gmail wonder why other people complain about email stuff. [09:52] tanepiper: dominictarr: i was only using it because i kept forgetting stuff and outlook likes to bug you about meetings and appointments, and i kind ended up falling into using it again for email [09:52] hij1nx has joined the channel [09:54] dominictarr: hmm. do you have thoughts on rememberthemilk.com and such like things? [09:54] FireFly|n900: blarg [09:54] dominictarr: (i'll do everything to talk you out of outlook) [09:55] tanepiper: dominictarr: yea, don't need them - google calendars is fine [09:55] Kingdutch has joined the channel [09:55] tanepiper: i've got android as well so it nicely integrates. i'm not going to use outlook for email anymore [09:55] tanepiper: just for calendar popups [09:55] dominictarr: they like text message you and stuff (so i hear, doesn't seem to work for me here in the antipodes) [09:56] mikedeboer has joined the channel [09:56] FireFly has joined the channel [09:56] tanepiper: US only for texts, but it comes up with notifications - but i usually have my phone on silent anyway [10:01] dominictarr: okay. as long as you don't use it for email. i will let you be. [10:01] mscdex: i dislike top posting personally [10:03] yx has joined the channel [10:05] mhausenblas has joined the channel [10:06] stephank has joined the channel [10:06] ChickRuglia has joined the channel [10:11] herbySk has joined the channel [10:21] thiyag has joined the channel [10:22] Twelve-60 has joined the channel [10:25] thiyag: Hi, we are trying to build a system that will log HTTP POST messages reliably and effectively to the filesystem - is node.js a likely candidate that can be researched for this or should I look elsewhere? [10:29] mscdex: i don't see why not [10:29] thiyag: mscdex: Thank you.. :) [10:30] herbySk: felixge: aroung? [10:30] mscdex: node does http pretty well [10:31] thiyag: Will it be able to buffer and write to the filesystem in an async manner reliably, like letting the client go away after the POST and then reliably put it in the filesystem.. I am still doing my homework and looking at the API.. [10:32] felixge has joined the channel [10:32] felixge has joined the channel [10:36] pietern has joined the channel [10:36] mscdex: thiyag: you can buffer it if you want, or you can write to disk as the data comes in [10:37] thiyag: mscdex: ok, thank you.. time to try it out.. :) good day [10:47] ph^ has joined the channel [10:49] prettyrobots has joined the channel [10:55] mlins has joined the channel [10:56] papandreou has joined the channel [11:01] thiyag has left the channel [11:02] tokumine has joined the channel [11:03] davidc_ has joined the channel [11:03] davidc_ has joined the channel [11:03] mraleph has joined the channel [11:04] Lorentz: gf3: Any idea why this would be happening? https://gist.github.com/149544d4f1bcbe38a797 [11:04] brainproxy: frustrated .. I've got an EventEmitter instance and I'm referencing it's setMaxListeners through another method in another object .. I can change the value but it seems to have no effect on whether the maxListeners warning get tripped [11:04] Lorentz: gf3: It's a very sudden, abrupt error [11:05] mikedeboer has joined the channel [11:05] floby has joined the channel [11:06] floby has left the channel [11:08] q_no has joined the channel [11:14] piscisaureus has joined the channel [11:15] skm has joined the channel [11:19] tokumine has joined the channel [11:27] Misao-chan has joined the channel [11:29] piscisaureus_ has joined the channel [11:31] mikedeboer has joined the channel [11:37] liar has joined the channel [11:40] shaunau has joined the channel [11:40] vyvea has joined the channel [11:43] matjas has joined the channel [11:43] d0k has joined the channel [11:47] davidc_ has joined the channel [11:47] davidc_ has joined the channel [11:48] rnewson has joined the channel [11:49] Sebmaster has joined the channel [11:49] Sebmaster: there we go [11:49] Sebmaster: nice people in #nodejs [11:51] nichdiekuh has joined the channel [11:53] Poetro has joined the channel [11:54] zorzar_ has joined the channel [11:55] skm has joined the channel [11:55] rjnienaber has joined the channel [12:00] Country has joined the channel [12:01] p_nitsch has joined the channel [12:02] devkorcvince has joined the channel [12:05] jetienne: hi [12:10] shaunau: hi jet [12:10] unomi has joined the channel [12:15] saschagehlich has joined the channel [12:17] mhausenblas has joined the channel [12:19] adambeynon has joined the channel [12:20] evl has joined the channel [12:21] lukegalea has joined the channel [12:22] lukegalea has joined the channel [12:22] jacobolus has joined the channel [12:24] lukegalea_ has joined the channel [12:25] tc77 has joined the channel [12:27] fairwinds has joined the channel [12:30] jetienne has joined the channel [12:32] sudhirjonathan has joined the channel [12:34] FireFly|n900 has joined the channel [12:35] FireFly|n900 has joined the channel [12:35] lukegalea has joined the channel [12:35] FireFly|n900 has joined the channel [12:36] FireFly|n900 has joined the channel [12:36] jetienne has joined the channel [12:37] FireFly|n900 has joined the channel [12:37] dominictarr has joined the channel [12:37] FireFly|n900 has joined the channel [12:38] FireFly|n900 has joined the channel [12:38] Marnixvdb has joined the channel [12:39] FireFly|n900 has joined the channel [12:39] FireFly|n900 has joined the channel [12:40] FireFly|n900 has joined the channel [12:41] FireFly|n900 has joined the channel [12:41] FireFly|n900 has joined the channel [12:42] FireFly|n900 has joined the channel [12:42] markwubben has joined the channel [12:42] ziro`_ has joined the channel [12:42] ziro`_: where are we at wit Wb Workers? [12:43] ziro`_: Web Workers? [12:45] Tom-_ has joined the channel [12:46] markwubben has joined the channel [12:46] Tom-_: Hi folks. I am having problems with readStream pause/resume. When I pause and resume the readStream of a file very often, sometimes the readStream.resume() causes the file descriptor to be destroyed for some reason. Are there any known issues with this? [12:47] piscisaureus_ has joined the channel [12:47] syntheze has joined the channel [12:47] ziro`_: :/ [12:48] Poetro: ziro`_: i think web workers is a browser concept [12:48] Poetro: you can simulate such things with processes [12:49] RevoOf has joined the channel [12:50] RevoOf: hello. using express, what middleware would you choose to serve some static resources? [12:50] Poetro: ziro`_: http://nodejs.org/docs/v0.2.6/api.html#child_process-spawn-95 [12:51] ziro`_: brill ta [12:51] Poetro: connect.staticProvider(__dirname + '/public') [12:51] Poetro: RevoOf: ^ [12:51] Poetro: it is also in present in your express app object [12:52] RevoOf: Poetro: wow, its build in :) thank you [12:52] Poetro: RevoOf: app.use(express.staticProvider(__dirname + '/public')); [12:53] pt_tr has left the channel [12:54] Poetro: RevoOf: it serves every file in the public dir by its name... for example if u have public/style.css you can reference that by http://localhost/style.css etc. [12:55] RevoOf: yes, thank you. it works [12:56] RevoOf: ACTION is happy, that it even serves index.html if one is on / [12:56] kawaz_work has joined the channel [12:58] FireFly|n900 has joined the channel [12:58] liar has joined the channel [12:58] FireFly|n900 has joined the channel [12:58] FireFly|n900 has joined the channel [12:58] jpstrikesback has joined the channel [12:58] erwe has joined the channel [12:58] erwe: hai \ò\ [12:59] erwe: er [12:59] erwe: hi [12:59] FireFly|n900 has joined the channel [13:00] FireFly|n900 has joined the channel [13:00] FireFly|n900 has joined the channel [13:01] FireFly|n900 has joined the channel [13:03] erwe: installing node.js \ò/ [13:09] MattDiPasquale has joined the channel [13:10] franck34: hi [13:11] franck34: i'm testing node 0.3 for SSL stuff [13:11] franck34: i'm using "connect" too [13:12] franck34: question: how to setup ssl using "connect". I've read http://www.loggly.com/2010/09/node-js-ssl-server-example/, now i'm looking/trying to understand how i can do that using "connect" [13:12] franck34: https://github.com/senchalabs/connect [13:12] franck34: any help is welcome, thanks a lot ;) [13:13] franck34: (got my private key, server key, credential object is ok, now just looking how to setSecure the http server of the objet returned by "connect" [13:14] franck34: is "visionmedia" from github in the room ? [13:19] Poetro: franck34: $ npm view connect maintainers [13:20] franck34: Poetro: thx [13:24] Remoun has joined the channel [13:24] Poetro: franck34: as i c from https://github.com/senchalabs/connect/blob/master/lib/connect/index.js it doesnt support SSL atm [13:25] Poetro: as it uses basic HTTP server [13:25] erwe_ has joined the channel [13:26] erwe_: except Utils.WafError, e: [13:26] erwe_: ^ [13:26] erwe_: SyntaxError: invalid syntax [13:26] erwe_: :( [13:28] bshumate has joined the channel [13:28] bshumate has joined the channel [13:28] Poetro: erwe_ what is your Python version? [13:28] jpstrikesback has joined the channel [13:28] sudhirjonathan has joined the channel [13:28] jpstrikesback has joined the channel [13:29] franck34: Poetro: ok, thx [13:29] erwe_: Poetro: 3.1.. i installed 2.7 and set the the usr/bin/env python to that version, I managed to ./configure but I still get that error in "make" [13:30] erwe_: :( [13:30] Poetro: franck34: maybe try server.setSecure [13:31] Nevtus has joined the channel [13:31] Nevtus has joined the channel [13:31] Poetro: erwe_: it worked with Python 2.5 and 2.6 for me [13:32] Poetro: franck34: in case of node 0.2.x at least [13:32] franck34: i'm using > 0.3.x [13:32] mikedeboer has joined the channel [13:32] franck34: notice i'm a noob [13:33] franck34: when i console.log(myConnectObject), i don't see the main http server [13:33] franck34: so i can setSecure at the moment [13:33] franck34: can't [13:34] Poetro: franck34: in 0.3.x the secure http server changed [13:34] Poetro: so it is not that easy [13:34] jpstrikesback has joined the channel [13:34] Poetro: franck34: you'd have to switch larger parts of connect before even initialize the connection [13:35] franck34: you mean i have to patch "connect" ? [13:36] franck34: to enable ssl support directly and purpose a pull in github ? [13:36] Poetro: franck34: you can do it runtime [13:36] Poetro: you dont have to change any files [13:36] franck34: ok [13:36] erwe_: argh errro [13:36] erwe_: *error [13:36] erwe_: :( [13:36] mape: https.request(options ... so what are the options? [13:36] Poetro: http://nodejs.org/docs/v0.3.8/api/https.html#https.Server [13:36] franck34: ACTION reading [13:37] hassox has joined the channel [13:37] franck34: mmm testing something [13:37] emacsen has joined the channel [13:37] Poetro: franck34: so you'd have to change https://github.com/senchalabs/connect/blob/master/lib/connect/index.js#L65 to use https.Server [13:37] montylounge has joined the channel [13:37] RevoOf1 has joined the channel [13:38] Poetro: franck34: same goes to https://github.com/senchalabs/connect/blob/master/lib/connect/index.js#L81 [13:39] Poetro: franck34: in your case that'd be [13:39] Poetro: connect.Server = function ... [13:39] Poetro: connect.Server.prototype.__proto__ = ... [13:39] Poetro: and there might be some other cases [13:39] Poetro: oh, the connect.createServer [13:40] Sami_ZzZ has joined the channel [13:40] Poetro: franck34: ^ [13:40] lukes has joined the channel [13:40] astoon has joined the channel [13:41] franck34: you mean i can put "connect.Server = function ... " before do the "connect.createServer", in my own code, no need to patch "connect" so ? [13:41] franck34: ACTION testing [13:41] franck34: thx a lot [13:42] Poetro: franck34: yes, before u use any connect features change those [13:43] franck34: i see [13:43] franck34: ACTION learning [13:43] Poetro: franck34: it is really similar to overwriting browser object [13:45] kriszyp has joined the channel [13:45] Poetro: franck34: and if u r done make a gist and promote it on a ticket on connect or the wiki or somewhere [13:48] dominictarr has joined the channel [13:48] bmp has joined the channel [13:49] sudhirjonathan has joined the channel [13:49] matbee has joined the channel [13:51] franck34: Poetro: yep, can be usefull for anybody [13:52] beawesomeinstead has joined the channel [13:53] ttpva has joined the channel [13:53] broofa has joined the channel [13:54] brainproxy: anyone know anything about mysterious javascript that will cause Mac Safari 5 to nearly kernel panic your machine while all other browsers are okay with it? [13:54] Sebmaster: is it possible, that object.method.bind(this) is slowing the call down by approx 30ms? [13:54] Sebmaster: brainproxy: lol? [13:55] brainproxy: apparently I have some in my cross-environment js codebase, but I'm scratching my head [13:55] syntheze has joined the channel [13:55] brainproxy: trying to figure out what the heck it might be that's causing Safari to go crazy [13:55] brainproxy: and it's just with this code [13:56] tfcoding has joined the channel [13:56] dipser_ has joined the channel [13:56] brainproxy: i tried to two different macs to make sure it wasn't something wrong with the one .. same one both ;p [13:58] erwe: k i'll try with AUR :| [13:59] erwe: should I go with 2.x or 3.x? [13:59] Tom-_ has joined the channel [14:00] jonaslund: brain: report to safari team maybe ? [14:00] brainproxy: yeah, if I can't figure it out I will [14:00] jonaslund: if it's borking up the browser it might be a potential security hole [14:00] brainproxy: every other browser I've tried rips through it in under a sec [14:01] jonaslund: or is it just slow? [14:01] brainproxy: no, as soon as the page load, I get the rainbow wheel and the machine almost kpanics [14:01] jonaslund: there is no almost in a kernelpanic :) [14:01] jonaslund: unless it's a delayed panic [14:01] brainproxy: well what I mean is that when Safari used to kpanic all the time on me [14:01] Vertice has joined the channel [14:01] jonaslund: due to memory corruption [14:01] brainproxy: before I gave it up for chrome [14:01] brainproxy: that's what it's actin glike [14:02] brainproxy: where it suddenly locks up [14:02] erwe: what's the difference between 2.x and 3.x? [14:02] jonaslund: erwe: there is a page on the wiki about that [14:02] brainproxy: erwe: w/ respect to node.js versions? [14:03] brainproxy: just compile the master branch .. you'll be fine [14:03] brainproxy: <_< [14:03] jonaslund: erwe: mostly there are some smaller api changes where things have moved around but are functionally mostly the same. some instances of changed behaviour (but there is some backwards compat in places for that) [14:03] abraham has joined the channel [14:04] jonaslund: erwe: If you are using windows i'd say start with 2.x for now 3.x is kinda broken on windows for most parts [14:04] franck34: Poetro: seem's it more complicated to override 'connect' (doesn't work) rather than %s/http/https directly in connect/index.js (it works) [14:04] jonaslund: (Some of us are working on trying to get it better) [14:05] erwe: jonaslund: i'm using archlinux [14:05] Poetro: it s a bit more complicated, as the parameters have changed [14:05] erwe: x86_64 [14:05] jonaslund: erwe: 3.8 is the latest 3.x release [14:05] brainproxy: erwe: maybe install a tool like nvm and experiment with versions [14:05] jonaslund: smoking hot [14:05] brainproxy: I'm currently using 0.3.6 [14:05] franck34: Poetro: yep, no luck on mys side atm [14:05] brainproxy: and it's great [14:05] brainproxy: w/ nvm couldn't be easier to switch versions [14:05] brainproxy: nvm use v0.2.8 [14:06] franck34: ACTION making a pause [14:06] brainproxy: nvm use v0.3.6 [14:06] brainproxy: etc. [14:06] Poetro: franck34: when i'll have time i'll experiment with that, but now i have some droid work to complete [14:06] brainproxy: though you'll need to `nvm install` a version before you can use it [14:08] bingomanatee has joined the channel [14:09] bingomanatee: hello all [14:09] bingomanatee: qcshzt: you have a mongo question? [14:15] markwubben has joined the channel [14:18] pHcF has joined the channel [14:19] Sebmaster: calls to functions created with .bind() are so slow :( [14:19] Sebmaster: http://jsperf.com/compare-bind [14:19] Blink7 has joined the channel [14:19] Sebmaster: i guess ill save my object into the connection instead of doing .bind() on the callback [14:20] jashkenas has joined the channel [14:20] Tom-_: Can anyone explain why my writeStream.end() and .destroy() caus a EBADF (bad file descriptor error) here? https://gist.github.com/812484 [14:22] pomodoro has joined the channel [14:32] jpstrikesback has joined the channel [14:34] franck34: Tom-_: is someFile.csv created ? [14:34] Tom-_: franck34: it is being created by node [14:34] franck34: are you sure you are allowed to write this file in the directory you are ? [14:34] Tom-_: or overwritten [14:34] Tom-_: franck34: yes, writing works just fine [14:35] franck34: k [14:35] Tom-_: franck34: it all works, but the stream.destroy() causes a EBADFD error when the input stream finished and I stopped writing [14:36] franck34: can you test what append if you move writeStream.removeAllListeners('drain'); AFTER end/destroy [14:36] franck34: ? [14:38] Tom-_: franck34: alright, but I cannot see how that would influence anything - it merely removes an element from an array [14:38] Tom-_: I will try it asap though [14:39] peol has joined the channel [14:39] peol has joined the channel [14:40] Tom-_: franck34: just stream.end works fine [14:40] Tom-_: but with stream.destroy it causes EBADFD [14:43] franck34: does destroy is mandatory ? [14:43] herbySk has joined the channel [14:43] Tom-_: franck34: I don't know, is it not? [14:43] Tom-_: it makes sense to use it right? [14:44] Tom-_: cannot just leave a file open? [14:44] Tom-_: end simple sends a FIN package [14:44] Aikar: http://a1.sphotos.ak.fbcdn.net/hphotos-ak-snc6/hs259.snc6/180749_10150148827116281_589866280_8387435_4339202_n.jpg [14:44] Aikar: te question is [14:44] Aikar: so [14:44] Aikar: take this in to work [14:44] Aikar: or leave at home to shoot cats [14:44] Aikar: i bought it for work [14:44] Aikar: but shooting my cats was fun [14:45] Tom-_: Aikar: it looks like a toy [14:45] Aikar: it is [14:45] Aikar: its a nerf gun [14:45] Tom-_: oh :) [14:45] adambeynon: how can i access global variables from node repl? scripts access them fine, but i need to use them from node repl [14:45] Aikar: fully auto with 3 18 round clips :D [14:45] pHcF: http://stackoverflow.com/questions/4907442/safari-5-reseting-session-cookies-with-jquery-http-request any idea guys? [14:45] Aikar: pHcF: #javascript prolly better [14:46] pHcF: yeah i asked there too :/ [14:46] mape: #jquery ? [14:46] Aikar: ah [14:47] franck34: Tom-_: i don't know, but perhaps .end() is closing the stream AND destroy the stream, so you are trying to destroy an already destroyed stream [14:47] franck34: just a supposition [14:47] franck34: need to go [14:47] franck34: so you [14:48] Aikar: Tom-_: both my coworkers are armed, one has one bigger than that, but that was biggest i could find lol [14:49] Tom-_: franck34: hmm according to the API it does not do that [14:49] Tom-_: Aikar: they take that to work ? :p why on earth [14:50] Aikar: Tom-_: its won the "Best place to work" in our state for past 2-3 years :P [14:51] Tom-_: Aikar: because people take guns to the office? :) [14:51] Aikar: we got a slide going from 3rd to 2nd floor, xbox360, wii, fuusball, ping pong tables, free soda, great work environment, tons of free food [14:51] Aikar: its just a relaxed place lol [14:51] kal-EL_ has joined the channel [14:52] Aikar: http://www.youtube.com/watch?v=mCRp-3ZpHmQ [14:56] Aikar: gotta bounce, peace [14:59] Mike_Rice has joined the channel [14:59] pauls has joined the channel [15:02] RevoOf1: hi. i have another case where there are a lot of modules for the same purpose. which would you recommend to connect to mongodb? [15:03] maushu has joined the channel [15:08] piscisaureus has joined the channel [15:09] unomi has joined the channel [15:09] pauls: mongoose is worth checking out, but it depends on specifically what you need. i don't think mongoose can let you customize map reduce functions yet [15:10] Tom-_: Aikar: haha you must have a boss who won the lottery [15:12] altamic has joined the channel [15:12] chrischris has joined the channel [15:12] masondesu has joined the channel [15:14] maritz has joined the channel [15:22] liar has joined the channel [15:25] perlmonkey2 has joined the channel [15:26] dnyy has joined the channel [15:29] markstory has joined the channel [15:31] c4milo1 has joined the channel [15:33] marcpeabody has joined the channel [15:33] anupbishnoi has joined the channel [15:34] cronopio has joined the channel [15:34] anupbishnoi: hi. i can't seem to get couchdb to work in node [15:35] anupbishnoi: https://gist.github.com/812527 [15:35] jtsnow has joined the channel [15:36] anupbishnoi: Trait throws a TypeError after being called from couchdb [15:36] anupbishnoi: can help me? [15:36] anupbishnoi: my project depends on this [15:36] anupbishnoi: https://gist.github.com/812527 [15:37] Sbioko has joined the channel [15:37] anupbishnoi: TypeError: Object.getOwnPropertyNames called on non-object [15:37] syntheze has joined the channel [15:37] Sbioko: Hello! [15:38] Sbioko: I have a problem: node.js outputs JSON to console, but not to the browser http://pastie.org/1531286 [15:38] Sbioko: Please help! [15:38] maritz: i'll take a look at both, but can't promise anything. and first i have to get my coffee from the kitchen :P [15:39] hij1nx has joined the channel [15:40] Sbioko: anyone/ [15:40] chapel: anupbishnoi: have you tried using the couchdb module in a file and not the repl? [15:40] Sbioko: ? [15:40] anupbishnoi: chapel: yeah [15:40] anupbishnoi: same error [15:40] Sbioko: chapel: hi :-) [15:41] anupbishnoi: chapel: should i post the results from the file? [15:41] Imperion has joined the channel [15:41] anupbishnoi: maritz: have a great coffee :) [15:41] chapel: yeah might help [15:42] maritz: Sbioko: what does it output? [15:42] chapel: Sbioko: looking at your code, doing res.end outside of the mongo call is going to have it end the connection before the mongo call finishes [15:42] Imperion: um, I'm having some trouble with Express: the server has suddenly stopped regenerating my CSS when I modify my Less scripts [15:43] Sbioko: maritz: to the console = JSON, browser - nothing [15:43] chapel: you need to have the res.end() after res.write [15:43] maritz: chapel: damnit, that was too obvious, i didn't even look at the last line :D [15:43] Sbioko: damn [15:43] Sbioko: chapel: you are right again [15:43] maritz: oh and Sbioko: Content-Type for JSON is application-x/json afaik. [15:43] Sbioko: :-D [15:43] Sbioko: it works [15:43] perlmonkey2 has joined the channel [15:43] Sbioko: maritz: it does not matter [15:44] maritz: only because your client is forgiving :P [15:44] chapel: or 'Content-Type': 'application/json' [15:44] anupbishnoi: chapel: here's the output https://gist.github.com/812527#comments [15:44] Sbioko: maritz: maybe :-) [15:44] Sbioko: thanks guys! [15:44] maritz: Imperion: suddenly? that seems unrealistic. there has to be a cause ;) [15:44] maritz: did you update express? [15:45] anupbishnoi: i'm using express 1.0.3 [15:45] Imperion: yes [15:45] Imperion: last night updated everything [15:45] maritz: Imperion: and since then it's not working? [15:45] maritz: previous version was? [15:45] Imperion: *shrug* [15:46] maritz: :D [15:46] maritz: npm list express [15:46] maritz: you'll see which ones are installed [15:46] Imperion: 1.0.0 or 1.0.1 [15:47] bshumate has joined the channel [15:47] bshumate has joined the channel [15:47] Imperion: I think it's 1.0.1 [15:47] anupbishnoi: output from [15:47] anupbishnoi: npm ls installed | grep express [15:47] anupbishnoi: is express@1.0.3 [15:48] Imperion: eeek [15:48] Imperion: I just ran sudo npm update [15:48] maritz: anupbishnoi: sorry, didn't mean you with that. i actually have never used mongodb or traits and can't really help you :( [15:48] Imperion: Connect got updated [15:48] Imperion: now an error [15:48] Imperion: in express [15:48] Imperion: shiiit [15:49] Imperion: how do I roll back? [15:49] maritz: npm install connect@x.x.x [15:49] maritz: or npm activate connect@x.x.x [15:49] anupbishnoi: anybody here used couchdb from npm? [15:49] maritz: if you have it installed already [15:50] Imperion: done [15:50] chapel: anupbishnoi [15:50] Imperion: it works again [15:50] Imperion: 0.5.7 [15:50] chapel: looks like you are mixing modules [15:51] chapel: anupbishnoi: couchdb on npm is not node-couchdb on github by felixge [15:51] chapel: https://github.com/nrstott/couchdb-commonjs << that is couchdb on npm [15:52] chapel: and saveDoc takes doc, and options as the two args [15:53] dipser has joined the channel [15:53] Gruni has joined the channel [15:53] chapel: https://github.com/nrstott/couchdb-commonjs/blob/master/lib/couchdb.js#L353 [15:56] RevoOf1 has left the channel [15:59] Marnixvdb has joined the channel [16:01] Gruni has joined the channel [16:02] anupbishnoi: chapel: thanks a lot. i was really confused about that [16:03] Aikar: yay for being stuck at dealership ;/ [16:03] anupbishnoi: trying out couchdb-commonjs now [16:03] sudoer has joined the channel [16:05] mr_daniel has joined the channel [16:09] astoon has joined the channel [16:09] anupbishnoi: chapel: do you know what's felixge's couchdb called on npm? [16:10] chapel: umm, not sure if its published on npm anymore [16:10] chapel: try cradle, seems to be somewhat active dev [16:11] anupbishnoi: thanks, trying it [16:11] jchris has joined the channel [16:15] MatthewMueller has joined the channel [16:18] Sbioko has left the channel [16:18] anupbishnoi: chapel: thanks! it worked! [16:19] tsangpo has joined the channel [16:19] chapel: np [16:20] jchris1 has joined the channel [16:22] vyvea has joined the channel [16:22] dustinwhittle has joined the channel [16:24] wdperson has joined the channel [16:25] softdrink has joined the channel [16:25] anupbishnoi has left the channel [16:27] jetienne has joined the channel [16:30] yumike has joined the channel [16:32] mqt has joined the channel [16:33] blowery_off has joined the channel [16:33] quilby has joined the channel [16:33] bingomanatee: Peter or James - you up? [16:34] FireFly has joined the channel [16:34] dominictarr has joined the channel [16:35] quilby: hi when i try to run this program, https://gist.github.com/706829 , right after giving it input it crashes and i get this error http://www.paste-it.com/view/53451966 [16:36] mike5w3c has joined the channel [16:38] SamuraiJack has joined the channel [16:38] quilby: anyone here [16:39] quilby: :( [16:40] devrim has joined the channel [16:41] maushu: quilby, no. [16:41] maushu: Huh, I mean, *silence* [16:41] quilby: ... [16:41] quilby: do you know how to solve my probleM [16:41] quilby: TypeError: Object # has no method 'close' not returning anything from google [16:41] quilby: "TypeError: Object # has no method 'close'" [16:42] maushu: request doesn't have a close function [16:42] maushu: Let me check the api. [16:42] maushu: What version are you using? [16:43] maushu: You probably mean request.end(); [16:44] chapel: yeah its request.end() [16:44] quilby: im using the latest [16:44] quilby: compiled from git [16:44] chapel: though with 0.3.6+ the client code has changed [16:45] chapel: http://nodejs.org/docs/v0.3.8/api/http.html#http.request [16:45] quilby: so now it gives me " TypeError: Object # has no method 'setBodyEncoding' " [16:45] quilby: maybe im missing some library? [16:45] chapel: quilby: check my link [16:45] quilby: i did [16:45] quilby: i changed the .end to .close [16:46] chapel: you mean you changed the close to end? [16:46] chapel: there is more to it than that [16:46] GasbaKid has joined the channel [16:46] quilby: setBodyEncoding was changed to setEncoding ? [16:46] quilby: ill try [16:47] void_ has joined the channel [16:47] quilby: oh ya [16:47] stride: oh, new style docs on the website as well, sweet [16:47] quilby: awesome [16:47] quilby: ya [16:47] quilby: yay* [16:47] quilby: im really happy [16:48] dominictarr has joined the channel [16:48] quilby: im used to programming in c90 so i didnt expect an api change for something so important [16:48] quilby: but its in 0.3 so i understand [16:50] p_nitsch has joined the channel [16:52] jonaslund: umm [16:52] chapel: quilby: https://gist.github.com/812582 [16:52] jonaslund: if you're comparing any revision of C to something it'd be more to the core ECMAScript language [16:54] void_ has joined the channel [16:54] maushu: quilby, the specification is always changing. ryah is the biggest troll ever. :3 [16:54] maushu: Well, besides that guy from evagelion. [16:54] chapel: lol [16:55] chapel: 0.2.x = stable 0.3.x = unstable (but only because of frequent changes) and 0.4.x will be the new stable based on 0.3.x [16:55] stride: hrhr [16:55] jchris1 has joined the channel [16:55] karboh has joined the channel [16:55] maushu: As stable as jello in a earthquake, you mean. [16:56] chapel: its pretty stable [16:56] chapel: people running 0.2.x code have done well [16:56] chapel: and with changes in 0.3.x 0.4 will be awesome [16:57] chapel: quilby: did you check out my changes? [16:57] chapel: can't guarantee that will work since all I did was type it from memory/api pages [16:58] nonnikcam has joined the channel [16:58] stride: somebody here knows if that request rewrite for 0.3.x is already done / on npm? [16:58] chapel: I didn't know that there was an api for steam, heh [16:58] stride: while(true) steam.wasteTime(); [17:00] maushu: node-steam anyone? xD [17:02] quilby: thanks chapel [17:02] chapel: did it work? [17:02] chapel: SteamProfile for chapel · Motto: I like pie! · Rating: 0 · Last Online: 12 days ago · Total Playing Time: 0 hrs past 2 weeks · Member Since: October 15, 2004 [17:03] stride: hmm. pie [17:04] quilby: nope but now i will check why http://www.paste-it.com/view/65776457 [17:04] matjas has joined the channel [17:04] jakehow has joined the channel [17:05] sudhirjonathan has joined the channel [17:05] Sbioko has joined the channel [17:05] Sbioko: who's worked with node-mongodb-native? [17:05] jonaslund: a friend of mine has [17:06] jonaslund: apperantly he was using a fork of it but had some bugs yesterday also [17:06] chapel: quilby: https://gist.github.com/812582 looks like it probably was my fault if you used the code as is [17:06] chapel: I missed }); [17:06] Sbioko: jonaslund: how to remove one record from database? [17:06] jonaslund: ACTION and his friend noticed eachother on the node.js chan yesterday.. we didn't know eachothers as users before :) [17:06] Sbioko: from collectio [17:06] Sbioko: collection [17:06] chapel: then again I am coding primarily in coffeescript [17:06] chapel: so I dont need those :) [17:07] bmavity has joined the channel [17:08] tsangpo has left the channel [17:08] jonaslund: i really can't make up my mind in regards to if indentation is a good way to scope things [17:09] gg411 has joined the channel [17:09] chapel: well good luck all [17:09] chapel: ACTION is going to bed [17:11] herenowcoder has joined the channel [17:12] Tidwell has joined the channel [17:12] dustinwhittle has joined the channel [17:14] hij1nx has joined the channel [17:14] matbee: ho hum [17:15] stride: jonaslund: having done some minor things in python.. you get used to it imho. though I don't feel it's necessarily better / worse than languages with braces notation [17:16] torvalamo has joined the channel [17:16] dominictarr has joined the channel [17:16] Sbioko: so? [17:16] Sbioko: who knows how to delete a record from MongoDB collection using node-mongodb-native package? [17:17] adambeynon has joined the channel [17:17] strmpnk has joined the channel [17:17] Vertice_ has joined the channel [17:17] Vertice_ has joined the channel [17:19] maushu: Sbioko, should be the same as mongodb shell. [17:19] maushu: You know... .remove() [17:19] Sbioko: maushu: it does not work in that way [17:19] Sbioko: wait a sec [17:19] Sbioko: I'll post my code [17:19] maushu: db.collection.remove(obj); [17:20] Sbioko: anyway [17:20] Sbioko: aaah [17:20] Sbioko: I did: collection.remove({ test : test}, callback); [17:21] maushu: If you want to remove a specific object then search for the id. [17:21] maushu: db.collection.remove({_id: obj._id}); [17:31] backinnam_ has joined the channel [17:31] boogyman has joined the channel [17:32] lukegalea has joined the channel [17:39] stagas has joined the channel [17:39] stagas: I have internet! [17:39] Mike_Rice has joined the channel [17:40] stride: congratulations [17:40] shaver: truly, it is the little things [17:41] stagas: just moved so I hoped to pick up a wireless [17:41] stagas: yay! [17:41] stagas: :) [17:41] Blink7_ has joined the channel [17:42] amerine has joined the channel [17:44] lukegalea has joined the channel [17:47] matbee: yay stolen wireless :P [17:48] Me1000 has joined the channel [17:48] void_ has joined the channel [17:49] Imperion: silly people who can't configure their routers [17:49] stagas: lovely people [17:50] tsyd: :D [17:50] Imperion: --stagas [17:50] Imperion: hrm [17:50] Imperion: stagas-- [17:50] v8bot: Imperion has taken a beer from stagas. stagas now has -1 beers. [17:50] tsyd: it's best when people have the default router password [17:51] Imperion: >_> [17:51] matbee: Imperion-- [17:51] v8bot: matbee has taken a beer from Imperion. Imperion now has -1 beers. [17:51] matbee: :) [17:52] bingomanatee: ACTION thinks bits should be free [17:52] Imperion: I'm not extremely crazy about security, but not configuring your router and protecting your network gives me the creeps [17:53] stagas: that's called paranoia [17:53] matbee: me [17:53] matbee: meh** [17:53] bingomanatee: There is a guest mode in routers that let you give people access to the web without getting onto your local network. [17:53] mape: mscdex:Anything new figured out? :) [17:53] Imperion: bingomanatee: that's cool [17:53] bingomanatee: ACTION gave a wireless to his sister for christmas [17:55] Imperion: but from what I hear about the US, I think it's just an invitation for someone evil to load up your PCs with child porn [17:55] RevoOf1 has joined the channel [17:55] stagas: I'm in greece, we don't have laws [17:55] stagas: :P [17:55] stagas: hahah [17:55] RevoOf1: hi, i am using mongoose and it prints "native library not built" to my console [17:56] RevoOf1: what to do? [17:58] Alex123654789 has joined the channel [17:58] jakehow has joined the channel [17:59] Alex123654789: where can I get the os.js library? [18:01] Sbioko has left the channel [18:01] matbee: Imperion, child porn is less likely to pass through american networks than other foreign networks. [18:01] matbee: not to say americans aren't transferring it :P [18:02] markstory has joined the channel [18:02] yozgrahame has joined the channel [18:02] sveimac has joined the channel [18:03] judith has joined the channel [18:03] maritz: anyone here who has experience with OpenAjaxHub? [18:03] bingomanatee: Great. Everyone send their child porn to stagas. [18:04] dominictarr has joined the channel [18:04] yumike has joined the channel [18:04] matbee: haha [18:05] bingomanatee: I think in the us in particular and elsewhere child porn is a total red flag to law enforcement. Avoid it with a ten foot pole. You will get the worst possible persecution for getting anywhere near that stuff - it will wreck your life guaranteed. [18:05] Alex123654789: where can I get the os.js library? [18:05] gg411 has joined the channel [18:06] judith: I am having trouble with installing from source on Ubuntu 9.10. the only version of js2c I can find seems to be mismatched, requiring 3 args but only gets 2. [18:06] Alex123654789: and I am still wondering where to get the os.js library :3 [18:07] lukegalea has joined the channel [18:08] bingomanatee: I thought mogoose was still in stealth - can anyone get ahold of the latest burn of mongoose? what do I have to do to get me some? [18:09] bingomanatee: ACTION has serious cobra problems [18:09] Alex123654789: seems like I will never know :3 [18:09] bingomanatee: have you checked on git? Most node stuff is on git. [18:09] dominictarr has joined the channel [18:10] Alex123654789: I was on github [18:10] Alex123654789: But I have no clue where to look [18:10] Alex123654789: I looked in several folders [18:10] bingomanatee: if I do a search for os.js on github and find it I'm going to smack you [18:10] shaver: what does the os.js library do? [18:10] Alex123654789: It gives information [18:11] Alex123654789: about the OS [18:11] Alex123654789: that node.js is being ran on [18:11] shaver: how do you know that it exists, if you can't find it? [18:11] shaver: (I'm serious, trying to get enough clues to figure out how to find it) [18:11] Alex123654789: I read about it in the documentation [18:11] shaver: it's built in [18:11] Alex123654789: + some other library requires it [18:11] jacobolus has joined the channel [18:11] shaver: require('os') is sufficient [18:11] judith: I got it from http://v8.googlecode.com/svn/trunk/tools/js2c.py. Is there another version of this around that I am not finding? [18:11] shaver: is that erroring for you? [18:12] jashkenas has joined the channel [18:12] bingomanatee: https://github.com/280north/narwhal/tree/master/lib [18:12] Alex123654789: when I require it I get [18:12] Alex123654789: Error: Cannot find module 'os' [18:12] shaver: which documentation did you read about it in? the core node stuff is all included [18:12] SvenDowideit has joined the channel [18:12] shaver: do you have the version of node matching the docs? [18:12] Alex123654789: Mhm, newest version [18:12] bingomanatee: documentation? ha ha! [18:13] bingomanatee: [18:14] Blink7 has joined the channel [18:14] Alex123654789: http://nodejs.org/docs/v0.3.7/api/os.html [18:14] shaver: and what version of node are you running? [18:14] shaver: and how did you install it? [18:15] Alex123654789: D: I fail. [18:15] Alex123654789: Just did node -v and noticed I am running 0.2.6 [18:15] shaver: MYSTERY SOLVED [18:15] Alex123654789: mhm... [18:15] yumike has joined the channel [18:16] Alex123654789: awesome this fail is logged forever @ http://nodejs.debuggable.com/2011-02-05.txt xD [18:17] hangomanatee: and noogle will just make your reputation all the more dismal... :D [18:18] hobodave has joined the channel [18:19] losing has joined the channel [18:19] lukes: if i'm getting "Error: Cannot find module 'connect/utils'" does that mean it can't find the connect module? [18:20] syntheze has joined the channel [18:22] lukes: i'll paste the whole error in case anyone would like to help http://paste.scsys.co.uk/86954 [18:24] stride: it doesn't find the utils part of connect at least. are you sure it's where it should be (git submodule or something that hasn't been initialized maybe?) [18:24] Imperion: got the same when I updated today [18:24] lukes: i installed connect using 'npm install connect' [18:25] Imperion: express 1.0.3 doesn't seem to work with connect 0.5.8 [18:25] lukes: i just starting using node today, so i have minimal idea what i'm doing. [18:25] lukes: ah ha [18:25] FireFly|n900 has joined the channel [18:25] Imperion: npm install connect@0.5.7 [18:25] Imperion: until express gets updated [18:25] lukes: ACTION tries [18:26] lukes: worked! [18:26] lukes: Imperion++ # thanks [18:26] chrischr_ has joined the channel [18:26] Imperion: lukes: remove the hash et al please :P [18:26] lukes: Imperion++ [18:26] v8bot: lukes has given a beer to Imperion. Imperion now has 0 beers. [18:26] Imperion: ^_^ [18:26] lukes: \o/ [18:27] Imperion: Imperion++ [18:27] v8bot: Imperion: Don't cheat! You can't give a beer to yourself. [18:27] Imperion: *shrug* :P [18:27] lukes: you had a negative number of beers? that's a sorry situation. [18:27] lukes: Imperion++ [18:27] v8bot: Imperion is getting too many beers. Don't let Imperion get drunk! [18:28] lukegalea has joined the channel [18:28] Imperion: someone took revenge on me for hating on bad router security [18:28] lukes: harsh [18:29] ceej has joined the channel [18:29] Vertice has joined the channel [18:29] Imperion: but anyway, I don't drink, so meh [18:30] dominictarr has joined the channel [18:30] bingomanatee has joined the channel [18:31] Alex123654789: compiled 0.3.7 and found a bug in os.js [18:32] judith has left the channel [18:32] Alex123654789: It says 10.6.0 instead of 10.6.6 when I call release() [18:33] mjr_ has joined the channel [18:33] thrumins: bingomanatee: ping :) [18:34] stride: Alex123654789: that reports the kernel version I use here. what os are you on? [18:35] Alex123654789: Mac OS X [18:35] Alex123654789: I just took a look at the source [18:35] Alex123654789: Mac uses the third %d as subminor version [18:35] Alex123654789: not as build [18:36] stride: oh, I see [18:36] Poetro1 has joined the channel [18:42] bingomanatee has left the channel [18:44] lukegalea has joined the channel [18:49] hornairs has joined the channel [18:49] pauls has joined the channel [18:51] bmp has joined the channel [18:52] Marnixvdb has joined the channel [18:53] mikeal has joined the channel [18:55] jonaslund: mm, white russian [18:56] syntheze has joined the channel [18:56] p_nitsch has joined the channel [18:57] lukegalea has joined the channel [18:59] benburkert has joined the channel [18:59] tokumine has joined the channel [19:00] aurynn has joined the channel [19:01] prettyrobots has joined the channel [19:01] Me1000 has joined the channel [19:01] skampler: i'll have a white russian [19:02] phiggins has joined the channel [19:05] jonaslund: Take a couple of leaves of mint, and rub it inside your drink glass. leave the leaves inside the glass, add a fair bit of ice and then add 1 part vodka, 1.5 parts of coffee liquor and 5 parts of milk. stir and you're done [19:06] Alex123654789: os.js isnt very compatible with Mac OS X... [19:06] Alex123654789: It says my CPU is a MacBookPro5,4 [19:07] Alex123654789: Although its an Intel Core 2 Duo [19:07] warz has joined the channel [19:07] lukegalea has joined the channel [19:09] mhausenblas has joined the channel [19:09] marcpeabody has joined the channel [19:11] svenlito has joined the channel [19:12] WatermelonStorm has joined the channel [19:12] timemachine3030 has joined the channel [19:16] Spacerat_ has joined the channel [19:17] dgathright has joined the channel [19:18] aurynn: whichever OS structure claims it's a MBP5,4 [19:18] larsemil has joined the channel [19:18] larsemil: love node.js! :) [19:18] Alex123654789: me, too :3 [19:18] ezmobius has joined the channel [19:19] farhadi has joined the channel [19:19] Spacerat_: any socket.io users in here? [19:19] perlmonkey2 has joined the channel [19:20] WatermelonStorm: Spacerat_, here. [19:20] Vertice has joined the channel [19:20] Spacerat_: Does a socket.io server have no way of forcing a client to disconnect, or am I missing something? [19:20] jonaslund: larsemil: do you use node on glesys ? [19:20] WatermelonStorm: As far as my experience goes, it doesn't. [19:20] jonaslund: where are you located btw ? [19:20] WatermelonStorm: I mean, it has no way of actually disconnecting a client, Spacerat_. [19:21] Vertice has joined the channel [19:21] Spacerat_: So I suppose I should just stop responding to clients I want to 'disconnect'? [19:21] larsemil: jonaslund: nixx. on my own virtual server at dalnix.se [19:21] WatermelonStorm: Yup, Spacerat_. [19:22] jonaslund: larsemil: is that some new provider ? [19:22] Spacerat_: I suppose that'll have to do [19:22] Spacerat_: Thanks WatermelonStorm [19:22] WatermelonStorm: No problem. [19:23] larsemil: jonaslund: jup. small company in dalarna [19:23] farhadi: Spacerat_: I think socket.io client has a disconnect method [19:24] farhadi: Spacerat_: see here: https://github.com/learnboost/socket.io [19:24] WatermelonStorm: They must've added that recently, farhadi. [19:25] WatermelonStorm: ... [19:25] WatermelonStorm: farhadi: You're looking at the client library. [19:26] WatermelonStorm: Which DOES have a disconnect method. Spacerat_ wants the server to have a disconnect method. [19:26] WatermelonStorm: So it can force a client to disconnect. [19:26] farhadi: you can send a message to the client to disconnect. [19:26] WatermelonStorm: Yup. [19:27] dominictarr has joined the channel [19:27] Spacerat_: And then just hope that the client responds. [19:27] WatermelonStorm: It doesn't need to respond to it. Kinda. [19:27] q_no has joined the channel [19:27] Spacerat_: well, respond as in disconnect when the server tells it to [19:27] aheckmann has joined the channel [19:27] WatermelonStorm: I mean, you could make the server ignore any new traffic from the client and immediately after that send a disconnection notice. [19:27] Alex123654789: with a FIN [19:28] Alex123654789: But shouldnt it be possible to send a FIN via the socket.io server? [19:28] Spacerat_: That's probably what I'll do WatermelonStorm [19:28] ryanfitz has joined the channel [19:30] larsemil: how do i figure out the "id" for a connection using net.server? [19:31] jonaslund: cookies/session maybe ? [19:31] rjnienaber has joined the channel [19:34] lukegalea has joined the channel [19:35] GasbaKid has joined the channel [19:37] mscdex: mape: i think i can change the input and output file descriptors that ncurses uses, but that means you'll have to add something extra to your piping command [19:40] aklt has joined the channel [19:43] GasbaKid has joined the channel [19:45] zomgbie has joined the channel [19:46] bmp has joined the channel [19:48] davidthings has joined the channel [19:48] mape: mscdex: well that sounds neat [19:50] larsemil: anyone have any experience with socket.io on client side? dont understand the transport option [19:50] Alex123654789: Is nodejs.org running node.js btw? [19:51] Vertice has joined the channel [19:51] jashkenas has joined the channel [19:52] mape: Alex123654789: probly running php [19:52] Alex123654789: hm, if it was ruining node.js that [19:52] Alex123654789: would be pretty cool :3 [19:52] Alex123654789: Its running nginx [19:52] mape: nodejs.org ruining node.js would be awful :S [19:52] Alex123654789: Why? [19:53] mape: Counter productive [19:53] Alex123654789: y? [19:54] torvalamo has joined the channel [19:54] WatermelonStorm: Alex123654789: You said "hm, if it was ruining node.js that". [19:54] WatermelonStorm: Note "ruining". [19:54] Alex123654789: lol [19:54] Alex123654789: I meant running xD [19:55] Mike_Rice has joined the channel [20:00] razvandimescu has joined the channel [20:02] franck34: v8: console.log('test'); [20:02] v8bot: franck34: CONSOLE: ["test"], OUTPUT: undefined [20:02] franck34: v8: 'foo'.match('oo' [20:02] v8bot: franck34: SyntaxError: Unexpected end of input [20:02] warz: `v git v8bot [20:02] franck34: v8: 'foo'.match('oo'); [20:02] v8bot: franck34: ["oo"] [20:02] v8bot: warz: eisd/v8bot - GitHub - https://github.com/eisd/v8bot [20:02] maritz: i might just kill someone soon... preferably an openajaxhub dev... i get "window.parent.parent.OpenAjax.hub.IframeContainer._containers[id] is undefined". when i set a breakpoint to the line that throws this (in a catch(e) no less) in firebug it never stops there. wtf? [20:03] franck34: v8: 'foo?bar'.replace('?',''); [20:03] v8bot: franck34: "foobar" [20:03] franck34: v8: 'foo?bar'.replace('?.*',''); [20:03] v8bot: franck34: "foo?bar" [20:03] larsemil: to talk with node.js from a javascript on a web page, is socket.io the way to go or is there any else? [20:03] franck34: v8: 'foo?bar'.replace('\?.*',''); [20:03] v8bot: franck34: "foo?bar" [20:03] stride: franck34: that bot supports conversations in a query [20:04] franck34: sorry for noise [20:04] franck34: stride: i just understood sry [20:04] maritz: v8: 'foo?bar'.replace(/\?.*/, '') [20:04] v8bot: maritz: "foo" [20:04] maritz: :P [20:04] larsemil: to talk with node.js from a javascript on a web page, is socket.io the way to go or is there any else? [20:04] franck34: larsemil: yes [20:04] stride: :) no problem [20:04] larsemil: franck34: wonderful. [20:04] franck34: larsemil: that's what i'm using, it's one of the way [20:04] franck34: thx maritz :) [20:05] maritz: franck34: np. ;) [20:05] larsemil: franck34: do i need to run socket.io on the server then as well? [20:05] maritz: if you pass a string it's not automagically taken as a regex [20:05] maritz: larsemil: you don't _need_ to, but it's rather convenient. :D [20:05] stride: larsemil: or just plain old xmlhttprequests if you don't need to push from the server / want the 'realtime' buzzword for your app :) [20:06] franck34: larsemil: yes it's better, because socket need some js files, and socket.io already take care of that. But you can make js files loaded yourself too [20:06] farhadi has left the channel [20:06] larsemil: franck34: ok will look into it. dont find any good examples though [20:06] stride: `v git node-boilerplate [20:06] v8bot: stride: robrighter/node-boilerplate - GitHub - https://github.com/robrighter/node-boilerplate [20:07] softdrink has joined the channel [20:07] stride: that should be a basic express app with socket.io support larsemil [20:07] stride: (iirc) [20:10] larsemil: stride: is Socket.IO-node something else then Socket.IO? [20:10] maritz: it's the node.js (server) part. [20:10] larsemil: i dont understand. [20:10] larsemil: and in that example, what is express? [20:11] maritz: Socket.IO is for the browser, Socket.IO-node is for the server. (at least afaik) [20:11] stride: express is a framework for webapps, takes care of request routing etc [20:11] larsemil: okey. [20:11] larsemil: well i am not writing a webb app. [20:11] stride: if you want something smaller, I'd suggest following the code snippets on the socket.io website (they had some serverside stuff there as well) and debugging from there ;) [20:11] larsemil: i need a tcp server listening and sending some data [20:11] franck34: hehe. Patched connect.session to update the session only when uri match some regexp [20:12] stride: larsemil: well, if you want it to communicate with the browser you'll need http anyway [20:12] cdibened has joined the channel [20:12] larsemil: stride: is it not possible to run a tcp client in the browser side js? [20:12] cdibened has left the channel [20:12] bmizerany has joined the channel [20:13] stride: even with websockets and it's initial upgrade request, so there's some http involved prior to the bidirectional communication [20:13] stride: -and [20:13] tfe_ has joined the channel [20:13] stride: so, no, not really [20:14] larsemil: okay. [20:14] stride: the upside of socket.io is that it offers fallback "transports" (from xmlhttprequest to an embedded flash object) for incapable browsers, as well as the serverside stuff you [20:15] stride: and then you just use one common interface on both sides, without worrying about the transport [20:15] larsemil: only thing i need to send are some variables. like one struct from client to server and another one from server to client. [20:16] stride: multiple times? or just once per page view? [20:16] larsemil: stride: lots and lots of times [20:17] stride: hmkay, yeah, socket.io would still be a good choice there imho [20:18] larsemil: okay. will look into it. rather new to js so its a bumpy road.. :D [20:18] stride: if you want some more introductory stuff on socket.io, there should be blogposts on it at howtonode.org and a few video sessions at camp.nodejs.org [20:18] stride: ah, you'll get used to it ;) [20:19] neocoder has joined the channel [20:20] dgathright has joined the channel [20:20] stride: meh. I need a mock stream. anybody has a StringStream function laying around? :) [20:21] jacobolus has joined the channel [20:21] larsemil: stride: not much info on socket.io on the howtonode.org [20:22] dgathright_ has joined the channel [20:22] Tidwell has joined the channel [20:22] stride: yeah, just realized that. there are some blog posts mentioned on the socket.io website, maybe they'll help [20:22] Tidwell has joined the channel [20:23] stride: under "Resources" [20:24] stride: but it shouldn't be that hard. simply implement the server and client side code on the socket.io website and start from there [20:24] nook has joined the channel [20:25] extra11 has joined the channel [20:25] extra11: hi [20:26] Alex123654789: bye [20:26] Alex123654789 has left the channel [20:27] mhausenblas has joined the channel [20:27] braddunbar has joined the channel [20:28] braddunbar: hey all [20:28] Mike_Rice: ryah: Has anymore been done to the connection pooling, in particulary defining max connections to a host? [20:32] boaz has joined the channel [20:32] larsemil: var socket = new io.Socket(xplosion.g00.se,{port=9000}); [20:32] larsemil: aint working! [20:33] slickplaid: port: 9000 [20:33] slickplaid: not = [20:33] larsemil: ah [20:33] dipser has joined the channel [20:34] stride: ircretary: remind isaacs that I disagree with his last tweet [20:34] ircretary: stride: I'm not sure what to do with that command. Ask for help in PM. [20:34] stride: meh [20:35] skm has joined the channel [20:35] larsemil: http://xplosion.g00.se/ could anyone just please look at this... if i just could get a working connection i had something to start working with [20:35] mcottondesign has joined the channel [20:36] tanepiper: stride: about the waffles? [20:36] tanepiper: oh the semi colons [20:36] stride: the semicolons. I hate reading JS w/o semicolons.. :) [20:36] tanepiper: yea, i agree in JS - but you should try coffeescript :D actually refreshing not to use them [20:36] larsemil: never mind i got it working [20:37] stride: JS never annoyed me enough on a syntax level to even try coffeescript to be honest [20:38] Sebmaster: ^ [20:38] tanepiper: me too, but i tried it anyway and it was quite refreshing [20:39] stride: really? hmkay, I'll put it on "the list"(Copyright by Infinite-FIFO 1990-2011).. :) [20:39] Max-Might has joined the channel [20:39] ROBOd has joined the channel [20:39] wadey has joined the channel [20:43] jspiros has joined the channel [20:45] tanepiper: stride: it might not be for everyone i'll admit, but what it adds like for/of, Conditional Assignment, splats, Destructuring Assignment and string interpolation [20:45] tanepiper: is good [20:45] tanepiper: i really like string interpolation, cleans up stuff so nicely [20:46] jchris has joined the channel [20:46] WatermelonStorm: stride: CoffeeScript isn't harder to use from the command line, in fact. [20:46] Ond has joined the channel [20:46] WatermelonStorm: You just need to run "coffee" instead of "node". [20:47] tanepiper: and it has it's repl as well which is just on top of node, so you can do requires in it too [20:47] tanepiper: names = ['Larry', 'Curley', 'Moe'] [20:47] hij1nx has joined the channel [20:47] void_ has joined the channel [20:48] tanepiper: console.log "Hello #{name}" for name in names [20:48] stride: looking at some examples, that actually looks great [20:48] larsemil: stride: but i dont wanna send html data, i just want to send a variable, so then i dont need writehead i guess? [20:48] tanepiper: coffeescript + underscore.js = functional heaven [20:49] stride: larsemil: you always need writehead when using a http server. it writes the HTTP header [20:49] fermion has joined the channel [20:49] tanepiper: stride: yea, i totally wrote it off as useless as first, but then i decided feck it i'd take a weekend and learn it and a lightbulb just went *ping* in my head [20:49] tanepiper: a 100w lightbulb, not one of those energy saving ones [20:49] larsemil: stride: okay. but i dont wanna generate a webpage i just want to send some variable data between server and client [20:50] stride: tanepiper: I always pushed it back on my list because I'd rather concentrate on building stuff in the few time next to my dayjob I have for node/js stuff.. but I guess I'll do that as well. looks like it speeds up coding and results in cleaner code [20:50] stride: tanepiper: mixing coffee and regular js in node is no problem when seperating stuff into modules, right? [20:51] stagas has joined the channel [20:51] stride: larsemil: that doesn't matter really [20:51] tanepiper: yes, you can mix coffee and JS [20:51] tanepiper: also you can do `function() ....` stuff when coffeescript just doesn't quite fit [20:51] tanepiper: it won't do 100% of things [20:51] sveimac has joined the channel [20:51] stride: larsemil: you have the header and after that the body that can contain whatever string / data you want. with the socket.io examples. put your variables where it uses html [20:52] dguttman has joined the channel [20:52] WatermelonStorm: You can in fact require() libraries written in normal JS from CoffeeScript. [20:52] WatermelonStorm: It works perfectly fine. [20:52] mjr_ has joined the channel [20:53] tanepiper: yea, anything that's in npm can be used [20:54] stride: ok, great, thanks guys [20:55] tanepiper: stride: slightly older code: https://gist.github.com/4c26528b1045b818e336 [20:56] tanepiper: infact, this is better https://gist.github.com/5cc1583106b8235502df [20:56] tanepiper: about line 64 down [20:57] richcollins has joined the channel [20:57] tanepiper: a lot of async going on there, but no parens [20:57] stride: is that setting the parameter called layout? res.render 'signup/page', layout: 'layout_public' [20:58] tanepiper: thats the same as res.render('signup/page', { layout: 'layout_public' }) [20:58] stride: ah, I see [20:59] larsemil: on the client i do socket.send("hej"); on the server i want to retrieve this so i do client.on('message', function(){console.log()}) but what should i put in console.log to retrieve the message? [20:59] sh1mmer has joined the channel [20:59] tanepiper: if i bumped layout to the next line, then after that i could do something like this: https://gist.github.com/423bad525b0ab1d83722 [21:01] stride: I'm just going through http://jashkenas.github.com/coffee-script/ I already love it for splats and the "eat food for food in ['toast', 'cheese', 'wine'] [21:02] stride: " example [21:02] hellp has joined the channel [21:02] dude has joined the channel [21:05] franck34: idea [21:05] franck34: node-apache [21:06] franck34: a simple http server which is "compatible" witch read apache conf files, basicaly for apache/php simple websites [21:08] stride: I thought about that idea a few months ago and figured it wasn't worth the effort. I don't have that many settings where I'd need the existing vhosts / directory settings inside a single node app [21:09] franck34: not wrong [21:13] franck34: how do i revert a change using git ? [21:13] franck34: i mean svn revert bla [21:14] franck34: checkout [21:14] tanepiper: git reset --hard [21:14] tanepiper: if you haven't commited the change [21:14] tanepiper: otherwise [21:14] tanepiper: git stash [21:14] tanepiper: git checkout [21:17] franck34: thx [21:17] philipharrison has joined the channel [21:17] tiemonster has joined the channel [21:17] tiemonster: pisc [21:17] tiemonster: ack [21:17] franck34: ACTION commited changes into fork of connect to be able to update/set session using urlMatch (regexp) [21:17] tiemonster: piscisaureus: are you around? [21:19] tanepiper: franck34: definetly ping tj when he's around - he;s normally on around now [21:20] franck34: ok. There are many pulls on his code .. But strandlly, his last commit is not old (yesterday) [21:20] tanepiper: franck34: yea, basically a lot of the changes right now are focusing on supporting 0.4 [21:21] tanepiper: once that's done, expect other changes to be merged in [21:21] tanepiper: http://bonsaiden.github.com/JavaScript-Garden/ [21:21] tanepiper: ^ dis is nice [21:23] altamic has joined the channel [21:23] altamic has joined the channel [21:24] p_nitsch has joined the channel [21:26] tanepiper: franck34: ouch, you whipped us at the rugby today :D i just saw the score [21:27] cronopio has joined the channel [21:28] franck34: hehehe, after loose in football, tenis, and more, the only sports with win is swiming and rubgy :) [21:33] Sebmaster: guys, i have a quick poll for my mysql client: http://www.acepolls.com/polls/1184803-if-you-set-a-database-column-to-type-time-which-datatype-would-you-like-in-js [21:34] wadey has joined the channel [21:34] Sebmaster: would be happy if i get just a few answers [21:35] floby has joined the channel [21:35] Country has joined the channel [21:36] floby has left the channel [21:37] franck34: done [21:39] Sebmaster: thanks [21:40] dgathright has joined the channel [21:40] arlolra has joined the channel [21:46] blueadept has joined the channel [21:47] rictic has joined the channel [21:47] forzan has joined the channel [21:47] svenlito has joined the channel [21:49] MattDiPasquale has joined the channel [21:50] GasbaKid has joined the channel [21:55] larsemil: how do i include another file.js in my javascript? [21:56] aurynn: larsemil, ? [21:56] SubStack: larsemil: if it's in the same directory, var fileStuff = require('./file') [21:56] SubStack: larsemil: but you have to export what stuff you want to include explicitly [21:57] SubStack: larsemil: http://nodejs.org/api/all.html#modules [21:58] larsemil: thanks [21:59] SubStack: ACTION loves qualified imports so much [21:59] SubStack: otherwise it's too crazy to figure out which functions come from which libraries when you read some code [21:59] jesusabdullah: YOU're a qualified import! [22:00] SubStack: HAH [22:00] SubStack: ACTION imports jesusabdullah to oakland.js [22:00] aurynn: you're both imported [22:01] awenkhh has joined the channel [22:02] rictic: is anyone else having trouble with npm right now? I'm getting timeout exceptions for https://registry.npmjs.org/npm though the non-https site seems to be fine [22:03] GasbaKid has joined the channel [22:05] arlolra: rictic: seems ok to me [22:05] janm has joined the channel [22:06] arlolra: uh wait [22:06] arlolra: why the /npm at the end? [22:06] rictic: *shrug* I ran make install to update npm and I got an exception [22:06] arlolra has joined the channel [22:07] rictic: arlolra: http://pastie.org/1532294 [22:07] Sebmaster: express gets updated pretty often, does it? [22:08] rictic: if no one else is seeing this then I guess I should report it as a bug [22:08] dominictarr has joined the channel [22:08] arlolra: why the /npm at the end? [22:08] rictic: I didn't put it there, it's what happens when I run make to install npm [22:09] rictic: see the pastie above [22:09] arlolra: npm config set registry https://registry.npmjs.org/ [22:09] arlolra: oh [22:09] arlolra: i don't think that should be there [22:10] rictic: As part of debugging this issue I uninstalled npm, and now I can't reinstall it, heh [22:10] rictic: so where is the npm config info stored so I can hand edit it? [22:10] arlolra: in your home dir [22:11] arlolra: .npmrc [22:11] rictic: hmm, my registry in ~/.npmrc is https://registry.npmjs.org/ [22:11] arlolra: oh [22:12] rictic: huh, I changed https to http and make worked fine [22:12] rictic: make test looks like it's doing good too [22:12] rictic: I'll file a bug I guess [22:12] sh1mmer has joined the channel [22:12] arlolra: probably should report to isaacs [22:12] arlolra: yeah [22:13] unomi has joined the channel [22:13] rictic: thanks arlolra :) [22:13] arlolra: np [22:14] prettyrobots has joined the channel [22:15] Aria has joined the channel [22:15] dipser_ has joined the channel [22:16] arlolra: actually, it looks like the https registry is down [22:16] arlolra: i was probably just getting cached results before [22:17] sh1mmer: arlolra: hm [22:18] sh1mmer: seems up to me [22:19] [[zz]] has joined the channel [22:19] arlolra: give it time ... it'll disappoint [22:20] sh1mmer: ryah: ping [22:21] sh1mmer: ryah: I have a question on expected behaviours from buffer [22:22] SubStack: mikeal: nice update to npm search! [22:22] sh1mmer: should utf8 string buffers be padded to 4byte for each character in the string [22:23] sh1mmer: so that buffer can hold any permutation of that utf8 string length [22:23] mikeal: thanks [22:23] mikeal: just pushed another update [22:23] mikeal: http://jsregistry:5984/#/npm [22:23] mikeal: rolling over versions now moves the info div [22:25] SubStack: nice and it also shows which packages depend on the active module too [22:25] mikeal: yup [22:31] lukegalea has joined the channel [22:33] tvon has joined the channel [22:34] pauls: v8bot-- [22:34] v8bot: pauls has taken a beer from v8bot. v8bot now has 14 beers. [22:34] Aria: Stealing beer again, pauls? [22:35] pauls: Aria++ [22:35] v8bot: pauls has given a beer to Aria. Aria now has 2 beers. [22:35] pauls: ^__^ [22:35] Aria: Mmm, beer. [22:36] Aria: Oooh. Damn. Now I have to go the brewery. [22:39] WatermelonStorm: Aria-- [22:39] v8bot: WatermelonStorm has taken a beer from Aria. Aria now has -1 beers. [22:39] WatermelonStorm: Ha. [22:39] WatermelonStorm: Aria-- [22:39] v8bot: Aria is getting too many beers. Don't let Aria get drunk! [22:40] WatermelonStorm: Aria-- [22:40] v8bot: Aria is getting too many beers. Don't let Aria get drunk! [22:40] pauls: oo, bug [22:40] WatermelonStorm: Is the beer non-alcoholic, though? [22:40] WatermelonStorm: Meh, I don't want it either way. [22:40] WatermelonStorm: pauls++ [22:40] v8bot: WatermelonStorm has given a beer to pauls. pauls now has 1 beers. [22:40] pauls: Aria++ [22:40] v8bot: Aria is getting too many beers. Don't let Aria get drunk! [22:40] pauls: don't want it :P [22:41] pauls: may even save Aria that trip to the brewery [22:41] SubStack: `v beers SubStack [22:41] v8bot: SubStack: SubStack has 9 beers. [22:41] SubStack: where can I redeem these? [22:42] pauls: hacker news? lol [22:42] jdalton has joined the channel [22:44] GasbaKid has joined the channel [22:46] mscdex: `v beers v8bot [22:46] v8bot: mscdex: v8bot has 14 beers. [22:46] lukegalea has joined the channel [22:48] tanepiper: ACTION wants to see a nodejs.42 domain :D https://www.42registry.org/ [22:49] wao: :)) [22:51] eck has joined the channel [22:51] eck has joined the channel [22:52] dnyy has joined the channel [22:53] mscdex: i'd be the first to register: not.42 [22:53] mscdex: then you could have: im.not.42 [22:54] dominictarr has joined the channel [22:56] eck has left the channel [22:56] mfernest has joined the channel [22:59] felixge has joined the channel [22:59] felixge has joined the channel [23:00] lukegalea has joined the channel [23:03] ryanfitz has joined the channel [23:07] phiggins has joined the channel [23:07] erikcorry has joined the channel [23:07] mikeal has joined the channel [23:07] wao: :)) [23:10] sudoer has joined the channel [23:11] lukegalea has joined the channel [23:12] p_nitsch has joined the channel [23:14] hangomanatee: 42 is a suffix? [23:14] mikeal has joined the channel [23:15] mikeal: can we please turn off that stupid chanserv message [23:15] bingomanatee has joined the channel [23:15] mikeal: why don't we just set that as the topic if it's so important [23:15] SubStack: chanserv? [23:16] mikeal: yeah, you get a join message from ChanServ now [23:16] mikeal: when you join this channel [23:16] mraleph has joined the channel [23:16] SubStack: pesky thing [23:16] SubStack: I just leave irssi on all day through screen so I haven't seen it yet [23:17] mape has left the channel [23:17] mape has joined the channel [23:17] mape: the wiki one? [23:17] mikeal: mape: yeah [23:17] hangomanatee: ACTION wants to know where Sarah Palin is. [23:17] mape: mikeal: if you never disconnect/connect that isnt an issue ;) [23:17] mikeal: i like to close my laptop [23:18] mikeal: and not have a stack of messages from when i was gone [23:18] mape: mikeal: shell with irssi? [23:18] mikeal: i'm not using terminal irc again [23:18] SubStack: hangomanatee: that could be her next TV show [23:18] mikeal: i want my terminal to be full of productive stuff [23:18] tokumine has joined the channel [23:18] mikeal: that is code related [23:18] mape: mikeal: what is lacking? [23:19] mape: mikeal: bah don't be silly [23:19] sudoer has joined the channel [23:19] mikeal: IRC needs to be in the workspace on the right with IM, email and twitter [23:19] mikeal: all the distracting crap is over there [23:19] mape: that just means you are making things up [23:19] mape: just start a terminal instance and move that window to the right space [23:19] mikeal: not gonna happen [23:19] mape: and not like you can't use a bnc [23:20] mikeal: besides, i hate having more windows [23:20] mikeal: that's why IRC is in adium [23:20] mikeal: because i have to run adium anyway [23:20] mape: >_< [23:20] JohnnyL has joined the channel [23:20] mape: why not go all bat shit crazy and use the browser? [23:20] mikeal: the browser is full of productive stuff too [23:20] mikeal: docs and sites in development [23:20] mikeal: i have two workspaces [23:21] mikeal: one has iterm2, textmate, and chrome [23:21] mape: so in the end you'll end up with irc alongside the shitter? :P [23:21] mikeal: the other has Postbox, twitter, and adium [23:22] mape: mikeal: so how does the workspaces matter at all? I assume you get a visual/audio queue if someone hilights you? [23:22] mikeal: it's a growl notification that i ignore [23:22] mikeal: if i don't want to be distracted [23:23] mape: So having a terminal in the background that you never see because there are windows ontop is a pita, but growl notifications is a ok? [23:23] mikeal: no no no [23:23] mikeal: i will see it [23:23] mikeal: because development is a process of cmd+tab between Chrome, iTerm and TextMate [23:24] mikeal: so if distracting things are behind them I'll see them when i flip through [23:24] mape: how is that more distacting then a growl notification?= [23:24] mape: sounds more like something you made up in your head? [23:24] mikeal: because the top right of the screen never has anything important in it [23:24] mape: which I guess is as good reason as anything.. [23:24] mikeal: i've had growl for like 5 years [23:24] mikeal: i'm used to ignoring them when i'm busy [23:25] mape: the terminal for less? [23:25] mape: hmm k [23:25] mikeal: the terminal forever, but I have to look at the terminal [23:25] mikeal: for important things, like writing code [23:25] zemanel: doesnt haml-js support internet unexplorer conditionals? [23:25] mikeal: so i need to keep distractions out of it [23:25] mape: mikeal: btw why tm if you use terminal for code? [23:26] mikeal: textmate is great [23:26] mikeal: for refactoring i want good select and indent support [23:26] zemanel: TextWrangler [23:26] mikeal: that shit is annoying in vi [23:26] mikeal: but, i still edit config files in vi [23:26] mikeal: without actually thinking about it [23:26] mape: I just hope kod turns out [23:26] mikeal: me too [23:27] mikeal: once it hits feature parity with textmate i'll switch [23:27] mikeal: or at least has the features i care about [23:27] mape: as soon as I can select+alt+tab I'll switch [23:28] mape: waiting 10min for tm to not stay frozen because of a off site search is silly [23:28] mape: if anything for other project files [23:30] mikeal: it needs like, a prefs pane [23:30] bingomanatee has left the channel [23:30] mikeal: so i can select a font [23:30] mape: hehe isn't that by design? [23:30] mape: sane defaults, hackers gonna be hacking so use conf files [23:30] mikeal: that's dump [23:30] shaver: nobody wants to type in font names [23:30] mikeal: just give me a prefs window [23:31] mape: ACTION gives mikeal a prefs window [23:31] mikeal: s/dump/dumb [23:31] shaver: take my prefs window...please! [23:31] mikeal: if i wanted to spend all my time editing config files by hand [23:31] mikeal: i'd run linux [23:31] sudoer has joined the channel [23:32] mape: but yeah, seems some configuration won't work with pref windows [23:32] dominictarr has joined the channel [23:32] mape: but the basics should [23:32] JohnnyL has left the channel [23:32] mikeal: i do like the idea of having node be my scripting language for the editor [23:32] mikeal: editing textmate plugins is aweful [23:32] richcollins has joined the channel [23:32] mikeal: it's all bash and ruby [23:33] shaver: two great tastes that...gaaaaaak [23:33] astoon has joined the channel [23:34] Jamool has joined the channel [23:35] mraleph has joined the channel [23:39] Mike_Rice: Can I pass around a node-mysql connection object and use it asynchronously safely? [23:39] astoon_ has joined the channel [23:39] Mike_Rice: Right now I open and close on each query [23:43] opengeard has joined the channel [23:44] aaronblohowiak has joined the channel [23:44] aaronblohowiak: who has access to nodejs.org? http://nodejs.org/api.html is the top google result for node api and it is neither stable nor latest [23:45] mikeal: i think only ryah has access [23:45] dxld has joined the channel [23:46] aaronblohowiak: mikeal: okie dokie. i have brought this to his attention in the past, but i know he is crazy busy [23:47] mikeal: i think the plan is to move over to the new docs at 0.4.0 anyway [23:47] mikeal: that's probably why it's old [23:47] aaronblohowiak: mikeal: yea, if it was stable, that'd also be fine [23:47] aaronblohowiak: but being at 0.3.0 is the worst of both worlds, y aknow [23:48] mikeal: yeah, the issue is that the new doc system started right after 0.3.0 got released [23:48] aaronblohowiak: heard. [23:48] mikeal: and 0.3.0 is actually the exact same API as the latest 0.2 [23:48] aaronblohowiak: mikeal: ah, that i did not figure [23:49] aaronblohowiak: mikeal: when do you start @ yammer ? [23:50] lukegalea has joined the channel [23:50] mikeal: monday [23:50] aaronblohowiak: oh, v. cool. i think my friend Dixie starts the week after. she's a radsauce rails developer [23:51] xonecas has joined the channel [23:52] mikeal: cool [23:52] sh1mmer has joined the channel [23:53] xonecas: might be an odd place to ask, but anyone has worked with the twitter streaming api, the statuses/filter method? [23:55] aaronblohowiak: Is there a way to mix in the contents of a require()'d module into the global scope more cleanly than this: https://gist.github.com/fa4f9f2ca03591b9de57 [23:56] SubStack: global scope /o\ [23:56] mikeal: xonecas: a little [23:56] mikeal: i have a library that is out of date [23:56] mikeal: marcos has a better, newer one [23:56] mikeal: https://github.com/polotek/evented-twitter [23:56] xonecas: mikeal: can I use statuses/filter to return only geotagged tweets ? [23:56] mikeal: there's marco's lib [23:57] aaronblohowiak: SubStack: good point, perhaps i should use the current module [23:58] mikeal: aaronblohowiak: no there isn't, and that way might breat [23:58] mikeal: er break [23:58] SubStack: aaronblohowiak: maybe just do var assert = require('wrapperthing')(require('assert')) [23:58] SubStack: or else wrapperthing could do that itself [23:59] aaronblohowiak: SubStack: oooh, that would be neat. addObjectContentsToCurrentScope() [23:59] aaronblohowiak: ;) [23:59] SubStack: current scope sounds scary!