[nodejs] Re: Scaling node.js project

2014-02-18 Thread Nitin Gupta
My intent was same. I load test my app and increases the load successively. when it reaches to 1 or above, a latency of more than 1sec is introduced (as CPU shoot up) which is not acceptable. so at this point my app is behaving like accepting 1 req/s. On Tuesday, February 18, 2014 3:57:

Re: [nodejs] npm error

2014-02-18 Thread Joshua Anderson
Hello, That's normal output for npm. Is there a section of the output with a lot of "npm ERR!!!" that you didn't post? -Joshua Anderson On Feb 18, 2014 9:56 PM, "gyanesh gouraw" wrote: > we are getting this error whenever i write npm help install,can anybody > answer?? > > > F:\node.js_test>npm

[nodejs] npm error

2014-02-18 Thread gyanesh gouraw
we are getting this error whenever i write npm help install,can anybody answer?? F:\node.js_test>npm update npm http GET https://registry.npmjs.org/express/latest npm http GET https://registry.npmjs.org/jade/latest npm http GET https://registry.npmjs.org/socket.io/latest npm http GET https://re

[nodejs] Node v0.10.26 (Stable)

2014-02-18 Thread Timothy J Fontaine
2014.02.18, Version 0.10.26 (Stable) * uv: Upgrade to v0.10.25 (Timothy J Fontaine) * npm: upgrade to 1.4.3 (isaacs) * v8: support compiling with VS2013 (Fedor Indutny) * cares: backport TXT parsing fix (Fedor Indutny) * crypto: throw on SignFinal failure (Fedor Indutny) * crypto: update root

Re: [nodejs] Re: Mongoose throw error while saving a lot of rows

2014-02-18 Thread reda khyatti
Yes I do have a callback Le 18 févr. 2014 18:24, "Alejandro de Brito Fontes" a écrit : > You have a callback in the save method? > > On Tuesday, February 18, 2014 11:40:46 AM UTC-3, reda khyatti wrote: >> >> Hi all, >> >> I am a newbie in Node, and I am trying to rewrite a program that syncs >>

[nodejs] Re: Node Hosting in Europe

2014-02-18 Thread Peter van de Put
Qupra is a dutch hosting partner with top notch VPS that supports nodeJS, mongo etc. You will have full root access with SSH and even VNC not the cheapest but sure the best I know owner is fluent in English ad.vande...@qupra.nl On Friday, February 14, 2014 10:24:42 AM UTC+1, Richard Marr wrote

[nodejs] Re: nodejs cluster issue with socket.io

2014-02-18 Thread i
I am not common to socket.io but I could recommend node-salve as an alternative. Just a bit advertisement ;) Am Dienstag, 11. Februar 2014 19:33:02 UTC+1 schrieb Abramovick: > > My app was working fine (prior to using nodejs cluster) but after > i

[nodejs] Re: Mongoose throw error while saving a lot of rows

2014-02-18 Thread Alejandro de Brito Fontes
You have a callback in the save method? On Tuesday, February 18, 2014 11:40:46 AM UTC-3, reda khyatti wrote: > > Hi all, > > I am a newbie in Node, and I am trying to rewrite a program that syncs > databases in a non blocking env (Node). So the first task is to make a > request to a SQL server,

[nodejs] Mongoose throw error while saving a lot of rows

2014-02-18 Thread reda khyatti
Hi all, I am a newbie in Node, and I am trying to rewrite a program that syncs databases in a non blocking env (Node). So the first task is to make a request to a SQL server, which I did successfully using 'mssql'. This request retruns more than 30k rows that I would like to persist to a Mongo

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-18 Thread Babu Subramanian
Thanks Alex! Babu Subramanian +91 98452 02337 On Tue, Feb 18, 2014 at 4:52 PM, Alex Kocharin wrote: > > Exactly. As a rule of thumb, I try to allow users to access all data > without javascript, but not edit it. It's because complex editors will have > to be written in javascript, and making f

Re: [nodejs] Why is node-gyp written in python?

2014-02-18 Thread Angel Java Lopez
Yes, he wrote the post http://www.codinghorror.com/blog/2007/07/the-principle-of-least-power.html http://www.codinghorror.com/blog/2009/08/all-programming-is-web-programming.html On Tue, Feb 18, 2014 at 9:48 AM, Kevin Ingwersen wrote: > > Am Di. Feb. 18 2014 12:15:49 schrieb Alex Kocharin: > > >

Re: [nodejs] Why is node-gyp written in python?

2014-02-18 Thread Kevin Ingwersen
Am Di. Feb. 18 2014 12:15:49 schrieb Alex Kocharin: > 18.02.2014, 13:24, "Kevin Ingwersen" : >> Am Di. Feb. 18 2014 00:36:13 schrieb Alex Kocharin: >> >>> 16.02.2014, 14:12, "Gagle" : I mean, it's a very huge dependency. Node.js can be installed in any system with low resources. If

[nodejs] Re: Scaling node.js project

2014-02-18 Thread Nitin Gupta
Server configuration: OS - Linux Memory - 1.5 GB CPU - Intel(R) Xeon(R) CPU E5-2630L 0 @ 2.00GHz On Tuesday, February 18, 2014 3:57:20 PM UTC+5:30, Nitin Gupta wrote: > > Hi, This is regarding scaling node.js application. I have heard a lot of > buzz around handling millions of connection by sing

Re: [nodejs] Scaling node.js project

2014-02-18 Thread Fedor Indutny
Hi! Handling millions of simultaneous connections is not the same thing as handling millions requests per second. On Tue, Feb 18, 2014 at 2:27 PM, Nitin Gupta wrote: > Hi, This is regarding scaling node.js application. I have heard a lot of > buzz around handling millions of connection by single

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-18 Thread Alex Kocharin
 Exactly. As a rule of thumb, I try to allow users to access all data without _javascript_, but not edit it. It's because complex editors will have to be written in _javascript_, and making fallbacks for all of them is too hard, since non-js clients are unlikely to edit something anyway. So if you

Re: [nodejs] Why is node-gyp written in python?

2014-02-18 Thread Alex Kocharin
18.02.2014, 13:24, "Kevin Ingwersen" : > Am Di. Feb. 18 2014 00:36:13 schrieb Alex Kocharin: > >>  16.02.2014, 14:12, "Gagle" : >>>  I mean, it's a very huge dependency. Node.js can be installed in any >>> system with low resources. If python were a 5MB dependency, it's ok, but >>> python also d

[nodejs] Re: ARM memory footprint

2014-02-18 Thread Michael Gärtner
Hi.I have a similar project. I have Cortex ARM9 embeded linux and i want to try node.js on it. I am new in all this stuff. Could someone point out some doucmentation to start with? Installation guides etc. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/

[nodejs] Scaling node.js project

2014-02-18 Thread Nitin Gupta
Hi, This is regarding scaling node.js application. I have heard a lot of buzz around handling millions of connection by single node.js server. To check that i wrote a http server which was returning nothing but 200 ok and CPU started blowing up with 1 concurrent requests. CODE: my_http.crea

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-18 Thread Florent JABY
Ember has a better code structure and is more suited to "ambitious" projects. Indeed Ember is heavy, but this cost comes with the benefit of having pretty much anything you need to run your application without worrying too much. The only downsides to Ember to this day are : - Ember-Data is misl

Re: [nodejs] Re: How MEAN have you got :-)

2014-02-18 Thread Ziobudda
Hi Floby, why do you consider Ember better (“promising solution") than AngularJS ?  Thanks. M. --  Michel 'ZioBudda' Morelli                       ziobu...@gmail.com Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Mobile: +39-3939890025 --  Fax: +39-0291390660

[nodejs] Re: How MEAN have you got :-)

2014-02-18 Thread Floby
I sometimes use a CEEN Stack (Couch, Express, Ember.js, Node) But most the time, just Express and Ember. Mongo isn't a particularily good database choice over anything else (nor is it particularily bad) Ember, is in my opinion, a far more promising solution than Angular (having used both for my j

Re: [nodejs] Why is node-gyp written in python?

2014-02-18 Thread Kevin Ingwersen
Am Di. Feb. 18 2014 00:36:13 schrieb Alex Kocharin: > 16.02.2014, 14:12, "Gagle" : >> I mean, it's a very huge dependency. Node.js can be installed in any system >> with low resources. If python were a 5MB dependency, it's ok, but python >> also depends on sqlite. Don't you think that node-gyp co

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Fedor Indutny
Well, you should figure out how to make OS connect to it when the `https://` protocol is used, otherwise it won't work. On Tue, Feb 18, 2014 at 12:49 PM, Alexandre Kirszenberg wrote: > I have added public.pem to the keychain, but nothing changed. > > Sockets send a CONNECT header, but the server

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Alexandre Kirszenberg
I have added public.pem to the keychain, but nothing changed. Sockets send a CONNECT header, but the server doesn't pick it up and doesn't emit a `connect` event. On Tuesday, February 18, 2014 9:36:02 AM UTC+1, Fedor Indutny wrote: > > Perhaps you should add your server's certificate to the cert

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Fedor Indutny
Perhaps you should add your server's certificate to the certificate chain to make OS trust it. On Tue, Feb 18, 2014 at 12:32 PM, Alexandre Kirszenberg wrote: > Here are my settings: https://cloudup.com/cPDN4MSx7c9. > When setting https://localhost instead of localhost in the address field, > the

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Alexandre Kirszenberg
Here are my settings: https://cloudup.com/cPDN4MSx7c9. When setting https://localhost instead of localhost in the address field, the server doesn't receive any connections at all and I get "unable to connect to proxy server" in Chrome. On Tuesday, February 18, 2014 9:18:30 AM UTC+1, Fedor Indutn

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Fedor Indutny
How are you setting it, as `https://localhost:.../` or just `localhost:...` (if the latter one - please try with `https://`)? On Tue, Feb 18, 2014 at 12:16 PM, Alexandre Kirszenberg wrote: > I'm setting the HTTPS server as a HTTPS proxy in OS X settings, so I'm not > the one making the connection

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Alexandre Kirszenberg
I'm setting the HTTPS server as a HTTPS proxy in OS X settings, so I'm not the one making the connections. How can I make a HTTPS proxy in NodeJS? On Tuesday, February 18, 2014 9:02:08 AM UTC+1, Fedor Indutny wrote: > > Then you are connecting with HTTP client to HTTPS server. > > On Tue, Feb 1

Re: [nodejs] Re: HTTPS proxy with a self-signed certificate

2014-02-18 Thread Fedor Indutny
Then you are connecting with HTTP client to HTTPS server. On Tue, Feb 18, 2014 at 11:16 AM, Alexandre Kirszenberg wrote: > No, `secureConnection` is never fired. > > > On Monday, February 17, 2014 9:58:02 PM UTC+1, Fedor Indutny wrote: >> >> Wait, are you connecting with a plain text socket to it