Re: [nodejs] module.export

2013-11-11 Thread Alain Mouette
Hi, I am new to Node.js too and this got me confused: What is the difference between *exports.nyFunc = myfunc;* and *module.exports = ...* thanks, Alain === Minha MesaXYZ: http://mesa-reprap.blogspot.com.br/ === Em 11-11-2013 19:23, Charles Angel escreveu: BOOM! Thank you...that was exactly

Re: [nodejs] (npm downtime) npm public mirror / private mirror / caching / multi server list solution

2013-11-13 Thread Alain Mouette
Em 13-11-2013 16:16, Dan Jenkins escreveu: So there's many different options out there: 1. Public mirror of the couchdb install * But how do people access this, they can't currently unless you change some settings in your npmrc file npm itself could come configured with a

Re: [nodejs] Re: Good way to store passwords server-side for node apps

2013-12-28 Thread Alain Mouette
Could you please explain why? It really seems to be the simplest method, used inclusive by npn itselt... Alain === Minha MesaXYZ: http://mesa-reprap.blogspot.com.br/ === Em 28-12-2013 13:57, Alex Kocharin escreveu: Every time you write config file using JSON format, God kills a kitten.

Re: [nodejs] Re: Good way to store passwords server-side for node apps

2013-12-28 Thread Alain Mouette
instead. Guess why. 28.12.2013, 22:19, Alain Mouette amlista...@fastmail.fm: Could you please explain why? It really seems to be the simplest method, used inclusive by npn itselt... Alain === Minha MesaXYZ:http://mesa-reprap.blogspot.com.br/ http://mesa-reprap.blogspot.com.br/ === Em 28-12-2013

Re: [nodejs] Re: Good way to store passwords server-side for node apps

2013-12-28 Thread Alain Mouette
. No. Node.js core is just a core, and it's pretty much useless without modules. 3. Well... here is one: https://github.com/rlidwka/sinopia/blob/master/package.yaml If you still think it's too complex, by all means use JSON5 instead. 28.12.2013, 23:56, Alain Mouette amlista...@fastmail.fm: Ok, ok... I

Re: [nodejs] npm package mutability

2013-12-30 Thread Alain Mouette
Em 30-12-2013 14:10, Mark Hahn escreveu: and people start to depend on it, it should be hard to remove it. Are you referring to some central authority you would have to petition to be allowed to remove? I can't imagine any other process that could be implemented to stop me from removing my

Re: [nodejs] Re: State of the art for request isolation in http servers?

2014-01-16 Thread Alain Mouette
Could you share how you did that? I intend to test that kind of thing *before* building a real application, I am new to node (I came from C++) and it may be an interesting learning path (even if a bit difficult) Thanks Alain === Minha MesaXYZ: http://mesa-reprap.blogspot.com.br/ === Em

Re: [nodejs] Re: Writing a simple native image processing module

2014-08-25 Thread Alain Mouette
Did you know that there is already a very pppular project colled LWIP which stansd for Ligh-Wheigt-Internet-Protocol ??? Maybe you could consider changing that or people will certainly get confused Alain Em 25/08/2014 03:33, Leon Li lilei.l...@gmail.com escreveu: On Wednesday, July 2, 2014

Re: [nodejs] Streaming fs.readdir?

2014-10-09 Thread Alain Mouette
Pipes vave limites sizes in Linux: https://www.google.com.br/search?q=linux+pipe+size+limitoq=lonux+pipe+size+limitaqs=chrome.1.69i57j0l3.14217j0j4client=chrome-mobilesourceid=chrome-mobileespv=1ie=UTF-8 Em 09/10/2014 11:30, Matt hel...@gmail.com escreveu: The buffer size of a pipe between your

Re: [nodejs] Re: Server is accepting requests but is not responding. There is something hanging up the response.

2015-08-12 Thread Alain Mouette
and repeats 10 times for a total os 30 seconds. My diagnose is that the problem was with the connection and not properly with Mandrill. (may previous email gos truncated and uplicated and never got to the list, so this is a consolidated version) Alain Mouette === Projetos especiais: http

Re: [nodejs] Cannot run node.js packages in Virtualbox Shared folders

2015-09-25 Thread Alain Mouette
Hi, here it is: VBoxManage setextradata VBoxInternal2/SharedFoldersEnableSymlinksCreate/host 1 That allows links between internal drive and shared folders PS: I hope that this gets to the list, my las message was not received PLEASE: confirm that you got it Alain Mouette === Projetos

Re: [nodejs] nodejs newbee needs help on writing a websevice accessing a server via tcp

2016-02-05 Thread Alain Mouette
IMHO it should be much easier if you make one more backend in something like Node.js as a gateway, this new backend will serve your SPA and talk to your old style backend Just my 2c - Alain Mouette A 5 de fevereiro de 2016 01:38:27 "'Dieter Stubler' via nodejs"

Re: [nodejs] dns.resolve only tries the first nameserver in /etc/resolv.conf??

2016-05-06 Thread Alain Mouette
What you are trying to do is against the rules. It will not work with any standard implementation! Read more about DNS - Alain Mouette A 6 de maio de 2016 01:04:54 Yun Feng Ma <yunfen...@gmail.com> escreveu: 在此输入代码... 在 2016年5月6日星期五 UTC+8上午9:43:50,Ben Noordhuis写道: On Thu,

[nodejs] Multiple timeouts (lots of...)

2016-09-18 Thread Alain Mouette
Hi, I have a problem to control a few thousand websocket connections, for that I need a timer for each one... first option) on every event I create a *setTimeout()* and delete the last one, once every 60s, 5000 timers, once every 12ms average. My QUESTION IS: will I have a big overhead for

Re: [nodejs] Re: Multiple timeouts (lots of...)

2016-09-19 Thread Alain Mouette
to go through a bad path If you or anyone, has any idea, I would be glad to hear :) Thanks (again), Alain Mouette === Projetos especiais: <http://lnkd.in/dEu8cNq> === On 19-09-2016 05:23, Zlatko wrote: 5000 timers per se should not be a problem to measure nor a problem to the app. It's no

Re: [nodejs] JAR like format for nodejs

2016-10-21 Thread Alain Mouette
You could try Npm dedupe - Alain Mouette A 13 de outubro de 2016 11:44:06 Jan Flyborg <jan.flyb...@gmail.com> escreveu: Hi, I am wondering if there are any plans to change the module system of nodejs to make it able to import modules from a single archive (much like Java's jar

Re: [nodejs] Best Practices of Nodejs and how to Config file

2016-10-09 Thread Alain Mouette
I have seen many people using a dual system. - All non confidential information in a config file, I like sysconfig.json and read it with cjason to have comments - all confidential info in environment variables, or using "envload" and a .env file (in gitignore) ----- Alain Mouette

[nodejs] [nodebr] Blog sobre APIs para SPA

2016-12-16 Thread Alain Mouette
ing-a-good-api-for-an-spa/> I still consider myself a novice in this area, so *I will be pleased to receive critics, contributions and tips*! -- Alain Mouette === Projetos especiais:<http://lnkd.in/dEu8cNq> === -- Você recebeu essa mensagem porque está inscrito no grupo "Node.js B

Re: [nodejs] forever hanging

2017-06-15 Thread Alain Mouette
Run it with a program called "forever", it will keep your process running forever ;-) That works if your process exits and it will restart and keep a log of the output. If it does not exit, maybe " monit" can help - Alain Mouette (ツ) A 13 de junho de 2017 04

Re: [nodejs] Re: Node.Js Hosting

2018-04-29 Thread Alain Mouette
Enviei dois chamados para o suporte... On 27-04-2018 20:41, Alain Mouette wrote: Parece muito legal, mas não achei nada sobre: 1) segurança Nem responderam, acho que lá no olimpo nõ gostam de ser questionados... 2) no plano de $6 pode rodar 10 processos, mas ele ppdem ser diferentes? Isso é

Re: [nodejs] Re: Node.Js Hosting

2018-04-28 Thread Alain Mouette
Parece muito legal, mas não achei nada sobre: 1) segurança 2) no plano de $6 pode rodar 10 processos, mas ele ppdem ser diferentes? Isso é bom para separar as funcionalidades do backend... - Alain Mouette (ツ) A 27 de abril de 2018 20:12:21, Wayne Bruton <waynebru...@gmail.com> es

Re: [nodejs] Webserver module for node js

2018-10-13 Thread Alain Mouette
I believe that HAproxy does that - Alain Mouette (ツ) A 13 de outubro de 2018 01:07:49, Amish Munshi escreveu: I would like to develop a web server module to intercept HTTP traffic and redirect certain authentication requests to another app server thats written in node js. I am aware