Re: [nodejs] where is interval id in 0.8.14?

2012-11-21 Thread Marcel Laverdet
Seems that this /could/ create issues if you did something like this: var timers = {}; var timer = setTimeout(function() { ... }, 100); timers[timer] = timer; for (var ii in timers) { clearTimeout(ii); unset(timers[ii]); } The spec does specify that it must be a number, however this was likel

Re: [nodejs] Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Charlie Circle
Yeah, of course we can deploy in cloud. Actually we deployed our demo in our private cloud constructed by openstack. The framework is not bind to any cloud, node.js can run everywhere. On Thursday, November 22, 2012 12:14:12 PM UTC+8, psema4 wrote: > > On Tue, Nov 20, 2012 at 9:33 PM, Charlie Ci

Re: [nodejs] where is interval id in 0.8.14?

2012-11-21 Thread Ryan Schmidt
On Nov 21, 2012, at 21:44, kuno wrote: > in node 0.8.14, it return a object like this: > ``` > { ontimeout: [Function] } > ``` > > and the ontimeout function itself look like this: > ``` > function () { > callback.apply(timer, args); > } > ``` > > Can someone kind enough to explain me, w

Re: [nodejs] where is interval id in 0.8.14?

2012-11-21 Thread Shigeki Ohtsu
Timers on browsers are defined in HTML5 spec. http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#timers So setInterval() of Chrome returns a long integer as a handle, however, that of Node returns an object which need not follow the HTML5 spec. (2012/11/22 12:44), kuno

Re: [nodejs] Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Scott Elcomb
On Tue, Nov 20, 2012 at 9:33 PM, Charlie Circle wrote: > Pomelo homepage: http://pomelo.netease.com > Pomelo github: https://github.com/NetEase/pomelo > Online Demo(LordOfPomelo): http://pomelo.netease.com/lordofpomelo > LordOfPomelo github: https://github.com/NetEase/lordofpomelo > > What are you

[nodejs] where is interval id in 0.8.14?

2012-11-21 Thread kuno
I just noticed that the return value of setInterval function in chrome/node are different. In chrome the setInterval function returns a integer as the id, but in node 0.8.14, it return a object like this: ``` { ontimeout: [Function] } ``` and the ontimeout function itself look like this: ``` fu

Re: [nodejs] Re: Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Charlie Circle
Thanks Alex. Hope more persons take a look at our demo first: http://pomelo.netease.com/lordofpomelo We announced yesterday, github star is rising to 400 within 1 day. Node.js is astonishingly suitable for game server development. In the definition of node.js, fast, scalable, realtime, netw

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

2012-11-21 Thread Isaac Schlueter
If you mess with the require() cache, it's very possible to create a situation where you cause infinite loops by require() cycles re-reading the same files repeatedly and synchronously, and these are difficult to debug. It's much better to just export a function, and have your consumer call that f

[nodejs] Re: Help! warn: error raised: Error: accept EMFILE (with socket.io)

2012-11-21 Thread Kevin Guo
I have this issue as well - interestingly enough, also a webchat app, and when I have ~400 online users, I get the EMFILE error. From looking around at other issues with socket.io, it seems that this may be related to https://github.com/LearnBoost/socket.io/issues/438 - in fact, I believe the O

[nodejs] Re: Github Organization for projects without maintainers

2012-11-21 Thread Austin William Wright
So then why not fork the project? The great thing about open source software in Git is you don't need permission. As for the npm registry, I don't know how else you'd do that, people have to own their little corner of the namespace. The problem with npm (one of many) is that it uses a single, g

Re: [nodejs] Watch folder and send PDF files to printer.

2012-11-21 Thread Abhay Rana
You can try the google cloud print api : https://developers.google.com/cloud-print/docs/sendJobs?hl=en. (Found on a similar questionon SO) -- http://about.me/n3m0 On Wed, Nov 21, 2012 at 4:15

Re: [nodejs] Re: Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Alexey Petrushin
There's no Big Data (in its current "hot" marketing meaning) in gaming, especially such technologies as Hadoop or Hive. They employed sometimes in areas related to gaming (player clustering, analytics, ad targeting), but not in games directly. Demo looks nice :) On Wednesday, November 21, 2012

Re: [nodejs] Re: Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Salan Raj
Thanks sir Where can i explore Big data Technology in Massive multiplayer online game ... On Wed, Nov 21, 2012 at 8:13 AM, Charlie Circle wrote: > The framework is not bind to any database. We do have a module to > sync data from memory to db. Anyway, database load is not high in > game, t

[nodejs] Re: Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Charlie Circle
The framework is not bind to any database. We do have a module to sync data from memory to db. Anyway, database load is not high in game, the burden is broadcast and game logic. On 11月21日, 下午2时54分, Salan Raj wrote: > Wether It supports NOSQL databaseIS there any scope in Hadoop and Hive > .

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

2012-11-21 Thread dhruvbird
Looks you want separate behaviour for every module require()ing you. Why not force every caller to instantiate an object of your custom class type, passing in a directory location? This has the added side effect of allowing a single module to instantiate multiple objects with potentially differe

[nodejs] Re: Github Organization for projects without maintainers

2012-11-21 Thread klru...@gmail.com
These are The Metaphysics of Presence, could not resist to quote your famous namesake El miércoles, 21 de noviembre de 2012 08:15:51 UTC+1, Martin Heidegger escribió: > > I just stumbled over the problem of choosing a zip library to use. Many of > the zip projects are not actively maintained by

[nodejs] Watch folder and send PDF files to printer.

2012-11-21 Thread Gary Cheeseman
I would like to be able watch a folder and send PDF files to the print spooler from nodejs. I see in the nodejs API docs that fs.FSWatcher should be able to handle watching a folder, but I can't seem to find how I could then add the file to the printer queue. I am a nodejs nube, but the idea is

[nodejs] Github Organization for projects without maintainers

2012-11-21 Thread Martin Heidegger
I just stumbled over the problem of choosing a zip library to use. Many of the zip projects are not actively maintained by their owners at github. One problem I found was that it took too long to answer a maintenance request and yet another project spammed the npm directory. https://github.com/

[nodejs] Re: Announcing our game server framework--pomelo. Feedback please!

2012-11-21 Thread Salan Raj
Wether It supports NOSQL databaseIS there any scope in Hadoop and Hive I an very new to this Field But i am Highly Intereste In Bigdata massive Multiplayer online game. On Wednesday, November 21, 2012 8:03:21 AM UTC+5:30, Charlie Circle wrote: > > Hi everyone: > > We are glad to ann