Re: [nodejs] Alleviating pressure on "dependencies", the registry, and the module system

2013-10-24 Thread Alex Kocharin
 25.10.2013, 07:48, "Stuart P. Bentley" :The way I see it, the "dependencies"  hash in package.json right now is pulling double-duty. In some cases (where the value of a dependencies field is a semver), it's there to describe generally what module versions it expects to be compatible with. In other

[nodejs] Alleviating pressure on "dependencies", the registry, and the module system

2013-10-24 Thread Stuart P. Bentley
The way I see it, the "dependencies" hash in package.json right now is pulling double-duty. In some cases (where the value of a dependencies field is a semver), it's there to describe *generally* what module versions it expects to be compatible with. In other cases (when the value of a field is

Re: [nodejs] Re: node server can't show characters besides English

2013-10-24 Thread bluezyg
I write some Chinese character into the stdin, isn't it valid utf8? 2013/10/24 mscdex > On Wednesday, October 23, 2013 11:35:51 PM UTC-4, yougen zhuang wrote: >> >> Even setting ReadableStream.setEncoding('**utf8'), node still can't show >> Chinese or other chareacters. >> >> > Are you sure the

[nodejs] Does not accept mesage from REDIS?

2013-10-24 Thread Олег П
Hello! I use Node.js with Redis. I want read channel Redis and send messages to client. This is fragment SERVER code: const *redis* = require('redis'); const *client* = redis.createClient(); const *subscribe* = redis.createClient() subscribe.subscribe('*realtime*'); s

[nodejs] Problem with connect socket.io/socket.io.js

2013-10-24 Thread Олег П
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://mysite.com/real/socket.io/socket.io.js Uncaught ReferenceError: io is not defined * * *Client side is as:* http://code.jquery.com/jquery-latest.min.js";> // creating a new websocket var sock

[nodejs] Dust not working properly/as expected on reloading a div with different content/JSON

2013-10-24 Thread Sukrutha Krishnegowda
I want to reload the content "onclick" say I have next and prev buttons to load the respective contents. JSON is built properly. but when I pass this JSON to the compiled template , the HTML output is not changed. It still shows the old content. I moved the HTML into Javascript , placed it in a

[nodejs] Re: Infinite prompting with readline module is bugged or I'm doing something wrong

2013-10-24 Thread Gagle
I've solved the issue, put these lines at the beginning of the function: if (prompt._called){ console.log (""); }else{ prompt._called = true; } Result: > msg msg > msg2 msg2 Really weird -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki

[nodejs] Infinite prompting with readline module is bugged or I'm doing something wrong

2013-10-24 Thread Gagle
Code: var readline = require("readline") var str; var prompt = function (){ var rl = readline.createInterface({ input: process.stdin, output: process.stdout }); rl.setPrompt ("> ", 2); rl.on ("line", function (line){ str = line this.close (); });

Re: [nodejs] Unhandled error handling through Domain and cluster modules

2013-10-24 Thread Adam Crabtree
The way to handle this is to take the worker out of rotation on error, but allow it to resolve the in flight requests, with a hard shutdown after a timeout. This is a DoS liability, which is why I use my trycatch module, https://github.com/CrabDude/trycatch, to safely catch errors without requiring

Re: [nodejs] PowerLinux (PowerPC aka PPC) early (unofficial) version of Node.js

2013-10-24 Thread Michael Tunnicliffe
Hi Carlos Excellent, your machine should be covered by the fix documented in https://github.com/andrewlow/v8ppc/issues/96 (which covers AT_PLATFORM values of "ppc7450" and "ppc970"), please do try it out and let me know if it works for you. Regards Mike On Thursday, 24 October 2013 08:00:20 U

Re: [nodejs] Re: Questions/suggestions for nodejs stream object mode

2013-10-24 Thread Ben Noordhuis
On Thu, Oct 24, 2013 at 3:12 PM, Floby wrote: > objectMode streams can push falsey values (other than null) since 10.19 or > 10.20, I don't remember. That's correct, it was fixed in v0.10.19. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mail

[nodejs] Re: Questions/suggestions for nodejs stream object mode

2013-10-24 Thread Floby
objectMode streams can push falsey values (other than null) since 10.19 or 10.20, I don't remember. On Sunday, 20 October 2013 05:18:28 UTC+2, Chaoran Yang wrote: > > Hi all, > > I'm trying to implement a stream in object mode. It's a very complex > stream that allows user read and write databas

[nodejs] Unhandled error handling through Domain and cluster modules

2013-10-24 Thread Rana Roy
Hi, I am using domain and cluster to catch the un-hanlded error in my application in domain and then close the worker cluster and forking a new worker cluster though master cluster. My problem is: if I am doing a load test of my service and hit the service continuously with huge number of reque

[nodejs] Re: Node crashes in OS X mavericks - dyld symbol not found _xmlBufContent

2013-10-24 Thread Rafał Janicki
My works fine too (I've got Mavericks since yesterday evening) $ node -v v0.10.21 Installed via brew. W dniu środa, 23 października 2013 19:25:17 UTC+2 użytkownik Alberto Ricart napisał: > > I upgraded my machine to OS X Mavericks last night, and to my surprise, > node crashes. Reinstalling n

Re: [nodejs] PowerLinux (PowerPC aka PPC) early (unofficial) version of Node.js

2013-10-24 Thread Carlos Arija
AT_DCACHEBSIZE: 0x20 AT_ICACHEBSIZE: 0x20 AT_UCACHEBSIZE: 0x0 AT_SYSINFO_EHDR: 0x10 AT_HWCAP:mmu fpu altivec ppc32 AT_PAGESZ: 4096 AT_CLKTCK: 100 AT_PHDR: 0x1034 AT_PHENT:32 AT_PHNUM:9 AT_BASE: 0x4800 AT_FLAGS:0x0 AT_ENTRY: