Re: [nodejs] Re: Is it legit to distribute binaries via npm?

2012-05-07 Thread Shancat
If I had run an npm install and I came back to find it trying to download a 12GB repository I would be extremely pissed and left with a huge bill. In my area in Australia we can't even get ADSL, I have to resort to mobile broadband. The situation is the same for many other users in Australia and

[nodejs] node and windows MSIs

2012-05-07 Thread Joshua Holbrook
Hey guys, I got a windows computer recently, and I thought it would be fun if I could bundle some of my projects into msi's I can send to friends/family. Ideally, I'd like it to install node and npm if need be, and then install a node package and maybe throw some icons on the desktop. I've been t

Re: [nodejs] Re: Is it legit to distribute binaries via npm?

2012-05-07 Thread Morteza Milani
> If I had run an npm install and I came back to find it trying to download a 12GB repository I would be extremely pissed and left with a huge bill. Source code is 12GB, when compiled it would be much less like 300MB. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.c

Re: [nodejs] Re: Is it legit to distribute binaries via npm?

2012-05-07 Thread Brandon Benvie
Modules that have WebKit/Chromium in them. On Sunday, May 6, 2012 8:53:02 PM UTC-4, Isaac Schlueter wrote: > > What modules take an hour to compile? > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received th

Re: [nodejs] requireindex

2012-05-07 Thread Richard Marr
On 6 May 2012 19:47, Isaac Schlueter wrote: > Why not just do require('foo/bar.js') instead of require('foo').bar? Less typing & fewer accidents when you have lots of the same type of module (and its safe to assume that wanting one means wanting all) e.g. when mapping URL handlers. On 6 May

[nodejs] undefined symbol: ev_rt_now error, running tests on serialport

2012-05-07 Thread Anand George
Hi Have installed serialport using Node v0.7.8 on Ubuntu 10.04. When running the tests I get an error Error: /home/anand/node-serialport/build/default/serialport_native.node: undefined symbol: ev_rt_now. Thanks -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joye

Re: [nodejs] Books about Computer Networking and Network protocols

2012-05-07 Thread Matt
Unix Network Programming by W. Richard Stevens is the bible of network programming. It's pretty hardcore though - not a beginners' book. On Sun, May 6, 2012 at 1:17 PM, Ralphtheninja (Magnus Skog) < lars.magnus.s...@gmail.com> wrote: > Looks promising. Thanks! I like to have things explained to m

[nodejs] Error: ECONNREFUSED, Connection refused

2012-05-07 Thread Harish Varada
Hi Friends, I'm getting the following error's very frequently from the time I moved my code-set from a local system to a Cloud Server. This is stopping my work completely. :( This mainly occurs when I create a Socket stream amount to users over the website through 'httpclient' Please help

Re: [nodejs] node and windows MSIs

2012-05-07 Thread Matias Woloski
Once you understand it, it's easy. Here you have a short tutorial http://www.switchonthecode.com/tutorials/creating-a-simple-windows-installer-with-wix However, if you are just looking into WiX because you want to put some icons on the desktop, I would recommend you to look into ClickOnce instead

[nodejs] Re: How to make a high quality chat server?

2012-05-07 Thread Pitt Mak
I knew you from NodeClub in china, cool topic. Jason.桂林(Gui Lin)於 2012年5月6日星期日UTC+8下午7時04分30秒寫道: > > I just join hackthon party, our team made a very cool chat web application > in 24 hours. > > But I know, it is a demo, It use socket.io, redis, I think it is a little > expensive on session. and

Re: [nodejs] undefined symbol: ev_rt_now error, running tests on serialport

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 2:25 PM, Anand George wrote: > Hi > > Have installed serialport using Node v0.7.8 on Ubuntu 10.04. > > When running the tests I get an error > > Error: /home/anand/node-serialport/build/default/serialport_native.node: > undefined symbol: ev_rt_now. > > Thanks That probably

Re: [nodejs] Error: ECONNREFUSED, Connection refused

2012-05-07 Thread Fedor Indutny
What is yours `ulimit -n` value? Cheers, Fedor. On Mon, May 7, 2012 at 6:04 PM, Harish Varada wrote: > Hi Friends, > > I'm getting the following error's very frequently from the time I moved my > code-set from a local system to a Cloud Server. > > This is stopping my work completely. :( > > T

Re: [nodejs] node 0.6.17 TypeErrors at http.js:1163

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 7:33 AM, Subbu Allamaraju wrote: > Hi, > > I just upgraded from 0.6.16 to 0.6.17, and I'm noticing some new messages pop > up when I'm running some stress tests that introduce some network delays and > failures. I don't have an isolated case yet, but it seems to indicate s

Re: [nodejs] Error: ECONNREFUSED, Connection refused

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 1:04 PM, Harish Varada wrote: > Hi Friends, > > I'm getting the following error's very frequently from the time I moved my > code-set from a local system to a Cloud Server. > > This is stopping my work completely. :( > > This mainly occurs when I create a Socket stream amoun

Re: [nodejs] node 0.6.17 TypeErrors at http.js:1163

2012-05-07 Thread Subbu Allamaraju
Here is my test client. var clientReq = http.request(options, function (clientRes) { ... }); clientReq.setTimeout(1000, function () { clientReq.connection.destroy(); ... }); Destroying the socket during the timeout causes this error. I will open an issue.

Re: [nodejs] Re: Is it legit to distribute binaries via npm?

2012-05-07 Thread Isaac Schlueter
!!?!? What is this thing we're actually talking about? If your module is 12GB, takes 2 hours to compile, or includes a copy of WebKit or Chromium in it, then perhaps it's bigger than what you should be installing using npm. Also, 12GB of source is certainly nowhere near a 12GB gzipped tarball.

Re: [nodejs] undefined symbol: ev_rt_now error, running tests on serialport

2012-05-07 Thread Anand George
Running with Node versions upto 06.13 gave a different run-time error "Unable to load shared library ... serialport_native.node" Regarding the fix, the source file, serialport_native.cc does not seem to contain any reference to ev_rt_now. Is there something I'm missing? Thanks On Mon, May 7,

Re: [nodejs] Re: Is it legit to distribute binaries via npm?

2012-05-07 Thread Isaac Schlueter
Spoke with Morteza in IRC. So... appjs *might* be an exception for now. But once we have binary deployments working, it's going to have to be changed around significantly, because as a matter of policy and practical reality, bundled-binaries and custom install scripts will not be effective. Gyp-

Re: [nodejs] Unit Testing Functions Inside Modules

2012-05-07 Thread Jeff Barczewski
Martin, Sidedoor seems like an elegant solution. I will give this a try. Thanks, Jeff On Sunday, 6 May 2012 10:27:51 UTC-5, Martin Cooper wrote: > > On Thu, May 3, 2012 at 8:04 PM, P. Douglas Reeder wrote: > > Writing functional tests for the functions exposed by a module is > > straightfor

[nodejs] socket.setTimeout semantics

2012-05-07 Thread Subbu Allamaraju
Is it expected that applications using socket.setTimeout be prepared to receive the 'timeout' event *after* getting a complete response (as though no timeout occurred)? var clientReq = http.request(options, function (clientRes) { // happy path }); clientReq.setTimeout(functi

[nodejs] Re: socket.setTimeout semantics

2012-05-07 Thread Subbu Allamaraju
On May 7, 2012, at 9:16 AM, Subbu Allamaraju wrote: > clientReq.setTimeout(function () { >// handle timeout >}); Should have been clientReq.setTimeout(timeout, function () { // handle timeout }); -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://gith

[nodejs] HTTP Server Security Vulnerability: Please upgrade to 0.6.17

2012-05-07 Thread Isaac Schlueter
http://blog.nodejs.org/2012/05/07/http-server-security-vulnerability-please-upgrade-to-0-6-17/ A few weeks ago, Matthew Daley found a security vulnerability in Node's HTTP implementation, and thankfully did the responsible thing and reported it to us via email. He explained it quite nicely, so I

[nodejs] Re: HTTP Server Security Vulnerability: Please upgrade to 0.6.17

2012-05-07 Thread Marco Rogers
I'm assuming this affects 0.4.x as well. Yes we're still using it :( Yes we plan to upgrade soon :) :Marco On Monday, May 7, 2012 10:09:47 AM UTC-7, Isaac Schlueter wrote: > > > http://blog.nodejs.org/2012/05/07/http-server-security-vulnerability-please-upgrade-to-0-6-17/ > > > > A few weeks a

[nodejs] Re: [node-dev] Re: HTTP Server Security Vulnerability: Please upgrade to 0.6.17

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 7:34 PM, Marco Rogers wrote: > I'm assuming this affects 0.4.x as well. No, this only applies to v0.6. v0.4 probably has its own share of defects but this one is not part of that. :-) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/no

Re: [nodejs] undefined symbol: ev_rt_now error, running tests on serialport

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 5:38 PM, Anand George wrote: > Running with Node versions upto 06.13 gave a different run-time error > > "Unable to load shared library ... serialport_native.node" That's because error messages got improved recently. > Regarding the fix, the source file, serialport_native.

[nodejs] Re: [node-dev] Re: HTTP Server Security Vulnerability: Please upgrade to 0.6.17

2012-05-07 Thread Isaac Schlueter
Added a section to the blog post explaining it in broad strokes: ## tl;dr * A carefully crafted attack request can cause the contents of the HTTP parser’s buffer to be appended to the attacking request’s header, making it appear to come from the attacker. Since it is generally safe to echo back

Re: [nodejs] socket.setTimeout semantics

2012-05-07 Thread Ben Noordhuis
On Mon, May 7, 2012 at 6:16 PM, Subbu Allamaraju wrote: > Is it expected that applications using socket.setTimeout be prepared to > receive the 'timeout' event *after* getting a complete response (as though no > timeout occurred)? > >    var clientReq = http.request(options, function (clientRes)

Re: [nodejs] socket.setTimeout semantics

2012-05-07 Thread Subbu Allamaraju
On May 7, 2012, at 11:32 AM, Ben Noordhuis wrote: > Maybe. It's possible that the server sends an incomplete response like > forgetting to set a Content-Length header, thereby forcing the client > to keep reading until the connection closes. > > On the other hand, if you've seen 'end' and 'close

[nodejs] Node, Socket.io & CSS - Stylus/Sass/Less/Static/Pipping...what to do?

2012-05-07 Thread Flexpadawan
Hi All, Newbie here so I'll do my best. I've spent the last two says trying to figure out how to link my index.html page to my CSS file. There are a couple of "Examples" out there but none of them worked for me, and of course others have posted comments back as to why their approach is the w

Re: [nodejs] Books about Computer Networking and Network protocols

2012-05-07 Thread Ted Young
The Richard Steven's books are supposedly the classics, "UNIX Network Programming Volume 1, Third Edition: The Sockets Networking API" might interest you. Not sure if it is too out of date or not. On May 6, 2012, at 10:17 AM, Ralphtheninja (Magnus Skog) wrote: > Looks promising. Thanks! I lik

Re: [nodejs] Node, Socket.io & CSS - Stylus/Sass/Less/Static/Pipping...what to do?

2012-05-07 Thread Ryan Schmidt
On May 7, 2012, at 13:59, Flexpadawan wrote: > Hi All, > > Newbie here so I'll do my best. I've spent the last two says trying to > figure out how to link my index.html page to my CSS file. There are a couple > of "Examples" out there but none of them worked for me, and of course others > h

Re: [nodejs] Books about Computer Networking and Network protocols

2012-05-07 Thread Matt
O_O - it'll never be out of date... Well, maybe in 2050 or something when networks are so fast we have replaced TCP. On Mon, May 7, 2012 at 3:57 PM, Ted Young wrote: > The Richard Steven's books are supposedly the classics, "UNIX Network > Programming Volume 1, Third Edition: The Sockets Network

[nodejs] node can only take 6 requests without sending response

2012-05-07 Thread JoeZ99
in ajax, node can only take up to 6 requests if no response is set during that time. see the code: on the server: var http = require('http'); http.createServer(onResponse).listen(); function onResponse(req, res){ console.log('req received'); setTimeout(function(){ res.writ

Re: [nodejs] node can only take 6 requests without sending response

2012-05-07 Thread Marak Squires
It's your browser limiting the amount of concurrent connections. On Mon, May 7, 2012 at 1:06 PM, JoeZ99 wrote: > in ajax, node can only take up to 6 requests if no response is set during > that time. > > see the code: > > on the server: > > var http = require('http'); > http.createServer(onRespo

Re: [nodejs] node can only take 6 requests without sending response

2012-05-07 Thread Scott González
That's your browser limiting the number of simultaneous requests. Try opening multiple browsers or using some other tool to make the request. On Mon, May 7, 2012 at 4:06 PM, JoeZ99 wrote: > in ajax, node can only take up to 6 requests if no response is set during > that time. > > see the code:

Re: [nodejs] Unit Testing Functions Inside Modules

2012-05-07 Thread JoeZ99
In my personal point of view, the whole point of modulus programming is that you only want to expose certain functions and the other "private functions" are for "internal use" only. so, when testing, that is to be tested too, the behavior of the module exposing only a part of its api. Personall

Re: [nodejs] Node, Socket.io & CSS - Stylus/Sass/Less/Static/Pipping...what to do?

2012-05-07 Thread Oliver Leics
To give you one wheel out of many: function handler(req, res) { switch(req.url) { case '/': case '/index.html': .. send index.html here .. break case '/css/style.css': .. send css/style.css here .. break default: .. send 404 .. break } } On

Re: [nodejs] Node, Socket.io & CSS - Stylus/Sass/Less/Static/Pipping...what to do?

2012-05-07 Thread Ken Koontz
1) How do I make my index.html page link to my CSS (*css/style.css*) file? Ok so this is more of an html question than a node question. But to answer your question, you can do something like this in your index.html file: This links a css stylesheet to your page, requesting the file from your se

Re: [nodejs] Books about Computer Networking and Network protocols

2012-05-07 Thread Ted Young
On May 7, 2012, at 1:04 PM, Matt wrote: > O_O - it'll never be out of date... Well, maybe in 2050 or something when > networks are so fast we have replaced TCP. I was thinking it predates some platform specific advances, such as kqueue and epoll, so it's *slowly* getting a little worn around th

Re: [nodejs] node can only take 6 requests without sending response

2012-05-07 Thread JoeZ99
shame on me I was fooled because I saw in the "network" panel of my browser's debug window, a line 'indicating' a request was being made. damm chrome.. ;-) anyway, txs a lot, I was losing my mind with this. On Monday, May 7, 2012 4:11:19 PM UTC-4, Scott González wrote: > > That's your browse

[nodejs] Concurrent transactions

2012-05-07 Thread Emerson Espínola
Hi all, I'm using the TDS module to connect to SQL Server. But if two of my clients send an insertion request to my server, I get "Statement currently running" exception (from tds.js: 140). An idea about how solve this concurrent problem? []'s Emerson de Lira Espínola

Re: [nodejs] requireindex

2012-05-07 Thread Phoscur
Could this be made default behavior for requiring folders without index.js? Am 04.05.2012 04:19, schrieb Stephen Handley: New package to allow writing minimal node index.js/index.coffee files that require and export siblings by file basename. Would appreciate any feedback... I assumed there was

Re: [nodejs] requireindex

2012-05-07 Thread Isaac Schlueter
On Mon, May 7, 2012 at 3:13 PM, Phoscur wrote: > Could this be made default behavior for requiring folders without index.js? No, sorry, the module system is done changing. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guideli

Re: [nodejs] node 0.6.17 TypeErrors at http.js:1163

2012-05-07 Thread Isaac Schlueter
Fixed on v0.6 branch. It'll be updated in the next release. On Mon, May 7, 2012 at 8:20 AM, Subbu Allamaraju wrote: > Here is my test client. > > >    var clientReq = http.request(options, function (clientRes) { >        ... >    }); >    clientReq.setTimeout(1000, function () { >        clientR

Re: [nodejs] undefined symbol: ev_rt_now error, running tests on serialport

2012-05-07 Thread Anand George
That one's beyond me. Have used node-usb which uses libuv and it works fine. Seems node-usb also had a similar problem and was fixed by changing the bindings from libev to libuv. Guess will have to wait till serialport updates. Have already filed an issue on github. Hope that helps. Thanks. On