[nodejs] Re: SPI bit bang with node, process.binding and mmap bindings

2013-07-18 Thread Floby
This may seems silly, but maybe you could try writing larger buffers. If you write buffers of legnth 1, you'll cross the C++/JS border way more often than if you write buffers of length, say 16 or 32. I'm not sure it will improve things, but it seems it's worth a try. On Wednesday, 17 July 2013

[nodejs] Re: SPI bit bang with node, process.binding and mmap bindings

2013-07-18 Thread Mihai Ene
Hi, Floby, thanks for replying. I already tried that, sorry I didn't mention it. Here is everything else I tried: - Writing a large buffer. For some (yet) unknown reason, process.binding('fs') fails with buffer larger than 8 octets. But trying to write 8 byte buffers is worthless,

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

2013-07-18 Thread mscdex
On Thursday, July 18, 2013 12:41:34 AM UTC-4, philip andrew wrote: The reason why? I'm not programing a game, I'm programming a desktop application. The reasons not particularly important from your point of view expect to say that its a requirement to have NodeJS packaged with my

[nodejs] Troubleshooting SSL connection failures

2013-07-18 Thread Aaron Seet
We implement Node.js in Windows Azure to act as a persistent websocket endpoint (with Sock.js) for clients. Client messages from the websocket channel are routed as regular HTTP requests to backend services, with responses and other notifications going back up the same channel. After about a year,

[nodejs] How to pause Transform stream

2013-07-18 Thread Ivan Maximenko
Hello I try combine few streams in one and then parse its in separated streams And now for me not clear how to pause of transform. When i call method done (indicate stream continue transform) in Readable stream - throw exception Error: no writecb in Transform class. Thanks for help! var fs =

[nodejs] Node JS Blog - Looking for Node JS Guest Authors

2013-07-18 Thread TamasZ
Hi Everyone, I started a blog about node js. It's a new site bit I am planning to promote is trough different ways so many people will read it. I am looking for guest authors, you can write about everything regarding node js. You can link to your website, your social profiles etc, only

Re: [nodejs] Re: SPI bit bang with node, process.binding and mmap bindings

2013-07-18 Thread Elijah Insua
You may want to write this in C, but I'm not completely convinced yet. - Writing a large buffer. For some (yet) unknown reason, process.binding('fs') fails with buffer larger than 8 octets. But trying to write 8 byte buffers is worthless, since only the first byte is taken into

[nodejs] Trouble posting JS meetup announcement

2013-07-18 Thread Michael Bradley, Jr.
I tried yesterday, and then again today, to post a message related to the STLJS JavaScript Meetup in Saint Louis, Missouri, as I've done once every month for the last two years. Both times, the message appeared to be posted successfully, appeared at the top of this group's message list and

[nodejs] Re: Trouble posting JS meetup announcement

2013-07-18 Thread Michael Bradley, Jr.
Well this last message made it through, so I guess my email account isn't blacklisted *per se*. On Thursday, July 18, 2013 4:41:08 PM UTC-5, Michael Bradley, Jr. wrote: I tried yesterday, and then again today, to post a message related to the STLJS JavaScript Meetup in Saint Louis,

[nodejs] install and run an app from npm?

2013-07-18 Thread Mark Hahn
I have a node server app that I want to publish on npm. I would like it to be easy for anyone to do an npm install and then run the server. I have only published modules in npm, not apps. Some questions ... 1) After installing, how can they start the server? Of course they could go to the app

[nodejs] Odd Batch Job Problem with Grunt and Node

2013-07-18 Thread rick
I'm having one of those days. I have created some Grunt scripts to do some build work. I have created the first script to do a JSHint check on JS files in the repo, and then send an email with the errors. Works great - I'm using grunt with jshint, and that module has an escape to call a custom

Re: [nodejs] install and run an app from npm?

2013-07-18 Thread Dan Shaw
1. Use `npm start`. https://npmjs.org/doc/scripts.html 2. Sounds messy and fraught with issues. Not touching that. ;-) Daniel Shaw @dshaw On Thu, Jul 18, 2013 at 3:45 PM, Mark Hahn m...@hahnca.com wrote: I have a node server app that I want to publish on npm. I would like it to be easy for

Re: [nodejs] install and run an app from npm?

2013-07-18 Thread Forrest L Norvell
On Thu, Jul 18, 2013 at 3:45 PM, Mark Hahn m...@hahnca.com wrote: 2) My server only accepts https connections. I don't want them to have to go to the trouble to install a self-signed certificate. Once again I'd like for them to be able to do the npm install and then use it immediately from

Re: [nodejs] install and run an app from npm?

2013-07-18 Thread Mark Hahn
thanks - i didn't think of just running it from npm. On Thu, Jul 18, 2013 at 4:18 PM, Dan Shaw ds...@dshaw.com wrote: 1. Use `npm start`. https://npmjs.org/doc/scripts.html 2. Sounds messy and fraught with issues. Not touching that. ;-) Daniel Shaw @dshaw On Thu, Jul 18, 2013 at 3:45 PM,

Re: [nodejs] How to write a JavaScript library for client or server use

2013-07-18 Thread Ryan Schmidt
On Jul 15, 2013, at 00:26, Hage Yaapa wrote: On Mon, Jul 15, 2013 at 6:50 AM, Ryan Schmidt wrote: On Jul 14, 2013, at 12:21, Hage Yaapa wrote: On Sun, Jul 14, 2013 at 4:25 PM, Ryan Schmidt wrote: It appear to require that I publish my source on Github? Not at all. Component can do many

Re: [nodejs] install and run an app from npm?

2013-07-18 Thread Mark Hahn
Anyone could grab the private key from the github repo or npm tarball and use it to decrypt communications with servers configured this way. Is that true? I thought the certificate was only used to verify that the server was the actual one it claimed to be. The encryption is something

Re: [nodejs] install and run an app from npm?

2013-07-18 Thread Mark Hahn
include a generate a new self-signed key script, and run that on server startup If that is transparent to the person doing the installation then it is perfect. Thanks everyone. I can use the easy way during dev and add the right way in prod. On Thu, Jul 18, 2013 at 7:52 PM, Isaac Schlueter

[nodejs] node js connect to redis shard, using 'crc32' algorithm and 'hashring' module

2013-07-18 Thread vũ văn vịnh
A consistent sharding library for redis in node. Using 'crc32', 'hashring'. View more: https://github.com/xichlo/redis-sharding -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because

[nodejs] Re: using node js with Redis sharding?

2013-07-18 Thread vũ văn vịnh
module.js:340 throw err; ^ Error: Cannot find module './build/Release/hash_ring' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at

[nodejs] Re: Node JS Blog - Looking for Node JS Guest Authors

2013-07-18 Thread jed
Hi, I'm interested in doing some writing (haven't set up my own blog yet). Would you share some info about yours? Where we can see it (so we can read any content you've got so far, see your branding, etc), as well as your intended audience / tone would be good. Cheers, Jed. On Thursday,

[nodejs] Re: using node js with Redis sharding?

2013-07-18 Thread vũ văn vịnh
Hi Martin Cooper, I installed it with npm, the module hash_ring also installed auto. I'd to rebuild module similar to redis-hard, use hashring module. https://github.com/xichlo/redis-sharding -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] install and run an app from npm?

2013-07-18 Thread T.C. Hollingsworth
On Thu, Jul 18, 2013 at 7:36 PM, Mark Hahn m...@hahnca.com wrote: Is that true? I thought the certificate was only used to verify that the server was the actual one it claimed to be. The encryption is something different. It sure is. See all the discussion in the news lately about perfect