00:32
<LuckySMack>
anyone in here use/maintain hook.io? I am getting this error when installing on windows: C:\Program Files (x86)\nodejs\node_modules\hook.io\node_modules\weak\build\weakref.vcxproj(1,643): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

00:58
<meme>
is there anyone using https://github.com/nodejitsu/forever ? i installed, went to my app folder, and inserted the command: forever start -l forever.log -o out.log -e err.log app.js. everything went fine, but then i did forever stop app.js, then when i tried to restart, i got errors, such as error: log file /home/meme/.forever/forever.log exists. Use the -a or --append option to append log. what one should do to restart properlly forever?

02:25
<comster404>
now I get an error on "make install" is this still related to py? python tools/install.py installFile "tools/install.py", line 219cmd = args[1] if len(args) > 1 else 'install'^SyntaxError: invalid syntax

02:51
<comster404>
now I get an error on "make install" is this still related to py? python tools/install.py installFile "tools/install.py", line 219cmd = args[1] if len(args) > 1 else 'install'^SyntaxError: invalid syntax

03:45
<mscdex>
comster404: try `sudo PATH=/place/to/python:$PATH make install` or next time just use one of the pre-built binaries packages ;-)

03:46
<comster404>
mscdex, ya thx, I tried running $PATH as sudo to try and figure that out... then I ran it as "su" or something and found it installed to /usr/local/bin or something... so I'm just pointing there from my init.d ... whew. Thx for your help

04:42
<exien>
The mysql package (which i'm using for db access) throws an exception if the database goes down it. But how am I supposed to return an error callback from my model file to close the request if I never get a chance to do so?

07:43
<NuZZ>
Hey guys is it possible to create a node IRC botnet? Ie. the functionality of communicating messages between seperate node process possibly hosted on different servers and connected to different networks?

10:00
<NuZZ>
make server -> require a file, set shit up in said file, module.exports exports a function which server calls on the event of a request, gets matched against routes, goes through some logic to determine

10:01
<NuZZ>
if it should be pumped to lactate or treated as a template for ejs

10:01
<taky>
sirwan: it was a long hard rode of realizing where variables overrote eachother, and understanding the scope of doing stuff async, but eventually you get really fluent and swift will the callbacks

10:01
<taky>
knowing where to isolate sections of code off in (function(){/*blocks*/})();

11:05
<framlin>
I use the request-module and get the following error: (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit." Howto setMaxListeners for the request-module (mikael)

11:23
<NuZZ>
my face when I spend hours looking up the easiest way to compile coffeescript with node, then I just create a file init.js which requires coffee-script and requires the rest of the app. myfacewhen

11:44
<broofa>
E.g. is it wrong to use the 'data' event to return the parsed form results? Also, I don't currently catch exceptions anywhere (e.g. possible parse errors)... but assuming I did, what's the best way to surface those? An 'error' event' I suppose?

12:07
<rvagg>
framlin: if you figure that one out let me know, it's been happening for me too, similar use case, since 0.8, as far as I can tell you can't get access to the EventEmitter that's complaining

13:35
<imprestavel>
i saw the hello example and some other projects... i know i can wrap the compiled module with a js, but i would like the compiled one to be called like addon() instead of addon.hello()

13:36
<shlevy>
imprestavel: Not sure how to do it directly from the addon, but of course you could wrap it in a simple js module

14:30
<navaru>
There is this extension https://bitbucket.org/ryanackley/tincr/src , which uses Netscape Plugin Application Programming Interface (NPAPI), which will soon be deprecated in Chrome Canary, so I need to switch it to ppapi - Pepper Plugin API (the new improved version)

14:48
<austincheney>
I have not been keeping up with node.js support of my application, but today I learned my NPM is getting 150 downloads a day.... this cannot possibly be right since the site with the app only averages about 250 visits a day

16:08
<dready>
isaacs, thanks for tip. I'm not really sure about the v. It possible is between 1'ish versions. I haven't installed much stuff, yet, so i might just clean up and install all packages fresh(about 5 or 6 only). Should i be concerned with pkgs that i installed with the flag -g?

16:41
<dready>
lmatteis, the easy install comes with a price, later, when you install packages for node it will be a nightmare, as windows changes file paths, so let's say, you make an app on windows, than you have problems to migrate to the linux server. trust, i've been there. get virtul box, and install ubuntu 10.04 there. now, go, go

16:58
<cpsubrian>
Licensing question: I ripped a function out of https://github.com/c9/architect (MIT) and turned it into a module (https://github.com/cpsubrian/node-witwip) with some API additions (also MIT). How should I give proper attribution to ajax.org

17:33
<luckysmack>
if i have a package cloned from a repo, and i can successfully run `npm install && sudo npm link`, and is shows the file was linked at `/usr/bin/myPackage -> /usr/lib/node_modules/myPackage/bin/myPackage`, why would it then fail when running the 'myPackage' command by saying: "Error: Cannot find module '../lib/myPackage'" ?

17:34
<luckysmack>
no matter where i run the command, it look for the command in "../lib/myPackage"

18:04
<exien>
Hi all, the mysql package (which i'm using for db access) throws an exception if the database goes down it. But how am I supposed to return an error callback from my model to close the request if I never get a chance to do so?

18:04
<cpsubrian>
Does travis delete/ignore 'node_modules' directories. I have a 'node_modules' directory inside my 'test/' dir that has some placeholder stuff and my tests are failing in travis

18:23
<ccowan>
exien: to be honest with you the only reason I'm using connect-redis instead of just using cookies for my session stuff is because usign cookies for session stuff in PHP is really a pain in the ass.

18:23
<ccowan>
exien: and we have to share sessions with php (for now)

18:52
<jtomasrl>
i've manage to install a vm with node.js and tranfer my app, but how can i access to it from outside the vm from the browser? i've done "node index.js" servers is up but can acces through xx.xx.xx.xx:3000 from my web browser

19:02
<AAA_awright>
Additionally when I'm implementing the login, I make sure that an unsuccessful authentication returns the page after exactly 250ms, unless it's an unrecoverable server-side error maybe

19:16
<fibo>
it executes on my client console, even if I launch it from server. I CAN'T EXPLAIN THAT!!!

19:16
<samholmes>
AAA_awright: That's not what I'm asking. I know I can input a password into this function and have it return the encryption. What I'm asking is what should I use to generate random hashes, not passwords, securily?

19:18
<samholmes>
AAA_awright: If a user forgot their password, I need to send them a link with a specific hash. When they click the link, the hash is matched against the encrypted version of the hash in the db.

19:18
<AAA_awright>
samholmes: User sets a new password. Pass the password to generateRecord, store result in database. User logs in with a password. Pull record from database, pass record and supplied password to compareCredential

19:20
<AAA_awright>
samholmes: Same thing goes for email recovery... Generate a password-reset URL, use that to hash it and store it in the database. When the user goes to that URL, compare it to the record in the database.

19:20
<samholmes>
AAA_awright: I understand that part. But, if they want to _reset_ their password, the system needs to send a link _only_ to _their_ email and with a specifically _encrypted_ hash that verifies the link.

19:22
<tlack>
samholmes: do you know how long it would take to perform 160bits worth of http requests

19:22
<isaacs>
milani: yeah, it's just a bug. it's not updating the token when it expires.

19:22
<AAA_awright>
samholmes: That's something you have to implement. When a user navigates to http://example.com/~username/passwordreset?token=sometoken, you need to look up the passwordReset token in the database, pass sometoken and the passwordReset record to the compare function

19:35
<tlack>
Xeon06_: really weird man. can you get it to happen on command? i used to have that issue with mysql timing out after a few hours on a project of mine. i had it wrapped in node-dev so i never noticed

19:35
<AAA_awright>
samholmes: Not sure exactly, call generateRecord and see how long the output is

19:35
<Xeon06_>
Right, so its likely then that the server is simply ending without error, just because its done doing everything

20:18
<EyePulp>
because the external module is a series of exported functions, and they accept arguments, and you're passing in an argument.

20:18
<Tixz>
I want to host several applications on the same server. Since they all can't listen on port 80, I've read that I need some kind of router/load balancer in front of the applications to redirect traffic to the appropriate servers, based on the requested domain. What should I use for this? I've heard HAProxy, Ngix, (Varnish?)

20:22
<Tixz>
EyePulp: Alright, I have an EC2 instance to play around with. I want to host my personal website, an application I'm building and a client website, so 3 domains so far. They're all node projects, but how do I serve them seamlessly from the same machine? :)

20:41
<EyePulp>
jayke: node doesn't execute your external module functions (exports) unless you call them It loads them into memory upon requiring them, but execution only occurs when you call the function.

20:42
<jayke>
well, what i mean is that triest to do "io.sockets.on" before having io "declared"

21:23
<Pavi>
I have some doubt in integrating node-waf with cross compilation

21:23
<mike18>
my problem is the first page that i 'GET' is a google page that just contains a script to set a new window.location. i'm trying to figure out how to evaluate that javascript and move on...

21:24
<Pavi>
can any one help me on how to cross compile, and get *.node file which could be run in ARM Process

21:48
<jharper>
Hi, I'm new to Node and trying to use it to write a server which must be listening for incoming UDP connections while processing data. At the end of each round of data processing, it must insert data which has arrived through the connections since the last round. What's the preferred way of dealing with processing data while concurrently listening for incoming data in Node?

21:50
<nahamu>
isaacs: the context is actually smartos... the KVM branded zones aren't allowed to fork, and the devs have been kind enough to add a metadata format for me to tweak my custom KVM dataset, but they give me the metadata in json.

21:51
<nahamu>
I currently have a bash script whose last step is to exec qemu, and I'd love to write it in node so that I can easily slurp in the json metadata before exec'ing qemu.

21:51
<Almindor>
I'm using readline to process some more complicated imports and when I redirect a file to it like "node myapp.js < file.json" I get all the contents put onto screen even if I don't output anything in the code, why so?

21:51
<livinded>
um, on unix doesn't exec() just replace the current process with a new process image?