[nodejs] Re: Make errors: Linux ia32, for node-v0.6.6 and node-v0.4.8

2012-03-21 Thread Dmitry Bochkarev
Hello everyone. I just compile node v 0.6.13 in CentOS 4. 1) in file src/node_zlib.cc comment line 217 'strategy == Z_FIXED ||' line 341 'NODE_DEFINE_CONSTANT(target, Z_FIXED);' 2) export PYTHON=python2.4;export CC=/usr/bin/gcc4;export CXX=/usr/ bin/g++4;./configure --without-snapshot

Re: [nodejs] Weird dependency installation behaviour with NPM ?

2012-03-21 Thread Isaac Schlueter
Fredrik, If you install a package at the higher level first, then npm will only install a second copy if necessary. (In which case, even though it's the same name, it's actually a different thing.) Check out `npm ls` to see exactly what's installed where. On Tue, Mar 20, 2012 at 17:24, Fredrik

Re: [nodejs] Isolates removed [threads_a_gogo] updated

2012-03-21 Thread Jorge
On Mar 13, 2012, at 2:14 PM, Jorge wrote: On Feb 3, 2012, at 10:28 PM, Isaac Schlueter wrote: (...) (...) If you've downloaded the version 0.1.0 of threads_a_gogo already, please update now to the latest v0.1.1 that fixes a tiny (32 bytes) leak that was happening when a thread emits an

[nodejs] Re: stdout/stderr blocking

2012-03-21 Thread mscdex
On Mar 21, 5:56 am, billywhizz apjohn...@gmail.com wrote: could anyone enlighten me on why writing to stdout and stderr now blocks? also, do we have a list somewhere of which methods in node.js block by default? to start the ball rolling: I think writes to stderr have always been synchronous,

Re: [nodejs] Re: authentication scheme / model

2012-03-21 Thread Lorenzo Giuliani
this is a small example of what I am using to manage users on one of my small applications: https://gist.github.com/2146378 This example is a basic mongoose model. I try to avoid big libraries like everyauth if I am building a small website and prefer to roll my own authentication policy to

[nodejs] Re: [ANN] reified, Binary Data API for Node + Browsers. Powerful, easy to use, and performance conscious. ES6 binary data spec inspired.

2012-03-21 Thread Brandon Benvie
I reordered the documentation to ensure it's obvious that this library is NodeUp compatible. The entirety of the API is accessible from the reified function. ;) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You

Re: [nodejs] stdout/stderr blocking

2012-03-21 Thread Jorge
On Mar 21, 2012, at 10:56 AM, billywhizz wrote: could anyone enlighten me on why writing to stdout and stderr now blocks? also, do we have a list somewhere of which methods in node.js block by default? to start the ball rolling: process.stdout.write (unless stdout is a pipe)

[nodejs] Creating an ArrayBuffer from a native module

2012-03-21 Thread quinnirill
Hey everyone, I'm making a node module https://github.com/jussi-kalliokoski/node-cubebfor libcubeb https://github.com/kinetiknz/cubeb, an audio playback by Mozilla. I'm trying to expose the library's C API as close to original as possible and build a JavaScript abstraction on top of that. The

Re: [nodejs] Re: a good practice to handle date

2012-03-21 Thread Dave Clements
Are you sure this isn't just a time discrepency between first date and second date? node EOF while(1) { if (Date.now() === Date.now()) { process.stdout.write('.'); } else { console.log('fail'); break; } } EOF

Re: [nodejs] Re: a good practice to handle date

2012-03-21 Thread Jorge
Yes, time keeps flowing like a river... :-P -- Jorge. On Mar 21, 2012, at 3:19 PM, Dave Clements wrote: Are you sure this isn't just a time discrepency between first date and second date? node EOF while(1) { if (Date.now() === Date.now()) { process.stdout.write('.'); }

[nodejs] Re: Is there a way to install node.js on mac os without sudo?

2012-03-21 Thread Mihai Tomescu
I also use nvm and it's great for handling multiple versions of node. On Tuesday, March 20, 2012 8:31:57 AM UTC-4, Alexey Petrushin wrote: As far as I know there's currently 2 ways to install node on mac: 1. As `brew install node`. It doesn't require sudo, but npm sometimes doesn't work as

Re: [nodejs] Re: a good practice to handle date

2012-03-21 Thread Mihai Tomescu
Haha ;) On Wednesday, March 21, 2012 11:07:05 AM UTC-4, Jorge wrote: Yes, time keeps flowing like a river... :-P -- Jorge. On Mar 21, 2012, at 3:19 PM, Dave Clements wrote: Are you sure this isn't just a time discrepency between first date and second date? node EOF while(1) {

[nodejs] Re: working with synchronous libraries

2012-03-21 Thread Mihai Tomescu
Just create your own validateAsync... hint: look at how Backbone._validate is implemented. On Tuesday, March 20, 2012 7:12:57 AM UTC-4, Bika wrote: hi, I'm trying to use backbone for everything on the server side too, and got stuck with doing a proper validation. The problem is that

[nodejs] Re: Any interest in Pittsburgh NodeJS meetup group?

2012-03-21 Thread Nikkio
yep :) http://www.meetup.com/Pittsburgh-Node-js/ On Friday, December 30, 2011 11:07:17 AM UTC-5, vicapow wrote: Hello All, I was just wondering if there was any interest in the Pittsburgh region for a NodeJS meetup group and if anyone had any information or suggestions for setting one

Re: [nodejs] Re: minimalist OS for web server: Raspberry Pi?

2012-03-21 Thread AJ ONeal
I'm working on a media server and I'm having problems with events being lost. Only on ARM. Works as expected on x86 (but I'm hoping to get this on raspberry pi). I'm trying to get a reduced test case to submit for a bug report. The problem is that under low load I don't see the problem. When

[nodejs] Re: minimalist OS for web server: Raspberry Pi?

2012-03-21 Thread mscdex
On Mar 21, 3:36 pm, AJ ONeal coola...@gmail.com wrote: I can see that setTimeout is actually losing events (console.log before, after, and inside), but I'm still trying to reproduce it without the heavy io load. What version of node? -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

[nodejs] Re: NodeConf 2012

2012-03-21 Thread Bry
Can you guys record the talks and the slides etc? Kinda like camp.nodejs.org On Tuesday, March 20, 2012 7:20:51 PM UTC-4, weyus wrote: All, I found out that there is apparently going to be a Node.js conference in Portland this summer. Is there any other information about it besides what

Re: [nodejs] Request for feedback: Native addon memory management

2012-03-21 Thread Matt Gollob
Thanks Ben, that was enough of a nudge in the right direction that I was able to figure things out I think. If you have time, could you possibly review https://github.com/mattness/addonSample/commit/8c775e96 to confirm? Thank you very much for your help. I appreciate it. Matt On Tuesday,

[nodejs] reload a child_process if the process die unexpectedly?

2012-03-21 Thread kenhty
Anyone know how to do 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 nodejs group. To post to this group, send email to

Re: [nodejs] Re: [ANN] reified, Binary Data API for Node + Browsers. Powerful, easy to use, and performance conscious. ES6 binary data spec inspired.

2012-03-21 Thread Brandon Benvie
For some reason I spaced out and forgot that DataViews and ArrayBuffers work perfectly well with node Buffers and so I implemented a kind of useless parallel buffer API. I'm putting the finishing touches on a combined one that uses those in both and it's looking a lot better. It's not really

[nodejs] Snooping on event queue?

2012-03-21 Thread C. Mundi
I may have seen evidence that I could overflow event queues. I rewrote my code to avoid the problem. (The code was a horrible mess anyway.). But I'm curious, especially after reading the Minimalist OS thread, to know what kit exists to instrument the event queues. Not a burning issue for me,

Re: [nodejs] stdout/stderr blocking

2012-03-21 Thread C. Mundi
According to the docs, POSIX signals are mapped to events. I was planning on just catching them. I assume that's how the press ctrlC again to exit is implemented for the REPL. Corrections? On Mar 21, 2012 6:04 AM, Jorge jo...@jorgechamorro.com wrote: On Mar 21, 2012, at 10:56 AM, billywhizz

[nodejs] Re: reload a child_process if the process die unexpectedly?

2012-03-21 Thread dshaw
var exec = require('child_process').exec; function respawn () { var child = exec('date', function (error, stdout, stderr) { console.log('stdout: ' + stdout); console.log('stderr: ' + stderr); if (error !== null) console.log('exec error: ' + error); }); child.on('exit', function