[nodejs] Sample Code to Test OTR in nodejs ?

2014-06-28 Thread findmystery
I want to use OTR (Off-the Record Messaging Protocol http://www.cypherpunks.ca/otr/ ) in my nodejs Application. I'm using node-xmpp in my nodejs project to implement a chat application with xmpp. To implement OTR, i have gone through this link https://github.com/arlolra/otr, And executed

[nodejs] Oracle development with node

2014-06-28 Thread Raymond Feng
Hi, Glenn. You should check out LoopBack (loopback.io). We have a few modules supporting Oracle development in Node. 1. strong-oracle: The Node driver for Oracle databases. 2. loopback-connector-oracle: The Oracle connector for loopback-datasource-juggler, which is ORM that supports MySQL,

[nodejs] Can you give Sample Code to Test OTR in nodejs using OTR.js ?

2014-06-28 Thread findmystery
Hi, I want to use OTR (Off-the Record Messaging Protocol http://www.cypherpunks.ca/otr/ ) in my nodejs project. For that i followed the instructions at this link https://github.com/arlolra/otr. I worked out with this test cases https://github.com/arlolra/otr/blob/master/test/xmpp.js

[nodejs] Re: (C++) Emitting events from another thread?

2014-06-28 Thread mscdex
On Friday, June 27, 2014 12:25:09 PM UTC-4, Ingwie Phoenix wrote: This is supposed to be sort-of modeled after child_process.spawn. What posibilities do I have, to emit events across threads? Have you already looked into `uv_async_send()` ? That would be for signalling the main thread

Re: [nodejs] Re: Compiling with node-gyp in parallel

2014-06-28 Thread Nathan Rajlich
Another option is to encourage users to run `npm config set jobs 8` (replace 8 with an appropriate number of CPU cores to use in parallel). On Thu, Jun 26, 2014 at 7:43 PM, mscdex msc...@gmail.com wrote: On Thursday, June 26, 2014 5:03:34 PM UTC-4, AT wrote: and it works great for

Re: [nodejs] export a variable from worker in node.js cluster

2014-06-28 Thread Aria Stewart
On 27 Jun 2014, at 15:01, Chowdhury Masood chowdhurymas...@gmail.com wrote: How do I export a variable from worker in node.js cluster? I get undefined when a variable is exported from either master or worker. But it works when exported before I check for if (cluster.isMaster)... Export to

Re: [nodejs] nodejs 32bit module not running on 64bit system

2014-06-28 Thread Nathan Rajlich
Yes, you'll need to recompile the module using a 64-bit compiler. On Thu, Jun 26, 2014 at 9:51 PM, NodeNinja aeon6f...@gmail.com wrote: I had built a nodejs module with node gyp and it worked fine on 32bit Windows systems until recently I shifted to a 64bit system (Windows). I installed

[nodejs] Re: (C++) Emitting events from another thread?

2014-06-28 Thread Ingwie Phoenix
Am 28.06.2014 um 00:36 schrieb Brian White msc...@mscdex.net: On Fri, Jun 27, 2014 at 4:49 PM, Ingwie Phoenix ingwie2...@googlemail.com wrote: Do you happen to know the async type in uv? I am sure I have seen something like uv_async_t...I just cant memorize it. It's documented in uv.h[1]

[nodejs] Re: (C++) Emitting events from another thread?

2014-06-28 Thread Ingwie Phoenix
Am 27.06.2014 um 22:45 schrieb mscdex msc...@gmail.com: On Friday, June 27, 2014 12:25:09 PM UTC-4, Ingwie Phoenix wrote: This is supposed to be sort-of modeled after child_process.spawn. What posibilities do I have, to emit events across threads? Have you already looked into

Re: [nodejs] Re: Here's your Node.js performance tip of the week - how garbage collection works and how to monitor it

2014-06-28 Thread Ben Noordhuis
On Fri, Jun 27, 2014 at 1:17 PM, Zlatko Đurić zladu...@gmail.com wrote: Where can one look for this code, write barriers and stuff? (I guess curiosity is getting the better out of me, or however the saying goes.) I'm afraid it's scattered all over deps/v8/src. Grep around for 'WriteBarrier'

[nodejs] Re: Oracle development with node

2014-06-28 Thread Bruno Jouhier
Hi Glenn, We use https://github.com/joeferner/node-oracle. This is just a low level wrapper around Oracle's instant client. It works well under normal conditions but exceptions can sometimes cause problems (see https://github.com/joyent/node/issues/6463 and