[nodejs] Re: Streams writev API

2013-04-24 Thread Mike Pilsbury
Is this signature not worth considering? stream.writev([chunks,...], encoding, callback) It's an easier API to use. No need to create an object for each chunk. Of course it'd be no use where there's a need to different encodings for some of the chunks, but how common a requirement is that?

[nodejs] Re: node.js and sql server...

2013-04-16 Thread Mike Pilsbury
You could try tedious http://pekim.github.io/tedious/ (which I maintain). It has (I believe) some features that msnodeql does not, and vice versa. I don't know whether it'll meet your requirements, but you should find it a lot easier to install, as there are no binaries involved. On Tuesday, 16

[nodejs] Transforming stream - when to call callback

2013-04-14 Thread Mike Pilsbury
I'm extending Transform, and I'm a little unclear when to call transform._transform(chunk, encoding, callback)'s callback. The documentation says Call the callback function only when the current chunk is completely consumed. Note that there may or may not be output as a result of any

[nodejs] Re: Transforming stream - when to call callback

2013-04-14 Thread Mike Pilsbury
to another partial chunk and call done anyways. Instead of hanging on to the callback (done), just call it once you've put your partial chunk on to your _pendingChunks array On Sunday, 14 April 2013 07:16:18 UTC-4, Mike Pilsbury wrote: I'm extending Transform, and I'm a little unclear

Re: [nodejs] Re: Transforming stream - when to call callback

2013-04-14 Thread Mike Pilsbury
the callback anywhere. It's the same function each time :) On Sun, Apr 14, 2013 at 9:03 AM, Mike Pilsbury mike.p...@gmail.comjavascript: wrote: I have technically consumed it by hanging on to it. That's the bit that I was concerned about. I wasn't sure that I could rely

[nodejs] Re: Tedious - Problem in sending response

2013-03-23 Thread Mike Pilsbury
Like most io in node, tedious responds asynchronously. However you are treating your connect_db function as if it operated synchronously. The result array will still be empty when the function returns. Pushing stuff in to the result array in the 'row' event is fine; that will allow you to

[nodejs] Re: Tedious - Problem in sending response

2013-01-10 Thread Mike Pilsbury
Boomi, I really sorry that I didn't answer this question when you posted it in the tedious group. I simply haven't had any proper spare time the last few days. I'm pleased that you got a good answer; better than one I might have provided. Mike On Wednesday, 9 January 2013 07:37:13 UTC,

Re: [nodejs] TLS cipher woes

2013-01-06 Thread Mike Pilsbury
When you mention RC4-MD5 and DES-CBC3-SHA, do you mean the TLS cipher Yes. I misread the TLS and NET debug messages yesterday. I was wrong in my original assertion that writing to the cleartext stream did not result in the encrypted stream emitting anything. It does emit, and NET debug

[nodejs] TLS cipher woes

2013-01-05 Thread Mike Pilsbury
I'm having some problems with secure connections in my implementation ( tedious http://github.com/pekim/tedious) of TDS. Under some conditions I don't get any response from the SQL Server instance to a TDS login packet sent to it. If I use RC4-MD5 everything works fine. However if I use

[nodejs] Re: connecting to ms sql server, the native way.

2012-12-30 Thread Mike Pilsbury
http://pekim.github.com/tedious/ is a JavaScript implementation of TDS that I (just about) actively maintain. On Saturday, 22 December 2012 21:59:19 UTC, a...@2trackit.net wrote: Hi guys, I'm new to this group just joined in, so first I wanted to say HI. next, I'm also quite new to

[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Mike Pilsbury
a) (My only use of crypto is to createCredentials for tls.) -- 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 Groups nodejs group. To post to this

Re: [nodejs] newbie question iso-8859-15

2012-07-03 Thread Mike Pilsbury
Or iconv-lite, which is pure JavaScript. -- 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 Groups nodejs group. To post to this group, send email to

[nodejs] Re: npm outdated

2012-06-15 Thread Mike Pilsbury
https://github.com/pksunkara/npm-police can help with this. On Thursday, 14 June 2012 16:38:10 UTC+1, Graeme Foster wrote: Hi all I just noticed that when I ran npm outdated it said everything was hunky-dory but in fact some of my packages were out of date. The packages *were* up-to-date

Re: [nodejs] finding modules matching a name glob

2012-04-21 Thread Mike Pilsbury
So doing an `npm ls` from a process is the only way to go? Whatever it takes. It looks like http://npmjs.org/doc/README.html#Using-npm-Programmatically offers another option. -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: Yet another SQL Server client

2012-03-05 Thread Mike Pilsbury
I don't know of any use of Tedious in production. Yes, my TDS implementation (Tedious) is currently more active than Chad's (node-tds). I am addressing issues that are raised, and adding features. However it does not yet have quite as much functionality as node-tds. For example it has no