[nodejs] Streaming Code Worked in v0.2.3 and 0.4.12, fails in 0.10.25

2014-10-02 Thread P. Douglas Reeder
I can tell the following code executes as far as logging "second piece of index-colorbox.html written", but not to logging "writeUntilBufferFull()". Any suggestions why the "drain" event doesn't appear to fire under 0.10.25? writeStream.write("" + title + "\n"); fs.readFile("piece/index-se

[nodejs] How can i do this query ???

2014-10-02 Thread Angel Rodriguez
I am creating a search engine mongoose. Now, how can I do when the query finds a word in the database ?? can the code inform me what word was found ??? Example: ... query.and ([{color: 'green'}, {color: 'gray'}, {color: 'blue'}]) The query returns the matches found in the database, but

Re: [nodejs] npm install mongodb explosion

2014-10-02 Thread Angel Java Lopez
My guess: The original output was colored, yellow color. It's usual on Windows, something appears as having compile problem related to Kerberos/node-gyp, but after those messages, all is working. I'm not sure what part of mongodb is affected Angel "Java" Lopez @ajlopez On Thu, Oct 2, 2014 at 1

Re: [nodejs] npm install mongodb explosion

2014-10-02 Thread Jimb Esser
Though I agree (deducing from my experience) that it appears the original poster has successfully installed the mongodb module, I disagree that there is a single statement in the entirety of the output which "seems to show that mongodb was successfully installed". NPM generally is pretty clear

Re: [nodejs] Advantages of functions as modules

2014-10-02 Thread Angel Java Lopez
Short answer, English is not my strong point ;-) A keyword: modularization Instead of populate the global environment, each module exposes the functions that needed to be consumed, without worrying of name conflicts with other modules. And there are more benefits: - Each module tries to cover a

[nodejs] Re: Question about parallel (nimble) execution

2014-10-02 Thread Kleyson Rios
Thanks. Em quarta-feira, 1 de outubro de 2014 08h06min26s UTC-3, Kleyson Rios escreveu: > > I would like to know how exactly parallel execution works. > > I'm using nimble module to execute some functions in parallel, and the > result of those executions be used for a final calculation. When I r

[nodejs] Advantages of functions as modules

2014-10-02 Thread Sameer Joshi
Hello Team! I wanted to know, what are the advantages (if there are) of calling functions from modules using *modules.exports* as opposed adding all the functions to the main app JS file. I am looking for a simple comparison or pro's and con's for points apart from that it gives logical modula