[nodejs] Re: enable/disable assertion

2012-03-05 Thread JeanHuguesRobert
On 5 mar, 02:26, Marcel Laverdet wrote: > > de&&bug( msg) is much faster when traces are disabled > > Is this a true statement? "much faster" than debug( msg) of course ;) When traces are disabled, the right side of the && operator is not evaluated ; as a result the call to some "debug( msg)" fu

[nodejs] Re: enable/disable assertion

2012-03-05 Thread JeanHuguesRobert
On 29 fév, 11:27, Jann Horn wrote: > And in coffee, you can even use 'fn?()' for that. :P Cool! As a result: assert? xxx ... is problably the best way today to remove asserts in production mode when using CoffeeScript : set assert to null. Idem for trace?() -- Job Board: http://jobs.nodejs.or

Re: [nodejs] npm on 0.6.12

2012-03-05 Thread Claudio Poli
no one knows? Il giorno domenica 4 marzo 2012 11:06:56 UTC+1, Claudio Poli ha scritto: > > Because as I wrote I want to create a .deb package out of Node.js sources. > > Il giorno domenica 4 marzo 2012 08:07:46 UTC+1, Isaac Schlueter ha scritto: >> >> Why are you doing checkinstall rather than `ma

[nodejs] Re: Secure distribution of NodeJS applications

2012-03-05 Thread Ken
I realize this thread has largely devolved into a philosophical discussion about whether one *should* do this, but I think the technical question of how one *could* do this is still a valid one. I've thought about this a while and so far the only practical and secure answer I've come up with is

[nodejs] Network load affecting negatively fs operations?

2012-03-05 Thread Nikola Toshev
I have some code that makes lots of http client requests (several per second) and does occasional async fs operation (one every few seconds). Normally the fs operation takes milliseconds to complete, but as the number of http requests increase, it starts being delayed for seconds to minutes, even t

[nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread jiabin xiong
Can get micro time via this module . https://github.com/wadey/node-microtime works fine. On Mon, Mar 5, 2012 at 1:57 PM, jiabin xiong wrote: > > > -- > Hello,World! > 熊佳斌(totty) > -- Hello,World! 熊佳斌(totty) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joy

[nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Bert Belder
Creating an addon that provides an uv_hrtime() binding would be a good cross-platform solution for this. -- 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 Googl

[nodejs] Re: Network load affecting negatively fs operations?

2012-03-05 Thread mscdex
On Mar 5, 4:43 am, Nikola Toshev wrote: > Http requests also begin to take a while to complete even though the > network pipe is not saturated. I'm using local DNS caching and it does > help somewhat, but I'm still not able to go beyond 100 or so http > requests per second, with CPU usage <10% and

[nodejs] Re: minimalist OS for web server: Raspberry Pi?

2012-03-05 Thread rtweed
So am I right in assuming that Node.js should be able to be installed on the Raspberry Pi (when any of us manage to get our hands on one!)? Will its ARM processor be an issue? Wouldn't it be great to have the next generation of developers learning Node/Javascript at school? The Raspberry would be

[nodejs] Re: minimalist OS for web server: Raspberry Pi?

2012-03-05 Thread mscdex
On Mar 5, 7:50 am, rtweed wrote: > So am I right in assuming that Node.js should be able to be installed > on the Raspberry Pi (when any of us manage to get our hands on one!)? > Will its ARM processor be an issue? I don't see why it wouldn't work on it. As far as ARM goes, I compile and use node

[nodejs] Re: Network load affecting negatively fs operations?

2012-03-05 Thread Bert Belder
On Mar 5, 10:43 am, Nikola Toshev wrote: > I have some code that makes lots of http client requests (several per > second) and does occasional async fs operation (one every few > seconds). Normally the fs operation takes milliseconds to complete, > but as the number of http requests increase, it s

[nodejs] Re: [PATCH] Add runtime accessor process.maxIOThreads

2012-03-05 Thread Erik Dubbelboer
I wrote a small module to be able to set the number of threads in javascript. https://github.com/ErikDubbelboer/node-eio-simple I'll start doing some real life tests with it soon. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting

[nodejs] Re: Network load affecting negatively fs operations?

2012-03-05 Thread Nikola Toshev
I'm on Linux. I've also tried to use agents but there was no difference (but I'm not doing frequent requests to the same server many times). I have some progress with this problem: I wrongly assumed Node uses truly asynchronous DNS resolution via c-ares. This turned out not to be the case - the do

[nodejs] Re: Network load affecting negatively fs operations?

2012-03-05 Thread Nikola Toshev
Wow, thanks! My hypothesis turns out to be correct! I'm still seeing a delay in disk I/O at higher load, so I will investigate a little bit further. Is there something else that shares this thread pool? Or maybe when I pass IP addresses to http.get they are still passed through the thread pool, ev

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Ben Noordhuis
On Mon, Mar 5, 2012 at 13:37, Bert Belder wrote: > Creating an addon that provides an uv_hrtime() binding would be a good > cross-platform solution for this. I don't mind adding a `process.hrtime()` function, it would be useful for benchmarks. The problem is that uv_hrtime() returns a 64 bits uns

[nodejs] Re: Network load affecting negatively fs operations?

2012-03-05 Thread Nikola Toshev
The problem I was still seeing was my bug: I handled redirects with the default resolver instead of dns.resolve. The issue is here: https://github.com/joyent/node/issues/2868 On Mar 5, 3:39 pm, Nikola Toshev wrote: > Wow, thanks! My hypothesis turns out to be correct! > > I'm still seeing a dela

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Dean Landolt
On Mon, Mar 5, 2012 at 8:51 AM, Ben Noordhuis wrote: > On Mon, Mar 5, 2012 at 13:37, Bert Belder wrote: > > Creating an addon that provides an uv_hrtime() binding would be a good > > cross-platform solution for this. > > I don't mind adding a `process.hrtime()` function, it would be useful > for

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Micheil Smith
Yeah, you could do something like [seconds, microseconds], such that you could have precision on your values. – Micheil On 05/03/2012, at 2:32 PM, Dean Landolt wrote: > > > On Mon, Mar 5, 2012 at 8:51 AM, Ben Noordhuis wrote: > On Mon, Mar 5, 2012 at 13:37, Bert Belder wrote: > > Creating a

Re: [nodejs] Re: Secure distribution of NodeJS applications

2012-03-05 Thread Dean Landolt
On Mon, Mar 5, 2012 at 12:42 AM, Ken wrote: > I realize this thread has largely devolved into a philosophical discussion > about whether one *should* do this, but I think the technical question of > how one *could* do this is still a valid one. I've thought about this a > while and so far the on

Re: [nodejs] Re: Secure distribution of NodeJS applications

2012-03-05 Thread Oliver Leics
On Mon, Mar 5, 2012 at 6:42 AM, Ken wrote: > I realize this thread has largely devolved into a philosophical discussion > about whether one *should* do this, but I think the technical question of > how one *could* do this is still a valid one. It is _not_ a philosophical conclusion that in most c

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Dean Landolt
On Mon, Mar 5, 2012 at 9:46 AM, Matt wrote: > Alternatively, maybe just not worry about it, since 2**53 microseconds > isn't hit until 2255. I hope to not be using Node then :-) Heh. I like Matt's idea better :) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joy

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Matt
Alternatively, maybe just not worry about it, since 2**53 microseconds isn't hit until 2255. I hope to not be using Node then :-) On Mon, Mar 5, 2012 at 9:43 AM, Micheil Smith wrote: > Yeah, you could do something like [seconds, microseconds], such that you > could have precision on your values.

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Ben Noordhuis
On Mon, Mar 5, 2012 at 15:51, Dean Landolt wrote: > On Mon, Mar 5, 2012 at 9:46 AM, Matt wrote: >> >> Alternatively, maybe just not worry about it, since 2**53 microseconds >> isn't hit until 2255. I hope to not be using Node then :-) > > > Heh. I like Matt's idea better :) uv_hrtime() has nanos

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Jorge
On Mar 5, 2012, at 2:51 PM, Ben Noordhuis wrote: > On Mon, Mar 5, 2012 at 13:37, Bert Belder wrote: >> Creating an addon that provides an uv_hrtime() binding would be a good >> cross-platform solution for this. > > I don't mind adding a `process.hrtime()` function, it would be useful > for bench

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> JavaScript gets analysed and minified by different tools, you'll have a > choice between serveral AST parsers to start your creation of a DSL for > your users (even and especially if it means a subset of the > JavaScript/EcmaScript language). Maybe you can even prevent users to > write code whi

[nodejs] Return from a function

2012-03-05 Thread AndDM
Hi, I'm a new nodejs's and javascript's user, i wrote this function for test that get data form a MongoDB's collection: function list() { var serverMongo = new mongodb.Server("127.0.0.1", 27017, {}); new mongodb.Db('mytestnode', serverMongo, {}).open(function (error, client) {

[nodejs] Re: Return from a function

2012-03-05 Thread Spencer Alger
The proper way to do this (i think) is to pass a function as the last parameter of your find function, then when you have the response from Mongo, call that function and pass the results to it, along with any possible error. function list(callback) { var serverMongo = new mongodb.Serve

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Nathan Rajlich
I'm working on the patch. Up in a sec. On Mon, Mar 5, 2012 at 7:15 AM, Ben Noordhuis wrote: > On Mon, Mar 5, 2012 at 15:51, Dean Landolt wrote: > > On Mon, Mar 5, 2012 at 9:46 AM, Matt wrote: > >> > >> Alternatively, maybe just not worry about it, since 2**53 microseconds > >> isn't hit until

[nodejs] Re: Will Node.js work for me?

2012-03-05 Thread billywhizz
I would agree with what Mihai is recommending as the way to do this in node.js. You can also get node.js to talk fastcgi in a cluster behind nginx if that's what you want to do. the issues i think you will still have are: 1) how to prevent, detect and recover from infinite loops in the child p

Re: [nodejs] Re: Secure distribution of NodeJS applications

2012-03-05 Thread billywhizz
oliver is correct. have had this argument many times. all you can ever do is make the source code difficult to get at and it's a question of how much effort you want to expend to do that. with something like v8, it's going to be difficult to even make it difficult as all someone will have to do

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread Nathan Rajlich
https://github.com/joyent/node/pull/2871 On Mon, Mar 5, 2012 at 8:46 AM, Nathan Rajlich wrote: > I'm working on the patch. Up in a sec. > > > On Mon, Mar 5, 2012 at 7:15 AM, Ben Noordhuis wrote: > >> On Mon, Mar 5, 2012 at 15:51, Dean Landolt wrote: >> > On Mon, Mar 5, 2012 at 9:46 AM, Matt wr

Re: [nodejs] Re: Can I get more accurate time than new Date()->getTime() in node.js

2012-03-05 Thread billywhizz
*applause* -- 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@googlegroups.com To unsub

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Jann Horn
Am Sonntag, den 04.03.2012, 17:43 -0800 schrieb Luke Scott: > What I'm trying to figure out is what to do when I want users to write > plugins (untrusted code). I only want them to have access to (1) what > V8 vanilla provides and (2) a few classes that provide context sensitive > functions. But

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
The script would have to run on every request (perhaps only when base functionality is extended by the user). If this is like the old PHP CGI I would probably run into problems. But I do agree having a Node instance spawn other Node instances is probably overkill and I'd be better off spawning

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 09:49 -0800 schrieb Luke Scott: > The script would have to run on every request (perhaps only when base > functionality is extended by the user). If this is like the old PHP CGI I > would probably run into problems. But I do agree having a Node instance > spawn other N

[nodejs] [meta] GPG?

2012-03-05 Thread Jann Horn
Just curious: Do other people here have GPG keys and just don't use them? If so, why not? I don't see many signed mails here... signature.asc Description: This is a digitally signed message part

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> > Can't you just run the code on the client side and hook it into the > server with dnode or something like that? (Or regular AJAX if you're > worried about DoS attacks - as soon as you run something like socket.io, > you're pretty much defenseless against mildly sophisticated DoS attacks. > A f

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 10:26 -0800 schrieb Luke Scott: > > > > Can't you just run the code on the client side and hook it into the > > server with dnode or something like that? (Or regular AJAX if you're > > worried about DoS attacks - as soon as you run something like socket.io, > > you're pre

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> So you have untrusted code and an untrusted user, and the untrusted code > and the untrusted user don't trust each other as well? > > How many different people will be able to upload untrusted code? > Each "user" has an account and creates forms. The plugins created by the "users" do things l

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 11:21 -0800 schrieb Luke Scott: > > So you have untrusted code and an untrusted user, and the untrusted code > > and the untrusted user don't trust each other as well? > > > > How many different people will be able to upload untrusted code? > > Each "user" has an account

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> How many "user"s will there be? Like, <100, <1000, <1 or many more? > 2000+. Each user has any where between 1 and 50 pages. Each page will probably get anywhere from 0-200,000 requests (total). Most of these users will use the stock features. The plugins will probably be only used by ad

[nodejs] autodeploying code updates without killing running tasks

2012-03-05 Thread chris.percol
I look after a private cloud of around 30 windows and linux virtual servers. We are using node to do some pretty cool stuff at the moment on these servers e.g. run sql commands, file backups and other stuff. However, I'm individually pulling code changes down to servers using git which is far from

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Isaac Schlueter
Gmail doesn't make it easy enough to sign messages. On Mon, Mar 5, 2012 at 10:05, Jann Horn wrote: > Just curious: Do other people here have GPG keys and just don't use > them? If so, why not? I don't see many signed mails here... -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https

[nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Baz
I haven't used node yet, but am planning to. A question was asked in another thread, along with many other great questions, that got lost in the shuffle. I'd be really interested in hearing people's opinions on it. To quote Luke: What kind of applications would you not trust on Node.js? Should som

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 11:47 -0800 schrieb Luke Scott: > So for the most part there really isn't much going on after a request has > been made. A visitor requests a page, sits on it for 3-5 minutes, submits > the form, and then leaves. But the more users we have and the more pages > they hav

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 12:20 -0800 schrieb Isaac Schlueter: > Gmail doesn't make it easy enough to sign messages. True... and you see no other advantage in using a native mail client? Mhm... I guess there actually aren't many left... signature.asc Description: This is a digitally signed mes

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 12:24 -0800 schrieb Baz: > What kind of applications would you not trust on Node.js? Should someone > like Amazon trust Node to power their shopping cart knowing that having the > one thread fail could prematurely cut off thousands of in-progress > transactions? I'm sure

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Richard Marr
Estimated cost of fake emails * Probability of someone bothering to fake my emails > Effort required On 5 March 2012 18:05, Jann Horn wrote: > Just curious: Do other people here have GPG keys and just don't use > them? If so, why not? I don't see many signed mails here... -- Job Board: http://

Re: [nodejs] use fs.watch instead

2012-03-05 Thread Adam Pritchard
The Trevor Burnham's Watchit module does an okay job of providing a "sensible wrapper" around fs.watch -- it smooths out some of the cross-platform issues. It certainly doesn't solve every problem (for example, in my module

Re: [nodejs] Will Node.js work for me?

2012-03-05 Thread Luke Scott
> > Do you think the following model would work? > > - have a limit for the number of workers: 100 > - one worker or zero per user (not visitor!) > - when a worker is needed but none is active for the polls/forms/... > creator, kill the one with the highest idle time and spin up a new one > (EX

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Dean Landolt
On Mon, Mar 5, 2012 at 3:30 PM, Jann Horn wrote: > Am Montag, den 05.03.2012, 12:20 -0800 schrieb Isaac Schlueter: > > Gmail doesn't make it easy enough to sign messages. > > True... and you see no other advantage in using a native mail client? > > Mhm... I guess there actually aren't many left..

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Joshua Holbrook
I use gmail enough that I'd be willing to go as far as to use an add-on/extension if it didn't suck. --Josh On Mon, Mar 5, 2012 at 12:48 PM, Dean Landolt wrote: > > > On Mon, Mar 5, 2012 at 3:30 PM, Jann Horn wrote: >> >> Am Montag, den 05.03.2012, 12:20 -0800 schrieb Isaac Schlueter: >> > Gma

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 20:43 + schrieb Richard Marr: > Estimated cost of fake emails * Probability of someone bothering to fake my > emails > Effort required Fake emails aren't that hard, I think... although nowadays, you'll probably get a warning at gmail or so if the spoofed domain suppo

[nodejs] [ANN] specify, simple nodejs testing

2012-03-05 Thread Nuno Job
Hi guys, I know there's a bunch of testing frameworks out there. I absolutely didn't want to write one. But they annoyed me in a couple of things: - Side effects of having a huge code base, that actually make me spend time debugging the test frameworks. - DSLs, which I really wish weren

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 21:55 +0100 schrieb Jann Horn: > Am Montag, den 05.03.2012, 20:43 + schrieb Richard Marr: > > Estimated cost of fake emails * Probability of someone bothering to fake my > > emails > Effort required > > Fake emails aren't that hard, I think... although nowadays, you'

[nodejs] Re: [meta] GPG?

2012-03-05 Thread Ian Young
Gmail support :*( I switched to the web interface full-time when Thunderbird underwent a prolonged period of instability on my computer, and now I like it enough that I don't want to switch back. But even before FireGPG was discontinued, it struggled to stay compatible with Gmail. On Monday, M

[nodejs] 0.6.12 - symbol ev_default_loop_ptr: referenced symbol not found

2012-03-05 Thread Peer
Hi, in version 0.6.12 I get the following error even if I try to load a simple sample addon/module. symbol ev_default_loop_ptr: referenced symbol not foundError I use solaris as os in different versions. I figured out that the difference between a "working" environment and a faulty environment

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Ian Young
Unfortunately, I don't know of any project with much momentum at this point. FireGPG has been discontinued, and even when it was active it struggled to keep up with Gmail's frontend changes. If I'm wrong and there's a good project out there, someone please correct me. It seems like half this pr

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Mark Hahn
How many people here have suffered from fake emails? i don't know anyone. -- 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 po

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 13:10 -0800 schrieb Ian Young: > It seems like half this problem could be solved by browsers offering API > access to some simple GPG commands. If an extension/bookmarklet could call > to secure browser functions to perform signing etc, that would be safe, > convenient

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

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Mark Hahn
> having the one thread fail could prematurely cut off thousands of in-progress transactions? I certainly haven't written my app such that this could happen. Any bad coder can write code in any platform that can crash a server. Why are you singling out node? -- Job Board: http://jobs.nodejs.o

Re: [nodejs] [meta] GPG?

2012-03-05 Thread Jann Horn
Am Montag, den 05.03.2012, 13:13 -0800 schrieb Mark Hahn: > How many people here have suffered from fake emails? i don't know anyone. Hmh, you have a point. But, for example, I'm also paranoid enough to want to be able to encrypt mails to other devs, for example when I've found holes in their mod

Re: [nodejs] [ANN] Node.Philly 2012 Conference

2012-03-05 Thread Nuno Job
I'm helping Tim out organizing. A bunch of us will be there and would love to see some east coast noders. :) Charlie, Mikeal, Paolo, Daniel, Substack and Lloyd will be speaking :) Check the page out to find out who is going, hopefully meet you there! Nuno On Fri, Mar 2, 2012 at 5:18 PM, timsave

[nodejs] Re: Yet another SQL Server client

2012-03-05 Thread Neville Burnell
Thanks for the info guys! -- 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@googlegrou

Re: [nodejs] autodeploying code updates without killing running tasks

2012-03-05 Thread Ilya Dmitrichenko
On 5 March 2012 19:49, chris.percol wrote: > I look after a private cloud of around 30 windows and linux virtual > servers. > > We are using node to do some pretty cool stuff at the moment on these > servers e.g. run sql commands, file backups and other stuff. However, > I'm individually pulling c

[nodejs] What graph database to use with node ?

2012-03-05 Thread sam
Hello, I wanted to start a little project using a graph database to test what I can do with. I'm a kind of noob with node too, so I'm searching from experts ( that 's you ) what database to use and optionnaly the module that's come with. Thank you. -- Job Board: http://jobs.nodejs.org/ Posting

[nodejs] Connecting to an EPP server which requires client certificate

2012-03-05 Thread Martin Lundberg
I want to connect to a server which requires the clients to use client certificates. I've got this https://gist.github.com/1981698 but ass you can see I'm getting an error. How am I supposed to do this? I've got it working in PHP but would like to know how to do it in node.js. -- Job Board: ht

[nodejs] Connect to server which requires client certificate

2012-03-05 Thread Martin Lundberg
I want to connect to a server which requires the clients to use client certificates. I've got this https://gist.github.com/1981698 but ass you can see I'm getting an error. How am I supposed to do this? I've got it working in PHP but would like to know how to do it in node.js. -- Job Board: ht

Re: [nodejs] Connecting to an EPP server which requires client certificate

2012-03-05 Thread Ben Noordhuis
On Tue, Mar 6, 2012 at 00:21, Martin Lundberg wrote: > I want to connect to a server which requires the clients to use client > certificates. I've got this https://gist.github.com/1981698 but ass you can > see I'm getting an error. How am I supposed to do this? I've got it working > in PHP but wou

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Dick Hardt
On Mar 5, 2012, at 1:16 PM, Mark Hahn wrote: > > having the one thread fail could prematurely cut off thousands of > > in-progress transactions? > > I certainly haven't written my app such that this could happen. Any bad > coder can write code in any platform that can crash a server. Why a

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Mark Hahn
"Un-handled" exceptions are easy to handle. I have a try-catch on the call for each page. So individual pages are clobbered as on any other platform. How does apache handle an infinite loop? Won't it kill performance? A server with an infinite loop is screwed on any platform. In any case, I t

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Dick Hardt
On Mar 5, 2012, at 4:24 PM, Mark Hahn wrote: > "Un-handled" exceptions are easy to handle. I have a try-catch on the call > for each page. So individual pages are clobbered as on any other platform. That works if all the work is synchronous. Node really shines for async operations, which the

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Mark Hahn
I'm just trying to counter unnecessary FUD. > That works if all the work is synchronous. Node really shines for async operations, which the try-catch loop on the page does not catch. I have an exception handler at the root of the app that catches them all and I have one around the page call. It

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Mikeal Rogers
A comparison between Apache and node.js is entirely fair. Apache is a server that you configure, node.js is a platform to write a server (like apache) in. An infinite loop, or any processing heavy task for that matter, will block up Apache or node.js but in node.js it's your problem and not a de

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Mikeal Rogers
On Mar 5, 2012, at March 5, 20124:53 PM, Mark Hahn wrote: > I'm just trying to counter unnecessary FUD. > > > That works if all the work is synchronous. Node really shines for async > > operations, which the try-catch loop on the page does not catch. > > I have an exception handler at the roo

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Mark Hahn
> you must mean process.on('uncaughtException') Yes. Thx. I did also put a try/catch around the dispatch call for pages which I now realize is stupid. Harmless but stupid. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gui

Re: [nodejs] What kind of applications would you not trust on Node.js?

2012-03-05 Thread Dick Hardt
On Mar 5, 2012, at 4:53 PM, Mark Hahn wrote: > I'm just trying to counter unnecessary FUD. Agree on countering FUD. I've been building with Node for a year now and found it a great question. "None" might be the answer, but that must be backed with why or else the community comes across as zeal

[nodejs] nodejs how store a int variable ?

2012-03-05 Thread 赵有
javascript it don't support int and long type. so , how nodejs store a int or long variable ??? -- 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

Re: [nodejs] Connect to server which requires client certificate

2012-03-05 Thread Javier Viola
Hi Martin, Take a look of this nodejitsu [1] documentation of the tls module or the node.js [2] api docs. The option object has to be this way var options = { key: fs.readFileSync('server-key.pem'), cert: fs.readFileSync('server-cert.pem'), // This is necessary only if using

Re: [nodejs] nodejs how store a int variable ?

2012-03-05 Thread Mark Hahn
You can store up to 53 bits of integer in a normal javascript number. On Mon, Mar 5, 2012 at 5:50 PM, 赵有 wrote: > javascript it don't support int and long type. so , how nodejs store a int > or long variable ??? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.c

[nodejs] "sys" module is now called "util", also Segmentation fault

2012-03-05 Thread Jerome Covington
I am working with code from a few months back that requires express, http-agent and jsdom. I've run npm update but I am getting the "sys" module is now called "util" message when I run my app. Does anyone know if there are lingering issues with any of the packages I mentioned. I'm also getting a S

[nodejs] Asynchronous child creation in db

2012-03-05 Thread martinp
I have a requirement to create a new object in the DB, but the object is represented by 2 tables with a many to many relationship (the object itself can be described by many attributes). So, I have a create method for the object, and I would like the method to be able to return some JSON simila

Re: [nodejs] "sys" module is now called "util", also Segmentation fault

2012-03-05 Thread Mark Hahn
> "sys" module is now called "util" message Ah yes, the super-annoying message. Someone who knows the code should yank that thing. All it does is annoy us and not tell us where it's coming from so it's useless. On Mon, Mar 5, 2012 at 6:32 PM, Jerome Covington wrote: > I am working with code f

[nodejs] Re: What kind of applications would you not trust on Node.js?

2012-03-05 Thread Brandon Benvie
I would trust node with my balls. > > -- 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 nodej

[nodejs] EC2- non responding http requests

2012-03-05 Thread Arindam
I just installed my node.js app in a windows 2008 micro instance with security group quick-start-2 and with http port enabled. I opened the firewall in the instance and opened port 80, 443 for inbound and outbound both. In spite of that, my http requests are not able to reach out to the node.js ap

[nodejs] Re: EC2- non responding http requests

2012-03-05 Thread Arindam
Finally found the problem. I introduced log4js and integrated this with express, as,     app.use(log4js.connectLogger(logger, { level: log4js.levels.ERROR })); This created the problem. Somehow this was failing. It works only with DEBUG though. After commenting this, it started working. Strange !

Re: [nodejs] "sys" module is now called "util", also Segmentation fault

2012-03-05 Thread Nathan Rajlich
If you invoke node with NODE_DEBUG=sys then it will print out a stack trace instead of that message. Much more helpful :) $ NODE_DEBUG=sys node server.js On Mon, Mar 5, 2012 at 6:53 PM, Mark Hahn wrote: >>  "sys" module is now called "util" message > > Ah yes, the super-annoying message.  Some

Re: [nodejs] Re: Test driven development for graphics

2012-03-05 Thread Ryan Schmidt
On Feb 26, 2012, at 16:19, Ryan Schmidt wrote: > On Feb 26, 2012, at 15:17, Tauren Mills wrote: > >> The reason I mentioned Buster.JS is that it will help you to automate >> running your tests across multiple browsers. It sounded like your testing >> process was going to be manually intensive,

Re: [nodejs] Connect to server which requires client certificate

2012-03-05 Thread Martin Lundberg
Hi Pepo! I need a certificate from the server too? In PHP all I have is a client certificate and a passphrase. Also if I look at the docs it says "key" is the private key of the client and cert is certificate key for the client but in your example code you say server-key.pem for both? On Tuesd