[00:01] Poetro has joined the channel [00:02] sdwrage: euforic: I wouldn't know :( I'm new to nodejs [00:02] robi42 has joined the channel [00:03] joshontheweb has joined the channel [00:04] josephg has joined the channel [00:05] EyePulp has joined the channel [00:06] salva has left the channel [00:06] ryan_stevens has joined the channel [00:09] redir_ has joined the channel [00:09] niko has joined the channel [00:09] zemanel has joined the channel [00:10] JaKWaC has joined the channel [00:11] caioketo: can someone heklps me, i need to build node.js in vs2010, but when I run vcbuild.bat it throws me an error "invalid syntax" in node.gyp [00:12] AvianFlu: caioketo, are you trying to build master? [00:12] AvianFlu: there's a build system refactor going on in master, you should check out v0.6.5 if you haven't already [00:12] sechrist has joined the channel [00:12] devaholic has joined the channel [00:12] caioketo: ok i will [00:14] Brandon_R has joined the channel [00:14] Brandon_R: hi [00:15] warz has joined the channel [00:15] plutoniix has joined the channel [00:15] caioketo: im downloading it [00:16] liar has joined the channel [00:17] blaenk has joined the channel [00:17] blaenk has joined the channel [00:18] gregmoreno has joined the channel [00:19] Sembiance: sure wish node.js's console/format supported %o instead of %j rofl [00:20] criswell has joined the channel [00:20] Brandon_R: hey guys [00:20] Brandon_R: i have a question [00:20] Brandon_R: most node stuff is for http/web [00:20] Brandon_R: any cool stuff being done for tcp/ip? [00:20] fairwinds has joined the channel [00:20] Brandon_R: like multiplayer games servers etc [00:23] maxogden: i operate a russian military drone fleet using a node TLS server [00:24] Brandon_R: kool [00:24] maxogden: its alright [00:24] Brandon_R: do you know of a thing called arduino? [00:24] Brandon_R: node is pretty cool for that [00:24] killtime: anybody know any good soft or service that helps you build JSON object model diagrams [00:28] caioketo: i tried the 0.6.5 [00:28] caioketo: but it throw me another error [00:29] jhurliman: ryah, is joyent behind nodejam or who is organizing that event? we (cull tv) just applied [00:29] replore has joined the channel [00:29] replore_ has joined the channel [00:29] killtime: j/j query [00:29] killtime: sorry [00:29] caioketo: "No such file or directory "\\cygdrive\\c\\users\\keto\\workspace\\node\\deps\\zlib\\zlib.vcxproj.filters [00:29] caioketo: Im getting this error while tring to compile v0.6.5 "No such file or directory "\\cygdrive\\c\\users\\keto\\workspace\\node\\deps\\zlib\\zlib.vcxproj.filters" [00:29] JJMalina has joined the channel [00:30] tilgovi has joined the channel [00:31] swaj: you like compilig 0.6.5 on windows for fun? :P [00:31] Bonuspunk: caioketo there is no cygwin support anyome [00:31] swaj: caioketo: you know there's an installer for node on windows, now, right? cygwin is no longer supported or recommended. [00:32] hotroot: ^^ lol [00:32] hotroot: I don't really get cygwin, linux is so easy to dual boot... [00:33] Brandon_R: hey guys [00:33] Bonuspunk: caioketo if you want to build it you need Visual Studio c++ (express) and python installed [00:33] Brandon_R: any good books on how to write high performance client-server applications? [00:33] Brandon_R: more theoretical than experimental [00:33] Bonuspunk: hotroot the dev tools that are you used to are just aviablable on windows? [00:33] Ownatik has joined the channel [00:34] hotroot: Bonuspunk: What? [00:34] hotroot: Oh [00:34] swaj: some people need Windows for other dev work, and if you can have a good amount of GNU tools, why not? [00:34] hotroot: Yeah, I suppose that makes sense. Still, better to just dual boot or use the windows version of node [00:34] swaj: or for gaming. [00:35] jesusabdullah: games :C [00:35] hotroot: I dual boot for my games [00:35] swaj: same [00:35] Bonuspunk: i really like the windows version [00:35] SamWhited has joined the channel [00:35] hotroot: I can't stand coding on Windows [00:35] jklabo_ has joined the channel [00:35] jesusabdullah: I only really play minecraft these days <_< [00:35] jesusabdullah: and even then not that much [00:36] jesusabdullah: coding is entertaining enough :P [00:36] joshkehn has joined the channel [00:36] swaj: I'm a .NET developer by day, node hacker by night. A conflicted world :P [00:36] hotroot: I wish my dopamine felt the same way =P [00:36] Bonuspunk: battlefield 3 is AWESOME :D [00:36] nicholasf has joined the channel [00:36] hotroot: .NET? NOOOOOEES [00:36] hotroot: =P [00:36] Bonuspunk: me too :/ [00:36] swaj: C# is a beautiful language :) [00:37] Brandon_R: c# is indeed a beautiful language [00:37] kazupon has joined the channel [00:37] Brandon_R: more beautiful than java :D [00:37] Bonuspunk: but is has static typing :( [00:37] Brandon_R: but that's subjective [00:37] hotroot: I'm very biased against proprietary languages, so I can't give fair looks at them, lol [00:37] swaj: C# itself is not proprietary. [00:37] Brandon_R: isn't c [00:37] Brandon_R: # open source? [00:37] Brandon_R: the languague, not microsofts implementation of it [00:38] Bonuspunk: there is a mono port [00:38] hotroot: Well, it's pretty much only used for Windows development, like Obj-C is to Mac [00:38] Bonuspunk: i heard it should be good for Android and IO with mono [00:38] swaj: Mono runs C# on Mac/Unix [00:38] Bonuspunk: or silverlight [00:38] hotroot: I don't know any general languages, can't decide between C++ and Python. Speed vs Dev speed [00:39] Bonuspunk: chchch [00:39] hotroot: Happy with JS for now though [00:40] Brandon_R: why not learn c [00:40] Brandon_R: then c++ [00:40] Brandon_R: then php [00:40] Brandon_R: lol [00:40] Skaag has joined the channel [00:41] Brandon_R: php is getting super fast since facebook took over develppment [00:41] Brandon_R: they made a compiled version and now they released a virtual machine [00:42] swaj: lolphp :) [00:42] swaj: (sorry I had to) [00:42] hotroot: ^^ [00:42] Brandon_R: facebook uses it so it can't be all bad [00:42] hotroot: And facebook does /everything/ right, just like privacy =P [00:43] Brandon_R: program wise [00:43] Brandon_R: not legal wise [00:43] hotroot: Their mobile code is terrible [00:43] hotroot: And their regular page code isn't that good either. It always alerts me of new messages while chat is open [00:44] prettyrobots has joined the channel [00:44] hotroot: When that message should count as read since I'm in chat [00:44] hotroot: Anyway, back to JS. I have a question I've never really understood with params. [00:44] Brandon_R: kk [00:44] hotroot: For example, in - Database#run(sql, [param, ...], [callback]) - [00:44] hotroot: Is there a way to send just the sql and callback params? [00:45] hotroot: What if there is a param I don't want to use? Do I just fill it in with null and then it will default? [00:45] idefine has joined the channel [00:46] Bonuspunk: hotroot the last time i checked in node.js there is a typeof(param) check ( === 'function' { callback=param; param=defaultParam} ) [00:46] Brandon_R: woah guys [00:46] insin: hotroot: well, usually that notation indicates optional - just don't pass anything [00:47] hotroot: how do I not pass anything? [00:47] insin: by... not... [00:47] insin: ACTION falls over [00:47] sorensen__: ACTION head explodes [00:47] hotroot: No shit, I mean if there are 3 default params [00:47] sorensen__: :D [00:47] hotroot: It expects the first to be sql, the second to be [params] and the third to be a callback [00:47] idefine: how does one handle uncaught exceptions in asnyc functions? [00:48] Xano has joined the channel [00:48] sorensen__: the sql is optional? [00:48] hotroot: If I just leave out params, it will see the callback as arg #2 [00:48] hotroot: No, the [params] and callback are [00:48] sorensen__: it will likely check if params is a function and treat it as the cb if so [00:48] insin: [param, ...] an optional number of parameter arguments [00:48] insin: the impl is likely slicing arguments and checking if the last one is a function [00:49] Bonuspunk: hotroot for ex. http://nodejs.org/docs/latest/api/fs.html#fs.mkdir fs.makedir('foo', function(err) { ... }) [00:49] Xano has joined the channel [00:49] insin: so they can all be optional beyond the sql [00:49] theCole has joined the channel [00:49] hotroot: Bonuspunk: It knows that that's the callback? [00:49] Bonuspunk: yes [00:50] Bonuspunk: typeof arguments[1] === 'function= [00:50] theCole: when doing an fs.readFile if returns the file as a Buffer, how do you decompress that? [00:50] theCole: it* [00:50] hotroot: What about like this? [00:50] hotroot: buffer.write(string, offset=0, length=buffer.length-offset, encoding='utf8')# [00:50] sorensen__: decompress? [00:50] benlyn_ has joined the channel [00:50] theCole: maybe decompress is the wrong word [00:50] hotroot: And I just want to pass string and length [00:50] Bonuspunk: hotroot for fs.mkdir - type in your node repl > require('fs').mkdir.toString(); [00:51] hotroot: null is the right thing to use right? [00:51] crescendo has joined the channel [00:51] flip_digits has joined the channel [00:51] killtime: hey can i totally just code in C++ and then add it to this wonderful nodejs stuff? [00:52] Garpster has joined the channel [00:52] IrishGringo has joined the channel [00:52] Bonuspunk: > console.log(Buffer.prototype.write.toString()) [00:53] Bonuspunk: btw i REALLY like the toString on functions :) [00:53] descipher_ has joined the channel [00:54] Brandon_R: hey guys [00:54] mmalecki: einaros: ping? [00:54] JaKWaC has joined the channel [00:54] Brandon_R: if jade was written in c++ instead of using regexes, how faster would it be? [00:55] mmalecki: or maybe UPGRADE ;) [00:55] perezd_ has joined the channel [00:55] mmalecki: Brandon_R: you wouldn't notice [00:55] mmalecki: it isn't cpu that makes things slow nowadays [00:56] mmalecki: also, there's C++ <-> JS barrier which is quite expensive [00:56] Garpster: What is it? my fingers? [00:56] Garpster: :) [00:56] mmalecki: lol [00:56] Garpster: Most errors are PICNIC errors when I'm working on code. [00:56] Bonuspunk: unless you calculate fibonacci numbers ^^ [00:56] sdwrage has joined the channel [00:57] mmalecki: you should outsource calculating fibonacci numbers [00:57] mmalecki: that's what cloud's for! [00:57] Bonuspunk: ^^ [00:59] Brandon_R: i love to calculate fibonacci numbers [00:59] Brandon_R: and send them back to the browser without knowing how to properly write node.js code [00:59] noazark has joined the channel [00:59] noazark has left the channel [00:59] mmalecki: yeah [00:59] mmalecki: that's what we programmers do everyday! [01:00] plutoniix has joined the channel [01:00] sdwrage has left the channel [01:01] jj0hns0n has joined the channel [01:01] Swimming_Bird has joined the channel [01:03] zalary_ has joined the channel [01:03] Bonuspunk: btw i really love the ability of some coworkers to add code without understanding the code they are touching and/or the problem they should solve [01:03] Brandon_R: so guys [01:03] zalary_ has left the channel [01:03] Brandon_R: textmate 2 rc has been released [01:03] Brandon_R: what do you guys think? [01:04] Brandon_R: worth it? [01:04] mongrelion has joined the channel [01:05] Bonuspunk: i like sublime :P [01:05] Bonuspunk: because im on windows ^^ [01:05] Me1000 has joined the channel [01:05] AvianFlu: VIM4LIFE [01:05] mandric has joined the channel [01:05] base698 has joined the channel [01:06] Bonuspunk: i really dont get vim [01:06] mike5w3c has joined the channel [01:06] Brandon_R: how is sublime working on windows? [01:06] Brandon_R: right tool for the job is more unixy [01:06] Brandon_R: windows is more like full ide env [01:06] base698: Bonuspunk: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html [01:06] Bonuspunk: sublime runs on windows/unix/osx afaik [01:07] Brandon_R: how long will it take to learn vim? [01:07] crescendo_ has joined the channel [01:07] sorensen__: sublime ftw [01:07] base698: is TJ around? [01:07] Brandon_R: did you guys know node.js is faster on windows than Linux? [01:07] Brandon_R: guess why [01:07] Bonuspunk: i mean im using ~20years of classic window cursor navigation maybe im too old for a change [01:08] small has joined the channel [01:08] Bonuspunk: there are 50 ppl at microsoft working on node/libuv? ^^ [01:08] rick- has joined the channel [01:08] base698: I've got an issue with bodyParser. it's saving the file to /tmp but it's not showing up in the request.body [01:09] Brandon_R: input/output completion ports on windows :) [01:09] Brandon_R: IOCP FTW [01:09] Brandon_R: that is probably the only thing done right on windows [01:10] base698: Also is there a way to force install an older version of a dependency for a package. Like an older connect with express (not doing it at the top level explicitly) [01:10] Bonuspunk: yeah there is somewhere a blogpost or something like that, where a bsd guy is REALLY impressed by the network stack of MS [01:11] small: i have a question about the changing from 0.4.* to 0.6.* .... how do i override the new 'Connection: Keep-Alive' default in http.request() and http.get() [01:11] ja7rodal has joined the channel [01:13] small: that is, if I pass a header without a 'Connection' argument will it still default to 'Keep-Alive' [01:13] small: or do I have to override it to some other value? [01:14] JasonSmith: mikeal: Thanks for the pull request. I want to write a test for that. How can I confirm that it's gone. Look in http.globalAgent maybe? [01:14] maushu_ has joined the channel [01:15] neoesque has joined the channel [01:15] mikeal: JasonSmith: https://github.com/joyent/node/blob/master/lib/http.js#L892 [01:15] devongovett has joined the channel [01:15] mikeal: self.sockets[host+':'+port] [01:15] JasonSmith: thanks [01:16] mikeal: check the length before and after calling that [01:16] JasonSmith: yeah [01:16] mikeal: i should write a blog post about that event as some point [01:16] mikeal: er at some poitn [01:17] mikeal: you should get on IM [01:17] mikeal: i want to ask you about something [01:17] jimubao has joined the channel [01:18] bbenvie has joined the channel [01:21] base698: Anyone know why express/bodyParser would leave out field names, but still upload the field? [01:21] mongrelion: any known limitations using nodejs 0.6.5 + expresso 0.9.2? [01:23] mongrelion: sorry, I should have said "hi there \o/" before :) [01:23] otakutomo has joined the channel [01:23] vl4kn0 has joined the channel [01:26] hotroot: Stray } in the middle of my biggest and bulkiest function. Time to go shit diving [01:27] neurodrone has joined the channel [01:28] Wizek_ has joined the channel [01:28] swaj: hrm [01:28] swaj: can't get stylus and jade textmate bundles working with the textmate 2 alpha [01:29] kickingvegas: hotroot: call it a day, get some sleep, get back to it in the morning. Or am I telling that to myself... [01:29] hotroot: ^^ haha, no I'm still running strong [01:29] Leemp has joined the channel [01:29] hotroot: It's just that I updated my whole chatserver from memory to SQL, and now I have to do the regular bug cleaning [01:29] sh1mmer: will the memory usage of node's statically linked deps be included in whatever `ps` reports? [01:29] mmalecki: 2:30 here, I know how you're feeling right now [01:29] hotroot: I would have shit my pants if there had been 0 bugs after my first draft, never happens [01:30] mmalecki: sh1mmer: what column? [01:30] sh1mmer: e.g. if I'm using libxmljs or whatever will those threads also be included [01:30] sh1mmer: rss vmz [01:30] joshontheweb has joined the channel [01:30] sh1mmer: and cpu [01:30] sh1mmer: sorry vsz [01:30] jhhjhj has joined the channel [01:31] mmalecki: sh1mmer: this is pretty complicated, but I'd say yes [01:31] swaj: yay figured it out [01:31] swaj: they moved bundles to a new folder >< [01:31] mmalecki: process has to load these libraries [01:32] sh1mmer: mmalecki: any pointers to help me figure that out [01:32] hotroot: Wow, that was some really fast critial bug debugging [01:32] hotroot: Just a few forgotten ); =D [01:32] warz has joined the channel [01:32] hotroot: Happens a lot when something has a callback, I always forget to wrap the last } with the ); [01:32] mmalecki: sh1mmer: http://www.ehow.com/about_5497321_much-linux-memory-used-process.html [01:32] mmalecki: in short, yes [01:33] kickingvegas: ciao folks [01:33] sh1mmer: mmalecki: I'm trying to assess the total footprint of using node with extensions [01:33] kickingvegas has left the channel [01:33] sh1mmer: mmalecki: thanks :) [01:33] mmalecki: The virtual memory size reported by Linux includes all the code, data and stack space reserved for use by a process, on both physical memory and swap space. This value includes space used by all shared libraries used by the process. [01:33] warz: ryan@ryan-server:~/node$ make install [01:33] warz: `make install` is not implemented yet. Bug bnoordhuis about it in #node.js [01:33] makeInstallBot: warz: `make install` is not supported on current node.js `master` due to build system refactor. Please use latest stable tag (v0.6.x). [01:33] warz: just doing my part. [01:33] sh1mmer: lol, they should really change that message [01:33] norviller has joined the channel [01:33] maxogden: sh1mmer: nah we got robots for that [01:34] sh1mmer: I'm pretty sure Ben is bugged by now, though [01:34] maxogden: makeInstallBot: good job, robot slave! [01:34] hostsamurai has joined the channel [01:34] bnoordhuis: sh1mmer: yes [01:34] warz: thanks robot slave [01:34] sh1mmer: bnoordhuis: to my question or you being bugged [01:34] warz: im just all like, 'i think ill try out derbyjs', and then all of a sudden im told to bug somebody on irc [01:35] warz: so im like fine [01:35] sh1mmer: warz use the 0.6 tags for now [01:35] sorensen__ has joined the channel [01:35] maxogden: 'all i wanted to do was use some software but instead had to dialogue with this damn robot' [01:35] mmalecki: lol [01:35] warz: theyre the future, man [01:36] mmalecki: don't blame my bot! [01:36] sh1mmer: maxogden: "check out HEAD" was good advice until 0.6 dropped [01:36] bbenvie: now it's not lol [01:36] bbenvie: not at all [01:37] mmalecki: sh1mmer: we can't change the message. it makes it incompatible with currently developed robotic system. [01:37] k1ttty has joined the channel [01:37] sh1mmer: mmalecki: oh, right [01:38] hackband has joined the channel [01:39] bnoordhuis: sh1mmer: being bugged - and changing the `make install` message [01:39] mmalecki: NOOOO! [01:39] mmalecki: or tell me so that I can change the bot [01:39] bnoordhuis: mmalecki: let's make it... `bug indutny about it in #node.js` :) [01:40] mmalecki: bnoordhuis: haha, that would be evil :D [01:40] sh1mmer: lol [01:40] prettyrobots has joined the channel [01:40] sh1mmer: so many people take it seriously [01:40] bnoordhuis: i kid, i kid - i'm going to copy your bot's message [01:40] sh1mmer: you should get a PO box and put "mail $5 to ..." [01:40] mmalecki: hahaha [01:41] warz: no big deal, guys [01:41] warz: its just one additional beer that i get to drink before getting to the coding [01:41] mmalecki: warz: anyway, bnoordhuis will pm you the address you should send $5 XD [01:42] warz: i think he should send me the $5 [01:42] mmalecki: warz: (no, really, use 0.6.5 tag) [01:42] mmalecki: git checkout v0.6.5 [01:42] warz: ive just been messing around. ive been compiling that tag since before i came in here to bug bnoor. [01:42] warz: but i was told to do so. [01:42] warz: so, ya know ... [01:42] bnoordhuis: warz: if i did that for everyone who came in complaining about it, i'd be broke by now :/ [01:42] mmalecki: :) [01:43] sh1mmer: maybe that would be the best message [01:43] sh1mmer: or in addition to what the bot needs [01:43] bradleyg has joined the channel [01:43] mmalecki: 'Build system bankrupcy!' [01:43] gavin_huang has joined the channel [01:43] mmalecki: *baknruptcy [01:43] mmalecki: fuck [01:43] mmalecki: whateer [01:44] mmalecki: oh, fuck >.< [01:44] mmalecki: I'll just go and write some code [01:44] mmalecki: like a node-http-proxy working with websockets on 0.6 [01:45] kmiyashiro has joined the channel [01:48] wbednarski has joined the channel [01:50] CIA-109: node: 03Ben Noordhuis 07master * rbdd19ab 10/ Makefile : build: update 'make install' warning message - http://git.io/6wZARw [01:50] sh1mmer: wow [01:50] sh1mmer: now I feel like I achieved something [01:50] sh1mmer: by nagging ben [01:51] sh1mmer: go today! [01:51] joshthecoder has joined the channel [01:52] jldbasa has joined the channel [01:52] lorfds has joined the channel [01:52] mmalecki: joshthecoder: hi! [01:53] canadian_marc has joined the channel [01:53] mmalecki: joshthecoder: during some mad science experiments, I noticed you have some interestin webkit fork. would you mind telling me a bit more about it? [01:54] enmand has joined the channel [01:54] creationix has joined the channel [01:54] azeroth_ has joined the channel [01:56] joshthecoder: mmalecki: what fork? [01:56] creationix has joined the channel [01:56] base698: anyone know of any open issues in express that causes the upload to save to /tmp but that doesn't show the proper request.body fields? It's for a post request using bodyParser() [01:56] mmalecki: joshthecoder: https://github.com/appcelerator/webkit_titanium [01:57] joshthecoder: mmalecki: ah that's for titanium desktop [01:58] diogogmt has joined the channel [01:58] TimTimTim: what's the best memcached module for node? [01:59] TimTimTim: this seems to be the best i've found: https://github.com/3rd-Eden/node-memcached [01:59] icewhite has joined the channel [01:59] mmalecki: joshthecoder: right. how much is this thing hacked? is it really different from original webkit? [01:59] mrchess has joined the channel [01:59] swaj: created a bundle for IR_Black on TextMate 2 alpha. Apparently TM2 needs themes to be bundled, so I made one :P https://github.com/swaj/IR_Black-tmbundle [02:00] mmalecki: joshthecoder: (can't tell from commit messages, there's quite a noise there) [02:00] joshthecoder: mmalecki: nothing too major. Probably nothing of interest out side titanium. We pushed most of the fixes we made upstream already. [02:00] mrchess: anyone sucessfully using socket io 0.8.7 flashsocket with firefox 8? [02:00] jtsnow has joined the channel [02:01] creationix has joined the channel [02:01] ChaoWang has joined the channel [02:01] mmalecki: joshthecoder: ah, ok, thanks :). these titanium-specific hacks are to make it feel more native? [02:01] Sample has joined the channel [02:03] Sample: When an event callback fires after the browser has already request.end() (speaking 'http'), is there a way to response.write('some update') to the user on the page at that point? [02:04] Sample: maybe i need some ajax on the client side firing off requests to the server to see if something has updated? hmm.. doesnt seem very efficient [02:04] joshthecoder: mmalecki: let's move to #titanium_dev, kinda off topic here. [02:04] mmalecki: oh, cool, didn't know you guys have a channel [02:05] joshthecoder: mmalecki: not really to make it more native, but just fixes we needed to glue it in. [02:05] qbert_: having a problem with nodejs, connect using mongo-store for sessions and mongo, when mongo goes down and comes back up - the mongodb connection gets lost and brings my entire app down, anyone run into this ? [02:05] lorfds has joined the channel [02:05] qbert_: also happens when another mongo server gets elected the primary [02:06] plutoniix has joined the channel [02:08] eb4890 has joined the channel [02:08] icewhite has joined the channel [02:09] abraxas has joined the channel [02:13] captain__ has joined the channel [02:13] TimTimTim: what's the best memcached module for node? [02:13] TimTimTim: this seems to be the best i've found: https://github.com/3rd-Eden/node-memcached [02:13] sh1mmer: a lot of people pick redis over memcached [02:14] sh1mmer: but I think 3rdEden does actively support that [02:14] TimTimTim: hmmm i'll look into redis and see if it's right for what i'm doing [02:14] pixel13 has joined the channel [02:14] TimTimTim: but as far as the 3rd eden memcached goes, is it standalone? or does it depend on the "Memcached" service? [02:14] sh1mmer: I don't know [02:14] pixel13 has left the channel [02:14] sh1mmer: I haven't looked into it closely [02:15] TimTimTim: it looks like it's standalone but i could be misintrepreting what it says on the github [02:15] sh1mmer: There are only a couple of memcached modules that have any recent development [02:15] neilk_ has left the channel [02:16] sh1mmer: It looks stand alone to me [02:16] JakeyChan has joined the channel [02:16] sh1mmer: after a quick glance at the source [02:16] JakeyChan has joined the channel [02:19] TimTimTim: interesting, thanks [02:20] Leemp has joined the channel [02:20] qbert_: wheres tj [02:20] qbert_: !seen tj [02:20] CIA-109: node: 03Ben Noordhuis 07v0.6 * r321ec97 10/ src/node_crypto.cc : crypto: deduplicate decipher logic - http://git.io/uZVJvA [02:20] CIA-109: node: 03Ben Noordhuis 07v0.6 * ref12fa1 10/ src/node_crypto.cc : crypto: deduplicate encoding parsing logic - http://git.io/swxhPw [02:21] mara has left the channel [02:21] tjfontaine: I should really turn off that hilight for this channel [02:21] qbert_: lol [02:21] qbert_: i meant you! :P [02:21] qbert_: how are you ? [02:21] dgathright has joined the channel [02:21] qbert_: j/k [02:22] JesusRosso has joined the channel [02:23] mmalecki: tjfontaine: how many nicknames do you have XD ? [02:24] mbrevoort has joined the channel [02:24] bartt has joined the channel [02:24] asoltys has joined the channel [02:24] tjfontaine: mmalecki: I'm not the droid you're looking for [02:25] marcello3d has joined the channel [02:25] mmalecki: tjfontaine: oh, you're not one of TJ's incarnations? [02:26] mmalecki: sorry then :) [02:26] tjfontaine: I am a TJ, but certainly not the notable one in this channel [02:26] qbert_: what does tj stand for [02:26] Sample: fanboyism=P [02:26] qbert_: tom jones [02:27] tjfontaine: it's not unusual [02:28] JakeyChan has joined the channel [02:28] mandric has joined the channel [02:31] icewhite has joined the channel [02:31] broofa has joined the channel [02:34] Lingerance has joined the channel [02:34] Juan77 has joined the channel [02:36] hotroot: There needs to be a service where you pay people to solve bugs in your code =P [02:37] mikeal has joined the channel [02:37] Emmanuel` has joined the channel [02:38] mmalecki: einaros: https://github.com/mmalecki/node-ws-proxy [02:38] mmalecki: just sayin' [02:39] febits[0] has joined the channel [02:39] boltR has joined the channel [02:41] Emmanuel has joined the channel [02:41] _unary has joined the channel [02:44] a_meteorite: hotroot: just pay a developer ;) [02:44] hotroot: lol [02:45] bminer has joined the channel [02:45] hotroot: Never used SQL before, so this thing is a bitch to debug [02:45] bminer: hey guys.... wanted to get the community's opinion on this project... [02:45] bminer: https://github.com/bminer/node-static-asset [02:45] bminer: I am about to get started on it... figured I would put some other eyes on it for some ideas [02:46] Lingerance: Meh, I just us good old `make` [02:46] bradleyg has joined the channel [02:47] hotroot: Derp, I can't believe I missed that [02:47] hotroot: "SELECT ROW FROM players" what the fuck was I thinking -.- [02:47] bminer: Lingerance: what do you mean? [02:48] Lingerance: bminer: `make push` just minfies all my JS files and pushes them to the server in turn, runs the tests, and rollsback if stuff starts failing. [02:48] bminer: how does that work? [02:48] bminer: you write those scripts yourself? [02:49] Lingerance: Yes [02:49] bminer: also... do you utilize caching on the server for static assets? [02:49] Lingerance: nginx does the static files. [02:50] a_suenami has joined the channel [02:50] bminer: gotcha [02:50] bminer: so what about strong caching? [02:50] bminer: do you serve the files with Cache-Control headers? [02:50] TN has joined the channel [02:51] cody-- has joined the channel [02:51] mrpound has joined the channel [02:51] hotroot: So, apparently I can't call this.socket.write(); from the callback of a SQL call, even though it was called in the socket's object. [02:51] bminer: or does the browser try to fetch the static assets each page load (and get 304 requests) [02:52] bminer: ???? [02:52] hotroot: It's an anonymous function though, so I can't pass args, but I thought I didn't have to? [02:52] Lingerance: When applicable. [02:52] Swizec_ has joined the channel [02:52] hotroot: If anyone cares, http://pastebin.com/ZrQLmg0k [02:52] hotroot: CTRL+C "12345" to find the line that should work but says "can't call method 'write' on undefined" [02:53] bminer: cool. thx Lingerance [02:53] lorfds has joined the channel [02:53] bminer: would you use a static asset library or stick with make? [02:53] isufy has joined the channel [02:54] bminer: assuming the static asset library automatically handled caching and deployment [02:54] Lingerance: I see no major benefit to it, I do a large amount of my scripts with make actually. [02:54] anoop has joined the channel [02:55] Lingerance: I don't like "automagic" solutions because they *will* break and I'll be left to figgure out what they tried to do and where they failed. [02:55] Wizek__ has joined the channel [02:57] pradeebv has joined the channel [02:57] brianseeders has joined the channel [03:00] Lingerance: Is it possible to get the line numbers from a regex match? [03:01] Lingerance: (note: using multi-line regexes) [03:01] clarkfischer: yeah [03:01] clarkfischer: Slice from 0 to the index listed in the match object [03:01] clarkfischer: then count the newlines [03:01] hotroot: ^^ [03:01] Lingerance: Oh right, I can get the offset, thanks. [03:01] Lingerance: :) [03:02] clarkfischer: hotroot: looks like its probably a closure problem [03:03] hotroot: Could be, but the error is saying it doesn't know what this.socket is [03:03] clarkfischer: yeah [03:03] clarkfischer: e [03:03] clarkfischer: exactly* [03:03] hotroot: You think I closed it off early or summat? [03:03] clarkfischer: no [03:03] Lingerance: Try .bind() (it's a function method) [03:03] clarkfischer: this, in the context of that function, is probably bound to db [03:03] clarkfischer: just use a var self = this; [03:03] clarkfischer: then use self instead of this. [03:03] hotroot: Oooh [03:04] hotroot: Good idea =D [03:04] hotroot: Or maybe like, dbThis so I don't have to change the rest of my shit, lol [03:04] norviller has joined the channel [03:04] clarkfischer: self isn't even in the same closure [03:04] clarkfischer: not to mention it ought to be referring to the same this. [03:05] hotroot: Hmm? [03:05] clarkfischer: on line 34, you assign self to this (the instance of Client) [03:06] hotroot: Yeah, it binds the socket to the client object [03:06] clarkfischer: if, on line 93 you assign self to this again, not only is it in a completely separate closure, it would probably be referring to the same `this` [03:06] ben_alman has joined the channel [03:06] Leemp has joined the channel [03:08] clarkfischer: http://pastebin.com/HQ7X8RGh [03:08] clarkfischer: man, pastebin sucks. [03:08] hotroot: Lol, I am so confused. I have a headache, I'm on code burnout, and my eyes are feeling singed. You're saying that's a good thing, I should do in my client object " var self = this;" and then call "self" from the DB func? [03:08] clarkfischer: http://pastebin.com/diff.php?i=HQ7X8RGh <== see here [03:08] clarkfischer: ought to work [03:09] clarkfischer: if you're really hung up on the name `this`, crockford uses `that` iirc [03:09] hotroot: Why not just define self = this; in the client object? [03:09] hotroot: Then for every DB call I can just reference self [03:09] clarkfischer: separate closures [03:09] clarkfischer: outside function Client(…) self won't be visible [03:10] hotroot: But the DB call is inside a client method [03:10] hotroot: lient.prototype.processNew [03:10] clarkfischer: yeah, but, again, they're separate closures [03:11] clarkfischer: the only thing they share is `this`, potentially [03:11] clarkfischer: unless you're calling #processNew from within the constructor [03:11] clarkfischer: (which you're not) [03:11] hotroot: So can I do the var self = this; on the first line of the processNew func? [03:11] clarkfischer: sure [03:11] hotroot: Since that's it's containing function [03:11] hotroot: kk [03:12] hotroot: Thanks a lot =) [03:12] clarkfischer: anywhere before you hop into a different context [03:12] hotroot: I see [03:12] clarkfischer: np [03:13] Danielpk has joined the channel [03:13] langworthy has joined the channel [03:14] timbl has joined the channel [03:17] tomlion has joined the channel [03:19] hotroot: clarkfischer: Is my "state" method really inefficient by the way? [03:19] hotroot: Not sure how anyone else would do this text based stuff [03:20] clarkfischer: well, it's a little unmaintainable [03:20] clarkfischer: dunno about inefficient [03:20] hotroot: Yeah, it's a little weird, I don't know how else to do it though [03:21] meandi2 has joined the channel [03:21] hotroot: I feel like I'm looking at it from the wrong angle [03:21] tomlion_ has joined the channel [03:21] clarkfischer: i'd use callbacks and separate the logic into different methods [03:22] hotroot: It does work though. I don't really want to fix something that isn't broken, hard to decide [03:23] clarkfischer: is this a telnet chat server? [03:23] moogoo: yup [03:23] hotroot: There won't be many more states. If any at all. It will mostly be state == "loggedin" and then a big function that checks what command you used, and sends the words after it as args [03:23] hotroot: For now it's a chat server [03:23] hotroot: It will be turned into a game though [03:24] madhums has joined the channel [03:24] hotroot: Just trying to get the basics working. I/O, and databases [03:24] clarkfischer: hrm... [03:24] clarkfischer: why in the world are you generating random ip addresses? [03:25] hotroot: It's a hacking game, haha [03:25] clarkfischer: oh [03:26] clarkfischer: hrm... [03:26] clarkfischer: yeah that could be separated a lot nicer [03:27] hotroot: I'll make it elegant at some point for sure [03:27] zivester has joined the channel [03:27] jacobolus has joined the channel [03:27] hotroot: I just really want to get DB's working for now [03:28] Ned_: So if I have downloaded underscore.js, I can just require() it and everything's fine, now I want to require() backbone.js, but it requires underscore. Is there any nice way I can direct it to the copy I on disk alreayd ? [03:28] clarkfischer: Ned_: npm? [03:28] clarkfischer: npm install backbone [03:28] Ned_: clarkfischer: that installs a different copy of it [03:28] clarkfischer: what do you mean 'different'? [03:29] Ned_: clarkfischer: the situation is that I already have backbone/underscore on my website, and I'd really like node.js to be using the same copies of those files [03:29] Ned_: clarkfischer: well, npm installs in ~/.node_modules (or whatever path) which is clearly different to the copy my website is using [03:29] clarkfischer: you need a specific version? [03:29] Ned_: I'd like node.js and my website using the same copy (since the purpose of the node.js stuff is for testing the website) [03:29] clarkfischer: npm install backbone@version [03:30] Ned_: clarkfischer: yes, I know that too :_) [03:30] Ned_: again though, I'd like to be able to just use the copies I already have on disk [03:30] Ned_: which seems very close to working [03:30] Ned_: I can trivially load the copy of underscore.js I already have [03:30] Ned_: it's just when backbone goes looking for that dep [03:30] Ned_: then it fails ... [03:30] clarkfischer: you'd have to make the _ variable visible to the backbone.js module [03:31] Ned_: Hmmm, is that even possible ? [03:31] Ned_: without getting too kludgy ? [03:31] clarkfischer: not really [03:31] clarkfischer: looks like backbone uses [03:31] clarkfischer: if (!_ && (typeof require !== 'undefined')) _ = require('underscore')._; [03:31] clarkfischer: that line [03:32] clarkfischer: so no matter what, if you're running it under node, it's going to try to require('underscore') [03:32] clarkfischer: you could always have your server serve up node_modules/underscore/underscore.js [03:32] Ned_: Hmmm ... [03:32] Ned_: actually, I think I see a dodgy hack :p [03:35] te-brian has joined the channel [03:37] bminer has left the channel [03:39] clarkfischer: I'm not sure if dodgy is good or bad. [03:40] wiwillia has joined the channel [03:41] hotroot: Woot! SQL problems over with <3 [03:42] hotroot: Now to find out why clients doesn't get updated... [03:43] kejun has joined the channel [03:43] djbell has joined the channel [03:44] dr0id has joined the channel [03:44] _main_ has joined the channel [03:49] mongrelion has left the channel [03:50] boltR has joined the channel [03:50] Vennril has joined the channel [03:50] heavysixer has joined the channel [03:51] tedsuo has joined the channel [03:53] vrs has joined the channel [03:54] vrs: is there a way to run a child process synchronously? (I know it's evil, it's just that for now coding around that is too much effort) [03:54] zilch_: https://gist.github.com/1471889 [03:54] prettyrobots has joined the channel [03:55] laszlo has joined the channel [03:55] zilch_: For the below code if I pass on 'node webterminal.js --command="node" .. things work fine [03:55] ioNull has joined the channel [03:55] zilch_: but for 'node webterminal.js --command="mongo" it doesn't give the response which I would otherwise get using mongo console [03:57] jtgiri_ has joined the channel [03:57] mandric has joined the channel [03:58] jtgiri_ has joined the channel [04:01] nerdfiles has joined the channel [04:01] nerdfiles has left the channel [04:01] Danielpk has joined the channel [04:02] dgathright has joined the channel [04:03] clarkfischer: zilch_: what are you trying to do here? [04:04] clarkfischer: something where you can GET localhost/input/node web terminal.js --command="mongo" and it will send the results? [04:04] clarkfischer: oh [04:05] clarkfischer: you want it to communicate with a process [04:05] criswell has joined the channel [04:05] pizthewiz has joined the channel [04:06] ChrisPartridge has joined the channel [04:07] simoon has joined the channel [04:09] brianloveswords has joined the channel [04:10] secoif: [major changes].[potentially breaking changes].[will not break] <- is that an accurate description of how nodejs modules should be versioned [04:10] isaacs has joined the channel [04:11] clarkfischer: yes [04:11] clarkfischer: http://semver.org/ [04:11] secoif: eg 2.1.1 -> 2.1.2 shouldn't have breaking changes, but 2.1.1 -> 2.2.0 may introduce breaking changes and all best are off for 3.0 [04:11] secoif: s/best/bets [04:12] clarkfischer: yes [04:12] secoif: clarkfischer thanks that's exactly what I'm looking for [04:12] ram___ has joined the channel [04:12] sojj100 has joined the channel [04:14] sojj100 has joined the channel [04:15] zivester has joined the channel [04:16] son100 has joined the channel [04:17] rauchg has joined the channel [04:17] bradleymeck has joined the channel [04:18] kenperkins has joined the channel [04:19] davidedwardclark has joined the channel [04:23] torm3nt has joined the channel [04:24] jakehow has joined the channel [04:26] isaacs: globs are a pita [04:28] simoon: isaacs http://www.youtube.com/watch?v=Ur5g0l93F2g [04:28] isaacs: :D [04:31] jklabo_ has joined the channel [04:33] ryan_stevens has joined the channel [04:34] kejun has left the channel [04:37] sarlalian has joined the channel [04:38] kazupon has joined the channel [04:39] timewater has joined the channel [04:40] qbit_ has joined the channel [04:42] criswell has joined the channel [04:42] hotroot: I sort of feel like making a tabletop RPG client in node. Then getting sued by Wizards of the Coast and fleeing to Switzerland. [04:44] jtsnow has joined the channel [04:49] metalball2 has joined the channel [04:49] Me1000 has joined the channel [04:50] boehm has joined the channel [04:53] simoon: hootroot: I've had very similar thoughts :o [04:53] devongovett has joined the channel [04:53] simoon: lol uh [04:54] simoon: hotroot: I've had similar thoughts but with a TCG [04:55] davidedwardclark: hotroot: do it [04:55] zilch_: clarkfischer, I want to have my mongo console be extended to web ! [04:55] isaacs has joined the channel [04:55] boltR: is it possible to call binaries from nodejs similar to php's exec() ? [04:55] davidedwardclark: I'm new to nosql, should i start with mongodb? [04:56] zilch_: basically a web page with textarea to input what I would otherwise input in terminal [04:56] isaacs has joined the channel [04:57] jyp: boltR: require('child_process').exec [04:57] isaacs has joined the channel [04:57] boltR: jyp: awesome thanks [04:57] vrs has left the channel [04:57] jaitaiwan has joined the channel [04:58] dgathright has joined the channel [04:58] isaacs has joined the channel [04:58] anoop has joined the channel [04:59] joshthecoder has joined the channel [04:59] pradeebv_ has joined the channel [04:59] isaacs has joined the channel [05:00] isaacs: ircretary: bomb canada [05:00] ircretary: isaacs: Launching all missiles [05:00] petrjanda has joined the channel [05:01] dgathright has joined the channel [05:02] hotroot: simoon: I've thought about it TCG to [05:02] halfhalo: yay missles! [05:02] jyp: what missles? [05:03] hotroot: And if I do end up making a card game, I'll have to code a client for it to, along with the actual paper versions [05:03] mehlah has joined the channel [05:08] towski has joined the channel [05:08] Leemp2 has joined the channel [05:09] Leemp2: Is there such a thing as running a local npm server? And, even better, having "npm install X" look for the package locally first, then in the main package repo? [05:09] dwhittle has joined the channel [05:09] isaacs: Leemp2: 1. yes. 2. it looks in the cache (which is going to be much more effective in the version releasing tomorrow), but you can point it at any registry you like. [05:09] isaacs: Leemp2: npm help registry [05:10] gkatsev has joined the channel [05:10] Leemp2: isaacs: ty :) [05:10] Swimming_Bird has joined the channel [05:11] jklabo_ has joined the channel [05:12] isaacs has joined the channel [05:13] josephg has joined the channel [05:13] harthur has joined the channel [05:15] SamuraiJack has joined the channel [05:17] TheLifelessOne has left the channel [05:20] mnutt has joined the channel [05:24] dwhittle has joined the channel [05:24] isufy has joined the channel [05:29] JaKWaC has joined the channel [05:29] brianloveswords_ has joined the channel [05:30] jtgiri_ has joined the channel [05:31] vl4kn0 has left the channel [05:31] shedinja has joined the channel [05:31] flip_digits has joined the channel [05:33] pradeebv has joined the channel [05:34] criswell has joined the channel [05:35] NetRoY has joined the channel [05:35] _dc has joined the channel [05:36] sebastianedwards has joined the channel [05:36] wingie has joined the channel [05:37] wingie: anyone using vowsjs here? vowsjs extends node.js assert module but when i do require("assert") i still get the unextended version [05:39] zilch_: wingie, show the code [05:41] _dc has joined the channel [05:41] cha0s has joined the channel [05:41] cha0s has joined the channel [05:41] wingie: zilch_: https://gist.github.com/1475427 [05:41] wingie: from vim :) [05:42] perezd has joined the channel [05:43] zilch_: wingie, I envy you :) [05:43] wingie: it':) [05:44] wingie: I get Property 'length' of object function ok(value, message) {..} is not a function [05:45] yuchi_ has joined the channel [05:45] ryan_stevens has joined the channel [05:46] wingie: here is a better example: https://gist.github.com/1475427 [05:48] nerdfiles has joined the channel [05:48] nerdfiles has left the channel [05:48] skunkape has joined the channel [05:48] k1ttty has joined the channel [05:49] icewhite has joined the channel [05:50] zilch_: wingie, can I has pure javascript version :P [05:50] garrensmith has joined the channel [05:50] zilch_: anyway I am on it [05:52] sarlalian has joined the channel [05:53] OmidRaha has joined the channel [05:54] pradeebv_ has joined the channel [05:55] wingie: zilch_: this is a good one to convert: http://js2coffee.org/ [05:55] wingie: it will give you a clean translation [05:58] tedsuo has joined the channel [05:59] k1ttty has joined the channel [05:59] jagautier has joined the channel [06:00] jagautier: if i have a bunch of installed packages in a project can i use npm to generate a package.json with currently installed packages? [06:01] lorfds has joined the channel [06:01] ditesh|cassini has joined the channel [06:01] mansoor has joined the channel [06:02] HT has joined the channel [06:03] wingie: jagautier: you could do "npm list" and see all packages installed then just use them in package.json [06:03] jagautier: yeah thats what ill do, i was being lazy :P [06:03] wingie: can't see why you wanna generate package.json from node_modules [06:04] wingie: it should be the other way around .. npm packages should be installed depending on whats in package.json :) [06:05] jagautier: yeah my problem was i didnt start the package.json right away [06:05] jagautier: bad habit [06:05] JaKWaC has joined the channel [06:05] kriszyp4 has joined the channel [06:05] blueadept has joined the channel [06:06] aar0ntw has joined the channel [06:06] ryan_stevens has left the channel [06:07] captain_morgan has joined the channel [06:08] wingie: i always include it in package.json and then just do npm install [06:08] wingie: it will only install whats new [06:09] isaacs: jagautier: you could probably wire up some awk stuff from `npm ls -lp` [06:09] jagautier: well i just wrote up the deps by hand just now [06:09] jagautier: prob not worth the effort [06:12] jagautier: although I have never used awk, so it could be a fun excersise [06:15] jaitaiwan has joined the channel [06:16] mraleph has joined the channel [06:16] isaacs: jagautier: i always end up wimping out and using perl or sed [06:16] isaacs: and just regexping my way out of it [06:16] jagautier: is it better to only commit the package.json and not node_modules or should i commit node_modules? [06:18] jagautier: isaacs: your a braver man than I, i would just wimp out and do it by hand :P [06:19] Skaag_ has joined the channel [06:21] isaacs: almost there: npm ls -lp --depth 1 | grep -v MAXDEPTH | awk -F: '{print $2}' | (echo '{';perl -pi -e 's/([^@]+)@(.*$)/,"\1": "\2"/g';echo '}') [06:21] isaacs: just need to make that , into a { on the first line, rather than echoing an extra one [06:23] xjiujiu has joined the channel [06:24] zilch_: I want to make my mongo console available on browser ... just like how xterm can be made available using https://github.com/gatapia/ox [06:26] marcello3d has joined the channel [06:27] purr has joined the channel [06:27] pgriess has joined the channel [06:29] JaKWaC has joined the channel [06:29] boltR: what's the difference between nodejs and socketio? [06:29] boltR: they look pretty similar in what they do [06:29] otakutomo has joined the channel [06:29] Fuu has joined the channel [06:30] boltR: except for the fact that the client now has explicit functions it can call to the server.. [06:31] JasonSmith: isaacs: About to publish a tool as a possible way to generate the npm site [06:31] JasonSmith: based on Mikeal's code [06:31] JasonSmith: As they say: cache invalidation, and naming things. Do you have any opinion about "static plus" vs. "stop motion" vs. "stop action"? [06:31] isaacs: JasonSmith: hahah [06:32] isaacs: JasonSmith: this program touches all three of the problems! [06:32] JasonSmith: the cli is currently bin/static+ [06:32] JasonSmith: totally although I think I have a good solution [06:32] isaacs: JasonSmith: here is my request: please dump the docs into a folder that nginx can serve up nicely. [06:32] JasonSmith: hey how come "static+" is not a valid package name? Are you saying you think you're better than GOOGLE? [06:32] isaacs: i have a folder all ready and waiting to go [06:33] isaacs: JasonSmith: static+ has a special char in it [06:33] isaacs: must be filesystem and urlsafe [06:33] JasonSmith: aw dude, that answer is special [06:33] joestein has joined the channel [06:33] isaacs: special? [06:33] isaacs: oh, hahah [06:33] isaacs: i've been strongly anti-+-in-urls for a long time now. [06:34] isaacs: and + in filenames? ew. [06:34] JasonSmith: yeah, it supports output to a directory (which it cleans out thanks to rimraf), or an in-memory object, or attachments in a couch doc [06:34] isaacs: dpkg does that. [06:34] isaacs: don't get me started. [06:34] JasonSmith: g++ [06:34] Margle has joined the channel [06:34] isaacs: yeah, as if you need ANOTHER reason to not use c++ [06:35] isaacs: bsd ports does it to [06:35] JasonSmith: You're a Windows developer now. In seriousness, do you know if that's a problem on Windows? [06:35] isaacs: +UPDATES, +BUILD, etc [06:35] isaacs: no idea. [06:35] JasonSmith: yeah Unix made the sensible decision that '+' is just as valid or invalid as '-' in filenames [06:35] isaacs: but long years of web development and command line tooling have convinced me: filenames shall be [a-z.-] [06:35] JasonSmith: It then failed to take over the world [06:36] isaacs: maybe --- MAYBE --- some numbers in there. [06:36] isaacs: i fucked up not forcing lowercase names, and we'll be stuck with that bs forever now. [06:36] JasonSmith: no underscore huh? [06:36] isaacs: not in filenames, no. [06:36] isaacs: (a SHOULD, not a MUST) [06:36] JasonSmith: yeah I did the exact same thing with Iris Couch subdomains [06:36] JasonSmith: there was Bob.iriscouch.com and bob.iriscouch.com and as you might expect, that came to a head [06:36] isaacs: lovely [06:37] isaacs: at one point we had Markdown and markdown [06:37] JasonSmith: So, you're saying you don't care what it's called as long as it makes files? [06:37] isaacs: yeah [06:37] JasonSmith: I can dig [06:37] dilvie has joined the channel [06:37] JasonSmith: TTYL [06:37] JasonSmith: thanks again [06:37] isaacs: JasonSmith: so one more thing [06:37] JasonSmith: yeah [06:37] isaacs: it'd be rad if it didn't write files 100 times [06:37] isaacs: i noticed with mikeal's thing, it writes for every change. [06:37] JasonSmith: So, it hits your db and sees what sequence you're up to, say 1,234 [06:38] isaacs: you almost wanna just walk the db once, and just follow changes from there. [06:38] JasonSmith: then it hits _changes and it outputs a site when it gets to update 1234 [06:38] isaacs: i see [06:38] JasonSmith: Next it sits on the feed [06:38] isaacs: awesome. [06:38] JasonSmith: You can configure a minimum updates threshold, or a minimum time threshold, and whichever is hit first, it re-outputs a site [06:38] isaacs: kewl [06:38] superjudge has joined the channel [06:39] isaacs: also: it'd be nice if it could try to fetch-on-demand if you hit /foo [06:39] isaacs: and there's no file there [06:39] JasonSmith: So if your db changes slowly like a blog, you get a site instantly. If it changes quickly it doesn't go crazy [06:39] JasonSmith: wait, what now? [06:39] isaacs: well, i'm gonna set it up so that modules.nodejs.org is an nginx thingie that proxies to localhost:15443 but only if the file isn't found. [06:40] JasonSmith: okay, and what is 15543? [06:40] isaacs: some node server. then that server can fetch just that one, static-ify it, and serve it [06:40] isaacs: here's what happens: people publish smoething, then immediately go view it [06:40] caffine has joined the channel [06:40] isaacs: because we're monkeys. [06:40] JasonSmith: Yeah, monkey brain [06:40] isaacs: right [06:40] realguess has joined the channel [06:41] isaacs: if it takes 30s to get there (totally reasonable) they go "WTF IS BROKE WHY IS BROKE!?" [06:41] isaacs: and reload like crazy getting a 404 page, post a bug, email the list, come ask in here, and then someone else views it and goes, "um, works for me?" [06:41] isaacs: and they feel silly. [06:41] JasonSmith: I would say for now, considering the site isn't even live, use the CLI. But it is just a super thin wrapper around the API [06:41] isaacs: yeah [06:41] shiawuen has joined the channel [06:41] confoocious has joined the channel [06:41] isaacs: that bit is easy to add later :) [06:42] JasonSmith: So the next step is that your node program, among the other things that it does, now it does require('static-plus') and you teach it how to build a page from a doc [06:42] JasonSmith: that way you can reuse code when you get that monkey looking for his own package [06:42] isaacs: nice [06:43] JasonSmith: So, if you deploy to couch, you get two things: [06:43] JasonSmith: 1. Atomic update, regardless of how much the site changed [06:43] JasonSmith: 2. You can query the couch api, with request() [06:43] JasonSmith: Just saying. But nginx is the 1st milestone [06:43] isaacs: right [06:44] isaacs: but we've already got nginx goin [06:44] JasonSmith: Well you've already got couch goin but I'll stop bikeshedding now [06:44] isaacs: caching to html is sort of nice. [06:44] superjudge has joined the channel [06:44] isaacs: so, your vision of this is putting the html into a different couchdb as docs? [06:44] isaacs: or as attachments in the existing one? [06:45] JasonSmith: My vision is for it to perfeclty strike the balance between simple and flexible. But that said, yeah I want to switch the iriscouch.com site to static plus [06:45] iRoj has joined the channel [06:45] JakeyChan_ has joined the channel [06:45] JasonSmith: Currently it runs on static plus's closed source shitty grandad [06:46] isaacs: JasonSmith: cool. well, i've got no objection to running on whatever iriscouch provides. [06:46] JasonSmith: Anyway, yeah, it builds static HTML pages just like before, but they all go under one document [06:46] jaitaiwan has joined the channel [06:46] isaacs: i see [06:46] JasonSmith: so you have a document with 5,000 html attachments. Whatevs. [06:46] isaacs: right [06:46] isaacs: no reason why we can't have both [06:46] JasonSmith: Then to deploy you HTTP COPY it from the private id to the public one [06:46] JasonSmith: yeah [06:46] pquerna: this is how i feel tonight http://www.youtube.com/watch?v=wxMd93aCvd0 [06:47] JasonSmith: also I'm hoping static plus can deploy to S3. So you can just CNAME your domain and get a decent web site [06:47] pquerna: shit-be-working-wooooooooo [06:47] JasonSmith: isaacs: Oh, quick kanso question? [06:47] isaacs: pquerna: \o/ [06:48] JasonSmith: kanso has its own package repository now. They are weird because they install both Node code and also generate code for Couch [06:48] pquerna: #nodejsIsMyDeathStar [06:48] JasonSmith: isaacs: I think the correct answer is for kanso to use the npm api. Where should I start to learn how that works? [06:48] isaacs: JasonSmith: you mean, as a registry? [06:49] langworthy has joined the channel [06:50] JasonSmith: isaacs: Let's say I use Node to generated some javascript, and a package.json. It's in /path/to/generated-app/. And my Node script knows that this app depends on some npm packages, like async or whatever [06:50] JasonSmith: So I want to make /path/to/generated-app/node_modules/ and I want the desired version of async in there [06:51] CoffeeIV has joined the channel [06:51] JasonSmith: If this was due in 1 hour I would chdir to the app and run a shell command `npm install async@a.b.c` [06:52] codygray has joined the channel [06:52] JaKWaC has joined the channel [06:52] isaacs: ok [06:52] isaacs: what's "generated" about it? [06:53] isaacs: i'm confused on that point [06:53] simoon: lol pquerna >.< that doesnt seem like a good sign :P [06:53] yank has joined the channel [06:53] JasonSmith: Well, that's a detail that I tried to gloss over. But it's a package pulled from the kanso repository [06:57] mike5w3c_ has joined the channel [06:58] meso has joined the channel [07:01] jacobolus has joined the channel [07:01] meso has joined the channel [07:02] jesusabdullah: JasonSmith: cd /path/to/generated-app/ && npm install? [07:03] JasonSmith: Right but I'm in a node application. It seems reasonable that I could require('npm') and use its api [07:04] romanb has joined the channel [07:05] versicolor has joined the channel [07:06] harthur has joined the channel [07:06] boltR has joined the channel [07:06] fangel has joined the channel [07:07] pity has joined the channel [07:09] smathy has joined the channel [07:10] ritch has joined the channel [07:13] ritch has left the channel [07:13] benvie has joined the channel [07:13] kwmiebach_ has joined the channel [07:13] wmage has joined the channel [07:14] fzzzy_ has joined the channel [07:15] Swizec_ has joined the channel [07:15] abraxas_ has joined the channel [07:15] jxie_ has joined the channel [07:16] simoon has left the channel [07:17] Skaag_ has joined the channel [07:17] ghost has joined the channel [07:18] jesusabdullah: Oh, you mean its programmatic api [07:19] ag4ve has joined the channel [07:19] _sorensen_ has joined the channel [07:19] pyparadigm has joined the channel [07:19] dshaw_ has joined the channel [07:20] jesusabdullah: JasonSmith: Look at the readme under "using npm programmatically" [07:24] maletor has joined the channel [07:25] garrensm_ has joined the channel [07:26] einaros: mmalecki: cool :) did you run into any trouble? I have a few points on my todo-list I figure could be related to that module [07:27] pradeebv has joined the channel [07:28] pgriess has left the channel [07:28] jaitaiwan has joined the channel [07:28] metalball2 has joined the channel [07:29] towski has joined the channel [07:29] blaenk has joined the channel [07:29] blaenk has joined the channel [07:29] braoru has joined the channel [07:35] isufy has joined the channel [07:38] kishoreyekkanti has joined the channel [07:39] otakutomo has joined the channel [07:39] Typo has joined the channel [07:39] Typo has joined the channel [07:39] otakutomo has joined the channel [07:42] otakutomo has joined the channel [07:47] abraxas: the joyent github modules list is screwed up again [07:47] LeMike has joined the channel [07:48] juske_ has joined the channel [07:49] wmage has left the channel [07:50] groom has joined the channel [07:51] kickingvegas has joined the channel [07:51] kickingvegas: Hi Folks - wondering is there a convention for defining an error object for Node.js? [07:52] replore_ has joined the channel [07:52] replore__ has joined the channel [07:52] kickingvegas: asking if there is one before I roll my own [07:52] gut4 has joined the channel [07:52] jgornick has joined the channel [07:53] context: kickingvegas: extend Error [07:53] pity: Is there any possibility to kill all workers of build in cluster of newest node, if master is killed? [07:53] ph^ has joined the channel [07:53] kickingvegas: context: where is Error defined? [07:54] context: somewhere in node ? [07:54] context: or just throw an error object if you dont need a custom one [07:55] hipsters_ has joined the channel [07:55] JasonSmith: Error is defined in v8 [07:55] context: ahh duh. error is apart of js not node [07:55] JasonSmith: deps/v8/src/messages.js [07:56] `3rdEden has joined the channel [07:57] kickingvegas: hmm. ok what's the win in extending Error? [07:58] kickingvegas: also, how would one actually extend Error [07:58] igl has joined the channel [07:58] Fuu has joined the channel [07:58] towski has joined the channel [07:59] context: kickingvegas: if you need to do more than error provides? [07:59] context: kickingvegas: same way you extend any object? [07:59] JasonSmith: Lost power. Here is a good document on extending Error https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types [07:59] k1ttty has joined the channel [07:59] JasonSmith: Here is how the Node standard library extends it to make AssertError https://github.com/joyent/node/blob/master/lib/assert.js#L40-52 [08:00] k1ttty_ has joined the channel [08:01] JasonSmith: if you catch(err) then you can check if err instanceof MyError [08:01] kickingvegas: JasonSmith: great - this is exactly what I'm looking ofr. [08:01] kickingvegas: for. [08:01] theCole has left the channel [08:01] JasonSmith: That's weird. I was just reading all those docs today for a completely different reason [08:01] JasonSmith: Community FTW [08:01] Morkel has joined the channel [08:02] aar0ntw has joined the channel [08:02] fangel has joined the channel [08:02] benvie: open source wins by default. It's like the opposite of the statement in Fight Club [08:02] benvie: on a long enough timeline, everyone's survival rate drops to zero [08:02] kickingvegas: JasonSmith: yeah, the problem I'm facing is writing code to manage errors coming from Postgresql and Twilio [08:02] benvie: on a long enough timeline, open source projects automatically become better [08:02] jomoho has joined the channel [08:03] JasonSmith: Yeah [08:04] kickingvegas: JasonSmith: wanted a way to handle errors in a standard way, in this case munging the pg errors (which may already be extended from Error ) and Twilio responses which you have to roll your own [08:04] JasonSmith: Yeah [08:04] JasonSmith: although I've seen a lot of code where they do er = new Error(); er.my_custom_stuff = 'some custom data'; throw er; [08:05] benvie: Error functionality is partially unspecified [08:05] kickingvegas has joined the channel [08:05] JasonSmith: (in Node). So in the catcher, instead of checking for the error type, you check for duck type. if(er.my_custom_stuff) then_this_is_mine(); else whatever() [08:05] kickingvegas: while I'm at it, how do you determine the base class of an object? For some reason I heard that instanceof is broken [08:05] thalll has joined the channel [08:05] raphdg has joined the channel [08:05] garrensmith has joined the channel [08:05] benvie: the specificied part is that Error.toString() return err.name + ": " + err.message [08:06] bosphorus has joined the channel [08:06] benvie: the rest is not [08:06] JasonSmith: benvie: yeah. I believe err.stack is defined in all modern browsers and v8, but the contents of err.stack are "implementation-specific" [08:06] JasonSmith: which is to say, a bunch of baloney [08:07] benvie: var myerror = Error(); myerror.name = "SomeStuffBroke". myerror.message = "It broke so fix it".; throw myerror; [08:07] benvie: yeah the stack can vary but it's always there in modern stuff [08:08] petrjanda has joined the channel [08:08] benvie: it's often not super useful in Node without processing it [08:08] caioketo: Im getting this error while tring to compile v0.6.5 "No such file or directory "\\cygdrive\\c\\users\\keto\\workspace\\node\\deps\\zlib\\zlib.vcxproj.filters" [08:08] benvie: due to nested vm usage [08:08] benvie: like the line numbers and filenames [08:09] benvie: you need to specify fake filenames in vm usage to have useful stack traces [08:09] caioketo: can someone helps me? [08:10] emattias has joined the channel [08:10] lwille has joined the channel [08:14] martin_sunset has joined the channel [08:14] kuebk has joined the channel [08:15] hotroot: Yay! My chat server is now fully working <3 Right before sleep to [08:16] beevits has joined the channel [08:17] ablomen has joined the channel [08:17] neoesque has joined the channel [08:18] lzskiss has joined the channel [08:20] kuebk1 has joined the channel [08:20] ccare has joined the channel [08:21] pity: caioketo: I installed v0.6.5 yesterday on ubuntu server without any problems [08:21] skylamer` has joined the channel [08:21] caioketo: but im on windows [08:21] galaxywatcher has joined the channel [08:21] kickingvegas: JasonSmith: thanks for the input! [08:22] kickingvegas: JasonSmith: fwiw, pg does extend Error [08:23] context: caioketo: click download. there is an msi package for windows [08:24] isaacs: caioketo: it looks like youer' trying to build in cygwin. [08:24] isaacs: that is not supported [08:24] djcoin has joined the channel [08:24] isaacs: you can use either msvs or install from the msi [08:24] dexter_e has joined the channel [08:24] caioketo: i know that, i already installed, but i need to build node [08:24] rendar has joined the channel [08:24] caioketo: i got vs2010 here [08:24] loob2 has joined the channel [08:24] caioketo: but he is not creating the sln file [08:26] jbpros has joined the channel [08:26] kickingvegas: ACTION debating to drink beer, sleep, code or all three... [08:27] dexter_e: whoa sleep and code at the same time [08:28] kickingvegas: dexter_e: callbacks on all three [08:28] hotroot: Drink and sleep at the same time is impressive to [08:28] caioketo: someone got the vs file for me build node in vs2010? [08:28] dexter_e: hahhahaaha [08:28] hotroot: What's wrong with the msi? [08:29] dexter_e: I think your drinking and coding callback will have session dependencies on the sleep callback [08:30] romanb has joined the channel [08:30] dexter_e: You man need to be logged in to code and keep drinking :) [08:30] kickingvegas: putting it to the test, just cracked open beer [08:30] dexter_e: nice [08:30] adrianF has joined the channel [08:31] wbednarski has joined the channel [08:32] gripir has joined the channel [08:33] gripir has left the channel [08:34] JasonSmith: kickingvegas: cool [08:34] caioketo: o need to build, i cant just install node [08:35] binaryjohn has joined the channel [08:36] hotroot: If you're windows machine isn't capable of installing node for whatever reason, I can't imagine it's working well enough to compile it... [08:37] caioketo: i got it installed already [08:37] azend_ has joined the channel [08:38] caioketo: but i need to compile, couse i need to install an module that cant be installed in windows trought the npm install [08:38] [AD]Turbo has joined the channel [08:38] gausby has joined the channel [08:39] admc has joined the channel [08:39] hotroot: Thought about dual booting? [08:39] hotroot: http://pic.smasher.org/default1.png [08:40] TurboAWAY has joined the channel [08:42] aar0ntw has joined the channel [08:42] kishoreyekkanti has joined the channel [08:42] Margle has joined the channel [08:43] SamuraiJack has joined the channel [08:45] IrishGringo has joined the channel [08:46] Druid_ has joined the channel [08:47] caioketo: kkkk [08:47] caioketo: i think about it [08:47] caioketo: but, its not like im an expert on linux [08:47] caioketo: =~/ [08:48] k1ttty has joined the channel [08:52] [AD]Turbo has joined the channel [08:53] Fabryz: is there a npm module to check js syntax? Like jslint [08:53] mange has joined the channel [08:53] Fabryz: but without having to copypaste everytime on the site [08:54] Fabryz: I guess this? https://github.com/reid/node-jslint [08:54] mendel_ has joined the channel [08:57] LeMike has joined the channel [08:57] booyaa: word to big bird [08:57] admc has joined the channel [08:58] hotroot: caioketo: It's not that hard. www.ubuntu.com [08:58] hotroot: Night all [08:58] booyaa: night [08:58] caioketo: but is kind i got ALL working on windows, it will be a little messy if i need to migrate all it for linux [08:59] hotroot: I'm too tired to understand that, about to sleep, but I'll be on tomorrow if you need help [08:59] hotroot: Peace all. Goodnight, and may all your bugs meet their end swiftly =) [09:00] hackband has joined the channel [09:00] mpavel has joined the channel [09:00] JakeyChan has joined the channel [09:01] mpavel has left the channel [09:02] cognominal_ has joined the channel [09:02] caioketo: thnks good nigh [09:04] hipsters_ has joined the channel [09:04] hellp has joined the channel [09:05] aaronmcadam has joined the channel [09:07] robhawkes has joined the channel [09:08] bergie has joined the channel [09:08] ph^ has joined the channel [09:11] lzskiss has joined the channel [09:12] JakeyChan_ has joined the channel [09:13] ShotgunKlaus has joined the channel [09:16] dexter_e has joined the channel [09:18] salva has joined the channel [09:19] MrBenn has joined the channel [09:20] mAritz has joined the channel [09:22] pradeebv has joined the channel [09:24] tilgovi has joined the channel [09:24] tilgovi has joined the channel [09:24] cedeon_ has joined the channel [09:26] innociv_ has joined the channel [09:26] adambeynon has joined the channel [09:26] wilken has joined the channel [09:27] willwh has joined the channel [09:27] willwh has joined the channel [09:27] MrNko has joined the channel [09:29] sylvinus has joined the channel [09:34] nicholasf has joined the channel [09:34] davidbanham has joined the channel [09:36] michaelhartau has joined the channel [09:37] kickingvegas has left the channel [09:37] Margle has joined the channel [09:38] stonebranch has joined the channel [09:38] jimmysparkle has joined the channel [09:39] joshontheweb has joined the channel [09:41] jimmysparkle has joined the channel [09:42] davidbanham has joined the channel [09:43] gripir has joined the channel [09:43] gripir has left the channel [09:48] robi42 has joined the channel [09:48] garrensmith: Fabryz: there is also jshint in npm [09:48] josh-k has joined the channel [09:49] Fabryz: garrensmith thx [09:50] kejun has joined the channel [09:53] joshgillies has joined the channel [09:53] baudehlo has joined the channel [09:54] JakeyChan has joined the channel [09:55] dannyamey has joined the channel [09:55] kazupon has joined the channel [09:56] joshontheweb has joined the channel [09:58] cl0udy has joined the channel [09:59] otakutomo has joined the channel [09:59] emattias_ has joined the channel [10:00] meso has joined the channel [10:01] cl0udy: hi [10:01] cl0udy: does anyone have experience with clamav and nodejs? [10:02] cl0udy: anyone can help? [10:03] cl0udy has joined the channel [10:04] thalll has joined the channel [10:04] baudehlo: cl0udy: we have a haraka plugin which calls out to clamd [10:05] cl0udy: i need something for file uploads [10:05] cl0udy: but thanks baudehlo [10:05] cl0udy: can pm u? [10:05] baudehlo: yeah, but I'm saying read the code, then it'll become more obvious [10:05] baudehlo: read the code, steal the code, etc. [10:06] baudehlo: it's open source. [10:06] cl0udy: yea was just about to ask about that :) [10:06] caioketo: can someone helps me? i need to build node in windows vs2010, but when I run the vcbuild.bat it throws me an error [10:07] jetienne has joined the channel [10:07] baudehlo: cl0udy: http://lmgtfy.com/?q=haraka [10:09] meso_ has joined the channel [10:09] sylvinus has joined the channel [10:10] slaskis has joined the channel [10:10] gausby has joined the channel [10:12] caioketo: where can I find some tutorials about sockets in android? [10:12] TimTimTim has joined the channel [10:13] cp42 has joined the channel [10:13] Margle has joined the channel [10:13] eldios has joined the channel [10:14] dubenstein has joined the channel [10:14] astropirate has joined the channel [10:14] astropirate: Anyone looking to hire a freelance node developer? :) [10:15] caioketo: =D [10:16] saschagehlich has joined the channel [10:17] fly-away has joined the channel [10:18] TomY_ has joined the channel [10:19] alFReD-NSH has joined the channel [10:22] arcanis has joined the channel [10:22] Bioxyde has joined the channel [10:23] mara has joined the channel [10:23] Bioxyde has left the channel [10:23] dshaw_ has joined the channel [10:24] ph^ has joined the channel [10:24] wilken has joined the channel [10:27] markwubben has joined the channel [10:31] otakutomo has joined the channel [10:32] sylvinus_ has joined the channel [10:34] cjm has joined the channel [10:34] MrBenn has joined the channel [10:35] franquis has joined the channel [10:35] franquis: hi guys [10:36] trupppOFF has joined the channel [10:36] jldbasa has joined the channel [10:37] franquis: i have a question about 'node_modules': which directory should i run 'npm install xxxx' (i'm working on CentOS and Node is build in /opt/node) [10:38] herbySk has joined the channel [10:38] slaskis: franquis: in your project directory [10:39] myxomorg has joined the channel [10:39] cl0udy: is this true? http://teddziuba.com/2011/10/node-js-is-cancer.html [10:40] thalll_ has joined the channel [10:40] jetienne: cl0udy: yes and children crie too [10:40] franquis: so if im working in /var/www/myproject, and if I run there npm install express and in my app.js, the require() will search in /var/www/myproject/express, is that right? [10:40] Creap: yes, we're all just here to pack up our bags and leave [10:41] franquis: sorry in /var/www/myproject/node_modules/express [10:41] slaskis: franquis: yep [10:41] myxomorg: I completely agree with you Creap [10:41] franquis: thks! [10:41] cl0udy: no i mean im already halfway done with my site [10:41] cl0udy: reading this scares me in terms of scalability [10:42] Creap: ted would have preferred it if you wrote it all in bash script, I don't think you need to worry [10:42] f1gm3nt has joined the channel [10:43] Margle has joined the channel [10:44] slaskis: cl0udy: i think his examples has been more or less disproved [10:44] cl0udy: thanks slaskis [10:44] cl0udy: slaskis can i pm need to ask about it further [10:45] slaskis: cl0udy: sure, but i [10:45] slaskis: m not an expert on the subject [10:45] cjm has left the channel [10:46] msch: hi, anyone know how i can JSON escape some arbitrary string? e.g. turn "Hi " into \"Hi \" [10:47] SubStack: .. JSON.stringify('oh hello') [10:47] SubStack: v8: JSON.stringify('oh hello') [10:47] SubStack: WHERE ARE ZEE ROBOTS [10:48] bradleyg has joined the channel [10:50] ppcano has joined the channel [10:50] jaitaiwan has joined the channel [10:50] msch: SubStack: thanks! [10:52] aliem has joined the channel [10:52] thalll has joined the channel [10:56] meandi3 has joined the channel [10:56] mikl has joined the channel [10:56] mikl has joined the channel [10:57] Connorhd has joined the channel [10:58] fermion has joined the channel [11:03] xjiujiu has joined the channel [11:05] shiawuen has joined the channel [11:06] SoulRaven has joined the channel [11:07] fangel has joined the channel [11:10] ph^ has joined the channel [11:10] fangel has joined the channel [11:14] burningdog has joined the channel [11:14] delian66 has joined the channel [11:15] r04r has joined the channel [11:15] dscape: anyone got any recs for developing npm ? [11:16] dscape: like linking and such [11:18] kazupon has joined the channel [11:20] Fuu` has joined the channel [11:20] rurufufuss has joined the channel [11:21] AAA_awright has joined the channel [11:23] dantalizing has joined the channel [11:24] bnoordhuis has joined the channel [11:27] kuebk has joined the channel [11:28] astropirate: dscape, recs? [11:29] dscape: astropirate: recommendations :) [11:29] franck34 has joined the channel [11:30] stagas has joined the channel [11:30] Kiryaka has joined the channel [11:30] astropirate: dscape, http://npmjs.org/ [11:30] astropirate: :D [11:31] astropirate: checkout the readme [11:31] astropirate: and help docs [11:31] astropirate: but there is no guide [11:31] prettyrobots has joined the channel [11:31] dscape: well thats for developing packages [11:31] dscape: no developing npm itself [11:31] dscape: :) [11:31] pickels has joined the channel [11:31] dscape: s/no/not/ [11:31] dscape: thanks anyway :) [11:31] astropirate: dscape, i'm confused :S [11:32] Lingerance: He wants to hack on npm [11:32] Lingerance: Like add a feature to it or something [11:33] dscape: yup, and changing files outside the repo is not ideal [11:33] dscape: so was looking for some guidelines [11:33] Glenjamin: fork it on github [11:33] Glenjamin: there's some guidelines on isaac's code style [11:33] Glenjamin: apart from that, you'll get feedback on pull requests [11:33] Glenjamin: especially if you do each suggested improvement separately [11:34] dscape: Glenjamin: but i already have npm installed and didnt want to uninstall the stable version just to do development [11:34] dscape: hence the question on is there's any recommendations on doing that [11:34] Glenjamin: hrm [11:34] Glenjamin: try "npm link" inside the repo [11:34] Glenjamin: aside from that, ask isaacs how he does it [11:35] dscape: Glenjamin: yes, but is that the right way to do it? will it break something? :) [11:35] Glenjamin: doesn't look like he's up yet [11:35] dscape: dunno [11:35] dscape: well, just going to uninstall npm and develop instead :P no stable npm for me i guess :P [11:35] tvw has joined the channel [11:35] alFReD-NSH has joined the channel [11:36] aliem_ has joined the channel [11:36] alFReD-NSH has left the channel [11:37] benlyn has joined the channel [11:38] stagas: dscape: use a vm [11:39] otakutomo has joined the channel [11:40] vguerra has joined the channel [11:42] senorpedro has joined the channel [11:43] nicholasf has joined the channel [11:49] stagas has joined the channel [11:50] dexter_e has joined the channel [11:50] creationix has joined the channel [11:52] dscape: answering my own question, make uninstall, then make install [11:52] dscape: npm link with appropriate chown on /usr/local, .npm and the repo [11:52] d0k has joined the channel [11:54] chia has joined the channel [11:57] niko has left the channel [11:58] otakutomo has joined the channel [12:00] otakutomo has joined the channel [12:01] cognominal has joined the channel [12:03] cp42 has joined the channel [12:03] mange has joined the channel [12:06] whitman has joined the channel [12:06] k1ttty has joined the channel [12:08] israeldelahoz has joined the channel [12:09] israeldelahoz: hey guys, can anyone help me with an issue related to express static files cache? [12:12] stagas: israeldelahoz: what's the issue? [12:13] enmand has joined the channel [12:14] benn has joined the channel [12:14] israeldelahoz: after some hour on my site, static files stop loading normally, and just some of them load on my page, I though it was related to the cache of the exrpress.static configuration [12:16] Xano has joined the channel [12:16] Booba has joined the channel [12:17] SamuraiJack has joined the channel [12:17] stagas: israeldelahoz: what's the response status on these? [12:18] snearch has joined the channel [12:20] israeldelahoz: they stay as pending on the browser, there is allways at least one of the files that does not load, I've changed the "maxAge" param for express.static, but its the same [12:21] stagas: israeldelahoz: one of your middleware is not calling next() so it never responds, I don't think it has to do with express.static, rather your middleware config is broken [12:22] aar0ntw has joined the channel [12:22] lulzilla has joined the channel [12:22] israeldelahoz: but it works correctly the first hours that I start my server [12:23] lulzilla: Qt bindings for Node? [12:24] CrisO has joined the channel [12:25] vkareh has joined the channel [12:26] josephg has joined the channel [12:26] tomlion has joined the channel [12:26] SamuraiJack_ has joined the channel [12:27] stagas: israeldelahoz: make a middleware and log activity right above static and see if it ever reaches there [12:27] stagas: israeldelahoz: my guess is one of the middleware above it is crashing quietly [12:27] burningdog has joined the channel [12:27] israeldelahoz: how can I set a middlewhere before static calls [12:28] stagas: israeldelahoz: app.use(function (req, res, next) { console.log(req); next(); }); [12:28] k1ttty has joined the channel [12:31] Margle has joined the channel [12:38] webben has joined the channel [12:38] kishoreyekkanti has joined the channel [12:38] lulzilla: I am waiting for Nde-Qt binding [12:38] lulzilla: Node-Qt* [12:40] ShotgunKlaus_ has joined the channel [12:41] Juan77 has joined the channel [12:43] catb0t has joined the channel [12:43] Lingerance: Have fun waiting. [12:43] neurodrone has joined the channel [12:44] CIA-109: node: 03Ben Noordhuis 07v0.6 * r43e91da 10/ .gitignore : .gitignore core and vgcore files - http://git.io/ayYlVA [12:44] CIA-109: node: 03Ben Noordhuis 07v0.6 * rd29be0d 10/ (2 files): test: binding twice to the same port should raise an error - http://git.io/wB7PAQ [12:45] CIA-109: node: 03Ben Noordhuis 07v0.6 * r9790077 10/ (lib/os.js lib/sys.js lib/util.js): util: add internal function _deprecationWarning() - http://git.io/LMXzxA [12:46] lmatteis has joined the channel [12:48] dexter_e has joined the channel [12:52] fairwinds has joined the channel [12:52] mansoor has joined the channel [12:54] versicolor has joined the channel [12:56] israeldelahoz: hey I cant see anything logged with that, just the thinks that ar logged by express.logger [12:57] versicolor has joined the channel [12:59] stagas: israeldelahoz: did you put it right above app.use(express.static()) ? [12:59] __doc__ has joined the channel [13:00] cosmincx has joined the channel [13:02] versicolor_ has joined the channel [13:03] israeldelahoz: I had the express.logger set there since allways, and I get the logs for the files that are being requested [13:06] mike5w3c has joined the channel [13:08] bradleyg has joined the channel [13:12] gsmcwhirter has joined the channel [13:14] stagas has joined the channel [13:16] Keto has joined the channel [13:17] Keto: Hi there [13:18] scott_gonzalez has joined the channel [13:18] burningdog has left the channel [13:18] ixti has joined the channel [13:19] erichynds has joined the channel [13:21] Kunda has joined the channel [13:21] burningdog has joined the channel [13:23] ixti has joined the channel [13:27] adammw111 has joined the channel [13:28] adammw111: Hi, is there a github repo for the updated nodejs.org website so we can send pull requests / submit issues for bugs/problems/features? [13:28] herbySk has joined the channel [13:29] CIA-109: libuv: 03mattn 07master * re53cecb 10/ (4 files in 4 dirs): add uv_run_once() - http://git.io/tVmQSg [13:29] dscape: adammw111: dont think so [13:29] dscape: but if there is it should be in github.com/joyent [13:30] nbaldwin has joined the channel [13:31] adammw111: yeh, I couldn't see one there, only the older API docs which are in the normal node repo. [13:32] CIA-109: libuv: 03Ben Noordhuis 07master * r12cc4f7 10/ (.mailmap AUTHORS): Update AUTHORS and .mailmap - http://git.io/OxgBQw [13:32] JakeyChan has joined the channel [13:34] CarterL has joined the channel [13:35] bnoordhuis: adammw111: it's in the v0.6 branch of joyent/node [13:36] eb4890 has joined the channel [13:37] wingie: anyone knows why i cant use assert.length() in vows: https://gist.github.com/1475427 [13:37] DeRbi has joined the channel [13:37] adammw111: so it is... my bad. are those pages auto-generated or do pull-requests need to change all instances? [13:38] p1d has joined the channel [13:38] bnoordhuis: adammw111: they're auto-generated [13:38] bnoordhuis: the api docs, that is [13:40] bosphorus has joined the channel [13:41] DeRbi has joined the channel [13:41] adammw111: bnoordhuis: i meant more the about / community pages. e.g. I'd like to submit a pull request so that the logo "nodejs" at the top of the pages are linked back to the home page instead of (or as well as) the "Go back to the home page" link [13:42] bnoordhuis: adammw111: about and community are static pages (but versioned) [13:43] DeRbi: ACTION  ::::::::::::::::> WWW.MEGA-HD.ORG <:::::::::::::::: {{{{{{{{{{ The best FREE High Definition movies, videos, FREE SOFTWARE }}}}}}}}}}  [13:44] DeRbi has joined the channel [13:45] vvo has joined the channel [13:46] maushu has joined the channel [13:46] josh-k has joined the channel [13:47] skm has joined the channel [13:48] fly-away has joined the channel [13:49] fly-away: hi2all [13:49] fumanchu182 has joined the channel [13:49] fly-away: how can i match in regexps unicode symbols? [13:49] DeRbi has joined the channel [13:49] fly-away: non-latic [13:49] fly-away: latin* [13:49] Lingerance: \uCODE or just paste the symbol into the regex [13:50] slaskis: > /[\u0000-\uffff]/.test('åäö') [13:50] slaskis: true [13:50] astrobunny has joined the channel [13:51] chjj: i like lactic symbols [13:51] chjj: but im lactose-intolerant [13:51] DeRbi has joined the channel [13:52] sphinx has joined the channel [13:52] DeRbi has joined the channel [13:52] jetienne has joined the channel [13:53] LarsSmit has joined the channel [13:53] eeemsi: when will there be a next release version of nodejs? [13:53] DeRbi has joined the channel [13:54] sphinx has left the channel [13:54] DeRbi has left the channel [13:54] AaronMT has joined the channel [13:55] fly-away: > /[\w_\-]/.test("ыв"); [13:55] fly-away: false [13:56] eeemsi: anyway … it seems like i am runnning against a wall while rewriting this codesnippet: http://pastebin.com/9vtMgVuu [13:56] iamcorpix has joined the channel [13:56] heavysixer has joined the channel [13:56] slaskis: fly-away: yeah, that's why i didn't use \w. it's only ascii [13:56] fly-away: ook [13:56] emattias has joined the channel [13:57] fly-away: so what can I use instead? [13:59] jtrudeau has joined the channel [13:59] slaskis: well, if you wanna match cyrillic characters i'd use the unicode span defined here: http://en.wikipedia.org/wiki/Cyrillic_characters_in_Unicode [13:59] nodebiscut has joined the channel [13:59] baudehlo: fly-away: I suggest you use pcre instead :) [13:59] mrpound has joined the channel [14:00] baudehlo: Javascript's regexp implementation is fast, but severely anemic. [14:00] slaskis: /[\u0400-\u04ff]/.test('ыв') [14:00] slaskis: => true [14:02] bnoordhuis: eeemsi: tonight [14:02] webguynow has joined the channel [14:02] fly-away: slaskis, thx [14:02] kriszyp4 has joined the channel [14:03] eeemsi: bnoordhuis: @release version? [14:03] iRoj has joined the channel [14:04] ppcano: how to force a npm publish, to use the same current version???. I am getting ( Failed to update the data, Cannot publish over existing version. ) [14:04] slaskis: baudehlo: is there a pcre module for nodejs? [14:04] baudehlo: slaskis: someone was talking about one on the nodejs mailing list. [14:04] slaskis: ppcano i think you only use add -f [14:04] baudehlo: lemme do a dig [14:04] bnoordhuis: eeemsi: 0.6.6 [14:05] ppcano: slaskis: not working [14:05] eeemsi: bnoordhuis: thx - looking forward to it ;) [14:05] slaskis: ppcano: maybe --force then? [14:05] baudehlo: slaskis: hmm, it was just discussed - no github link. [14:05] slaskis: pretty sure i've used that flag myself for npm [14:05] slaskis: ah, would be nice to have [14:06] ppcano: slaskis: i guess could be a bug, but not sure. I tried force in several ways without success, Error: EPUBLISHCONFLICT https://gist.github.com/1476681 [14:06] brianseeders has joined the channel [14:06] baudehlo: it would. I emailed the guy who posted about it just now. [14:06] astrobunny has joined the channel [14:07] slaskis: ppcano: did you try what the error says? [14:07] slaskis: --force or unpublish first [14:08] ppcano: slaskis: yes, without success. What i don't know how to do is to bump the version. [14:08] kulor-uk has joined the channel [14:09] MerlinDMC has joined the channel [14:09] ppcano: unpublish returns Error: forbidden 0.0.1 time needs to be updated [14:10] slaskis: ppcano: yah could be a bug then. maybe isaacs knows? [14:10] timbl has joined the channel [14:10] ppcano: i will open an issue, thanks slaskis [14:12] LarsSmit1 has joined the channel [14:14] ritch has joined the channel [14:14] joestein has joined the channel [14:15] tingham has joined the channel [14:15] skm has joined the channel [14:16] Rushing has joined the channel [14:16] ditesh|cassini has joined the channel [14:16] patrickgamer has joined the channel [14:17] patrickgamer has left the channel [14:17] joshsmith has joined the channel [14:19] Venom_X has joined the channel [14:20] cognominal has joined the channel [14:21] cl0udy: is this done async? [14:21] cl0udy: unction test(value1,value2,oricallback){ [14:21] cl0udy: oricallback(value1+value2 ); [14:21] cl0udy: } [14:21] cl0udy: test(1,2,function(value){print(value);}); [14:22] Industrial: cl0udy: pastebin [14:22] cl0udy: ok [14:22] Industrial: always. [14:22] ceej has joined the channel [14:22] Industrial: even if its one line, just always do it. [14:22] cl0udy: ok [14:22] cl0udy: this? http://pastebin.com/K4EkUCRb [14:23] coreb has joined the channel [14:23] cognominal_ has joined the channel [14:23] jstash has joined the channel [14:24] cl0udy: so is that done async? [14:24] wingie: how do i compress the browserify file served to the browser for production? [14:24] Ownatik has joined the channel [14:24] mnutt has joined the channel [14:25] cl0udy: Industrial? [14:25] SubStack: wingie: uglify is easy [14:25] flip_digits has joined the channel [14:25] SubStack: grep the readme for "uglify", there are some examples [14:25] c4milo has joined the channel [14:25] ritch: Is it a bad idea to try and emulate http over dnode or socket.io to get true cross domain AJAX? I have a REST api (thin json server in node) and I want to support cross domain everything. [14:26] eeemsi: bnoordhuis: why did i ask … just compiled 0.6.5 on a few machines xD [14:27] lduros has joined the channel [14:27] joshsmith: has anyone here used both Knockout and Backbone? [14:27] joshsmith: (not together, just wanted to run my initial impressions past someone) [14:28] plutoniix has joined the channel [14:28] wingie: SubStack: but since browserify is merging all my files into one, wouldn't it be a good feature to set it in production mode with a hash option? [14:28] wingie: then i could just switch "compress: true" and my app is production ready [14:30] sylvinus_ has joined the channel [14:31] Industrial: cl0udy: not guaranteeing I can help, I was jut pointing out pastebin to you. [14:31] cl0udy: k boss [14:32] slaskis: cl0udy: no, that's not async. your callback be called immediately as test() is called [14:32] Industrial: cl0udy: http://pastebin.com/yxZgguFv [14:32] izepstan has joined the channel [14:33] dnjaramba has joined the channel [14:33] cl0udy: cheers! [14:33] cl0udy: to both of u [14:33] Industrial: cl0udy: http://ejohn.org/apps/learn/ [14:34] enmand has joined the channel [14:34] cl0udy: thanks [14:34] colinclark has joined the channel [14:36] cl0udy: Industrial: so the diff was assigning an anonymous function to var instead of giving the function a name? [14:36] mange has joined the channel [14:37] wingie: damn .. uglify doesn't seem to work well with coffeescript [14:38] cognominal_ has joined the channel [14:39] SubStack: wingie: I don't think browserify should have a notion of "production mode" [14:39] SubStack: you can just ({ filter : require('uglify-js') }) [14:39] SubStack: or else pipe the output through the uglify-js command yourself [14:40] Cromulent has joined the channel [14:42] rwaldron has joined the channel [14:44] thomblake has joined the channel [14:44] thomblake has left the channel [14:44] deedubs has joined the channel [14:44] codygray has joined the channel [14:44] cl0udy: http://pastebin.com/cRULZ7fn are these 2 functions done async? [14:46] jtgiri_ has joined the channel [14:47] cl0udy: anyone? [14:47] ritch: cl0udy: those functions are not async [14:47] cognominal_ has joined the channel [14:48] cl0udy: ritch can i pm ? [14:48] Cromulent has joined the channel [14:48] ritch: sure [14:48] Rushing: is GLOBAL the scope of the module run from the shell? [14:48] Rushing: ie require.main [14:48] aar0ntw has joined the channel [14:51] kazupon has joined the channel [14:51] JasonJS has joined the channel [14:53] wingie: SubStack: wasn't too clear to me that the options are supposed to be put after the file path: browserify __dirname + "/../lib/entry.coffee", filter: -> "Hello world" [14:53] yuchi_ has joined the channel [14:53] wingie: the doc is somewhat confusing on this [14:54] sylvinus has joined the channel [14:54] wingie: but thanks for the tip using filter to compress [14:54] heavysixer has joined the channel [14:55] jimt_ has joined the channel [14:55] mbrevoort has joined the channel [14:55] israeldelahoz has joined the channel [14:55] chrisvwebdev has joined the channel [14:56] chrisvwebdev has left the channel [14:58] plutoniix has joined the channel [15:00] devongovett has joined the channel [15:00] wbednars_ has joined the channel [15:01] cronopio has joined the channel [15:01] djazz has joined the channel [15:02] israeldelahoz: hey guys, I posted an issue here, related to my static files not being served sporadically after some hours, someone told me to put a middlewhere before express.static to see if the request was getting there, i see logs for all request but the files are not getting [15:02] israeldelahoz: any clues? [15:03] hughfdjackson has joined the channel [15:04] hughfdjackson: if i wanna have a play around with node, would heroku be a good option/ [15:04] genexp has joined the channel [15:05] herbySk has joined the channel [15:05] sylvinus has joined the channel [15:06] Skaag has joined the channel [15:06] thdbased has joined the channel [15:07] confoocious has joined the channel [15:07] confoocious has joined the channel [15:07] thdbased: Question: Could someone give a rough estimate on how many users can be served using one physical server? [15:07] lazyshot has joined the channel [15:07] thdbased: basic web app, mongodb and nodejs + expressjs [15:08] malkomalko has joined the channel [15:08] thdbased: I know you can tell by looking at the load but I would like to have a rough guess to be prepared [15:08] josh_k has joined the channel [15:09] chrisvwebdev has joined the channel [15:09] malkomalko: anybody know a good way to stream gz files? [15:10] josh_k has joined the channel [15:10] Skaag has joined the channel [15:11] otakutomo has joined the channel [15:13] josephg has joined the channel [15:13] boltR has joined the channel [15:14] Rushing: if i'm building a framework and want to make sure it's always the same version through the app, is it bad practice to just attach the root namespace to GLOBAL? [15:14] EyePulp has joined the channel [15:15] BillyBreen has joined the channel [15:15] jtsnow has joined the channel [15:15] Leemp2 has joined the channel [15:16] esmevane has joined the channel [15:16] Skaag has joined the channel [15:17] Swimming_Bird has joined the channel [15:18] Waldenpond has joined the channel [15:18] Skaag_ has joined the channel [15:19] endangeredmassa has joined the channel [15:20] mynyml has joined the channel [15:22] JesusRosso has joined the channel [15:23] TimTimTim has joined the channel [15:24] MrNibbles has joined the channel [15:27] SubStack: wingie: just pipe to uglify-js if you're using the command-line tool [15:27] SubStack: the filter: direction was for the api usage [15:28] malkomalko: ahh.. new zlib module in node 0.6.x.. wonder if I can create a readStream from a gz file with this [15:28] knifed has joined the channel [15:30] MrMaksimize has joined the channel [15:32] dylang has joined the channel [15:32] jl1 has joined the channel [15:32] genexp has joined the channel [15:33] Edy has joined the channel [15:34] TheJH has joined the channel [15:35] jetienne_ has joined the channel [15:36] prettyrobots has joined the channel [15:37] k1ttty has joined the channel [15:37] mnutt has joined the channel [15:38] JesusRosso: ryah, any news with https://github.com/joyent/node/issues/2277 ? [15:39] mheys has joined the channel [15:39] brianc1 has joined the channel [15:40] jvolkman has joined the channel [15:40] MerlinDM has joined the channel [15:42] cognominal has joined the channel [15:42] kulor-uk has joined the channel [15:44] nicholasf has joined the channel [15:44] gjeoffroy has joined the channel [15:45] RORgasm has joined the channel [15:45] ritch has left the channel [15:46] kuebk has left the channel [15:47] otakutomo has joined the channel [15:48] thalll has joined the channel [15:48] otakutomo has joined the channel [15:48] socketio\test\76 has joined the channel [15:48] __tosh has joined the channel [15:49] Leemp2 has joined the channel [15:49] OmidRaha has left the channel [15:50] otakutomo has joined the channel [15:51] otakutomo has joined the channel [15:51] __tosh has joined the channel [15:51] CoffeeIV has joined the channel [15:51] jocafa has joined the channel [15:52] bartt has joined the channel [15:52] otakutomo has joined the channel [15:53] MrBenn has joined the channel [15:53] joestein has joined the channel [15:54] otakutomo has joined the channel [15:55] dshaw_ has joined the channel [15:55] fg3 has joined the channel [15:56] cognominal has joined the channel [15:56] icebox has joined the channel [16:00] Poetro has joined the channel [16:00] endangeredmassa_ has joined the channel [16:00] redir_ has joined the channel [16:01] Poetro has joined the channel [16:01] Poetro has joined the channel [16:01] joshkehn has joined the channel [16:01] joshkehn has left the channel [16:01] blueadept has joined the channel [16:02] endangeredmassa_ has joined the channel [16:03] bradleymeck has joined the channel [16:03] otakutomo has joined the channel [16:03] tingham_ has joined the channel [16:07] NetRoY has joined the channel [16:07] ank has joined the channel [16:08] sorensen__ has joined the channel [16:08] otakutomo has joined the channel [16:11] RORgasm has joined the channel [16:12] Heimohuima has joined the channel [16:12] Heimohuima has left the channel [16:12] luoluoluo has left the channel [16:14] mmalecki: wingie: ping? [16:14] mmalecki: wingie: sorry, I've been away. it's assert.lengthOf now [16:15] Jho_ has joined the channel [16:15] awkn2n has joined the channel [16:15] mmalecki: einaros: I didn't run into anything specific [16:16] mmalecki: einaros: actually, I have a question [16:16] Jho_: anyone successfully used the built-in node debugger on windows? when I try to "print variablename" it responds with "..." repeatedly, and I have to CTRL-C to get back to the debug> prompt. [16:16] mmalecki: einaros: can I make it listen on a http server? [16:16] Renegade001 has joined the channel [16:17] vvo has joined the channel [16:18] awkn2n_ has joined the channel [16:18] KBM has joined the channel [16:19] mnutt has joined the channel [16:19] gtramontina has joined the channel [16:19] KBM has left the channel [16:20] otakutomo has joined the channel [16:20] swestcott has joined the channel [16:21] ritch has joined the channel [16:21] ritch has left the channel [16:21] jakehow has joined the channel [16:22] tjholowaychuk has joined the channel [16:22] awkn4n has joined the channel [16:23] mmalecki: einaros: oh, I see I can't [16:23] mmalecki: einaros: pull request incoming [16:23] endangeredmassa has joined the channel [16:25] tingham_ has joined the channel [16:25] k1ttty has joined the channel [16:28] metalball2 has joined the channel [16:28] k1ttty has joined the channel [16:28] scttnlsn has joined the channel [16:29] lorfds has joined the channel [16:30] poincare101 has joined the channel [16:30] scttnlsn: In what cases would a call to fs.write not actually write all the bytes in a given buffer? [16:30] aheckmann has joined the channel [16:30] poincare101: Hi everyone. Is there anyway to send additional arguments to a http.createServer callback? (aside from request and response)? [16:31] langworthy has joined the channel [16:31] vl4kn0 has joined the channel [16:32] kenperkins has joined the channel [16:33] jaequery has joined the channel [16:33] bnoordhuis: scttnlsn: full disk, overlapping writes [16:33] scttnlsn: bnoordhuis: are those bytes still buffered or do I need to call fs.write again to ensure they will make it to disk? [16:34] brianloveswords has joined the channel [16:35] mmalecki: bnoordhuis: hi. unix fairly tale time :) ? [16:35] kenperkins: o/ [16:35] k1ttty_ has joined the channel [16:35] neurodrone has joined the channel [16:36] warz has joined the channel [16:36] codykrieger has joined the channel [16:36] plutoniix has joined the channel [16:36] dubenstein has joined the channel [16:37] bnoordhuis: scttnlsn: no, what i mean is that if write A overlaps with write B, you get something undefined [16:37] bnoordhuis: scttnlsn: you may see part of A, part of B, parts of both or nothing [16:37] codykrieger has joined the channel [16:38] bnoordhuis: mmalecki: would love to but i'm afk in a minute :) [16:38] warz: its been awhile since ive used node and npm, but it looks like npm installs modules relative to the working directory now. am i supposed to install modules on a per app basis? [16:38] fangel has joined the channel [16:39] scttnlsn: bnoordhuis: ok, thanks [16:40] pizthewiz has joined the channel [16:43] dexter_e has joined the channel [16:43] trotter has joined the channel [16:43] mara has left the channel [16:43] sharath has joined the channel [16:44] endangeredmassa: wars: Yes. If the module is something specific to the app, install it locally. There is debate about whether you check-in your node_modules directory, though. If you want to install something globally (perhaps for dev testing or other general tools), add a -g option to npm install. [16:44] broofa has joined the channel [16:45] zomg: Hmm [16:45] zomg: I wonder if I should split my app into multiple node processes [16:46] zomg: I'm running production and dev on the same server, yet the dev instance responds much, much faster than the production instance [16:47] dexter_e_ has joined the channel [16:48] zomg: Nevermind. It seems it's again because of the CPU spiking.. [16:48] zomg: which I still haven'tfigured out.. arg. [16:48] fzzzy has joined the channel [16:49] otakutomo has joined the channel [16:49] butu5 has joined the channel [16:49] SamuraiJack_ has joined the channel [16:50] robb1e_ has joined the channel [16:52] mandric has joined the channel [16:52] chrisvwebdev has joined the channel [16:52] zomg: I wish there was some way to see what node is doing when it says 100% :\ [16:53] dgathright has joined the channel [16:53] Nick^^ has joined the channel [16:53] nail_: and s/node/thunderbird/ :0 [16:53] josephg has joined the channel [16:54] Nick^^: c# nodejs bings [16:54] Nick^^: bindings pleas [16:54] Nick^^: c# nodejs bindings please will be of great help [16:55] Nick^^: node extension examples for c# and nodejs [16:55] zomg: Why don't you just use aspnet mvc [16:55] zomg: =) [16:56] jerrysv has joined the channel [16:56] dgathright has joined the channel [16:56] Nick^^: where can I find it [16:56] zomg: Google [16:59] alvaro_o has joined the channel [17:00] Nick^^: no we can't use ASP.net [17:01] Nick^^: I need a helloworld.cs [17:01] Feherlofia has joined the channel [17:02] endangeredmassa: Nick^^: You could try the Script# compiler to javascript, running it in node. I imagine it won't work out terribly well, though. [17:02] Nick^^: node extension examples I need a helloworld.cs [17:02] mmalecki: you won't get it. [17:03] Nick^^: why?? [17:03] zomg: Nick^^: pay me 2500 EUR and I'll make one [17:03] erichynds has joined the channel [17:03] mmalecki: node.js addon system is C++-based. [17:04] Nick^^: ok [17:04] erichynds has joined the channel [17:04] lzskiss has joined the channel [17:04] smathy has joined the channel [17:05] windsurf_ has joined the channel [17:05] EhevuTov has joined the channel [17:05] windsurf_: I'm considering using express and node for my web sockets app. My alternative is RESTful apache and php which would probably be OK. My concern is about the stability of node and express. If I have a bug in my code with php a page or service or just a method will fail but I'm concerned that with node my whole server will go down. Thoughts [17:05] zemanel has joined the channel [17:07] Leemp has joined the channel [17:08] JakeyChan has joined the channel [17:09] IrishGringo has joined the channel [17:09] endangeredmassa: I can't recall an exception thrown by one of my node apps ever actually taking the process down. It just emits the error in the console output (or log file if I said so) and marches on. [17:10] endangeredmassa: You can also use process monitoring solutions to relaunch it if it crashes. [17:10] joaquin_win has joined the channel [17:11] zomg: endangeredmassa: uncaught exceptions crash node [17:11] windsurf_: what do you think about Forever? [17:11] zomg: you're probably using something that keeps it from crashing [17:11] zomg: windsurf_: it's broken in 0.6.x [17:11] zomg: (Unless they've recently fixed it) [17:12] __tosh has joined the channel [17:12] cognominal has joined the channel [17:12] zomg: bnoordhuis: regarding our earlier discussion about gettimeofday, is it normal for node to call it a bazillion times? :P [17:12] windsurf_: zomg: how else would I support my node app given thrown exceptions that might bring it down? [17:13] zomg: windsurf_: there are some alternatives like runit http://smarden.org/runit/ [17:14] poincare101: Hi everyone. Is there anyway to send additional arguments to a http.createServer callback? (aside from request and response)? [17:15] zomg: poincare101: send how exactly? from your code? [17:15] Wizek has joined the channel [17:15] eliasp has left the channel [17:15] Carter has joined the channel [17:17] Leemp has joined the channel [17:17] windsurf_: zomg: looks like they're up to 0.7.5 now [17:18] bradleymeck: zomg: its going to be broken for a while unless we can convince libuv to be forksafe [17:18] plutoniix has joined the channel [17:18] Me1000 has joined the channel [17:18] bradleymeck: you can use it's 0.6 branch but you can use any daemonization features [17:18] bradleymeck: but you cant* [17:19] jtgiri_ has joined the channel [17:19] stisti has joined the channel [17:20] poincare101: zomg: like this: http.createServer(function(request, response, someotherthing) {}).listen(8888); How would I get someother thing passed in there? [17:21] zomg: poincare101: yes but where exactly is someotherthing supposed to come from? [17:21] brianloveswords has joined the channel [17:22] TimTimTim: hey if anyone would be so kind as to point me in the right direction with the "cannot find module express" error, i'd be grateful... i'm using npm 1.1.0-alpha-6, node v0.6.5, and express 2.5.2 [17:22] realguess has joined the channel [17:22] wilmoore has joined the channel [17:24] windsurf_: I'm thinking fairly strongly about using Node.js for a web server that provides both web sockets + RESTful web services (each has its own distinct purpose in my app). Should I bother with a framework like Express (other?) or just do it from scratch? Not sure of benefits offered by the popular frameworks [17:24] windsurf_: my node app will not have any UI [17:24] Optimis has joined the channel [17:24] mara has joined the channel [17:25] base698 has joined the channel [17:25] theycallmeswift has joined the channel [17:26] theycallmeswift: Anyone know a good way to test visibility when doing integration tests? [17:26] mraleph has joined the channel [17:26] ryah: windsurf_: you might want to try https://github.com/mcavage/node-restify [17:26] Cromulent has joined the channel [17:27] slaskis has joined the channel [17:28] awkn4n: hm. my app leaves a lot of TIME_WAIT sockets and exhausts all available sockets on node v0.6.4 and v0.6.5 while it ran without problem on v0.4.12. centos 5.7 64-bit. anyone can help? [17:28] eb4890 has joined the channel [17:28] metalball2 has joined the channel [17:29] MrNibbles: Shell > npm xmas [17:29] MrNibbles: ACTION feels warm inside [17:29] isaacs: it's that time of year again :) [17:29] MrNibbles: :) [17:29] isaacs: that's a pretty old easter egg [17:30] MrNibbles: only just discovered it! [17:30] TimTimTim: hey if anyone would be so kind as to point me in the right direction with the "cannot find module express" error, i'd be grateful... i'm using npm 1.1.0-alpha-6, node v0.6.5, and express 2.5.2 [17:30] isaacs: hthen it's new for you :) [17:30] TimTimTim: i've looked up some of the issues on github but they're related to much older versions [17:30] isaacs: TimTimTim: you're doing require("express")? [17:30] lzskiss has joined the channel [17:31] windsurf_: thanks ryah [17:31] isaacs: TimTimTim: did you install it locally in your project? what does `npm ls` show you? [17:31] TimTimTim: i'm trying the code on socket.io to begin with.. which is: var app = require('express').createServer() [17:31] TimTimTim: ,io = require('socket.io').listen(app); [17:31] t4nk885 has joined the channel [17:32] TimTimTim: npm ls says... [17:32] cronopio has joined the channel [17:32] TimTimTim: http://pastebin.com/1h96GcU8 [17:32] t4nk885: I am trying to use the request module to scrape a page [17:32] isaacs: TimTimTim: hm. express should be there, then [17:33] t4nk885: but getting a 502 error in response [17:33] isaacs: TimTimTim: you may want to change your terminal font, or do `npm config set unicode false` [17:33] t4nk885: does that mean the site is protecting against scraping in some way? [17:34] TimTimTim: my first thought is to uninstall/reinstall everything [17:34] TimTimTim: but i'm afraid i'll just end up with the same error and it'll be a waste of time [17:35] braoru has joined the channel [17:35] isaacs: TimTimTim: can you require("express") in a node repl? [17:35] isaacs: TimTimTim: don't scrap everything. maybe the install got borked, try `npm install express` again [17:35] Vennril has joined the channel [17:35] flexd has joined the channel [17:36] stefpb has joined the channel [17:36] isaacs: TimTimTim: also, where's the first line of npm ls? [17:36] TimTimTim: yeah require('express') works [17:36] isaacs: the one that says what folder you're in [17:36] isaacs: TimTimTim: ok… so what isn't working, exactly? [17:36] TimTimTim: i'll try install express real quick... [17:36] isaacs: wait wait [17:36] isaacs: what isn't working? [17:37] TimTimTim: in node.log it says "can't find module express" [17:37] TimTimTim: nginx gives 502 bad gateway [17:37] TimTimTim: although i'll probably toss out nginx for sockets anyway, just tried the proxy to try it... [17:37] martin_sunset has joined the channel [17:38] skm has joined the channel [17:38] TimTimTim: is node secure enough now to not need nginx? [17:38] isaacs: TimTimTim: where is it saying that? [17:38] isaacs: TimTimTim: yes [17:38] gtramontina has joined the channel [17:38] t4nk885: any thoughts on using request? [17:38] isaacs: that is, any bugs that you have, nginx won't hide for you [17:39] TimTimTim: gotcha, i'm pretty good at being bug free O:) [17:39] gtramontina has joined the channel [17:39] isaacs: TimTimTim: you can still write an insecure site if you try hard enough [17:39] isaacs: :) [17:39] TimTimTim: haha indeed [17:39] isaacs: TimTimTim: yeah, i'm misunderstanding this error, then [17:39] isaacs: TimTimTim: somewhere, something is doing require("express") and failing [17:39] isaacs: TimTimTim: there should be a stack trace. [17:39] isaacs: follow the trace [17:39] davidwalsh has joined the channel [17:40] TheJH: TimTimTim, and try my module for a better stack trace :) [17:40] TheJH: TimTimTim, it'll print the types of all the local variables from the entire stack :) [17:40] TimTimTim: in my app.js file, i do require('express') as shown on socket.io express example... and it simply doesn't work, and generates the "can't find module express error" in my node.log error log [17:41] petrjanda has joined the channel [17:41] gtramontina has joined the channel [17:41] p1d has joined the channel [17:43] mmalecki: einaros: yo, you around? [17:43] TimTimTim: well this is strange... i just noticed that node keeps writing to the error log [17:43] TimTimTim: like nonstop :| [17:43] TimTimTim: why would that be? [17:43] isaacs: TimTimTim: you need to share your code, i think, rather than describe it. [17:44] TimTimTim: the code is exactly as shown here: [17:44] isaacs: TimTimTim: since the repl require() works in your app dir, and your app doesn't, you have an assumption that is false. [17:44] isaacs: i guarantee it [17:44] TimTimTim: http://socket.io/#how-to-use [17:44] TimTimTim: ohhh that must be what it is [17:45] isaacs: what is? [17:45] isaacs: i see a bunch of different things there [17:45] TimTimTim: yeah i was assuming the path would be relative to where node itself is [17:45] AvianFlu has joined the channel [17:45] isaacs: TimTimTim: nope. it's relative to your js file. looks like you found the false assumption :) [17:45] TimTimTim: indeed thank you sir [17:45] isaacs: np. cheers! [17:46] TimTimTim: although let me test it to make sure LOL [17:46] mehlah has joined the channel [17:47] eignerchris has joined the channel [17:48] JaKWaC has joined the channel [17:48] flexd has left the channel [17:48] fzzzy has joined the channel [17:48] izepstan has joined the channel [17:49] Leemp has joined the channel [17:49] wtfizzle has joined the channel [17:50] jarek has joined the channel [17:50] jarek has joined the channel [17:50] towski has joined the channel [17:50] napperjabber has joined the channel [17:50] napperjabber has left the channel [17:50] benvie has joined the channel [17:51] endangeredmassa_ has joined the channel [17:51] bbenvie has joined the channel [17:51] jbcurtin has joined the channel [17:52] its_me has joined the channel [17:52] its_me: Hi. What file systems does node.js support? [17:53] Carter has joined the channel [17:53] nodenoob has joined the channel [17:53] chjj: ACTION is reluctantly cloning the dart repo. [17:53] chjj: ACTION sheds a tear. [17:53] AvianFlu: WHY chjj, WHY!?!?!? [17:54] chjj: IM SORRY!!! [17:54] Leemp2 has joined the channel [17:54] chjj: ACTION sobs. [17:54] AvianFlu: no, seriously, though, why? [17:54] chjj: dunno, might as well check it out [17:54] lazyshot has joined the channel [17:54] mmalecki: someone recently invited me to some hands-on dart meeting [17:54] mmalecki: I politely declined. [17:54] slaskis: mmalecki: was it at a pub? [17:54] chjj: its taking forever because svn doesnt know how to compress history with deltas [17:55] mmalecki: slaskis: I think it could've been [17:55] mmalecki: lol svn? [17:55] slaskis: that's where i go to play dart [17:55] mmalecki: really, google, really? [17:55] mmalecki: slaskis: ahahaha [17:55] chjj: its an svn repo =/ [17:55] chjj: so i git svn'd it [17:55] JaKWaC has joined the channel [17:55] chjj: needs a mirror on github imo [17:55] its_me has left the channel [17:55] endangeredmassa has joined the channel [17:56] andrew9183 has joined the channel [17:56] mmalecki: needs to disappear ihmo [17:57] JaKWaC has joined the channel [17:57] andrew9183: does anyone have any examples of node.js apps they've made? [17:57] chjj: we dont make apps [17:57] hipsters_ has joined the channel [17:57] EyePulp: andrew: that's a bit of a broad question. What are you actually looking for answers to? [17:58] cjm has joined the channel [17:58] chjj: ahhh, github broke github again [17:58] chjj: my eyes [17:58] andrew9183: just some simple examples of node.js :) [17:58] JaKWaC has joined the channel [17:58] trotter has joined the channel [17:59] TimTimTim: is it bad practice to use sockets for pretty much everything... like simple form submission? [17:59] gr-eg has joined the channel [17:59] TimTimTim: or, socket.io rather since it has fallbacks [17:59] te-brian has joined the channel [18:00] chjj: andrew9183: i could show you my blog, but it might not be that useful to you [18:00] chjj: it doesnt use any widely use libraries [18:01] chjj: andrew9183: https://github.com/chjj/dilated [18:02] pity has joined the channel [18:02] dilvie has joined the channel [18:02] rauchg has joined the channel [18:02] mikeal has joined the channel [18:02] chjj: vimja: much better :) [18:02] vimja: :P [18:02] vimja: had to seed panic and disorder in another channel [18:02] chjj: lol [18:03] patcito has joined the channel [18:03] redir_ has joined the channel [18:03] t4nk885: if I am trying to request a URL through node, is there a reason why the site returns a 502? [18:03] Destos has joined the channel [18:03] chjj: this git svn clone is still going, amazing [18:03] chjj: M branches/bleeding_edge/dart/frog/leg/ssa/nodes.dart [18:03] chjj: i see a million lines like that [18:03] Destos has joined the channel [18:05] springmeyer has joined the channel [18:05] chjj: t4nk885: does it appear normal if you request it with a curl or in your browser? [18:05] t4nk885: mikeal? [18:06] tedsuo has joined the channel [18:06] mikl has joined the channel [18:06] tedsuo_ has joined the channel [18:07] briancray has joined the channel [18:07] franciscallo has joined the channel [18:08] chrisvwebdev has joined the channel [18:10] t4nk885: can anyone help out with scraping questions? [18:10] mikeal has joined the channel [18:13] chjj: t4nk885: you can ask your question, someone keeping an eye on irc might be able to help [18:13] ShinyDarkness has joined the channel [18:14] chjj: why is the svn repo directory structure so insane? [18:14] TooTallNate has joined the channel [18:15] zomg: Hm.. [18:15] t4nk885: is it better to use node.io or request? [18:15] zomg: 1-4 second GC sweeps... [18:15] StanlySoManly has joined the channel [18:16] endangeredmassa has joined the channel [18:16] zomg: No wonder it's going to 100% CPU use [18:16] zomg: >_> [18:16] baudehlo: how much are you allocating?? [18:16] chjj: zomg: ouch [18:16] malletjo has joined the channel [18:16] zomg: baudehlo: too much I guess... [18:16] iRoj has joined the channel [18:16] baudehlo: lol [18:17] zomg: Every 6 or 7 seconds it does a mark-sweep or a mark-compact which takes from 1 to 4 seconds [18:17] chjj: t4nk885: request is just for making http requests, so if you want to do the scraping by hand you can use that [18:17] zomg: nicely freezing the process :P [18:17] slaskis: t4nk885: well, node.io is using request in itself [18:17] blueadept: anyone know the best way to trace how a style is being applied to a certain set of tables using firebug? [18:18] chjj: zomg: thats crazy, how much heap usage? [18:18] isufy has joined the channel [18:18] zomg: chjj: how do I see heap? [18:19] zomg: Mark-compact 356.2 -> 356.1 MB, 3361 ms. [18:19] zomg: whee... [18:19] chjj: zomg: well, to be primitive about it you can just check top or htop, but i thought the --gc arguments in v8 already showed memory usage [18:19] zomg: Well it's showing what I just pasted :) [18:19] zomg: Using --trace_gc [18:19] chjj: zomg: hmmm, thats sketchy [18:19] chjj: what are you doing exactly? [18:20] chjj: when you said 3-4 seconds i was expected to see 1gb or something [18:20] zomg: The app is talking to a bunch of servers, writing some stuff to a database, and things like that [18:20] cole_gillespie has joined the channel [18:20] aaronmcadam has joined the channel [18:20] zomg: I suspect all the events being pushed around via emits and socket.io are probably generating a lot of objects if nothing else.. [18:20] TimTimTim: anyone know what this error is about? "socket.io started... blah blah... error raised: Error: listen EACCES:" [18:21] chjj: TimTimTim: you dont have access to that port [18:21] chjj: ? [18:21] TimTimTim: that's probably it [18:21] chjj: does it actually say blah blah? [18:21] TimTimTim: LOL [18:21] TimTimTim: no [18:21] TimTimTim: that would be hilarious though [18:21] TimTimTim: sorry misuse of quotes O:) [18:22] chjj: anyone know how to make a git svn repo less insane in its structure? [18:22] towski has joined the channel [18:22] reid has joined the channel [18:22] chjj: this is what im looking at: "~/dart/branches/bleeding_edge/dart" and i want to vomit [18:22] zomg: I guess I'm just gonna start making everything ugly and getting rid of anything that doesn't absolutely have to create an object :P [18:22] bingomanatee has joined the channel [18:23] awkn4n has left the channel [18:23] adrianF has joined the channel [18:23] TimTimTim: i'm definitely a linux noob... how do i open up the port (i'm guessing 80) for node? nginx was my previous server [18:23] TimTimTim: until i stopped it [18:23] TimTimTim: like 5 minutes ago :| [18:23] chjj: zomg: it could be that the gc isnt the thing eating you cpu, maybe something else is using all your cpu and as a result, the gc is slower [18:24] chjj: your* [18:24] `3rdEden has joined the channel [18:24] chjj: TimTimTim: you need to be root to bind to low ports [18:24] chjj: TimTimTim: so you can sudo node x if you want it to work [18:24] slaskis: chjj: have a look at 'git filter-branch --subdirectory-filter' [18:25] chjj: slaskis: ! [18:25] TimTimTim: i have node upstarted [18:25] chjj: slaskis: thank you [18:25] TimTimTim: does the upstart need to be run as root? [18:25] slaskis: chjj i had a similar issue this week ;) [18:25] jerrysv: `3rdEden: ping [18:25] `3rdEden: ACTION hides [18:25] Margle has joined the channel [18:25] chjj: TimTimTim: i dont know much about upstart, im a sysvinit guy [18:25] jerrysv: fine. [18:25] `3rdEden: sup jerrysv [18:26] CarterL has joined the channel [18:26] jerrysv: not much, was just wondering if you're planning on releasing your eventreactor module [18:26] sarlalian has joined the channel [18:26] binaryjohn has joined the channel [18:26] zomg: chjj: I don't know, I ran strace and --prof, and about 44% of the time the app is doing GC [18:27] zomg: and none of the other things were really taking that long [18:27] zomg: http://jjh.fi/~jani/prof/start-1.out <- --prof output [18:27] lorfds has joined the channel [18:27] zomg: http://jjh.fi/~jani/prof/strace.log <-- strace output [18:28] `3rdEden: jerrysv you mean: https://github.com/observing/eventreactor [18:28] chjj: zomg: yeah, but im saying, how much cpu are you using when the gc isnt pausing? [18:28] zomg: chjj: what do you mean? [18:28] jerrysv: `3rdEden: aha! that's why i couldn't find it [18:28] djazz has joined the channel [18:28] jerrysv: kept looking at your repository :) [18:28] jerrysv: thanks! [18:28] `3rdEden: haha [18:28] zomg: chjj: every 6'ish seconds the CPU use in 'top' hits 100 for node, and that's about how often I get those long sweeps [18:28] chjj: zomg: you said you thought your high cpu usage was from the gc having to sift through a lot of data [18:28] chjj: im saying it could be the case that something else is using all your cpu, and as a result the gc pauses are long [18:28] zomg: and while it hits that, the node app tends to stop responding to requests [18:29] zomg: Sure, it could be something else [18:29] zomg: But I don't have the slightest clue what it could be [18:29] jakehow has joined the channel [18:29] `3rdEden: jerrysv I have been releasing all the code I crafted for Observer.no.de in that repository so its easier for co-founder + future employers to contribute to it ;) [18:29] zomg: Nor how to find what it could be since none of the logs seem to really say anything besides GC [18:29] EyePulp has joined the channel [18:30] cjm has joined the channel [18:30] jerrysv: `3rdEden: good call. guess i have another user to follow on github [18:30] jerrysv: `3rdEden: not sure if it will meet all of my needs, but it might meet enough of them. awesome [18:30] petrjanda has joined the channel [18:30] EuroNerd has joined the channel [18:30] chjj: zomg: thats why its called debugging ;p [18:31] zomg: Yeah I've been wondering about this pretty long already :P [18:31] vipaca has joined the channel [18:31] zomg: I disabled most of the stuff the application was doing, and it was *still* spiking to 100% [18:31] Topcat has joined the channel [18:31] `3rdEden: jerrysv yeh I kept it really minimal because EventEmitters are hot code I don't want want to mess to deep in that [18:31] zomg: Which makes absolutely no sense as far as I can tell, the logs were about as useful as they were now [18:32] jimmysparkle has joined the channel [18:32] `3rdEden: these are just handy methods that clean up a couple of common usage patterns [18:32] localhost has joined the channel [18:32] jerrysv: `3rdEden: indeed. i need something that i can push out pub/sub to, as well as set timers for specific events that can be interrupted/reset [18:32] chjj: slaskis: hmm, how do i use this exactly? i had to specificy a directory and i just used the root directory. still have this disgusting svn directory structure [18:32] aza has joined the channel [18:32] LeMike has joined the channel [18:32] zomg: think I'll run it with most disabled again and see if the trace_gc still says the same thing... [18:32] `3rdEden: jerrysv: that would be a sweet additon to it [18:33] shripadk has joined the channel [18:33] `3rdEden: and it would just possible to do it without interupting the performance of it [18:33] mandric has joined the channel [18:33] prettyrobots has joined the channel [18:33] zomg: chjj: I was trying to bug bnoordhuis about it but he seems kind of busy and I don't want to overstay my welcome =) [18:34] perezd has joined the channel [18:34] cjm has joined the channel [18:34] zomg: Don't know anyone else who knows more than just the basics about profiling this stuff.. [18:34] arcanin has joined the channel [18:34] zomg: Yeah, disabled most of the app and it's still doing those mad sweeps... [18:35] zomg: I wonder if there's any way to see what exactly it's sweeping [18:35] nbaldwin has joined the channel [18:35] zomg: Right, let's try --trace_gc_verbose [18:36] chjj: zomg: try looking somewhere else, it might not have anything to do with the gc, the gc pauses might just be a side effect [18:36] jerrysv: `3rdEden: let me see what i can do. i'll see how close this is to what i need tonight, and fork if it is [18:36] AvianFlu: hey isaacs, how long has `npm xmas` been around? [18:36] isaacs: about as long as npm [18:37] zomg: chjj: I've looked everywhere. Any suggestions where else to look are welcome. [18:37] isaacs: i actually wrote that script before writing npm [18:37] chjj: zomg: as far as i know, you shouldnt be getting 4 sec gc pauses with 300mb allocated [18:37] AvianFlu: isaacs, win [18:37] mazzwar has joined the channel [18:37] `3rdEden: jerrysv awesome [18:37] chjj: i found isaacs other easter egg [18:37] zomg: chjj: anyway since it's obviously the GC that's taking so long, be it a side effect of something else or not, I can probably get at least a hint at what's wrong if I can figure out why the gc is taking so long [18:37] chjj: `make sandwich` [18:37] chjj: ! [18:38] zomg: --trace_gc_verbose is apparently not outputting anything at all... [18:38] mazzwar has left the channel [18:38] awkn4n has joined the channel [18:39] wilken has joined the channel [18:39] konobi: zomg: is it spitting it into a log file? [18:39] konobi: isaacs: ops! [18:39] zomg: No, looks like I have to use --trace_gc together with it or it won't output [18:40] zomg: Well doesn't look like it's outputting anything useful anyway [18:40] jimmysparkle has joined the channel [18:41] gtramontina has joined the channel [18:41] isaacs: konobi: ? [18:42] isaacs: chjj: i forgot about that one, nice [18:42] isaacs: run as sudo it actually does make a sandwich, too... [18:42] eeemsi: ^^ [18:43] konobi: isaacs: freenode chanserv and I do not get along for some reason =0/ [18:44] churp has joined the channel [18:44] fatjonny has joined the channel [18:44] jxson has joined the channel [18:46] heavysixer has joined the channel [18:47] Margle has joined the channel [18:49] slaskis: chjj yeah you specify a 'new root' sort of [18:50] brianc1: anyone know the best MS Sql Server driver to use for node? [18:50] xtianw has joined the channel [18:50] slaskis: so in that case you'd specify branches/bleeding_edge/dart [18:50] jarek has joined the channel [18:50] jarek has joined the channel [18:51] slaskis: but i remember that git-svn put those branches as branches? [18:51] brianc1: nvermind, found one [18:53] slaskis: chjj: oh, you have to set -s for the magic to happen: http://trac.parrot.org/parrot/wiki/git-svn-tutorial [18:54] dexter_e has joined the channel [18:54] pyparadigm: That company Joyent is nothing compared to Nodejs... tsk [18:56] Danielpk: Free paid account at GitHub for life at AppSumo: http://migre.me/79by0 [18:56] vipaca: isaacs: I'm having trouble with npm, I don't want to go to npmjs.org for deps. I've tried to install from tarballs, but inevitably these libs have there own deps. I've tried installing those deps, but I don't get the nested structure I expect. Do you have any suggestions for offline npm installation. [18:56] Danielpk has left the channel [18:58] langworthy has joined the channel [18:58] endangeredmassa has joined the channel [18:58] chjj: slaskis: hmm, okay, ive been googling and looking at all these hacky solutions, doing a git svn clone, and then cloning that repo with a regular git clone to get everything sane [18:58] jklabo_ has joined the channel [18:58] slaskis: chjj: bah, i don't miss svn a bit [18:59] liar has joined the channel [19:00] bosphorus has joined the channel [19:00] flagg0204 has joined the channel [19:01] dgathright has joined the channel [19:02] djbell has joined the channel [19:02] zomg: Right [19:02] zomg: Found an interesting effect now [19:03] pizthewiz has joined the channel [19:03] zomg: My application is keeping some sockets open to talk to some servers [19:03] zomg: But I disabled most of it now, so it's essentially idling [19:03] dshaw_ has joined the channel [19:03] zomg: At 4 sockets, there is no visible CPU usage spiking [19:03] GrizzLyCRO has joined the channel [19:03] zomg: But as soon as I enabled the 5th, BAM. [19:03] zomg: 100% spikes [19:05] zomg: I'm not entirely sure what to make of this :P [19:05] mike5w3c has joined the channel [19:06] MatthewS has joined the channel [19:07] zomg: Right, now it's spiking with 4... [19:07] zomg: Bah... [19:07] zomg: wtf is this shit :( [19:07] zomg: I wonder if I should just rewrite this in some JVM based language :P [19:08] mikeal has joined the channel [19:08] zomg: of course I'm going to hate that most of the time, except when it works properly [19:08] deedubs: zomg: probably [19:08] BillyBreen has joined the channel [19:08] zomg: I hope that was a probably for hating it and not rewriting it ;) [19:09] dshaw_ has joined the channel [19:10] reid has joined the channel [19:12] dshaw_ has joined the channel [19:12] CIA-109: node: 03Ryan Dahl 07v0.6 * r1c3883b 10/ doc/index.html : Add changelog link to website - http://git.io/R0ZyvQ [19:13] jbpros has joined the channel [19:13] Aikar: vipaca: I don't understand your problem. how are you getting the tarballs in first place if you dont have a network connection? [19:14] Aikar: someone mailing you a USB stick with the tarballs? [19:14] djbell has joined the channel [19:14] pkrumins: just published the 10th article in node.js modules you should know about! [19:14] vipaca: Aikar: haha [19:14] eldar has joined the channel [19:14] pkrumins: this time - express by tj - http://www.catonmat.net/blog/nodejs-modules-express/ [19:16] vipaca: Aikar: I'm downloading the tarballs from npmjs.org [19:16] vipaca: Aikar: The NPM need to be installed as apart of an automated build processs [19:16] mmalecki: einaros: https://github.com/einaros/ws/pull/1 [19:17] mmalecki: einaros: I'm rewriting node-http-proxy using your ws, btw [19:17] Aikar: vipaca: install npm on development servers, npm install foo, and then git add -A [19:17] vipaca: Aikar: And the build should be reproducible, so pulling in new/modified libraries is not desired [19:17] Aikar: vipaca: agreed, commit the libs to your VCS [19:17] Aikar: no reason to juggle tarballs [19:18] mmalecki: einaros: we need some nice api for that, btw :) [19:18] zomg: Right disabled the very last thing that could be doing something in the code... Mongoose. If it still spikes to 100 cpu after this, I don't know if I can think of anything else :P [19:19] Aikar: vipaca: www.mikealrogers.com/posts/nodemodules-in-git.html - although its only half right, you should also do the same for shared modules too. [19:19] der| has joined the channel [19:19] timbl has joined the channel [19:20] der|: Hello guys, anybody knows what could cause a request's connection to be closed at byte 50888160 ? I'm working on a project and I can't download a file from the web server. Any insight would be much appreciated... [19:21] zomg: Well fuck me, that was it... No indication anywhere whatsoever, but closing mongoose connection after it was no longer necessary fixed it... [19:21] zomg: It wasn't even querying mongodb at all [19:21] zomg: And it was still doing that [19:21] zomg: wtf [19:21] zomg: ...nevermind [19:21] zomg: it still spikes, but not so often [19:21] superjudge has joined the channel [19:22] zomg: Although it still fixed like 95% of it [19:22] zomg: Can't really even say it's spiking anymore [19:25] zomg: Yeah [19:25] zomg: It went 2 minutes without spiking to 100 now [19:25] zomg: instead of 6 seconds... [19:27] garrensmith has joined the channel [19:28] wtfizzle has joined the channel [19:29] svnlto: anyone tried running dojo on node, as a module? [19:29] mikl has joined the channel [19:30] colinclark_ has joined the channel [19:31] theycallmeswift has joined the channel [19:32] tkaemming has joined the channel [19:33] dtan has joined the channel [19:34] adambeynon has joined the channel [19:34] dennisjbell has joined the channel [19:34] sh1mmer: svnlto: I'm fairly sure kyrszip has done something like that [19:35] svnlto: sh1mmer: mark wubben did https://github.com/novemberborn/dojo/wiki/Node [19:35] salva has left the channel [19:35] sh1mmer: or that :) [19:37] harthur has joined the channel [19:37] Carter has joined the channel [19:37] Raynos: are there known issues with SSL ? [19:39] r1ngzer0 has joined the channel [19:39] mongrelion has joined the channel [19:40] isufy has joined the channel [19:41] xtianw has joined the channel [19:42] `3rdEden: Raynos except that it sucks? Not really [19:42] `3rdEden: oh and these ofc: https://github.com/joyent/node/issues?labels=https&sort=created&direction=desc&state=open&page=1 [19:43] `3rdEden: or that: https://github.com/joyent/node/issues?labels=tls&sort=created&direction=desc&state=open&page=1 [19:43] `3rdEden: :p [19:44] thisandagain has joined the channel [19:44] admc has joined the channel [19:44] prettyrobots has joined the channel [19:44] tvw has joined the channel [19:46] Wizek-other has joined the channel [19:48] SamuraiJack__ has joined the channel [19:48] petrjanda has joined the channel [19:49] binaryjohn has joined the channel [19:50] dgathright has joined the channel [19:50] Optimis has joined the channel [19:52] djbell has joined the channel [19:54] strmpnk has joined the channel [19:57] pity has joined the channel [19:59] tedsuo has joined the channel [19:59] wtfizzle has joined the channel [20:00] dennisjbell has joined the channel [20:00] endangeredmassa has joined the channel [20:01] endangeredmassa has joined the channel [20:02] EyePulp has joined the channel [20:04] tomyan has joined the channel [20:07] JaKWaC has joined the channel [20:07] vl4kn0 has left the channel [20:08] JaKWaC has joined the channel [20:09] jldbasa has joined the channel [20:09] mikeal has joined the channel [20:09] wink_ has joined the channel [20:14] chia has joined the channel [20:14] dwhittle has joined the channel [20:15] sebastianedwards has joined the channel [20:18] secoif has joined the channel [20:19] brianloveswords has joined the channel [20:20] bradleyg has joined the channel [20:20] secoif: I've just moved from connect-form to trying to use built in bodyParser, anyone know how to replace connect-form's form.on('complete') event with something using bodyParser? [20:20] secoif: for multipart uploads. [20:21] zmbmartin has left the channel [20:21] alvaro_o has joined the channel [20:22] seejohnrun has joined the channel [20:22] zomg: Result of fixing my stupid error of loading bazillion lines of useless data :P http://yfrog.com/z/nx1m8bp [20:23] alvaro_o has joined the channel [20:23] yuchi has left the channel [20:24] plutoniix has joined the channel [20:24] gfosco has joined the channel [20:24] eb4890 has joined the channel [20:25] gfosco: Hi all.. just wanted to announce and direct you to something I released today: a native Node.JS module for MSSQL. tsqlftw. HN submission: http://news.ycombinator.com/item?id=3353389 Github repo: https://github.com/gfosco/tsqlftw [20:25] martin_sunset has joined the channel [20:25] gfosco: It's a native C++ module and fully Asynchronous... currently supports Connect / Query / Close. Working example included. [20:25] zmbmartin has joined the channel [20:26] tbranyen: mssql sounds like some kind of hip slang [20:26] tbranyen: mssql honey she ain't no fly bird ja here me wizzad [20:26] gfosco: I know it seems like most of the Node community prefers NoSQL approaches, but not everyone can dig that. [20:27] Me1000 has joined the channel [20:27] gfosco: I've got too many years of experience and comfort with SQL Server to abandon it like an ex-girlfriend. [20:28] k1ttty has joined the channel [20:29] zmbmartin has left the channel [20:30] devongovett has joined the channel [20:30] airhorns has joined the channel [20:31] izz_ has left the channel [20:32] ShinyDarkness: Hello. I want to install node-v0.6.5 (and its dependencies) from source. One of the verifications ./configure makes is "checking for library dl". [20:32] chase_farmer has joined the channel [20:32] ShinyDarkness: What does "library dl" mean? [20:32] gfosco: a library named dl [20:32] ShinyDarkness: Where can I download it? [20:33] gfosco: What OS? [20:33] ShinyDarkness: Debian squeeze 6.0.3. However, since Debian's packages are *REALLY* outdated, I prefer to download and install everything from source. [20:34] mongrelion: swap distro #trollface [20:34] jerrysv: ShinyDarkness: you know, i had similar issues on reactos ... [20:35] jerrysv: and by similar issues, i mean that it wasn't going to work so i stopped trying :) [20:35] ShinyDarkness: jerrysv: lol [20:35] vhpoet has joined the channel [20:35] gfosco: seems like libdl is part of GLIBC ? [20:36] gfosco: also, get a new OS. [20:36] jerrysv: yeah, it's an oldie too [20:36] vhpoet: Hello ppl, I'm new to node.js can you please advice me some good article about web scraping with node.js? I already can do some basic things, like getting info, and saving it in mysql. [20:36] jerrysv: i mean libdl [20:36] ShinyDarkness: gfosco: I have installed gcc and g++ from source a few hours ago. I figured the installed would have installed the standard libraries as well. [20:36] ken-ignite has joined the channel [20:37] jerrysv: ShinyDarkness: not necessarily, you may need to install glibc as well [20:37] gfosco: ShinyDarkness: Try installing GLibC and see what happens. [20:37] admc has joined the channel [20:38] Margle: looking for a node.js module to create pdfs. [20:38] Margle: looking for recommendations. [20:38] mongrelion: Margle: there's already a pdf library for nodejs [20:38] mongrelion: Margle: what does google say? :P pdfkit perhaps? [20:39] Margle: mongrelion: this looks cool, thanks. [20:39] jergason has joined the channel [20:40] MrNibbles: Margle: pdfkit is cool, same as used in firefox to render pdf's [20:40] MrNibbles: or so i believe [20:40] Skaag has joined the channel [20:41] Margle: MrNibbles: thanks. [20:42] isaacs has joined the channel [20:42] isaacs: dscape: reqs for developing npm? [20:42] norviller has joined the channel [20:42] isaacs: dscape: sounds like a subject i might know a little about [20:42] isaacs: i do that sometimes. [20:44] zarubin has joined the channel [20:45] vhpoet: ppl can you advice me data scraping articles using node.js? [20:46] joestein has joined the channel [20:47] Leemp has joined the channel [20:47] jesusabdullah: vhpoet: Use jsdom and jquery, basically [20:47] mrkurt has joined the channel [20:47] mattj_ has joined the channel [20:48] superjudge has joined the channel [20:49] colinclark has joined the channel [20:49] chasefarmer has joined the channel [20:49] colinclark has joined the channel [20:49] vhpoet: jesusabdullah: thanks :) [20:49] jesusabdullah: np [20:50] superjudge has joined the channel [20:51] Renegade001 has joined the channel [20:53] mongrelion: what's a popular twitter api client for node.js? I've been looking at the long list at nodejs' github's wiki but you know... [20:53] `3rdEden has joined the channel [20:54] V1 has joined the channel [20:54] JaKWaC has joined the channel [20:56] JaKWaC has joined the channel [20:56] TimTimTim: can someone explain to me why this isn't working? [20:57] arnee has joined the channel [20:57] swestcott has joined the channel [20:57] CarterL has joined the channel [20:58] TimTimTim: can someone explain to me why this isn't working? http://pastebin.com/nMWkGpgm [20:58] mcluskydodallas has joined the channel [20:58] jacobolus has joined the channel [20:59] ken-igni_ has joined the channel [21:03] AvianFlu: mongrelion: try ntwitter [21:03] SoulRaven has joined the channel [21:03] dylang_ has joined the channel [21:04] isufy has joined the channel [21:04] dgathright has joined the channel [21:05] mongrelion: AvianFlu: >_> [21:06] jaitaiwan has joined the channel [21:06] clarkfischer: TimTimTim: what seems to be the problem with that? [21:06] AvianFlu: what's the matter? [21:06] mikeal has joined the channel [21:06] jhurliman has joined the channel [21:07] superjudge has joined the channel [21:08] mikl has joined the channel [21:08] TimTimTim: clarkfischer: server receives messages, but client never receives anything... not even on connection [21:09] TimTimTim: i've tried a number of different things, like "io.sockets.on" instead of "io.on" etc., but nothing seems to work [21:10] djazz has left the channel [21:10] josh-k has joined the channel [21:11] jacobolus has joined the channel [21:12] sylvinus has joined the channel [21:13] Morkel has joined the channel [21:13] tedsuo has joined the channel [21:15] mongrelion: AvianFlu: seems good, man. I'll give it a try tonight. Thanks. [21:16] Renegade001 has joined the channel [21:16] mongrelion: have you guys already done % npm xmas ? [21:18] tomyan has joined the channel [21:19] TimTimTim: BAH can't figure out wtf i'm doing wrong >:( [21:19] stonebranch has joined the channel [21:21] cl0udy has joined the channel [21:24] colinclark_ has joined the channel [21:24] jlank has joined the channel [21:24] Cromulent has joined the channel [21:25] saschagehlich has joined the channel [21:26] colinclark__ has joined the channel [21:29] briancra_ has joined the channel [21:30] norviller has joined the channel [21:30] louissmit has joined the channel [21:31] brianloveswords has joined the channel [21:31] ShinyDarkness has joined the channel [21:31] sarlalian1 has joined the channel [21:32] jamescarr has joined the channel [21:32] jamescarr: hmmm... anyone here using mocha on the client side? [21:32] jerrysv: ACTION waits for npm halloween [21:32] hotch has joined the channel [21:33] dgathright has joined the channel [21:34] michaelhartau has joined the channel [21:38] Sorella has joined the channel [21:39] jacobolu_ has joined the channel [21:39] megalomix has joined the channel [21:39] megalomix: hello if i need to exit from a function [21:39] freakyfractal has joined the channel [21:39] megalomix: inside few inner functions [21:39] megalomix: how can i do? [21:39] megalomix: if i do "return" i will exit from an inner function not from the main function [21:39] megalomix: how to do that? [21:40] freakyfractal_ has joined the channel [21:40] megalomix: i need it because after i do res.render('myview') [21:40] megalomix: i need to exit [21:40] isufy has joined the channel [21:40] megalomix: otherwise other wievs will shown [21:40] megalomix: (express.js) [21:41] bosphorus has joined the channel [21:42] metalball2 has joined the channel [21:45] tingham_: isaacs: we sorted out that "ProtectPoint" was filtering a bunch of traffic that it thought was international; when in fact a lot of the blocks where US based. npm works beautifully now. Thanks for your help yesterday. [21:45] tonymilne has joined the channel [21:47] tdegrunt_ has joined the channel [21:47] cjm has joined the channel [21:48] dylang has joined the channel [21:48] megalomix: advice? [21:50] dscape: isaacs yeah im all good [21:50] dscape: i figured it out :) [21:50] megalomix: dscape, do you use express? [21:50] dscape: megalomix: yeah [21:51] TooTallNate has joined the channel [21:51] dscape: there's an express # btw, tj is normally great helping out [21:51] megalomix: dscape, one fast question....if i have a function with few inner functions inside [21:51] dscape: but let me read what you asked [21:51] dscape: inner functions or callbacks? [21:51] megalomix: and inside an inner function i do: res.render('view', {}) [21:51] megalomix: call backs [21:51] megalomix: one moment [21:51] megalomix: i write an exmaple [21:51] lazyshot has joined the channel [21:52] dscape: megalomix: normally you want to avoid going many level deeps in the same file so you break up functionality into modules to have greater control over code and more code reusability (if thats even a word) [21:52] dscape: and #express is still a great place to ask questions about express ;) [21:53] megalomix: https://gist.github.com/1478731 [21:54] thalll has joined the channel [21:54] JJMalina has joined the channel [21:54] megalomix: dscape, saw? [21:54] dscape: let me check that [21:55] dscape: megalomix: those are not callbacks [21:55] dscape: they are inner functions [21:55] snearch has joined the channel [21:55] dscape: what is it that you are trying to do exactly? [21:55] dscape: render a layout? [21:55] megalomix: a view... [21:55] megalomix: yes [21:55] dscape: ok [21:55] jocafa: SubStack: your illustrations are far too entertaining. [21:55] dscape: :) [21:55] michaelhartau has joined the channel [21:56] megalomix: with a function i check if a form is sent......if sent.....i check the fields.....if all are completed.....i render a specific view [21:56] dscape: megalomix: i use this line of code app.set('view options', { layout: 'layouts/main'}); [21:56] dscape: for layouts [21:56] dscape: its in the part where you are initializing your app [21:56] dscape: normally i put that in a environment.js file that i just load up in my server.js [21:57] dscape: but you seem to want to do something else [21:57] dscape: in your view code you can have if then elses [21:57] megalomix: dscape, you i know [21:57] klatchbaldar has joined the channel [21:57] megalomix: yes yes [21:57] megalomix: i use layout [21:57] Blorb has joined the channel [21:57] joshontheweb has joined the channel [21:57] megalomix: now i render a view (inside this layout automatically) [21:57] megalomix: my problem is that how to prevent that a second res.render will be executed? [21:58] dscape: to change the view according to a condition you can use a view [21:58] apoc has joined the channel [21:58] dscape: how can that happen? [21:58] dscape: just write it once [21:58] dscape: ? :) [21:58] dscape: if you have some code you want me to look at [21:58] dscape: just gist it to me [21:58] dscape: if you want to do it in private just send it as a private message [21:58] Kunda has joined the channel [21:58] dscape: i can check that out for you [21:59] klatchbaldar: if I am in the express function: app.get('/', function (req, res) { this.foo } [21:59] klatchbaldar: what does "this" refer to [21:59] klatchbaldar: ? [21:59] megalomix: hmmm [21:59] megalomix: no wait [21:59] dscape: you guys do the strangest things :P [21:59] megalomix: i send you the code [21:59] dscape: lol [21:59] dylang has joined the channel [22:00] megalomix: https://gist.github.com/1478760 [22:00] awkn4n has left the channel [22:00] TimTimTim has joined the channel [22:00] jj0hns0n has joined the channel [22:00] dscape: megalomix: why dont you use normal express routes? [22:00] dscape: like app.get(.... ? [22:01] megalomix: no i developed it using MCV [22:01] megalomix: i have a controller and model [22:01] megalomix: route ---> controller ---> model [22:01] tbranyen: i really hope that was a typo [22:01] megalomix: typo? [22:01] dscape: megalomix: maybe starting with this will help [22:01] tbranyen: MVC... [22:01] dscape: http://nodetuts.com/tutorials/9-express.html#video [22:01] dscape: there's 3 more in that site [22:01] dscape: to get you started with express [22:01] dscape: :) [22:02] mongrelion: tbranyen: what if he's visco? :P [22:02] fzzzy has joined the channel [22:02] megalomix: MVC [22:02] megalomix: yes [22:02] Wizek-other has joined the channel [22:02] tbranyen: :) [22:02] dscape: megalomix: MVC is just about separation of concerns, express can do that with the app.get method i said [22:02] dscape: you can load controllers [22:02] dscape: just require them [22:02] megalomix: yes [22:02] dscape: actually that is what most people do [22:02] megalomix: i load the controller from a route [22:03] megalomix: i have something like: app.all('/signup', controller.signup.init()) [22:03] mikl has joined the channel [22:03] megalomix: but this is not the problem.....as you can see i used .loaded property to understand if i do something with res.render or res.redirect [22:03] dscape: megalomix: and that gist is that code right? [22:04] megalomix: is this the "best" way ? [22:04] megalomix: yes it works [22:04] megalomix: but is it logically correct? [22:04] ben_alman: is there a lib for nodejs that wraps all async methods in a promise implementation? [22:04] Me1000 has joined the channel [22:04] dscape: megalomix: i have no idea what this page loaded thing is [22:05] megalomix: as i told you i have a variable...i don't know if this is a good way [22:05] dscape: i cant see any scenario why you woul dneed that [22:05] dscape: maybe im just not understanding the code right [22:05] dscape: but i think it would be cool to watch those tutorials i said [22:05] megalomix: dscape, image that there is res.render('page') instead of res.redirect('') [22:05] stonebranch has joined the channel [22:05] dscape: it will help you see how others are doing this [22:05] BrianE has joined the channel [22:05] megalomix: if i have two res.render from two different inners functions [22:05] ben_alman: https://github.com/kriszyp/promised-io seems incomplete [22:05] megalomix: how to understand if i rendered a view before? [22:06] trotter has joined the channel [22:06] dscape: an http request is a one time thing, [22:06] dscape: it gets intercepted by one route in express [22:07] dscape: and you control the flow to do exactly one res.render [22:07] micheil has joined the channel [22:07] megalomix: no [22:07] dscape: so that shouldnt happen [22:07] megalomix: no no wait, [22:07] megalomix: if you read a form...and that form check WHERE to send the request...maybe you show show different view depending of the user request [22:07] megalomix: so the controller see the request of that page...read the FORM and then show the correct view [22:08] megalomix: i can't do a controller for each thing....i do ONE controller for each page....and the relative model (functions to calls) [22:09] joshgillies has joined the channel [22:09] jlank: speaking of express, I'm working on a project where for example I get a list of sites like so: app.get('/sites', routes.sites); where routes.sites is an exported function(req, res).. now say I wanted to call that sites module/function from the command line, instead of in the browser... ? [22:09] megalomix: so there is not a problem...i only would like to understand how to see if a view is already shown [22:09] dscape: megalomix: request.get -> show the form [22:09] dscape: request.post -> get the form and process it [22:09] jlank: would I be best to just interface with my app on the CLI via curl? [22:10] dscape: ditch the request.all [22:10] dscape: done [22:10] megalomix: hmm [22:10] megalomix: i thino you didn't understand me [22:10] megalomix: i know what you say [22:10] megalomix: it is correct [22:10] _dc has joined the channel [22:10] mmalecki: creationix: hey, which version of node does webos use? [22:11] megalomix: but try to imagine there is a form on that page with (exmaple) radio button and i need to show the view reading that radiobutton [22:11] megalomix: (it is an example) [22:11] mmalecki: creationix: or, maybe you could add some feedback to https://github.com/joyent/node/issues/2334#issuecomment-3148155 when you have some spare time? [22:11] megalomix: but i need to read the form first to try to understand what view to render [22:11] gtramontina has joined the channel [22:11] dscape: megalomix: even if you have an if else [22:12] dscape: you can still ensure that only one of those happen at one request [22:12] dscape: hence one res.render [22:12] megalomix: yes....exactly [22:12] megalomix: BUT....is there a method to check if a view is rendered OR this is the only manner to do that? [22:14] isufy has joined the channel [22:14] dscape: megalomix: i dont know if there is a method to do that or not [22:14] megalomix: ok [22:14] vguerra has joined the channel [22:14] dscape: but i dont think you should be in a situation where you need to ask [22:14] megalomix: so i need to check the flow with if elase [22:14] megalomix: k [22:14] dscape: at least i never was, and never saw anyone talking about a problem that requires that [22:14] dscape: yup :) [22:15] megalomix: no no [22:15] megalomix: it is not a problem [22:15] megalomix: i only need to understand if my "method" is good [22:15] megalomix: if there is not a method to check it [22:15] megalomix: i think it should be good [22:15] megalomix: so, ok. [22:15] dscape: go for it! :) [22:16] jocafa: whyyyyyy haven't i seen this til now? http://tootallnate.github.com/NodObjC/ [22:17] innociv__ has joined the channel [22:17] joshontheweb has joined the channel [22:18] CIA-109: node: 03isaacs 07v0.6 * rf490934 10/ doc/index.html : Properly support old IE DOM methods. - http://git.io/JC-ysQ [22:18] CIA-109: node: 03isaacs 07v0.6 * rbb9316d 10/ (166 files in 26 dirs): npm 1.1.0-beta-2 - http://git.io/YK7tSA [22:18] trotter has joined the channel [22:20] mongrelion: w00t? how did you do to make those lines colorful? [22:21] isaacs: mongrelion: huh? [22:21] mongrelion: isaacs: CIA-109 just said something and I see it here full of green and yello <3 [22:21] mongrelion: w* [22:22] isaacs: mongrelion: oh, that [22:22] mongrelion: I thought freenode didn't support that. [22:22] isaacs: nono, it's always supported it [22:22] mmalecki: hm. [22:22] isaacs: you can disable it for certain rooms, i believe, by talknig to chanserv [22:22] mmalecki: isaacs: hey, how about trying to embeed irc colors in commit messages :D ? [22:23] megalomix: thank you everybody [22:23] megalomix: bye bye [22:23] sh1mmer: can irc support the tag? [22:23] halfhalo: oh god... marquee... [22:24] mongrelion: LOL back to 90s [22:24] sh1mmer: I always add something of value [22:24] sh1mmer: even if it's just nostalgia [22:24] _unary has joined the channel [22:28] MrWarGames has joined the channel [22:28] postwait has joined the channel [22:28] jscheel has joined the channel [22:28] jscheel has joined the channel [22:29] neilk_ has joined the channel [22:31] MatthewS has joined the channel [22:31] prettyrobots has joined the channel [22:32] mjr_ has joined the channel [22:35] MrWarGames has joined the channel [22:36] djbell has joined the channel [22:38] epa_ has joined the channel [22:38] jaha has joined the channel [22:38] liar has joined the channel [22:39] geekbri has joined the channel [22:39] darkenco has joined the channel [22:40] MrWarGames has joined the channel [22:40] jldbasa has joined the channel [22:41] guest9000 has joined the channel [22:42] jaha has joined the channel [22:42] briancray has joined the channel [22:42] isufy has joined the channel [22:43] jaha has joined the channel [22:43] torm3nt has joined the channel [22:44] MrWarGames has joined the channel [22:44] jlank_ has joined the channel [22:44] christoffe has joined the channel [22:45] ryah: raise your hand if you get the 1337 reference on the homepage [22:45] cwo has joined the channel [22:46] joshsmith has joined the channel [22:46] einaros: mmalecki: got your pullreq - awesome [22:46] CoverSlide: ACTION raises hand [22:46] christoffe: nice! [22:46] ryah: did you find it cute? [22:46] christoffe: yep [22:46] mmalecki: ACTION waves [22:46] ryah: ok :) [22:46] mmalecki: einaros: thanks :) [22:46] CoverSlide: truly adorable [22:47] mcluskydodallas has joined the channel [22:47] mmalecki: ryah: I find this code cute in general :) [22:47] ryah: is github down? [22:47] ryah: raise your hand if you don't get 1337 [22:47] mmalecki: ryah: and it works for me [22:47] cafesofie has joined the channel [22:48] jbpros has joined the channel [22:48] TheJH: ryah, huh? gh works for me [22:48] jaha: xtra special since it's wednesday [22:48] sarlalian has joined the channel [22:48] hotroot has joined the channel [22:49] hotroot: If SOPA passes I think I'm going to have to start work on a node.js based anonymous filesharing program =P [22:49] tbranyen: hotroot: aka bt over tor? [22:49] hotroot: No [22:49] hotroot: Tor is slow as shit [22:49] CoverSlide: yeah [22:49] CoverSlide: it'd be faster to snail mail floppies one by one [22:50] hotroot: Actually, I'd probably just get a foreign VPN if it passes [22:50] tbranyen: oh i seriously doubt any implementation would use tor for the actual transfer [22:50] tbranyen: thats just silly [22:50] chrisvwebdev has joined the channel [22:50] CIA-109: node: 03Fedor Indutny 07master * rbe23c51 10/ (Makefile tools/installer.js): [22:50] CIA-109: node: Implement make install [22:50] CIA-109: node: Fixes #2331, #2197, #2283 - http://git.io/UlQo7A [22:50] mmalecki: indutny: WIN! SO MUCH WIN! [22:50] CoverSlide: ? [22:50] perezd has joined the channel [22:50] mmalecki: CoverSlide: 'implement make install' [22:51] CoverSlide: since when does make install not work? [22:51] hotroot: Freenet is close, but I don't really like how they do it [22:52] mikeal has joined the channel [22:52] mmalecki: CoverSlide: 0.7.0-pre [22:53] CoverSlide: oic [22:53] mmalecki: so, I guess that makeInstallBot can be turned off [22:54] mmalecki: or wait [22:54] makeInstallBot has joined the channel [22:54] mmalecki: makeInstallBot: thank you! you served us well! [22:55] hotroot: lol [22:55] mmalecki: makeInstallBot: goodbye, my sweet bot. I'll miss you :.( [22:56] mmalecki: he's gone. he was a good bot. [22:56] CoverSlide: ACTION wipes a tear [22:57] ryah: :~ [22:57] ajpiano has joined the channel [22:57] codygray has joined the channel [22:58] kanzure has joined the channel [22:58] CIA-109: node: 03Ryan Dahl 07isolates2 * r51e9fac 10/ (src/node.cc src/node_isolate.cc src/node_isolate.h): Move uv loop initialization into isolate (+15 more commits...) - http://git.io/grcJ1g [22:59] sh1mmer: ryah: some people don't get it when I do tutorials [22:59] joestein has joined the channel [22:59] sh1mmer: ryah: but in general most people do [23:01] airhorns: where did process.stdout.flush() go? [23:02] CoverSlide: it got flushed [23:02] hotroot: =P [23:02] airhorns: a har har [23:03] airhorns: is there anything similar [23:03] airhorns: or does node take care of it on its own now? [23:03] shedinja: do modules that use the http core module work with browserify? [23:04] jstash has joined the channel [23:04] timbl has joined the channel [23:05] hotroot: So is there a way to open each new connection to the server in it's own process? Is that wasteful or..? [23:05] epa_ has joined the channel [23:05] bstahlhood has joined the channel [23:05] wbednarski has joined the channel [23:05] maxogden: hotroot: v8 isolates have too much startup overhead currently to do that [23:06] maxogden: shedinja: the node http api and xmlhttprequest in browsers is way different. would be a cool hack though [23:06] hotroot: So does it currently utilize multiple processors in a regular application? [23:07] xtianw: hotroot: http://nodejs.org/docs/latest/api/cluster.html [23:07] chjj: oh my, do i hate svn [23:07] shedinja: maxogden: yeah I was wondering if it did support, how. I'm not sure if it would be able to change the headers on requests [23:08] Blorb has joined the channel [23:08] maxogden: shedinja: you arent sure if xmlhttprequest can set custom headers? it can [23:08] hotroot: So cluster correctly uses multi-processors? [23:08] shedinja: maxogden: I did not know that. cool [23:09] xtianw: Yes [23:09] maxogden: hotroot: 1 connection:process is probably overkill though [23:09] hotroot: And all I have to do is the cluster = requre then if(cluster.isMaster0 loop thing. [23:09] tomyan has joined the channel [23:09] maxogden: shedinja: dunno how cross browser it is but on modern browsers: http://caniuse.com/xhr2 [23:10] hotroot: Oh, nevermind, I see it's a bit more complicated =/ [23:10] codygray has left the channel [23:13] Brandon_R has joined the channel [23:13] Brandon_R: Hey guys [23:13] Brandon_R: what's up [23:15] jaha: hey. new to node and trying out a tutorial… any idea why im getting an error " throw new TypeError('first argument must be a string or Buffer');" with this code: http://pastie.org/3018169 [23:15] dthompso99 has joined the channel [23:15] TimTimTim has joined the channel [23:17] Brandon_R: hdy jaha [23:17] Brandon_R: hey* [23:17] xtianw: jaha: content isn't a string or Buffer [23:17] Wa has joined the channel [23:18] dtan has joined the channel [23:19] CIA-109: node: 03Ryan Dahl 07master * rb3a7de1 10/ (143 files in 20 dirs): Upgrade V8 to 3.8.0 - http://git.io/kP1ngg [23:20] CIA-109: node: 03Ryan Dahl 07v0.6 * rb04d4ff 10/ doc/community/index.html : Add docs.nodejitsu.com to community page - http://git.io/LnHIRw [23:20] JaKWaC has joined the channel [23:21] isufy has joined the channel [23:21] JaKWaC has joined the channel [23:23] Sorella has joined the channel [23:24] delimited has joined the channel [23:28] k1ttty has joined the channel [23:29] mrpound has joined the channel [23:30] heavysixer has joined the channel [23:30] brianseeders has joined the channel [23:31] jaha: woops, was missing a return var [23:32] kazupon has joined the channel [23:32] Brandon_R: hey guys [23:33] Brandon_R: how do i know what the latest google v8 version is? [23:33] Brandon_R: where do i see the number [23:33] isaacsanders has joined the channel [23:34] CoverSlide: process.versions [23:35] Brandon_R: no [23:35] Brandon_R: i mean on the internet [23:35] Brandon_R: like what is the latest version of google v8 there is [23:35] Brandon_R: i tried searching but googlecode is a mess [23:36] Brandon_R: got it [23:36] Brandon_R: http://code.google.com/p/v8/source/browse/trunk/ChangeLog [23:36] ryah: 3.8.0 [23:36] Brandon_R: using these websites makes me see what a godsend github is :) [23:37] tjfontaine: the github frontend may be useful, but the rest of it is somewhat atrocious [23:37] tjfontaine: I would rather use it than sf.net but that's not saying much [23:38] Brandon_R: anything that lets me do things the fastest is always better [23:38] cognominal_ has joined the channel [23:38] CoverSlide: bitbucket ftw! [23:38] jacobolus has joined the channel [23:40] Brandon_R: the bitbucket src code viewer isn't the greatest [23:40] tjfontaine: it's basically that they've all missed the boat on DVCS, ohai, we're going to let you use this nice decentralized vcs in an environment that makes it useless when our site is down (which is far too often for something as important as source availability and issue tracking) [23:41] Brandon_R: i like how there is no centralized development for node [23:41] Brandon_R: github for issues and src code [23:41] Brandon_R: google groups for questions [23:41] Brandon_R: irc for chatting [23:41] Brandon_R: and random blogs for tutorials and docs [23:42] tedsuo has joined the channel [23:42] Brandon_R: then again i can say that for almost any project [23:42] Brandon_R: so nvm [23:45] r04r has joined the channel [23:46] mike5w3c has joined the channel [23:46] wingie: is there a way to keep the colors when running a child process? [23:47] jaitaiwan has joined the channel [23:47] CIA-109: libuv: 03Igor Zinkovsky 07platform_api * rb34cfb4 10/ (14 files in 5 dirs): platform api - http://git.io/kGhItw [23:48] bengl has joined the channel [23:50] dougrdotnet_ has joined the channel [23:51] xavieralexander has joined the channel [23:52] robhawkes has joined the channel [23:52] chjj: wow, i thought dart was bad, and then i tried it [23:52] chjj: ... [23:53] chjj: and its bad [23:53] chilts: heh [23:53] TheJH: chjj, :D [23:53] eeemsi: chjj: -v [23:53] chilts: I must admit, before they released it it soundded like it might be nice, then when they released it I decided I was not longer interested :) [23:53] chjj: and that dart editor is the buggiest piece of software ive ever tried [23:53] chjj: eating 90% cpu for no reason [23:53] erichynds has joined the channel [23:53] chjj: probably because its java [23:55] chjj: i literally made an alias: alias killdart='killall -9 DartEditor' [23:55] chjj: in case it broke so bad i had to kill it again [23:57] eeemsi: chjj: dart java … wait what? [23:57] chjj: the dart editor is java [23:57] chjj: requires the jre and things