[nodejs] Re: Streaming fs.readdir?

2014-10-08 Thread Lorenzo Giuliani
as a quick hack you could stream the output of `ls` On Wednesday, October 8, 2014 2:49:52 AM UTC+1, Aseem Kishore wrote: Hi there, I have a directory with a very large number of files in them (over 1M). I need to process them, so I'm using fs.readdir() on the directory. The problem is,

Re: [nodejs] Re: Katana - MVC/HMVC framework for any Node.js samurai.

2012-05-31 Thread Lorenzo Giuliani
The workflow should be: ``` $ katana create app ... $ cd app $ npm install ... $ node app ``` unless you have the NODE_PATH (deprecated?) env pointing to your global node_modules ex: ``` $ echo $NODE_PATH /usr/local/lib/node_modules $ ``` Il giorno giovedì 31 maggio 2012 05:45:03 UTC+2,

Re: [nodejs] Re: authentication scheme / model

2012-03-21 Thread Lorenzo Giuliani
this is a small example of what I am using to manage users on one of my small applications: https://gist.github.com/2146378 This example is a basic mongoose model. I try to avoid big libraries like everyauth if I am building a small website and prefer to roll my own authentication policy to

Re: [nodejs] streaming many files to one writableStream

2012-02-02 Thread Lorenzo Giuliani
Thanks for the input, I will dig into the sources of the ReadableStream and WritableStream. Right now I can't open all inputs since the list can be very long since I must be able to concatenate chunks of large files (some Gb divided by one mb). I made some changes to the code and it seems to