Re: [nodejs] How to embed NodeJS into my application?

2013-07-16 Thread Ryan Schmidt
On Jul 16, 2013, at 00:03, philip andrew wrote: > I have a C++ application and I want to embed NodeJS into it on XCode and > Visual C++, how can I do this? How to use node as a library was recently asked on this list, and the response was that node is not designed to be used as a library so it

[nodejs] Re: Building multiple resumable TLS Sessions

2013-07-16 Thread Miroslav Bajtoš
Hi tejasvi83, As long as your application is a single process (not in a cluster), TLS sessions are automatically resumed, you don't need to setup newSession/resumeSession handlers. If you are running a cluster of multiple worker processes, the outcome depends on what your client supports: - I

[nodejs] Node.JS in the DoD

2013-07-16 Thread andy e
Anyone know of any uses of Node.js within the DoD (or other secure/federal gov't environments)? Feel free to ping me off list if so. Some folks are looking for help getting approvals and pointing to existing instances/uses can help. andy -- -- Job Board: http://jobs.nodejs.org/ Posting guidelin

Re: [nodejs] [C++ Addon] Possible segmentation fault with String::Utf8Value class?

2013-07-16 Thread Sam Roberts
On Sun, Jul 14, 2013 at 1:43 PM, Gagle wrote: > If we do: > > String::Utf8Value s (String::New ("asdasd")); > > > s can be null if it fails. If this is true then why in the source code they > don't check for null? Examples: L102, L116, etc Probably whatever reasons it can fail (toString raises an

Re: [nodejs] Re: Weird error with generators (using suspend or galaxy)

2013-07-16 Thread Rick Waldron
On Tue, Jul 16, 2013 at 9:13 AM, jmar777 wrote: > > That for...of syntax is very nice, is it an official part of ECMAScript > 6? > > Yes, although it's not implemented in V8 just yet. Once for-of and > generator-expressions are implemented, a lot of these operations will > become a lot nicer at

Re: [nodejs] Re: Weird error with generators (using suspend or galaxy)

2013-07-16 Thread Rick Waldron
On Tue, Jul 16, 2013 at 2:36 AM, cpprototypes wrote: > The code sample I posted was a simplified example to demonstrate the > issue. The actual command line script I was working on uses the response > from the get request for other things. That for...of syntax is very nice, > is it an official p

[nodejs] Re: Problems using crypto.createDecipher()

2013-07-16 Thread mscdex
On Tuesday, July 16, 2013 6:06:49 PM UTC-4, James Coglan wrote: > > Here's a more concise expression of the problem: these two programs > produce different outputs. I need to fix the Node program so it does the > same thing as the Ruby one: > > https://gist.github.com/jcoglan/6015439 > The prob

[nodejs] Re: Problems using crypto.createDecipher()

2013-07-16 Thread James Coglan
On 16 July 2013 22:08, James Coglan wrote: > I get an error trying to decrypt the message, using the same cipher mode > and key. What am I missing? > Here's a more concise expression of the problem: these two programs produce different outputs. I need to fix the Node program so it does the same

[nodejs] Problems using crypto.createDecipher()

2013-07-16 Thread James Coglan
When I run this Ruby program: ```rb require 'base64' require 'openssl' aes = OpenSSL::Cipher::Cipher.new('AES-128-ECB') aes.encrypt aes.key = 'YELLOW SUBMARINE' puts Base64.encode64(aes.update('yolo') + aes.final) ``` It prints "VznnoI/h3t03+40Igt+mtQ==". However, when I run this Node program:

[nodejs] Re: JSON Mask and the Partial Response Middleware (a la Google APIs)

2013-07-16 Thread Yuriy Nemtsov
Great question. A few reasons: 1. JSON Mask* doesn't alter the structure of the document*. It doesn't select elements (like JSONPath or JSONSelect), but rather filters the parts of the object that you don't need. To illustrate that point, instead of getting "[{a: 1}, {z: 1}]" from the examp

[nodejs] Re: JSON Mask and the Partial Response Middleware (a la Google APIs)

2013-07-16 Thread Scott Rahner
Awesome! I have always loved the gdata partial handling. Code looks sweet too, good call separating the mask and the middleware. This is going to save the tubes from lots of useless data =D On Monday, July 15, 2013 2:59:11 AM UTC-4, Yuriy Nemtsov wrote: > > If you send the *"?fields="* query-str

[nodejs] Building multiple resumable TLS Sessions

2013-07-16 Thread tejasvi83
Hello, I am trying to build resumable multiple TLS sessions using Event: 'newSession' and Event: 'resumeSession' I have already working TLS session based app. Looking forward to include added functions of multiple sessions and resumable session. Any pointers or sample code would be highly appr

[nodejs] Re: Weird error with generators (using suspend or galaxy)

2013-07-16 Thread jmar777
> Yes, although it's not implemented in V8 just yet. I was wrong (and happy about it)! This is working in the latest unstable version of node/v8: $ node -e 'console.log(process.versions.v8)' 3.20.2 $ node --harmony-iteration --harmony-generators > function* gen() { yield 'foo'; yield 'bar'; }

[nodejs] Re: Weird error with generators (using suspend or galaxy)

2013-07-16 Thread jmar777
> That for...of syntax is very nice, is it an official part of ECMAScript 6? Yes, although it's not implemented in V8 just yet. Once for-of and generator-expressions are implemented, a lot of these operations will become a lot nicer at the language level (rather than relying on cludgy `suspend

[nodejs] How to embed NodeJS into my application?

2013-07-16 Thread philip andrew
Hi, I have a C++ application and I want to embed NodeJS into it on XCode and Visual C++, how can I do this? Thanks, Philip -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you ar

[nodejs] Nogios like Node application

2013-07-16 Thread Craig Smith
I'm looking for someone to help write a Nagios like server/host monitoring application in Node. I'm looking to test no more than 255 hosts on 5-10 ports on 5 minute intervals and the report results . The checks should be plugin in based so the app can grow without modification. Drop me a line

[nodejs] Re: JSON Mask and the Partial Response Middleware (a la Google APIs)

2013-07-16 Thread Floby
Looks nice. But why not choose something like JSONPath for selecting fields ? On Monday, 15 July 2013 08:59:11 UTC+2, Yuriy Nemtsov wrote: > > If you send the *"?fields="* query-string to a Google API, you'll get > just the parts of the JSON object from the response that you requested. > > Now,

[nodejs] Re: What's the best practice for a file-stored pub-sub model?

2013-07-16 Thread Floby
I you're ready to try mad science, you could check out the scuttlebuttfamily On Monday, 15 July 2013 15:32:33 UTC+2, Jerry Liu wrote: > > Hi, I have a question on a pub-sub implement using Node.js. > > The scenarios is that I have a chat-room, but memb

[nodejs] memory leak in gc using getters

2013-07-16 Thread Oleg Slobodskoi
Hi there, we need help in this issue https://github.com/LearnBoost/mongoose/issues/1565 We are not able to create a snippet without mongoose dependency which will reproduce it, thought I haven't created an issue on v8 tracker. But it seems like its really an issue in V8 gc. Somebody from V8 t