[nodejs] Re: How do you release memory and control usage

2013-01-10 Thread Ket
Thanks for suggestion. My machine have 2GB of RAM. The app uses it all up and stopped and then released the RAM. It starts at 0 gain. Once the app is running again, my RAM is used up again and again in this circle. On Friday, January 11, 2013 2:05:04 PM UTC+7, Brian Link wrote: > > Also, AFAIK

[nodejs] Re: multiplayer game: scaling lots of gamerooms

2013-01-10 Thread Brian Link
Not exactly the same scenario as you but we have a chat-based app that also communicates 'mood' stats every 5 seconds as well as other administrative messages. We had to build it robust enough to handle 3-5k users chatting at a pretty high frequency so we definitely needed multiple physical ma

[nodejs] Re: How do you release memory and control usage

2013-01-10 Thread Brian Link
Also, AFAIK V8 (by default) will only eat up 1 GB of RAM, but its certainly possible your machine does not even have 1 GB. On Thursday, January 10, 2013 11:04:17 PM UTC-8, Brian Link wrote: > > Without knowing more details about your app, all I can say is you have a > memory leak somewhere. V8

[nodejs] Re: How do you release memory and control usage

2013-01-10 Thread Brian Link
Without knowing more details about your app, all I can say is you have a memory leak somewhere. V8 will garbage-collect unused memory. You'll want to survey your app for objects that grow without bounds and figure out if/how/why they should be growing like that. On Thursday, January 10, 2013 6

[nodejs] Re: Is it wise to host nodejs apps on third party machines with source code? Can't we compile into machine code before hosting?

2013-01-10 Thread Gregg Caines
You shouldn't look to compilation to solve this problem, because compilation is not encryption. Even if it was compiled C, anyone who can open a hexeditor can see your username and password in there. I bet you could even see it from notepad. An encryption scheme won't be bulletproof either, b

Re: [nodejs] How to know which linux distribution that node is running on?

2013-01-10 Thread Roger WANG
kuno writes: > I want to know which linux distribution that my node app is running. > > I saw there are some functions in os module that can tell something about > that. For instance, you probably can guest the distribution based on the > return value of os.release(); > > 'x.x.x-xx-generic' ->

Re: [nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Mark Hahn
> I don't like having my threads hijacked You must not have been following this forum for very long. Every month or two someone posts something about an async library and then a flame war erupts. Some threads have gone into hundreds of posts. Someone always suggests to ban these threads or star

[nodejs] How to know which linux distribution that node is running on?

2013-01-10 Thread kuno
I want to know which linux distribution that my node app is running. I saw there are some functions in os module that can tell something about that. For instance, you probably can guest the distribution based on the return value of os.release(); 'x.x.x-xx-generic' -> ubuntu 'x.x.x-xx.x.x.EL.wh

[nodejs] Any Node Hosting Provider supports NPM v1.2.0

2013-01-10 Thread Arunoda Susiripala
Hi, We want an nodejs hosting provider with latest NPM v1.2.0 or node-gyp 0.8.x installed by default. Any suggestions? Cheers. -- Arunoda Susiripala @arunoda https://github.com/arunoda http://www.linkedin.com/in/arunoda -- Job Board: http

[nodejs] How do you release memory and control usage

2013-01-10 Thread Ket
Hi, I've an experience that my app eat up my web server memory and it stop working. How do you release memory when the app is not in use and how do you manage memory allotment so that node.js would not use up all the memory again and again. Thank you. -- Job Board: http://jobs.nodejs.org/ P

[nodejs] Re: multiplayer game: scaling lots of gamerooms

2013-01-10 Thread Charlie Edward
Yeah, you are right, if you want to finish your thesis topic and learn something, starting from simple is a wise choice. You may consider pomelo when your project scale up. Hoping the pomelo example and tutorial can still inspire you. On Friday, January 11, 2013 12:51:15 AM UTC+8, DerDree wro

[nodejs] [ANN] middler - an embeddable middleware runner

2013-01-10 Thread carlos8f
Hi, I'd like to announce the availability of middler, a project I started last summer. https://github.com/carlos8f/node-middler Basically, you might think of it as a "mini express" which allows you to easily attach a middleware stack to an http server, with a chainable routing interface and p

[nodejs] Subapp prefixes in Express

2013-01-10 Thread Stuart P. Bentley
Is there any better way for an app to discover the route it's under than the following snippet? req.originalUrl.slice(0,-req.url.length) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

[nodejs] Re: URGENT Faye security releases 0.8.8, 0.7.2, 0.6.8

2013-01-10 Thread James Coglan
On 10 January 2013 21:46, James Coglan wrote: > If you are running Faye in production, YOU MUST UPGRADE to either 0.8.8, > 0.7.2 or 0.6.8 to fix this problem. Please contact the Faye mailing list at > faye-us...@googlegroups.com if you have questions. > I should also add, if you maintain a Faye-

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Tatumizer
Time for me to move on, too If someone is interested in contributing or just exchange ideas, please open an issue at https://github.com/tatumizer/circuit or send email to me directly to tatumizer at gmail Thanks everybody for lively discussion. Alex -- Job Board: http://jobs.nodejs.org/ Pos

[nodejs] URGENT Faye security releases 0.8.8, 0.7.2, 0.6.8

2013-01-10 Thread James Coglan
Apologies for cross-posting to the Faye, Ruby and Node lists, but I need to get the word out. This afternoon I discovered a vulnerability in the Faye pub/sub messaging server that allows an attacker to invoke arbitrary methods from the Server object, and any methods it inherits from Object. If yo

Re: [nodejs] [ANN] catcher - tiny, flow-less

2013-01-10 Thread Tim Smart
I usually have have something like this at the top of my callbacks. function mycallback (err, data) { if (err) return onerror(err) dosomestuffwith(data) } `onerror` is usually a callback passed by express, or something I write in a utilities file / at the top of the file. Ti

Re: [nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Eldar
I am sorry, I true didn't want to say "Oh, you lib is crap, I don't respect" and don't have that in mind. But you requested feedback and were pointed to other libs with similar idea. The best thing is to grap some useful ideas from them if there are such. BTW, why do you need feedback? The best

Re: [nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Tom
I don't like having my threads hijacked. Use mine because it's better? Oh you are where I was years ago? Too bad this isn't a forum, because I'd request a thread lock. I'll just continue with my project, and leave the 'real' work to the 'big boys'. I'm sure this doesn't leave a great impression

[nodejs] Re: Tedious - Problem in sending response

2013-01-10 Thread Mike Pilsbury
Boomi, I really sorry that I didn't answer this question when you posted it in the tedious group. I simply haven't had any proper spare time the last few days. I'm pleased that you got a good answer; better than one I might have provided. Mike On Wednesday, 9 January 2013 07:37:13 UTC, Bhoom

Re: [nodejs] [ANN] catcher - tiny, flow-less

2013-01-10 Thread mgutz
I wouldn't recommend that approach. Wrapping every function and using a try-catch is an unnecessary performance hit. For try-catch, a top level uncaught exception handler lets you know where to fix code. I rarely use try catch for the simple reason that it provides little value when doing async

Re: [nodejs] http request hangs

2013-01-10 Thread Murvin Lai
In linux, you may also need to increase the openFile number. Not sure for windows. On Sun, Jan 6, 2013 at 6:01 PM, Aaron Seet wrote: > In monitoring the socket server on my local workstation, i notice that > despite the logging always showing only 1 socket in use, netstat reveals it > quickly

Re: [nodejs] Help creating node js https server

2013-01-10 Thread Murvin Lai
the code looks right to me. (i asked that question a while ago in stackoverflow http://stackoverflow.com/questions/11804202/how-to-setup-a-ssl-cert-in-express-js-server-now ) Hmm or you can try fs.readFileSync("") without toString() On Tue, Jan 8, 2013 at 4:11 AM, vaibhav mande wrote: >

[nodejs] NodeConf 2013

2013-01-10 Thread Mikeal Rogers
Hey Everybody, It's about that time again. NodeConf 2013 details are now up and the first batch of Early Bird tickets will go on sale Monday. All the details are available at http://www.nodeconf.com/ If you're interested in sponsoring just send me an email and I can get you all the sponsor inf

[nodejs] Re: Redis PubSub + NodeJS

2013-01-10 Thread Ben Taber
Redis SUBSCRIBE will listen to all messages on a channel. You need to publish on a separate Redis connection than you subscribe on. see: https://github.com/mranney/node_redis#publish--subscribe and: http://redis.io/commands/subscribe On Thursday, January 10, 2013 11:08:08 AM UTC-7, Erick Eden

[nodejs] Redis PubSub + NodeJS

2013-01-10 Thread Erick Eden
Hello guys How can I get all data from a channel with node_redis ? I publish menssage in some channel and want retrieve all data from this channel... I'm using node_redis module... thx -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List

[nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Eldar
nope, that's wrong On Thursday, January 10, 2013 9:28:40 PM UTC+4, Tatumizer wrote: > > @eldar: sure, any honest person prefers his own lib :) > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this messag

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Tatumizer
@nin- jin: Sorry, probably I was too rude to you. Maybe your implementation will appeal to a lot of people. My advice then: open your own thread in this group, dedicated to your library. Explain all underlying ideas. How it's implemented - EVERY SMALL DETAIL. Discuss with others. But I opened t

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Tatumizer
@nin jin: You have to post it on stackoverflow, they have much greater audience. If you don't like java, but like synchronous programming, there's number of options available: python, ruby, C#, go, etc. (learn go - you will like it!) For javascript, there's phantomjs and other options. -- Jo

[nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Tatumizer
@eldar: sure, any honest person prefers his own lib :) Syntactic noise. Boilerplate. Nothing javascript-ish about tons of boilerplate. Parallel execution? Loops? Stream processing? Work until you reach syntax so concise that async program looks as natural as sync equivalent. And cover the same f

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread 犀利な天使
I like js and i like fibers - all of them exists in node.js. I was using java - this is a monster. > Unfamiliarity for other Javascript developers Fibers, as sync, as async, as circuit, as many tons of other wheels, - library that needs to learn to use. But fibers really reduce complexity in clien

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Tatumizer
>> too much work... Why too much? It's 2-3 lines of code. You probably underestimate the importance of concise syntax. Program should look "elegant" to appeal to people. Boilerplate kills libraries and languages. The more frequently some feature is used, the more important it is to have succinc

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Angel Java Lopez
Ummm... too much work, IMO. I still prefer declare the variables by names as string https://github.com/ajlopez/SimplePipes/blob/master/test/flow.js On Thu, Jan 10, 2013 at 2:01 PM, Tatumizer wrote: > I'm trying to eliminate remaining boilerplate in circuit callback syntax. I > don't really lik

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Tatumizer
I'm trying to eliminate remaining boilerplate in circuit callback syntax. I don't really like expression this.setter.sum1. Tried to use "out" instead of "setter" (this.out.sum1) - shorter, but not necessarily better. Now I have another idea which may look stupid, but any idea is either old or

[nodejs] Re: Dependency based asynchronous flow

2013-01-10 Thread Eldar
Wow, how many similar libs appeared simultaneously. But, hey guys to be honest, make-flow is the most javascript-ish and the only practical out there :) On Thursday, January 10, 2013 1:13:14 AM UTC+4, Tom Wieland wrote: > > Hi everyone, > > I've created a

[nodejs] Re: multiplayer game: scaling lots of gamerooms

2013-01-10 Thread DerDree
Thanks for your suggestions. Sure I will give the framework a try but Im quite forward with my game so I dont want to start at the beginning again, so I need to figure out how to combine it with my actual version. Also like I said it is possible that I want to make this project to my thesis topi

Re: [nodejs] Dependency based asynchronous flow

2013-01-10 Thread Tatumizer
@Mark: >there is no such thing as a new idea. Whenever you investigate patents the harder you look the more you can go back in time. Absolutely. And it's really weird. Maybe we all share some universal consciousness, or something :) Sometimes though people manage to combine 2 old ideas to get

Re: [nodejs] Dependency based asynchronous flow

2013-01-10 Thread Christian Tellnes
2013/1/10 Alex Tatumizer > it suffers from the same disease as my old version of mesh.js. > Boilerplate, syntactic noise, no forest for the trees. > That's what I was told about my mesh.js. I looked at it again - and saw it > was true. Thanks Alex for reviewing. I can not see how I can change i

Re: [nodejs] [ANN] catcher - tiny, flow-less

2013-01-10 Thread Daniel Rinehart
Looks a lot like an underscore mixin I use: http://life.neophi.com/danielr/2012/04/underscore_mixin_for_error_han.html In general though domains handle this better. -- Daniel R. [http://danielr.neophi.com/] On Thu, Jan 10, 2013 at 5:26 AM, Stuart P. Bentley wrote: > Hey guys, new(ish) to Nod

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread Alex Tatumizer
@nin jin; everything is ideology at some level. When you say "practice" - the notion is full of ideology. My point is that if you prefer "practice" in a very narrow sense, the same program in your example can be rewritten in 100 of other languages in a much simpler form. Why limit yourself to nodej

[nodejs] Re: Is it wise to host nodejs apps on third party machines with source code? Can't we compile into machine code before hosting?

2013-01-10 Thread Geerten van Meel
Just out of curiousity, would it be a possibility to use an encrypted config.json file using the crypto.Cipher tools and decrypting it during application startup whereas you provide the decryption key i.e. as a startup parameter or in an stdio prompt? Geerten On Wednesday, January 9, 2013 11:3

[nodejs] Re: Node v0.8.17 (Stable)

2013-01-10 Thread Ivan Yan
> > 2012.01.09, Version 0.8.17 (Stable) > I think it should be 2013.01.09 On Thursday, January 10, 2013 9:20:12 AM UTC+8, Isaac Schlueter wrote: > > This release addresses a potential security vulnerability. > > If you do not use TypedArrays, then you're fine (but should still > upgrade for

[nodejs] Re: Is it wise to host nodejs apps on third party machines with source code? Can't we compile into machine code before hosting?

2013-01-10 Thread Koti Kanna
Hi thanks for your response. The problem i am facing here is , i need to handover my code to sysadmin who deploy them behind a firewall and load balancers. I think right choice for me is chmod as suggested by Harald. It solves my immediate problem. And again this trick won't work on windows ma

Re: [nodejs] Node v0.8.17 (Stable)

2013-01-10 Thread Jorge Chamorro
On 10/01/2013, at 02:29, Ben Noordhuis wrote: > On Thu, Jan 10, 2013 at 2:20 AM, Isaac Schlueter wrote: >> This release addresses a potential security vulnerability. >> >> If you do not use TypedArrays, then you're fine (but should still >> upgrade for other reasons, like better performance and n

[nodejs] [ANN] catcher - tiny, flow-less error handling

2013-01-10 Thread Stuart P. Bentley
D'oh- sent without finishing the subject line. Hey guys, new(ish) to Node, first time posting. I made an npm account shortly after I started for programming, but I haven't written anything that really called for a reusable npm package until now. So, the code I'm writing doesn't use any flow-cont

[nodejs] [ANN] catcher - tiny, flow-less

2013-01-10 Thread Stuart P. Bentley
Hey guys, new(ish) to Node, first time posting. I made an npm account shortly after I started for programming, but I haven't written anything that really called for a reusable npm package until now. So, the code I'm writing doesn't use any flow-control/promise-chain libraries like seq or st

[nodejs] Re: multiplayer game: scaling lots of gamerooms

2013-01-10 Thread Charlie Edward
Well, I do not think the simple version is as simple as you think. Game is more complex than web application in some aspects, you have to take care of a lot things, especially in multi-process environment. Servers communication, route, session management, broadcast, request/response, packa

Re: [nodejs] Re: Want to create app.

2013-01-10 Thread Fedor Indutny
Surely, there're different technologies out there. And choosing one is more a matter of taste, at least for me. Cheers, Fedor. On Thu, Jan 10, 2013 at 1:46 PM, Floby wrote: > Well, I know I would choose Node simply for the fun I'd have with it. > But in order to build a social website with use

Re: [nodejs] Re: Want to create app.

2013-01-10 Thread Floby
Well, I know I would choose Node simply for the fun I'd have with it. But in order to build a social website with user content, it may be more efficient to use something like PHP with a decent framework or even Rails. On Thursday, 10 January 2013 10:39:00 UTC+1, Fedor Indutny wrote: > > On a side

Re: [nodejs] Re: Want to create app.

2013-01-10 Thread Duncan Gmail
Or heroku On 10 Jan 2013, at 09:39, Fedor Indutny wrote: > On a side note, you can try using http://nodejitsu.com/ . Their micro plan is > 3$/month, and first 30 days are completely free. > > Cheers, > Fedor. > > > On Thu, Jan 10, 2013 at 1:38 PM, Fedor Indutny wrote: >> Floby, this sounds

Re: [nodejs] Re: Want to create app.

2013-01-10 Thread Fedor Indutny
On a side note, you can try using http://nodejitsu.com/ . Their micro plan is 3$/month, and first 30 days are completely free. Cheers, Fedor. On Thu, Jan 10, 2013 at 1:38 PM, Fedor Indutny wrote: > Floby, this sounds like a betrayal. > > Cheers, > Fedor. > > > On Thu, Jan 10, 2013 at 1:29 PM,

Re: [nodejs] Re: Want to create app.

2013-01-10 Thread Fedor Indutny
Floby, this sounds like a betrayal. Cheers, Fedor. On Thu, Jan 10, 2013 at 1:29 PM, Floby wrote: > Why not PHP ? PHP devs are cheap as well as hosting solutions. > > > On Wednesday, 9 January 2013 18:28:57 UTC+1, dhtml wrote: >> >> >> The app we are designing will have user generated content a

[nodejs] Re: Want to create app.

2013-01-10 Thread Floby
Why not PHP ? PHP devs are cheap as well as hosting solutions. On Wednesday, 9 January 2013 18:28:57 UTC+1, dhtml wrote: > > > The app we are designing will have user generated content and is > community based. I know front end stuff and have some limited skill > with Java webapps. But Java host

Re: [nodejs] Re: new concept for structured asynchronous programming

2013-01-10 Thread greelgorke
@Eldar: thank you for the link to this paper. very interesting. Am Samstag, 29. Dezember 2012 09:16:39 UTC+1 schrieb Eldar: > > @Raynos, @greelgorke I would recommend reading Out of the > tarpit. > It argues that traditional imperative approach with contr

[nodejs] Re: multiplayer game: scaling lots of gamerooms

2013-01-10 Thread DerDree
Thank you both very much. That are two nice solutions for this kind of problem. I studied the solutions and am I right that the main idea behind these is to instantiate more processes for handling the websocket messages? This was also one of my ideas aboth. Altough I would like to try programmi