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

2013-10-23 Thread 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 text is (valid) utf-8 and not some other character set? -- -- Job Board: http://jobs.nodejs.org

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

2013-10-23 Thread yougen zhuang
Even setting ReadableStream.setEncoding('utf8'), node still can't show Chinese or other chareacters. ===server.js=== var net = require('net'); var server = net.createServer(); var clients = []; server.on('connection', function(socket){ console.log("got a new connection");

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

2013-10-23 Thread Ryan Schmidt
On Oct 23, 2013, at 12:25, Alberto Ricart wrote: > I upgraded my machine to OS X Mavericks last night, and to my surprise, node > crashes. Reinstalling node does not fix the issue. > > $ node -v > dyld: Symbol not found: _xmlBufContent > Referenced from: /usr/lib/libxslt.1.dylib > Expected

Re: [nodejs] handling streams in native c++ addons

2013-10-23 Thread Duncan Wong
Sorry for digging up an old post I'm thinking about writing a C++ streaming json parser addon. The implementations I've found so far are done in javascript and are perhaps much slower than buffering the full response and doing JSON.parse (a couple of streaming json authors say that the speed i

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

2013-10-23 Thread Hongli Lai
Maybe it links indirectly to libxml. The Node executable is linked to Foundation, ApplicationServices, CoreServices, etc. One of those libraries probably need libxml. On Wed, Oct 23, 2013 at 11:15 PM, Nathan Rajlich wrote: > Why would the node executable depend on libxml? > > > On Wed, Oct 23, 20

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

2013-10-23 Thread Nathan Rajlich
Why would the node executable depend on libxml? On Wed, Oct 23, 2013 at 12:16 PM, Hongli Lai wrote: > It looks like your Node executables tried to access libxml from > /Volumes/TIBCO. I get the feeling that that is wrong, and that Node should > load libxml from /usr/lib instead. Can you try unm

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

2013-10-23 Thread Hongli Lai
It looks like your Node executables tried to access libxml from /Volumes/TIBCO. I get the feeling that that is wrong, and that Node should load libxml from /usr/lib instead. Can you try unmounting /Volumes/TIBCO? Does that help? On Wednesday, October 23, 2013 7:25:17 PM UTC+2, Alberto Ricart wr

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

2013-10-23 Thread Alberto Ricart
I upgraded my machine to OS X Mavericks last night, and to my surprise, node crashes. Reinstalling node does not fix the issue. $ node -v dyld: Symbol not found: _xmlBufContent Referenced from: /usr/lib/libxslt.1.dylib Expected in: /Volumes/TIBCO/FTL/ftl_accesspoint/install/lib/libxml2.2.dyl

Re: [nodejs] how to have equivalent config on Node.js web server?

2013-10-23 Thread Hongli Lai
On Wednesday, October 23, 2013 3:39:05 PM UTC+2, Peter Rust wrote: > My first thought was that you could keep your current config and run Node > on top of Apache as a module, much as people run PHP and Perl via mod_php > and mod_perl. However, I could only find one > mod_node

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

2013-10-23 Thread Mikeal Rogers
hrm... mine is working. % node -v v0.10.13 On Oct 23, 2013, at 10:25AM, Alberto Ricart wrote: > I upgraded my machine to OS X Mavericks last night, and to my surprise, node > crashes. Reinstalling node does not fix the issue. > > $ node -v > dyld: Symbol not found: _xmlBufContent > Refer

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

2013-10-23 Thread Michael Tunnicliffe
Hello Carlos I have implemented a fix for this issue but it depends on properly detecting affected processor. Would it be possible for you to run the following command and post the results to ensure your processor is covered? LD_SHOW_AUXV=1 /bin/true Thanks Mike On Wednesday, 16 October 201

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

2013-10-23 Thread Chaoran Yang
I agree with you on the hole of readable.push(''). I think it would be better to have a separate API for these special cases, e.g. a readable.end() to indicate the stream has ended, and readable.empty() to indicate the same thing as readable.push(''). With respect to the return value. Yes, theo

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

2013-10-23 Thread Benjamin Goering
I agree with both suggestions. Another hole is the non-objectMode special behavior of readable.push(''); http://nodejs.org/docs/latest/api/stream.html#stream_stream_push When called by a Readable implementation, it is supposed to signal that the stream is done getting data from its upstream sou

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

2013-10-23 Thread Michael Tunnicliffe
Hi Carlos I've implemented a fix for this, documented in https://github.com/andrewlow/v8ppc/issues/96 but I want to check that it will be applied for you. Can you run the following command on your machine and report the results, so I can check it is covered? LD_SHOW_AUXV=1 /bin/true Than

Re: [nodejs] how to have equivalent config on Node.js web server?

2013-10-23 Thread Peter Rust
My first thought was that you could keep your current config and run Node on top of Apache as a module, much as people run PHP and Perl via mod_php and mod_perl. However, I could only find one mod_nodeand it is "preview code" ("expect it to only barely wor

Re: [nodejs] How do I install pdfsnag in NodeJS?

2013-10-23 Thread Peter Rust
I'm on Node 0.8.9 and Windows 7 and it appears to have installed without issue: C:\Users\prust>npm install pdfsnag npm http GET http://registry.npmjs.org/pdfsnag npm http 200 http://registry.npmjs.org/pdfsnag npm http GET http://registry.npmjs.org/pdfsnag/-/pdfsnag-0.1.5.tgz npm http 200 http://r

Re: [nodejs] Core use of dns.lookup

2013-10-23 Thread Ryan Schmidt
On Oct 23, 2013, at 03:32, Joran Dirk Greef wrote: > I saw that dns.lookup uses getaddrinfo(3) which shares the thread pool with > fs operations (https://github.com/joyent/node/issues/2868) and that the docs > mention the following: > > "All methods in the dns module use C-Ares except for dns

Re: [nodejs] how to have equivalent config on Node.js web server?

2013-10-23 Thread Ryan Schmidt
On Oct 22, 2013, at 19:11, Rajeev Prasad wrote: > hello, > thank you for such clear information. > so i started to look around for Node.js frameworks and then i came across: > nodeframework.com > here a list of "apps"? is available, but now i have few questions: > 1. which is best? (I want to s

Re: [nodejs] Core use of dns.lookup

2013-10-23 Thread Ben Noordhuis
On Wed, Oct 23, 2013 at 10:32 AM, Joran Dirk Greef wrote: > I saw that dns.lookup uses getaddrinfo(3) which shares the thread pool with > fs operations (https://github.com/joyent/node/issues/2868) and that the docs > mention the following: > > "All methods in the dns module use C-Ares except for d

[nodejs] Re: Core use of dns.lookup

2013-10-23 Thread Joran Dirk Greef
See also: http://stackoverflow.com/questions/19185055/forcing-net-http-to-use-c-ares-instead-of-getaddrinfo -- -- 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 subscribed to

[nodejs] Core use of dns.lookup

2013-10-23 Thread Joran Dirk Greef
I saw that dns.lookup uses getaddrinfo(3) which shares the thread pool with fs operations (https://github.com/joyent/node/issues/2868) and that the docs mention the following: "All methods in the dns module use C-Ares except for dns.lookup which uses getaddrinfo(3) in a thread pool. C-Ares is m

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

2013-10-23 Thread Floby
Yes it's working now. On Wednesday, 23 October 2013 09:17:51 UTC+2, greelgorke wrote: > > last time i tested it was buggy. but it seems like it's working now as > expected. great! > > Am Dienstag, 22. Oktober 2013 15:18:29 UTC+2 schrieb Peter Rust: >> >> The docs (http://nodejs.org/api/stream.htm

[nodejs] Re: how to have equivalent config on Node.js web server?

2013-10-23 Thread Morgan Herlocker
As mentioned by others, node.js is a language, not a web server. However, it is a very easy to get a web server setup in node.js using one of the many frameworks. Here are a couple in order of (my perceived) popularity: - http://expressjs.com/ (Without a doubt the most popular. I would r

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

2013-10-23 Thread greelgorke
last time i tested it was buggy. but it seems like it's working now as expected. great! Am Dienstag, 22. Oktober 2013 15:18:29 UTC+2 schrieb Peter Rust: > > The docs (http://nodejs.org/api/stream.html#stream_object_mode) seem > pretty clear: "Normally, Streams operate on Strings and Buffers > e