[00:01] Skaag_ has joined the channel [00:01] davv3 has joined the channel [00:02] mikeric has joined the channel [00:02] ningu: how many node.js coffescript web frameworks based on ruby on rails does it take to screw in a lightbulb? [00:03] ningu: just one, but you need 10 async calls to do t. [00:03] ningu: it* [00:04] mc: haha [00:04] ryan1_ has joined the channel [00:05] ningu: at least it can run in the cloud and is scalable [00:05] zomg: Hmm I had a fun idea... simulate a fantasy sports league, sorta like fantasy football, but entirely simulated.. then let players play it like they play fantasy football [00:06] zomg: I wonder if anyone would want to play it or if it's just me who's having fun thinking of how the simulation would work [00:06] zomg: :D [00:08] insin: wonder if you could have a hook.io hook for each entity in each game, madness [00:08] mikeric: is there a single command way to start a node app that requires a few command and processes to run? for example, i need to do "~/build/redis-2.2.111-scripting/src/redis-server", "make", and "node server.js" every time i want to use my node app locally. [00:08] mikeric: is using "npm start" capable of running those? [00:08] patcito_ has joined the channel [00:08] patcito has joined the channel [00:09] isaacs: mikeric: sure. "scripts": { "start":"whatever"} [00:09] Destos has joined the channel [00:10] isaacs: mikeric: but, you should definitely not hard-code your home dir path into something that you plan on others using. [00:10] Enoria has joined the channel [00:10] mc: wait.. npm has a start command?! i should really go back and read docs one of these days [00:11] isaacs: mc: yeah, it just does `npm run-script start` [00:11] isaacs: mc: once upon a time, i imagined it'd grow into a service manager. [00:11] mc: oh i see [00:11] mc: not potentially your 'start' script could be 'node dostuff.js' or similar? [00:11] disappearedng: Anyone here has been successful with testing socket.io? [00:11] mc: s/not/but [00:12] ningu: hrm... you can't use jquery from node by reading in a raw html file I assume. but is there any dom parser that has jquery-like awesomeness? [00:13] dtrejo has joined the channel [00:14] disappearedng: basically i want to run both the server and the client code in the same test files [00:14] dtrejo: @isaacs Is it true that npm will not look for linked versions of its own deps? I'm working on the npat test reporting module, but my linked npm won't reference my linked report module [00:15] dtrejo: Going to try doing a `make install` on npm instead of make link, and see if that fixes things [00:17] ningu: hmm. looks like you can use the spider module for it. [00:18] davv3 has joined the channel [00:19] ningu: aha, jsdom [00:19] ningu: there we go [00:21] isaacs: dtrejo: probably because it's not seeing other globally installed things, since it's realpath'ed? [00:21] isaacs: i dunno [00:21] dtrejo: ok, thanks, im going to keep playing around and see what happens [00:22] dtrejo: how do you usually develop one of your own modules that npm depends on? [00:22] dtrejo: (and test that it works w/ npm at the same time) [00:23] benvie: so meta [00:23] mcav has joined the channel [00:24] dtrejo: benvie: :) [00:24] jergason has joined the channel [00:24] attilagyorffy has joined the channel [00:24] benvie: shouldn't it have it's own private copy? [00:24] benvie: that you're not developing on [00:25] benvie: even if ussing global? Mine does I think [00:25] mikeric: isaacs: would that work if those scripts are processes that need to keep running? for example i start the redis-scripting server in the "pre start" script, that works but it doesn't get past that because it's waiting for it to finish.. (so i just see the redis server output) [00:26] sechrist_ has joined the channel [00:26] h4mz1d has joined the channel [00:26] benvie: need to deamonize it, have that be a luncher script that launches a new process [00:27] isaacs: mikeric: yeah, exactly [00:27] mikeric: benvie, isaacs: ok, makes sense. thanks. [00:27] isaacs: dtrejo: i write a test for it, then i make it pass that test, then i install it in npm and make sure it fixes the bug in npm. [00:28] isaacs: dtrejo: as if i'm 2 people, one consuming from the other [00:28] isaacs: dtrejo: occasinally, i'll just develop it in npm/node_modules first. [00:28] dtrejo: hmm [00:28] benvie: there was a movie about that called the human centipede [00:28] isaacs: dtrejo: oh, also, i have ~/dev/node_modules where all my node programs live. [00:28] isaacs: dtrejo: so i can require("foo") any of my things [00:28] mmalecki: benvie: please don't [00:28] redir has joined the channel [00:28] igl1: benvie: go away >.< [00:28] dtrejo: ooh fancy [00:28] igl1: :C [00:28] mmalecki: benvie: I never managed to watch it being sober [00:29] benvie: I never saw it but I did see the south park episode which I imagine was much less painful [00:29] dtrejo: I think I'll try writing it in the node_modules folder, that should make things easier [00:29] diva has joined the channel [00:29] igl1: there are 2 actually [00:30] mmalecki: second one is even worse [00:30] benvie: makes you wonder who the hell funds these things [00:30] patcito has joined the channel [00:30] igl1: dutch guy trying to impress tarantino [00:31] benvie: oh I see, wikipedia explains it. The specifics weren't told to investors [00:32] mmalecki: HEY GUYS LET'S MAKE A MOVIE [00:32] mmalecki: uhm, topic? [00:32] benvie: it will so be SOOO scary I promise [00:32] mmalecki: DUNNO LET'S MAKE A MOVIE [00:32] benvie: and then "I told you it would be scary" [00:32] mmalecki: lol [00:33] al3xnull has joined the channel [00:33] benvie: that doesn't pardon the second one though [00:34] cjm has joined the channel [00:35] dtrejo: isaacs: just added that conversation to the wiki page, so you can point others there if the question comes up again: https://github.com/isaacs/npm/wiki/npm-development [00:35] disappearedng: Is there a way to nodeunit to don't finish the test yet? [00:35] themiddleman_itv has joined the channel [00:36] brianseeders has joined the channel [00:36] shinuza has joined the channel [00:36] tttthet has joined the channel [00:38] khrome_ has joined the channel [00:38] papachan has joined the channel [00:38] skyler_brungardt has joined the channel [00:41] tiglionabbit: Hi. If I run node normally, I can require modules I installed globally with npm. However, if I sudo node, it always says Error: Cannot find module [00:41] eukreign has left the channel [00:42] tiglionabbit: echo $NODE_PATH and sudo echo $NODE_PATH show the same thing -- a directory that contains these modules [00:42] tiglionabbit: so what could be going wrong? [00:43] benvie: it doesn't change your cwd or path does it? [00:43] benvie: sudo [00:43] mikeal has joined the channel [00:43] cha0s has joined the channel [00:43] cha0s has joined the channel [00:43] tiglionabbit: no [00:44] Vespakoen has joined the channel [00:45] tiglionabbit: http://friendpaste.com/LblLlYC7yHslQxBKpDBXW [00:45] isaacs: tiglionabbit: node -pe 'require("module").globalPaths'; sudo node -pe 'require("module").globalPaths' [00:47] tiglionabbit: isaacs: interesting. http://friendpaste.com/6GS2pkpMcDf7Ssii4RBmHG [00:47] tiglionabbit: the sudo one is missing /usr/local/lib/node_modules which is the value of $NODE_PATH [00:47] tiglionabbit: why isn't it getting that? [00:47] isaacs: tiglionabbit: node -v; sudo node -v [00:48] isaacs: tiglionabbit: which node; sudo which node [00:48] isaacs: tiglionabbit: eval 'echo $PATH'; sudo eval 'echo $PATH' [00:48] tiglionabbit: same results for both. [00:48] tiglionabbit: sudo eval: command not found [00:48] isaacs: tiglionabbit: eval 'echo $NODE_PATH'; sudo eval 'echo $NODE_PATH' [00:49] timoxley: disappearedng use mocha. nodeunit is dogs balls. [00:49] tiglionabbit: er, sudo: eval: command not found. It works when I'm not sudoing though [00:49] shanebo: any socket.io folk in here? I'm trying to emit a front end event from within an express-like route [00:49] isaacs: tiglionabbit: try: sudo bash -c 'echo $PATH' [00:50] isaacs: tiglionabbit: you can't reliably test with `sudo echo $PATH`, because the shell expands $PATH before passing the command to sudo. [00:50] isaacs: so, sudo sees only "echo /path1:/path2:etc" [00:50] tiglionabbit: with sudo: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin without sudo: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [00:50] isaacs: tiglionabbit: but i'll bet that the sudo shell and your regular shell don't have the same NODE_PATH environ [00:51] isaacs: tiglionabbit: sudo node -pe 'process.env.NODE_PATH' [00:51] tiglionabbit: hm, with sudo there's no $NODE_PATH [00:51] isaacs: there ya go. [00:51] tiglionabbit: undefined [00:51] tiglionabbit: how do I fix that? [00:51] isaacs: tiglionabbit: why not just run `npm link http-parser` to link it local, anyway? [00:51] ricedog: dunno if i'm a socket.io guy but i managed to put something together with it [00:51] tiglionabbit: isaacs: what does that mean? [00:51] isaacs: tiglionabbit: using require() to load globally-installed modules is not supported. [00:51] isaacs: tiglionabbit: like it says in `npm faq` [00:51] tiglionabbit: isaacs: since when? [00:51] bradleymeck has joined the channel [00:52] isaacs: tiglionabbit: since 1.0.0-alpha [00:52] ricedog: hmm express.. i should read more [00:52] disappearedng: timoxley: and you are basing your opinions on? [00:52] superlou has joined the channel [00:52] tiglionabbit: isaacs: how do you require globally installed modules then? [00:52] isaacs: tiglionabbit: you can MAKE it work, by setting environs, or passing the full path, etc. [00:52] isaacs: tiglionabbit: you install them locally :) [00:52] isaacs: tiglionabbit: or you symlink them locally, using `npm link` [00:52] isaacs: tiglionabbit: run `npm faq` [00:52] tiglionabbit: isaacs: wait what why? [00:52] isaacs: tiglionabbit: run `npm faq` [00:52] tiglionabbit: why can't they be global? [00:53] shanebo: ricedog did you manage to emit a front end event within accepting a request on a regular http server? [00:53] isaacs: ACTION refraining from any more repetition. [00:53] isaacs: tiglionabbit: srsly, it's answered in there. [00:53] isaacs: run that command, and read it [00:53] enmand has joined the channel [00:54] ricedog: "within accepting a request" i can't say i understand what you mean [00:54] boltR has joined the channel [00:54] ricedog: you can call socket.emit('msg', callback(data) {} from anything as far as i could tell [00:55] ricedog: as long as you've got the connection already .. [00:55] shanebo: ricedog you have to know what socket to emit to though, which is the issue [00:55] tiglionabbit: isaacs: bleh I am just sad that my stuff is all broken again =[ [00:55] kwmiebach has joined the channel [00:55] isaacs: tiglionabbit: it's not hard to get what you're after. [00:55] isaacs: tiglionabbit: just use `npm link` [00:55] ricedog: maybe i'm in a bit of a simplified usecase [00:55] ryan1_ has joined the channel [00:56] isaacs: it's very well documented. [00:56] shanebo: ricedog i've tried the io.sockets.in(room).emit('foo', data) but it doesn't work [00:56] isaacs: tiglionabbit: or, you can configure your sudoers file to share the NODE_PATH environment var. [00:56] zemanel has joined the channel [00:56] isaacs: tiglionabbit: but that's convoluted, system dependent, etc. [00:56] shanebo: ricedog how are you responding to requests? [00:56] tiglionabbit: isaacs: I just want it to work now. Will fix it later. But um, how do I do that? [00:56] ningu: jquery for scraping is officially really awesome. [00:56] isaacs: tiglionabbit: plus, it's really not ideal anyway, for all the same reasons that global variables are not ideal. [00:56] ningu: not sure why I never thought of this before... probably cause I didn't have node ;) [00:56] isaacs: tiglionabbit: cd my-project; npm link http-proxy [00:57] isaacs: tiglionabbit: done. [00:57] kbhit has joined the channel [00:57] isaacs: tiglionabbit: it's incredibly easy, and takes about 6 seconds. [00:57] ricedog: i've got a 'static' (not node hosted) webpage that emits a message, the server listens and emits it's reply [00:57] isaacs: tiglionabbit: you alreayd have it installed globally, so this just sets up a symbolic link from ./node_modules/http-proxy to the global one. [00:57] ricedog: then it's json data between the two [00:57] isaacs: tiglionabbit: no need to be sad. [00:58] tiglionabbit: isaacs: wtf it's giving me permission errors and telling me to run it as root. Why should I run link as root? These files are owned by my user [00:58] shanebo: ricedog yeah mine is a different use case [00:58] jgaui has joined the channel [00:58] ricedog: sorry, I guess i'm a bit new here [00:59] isaacs: tiglionabbit: i don't know which files are owned by root from your description. [00:59] isaacs: tiglionabbit: gist, please. [00:59] shanebo: ricedog np, thanks for trying to help [00:59] ricedog: still trying to figure out backing up my variables to redis to persist between restarts [00:59] aristidesfl has joined the channel [01:00] hij1nx has joined the channel [01:00] Joeysomo has joined the channel [01:00] tiglionabbit: http://friendpaste.com/2uB2DvLYYo9ikcIp3swNLX [01:00] sugyan: konobi: pong [01:00] Joeysomo has joined the channel [01:01] al3xnull has joined the channel [01:01] tiglionabbit: it looks like it's creating a symlink into the library that's owned by root and then trying to mess with that library [01:01] tiglionabbit: why does it do that? [01:02] tiglionabbit: and where's the documentation on npm link? It only has two sentences in the man page [01:02] gf3 has joined the channel [01:02] dthompso99 has left the channel [01:02] isaacs: tiglionabbit: npm help link [01:02] isaacs: tiglionabbit: every command has a help entry [01:03] tiglionabbit: oh I thought npm link --help would give me that :P ok [01:03] isaacs: tiglionabbit: that's the short help [01:03] TooTallNate has joined the channel [01:04] dthompso99 has joined the channel [01:05] tiglionabbit: so am I supposed to run it as root then? [01:05] ekryski has joined the channel [01:05] joshthecoder has joined the channel [01:06] postwait has joined the channel [01:08] looopy has joined the channel [01:08] jesusabdullah: sudo npm link? [01:08] isaacs: tiglionabbit: sure, you can run it as root. [01:08] isaacs: tiglionabbit: the symlink itself will still be owned by your [01:10] levi501d has joined the channel [01:11] harthur has joined the channel [01:14] pastak has joined the channel [01:14] jergason has joined the channel [01:16] CarterL has joined the channel [01:16] DuoSRX has joined the channel [01:17] fsargent_ has joined the channel [01:17] diogogmt has joined the channel [01:17] Qbix1 has joined the channel [01:17] Aria has joined the channel [01:17] fsargent_: How can I return an object's name? [01:18] sven_oostenbrink has joined the channel [01:18] fsargent_: I am iterating through a JSON file, and I want to return the team name in a contacts dictionary. [01:18] phoenixz has joined the channel [01:18] fsargent_: except the team name is the key, and the value is an array containing all the team memebers. [01:20] konobi: sugyan: was wondering if you had any plans to add the ability to get the tap reporter to output to a specified file [01:20] k1ttty has joined the channel [01:20] phoenixz: I have looked at leanboost cluster, and it looks very interresting, very promising.. Question about it: I have a chat system using socket.io and node, and I want to have it clustered using learnboost cluster.. Now, the chat app is listening on 8080, but if I have it clustered, I'll have multiple processes.. AFAIK, only one process can be listening on the same port.. AFAIK, apache handles this by receiving a connection and sending that to a child [01:20] phoenixz: worker.. How would I do something like that under node? [01:22] caolanm has joined the channel [01:22] sugyan: konobi: output TAP report to a file? I had no plan. [01:22] diogogmt has joined the channel [01:25] louissmit_ has joined the channel [01:26] pendlepants has joined the channel [01:27] tlab has joined the channel [01:28] SvenDowideit has joined the channel [01:29] jiboumans_ has joined the channel [01:32] konobi: sugyan: apparently some of the other reporters let you do that [01:32] catshirt has joined the channel [01:32] joshontheweb has joined the channel [01:33] diogogmt has joined the channel [01:33] Remoun has joined the channel [01:35] dekub has joined the channel [01:36] icewhite has joined the channel [01:36] kmiyashiro_ has joined the channel [01:36] jhurliman: ugh, base64 handling is still broken in node :-| [01:36] maxogden: decoding? [01:36] abraxas has joined the channel [01:37] sugyan: konobi: hmm.. now I am using mocha mainly, not nodeunit :( [01:37] bradleymeck: jhurliman do you have an example? atob btoa or buffers? [01:37] jhurliman: i'm using new Buffer(b64str, 'base64'); putting together a repro right now [01:37] Destos has joined the channel [01:38] diogogmt has joined the channel [01:38] konobi: caolanm: beer? [01:39] jhurliman: i have a string that (correctly) outputs 28230 bytes of data with "cat mydata.b64 | base64 -D" but the node buffer is only 27337 bytes [01:41] TooTallNate has joined the channel [01:41] catshirt has joined the channel [01:42] arcanis has joined the channel [01:44] diogogmt has joined the channel [01:46] Emmanuel has joined the channel [01:47] kbhit: what's -D? -d ? [01:47] cjm has joined the channel [01:48] sardaven has joined the channel [01:49] diogogmt has joined the channel [01:50] deluded: Any nodies in the baltimore/DC area? [01:52] deluded: Anybody using node with redis pubsub to do asynchronous rest-based service calls? Trying to nail some good architecture patterns here [01:53] superlou has joined the channel [01:53] maxogden: deluded: you should ask @voodootikigod whats up with DC JS meetups [01:54] ricedog: I'm trying to use redis for the first time, node seems to be a good fun jump from php mysql dev [01:54] phoenixz: I have looked at leanboost cluster, and it looks very interresting, very promising.. Question about it: I have a chat system using socket.io and node, and I want to have it clustered using learnboost cluster.. Now, the chat app is listening on 8080, but if I have it clustered, I'll have multiple processes.. AFAIK, only one process can be listening on the same port.. AFAIK, apache handles this by receiving a connection and sending that to a child [01:54] phoenixz: worker.. How would I do something like that under node? [01:56] maxogden: phoenixz: havent used learnboost cluster but the one in core (http://nodejs.org/docs/latest/api/cluster.html) states "The cluster module allows you to easily create a network of processes that all share server ports" [01:56] dtrejo: isaacs: a bug is driving me crazy: this module tries to request.put to a couchdb, the code works when I run it via `node file.js`, but when npm runs requires the modules and runs it, `request` doesn't even get called [01:56] dtrejo: I think it is time to sleep [01:56] dtrejo: or drink [01:57] dtrejo: or both [01:57] deluded: maxogden: tnx - I'll swing on by there [01:58] rwaldron has joined the channel [01:59] jhurliman: bradleymeck, repro posted to https://github.com/joyent/node/issues/2795 [01:59] k1ttty_ has joined the channel [01:59] jhurliman: maxogden, decoding yes. specific details are in that link i just pasted [02:02] yuwang_laptop has joined the channel [02:02] diogogmt has joined the channel [02:03] phoenixz: maxogden: Will native node cluster also do worker restart and stuff like that? [02:03] avih has joined the channel [02:03] dabbor has joined the channel [02:04] maxogden: phoenixz: nope its way simpler, i was just sayin they probably do the same port sharing stuff (though i dont know for sure) [02:05] neoesque has joined the channel [02:06] ^robertj has joined the channel [02:08] rurufufuss has joined the channel [02:08] hexmare has joined the channel [02:08] redir has joined the channel [02:08] hexmare: ok so I have an uber noob question. my last git tag listed for node is v0.6.8, how do I tell git to sync and update the tag list [02:09] maxogden: hexmare: git pull [02:09] maxogden: hexmare: or git pull origin master if that doesnt work [02:09] hexmare: ACTION facepalms... yup noob question... thanks max [02:10] davehamptonusa has joined the channel [02:10] davehamptonusa has left the channel [02:11] ningu: scraping with jquery... not as easy as first meets the eye ;) [02:11] maxogden: hexmare: the only git commands i know are pull, clone, commit, add (-u and -p), remote add/rm and push [02:11] mmalecki: maxogden: stash and rebase ftw [02:11] mmalecki: maxogden: also, y u no merge? [02:11] maxogden: mmalecki: oh right. i use stash (just forgot it). i do pull --rebase [02:12] maxogden: pull is fetch + merge [02:12] kenperkins has joined the channel [02:14] samsonjs_ has joined the channel [02:15] diogogmt has joined the channel [02:16] phoenixz: maxogden: I would imagine, yes, since it looks way way more powerful.. [02:16] sreeix has joined the channel [02:16] khrome has joined the channel [02:17] zarex has joined the channel [02:17] maxogden: phoenixz: as spidermans grandpa or uncle or whoever said: "with great power comes great responsibility" [02:18] maxogden: or the node version: "with great complexity comes painful debugging" [02:18] criswell has joined the channel [02:18] hexmare: ACTION lols at max [02:19] bradleymeck has joined the channel [02:20] ramitos has joined the channel [02:22] Xtrivity has joined the channel [02:22] diogogmt has joined the channel [02:22] Xtrivity: Hey All, I have a pretty simple question for you all. I have a server currently running mysql and apache for my web app. For best performace on a large load with a site that gets 1000's of hits a month, should i have a seperate dedicated for nodejs/socket.io or is the load light enough to do it all on one server? Assuming there are constantly 5-10k users chatting at once [02:23] westg: anyone know why using block comments in jade gives me an unexpected token > error? [02:24] westg: you can run node alone with that many connections [02:24] sdwrage has joined the channel [02:24] westg: don't need apache [02:24] jakehow has joined the channel [02:24] Xtrivity: yes I know, but i already have an apache server. I am wondering if it'd be dumb to do all one one server [02:24] Xtrivity: or if I should just run a few servers for stability [02:25] jarek has joined the channel [02:25] westg: you mean load balancing across multiple servers running apache? [02:25] rwaldron has joined the channel [02:25] kbhit: depends on how important high availability is to you as well [02:26] Xtrivity: No i mean. I have an apache server. and i am planning on creating a nodejs server. Some people say just run both servers on the same box. I am thinking splitting for yeah, essentially load balancing. [02:26] boltR has joined the channel [02:27] Xtrivity: I dont want my server to crash due to load. lol, figured this would be an easy "run seperately" or "it doesn't matter run them both on one box" [02:27] Xtrivity: just wondering what best practices would be. [02:27] diogogmt has joined the channel [02:28] westg: well [02:28] westg: for 10k users chatting at once [02:28] westg: it probably wouldn't hurt to run both servers on one box [02:28] westg: but if you start exceeding that [02:28] westg: you might want to split them [02:29] westg: 10k isn't high enough to get another box though. assuming you have a 100/100 connection and more than enough memory on it [02:29] westg: at least [02:29] zeade has joined the channel [02:29] Xtrivity: well what's memory usage like? [02:29] westg: for node? [02:29] westg: depends [02:29] Xtrivity: yeah with that many sockets open [02:30] Xtrivity: I could always get another box later, but you ahve to take into consideration my app gets thousands of views a day as well. [02:30] Xtrivity: (web app) [02:30] westg: well I mean you're just running on one server right now right? [02:30] Xtrivity: at the moment, yes, but always plan for expansion. [02:31] westg: so by using node you would just, in effect, be separating the chatting/realtime tasks with socket.io to node instead of dealing with them with apache [02:31] kbhit: or is it a new app/net new workload? [02:31] mraleph has joined the channel [02:31] westg: so staying on the same box to share the work would actually free up a bit of the resources for you due to the event loop nature of node [02:32] westg: net workload = same -> stay on same box [02:32] diogogmt has joined the channel [02:32] kbhit: if anything, node should have much small footprint then apache then [02:32] westg: yea [02:32] westg: way more efficient [02:32] replore has joined the channel [02:32] replore_ has joined the channel [02:33] socketio\test\97 has joined the channel [02:33] westg: I'm surprised you're even using apache over nginx or something like that for 1000+ views and 10k people chatting at the same time [02:34] diogogmt has joined the channel [02:36] tmcw has joined the channel [02:36] SubStack: isaacs: nave doesn't work for me either [02:36] SubStack: give and nave both don't update my $PATH in their subshell [02:36] SubStack: on bash on linux [02:36] Xtrivity: westg, i use apache for my webapp. It's preferred over nginx [02:36] a_suenami has joined the channel [02:37] ryanfitz has joined the channel [02:37] gr4yscale has joined the channel [02:38] DuoSRX has joined the channel [02:39] looopy has joined the channel [02:39] AkhiAbdullah has joined the channel [02:39] vkandy_ has joined the channel [02:40] zemanel_ has joined the channel [02:40] AkhiAbdullah: Does anyone had a Expressjs problem when trying to load a Google Webfonts ? [02:40] diogogmt has joined the channel [02:40] maxogden: AkhiAbdullah: google webfonts get loaded from the client directly from the googles [02:41] AkhiAbdullah: well i am puting the in my .jade layout which generates an error.. [02:42] dodo has joined the channel [02:43] YoY has joined the channel [02:43] AkhiAbdullah: aw nevermind forgot the coma.. >.< [02:44] jaw187 has joined the channel [02:45] jaime has joined the channel [02:45] pandeiro has joined the channel [02:46] st_luke has joined the channel [02:47] ashishg has joined the channel [02:47] jaime: looking to fill the CTO position for an up and coming startup ASAP, equity involved, please PM me for details [02:48] sh1mmer_ has joined the channel [02:50] samsonjs has joined the channel [02:51] jerkelens has joined the channel [02:53] diogogmt has joined the channel [02:53] kenperkins has joined the channel [02:54] pradeebv has joined the channel [02:54] _th_n has joined the channel [02:55] rlidwka has joined the channel [02:56] kbhit: has anyone been successful in funneling regular ajax http requests (such as from jQuery.getScript) through websockets instead? [02:56] wookiehangover: kbhit: what do you mean? [02:56] ceej has joined the channel [02:57] warz has joined the channel [02:57] larsschenk has joined the channel [02:57] larsschenk has left the channel [02:57] kbhit: wookiehangover: essentially i want to do a client cross-domain getScript (or an equivalent call that loads JS coming from one of the node servers) [02:58] wookiehangover: kbhit: look at dnode [02:58] kbhit: best idea is to use node to pull the js locally.. and store it in some local storage, then load it [02:58] kbhit: ok thanks, i'll look at that [02:58] apcshields has joined the channel [02:58] wookiehangover: ya, dnode is what you want [02:59] diogogmt has joined the channel [03:00] wssr has joined the channel [03:00] kbhit: wow, async rpc.. very cool. a little overkill but might be fun to use anyways [03:02] pouledodue has joined the channel [03:02] pouledodue has left the channel [03:02] pouledodue has joined the channel [03:02] wookiehangover: kbhit: fwiw it's not really overkill if it solves what you need without adding a ton of shit you don't >_< [03:02] xaq has joined the channel [03:03] maxogden: better than sync rpc! [03:03] k1ttty has joined the channel [03:05] diogogmt has joined the channel [03:05] wookiehangover: maxogden: those are the worst, right? [03:05] teadict: who's using director? [03:05] kbhit: wookiehangover: if i mainly want to clone an object from the remote node that's mainly static, the object would transfer over the wire.. on the site trying to see if the node server has a caching mechanism for essentially static dnode objects [03:05] maxogden: tea me me me [03:05] isaacs: SubStack: does your .bashrc set PATH=blah explicitly? [03:05] teadict: maxogden: has it worked out well? [03:06] intripoon has joined the channel [03:06] maxogden: teadict: yeah i like it. im using it as a client side router in an ios app [03:06] teadict: maxogden: awesome, then I'll use it to do single-pages [03:06] maxogden: teadict: does what i expect most of the time. i also like blohowiaks router too [03:06] kevbook has joined the channel [03:06] maxogden: but blohowiaks router is more for server side [03:06] teadict: I don't know who or what that is [03:06] maxogden: its googleable [03:07] teadict: oh k, then no need [03:07] maxogden: sorta [03:07] maxogden: npm install routes i think [03:07] maxogden: ya [03:08] orlandovftw has joined the channel [03:09] kevbook: hi, I just started with node.js - express framework seems like the recommended choice -- but express tends to use node.js to serve images , css etc -- is this the right thing to do (ryan's presentation said node is bad for static content). I would rather use S3/CDN to serve that. Is there a sample app that does this i can learn from. [03:09] teadict: put nginx on the side [03:10] deluded: I am also thinking of using CloudFront / S3 CDN for static files [03:10] teadict: or cloudy stuff if online [03:10] teadict: yes [03:10] deluded: That would all be controlled by the URLs in the CSS, no? [03:11] deluded: and that initial CSS can be pulled from CloudFront, too [03:11] carlyle has joined the channel [03:11] diogogmt has joined the channel [03:11] deluded: so, it wouldn't / shouldn't hit node if I'm correct [03:11] teadict: client downloads html+css, client encounters uri, goes there and fetches [03:11] SubStack: isaacs: it does [03:11] kevbook: linkedin engeering blog says, even serve html (js) template from CDN - use underscore etc -- just serve json using node [03:11] isaacs: SubStack: ok, make that PATH=$PATH:my:stuff instead. [03:12] isaacs: SubStack: or just wait a few minutes. [03:12] isaacs: fixing this now. [03:12] teadict: you're not making a linked in network :P [03:12] jaw187: that [03:12] kevbook: just trying to learn with best practices [03:13] justicefries: best practices can be very complicated, convoluted, and entirely situational. [03:13] jaw187: drop a lot of money on a big SAN [03:13] mmalecki: isaacs: you're implementing this crazy bash rc loading stuff? [03:13] justicefries: learn what makes you learn best. [03:13] jaw187: nothing but SSD [03:13] deluded: how does the initial bootstrap of the HTML work when you hit the site for first time given node is pushing just JSON on the request? [03:13] mmalecki: isaacs: I kinda want it but it makes it work on bash only, so lame [03:14] kevbook: @deluded .. thats what i am unsure.. [03:14] kevbook: http://engineering.linkedin.com/nodejs/blazing-fast-nodejs-10-performance-tips-linkedin-mobile [03:14] justicefries: kevbook: read above what I said. [03:14] fairwinds: hi, anyone aware of a branching stream package. ie multiple writing with singe stream reading [03:14] fairwinds: s/ singe single [03:15] justicefries: kevbook: of course those are all good ideas, but they're also things that can get in the way of your learning. [03:15] gr4yscale has joined the channel [03:15] kevbook: @ justicefries - i just joined irc [03:15] justicefries: kevbook: there's a time and a place to learn how to scale the crap out of things, learning node.js isn't necessarily that time. [03:15] justicefries: kevbook: Ik now, I said some things to you [03:15] justicefries: best practices can be very complicated, convoluted, and entirely situational. [03:15] kevbook: ok, yea i can tend to premature optimize [03:15] isaacs: mmalecki: nave is written in bash. [03:15] justicefries: learn what makes you learn best. [03:16] isaacs: mmalecki: sh and ksh and zsh are off the reservation. [03:16] justicefries: you'll have tons of time to premature optimize [03:16] justicefries: get up and running first [03:16] kevbook: should i even use express? or just build a routing from scratch [03:16] maxogden: fairwinds: you want to pipe to the same readable stream twice? whats the use case? [03:16] justicefries: nah, express is a fine way to go. [03:16] kevbook: ok.. [03:16] teadict: you should recode node [03:16] justicefries: understanding how building it from scratch works is good, but you might as well get some feedback and wrap your mind around callbacks and how IO works. [03:16] teadict: from scratch [03:16] teadict: LOLOLOL [03:16] maxogden: fairwinds: cause the stream api isnt designed to logically support that [03:16] teadict: ACTION trolls [03:16] diogogmt has joined the channel [03:17] mmalecki: isaacs: oh well. I still have hope I'll make give work in zsh [03:17] Sahua_ has joined the channel [03:17] mmalecki: but zsh is kinda retarded when it comes to handling env vars [03:17] isaacs: mmalecki: i mean, it'll work in zsh, it just won't automagically get the right init file necessarily, if your zshrc sets the path explicitly [03:17] isaacs: mmalecki: seems fine enough to me [03:18] mmalecki: isaacs: no, it won't. when you launch `PATH=sth:$PATH zsh`, it'll append sth to the end of the PATH [03:18] mmalecki: it's kinda wicked [03:18] icewhite has joined the channel [03:18] mmalecki: I don't think you even need ':$PATH' there [03:18] Druid_ has joined the channel [03:19] mmalecki: and code for processing this shit is so wicked [03:19] slloyd has joined the channel [03:20] EhevuTov has joined the channel [03:20] fairwinds: maxogden: hi max, have large files to read and want to simultaneously transform to different outputs is one use case [03:20] themiddleman_itv has joined the channel [03:20] joshkehn has joined the channel [03:20] joshkehn has left the channel [03:20] mmalecki: isaacs: https://gist.github.com/f2479b451fd046755bf7 [03:21] maxogden: fairwinds: so x = read(largefile); x.pipe(resize); x.pipe(stdout); [03:22] mmalecki: when I find 10 hours to kill I'll simply write a js shell [03:22] teadict: who has 10 hours to kill?! [03:22] teadict: are you rick? [03:22] teadict: *rich [03:23] mmalecki: lol [03:23] maxogden: fairwinds: oh i misunderstood your original question, you can pipe a single readable to multiple writables [03:23] maxogden: fairwinds: though it gets sticky when errors occur [03:23] fairwinds: maxogden: ah k. that is what I am looking to do, thanks [03:24] maxogden: fairwinds: you just cant pipe twice to the same writable [03:24] maxogden: fairwinds: also make sure you do all your piping before process.nextTick [03:25] shanebo has joined the channel [03:25] isaacs: hm, apparently you can't set the rcfile explicitly with zsh [03:25] isaacs: oh well, no one really uses that anyway. [03:25] mmalecki: yeah, well, some hipster shit [03:25] fairwinds: maxogden: super, make things pretty easy [03:25] isaacs: mmalecki: you'll have the same problem in bash if you set your PATH explicitly [03:25] teadict: what? zsh, no [03:25] maxogden: fairwinds: e.g. when you create a readable stream you have to pipe it to all your destinations right away cause data will start coming in on the next tick [03:26] fairwinds: maxodgen: great, good to know [03:26] fairwinds: thx [03:26] mmalecki: isaacs: yeah, except that it's a bug in zsh :/ [03:26] brianleroux has joined the channel [03:27] markbao has joined the channel [03:28] sechrist_: anybody made an html comment/whitespace remover / compressor thing? [03:28] al3xnull has joined the channel [03:28] maxogden: sechrist_: i made the html module but all it does is pretty print [03:28] diva has joined the channel [03:29] maxogden: sechrist_: so you can do echo "crappy ugly html" | html and get a nice readable copy [03:29] dlg: sounds like tidy [03:29] lohkey has joined the channel [03:29] sechrist_: I'm afraid of just putting regexes in an EJS monkey patch, but eh [03:30] \mSg has joined the channel [03:31] diogogmt has joined the channel [03:33] kevbook: @ sechrist jade compresses html [03:34] mandric has joined the channel [03:34] sechrist_: yeah i'm using EJS though [03:35] kevbook: use/copy the compress function from jade [03:35] sechrist_: since jade is so drastically different it probably just doesn't append in whitespace while building [03:35] sechrist_: will look though, thanks [03:36] kevbook: ejs faster than jade?? [03:36] diogogmt has joined the channel [03:37] sechrist_: there's a view cache, so eh [03:37] kevbook: any other alternatives to jade or ejs? [03:37] mcav` has joined the channel [03:38] Aria: mustache, html... [03:38] insin: one or two... hundred [03:38] Aria: string concatenation [03:38] Aria: What insin said [03:38] insin: what do you like in a template engine? [03:38] insin: partials? inheritance? esoteric ok? html-like as possible? [03:39] davidbanham has joined the channel [03:39] insin: logic? no logic? [03:39] dshaw_ has joined the channel [03:39] sechrist_: Aria: can html5parser/jsdom parse then spit back out html from the parsed structure? [03:39] Aria: Yes. [03:39] Aria: There's a treewalker / serializer. [03:39] insin: or something you've used from elsewhere? bet there are ports :) [03:40] davidbanham: What are people using to parse XML in node? [03:42] Aria: libxml is one [03:42] copongcopong1 has joined the channel [03:43] voodootikigod has joined the channel [03:43] mikeal has joined the channel [03:43] Aria: (libxmljs, actually) [03:43] Aria: Depends on whether you want a DOM or data collection [03:43] dunder-mifflin has joined the channel [03:43] Aria: (SAX parsers scale better, but aren't so good for traversal) [03:44] davidbanham: Aria: https://github.com/ajaxorg/node-libxml ? That looks like what I'm after. [03:44] davidbanham: I'm not super worried about efficiency. I don't want it to be a pig or anything, but it's just a module to talk to someone's API. [03:45] malandro95 has joined the channel [03:45] diogogmt has joined the channel [03:45] Aria: davidbanham: http://github.com/polotek/libxmljs [03:45] isaacs: SubStack: ok, nave, 0.2.7 should work for you. [03:45] Aria: How big's the data from the API? Do you need it to be streaming, or can you wait for the whole document to parse? [03:47] SubStack: hooray! [03:47] davidbanham: Aria: I'll get some fairly large data when I call the API for reports on a large window of time, I suppose. I can't be certain until I get in and start calling it. [03:47] davidbanham: Aria: Definitely don't need it to stream, though. I'm happy to wait for the whole thing to parse before I can play with it. [03:47] Aria: Awesome. Simple. [03:48] m00p has joined the channel [03:48] davidbanham: I'll poke around libxmljs, looks like the go, thanks. [03:49] illourr has joined the channel [03:49] illourr: sup dudes [03:50] ryanfitz has joined the channel [03:50] kitt has joined the channel [03:51] diogogmt has joined the channel [03:51] pvankouteren has joined the channel [03:52] abraxas: I get the impression that making my C++ module an EventEmitter is a big no-no since node.js 0.5? So what's the alternative, I wonder... [03:53] blueadept has joined the channel [03:54] mjr_ has joined the channel [03:56] davidbanham: Okay, I suspect the problem is with the XML, not the parser. This - https://gist.github.com/1873536 - Just parses down to { errors: [] } in libxmljs [03:57] jocafa has joined the channel [03:57] isaacs has joined the channel [03:58] gavin_huang has joined the channel [03:58] skyler_brungardt has joined the channel [03:59] \mSg has joined the channel [04:00] AAA_awright: The C++ documentation is completely awful [04:00] AAA_awright: If you can even begin to call non-existant "awful" [04:03] jesusabdullah: ask isaacs he knows! [04:04] _baton_ has joined the channel [04:05] dekub has joined the channel [04:05] r04r has joined the channel [04:07] hij1nx has joined the channel [04:09] davidbanham: Nope, I just didn't understand the API well enough. [04:09] isao has joined the channel [04:10] diva has joined the channel [04:13] bhunt has joined the channel [04:13] zixiz has joined the channel [04:14] r04r has joined the channel [04:15] wssr has joined the channel [04:17] diogogmt has joined the channel [04:17] SubStack: abraxas: you can do the event-emitting part from javascript [04:17] SubStack: and just provide some hooks from c++ [04:18] subbyyy1 has joined the channel [04:18] abraxas: SubStack: great! do you know of a good example case? [04:18] joshthecoder has joined the channel [04:19] r04r has joined the channel [04:19] SubStack: I can't think of anything [04:20] isao has joined the channel [04:20] draginx has joined the channel [04:21] coderarity has joined the channel [04:22] davv3 has joined the channel [04:22] JKarsrud has joined the channel [04:22] saidinesh5 has joined the channel [04:22] thedjinn has joined the channel [04:22] DoNaLd` has joined the channel [04:22] atomicstack has joined the channel [04:22] jbpros has joined the channel [04:22] zenazn has joined the channel [04:23] pradeebv_ has joined the channel [04:23] r04r has joined the channel [04:24] xaq has joined the channel [04:25] munichlinux has joined the channel [04:27] rwaldron has joined the channel [04:27] diogogmt has joined the channel [04:28] westg: anyone here that can help me with a jade thing? [04:30] sriley has joined the channel [04:30] isao has left the channel [04:30] zemanel has joined the channel [04:32] zemanel has joined the channel [04:32] richardr has joined the channel [04:35] dabbor has joined the channel [04:36] ajsie has joined the channel [04:36] ajsie_ has joined the channel [04:38] kenperkins has joined the channel [04:39] torvalamo: wat dat ting be [04:39] ajsie has joined the channel [04:40] ajsie has joined the channel [04:42] ajsie has left the channel [04:43] dthompso991 has joined the channel [04:43] mikeal has joined the channel [04:44] nickdc has joined the channel [04:45] pradeebv_ has joined the channel [04:46] subhaze has joined the channel [04:46] rtyler has joined the channel [04:46] subhaze has joined the channel [04:46] rtyler: mikeal: I'm here to troll, where should I start ;) [04:46] ajsie_ has joined the channel [04:46] mikeal: hahah [04:47] rtyler: thanks to these jerks (http://amber-lang.net/) I might actually use node.js [04:47] r04r has joined the channel [04:47] r04r has joined the channel [04:47] wingie has joined the channel [04:48] mikeal: i heard that as "i can use node.js now that someone layered some crazy on top of it" :P [04:49] rtyler: SMALLTALK, DON'T YOU GET IT MAN [04:49] maxogden: i get it, you want to do tail call recursion on top of a language that doesnt support tail call recursion [04:49] rtyler: sure [04:50] justicefries: i think that's a modest thing to ask for [04:50] diogogmt has joined the channel [04:51] mikeal: honestly, i thought you'd go for the lisp-on-javascript thing :) [04:51] rtyler: never been a lisper [04:51] rtyler: ObjC, Ruby [04:51] rtyler: my love has always been in the smalltalky things [04:51] AkhiAbdullah: rtyler ewww :P [04:52] rtyler: AkhiAbdullah: to which part <_< [04:52] mikeal: javascript is about getting things done and not caring about it being the prettiest [04:52] rtyler: mikeal: I noticed >_> [04:52] rtyler: ACTION ducks [04:52] AkhiAbdullah: i dont mind ruby much.. but ObjC i just hate it [04:52] mikeal: but if you require it to be pretty in order to get over it then go ahead and deal with the compile step [04:52] AkhiAbdullah: i had to make a News Puller from a XML file and gawd i hated it so much [04:52] rtyler: I used to use ObjC back in the day, since 2.0 and the iPhone it's gotten "weird" [04:53] maxogden: dont you mean "mainstream"? [04:53] mikeal: maxogden loves Obj-C :P [04:53] r04r has joined the channel [04:53] AkhiAbdullah: his choice.. [04:53] rtyler: mikeal: let's pretty mde doesn't exist [04:53] rtyler: express or getty [04:53] maxogden: tako [04:53] rtyler: er, geddy [04:53] rtyler: whatever the crap it's called [04:53] jdparker has joined the channel [04:53] rtyler: ACTION looks into this http://stackoverflow.com/questions/5683916/node-js-express-vs-geddy#5683938 [04:54] mikeal: anything more than a month old about geddy is out of date [04:54] CrypticSwarm has joined the channel [04:54] mikeal: i don't know, i don't particularly like either of them [04:54] mikeal: but express has way more users and momentum [04:54] mikeal: and TJ is a machine [04:55] mikeal: i think that both projects think the job of a web framework is larger than it needs to be [04:55] mikeal: express seems to be scaling back [04:55] AkhiAbdullah: I found out that everything known has a language or a known framework.. is just like religion and politics :P [04:55] mikeal: well, node continues to make express not need to work around certain problems which lets it scale back, is what i should say [04:55] maxogden: rtyler: http://www.youtube.com/watch?v=_mR0tzt9XaM&t=0m50s [04:56] maxogden: mikeal: lol [04:56] mikeal: rtyler: this is how i feel about frameworks in node http://www.mikealrogers.com/posts/where-is-the-platform.html [04:56] mikeal: i wrote a little one [04:56] mikeal: don't use it, there are no docs [04:56] rtyler: damnit [04:56] mikeal: and no repo, max just published it to fuck with me [04:56] rtyler: don't make me read another one of your blog posts [04:56] rtyler: please, whatever you do [04:56] rtyler: don't make me [04:56] maxogden: cough npm install tako cough [04:57] mikeal: if you run in to an issues you can't log it because there is no repo yet [04:57] mikeal: :P [04:57] dunder-mifflin: is there any node modules to find out the clients of a certain function? i.e. where a function is called from [04:57] mikeal: serously tho, don't use it [04:57] maxogden: lol [04:57] mikeal: when it's ready it'll be on github [04:58] mikeal: rtyler: is it because the last time you read a blog post of mine you started writing node.js :P [04:58] sreeix has joined the channel [04:58] cha0s has joined the channel [04:58] r04r has joined the channel [04:59] rtyler: I'm not sure my brain is ready for this [05:00] dnolen has joined the channel [05:00] rtyler: the cognitive dissonance is overwhelming [05:00] maxogden: rtyler: what do you wanna do with the nodes [05:02] rtyler: somehow get mikeal to like me [05:02] maxogden: rtyler: oh thats easy just npm uninstall mongoose and npm install request. stuff like that [05:02] maxogden: rtyler: and post hatemail about apache [05:03] rtyler: oh right, I forgot [05:03] rtyler: COUCHDB SUXX LULZ [05:03] rtyler: also, oakland yay [05:03] r04r has joined the channel [05:04] maxogden: oh man if you live in oakland you gotta get in #nerdtracker [05:04] SubStack: TRUTH [05:04] SubStack: http://substack.net/images/oakjs.png [05:04] rtyler: is that like grindr for javascripters? [05:04] dekub has joined the channel [05:04] maxogden: exactly [05:04] rtyler: because I've fallen for this trick before [05:05] diogogmt has joined the channel [05:05] SubStack: maxogden: jesusabdullah planted your tree! [05:06] jesusabdullah: maxogden: and NO YOU CAN NOT HAVE IT BACK [05:07] hij1nx has joined the channel [05:08] r04r has joined the channel [05:09] niloy has joined the channel [05:10] diogogmt has joined the channel [05:12] copongcopong has joined the channel [05:13] r04r has joined the channel [05:13] rtyler: "Error: The "sys" module is now called "util"" [05:13] rtyler: one of the silliest reasons for an exception I think I've seen :P [05:14] jaw187: rtyler....pretty sure that isn't an exception.... [05:14] jaha has joined the channel [05:14] jaw187: just a warning message [05:14] thepatrick: rtyler/jaw187 it's an exception in 0.7+, the actual change happened in 0.3 it's time for modules to update surely. [05:16] looopy has joined the channel [05:16] jaha: what is the best way to transfer files across node.js servers, optionally using dnode [05:17] jaha: server to server [05:18] SubStack: jaha: what sort of files? [05:18] jaw187: thepatrick- was wondering when that would happen....i need stability in my life so I'm not running .7anything [05:18] r04r has joined the channel [05:19] mikeal has joined the channel [05:19] tylerstalder has joined the channel [05:19] jaha: SubStack, media files (video,images,possibly compressed directories) [05:21] jaha: up to maybe 15mb [05:21] SubStack: jaha: I would use http for that [05:21] SubStack: just PUT the files from server to server [05:21] SubStack: you can gzip them enroute too [05:23] r04r has joined the channel [05:23] r04r has joined the channel [05:24] jaha: yea that was my first thought, just havent looked much into node streaming and thought maybe it would be a better fit [05:24] jdeibele1 has joined the channel [05:24] jaha: btw, liking dnode a lot [05:25] dekub has joined the channel [05:26] rwaldron has joined the channel [05:27] jaha: SubStack, on anothr note, im usuing upnode client->server, can it be used in both directions to queue requests on either end [05:27] jacobolus has joined the channel [05:27] dunder-mifflin: what tool do you guys use to find out where a function is called from? [05:27] orlandovftw has joined the channel [05:27] dlg: grep? [05:28] mikeric has joined the channel [05:29] SubStack: jaha: upnode only works client->server [05:30] looopy has joined the channel [05:31] diogogmt has joined the channel [05:31] r04r has joined the channel [05:32] spcshpopr8r has joined the channel [05:32] fangel has joined the channel [05:32] ljharb: i've got a mongoose question nobody's answering in #mongoosejs - anyone able to answer it here? [05:33] spcshpopr8r: holy crap guys...what's the most dead simple way to send an email from node? [05:34] spcshpopr8r: https://github.com/marak/node_mailer seems to have top billing... [05:34] spcshpopr8r: ...but seems to be a thin veneer over https://github.com/andris9/Nodemailer [05:34] spion has joined the channel [05:35] looopy has joined the channel [05:36] sreeix has joined the channel [05:36] spcshpopr8r: ^ which seems to depend on https://github.com/tanepiper/node-simplesmtp ... which has a README that refers to maraks...whoa, a li'l recursion there...and a little plug for https://github.com/substack/node-pony [05:36] spcshpopr8r: c'mon [05:36] spcshpopr8r: please...help me make sense of this [05:37] r04r has joined the channel [05:37] r04r has joined the channel [05:38] mikeal: the easiest way is probably through an email provider with a REST interface [05:38] thepatrick: spcshpopr8r: I've used nodemailer (andris9's one) for all my node mailing needs. I had issues with node_mailer and attachments. [05:39] mikeal: http://apidocs.mailchimp.com/api/1.3/ [05:39] mikeal: that looks pretty dead simple [05:39] mikeal: the with request should be cake [05:39] mikeal: s/the/that [05:41] spcshpopr8r: mikeal: do you think you could drop me a snippet...a little gist? [05:41] dunder-mifflin: dlg: re grep.. i guess you can search for "foobar(" but would that guarantee a function call? i'm thinking more for refactoring, if i change a function signature, i need to identify and modify, and i'm trying to figure out the best way to do this. [05:42] r04r has joined the channel [05:42] dlg: in js? [05:42] spcshpopr8r: thepatrick: I was leaning toward nodemailer (andris's ...not to be confused with marak's with the subtle little underscore) [05:42] dlg: dunder-mifflin: maybe you want something like Coccinelle? [05:42] diogogmt has joined the channel [05:42] thepatrick: spcshpopr8r: nodemailer is fairly simple... http://pqg.be/0N112I153D2x2Z3S3x3E (it's coffee script because the work thing I ripped it out of is written with that) [05:43] spcshpopr8r: thepatrick: cheers [05:44] jhurliman: woo, audio fingerprinting server is done [05:45] jhurliman: now how do i write unit tests with node? [05:46] isaacs has joined the channel [05:47] r04r has joined the channel [05:47] thepatrick: jhurliman: vows seems popular, if BDD is your thing [05:47] davidbanham: jhurliman: Expresso, node-unit and vows are a few places to start. [05:47] jhurliman: thanks [05:48] diogogmt has joined the channel [05:49] norviller has joined the channel [05:50] _th_n has joined the channel [05:51] RobWC has joined the channel [05:51] RobWC has left the channel [05:52] ditesh|cassini has joined the channel [05:52] r04r has joined the channel [05:52] r04r has joined the channel [05:53] traph has joined the channel [05:55] Sahua has left the channel [05:56] traph1 has joined the channel [05:58] r04r has joined the channel [05:59] brainproxy: have a weird thing... if (after npm install -g mocha) I run mocha it works; but if I install locally w/ respect to my project and exec ./node_modules/mocha/bin/mocha it doesn't work [06:00] brainproxy: that is, it doesn't report an error, but it doesn't actually run the test suite, just exits back to the shell immediately [06:00] OmidRaha has joined the channel [06:00] brainproxy: to make it weirder, this is not the behavior I get in another project, but for the life of me I can't see any difference between the setups [06:03] Tatort79 has joined the channel [06:04] r04r has joined the channel [06:04] UptownBen has joined the channel [06:04] UptownBen: hey all [06:05] UptownBen: I just updated to node 0.6.11 which includes npm 1.1.1 [06:05] UptownBen: and I'm getting errors when I try to npm update -g [06:07] EhevuTov_mobile has joined the channel [06:07] UptownBen: Hmmm.. that's weird, first run of npm update -g gave errors, second run worked. [06:08] EhevuTov_mobile: Were they init functions [06:08] UptownBen: Boker tov, no [06:08] \mSg has joined the channel [06:08] r04r has joined the channel [06:08] EhevuTov_mobile: Laila tov here :-P [06:09] UptownBen: Hehe.. [06:10] UptownBen: no just said UNKNOWN ERROR [06:11] UptownBen: well, looks like it worked.. [06:11] joshkehn has joined the channel [06:11] UptownBen: I guess I'll try a few other things [06:12] UptownBen: Lehitraot (later) [06:12] cognominal has joined the channel [06:12] EhevuTov_mobile: Lehit [06:13] r04r has joined the channel [06:13] kirbysayshi has joined the channel [06:14] sdwrage has joined the channel [06:14] criswell has joined the channel [06:16] idefine has joined the channel [06:17] zomgbie has joined the channel [06:18] r04r has joined the channel [06:18] r04r has joined the channel [06:20] zalew has joined the channel [06:21] zalew has left the channel [06:21] symbionmedia has joined the channel [06:21] sechrist_: why oh why does installing rdocs for rubygems take 50x longer than installing the package itself [06:22] tonist has joined the channel [06:22] cha0s has joined the channel [06:22] cha0s has joined the channel [06:22] symbionmedia: I'm just starting with node - was the modile 'utils' renamed to 'util' ? [06:22] symbionmedia: i might be reading some older documentation [06:22] symbionmedia: i was reading Error: Cannot find module 'utils' [06:23] maxogden: sechrist_: you can tell it to skip that in your .gemrc :) [06:23] r04r has joined the channel [06:23] Wizek has joined the channel [06:23] davidbanham: So I'm writing a module that accesses someone else's API, it uses request. What should I do when there's an error in request? Should I throw an exception or just pass back "error" to my user's callback? [06:24] maxogden: davidbanham: can you elaborate on what 'my user's callback' means [06:24] sechrist_: holy crap at stracing the rdoc installing [06:25] davidbanham: maxogden: So my user calls daveAPI.call(somedata, function() { a handler }); [06:25] davidbanham: I go off and send that data to this external API with request. [06:25] davidbanham: Request gives me back an error. Network destination unreachable or something. [06:26] davidbanham: Throw an exception or callback({errMsg: "Network destination unreachable"}); [06:27] davidbanham: As a user of this thing, would you expect it to throw and possibly take down your process or would you want to look for an error object being present in every callback? [06:27] maxogden: davidbanham: a common pattern would be daveAPI.call(somedata, function(err, responseData) { if (err) { //let user decide } }) [06:27] maxogden: davidbanham: the latter, you basically bubble errors all the way up [06:27] maxogden: davidbanham: i was just confused over your usage of the term 'my user', i thought you were talking about something more complicated [06:27] davidbanham: maxogden: Cool. I'll run with that. [06:27] davidbanham: Ah yep, simple problem :) [06:28] r04r has joined the channel [06:28] davidbanham: Thanks! [06:29] maxogden: davidbanham: example code using that pattern https://github.com/maxogden/datacouch/blob/node_server/service/database_provisioner.js [06:31] harthur has joined the channel [06:31] davidbanham: maxogden: Thanks, that's helpful. I've used that pattern on the user side before, but never written it. [06:31] mikeal has joined the channel [06:33] r04r has joined the channel [06:33] r04r has joined the channel [06:34] symbionmedia: Hrmmm anyone know what this means: Error: Cannot find module 'utils' - from what im reading this is the correct syntax [06:35] davidbanham: symbionmedia: Are you sure you want "utils" and not "util" ? [06:36] symbionmedia: im not sure 8-) - just reading through the Orielly book - it actually sounds like i need to install the module [06:36] wookiehangover: node-http-proxy is prettymuch the best [06:36] wookiehangover: if any of the contributors are around [06:36] symbionmedia: nope that didnt work either [06:36] davidbanham: util is something that comes baked into node. utils could be a package name, but it would be a confusing choice. [06:36] davidbanham: symbionmedia: Can you post a gist of your code? [06:37] symbionmedia: http://ofps.oreilly.com/titles/9781449398583/chapter_6.html shows: var utils = require('utils'), EventEmitter = require('events').EventEmitter; [06:38] samuelgoodwin has joined the channel [06:38] spcshpopr8r: okay...nodemailer, and I'm just trying to shoot out an email via my vanilla gmail account...gettign "user and password not accepted". For crying out loue...is there an easy way? [06:38] r04r has joined the channel [06:38] nayger has joined the channel [06:38] mikeal has joined the channel [06:38] ryan1 has joined the channel [06:38] gr4yscale has joined the channel [06:39] davidbanham: symbionmedia: I think that's a typo. It really looks like they're talking about util [06:39] dtrejo has joined the channel [06:39] davidbanham: symbionmedia: They've gotten it right by the time they get to example 5.6 [06:39] wookiehangover: justicefries: ping [06:39] symbionmedia: davidbanham: lovely... i hope they caught that before they goto print 8-) [06:40] sechrist_: so with node-inspector not working with 0.6, is there any developer-friendly way to do a profile? [06:40] sechrist_: I'm cpu bound so I want to see why [06:40] davidbanham: symbionmedia: There are a couple comments about it, but they've been there since April :/ [06:40] diogogmt has joined the channel [06:40] davidbanham: symbionmedia: I haven't got an OFPS account that I know of, but if you're logged in you should point it out. [06:41] average_drifter has joined the channel [06:42] symbionmedia: davidbanham: i dont either [06:42] boltR has joined the channel [06:42] symbionmedia: davidbanham: thanks for your help [06:43] davidbanham: symbionmedia: No worries. Fingers crossed O'Reilly figure it out, too! [06:43] r04r has joined the channel [06:45] dshaw_ has joined the channel [06:47] simenbrekken has joined the channel [06:49] r04r has joined the channel [06:49] r04r has joined the channel [06:53] stagas has joined the channel [06:53] r04r has joined the channel [06:54] dwhittle has joined the channel [06:54] samuelgoodwin has joined the channel [06:56] SamuraiJack has joined the channel [06:57] pastak has joined the channel [06:58] fluk3 has joined the channel [07:02] aliem has joined the channel [07:02] r04r has joined the channel [07:02] sechrist_: how ridiculously inefficient is this? https://github.com/sechrist/ejs-shrink/blob/master/lib/index.js [07:04] margle has joined the channel [07:05] maxogden: sechrist_: shouldnt matter since templates are always small and you probably wont be doing that a million times a second [07:06] sechrist_: well I targeted ejs's parse because it gets cached [07:06] sechrist_: so I know [07:06] sechrist_: but I figure the trimming could be done by a regex, without the split [07:07] r04r has joined the channel [07:07] maxogden: you could require('underscore') and _.map(str.split("\n"), function(seg) { return _s.trim(seg)}) for cleaner code [07:07] sechrist_: oh good point [07:08] maxogden: i dont mind using modules when i get to re-use simple generic patterns that work everywhere [07:08] copongcopong has joined the channel [07:08] maxogden: e.g. http://nodeguide.com/style.html#equality-operator [07:08] tylerstalder has joined the channel [07:10] eddyb: do you know how I can emulate a terminal with node? [07:11] samuelgoodwin has joined the channel [07:11] eddyb: I want something like a SSH server, but without having to use the actual server and implement the protocol [07:12] r04r has joined the channel [07:12] r04r has joined the channel [07:13] eddyb: there's this contraption, but it relies on python: https://github.com/walling/JS-Term/blob/master/pty.js [07:14] disappearedng has joined the channel [07:14] tilgovi has joined the channel [07:15] madhums has joined the channel [07:15] sechrist_: wow cloud9 needs to block hitting back in the browser [07:16] richardr has joined the channel [07:17] r04r has joined the channel [07:17] kejun has joined the channel [07:18] tdegrunt has joined the channel [07:19] sigurding has joined the channel [07:19] nickdc has left the channel [07:21] QaDeS has joined the channel [07:22] r04r has joined the channel [07:23] pid1 has joined the channel [07:27] r04r has joined the channel [07:27] r04r has joined the channel [07:27] krankguy has joined the channel [07:28] samuelgoodwin has joined the channel [07:28] krankguy: Hey, I'm trying all the DerbyJS examples, but most of them don't work on my computer the way it does online [07:29] mikeal has joined the channel [07:30] davidbanham: krankguy: What are the specific errors you're running into? [07:31] r04r has joined the channel [07:32] krankguy: Let me get a fresh copy from master so I can give you the best take... Wasn't sure anyone would even be here to help [07:32] koxa has joined the channel [07:33] samuelgoodwin has joined the channel [07:34] davidbanham: krankguy: Never even heard of Derby, but there are plenty of people here that can recognise and diagnose node problems. Are you running it from github or npm? [07:34] koxa has joined the channel [07:34] krankguy: http://derbyjs.com/ https://github.com/codeparty/derby [07:34] krankguy: I downloaded from github, went to examples/chat [07:35] Yester_x2 has joined the channel [07:35] koxa has joined the channel [07:35] koxa has joined the channel [07:35] davidbanham: krankguy: Why not npm install -g derby ? That seems to be what they recommend here - http://derbyjs.com/#demos [07:35] davidbanham: It's quite possible the stuff in Master isn't stable. [07:36] koxa has joined the channel [07:36] krankguy: yes... there is definately some issues with the version... [07:36] r04r has joined the channel [07:36] koxa has joined the channel [07:36] krankguy: ... there were definately some API changes, anyway I guess I'll start with socket.io and express first [07:37] ph^ has joined the channel [07:37] krankguy: ... instead of starting with derbyjs [07:37] davidbanham: krankguy: Up to you. Express is pretty well documented. [07:38] dekub has joined the channel [07:39] gorillatron has joined the channel [07:39] TooTallNate has joined the channel [07:39] koxa has joined the channel [07:39] stonebranch has joined the channel [07:39] RobWC has joined the channel [07:39] pradeebv has joined the channel [07:41] koxa has joined the channel [07:42] r04r has joined the channel [07:42] r04r has joined the channel [07:42] gorillat1on has joined the channel [07:42] krankguy: Ok, I'm trying to run calipso, but i get this error: "Cannot find module 'mongoose'" [07:43] krankguy: Maybe I should try googling first :P, brb [07:44] davidbanham: Yep, that's an easy google. npm install mongoose. [07:45] blup has joined the channel [07:45] Morkel has joined the channel [07:46] ljharb: i have a mongoose question - i have a Group model, and a Membership model {type: Schema.ObjectId, ref: 'Group'}. I want a method or property on a Group instance that will give me an array of all the Membership objects that are attached. What's the best way to do this? [07:47] eddyb: why is there no ioctl in node.js :( ? [07:47] r04r has joined the channel [07:47] r04r has joined the channel [07:48] cjm has joined the channel [07:49] groom has joined the channel [07:50] SomeoneWeird: anyone know why i get 'Object # has no method 'getHeaders'' when its explicitly said it does https://github.com/mikeal/spider [07:50] SomeoneWeird: ? [07:51] mikeal: spider is having issues [07:51] mikeal: big changes came in jsdom and it hasn't been updated [07:51] SomeoneWeird: ahisee [07:51] SomeoneWeird: damn. [07:51] SomeoneWeird: cannot for the life of me dump headers for http servers [07:52] r04r has joined the channel [07:52] krankguy: davidbanham: runing "npm install mongoose" fails. Error: ENOENT, no such file or directory '/home/franklin/Work/calipso/test1/node_modules/mongoose/package.json' [07:52] r04r has joined the channel [07:52] Enoria has joined the channel [07:53] eddyb: damn [07:53] krankguy: I tried copying mongoose and mongodb from ~/.npm into the app's node_modules dir, no luck [07:53] eddyb: I need chmod and ioctl :( [07:53] oht has joined the channel [07:54] jiboumans_ has joined the channel [07:54] jetienne has joined the channel [07:54] davidbanham: krankguy: Sounds like you might have some weird things going on with your node installation. cd ~ && mkdir mongtest && mkdir mongtest/node_modules && cd mongtest && npm install mongoose and see what happens. [07:55] krankguy: davidbanham: it works [07:56] Hanspolo has joined the channel [07:56] Enoria has joined the channel [07:56] davidbanham: So there's nothing wrong with your installation, but it sounds like something may have gotten messed up in your project directory. [07:56] rendar has joined the channel [07:56] davidbanham: Are you just trying to get started with Express? [07:57] krankguy: Well that is Calipso... but yes I'm exploring the frameworks [07:57] r04r has joined the channel [07:57] r04r has joined the channel [07:58] caffine has joined the channel [07:58] davidbanham: krankguy: So you grabbed the calipso source from github, then ran npm install to grab all the dependencies? [07:58] krankguy: yes [07:58] davidbanham: But npm install didn't get mongoose? [07:58] davidbanham: What's the output of npm ls in your calipso directory? [07:59] pors has joined the channel [08:00] krankguy: davidbanham: http://pastebin.com/46vppmjS [08:00] meso has joined the channel [08:01] davidbanham: Hmm. [08:01] davidbanham: What's the output of npm install in that same dir? [08:01] josh-k has joined the channel [08:01] krankguy: I get this: npm ERR! Error: No compatible version found: express@'>=2.4.0- <2.5.0-' [08:02] r04r has joined the channel [08:02] krankguy: I did mess with the node_moduels dir, let me start clean and retest [08:03] tdegrunt has joined the channel [08:03] davidbanham: Probably a good idea. No idea what's going on there. [08:04] Qbix1 has joined the channel [08:04] mraleph has joined the channel [08:04] eddyb: it might work with node-ffi [08:05] pid1 has joined the channel [08:05] fangel has joined the channel [08:05] izepstan has joined the channel [08:06] pid1 has joined the channel [08:06] davidbanham: eddyb: Does fs.chmod not work for you? [08:07] tdegrunt_ has joined the channel [08:07] r04r has joined the channel [08:07] eddyb: davidbanham: that's not really the problem [08:07] r04r has joined the channel [08:07] eddyb: ioctl is [08:07] eddyb: but I'll try with libffi, seems easy enough [08:08] eddyb: wow, sqlite: https://github.com/rbranson/node-ffi/blob/master/example/sqlite.js [08:08] insin has joined the channel [08:08] edjafarov has joined the channel [08:08] skm has joined the channel [08:09] chezduck has joined the channel [08:09] slaskis has joined the channel [08:10] kickingvegas has left the channel [08:11] eddyb: davidbanham: http://book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch19lev1sec3.html scroll down to the linux example :) [08:12] r04r has joined the channel [08:12] krankguy: When i run ""sudo npm install"" it ends with this "" npm ERR! cb() never called! "", with nothing significant in between [08:12] davidbanham: krankguy: Why are you running npm install as sudo? [08:13] krankguy: because it errors out worse if i don't. I'll look for a fix [08:13] benjixx has joined the channel [08:13] krankguy: ... to not use sudo npm.... [08:13] McMAGIC--Copy has joined the channel [08:13] uchuff has joined the channel [08:13] ablomen has joined the channel [08:13] Qbix1 has joined the channel [08:14] davidbanham: eddyb: Sorry, no idea what I'm looking at there. [08:15] eddyb: I want to create a master/slave pseudo-terminal pair [08:16] mohiam has joined the channel [08:17] davidbanham: eddyb: Way outside my area of expertise, I'm afraid. Just to prod a thought, I'll say this: http://nodejs.org/docs/v0.6.11/api/repl.html#repl.start [08:17] davidbanham: And now I will go and cook dinner. [08:17] eddyb: davidbanham: lol no [08:17] thalll has joined the channel [08:17] richardr has joined the channel [08:18] r04r has joined the channel [08:18] r04r has joined the channel [08:18] eddyb: the master would be open in the node process, the slave is for the process I want to control [08:19] erikzaadi has joined the channel [08:20] hipsterslapfight has joined the channel [08:22] mikedeboer has joined the channel [08:23] r04r has joined the channel [08:25] rendar has joined the channel [08:25] jomoho has joined the channel [08:25] sgimeno has joined the channel [08:27] pleaz has joined the channel [08:28] r04r has joined the channel [08:30] cagdas has joined the channel [08:30] Druid_ has joined the channel [08:30] neshaug has joined the channel [08:30] cagdas: hi [08:30] [AD]Turbo has joined the channel [08:31] [AD]Turbo: hi all [08:31] SomeoneWeird: anyone know an easy way to dump http banners with node? tried opening sockets and use http.get but doesnt work :( [08:31] davidbanham: SomeoneWeird: Do you mean headers? [08:32] SomeoneWeird: yah, same thing [08:32] davidbanham: Not really. [08:32] SomeoneWeird: .. [08:32] davidbanham: Try Request - https://github.com/mikeal/request [08:32] krankguy: Header is the official term [08:32] wingie: SomeoneWeird: what do you mean dump headers? [08:32] wingie: you mean specify headers? [08:32] SomeoneWeird: no.. [08:32] wingie: or debug them [08:33] ohtogo has joined the channel [08:33] r04r has joined the channel [08:34] mjr_ has left the channel [08:34] lperrin has joined the channel [08:34] parshap has joined the channel [08:34] wingie: SomeoneWeird: if you mean debug them you can do that with 'nc -l ' [08:34] wingie: it will log all headers if you request again that port [08:35] johnhamelink has joined the channel [08:36] stonebranch has joined the channel [08:36] munichlinux has joined the channel [08:37] felixhummel has joined the channel [08:37] jkridner___ has joined the channel [08:38] pradeebv_ has joined the channel [08:38] xaq has joined the channel [08:38] r04r has joined the channel [08:39] `3rdEden has joined the channel [08:40] dve has joined the channel [08:40] pid1 has joined the channel [08:40] robhawkes has joined the channel [08:43] pors has left the channel [08:43] Blkt has joined the channel [08:43] samuelgo1dwin has joined the channel [08:43] simboyz has joined the channel [08:43] simboyz has left the channel [08:44] krankguy: Connect fails to install for Calipso via NPM: http://pastebin.com/Sa2kWWUq [08:44] munichlinux: pradeebv, y0! [08:45] Emmanuel` has joined the channel [08:46] Wizek-other has joined the channel [08:46] salva has joined the channel [08:47] parshap has joined the channel [08:48] hackband has joined the channel [08:48] Topcat has joined the channel [08:48] r04r has joined the channel [08:48] satyr has joined the channel [08:49] riven has joined the channel [08:49] riven has joined the channel [08:49] aaronmcadam has joined the channel [08:50] eddyb has joined the channel [08:51] tglines has joined the channel [08:52] huggies has joined the channel [08:54] r04r has joined the channel [08:56] bulatshakirzyano has joined the channel [08:56] dannyamey has joined the channel [08:57] c4milo has joined the channel [08:58] r04r has joined the channel [08:58] socketio\test\21 has joined the channel [08:58] dobber has joined the channel [09:00] socketio\test\98 has joined the channel [09:00] bitbit has joined the channel [09:00] illourr1 has joined the channel [09:01] jaikeerthi has joined the channel [09:02] shanebo has joined the channel [09:02] nayger: does anyone have a study of node vs other environments in power consumption? [09:03] r04r has joined the channel [09:04] Shrink has joined the channel [09:04] Shrink has joined the channel [09:04] herbySk has joined the channel [09:04] cagdas has left the channel [09:05] eddyb: can I create a read/write stream? [09:05] eddyb: something like a pipe, with a given path or fd [09:05] hipsterslapfight has joined the channel [09:08] r04r has joined the channel [09:08] lperrin: eddyb: fs.createReadStream ? [09:08] merlin83 has joined the channel [09:09] eddyb: lperrin: I want to read and write on that stream [09:09] lperrin: hmm perhaps you can create 2 streams then ? [09:09] svnlto has joined the channel [09:09] Skola has joined the channel [09:09] eddyb: would that work? [09:10] joshgillies has joined the channel [09:10] TomY_ has joined the channel [09:11] lperrin: that would depend on your use-case [09:11] eddyb: I want a pipe for a FD [09:12] maritz has joined the channel [09:12] cosmincx has joined the channel [09:12] infynyxx has joined the channel [09:12] eddyb: I also want to start a processor using a certain /dev/pts/X "file" for stdin/stdout/stderr [09:13] eddyb: err, process [09:13] r04r has joined the channel [09:13] lperrin: you'd have to try, but I think it would work [09:14] eddyb: ok, what about the process thing? [09:14] eddyb: the example I found uses fork() and dup2 to change the tty [09:15] lperrin: I don't think you can make those syscalls within node [09:15] lperrin: you can spawn a new process and get its stdin/stdout if that's what you want to do [09:16] eddyb: lperrin: libffi can let me do anything, but I'm not sure if it's safe [09:16] eddyb: no, I want to change its stdin/stdout, I don't want them to be pipes [09:16] ajackbot has joined the channel [09:17] hz has joined the channel [09:17] lperrin: can you explain again what you want to do with your fd ? [09:17] lperrin: not sure I understand [09:17] eddyb: I have a pair, a FD for the master and a path for the slave [09:17] eddyb: I want to make a pipe out of the master FD [09:18] r04r has joined the channel [09:18] eddyb: and I want to start a process using the slave's path for its stdio [09:19] mikeal has joined the channel [09:19] theCole has joined the channel [09:19] eddyb: this is the C version: http://book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch19lev1sec4.html [09:20] AD7six has joined the channel [09:20] tdegrunt has joined the channel [09:21] mikedeboer has joined the channel [09:21] eddyb: it forks, the child changes stdin/stdout/stderr to the slave pseudo-terminal, and it exec's the program it wants to [09:21] eddyb: bash, for example [09:21] jjido has joined the channel [09:22] lperrin: if you spawn the process and pipe its stdin/stdout to the streams you've opened for your fs, would that work ? [09:22] eddyb: no :) [09:22] eddyb: you don't see it yet :) [09:22] eddyb: ? [09:23] deeprogram has joined the channel [09:23] jjido: spawn? as in 'exec'? [09:23] eddyb: I need to run bash in a pseudo-terminal [09:23] eddyb: does that make sense? [09:23] deeprogram: hi ? [09:23] deeprogram: is there open source chat app that basic on socket.io ? [09:24] Skaag_ has joined the channel [09:24] jacobolus has joined the channel [09:25] Skola has joined the channel [09:26] lperrin: eddyb: the fork() call you have in node is not a real fork [09:26] adambeynon has joined the channel [09:26] r04r has joined the channel [09:26] i42n has joined the channel [09:27] lperrin: you might achieve what you want with ffi, but I'd doubt it'd be more convenient that doing it in C [09:27] eddyb: how can I spawn a process and change it's stdio? [09:27] eddyb: pfffft [09:28] eddyb: all I want is a socket.io-based terminal emulator [09:28] eddyb: bloody UNIX/POSIX/linux crap [09:28] tvw has joined the channel [09:28] jjido: eddyb: spawning a process is not what you normally do in node.js. [09:30] `3rdEden: eddyb like: https://github.com/chjj/tty.js ;o? [09:30] eddyb: ok, I'll use a helper [09:30] eddyb: `3rdEden: WHYYYY [09:30] eddyb: DAMMIT [09:30] paera1 has joined the channel [09:30] eddyb: FIX YOUR FUCKING INTERNET [09:30] eddyb: I searched half an hour for anything slightly related [09:30] eddyb: NADA [09:31] `3rdEden: ;D [09:32] r04r has joined the channel [09:33] jesusabdullah: eddyb: "all I want" eh? [09:34] jesusabdullah: eddyb: It's harder than it sounds. chjj only did that like a week or two ago [09:35] paera has joined the channel [09:35] pleaz has joined the channel [09:35] paera has left the channel [09:37] r04r has joined the channel [09:39] pradeebv has joined the channel [09:40] aslant has joined the channel [09:40] zalew has joined the channel [09:41] sandfox has joined the channel [09:42] r04r has joined the channel [09:43] misza222 has joined the channel [09:45] sandfox has joined the channel [09:46] lzskiss has joined the channel [09:46] eddyb: great, and he made it quite un-modular [09:46] eddyb: I can't really tap into the client side, I'll have to cut some stuff [09:46] hellp has joined the channel [09:47] r04r has joined the channel [09:47] r04r has joined the channel [09:49] vguerra has joined the channel [09:52] r04r has joined the channel [09:53] eldios has joined the channel [09:54] gerard0 has joined the channel [09:57] r04r has joined the channel [09:57] Joeysomo has joined the channel [09:59] Joeysomo has joined the channel [09:59] xiaoneng101 has joined the channel [10:00] TheFuzzb_ has joined the channel [10:01] Vespakoen has joined the channel [10:02] criswell has joined the channel [10:02] arduix has joined the channel [10:02] r04r has joined the channel [10:03] [[zzz]] has joined the channel [10:04] maritz: any node.js jobs in berlin you guys know about and can recommend to me? :) [10:04] jjido has joined the channel [10:04] kulor-uk has joined the channel [10:05] TomY_ has joined the channel [10:06] andrehjr_ has joined the channel [10:07] r04r has joined the channel [10:07] r04r has joined the channel [10:08] jetienne: maritz: maybe you could talk with berlinjs, i guess they get local info on this [10:08] cjm has joined the channel [10:12] r04r has joined the channel [10:13] ppcano has joined the channel [10:14] benvie has joined the channel [10:14] zomgbie has joined the channel [10:14] maritz: jetienne: thanks! :) [10:15] Vennril has joined the channel [10:15] kulor-uk has joined the channel [10:16] copongcopong has joined the channel [10:16] r04r has joined the channel [10:17] salim has joined the channel [10:18] salim: . [10:18] cha0s has joined the channel [10:18] cha0s has joined the channel [10:19] robm has joined the channel [10:19] salim has left the channel [10:20] Wizek has joined the channel [10:20] przemoc has joined the channel [10:21] jimmysparkle has joined the channel [10:21] r04r has joined the channel [10:21] r04r has joined the channel [10:21] __doc__ has joined the channel [10:21] c4milo has joined the channel [10:22] tisba has joined the channel [10:22] pouledodue has joined the channel [10:22] zalew has joined the channel [10:23] hipsterslapfight has joined the channel [10:23] eddyb: chjj: hey, I'm rewriting some of your code, so I can use it more like a module/extension than a complete app [10:23] benvie: mmmm [10:23] benvie: that stuff isn't exactly portable [10:23] benvie: I mean it's well coded, but domain specific [10:26] eddyb: benvie, chjj: https://gist.github.com/1875665 [10:26] eddyb: that would be the server part [10:26] Danielss89 has joined the channel [10:26] r04r has joined the channel [10:29] markwubben has joined the channel [10:29] mschneider has joined the channel [10:31] kwmiebach has joined the channel [10:31] tomasztomczyk has joined the channel [10:32] r04r has joined the channel [10:32] icebox has joined the channel [10:32] sechrist has joined the channel [10:32] objectiveous has joined the channel [10:33] Yoms has joined the channel [10:33] chjj: eddyb: hmm? [10:33] bingomanatee has joined the channel [10:34] Typo has joined the channel [10:34] robi42 has joined the channel [10:35] eddyb: I have a project that needs a terminal in the browser, and your solution is not very modular [10:35] ljharb has joined the channel [10:36] robhawkes has joined the channel [10:36] Nuck has joined the channel [10:36] r04r has joined the channel [10:36] r04r has joined the channel [10:36] samuelgoodwin has joined the channel [10:37] zomgbie has joined the channel [10:37] nuclearsandwich has joined the channel [10:37] dragon has joined the channel [10:37] chjj: eddyb: i think im going to move the pty stuff to a separate module and throw it in npm [10:37] chjj: so other people can use it [10:37] papertigers has joined the channel [10:37] chjj: eddyb: if thats what you were looking for [10:38] chjj: eddyb: if not, what were you looking for? [10:39] eddyb: I need the client-side part, too [10:39] chjj: i see [10:39] chjj: how modular do you need it? [10:39] eddyb: I'm playing with lib/tty.js and static/tty.js [10:39] shripadk has joined the channel [10:40] eddyb: I'll show you the result when I'm finished :) [10:40] shripadk: hello :) [10:40] larsschenk has joined the channel [10:41] larsschenk has left the channel [10:41] chjj: eddyb: alright [10:41] eddyb: oh, damn... [10:42] shripadk: child_process.exec won't work with paths that have spaces. ex: child_process.exec('/usr/local/bin/node /abs/path/to/directory/With Space/app.js', function() {}); <- how to tackle this?? [10:42] r04r has joined the channel [10:42] eddyb: shripadk: quotes [10:42] benvie: quote it inside the js quotes [10:42] DrPheltRight has joined the channel [10:42] benvie: child_process.exec('"/usr/local/bin/node /abs/path/to/directory/With Space/app.js"', function() {}); [10:42] shripadk: okay thanks :) :) [10:42] chjj: shripadk: i think exec just basically does a sh -c, so yeah, what benvie said [10:43] chjj: quotes or backslashes [10:43] chjj: you could also do "\\ " [10:43] benvie: yeah I think? this would work [10:43] chjj: to escape a space [10:43] benvie: child_process.exec('/usr/local/bin/node /abs/path/to/directory/With\\ Space/app.js', function() {}); [10:43] shripadk: awesome :) i'll give it a shot :) [10:43] benvie: does in Windows anyway [10:44] pleaz has joined the channel [10:44] benvie: win-doesn't-have-xterm256 [10:44] Nuck has joined the channel [10:44] benvie: win-doesn't-have-xterm256-dows [10:45] eddyb has joined the channel [10:45] pleaz has left the channel [10:45] eddyb: chjj: there's a problem. static/term.js uses the entire document [10:45] zalew has joined the channel [10:46] benvie: that could be more portable true [10:46] Nuck has joined the channel [10:46] r04r has joined the channel [10:47] robi42 has joined the channel [10:47] eddyb: if that's fixed, changing static/tty.js won't be hard [10:47] benvie: yeah I was thinking more about the underlying stuff [10:48] benvie: not the browser stuff [10:48] benvie: man it sure would be great if all interfaces were built for the browser :wistles: [10:49] criswell has joined the channel [10:51] niloy has joined the channel [10:51] r04r has joined the channel [10:52] eddyb: I'm writing YetAnotherUILibrary (I should be ashamed, shouldn't I?), and I thought a terminal would be a nice start :P [10:52] benvie: does the UI library work on the desktop? [10:52] d0k has joined the channel [10:52] c4milo has joined the channel [10:53] nayger: eddyb: i agree, a good terminal is fun! [10:53] benvie: ok so I just pulled the latest tty.js [10:53] eddyb: benvie: it's all in the browser [10:53] benvie: i THINK this might get you want you want but guessing [10:53] benvie: static/tty.js [10:53] eddyb: that's what I'm editing right now [10:53] benvie: line 27 root = doc.documentElement [10:53] benvie: set that to some parent element [10:54] eddyb: benvie: nope, open static/term.js [10:54] benvie: ah ok so it's going to require changing all this stuff that calculates relative to the document [10:54] benvie: wait [10:54] benvie: yeah [10:54] TimTimTim has joined the channel [10:55] benvie: self.element.clientWidth is like a weird not going to work halfway ppint [10:55] benvie: I guess it'd work for an iframe [10:55] eddyb: pffft... [10:55] benvie: maybe not even then, do iframe have clientWidth/height? [10:56] eddyb: they have their window's [10:56] benvie: but yeah it's going to be a bit of manual labor I guess to just swap out any references based on window specific measurements [10:56] r04r has joined the channel [10:56] r04r has joined the channel [10:56] benvie: and then you can add a couple extra properties to the terminal like [10:56] chjj: eddyb: what do you mean it uses the whole document? [10:57] TheFuzzball has joined the channel [10:57] benvie: Object.defineProperty(Term.prototype, 'width', { get: function(){ return this.width || window.clientWidth } }) [10:57] eddyb: chjj: instead of being it's own element, it just uses the entire page [10:57] eddyb: s/being/having/ [10:58] chjj: eddyb: thats what tty.js is there for, if you notice, term.js doesnt make any assumptions about the page, tty.js has to hook into everything [10:58] chjj: i specifically designed it that way [10:58] Glenjamin has joined the channel [10:58] benvie: Object.defineProperty(Term.prototype, 'width', { get: function(){ return this.hasOwnProperty('_width') ? this._width || window.clientWidth } }) [10:58] TheFuzzb_ has joined the channel [10:59] TheFuzzball has joined the channel [10:59] samuelgoodwin has joined the channel [10:59] TheFuzzb_ has joined the channel [10:59] benvie: I think he's referring to a higher level interface. Which you provide in the repo but is also primitive in that it's doing the minimum required [10:59] chjj: eddyb: although youre right, ive considered moving a lot of the stuff in tty.js to term.js [10:59] benvie: just load the thing up into the whole window, basically demo level [10:59] chjj: eddyb: like the wrapper and the window behavior, etc [11:00] skylamer` has joined the channel [11:00] robi42 has joined the channel [11:00] eddyb: tty.js doesn't change the fact that term.js is operating on document, document.body, document.element [11:01] robi42 has joined the channel [11:01] benvie: well it's a large problem area that he's solving in one project [11:01] xbayrockx has joined the channel [11:01] r04r has joined the channel [11:01] r04r has joined the channel [11:02] eddyb: yeah, and I'd be glad to help [11:02] benvie: three projects in one really. The one he mentioned breaking off is the pty stuff, then the readline interface combined with the ansi interpreter, and finally a terminal application built on top [11:02] larsschenk1 has joined the channel [11:02] xbayrockx has joined the channel [11:02] eddyb: chjj: you want me to fix static/tty.js ? [11:03] robi42 has joined the channel [11:03] xbayrockx has joined the channel [11:04] xbayrockx has joined the channel [11:04] chjj: eddyb: im confused, you want term.js to be completely divorced from the dom? or you want it to be possible to specify a context? [11:05] eddyb: I'd want to specify a context, or even have the Terminal constructor to make it's own container, like a
[11:05] eddyb: it would also be nice to use jquery, instead of all that bare-bone DOM [11:06] chjj: eddyb: certain things like the key events and mouse events are going to have to bind to the document, or a document in order to work properly [11:06] eddyb: that doesn't sound good... [11:06] chjj: eddyb: i would consider adding a dom lib to the tty.js part, not the term.js part [11:07] chjj: eddyb: it doesnt sound good, but thats the way it works [11:07] r04r has joined the channel [11:07] eddyb: term.js does a lot of DOM stuff jquery can cleanly replace, btw [11:07] hz has joined the channel [11:07] eddyb: and maybe those key and mouse events can be hooked on focus and unhooked on defocus [11:08] chjj: eddyb: thats kind of how it works [11:08] chjj: eddyb: they have to bind mouseup and mousemove to the document to work properly [11:09] dekub has left the channel [11:11] eddyb: so, why don't you want jquery? [11:12] chjj: eddyb: i dont want it in term.js because term.js is a separate module. i dont use dom libraries for libraries themselves. [11:12] r04r has joined the channel [11:12] chjj: eddyb: in the same way youll notice socket.io doesnt use a dom library, despite interacting with the dom a lot [11:12] robi42 has joined the channel [11:12] eddyb: oh, it's forked from jslinux [11:13] chjj: eddyb: yes [11:13] chjj: i used the jslinux vt100 as the base, rewrote and refactored it, then added the major xterm csi codes it was missing [11:14] chjj: in the process of finishing up compatibility and implementing the lesser used ones [11:14] eddyb: ok, so just adding some context would be enough, I guess [11:15] chjj: yeah, i wouldnt be opposed to that at all [11:15] larsschenk1 has left the channel [11:16] Nuck has left the channel [11:16] r04r has joined the channel [11:17] maritz: arg, my app leaks memory on simple REST calls. :( [11:17] chjj: eddyb: honestly, looking at it now, theres probably not much left of the original jslinux vt100 except a few csi codes and the basic design of the rendering engine, but it did help me get started, and fabrice bellard was nice enough to give me permission to use it. [11:17] thalll has joined the channel [11:18] chjj: the way character attributes are handled is also the same way jslinux originally handled them [11:18] chjj: packing everything into bits! [11:18] maritz: oh wait, i just triggered gc somehow... :D [11:18] eddyb: chjj: oh, not sure if you noticed, in my version, the client-side passes a callback when creating a terminal, and the server-side uses that callback to send an id back [11:19] eddyb: I know it's hard to get a mismatch between the client and the server's IDs [11:19] eddyb: but this way, all the IDs are computed on the server [11:20] ts___ has joined the channel [11:21] eddyb: chjj: there isn't much to change, it's already creating its own element [11:21] eddyb: https://github.com/chjj/tty.js/blob/master/static/term.js#L174 [11:21] chjj: eddyb: that sounds like a good idea. it is possible to get a ismatch if the client was doing something really funky. [11:21] chjj: mismatch* [11:21] r04r has joined the channel [11:21] eddyb: https://github.com/chjj/tty.js/blob/master/static/term.js#L143 [11:22] robi42 has joined the channel [11:22] aranw has joined the channel [11:23] robi42 has joined the channel [11:23] chjj: eddyb: the document.body.appendChild should be moved out, the key events and focus handling i think should stay [11:24] eddyb: yepp. it's not that bad as I thought [11:24] lperrin has joined the channel [11:25] Tolchi has joined the channel [11:26] rickibalboa has joined the channel [11:27] eddyb: chjj: https://github.com/chjj/tty.js/blob/master/static/tty.js#L152 why's that? [11:28] dpino has joined the channel [11:28] saghul has joined the channel [11:28] chjj: eddyb: whys what? [11:29] chjj: eddyb: you close a terminal by clicking the grip with any modifier held down [11:29] eddyb: is that a testing feature? [11:29] chjj: eddyb: no, i think its a regular feature [11:29] chjj: :) [11:30] chjj: eddyb: why is it so strange to you? [11:30] gentlex has joined the channel [11:30] robi42 has joined the channel [11:30] r04r has joined the channel [11:31] kulor-uk has joined the channel [11:31] chjj: eddyb: i want to always keep a way to forcefully close a terminal [11:32] robm has joined the channel [11:33] TimTimTim has joined the channel [11:33] ricedog has joined the channel [11:34] Cromulent has joined the channel [11:35] r04r has joined the channel [11:35] eddyb: ctrl+shift+w [11:35] chjj: hm? [11:35] eddyb: at least I know I don't need to keep everything in tty.js [11:35] eddyb: chjj: never used konsole? [11:35] E-Hamster has joined the channel [11:36] chjj: eddyb: konsole isnt a very good terminal emulator, i try not to [11:36] chjj: eddyb: i drift between xterm and urxvt [11:36] chjj: eddyb: also, ctrl+shift+w would be impossible to bind to in chrome [11:36] chjj: chrome cant bind to ctrl+n/w/t [11:37] shedinja has joined the channel [11:37] chjj: because...well, i guess there is no good reason, but chrome insists on it [11:37] E-Hamster: I'm looking for free hosting supporting node.js, websockets and mongodb. Anything out there like that? [11:37] eddyb: there is a very good reason [11:38] eddyb: but aren't the shift versions bind-able? [11:38] E-Hamster: nevermind, just found this: https://github.com/joyent/node/wiki/Node-Hosting [11:38] eddyb: ctrl+shift+w doesn't mean anything in chrome [11:38] eddyb: oh, no [11:38] eddyb: it does. it closes the entire window [11:38] eddyb: I had to try it :( [11:38] chjj: eddyb: =/ [11:39] chjj: anyway, whats the good reason? [11:39] simenbrekken has joined the channel [11:39] chjj: consistent user experience? thats the only argument ive heard in favor of it [11:39] eddyb: faking browser actions [11:39] eddyb: or disabling them [11:40] munichlinux has joined the channel [11:40] eddyb: those are the reasons behind some full-screen restrictions [11:40] r04r has joined the channel [11:40] chjj: eddyb: they didnt have to give those hotkeys special meaning in the first place though [11:41] cha0s has joined the channel [11:41] cha0s has joined the channel [11:41] chjj: eddyb: anyway, how would you fake a tab or window closing in a malicious manner? [11:42] eddyb: I'm not a phishing expert, couldn't tell you how [11:42] danielss89_ has joined the channel [11:42] chjj: eddyb: but you just said there was a good reason for it. how are you able to tell me theres a good reason for it, but not tell me how? [11:42] chjj: if you cant tell me how, you cant tell me its a good reason [11:43] insin: window.close({reason: 'spite'}) [11:43] robi42 has joined the channel [11:43] eddyb: I guess the full-screen stuff stuck with me as being "a good reason" [11:43] chjj: because i dont think thats why chrome does it. i think they do it just so users get consistent hotkeys. [11:43] bnoordhuis has joined the channel [11:44] chjj: which kind of sucks for anyone who needs to bind ^N, ^W, or ^T for their app [11:44] eddyb: that would be a bit BS-y [11:44] robi42 has joined the channel [11:45] r04r has joined the channel [11:45] chjj: anyway, i cant even remember how we got on that topic [11:45] chjj: but yeah, its really annoying using vim in chrome, you cant ^N for completion, you have to ^P instead [11:45] chjj: which works the same if you configure it the other way [11:46] chjj: but you have to get used to a new key [11:50] dpino has joined the channel [11:50] r04r has joined the channel [11:50] samuelgo1dwin has joined the channel [11:52] benvie: full screen is because of video [11:52] benvie: and gaming [11:52] benvie: that's all [11:52] benvie: and because windows 8 metro has it [11:53] benvie: and because it's required on mobile [11:53] benvie: -fin- [11:54] benvie: also good luck binding alt+f4 on windows [11:54] enmand has joined the channel [11:55] benvie: or anything using the super conveniently placed windows key, for that matter [11:55] r04r has joined the channel [11:55] benvie: keybinds are a clusterfuck for the ages [11:56] chjj: benvie: alt+f4 is a different story [11:56] chjj: benvie: the window manager gets that no questions asked [11:56] benvie: when our grandparents are growing old from spacealiencancer in the year 35083 they will be lamenting issues with their keybinds [11:56] chjj: benvie: its the same case with any window manager. those keys arent going to be passed to the browser. [11:56] benvie: yeah no I mean [11:56] benvie: even if you're taping in at the app level [11:57] benvie: it's an issue [11:57] benvie: you have to be hooking shit at the kernal level even [11:57] margle has joined the channel [11:58] odinswand has joined the channel [11:58] robi42 has joined the channel [11:59] benvie: I know because I have a program that allows me to make windows key keybinds, and it requires root/admin level access to even use it, and it has a 6 page disclaimer [11:59] r04r has joined the channel [12:00] benvie: and it killed my dog =( [12:00] zomg: benvie: windows supports doing global keyboard hooks [12:00] benvie: windows key, alt+f4 [12:00] zomg: iirc there was a function for that in one of the windows apis [12:00] benvie: prebound windows keys? [12:00] samuelgoodwin has joined the channel [12:01] benvie: like by explorer [12:01] Shrink has joined the channel [12:01] xbayrockx1 has joined the channel [12:01] eddyb: http://stackoverflow.com/questions/209029/best-way-to-remove-an-event-handler-in-jquery [12:01] deeprogram has joined the channel [12:02] deeprogram has left the channel [12:02] benvie: I would love to free up those and provide them to users as the meta key or something [12:02] benvie: libuv has a pretty limited translation set as it is for windows -> ansi [12:03] benvie: but I'd be up for something better [12:04] r04r has joined the channel [12:05] niklasfi has joined the channel [12:09] ningu has joined the channel [12:09] r04r has joined the channel [12:12] Rob__ has joined the channel [12:12] robi42 has joined the channel [12:13] umren has joined the channel [12:13] robi42 has joined the channel [12:13] jyp has joined the channel [12:14] r04r has joined the channel [12:14] r04r has joined the channel [12:16] shinuza has joined the channel [12:18] Skyjoker has joined the channel [12:18] criswell has joined the channel [12:19] r04r has joined the channel [12:21] erikzaadi has joined the channel [12:21] c0smikdebris has joined the channel [12:22] micheil has joined the channel [12:23] micheil has left the channel [12:23] r04r has joined the channel [12:23] robhawkes has joined the channel [12:24] robi42 has joined the channel [12:25] robi42 has joined the channel [12:26] take_cheeze has joined the channel [12:26] robi42 has joined the channel [12:27] zalew has left the channel [12:28] kevbook has joined the channel [12:28] eddyb: chjj: I got something: https://gist.github.com/1876239 [12:28] r04r has joined the channel [12:29] enmand has joined the channel [12:29] herbySk has joined the channel [12:31] pradeebv has joined the channel [12:32] robi42 has joined the channel [12:32] eddyb: actually, a few things are wrong, but they're on my side (like wUI - it's actually $ui) [12:33] CIA-102: libuv: 03Ben Noordhuis 07master * re504719 10/ src/unix/linux.c : [12:33] CIA-102: libuv: linux: fix signedness issue in uv_exepath() [12:33] CIA-102: libuv: readlink() returns -1 on error. The <= 0 check failed to catch that because the [12:33] CIA-102: libuv: return value was implicitly cast to size_t, which is unsigned. - http://git.io/D2Q6Sg [12:33] r04r has joined the channel [12:35] joshfinnie has joined the channel [12:38] r04r has joined the channel [12:39] eddyb: YES [12:39] eddyb: chjj: I think I got it working [12:41] QaDeS: does anyone know what's up0 with riak-js? seems to have been stalling for 3 months now. is there an alternative to access a riak store? [12:42] robi42 has joined the channel [12:42] r04r has joined the channel [12:43] josh-k has joined the channel [12:46] eddyb: OMG [12:46] eddyb: chjj: it's actually working [12:46] eddyb: I had a few typos, but now I can see a nice console :) [12:46] chjj: eddyb: whats working? [12:47] tokumine has joined the channel [12:47] _th_n has joined the channel [12:47] eddyb: the terminal thing :) [12:47] chjj: eddyb: what did you change? [12:49] eddyb: chjj: https://gist.github.com/1876363 [12:49] robi42 has joined the channel [12:49] samuelgoodwin has joined the channel [12:50] eddyb: I'd give you the URL, but I have no protection and you would have free control over my laptop [12:50] whaley has joined the channel [12:51] RLa has joined the channel [12:51] chjj: eddyb: ah, you jquery'd it [12:51] eddyb: chjj: you might also want to disable the blinking or make it easy to disable [12:51] jxie has joined the channel [12:52] chjj: eddyb: cursor blinking? [12:52] chjj: eddyb: you can disable it [12:52] kevbook has joined the channel [12:52] oal has joined the channel [12:52] chjj: set cursorBlink to false in your config [12:53] booyaa: man there are days when i hate this job, then there are days like this where shit just works [12:53] booyaa: ftw [12:53] oal: How would I set up a schema with multi dimensional arrays with Mongoose? Like this http://hastebin.com/kiyalosoya.apache [12:54] booyaa: gah blocked at work [12:54] booyaa: gist? [12:54] louissmit has joined the channel [12:54] eddyb: chjj: I don't have more than what you see in that gist :) [12:54] aaronmcadam has joined the channel [12:54] eddyb: there's no config system, and I have no idea how that config change affects the client [12:56] robi42 has joined the channel [12:56] chjj: well you can change it on the clientside by doing Terminal.cursorBlink = false; [12:57] vguerra_ has joined the channel [12:57] robi42 has joined the channel [12:57] ryanfitz has joined the channel [12:59] fairwinds has joined the channel [12:59] EvRide has joined the channel [12:59] vguerra_ has joined the channel [13:00] aslant has joined the channel [13:00] skylamer` has joined the channel [13:01] eddyb: chjj: this is the fully working setup: https://gist.github.com/1876363 [13:01] eddyb: I think I can spawn two terminals without problems [13:02] Wizek has joined the channel [13:03] mmalecki: chjj: hey, are you planning to extract tty module btw? [13:03] robi42 has joined the channel [13:04] stonebranch has joined the channel [13:05] chjj: eddyb: cool [13:05] chjj: mmalecki: the pty stuff? [13:05] ningu: hrm... there is no way to do lookbehind in regex matches, is there? [13:05] chjj: ningu: nope, welcome to javascript by the way ;) [13:05] ningu: haha [13:05] ningu: thanks [13:06] mmalecki: chjj: yeah [13:06] chjj: ningu: theres no lookbehinds or posessive quantifiers, or conditionals, or recursive patterns [13:06] chjj: ningu: its a really vanilla regex flavor [13:07] chjj: mmalecki: yeah, ill do that today [13:07] mmalecki: chjj: <3 <3 <3 [13:07] chjj: <3 [13:07] brianseeders has joined the channel [13:09] jyp has joined the channel [13:09] eddyb: I had to add that z-index code back to get focus switching to work [13:09] Wizek has joined the channel [13:10] erichynds has joined the channel [13:11] samuelgoodwin has joined the channel [13:12] fermion has joined the channel [13:12] sigurding has joined the channel [13:13] rwaldron has joined the channel [13:13] sdwrage has joined the channel [13:13] CIA-102: node: 03Tomasz Buchert 07master * rc6a04ce 10/ (5 files in 4 dirs): [13:13] CIA-102: node: crypto: add function getDiffieHellman() [13:13] CIA-102: node: Returns a well known, predefined RFC group. - http://git.io/Mp6RqQ [13:15] RLa: chjj, ningu, i had similar problem some time ago, maybe should use some external regex lib? [13:16] chjj: RLa: hmm? i dont have a problem with it. there are always ways around it. its just annoying. [13:17] RLa: i think for me it was multiple lines of code, which is not so nice always [13:18] mschneider has joined the channel [13:18] LifeIsHealthy has joined the channel [13:18] sigurding has joined the channel [13:20] samuelgo1dwin has joined the channel [13:20] sandfox_ has joined the channel [13:21] pleaz_ has joined the channel [13:21] LBRapid has joined the channel [13:22] sandfox has joined the channel [13:22] sandfox has joined the channel [13:24] criswell has joined the channel [13:24] redir has joined the channel [13:24] hotchkiss has joined the channel [13:24] niloy: how to check if a object({}) is empty or not? [13:25] eeemsi_: http://trac.webkit.org/changeset/108309 [13:26] Industrial: niloy: http://lmgtfy.com/?q=javascript+test+for+empty+object [13:26] eddyb: niloy: Object.keys(obj).length == 0 [13:27] eddyb: niloy: or http://stackoverflow.com/a/679937 [13:27] niloy: thanks buddies [13:30] crutex has joined the channel [13:30] crutex has joined the channel [13:33] Edy has joined the channel [13:35] dubenstein has joined the channel [13:35] subbyyy has joined the channel [13:35] apoc has joined the channel [13:38] c4milo has joined the channel [13:41] sharkbird has joined the channel [13:43] redir_ has joined the channel [13:48] vkareh has joined the channel [13:48] cam|work has joined the channel [13:49] briancray has joined the channel [13:49] webguynow has joined the channel [13:51] LifeIsHealthy_ has joined the channel [13:53] skylamer`: why regexp to string dont working in Node.JS? [13:54] skylamer`: .. console.log(a) [13:54] catb0t: Exception: ReferenceError: console is not defined [13:54] skylamer`: .. "xxb5".replace('5', ""); [13:54] catb0t: "xxb" [13:55] skylamer`: .. "xxb523423".replace('/(\d)', ""); [13:55] catb0t: "xxb523423" [13:55] skylamer`: .. "xxb523423".replace('/\d/', ""); [13:55] catb0t: "xxb523423" [13:56] stride: .. "xxb523423".replace(/\d/g, ""); [13:56] catb0t: "xxb" [13:56] skylamer`: so the question answered, ty [13:56] jaw187 has joined the channel [13:56] stride: np [13:56] AaronMT has joined the channel [13:56] postwait has joined the channel [13:57] tommyvyo has joined the channel [13:57] bard has joined the channel [13:58] aslanted has joined the channel [14:00] bard: i put a function inside net.createServer(function (socket) {} that i only want to be called when the client sends data but it keeps getting called every few seconds [14:00] bard: what can i do about that? [14:00] bard: http://pastebin.com/xve3KAVg [14:00] bard: the function is called nodeio.start() [14:01] whaley has joined the channel [14:01] jaw187: morning noders [14:02] killfill has joined the channel [14:03] stef_ has joined the channel [14:03] bard: jaw187 do you know why net.createServer(function (socket) {} keeps calling a function i put inside it? [14:03] trakowski77 has joined the channel [14:03] trakowski77: Hi ! [14:04] trakowski77: anyone experienced with node.js and mysql ? [14:04] xSmurf has joined the channel [14:04] Poetro has joined the channel [14:06] jaw187: bard: createServer takes two arguments [14:06] jaw187: and options object and a listener function [14:07] jaw187: http://nodejs.org/docs/latest/api/net.html#net.createServer [14:07] bard: http://pastebin.com/xve3KAVg the server works fine but i only nodeio.start() to be called when the client sends data [14:07] trakowski77: I'm trying to understand which MySQL driver should I use to connect to MySQL [14:07] bard: thats why there is an if statement there to check [14:07] trakowski77: I'm looking at: [14:07] trakowski77: https://github.com/joyent/node/wiki/modules#wiki-db-mysql [14:08] tisba has joined the channel [14:08] bard: but what should i check for? [14:08] trakowski77: and I'm not sure what's going on there. [14:08] jaw187: bard: you should be calling nodeio.start() inside a callback run when the data event is emitted by the socket [14:08] bard: jaw187, does createserver take a callback perimeter? [14:09] bard: parameter* [14:09] eddyb: bard: that callback is for when a client connects [14:09] pickels has joined the channel [14:09] dthompso99 has joined the channel [14:09] jaw187: bard: http://pastebin.com/Rg3Pi2K9 [14:09] pickels: What a good javascript library to work with currency/decimal? I need to do some math with monies. [14:10] bard: what is inside data? [14:10] LBRapid has joined the channel [14:11] Jalava: work with javascript number and be extra careful :P [14:11] Industrial: Jalava: what are the practical implications of 'careful' ? [14:11] bard: oh [14:11] Jalava: i've noticed that provided you remember to round manually to correct limit, i believe you can do accurate fixed decimal point math [14:12] lazyshot has joined the channel [14:13] Jalava: hmm, Math.round(value*100)/100 on store [14:13] piscisaureus_ has joined the channel [14:14] Jalava: division and multiplication does introduce error but you just have to account for it and remember to round back to wanted resolution [14:14] Jalava: though, this is where usually someone who actually does stuff with real moneys goes ballistic and says that this fails and you should go for integermath anyway [14:15] lduros has joined the channel [14:15] Jalava: Industrial: our system just uses everything as multiplied by 100 so that 1 is actually one usd cent [14:15] Jalava: and then we divide by 100 for view [14:15] Industrial: right [14:15] madhums has joined the channel [14:15] Jalava: works as long as we remember to round the fractions on percentage etc [14:16] herbySk has joined the channel [14:17] Broolucks has joined the channel [14:17] thomblake has joined the channel [14:17] thomblake has left the channel [14:18] CIA-102: node: 03Andreas Madsen 07master * rfeff9bb 10/ doc/api/net.markdown : [14:18] CIA-102: node: docs: remove setSecure() from net module docs [14:18] CIA-102: node: socket.setSecure() was removed in v0.3 and there are no deprecated warning in [14:18] CIA-102: node: code it should be removed from the documentation in 0.7 - http://git.io/TWb1eQ [14:19] Cromulent has joined the channel [14:20] pradeebv has joined the channel [14:23] kmiyashiro has joined the channel [14:24] satyr has joined the channel [14:25] githogori_ has joined the channel [14:25] githogori has joined the channel [14:26] diva has joined the channel [14:26] pastak has joined the channel [14:30] bkaney has joined the channel [14:30] fudanchii has joined the channel [14:31] tornad has joined the channel [14:33] samuelgoodwin has joined the channel [14:33] CIA-102: node: 03Ben Noordhuis 07master * rb9127eb 10/ (src/node_buffer.cc test/simple/test-buffer.js): buffer: support decoding of URL-safe base64 - http://git.io/THHsdA [14:34] redir has joined the channel [14:37] cha0s has joined the channel [14:37] cha0s has joined the channel [14:38] fumanchu182 has joined the channel [14:40] willwhite has joined the channel [14:40] boccato has joined the channel [14:41] thinkt4nk has joined the channel [14:42] draginx has joined the channel [14:42] rwaldron has joined the channel [14:43] cjroebuck has joined the channel [14:43] willwhit_ has joined the channel [14:44] rauchg has joined the channel [14:45] plutoniix has joined the channel [14:47] pig_ has joined the channel [14:47] jaha has joined the channel [14:47] joshfinnie has joined the channel [14:49] thalll has joined the channel [14:49] jaw187: anyone in here from New Jersey? [14:49] carlyle has joined the channel [14:50] erikzaadi has joined the channel [14:51] CIA-102: node: 03Fedor Indutny 07master * r080ffb8 10/ doc/api/net.markdown : [14:51] CIA-102: node: docs: remove server.pause [14:51] CIA-102: node: This functionality was removed when libuv landed in node. It is useless [14:51] CIA-102: node: and can be easily implemented in user-land. - http://git.io/g0tL8A [14:51] _baton_ has joined the channel [14:52] pig has joined the channel [14:52] CIA-102: node: 03Fedor Indutny 07v0.6 * rc6019b8 10/ doc/api/net.markdown : [14:52] CIA-102: node: docs: remove server.pause [14:52] CIA-102: node: This functionality was removed when libuv landed in node. It is useless [14:52] CIA-102: node: and can be easily implemented in user-land. - http://git.io/T4jixA [14:53] qsobad has joined the channel [14:53] AndreasMadsen has joined the channel [14:54] ramitos has joined the channel [14:54] arkh_ has joined the channel [14:55] criswell has joined the channel [14:55] Illusioneer has joined the channel [14:56] themiddleman_itv has joined the channel [14:57] pig has joined the channel [14:59] st_luke has joined the channel [14:59] astropirate has joined the channel [15:00] davidsklar has joined the channel [15:00] RyanD has joined the channel [15:01] infynyxx has joined the channel [15:01] skyler_brungardt has joined the channel [15:02] _th_n has joined the channel [15:03] nhunzaker has joined the channel [15:04] tmcw has joined the channel [15:06] c4milo has joined the channel [15:07] 18WABQW5H has joined the channel [15:07] 31NAAXTPN has joined the channel [15:07] baudehlo has joined the channel [15:08] ryanfitz has joined the channel [15:08] trakowski77: can someone help me with mysql connectivity using node.js ? [15:08] gsmcwhirter has joined the channel [15:08] trakowski77: I'm trying to use node-mysql as my driver [15:08] bard has left the channel [15:08] Illusioneer: what's the error? [15:09] trakowski77: I manage to run my queries, I just want to understand if my queries are blocking or not [15:09] jmar777 has joined the channel [15:09] rumblepack has joined the channel [15:09] rumblepack: is there a bug causing node-inspector to seldom stop at breakpoints? [15:10] nate_ has joined the channel [15:10] rumblepack: --debug-brk doesnt work at all either [15:10] willwhit_ has joined the channel [15:10] jaw187: trakowski: are you concerned about the node functions you call blocking or blocking within MySQL [15:11] pendlepants has joined the channel [15:12] bnoordhuis: rumblepack: what version of node? [15:12] rumblepack: v0.6.10 [15:12] aristidesfl has joined the channel [15:13] barberdt has joined the channel [15:13] ryan1 has joined the channel [15:13] bnoordhuis: rumblepack: --debug-brk works again in v0.6.11 [15:13] trakowski77: jaw187: mysql ... [15:14] rumblepack: ok [15:14] rumblepack: do i just run the apt-get command on ubuntu to update it? [15:14] jhooks has joined the channel [15:15] trakowski77: jaw187: I'm new to node, so I'm a bit lost. My understanding is that I should be able to run 2 parallel queries if I acquire 2 mysql connections, right ? [15:15] draginx has joined the channel [15:15] ryanfitz has joined the channel [15:16] trakowski77: then within respective callback feed the data back to produce a response ? [15:16] jerrysv has joined the channel [15:17] whaley has joined the channel [15:17] chuck_daniel has joined the channel [15:17] ashishg has joined the channel [15:17] merlin83 has joined the channel [15:17] jocafa has joined the channel [15:18] rumblepack_ has joined the channel [15:18] eddyb: wow [15:18] johnhamelink: Hey guys, I'd be much obliged if you could take a look at my thread on stackoverflow if you've got some time: http://stackoverflow.com/questions/9364654/node-js-using-prototype-in-a-module/9365780#9365780 [15:18] eddyb: oxygen-transparent is superb [15:19] dgathright has joined the channel [15:20] willwhite has joined the channel [15:21] redir_ has joined the channel [15:22] eddyb has joined the channel [15:23] qsobad has joined the channel [15:23] jaw187: trakowski: node is single threaded, you can't do two things at the same time [15:23] jaw187: but you can call a function and move on to something else while it does it's thing [15:24] bradleymeck has joined the channel [15:24] jscheel has joined the channel [15:24] jscheel has joined the channel [15:24] bizniz98 has joined the channel [15:24] adambeynon has joined the channel [15:24] vdemedes has joined the channel [15:24] vdemedes: Hello [15:25] CarlosC has joined the channel [15:25] Illusioneer has left the channel [15:26] redir has joined the channel [15:27] triptec has joined the channel [15:29] illourr has joined the channel [15:30] CarterL has joined the channel [15:30] kolektiv has joined the channel [15:30] samuelgoodwin has joined the channel [15:31] xaq has joined the channel [15:31] blup has joined the channel [15:31] kolektiv: hi all - just a quick question - is the learnboost cluster module still a recommended way to do clustering? [15:31] kolektiv: or has it been superceded by cluster in the core node project? [15:31] colinclark has joined the channel [15:32] AndreasMadsen: kolektiv: learnboost works with node 0.4 and core cluster works with 0.6 [15:32] mmalecki: core module is better [15:32] jaime has joined the channel [15:32] mmalecki: and you shouldn't use 0.4 anyway, so [15:32] kolektiv: ok, yeah that makes sense then - core cluster it is! [15:32] willwhit_ has joined the channel [15:33] `3rdEden: i wouldn't call it better [15:33] kolektiv: it seems like the learnboost one does a bit more in some ways, but core cluster probably does most things needed [15:34] TheJH has joined the channel [15:34] amigojapan has joined the channel [15:34] shinuza has joined the channel [15:35] mmalecki: yeah, well, one thing I liked about learnboost cluster was extensibility [15:35] chuck_daniel has left the channel [15:35] kolektiv: yeah - although it seems like people are building stuff on top of core cluster [15:36] AndreasMadsen: mmalecki: should be fixed in 0.7 [15:36] isaacs has joined the channel [15:37] dthompso99 has left the channel [15:38] shinuza_ has joined the channel [15:40] fudanchii has joined the channel [15:41] shinuza has joined the channel [15:45] Venom_X has joined the channel [15:45] Skaag has joined the channel [15:46] mandric has joined the channel [15:47] piscisaureus_ has joined the channel [15:47] fatjonny has joined the channel [15:47] piscisaureus_ has joined the channel [15:48] tonist has joined the channel [15:48] thurmda has joined the channel [15:49] joshkehn has joined the channel [15:49] joshkehn has left the channel [15:50] Destos has joined the channel [15:50] plutoniix has joined the channel [15:51] ph^ has joined the channel [15:51] enmand_ has joined the channel [15:53] jj0hns0n has joined the channel [15:55] AvianFlu has joined the channel [15:55] davidsklar1 has joined the channel [15:56] fudanchii has left the channel [15:56] briancray has joined the channel [15:57] jaime: looking to fill a CTO position for a startup ASAP, equity involved, please PM me for details [15:57] rgl has joined the channel [15:57] wdbl has joined the channel [15:57] Jonathan__ has joined the channel [15:58] Jonathan__: Hi, does anyone have an examples of a Multitenant node application ? [15:58] wdbl: hey @isaacs: Are all of the api markdown docs up to date with the new structure that you laid out for that json-api-docs branch? [15:58] braoru has joined the channel [15:59] tonist has joined the channel [15:59] samuelgoodwin has joined the channel [15:59] wdbl: (good morning, btw! :) [16:00] michaelh has joined the channel [16:01] RichardBronosky has joined the channel [16:01] eddyb: what module should I use for mime-types? [16:02] eddyb: !npm search mime [16:02] eddyb: !find mime [16:02] jhbot: packages (short format): knox-stream, node-mailer, imageinfo, mime, simple-mime, filtered-proxy, mimelib, gettype, mailuploader, mailparser, mimeparse, mimelib-noiconv, mime-magic, mimeograph, rawformdata, ecstatic, mailcomposer, nodemailer, protojazz [16:03] piscisaureus_ has joined the channel [16:04] eddyb: https://github.com/SaltwaterC/mime-magic [16:04] isaacs: wdbl: no, not at all. [16:04] isaacs: wdbl: that's going on in a branch [16:04] isaacs: wdbl: json-api-docs [16:04] wdbl: @isaacs: yes, that's the branch I was asking about [16:04] woodzee has joined the channel [16:04] wdbl: @isaacs: how far along are you on standardizing the markdowns in that branch? [16:05] isaacs: wdbl: well, `make doc` works there, but it's fairly incomplete till. [16:05] isaacs: *stil [16:05] isaacs: and the index and toc need to be finished [16:05] wdbl: @isaacs: do you want me to tear through those and re-format them? [16:05] wdbl: @isaacs: I have free time [16:05] isaacs: wdbl: if you'd like to, sure. follow the model of cluster.markdown [16:05] khrome has joined the channel [16:05] isaacs: that ones' teh most complete [16:06] skyler_brungardt has joined the channel [16:06] wdbl: ok, so I'll just fork your branch [16:06] pendlepants has joined the channel [16:06] wdbl: and I'll ask you what to do when I'm done because I am not a git-master [16:06] wdbl: pun intended [16:07] wdbl: thanks [16:07] isaacs: :) [16:07] isaacs: thanks! [16:07] skyler_brungar-1 has joined the channel [16:08] braoru has joined the channel [16:09] salva has joined the channel [16:09] jperkin has joined the channel [16:11] themiddleman_itv has joined the channel [16:11] vicapow has joined the channel [16:11] whaley has joined the channel [16:12] stepheneb has joined the channel [16:13] davehamptonusa has joined the channel [16:14] stepheneb: installing http://nodejs.org/dist/v0.6.11/node-v0.6.11.pkg on my 64-bit Mac creates a 32-bit node executable [16:14] stepheneb: file `which node` => /usr/local/bin/node: Mach-O executable i386 [16:14] pradeebv has joined the channel [16:14] stepheneb: installing v0.6.10 created a 64-bit executable [16:15] blup has joined the channel [16:16] isaacs: stepheneb: that's because 0.6 built the binary with whatever arch teh original system used. [16:17] blup has joined the channel [16:17] isaacs: stepheneb: on ryan's laptop, that was ia32, on mine, it's x64 [16:17] isaacs: stepheneb: which meant that since i started doing builds, ia32 machines couldn't use the mac binaries. [16:17] davehamptonusa has left the channel [16:17] isaacs: stepheneb: and we just didn't notice, since most newer macs are x64 [16:18] blup has joined the channel [16:18] stepheneb: isaacs: I haven't specifically built pkg files but when I build dylibs I usually make them multi-arch [16:19] pizthewiz has joined the channel [16:19] isaacs: stepheneb: yeah, i haven't figured out how to make node do that. wanna look into it? [16:19] isaacs: stepheneb: we should really just make fat binares [16:20] stepheneb: isaacs: I'll take a quick look at your build system -- are you using cmake? [16:20] sreeix has joined the channel [16:20] isaacs: stepheneb: no. gyp and make [16:20] isaacs: stepheneb: well, in 0.6 it's not gyp, it's waf [16:20] pig has joined the channel [16:21] isaacs: but we should just fix this in master, and move forward [16:21] joshthecoder has joined the channel [16:21] whaley has joined the channel [16:25] josh-k has joined the channel [16:25] pig has joined the channel [16:26] cedeon has joined the channel [16:26] _tors has joined the channel [16:26] bizniz98 has joined the channel [16:26] braoru has joined the channel [16:28] kenperkins has joined the channel [16:29] sven_oostenbrink has joined the channel [16:32] criswell has joined the channel [16:32] yawNO has joined the channel [16:33] BillyBreen has joined the channel [16:35] yawNO: yo [16:35] samsonjs has joined the channel [16:35] ningu has joined the channel [16:35] jaw187: yeah dawg [16:36] braoru has joined the channel [16:39] ningu: I'm processing a lot of files with jsdom and am getting process out of memory errors. any suggestions? is there a way I can give the garbage collector some hints? I don't think I can use buffers. [16:39] rgl has joined the channel [16:40] blueadept has joined the channel [16:40] margle has joined the channel [16:41] steveoh has joined the channel [16:41] Zzaichik has joined the channel [16:41] aslant has joined the channel [16:42] mikeal has joined the channel [16:42] diogogmt has joined the channel [16:46] norviller has joined the channel [16:46] stephank has joined the channel [16:46] jaw187: ningu: good use of closures should give the GC the hints it needs.... [16:46] willwhite has joined the channel [16:47] briancra_ has joined the channel [16:48] vkandy has joined the channel [16:48] sgimeno has joined the channel [16:48] erikzaadi has joined the channel [16:48] RLa: sure you are not keeping some list of objects that should be discarded instead= [16:48] Qbix1 has joined the channel [16:48] isaacs has joined the channel [16:49] RLa: like all parsed dom trees processed so far [16:50] looopy has joined the channel [16:50] sigurding: can anyone tell me why the SHA encryption in does not work: https://github.com/gevorg/http-auth/blob/master/examples/example.js ? [16:50] ohtogo has joined the channel [16:51] cam|work has joined the channel [16:51] fangel has joined the channel [16:53] zomgbie has joined the channel [16:53] margle has joined the channel [16:53] sh1mmer has joined the channel [16:55] ohtogo_ has joined the channel [16:55] ningu: hrm, I see, apparently jsdom has known issues with memory leaks. [16:55] ningu: jaw187: yes, I was using closures properly, at least as far as I know. [16:56] jaw187: a jsdom leak could be a problem [16:56] trotter has joined the channel [16:56] ningu: I'm going to try to spawn one subprocess per html file I'm processing. [16:56] jaw187: ningu: just pointing out that if you have a variable that is of global scope....and you keep adding to it...that cold be a problem [16:57] steveoh has left the channel [16:57] ningu: yes, but the output is tiny compared to the DOM trees jsdom is constructing. and I've already rewritten it so the output per html file goes to a separate json file, so there is no global anymore. [16:57] nhunzaker has left the channel [16:58] ningu: this is just a script, not an app, so it's easy to rewrite that way. [16:59] ningu: and have it still be convenient for its purpose, I mean :) [16:59] ramitos has joined the channel [16:59] joshkehn1 has joined the channel [16:59] joshkehn1 has left the channel [16:59] samuelgoodwin has joined the channel [17:00] jyp has joined the channel [17:00] tylerstalder has joined the channel [17:01] madhums1 has joined the channel [17:01] SamuraiJack_ has joined the channel [17:01] aakour_ has joined the channel [17:01] jtsnow has joined the channel [17:02] maru_cc_ has joined the channel [17:02] vkareh_ has joined the channel [17:02] vguerra has joined the channel [17:02] AndreasMadsen has joined the channel [17:02] piscisaureus_ has joined the channel [17:02] sreeix has joined the channel [17:02] niftylettuce has joined the channel [17:03] brianleroux has joined the channel [17:03] ohtogo has joined the channel [17:03] azend has joined the channel [17:03] Qzen has joined the channel [17:03] apoc has joined the channel [17:03] kloeri_ has joined the channel [17:04] tdegrunt has joined the channel [17:04] yarrkov- has joined the channel [17:05] altivec has joined the channel [17:05] creationix has joined the channel [17:05] inarru has joined the channel [17:05] AviMarcus has joined the channel [17:05] sveisvei has joined the channel [17:06] lukegb_ has joined the channel [17:06] wao has joined the channel [17:06] PANCAKESo has joined the channel [17:06] alvaro_o has joined the channel [17:07] Darrow has joined the channel [17:07] tornad has joined the channel [17:07] donfrancisco has joined the channel [17:07] mikeal has joined the channel [17:07] niallo has joined the channel [17:07] overthemike has joined the channel [17:08] FredrIQ has joined the channel [17:08] Enoria has joined the channel [17:08] overthemike has left the channel [17:08] tonist has joined the channel [17:08] mape has joined the channel [17:09] aheckmann has joined the channel [17:10] Wizek has joined the channel [17:10] stepheneb: on macos 10.6.8 buildingmaster: executing: import jsmin in tools/js2c.py generates an ImportError: Bad magic number in tools/jsmin.pyc while processing node_natives.h [17:10] Wizek-other has joined the channel [17:12] Qzen has joined the channel [17:13] redir has joined the channel [17:13] Wizek-other2 has joined the channel [17:13] mansoor has joined the channel [17:13] slaskis has joined the channel [17:14] wao has joined the channel [17:14] caolanm has joined the channel [17:14] stonebra_ has joined the channel [17:14] SirFunk has joined the channel [17:14] creationix has joined the channel [17:15] iangreenleaf has joined the channel [17:17] r1ngzer0 has joined the channel [17:17] crutex has joined the channel [17:17] crutex has joined the channel [17:18] DuoSRX has joined the channel [17:18] timoxley has joined the channel [17:18] xaq has joined the channel [17:19] bindr has joined the channel [17:21] bnoordhuis: stepheneb: find . -name \*.pyc -delete [17:21] jiboumans_ has joined the channel [17:22] stepheneb: bnoordhuis: thanks, removing the old pyc files fixed that problem [17:22] carlyle has joined the channel [17:22] isao has joined the channel [17:22] LeftWing has joined the channel [17:22] aslant has joined the channel [17:22] slloyd has joined the channel [17:24] Skaag has joined the channel [17:24] logickal has joined the channel [17:25] ningu: my child process trick seems to be working. [17:25] blackdog_ has joined the channel [17:25] criswell has joined the channel [17:27] orlandovftw has joined the channel [17:27] maletor has joined the channel [17:27] samuelgoodwin has joined the channel [17:28] snoj has joined the channel [17:29] kmiyashiro has joined the channel [17:30] jyp has joined the channel [17:31] Revernd has joined the channel [17:33] Broolucks has joined the channel [17:33] nphase has joined the channel [17:34] tmcw has joined the channel [17:34] willwhit_ has joined the channel [17:35] spion1 has joined the channel [17:35] tmcw_ has joined the channel [17:35] c4milo has joined the channel [17:35] artusrocha has joined the channel [17:36] broofa has joined the channel [17:37] LBRapid has left the channel [17:38] andrewdeandrade has joined the channel [17:39] arnorhs has joined the channel [17:40] dthompso99 has joined the channel [17:41] bradleymeck has joined the channel [17:41] khrome has joined the channel [17:42] thalll has joined the channel [17:42] dodo has joined the channel [17:42] zomgbie has joined the channel [17:42] sigurding: can anyone tell me why the SHA encryption in does not work: https://github.com/gevorg/http-auth/blob/master/examples/example.js ? [17:42] qsobad has joined the channel [17:43] orlandov1tw has joined the channel [17:43] eignerchris has joined the channel [17:44] qsobad has joined the channel [17:44] chrisina1ar: join #c_s [17:44] ken-ignite has joined the channel [17:46] tonist_ has joined the channel [17:46] margle has joined the channel [17:47] chrisinajar has joined the channel [17:48] criswell has joined the channel [17:48] timoxley: sigurding define 'does not work' [17:48] EhevuTov has joined the channel [17:49] sigurding: timoxley: If I enter the password, although it is mia:supergirl I always get non-auth [17:49] sigurding: same, when I am using the password file [17:49] idefine has joined the channel [17:49] overthemike has joined the channel [17:49] sigurding: using plain authentication with mia:supergirl and no SHA encryption it works [17:49] overthemike has left the channel [17:49] sorensen__ has joined the channel [17:51] sigurding: timoxley: any idea? [17:52] Johnsknees has joined the channel [17:52] cjlicata has joined the channel [17:52] mAritz has joined the channel [17:53] bulatshakirzyano has joined the channel [17:57] timoxley: sigurding no. have you tried running the tests for http-auth? [17:57] petersed has joined the channel [17:57] sigurding: timoxley: tests? [17:57] blup has joined the channel [17:58] jxson has joined the channel [17:58] chuck_daniel has joined the channel [17:59] jxson has joined the channel [17:59] ryan0x2 has joined the channel [17:59] timoxley: sigurding `npm install --dev http-auth && nodeunit tests/*` [17:59] timoxley: oops [17:59] timoxley: don't do that [17:59] sigurding: :) [17:59] yawNO: IT WILL BLOW UP YOUR BOX [17:59] yawNO: er .. back [18:00] blup has joined the channel [18:00] rektide: where is the code for Connect's compiler? i can not find http://www.senchalabs.org/connect/middleware-compiler.html anywhere on https://github.com/senchalabs/connect/tree/master/lib/middleware [18:00] aranw has joined the channel [18:01] timoxley: sigurding just install it with --dev, cd into it's node_modules folder then `nodeunit tests/*` [18:01] aranw has joined the channel [18:01] urlisse has joined the channel [18:01] sigurding: timoxley: ok I will try [18:01] ramitos has joined the channel [18:01] timoxley: oh man. that was crap instructions too. "cd into the http-auth folder in node_modules" is what I meant [18:02] timoxley: sigurding it's 4am. [18:02] sigurding: timoxley: where are you? australia? [18:03] timoxley: sigurding yep. Brisbane [18:03] sigurding: :) [18:03] timoxley: rektide docs probably out of date [18:03] sigurding: here it is 7pm [18:03] timoxley: rektide https://github.com/senchalabs/connect/blob/1.x/lib/middleware/compiler.js [18:03] relling has joined the channel [18:04] timoxley: sigurding where is that [18:04] sigurding: near frankfurt [18:04] timoxley: cool [18:04] sigurding: depends on :) [18:05] adamkittelson has joined the channel [18:05] Revernd_ has joined the channel [18:05] rektide: timoxley: it appears https://github.com/dsc/connect-compiler/ has taken up the mantle of being a connect compiler [18:07] timoxley: rektide interesting. it's written in coco [18:07] jetienne has joined the channel [18:08] fangel has joined the channel [18:08] gf3 has joined the channel [18:08] kickingvegas has joined the channel [18:09] criswell has joined the channel [18:09] carlyle has joined the channel [18:09] EhevuTov_ has joined the channel [18:09] johnhamelink has joined the channel [18:10] diogogmt has joined the channel [18:10] josh-k has joined the channel [18:10] _th_n has joined the channel [18:10] Dreamer3 has joined the channel [18:10] ryanfitz has joined the channel [18:11] rektide: timoxley: damn. :( [18:11] rektide: not a hater, but it makes my life more complex that this lib i'd like to rely on and extend is in an offshoot of an alternative language. [18:12] Country has joined the channel [18:12] CarterL has joined the channel [18:12] ajackbot has joined the channel [18:12] tmike_ has joined the channel [18:12] ceej has joined the channel [18:13] joohn has joined the channel [18:13] timoxley: rektide meh, can't hurt to expose yourself. I learned coffee because I had to fix up some lib, definitely not regretting it. Definitely improved my JS in the process [18:13] joohn: When I run node-waf build on my Joyent server, I get a segmentation fault. Anyone have any clue? [18:14] joohn: In particular I can't install socket.io-client via npm because of the preinstall step that tries to make ws@0.4.0 [18:14] timoxley: rektide been looking for a good reason to pick up coco for a while [18:14] timoxley: rektide but yeah, if you need to fix something fast, might be a bit frustrating [18:14] rektide: timoxley: it's that want of good reason to do anything other than js that i've never quite seized upon [18:14] dodo has joined the channel [18:15] timoxley: rektide as in you don't understand why anyone would want to do anything other than js? [18:15] rektide: yeah [18:15] mcluskydodallas has joined the channel [18:15] retornam has joined the channel [18:15] rektide: i've never had to deal with js so ugly i wanted to claw my eyes out [18:16] rektide: mcluskydodallas: i'm listening to mclusky atm, coworker reommendation [18:16] mcluskydodallas: rektide: wow wow. what do you think? heh [18:16] krankguy: There are some a-holes out there who think javascript isn't for *real* programmers, but I disagree. However I have been looking at Coffee and it does offer some improvements [18:17] maxogden: let those people stay where they are... less competition for good js jobs that way [18:17] timoxley: rektide those lanugages create trivialities out of some PITAs in js. [18:17] krankguy: you can still do everything in javascript, its just more likely of being verbose [18:17] tmike: has coffeescript sorted out the stacktrace/linenumber thing? [18:18] harthur has joined the channel [18:18] timoxley: ahh coffeeshedding [18:18] jarek has joined the channel [18:18] jarek has joined the channel [18:18] rektide: mcluskydodallas: working a.o.k. right now! some good energy. [18:18] krankguy: PITA? [18:19] timoxley: krankguy http://en.wikipedia.org/wiki/Pita [18:19] rektide: krankguy: pain in the ass [18:19] krankguy: ah, lol [18:20] _baton_ has joined the channel [18:20] ramitos has joined the channel [18:20] krankguy: Out of curiosity, anyone here every play with scala or the LiftWeb framework? [18:20] gut4 has joined the channel [18:21] sdudenhofer has joined the channel [18:22] rektide: anyone able to help me penetrate this coffee/coco code? https://github.com/socialtables/connect-compiler/blob/master/compiler.co#L521 [18:23] rektide: options : (opts={}) -> { +pretty, filename:@info.src } <<< opts [18:23] rektide: what is going on there? [18:23] maxogden: there is a language called coco? haha [18:23] timoxley: maxogden it's a perlish coffeescript [18:24] timoxley: maxogden as is evidence by the character vomit above [18:24] rektide: apparently. :) [18:24] krankguy: {options: function(opts) { if opts == null {opts = {}}; ....... ok I have no idea [18:24] rektide: ah, wise move! to the source! [18:24] timoxley: yer [18:25] rektide: the compiled version is: https://github.com/socialtables/connect-compiler/blob/master/compiler.js#L622 , not that it entirely is much clearer. [18:25] timoxley: satyr perhaps you could help [18:25] mAritz1 has joined the channel [18:25] sandfox has joined the channel [18:25] JJMalina has joined the channel [18:25] rektide: ah __import ain't so complex, just an Object.create thingie [18:25] boccato has joined the channel [18:25] satyr: that compiled source is pretty clear, no? [18:25] themiddleman_itv has joined the channel [18:26] EhevuTov__ has joined the channel [18:27] hipsterslapfight has joined the channel [18:27] rektide: satyr: so, (opts={}) is a function argument with a default value [18:27] rektide: wait no [18:28] rektide: <<< is the _import, otherwise yeah, (opts={}) is a function declaration that returns the object below, with opts __imported [18:29] samsonjs has joined the channel [18:29] maxogden: is coco kinda like http://www.idsnews.com/news/mfiles/photos/0000-co-235010840.jpg or more like http://cdn.blisstree.com/files/2011/06/Ice-T-and-Coco.jpg [18:29] satyr: rektide: right [18:29] fabioboris has joined the channel [18:29] richardr has joined the channel [18:30] franciscallo has joined the channel [18:30] rektide: satyr: what are the '-> super ...' phrases ? [18:30] TooTallNate has joined the channel [18:30] satyr: same as `-> super` in Coffee [18:30] sarlalian has joined the channel [18:31] rektide: *shrug* ok. thanks for chiming in! [18:33] tmike: ACTION has been listening to the nodeup podcasts [18:33] whaley has joined the channel [18:33] tmike: good stuff [18:33] StanlySoManly has joined the channel [18:35] bindr has joined the channel [18:35] redir_ has joined the channel [18:36] edjafarov has joined the channel [18:37] pokoli has joined the channel [18:39] jimbot has joined the channel [18:40] aslanted has joined the channel [18:40] Morkel has joined the channel [18:41] mAritz has joined the channel [18:42] cam|work: i get an error that reads "Cannot read property 'node' of undefined" when i try to deploy. any ideas? [18:42] cam|work: also can't ready property 'npm' [18:42] russfrank: why was unix socket support removed in node >0.5 [18:43] isaacs has joined the channel [18:43] mekwall: does nprof (to parse v8 log files) work in windows? [18:45] sorensen_ has joined the channel [18:45] fatjonny has joined the channel [18:45] reid has joined the channel [18:45] reid has joined the channel [18:46] dilvie has joined the channel [18:47] timoxley: Hm, is it safe to start using JS harmony stuff in node apps today? As in, is it likely to disappear in a later version of node? [18:48] vicapow has joined the channel [18:49] megalomix has joined the channel [18:49] megalomix: hello everybody [18:49] megalomix: can i "compile" a JS file ? [18:49] megalomix: in C++ ? [18:50] russfrank: :| [18:50] vicapow: megalomix: I don't think you wanna do [18:50] jetienne: megalomix: yes, but you are to incldue v8 with it [18:50] Metapony has joined the channel [18:51] megalomix: the problem is [18:51] Hamms has joined the channel [18:51] megalomix: that i'm writing a website in node.js [18:51] megalomix: entirely in node.js [18:51] megalomix: with express.js [18:51] megalomix: i'm using mysql <--- [18:51] megalomix: i would store encrypted data to mysql [18:51] bradleymeck: timoxley, the collections are absolutely not going to go away [18:51] jtsnow has joined the channel [18:51] bradleymeck: the rest, idk [18:51] megalomix: so i can use AES_ENCRYPT() [18:51] megalomix: BUT i need to pass a key [18:52] megalomix: to encrypt/decrypt data [18:52] tmike: node has crypto [18:52] bradleymeck: russfrank it was readded, it was removed due to maintainance issues, and only datagram sockets [18:52] megalomix: if i write this key in a file like: config.js [18:52] megalomix: it does not make sense [18:52] bradleymeck: russfrank, its coming back though [18:52] megalomix: who can access to the server could read the key and decrypt data [18:52] timoxley: bradleymeck that's excellent. why are you so sure of Collections [18:52] megalomix: tmike, yes i know, but i need to pass a key always [18:53] megalomix: so i thought (i know it is not sure 100%) [18:53] [g2} has joined the channel [18:53] bradleymeck: timoxley, GC of object to object mappings without them are just not practical [18:53] megalomix: but if i do something in c++ it is more difficult to read [18:53] megalomix: because it is "native" [18:53] megalomix: no? [18:53] tmike: No, somebody could still run strings on your executable [18:53] tmike: Unless the key is raw binary [18:54] tmike: You can always store the key in a file and make the file only readable by the user running the node process, no? [18:54] tmike: I mean, flat files holding database credentials has been a staple of web development since the beginning of time. [18:55] tmike: It should be noted that I could very well be spewing bad advice here. [18:55] gr4yscale has joined the channel [18:56] brianleroux has joined the channel [18:56] tmike: Come on firebug, if you're going to announce uncaught exceptions you should dump them to the console. [18:56] igl has joined the channel [18:57] megalomix: tmike, yes i understand [18:57] rektide: tmike: diy: window.onerror=function(){console.log(arguments,this)} [18:57] megalomix: so there is no solution [18:57] tmike: Does anyone disagree that storing the key in a flat file that's only readable by the user running the node process is an acceptible practice? [18:57] timoxley: bradleymeck understood. Thanks. [18:57] ajackbot has joined the channel [18:57] tmike: rektide: thanks [18:57] rektide: np [18:58] bradleymeck: tmike as long as its only 1 process writing to it [18:59] tmike: It's megalomix's question, you'll have to ask him what the plan is. [18:59] ritch- has joined the channel [18:59] megalomix: bradleymeck, i have a home [18:59] megalomix: /home/vhosts/domain.com [18:59] megalomix: this home has an user [19:00] megalomix: there i copy all the website file (with the user permissions) [19:00] redir has joined the channel [19:00] megalomix: and run node there (with user privileges because it listen to 8080) it does need root [19:00] megalomix: so i already do it... [19:00] megalomix: but is this enought? [19:00] megalomix: enough? [19:00] jaime__ has joined the channel [19:01] napperjabber has joined the channel [19:01] jhurliman has joined the channel [19:01] hackband has joined the channel [19:01] joe__k has joined the channel [19:02] joe__k: Can I build contextify with a just-compiled node without installing the just-compiled node from its build dir [19:02] joe__k: using node-gyp [19:02] whitethief has joined the channel [19:02] joe__k: on windows with vc2010 [19:02] whitethief: hello everyone [19:02] whitethief: does anyone have had a problem running Bogart (v0.3.38) with Node v0.6.10 on Windows? [19:03] pradeebv has joined the channel [19:03] rtyler has left the channel [19:03] CoverSlide: /win 66 [19:04] tmike: megalomix: as long as your key is stable and doesn't change, I'd say you're fine leaving it in a file with 600 permissions or something. [19:04] tmike: 66 windows? [19:04] stepheneb: isaacs: I created a new gyp issue: Support multiple ARCHs on Mac OS X (fat binaries) http://code.google.com/p/gyp/issues/detail?id=252 since there didn't seem to be one yet [19:04] megalomix: tmike, linux [19:04] tmike: I was referring to CoverSlide [19:05] bindr has joined the channel [19:05] stepheneb: in the issue I describe a naive hack I did to see what the problems would be [19:05] criswell has joined the channel [19:06] stepheneb: ended up with this error: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags [19:06] megalomix: sorry [19:06] patcito has joined the channel [19:06] iangreen_ has joined the channel [19:06] whitethief has left the channel [19:06] tmike: megalomix do you need multiple keys or just one key? [19:07] ramitos has joined the channel [19:08] mikeal has joined the channel [19:08] kmiyashiro has joined the channel [19:09] felixhummel has joined the channel [19:09] jiboumans_ has joined the channel [19:09] RobWC has joined the channel [19:10] ritch1 has joined the channel [19:10] RobWC has left the channel [19:10] elijah has joined the channel [19:12] megalomix: tmike, just one [19:12] lperrin has joined the channel [19:12] `3rdEden has joined the channel [19:13] tmike: I'd say you're fine leaving it as a flatfile with 600 permission [19:13] ritch1 has left the channel [19:13] tmike: Besides, if you ever for some reason had to change your key and your application was compiled, you'd have to recompile it. [19:14] jetienne_ has joined the channel [19:14] megalomix: tmike but if someone can access to my ssh bruteforcing the pwd [19:14] EhevuTov_ has joined the channel [19:14] megalomix: can read it easyly having the user permission [19:14] megalomix: no? [19:14] tmike: Then don't let them do that. [19:14] tmike: throttle ssh, don't use usernames like 'root' or 'admin' or 'jim' [19:15] tmike: Or, better yet, don't accept SSH from untrusted connections. [19:15] tmike: And use keys instead of passwords. [19:16] retornam has joined the channel [19:16] ramitos_ has joined the channel [19:17] ullmark has joined the channel [19:17] nam_ has joined the channel [19:17] megalomix: ok [19:18] tmike: do you know how to set up a key for SSH? [19:18] megalomix: yes i already done it [19:18] tmike: good [19:18] megalomix: i have 4096 keys [19:18] megalomix: 4096 b [19:18] Renegade001 has joined the channel [19:19] tmike: If someone manages to brute-force that and you don't notice, they DESERVE your encryption keys ;) [19:19] megalomix: each user (website) has the relative key [19:19] megalomix: yes the private [19:19] briancray has joined the channel [19:19] retornam has joined the channel [19:19] megalomix: :) [19:19] megalomix: btw fortunately [19:20] megalomix: i'm using nginx as load balancer [19:20] megalomix: and proxy [19:20] megalomix: that send the request to high ports [19:20] megalomix: so i can run node without root privileges [19:20] redir has joined the channel [19:21] andrewde` has joined the channel [19:21] slickplaid: run everything as root and keep the passwords <5 characters... makes it fun [19:21] tvw has joined the channel [19:21] tmike: it's less fun if you use numerics though [19:21] tmike: all lowercase [19:21] slickplaid: and make sure it's in the dictionary [19:23] sh1mmer: has anyone seen zombie child processes from cluster before? [19:23] slickplaid: I think that came out last year... might check IMDB, though. [19:24] slickplaid: Starring Chuck Norris, Liam Neeson, and Sting I think [19:24] tmike: I'd pay to see that. [19:24] megalomix: ash.sf.sdf.34.5.34t.e.gergv.4t45.vg.hg.54.y.45y.45..tkp.ew.fsd.gv.b45n.y56myj.k.sfdg.123.4.14.457..kjk,.m.x.gh.kyhr.j.w.w.d.ash.gho.jlfiouashfsadhfsuadi <---- this should be a good password [19:24] megalomix: :D [19:24] megalomix: please, do not copy it :-D ahahah [19:25] mcav` has joined the channel [19:25] broofa_ has joined the channel [19:25] slickplaid: good thing no one keeps logs publically available online anywhere [19:25] megalomix: ooh guys [19:25] megalomix: ONE Important things [19:26] megalomix: as i told i'm using SSH keys to login to my VPS [19:26] slickplaid: good password: 8GܽL4ðVõãQƒäµ_ÊÁ?@íÚ(т [19:26] mikeal has joined the channel [19:26] megalomix: i would like to know how can i set the permission i want to the dirs [19:26] megalomix: is it possible? [19:26] megalomix: eaxmple if i pass a file with 777 from my pc to server [19:26] slickplaid: in node? [19:26] megalomix: can i set it to 600 automatically? [19:27] whitman has joined the channel [19:27] CoverSlide: just wrap it in a function [19:27] megalomix: is this possible? [19:27] megalomix: i would like to have 600 for files and 700 for dirs [19:27] CoverSlide: fs.chmod fs.chmod [19:27] megalomix: no other permission [19:28] megalomix: CoverSlide, no i mean on the linux vps [19:28] megalomix: whne i transfer the files [19:28] chjj has joined the channel [19:28] megalomix: if i (for an error) save it with 777 [19:28] qwerty has joined the channel [19:28] CoverSlide: you can't tell the remote machine what permissions it has [19:28] larsschenk has joined the channel [19:28] megalomix: i would like 600 always [19:28] slickplaid: you can set the default new file permissions to 600, but that would mean any new file would be set as 600 [19:29] megalomix: umask ?? [19:29] slickplaid: yeah [19:29] slickplaid: umask [19:29] Vespakoen has joined the channel [19:29] megalomix: slickplaid, for new files what do you mean? [19:29] CoverSlide: you can do process.umask [19:29] megalomix: if i create a new file [19:29] megalomix: OR If i send it to the vps using ssh ? [19:29] phidah has joined the channel [19:29] slickplaid: if you `touch newfile.txt` it'll be 600 if you set the umask to such [19:30] guest007: why cant i install the new 0.6.11 nodejs on ubuntu? i followed the instructions here http://stackoverflow.com/questions/5123533/how-can-i-uninstall-or-upgrade-my-old-node-js-version [19:30] slickplaid: `umask 077 >> ~/.bashrc` [19:30] megalomix: so if i transfer 777 file it will be 777 [19:30] megalomix: i need to do it manually? [19:30] tmike: Does bashrc get read by the scp process? [19:31] slickplaid: well, if you're using ftp, a lot of the time they have default new file permission settings [19:31] slickplaid: scp reads bashrc, i believe [19:31] tmike: groovy [19:31] megalomix: at the moment i'm using rsync [19:31] slickplaid: don't quote me on that though... but I think so [19:31] krucial has joined the channel [19:32] orlandovftw has joined the channel [19:32] krucial: is there a way to receive a client's ip address through the req object? [19:32] slickplaid: echo 'umask 077' >> ~/.bashrc [19:32] slickplaid: messed that up :D [19:32] rrjamie has joined the channel [19:32] megalomix: what it does? [19:33] larsschenk has left the channel [19:33] slickplaid: req.connection.remoteAddress [19:33] Johnsknees has joined the channel [19:33] slickplaid: megalomix: it would make it so every new file that was made would be 600, dirs would be 700 [19:34] Top has joined the channel [19:34] slickplaid: megalomix: I would seriously consider what implications that would have for you before you do it though. [19:34] harthur has joined the channel [19:35] mcav has joined the channel [19:35] megalomix: i don't understand your last message [19:35] Cromulent has joined the channel [19:35] rrjamie: Hello. I'm hitting a bug with HTTPS (in particular the TLS code) on 0.6.11 on Windows 7. I'm posting a large message body (500KB+), and TLS seems to destroy the socket before a response is returned by the server. However, if I'm lucky, the TLS hits a pause/resume/drain cycle, it works fine. Anyone else have issues with TLS/HTTPS on Windows? [19:35] napperjabber has joined the channel [19:36] Qzen has joined the channel [19:36] slickplaid: was I talking to the wrong person? lol i'm only glancing back and forth between work and here [19:38] sigurding_ has joined the channel [19:39] megalomix: have to go [19:39] _th_n has joined the channel [19:39] megalomix: have dinner....see you soon [19:39] Qzen^ has joined the channel [19:39] johnr22000 has joined the channel [19:39] megalomix: goodbye everyone [19:40] fangel has joined the channel [19:41] richardr has joined the channel [19:43] krankguy has joined the channel [19:43] lohkey has joined the channel [19:45] adambeynon has joined the channel [19:46] criswell has joined the channel [19:46] tonist_ has joined the channel [19:48] `3rdEden has joined the channel [19:52] pvankouteren has joined the channel [19:54] dreamr has joined the channel [19:54] stepheneb has joined the channel [19:56] snearch has joined the channel [19:57] bindr has joined the channel [19:57] johnhamelink has joined the channel [20:00] norviller_ has joined the channel [20:00] test1 has joined the channel [20:00] test1: hello [20:01] test1: is this working can someone reply? [20:01] tmike: not working. [20:01] stagas: test1: [ object Object ] [20:02] apcshields has joined the channel [20:02] djQuery has joined the channel [20:03] djQuery: anyone got a list of template engines that work server side and client side? [20:03] djQuery: I realy like knockout.js but to my understanding it only works client side [20:03] jerrysv: mustache (or handlebars) are my gotos [20:03] rektide: i have my heart on my sleeve for dust.js [20:03] rektide: so did linkedin when they reviewed 17 different templating engines [20:03] CIA-102: node: 03isaacs 07master * rbae4018 10/ Makefile : Run jslint after tests, not before - http://git.io/xdW2mA [20:03] CIA-102: node: 03isaacs 07master * r3817b12 10/ AUTHORS : Add Håvard Stranden to AUTHORS file - http://git.io/oudPHQ [20:04] CIA-102: node: 03isaacs 07v0.6 * r186960f 10/ AUTHORS : Add Håvard Stranden to AUTHORS file - http://git.io/VLoK7Q [20:07] dreamdust has joined the channel [20:07] phayze has joined the channel [20:08] samuelgoodwin has joined the channel [20:09] rauchg has joined the channel [20:10] odinswand has joined the channel [20:11] Sadin has joined the channel [20:12] sardaven_ has joined the channel [20:13] Lingus: RE: template engines, Ext.XTemplate (ExtJS) has been ported to node.js [20:13] patcito has joined the channel [20:13] Renegade001 has joined the channel [20:14] phayze has left the channel [20:15] dilvie has left the channel [20:15] megalomix has joined the channel [20:15] argami has joined the channel [20:16] barberdt has joined the channel [20:16] VladGh has joined the channel [20:17] mraleph has joined the channel [20:17] marvin_ has joined the channel [20:19] Renegade001 has joined the channel [20:19] dve has joined the channel [20:21] kmiyashiro: rektide: why dust? [20:22] lohkey_ has joined the channel [20:22] Starky has joined the channel [20:23] barberdt has joined the channel [20:24] yawNO: catb0t: [20:24] catb0t: [20:24] Starky: Hey all i am a bit confused b/w async IO calls and async function calls, [20:24] yawNO: catb0t: help? [20:24] catb0t: help out and put it into a beautiful thing, but an ugly monster [20:24] yawNO: yeah right [20:24] Starky: how r they both dif, and how does th eimplementation differ in node [20:24] yawNO: how do you execute js with catb0t? [20:24] catb0t: execute , as they call other functions as long as it provides for great plugin support with [20:24] yawNO: forgot the syntax [20:24] EhevuTov_: .. 2+2 [20:24] catb0t: 4 [20:24] webjames has joined the channel [20:24] ningu: Starky: the implementation is the same, afaik, as least in order to use them [20:24] chjj has joined the channel [20:24] yawNO: thx EhevuTov_ [20:24] EhevuTov_: ;-) [20:24] yawNO: .. var ಠ_ಠ = 1; [20:24] catb0t: [20:24] yawNO: .. ಠ_ಠ [20:24] catb0t: 1 [20:24] QaDeS: can anybody give me a hint on node 0.6 + express + cluster? [20:24] yawNO: :3 [20:25] jetienne has joined the channel [20:25] yawNO: i love valid ecmascript [20:25] ningu: the general pattern is to pass a callback which takes an error as its first argument and results as the second argument or possibly multiple arguments [20:25] ningu: QaDeS: what do you mean, a hint? [20:25] JJMalina: What is the node equivalent of http://celeryproject.org/ ? [20:25] bindr has joined the channel [20:25] webjames: i'm trying to write a while loop and it seem to be blocking. while(!readyToEnd) { ... } [20:26] dreamdust: There's no way to write a while loop that doesn't block... [20:26] Starky: okay, so say i need to call a function in a async manner, the func has its own callback, so do i do it like for(){process.nextTick(fn)} or a direct loop iver the function is enough to start the all func instances async to each other?? [20:26] tmike: Use setInterval or events [20:26] ryanfitz has joined the channel [20:26] QaDeS: ningu, i can't find an example on how to cleanly get this to work. unlike the "old" version, the cluster interface seems pretty low level [20:26] tmike: that was for webjames [20:26] mAritz: QaDeS: do you mean learnboost-cluster? unfortunately doesn't work on 0.6.x due to the core module cluster. [20:26] simenbrekken has joined the channel [20:26] Starky: setIntervals, y wud use tht [20:26] Starky: ? [20:26] boccato has joined the channel [20:27] ningu: Starky: are you talking about one async call or many? [20:27] tmike: Starky I was talking to webjames sorry about that [20:27] webjames: thanks tmike [20:27] mAritz: QaDeS: looked at the node.js docs for cluster? should have proper examples in there [20:27] josh-k has joined the channel [20:27] ningu: Starky: your code will continue in the callback. you don't loop over the async call [20:27] Starky: ohh, stupid me shud hv unstand tht, [20:28] Starky: k, "continue in callback" - you mean blocked by the callback, th enext iteration wont take place [20:28] Starky: till the callback returns? [20:28] ningu: the next iteration of what? [20:28] ningu: the async function will return before it completes, that's what async means... [20:28] Starky: say i initiate the func in a loop [20:28] ningu: no, the loop will continue [20:28] pokoli has joined the channel [20:28] Starky: like for(){fn(i++)} [20:28] tdegrunt has joined the channel [20:29] jerkelens has joined the channel [20:29] ningu: if you want to do a bunch of async things at once, look at the async module, it has a lot of useful control flow methods [20:29] stonebranch has joined the channel [20:29] ningu: but if you're just doing one, you don't need anything special to keep track of things really [20:29] robhawkes has joined the channel [20:29] Starky: yeah, i kno tht what async means, just cudnt get it when something will be executed in async fashion and when in a sync fashion [20:29] oht has joined the channel [20:29] ningu: if it takes a callback argument, it is async [20:29] QaDeS: mAritz, the examples i found are for cluster+http, not express [20:29] Starky: @ningu, okay looking at tht now [20:30] QaDeS: looks like i'd have to build the app separately for each worker, or am i mistaken? [20:30] ningu: I still find the async module a bit tricky, but that's because I've been dealing today with data that's nested at four or five levels deep and the control flow is different at each level [20:30] hackband has joined the channel [20:31] Renegade001 has joined the channel [20:31] ningu: the async module's api is very clear, it's just the logic I'm doing that is complicated :) [20:31] k1ttty has joined the channel [20:31] AndreasMadsen: QaDeS: there is no difference. The cluster is done on a TCP level so HTTP and express there build on that works fine. [20:31] AndreasMadsen: QaDeS: no you couldn't need to make you own app for each worker, and you can't. [20:32] AndreasMadsen: QaDeS: just call the express.listen as you normally would [20:32] orlandovftw has joined the channel [20:32] QaDeS: ok, trying [20:32] JJMalina: Has anyone used http://learnboost.github.com/kue/ ? I see it hasn't been updated in about 3 months, was wondering if its still compatible with the latest node [20:33] AndreasMadsen: QaDeS: The only difference from running anything there use TCP with or without cluster is the need for if (isMaster) {} else {} [20:33] orlandovftw has joined the channel [20:33] AndreasMadsen: QaDeS: there is some problems if you use socket.io, just so you know. [20:34] ningu: can node apps be clustered out of the box, or do you have to take that into account when writing them? [20:34] ningu: I realize that might depend on the app... [20:34] AndreasMadsen: ningu: unless you use socket.io, it works out of the box [20:35] localhost has joined the channel [20:35] ningu: what about database race conditions? I suppose that's more of a mongodb-internal issue, since that's what I'm using. but I'm kind of wondering. [20:36] AndreasMadsen: to work with socket.io and cluster, use a sticky-session implementation. [20:36] vicapow: as anyone found a need using mongoose for a "safeIfCurrent" style function? [20:36] AndreasMadsen: ningu: If I'm remembering mongodb should support multiply connections [20:36] TheFuzzball has joined the channel [20:37] NewCoder has joined the channel [20:37] ningu: AndreasMadsen: yes, the question isn't whether it supports multiple connections but how you deal with it as an app writer if two users modify the same record at once [20:37] jkridner__ has joined the channel [20:38] QaDeS: ok, seems to work. thanks everyone! [20:38] AndreasMadsen: ningu: Starting in 1.5.2, multi updates yield occasionally so you can safely update large amounts of data. If you want a multi update to be truly isolated (so no other writes happen while processing the affected documents), you can use the $atomic flag in the query expression. For example: [20:38] AndreasMadsen: ^ http://www.mongodb.org/display/DOCS/Updating [20:39] ningu: AndreasMadsen: cool, will read up on that [20:39] ningu: I guess the logic is all in mongo then [20:40] ningu: locking within node would be a big pain [20:40] ningu: if not impossible :) [20:40] igl1 has joined the channel [20:40] AndreasMadsen: ningu: Yeah, never used mongodb just looked it up in the docs. [20:41] ningu: what ORM do people use for SQL databases? [20:42] ningu: I see there's something called sequelize [20:42] tmike: ningu https://github.com/joyent/node/wiki/modules [20:42] zomgbie has joined the channel [20:42] \mSg has joined the channel [20:42] ningu: aha, awesome [20:42] ningu: that's better organized than just randomly searching toolbox.no.de [20:43] RobertoGiacobbo has joined the channel [20:45] krankguy has joined the channel [20:45] igl has joined the channel [20:45] jetienne has joined the channel [20:45] ningu: huh... all the ORMs seem tied to a particular database. [20:45] ekryski has joined the channel [20:45] ningu: well, mongo suits me fine in any case, but that's a bit odd. [20:46] timoxley: ningu https://github.com/1602/jugglingdb [20:46] iangreen_: I have a hard time finding "community favorite" packages for a given task, either through the modules list or through node-toolbox. [20:46] iangreen_: is anyone working on a cool new solution for this problem? [20:46] Nopik has joined the channel [20:46] timoxley: iangreen_ pester isaacs about it [20:47] dreamdust1 has joined the channel [20:47] tmike: It seems hard. There was talk of some sort of heuristic but it doesn't seem to have come about? [20:47] ningu: yeah, that's the only reason I asked here rather than googling [20:48] jmar777: it would be cool to see `npm install`'s for a given package over the last 30 days\ [20:48] iangreen_: Yeah, I'm not sure what the best way to do it is, especially given how fast node is moving right now. [20:49] trotter has joined the channel [20:49] iangreen_: jmar777: Agreed. Installs or github follows seem like good "popularity" shorthands. [20:49] tmike: github follows, commits, issue activity [20:49] igl1 has joined the channel [20:49] robo has joined the channel [20:50] tmike: If something hasn't had a commit in ages and there's a big queue of issues, it's probably a dud. [20:50] jmar777: iangreen_: ya, i like follows as well. we just need something that gives newcomers a chance though... so some sort of a time frame taken into consideration [20:50] iangreen_: jmar777: True, follows build over time so that should be taken into account. [20:50] rgl has joined the channel [20:50] jmar777: could be that something has more installs 10:1 in the last month over an old favorite, but grand totals wouldn't show that [20:51] igl1 has joined the channel [20:51] ningu: so far I've found a lot of good stuff just poking around on github [20:51] ningu: but not everything [20:51] ningu: or just googling nodejs + foo [20:52] jmar777: ya, ditto. i just check out followers, issues, and recent commits [20:52] pradeebv has joined the channel [20:53] iangreen_: ningu: Yeah, I just shorten the steps by github-searching instead of googling :) [20:53] dreamdust has joined the channel [20:53] igl has joined the channel [20:54] iangreen_: ningu: But so far the pattern is that I end up looking through 15-50 projects, and then a month later find out that I somehow missed the clear favorite. [20:54] EhevuTov has joined the channel [20:55] mcluskydodallas has joined the channel [20:56] fomatin has joined the channel [20:57] iangreenleaf: Well, if anyone decides to fork node-toolbox or build a new one, let me know. I may not contribute, but I'd at least like to follow your progress :) [20:57] igl has joined the channel [20:57] johnmdonahue has joined the channel [20:58] teadict: so, I'm using director to create these 5 single-pages in this app, right? works great and I understand it and already applied it... now, in the silly example from the repo it just hides and shows different
s using jquery for each route... apps are more complex than that so my question is, in relation to the loading/rendering of each of my single-pages, what is a nice way to perform that loading of each single-page (keeping in mind t [20:58] teadict: I know it's client side question but y'know.. [20:59] igl1 has joined the channel [20:59] jtsnow has joined the channel [20:59] Chel has joined the channel [20:59] gut4 has joined the channel [21:00] teadict: do I just start dumping loading and rendering functions inside each director route handler? [21:00] j0br has joined the channel [21:00] teadict: or is there a more organizaned and clean way? [21:01] illourr has joined the channel [21:02] phoenixz has joined the channel [21:02] phoenixz has joined the channel [21:03] teadict: maxogden: you around? [21:04] samuelgo1dwin has joined the channel [21:04] tmcw has joined the channel [21:05] Renegade001 has joined the channel [21:06] cyphase has joined the channel [21:07] Chel: question can anyone say me why in my peace of code out is undefined after callback exit ? [21:07] Chel: http://pastebin.com/cQWcXLkY [21:07] tttthet has joined the channel [21:07] imsky has joined the channel [21:08] EhevuTov: .. var out = Object; typeof out; [21:08] catb0t: "function" [21:09] tyfighter has joined the channel [21:09] nathanielk: var out = {} [21:09] teadict: .. var in = function() {}; typeof in; [21:09] catb0t: Exception: SyntaxError: Unexpected token in [21:09] teadict: wat [21:09] nathanielk: and i don't think collection.find() is synchronous [21:10] EhevuTov: is 'in' a keyword? [21:10] jesusabdullah: yes [21:10] nathanielk: affirmative [21:10] jesusabdullah: .. for (n in [1,2,3,4,5]) { console.log(n); } [21:10] catb0t: Exception: ReferenceError: console is not defined [21:10] jesusabdullah: wah wah wahhhhh [21:11] nathanielk: if ('hi' in {'hi':'there'}) { } [21:11] nathanielk: .. 'hi' in {'hi':'there'} [21:11] catb0t: true [21:11] nathanielk: thank you catb0t [21:11] catb0t: thank you [21:11] jesusabdullah: there we go! [21:11] jesusabdullah: ha! ha! [21:11] Chel: nathanielk: [21:11] nathanielk: ? [21:12] Chel: yes i think collection.find is not synchronous imo [21:12] criswell has joined the channel [21:12] nathanielk: Chel: assuming mongodb native driver, anyway :) [21:13] Chel: so nathanielk how can i get my vars to a function upper ? [21:13] rrjamie_ has joined the channel [21:14] nathanielk: Chel: i'm honestly not sure what that code is supposed to be doing :/ [21:15] nathanielk: but typically you'd pass a callback to collection.find() [21:15] Chel: i want to get 2 records from my collection and pass a result to a view file [21:15] Chel: nathanielk: yes i can use callback in find() but sorting is unavailable in this case [21:16] nathanielk: read the docs here [21:16] nathanielk: https://github.com/christkv/node-mongodb-native [21:16] nathanielk: it should clear some things up [21:17] jstash has joined the channel [21:17] ricedog has joined the channel [21:19] EhevuTov: Chel, did you figure out your problem yet? [21:19] kevinohara80 has joined the channel [21:20] looopy has joined the channel [21:20] EhevuTov: Chel, are you sure that if(doc) is firing? [21:20] mAritz: .. test = []; for (n in [1,2,3,4,5]) { test. }; test [21:20] catb0t: Exception: SyntaxError: Unexpected token } [21:20] mAritz: woops [21:20] mAritz: .. test = []; for (n in [1,2,3,4,5]) { test.unshift(n) }; test [21:20] catb0t: [ "4", "3", "2", "1", "0" ] [21:20] mAritz: .. test = []; for each (n in [1,2,3,4,5]) { test.unshift(n) }; test [21:20] catb0t: Exception: SyntaxError: Unexpected identifier [21:21] phoenixz has joined the channel [21:21] phoenixz has joined the channel [21:21] mAritz: ohhh, no 1.6 [21:21] yawNO: hey mAritz [21:21] yawNO: :D [21:21] mAritz: AHHH [21:21] mAritz: ACTION runs away [21:21] dawolf: what happened to https://github.com/joyent/node/wiki/Installation ? [21:21] mAritz: ACTION left #node.js. [21:21] matt_c has joined the channel [21:21] Vespakoen has joined the channel [21:22] dawolf: looks like the install guide on github is gone or did i miss something? [21:22] redir has joined the channel [21:22] nathanielk: dawolf: [21:22] nathanielk: https://github.com/joyent/node/wiki/_history [21:23] nathanielk: 15 hours ago "Destroyed Building and Installing Node.js (markdown) [974eda9]" [21:23] nathanielk: looks that way [21:24] yawNO: mAritz: shut up and look @ my mug -> http://is.gd/pd3kSu [21:24] Chel: EhevuTov: sure, if(doc) is firing [21:24] yawNO: :3 [21:24] yawNO: i bet you're jealous now [21:25] mAritz: lol, no [21:25] yawNO: okay (._. ) [21:25] yawNO: i bought it in Munich [21:25] mAritz: my sister gave me a world of warcraft mug for christmas [21:25] mAritz: i hate wow with a passion [21:25] yawNO: me too [21:26] yawNO: it makes me feel like i have no social life [21:26] yawNO: even though i do [21:26] yawNO: (no offense) [21:26] mAritz: i'm not really the patriotic kind ;) [21:26] yawNO: neither am i [21:26] yawNO: im italian :| [21:26] yawNO: how i'm i supposed to be a german patriot? [21:26] mAritz: don't get me wrong, germany is awesome and if i could, i wouldn't want to leave. but i'm not gonna buy mugs with some antique german font/imagery. [21:26] mcluskydodallas has joined the channel [21:26] yawNO: cuz you're german. [21:27] yawNO: anyway ok [21:27] yawNO: but i like my mug ;_; [21:27] yawNO: and i'm off [21:27] yawNO: bye guys [21:27] mAritz: oh well. does it have +90 agility? NO [21:27] yawNO: WAT? [21:27] mAritz: n8 [21:27] yawNO: n8? [21:27] mAritz: night [21:27] mAritz: :x [21:27] yawNO: it's 10:30 pm [21:27] damienkatz has joined the channel [21:27] yawNO: night's about to start, man [21:28] mAritz: hey, where's that dude who's gonna tell us to stop spamming already? [21:28] yawNO: \ò\ [21:28] yawNO: guess he got perma-spammed to death [21:28] yawNO: PARTY TIL YOU DROP [21:28] yawNO: my mug does have +90 potter though [21:29] yawNO: cya [21:29] boccato has joined the channel [21:29] damienkatz has left the channel [21:30] kranklin has joined the channel [21:31] blubberbob has joined the channel [21:32] Axsuul has joined the channel [21:32] diogogmt has joined the channel [21:32] xelor has joined the channel [21:32] joshwines has joined the channel [21:32] gr4yscale has joined the channel [21:32] xelor: can someone show me an example of parameters being passed to node.io's postHtml() function? [21:33] xelor: did node.io inherit postHtml() from another module? [21:33] EhevuTov: Chel, what do you get when you add a 'typeof doc.value.usd' around like 8 [21:33] EhevuTov: line [21:34] serby has joined the channel [21:34] matt_c has joined the channel [21:35] StanlySoManly has joined the channel [21:35] vguerra has joined the channel [21:37] CrypticSwarm has joined the channel [21:37] hackband has joined the channel [21:39] flagg0204 has joined the channel [21:40] phoenixz has joined the channel [21:40] phoenixz has joined the channel [21:41] mAritz: xelor: why not look at the code of node.io? :) [21:41] McMAGIC--Copy has joined the channel [21:43] xelor: mAritz, i cant tell the format of the parameters by looking at the code [21:43] Chel: EhevuTov: i solved with another peace of code [21:44] EhevuTov: chel, does it look much different? I'd like to know what you did [21:47] mAritz1 has joined the channel [21:48] tommyvyo has joined the channel [21:49] bindr has joined the channel [21:49] jimmysparkle has joined the channel [21:50] warz has joined the channel [21:50] warz has joined the channel [21:50] mehlah has joined the channel [21:50] samuelgoodwin has joined the channel [21:51] sarlalian has left the channel [21:51] Crowb4r has joined the channel [21:52] Chel: EhevuTov: http://pastebin.com/H1dZDc4c [21:53] CIA-102: node: 03Brian White 07master * r5e3ca98 10/ lib/querystring.js : Make QueryString.parse() even faster - http://git.io/rYt4Fg [21:53] isao has joined the channel [21:54] EhevuTov: Chel, oh I see. Thank you. [21:56] Chel: EhevuTov: maybe you know what i did wrong with previous approach ? [21:56] EvRide1 has joined the channel [21:56] EhevuTov: I was trying to get there, but I don't know why [21:57] pastak has joined the channel [21:59] felixhummel has joined the channel [21:59] Wizek has joined the channel [22:01] joshgillies has joined the channel [22:01] nicki9knuckles has joined the channel [22:04] isao has joined the channel [22:05] JJMalina has joined the channel [22:08] carlyle has joined the channel [22:09] brianseeders has joined the channel [22:10] bulatshakirzyano has joined the channel [22:12] StanlySoManly has joined the channel [22:12] michaelhartau has joined the channel [22:15] zomgbie has joined the channel [22:18] pastak has joined the channel [22:18] hellp has joined the channel [22:19] Epeli has joined the channel [22:21] kwmiebach has joined the channel [22:21] enmand has joined the channel [22:21] h4mz1d has joined the channel [22:25] bradleymeck has joined the channel [22:26] mschneider has joined the channel [22:27] edjafarov has joined the channel [22:29] jldbasa has joined the channel [22:30] Skyjoker has joined the channel [22:30] rauchg has joined the channel [22:31] carlyle has joined the channel [22:31] willwhite has joined the channel [22:32] willwhite has joined the channel [22:32] tonymilne has joined the channel [22:34] criswell has joined the channel [22:34] rt7 has joined the channel [22:37] joshsmith has joined the channel [22:38] fatjonny has joined the channel [22:38] ubernoob has joined the channel [22:38] ubernoob: heyo [22:38] salva has joined the channel [22:39] ubernoob: does anyone know if it is possible to connect/communicate to a node.js server from a vb.net application? [22:39] boccato has joined the channel [22:39] flagg0204 has joined the channel [22:41] pradeebv has joined the channel [22:41] niklasfi has joined the channel [22:42] ubernoob: does anyone know if it is possible to connect/communicate to a node.js server from a vb.net application? [22:43] JohnFoo has joined the channel [22:43] thefoobar has joined the channel [22:43] mraxilus has joined the channel [22:44] JohnFoo: Hi everyone [22:44] ubernoob: hello [22:44] wankdanker: ubernoob: absolutely [22:44] wankdanker: ubernoob: i can't offer anthing more than that [22:45] ubernoob: wankdanker: np, thanks for the info [22:45] JohnFoo: I'm a little bit confused about the async thing in node. I have to get, I say 3 views from a couchdb. [22:45] thefoobar: hi, i am trying to get node_mysql to work, however I always get an ECONNREFUSED error (http://dpaste.com/706549/). the backtrace is not really helpful. i am 100% sure, i have the right username + password. what can i do [22:46] JohnFoo: Do I have to put every request in the callback of the other one? [22:46] davidbanham: thefoobar: That's not a username/password issue, looks like the network connection is being rejected. Can you access the database from that machine with the mysql command line client? [22:46] carlyle has joined the channel [22:47] wankdanker: JohnFoo: there are libraries that help managing callbacks, try https://github.com/caolan/async [22:47] zomgbie has joined the channel [22:47] thefoobar: davidbanham: yes. ohh no. i think i know what the problem is… [22:47] davidbanham: JohnFoo: That's one way of doing it. Another would be to have an event listener that listens for the "finish" event of the couch call and only goes on and does stuff when it's received 3 [22:48] patcito has joined the channel [22:49] JohnFoo: Ok, thank you for your input.... I'll read on, try the two ways... [22:49] thefoobar: davidbanham: thanks. it was that I was telling the mysql server to bind on the wrong address. the console client still worked, because it was using a local socket [22:49] theBrettman has joined the channel [22:50] davidbanham: thefoobar: No worries! [22:51] rickibaloba` has joined the channel [22:52] sandfox has joined the channel [22:52] briancray has joined the channel [22:55] patcito has joined the channel [22:56] ricedog has joined the channel [22:56] logickal has joined the channel [22:58] djbell has joined the channel [23:00] krucial has joined the channel [23:00] pastak has joined the channel [23:00] stonebranch has joined the channel [23:01] richardr_ has joined the channel [23:01] flagg0204 has joined the channel [23:02] tilgovi has joined the channel [23:02] tilgovi has joined the channel [23:03] kickingvegas has left the channel [23:03] dimdm has joined the channel [23:04] carlyle has joined the channel [23:07] mikeal has joined the channel [23:07] mschneider has joined the channel [23:08] fsargent_ has left the channel [23:09] criswell has joined the channel [23:10] reid has joined the channel [23:11] samuelgoodwin has joined the channel [23:12] looopy has joined the channel [23:12] shinuza has joined the channel [23:13] hipsterslapfight has joined the channel [23:15] indexzero has joined the channel [23:15] RyanD has joined the channel [23:16] skm has joined the channel [23:17] ckknight has joined the channel [23:17] murvin has joined the channel [23:18] ckknight has joined the channel [23:18] tkahn6_ has joined the channel [23:18] Mezriss: can anyone remind me where can I get latest version of "n"? search on github doesn't help [23:18] pokoli has joined the channel [23:19] ramitos has joined the channel [23:20] ningu: n? [23:20] isaacs: Mezriss: npm docs n [23:20] Xedecimal has joined the channel [23:21] dunder-mifflin has joined the channel [23:22] mandric has joined the channel [23:22] lzskiss has joined the channel [23:22] Xedecimal: I created a multicast datagram packet (now that node has my multicast features!) and all was working wonderful until I attempted to send two packets very quickly. It'll die with a "addMembership EINVAL" . I was starting to think maybe I couldn't add to the membership because something didn't unload on a previous run, but a single 'send' call goes through great! I made a callback on the send... [23:22] Xedecimal: ...and pushed into an array of outputs and shifted out messages per-callback until the buffer was empty, but the second send once again kills it, do I need to do something between sends ? [23:23] Xedecimal: all the examples I've read so far on the node site only show sending a single packet and then closing the connection [23:24] murvin: if I use express and do this app.createServer( whatever() ) if in runtime, whatever() throw errors , like this: next(error) where is the error got caught? is it in app.error? or process.on("uncaughtExcpetion") [23:27] heavysixer has joined the channel [23:27] andrehjr has joined the channel [23:27] masm has joined the channel [23:27] RobWC1 has joined the channel [23:28] Mezriss: thanks, for some reason I've forgot that it was in npm [23:29] mcluskydodallas has joined the channel [23:31] dunder-mifflin has left the channel [23:31] CIA-102: node: 03isaacs 07master * r27d8b05 10/ (src/node.js test/simple/test-stdin-hang.js): [23:31] CIA-102: node: Pause process.stdin in stdin getter [23:31] CIA-102: node: Otherwise, it'll be ref'ed, and keep the process hanging. - http://git.io/2QQUqQ [23:31] isaacs: SubStack: ^ [23:31] wankdanker: Xedecimal: I don't have an answer to your specific question, but I wrote a module that uses multicast https://github.com/wankdanker/node-discover [23:32] CIA-102: node: 03isaacs 07v0.6 * r634b4de 10/ (src/node.js test/simple/test-stdin-hang.js): [23:32] CIA-102: node: Pause process.stdin in stdin getter [23:32] CIA-102: node: Otherwise, it'll be ref'ed, and keep the process hanging. - http://git.io/_1e6OQ [23:32] wankdanker: Xedecimal: feel free to look it over, especially in lib/network.js to see what I'm doing different. I don't close connections and I send many packets [23:32] brianseeders has joined the channel [23:32] Xedecimal: I just realized I send 6 packets rapid fire fine, it's only after that first group that I start the next group does it give me trouble [23:32] Mezriss: even after some kind of update amazon's linux keeps doing some strange kernel thingy when I try to use 0.5+ node [23:33] Xedecimal: (reading your soruce) [23:33] igl has joined the channel [23:33] wankdanker: Xedecimal: are you re-addMembership()ing? [23:33] reid has joined the channel [23:33] reid has joined the channel [23:34] Mezriss: isaacs: I'm sorry to waste your time, but can you check this error log? http://pastebin.com/v7E0vntX I've asked here before, but didn't get much help [23:34] Xedecimal: I didn't think it could be that obviously stupid.... It was [23:34] Xedecimal: that's sure embarrassing [23:34] BillyBreen has joined the channel [23:35] isaacs: Mezriss: i have no idea what that is. [23:35] isaacs: Mezriss: first, i saw a cat on a computer. then i refreshed and saw something even less intelligible. [23:35] isaacs: Mezriss: what's kernel:[6284991.180261] Code: 8d 74 26 00 8b 06 c7 46 08 00 00 00 00 e8 32 4c f 7 ff 8b 56 04 83 fa ff 74 a3 8d 46 10 e8 22 7b 00 00 c7 46 04 00 00 00 00 eb 92 <0f> 0b eb fe 90 8d 74 26 00 55 89 e5 83 ec 14 89 7d fc 89 c7 a1 [23:35] wankdanker: Xedecimal: no worries. happens to everyone. :) [23:35] skyler_brungardt has joined the channel [23:35] verdoc has joined the channel [23:35] isaacs: Mezriss: maybe try using node 0.6.11? [23:36] slickplaid: How can I use intermediate CA certificates in an https server? [23:36] st_luke has joined the channel [23:36] pgherveou has joined the channel [23:37] slickplaid: I'm getting a ` Verify return code: 21 (unable to verify the first certificate)` error when attempting to use my signed ssl certificate :-/ [23:37] samuelgoodwin has joined the channel [23:39] Mezriss: that happened when I've used 0.6.4 and some versions of 0.5.x. I'd like to give more information, but that's all I get after a launch of any script with anything newer than 0.4.x (also 100% cpu load for a minute or two) [23:40] Mezriss: I'll try 0.6.11, maybe it will work [23:40] rrjamie has joined the channel [23:40] tlab has joined the channel [23:40] rrjamie: Heyo, I'm debugging an issue, and I think it has something to do with the node-core file lib/tls.js… How can I edit these files so I can sprinkle some debug messages? [23:41] richardr has joined the channel [23:41] Andy1991 has joined the channel [23:42] konobi: rrjamie: use the debugger? [23:42] igl1 has joined the channel [23:43] Andy1991: #php [23:43] rrjamie: let see if that works, this issue only appears on windows, hopefully the command line is too awful to use [23:43] Andy1991: oops meant /j [23:43] Andy1991: sorry :$ [23:45] whaley has joined the channel [23:45] Mezriss: rrjamie: you might be interested in this https://github.com/dannycoates/node-inspector [23:45] adrianF has joined the channel [23:46] rrjamie: Mezriss: I looked at that… until I couldn't figure out how to get a process ID on windows :) [23:46] copongcopong has joined the channel [23:47] dimdm_ has joined the channel [23:47] pizthewiz has joined the channel [23:47] mrkurt has joined the channel [23:48] rrjamie: Mezriss: actually, that' works [23:49] Mezriss: you probably will not need it if you'll choose to launch your script fith debug flag, but then again, I didn't really use it on windows [23:49] Mezriss: by it I've meant process ID [23:53] st_luke has joined the channel [23:53] samuelgoodwin has joined the channel [23:54] aristidesfl has joined the channel [23:55] johannkerr has joined the channel [23:56] diogogmt has joined the channel [23:56] Vertice has joined the channel [23:57] johannkerr has left the channel [23:57] kenperkins has joined the channel [23:57] igl has joined the channel