[nodejs] linux binary

2012-11-19 Thread Angelo Chen
hi, i tried the linux binary file of node in centos 5.x 32 bits, it returns: ./node: /lib/libc.so.6: version `GLIBC_2.9' not found (required by ./node) ./node: /lib/libc.so.6: version `GLIBC_2.6' not found (required by ./node) ./node: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./no

Re: [nodejs] Re: find path of module require()ing

2012-11-19 Thread Jason Brumwell
Other then the obvious speed implications, there shouldn't be any other downsides to removing the cache? Although not the best case scenario, I believe its the only way to know the file that is requiring the module, as module.parent.filename will update to be the latest file. On Sunday, Novem

Re: [nodejs] Re: find path of module require()ing

2012-11-19 Thread Bradley Meck
If the module uses some form of internal storage (for caching, module level object registration, etc.) it would be duplicated and then you could see some interesting cache mismatch bugs. For example in the following module 2 registries would exist rather than the expected one if completely relo

[nodejs] Re: How to find out *if* there is a memory leak?

2012-11-19 Thread Felix E. Klee
Just found a promising article (didn't read it yet), just some days old: -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guideli

[nodejs] how to post the register form data to database

2012-11-19 Thread cherry
i've register form in html and i'm using ejs as the view engine for express and mongoskin . how can i post my register form data to database . can u help me plz. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You

Re: [nodejs] How to find out *if* there is a memory leak?

2012-11-19 Thread Ben Noordhuis
On Sun, Nov 18, 2012 at 11:21 AM, Felix E. Klee wrote: > How do I find out if (not where) there is a memory leak in an app? > > Background: I am using Socket.IO for client/server communication, and I > want to make sure that server side resources are properly cleaned up > when a connection is clos

Re: [nodejs] linux binary

2012-11-19 Thread Ben Noordhuis
On Mon, Nov 19, 2012 at 12:20 PM, Angelo Chen wrote: > hi, > i tried the linux binary file of node in centos 5.x 32 bits, it returns: > > ./node: /lib/libc.so.6: version `GLIBC_2.9' not found (required by ./node) > ./node: /lib/libc.so.6: version `GLIBC_2.6' not found (required by ./node) > ./node

Re: [nodejs] How to be sure in delivering data between server and client?

2012-11-19 Thread P. Douglas Reeder
I suggest using Fiddler or another web debugging proxy to capture correct and incorrect interactions, and write integration tests using that data. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this mess

[nodejs] [ANN] xrequire - eXtended Require: Folder requires and index.js toolkit.

2012-11-19 Thread chakrit
If you often find yourself implementing complex logic and/or string manipulation in your index.js file to load modules in your folder structure in a fancy way you might this well-tested module helpful. Check out the readme on GitHub for more info: https://github.com/chakrit/xrequire Also, insta

Re: [nodejs] how to post the register form data to database

2012-11-19 Thread Ryan Schmidt
On Nov 19, 2012, at 00:51, cherry wrote: > i've register form in html and i'm using ejs as the view engine for express > and mongoskin . how can i post my register form data to database . can u help > me plz. This seems like the kind of question that could probably be answered by reading the

[nodejs] Re: How to be sure in delivering data between server and client?

2012-11-19 Thread greelgorke
server code would be nice. Am Donnerstag, 15. November 2012 10:56:30 UTC+1 schrieb greeka: > > I have TCP server written in NodeJS and clients on flash. The > communications between clients and server builded ower my own protocol > (small commands - max 50 bytes per command). But some time (apro

[nodejs] Re: linux binary

2012-11-19 Thread Angelo Chen
will old glibc affect node apps? I am using a node compiled from source, but it does not include npm. On Nov 19, 11:46 pm, Ben Noordhuis wrote: > On Mon, Nov 19, 2012 at 12:20 PM, Angelo Chen wrote: > > hi, > > i tried the linux binary file of node in centos 5.x 32 bits, it returns: > > > ./no

Re: [nodejs] Re: linux binary

2012-11-19 Thread Ben Noordhuis
On Mon, Nov 19, 2012 at 11:20 PM, Angelo Chen wrote: > will old glibc affect node apps? No, not really. > I am using a node compiled from source, but it does not include npm. node.js v0.8 installs npm by default. Check the output of `make install`. -- Job Board: http://jobs.nodejs.org/ Posti

Re: [nodejs] How to find out *if* there is a memory leak?

2012-11-19 Thread Felix E. Klee
On Mon, Nov 19, 2012 at 4:41 PM, Ben Noordhuis wrote: > A quick and fairly reliable approach is to start node with --expose-gc > and call gc() every few seconds I like this approach, simple and light weight! Only probably it is not enough to be on the safe side: At least on WinXP, I see quite so

Re: [nodejs] Re: find path of module require()ing

2012-11-19 Thread Jason Brumwell
Definitely you would need to develop your module with the understanding that it will be loaded more then once, but it should not effect 3rd party libraries as they would still be cached correct? Its the only approach that I can see to solve the users scenario, another possible solution would be

Re: [nodejs] server.close() throws exception when processing an http request

2012-11-19 Thread Érick Lavoie
Thanks to Ben and shigeki for the quick answer, I was indeed testing it with chrome and happened to stumble upon the favicon request bug. On Monday, November 19, 2012 12:59:18 AM UTC-5, shigeki wrote: > > Updating the server code while running is not a simple and easy work. > You'd better to u

[nodejs] Does node require a lot of RAM

2012-11-19 Thread Ket
Hello, I've encountered a strange experience. When I tried to stream media, I mean huge media, through the network using node.js, the client side receives an uneven stream so it's not quite smooth viewing. Base on my research (Googling), some people say that node.js consumes a lot of memory. I

[nodejs] Re: Does node require a lot of RAM

2012-11-19 Thread Eric S
On Monday, November 19, 2012 7:52:43 PM UTC-8, Ket wrote: > > Base on my research (Googling), some people say that node.js consumes a > lot of memory. Is this true? It can be. In my limited experience, that has a LOT more to do with how you code your application than node itself, however.

[nodejs] Re: Does node require a lot of RAM

2012-11-19 Thread Ket
Thanks, It's live streaming. Let's say cable TV on the internet. So you can imagine. It's huge. And thanks for mentioning mobile devices. I forgot about that. In the future, It would support mobile devices too. It's maybe multiple stream because I allow my users to share what they view too.

Re: [nodejs] server.close() throws exception when processing an http request

2012-11-19 Thread Shigeki Ohtsu
If you want to close a http server with only one request from a brower , send 'Connection: close' header to client for ending the connection. To be more safe, setting maxConnections = 1 is best to avoid concurrent connections as below. I noticed that doing 'req.connec