[00:02] fred___ has joined the channel [00:02] sdwrage has joined the channel [00:02] jp232: rage [00:03] ningu: against the machine? [00:03] ningu: ag4ve: installed it locally, right? [00:03] ag4ve: trying to [00:03] jp232: rage against the HTTPS [00:03] jp232: and proxies [00:04] rwaldron has joined the channel [00:04] ag4ve: stand debian iirc (might be ubuntu ... checking) [00:04] ag4ve: proc version says stock debian, and just built node a few days ago [00:05] ningu: bcrypt 0.5.0 requires node 0.6.0 [00:05] ningu: did you install 0.4.x? [00:05] ag4ve: i installed the debian bcrypt [00:05] ningu: node [00:05] brianseeders has joined the channel [00:06] ningu: not bcrypt [00:06] ningu: you can't use bcrypt 0.5.0 on node less than 0.6.x [00:06] ag4ve: don't know, just did npm install bcrypt [00:06] konobi: node -v [00:06] ag4ve: v0.5.11-pre [00:06] sirPuppy31 has joined the channel [00:06] konobi: there's your problem [00:07] nerdy has joined the channel [00:07] ag4ve: so, install node 0.5? [00:07] Joeysomo: you can use nvm to manage your node versions [00:07] mikeal has joined the channel [00:08] ningu: ag4ve: scroll up and read what I said :P [00:08] Joeysomo: https://github.com/creationix/nvm [00:08] illourr has joined the channel [00:08] misza222 has joined the channel [00:08] ag4ve: errr, right, node 0.6 then :) [00:11] ag4ve: hummm, nwm looks cool, it's perlbrew for node [00:13] dannyamey has joined the channel [00:13] agnat_ has joined the channel [00:13] diverdude: is it possible to upload js files and css files to jsfiddle? [00:14] SubStack: diverdude: what are you trying to do? [00:14] diverdude: SubStack: i just wanted to run a jquery plugin i made on jsfiddle [00:15] ningu: why not just put in a script tag pointing to jquery? [00:15] sh1mmer has joined the channel [00:15] SubStack: ah [00:17] bizniz98 has joined the channel [00:19] hh__: if a function a exists in file a, but it's not exported, is it possible to still refer to it from file b? [00:20] ningu: not afaik [00:20] ningu: SubStack: what is a SubStack, anyway? [00:21] maxogden: its the thing that guy jared ate to lose the weight [00:21] chjj: ningu: its a robot [00:21] ningu: eating robots... I can see how that would make someone lose weight [00:22] josh-k has joined the channel [00:22] ryanfitz has joined the channel [00:27] mikeal has joined the channel [00:27] zemanel has joined the channel [00:28] stagas has joined the channel [00:31] ovnicraft has joined the channel [00:32] kickingvegas has joined the channel [00:34] cjm has joined the channel [00:34] lupomontero has joined the channel [00:34] alex_k has joined the channel [00:34] mikeal has joined the channel [00:35] avalanche123 has joined the channel [00:35] joshwines has joined the channel [00:35] perezd has joined the channel [00:35] thetristan has joined the channel [00:37] Blue-Dragon has joined the channel [00:40] samuelgoodwin has joined the channel [00:41] alex_k has joined the channel [00:41] Jarred has joined the channel [00:42] Jarred: hi all [00:42] Jarred: Whenever I try to install a package (via npm) when not in $HOME I get "ERR! message UNKNOWN, unknown error 'jade.js'", but where it says 'jade.js' any package being installed [00:42] Jarred: This is on Arch Linux [00:43] Jarred: with the nodejs package [00:43] Jarred: What other information could I provide to make this easier for you guys to help me? [00:45] Eruadan: what's the -g is doing when using npm? global? [00:45] thinkt4nk has joined the channel [00:45] Jarred: Here's the NPM debug file https://gist.github.com/92a70b659cc8fe093239 [00:45] ningu: Eruadan: yes, it installs in your NODE_MODULES directory -- you should only use it if the module has a binary you need to access [00:45] rauchg has joined the channel [00:45] alex_k has joined the channel [00:46] ^robertj has joined the channel [00:46] Eruadan: what do you mean a binary i need to acess? [00:46] hatch has joined the channel [00:47] ningu: Jarred: does that happen with any package? [00:47] fermion_ has joined the channel [00:47] ningu: Eruadan: some node module include things you can run from the command line [00:47] pizthewiz has joined the channel [00:47] ningu: for example, jade has a jade command for compiling templates outside of an app [00:47] criswell has joined the channel [00:47] ningu: I shouldn't say binary, just command -- things that are executable [00:47] Eruadan: ohh, i see [00:47] Eruadan: cheers [00:48] ningu: but if you want it in an app just install it locally [00:49] ningu: Eruadan: for example I have node-inspector installed globally so if I want to debug I can just run node-inspector from the cmdline [00:50] Eruadan: mm, i see, i understand. [00:50] Eruadan: so there's no sense to install backbone with -g [00:51] ningu: not afaik, I haven't used it [00:51] ningu: Jarred: hrm... and everything in node_modules is writable to npm, I assume? [00:51] ningu: Jarred: I don't know npm very well, it basically just works for me, but that's a weird error [00:51] andrehjr has joined the channel [00:52] Eruadan: i was getting errors with npm also [00:52] Eruadan: yesterday and today [00:52] Eruadan: trying to install calipso [00:52] ningu: well, individual packages could be broken [00:52] ningu: but i know express and jade are not [00:53] Nuck: .. typeof 3 [00:53] Nuck: whatever. [00:53] meandi8 has joined the channel [00:54] jn has joined the channel [00:54] nibblebot has joined the channel [00:54] Jarred: ningu: Yes [00:54] cha0s has joined the channel [00:54] cha0s has joined the channel [00:55] jimubao has joined the channel [00:55] EhevuTov has joined the channel [00:56] troy-- has joined the channel [00:56] andrehjr has joined the channel [00:57] looopy has joined the channel [00:58] jacobolus has joined the channel [00:59] redir has joined the channel [00:59] Jarred: http://stackoverflow.com/questions/9458851/npm-failing-to-install-packages-outside-of-global [00:59] pradeebv has joined the channel [01:00] retornam has joined the channel [01:01] andrehjr has joined the channel [01:02] redir has joined the channel [01:02] jabbslad has joined the channel [01:05] Eruadan: is there any blog or something based on backbone as there's things such as calipso based on express? [01:06] ningu: Jarred: well, hopefully someone will know [01:06] ningu: Jarred: often isaacs and other npm gurus are in here [01:06] andrehjr has joined the channel [01:07] redir has joined the channel [01:08] CarterL has joined the channel [01:09] VIPPER has joined the channel [01:10] copongcopong has joined the channel [01:11] VIPPER has left the channel [01:14] Aria has joined the channel [01:15] Jarred: I'm just going to try installing node via AUR [01:16] andrehjr has joined the channel [01:17] Eruadan: why don't just compile it yourself? [01:17] Jarred: because its unneccessary [01:18] Octayn: It's most certainly necessary if you want to build any packages that are C++ bindings or extensions [01:18] Jarred: Arch's package won't do that? [01:18] DimandDave has joined the channel [01:18] cjm has joined the channel [01:18] Octayn: I've yet to see a distro package that does. Let me take a look [01:19] Octayn: This from the AUR? [01:19] Eruadan: i think if you curl npm, you got node already built in dude [01:19] Jarred: No [01:19] Jarred: from the repository [01:19] Jarred: main* [01:19] Eruadan: curl http://npmjs.org/install.sh | sh [01:20] Octayn: To install npm like that you need node. [01:21] Jarred: compiling [01:21] Eruadan: Super Easy Install [01:21] Eruadan: npm comes with node now. [01:21] Eruadan: https://github.com/isaacs/npm [01:22] maletor has joined the channel [01:24] Eruadan: Octayn, that link made me believe that installing npm, node would come along [01:25] Octayn: Eruadan: Well actually reading the shell script proves otherwise :) [01:25] andrehjr has joined the channel [01:25] Eruadan: so why it says "npm comes with node now." ? [01:25] Octayn: Because it does [01:26] jdeibele1 has joined the channel [01:26] Octayn: As in, npm is bundled with node [01:26] Octayn: Not "installing npm gives you node" [01:26] Jarred: Same error [01:26] Octayn: What's the error? [01:26] Octayn: (I wasn't here earlier) [01:27] Jarred: Octayn: http://stackoverflow.com/questions/9458851/npm-failing-to-install-packages-outside-of-global [01:28] Eruadan: Jarred, wich package are u installing? [01:28] Octayn: Jarred: wgetpaste /media/code/express/npm-debug.log [01:28] jetienne_ has joined the channel [01:28] Jarred: Octayn: http://paste.pocoo.org/show/557280/ [01:28] Eruadan: Octayn, have you ever used that calipso? [01:29] CIA-102: node: 03Nathan Rajlich 07master * r3c68c85 10/ common.gypi : build: use -pthreads (not -pthread) on Solaris - http://git.io/Ab8PHg [01:29] Octayn: Eruadan: never heard of it [01:30] Jarred: Here iti is in a more preferable pastebin http://hastebin.com/tovevogowo [01:30] Eruadan: lol [01:30] ningu: too many pastebins [01:30] ningu: :) [01:30] Jarred: yeah I agree [01:30] Eruadan: calipso....calipso [01:30] Jarred: but this one has syntax highlighting [01:30] ningu: I just go to pastebin.com cause I can remember the url [01:30] Jarred: and has a shorter shell command (`haste` and its a ruby gem) [01:31] Eruadan: well, i cannot even install calipso, must be a sign to not use it o.O [01:31] Octayn: decent shells have tab completion which makes lengths of names mostly irrelevant. [01:32] Jarred: fair enough [01:32] Jarred: I should be using oh-my-zsh anyway [01:32] Jarred: hastebin still looks nicer though and has syntax highlighting [01:32] Octayn: Jarred: can you cd /tmp and 'npm install jade' normally? [01:32] Jarred: yes [01:33] CIA-102: node: 03T.C. Hollingsworth 07master * rd03b848 10/ (configure node.gyp): build: support shared zlib - http://git.io/mqBcpw [01:33] andrehjr has joined the channel [01:35] Octayn: I can't reproduce at all [01:37] Eruadan: Jarred, have you tried #archlinux ? [01:37] gerard0 has joined the channel [01:37] Jarred: hmm [01:40] CIA-102: node: 03Nathan Rajlich 07master * r3f1f2d1 10/ tools/gyp_addon : addon: write gyp generated files to the 'out' dir - http://git.io/JxDNCg [01:40] Eruadan: i remember once using arch and having a lot a troubles, ugh..bad memories [01:40] krnl has joined the channel [01:40] andrehjr has joined the channel [01:41] Octayn: even with the same versions of things I cannot reproduce, so it's probably an environment thing [01:43] stagas has joined the channel [01:43] khug has joined the channel [01:44] amigojapan has joined the channel [01:45] CIA-102: node: 03Nathan Rajlich 07master * raa35564 10/ test/addons/hello-world/binding.cc : [01:45] CIA-102: node: Use NODE_MODULE in the hello-world addon example. [01:45] CIA-102: node: Fixes Windows throwing "unknown error" when trying to require the .node file. - http://git.io/0ImtrA [01:45] cjroebuck has joined the channel [01:45] Allyz has joined the channel [01:47] icewhite has joined the channel [01:48] andrehjr has joined the channel [01:50] ryan_stevens has joined the channel [01:52] davidbanham has joined the channel [01:52] zanefactory has joined the channel [01:52] Eruadan: after install ultra-repl, with sudo npm install ultra-repl -g, i got this error when trying to open ultra-repl, https://gist.github.com/1920657 [01:53] Leemp has joined the channel [01:54] tuhoojabotti: !npm info ultra-repl [01:54] jhbot: ultra-repl by Brandon Benvie, version 0.6.7: Starting with Node's built in REPL, add in a completely redone inspect formatter, actual functioning separate V8 contexts, keybindings to create, switch, and delete between them, combine it with a bunch of color. ULTRA REPL. [01:55] tuhoojabotti: benvie: https://gist.github.com/1920657 [01:55] tuhoojabotti: there. :P [01:55] jesusabdullah: That's pretty cool [01:55] jesusabdullah: dangit where's thejh when I want to ask him questions [01:56] ningu: I like the increasing popularity of repl's [01:56] andrehjr has joined the channel [01:56] ningu: perl must have one but it isn't part of the culture, or wasn't [02:00] SubStack: perl has had repls for a long time they just weren't especially popular [02:00] SubStack: but perl one-liners with -e are pretty popular [02:00] ningu: yeah [02:00] ningu: that's what I usually do [02:01] ningu: but it's nice not to have to type print and use quotes to get a return value [02:02] RobWC has joined the channel [02:02] RobWC has left the channel [02:03] andrehjr has joined the channel [02:03] chrisina1ar: I'm editing someone else's bindings to change a return value but it's not working, is there something other than adding 'return scope.Close(Number::New(_ret));' that i need to do? [02:04] jesusabdullah: I was always about the repl [02:05] ryanfairchild has joined the channel [02:06] ditesh|cassini has joined the channel [02:07] vbabiy has joined the channel [02:08] fairwinds has joined the channel [02:09] juske_ has joined the channel [02:09] benvie: let me check that [02:10] benvie: I just put a new version up but I think I broke it [02:10] andrehjr has joined the channel [02:10] charlenopires has joined the channel [02:10] benvie: some changes didn't get on the npm version [02:13] chrisina1ar: is there a channel that someone might be able to help me with bindings problems?... i can't get a return value to work... [02:14] AvianFlu: chrisina1ar, you should just ask, there are several people in here who work with them a lot [02:14] AvianFlu: what node version? what are you trying to return? [02:14] jaw187 has joined the channel [02:15] benvie: Eruadan: upgrade on npm, it should be fixed now [02:15] AvianFlu: chrisina1ar, I saw what you said up above, can you link code [02:15] AvianFlu: ? [02:15] benvie: was just a commit that didn't get pushed to npm [02:17] Crowb4r has joined the channel [02:17] andrehjr has joined the channel [02:18] heatxsink has joined the channel [02:18] mikeal has joined the channel [02:20] slajax has joined the channel [02:23] Jarred: Yeah, that problem had to do with Arch Linux [02:23] Jarred: I installed Ubuntu Server [02:23] Jarred: and it owrks [02:23] Jarred: *works [02:24] Eruadan: benvie, should i reinstall ultra-repl ? [02:25] benvie: `npm upgrade ultra-repl` should work [02:25] andrehjr has joined the channel [02:25] AvianFlu: U-U-U-U-ULTRA REPL [02:26] abraxas has joined the channel [02:27] dshaw_ has joined the channel [02:30] ryanfairchild has joined the channel [02:30] ljharb has joined the channel [02:30] andrehjr has joined the channel [02:30] chrisina1ar: AvianFlu: http://pastebin.com/djnNzXpw [02:31] chrisina1ar: sorry, went afk for a while... [02:31] chrisina1ar: it still returns undefined [02:31] Hebo has joined the channel [02:32] AvianFlu: chrisina1ar, try to dump that value from C++ and see if it is what you think it should be [02:32] AvianFlu: v8 does some funky operator overloading, pointers and typecasting can get hairy [02:33] stagas has joined the channel [02:33] AvianFlu: I have no idea what those other types you're trying to use are, though, so I can't be of much help here [02:33] chrisina1ar: well it's a GLuint which i see lower in the code working correctly [02:33] AvianFlu: maybe try Integer::New() instead? [02:34] chrisina1ar: trying now.. [02:34] mikeal has joined the channel [02:37] Jarred: How do I setup an express app to use coffeescript? Do I need some file system watcher or something for it to automatically compile? [02:37] geef has joined the channel [02:38] kejun has joined the channel [02:39] techwraith has joined the channel [02:41] Jarred: nvm [02:41] justicefries has joined the channel [02:42] andrehjr has joined the channel [02:43] rudolfrck has joined the channel [02:44] senorpedro has joined the channel [02:44] VesQ has joined the channel [02:47] coyo has joined the channel [02:47] coyo has joined the channel [02:48] chrisina1ar: AvianFlu: http://pastebin.com/CHk2WJk2 can you make any sense of it? [02:50] AvianFlu: chrisina1ar, what's the GL stuff about? I don't recognize it [02:51] rwaldron has joined the channel [02:52] Eruadan: benvie,thanks, it works now. :) [02:52] benvie: awesome =D [02:53] Eruadan: great tool btw, well done [02:53] benvie: thanks! [02:53] benvie: put a lot of work into it [02:53] jn has joined the channel [02:53] Eruadan: i believe you [02:53] rurufufuss has joined the channel [02:53] chrisina1ar: AvianFlu: it's just an alias for a 32bit int [02:54] st_luke has joined the channel [02:54] AvianFlu: what are you trying to bind? [02:54] chrisina1ar: the int [02:54] chrisina1ar: i want to return it [02:54] AvianFlu: no, I mean, what's the code for, I'm curious [02:54] chrisina1ar: oh, getting new texture id's [02:54] chrisina1ar: i'm writing an opengl engine entirely in javascript [02:55] AvianFlu: I would next try one of two things here [02:55] AvianFlu: either go google the v8 api docs [02:55] dleary has joined the channel [02:55] AvianFlu: or start trying various integer-related typecasts [02:55] chrisina1ar: i found example code from real modules that do it the same way [02:55] AvianFlu: like Integer::New((int)thatthing) [02:55] chrisina1ar: https://github.com/ncb000gt/node.bcrypt.js/blob/master/src/bcrypt_node.cc#L291 [02:56] fomatin has joined the channel [02:56] Wa has joined the channel [02:56] AvianFlu: that's an example of return Scope.close() [02:56] AvianFlu: is this all the code so far or just a piece of it? [02:57] a_suenami has joined the channel [02:57] chrisina1ar: i'm editing existing bindings [02:57] AvianFlu: if they're on github, you should link me [02:58] chrisina1ar: https://github.com/chrisinajar/node-ogl/blob/master/src/gl.cc#L4782 [02:58] Crowb4r has joined the channel [02:58] majek has joined the channel [02:59] AvianFlu: you should ask in #libuv tomorrow [02:59] AvianFlu: it's sunday, nobody's around [02:59] chrisina1ar: yeah [02:59] AvianFlu: but that's where the experts in this stuff live [03:00] chrisina1ar: did you already relay my question or should i paste it there as well, in case anyone is around.. [03:01] sriley has joined the channel [03:01] CIA-102: node: 03Ben Noordhuis 07master * r90fd70d 10/ doc/api/http.markdown : [03:01] CIA-102: node: docs: fix http.ClientRequest.write() documentation [03:01] CIA-102: node: 'an array of integers' == very, very deprecated - http://git.io/Ig5kjg [03:02] daleharvey has joined the channel [03:03] relix has joined the channel [03:03] jamescarr_ has joined the channel [03:04] jemparing has joined the channel [03:04] heatxsink has joined the channel [03:05] iaincarsberg has joined the channel [03:05] beawesomeinstead has joined the channel [03:05] jayniz has joined the channel [03:05] JKarsrud has joined the channel [03:06] boltR has joined the channel [03:06] davebettin has joined the channel [03:06] RexM has joined the channel [03:08] unomi has joined the channel [03:08] andrehjr has joined the channel [03:09] khug has joined the channel [03:09] strmpnk has joined the channel [03:10] Raynos has joined the channel [03:10] HeikkiV_ has joined the channel [03:11] AvianFlu: chrisina1ar, I haven't [03:11] AvianFlu: I was just poking around myself [03:11] AvianFlu: I've spent the last week looking at a lot of binding code, but I'm not an expert [03:12] nym has joined the channel [03:12] ekryski has joined the channel [03:14] lmatteis has joined the channel [03:14] svnlto has joined the channel [03:14] wycats has joined the channel [03:16] Fabryz has joined the channel [03:17] _ralph has joined the channel [03:17] oal has joined the channel [03:17] _unary has left the channel [03:17] Jarred: People usually use Express + Mongoose with Node, right? [03:18] ksys has joined the channel [03:18] criswell has joined the channel [03:19] ksys: what is more commonly used in node.js land, couchdb or mongodb/ [03:19] ksys: ? [03:20] konobi: depends on the project [03:20] davehamptonusa has joined the channel [03:20] ksys: i need to store user accounts, that's about it [03:21] davehamptonusa has left the channel [03:21] konobi: redis [03:21] Jarred: Is there a commonly-used PostgreSQL orm? [03:21] ningu: Jarred: https://github.com/joyent/node/wiki/modules [03:21] pocopina has joined the channel [03:21] _unary has joined the channel [03:22] wavded has joined the channel [03:22] duncanbeevers has joined the channel [03:22] im0b has joined the channel [03:22] garann has joined the channel [03:22] sveisvei has joined the channel [03:22] ryanseddon has joined the channel [03:23] JasonSmith has joined the channel [03:23] QaDeS has joined the channel [03:24] thinkt4nk has joined the channel [03:24] konobi: SubStack: ping [03:25] remysharp has joined the channel [03:26] ziyadb has joined the channel [03:26] kermitPT has joined the channel [03:26] hasenj has joined the channel [03:27] booyaa has joined the channel [03:28] SubStack: konobi: beep boop [03:28] bartek has joined the channel [03:28] gwing has joined the channel [03:28] konobi: SubStack: do you use tap-runner at all? [03:29] SubStack: yes [03:29] SubStack: well how do you mean and for what I guess? [03:29] konobi: i was thinking of adding a running_timeout option to it, so that on each "result" event, it would reset the overall timer... does that seem sane to you? [03:29] SubStack: I'm using the tap producer in testling for tap output [03:29] Nuck: Is there any way to get longer stack traces in Node? >_> [03:30] Nuck: Like, easy way [03:30] boehm has joined the channel [03:30] konobi: also... what are your thoughts on the default timeouts per test() [03:30] konobi: Nuck: stackTraceLimit [03:30] konobi: it defaults to 10 [03:30] SubStack: the default timeouts seem to work fine [03:30] konobi: SubStack: 30secs [03:31] konobi: most stuff you're doing in the browser though, right? [03:31] SubStack: no [03:32] SubStack: testling uses its own runner and only uses tap-producer for the output=tap param [03:32] alex_r has joined the channel [03:32] SubStack: but I have tens of thousands of lines of tap tests for node modules [03:33] jeremyselier has joined the channel [03:34] Hosh has joined the channel [03:34] konobi: ah... i'm doing lots of systems level tests that are longer than 30s [03:34] blissdev has joined the channel [03:34] pp01bit has joined the channel [03:35] dscape has joined the channel [03:35] tiglionabbit has joined the channel [03:35] owenb has joined the channel [03:36] Eruadan: is there some connection between knockout.js and .net and microsoft? [03:36] niftylettuce has joined the channel [03:37] cmwelsh has joined the channel [03:37] konobi: SubStack: would it make sense to have the timeout from the command line (or constructor) feed into the "default" for that runner though [03:38] Guest56323 has joined the channel [03:38] SubStack: konobi: from the command-line? [03:39] konobi: tap --timeout [03:39] olegp has joined the channel [03:39] necromancer has joined the channel [03:40] ryanfitz has joined the channel [03:40] Vennril2 has joined the channel [03:43] mrb_bk has joined the channel [03:43] coderarity has joined the channel [03:46] blueadept has joined the channel [03:46] blueadept has joined the channel [03:47] andrehjr has joined the channel [03:50] jdeibele has joined the channel [03:51] JohnnyL has joined the channel [03:51] charlenopires_ has joined the channel [03:52] andrehjr_ has joined the channel [03:53] satyr has joined the channel [03:53] zackattack: Do you guys think I should get a separate VPS(linode) for the staging version of my app? [03:54] SubStack: zackattack: you can probably just spin up your staging instance alongside the production one [03:54] SubStack: then it's easier to flip a switch to swap out production with staging [03:55] zackattack: How do i do that! [03:55] SubStack: just spin it up on a different port! [03:55] zackattack: btw, i'm using dnode again, because the service that calculates my leaderboard could hypothetically take a long time and be blocking [03:55] SubStack: you could use an http proxy to route accordingly [03:55] SubStack: like bouncy or node-http-proxy [03:56] zackattack: Huh? [03:56] zackattack: interesting [03:56] zackattack: i'm on nginx now... but it's a mess [03:56] SubStack: if (req.headers.host.split('.')[0] === 'staging') bounce(stagingPort) [03:56] Jarred: Why does it seem like everything I come across involving Node.js involves LearnBoost? [03:57] zackattack: socket.io is grand [03:57] zackattack: SubStack: i guess i'd be using that in conjunction with nginx? [03:57] thetristan has joined the channel [03:57] SubStack: zackattack: what are you using nginx for? [03:58] zackattack: socket.io i think? [03:58] Jarred: Node == web server [03:58] Jarred: Right? [03:58] zackattack: not necessarily [03:58] gavin_huang has joined the channel [03:58] zackattack: it doesn't have to serve web pages [03:58] SubStack: zackattack: I don't follow. [03:58] zackattack: it could be an internal service [03:58] zackattack: let me gist it [03:59] kriszyp has joined the channel [03:59] zackattack: SubStack: https://gist.github.com/1921244 [04:00] andrehjr_ has joined the channel [04:00] warz has joined the channel [04:00] warz has joined the channel [04:01] SubStack: zackattack: you're using nginx to serve cgi scripts then? [04:01] zackattack: yes [04:01] SubStack: and proxying too [04:01] soapyillusions has joined the channel [04:01] tauren has joined the channel [04:01] SubStack: well you could have a static staging port [04:01] SubStack: that maps to staging.yourdomain.com [04:02] SubStack: or you could have a dynamic staging port that ties in to a bouncy-based http proxy [04:04] zackattack: i really need to clean up my nginx configuration [04:04] zackattack: it's hideous and it's causing trouble [04:04] SubStack: you could just put bouncy in front and rip out all the non-cgi logic [04:04] zackattack: is that easier [04:05] zackattack: oh wow [04:05] zackattack: that looks a lot easier [04:05] zackattack: how long do you think it would take me to set up? [04:06] SubStack: I don't give time estimates. [04:06] SubStack: ever [04:07] ningu has joined the channel [04:08] zackattack: haha [04:08] zackattack: why is that? [04:09] vbabiy_ has joined the channel [04:13] sreeix has joined the channel [04:22] Hebo has joined the channel [04:24] brianseeders has joined the channel [04:24] dreamdust has joined the channel [04:24] jamescarr_ has joined the channel [04:25] hemanth has joined the channel [04:25] hemanth: is there a easy way to write a hook for a process that is exec'd ? [04:26] jamescarr_: hemanth, a hook? [04:26] hemanth: jamescarr_, on_exit [04:26] infynyxx_ has joined the channel [04:26] jamescarr_: I thought child_process had an 'exit' event? [04:31] hemanth: jamescarr_, o yeah! will try that [04:33] stagas has joined the channel [04:33] bicranial has joined the channel [04:37] hemanth: jamescarr_, process.createChildProcess better or child_process.exec [04:37] jamescarr_: hemanth, debatable, but I always used exec in the past [04:39] Joeysomo has joined the channel [04:40] hemanth: ok! [04:42] satyr has joined the channel [04:45] pradeebv has joined the channel [04:46] Joeysomo has joined the channel [04:47] recur has joined the channel [04:48] wiwillia has joined the channel [04:49] OmidRaha has joined the channel [05:00] sreeix has joined the channel [05:02] stelcheck has joined the channel [05:02] zackattack: is it possible to use node in interactive mode; like, python -i ? [05:03] benvie: there's no way to force it currently like with a flag [05:04] zackattack: oic [05:04] benvie: you can implement it though [05:04] benvie: with a bit of playing with child_process [05:04] zackattack: with require("repl")? [05:04] benvie: not exactly [05:05] benvie: that will start the repl but it won't be using the the TTY socket type [05:05] jesusabdullah: man, lotta people asking for a node -i [05:05] benvie: yeah [05:05] jesusabdullah: someone get on adding that [05:05] benvie: https://gist.github.com/1748873 [05:10] _baton__ has joined the channel [05:13] yumike has joined the channel [05:13] hemanth: jamescarr, child = exec("blah"); child.on('exit',function(code,sig) { if (code) return "DONE";}); missing something? [05:16] copongcopong has joined the channel [05:22] tofusoul has left the channel [05:23] stagas has joined the channel [05:24] tricon_ has joined the channel [05:26] ryan_stevens has joined the channel [05:27] davehamptonusa has joined the channel [05:27] jgaui has joined the channel [05:31] rwaldron has joined the channel [05:33] dimarr has joined the channel [05:37] spion has joined the channel [05:39] niloy has joined the channel [05:44] davehamptonusa has joined the channel [05:44] EhevuTov has joined the channel [05:44] davehamptonusa has left the channel [05:44] JasonSmith: SubStack: Are you the new pseudo-maintainer of node-tap? [05:45] JasonSmith: Wondering if there is .tapignore yet, so I can put couch tests or whatever in there too and not have tap nag me [05:45] polyrhythmic has joined the channel [05:45] SubStack: seemingly [05:46] SubStack: I usually do tap test/*.js [05:46] SubStack: and put other stuff in subdirs [05:46] rook2pawn: can you npm install from github? say a fork [05:46] SubStack: yep! [05:46] ningu: what about a spoon? [05:47] SubStack: rook2pawn: go to the download tab in github and copy the tar.gz link into your package.json dependency [05:50] petrjanda has joined the channel [05:50] prestonparris has joined the channel [05:52] drgs has joined the channel [05:52] jesusabdullah: also, git+ssh://github.com/rook2pawn/project.git should work [05:53] stagas has joined the channel [05:54] Jarred has joined the channel [05:56] mdaisuke has joined the channel [05:57] rook2pawn: SubStack: would it look like "dependencies" : { "https://github.com/foo/modulename/tarball/master" : "" } ? [05:58] salva has joined the channel [05:58] RobWC has joined the channel [05:59] RobWC has left the channel [06:01] Jarred: For some reason, I can't install coffeecup within my project http://hastebin.com/siwesicaxe [06:03] take_cheeze has joined the channel [06:04] kanzure has joined the channel [06:04] jesusabdullah: rook2pawn: "modulename": "https://github.com/path/to/tarball.tgz" [06:05] kanzure has left the channel [06:05] kanzure has joined the channel [06:06] devongovett has joined the channel [06:06] Jarred: After basicallyh everything, I get "npm ERR! message ENOENT, no such file or directory '/tmp/npm-1330322744559/1330322744559-0.8374743529129773/package/package.json'" [06:06] Jarred: *after trying to install basically anything [06:06] Jarred: via npm [06:07] SubStack: rook2pawn: "dependencies" : { "beepboop" : "thegiturlgoeshere" } [06:09] Jarred: Any ideas? [06:09] redir has joined the channel [06:12] shipit_ has joined the channel [06:14] jxie has joined the channel [06:14] Murugaratham has joined the channel [06:18] munichlinux has joined the channel [06:21] Jarred: hm [06:21] Jarred: Apparently its a permissions error [06:23] stagas has joined the channel [06:24] garrensmith has joined the channel [06:29] stonebranch has joined the channel [06:33] niloy: I am getting this error when trying to install jshint [06:33] niloy: niloy@Niloy-Laptop:~$ npm install -g jshint [06:33] niloy: npm ERR! couldn't read package.json in . [06:33] niloy: npm ERR! Error installing . [06:33] niloy: npm ERR! Error: ENOENT, No such file or directory 'package.json' [06:33] niloy: npm ERR! Report this *entire* log at [06:33] niloy: npm ERR! or email it to [06:33] niloy: npm ERR! Just tweeting a tiny part of the error will not be helpful. [06:33] niloy: npm not ok [06:34] unomi has joined the channel [06:34] garrensm_ has joined the channel [06:35] strager: niloy: npm and node version? [06:35] niloy: node: 0.4.9, npm: 0.2.19, I am on ubuntu [06:36] strager: Those are seriously out of date. [06:37] strager: Try this PPA: https://launchpad.net/~richarvey/+archive/nodejs [06:37] niloy: ok thanks [06:37] boltR has joined the channel [06:38] niloy: strager, should I add that link in the repo? [06:39] strager: Hmm? [06:39] niloy: nvm [06:39] strager: sudo add-apt-repository ppa:richarvey/nodejs [06:40] Rob__ has joined the channel [06:41] jdeibele has joined the channel [06:42] garrensmith has joined the channel [06:42] yumatov has joined the channel [06:43] hemanth: client = dgram.createSocket("udp4"); and client.send() is working on the interpreter, but not as a module :/ tired trying to figure out the issue [06:44] JohnnyL: hm. have any of you attempted to call OpenGL through Node.js? [06:47] pvankouteren has joined the channel [06:48] benvie has joined the channel [06:50] hemanth: https://raw.github.com/gist/a6334ce2269d4d3f5faa/a751a581dac339e93b21f17bf33fcfc3b2a3758e/udp.js what's wrong with that? I have a UDP server running for sure on that port and from the REPL it works well :/ [06:51] tornad has joined the channel [06:54] tonist has joined the channel [06:54] Allyz has joined the channel [06:56] Murugaratham has joined the channel [06:56] Murugaratham has joined the channel [06:57] joaojeronimo has joined the channel [06:57] hemanth: SubStack, facing issue with a simple UDP client, help me! [06:58] Renegade001 has joined the channel [06:58] niloy: strager, I added the repo for nodejs, but it shows as "broken" when I am trying to install via synpatic [06:59] tonymilne has joined the channel [06:59] jdeibele has joined the channel [07:02] pid1 has joined the channel [07:02] airandfingers has joined the channel [07:02] tonymilne: Does anyone have any Ubuntu OS security / node web app security experience? [07:03] jesusabdullah: define 'security' [07:03] Skaag has joined the channel [07:03] tonymilne: lol, yeah :S there is a company about to be sub-contracted to do a "security audit" for a node + iOS app that i have worked on which is running on Ubuntu based hosting, [07:04] tonymilne: but i think they will be incredibly under-qualified to do the task justice (since i doubt they know node) [07:04] jesusabdullah: well, I mean [07:04] tonymilne: and think that the most important part of the audit is focusing on the iOS app. [07:04] sirPuppy31 has left the channel [07:04] tonymilne: where as i would assume that checking our express based file uploads, permissions, etc, would be more important. [07:05] tonymilne: just seeking opinions in this ara. [07:05] tonymilne: *area. [07:05] MerlinDMC has joined the channel [07:05] tonymilne: (we also use mongodb, redis, have ssl, use a node proxy server too) [07:05] niloy_ has joined the channel [07:06] tonymilne: yet they are focusing on the iOS app and will "briefly" look at the other stuff. [07:06] mikeal has joined the channel [07:09] jesusabdullah: probably gonna consist mostly of trying to find cracks where someone can learn more about your box than you intended and/or throw in some kind of injection attack [07:09] tonymilne: jesusabdullah yeah, but back me up here if you have an opinion, but surely the server is the thing to focus on, not the iOS app!?! [07:10] tonymilne: the app is just a view to the JSON based server API. [07:12] airandfingers: is there a good module out there for serving up static files in such a way that users can navigate the static directory tree? i believe apache defaults to this, when displaying a directory with no index.html files [07:13] jesusabdullah: tonymilne: I mean, I suppose it's possible for an iOS app to have vulnerabilities, but my instinct is that the server would be the thing to focus on yes [07:13] jesusabdullah: keep in mind I know next to nothing about iOS apps [07:13] jesusabdullah: airandfingers: My static module does that [07:13] jesusabdullah: airandfingers: https://github.com/jesusabdullah/node-ecstatic [07:14] jesusabdullah: it's still a work in progress but we're getting there! [07:15] airandfingers: thanks jesusabdullah! i'll check this out shortly [07:15] jesusabdullah: cool! [07:16] jesusabdullah: I've been working on a new version for a while too, hopefully coderarity's work will lead to a release soon (I'm optimistic) [07:16] graeme_f has joined the channel [07:18] ronbas has joined the channel [07:18] airandfingers: jesusabdullah: hm, it looks like coderarity forked node-ecstatic? i'm pretty new to the github scene - what does that mean, exactly? is he working on an independent branch of the same project? [07:19] JJMalina has joined the channel [07:20] jesusabdullah: ah [07:20] vhishna has joined the channel [07:20] jesusabdullah: It's an independent branch, but in the future he's gonna send me a pull request and his work will get pulled into my branch [07:20] jesusabdullah: the nice thing with git is you can branch and merge willy-nilly [07:21] SamuraiJack has joined the channel [07:22] jesusabdullah: Mine's the one on npm though [07:22] disappearedng has joined the channel [07:22] disappearedng has joined the channel [07:23] tonymilne has left the channel [07:27] Morkel has joined the channel [07:28] dingomanatee has joined the channel [07:28] hermanjunge: jesusabdullah [07:28] hermanjunge: Hi! [07:28] hermanjunge: I think that I have a very good question [07:28] jesusabdullah: oh? [07:29] jesusabdullah: lay it on me hombre [07:29] hermanjunge: What is the way to make a forEach or a do/while with process.nextTick() [07:29] hermanjunge: this is the whole case [07:29] paera has joined the channel [07:29] hermanjunge: I'm doing some db requests here and there [07:29] hermanjunge: they take time [07:29] hermanjunge: and I want a do/while running, watching a counter [07:30] hermanjunge: var counter = 10 [07:30] jesusabdullah: look into caolan/async [07:30] hermanjunge: if that counter reaches 0, bazzinga [07:30] jesusabdullah: I'd use async.forEach [07:30] hermanjunge: the problem is the foreach [07:30] hermanjunge: sorry, the do/while [07:30] hermanjunge: it can block the whole thing [07:30] jesusabdullah: right [07:30] hermanjunge: and nodejs isn's tail recursice [07:30] hermanjunge: to make and erlang like [07:31] hermanjunge: myFunction() { do_something; wait; myFunction() } [07:31] jesusabdullah: https://github.com/caolan/async#forEach This guy, fo'srs [07:31] hermanjunge: OK [07:31] hermanjunge: thanks for the tip, as always [07:31] jesusabdullah: hah! anytime [07:31] hermanjunge: I'm working hard to be someday like the guys at nodejitsu [07:31] hermanjunge: maybe next year I can bring you the towels HAHAHAH [07:32] hkjels has joined the channel [07:34] Joeysomo has joined the channel [07:36] vhishna has left the channel [07:37] shivhack has joined the channel [07:38] kurtzhong has joined the channel [07:39] vhishna has joined the channel [07:39] vhishna has left the channel [07:39] catlaya has joined the channel [07:40] Murugaratham has joined the channel [07:41] bicranial has joined the channel [07:41] shivhack has joined the channel [07:41] jesusabdullah: pffsht [07:41] dannyamey has joined the channel [07:42] nicholasf has joined the channel [07:43] paera has left the channel [07:43] shivhack has joined the channel [07:43] emattias has joined the channel [07:43] shivhack has joined the channel [07:44] shivhack has joined the channel [07:44] tjmehta has joined the channel [07:44] jp232 has joined the channel [07:47] joeytwiddle has joined the channel [07:47] margle has joined the channel [07:49] ph^ has joined the channel [07:50] Joeysomo has joined the channel [07:50] yumike has joined the channel [07:50] Joeysomo has joined the channel [07:53] groom has joined the channel [07:53] hkjels: Kind of mad at npm at the moment: https://github.com/isaacs/npm/issues/2207 [07:54] ablomen has joined the channel [07:55] overthemike has joined the channel [07:57] gorekee has joined the channel [07:59] simenbrekken has joined the channel [07:59] sridatta has joined the channel [08:01] petrjanda has joined the channel [08:02] aliem has joined the channel [08:02] benjixx has joined the channel [08:02] ph^_ has joined the channel [08:03] Chel: hi guys, im a novice in nodejs, and want to understand what im doing wrong, and how to do it in the right way. I want to pull 2 models from mongodb collections, and use them in the same scope, but mongodb-native-driver only accept callbacks. please help . this is the code snippet and question is in comment https://gist.github.com/d7706eb81afb521b6516 [08:05] shivhack has joined the channel [08:05] Swaagie has joined the channel [08:08] shivhack has joined the channel [08:08] hipsterslapfight has joined the channel [08:10] vguerra has joined the channel [08:11] gasbakid has joined the channel [08:11] mikeal has joined the channel [08:13] shivhack has joined the channel [08:17] orkz has joined the channel [08:18] ppcano has joined the channel [08:19] rendar has joined the channel [08:19] icebox has joined the channel [08:20] fangel has joined the channel [08:20] ljharb: Chel: use promises [08:21] hackband has joined the channel [08:22] SubStack: https://github.com/substack/request-browserify-example/blob/master/entry.js [08:22] SubStack: check THAT out [08:22] SubStack: you can browserify request now [08:22] uchuff has joined the channel [08:23] fangel has joined the channel [08:23] icebox: benvie: ping [08:24] Joeysomo has joined the channel [08:26] Hebo has joined the channel [08:26] gatorcoder has joined the channel [08:27] diverdude: I have an application where im using socket.io/nodejs to keep a live connection with the client for chat while the actual webapplication is based on a normal apache/php single request connection. When the user is browsing around on my portal he loads a new page relatively often, when i do a io.connect("") everytime he loads a new page. Does that mean that the socket.io connection is also disconnected each time the user loads a new php pag [08:27] diverdude: e or is socket.io intelligent enough to resume the socket.io connection on connection? [08:30] stagas: diverdude: sounds like you need sessions [08:31] nodokodo has joined the channel [08:31] boltR has joined the channel [08:31] diverdude: stagas: socket.io sessions? [08:31] bergie has joined the channel [08:32] nodokodo has joined the channel [08:33] [AD]Turbo has joined the channel [08:33] diverdude: stagas: ? [08:33] stagas: diverdude: dunno usually it's on the http layer, I think socket.io proxies the upgrade request [08:33] [AD]Turbo: hi there [08:33] dwhittle has joined the channel [08:36] nodokodo has joined the channel [08:36] abraxas: does libuv provide an alternative to libevent-like create_event? or do i really have to start talking to libev? [08:37] abraxas: event_new i mean [08:37] overthemike has joined the channel [08:38] jkridner has joined the channel [08:39] JakeSays has joined the channel [08:39] Skola has joined the channel [08:39] jomoho has joined the channel [08:39] sdqali has joined the channel [08:40] hz has joined the channel [08:40] stagas: SubStack: when will this madness end?? :P [08:40] salva has joined the channel [08:41] stagas: we need a node.min.js and then require everything like norm [08:42] jabbslad has joined the channel [08:42] stonebranch has joined the channel [08:45] dpino has joined the channel [08:45] gdbz has joined the channel [08:46] SubStack: stagas: I already wrote all the pieces previously, just had to refine them slightly [08:46] diverdude: anybody? [08:49] whitman has joined the channel [08:51] gasbakid__ has joined the channel [08:53] stagas has joined the channel [08:53] wereHamster: diverdude: you will not get around calling io.connect every time the user loads a new page. [08:53] dve has joined the channel [08:53] tornad has joined the channel [08:53] felixhummel has joined the channel [08:54] diverdude: wereHamster: how do i then keep the connection? [08:54] wereHamster: well, you can but then you'd have to make a 'single-page' application and update its content with JS instead of using plain http requests [08:54] wereHamster: you can't [08:55] arvidkahl has joined the channel [08:56] Murugaratham has joined the channel [08:56] dwhittle has joined the channel [08:56] cosmincx has joined the channel [08:56] GodezInc has joined the channel [08:57] boltR has joined the channel [08:58] diverdude: wereHamster: hmm right...so what i would do was to kinda keep a session with a userID so whenever a connection is established that connection should send a userid and i check if that user was logged on previously [08:58] diverdude: and then i transfer that sessiondata [08:59] diverdude: wereHamster: does that sound like an idea? [08:59] ph^_ has joined the channel [09:01] hipsterslapfight has joined the channel [09:01] Tricks_ has joined the channel [09:02] diverdude: wereHamster: so basically "transfer" the socket.io connection on every php-page reload [09:02] josh-k has joined the channel [09:04] ccare has joined the channel [09:04] ccare has joined the channel [09:11] CIA-102: node: 03tedsuo 07v0.6 * rcd4cb8e 10/ doc/api/_toc.markdown : [09:11] CIA-102: node: docs: split TOC into two parts: overview and API [09:11] CIA-102: node: Fixes #2090. [09:11] CIA-102: node: Fixes #2336. - http://git.io/uuP7gw [09:13] stagas has joined the channel [09:13] diverdude: wereHamster: ?? [09:14] janjongboom_ has joined the channel [09:15] abraxas has joined the channel [09:16] fangel has joined the channel [09:17] dobber has joined the channel [09:18] tonist has joined the channel [09:18] diverdude: anybody here? [09:19] erujolc has joined the channel [09:20] Behl has joined the channel [09:21] dbrain has joined the channel [09:21] aaronmcadam has joined the channel [09:22] erujolc: im using request module along with a rss parser (feedme), basically the line is "request(fetchUrl).pipe(parser)", when the fetchUrl is down it crashed the node process with ECONNREFUSED, stratching my head about how to handle this error gracefully, any pointers? [09:24] arvidkahl: from a quick google search [09:24] arvidkahl: http://stackoverflow.com/questions/8843892/what-node-rss-module-handles-authentication [09:24] arvidkahl: seems to have an example of how to catch that potential error [09:26] graeme_f has joined the channel [09:26] arvidkahl: and the api at https://github.com/fent/feedme.js/blob/master/README.md kinda shows how to use the thing with .on events with createReadStream [09:26] arvidkahl: scratch API, i meant readme [09:27] johnhamelink has joined the channel [09:27] Murugaratham has joined the channel [09:27] kwmiebach has joined the channel [09:30] erujolc: thanks, investigating [09:30] erujolc: arvidkahl, makes sense however was hoping to standardized on the request module for any http calls [09:30] erujolc: it looks like i need to catch an error event on underlying response stream [09:31] lzskiss has joined the channel [09:31] arvidkahl: yeah that would indeed be great if only people would stick to conventions :D [09:31] dpino has joined the channel [09:32] arvidkahl: anything with a callback should throw you the error in the function(err, data) anyway [09:34] erikzaadi has joined the channel [09:36] jetienne_ has joined the channel [09:37] skeptic has joined the channel [09:38] ericmuyser has joined the channel [09:40] infynyxx has joined the channel [09:45] TomY has joined the channel [09:48] stagas has joined the channel [09:48] arduix has joined the channel [09:49] ppcano has joined the channel [09:50] bicranial has joined the channel [09:51] infynyxx_ has joined the channel [09:51] McMAGIC--Copy has joined the channel [09:52] aranw has joined the channel [09:53] infynyxx_ has joined the channel [09:53] kejun has joined the channel [09:55] Hanspolo has joined the channel [09:55] EdwardIII has left the channel [09:57] devaholic has joined the channel [09:57] hkjels_ has joined the channel [10:00] sandfox has joined the channel [10:00] paera1 has joined the channel [10:00] DuoSRX has joined the channel [10:00] paera1 has left the channel [10:01] meso has joined the channel [10:03] freewil has joined the channel [10:03] stagas has joined the channel [10:03] freewil: whats the best mail lib for node? [10:04] [[zzz]] has joined the channel [10:06] robhawkes has joined the channel [10:06] erikzaadi: exit [10:08] erikzaadi has joined the channel [10:09] icebox: diverdude: http://www.danielbaulig.de/socket-ioexpress/ [10:10] herbySk has joined the channel [10:10] Doikor: freewil: mailer seems to work just fine. https://github.com/Marak/node_mailer [10:11] freewil: lol flying toasters [10:11] Topcat has joined the channel [10:11] skylamer` has joined the channel [10:11] freewil: Doikor, thanks [10:11] redir has joined the channel [10:11] freewil: i think i might use nodemailer though [10:12] freewil: seems more complex, but seems more flexible [10:12] rendar: freewil: you have to send emails? [10:12] Doikor: mailer is built ontop of nodemailer [10:13] freewil: yeah just writing a quick node daemon to send out a mailqueue stored in pg [10:13] arduix has joined the channel [10:13] rendar: so node_mailer is ok :-) [10:14] hipsterslapfight: one of them doesn't work anymore iirc [10:14] hipsterslapfight: was testing them out a few weeks ago and was having real issues with one of them [10:15] freewil: node_mailer hasnt been updated in 5 months so im guessing its that one [10:15] erikzaadi has left the channel [10:15] davidbanham has joined the channel [10:16] erikzaadi has joined the channel [10:16] hipsterslapfight: doesn't matter anyway, the syntax is 99% the same between them both [10:18] markwubben has joined the channel [10:19] erikzaadi has joined the channel [10:19] sgimeno has joined the channel [10:20] Wizek has joined the channel [10:23] Wizek_ has joined the channel [10:25] tvw has joined the channel [10:25] satyr has joined the channel [10:25] cjroebuck has joined the channel [10:27] `3rdEden has joined the channel [10:28] robi42 has joined the channel [10:32] __doc__ has joined the channel [10:33] jsull_ has joined the channel [10:34] uchuff has joined the channel [10:34] tomasztomczyk has joined the channel [10:36] erikzaadi has joined the channel [10:37] blup has joined the channel [10:38] shinuza has joined the channel [10:38] \mSg has joined the channel [10:39] remysharp: Is there a known workaround for shebang node for fedora, since they have the nodejs binary? i.e. I'm doing: #!/usr/bin/env node but in fedora it needs to be looking for nodejs [10:41] wbednarski has joined the channel [10:42] erikzaadi has joined the channel [10:45] OmidRaha has joined the channel [10:45] abraxas: if i want to hook (C code) my socket into libuv, is there any way i can have it do the select() behavior for me? or am i going to have to call select() myself each tick? [10:47] jldbasa has joined the channel [10:47] garrensm_ has joined the channel [10:51] jimmysparkle has joined the channel [10:53] DrPheltRight has joined the channel [10:54] hkjels_ has joined the channel [10:55] aranw has joined the channel [10:55] hkjels has joined the channel [10:57] gasbakid__ has joined the channel [10:57] fomatin has joined the channel [11:03] larsschenk has joined the channel [11:03] larsschenk has left the channel [11:05] c-spencer has joined the channel [11:08] AD7six has joined the channel [11:09] tokumine has joined the channel [11:09] gerard0 has joined the channel [11:10] Hourd has joined the channel [11:10] sridatta has joined the channel [11:11] sandfox has joined the channel [11:14] benvie: goddamn node-gyp is awesome [11:15] nuclearsandwich has joined the channel [11:17] chjj: benvie: yeah, i like it [11:18] icebox: benvie: hi [11:19] benvie: hello! [11:19] fermion has joined the channel [11:19] icebox: benvie: thanks for https://github.com/tmpvar/jsdom/issues/360#issuecomment-3933198 [11:19] benvie: no problem =D node-gyp made it super easy! [11:19] benvie: <3 node-gyp [11:19] purr: Let it be known that benvie hearts node-gyp. [11:20] benvie: last time it was a pain cause there was no documentation and I had to manually make the projects and figure out all the stuff [11:20] benvie: this time it was like wham bam [11:20] antono has joined the channel [11:21] yumatov has joined the channel [11:21] benvie: my only other experience with node-gyp was with tty.js which I knew wasn't going to work but I wanted to see what would happen [11:21] benvie: unsurprisingly trying to compile a forkPty module on windows was less than successful [11:22] Edy has joined the channel [11:23] benvie: chjj you should somehow digest all of this file and make it work in pty.js https://gist.github.com/1893415 [11:24] chjj: benvie: what am i looking at here? a windows terminal? [11:24] benvie: you're looking at the only method I've ever heard of for forking a process (specifically terminal/cmd) that exists [11:24] chjj: ooo its ReactOS code haha [11:24] AdamSeabrook1 has joined the channel [11:24] benvie: using a large amount of internal windows apis [11:25] benvie: it's most/all of the building blocks for forkPty on windows [11:25] chjj: the problem is, even if that did work, tty.js is a vt100/xterm emulator [11:25] chjj: i dont think the windows console is a real terminal emulator [11:25] benvie: it basically reconstructs the entire thing piece by piece in order to fork it [11:25] benvie: the environment, the memory, etc. [11:25] benvie: so it is in fact a complete duplicate [11:26] chjj: so i would have to write a windows "terminal emulator" or whatever windows does to make a black window with white characters in it [11:26] benvie: yeah [11:26] benvie: well really [11:26] benvie: what needs to happen is a version of putty stripped down and compiled as a node module [11:26] chjj: or somehow translate a windows "terminal" to a vt100 [11:27] benvie: which is doable and on my list [11:27] benvie: or mintty [11:27] superjoe has joined the channel [11:27] chjj: libuv does some goofy stuff to convert csi sequences to windows-language [11:27] benvie: whatever can be done to rip out basically the minimal communications components to get it talking to libuv, and rendering [11:27] benvie: no [11:27] beawesomeinstead has joined the channel [11:27] chjj: but i think thats the opposite way i would want to go [11:27] benvie: well yeah but [11:27] benvie: to do it on windows you need to completely ignore the windows console bullshit [11:28] benvie: you can't even use the windows console api to render [11:28] benvie: talking to the windows api will be purely limited to making it maximally compatible/accessible from other programs but not for rendering or anything at all really aside from that [11:28] chjj: the problem is, windows programs would be using the windows console api [11:29] daleharvey has joined the channel [11:29] benvie: my understanding is that there's a better result that can be achieved than has been so far [11:29] benvie: in terms of essentially hooking into the stdin/out streams of a defacto "console" [11:29] benvie: while not using that window as the ultimate interface [11:29] benvie: simply as a dummy to get other stuff treating you like a terminal [11:30] chjj: the only reason tty.js works is because terminals originally talked over a serial port, i just use a websocket instead. if windows uses some weird internal api, i dont know if theres a way it could work. [11:30] benvie: console2 is supposedly the one example of a program that takes this tact but it seems to do it pretty terribly [11:30] benvie: it's possible to do that in windows..if you have a serial port [11:30] benvie: which I won't [11:30] benvie: I tried lol [11:30] benvie: you can create a character device on a serial port in windows but you can't really fake the serial port part [11:31] chjj: maybe i could get something working without any kind of complex behavior, it would just be a dumb terminal [11:31] benvie: well I have a bit more grandiose goals maybe [11:31] benvie: but i want a full real terminal on windows [11:31] chjj: that would be cool [11:32] benvie: I want essentially mintty or putty but not died to the mingw shit or anything beides nodes. Node can handle all the io, it just needs a renderer [11:32] chjj: i just dont know how it could work, unless you could convince windows programs to spit out control sequences instead of using the windows console api [11:32] benvie: node already does [11:32] chjj: node goes the other way, it converts control sequences to windows console api [11:33] benvie: I mean I can connect directly opening the file if I hack node a bunch to make it treat mintty like a tty instead of a pipe [11:33] benvie: I can get colors and all that shit [11:33] benvie: if it's just willing to output the escape sequences [11:33] chjj: i should look at the mintty code [11:33] gut4 has joined the channel [11:33] chjj: maybe theres a clue there [11:33] benvie: the point is that these programs have full ansi parsers built in [11:33] benvie: putty and all its descendents handle it all [11:33] benvie: they don't let the OS do it [11:33] benvie: like you're doing on the browser [11:33] chjj: ACTION looks at the mintty code. [11:34] niftylettuce has joined the channel [11:34] benvie: that's how I get xterm-256 and near full unix compatability using cygwin [11:34] benvie: the trick is to divorce it from all that cruft and just get the minimal bits out that node can't do [11:34] herbySk has joined the channel [11:35] jol has joined the channel [11:35] chjj: so that is what you mean, you dont want a real windows console, you want a mintty type thing? [11:35] benvie: I want a console that can be treated like one to everything else in windows but has its own renderer [11:35] benvie: which isn't a solved problem quite, but it's close [11:35] benvie: all the stuff that does it relies on mingw still [11:35] icebox: benvie: I have been trying that contextify ...no require('bindings')? [11:35] jol: could i get some guidance on wether on not Node.js is suitable for my project? [11:36] chjj: well, im looking at the mintty code right now. ill try to see if i can figure it out. [11:36] benvie: I just compiled the binary. I would assume you have to follow the conventions of the binding's module [11:36] icebox: benvie: I get Error: Cannot find module 'bindings' [11:36] benvie: which would be like [11:36] benvie: yeah that's another module [11:36] benvie: npm install bindings [11:36] icebox: benvie: ah ok [11:36] benvie: it handles the cross-platform lookups for compiled binaries [11:36] piscisaureus_ has joined the channel [11:36] benvie: contextify uses it now looks like [11:37] benvie: you'll need it in some specific direcotry too [11:37] benvie: I think maybe contextify/out/Release or something [11:37] benvie: the .node [11:37] misza222 has joined the channel [11:38] icebox: benvie: the old folder was build/Release [11:38] benvie: chjj I know some chunks of it will be implemented using various mingw platform stuff [11:38] benvie: but I think most of that is just for hooking up the networking stuff [11:38] benvie: which I'd defer largely to node if I was trying to relpicate it, if that's not obvious =D [11:39] benvie: any of the windows API stuff is largely implemented in windows-terms with the mingw stuff [11:39] jol: i have an application that calls 40 rows new rows from a db every 5 seconds or so with an ajax call to a php script, have only read a little about Node.js and was wondering would it be better for this? [11:40] icebox: benvie: after installing bindings and putting the binary in build/Release it work nice... thanks [11:40] benvie: awesome, good to know it worked there =D [11:40] wycats has joined the channel [11:40] tiglionabbit has joined the channel [11:40] benvie: I just included the .node directly so I didn't get to make sure it worked like normal [11:40] chjj: benvie: is mintty only meant to compile under cygwin? all of the code is rather unix-y [11:41] chjj: looking at putty now [11:41] benvie: yeah originally it was derived from putty and has mostly run under cyginw. Over the last year it's become runnable under mingw but that's still going to be unixy [11:41] benvie: just less so [11:41] benvie: but I think putty is the even more compatible one these days [11:42] benvie: with normal windows stuff [11:42] benvie: I need to look at the code in depth to see what it might take to do something with it as a node module [11:42] benvie: the problem is that all these existing programs have this massive amount of old shoddy networking code that really is unnecessary [11:43] velo has joined the channel [11:43] benvie: but burried in there is a bunch of gems for making shit work well on windows [11:44] jol: i have an application that calls 40 rows new rows from a db every 5 seconds or so with an ajax call to a php script, have only read a little about Node.js and was wondering would it be better for this? [11:46] benvie: node won't make that kind minmal usage faster but it'd probably provide more convenient db bindings for translating between db and front-end [11:49] sreeix has joined the channel [11:49] benvie: putty has a massive amount of comments [11:51] blup has joined the channel [11:53] benvie: I made a form in windows on node's main thead and use setTimeout to run the message loop [11:53] benvie: it works =X [11:54] sj26 has joined the channel [11:55] benvie: using ffi with a js function as the wndProc [11:56] Joeysomo has joined the channel [11:58] maritz has joined the channel [11:58] hkjels has joined the channel [12:03] erikzaadi has joined the channel [12:04] markwubben has joined the channel [12:10] herbySk74 has joined the channel [12:12] izepstan has joined the channel [12:12] tokumine has joined the channel [12:14] MartinCleaver has joined the channel [12:14] bnoordhuis has joined the channel [12:20] AndreasMadsen has joined the channel [12:21] ppcano has joined the channel [12:21] dob_ has joined the channel [12:21] gut4 has joined the channel [12:23] brianseeders has joined the channel [12:24] c0smikdebris has joined the channel [12:24] Joeysomo has joined the channel [12:26] xbayrockx has joined the channel [12:30] Vespakoen has joined the channel [12:30] pity has joined the channel [12:32] gw has joined the channel [12:32] pity: hello, is there any way how to messure the among of data of request, which comes to nodejs http server? [12:32] vguerra_ has joined the channel [12:33] stagas has joined the channel [12:33] copongcopong has joined the channel [12:33] gw has joined the channel [12:34] d0k has joined the channel [12:34] tahu has joined the channel [12:35] garrettwilkin has joined the channel [12:37] jetienne_ has joined the channel [12:37] sreeix has joined the channel [12:37] Poetro has joined the channel [12:37] enmand has joined the channel [12:37] overlight has joined the channel [12:38] garrettwilkin: Good Morning to anyone in or around EST [12:38] garrettwilkin: I'm having a little trouble getting started with hook.io [12:38] garrettwilkin: has anyone been able to get it going on node 0.7.x yet? [12:40] agnat: hey, garrettwilkin! [12:40] garrettwilkin: Hello! [12:41] garrettwilkin: I saw your response to the issue [12:41] garrettwilkin: https://github.com/agnat/node_mdns/issues/22#issuecomment-4192687 [12:41] snearch has joined the channel [12:41] garrettwilkin: so apparently its something in my environment [12:41] agnat: yep, works for me ... [12:42] garrettwilkin: okie doke [12:42] garrettwilkin: so can i ask [12:42] agnat: at least the mdns part ... not testing hook.io though ... [12:42] garrettwilkin: any idea on where i can find the missing files that its looking for? [12:42] hatmam has joined the channel [12:43] garrettwilkin: Is it really that this function is missing? DNSServiceGetAddrInfo [12:43] hatmam: i have an application that gets 40 new rows from a sqlite db every 5 seconds or so, have only read a little about Node.js and was wondering if it would be better suited than just using an ajax call to a php script? [12:44] agnat: normally ares.h is part of the node dist ... but that depends on how it is compiled (which libraries are shared &c.) [12:44] overlight has left the channel [12:44] Dmitriju1: hatmam: if you are wondering about that, you shouldn't use node.js :) [12:45] agnat: garrettwilkin: Well, yes. It's missing on systems using avahi ... but that's ok. mdns works around it ... that's why it is checking it ... [12:45] garrettwilkin: ah okay [12:45] Dmitriju1: hatmam: buisiness-wise, although, you could still checkout node.js for other things, because it is awesome [12:45] tdegrunt has joined the channel [12:45] garrettwilkin: so its expected that ares would be missing in some cases [12:45] garrettwilkin: In file included from /usr/local/include/node/node.h:61, [12:45] garrettwilkin: from ../src/dns_service_enumerate_domains.cpp:4: [12:46] garrettwilkin: I can recompile node [12:46] garrettwilkin: if I need to [12:47] gut4 has joined the channel [12:47] garrettwilkin: not worried about doing that [12:47] overthemike has joined the channel [12:47] fairwinds has joined the channel [12:47] garrettwilkin: do you think that could help? [12:47] agnat: garrettwilkin: no, no! ares.h has to be there ... somewhere ... it's required by uv.h which is core node ... [12:47] hatmam: dmitriju1: lol, i've actually read abit and it seems like a better option, would just like an experts opinion [12:47] maritz: garrettwilkin: just a heads up, it's morning everywhere right now. no need to restrict your greetings to EST. [12:47] sreeix has joined the channel [12:47] agnat: garrettwilkin: not sure. I'd like to see verbose compiler output first ... [12:48] hkjels has joined the channel [12:50] erichynds has joined the channel [12:50] garrettwilkin: oh okay [12:50] garrettwilkin: so the fact that npm install is saying that it can't find it [12:50] garrettwilkin: is a really really bad thing [12:51] looopy has joined the channel [12:52] icebox has joined the channel [12:53] agnat: well, it's not like end of the world ... but something is messed up. Pretty sure we can sort it out though ... [12:53] garrettwilkin: so how do i get the verbose compiler output? [12:53] garrettwilkin: i just pulled node again [12:53] garrettwilkin: so I'm going to run the install [12:54] garrettwilkin: and see if that fixes it [12:54] braoru has joined the channel [12:54] RLa has joined the channel [12:54] garrettwilkin: can i just do, ./configure, make, make install? Or do i need to pass -verbose in there? [12:54] agnat: garrettwilkin: well, you could do that ... I was referring to mdns build output, like described in my comment ... [12:54] garrettwilkin: oh okay [12:55] yumike has joined the channel [12:55] garrettwilkin: gotcha [12:55] garrettwilkin: ill do that [12:57] maritz: imjp from r/node here? :D [12:57] hatmam: i have this guy: http://mashface.net/llui/ , it fetches the pictures url from a db with an ajax call to a php script, and i plan on having new urls called every couple of seconds, would Node.js be more suitable for this than php and ajax calls? [12:59] maritz: hatmam: juts simple rest calls basically? there's no real advantage in using node.js for just that. now, if you want to push the changes from the db via websockets to the browser (aka. live updates), node.js would be the better choice. [12:59] qsobad has joined the channel [13:00] hatmam: maritz: yeah it works alright but just wondering if using Node.js now might come in handy down the line [13:01] _th_n has joined the channel [13:02] garrettwilkin: are there reasons to stick with php and ajax? [13:02] garrettwilkin: when node is an option? [13:02] hatmam: only that i am familiar with them but thats not a real reason [13:02] garrettwilkin: other than the obvious benefit of sticking to what you know [13:02] hatmam: yeah exactly lol [13:02] garrettwilkin: ha [13:02] Wizek has joined the channel [13:03] hatmam: thats why i'm asking, is Node.js going to do a better job than php? [13:03] hatmam: before i go and do it and see it won't work at all [13:03] shinuza has joined the channel [13:04] artusrocha has joined the channel [13:06] garrettwilkin: agnat https://gist.github.com/1923632 [13:06] agnat: ACTION looks [13:08] maritz: hatmam: for the really simple usecase of doing an ajax request that returns 5 rows from a db, it really doesn' [13:08] maritz: doesn't matter what you choose [13:08] maritz: you could write that in lolcode if you wanted :x [13:09] hatmam: : / [13:09] maritz: or brainfuck, if that's more up your alley [13:09] MartinCleaver has joined the channel [13:09] margle has joined the channel [13:10] agnat: garrettwilkin: yep, looks like it is broken on the node side ... what does 'ls /usr/local/include/node/ares.h' give you? [13:11] garrettwilkin: ls /usr/local/include/node/ares.h [13:11] garrettwilkin: ls: cannot access /usr/local/include/node/ares.h: No such file or directory [13:11] agnat: k [13:11] hatmam: maritz: yeah i know, have read some more about Node.js in the last 10 minutes as it was just a buzz word to me 10 minutes ago a couple of friends kept saying [13:12] agnat: garrettwilkin: If you don't need 0.7.x downgrade to 0.6.11 ... if it has to be 0.7.x upgrade to 0.7.5 (or head) [13:13] garrettwilkin: okay [13:13] maritz: hatmam: good. now, if you don't mind learning new languages and environments and don't need this to be done in 5 minutes and have it run in a huge production environment, you can go with node.js. :) [13:13] jaw187 has joined the channel [13:13] looopy has joined the channel [13:13] francisl has joined the channel [13:14] garrettwilkin: making latest node now... [13:15] hatmam: maritz: lol, thanks for the help [13:16] garrettwilkin: hatman [13:16] garrettwilkin: have you checked out hook.io? [13:16] garrettwilkin: i think its kinda mindblowing [13:16] augustl: why isn't the node core vm module doing what the 3rd party contextify module does? [13:16] cha0s has joined the channel [13:16] cha0s has joined the channel [13:18] neebz has joined the channel [13:19] hatmam: garrettwilkin: looks useful, reading about it now [13:19] neebz: Hello. I am creating an iPhone app with an expressjs backend. How can I manage session? I'll prefer some token-based approach. Is there any library for that? [13:20] pvankouteren_ has joined the channel [13:20] RLa: anyone tried this IDE: https://www.ebayopensource.org/index.php/VJET/HomePage ? [13:21] RLa: it's eclipse plugin [13:21] RLa: and comes with its own fancy type annotations [13:21] yawNO has joined the channel [13:21] erikzaadi has joined the channel [13:23] yawNO: \o/ [13:24] hotchkiss has joined the channel [13:24] maritz: yawNO is here /o\ [13:25] yawNO: maritz: shut up and have some bamboo [13:25] maritz: ok. :( [13:25] yawNO: thought i should nane my next project Panda [13:25] maritz: ACTION munches on the bamboo that was unlovingly thrown in his cage. [13:25] yawNO: and the stuff substaining it Bamboo [13:25] st_luke has joined the channel [13:25] garrettwilkin: woo hoo [13:26] yawNO: i dont know what my next project will be though [13:26] agnat: garrettwilkin: ;-) [13:26] thetristan has joined the channel [13:26] garrettwilkin: mdns builds on node 0.7.6-pre! [13:26] yawNO: me needs node 0.8 [13:26] yawNO: i dont really like the idea of using 0.7.x [13:26] garrettwilkin: so now… [13:26] yawNO: uhm [13:27] agnat: mdns ALL the node versions ;-) [13:27] cjroebuc_ has joined the channel [13:27] garrettwilkin: how do i make hook.io use this version of mdns that i just compiled/ [13:27] garrettwilkin: or… [13:27] garrettwilkin: maybe it doesn't matter, cause the version in the hook.io module directory [13:27] garrettwilkin: should compile as well [13:27] garrettwilkin: since i updated my node version [13:27] agnat: you shouldn't have to ... just do 'npm install hook.io' [13:28] agnat: precisely [13:28] yawNO: maritz: i cant believe a fw that lets you code once and exposes both api and html does not yet exist [13:28] yawNO: :( [13:28] yawNO: are you aware of any? [13:28] jamescarr has joined the channel [13:28] garrettwilkin: sweet! [13:28] garrettwilkin: i can't npm install hook.io [13:29] garrettwilkin: as of last night, it didn't like npm 1.1 [13:29] garrettwilkin: had a strict dependency on npm 1.0.x [13:29] garrettwilkin: but i did a manual npm link [13:29] garrettwilkin: seems to have worked! [13:29] garrettwilkin: thanks agnate! [13:29] garrettwilkin: err [13:29] garrettwilkin: agnat! [13:29] agnat: np. you're welcome. [13:30] neebz: I am creating an iPhone app with an expressjs backend. How can I manage session? I'll prefer some token-based approach. Is there any library for that? [13:31] garrettwilkin: how do you only have 21 followers [13:31] garrettwilkin: if you created node mdns? I thought awesome node programming == lots of followers [13:31] briancray has joined the channel [13:33] Vespakoen has joined the channel [13:34] agnat: garrettwilkin: don't know. Maybe because i just started to tweet a bit more ... and most of it is german which doesn't help either ;-) [13:34] eldios has joined the channel [13:34] garrettwilkin: In that case [13:34] garrettwilkin: danke [13:35] satyr has joined the channel [13:36] zagabe_l has joined the channel [13:36] Topcat: Can you do things based on time with node? like a timetable [13:37] garrettwilkin: there's probably a timer module with events that you can register for [13:38] Virendra has joined the channel [13:38] Topcat: can you trust a js timer to be accurate/ [13:39] c0smikdebris has joined the channel [13:39] dnolen has joined the channel [13:39] webguynow has joined the channel [13:39] merlin83 has joined the channel [13:39] garrettwilkin: i don't know, why not? [13:40] garrettwilkin: how accurate do you need it to be? [13:41] Topcat: I made a timetable in the browser ages ago and by the end of the day it could be hours off the real time. can you trust js to keep with system time ? [13:41] tmike: as long as you verify on the back-end that it's sane [13:42] Virendra: node.js started with process as in input.. I want to use the node js libs in on of the project.. but how can i start the node js.. what should i pass as process here? [13:42] garrettwilkin: http://stackoverflow.com/questions/8263652/node-js-accurate-timer [13:42] sriley: if youre using getInterval/setTimeout and only use the date once at start then yea that wont be accurate [13:42] garrettwilkin: why not have the time running server side [13:42] garrettwilkin: and just notify the client? [13:43] garrettwilkin: shouldn't that be more accurate? [13:43] Topcat: yeah that makes more sense, but how can have node emit and event as say 11am ? [13:44] Virendra: node.js has this... (function(process) {......} [13:44] Virendra: what can i pass in process to use this as a lib ?/ [13:45] tmike: huh? [13:45] garrettwilkin: i don't know off the top of my head [13:45] garrettwilkin: but apparently theres a microtime module [13:45] Virendra: i want to use node js lib for other node independend project.. but it's lib has process reference at so many palces [13:45] garrettwilkin: have you searched github / nom? [13:45] garrettwilkin: *npm? [13:46] tmike: Virendra: try browserify? [13:47] tmike: https://github.com/substack/node-browserify [13:47] plutoniix has joined the channel [13:47] Virendra: thanks tmike.. but I wanted to use this in titanium appcelerator.. [13:48] Virendra: do u think this will help there? [13:48] tmike: fire it up and see. You're writing in JS, right? [13:48] lazyshot has joined the channel [13:48] Virendra: yes [13:48] Virendra: i m writing in js.. [13:49] tmike: what does appcelerator target? browsers? [13:49] kurtzhong_ has joined the channel [13:49] Virendra: this is mobile application development platform.. this will be some views.. not browser.. [13:49] louissmit has joined the channel [13:49] tmike: give it a shot [13:50] tmike: write something simple and stupid. if it runs, you're probably good [13:50] Virendra: ok..thanks for the inputs.. [13:50] Virendra: ok.. [13:50] Virendra: any other suggestion? [13:50] codejunky_ has joined the channel [13:50] tmike: nope. I really have no idea what I'm talking about. I'm making it up as I go along. [13:51] Virendra: ok.. [13:51] Virendra: anyways thanks [13:51] jaw187 has joined the channel [13:51] LBRapid has joined the channel [13:52] tmike: sure. hope it helps [13:53] maritz: yawNO: i don't understand your question? fw? firewall? [13:53] yawNO: framework [13:53] yawNO: you just code stuff once and you get APIs and regular html interface [13:54] yawNO: without having to code two services [13:56] AaronMT has joined the channel [13:57] ryanfitz has joined the channel [13:57] yawNO has joined the channel [13:57] yawNO: woops did i miss something? [13:57] Tricks_ has joined the channel [13:58] yawNO: bad internet :< [13:59] vkareh has joined the channel [14:00] jxie has joined the channel [14:01] thinkt4nk has joined the channel [14:01] joshwines has joined the channel [14:01] codejunky_ has joined the channel [14:02] rwaldron has joined the channel [14:02] Wa has joined the channel [14:02] nibblebot has joined the channel [14:03] mansoor has joined the channel [14:03] maritz: i still don't get it [14:04] maritz: why do you have two services? [14:04] maritz: and who was phone? [14:04] yawNO: if i wanted to code a website [14:04] yawNO: and to have that website to provide APIs [14:04] yawNO: i'd use either a backend with a static frontend [14:05] yawNO: or either a website with apis running as another service [14:05] yawNO: got it? [14:05] benjixx_ has joined the channel [14:07] maritz: uhm [14:07] yawNO: but what if i wanted to code a platform that responds to json with json and to browser calls with html [14:07] Cromulent has joined the channel [14:07] yawNO: dealing different auths for every Accept headers for instance [14:07] maritz: oh, ok [14:07] yawNO: there's no such framework afaik [14:08] csteen has joined the channel [14:08] maritz: you don't really need much of a framework for that. just a good mvc structure. then have different views for .json and .html and let the router tell the controller which view to chose [14:09] yawNO: of course, and you could do the same with the auth system [14:10] yawNO: but having a structure at the bottom would semplify a lot [14:10] yawNO: that's what frameworks are for [14:12] rauchg has joined the channel [14:13] maritz: i'm still not sure what the problem is. essentially you'd create a layer on top of res.render() that looks at the request (or something provided by the router) to decide whether the data form the controller (or route handler) shoudl be passed to res.render('somefile.json') or res.render('somefile.jade'). that's like 5 lines of code?! [14:13] MartinCleaver has joined the channel [14:13] MartinCleaver has joined the channel [14:13] st_luke has joined the channel [14:13] savardc has joined the channel [14:13] yawNO: how about auth? you can't use oauth on the web [14:14] yawNO: (tecnically you could but doesnt really make sense) [14:14] yawNO: but yeah.. prolly you're right.. i'm overestimating it [14:14] robi42 has joined the channel [14:14] jyp has joined the channel [14:16] tmcw has joined the channel [14:17] lduros has joined the channel [14:17] gerard0 has joined the channel [14:18] fasecharmer has joined the channel [14:18] volkan_ has joined the channel [14:20] Wa has joined the channel [14:21] fumanchu182 has joined the channel [14:21] fumanchu182 has joined the channel [14:21] Glenjamin has joined the channel [14:22] st_luke has joined the channel [14:24] briancra_ has joined the channel [14:24] nuthinking has joined the channel [14:25] maritz: wait, auth shouldn't have anything to to with how you render your data?! [14:25] maritz: completely different layer [14:25] nuthinking: hi guys, is there anyone familiar with the chat.nodejs.org code base? [14:25] maritz: ideally before the controller or at the start of it [14:26] yawNO: maritz: yup [14:26] nuthinking: after 5 calls no ajax call reaches the server anymore [14:26] maritz: nuthinking: it's a rather simple piece of code if i remember correctly. just state your questions ;) [14:26] kwmiebach_ has joined the channel [14:26] dthompso99 has joined the channel [14:26] dthompso99 has left the channel [14:27] nuthinking: maritz: yep, it's pretty simple, and I even tried to make it simpler but probably broke it on the way: http://stackoverflow.com/questions/9465000/chat-nodejs-long-polling-and-broadcast [14:27] maritz: nuthinking: http://chat.nodejs.org/ seems to work fine?! [14:27] maritz: oh, oka [14:27] maritz: y [14:27] nuthinking: maritz: yep, but I wanted something simple, so I started to remove stuff! :D [14:27] snoj has joined the channel [14:27] RLa: btw, i think most browsers can only make 8 connections to a server [14:27] nuthinking: maritz: I quite like that it doesn't use socket.io (I guess) [14:28] nuthinking: RLa: but isn't a connection killed when the ajax result is returned? [14:28] maritz: nuthinking: there's a lot of kinks to websockets/longpolling afaik. using one of the abstraction layers seems like a good idea to me. doesn't need to be socket.io, there are others :) [14:28] nuthinking: chat.nodejs seems to use simply ajax [14:29] nuthinking: maritz: we'll, I tried nowjs and had issues there as well [14:29] thomblake has joined the channel [14:29] nuthinking: maritz: I wouldn't mind to keep the solution with less dependency as possible so that it might run on a cheap and shared hosting [14:29] thomblake has left the channel [14:29] Eruadan has joined the channel [14:29] nuthinking: maritz: I think that ajax will be ideal for me, do you know any layer based on that? [14:29] Eruadan has joined the channel [14:30] maritz: websockets cost less than ajax calls for something like a chat, afaik [14:30] maritz: (resource wise) [14:31] hz has joined the channel [14:31] nuthinking: maritz: but it might require bigger control over the IP address, etc... no? [14:31] maritz: uh, no?! [14:31] maritz: :D [14:31] nuthinking: well, I have a domain at the end of the day [14:32] nuthinking: so also if it is a share hosting, I should still be able to open a port [14:32] Alpha|_| has joined the channel [14:32] nuthinking: if only nowjs would work then! :) [14:32] Wizek has joined the channel [14:34] versicolor has joined the channel [14:34] tmike: Can you use handlebars programmatically? [14:35] tmike: or just precompile templates and serve the precompiled templates with