[nodejs] Re: Receive data on windows hyper terminal using node js and socket.io

2013-04-11 Thread Viken Patel
Thanks for quick response. can you please elaborate? i am new at node.js. -- -- 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 the Google Groups "nodejs" group. To

[nodejs] Is it possible to make TCP IP connection between browser and hyperterminal with node.js and socket.io?

2013-04-11 Thread Viken Patel
Is it possible to make TCP IP connection between browser and hyperterminal with node.js and socket.io? can any one help with this? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because

Re: [nodejs] Re: Should I use asynchronous callbacks for non-I/O tasks?

2013-04-11 Thread Liam
+1 to C++ module using uv_queue_work() for computation intensive stuff. If you have some experience with C++ native Node modules are pretty easy to write, and there are plenty of good examples. It's arguably easier than writing performance-optimized javascript :-) On Wednesday, April 10, 2013

[nodejs] [ANN] Boston Node.js in the wild April Meetup

2013-04-11 Thread Daniel Rinehart
The Boston based Node.js in the wild Meetup group will be holding its next meeting on Wed Apr 17, 2013 at 7pm in the Brightcove offices. This meetup will look at the various methods and tools for debugging Node.js applications in development or production. There will be free drinks and pizza at t

[nodejs] TLS issues with 0.10.2

2013-04-11 Thread dhruvbird
So I am trying to do xmpp with jabber.org using node-xmpp-bosh, and https://github.com/dhruvbird/node-xmpp-bosh/tree/fix-issue-66 (careful, not master branch) works perfectly with 0.8.11, but there is an error at the TLS handshake stage (it just hangs and refuses to move ahead) when connecting

[nodejs] Re: Preparation for wayland bindings

2013-04-11 Thread Henri Tuhola
If you look into https://github.com/cheery/node-wayland now, you'd see that I have one new example. The example list an output from the registry. It only needs the code generator and after that we should be able to write considerably more complex clients. keskiviikko, 10. huhtikuuta 2013 1.33.

Re: [nodejs] How to copy Value in different thread?

2013-04-11 Thread Ben Noordhuis
On Thu, Apr 11, 2013 at 4:54 PM, Jerry Yin wrote: > I think I would like to copying the Value and store the Value to a place > that other thread can access. But I don't know how to make that kind of > copy. > Below is my case: > I have some other thread in the addon, and I have to call some APIs o

Re: [nodejs] Custom request methods for a node.js http server

2013-04-11 Thread Isaac Schlueter
Listen to the `secureConnection` event instead of the `connection` event. That'll give you the cleartextStream as an argument. On Thu, Apr 11, 2013 at 1:55 PM, Mark Jones wrote: > Ben, > > Thanks for the hints. It is nice to see that others have raised this though > it is not clear if and when

Re: [nodejs] Custom request methods for a node.js http server

2013-04-11 Thread Mark Jones
Ben, Thanks for the hints. It is nice to see that others have raised this though it is not clear if and when it will be included (it would be nice if it was just included in a 0.10.? release soon instead of waiting all the way to 0.12.0 - or at least for me the CALDAV methods of MKCALENDAR, AC

[nodejs] Re: Problem upgrading to v0.10 using mikel's request module with self-signed certs

2013-04-11 Thread George Snelling
Quick correction: its the underlying node https.request object that has changed the default for rejectUnauthorized from false to true between node 0.8 to node 0.10, so TJ's superagent is exhibiting the same behavior. It appears to be by design. Even it it breaks some things, I think the new de

[nodejs] Problem upgrading to v0.10 using mikel's request module with self-signed certs

2013-04-11 Thread George Snelling
We have a node server that always serves https, even in dev and test mode. In dev and test we use self-signed certs. Our test harness uses Mikeal's request module, and our tests failed with DEPTH_ZERO_SELF_SIGNED_CERT running against node v0.10. It appears that against node v0.8.x the current

[nodejs] Re: Ideas for a hands on with Node.js

2013-04-11 Thread Alexey Petrushin
If some of your students like to play games, I created short list of HTML / Node.js open source games http://jslang.info/blog/html5-open-source-games Not an easy stuff though ... -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Post

Re: [nodejs] Ideas for a hands on with Node.js

2013-04-11 Thread Alan Hoffmeister
Agreed with Arunoda about debugging. Thanks Isaac, using voxeljs would be awesome, but I don't know about the machines conditions, I wouldn't be suprised if there is just IE installed on that machines, and as far as I know the OS is very restricted, we can't install anything there, and I wans't wi

Re: [nodejs] Ideas for a hands on with Node.js

2013-04-11 Thread Arunoda Susiripala
supervisor is good. But I think debugging is not fit into a 3 hours session. (Specially they have 0 knowledge on node) On Thu, Apr 11, 2013 at 11:55 PM, Fernando Trasvina wrote: > include supervisor and debugging from chrome > > > On Thu, Apr 11, 2013 at 12:51 PM, Isaac Schlueter wrote: > >> It

Re: [nodejs] Ideas for a hands on with Node.js

2013-04-11 Thread Fernando Trasvina
include supervisor and debugging from chrome On Thu, Apr 11, 2013 at 12:51 PM, Isaac Schlueter wrote: > It really depends what direction you want to send them in. > > Yes, TCP chat is pretty meh. I mean, it was CRAZY AWESOME example > material 3 years ago, but Node kind of made it seem trivial

[nodejs] Node v0.10.4 (Stable)

2013-04-11 Thread Isaac Schlueter
2013.04.11, Version 0.10.4 (Stable) * uv: Upgrade to 0.10.4 * npm: Upgrade to 1.2.18 * v8: Avoid excessive memory growth in JSON.parse (Fedor Indutny) * child_process, cluster: fix O(n*m) scan of cmd string (Ben Noordhuis) * net: fix socket.bytesWritten Buffers support (Fedor Indutny) * buffe

Re: [nodejs] Ideas for a hands on with Node.js

2013-04-11 Thread Isaac Schlueter
It really depends what direction you want to send them in. Yes, TCP chat is pretty meh. I mean, it was CRAZY AWESOME example material 3 years ago, but Node kind of made it seem trivial :) Websites are cool if you think it's a thing that they're going to be interested in doing. But rather than j

[nodejs] Ideas for a hands on with Node.js

2013-04-11 Thread Alan Hoffmeister
Hello there, I'll be making a hands on with a class of 40 studends, their level of experience is unknown, I'm assuming that they know something about programming. I have three hours to try to convert them to the dark side and give them a pleasant experience with Node.js. We will be using Win7 mac

[nodejs] Re: gumba.js

2013-04-11 Thread Dmitry Yakimov
I have created site for this package: http://gumba.welldan97.com/ Thanks! On Thursday, March 21, 2013 2:59:39 PM UTC+7, Dmitry Yakimov wrote: > > Hey guys, I've just created this package - Gumba. It's like awk or sed but > in coffeescript with underscore, underscore.string support by default. > >

Re: [nodejs] Re: NodeJS modules --- implementation

2013-04-11 Thread Isaac Schlueter
Blaž, I think you're looking for this: https://github.com/joyent/node/blob/master/lib/module.js On Tue, Apr 9, 2013 at 8:51 AM, Bradley Meck wrote: > Correct, however 2 pieces of bindings are used in node's case (dlopen and fs > for reading files/dirs). The rest is all in Javascript. > > -- > --

Re: [nodejs] Re: Steams2: It ain't over till it's over

2013-04-11 Thread Isaac Schlueter
On Thu, Apr 11, 2013 at 4:58 AM, Dave Clements wrote: > Isaacs, With streams2 being unstable, will there be any refactoring > again before v 1.x.x or is the actual API pretty much set in stone? To early to say. The API is already fairly stable, but we simply haven't banged on it enough to be su

Re: [nodejs] How to copy Value in different thread?

2013-04-11 Thread Jerry Yin
I think I would like to *copying* the Value and store the Value to a place that other thread can access. But I don't know how to make that kind of copy. Below is my case: I have some other thread in the addon, and I have to call some APIs on those thread. The parameters I'm using to call those A

Re: [nodejs] Re: Preparation for wayland bindings

2013-04-11 Thread Henri Tuhola
I have a study journal about the wayland itself in: https://docs.google.com/document/d/1dzF7Qy3ys9r-eHZPEUF0EBLnoqfsOP22jbej8Q2_o6g/edit I wrote an early mockup of an example: https://github.com/cheery/node-wayland/blob/master/simple-shm.proto.coffee Accelerated graphics require EGL bindings that

Re: [nodejs] Re: Preparation for wayland bindings

2013-04-11 Thread Fred Chien
I can try to write a prototype javascript class then we can have discussion based on it. If you can give me some example code to show how to write an small application with libwayland, it's helpful. :-) 2013/4/11 Henri Tuhola > Thank you for reviewing it. It indeed looks like we need to write

[nodejs] Re: ANN: dicer

2013-04-11 Thread Dave Clements
nice On Apr 7, 10:47 pm, mscdex wrote: > Announcing dicer[1], a fast, streaming multipart parser. > > FWIW here are some results I received using the simple 'bench- > multipart-parser.js' from node-formidable for various multipart > parsers currently available on npm: > > di...@v0.0.3 (streaming

[nodejs] Re: Steams2: It ain't over till it's over

2013-04-11 Thread Dave Clements
Isaacs, With streams2 being unstable, will there be any refactoring again before v 1.x.x or is the actual API pretty much set in stone? (motive for question- will adding streams chapter to node cookbook 2nd edition) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.co

[nodejs] Re: Curious question about node/lib/module.js

2013-04-11 Thread Dave Clements
I think this would be more of a design choice, overhead to requiring modules is minimal - if the same module in a parent module is required in a child module I believe its already cached, plus requiring is a one time only event at the beginning of execution the already minimal cost of requiring i

[nodejs] [ANN] connect-postgres (not a connect session store, but middleware to help manage and automatically release Pg clients)

2013-04-11 Thread Andrew Chilton
Hi everyone, I've just released connect-postgres[1] to help you with managing Postgres connections. It uses brianc's node-pg. The reason for making this is because having middleware early in your route to get a client and then later to release the client ended up being unwieldy, and especially sa

Re: [nodejs] Re: Preparation for wayland bindings

2013-04-11 Thread Henri Tuhola
Thank you for reviewing it. It indeed looks like we need to write some javascript to get it on its foot. Lets clear some things out of the way though. The Display and Registry are both proxies. The get_registry() -method looks like this: WL_DISPLAY_GET_REGISTRY = 1 registry = display.prox

Re: [nodejs] How to copy Value in different thread?

2013-04-11 Thread Ben Noordhuis
On Thu, Apr 11, 2013 at 10:28 AM, Jerry Yin wrote: > Thanks for your reply. I used locks. > > My question is how to share a v8::Local between thread? The short answer is: You don't, V8 is not thread safe. The longer answer is: If you embed V8 in your application, you can use the v8::Locker API t

Re: [nodejs] How to copy Value in different thread?

2013-04-11 Thread Jerry Yin
Thanks for your reply. I used locks. My question is how to share a v8::Local between thread? On Thursday, April 11, 2013 4:24:45 PM UTC+8, Floby wrote: > > Anything you touch from multiple thread must get a lock > http://msdn.microsoft.com/en-us/magazine/cc163744.aspx#S3 > >> >>> H.- >>> >>> On

Re: [nodejs] How to copy Value in different thread?

2013-04-11 Thread Floby
Anything you touch from multiple thread must get a lock http://msdn.microsoft.com/en-us/magazine/cc163744.aspx#S3 > >> H.- >> >> On 4/10/13 11:45 PM, Jerry Yin wrote: >> > Hi, >> > >> > I worked on an addon and tried to put some Value in a global >> > std::vector, and try to use it later in a

[nodejs] Re: Should I use asynchronous callbacks for non-I/O tasks?

2013-04-11 Thread Mil Werns
Thanks guys, your suggestions are very helpful to me. Especially thanks to Geerten for the clarifying summary. On Wednesday, April 10, 2013 12:02:44 AM UTC+2, Mil Werns wrote: > > I have a simple question: When should I use callbacks? > > Currently, I'm only using callbacks in I/O cases (file, d