Re: [nodejs] a pakage that exports few modules

2013-01-20 Thread Austin William Wright
On Friday, January 18, 2013 9:42:10 PM UTC-7, Isaac Schlueter wrote: On Fri, Jan 18, 2013 at 7:34 PM, Jake Verbaten ray...@gmail.comjavascript: wrote: You could just move your files to the root of your folder. If there are too many files then don't have so many files. This.

Re: [nodejs] Running javascript code safely

2013-01-20 Thread Jorge Chamorro
On 16/01/2013, at 22:24, Gustavo Machado wrote: Hello, We are building a platform that is oriented to developers in node.js, and we are in the process of evaluating giving our users the ability to configure validation and authorisation rules in Javascript. On virtually every request,

[nodejs] [Idea]: npm as a dependancy injector.

2013-01-20 Thread Athan Clark
Hello everyone. I'd like to make unit testing a practice difficult to evade in Node.js. One of the requirements, though, is that you need to be able to test a module's functionality independently of it's dependencies (say that 10 times fast!). My idea is to make node more flexible in the

[nodejs] Re: [Idea]: npm as a dependancy injector.

2013-01-20 Thread Eldar
Node module system is locked and is never going to change anyway. Think about it as a static linking system and nothing more. Even with hacks like you suggested it is still insufficient for dynamic linking. The advice is: 1) Do not rely on require system if you want runtime configuration,

[nodejs] Re: Running javascript code safely

2013-01-20 Thread Bradley Meck
Austin : https://github.com/joyent/node/issues/2486 https://github.com/joyent/node/issues/3042 -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google

[nodejs] [ANN] mockery 1.4.0, now with cache control

2013-01-20 Thread Martin Cooper
One of the issues people ran into with earlier versions of mockery has been updating the Node module cache. In particular, caching of mocks beyond their intended usage, and caching of previously 'require'd modules causing problems with mocks being picked up. The recently-released mockery 1.4.0 has

Re: [nodejs] [Idea]: npm as a dependancy injector.

2013-01-20 Thread Martin Cooper
On Sat, Jan 19, 2013 at 8:15 PM, Athan Clark athan.cl...@gmail.com wrote: Hello everyone. I'd like to make unit testing a practice difficult to evade in Node.js. One of the requirements, though, is that you need to be able to test a module's functionality independently of it's dependencies

Re: [nodejs] Re: NodeJS - { [Error: socket hang up] code: 'ECONNRESET' }

2013-01-20 Thread Burak Gürbüz
I'll go with the steps you told. Thanks for informations you gave. 17 Ocak 2013 Perşembe 21:41:40 UTC+2 tarihinde murvinlai yazdı: I took a look of node-curl. It build from its own source code, not depending on node's http.request Since I haven't used node-curl nor did any load testing

Re: [nodejs] npm install node-curl doesn't work?

2013-01-20 Thread Burak Gürbüz
I solved my problem by Arunoda Susiripala 's recommend. I'm watching the system these couple days and i wasn't get any connection close error, i hope i won't. Thanks to you all for answers. 17 Ocak 2013 Perşembe 14:51:13 UTC+2 tarihinde Arunoda Susiripala yazdı: Yes. He has a problem with

[nodejs] Re: Waiting for an async operation to end?

2013-01-20 Thread Brian Link
I'v been using the async module for this kind of thing. The above example could be rewritten as: ``` var fs = require('fs'); var reader = require (buffered-reader); var DataReader = reader.DataReader; var async = require('async'); // You kinda need to understand map-reduce concept

Re: [nodejs] 64 system can't complie node-v0.8.18

2013-01-20 Thread 冼建民
my another machine is normal but only it is 32 bit system my system is debian On Saturday, January 19, 2013 11:15:26 PM UTC+8, Ben Noordhuis wrote: On Sat, Jan 19, 2013 at 10:58 AM, 冼建民 utfqvf...@gmail.com javascript: wrote: www:/home/kenneth/node-v0.8.18# make make -C out

[nodejs] Re: 64 system can't complie node-v0.8.18

2013-01-20 Thread 冼建民
on this machie i can complie node-v0.6.9 On Saturday, January 19, 2013 5:58:18 PM UTC+8, 冼建民 wrote: www:/home/kenneth/node-v0.8.18# make make -C out BUILDTYPE=Release V=1 make[1]: Entering directory `/home/kenneth/node-v0.8.18/out' flock /home/kenneth/node-v0.8.18/out/Release/linker.lock

Re: [nodejs] 64 system can't complie node-v0.8.18

2013-01-20 Thread 冼建民
i install the util-linux that i became normal thank you very much On Saturday, January 19, 2013 11:15:26 PM UTC+8, Ben Noordhuis wrote: On Sat, Jan 19, 2013 at 10:58 AM, 冼建民 utfqvf...@gmail.com javascript: wrote: www:/home/kenneth/node-v0.8.18# make make -C out BUILDTYPE=Release V=1

[nodejs] Re: Waiting for an async operation to end?

2013-01-20 Thread nin jin
I recomend to use futures: http://en.wikipedia.org/wiki/Future_(programming) Some implementations on node: https://github.com/laverdet/node-fibers#futures https://github.com/kriszyp/node-promise https://github.com/nin-jin/node-jin#sod etc for example (run with --harmony flag):

Re: [nodejs] Re: node + raspi + Internet of Things (IoT)

2013-01-20 Thread Nagaraju Malothu
hi jesusabdullah .. i am also trying to develop iot using mqtt protocol on Embedded platform micro controller ... can i know how to proced, where can i find MQTT protocol library, how to write codes for server/client. On Saturday, January 12, 2013 5:23:32 PM UTC+5:30,