[nodejs] Communicating with a C program without altering stdin/stdout/stderr

2017-12-19 Thread Mike Aubury
Hi, I want to be able to communicate with a C program while maintaining stdio streams as-is - sort of like the way NodeJS can send messages to child nodejs programs. I can see in the documentation - i can use something like : spawn('prg', [], { stdio: ['pipe', 'pipe', 'pipe', 'pipe' /* ext

[nodejs] Re: Cassandra

2016-07-13 Thread Mike D
Hi, You should try using the datastax driver, https://github.com/datastax/nodejs-driver-dse, check out online at http://www.globalscale.us. Regards, Audrey On Monday, July 11, 2016 at 1:31:19 PM UTC-4, Vinay wrote: > > Hi, > > I am using Angular Express Seed with cassandra database.what is th

Re: [nodejs] Clustering in node.js using mesos

2016-05-19 Thread Mike Michel
our platform https://sloppy.io is based on mesos and our application on nodejs. if you can manage to split your app in pieces/microservices and everything runs for you well locally (docker-compose) you can run it perfectly in mesos. maybe helpfull: dockerizing nodejs with docker-compose https:/

[nodejs] no access to the operation hooks if the model was create programmatically

2016-05-15 Thread Mike Reh
Hi, i am creating a : var DM = loopback.createModel(JSON.parse(JSON.stringify(datamodel))) Test1.attach(DM) app.model(DM) The model is available in Explorer for all CRUD functions via GET, PUT, POST ... That works well. BTW, the new model is based on PersistedModel if I create the model via t

[nodejs] How do I send SMPP TLV.

2015-11-16 Thread Mike Mushu
How to send Greetings to all. but you can send a working example of TLV For example, when I hit a few messages while driving at one, eg node-smpp smpp.addTLV('sar_total_segments','3'); smpp.addTLV('sar_msg_ref_num','1'); sendSMS(msisdn, text); smpp.addTLV('sar_total_segments','3'); smpp.addTLV('

[nodejs] Re: Memory decrease causes CPU spike

2015-08-11 Thread Mike Roberts
> not show up as 100% cpu usage). > > On Monday, August 10, 2015 at 1:58:27 PM UTC-7, Mike Roberts wrote: >> >> I've been having this problem with my production servers, haven't been >> able to replicate it with any other environment and it has be scratchi

[nodejs] Memory decrease causes CPU spike

2015-08-10 Thread Mike Roberts
I've been having this problem with my production servers, haven't been able to replicate it with any other environment and it has be scratching my head daily. About every hour or so, any and all requests start taking up 100% cpu and response times go from 0.5 to around 2 seconds. This happens for

Re: [nodejs] Re: Accessing the client certificate in TLS/HTTPS

2015-01-07 Thread Mike Post
That gives you the certificate data, but it's only a representation of the certificate -- not the full certificate data. For example, the certificate's serial number, version, and SKI are not available from getPeerCertificate as of node 0.10.35. On Sunday, February 20, 2011 2:24:30 PM UTC-6, R

[nodejs] Sync Videos on separate devices using nodejs

2014-12-05 Thread Mike Rosik
??? I'm not really sure. Either way, upon inspecting elements, the clients don't see my video in the main root directory. I'm not sure if I'm really approaching this the correct way either. Any help/direction would be appreciated. Thanks! Mike -- Job board: http://

[nodejs] Re: Node.js in ERP-land

2014-05-15 Thread Mike Parsons
congratulations ... Can you provide a little more details on what you used for a client stack, i.e. Angular, jQuery, etc On Wednesday, May 14, 2014 7:35:52 PM UTC-4, Bruno Jouhier wrote: > > Today was a special day for our R&D team. Sage launched version 7 of Sage > ERP X3, our flagship ERP offe

[nodejs] Re: java implementation of Buffer(str, 'binary')

2014-04-22 Thread Mike Kobyakov
I understand that's the recommended route, but it is not possible for us to change this behavior at this time. regardless of whether it's recommended, it should still be possible to decode the 'binary' buffer. > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://gith

[nodejs] java implementation of Buffer(str, 'binary')

2014-04-22 Thread Mike Kobyakov
i have two services (one in node, one in java) sharing objects, which are compressed and, therefore, binary. nodejs does a str.toString('binary') on the compressed buffer. this changes the buffer as in the following example. enc [ -108 1 72 116 104 105 115 32 105 115 32 116 104 101 32 115

Re: [nodejs] Proxy server with authentication

2014-01-11 Thread Mike Rashkovsky
I am trying to use express + connect + passport + http-proxy, and I believe I am encountering the problem that Jose wrote about: "Do not use bodyparser middleware since it will read all the stream and you will not be able to fully pipe the requests. " Is there a way to cache the original reques

[nodejs] browserify and testing best practices

2014-01-07 Thread Mike Nichols
---feature1-spec.js /feature2 -- feature2.js -- | -- /tests feature2-spec.js Any advice or experience on how others work with browserify both in browser and CI/testing environments where this kind of separation is desirable would be helpful. Thanks! mike -- -- Job Board: http://jobs.

Re: [nodejs] Re: ECONNRESET since update to Node 0.10

2013-11-11 Thread Mike Gradek
We had a similar issue, upgrading from 0.8 to 0.10, but the root cause was muddied by upgrades to modules as well. The issue occurred in our test suite, only when we ran a "large" number of tests. Running each test suite independently did not repro the error. In the end, here's how we fixed th

[nodejs] Passing another open file (descriptor, stream,socket) to a unix program

2013-10-11 Thread Mike Aubury
Ok - this might be a little "out there" - but I'm using "spawn" to start a process - with the stdin, stdout, stderr read/written by my node app.. child = spawn("Sometime",[ ]); ... child.stderr.on('data',function(d) {

[nodejs] Re: Passing the socket into the callback

2013-08-20 Thread Mike Chen
Nevermind, solved it, had the this wrapped in another function. Thanks, -mike On Wednesday, August 21, 2013 1:30:58 AM UTC-4, Mike Chen wrote: > > Hi, > > I am doing a bit of code organization, and I would like to turn the > following: > > client.on('message&#

[nodejs] Passing the socket into the callback

2013-08-20 Thread Mike Chen
sure how to pass the client in here, I thought the "this" keyword would refer to it, but apparently not? Thanks, -Mike -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because yo

Re: [nodejs] Organizing Socket IO code

2013-07-08 Thread Mike Chen
Cool, Thanks Antoine. I'll give it a shot. If you have any pointers / example code, let me know! Thanks, -Mike On Monday, July 8, 2013 7:15:27 AM UTC-4, Filipe Deschamps wrote: > > Antoine, this seems very interesting! > > Do you have any example code? > > On Sunday, J

[nodejs] Organizing Socket IO code

2013-06-30 Thread Mike Chen
Hi guys, I'm pretty new to Node.JS and socket IO, so I was wondering if I could get some guidance on project I'm working on. I would like to build a single page multiplayer game that basically communicates solely through socket.IO. However, I am quickly seeing that my socket.js file is getting

[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: embedded database options for Nodejs

2013-04-19 Thread Mike Parsons
https://github.com/developmentseed/node-sqlite3 I've used this quite extensively on linux/windows/mac and even Raspberry PI On Friday, April 19, 2013 4:59:28 AM UTC-4, Angelo Chen wrote: > > Hi, > > What are the options for embedded database? I use redis and mongodb for > now, but sometimes yo

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

2013-04-16 Thread Mike Pilsbury
You could try 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, 1

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

2013-04-14 Thread Mike Pilsbury
t; then that's fine. > > You don't have to stash the callback anywhere. It's the same function > each time :) > > > On Sun, Apr 14, 2013 at 9:03 AM, Mike Pilsbury > > > wrote: > >> I have technically consumed it by hanging on to it. > &g

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

2013-04-14 Thread Mike Pilsbury
, I do this.push then call done, if I don't I hang 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:

[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 particula

[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 accum

Re: [nodejs] Re: nodeconf videos?

2013-02-08 Thread mike
i guess conference organizer's are the ones that watch the videos (sarcasm) this post started a few months ago and still only a couple of videos have come out ... as someone very interested in watching them, it is disappointing not being able to because Kubrick is taking his sweet time in post pro

[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 20

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 ) 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 DES-CB

[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 n

[nodejs] Current Windows Deployment Story

2012-11-27 Thread Mike Nichols
s or are people confidently deploying node apps on Windows? Any experience with nodejs on Windows in the wild would be very helpful. Before gouging my eyes out because of reverting into .Net app-land I'd like to be sure it is necessary to do so :) Thanks! Mike -- Job Board: http://jobs

[nodejs] Compile Extension Module into node.exe

2012-11-15 Thread Mike Parsons
Is there a way to compile a custom extension module (i.e. https://github.com/developmentseed/node-sqlite3) directly into the node.exe? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because

Re: [nodejs] Re: Module caching Caveats

2012-11-01 Thread Mike Hatalski
Many thanks, especially for pointing out fs.realpath(). Interesting because of realpath, different symlinked files resolve to the same absolute pathname, and thus to the same module in the module cache. On Thu, Nov 1, 2012 at 1:19 PM, Isaac Schlueter wrote: > Mike, > > Depending on

[nodejs] Module caching Caveats

2012-11-01 Thread Mike
The docs under Module Caching Caveats, it says Modules are cached based on their resolved filename. Since modules may resolve to a different filename based on the location of the calling module (loading from node_modules folder

Re: [nodejs] Any way of determining what ./configure options were used for a particular node binary?

2012-10-29 Thread Mike
larger size due > to the additional symbols). > > On Mon, Oct 29, 2012 at 12:29 PM, Ben Noordhuis > > > wrote: > > On Mon, Oct 29, 2012 at 7:21 PM, Mike > > wrote: > >> Given a node binary, any easy way of determining what options were > passed to

Re: [nodejs] Any way of determining what ./configure options were used for a particular node binary?

2012-10-29 Thread Mike
Easy enough, many thanks! (note to self, process.config is only available for v0.7.7 and higher) On Monday, October 29, 2012 12:29:16 PM UTC-7, Ben Noordhuis wrote: > > On Mon, Oct 29, 2012 at 7:21 PM, Mike > > wrote: > > Given a node binary, any easy way of determining

[nodejs] Any way of determining what ./configure options were used for a particular node binary?

2012-10-29 Thread Mike
Given a node binary, any easy way of determining what options were passed to ./configure when the binary was built? Background: I just cross compiled node.js (v0.8.14) for the Raspberry Pi and was surprised to find the binary was 5X larger (after being stripped). I just wondering about the size

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

2012-10-08 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 gro

Re: [nodejs] Re: Streams pipe and unpipe

2012-09-19 Thread Mike Nichols
I just came up against this trying to proxy a stream. This seems to work for me: proxy.on 'pipe', (pipeSrc) -> src = pipeSrc proxy.pipe = (pipeDest) -> unless proxied throw new Error 'proxied stream has not been enabled' src.removeAllListeners()

[nodejs] [ANN]: npmrc - a tool to switch between .npmrc files

2012-09-18 Thread Mike Brevoort
Nice! Great idea. Mike -- 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

[nodejs] ANN: Reggie - a lightweight npm registry

2012-09-18 Thread Mike Brevoort
Reggie. So what do you think? Cheers, Mike -- 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,

Re: [nodejs] Re: persistent connections

2012-09-16 Thread Mike Nichols
nefficient. But it's better to validate your assumptions with testing for > your particular use cases. > > :Marco > > On Sun, Sep 16, 2012 at 6:35 PM, Mike Nichols > > > wrote: > >> Here is the code under consideration (from redis-stream module) which I >>

[nodejs] Re: persistent connections

2012-09-16 Thread Mike Nichols
> some more info about your use case? > > :Marco > > On Sunday, September 16, 2012 1:59:02 PM UTC-7, Mike Nichols wrote: >> >> I am using a module which uses a net.createConnection (for redis) per >> stream instance. This would seem like it is not so efficient and sh

[nodejs] persistent connections

2012-09-16 Thread Mike Nichols
indefinite amount of time? I have looked around and haven't been able to find guidance on this. I noted that socket.io is doing some kind of persistence connections but wasn't sure if I should follow suit. Any pointers or redirects to info is appreciated. Thanks! Mike

Re: [nodejs] Re: emit('data') best practice

2012-09-07 Thread Mike Nichols
, 2012, at September 3, 20128:26 PM, tjholowaychuk > > > wrote: > > > > IMO if the idea behind streams are to act like pipes then "data" events > > should only be "raw" data aka Buffers (strings too I guess), > > if it's a non-stream then

[nodejs] Re: emit('data') best practice

2012-09-03 Thread Mike Nichols
ould only be "raw" data aka Buffers (strings too I guess), > if it's a non-stream then whatever I guess > > On Monday, 3 September 2012 15:44:55 UTC-7, Mike Nichols wrote: >> >> When issuing a redis command which expects a multi-bulk reply but the key >> does

[nodejs] emit('data') best practice

2012-09-03 Thread Mike Nichols
When issuing a redis command which expects a multi-bulk reply but the key does not exist, one may receive the following: +OK *0 The redis docs say "If the specified key does not exist, the key is considered to hold an empty list and the value 0 is sent as multi bulk count." It seems like it is

[nodejs] Core dump in Fedora 16: Assertion `args.Holder()->InternalFieldCount() > 0' failed

2012-08-10 Thread Mike Ratcliffe
I was getting the following: $ npm npm: ../src/timer_wrap.cc:127: static v8::Handle node::TimerWrap::Start(const v8::Arguments&): Assertion `args.Holder()->InternalFieldCount() > 0' failed. Aborted (core dumped) It turned out that v8 was updated on the updates repo and not on tchol.org's nodej

[nodejs] Odd behavior of nested Domaons

2012-07-12 Thread Mike Schilling
Top saw an error: bar That's what happens when I run node under the IntelliJ debugger (no breakpoints set, just run it to completion.) But if I run node without the debugger, either under IntelliJ or directly from the command line, the output is Sub saw an error: foo /Users/mike/Docume

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 no

[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-

Re: [nodejs] Re: questions about profiling nodejs

2012-06-07 Thread Mike Marcucio
Thanks, the DEBUG_HOST part was my problem, I got it working properly now. Thanks for the help On Jun 7, 2012, at 2:56 AM, darcy wrote: > if you are not running chrome on the server where node is running, you should > set the DEBUG_PORT and DEBUG_HOST environment variables > > like: > export

[nodejs] Re: Concurrent transactions

2012-05-08 Thread Mike Pilsbury
The error is being thrown from https://github.com/cretz/node-tds/blob/master/lib/tds.js#L140 . Like node-tds, tedious will probably never support concurrent requests on a single connection either. It's just too much work for too little reward. > But if two of my clients send an insertion reque

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: https://github.com/joyent/node/wiki/Mailing-Li

[nodejs] Re: Offline Documentation

2012-04-03 Thread mike
Please do this command on the command-line if you are using linux, wget --mirror -U "Mozilla/5.0 (X11; U; Linux; en-US; rv:1.9.1.16) Gecko/20110929 Firefox/3.5.16" -w 2 http://nodejs.org/ If you do not already have wget then install it on ubuntu by doing this command, again on the command-line,

[nodejs] Re: Yet another SQL Server client

2012-03-05 Thread Mike Pilsbury
t; right now though. I believe Mike's repository is more active and may be a > better solution. > > On Thursday, March 1, 2012 6:02:56 PM UTC-6, Neville Burnell wrote: >> >> Hi Mike, Chad, >> >> I'm embarking on a Node/SQL Server 2008 project ... rather than