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

2013-05-13 Thread Javier Cobos
This error is fixed here: http://stackoverflow.com/questions/16476783/node-js-ssl-server-frozen-high-cpu-not-crashed-but-no-connections It's related with the limit of files a process is able to open in linux. I wrote it my self so if you need any help please tell me. On Sunday, 11 November

[nodejs] Re: Node.js SSL server frozen, high CPU, not crashed but no connections

2013-05-13 Thread Javier Cobos
This error is fixed here: http://stackoverflow.com/questions/16476783/node-js-ssl-server-frozen-high-cpu-not-crashed-but-no-connections It's related with the limit of files a process is able to open in linux. I wrote it my self so if you need any help please tell me. Thanks a lot! On Friday,

Re: [nodejs] Node.js SSL server frozen, high CPU, not crashed but no connections

2013-05-13 Thread Javier Cobos
@Fedor Indutny Thanks a lot i just tried your solution and it worked like a charm, I mean, It detected the error!, On Friday, 10 May 2013 15:08:10 UTC+2, Fedor Indutny wrote: Can you try `strace`ing or `dtruss`ing process? strace -p process-id should do the job. Cheers, Fedor. On

[nodejs] ANN: multicast-eventemitter now works with NodeJS v0.8.X and v0.10.X.

2013-05-13 Thread Chris Dew
Multicast-event emitter lets NodeJS processes emit events that every interested NodeJS process on the LAN will receive. It uses multicast for efficiency - each NIC only receives the events which that box's processes are listening for. I've finally got around to updating multicast-eventemitter

[nodejs] Re: Starting and stopping node.js server from windows batch file

2013-05-13 Thread Samson Ayalew
I don't know how it can work if you are running two or more node process and want to stop one of them but. use the command taskkill /F /IM node.exe this will stop all node processes and save it as .bat. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: Our Contribution To Node Community, Introducing NodeJS Console

2013-05-13 Thread Samson Ayalew
This is great, On Friday, May 3, 2013 6:31:03 PM UTC+3, Kushal Likhi wrote: Hi, As we are very much thrilled and in love with Node, hence we took out some time to build something for the *NodeJS community*. We are proud to announce the *NodeJS Console*. Its 100% non commercial and

[nodejs] Compressing output from NodeJS Emit function - setting the right header type

2013-05-13 Thread Farhan Munir
I am trying to compress output from node js application. I am able to compress the text string successfully on server side. But the header sent with it says HTML/plain text so browser is not able to decompress it I am using node v0.6.18 my code is as follows: var http =

[nodejs] Re: what are the merits / demerits of require.extensions?

2013-05-13 Thread Floby
for those who need a quick and available everywhere solution, this is the Makefile line for coffeescript. %.js: %.coffee coffee -c $ On Friday, 10 May 2013 02:29:36 UTC+2, ~flow wrote: i recently opened an issue https://github.com/joyent/node/issues/5430 concerning require.extensions,

[nodejs] Node.js hands-on workshop in The Netherlands

2013-05-13 Thread Niels
Hello Everyone, Tuesday, May 28 there is a Node.js workshop at the Enschede Web Developers Meetup group. No previous experience with Node is necessary. The workshop will give a introduction to Node.js and there will be a fun hands-on part to develop a realtime app using Node. Joining the

[nodejs] NodeJs Installation

2013-05-13 Thread ChrisN
Hello All, i am trying to install NodeJs on my Linux machine, but it is throwing error Steps followed: Downloaded source code node-v0.10.5 cd node-v0.10.5 ./configure make ERROR Message*** make -C out BUILDTYPE=Release V=1 make[1]: Entering directory

[nodejs] Re: NodeJs Installation

2013-05-13 Thread mscdex
On May 13, 10:50 am, ChrisN christopherpenum...@gmail.com wrote: Hello All, i am trying to install NodeJs on my Linux machine, but it is throwing error What version of make do you have installed?: `make -v` You need make 3.81 or newer. -- -- Job Board: http://jobs.nodejs.org/ Posting

Re: [nodejs] what are the merits / demerits of require.extensions?

2013-05-13 Thread Bradley Meck
Encrypting source code is not something that can be done in v8 due to Function.toString and how v8 stores code for recompilation. The source will be present in v8's heap somewhere. However, if all JS is encrypted with a secret key and that must be provided before v8 starts it is possible to

[nodejs] HTTPS request incomplete when piping to a file

2013-05-13 Thread Matt
Hi, I've been trying to debug this problem for a week now and it's finally time to come here and ask if I'm doing something dumb. We're downloading a PDF file from American Express, with the following code: var request = require('request'); // Mikeal's request library var req = _make_req(...);

[nodejs] Re: HTTPS request incomplete when piping to a file

2013-05-13 Thread mscdex
On May 13, 2:35 pm, Matt hel...@gmail.com wrote:   var ws = fs.createWriteStream(filename, {encoding: 'binary'}); Don't set the encoding here if you're piping. Just do: `var ws = fs.createWriteStream(filename);` -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Re: HTTPS request incomplete when piping to a file

2013-05-13 Thread Matt
On Mon, May 13, 2013 at 2:45 PM, mscdex msc...@gmail.com wrote: Don't set the encoding here if you're piping. Just do: `var ws = fs.createWriteStream(filename);` See the comment above that line - I've tried both ways. Still occurs. -- -- Job Board: http://jobs.nodejs.org/ Posting

[nodejs] SummIT.js

2013-05-13 Thread th317erd
I just wanted to share my initial release of SummIT.js with the community. My reasons for creating yet another Node.js module?: Simplicity, Size, and Error handling. I intend in the future to add more stuff, but as of now it is quite useful, so I figured I would share it with whomever. I

Re: [nodejs] Compressing output from NodeJS Emit function - setting the right header type

2013-05-13 Thread Ryan Schmidt
It may not be related to the problem you mention, but an HTML file is not a ZIP file: On May 13, 2013, at 04:31, Farhan Munir wrote: fs.readFile(__dirname + /index.html, function(err, data) { if (err) { return send404(res); }

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Tim Caswell
Alex, I share your pain. That is why I made a version/port of node that didn't use V8, but rather, the much lighter-weight luajit engine. It's at luvit.io. (warning, not compatible with node.js code or ecosystem, just the same idea / API style) On Sun, May 12, 2013 at 6:21 AM, Alex Kocharin

Re: [nodejs] Compressing output from NodeJS Emit function - setting the right header type

2013-05-13 Thread Forrest L Norvell
Yeah... 'Content-Type' is 'text/html', 'Content-Encoding' should be set to 'deflate'. F On Mon, May 13, 2013 at 1:57 PM, Ryan Schmidt google-2...@ryandesign.comwrote: It may not be related to the problem you mention, but an HTML file is not a ZIP file: On May 13, 2013, at 04:31, Farhan

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Alex Kocharin
 If we are talking about non-compatible solutions, I might as well use python instead ;) -- // alex  14.05.2013, 01:04, "Tim Caswell" t...@creationix.com:Alex, I share your pain.  That is why I made a version/port of node that didn't use V8, but rather, the much lighter-weight luajit engine.  It's

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Tim Caswell
If you ever come across a JS engine that boots as fast as Lua, I'll port node to it. On my raspberry pi and my various webos smart-phones, node process booting takes over 1000ms, but lua is nearly instant. Actually, I think a new JS engine who's goal is to be light-weight would be really neat

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Alex Kocharin
 Another implementation will go terribly slow. V8 is a browser thingy, and I'm sure it is as fast as it could possibly be, because every millisecond counts there. So there is nothing wrong with V8. But there could be something wrong with node.js itself. Think about hundreds of .js files it needs

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Matt
Here's the list of syscalls on a mac running just process.exit(): 150 stat64 52 mmap 33 mprotect 29 ioctl 24 munmap 19 __semwait_signal 13 madvise 8 getattrlist 4 sigaction 4 lstat64 4 __sysctl 3 thread_selfid 3 pipe 3 open 3 issetugid 3 geteuid 3 close

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Tim Caswell
V8 is as fast as it can possibly be at running hot. Which for long-running node servers is great. In fast, in my testing, javascript in node is generally slightly faster than lua in luajit. V8, however is not optimized for process startup. It uses a lot of ram and does a lot of up-front

Re: [nodejs] NPK - Node.js packaging Utility

2013-05-13 Thread Azer Koçulu
OneJS also does the samething; http://github.com/azer/onejs I myself use it for bundling my stuff for browsers, some others use it for other platforms... On Mon, May 13, 2013 at 2:39 PM, Tim Caswell t...@creationix.com wrote: V8 is as fast as it can possibly be at running hot. Which for

[nodejs] Node v0.11.2 (Unstable)

2013-05-13 Thread Isaac Schlueter
2013.05.13, Version 0.11.2 (Unstable) * uv: Upgrade to 0.11.2 * V8: Upgrade to 3.19.0 * npm: Upgrade to 1.2.21 * build: Makefile should respect configure --prefix (Timothy J Fontaine) * cluster: use round-robin load balancing (Ben Noordhuis) * debugger, cluster: each worker has new debug

[nodejs] as/for: thoughts on adding aliases to npm as an alternative to dependency injection

2013-05-13 Thread Ken
I've been mulling this problem space a while and decided to think out loud here to see whether anyone else is exploring similar avenues. There's obviously some good work being done in dependency injection for node apps, but I have some instinctual cringe at any dependency injection systems

[nodejs] tcp roundtrip time performance

2013-05-13 Thread Andrey
Hi everyone, I'm trying to benchmark network protocol client, and profiler tells me that client spend most of the time inside uv write request. Simple ping-pong test[1] shows 15k roundtrips/sec limit (MacBookAir5,1/OSX). CPU load is reasonably low ( less than 50% on client and server, 4 cores

[nodejs] Having trouble replicating with npm repo (couchdb) - anyone tried it lately and/or seen this error?

2013-05-13 Thread andy
Based on the awesome feedback I got from https://groups.google.com/d/msg/nodejs/sX4mbsRPwls/WtDDE-To2o4J, we tried replicating the npm repo so we could use it in an offline environment. We're essentially following the instructions at

Re: [nodejs] Node v0.11.2 (Unstable)

2013-05-13 Thread Tim Caswell
I just noticed this has the version of V8 with harmony generators! (behind a flag) A very simple example of how to block on I/O within a generator is at https://gist.github.com/creationix/5544019 On Mon, May 13, 2013 at 5:55 PM, Isaac Schlueter i...@izs.me wrote: 2013.05.13, Version 0.11.2

Re: [nodejs] as/for: thoughts on adding aliases to npm as an alternative to dependency injection

2013-05-13 Thread Tim Caswell
I often have a similar need. In debian systems, I'm noticed that sometimes there are virtual packages that several competing packages all provide the concrete representation for. Maybe a simpler syntax using the idea of provides could be used here. My concrete example, is my js-git demo. I'm