Re: [nodejs] A bit confused by heap and memory usage

2012-10-18 Thread Ben Noordhuis
On Thu, Oct 18, 2012 at 9:53 PM, Nabeel S. wrote: > Hi all, > > I've been working on a C++ extension for node, that takes an object, and > then transforms it into a protocol buffer message, and then returns a Buffer > object. It works great, and it's fast. There are some strange patterns in > the

Re: [nodejs] A bit confused by heap and memory usage

2012-10-18 Thread Fedor Indutny
Well, first of all, 40mb heap is not a leak, but 1gb heap probably is. Also, can you please run valgrind --leak-check=full ... ? Cheers, Fedor. On Fri, Oct 19, 2012 at 3:53 AM, Nabeel S. wrote: > Hi all, > > I've been working on a C++ extension for node, that takes an object, and > then tran

[nodejs] A bit confused by heap and memory usage

2012-10-18 Thread Nabeel S.
Hi all, I've been working on a C++ extension for node, that takes an object, and then transforms it into a protocol buffer message, and then returns a Buffer object. It works great, and it's fast. There are some strange patterns in the heap total/heap used that I'm trying to understand, and fi

Re: [nodejs] Re: server accepting JSON in POST - how to secure/validate?

2012-10-18 Thread L3monPi3
Hi HG, I have a similar project in what I'm working. Can you tell me how do you finish or how you did the validations ? Thanks On Wednesday, February 29, 2012 7:18:27 AM UTC-3, Jason.桂林(Gui Lin) wrote: > > I am the author of mongoskin, and I wrote a validation module > https://github.com/guileen

[nodejs] Re: Forever with ssh

2012-10-18 Thread Jacob Groundwater
+1 for upstart - I think using the platform native tools is good form It can also be complimented with [start-stop-daemon](http://man.he.net/man8/start-stop-daemon) when required. On Thursday, October 18, 2012 6:39:24 AM UTC-7, Clay Simmons wrote: > > I like using upstart on Ubuntu to keep my no

[nodejs] Re: Why socket buffering is on by default?

2012-10-18 Thread Vitaly Puzrin
Simon, that's default function param, not default buffering state. "By default TCP connections use the Nagle algorithm, they buffer data before sending it off." - from the link above. пятница, 19 октября 2012 г., 9:00:22 UTC+4 пользователь Simon написал: > > It looks like noDelay is true by defa

[nodejs] Re: Why socket buffering is on by default?

2012-10-18 Thread Simon
It looks like noDelay is true by default, which means buffering is off. On Thursday, October 18, 2012 8:44:32 PM UTC+7, Vitaly Puzrin wrote: > > http://nodejs.org/api/net.html#net_socket_setnodelay_nodelay > > Can anyone explain use case, when default buffering is really useful? > IMHO, it just m

[nodejs] Re: diffie-hellman on with more than 2 parties involved..

2012-10-18 Thread dhruvbird
In theory, it could possibly work with k participants (the same key). However, the easiest thing to do to get it to work with existing libraries might be to compute k choose 2 keys; 1 between every pair of participants. On Thursday, October 18, 2012 7:45:31 AM UTC-4, Antoine wrote: > Hi, > > I

[nodejs] kanso hosting?

2012-10-18 Thread Mark Hahn
I want to develop a couchdb app in kanso. Kanso requires nodejs to run. This is an open-source project and I'd like to host the app as a demo site with free hosting. I'll provide the source on github. I have a couchdb running in iris but it doesn't host node. I tried running kanso on windows

[nodejs] Cascadia JS

2012-10-18 Thread Glenn Block
Hey guys, for those of you in the Pacific Northwest / or want to learn node heavily caffeinated, we're hosting Cascadia.JS in November. We've got a great line up of folks and awesome venue. Come join! Seattle is playing host to the inaugural CascadiaJS , a JSConf

Re: [nodejs] diffie-hellman on with more than 2 parties involved..

2012-10-18 Thread Ben Noordhuis
On Thu, Oct 18, 2012 at 1:44 PM, Antoine van Wel wrote: > Is it possible with the current crypto impl to compute a > Diffie-Hellman shared key among 3 participants? I've admittedly never tried it myself but I don't see why that couldn't work, the computeSecret() method takes an arbitrary key. It'

[nodejs] Re: Installing modules in a flat directory

2012-10-18 Thread Bradley Meck
1. npm dedup can help. 2. if that is not enough: all modules can reference parent module's node_modules, so if you recursively move all dirs into the root node_modules it should work. a/node_modules/b/node_modules/c -> a/node_modules/c On Wednesday, October 17, 2012 1:07:54 PM UTC-5, Justin Bec

Re: [nodejs] Forever with ssh

2012-10-18 Thread Axel Kittenberger
I use it for development and testing-semi-production. You are very right there are far superior tools. If you take Williams question literally "I started something manually through ssh, but when I closed the connection it died". "screen" is the answer to exactly that problem. Maybe its good to tell

[nodejs] Re: Forever with ssh

2012-10-18 Thread Clay Simmons
I like using upstart on Ubuntu to keep my node process running. Not sure if this is considered bad form, but I've been using it in production for about 8 months without any issues. https://gist.github.com/3911822 If you're using screen, not to keep your node processes running, but just for doi

[nodejs] Re: https, GoDaddy SSL cert, node.js under Microsoft Azure

2012-10-18 Thread David
Hi, Can you point me at the Godaddy procedure you used to convert my p7b and crt files to a pfx. Cheers, David On Thursday, August 2, 2012 4:27:36 PM UTC+1, thstart wrote: > Install GoDaddy SSL certificate with Node.js > > I want to use https for my web app which is running on Microsof

[nodejs] Why socket buffering is on by default?

2012-10-18 Thread Vitaly Puzrin
http://nodejs.org/api/net.html#net_socket_setnodelay_nodelay Can anyone explain use case, when default buffering is really useful? IMHO, it just make to place additional code every time, to disable it: 1. If one send data with single block (render template, and return all page), then Nagle will

Re: [nodejs] Re: Broken string data chunks in http ?

2012-10-18 Thread Vitaly Puzrin
https://gist.github.com/3910923 Seems to work. Sorry for noise. четверг, 18 октября 2012 г., 9:34:23 UTC+4 пользователь Vitaly Puzrin написал: > > Yes, i can't quickly reproduce bug in my current enviroment. That's a bit > strange. > Need some time to ask people, who confirmed problem, and comf

Re: [nodejs] Re: Broken string data chunks in http ?

2012-10-18 Thread Isaac Schlueter
Here's a proof that it works as intended: https://gist.github.com/3911308 On Thu, Oct 18, 2012 at 11:04 AM, Ben Noordhuis wrote: > On Thu, Oct 18, 2012 at 7:28 AM, Nathan Rajlich > wrote: >> Seriously I'm lost. Can somebody show me some sample code to >> demonstrate the problem? >> >> Here's

[nodejs] diffie-hellman on with more than 2 parties involved..

2012-10-18 Thread Antoine van Wel
Hi, Is it possible with the current crypto impl to compute a Diffie-Hellman shared key among 3 participants? Antoine -- 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 subscrib

Re: [nodejs] Re: How to write stream chunk by chunk with callbacks

2012-10-18 Thread Isaac Schlueter
> On Wednesday, October 17, 2012 9:09:46 AM UTC-7, Jeff Barczewski wrote: >> >> @isaacs I assume that your https://github.com/isaacs/readable-stream will >> be the module to watch as this evolves. >> Marco is correct. Also: You can also watch the progress on the "streams2" branch in git. >> Wil

Re: [nodejs] Re: Broken string data chunks in http ?

2012-10-18 Thread Ben Noordhuis
On Thu, Oct 18, 2012 at 7:28 AM, Nathan Rajlich wrote: > Seriously I'm lost. Can somebody show me some sample code to > demonstrate the problem? > > Here's the issue on the tracker btw: > https://github.com/joyent/node/issues/4160 The bug is in the documentation, there's a number of bad examples

Re: [nodejs] Webapplication/-site structure with express.js and restify.js

2012-10-18 Thread greelgorke
+1 for packaging out the shared code. this is how node handle code re-usage at all Am Donnerstag, 18. Oktober 2012 03:52:11 UTC+2 schrieb Daniel R.: > > Something to quickly check, if you are not getting any reaction from > mongoose in the admin site using the same models, have you ensured > th

[nodejs] Re: Installing modules in a flat directory

2012-10-18 Thread greelgorke
you should better ask here https://groups.google.com/forum/?fromgroups=#!forum/npm- Am Mittwoch, 17. Oktober 2012 20:07:54 UTC+2 schrieb Justin Beckwith: > > Greetings folks, > I'm trying to use a module on Windows that has many dependencies. Many of > these dependencies have dependencies and

[nodejs] Re: Seeing stability issues with nodejs 0.8.x on Linux

2012-10-18 Thread Hugo
Hi Zane My problems go away immediately after I swap out node to v8.x for v6.18. If you have the luxury to swap out node.js versions in prod it would be interesting for you to try 6.18...if you server runs ok then your application code isn't the problem, and we likely are experiencing the same