[nodejs] Re: Can node.js handle a large swarm of buffers sending stimulously and continuously

2013-05-16 Thread greelgorke
you still can have several processes. just use child_process.fork api. but it would be better to upgrade Am Donnerstag, 16. Mai 2013 02:36:14 UTC+2 schrieb Ket: OK. I find this thread :

[nodejs] Re: Can node.js handle a large swarm of buffers sending stimulously and continuously

2013-05-16 Thread greelgorke
and may be you should just try with a single instance first and measure Am Donnerstag, 16. Mai 2013 02:36:14 UTC+2 schrieb Ket: OK. I find this thread : http://stackoverflow.com/questions/11620648/whats-the-difference-between-node-js-cluster-module-and-learnboosts-cluster-m That's too bad.

[nodejs] Migrate the CSV parser to the new Stream API

2013-05-16 Thread David Worms
I'm david, maintainer of the CSV module (https://github.com/wdavidw/node-csv-parser). I'm thinking to migrate the CSV parser from the old style api to the new one. It also seems like a good idea to ask around what would be the best practice in such case. An issue is created on GitHub:

[nodejs] Sending Custom Headers from Client to Server

2013-05-16 Thread Rams B
Hi All, I am trying sending some Custom Headers from Client to Server. The following ajax call is capable to send header information to server. *Client AJAX Call:* $.ajax({ type: GET, url: ws_url, dataType: jsonp, headers:{ custom_header:head_val },

[nodejs] using .read() on a crypto hash

2013-05-16 Thread Stanislas Marion
Hi, I'm trying to use write and read instead of update and digest as per the doc's recommendations but I can't make it work: function createHmac (b64secret, message) { var hmac = crypto.createHmac('sha512', b64secret); hmac.write(message); return hmac.read(); }

[nodejs] Re: using .read() on a crypto hash

2013-05-16 Thread Stanislas Marion
apparently I need to call hmac.end() before reading On Thursday, May 16, 2013 1:29:18 PM UTC+2, Stanislas Marion wrote: Hi, I'm trying to use write and read instead of update and digest as per the doc's recommendations but I can't make it work: function createHmac (b64secret, message) {

[nodejs] Re: https, GoDaddy SSL cert, node.js under Microsoft Azure

2013-05-16 Thread Sushil Baid
I ran through same issue and hit here. I generated pfx from the godaddy certificate files using IIS admin console. Provided pfx and passphrase options to https.createServer(options). Refer

[nodejs] Re: Sending Custom Headers from Client to Server

2013-05-16 Thread greelgorke
i trieyd out, it works for me: console.log(emp_value:+request.headers['custom_header']); *//** emp_value:head_val* Am Donnerstag, 16. Mai 2013 12:33:19 UTC+2 schrieb Rams B: Hi All, I am trying sending some Custom Headers from Client to Server. The following ajax call is capable to

Re: [nodejs] Re: HTTPS request incomplete when piping to a file

2013-05-16 Thread Matt
FWIW that did not fix the problem. On Wed, May 15, 2013 at 11:17 AM, Matt hel...@gmail.com wrote: On Wed, May 15, 2013 at 4:25 AM, greelgorke greelgo...@gmail.com wrote: are you sure it's the end of the file? not the start? Yeah - the files always start with the correct %PDF bytes. It's

[nodejs] insert data node.js to mongodb

2013-05-16 Thread rabindra lal
i have to create master detail form like that var purchase_order = { _id: 1 title: ‘Purchase order 1’, total: 10.50, line_items: [ { sku: ‘a’, quantity: 1, price: 10.50 } ] } how to insert data from front end(juqery easy ui) and node.js in mongodb without using relational

[nodejs] Re: Sending Custom Headers from Client to Server

2013-05-16 Thread mscdex
On May 16, 6:33 am, Rams B bramesh.mc...@gmail.com wrote:     console.log('HEADERS: ' + JSON.stringify(response.headers));//undefined You probably want `request.headers` not `response.headers` here. Perhaps with this change, this particular output may be helpful in seeing what's wrong. -- --

[nodejs] Question about tokens map

2013-05-16 Thread Andrey Kucherenko
Is it possible to get tokens map into javascript code, maybe something like token_get_all method in php? Thanks -- -- 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

[nodejs] Re: Having trouble replicating with npm repo (couchdb) - anyone tried it lately and/or seen this error?

2013-05-16 Thread Kevin Sawicki
Hi Andy, I'm also seeing the exact same issue trying to replicate isaacs.iriscouch.com to another iriscouch.com database, it gets stuck at 17,286 documents (16gb) and those errors start to appear in the log. Have you found any more details about this issue? Sincerely, Kevin On Monday, May

Re: [nodejs] Re: Having trouble replicating with npm repo (couchdb) - anyone tried it lately and/or seen this error?

2013-05-16 Thread andy e
Kevin, Unfortunately, no. We tried a few of the tips mentioned here on the CouchDB list ( http://mail-archives.apache.org/mod_mbox/couchdb-user/201305.mbox/%3cCAL+Y1nuP=wBwXn8eM7MBzZg2v3nKChTEVmo=bntwhf5ukfi...@mail.gmail.com%3e) - for example, we didn't have an admin user set up, so we tried

Re: [nodejs] Re: Any suggestions for running mocha tests multiple times against different scenarios?

2013-05-16 Thread Sam Roberts
I'll check that out, thanks. Right now I'm doing something like: function describeFruit(type) { describe(fruit of +type.name, function() { it(should be juicy, function() { assert(type.juicy); });});} describeFruit(apple); -- -- Job Board: http://jobs.nodejs.org/ Posting

[nodejs] Re: inj - KISS, require based dependency injector (DI) for node.js

2013-05-16 Thread tjholowaychuk
I really dont get these things, why not just define ./log.js and do module.exports = require('my-chosen-log-module'); We expose stuff with NODE_PATH=lib so require('log') in that case but delegate to some other module or apply some thin wrappers. This is pretty common but all this DI stuff just

[nodejs] Re: Sending Custom Headers from Client to Server

2013-05-16 Thread Rams B
Hi Thanks for your reply. I updated my express version to 3.2.4. and my nodejs version is 0.8.11. I tried now, even I couldn't. May I know which version of nodejs and express you are using. Can you share the example codes which you tried. Ramesh On Thursday, 16 May 2013 18:18:35 UTC+5:30,