Re: [nodejs] Q: connections, the event loop and the one-and-only JS thread

2012-03-15 Thread Axel Kittenberger
There are not only callbacks, but also event emitters. In you client "conn.on('data', .." listens to an event emitter, it could be called multiple times, as long the connection exists. Node exists when you are no longer waiting for any event, neither event emitter or callback. On Thu, Mar 15, 2012

[nodejs] Re: pipeline implementation of htttp requests

2012-03-15 Thread annas
sorry, the loop means 'for' loop. I give some code (Please correct me if I am mistaken) { . .. .. for (var i = 0 ; i < resourceLinks.length ; i++) { resourceURL = resourceLinks[i]; Info(resourceURL,i); } .. } function Info(resUrl,i) { .. var

[nodejs] Re: Storing data in variables on server that runs with inteval (2 sek.)

2012-03-15 Thread g sambolic
Thanks for answer. I think mysql have 8h open connection to one client but as I see in mysql administration node is closing connection when finished. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this

Re: [nodejs] Storing data in variables on server that runs with inteval (2 sek.)

2012-03-15 Thread g sambolic
Thanks for answer. I think mysql have by default up to 8h open connection to one client but as I see in mysql administration node is closing connection when finished. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines Yo

[nodejs] Re: pipeline implementation of htttp requests

2012-03-15 Thread annas
sorry for the mistake , the loop means 'for' loop. I give some code (Please correct me if I am mistaken) app.get('/test', function(req, res){ . .. .. for (var i = 0 ; i < resourceLinks.length ; i++) { resourceURL = resourceLinks[i]; Info(resourceURL , i ); }

[nodejs] Random AssertionError: true == false (http.js) of nodejs 0.4.8/0.4.9

2012-03-15 Thread d4v1dv00
Hi there, Being getting the following error randomly and there is no way i could reproduce, all i got is from the log file: [2012-03-15 16:17:58.997] [FATAL] [CORE] - AssertionError: true == false at IncomingMessage. (http.js:1337:9) at IncomingMessage.emit (events.js:81:20) at HTTPPa

Re: [nodejs] Random AssertionError: true == false (http.js) of nodejs 0.4.8/0.4.9

2012-03-15 Thread Arnout Kazemier
Advice: upgrade to node 0.6.x On Thursday, March 15, 2012 at 10:39 AM, d4v1dv00 wrote: > Hi there, > > Being getting the following error randomly and there is no way i could > reproduce, all i got is from the log file: > > [2012-03-15 16:17:58.997] [FATAL] [CORE] - AssertionError: true == > fal

[nodejs] Re: keep alive webserver

2012-03-15 Thread Flavio Del Bianco
Ok once I createed the file /etc/init/mynode.conf what I have to do? I tryed immediatly to make "sudo start mynode" but server returns me : start: Unknown job: mynode What this it means? On 12 Mar, 17:08, Tim Caswell wrote: > it depends on your system.  On Ubuntu I use upstart and create a small

Re: [nodejs] Q: connections, the event loop and the one-and-only JS thread

2012-03-15 Thread Jorge
On Mar 15, 2012, at 6:53 AM, C. Mundi wrote: > I know *what* the following code does. I want to understand *why*. > > Consider the following client/server pair: > > client.js > var net = require('net'); > var conn = net.createConnection(8000, function() { // 'connect' listener > console.erro

Re: [nodejs] New core team member: Nathan Rajlich (TooTallNate)

2012-03-15 Thread Koichi Kobayashi
Congrats, Nathan! On Wed, 14 Mar 2012 21:14:27 -0700, Nathan Rajlich wrote: > Thanks for the warm welcome everyone! I just want to say I love being a > part of this community, and I look forward to helping node blossom more > than it already is :) > > On Wed, Mar 14, 2012 at 7:55 PM, Ryan Doe

Re: [nodejs] New core team member: Nathan Rajlich (TooTallNate)

2012-03-15 Thread Fadrizul H.
Good job Nathan :) Love ya! Sent from my BlackBerry® -Original Message- From: Isaac Schlueter Sender: nodejs@googlegroups.com Date: Wed, 14 Mar 2012 10:49:42 To: nodejs Reply-To: nodejs@googlegroups.com Subject: [nodejs] New core team member: Nathan Rajlich (TooTallNate) Please welcome

Re: [nodejs] Random AssertionError: true == false (http.js) of nodejs 0.4.8/0.4.9

2012-03-15 Thread Ben Noordhuis
On Thu, Mar 15, 2012 at 10:39, d4v1dv00 wrote: > Hi there, > > Being getting the following error randomly and there is no way i could > reproduce, all i got is from the log file: > > [2012-03-15 16:17:58.997] [FATAL] [CORE] - AssertionError: true == > false >    at IncomingMessage. (http.js:1337:9

Re: [nodejs] Re: pipeline implementation of htttp requests

2012-03-15 Thread Oliver Leics
On Thu, Mar 15, 2012 at 10:12 AM, annas wrote: >  If this requirements will not achieve by using above method please > tell good method . First you have to understand this: http://docs.nodejitsu.com/articles/getting-started/control-flow/what-are-callbacks Then you could use/study the async-libra

[nodejs] Would this ngnix bug affect node?

2012-03-15 Thread dhruvbird
I am assuming we use a significant portion of the ngnix http parser. http://nginx.org/download/patch.2012.memory.txt -- 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

Re: [nodejs] Would this ngnix bug affect node?

2012-03-15 Thread Ben Noordhuis
On Thu, Mar 15, 2012 at 14:27, dhruvbird wrote: > I am assuming we use a significant portion of the ngnix http parser. > > http://nginx.org/download/patch.2012.memory.txt We don't[1]. They're both big state machines written in C, that's where the similarity ends. [1] https://github.com/joyent/ht

[nodejs] Re: How to implement streams?

2012-03-15 Thread Rambo
Can anyone tell me how to implement methods pause() and resume()? I don't know what to do inside them. I want to implement the Stream class myself without any external module. Thanks. On Wednesday, March 14, 2012 4:34:01 PM UTC-3, Roly Fentanes wrote: > > Firstly, use `require('stream').Stream`

[nodejs] Re: keep alive webserver

2012-03-15 Thread g sambolic
Try with forever: http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever Dana ponedjeljak, 12. ožujka 2012. 16:02:20 UTC+1, korisnik Flavio Del Bianco napisao je: > > Hi, I'm learning nodejs and I had a doubt in how I keep alive a > webserver without running it everytime like $ node myse

[nodejs] Tailing cursor mongoDB - socket.io - html example

2012-03-15 Thread Nathan Tippy
Simple example writing JSON to mongoDB and using tailing cursors to 'push' the documents to the browser with socket.io plus a basic introduction to node.js http://sett.ociweb.com/sett/settMar2012.html -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/

Re: [nodejs] PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread Isaac Schlueter
The string being stored to $JS is valid javascript. len = print('Hello' + ' ' + 'World!' + "\n"); len; JavaScript programs evaluate to their completion value (the expression value of the last statement). The `print()` on its own would have the same result, so the `len` global is unnecessary, but

[nodejs] Re: keep alive webserver

2012-03-15 Thread Flavio Del Bianco
I can't install it for problems with versions. I tryed but I get errors after written the command npm install forever Il giorno giovedì 15 marzo 2012 15:00:45 UTC+1, g sambolic ha scritto: > > Try with forever: > http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever > > Dana ponedjelj

Re: [nodejs] Q: connections, the event loop and the one-and-only JS thread

2012-03-15 Thread C. Mundi
Ok. Thanks. I always knew something smart was happening, and this is the first time I decided to not take it for granted. On Mar 15, 2012 12:30 AM, "Axel Kittenberger" wrote: > There are not only callbacks, but also event emitters. In you client > "conn.on('data', .." listens to an event emitte

Re: [nodejs] Q: connections, the event loop and the one-and-only JS thread

2012-03-15 Thread C. Mundi
This is helpful, and broadens my perspective. Thanks for cleaning up my nomenclature! On Mar 15, 2012 3:29 AM, "Jorge" wrote: > On Mar 15, 2012, at 6:53 AM, C. Mundi wrote: > > > I know *what* the following code does. I want to understand *why*. > > > > Consider the following client/server pair

[nodejs] Re: How to handle errors in Express - very confused

2012-03-15 Thread tjholowaychuk
you shouldn't really ever throw, Connect / Express will catch what they can but not in async callbacks etc. The error handling middleware work just like regular middleware, so they're executed in sequence, however *usually* you'll have only one, typically defined as the very last middleware, so

[nodejs] So.. this javascript thing :)

2012-03-15 Thread Bjorn
Hi! First off, Node is great. I'm used to writing enterprise C++ servers using the same evented paradigm - and Node is a really compelling and fun alternative. However, the language barrier is a tough one. I have a question, that while it's not directly Node related, it's been brought up by my

Re: [nodejs] So.. this javascript thing :)

2012-03-15 Thread Gary Katsevman
I believe that JS would first finish the onMessage callback function then call the setInterval callback function. Since, JS doesn't guarantee that the functions will run at the interval just that it will try its best to do so. -- Gary Katsevman Computer Science Undergraduate Northeastern Universit

Re: [nodejs] So.. this javascript thing :)

2012-03-15 Thread Ben Noordhuis
On Thu, Mar 15, 2012 at 16:36, Bjorn wrote: > Hi! > > First off, Node is great. I'm used to writing enterprise C++ servers using > the same evented paradigm - and Node is a really compelling and fun > alternative. However, the language barrier is a tough one. > I have a question, that while it's n

[nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Roly Fentanes
Javascript is single threaded. Anything asynchronous that happens, happens at the end of the execution stack. In node, asynchronous calls are queued up, then when they are ready to call the callback, they do so in order. They do not get executed in the middle of code. On Thursday, March 15, 20

[nodejs] Running node inside a chroot

2012-03-15 Thread Alfredo64
Hello, i'm making a node.js public sandbox, something like codepad for Javascript. I'm running a VM with debian and i call node via ssh sendind the script to be ran. The problems i'm having is that i've tried the Sandbox module, but it doesn't allow for node modules or functions. I want to whit

Re: [nodejs] PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread David Clements
So is this print function inbuilt to the PHP v8 extension? It's not declared, also.. what a crazy example On Thu, Mar 15, 2012 at 2:55 PM, Isaac Schlueter wrote: > The string being stored to $JS is valid javascript. > > len = print('Hello' + ' ' + 'World!' + "\n"); > len; > > JavaScript programs

Re: [nodejs] PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread Scott González
Yes; exit(), sleep(), print(), and var_dump() are all available. Scroll to the bottom of http://svn.php.net/viewvc/pecl/v8js/trunk/v8js_methods.cc?view=markup On Thu, Mar 15, 2012 at 12:50 PM, David Clements < huperekch...@googlemail.com> wrote: > > So is this print function inbuilt to the PHP v

[nodejs] Recommendation for test framework for objects which util.inherits EventEmitter.

2012-03-15 Thread Chris Dew
I'm currently using Vows, but finding it difficult to write tests to respond to the firing of events from objects which util.inherits EventEmitter. Has anyone had success testing EventEmitters in other frameworks? Thanks, Chris. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: http

Re: [nodejs] Running node inside a chroot

2012-03-15 Thread Jann Horn
Am Donnerstag, den 15.03.2012, 09:19 -0700 schrieb Alfredo64: > Hello, i'm making a node.js public sandbox, something like codepad for > Javascript. I'm running a VM with debian and i call node via ssh sendind > the script to be ran. The problems i'm having is that i've tried the > Sandbox modul

[nodejs] Version 0.6.13 (stable)

2012-03-15 Thread Isaac Schlueter
2012.03.15 Version 0.6.13 (stable) * Windows: Many libuv test fixes (Bert Belder) * Windows: avoid uv_guess_handle crash in when fd < 0 (Bert Belder) * Map EBUSY and ENOTEMPTY errors (Bert Belder) * Windows: include syscall in fs errors (Bert Belder) * Fix fs.watch ENOSYS on Linux kernel versi

Re: [nodejs] Running node inside a chroot

2012-03-15 Thread Alfredo64
What do you mean? El jueves 15 de marzo de 2012 18:30:58 UTC+1, Jann Horn escribió: > > Am Donnerstag, den 15.03.2012, 09:19 -0700 schrieb Alfredo64: > > Hello, i'm making a node.js public sandbox, something like codepad for > > Javascript. I'm running a VM with debian and i call node via ssh sen

Re: [nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Mark Hahn
That beauty of node is that you *don't* have to worry about concurrency issues like that. -- 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 "nodej

Re: [nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Isaac Schlueter
+1 What everyone else said. However, you MAY still have a race condition here! ```javascript var outputBuffer = ""; SetInterval(function() { outputBuffer += "asdf"; }, 100); websocket.onMessage(function() { // reply with outputbuffer send(outputBuffer); // Race con

[nodejs] best practices for writing cross-platform node applications

2012-03-15 Thread Ted Young
Since node is making such a strong effort to be cross-platform compatible, I thought I would start making more of an effort as well. However, I'm not familiar with systems other than linux/osX, and I imagine a number of noders are in the same category. What best practices should we follow to h

Re: [nodejs] best practices for writing cross-platform node applications

2012-03-15 Thread Isaac Schlueter
This is a great idea for a wiki page, yes. On Thu, Mar 15, 2012 at 12:44, Ted Young wrote: > paths - how necessary is it to use the path module?  For example, is it > necessary to use in require() statements?  fs statements? Use path.resolve() to resolve paths and make relative paths absolute. D

[nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread phidelta
Hi Isaac, this would make a great addition to the Buffer documentation. I did not think of that and I actually read the node source code. It's obvious once you point it out though. Maybe a hint in the docs would be a "Good Thing"™. On Mar 15, 8:09 pm, Isaac Schlueter wrote: > +1 What everyone el

Re: [nodejs] Running node inside a chroot

2012-03-15 Thread Jann Horn
Am Donnerstag, den 15.03.2012, 11:23 -0700 schrieb Alfredo64: > What do you mean? Make an OS-level sandbox per user. Put node installations in the sandboxes. > El jueves 15 de marzo de 2012 18:30:58 UTC+1, Jann Horn escribió: > > > > Am Donnerstag, den 15.03.2012, 09:19 -0700 schrieb Alfredo64:

[nodejs] Re: Recommendation for test framework for objects which util.inherits EventEmitter.

2012-03-15 Thread Chad Retz
What I do in Mocha is simply take the done callback and call it with success once I hit the event and either have a timeout otherwise or call the done callback with an error on an "end" if I know the proper event wasn't emitted. On Thursday, March 15, 2012 12:26:43 PM UTC-5, Chris Dew wrote: >

[nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Marcin Zawadzki
Hi Isaac actually you are right, except that you have a bug in your example. Callig fs.read() function takes 6 arguments, not 5 as you wrote. So you forgot probably to pass second parameter which should be the buffer. So for people reding your code it is not clear how the buffer could be change

Re: [nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Isaac Schlueter
Ack! Indeed, the hazards of using gmail as your IDE. Should be this: ```javascript var fd = fs.openSync("foo.txt", "r") var buf = new Buffer(fs.statSync("foo.txt").size) buf.fill(0) fs.read(fd, buf, 0, buf.length, 0, function () { throw new Error("This will never be called") }) while (true) { /

[nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Marco Rogers
The call for speakers is open for NodeConf 2012. I want to talk about streams in node. Last year I only got a half hour to cover a large topic. This may be a simliar situation. But at a high level you an vote for any or all of these. - What do we mean by streams? require('stream'). How these re

[nodejs] 4th Globals Programming Challenge - USD $3,500 Grand Prize...

2012-03-15 Thread Michael Pantaleo
Want to show how good you are at coding "Big Data" solutions? InterSystems Corp. is hosting a series of programming challenges in the Globals Community. Our 4th Globals Challenge kicks off with a seven day competition on Thursday, 29 March 2012 @ 18:00 EDT with the following offerings: - A ca

[nodejs] Re: PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread Andy
does anything else think it's terrible that integration with v8 made it into the CORE of php? -- 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 "

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mikeal Rogers
All talks are 20 minutes this year :) On Mar 15, 2012, at March 15, 20123:38 PM, Marco Rogers wrote: > The call for speakers is open for NodeConf 2012. I want to talk about streams > in node. Last year I only got a half hour to cover a large topic. This may be > a simliar situation. But at a hi

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Stewart Mckinney
Wait; is that for real? ( 20 minute limit? ) On Thu, Mar 15, 2012 at 6:53 PM, Mikeal Rogers wrote: > All talks are 20 minutes this year :) > > On Mar 15, 2012, at March 15, 20123:38 PM, Marco Rogers wrote: > > The call for speakers is open for NodeConf 2012. I want to talk about > streams in node

Re: [nodejs] Re: PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread Mark Hahn
> does anything else think it's terrible that integration with v8 made it into the CORE of php? Why is that terrible? Maybe php will compete with node. That would be cool. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guide

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mark Hahn
Will they play you off with an orchestra as the Oscars do? -- 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 post to this group

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mikeal Rogers
yes, it's a talk, not a tutorial. btw, TED talks are all between 10 and 20 minutes :) On Mar 15, 2012, at March 15, 20124:33 PM, Stewart Mckinney wrote: > Wait; is that for real? ( 20 minute limit? ) > > On Thu, Mar 15, 2012 at 6:53 PM, Mikeal Rogers > wrote: > All talks are 20 minutes this y

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mikeal Rogers
I'm working with an independent contractor to build one of those giant cane hooks to pull people off stage like in the cartoons :P On Mar 15, 2012, at March 15, 20124:35 PM, Mark Hahn wrote: > Will they play you off with an orchestra as the Oscars do? > > > -- > Job Board: http://jobs.nodejs.

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mark Hahn
All you need is a really long cane. -- 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 post to this group, send email to nodejs@

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mark Hahn
Oops, you said cane. I read it as crane, which is even funnier. -- 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 post to this

Re: [nodejs] Re: PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread Dave Clements
I thought it was a optional extension! Including in core surely adds bloat? PHP is already too fat to compete with Node, although it would be cool if we could port Node code straight into PHP for legacy apps. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyen

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Dave Clements
I wonder is there any demand for a British NodeConf? I wouldn't mind talking about the possibilities of making that happen. -- 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 sub

Re: [nodejs] Re: PHP v8 (a little off topic, but you'se are the best guys I know)

2012-03-15 Thread Matt Patenaude
It's not in the PHP core, it's a PECL extension. Just because the docs are hosted at php.net doesn't mean it's part of the core! -Matt On Mar 15, 2012, at 7:41 PM, Dave Clements wrote: > I thought it was a optional extension! > > Including in core surely adds bloat? > > PHP is already too fat

[nodejs] Finding native memory leaks in node

2012-03-15 Thread Jimb Esser
We have some servers running node.js under Ubuntu. After a day or two of running, once and a while, a node process will be using something like 4gb of memory. process.memoryUsage() indicates something like rss: 4gb, heapTotal: 50mb, heapUsed: 40mb, so the memory is not in anything a V8 heap snaps

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Mikeal Rogers
I'm talking with a few people about european NodeConf's already. Feel free to email me. On Mar 15, 2012, at March 15, 20124:45 PM, Dave Clements wrote: > I wonder is there any demand for a British NodeConf? > > I wouldn't mind talking about the possibilities of making that happen. > > -- > Jo

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Nuno Job
20 minutes? way too long :) On Thu, Mar 15, 2012 at 11:54 PM, Mikeal Rogers wrote: > I'm talking with a few people about european NodeConf's already. Feel free > to email me. > > On Mar 15, 2012, at March 15, 20124:45 PM, Dave Clements wrote: > > I wonder is there any demand for a British NodeCo

Re: [nodejs] Nominate me for a NodeConf 2012 Streams talk

2012-03-15 Thread Matt
People need to talk more about streams. Here's a stream I wrote for Haraka that stores lines of text (of emails for Haraka, but kind of irrelevant), and overflows to a file when it gets too big. The main aim was to be able to just .pipe() into something else, but with a customisable filter in the

Re: [nodejs] Finding native memory leaks in node

2012-03-15 Thread Ben Noordhuis
On Fri, Mar 16, 2012 at 00:49, Jimb Esser wrote: > We have some servers running node.js under Ubuntu.  After a day or two > of running, once and a while, a node process will be using something > like 4gb of memory.  process.memoryUsage() indicates something like > rss: 4gb, heapTotal: 50mb, heapUs

Re: [nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Matt
On Thu, Mar 15, 2012 at 6:08 PM, Isaac Schlueter wrote: > Ack! Indeed, the hazards of using gmail as your IDE. > Careful, someone will come up with that as a product idea :) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gui

[nodejs] Re: HELP! Windows NPM problem

2012-03-15 Thread Maiah Macariola
Thank jg, but now I moved my dev environment to Ubuntu linux and everything works fine for the moment. It seems Windows build of Nodejs isn't that good enough to work with. On Saturday, March 10, 2012 10:04:45 PM UTC+8, jg wrote: > > I ran I tithe same issue. It turned out to be the dependence w

Re: [nodejs] Re: HELP! Windows NPM problem

2012-03-15 Thread Maiah Macariola
It works fine in my Ubuntu linux setup! :) On Saturday, March 10, 2012 12:04:29 AM UTC+8, Isaac Schlueter wrote: > > Even more importantly, in this case, dtrace will probably never be > ported to windows, so it really ought to be an optional dependency, > imo. https://github.com/mcavage/node-rest

Re: [nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Brandon Benvie
On Thursday, March 15, 2012 3:09:34 PM UTC-4, Isaac Schlueter wrote: > > while (true) { // loop goes forever, jealously holding onto this tick > for (var i = 0; i < buf.length; i ++) { > // I sure hope there are no break-ins... > if (buf[i] !== 0) { > throw new Error("*HIDE YA KIDS

Re: [nodejs] Re: So.. this javascript thing :)

2012-03-15 Thread Brandon Benvie
On Thursday, March 15, 2012 3:09:34 PM UTC-4, Isaac Schlueter wrote: > > while (true) { // loop goes forever, jealously holding onto this tick > for (var i = 0; i < buf.length; i ++) { > // I sure hope there are no break-ins... > if (buf[i] !== 0) { > throw new Error("*HIDE YA KIDS

[nodejs] Re: Node.js Clustering and interprocess communication

2012-03-15 Thread Murat T.
Hi Guys, Those are the exact things I wanted. I have played with clusterhub but in the end switched to mongo. It reduced the complexity of the application. It seems Redis wasn't suitable for this job, as I deleted 300+ lines of code after the switch. Thanks again, On Saturday, March 10, 2012

[nodejs] fs.watch and fs.watchFile

2012-03-15 Thread C. Mundi
I am aware that there are platform-specific issues with watching files. But I am getting strange-bad results just on Linux. Please tell me I am doing something silly below. var fs = require('fs'); function act(curr, prev) { console.log('the current mtime is: ' + curr.mtime); console.log('the

Re: [nodejs] Re: HELP! Windows NPM problem

2012-03-15 Thread Brandon Benvie
A no node is fine on Windows. Node is more than fine on Windows, in fact node runs faster on Windows than it does on Linux, and the entire API is cross-compatible with any OS node supports. Where you'll run into issues is outside the purview of node itself. Personally, I spend the entirety

Re: [nodejs] Re: HELP! Windows NPM problem

2012-03-15 Thread Anand George
The short period of time I tried running Node.js on Windows made me more religious. Each time I tried installing a module, I'd pray that everything goes fine ;). On Fri, Mar 16, 2012 at 12:11 PM, Brandon Benvie wrote: > A no node is fine on Windows. Node is more than fine on Windows, in > fac

Re: [nodejs] Abridged summary of nodejs@googlegroups.com - 73 Messages in 20 Topics

2012-03-15 Thread Ratnadeep Deshmane
-- 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 post to this group, send email to nodejs@googlegroups.com To unsubscribe fro