[00:02] andrewfff has joined the channel [00:02] kriszyp has joined the channel [00:02] Tobsn: einaros, https://github.com/pgriess/node-websocket-client [00:02] Tobsn: https://github.com/joyent/node/wiki/modules#wiki-ws-ajax [00:05] AAA_awright: Let's suppose I wanted to write a chat client in a terminal interface. Do I re-implement everything with curses or whatever libs are available, or do I fork irissi? [00:05] cronopio has joined the channel [00:06] thisandagain has joined the channel [00:07] russfrank: AAA_awright: rewrite it, forking irssi doesnt sound like fun [00:07] AAA_awright: Know of any good terminal UI libraries? [00:07] russfrank: curses! [00:07] AAA_awright: For Node.js? [00:08] russfrank: https://github.com/mscdex/node-ncurses [00:08] AAA_awright: Hm writing curses for Node.js doesn't sound fun [00:08] russfrank: https://github.com/SchizoDuckie/Node-CLI/ [00:08] russfrank: this looks nice [00:08] AAA_awright: (blocking-)C sounds better [00:08] russfrank: someone already did a node curses wrapper! [00:09] [[zz]] has joined the channel [00:10] AAA_awright: I don't have a web browser, I'm in that ackward state where Gentoo has unmerged libv8 but hasn't finished compiling chromium [00:10] shedinja has joined the channel [00:10] jj0hns0n has joined the channel [00:11] trodrigues: whoa, people still use gentoo? (not trolling, honest question) [00:11] shedinja: hello, when I run code with the vm module, how can I stop it from running? if for example I run a server on it [00:11] darshanshankar has joined the channel [00:11] Wizek has joined the channel [00:11] Tobsn: is someone using 4sq or yelp api? just for data stuff from the server not for auth [00:12] AAA_awright: trodrigues: I run my desktop and three servers on it [00:12] maletor has joined the channel [00:12] russfrank: AAA_awright: elinks! [00:12] AAA_awright: I do have that [00:12] pixel13 has joined the channel [00:12] pixel131 has joined the channel [00:13] AAA_awright: Except "This version of Links does not contain SSL/TLS support" [00:13] AAA_awright: -_- [00:13] AAA_awright: Stop redirecting me to https, GitHub [00:13] trodrigues: but it's still in very widespread usage? [00:13] trodrigues: i haven't heard about someone actually using it in...years i'd say [00:13] AAA_awright: If there were a MITM attack redirecting to HTTPS in plaintext isn't going to help you [00:14] AAA_awright: trodrigues: It's one of the biggest channels on Freenode [00:14] AAA_awright: #gentoo has 876 users, I think it's #3 [00:14] trodrigues: well, given it's nature doesn't surprise me :) [00:15] trodrigues: i would always expect more questions from gentoo users than ubuntu users [00:15] AAA_awright: Heh [00:15] pixel13 has joined the channel [00:15] pixel131 has joined the channel [00:17] joshthecoder has joined the channel [00:18] dominictarr has joined the channel [00:21] russfrank: really? [00:21] russfrank: trodrigues: I wouldn't [00:21] russfrank: if you use gentoo you're probably not a total retard [00:21] pandeiro has joined the channel [00:22] Tobsn: can someone explain me why i would do this: blah.get( 'url', [auth] ); function auth(){} why is the auth in [] ? [00:22] deedubs: SUBSTACK: Did you see that sp from testling I posted earlier? [00:22] lzskiss: and the crucnchbang users?:D [00:22] SUBSTACK: nope [00:22] russfrank: Tobsn: looks like the routine takes an array [00:22] Tobsn: oooooh [00:23] Tobsn: lol. [00:23] Tobsn: thanks [00:23] russfrank: np ;P [00:23] Tobsn: i was like "wtf is this [] around it?" [00:23] SUBSTACK: deedubs: what is an sp [00:23] russfrank: haha [00:23] deedubs: spelling mistake [00:23] Tobsn: oh yes, now the next() makes sense [00:23] Tobsn: hahaha [00:23] deedubs: or just err ""You can just use tar use stdout for output so that"" [00:23] Tobsn: thanks man [00:24] SUBSTACK: deedubs: aha thanks [00:24] deedubs: np [00:28] SUBSTACK: deedubs: used testling much yet? [00:28] deedubs: not ye [00:28] deedubs: my prob is my app isn't even on a staging sever yet [00:28] SUBSTACK: ah [00:28] SUBSTACK: we should have tunnels ported over from browserling soon enough [00:28] deedubs: ah I was just going to ask :D [00:29] deedubs: right now I can see it being awesome for CI [00:29] mike5w3c has joined the channel [00:29] SUBSTACK: and also repls on demand [00:34] pandeiro has joined the channel [00:35] sineltor has joined the channel [00:36] k1ttty has joined the channel [00:37] cody-- has joined the channel [00:37] zikes has joined the channel [00:37] Tobsn: hmm was there a foreach for objects in node? [00:37] SUBSTACK: Object.keys(obj).forEach(function (key) {}) [00:38] Tobsn: aaah [00:38] Tobsn: thanks [00:38] jaekwon has joined the channel [00:38] jaekwon: how do i introspect the file location for a node.js module? [00:38] jaekwon: is this possible? [00:38] deedubs: __dirname? [00:39] deedubs: oh wait from outside the module? [00:39] jaekwon: what does that mean? [00:40] jaekwon: i think __dirname is what i want (thanks!) [00:40] jaekwon: oh [00:40] jaekwon: yeah, how is it possible outside the module? [00:40] jaekwon: what i really want is relative directories [00:40] jaekwon: where is this module relative to that one [00:41] brianseeders has joined the channel [00:42] xerox: jaekwon: require.lookup [00:42] xerox: uhm or something like that [00:42] jaekwon: ok thank you, i'll look up lookup [00:43] xerox: yes, that [00:43] xerox: ah no [00:43] xerox: require.resolve :D [00:46] Tobsn: var lv1='level1',lv2='level2'; var funcs = { level1:{level2:function(){}}}; how can i execute that based on the lv1 lv2? funcs[lv1] seems to still work but how do i get the function on level2? [00:46] wrongle has joined the channel [00:48] darshanshankar has joined the channel [00:49] Tobsn: ah got it [00:49] vicapow_ has joined the channel [00:49] Tobsn: funcs[lv1][lv2] [00:49] Tobsn: pretty obvious [00:49] darshanshankar has joined the channel [00:53] jaekwon: does node have an __init__.py equivalent? [00:55] johnjohn101 has joined the channel [00:55] johnjohn101: node working with sql server? [00:56] aeo: Okay. [00:56] aeo: FATAL ERROR: JS Allocation failed - process out of memory [00:56] lzskiss: which sql server? ms? [00:56] aeo: This is definitely not a slow leak. [00:56] luke` has joined the channel [00:56] aeo: I tried to connect to my server, then I tried to connect again. [00:57] mike5w3c has joined the channel [00:58] thisandagain has joined the channel [00:58] xerox: jaekwon: what's an __init__.py ? [00:58] davidascher has joined the channel [01:00] ryanfitz has joined the channel [01:01] lyte has joined the channel [01:01] lyte has joined the channel [01:01] AAA_awright: jaekwon: What are you trying to do? [01:04] bartt has joined the channel [01:05] jaekwon: when i say MYAPP = require('myapp'), where myapp/ is a directory with .js files in it, i want MYAPP to have key-values that are initialized in an an __init__.js file that lives in the myapp/ directory [01:06] asliwinski has joined the channel [01:06] aeo: Oh, hmm [01:06] aeo: It turns out I use new Date().getTime() [01:06] tuhoojabotti: I use that too. [01:06] aeo: each time I get a time. [01:06] tuhoojabotti: Yes [01:06] aeo: Do you think that could be a memory leak? [01:06] tuhoojabotti: It's awesome [01:06] tuhoojabotti: No? [01:06] aeo: (My app is getting memory errors) [01:06] tuhoojabotti: GC should handle that. [01:06] aeo: Yeah, that's what I thought [01:07] aeo: Although I'm disturbed we need a garbage collector just to get a time. [01:07] tuhoojabotti: I haven't got any problems with memory, though I do use that. [01:07] AAA_awright: jaekwon: The documentation specifies how it searches for files to load, if you specify a directory, it'll look for an index.js file to load, which itself could be a symlink to another file [01:08] AAA_awright: Because generally you want to name your files as your module name, lib/myapp.js, lib/index.js -> myapp.js [01:09] jaekwon: yay [01:09] jaekwon: thank you! [01:09] AAA_awright: double-underscores in Javascript mean a vendor-specific implementation btw [01:09] joh_ has joined the channel [01:09] joh_: can node.js generate a page showing the latest file to be uploaded on a server? [01:10] russfrank: probably! [01:10] jaekwon: yes it can. [01:10] russfrank: you might need to write some code [01:10] jaekwon: or code to write some code [01:11] pixel13 has joined the channel [01:16] zemanel has joined the channel [01:18] lyte has joined the channel [01:18] mjr_ has joined the channel [01:19] maqr has joined the channel [01:27] wrongle has joined the channel [01:39] monokrome has joined the channel [01:41] thisandagain has joined the channel [01:42] gavin_huang has joined the channel [01:44] rayfinkle has joined the channel [01:49] Spion has joined the channel [01:50] asliwinski has joined the channel [01:50] amiller has joined the channel [01:51] stepheneb has joined the channel [01:52] mike5w3c has joined the channel [01:52] thisandagain has joined the channel [01:54] jimt has joined the channel [01:54] BrokenEnso has joined the channel [01:55] BrokenEnso has left the channel [01:56] brimster_ has joined the channel [01:56] mike5w3c_ has joined the channel [01:56] JakeyChan has joined the channel [01:58] kriszyp has joined the channel [01:59] jimt_ has joined the channel [01:59] zilch_ has joined the channel [02:01] lyte has joined the channel [02:01] lyte has joined the channel [02:03] johnjohn101: lzskiss: yes, I want to use node.js on a windows box and access sql server (m$). [02:07] lyte has joined the channel [02:11] thisandagain has joined the channel [02:14] guillermo has joined the channel [02:17] ryanfitz has joined the channel [02:18] JakeyChan has joined the channel [02:18] mfussy has joined the channel [02:19] pauls has joined the channel [02:20] broofa has joined the channel [02:21] Transformer has joined the channel [02:22] dthompso991 has joined the channel [02:25] sharkbird has joined the channel [02:25] iFire has joined the channel [02:26] mike5w3c has joined the channel [02:26] zilch_ has joined the channel [02:26] sineltor has joined the channel [02:28] dthompso99 has joined the channel [02:28] jarek has joined the channel [02:28] jarek has joined the channel [02:28] Nuck: ACTION yawns [02:29] Nuck: Exhausting day. [02:29] Nuck: That art gallery at Stanford is way bigger than it looks [02:30] tuhoojabotti: And I did some raycasting [02:30] Nuck: I can't wait for the bay area to become boring and mundane for me [02:31] neoesque has joined the channel [02:32] iFire has joined the channel [02:36] ej_ has joined the channel [02:41] lyte has joined the channel [02:41] lyte has joined the channel [02:41] voodootikigod_ has joined the channel [02:41] voodootikigod_: anyone know if NPM handles private modules [02:42] voodootikigod_: attempted: http://debuggable.com/posts/private-npm-modules:4e68cc7d-1ac4-42d9-995a-343dcbdd56cb [02:42] voodootikigod_: but it keeps returning 404 cannot find [02:43] Aria: what do you mean by private module? [02:43] Aria: Like direct URL links? [02:43] daithi44 has joined the channel [02:44] Nuck: You can aim NPM at a git repo and say "go fetch! [02:44] Nuck: npm install git:// and so on [02:46] boltR has joined the channel [02:46] kriszyp has joined the channel [02:47] jarek__ has joined the channel [02:49] Squeese has joined the channel [02:51] franciscallo has joined the channel [02:51] gxdssoft has joined the channel [02:52] voodootikigod_: trying that [02:52] voodootikigod_: but its not working [02:53] voodootikigod_: ahh [02:53] voodootikigod_: circular reference [02:53] voodootikigod_: cool [02:53] voodootikigod_: figured it out [02:53] voodootikigod_: thanks [02:53] ceej has joined the channel [02:53] kriszyp has joined the channel [03:01] aaronblohowiak has joined the channel [03:01] Corren has joined the channel [03:02] voodootikigod_ has joined the channel [03:04] ryanallenbobcat has joined the channel [03:06] cjm has joined the channel [03:07] kriszyp has joined the channel [03:09] AAA_awright: Nuck: alias 'npm install'='git clone' [03:10] AAA_awright: I keep wondering why we have npm in a world of git submodules [03:10] AAA_awright: Especially when we can get rid of the central repository [03:11] a_meteorite: AAA_awright: npm can clone repos [03:11] AAA_awright: hi a_meteorite [03:11] AAA_awright: What's the point of npm duplicating git then? [03:12] a_meteorite: it's providing dependency tracking for free [03:12] a_meteorite: and version management [03:12] aaronblohowiak: AAA_awright: have you used a lot of git submodules? [03:12] a_meteorite: at least I'm 99% sure you can have it clone from a repo [03:12] AAA_awright: I swear one day I'm gonna write a better build system and it's going to profile build times and report percentages complete [03:12] a_meteorite: I can't find out how.. [03:13] a_meteorite: bbl [03:13] AAA_awright: aaronblohowiak: Yeah [03:13] aaronblohowiak: AAA_awright: i've found them clunky and less convenient. [03:13] deedubs: Everything somehow always went sideways on me when I started using git submodules heavily. That was a while ago though, haven't tried lately [03:13] AAA_awright: It's pretty dead simple [03:14] AAA_awright: Compared to maintaining npm? [03:14] deedubs: who maintains npm? [03:14] deedubs: not me [03:14] tuhoojabotti: isaacs? [03:14] Corren has joined the channel [03:14] deedubs: (I know who maintains npm) [03:14] AAA_awright: git clone --recursive and you're done [03:15] deedubs: alright. convince the masses [03:15] tuhoojabotti: Don't blame me. [03:15] jacobolus has joined the channel [03:15] tuhoojabotti: I have slept ~1hour in the last 48 [03:15] AAA_awright: git commit (updated submodule path) and you've upgraded your library version [03:16] dgathright has joined the channel [03:18] aaronblohowiak: AAA_awright: how does that work with multiple collaborators on the same project? [03:20] vidi has joined the channel [03:21] zilch_ has joined the channel [03:23] Aria: isaacs does maintain npm; npm is nice in that it works with dependency management. [03:25] Aria: Submodules can be hell, in that they point to specific revisions; sometimes that's what you want, but often you want something more human. [03:25] Aria: Also, not everyone uses git. [03:29] p1d has joined the channel [03:31] AAA_awright: Aria: Everybody uses git. Not everybody uses npm. [03:31] Brian` has joined the channel [03:31] AAA_awright: If you wanna work with Node.js that's kinda in the dependency list [03:31] Aria: Hehe. Not neccesarily. [03:31] Aria: .oO(Windows users.) [03:31] Aria: And most people use npm with node. Or a great deal. [03:32] AAA_awright: Even if they don't have to... It really is unnecessary, it really is [03:32] AAA_awright: I mean, I can make that case [03:33] coderdad has joined the channel [03:35] deedubs: If we can draw some parallels with other languages why does ruby have gem if they too could just use git submodules [03:35] Emmanuel` has joined the channel [03:35] AAA_awright: Ruby gems are stupid too, though mostly for the awful name [03:36] SUBSTACK: that hardly factors into it [03:36] Aria: Rubygems are also horrible because they have runtime dependencies. [03:36] AAA_awright: My wrath isn't for npm specifically but is a loathing for package managers and build systems in general [03:36] SUBSTACK: ruby gems are bad because everything is global and modifies the loading system [03:36] Aria: npm is the first one I've not had piss me off. [03:37] SUBSTACK: AAA_awright: you lose a lot of time managing dependencies that the package manager can handle for you [03:37] deedubs: AAA_awright: doesn't have a problem with a package manager usinf rm -fR /usr to uninstall packages. It's the idea of the package manager itself [03:37] WarheadsSE: never had serious problems with CPAN [03:37] AAA_awright: Actually there is one package manager I like, Portage [03:38] SUBSTACK: portage is the naturalistic fallacy of package managers [03:38] WarheadsSE: oh dear god hes a gentoo user.. [03:39] monokrome: At least it's not CentOS! [03:39] zkirill has joined the channel [03:39] Aria: Heh. I hate portage. But I hate most everything source-based most of the time. (Yay spending the CPU cycles to build the exact same package everyone else has! Only perhaps different in subtle and undefined ways.) [03:39] zkirill has left the channel [03:39] AAA_awright: Aria: Really? npm did nothing but cause problems for me... This was back when it installed everything globally, modified require.paths, and so on [03:39] AAA_awright: What bugged me was the coding [03:39] AAA_awright: I tried to hook into the API [03:39] AAA_awright: ... There is no API [03:39] AAA_awright: It's all runtime code [03:39] Emmanuel` has joined the channel [03:39] SUBSTACK: there is an api [03:40] Aria: Oh, well, yeh. That was the first draft. [03:40] Aria: npm now that it's all-local is an entirely different beast. [03:40] zkirill has joined the channel [03:40] SUBSTACK: I can't really take your criticisms seriously since you're complaining about issues that were solved a long time ago. [03:40] Aria: It's far less clever. [03:40] AAA_awright: Well there is an API, that's *running the command and providing command line argumetns to it, and parsing the text output* [03:40] SUBSTACK: AAA_awright: I've written 2 modules that use the npm api [03:41] AAA_awright: This was at least as of Nodejs 0.4 after a year of putting up with npm nonsense [03:41] Spion_ has joined the channel [03:41] Aria: Heh. That's right when it got good. [03:42] blueadept has joined the channel [03:42] blueadept has joined the channel [03:42] maletor has joined the channel [03:43] bluebit has joined the channel [03:43] metellus has joined the channel [03:43] WarheadsSE: ACTION waddles off, that discussions goind in circles.. [03:44] jeromegn has joined the channel [03:45] zkirill: When considering Node / server-side JS for developing a mission critical app, what are some things to keep in mind? [03:45] deedubs: your neckbeards will have no idea how to deploy/monitor it [03:45] bluebit has joined the channel [03:46] WarheadsSE: lol! true. [03:48] zkirill: deedubs: heh, what if JS is the language we're all most familiar with having come from various (Ruby/PHP/C/C++) backgrounds [03:48] deedubs: Did you deploy node.js apps while working in those languages? :) [03:48] zkirill: deedubs: nope [03:49] deedubs: there is rumor that node.js isn't very good at working with large data [03:49] AAA_awright: SUBSTACK: I should be able to run require('npm') anymore without having to set enviornment variables, create config files, or having any text output for any reason, or at the very least not before I call a method [03:50] deedubs: There aren't that many people that have lots of experience in it. So supplementing your team can be hard/costly [03:50] AAA_awright: (and if the config file doesn't exist it exit()s on you) [03:50] Aria: deedubs: V8 has a 1GB heap size limit in older versions. The newest (unstable) node uses the new version. [03:50] Aria: deedubs: But you need to parallelize anyway ;-) [03:50] deedubs: Aria: I know [03:51] AAA_awright: Aria: It's the subtle and undefined different ways that packages compile which is exactly why you compile them [03:51] AAA_awright: Which in any event there's things like ccache and distcc to handle the fact they're mostly similar [03:51] Aria: Heh. Repeatability is the essence of build and release management. I'm so not into subtle and undefined difference. [03:52] zkirill: deedubs: can we just call a C++ program if that becomes a problem? [03:52] zkirill: how easy is that to do [03:52] deedubs: zkirill: Those things being said node.js is awesome and I highly recommend at the very least experimenting with it in your stack [03:53] deedubs: or just go whole hog like we did [03:53] zkirill: whole hog? [03:53] deedubs: all the way [03:53] zkirill: ahh [03:54] deedubs: Whole hog: To do something as http://en.wiktionary.org/wiki/entirely or http://en.wiktionary.org/wiki/completely as possible; to http://en.wiktionary.org/wiki/reserve or http://en.wiktionary.org/wiki/hold_back nothing. [03:54] zkirill: i am def on board with JS/Node but I'm worried about running into something unforeseen [03:54] Aria: It's pretty solid. [03:54] dwasp has joined the channel [03:54] EhevuTov has joined the channel [03:54] deedubs: there are a lot of companies deploying on it [03:54] murz has joined the channel [03:54] deedubs: and the unsolved mysteries are being solved by these pioneers [03:55] deedubs: and thankfully open sourced [03:55] Corren has joined the channel [03:55] azeroth__ has joined the channel [03:55] murz: my socket.io client keeps disconnecting after almost exactly 25s every time. Is there some kind of timeout with socket.io or something?? [03:56] ninjapig has joined the channel [03:56] boehm has joined the channel [03:57] dwasp: using mongoosejs: I'm trying to do a find where 'name' matches a regex or tags in an array of potentials, but am having trouble coming up with the syntax, although I can run each individually [03:57] dwasp: help? http://pastie.org/2743493 [03:57] lmorchard has joined the channel [04:00] brianseeders has joined the channel [04:01] lyte has joined the channel [04:01] lyte has joined the channel [04:01] reid has joined the channel [04:03] Brian` has joined the channel [04:05] murz has left the channel [04:05] Corren has joined the channel [04:07] k1ttty has joined the channel [04:09] vidi has joined the channel [04:11] gcr has joined the channel [04:12] gcr: Hey! In 0.5.9pre, when module a does require('./lib/foo.js'), and when module b living in ./lib/ does require('./foo.js'), they get different objects! [04:12] gcr: this didn't happen in 0.4.12 [04:12] gcr: What gives? [04:16] jtsnow has joined the channel [04:17] thalll has joined the channel [04:20] gcr: oh wait, no it doesn't [04:20] gcr: what on earth~~ [04:21] rchavik has joined the channel [04:21] dmitrig01 has joined the channel [04:22] dnjaramba has joined the channel [04:24] MUILTFN has joined the channel [04:28] CarterL has joined the channel [04:29] tweetybyrd has joined the channel [04:29] tweetybyrd has left the channel [04:34] weirdpercent has joined the channel [04:35] nerdy has joined the channel [04:36] thisandagain has joined the channel [04:39] rchavik_ has joined the channel [04:40] weirdpercent: Hiya, I am having trouble with 'npm search.' I have done 'npm adduser' and 'npm whoami' shows a username, but I cant get a list of packages [04:42] Tobsn: anyone an idea which API (data) is better - 4sq or yelp? [04:42] russfrank: Tobsn: they provide different data? [04:42] Tobsn: yeah of course [04:43] russfrank: no i mean [04:43] russfrank: how is one supposed to compare them [04:43] Tobsn: well [04:43] Tobsn: which system holds in general MORE data is one and then as well which API gives you more data [04:43] Tobsn: as well as speed etc. [04:44] neerolyte has joined the channel [04:44] konobi: Tobsn: X Y Problem [04:44] Tobsn: yeah kinda [04:44] Tobsn: thats why im asking, maybe someone already tried both of them [04:45] weirdpercent: are problems with the package registry normal? or do I have something majorly miconfigured [04:45] Tobsn: weirdpercent, firewall? [04:45] Tobsn: iptables? [04:46] konobi: Tobsn: google for 'X Y Problem' [04:46] weirdpercent: maybe [04:46] Tobsn: so you saying yelp is better? ;) [04:47] konobi: i'm saying your question makes zero sense without context [04:48] Tobsn: oh [04:48] Tobsn: nah its just more of a broad question, im trying to offer geo location data to users [04:48] Tobsn: and was hoping someone says something like "yeah go with 4sq, they have more than just restaurants" [04:48] dmitrig01 has joined the channel [04:49] ryanfitz has joined the channel [04:49] Tobsn: and i tend to 4sq since they have events and all kinds of stuff but maybe someone says yelp is more detailed and if you use switch xy it will give you more than just restaurants [04:49] nyrb has joined the channel [04:50] konobi: *shrug* i wouldn't rely on either, but i don't use either service... so no idea [04:50] Tobsn: ;) [04:50] weirdpercent: how does one resolve firewall issues with node? it seems like a recipe for disaster [04:50] dhasenan_ has joined the channel [04:53] pongwon has joined the channel [04:56] lyte has joined the channel [04:56] lyte has joined the channel [04:59] Sicrus has joined the channel [05:00] aeo has left the channel [05:01] smathy has joined the channel [05:01] Sami_ZzZ has joined the channel [05:02] tilgovi has joined the channel [05:02] tilgovi has joined the channel [05:03] chilts: you don't resolve firewall issues with node, you use something more suited to the task [05:03] kab3wm has joined the channel [05:03] chilts: (whether that's iptables, ufw or whatever your preferred thing is) [05:04] brimster__ has joined the channel [05:05] dgathright has joined the channel [05:06] jimt has joined the channel [05:07] weirdpercent: I'm still having issues. http://paste2.org/p/1733814 [05:08] materialdesigner has joined the channel [05:08] CarterL has joined the channel [05:17] admin-_ has joined the channel [05:20] coderdad has joined the channel [05:21] dominictarr has joined the channel [05:22] thisandagain has joined the channel [05:25] loob2 has joined the channel [05:28] weirdpercent: ok something is preventing me from negotiating with the node package registry properly...every invocation of 'npm search -' gives me errors. [05:30] daithi44 has joined the channel [05:32] martin_sunset has joined the channel [05:36] deedubs has joined the channel [05:36] fangel has joined the channel [05:36] deedubs1 has joined the channel [05:43] dnjaramba has joined the channel [05:44] iFire has joined the channel [05:49] tmpvar has joined the channel [05:53] joshgillies has joined the channel [05:56] xi4oyin has joined the channel [05:56] cognominal___ has joined the channel [05:58] cognominal___ has joined the channel [06:00] _dc has joined the channel [06:02] gut4 has joined the channel [06:07] devongovett has joined the channel [06:10] blueadept has joined the channel [06:10] davidascher has joined the channel [06:10] Marak: lol, https://github.com/Marak/node-kiwf/ [06:12] enos_feedler has joined the channel [06:12] blueadept has joined the channel [06:12] blueadept has joined the channel [06:14] eddyb has joined the channel [06:15] hij1nx has joined the channel [06:15] digman543 has joined the channel [06:16] Faunus has joined the channel [06:18] Corren has joined the channel [06:23] dnjaramba has joined the channel [06:24] okuryu has joined the channel [06:26] dominictarr has joined the channel [06:26] sineltor has joined the channel [06:31] eddyb: if any node.js devs are here... any reason why you wrote uv in C and not C++? [06:37] _eddyb_ has joined the channel [06:37] _eddyb_ has joined the channel [06:38] digman544 has joined the channel [06:48] Frippe has joined the channel [06:49] eddyb: hmm, getting an error here: http://pastebin.com/D0BPbrMz [06:49] eddyb: I suppose gyp is not very functional yet :) [06:50] Qbix2 has joined the channel [06:50] eddyb: oops, forgot to call configure [06:50] wilmoore has joined the channel [06:50] eddyb: shouldn't Makefile assert that? [06:55] Raven has joined the channel [06:56] Raven: hey [06:56] ninjapig has joined the channel [07:01] aliem has joined the channel [07:06] matyr has joined the channel [07:12] gut4 has joined the channel [07:17] __doc__ has joined the channel [07:23] gkmngrgn has joined the channel [07:24] Morkel has joined the channel [07:26] a_meteorite: Could anyone take a look at my code? I'm scratching my head at this max call stack error [07:26] a_meteorite: It's probably my fault, it's not much code [07:27] a_meteorite: http://pastebin.com/06tL1yAG and http://pastebin.com/P0bWZi1t [07:28] a_meteorite: Client.prototype._on_data has a this.emit which causes this error: http://pastebin.com/yTwv0C26 [07:29] a_meteorite: (yes, I know I can do pipe, this is the beginning's of a protocol I'm working on) [07:29] a_meteorite: (which is a lot more complex than the word proxy would imply) [07:31] a_meteorite: It's just the fact that the error message is woefully unhelpful in what's going horribly wrong... [07:31] bombworm has joined the channel [07:32] jamesd has joined the channel [07:33] a_meteorite: I don't see any recursion going on or anything [07:33] a_meteorite: Unless I misunderstand some basic mechanics [07:34] a_meteorite: or event recursion.. [07:36] eddyb: a_meteorite: this.on('data', function(){/* does something that causes this.emit('data') */}) will recurse [07:36] eddyb: so don't let an event cause itself [07:38] a_meteorite: eddyb: so you mean because I call this.emit in _on_data after receiving an event from a *different* eventemitter will cause recursion? [07:38] iFire has joined the channel [07:38] tlynn has joined the channel [07:38] HT has joined the channel [07:38] a_meteorite: notice this.stream.addListener('data', this._on_data); [07:39] a_meteorite: I'd see what you're saying if I did this.addListener('data', this._on_data) [07:39] eddyb: yeah [07:40] ph^ has joined the channel [07:40] a_meteorite: that seems kinda stupid... [07:40] a_meteorite: oh [07:40] a_meteorite: crap [07:40] eddyb: facepalm moment? [07:40] a_meteorite: this in _on_data is the scope of the function [07:41] a_meteorite: it's been too long javascript. too long. [07:41] eddyb: a_meteorite: TROLOLLOLOOLOLOLOLOL [07:42] eddyb: use this._on_data.bind(this) [07:42] eddyb: or [07:42] eddyb: nvm, that's it [07:42] eddyb: .bind(this) to create a temp functions which ensures the this inside the function will be the one you want [07:43] eddyb: s/functions/function/ [07:43] a_meteorite: ah [07:43] a_meteorite: that seems to have done the trick, thanks! [07:44] eddyb: np :) [07:44] a_meteorite: I'm taking on waaaay too much, heh :) [07:45] a_meteorite: eddyb: would there be any actual uses of accessing the this from inside an emitted event? just curious [07:45] eddyb: nope [07:45] a_meteorite: thought so [07:45] Cev has joined the channel [07:45] eddyb: as that this would be this.socket or something like that [07:46] a_meteorite: right [07:46] a_meteorite: so you could still access it [07:46] a_meteorite: not that I can think of any reasons off the top of my head for wanting to... accept firing a different event [07:46] martinciu has joined the channel [07:46] a_meteorite: or.. yeah. along those lines [07:46] eddyb: or doing something with the socket [07:47] a_meteorite: yeah [07:51] stagas has joined the channel [07:52] rendar has joined the channel [07:53] eddyb: lol, so, there's process.binding, which loads a binding. then there's NativeModule in node.js which loads a js module from lib/ (which gets packed into process.binding('evals')). and finally, lib/module.js [07:53] eddyb: nice job, node >:) [07:53] a_meteorite: still need to figure out that lib junk :) [07:55] dnjaramba has joined the channel [07:56] rendar has joined the channel [07:56] gut4 has joined the channel [07:59] mmalecki has joined the channel [08:00] Druid_ has joined the channel [08:00] martinciu_ has joined the channel [08:04] dubenstein has joined the channel [08:04] versicolor has joined the channel [08:05] saikat has joined the channel [08:07] DennisRasmussen has joined the channel [08:08] d0k has joined the channel [08:09] cognominal___ has joined the channel [08:11] saesh has joined the channel [08:11] Feuerbach has joined the channel [08:12] Aikar|Thrive has joined the channel [08:20] ahamidi has joined the channel [08:21] zilch_ has joined the channel [08:23] LifterAH has joined the channel [08:23] AvianFlu has joined the channel [08:23] stagas has joined the channel [08:24] __tosh has joined the channel [08:26] __tosh has joined the channel [08:32] mraleph has joined the channel [08:33] q_no has joined the channel [08:33] stagas has joined the channel [08:34] JakeyChan has joined the channel [08:35] piscisaureus____ has joined the channel [08:36] TomY has joined the channel [08:37] Margle has joined the channel [08:38] LifterAH: Hello all [08:43] stagas has joined the channel [08:44] ej__ has joined the channel [08:46] avdg1 has joined the channel [08:47] jaminja has joined the channel [08:51] monokrome_ has joined the channel [08:51] cognominal_ has joined the channel [08:59] fangel has joined the channel [09:02] zilch_ has joined the channel [09:02] mike5w3c has joined the channel [09:03] lmorchard has joined the channel [09:07] Feuerbach has left the channel [09:08] else has joined the channel [09:08] stagas has joined the channel [09:13] stagas has joined the channel [09:16] monokrome has joined the channel [09:18] dubenstein has joined the channel [09:19] hellp has joined the channel [09:24] idea-squirrel has joined the channel [09:24] zilch_ has joined the channel [09:25] dgathright has joined the channel [09:26] RexM: I moved my application from one folder to another, and it won't run anymore, saying: "Error: Cannot find module 'mongoose'". I've done npm install mongoose, it it's in the node_modules folder, I'm not sure what's going on... anybody have a suggestion? [09:26] lyte: Did you run "npm install mongoose" in the app dir or somewhere else? [09:27] RexM: lyte: it was in the app directory [09:27] arcanis has joined the channel [09:30] RexM: it looks like it's just having trouble with mongoose, i removed the node_modules folder, and tried it, it complained about not finding express, so i ran npm install -d and it installed all the modules, then it complained about mongoose [09:31] dgathright has joined the channel [09:31] lyte: Maybe you've got a module globally that you're including from the app that's trying to include mongoose ? [09:31] i42n has joined the channel [09:32] RexM: how would i check that? [09:32] lyte: I'm grasping at straws (pretty new to node), but I'd do an strace precisely because I'm new to node :p [09:33] RexM: i'm pretty new to node, too... started on thursday, lol, how do i do an strace? [09:33] herbySk has joined the channel [09:33] lyte: I think there's some funk you can pull with asking require to tell what and where it's pulling in, you could also just try requiring mongoose from an interactive node prompt [09:33] lyte: strace isn't a node thing, if you don't know how to do it already, here's not the right place to learn :) [09:34] lyte: It's my "hammer looking for a nail" [09:36] dgathright has joined the channel [09:37] dominictarr has joined the channel [09:40] RexM: i think i figured it out [09:40] lyte: Care to share? [09:41] ZedPepsi has joined the channel [09:42] ZedPepsi: Hi guys! I [09:42] ZedPepsi: oops [09:42] tuhoojabotti: Hey! [09:42] lyte: Ho! [09:42] RexM: yeah, i'm working on two node applications that are going to share the same models, so i pulled the models out of the first app into a "shared" folder where they could be referenced by both of the other projects, and that shared folder didn't have mongoose [09:42] garrensmith has joined the channel [09:43] ZedPepsi: Hi guys! I am using node.js to run a large script and I have a special scripty requirement. This is not an interactive app. I need to block until an event has actually occurred. Is there a way to do this? [09:44] garrensm_ has joined the channel [09:44] lyte: Why can't it just be a callback ? [09:44] ZedPepsi: it's a requirement of the infrastructure that I'm in [09:44] lyte: Lies :) [09:45] ZedPepsi: briefly, I have a large library for web apps that uses certain APIs that are for the web and I am testing it in nodejs [09:45] lyte: There are many sync calls you can use, but it seems odd to design an app to use them when anything can be done as a callback... [09:45] ZedPepsi: therefore I need to mock up XMLHttpRequest [09:45] ZedPepsi: which is synchronous [09:45] mmalecki: uhm, XMLHttpRequest shouldn't be synchronous [09:46] lyte: yeh... [09:46] ZedPepsi: in this case it is [09:46] ZedPepsi: if you pass the synchronous flag [09:46] lyte: a) you have to *tell* it to be synchronous with a flag [09:46] lyte: that ^ [09:46] ZedPepsi: right [09:46] lyte: b) some browsers ignore the flag [09:46] lyte: learn to async. [09:46] mmalecki: you shouldn't do it anyway [09:46] ZedPepsi: All right guys, I have a simple question: is it possible to wait for an event to complete in nodejs [09:47] Emmanuel` has joined the channel [09:47] lyte: c) other's have already probably written XHR mocks [09:47] lyte: d) just use a callback... [09:47] ZedPepsi: the ones i tried to do not work [09:47] lyte: what's wrong with waiting for the data to pass back and firing the event ? [09:47] ZedPepsi: i don't understand that last sentence [09:48] ZedPepsi: all right one last try: is it possible to wait until an event has fired? [09:49] ZedPepsi: "no" is a fine answer [09:50] ZedPepsi: All right guys, thanks for the help! [09:50] ZedPepsi has left the channel [09:51] neerolyte has joined the channel [09:52] piscisaureus____ has joined the channel [09:52] mmalecki: I think that piscisaureus____ just won a 'biggest number of underscores' contest [09:52] _______: really ? [09:53] mmalecki: haha, OK [09:53] lyte: (sorry I couldn't resist) [09:55] mmalecki: what I've done. [09:55] _______________: *_* [09:57] mc_greeny has joined the channel [09:57] tuhoojabotti: Awesome. [09:59] stbuehler has joined the channel [10:03] chjj: why are there lines on my screen [10:04] fly-away has joined the channel [10:04] ej_ has joined the channel [10:04] tuhoojabotti: Because irc consist of lines of text. [10:07] pele04 has joined the channel [10:09] ohtogo has joined the channel [10:11] k1ttty has joined the channel [10:11] sveisvei_ has joined the channel [10:16] maligree has joined the channel [10:19] markwubben has joined the channel [10:20] saschagehlich has joined the channel [10:24] gpan has joined the channel [10:24] gpan has left the channel [10:25] gpan has joined the channel [10:25] gpan has left the channel [10:25] gpan has joined the channel [10:25] LinXitoW has joined the channel [10:26] zilch_ has joined the channel [10:27] LinXitoW: hi, im trying to "npm install" calipso, but is keep getting: Not found: express@">=2.4.0 <2.5.0". Can anyone help? [10:32] LinXitoW: hi, im trying to "npm install" calipso, but is keep getting: Not found: express@">=2.4.0 <2.5.0". Can anyone help? [10:32] cw3de has joined the channel [10:32] eddyb: LinXitoW: you said that twice [10:33] eddyb: and it's [10:33] eddyb: sudo npm install -g calipso [10:34] Bodil has joined the channel [10:35] eddyb: now, how can I add my copyright along to the node's copyright line? [10:39] pele04: Hi. I'm building node from source. './configure' says ok on everything (including openssl) except 'library rt' (not found) and 'fdatasync(2) with c++' (no). When running 'make' it fails on '{task: cxx node_crypto.cc -> node_crypto_5.o}'. Help? [10:40] Morkel has joined the channel [10:40] pele04: Running 'make' after './configure --without-ssl' works fine, btw, but of course that's not what I want [10:41] lyte: pele04: pastebin the make and configure output ? [10:42] pele04: OK, hang on [10:44] d0k has joined the channel [10:47] gut4 has joined the channel [10:48] pele04: lyte: http://pastebin.com/0fvCPJ3J [10:48] pele04: I'm on OS X 10.5.8 [10:52] Tobsn: pele, parallels, vmware, virtualbox + debian image [10:52] lyte: I wasn't really expecing to be able to solve it, I mostly just asked for the full output because I figured no one could solve it with the short description... regardless if no one pipes up I'd try either upgrading or installing a new version of openssl and compiling against that. [10:52] mraleph has left the channel [10:54] cw3de: pele04: are you sure about "git checkout v0.5.0"? maybe you want v0.5.10 ? [10:54] pele04: Tobsn: thanks, but I don't think that should be necessary [10:55] Tobsn: the benfit would be you dont fuck up your mac [10:55] pele04: Tobsn: :) [10:55] Tobsn: and you can take snapshots [10:55] pele04: cw3de: nope, not sure at all. I'll try that [10:55] Tobsn: and its the way you should do it [10:55] pele04: lyte: thanks. Not very keen on doing that, though [10:56] pele04: Tobsn: why? [10:56] Tobsn: whats your server running? [10:56] wookiehangover has joined the channel [10:56] lyte: pele04: what other choice do you have? You're getting a missmatch in APIs between node and openssl... [10:57] metellus has joined the channel [11:00] SoulRaven has joined the channel [11:02] lzskiss has joined the channel [11:02] DennisRasmussen has joined the channel [11:02] lzskiss: aloha [11:05] pele04: cw3de: v0.5.10 results in "Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a}". Note that this is not the same error as for v0.5.0 [11:05] pele04: Tobsn: OS X 10.5.8 [11:05] eddyb: any ideas when the gyp version will be fully usable? [11:06] Tobsn: your production server runs osx? [11:06] pele04: Tobsn: don't have a production server. Just fooling around [11:06] Tobsn: install virtualbox+ [11:06] Tobsn: there are 1001 tutorials how to do it [11:06] Tobsn: it all comes down to download virtualbox, download linux distribution image, be done with it [11:06] Tobsn: ;) [11:07] Tobsn: funny story on the side [11:07] Tobsn: foursquare.com is down [11:07] pele04: Tobsn: I'm sure there are, just so incredibly tired of installing stuff. I'm sure you know the feeling [11:08] mike5w3c has joined the channel [11:08] eddyb: pele04: yeah, it sucks [11:10] dexter_e has joined the channel [11:11] cw3de: pele04: did you cleanup the "out" directory before building again? [11:12] cognominal___ has joined the channel [11:13] eddyb: hmm, would someone add https://build.opensuse.org/project/show?project=home%3Aeddybb%3Anodejs as an alternative on opensuse? [11:13] eddyb: it's 0.5.9 at the momnt [11:13] eddyb: *moment [11:16] Cheery has joined the channel [11:17] dexter_e: is there an easy way to handle https requests ? [11:17] dexter_e: with a node application listening on port 80 can I just forward requests coming in on port 443 ? [11:18] eddyb: dexter_e: create a https server? [11:18] eddyb: it's like http, except it has a 's' at the end [11:19] mmalecki: lol [11:20] Drakonite has joined the channel [11:20] stinnes has joined the channel [11:23] cjroebuc_ has joined the channel [11:23] Tobsn: ha [11:23] Tobsn: foursquare is really down [11:23] lzskiss: eddyb, without an ssl certificate this is an interesting adventure [11:23] lzskiss: :D [11:26] zilch_ has joined the channel [11:26] dubenstein has joined the channel [11:26] lzskiss: great problem my friend dont know he's cat where is walking:) [11:27] dexter_e: eddyb: that sounds great , how is that done? [11:27] eddyb: dexter_e: it's even on the site's front page [11:27] dexter_e: I thought I had to listen on port 443 simultanously [11:28] eddyb: :| [11:28] eddyb: https and http aren't linked [11:28] eddyb: you can use one, the other, or both [11:28] pele04: Argh! This chat window keeps stopping scrolling down every time I type something, so I never notice the replies [11:28] eddyb: what's your problem? [11:28] NetRoY has joined the channel [11:28] eddyb: pele04: lol [11:28] superjudge has joined the channel [11:28] pele04: cw3de: yes, I ran a 'git clean -f -d -x' [11:29] dexter_e: I want to be able to visit https://myapp.com and have it work the same way that http://myapp.com [11:30] eddyb: dexter_e: have the same handler for both servers [11:30] Wizek has joined the channel [11:30] cognominal___ has joined the channel [11:32] dexter_e: right on I'll try that , thanks [11:33] markwubben has joined the channel [11:35] EvRide1 has joined the channel [11:41] Margle has joined the channel [11:41] liar has joined the channel [11:42] saesh has joined the channel [11:42] Epeli has joined the channel [11:44] cognominal___ has joined the channel [11:44] saschagehlich has joined the channel [11:47] jomoho has joined the channel [11:47] gpan has joined the channel [11:48] dubenstein has joined the channel [11:50] gpan has left the channel [11:51] okuryu has joined the channel [11:53] maushu has joined the channel [11:53] boehm has joined the channel [11:56] jsurfer has joined the channel [12:01] sineltor has joined the channel [12:04] lzskiss has joined the channel [12:05] lzskiss: re [12:06] stisti has joined the channel [12:07] pickels has joined the channel [12:09] scott_gonzalez has joined the channel [12:09] fairwinds has joined the channel [12:10] delian66 has joined the channel [12:10] hetkat has joined the channel [12:12] hetkat: hi, I am using node with express on serverside and jquery on clientside and the bodyparser middleware for express. I use $.post to post a javascript object to the server. when it arrives req.body shows that the integer fields have been converted to strings [12:12] hetkat: what am I doing wrong? [12:13] avdg has joined the channel [12:15] simenbrekken has joined the channel [12:15] delian66_ has joined the channel [12:16] delian66_ has joined the channel [12:17] felix222 has joined the channel [12:17] delian66 has joined the channel [12:17] hetkat has left the channel [12:18] whitman has joined the channel [12:18] hetkat has joined the channel [12:19] hetkat: anyone? [12:20] TomY has joined the channel [12:20] zilch_ has joined the channel [12:21] hetkat: var x; x.num = 1; $post('/bleh', x); now on server req.body = { 'num':'1' } when I would expect { 'num':1 } [12:21] hetkat: why? [12:22] cl0udy has joined the channel [12:22] mmalecki: hetkat: I would say it's jquery fail [12:22] mmalecki: hetkat: try posting this data by hand a see if it still fails [12:23] hetkat: ok [12:23] cw3de has left the channel [12:24] dubenstein has joined the channel [12:25] cognominal has joined the channel [12:25] dubenstein has joined the channel [12:26] zilch_ has joined the channel [12:30] pele04: Repeat question (two hours later, that ok, right?): I'm getting "{task: cxx node_crypto.cc -> node_crypto_5.o}" error when I make. './configure' says that openssl is found, so it's not that [12:30] pele04: Googling shows that this question has come up before in this channel, but, frustratingly, it seems to have been handled in a private chat [12:30] blup has joined the channel [12:31] pele04: Suggestions so far: install Node on Linux in a VM instead, or reinstall openssl. The former is a huge hassle, the latter is very dangerous on OS X [12:31] dr1ve has joined the channel [12:31] pele04: I'm on OS X 10.5.8 btw [12:31] pele04: Any other ideas? [12:32] pele04: Openssl is version 10.0.0c. I really have no idea what can be wrong here [12:32] saschagehlich has joined the channel [12:35] dubenstein has joined the channel [12:36] telemachus: pele04: What about installing a newer version of openssl, but _not_ overwriting osx's built-in one? Use MacPorts or Homebrew and you can put it somewhere else in your PATH [12:37] telemachus: s/somewhere else/somewhere earlier/ [12:38] daglees has joined the channel [12:38] daglees has joined the channel [12:39] markwubben has joined the channel [12:43] zilch_ has joined the channel [12:43] Sicrus has joined the channel [12:44] Illusioneer has joined the channel [12:44] pele04: telemachus: yeah, that's an idea. Thanks. But I still don't see how that should be necessary when my version is >= 1 [12:45] Illusioneer has left the channel [12:45] telemachus: pele04: I'm not sure what you mean? As far as I recall, _some_ versions of openssl on osx caused problems for lots of things - certainly both node and ruby, in my experience. [12:46] martinciu has joined the channel [12:46] telemachus: Why would a version >= 1 solve that? [12:46] pele04: telemachus: good point. I guess I'm just thinking that if a very common openssl version on OS X caused problems, this should be documented all over the place, and this error should have appeared for thousands of people. That doesn't seem to be the case when I google it [12:47] AAA_awright: Does mscdex hang out here? [12:47] pele04: telemachus: I just installed Node 0.4.2, btw. That seemed to work without errors [12:47] cjroebuck has joined the channel [12:47] pele04: AAA_awright: if you see him, tell him I have a question for him as well [12:49] AAA_awright: THe name is familiar for some reason [12:50] AAA_awright: jonaslund: Even if it's GPL 3 or AGPL, simple, don't agree to the terms of redistribution [12:50] AAA_awright: then AGPL doesn't apply to you :) [12:51] AAA_awright: pele04: In the last week on this channel appearently not [12:52] pele04: telemachus: I'll settle for living on the bleedin' edge with 0.4.2 now, will try installing another openssl version later. Thanks for your help [12:53] telemachus: cool - good luck [12:53] pele04: thx [12:55] bzinger has joined the channel [12:55] Morkel has joined the channel [12:55] AAA_awright: bleeding edge is v0.5.10-pre [12:58] coderdad has joined the channel [12:58] lzskiss has joined the channel [12:58] markwubben has joined the channel [13:00] telemachus: AAA_awright: I think he was joking (since he had troubles building later 0.4 versions) [13:03] pHcF has joined the channel [13:03] Industrial has left the channel [13:06] lmatteis: on mac, do i need to install xcode to get node installed? [13:07] cl0udy_ has joined the channel [13:07] Qbix2 has joined the channel [13:08] telemachus: lmatteis: You need a compiler and basic toolchain [13:08] telemachus: so probably [13:08] telemachus: there are alternative methods of getting these essentials [13:08] telemachus: one sec for link... [13:08] lmatteis: im already installing xcode [13:09] coffeecup has joined the channel [13:09] lmatteis: but it's stupid to download 4gb of stuff for a compiler [13:09] telemachus: yes [13:09] cl0udy_ has joined the channel [13:09] telemachus: correct [13:09] telemachus: https://github.com/kennethreitz/osx-gcc-installer [13:09] telemachus: this is a far, far smaller alternative [13:09] telemachus: and if you have limited needs, it should work I believe [13:09] telemachus: but more complex builds fail on it sometimes [13:09] telemachus: the 4gb is for Apple's idiotic sdk and ide and general crap [13:10] telemachus: but they don't distribute gcc + the tool chain separately [13:11] enmand has joined the channel [13:11] kalisjoshua has joined the channel [13:12] __tosh has joined the channel [13:13] Tobsn: telemachus, hehe [13:13] Tobsn: du -hs /Developer [13:13] kalisjoshua: is anyone willing to help a Node n00b switch version of installed node? [13:13] Tobsn: all together its more like 9gb [13:14] Tobsn: kalisjoshua, just recompile [13:16] kalisjoshua: well then I guess I should ask what is the current version of node? when I run 'node -v' I am getting 'v0.5.6-pre' is that what it should be? [13:16] telemachus: Tobsn: ugh - 9GB? I get 6.3. God, what a waste. [13:17] telemachus: I know disk space is cheap, but still. [13:17] Tobsn: actualyl youre right [13:17] Tobsn: 6.3 here [13:17] Tobsn: maybe they changed something [13:17] telemachus: kalisjoshua: There is a stable and an unstable branch [13:17] pele04: AAA_awright: I was indeed joking. Btw, I was looking for you. The reason was that I found an irc log online where you had earlier discussed the exact problem I'm having [13:17] Tobsn: before i had lion and xcode 4.2 it was 9.6 or something [13:17] telemachus: 0.4.x is stable, 0.5.x is unstable [13:18] telemachus: 0.4.12 and 0.5.10, currently [13:18] kalisjoshua: do I just need to checkout a tag and compile that? [13:18] telemachus: I think the 0.6 merge is soon-ish though? Not sure about that [13:18] telemachus: kalisjoshua: You can checkout or download from http://nodejs.org/ [13:18] kalisjoshua: I have the git repo locally [13:19] Morkel has joined the channel [13:20] telemachus: gotcha [13:21] amigojapan has joined the channel [13:22] mmalecki_ has joined the channel [13:23] rgl has joined the channel [13:25] svnlto has joined the channel [13:25] svnlto has joined the channel [13:26] schwab has joined the channel [13:27] Kami_ has joined the channel [13:28] mmalecki has joined the channel [13:29] jbpros has joined the channel [13:31] kalisjoshua: telemachus: I checked out v0.4 and did the tree install commands but the version installed hasn't changed. [13:31] JakeyChan has joined the channel [13:32] JakeyChan_ has joined the channel [13:32] martin_sunset has joined the channel [13:32] zilch_ has joined the channel [13:34] markwubben has joined the channel [13:35] telemachus: 0.4? I think you want 0.4.12 [13:35] telemachus: Actually the tag is v0.4.12, I believe [13:37] Sorella has joined the channel [13:37] OneOfOne has joined the channel [13:38] kalisjoshua: telemachus: you're right, I looked up the branches; the tag v0.4.12 [13:38] mrtazz has joined the channel [13:39] kalisjoshua: telemachus: regardless though, when I checkout a different version: configure, make, make install - no change to 'node -v' [13:40] HardPhuc has joined the channel [13:40] Tobsn: remove node [13:40] Tobsn: the binary [13:40] Tobsn: try again [13:41] Tobsn: or rename [13:43] kalisjoshua: Tobsn: from where [13:43] Tobsn: whereis node [13:43] kalisjoshua: I get a blank response to that [13:43] Tobsn: lol? [13:43] kalisjoshua: :) [13:43] Tobsn: well in some bin folder [13:43] telemachus: um [13:43] Tobsn: /usr/local/bin [13:43] Tobsn: for example [13:43] telemachus: echo $PATH? [13:44] linkgoron has joined the channel [13:45] telemachus: kalisjoshua: You might also check out this blog post for a more sandboxed way to install node versions locally (in your HOME rather than a system folder): http://blog.nodejs.org/2011/04/04/development-environment/ [13:48] JakeyChan: hi ? [13:49] dexter_e has joined the channel [13:49] kawaz_home has joined the channel [13:50] zilch_ has joined the channel [13:52] Wa has joined the channel [13:53] vkareh has joined the channel [14:03] dfadler has joined the channel [14:04] _unary has joined the channel [14:04] blup has joined the channel [14:07] Oli_ has joined the channel [14:07] kalisjoshua: telemachus: that blog post was helpful, but I had/have a line in my .bash_profile that effects my PATH variable and I am trying to find out why it is in there [14:09] telemachus: What's the line? Probably something you installed (MacPorts?) added something to your profile [14:11] gut4 has joined the channel [14:12] kalisjoshua: telemachus: export PATH=$HOME/local/bin:$PATH [14:12] kalisjoshua: telemachus: but now I don't think that is changing anything [14:13] mmalecki: how can I make readline automatically close process.stdin if it has nothing more to read? [14:13] versicolor has joined the channel [14:13] AaronMT has joined the channel [14:13] telemachus: well, is there anything installed in $HOME/local? [14:14] blup has joined the channel [14:15] telemachus: Also, if you followed the instructions on the blog, the extra bit of PATH you need would look more like $HOME/local/node-v0.4.12/bin [14:15] m00p has joined the channel [14:16] markwubben has joined the channel [14:19] kalisjoshua: telemachus: now I am getting v0.5.11-pre when 'node -v' but have ~/local/node-0.4.5/ [14:19] telemachus: hmm [14:19] telemachus: what does "which node" output? [14:19] DennisRasmussen has joined the channel [14:19] ejnahc has joined the channel [14:20] kalisjoshua: obviously I dont do this very often. I am normally a frontend developer and I write a lot of JS in the browser so I wanted to explore Node [14:20] kalisjoshua: telemachus: ~/local/node-v0.4.5/bin/node [14:20] kalisjoshua: after 'which node' [14:20] Tobsn: erm, if i want to create https requests... do i have to do something special? require('https'); and firing https.request() doesnt seem to work [14:21] telemachus: kalisjoshua: Ok, that looks like you built node from the wrong branch of the git repository [14:21] telemachus: Which is one reason it might be easier to just download the tarball [14:21] Tobsn: ah nevermind, forgot to put in the port option [14:21] telemachus: On the plus side, the installation worked :) [14:23] igl has joined the channel [14:24] alessioalex has joined the channel [14:25] kalisjoshua: starting download, Ill try that [14:26] telemachus: yup - I would probably rm -rf ~/local/node-v0.4.5 before trying again, too [14:26] kalisjoshua: config, make ... [14:28] kalisjoshua: telemachus: my goof was I didn't change the folder-version that was in that blog post [14:28] kalisjoshua: copy-paste fail [14:28] telemachus: yeah, ./configure --prefix $HOME/local/node-v0.4.12 etc. [14:28] telemachus: well, yes and no [14:28] telemachus: not changing the folder name doesn't explain how you built v0.5.11-pre [14:29] telemachus: see what I mean? [14:29] kalisjoshua: true [14:29] kalisjoshua: that I understand [14:29] kalisjoshua: and agree with [14:29] telemachus: That probably has to do with what branch you had checked out in git [14:29] kalisjoshua: But I did checkout the tag v0.4.12 [14:31] q_no has joined the channel [14:31] schwab has joined the channel [14:32] kalisjoshua: doesn't matter now, because I now have v0.4.12 installed [14:32] telemachus: cool [14:33] animorten has joined the channel [14:36] kriszyp has joined the channel [14:36] dominictarr has joined the channel [14:36] Tobsn: if i request json, how do i turn that into an object? [14:37] Tobsn: eval? [14:37] Mokona has joined the channel [14:37] kalisjoshua: telemachus: I guess that solves part of what I was trying to accomplish. Thank you very much [14:39] anoop has joined the channel [14:40] mmalecki: Tobsn: JSON.parse [14:40] Tobsn: yeah just found that :) [14:40] Tobsn: thanks [14:40] Tobsn: why is in the V8 source JSON revive? [14:41] _unary has joined the channel [14:43] JakeyChan: is there have good pattern to handle request ? as you know, the router handler is created at separate file, when request is coming , how to load the right router file ? [14:45] saikat has joined the channel [14:46] zilch_ has joined the channel [14:48] nerdy has joined the channel [14:48] _unary has joined the channel [14:51] Tobsn: erm [14:52] Tobsn: someone want to explain me why result['statusCode'] or result.statusCode is valid when there is something above the if() that checks for it [14:52] Tobsn: even just a newline break [14:52] Tobsn: and if i remove it [14:52] Tobsn: Cannot read property 'statusCode' of undefined [14:52] Tobsn: i get this [14:52] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/m9~4.png [14:52] Tobsn: works [14:52] Tobsn: http://dl.dropbox.com/u/1656816/Screenshots/zab6.png [14:52] Tobsn: doesnt [14:55] DarkGrey has joined the channel [14:59] Tobsn: or even a tab after the function(){ does it [14:59] Tobsn: makes it work [15:00] Tobsn: only directly as next line [15:00] Tobsn: it breaks it [15:02] DRMacIver has joined the channel [15:03] DRMacIver: Hi. The following modification of the http hello world example to add a timeout doesn't work. Am I missing something fundamental about how the event loop works? [15:03] DRMacIver: http://pastebin.com/yQSLzjcQ [15:04] DRMacIver: I'd expected the http server to allow timeouts to process as normal, but it seems to instead hang indefinitely and never execute the timeout. [15:06] JakeyChan has joined the channel [15:07] stagas has joined the channel [15:07] bnoordhuis has joined the channel [15:08] tmzt_ has joined the channel [15:11] DRMacIver: Oh [15:11] DRMacIver: ACTION headdesks [15:11] lzskiss has joined the channel [15:11] DRMacIver: What I'm missing is that I have the arguments to setTimeout the wrong way round and JS is doing something entertaining when you do that [15:11] DRMacIver: Sorry guys. False alarm :) [15:13] _dc has joined the channel [15:17] bubersson3 has joined the channel [15:18] dnjaramba has joined the channel [15:18] bubersson3: Hi, is there a smart way to make page ajax crawlable using express? [15:19] cw3de has joined the channel [15:19] dexter_e has joined the channel [15:19] `3rdEden has joined the channel [15:21] mandric has joined the channel [15:21] __tosh has joined the channel [15:22] N0va` has joined the channel [15:24] k1ttty has joined the channel [15:24] anoop has joined the channel [15:24] AphelionZ has joined the channel [15:25] TomY: having intermittent "Error: socket hang up" errors when doing http.get (to an node server in another process) - anyone know what might cause that? [15:25] TomY: in node 0.5.10 [15:28] isaacs has joined the channel [15:29] ryanfitz has joined the channel [15:30] kriszyp has joined the channel [15:31] devongovett has joined the channel [15:32] galaxywatcher has joined the channel [15:32] Epeli has joined the channel [15:33] CarterL has joined the channel [15:34] eb4890 has joined the channel [15:35] gigawatt has joined the channel [15:35] gigawatt: anyone know the best way to select a random client in NodeJS ? [15:35] ej__ has joined the channel [15:37] oatkiller has joined the channel [15:37] oatkiller has left the channel [15:38] slifty_corsair has joined the channel [15:40] miccolis has joined the channel [15:41] wrongle has joined the channel [15:41] enmand has joined the channel [15:41] Spion has joined the channel [15:44] N0va has joined the channel [15:46] zilch_ has joined the channel [15:50] ayaz has joined the channel [15:50] dubenstein has joined the channel [15:53] piscisaureus____ has joined the channel [15:53] sineltor has joined the channel [15:54] nerdy has joined the channel [15:54] Vennril has joined the channel [15:55] slifty_corsair has joined the channel [15:55] daglees has joined the channel [15:57] ilikeit has joined the channel [15:58] fangel has joined the channel [15:58] markwubben has joined the channel [15:59] anoop has joined the channel [16:00] AphelionZ has joined the channel [16:01] blup has joined the channel [16:01] galaxywatcher_ has joined the channel [16:02] TheFuzzball has joined the channel [16:03] Dreamer3 has joined the channel [16:04] gut4 has joined the channel [16:05] slifty_corsair has joined the channel [16:05] cw3de has left the channel [16:12] stagas has joined the channel [16:14] Kami_ has joined the channel [16:16] saikat has joined the channel [16:18] Tobsn has joined the channel [16:23] Brandon_R has joined the channel [16:23] Brandon_R: jo [16:23] herbySk has joined the channel [16:23] Brandon_R: hi [16:23] Brandon_R: what's new in node [16:23] Brandon_R: haven't been here in a while [16:23] Brandon_R: any cool new projects? [16:23] alessioalex: yes [16:24] alessioalex: observer.no.de [16:24] alessioalex: it won the Knockout competition :) [16:24] deedubs has joined the channel [16:25] guybrush has joined the channel [16:27] confoocious has joined the channel [16:27] confoocious has joined the channel [16:29] isaacs: hi, Brandon_R [16:29] Brandon_R: hi [16:29] brianseeders has joined the channel [16:30] Brandon_R: woah [16:30] Cromulent has joined the channel [16:30] mmalecki: oh, btw, if anyone was interested, vows is now compatible with 0.5 :) [16:30] Brandon_R: i can't even say that number [16:31] mmalecki: so, please please please, if your module is tested with vows, report any problems with your tests on 0.5 [16:31] _th_n_ has joined the channel [16:35] dexter_e has joined the channel [16:42] fangel has joined the channel [16:42] stagas has joined the channel [16:44] kenperkins has joined the channel [16:45] olivier has joined the channel [16:48] martin_sunset has joined the channel [16:49] brianseeders has joined the channel [16:49] lzskiss has joined the channel [16:51] petrjanda has joined the channel [16:52] anoop has joined the channel [16:53] lzskiss: . [16:53] davidwalsh has joined the channel [16:57] thisandagain has joined the channel [16:57] cjm has joined the channel [16:58] saikat has joined the channel [16:59] daz4126 has joined the channel [17:00] daz4126: I've just installed node and some modules but keep getting the error message 'Cannot find module zappa' [17:01] daz4126: if I do npm ls -g then zappa is there [17:01] daz4126: Anybody know how to get it to work? [17:03] aguynamedben has joined the channel [17:04] ohtogo has joined the channel [17:04] harthur has joined the channel [17:05] wmage has joined the channel [17:06] passionke has joined the channel [17:08] mikeal has joined the channel [17:12] Dmitrijus has joined the channel [17:13] andrewfff has joined the channel [17:16] ej_ has joined the channel [17:17] gut4 has joined the channel [17:17] slifty_corsair has joined the channel [17:21] nerdfiles has joined the channel [17:21] nerdfiles has left the channel [17:21] fzzzy has joined the channel [17:26] thinkt4nk has joined the channel [17:27] stagas has joined the channel [17:28] lyte has joined the channel [17:28] lyte has joined the channel [17:29] lzskiss has joined the channel [17:29] dmitrig01 has joined the channel [17:30] smathy has joined the channel [17:30] meandi has joined the channel [17:32] metellus has joined the channel [17:32] thisandagain has joined the channel [17:34] saschagehlich has joined the channel [17:35] dimroc has joined the channel [17:39] kriszyp has joined the channel [17:40] bubersson3 has left the channel [17:41] nerdfiles has joined the channel [17:41] nerdfiles has left the channel [17:43] spathi^ has joined the channel [17:44] quackquack has joined the channel [17:44] maletor has joined the channel [17:52] eddyb has joined the channel [17:52] stagas has joined the channel [17:53] eddyb: if anyone here cares about nide, this is what I get: Uncaught TypeError: Object # has no method 'createTextRange' [17:53] nerdfiles3 has joined the channel [17:54] nerdfiles3 has left the channel [17:56] devongovett has joined the channel [17:58] saikat has joined the channel [17:59] gut4 has joined the channel [18:00] ed8t has joined the channel [18:00] meandi2 has joined the channel [18:00] kenperkins has joined the channel [18:01] firebus has joined the channel [18:01] firebus has left the channel [18:04] eddyb: also Uncaught TypeError: Property 'prompt' of object [object DOMWindow] is not a function [18:04] eddyb: http://xkcd.com/967/ [18:05] brianseeders has joined the channel [18:06] sveisvei: Whats the latest and greatest "hot" framework for testing node.js apps :)? [18:10] rgl has joined the channel [18:11] ej__ has joined the channel [18:13] captain_morgan has joined the channel [18:15] zipR4ND has joined the channel [18:15] digman543 has joined the channel [18:15] fly-away has joined the channel [18:16] zipR4ND: hi all, i'm getting: ImportError: No module named utils: on installation, what package do i need to install ? [18:16] kriszyp has joined the channel [18:17] mmalecki: zipR4ND: it's util [18:17] saesh has joined the channel [18:17] mmalecki: zipR4ND: ah, wait [18:18] mmalecki: zipR4ND: python version? [18:18] zipR4ND: 2.7 [18:19] vicapow has joined the channel [18:19] Brandon has joined the channel [18:20] Brandon has left the channel [18:20] jacobolus has joined the channel [18:20] Brandon has joined the channel [18:20] Brandon: Hey [18:20] tylerstalder has joined the channel [18:22] Cheery: baudehlo: hi. [18:22] eddyb: wait, what? [18:22] eddyb: https://github.com/Coreh/nide/blob/master/client/js/DirectoryEditor.js [18:22] eddyb: this guy has no idea what jquery can do [18:22] Cheery: baudehlo: I see what it is.. haraka throws RCPT TO cheery@ instead of what I give it. :) [18:22] eddyb: also has problems with semicolons [18:22] eddyb: but he wrote nide [18:23] eddyb: which I can now use as a source of inspiration [18:23] eddyb: I hope nobody has wrote or is working on an web IDE [18:23] eddyb: I know there's stuff like cloud9, but it's too... not my taste [18:24] eddyb: $(".packages", editor)[0].innerHTML = ''; [18:24] eddyb: ARGH [18:24] eddyb: I hope Coreh will never go in here [18:24] eddyb: otherwise I'll explode [18:25] Cheery: baudehlo: /hook_rcpt in http://boxbase.org/maildir.js [18:25] eddyb: with a ton of corrections [18:25] dreamdust has joined the channel [18:25] Morkel has joined the channel [18:25] dreamdust: How do I call a function by variable name if I have it as a string, as there's no window object in node? [18:26] mmalecki: eddyb: pull request :P [18:26] eddyb: the thing should still be working. but... it seems google is an a journey to fix DOM [18:26] eddyb: and lastest unstable chrome doesn't have window.prompt,window.scrollTo, etc [18:26] eddyb: mmalecki: what? [18:26] eddyb: that thing is quite frozen [18:27] eddyb: mmalecki: http://coreh.github.com/nide/ it was a contest entry [18:27] mmalecki: eddyb: ah, I see, no update since then [18:27] dgathright has joined the channel [18:29] kenperkins has joined the channel [18:31] AvianFlu has joined the channel [18:31] maqr has joined the channel [18:32] dreamdust: Is there no way to access variables declared in top-leval scope using a string in node? [18:33] mmalecki: dreamdust: globel[key] [18:33] mmalecki: *global [18:33] dreamdust: oh thx [18:35] enmand has joined the channel [18:37] vicapow has joined the channel [18:38] mikeal has joined the channel [18:39] hakunin has joined the channel [18:41] pizthewiz has joined the channel [18:43] eddyb: http://codemirror.net/mode/markdown/index.html [18:43] eddyb: dis is cool :) [18:44] magnetik has joined the channel [18:44] wrongle has joined the channel [18:47] pandeiro has joined the channel [18:50] ninjapig has joined the channel [18:50] ninjapig has joined the channel [18:50] ryanfitz has joined the channel [18:52] skenqbx has joined the channel [18:55] __tosh has joined the channel [18:56] blup has joined the channel [18:57] thalll has joined the channel [18:57] patcito has joined the channel [18:58] Xano has joined the channel [18:58] bcardarella has joined the channel [18:58] julioj has joined the channel [18:59] julioj: hello everyone [19:02] kriszyp has joined the channel [19:04] skenqbx: Is support for passing udp handles to child processes planned before 0.6? [19:04] vicapow has joined the channel [19:06] maligree has joined the channel [19:07] CarterL has joined the channel [19:10] saesh has joined the channel [19:11] ej_ has joined the channel [19:11] kenperkins has joined the channel [19:12] zemanel has joined the channel [19:12] kriszyp has joined the channel [19:13] Aria has joined the channel [19:13] fra000 has joined the channel [19:14] jbpros has joined the channel [19:15] akiva_ has joined the channel [19:16] metellus has joined the channel [19:16] cl0udy has joined the channel [19:17] bluebit has joined the channel [19:18] criswell has joined the channel [19:19] topaxi has joined the channel [19:19] mandric has joined the channel [19:19] iivvoo has left the channel [19:20] materialdesigner has joined the channel [19:22] OneOfOne_ has joined the channel [19:22] isaacs: JasonSmith: you're right (re: npm publish). I've had it with this update function. Moving all the validation logic into the validate_doc_update function where it belongs, and going to deprecate that updates thing asap. [19:24] AAA_awright__ has joined the channel [19:24] strax has joined the channel [19:25] thepatr1ck has joined the channel [19:25] delian66 has joined the channel [19:28] eddyb: isaacs: you wrote the new zlib bindings? [19:29] martinciu has joined the channel [19:31] deedubs has joined the channel [19:32] nerdfiles has joined the channel [19:32] martinciu has joined the channel [19:33] markwubben has joined the channel [19:33] n8ji has joined the channel [19:36] Xano_ has joined the channel [19:36] shift_ has joined the channel [19:37] bcardarella: Is there a reason npm won't install express greater than 1.0.7? According to http://search.npmjs.org/#/express 2.4.7 is the latest version [19:37] bcardarella: I don't have a package.json or anything that looks like I'm restricting version [19:37] dreamdust: Does socket.io store a list of clients somewhere? [19:37] dgathright has joined the channel [19:37] `3rdEden: io.sockets.clients() [19:37] eddyb: dreamdust: yeah, it's in the README.md [19:38] |RicharD| has joined the channel [19:38] |RicharD|: hi to all...i remember about a book on the web(free book) [19:38] |RicharD|: maybe from felixge [19:38] |RicharD|: anyone remember nothing ? [19:38] dreamdust: eddyb: No, it's not. :) [19:39] eddyb: well, there's something about broadcasting messages [19:39] eddyb: io.sockets I think [19:40] eddyb: that should've led you to io.sockets.clients(), as mentioned by `3rdEden [19:40] Renegade001 has joined the channel [19:40] saikat has joined the channel [19:41] dreamdust has left the channel [19:43] kriszyp has joined the channel [19:45] eddyb: isaacs: just saying, it would've helped to have sync inflate and deflate [19:46] svnlto has joined the channel [19:46] svenlito has joined the channel [19:47] AphelionZ has joined the channel [19:48] deedubs1 has joined the channel [19:49] boltR has joined the channel [19:51] boltR has joined the channel [19:53] |RicharD|: nobody know where i can find [19:53] |RicharD|: this free book ? [19:54] eddyb: |RicharD|: might help saying what it was about... [19:54] |RicharD|: was a book about node.js [19:54] |RicharD|: maybe was write from felixge [19:54] |RicharD|: was online (html) and free [19:54] zabyl has joined the channel [19:55] eddyb: |RicharD|: also, if it's older than a few months, may be too old [19:55] eddyb: also, you have the internets, why need a book for node? [19:55] isaacs: bcardarella: probably the version of node that you're using [19:55] isaacs: bcardarella: combined wiht express's engines setting [19:55] eddyb: oh hi ^^^ [19:55] |RicharD|: ehm [19:56] piscisaureus____ has joined the channel [19:56] |RicharD|: i want learn node.js [19:56] |RicharD|: stop :) [19:56] |RicharD|: suggest ? [19:56] eddyb: |RicharD|: you only need to know js [19:56] eddyb: and read the online API [19:56] bcardarella: isaacs: I'm on 0.5.10 [19:56] isaacs: bcardarella: k [19:56] OneOfOne_: |RicharD|: type "learn nodejs" in google [19:56] smathy: |RicharD|… and hack. [19:57] isaacs: bcardarella: run this: npm view express@'*' engines [19:57] isaacs: express@2.4.7 { node: '>= 0.4.1 < 0.5.0' } [19:57] |RicharD|: oki thx :) [19:57] isaacs: bcardarella: bug tjholwaychuk [19:57] |RicharD|: anyone here use ror+node.js ? [19:57] isaacs: *tjholowaychuk [19:57] bcardarella: isaacs: yeah, it wants below 0.5.0 [19:57] deedubs has joined the channel [19:59] jakeskik: |RicharD|: yes. not in same project though [19:59] |RicharD|: i want use [19:59] |RicharD|: node.js for chat :) [19:59] |RicharD|: in my ror project [20:00] eddyb: chat you say? [20:00] |RicharD|: yes [20:00] isaacs: RicharD: you can put a proxy in front of them, and have them listen on different ports. [20:00] eddyb: socket.io allows for intercommunication between server and client [20:00] isaacs: RicharD: or just use node.js as the proxy, and have it proxy requests back to the ror site [20:01] zeade has joined the channel [20:01] eddyb: |RicharD|: that would make for a simple chat :) [20:01] Moko|afk has joined the channel [20:02] |RicharD|: oki thx boys ;) [20:03] V1 has joined the channel [20:04] `3rdEden has joined the channel [20:04] cjm has joined the channel [20:05] V1 has joined the channel [20:06] `3rdEden has joined the channel [20:07] deedubs has left the channel [20:07] metaverse has joined the channel [20:10] cl0udy_ has joined the channel [20:11] kenperkins has joined the channel [20:12] markwubben has joined the channel [20:14] CarterL has joined the channel [20:14] grekko has joined the channel [20:16] zivester has joined the channel [20:16] chrislorenz has joined the channel [20:17] kriszyp has joined the channel [20:19] mc_greeny has joined the channel [20:19] cbobo: What is a good SSL WebSocket server? (wss://) ? [20:19] cbobo: I have "websocket-server" working but it does not support SSL [20:19] Epeli: Node.js? [20:20] cbobo: yes [20:20] MrGoodbyte has joined the channel [20:20] cbobo: yes for node.js [20:20] Epeli: Yes, use Node.js as SSL (wss://) server. [20:21] cbobo: yes, i would like to do this [20:21] Epeli: :D [20:21] Epeli: I don't get this [20:21] cbobo: so I grabbed the package "websocket-server" [20:21] Epeli: aaah [20:21] cbobo: and i can do ws:// [20:21] cbobo: however, I need to do wss:// anyone know a different package to grab? [20:22] Epeli: I have used node-http-proxy [20:22] bcardarella has left the channel [20:22] mikeal has joined the channel [20:22] briemens has joined the channel [20:24] kriszyp2 has joined the channel [20:25] boltR has joined the channel [20:26] slifty_corsair has joined the channel [20:26] Swizec_ has joined the channel [20:27] kkszysiu has joined the channel [20:27] shehriih has joined the channel [20:27] arnee has joined the channel [20:27] shehriih: hi all [20:29] `3rdEden has joined the channel [20:30] pHcF has joined the channel [20:31] mikl has joined the channel [20:33] _dc has joined the channel [20:34] tilgovi has joined the channel [20:34] tilgovi has joined the channel [20:35] OneOfOne_: cbobo: you tried socket.io? [20:39] mikeal has joined the channel [20:42] zilch_ has joined the channel [20:45] fangel_ has joined the channel [20:45] Squeese has joined the channel [20:46] zilch_ has joined the channel [20:46] zipR4ND has left the channel [20:46] dnyy has joined the channel [20:47] cjroebuck has joined the channel [20:48] harthur has joined the channel [20:48] IanCormac84 has joined the channel [20:49] pwk0 has joined the channel [20:50] pwk0: hi, easy question, did node.js drop support to custom parsers? [20:51] pwk0: I can barely remember that node.js used to have a way to load custom js-written interpreters based on file extension? I cannot find the way anymore :( [20:55] mmalecki: pwk0: require.extensions? [20:55] boltR has joined the channel [20:56] mmalecki: pwk0: require.extensions['.myextension'] = function (someArguments) { doSomething }; [20:56] EyePulp has joined the channel [20:56] mmalecki: I don't know the signature [20:56] pwk0: mmalecki: thanks!! was that :D [20:56] gregoryigelmund has joined the channel [20:57] mmalecki: pwk0: :) [20:57] rayfinkle has joined the channel [20:58] _th_n_ has joined the channel [21:03] patrickjst has joined the channel [21:03] JSManiacs has joined the channel [21:04] deedubs has joined the channel [21:07] lzskiss has joined the channel [21:11] ecin has joined the channel [21:12] mmalecki: mikeal: SYN [21:12] stagas has joined the channel [21:14] dgathright has joined the channel [21:15] ph^ has joined the channel [21:15] justmoon has joined the channel [21:18] mikeric has joined the channel [21:20] zikes has joined the channel [21:20] test_ has joined the channel [21:21] zikes: hey guys, I just installed npm on a fresh server and when I do an npm install it creates a new folder where I'm at and installs there, is this intended behavior? [21:21] piscisaureus_ has joined the channel [21:21] augustl: zikes: yes [21:21] augustl: zikes: npm install -g foo [21:21] augustl: g for global [21:21] zikes: ah, gotcha [21:21] augustl: but you probably don't want that [21:22] lzskiss: , [21:22] pHcF has joined the channel [21:23] Aria: zikes: Yes indeed. npm install -g to install tools written with node; npm install to install libraries, into the project you need them in. [21:25] eldios has joined the channel [21:25] hellp has joined the channel [21:26] pekim has joined the channel [21:27] zilch_ has joined the channel [21:27] xerox: do you know if there are command line utilities to write things in a unix socket [21:27] xerox: to pick up as data events from a node process [21:28] mmalecki: xerox: nc? [21:28] mmalecki: it supports unix sockets, iirc [21:28] dget has joined the channel [21:28] xerox: good idea [21:29] mikeric has joined the channel [21:29] xerox: I am not 100% sure what is the best way to do it if one considers quotes though [21:29] gregpascale has joined the channel [21:29] hij1nx has joined the channel [21:29] xerox: running nc -something something "…data…" every time new data is in could break if "data" has odd '"' or combinations of " and ' [21:30] xerox: hmm [21:30] Aria: or you pipe it in. [21:30] loob2 has joined the channel [21:30] mandric has joined the channel [21:30] xerox: can I pipe it directly in the socket, as lines? [21:32] xerox: I could base64 it! [21:34] augustl: xerox: you should just write it to stdin instead of passing it as an argument [21:34] augustl: echo -n /some/file | nc [21:34] augustl: err, cat /some/file | nc [21:34] xerox: ah passing through a file [21:35] augustl: well whathever. Not sure what your input is :) [21:36] tk has joined the channel [21:37] xerox: an old program that has limited scripting abilities, like running external programs [21:37] xerox: thanks for the input [21:37] augustl: you could always write a small C program [21:40] DennisRasmussen has joined the channel [21:41] xerox: I'll try :) [21:44] zivester has joined the channel [21:44] vindice_ has joined the channel [21:44] Sami_ZzZ_ has joined the channel [21:46] N0va has joined the channel [21:47] stagas has joined the channel [21:47] kriszyp has joined the channel [21:47] devaholic has left the channel [21:47] devaholic has joined the channel [21:48] Squeese has joined the channel [21:49] pekim has joined the channel [21:50] patcito has joined the channel [21:54] teadict: yay, node.js client's project started! I will be here a lot now [21:55] teadict: I'll take that chair over there.. [21:59] Pawka has joined the channel [21:59] Squeese has joined the channel [22:01] zilch_ has joined the channel [22:02] metaverse has joined the channel [22:02] SubStack: it would be super great if you could .pipe() other event names besides 'data' [22:02] Pawka has left the channel [22:03] boltR has joined the channel [22:03] mmalecki: SubStack++ [22:03] v8bot_: mmalecki has given a beer to SubStack. SubStack now has 12 beers. [22:03] catb0t: SubStack now has 1 beer [22:03] SubStack: well at least for this very particular case I have [22:03] SubStack: but pipe already takes an option hash so it wouldn't be very much difference [22:03] mmalecki: SubStack: actually, looks like an easy module [22:04] joshgillies has joined the channel [22:04] flexd has joined the channel [22:05] slifty_corsair has joined the channel [22:05] briemens has joined the channel [22:06] pekim has joined the channel [22:06] zilch_ has joined the channel [22:07] mikeric_ has joined the channel [22:07] piscisaureus__ has joined the channel [22:08] Squeese has joined the channel [22:09] decaf has joined the channel [22:10] mAritz has joined the channel [22:11] p1d has joined the channel [22:11] zkirill has joined the channel [22:12] zkirill: I did "npm install mongodb" and it installs the module into the local directory. Is it supposed to do that? [22:13] Squeese has joined the channel [22:16] joshkehn has joined the channel [22:16] joshkehn has left the channel [22:16] rgl has joined the channel [22:17] teadict: channel's usually quiet, rite? [22:17] zikes: zkirill: yep, you can do npm install -g for global installs but that's not recommended [22:18] zkirill: zikes: cool, thanks, why not? [22:18] teadict: same reason you avoid global namespaces [22:18] teadict: MADNESS [22:18] AAA_awright: Has anyone gotten node-ncurses to work? [22:19] AAA_awright: zkirill: Why would you need to install system-wide if only one application is going to use it? [22:20] teadict: wow, this github watchlist has grown enough.. gonna need to filter what I'll use for the app [22:21] teadict: what does a normal webapp make use of? express, socket.io, mongodb, ... ? [22:21] cbobo: if I do a .indexOf(" ",startPos); will this not work because it is matching for a space or? [22:21] zikes: cbobo: should work [22:22] svnlto has joined the channel [22:23] metaverse has joined the channel [22:23] cbobo: hm I wonder if my string has some strange hex values that are messing it up? because it is not working correctly [22:24] teadict: 99% params are the other way around [22:24] AAA_awright: I'm getting Error: ncurses.node: undefined symbol: _ZN4node12EventEmitter20constructor_templateE [22:24] AAA_awright: Who broke EventEmitter [22:24] teadict: wait, no, that's php [22:25] Wizek has joined the channel [22:26] cbobo: var startPos = inData.indexOf(" PRIVMSG #"); [22:26] cbobo: if (startPos != -1) { [22:26] cbobo: var endChan = inData.indexOf(":",startPos); [22:26] cbobo: so I tried that, and then I do: [22:26] cbobo: var chanName = inData.substr(startPos,endChan); [22:26] AAA_awright: Are there any good C++ programming docs for Node.js? [22:26] AAA_awright: The Javascript docs are great, the C++ is almost non-existant [22:26] wrongle has joined the channel [22:27] teadict: AAA_awright: what are you doing? [22:27] AAA_awright: Trying to fix node-ncurses [22:27] Spion has joined the channel [22:27] cbobo: :A!A@Net PRIVMSG #spam :5No GENRE for7 5/10 Se 07aozz5/07#style 5givin10 Adult 5(10Game:07Adult5) (10Movie:07Adult5) (10Sound:0705)7 i use :10 Adult [22:27] cbobo: on a line that that with colors, etc [22:28] cbobo: so maybe all of the colors are throwing it off? idk why it would not be matching, what the result that I see is [22:28] cbobo: PRIVMSG #spam :5No GENRE for7 5/10 A [22:28] cbobo: something like that, and I only want [#spam] [22:29] mikeal has joined the channel [22:29] AAA_awright: teadict: Unless you know of a better terminal drawing library [22:30] teadict: AAA_awright: terminal drawing library.. [22:30] lzskiss has joined the channel [22:30] AAA_awright: teadict: Like, say, ncurses [22:30] teadict: I pictured an old paintor on a hospital bed [22:30] Squeese has joined the channel [22:30] AAA_awright: With Node.js bindings. [22:31] teadict: oh come on, that was funny [22:31] teadict: AAA_awright: nothing beats ncurses [22:31] skunkape has joined the channel [22:31] lzskiss: p�linka beats [22:32] AAA_awright: teadict: Except node-ncurses is issuing my terminal terminal commands [22:32] isaacs has joined the channel [22:33] AAA_awright: It sets the background color to grey and then hides my cursor, even after I exit and run "clear" [22:33] teadict: never coded ncurses, sorry [22:35] CarterL has joined the channel [22:35] AAA_awright: wait, I want reset [22:37] xerox: anybody knows how to fix this build error? https://gist.github.com/1307996 [22:37] xerox: I'm following https://github.com/joyent/node/wiki/Installation as usual [22:37] AAA_awright: Does mscdex hang out here? [22:37] xerox: could Python 3.2.2 be the problem? [22:38] xerox: seem much newer than "version 2.6 or higher" recommended in Installation [22:42] paul_k has joined the channel [22:43] AAA_awright: xerox: Yeah you want 2.7 [22:44] AAA_awright: xerox: I forgot I've had that exact error because Gentoo symlinked python to python-3 and not python-2 [22:44] xerox: urgh [22:44] AAA_awright: (that was an easy fix, eselect python ...) [22:44] xerox: is there a way around that? I am not sure I want to ask my sysadmin to install another version of python alongside [22:45] AAA_awright: xerox: Isn't there also smake or somethinc? [22:45] AAA_awright: No, cmake [22:45] xerox: hmm what do you mean? [22:45] AAA_awright: xerox: But yes, python should die off the face of the earth already [22:45] ej__ has joined the channel [22:46] AAA_awright: xerox: I thought we added cmake build support for the Windows users [22:46] AvianFlu: cmake is gone in 0.5.10 [22:46] AvianFlu: don't know the why of it [22:46] xerox: can I use --prefix=$HOME/node with cmake? I have no idea how to use cmake. [22:46] jesusabdullah: maybe? [22:46] jesusabdullah: I can tell you that cmake sucks [22:46] jesusabdullah: isn't that right SubStack ? [22:47] AAA_awright: Not as bad as python [22:47] jesusabdullah: oh, nononono [22:47] jesusabdullah: way worse than python [22:47] AAA_awright: I'll take cmake over your crappy python build system [22:47] jesusabdullah: oh, a BUILD system? [22:47] SubStack: it's true [22:47] AAA_awright: I'll gladly use autotools over python [22:47] SubStack: all build systems are terrible, but especially cmake [22:47] jesusabdullah: waf probably sucks [22:47] jesusabdullah: and gyp as well [22:47] SubStack: waf is pretty shit but it's not as bad as cmake [22:47] AAA_awright: Just on principle we shouldn't be using waf anyways [22:47] jesusabdullah: but python itself, despite its flaws, is still useful. I think it's going to be "the next java" but, y'know [22:48] jesusabdullah: Obviously we need a javascript-based build system [22:48] jesusabdullah: except it would probably suck too [22:48] SubStack: waf doesn't infuriate me by doing everything entirely different and throwing an ncurses interface in my face that I can't easily kill [22:48] SubStack: fuck everything about cmake [22:48] AAA_awright: I've never used cmake's ncurses interface, or an GUI [22:48] jesusabdullah: cmake from a user standpoint is really annoying from what I remember [22:49] AAA_awright: http://bzfx.net/guru/ <-- Who wants to help me code this? [22:49] SubStack: xerox: to do prefix it's some bullshit with cmake -D CMAKE_PREFIX=blah . [22:49] jesusabdullah: I guess it's "more cross platform?" but aside from that...geez [22:49] SubStack: or something like that [22:49] SubStack: seriously [22:49] SubStack: fuck that noise [22:49] jesusabdullah: I don't understand guru's goals well enough to be useful for that project [22:49] xerox: SubStack: uhm ok [22:49] AAA_awright: They're all listed there [22:49] xerox: I need the admin to install cmake. [22:49] AAA_awright: kinda [22:49] AAA_awright: xerox: Even that might not be available... [22:50] jesusabdullah: build systems from a developer side of things confuse me [22:50] xerox: http://stackoverflow.com/questions/3819313/cant-configure-node-js-for-make-install-on-os-x-snow-leopard [22:50] xerox: this guy seem to think it's node's fault [22:50] jesusabdullah: I don't have nearly enough experience working with compiled projects [22:50] AAA_awright: xerox: python- doesn't list 2.7? [22:50] xerox: for having changed was, which would be otherwise able to figure out python for itself [22:50] xerox: *waf [22:51] mmalecki has joined the channel [22:51] xerox: python python3 python3.2 python3.2-config python3.2mu python3.2mu-config python3-config python-config [22:51] xerox: : ( [22:53] xerox: I wonder if installing python 2 in $HOME is feasible :) [22:53] Aria: Interesting system, being without the version of python most projects still use. [22:53] Aria: I'm sure it is. [22:55] materialdesigner has joined the channel [22:57] vindice has joined the channel [22:58] eldios has joined the channel [22:59] TomY has joined the channel [23:03] joshkehn has joined the channel [23:04] TomY has joined the channel [23:04] joshkehn has left the channel [23:04] ryanallenbobcat has joined the channel [23:05] slifty_corsair has joined the channel [23:06] svnlto has joined the channel [23:07] zmbmartin has joined the channel [23:08] jesusabdullah: which distro is using python 3 default? [23:08] mmalecki: arch, I think [23:08] xerox: it's a recent linode machine [23:09] xerox: not sure how to tell? [23:09] jesusabdullah: Don't they tell you? [23:09] xerox: I'm just a puny user [23:09] jesusabdullah: With mine, I had a choice of distros [23:09] jesusabdullah: I picked unbuntuo swerver [23:09] xerox: good pick [23:09] jesusabdullah: It's easy, y'know? [23:10] jesusabdullah: I might throw arch on my craptop [23:10] xerox: anyway, I compiled python2.7 in $HOME [23:10] xerox: added to $PATH [23:10] xerox: and was was happy :) [23:10] xerox: now I can remove this extra python [23:10] xerox: 'build' finished successfully (4m14.415s) [23:10] xerox: =) [23:10] amigojapan has joined the channel [23:12] cliffano has joined the channel [23:13] AAA_awright: jesusabdullah: http://bzfx.net/guru/ should be a bit more descriptive now [23:13] AAA_awright: Just a tad [23:14] jesusabdullah: but xerox python3 is the future of python [23:14] jesusabdullah: why do you hate progress [23:14] xerox: do I ?!? [23:14] xerox: :D [23:15] Sorella has joined the channel [23:16] jesusabdullah: Yes. [23:18] Aphelion has joined the channel [23:19] mmalecki: AAA_awright: it's your build system? [23:19] perezd has joined the channel [23:20] AAA_awright: mmalecki: If vaporware can be called mine, yeah [23:21] secoif has joined the channel [23:21] mmalecki: AAA_awright: actually, it's kind of nice [23:22] AAA_awright: It's desperately needed, like how revision control systems deperately needed Git [23:22] AAA_awright: so 'nice' only begins to start to describe it, I think :) [23:22] mmalecki: yeah, well, systems we have are all shit [23:23] mmalecki: I used to like Jam, but lack of documentation killed it [23:24] mmalecki: AAA_awright: what are you planning to write this in? [23:24] AAA_awright: Maybe C++, maybe Node.js [23:24] AAA_awright: It's very similar to my other project in terms of capability: http://magnode.org/ [23:24] mmalecki: I would go for node.js [23:24] mmalecki: it's one of the projects where you will apprieciate duck-typing [23:25] AAA_awright: Which is in active development, despite being a CMS it has the same core functionality: It transforms stuff of one arbritary type into stuff of another type that you ask for [23:25] mmalecki: AAA_awright: bad gateway [23:25] AAA_awright: Argh [23:25] AAA_awright: mmalecki: try again... But the better documentation is at http://magnode.org/doc/en/ anyways [23:25] AAA_awright: for now [23:26] mmalecki: AAA_awright: works [23:26] mmalecki: AAA_awright: meh, node.js cms, I don't like them [23:27] AAA_awright: This is different, really [23:27] AAA_awright: TRUST MEEEEEEE [23:27] AAA_awright: Erm. Yeah, it's really designed around the strengths of Node.js, I think [23:27] AAA_awright: and Javascript [23:27] AAA_awright: I've had this idea to use Javascript for this even before Node.js so it's not just "Hey we should have a Node.js CMS" [23:28] AAA_awright: The Node.js came to the CMS, and not the other way around, here [23:28] AAA_awright: er [23:28] AAA_awright: I guess yeah [23:29] Cev has joined the channel [23:30] jesusabdullah: For some reason, rdf offends my sense of aesthetics [23:30] jesusabdullah: I'm not sure why [23:32] AAA_awright: jesusabdullah: What about it? It's just a data model, like the DOM is a data model [23:33] AAA_awright: Reload the page, I merged "about" and "design" into a single section [23:34] mikeal has joined the channel [23:39] jesusabdullah: AAA_awright: I don't know! Maybe I just don't like xml [23:39] AAA_awright: jesusabdullah: XML uses DOM, RDF is something entirely different [23:39] jesusabdullah: like, maybe angle-brackets are inherently displeasing [23:39] AAA_awright: You're complaining about a syntax, and not even one that RDF uses [23:39] jesusabdullah: idk man it sure LOOKS like xml to me [23:40] AAA_awright: Where do you see XML? [23:40] jesusabdullah: project.doap.rdf [23:40] AAA_awright: force-reload the page [23:40] svnlto has joined the channel [23:41] jesusabdullah: ...I'm not sure that's better. [23:41] AAA_awright: jesusabdullah: That's the XML syntax you're seeing and it needs to die, NO ONE uses it [23:41] jesusabdullah: That's a relief [23:41] AAA_awright: Except maybe Mozilla [23:41] jesusabdullah: Can the namespaces be made less deep? [23:42] jesusabdullah: I see doap:thing everywhere, so is there a way to just have thing? [23:42] jesusabdullah: I mean, that's not a deal-breaker or anything but that could be nice [23:42] jesusabdullah: Anyways [23:42] jesusabdullah: Good to know there rdf and xml aren't married [23:43] AAA_awright: Well there's different namespaces you can use [23:43] AAA_awright: You identify everything with URIs so that's a short way to express a URI [23:43] jesusabdullah: hmm [23:44] jesusabdullah: so they probably won't get any deeper hmm? [23:44] AAA_awright: Unlike XML, which may be contextual (it means something different if the file is in one Git repository versus another), everything in RDF is globally applicable [23:44] jesusabdullah: just the prefix to connect to a uri? [23:44] AAA_awright: No, it's just prefix:component part [23:44] AAA_awright: So in the header I have @prefix doap: [23:45] AAA_awright: that means doap:Project == [23:45] jesusabdullah: right [23:45] jesusabdullah: I see now [23:45] jesusabdullah: That's actually mildly neat! [23:45] jesusabdullah: Is there a json/js-type syntax for this? That'd be really swell >:3 [23:45] AAA_awright: And anyone can use that URI, anywhere in the world, and it always means the same thing [23:45] criswell has joined the channel [23:45] AAA_awright: There is [23:45] daaku has joined the channel [23:45] jesusabdullah: example? [23:46] jesusabdullah: I'd probably use that if I got into semantic web stuff [23:46] AAA_awright: There's no standard, actually, but I use: {"subject": {"predicate": "object"}} [23:46] jesusabdullah: but that's cause I'm a fanboi [23:46] jesusabdullah: ah! [23:46] jesusabdullah: That sounds like a reasonable approach [23:46] AAA_awright: If you have more than one object for a predicate, you use: {"subject": {"predicate": ["object"]} [23:47] mikeal has joined the channel [23:47] AAA_awright: And actually you can type your objects with URIs, so you can say "this is an integer" or "This is an english-language literal" so there's one last thing: {type:"typeURI",value:"object"} [23:47] AAA_awright: "object" is for URIs [23:47] AAA_awright: that's what I use, that seems to be standard [23:47] rchavik has joined the channel [23:47] rchavik has joined the channel [23:48] AAA_awright: you can also just have an Array of {subject:, predicate:, object:} triples too [23:48] AAA_awright: but that's clunky [23:48] Dulak has joined the channel [23:50] jesusabdullah: You can have a hash of subjects, right? { "subject1": [object Object], "subject2": [object Object] } [23:50] jesusabdullah: like that? [23:50] jesusabdullah: It sounds like the important part of rdf is encoding sets of these triples [23:52] Aria: Yeah. Triples being the only universal serialization of a graph. [23:52] Aria: "this ... connects to ... that" [23:54] AAA_awright: jesusabdullah: What you do is you create multiple resources and you give them names and values [23:55] AAA_awright: so if subject1 isn't a URI you would go, { "http://example.com/subject1": { "name": "subject1", "value":[object Object] } } [23:56] AAA_awright: actually, if subject1 isn't a URI then I can't do that, it would be: [23:56] AAA_awright: so if subject1 isn't a URI you would go, { "http://example.com/subject1": { "name": {value:"subject1"}, "value":[object Object] } } [23:56] AAA_awright: to show it's a string literal and not a URI [23:57] metaverse has joined the channel [23:57] jesusabdullah: hmm [23:58] zkirill has joined the channel [23:59] AAA_awright: jesusabdullah: It's trivial to recover a table of name/value pairs, you would query for a pattern like this: [23:59] AAA_awright: SELECT * { ?resource name ?name . ?resource value ?value . } [23:59] jesusabdullah: sparql? [23:59] AAA_awright: Yep