[nodejs] Jasmine & Debugger?

2012-02-07 Thread P. Douglas Reeder
I'm working on a module, and I've written some Jasmine specs. I need to use a debugger to continue work. Which debugger is easiest to get working with Jasmine and node? I just need to set a few breakpoints and inspect a few variables. jasmine-node doesn't appear to take a --debugger argument, t

Re: [nodejs] Will request.pause() get fixed?

2012-02-07 Thread Will Wen Gunn
The bug has been fixed on v0.7.0. 在 2012年2月7日星期二,Denis Washington 写道: > Hi, > > I am trying to implement authenticated file upload, which means that I > want to check any request before reading in the POST body. As the checking > requires IO, though, I cannot (and don't want to) listen to the re

[nodejs] Re: bug of listening on a used port in worker of cluster ?

2012-02-07 Thread 王 逍
And if the port is used by other non node processes, listen in child process will success on random port too. On 2月8日, 下午12时14分, 王 逍 wrote: > varcluster= require('cluster'); > var http = require('http'); > var net = require('net'); > var util = require('util'); > > if (cluster.isMaster) { >   //

[nodejs] Re: bug of listening on a used port in worker of cluster ?

2012-02-07 Thread 王 逍
var cluster = require('cluster'); var http = require('http'); var net = require('net'); var util = require('util'); if (cluster.isMaster) { // Fork workers. for (var i = 0; i < 2; i++) { cluster.fork(); } cluster.on('death', function(worker) { console.log('worker ' + worker.pid +

[nodejs] Re: V8 profiler tick processor quesiton

2012-02-07 Thread Chris Scribner
Do you know if it's possible using the Linux-tick-processor that ships with v8? Thanks for the update to nprof, I'll check it out. Chris On Feb 7, 7:13 pm, Ben Noordhuis wrote: > On Tue, Feb 7, 2012 at 23:43, Chris Scribner wrote: > > Does anyone know how to get deeper stack frames on the "Bot

Re: [nodejs] Any Easy-Cheezy-Small-CMS for nodejs?

2012-02-07 Thread Anand George
Tried downloading and running locally. Browser shows 'We couldn't find that resource on our server'. Is there something I'm missing. On Tue, Feb 7, 2012 at 10:42 PM, Skyler Brungardt wrote: > I just stood something up like this, actually: > > http://nooline.org > > Meets all the reqs you listed e

[nodejs] Re: Isolates removed

2012-02-07 Thread Liam
Jorge Chamorro wrote a native module to allow workers based on threads and Isolates, and was planning to enable inter-thread communication via Buffers. The workers don't provide the Node API, just a way to run CPU-intensive JS out of the main thread. He didn't release the code publicly, but shared

Re: [nodejs] Re: Figuring out the latest green node.js build

2012-02-07 Thread Ricky Ng-Adam
On Wednesday, February 8, 2012 12:26:40 AM UTC+8, Isaac Schlueter wrote: > We have pretty much always had a few failing tests. Those of us > working on core directly pretty much know which ones are "ok" and > which ones indicate something new being broken. > > This is an area that needs to improv

[nodejs] Node v0.7.3 (unstable)

2012-02-07 Thread Isaac Schlueter
2012.02.07, Version 0.7.3 (unstable) * Upgrade V8 to 3.9.2 * Revert support for isolates. (Ben Noordhuis) * cluster: Cleanup docs, event handling, and process.disconnect (Andreas Madsen) * gyp_addon: link with node.lib on Windows (Nathan Rajlich) * http: fix case where http-parser is freed twi

Re: [nodejs] V8 profiler tick processor quesiton

2012-02-07 Thread Ben Noordhuis
On Tue, Feb 7, 2012 at 23:43, Chris Scribner wrote: > Does anyone know how to get deeper stack frames on the "Bottom up > (heavy) profile"? > > I have some output like > >  14564   37.5%  /usr/local/bin/node >   6725   46.2%    Function: ... >   6719   99.9%      Function: ... >   6712   99.9%    

Re: [nodejs] bundle javascript for reuse in the browser

2012-02-07 Thread Azer Koçulu
I would like to mention OneJS (http://github.com/azer/onejs) in this topic. It's a new one, creates stand-alone JavaScript files that can be run on all JS platforms, from NodeJS packages. Here is a usage example; $ onejs build package.json build/standalone.js (an example output: http://multiplayer

[nodejs] Re: 3rd Globals Programming Challenge - USD $3,500 Grand Prize...

2012-02-07 Thread Michael Pantaleo
The 3rd Globals Challenge starts in just 3 short days... I hope to see a bunch of you Node.js developers come and show off your skills, for a chance to win US $3,500. See you on Friday at 18:00 EST... http://GlobalsDB.org/mchallenges/ - Michael On Jan 28, 6:25 pm, Michael Pantaleo wrote: > The

[nodejs] V8 profiler tick processor quesiton

2012-02-07 Thread Chris Scribner
Does anyone know how to get deeper stack frames on the "Bottom up (heavy) profile"? I have some output like 14564 37.5% /usr/local/bin/node 6725 46.2%Function: ... 6719 99.9% Function: ... 6712 99.9%Function: ... 6693 99.7% Function: ... 6659

[nodejs] Re: node-webkit: a NodeJS module for WebKit

2012-02-07 Thread Mahin
Are you trying to achieve something like Chromeless project? http://mozillalabs.com/chromeless using Chromess, you can develop desktop apps using HTML5, CSS, Javascript and compile it to respective platform On Jan 4, 7:07 am, Roger WANG wrote: > node-webkit brings WebKit to NodeJS. With it, cl

Re: [nodejs] Any Easy-Cheezy-Small-CMS for nodejs?

2012-02-07 Thread Skyler Brungardt
I just stood something up like this, actually: http://nooline.org Meets all the reqs you listed except a WYSIWYG, as I haven't built one yet. Happy to answer any questions you have on it. -Skyler On Feb 7, 2012, at 7:24 AM, Axel Kittenberger wrote: > Dear List, I'm looking for something

[nodejs] new node.js project: HTTP and WebSocket application routing and management

2012-02-07 Thread Tomasz Janczuk
I just published a new project that allows you to expose several HTTP or WebSocket applications over a single TCP port, and provide routing and process management for those applications. This is useful for better utilization of servers, including shared hosting. Check it out at https://github.com/

Re: [nodejs] Re: [node-dev] RFH: Cross-platform binary modules

2012-02-07 Thread Nathan Rajlich
Samori, you should definitely update your example module to use node-gyp instead of node-waf! We want new module authors to use the new stuff; forward compatibility and all that. On Tue, Feb 7, 2012 at 8:14 AM, Samori Gorse wrote: > +1 on the general idea. > > I've been waiting for the node-waf

Re: [nodejs] Re: Will request.pause() get fixed?

2012-02-07 Thread Mikeal Rogers
What you mean by "pause" is not what node meant as "pause" in the past. In the past, pause meant "send a signal to the input stream to stop sending me data", that did not insure that data that was enroute wasn't still going to be emitted. >From a high level, your vision of "pause" makes a lot mo

Re: [nodejs] bundle javascript for reuse in the browser

2012-02-07 Thread Phoscur
Thank you! That is useful information. I'm going to spend some time with the YUI documentation. Am 07.02.2012 07:27, schrieb Joe Developer: > Here is what I do: > > 1. Leverage the YUI3 module > system: http://yuilibrary.com/yui/docs/yui/yui-loader-ext.html > 2. Define my own modules within those

Re: [nodejs] Isolates removed

2012-02-07 Thread Jeff Barczewski
+1 stability and debugging first -- 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@goo

Re: [nodejs] Re: Figuring out the latest green node.js build

2012-02-07 Thread Isaac Schlueter
We have pretty much always had a few failing tests. Those of us working on core directly pretty much know which ones are "ok" and which ones indicate something new being broken. This is an area that needs to improve. Tests that are known to fail (and ignored via oral tradition) are not very usef

Re: [nodejs] Re: Will request.pause() get fixed?

2012-02-07 Thread Isaac Schlueter
On Tue, Feb 7, 2012 at 03:09, Bert Belder wrote: > If people really like the old situation > we could make the old behavior optional, e.g. > `stream.pause(allowData=false)`. No one wants the old behavior. It's only confusing. We do need to put some kind of limit on how much will be buffered, ho

Re: [nodejs] Re: [node-dev] RFH: Cross-platform binary modules

2012-02-07 Thread Samori Gorse
+1 on the general idea. I've been waiting for the node-waf -> node_gyp switch for a while now. I'm working on a project to help node.js module authors get started with the whole C++ thing: https://github.com/shinuza/node-cc-module-boilerplate The biggest problem with node-waf is that the vers

Re: [nodejs] bug of listening on a used port in worker of cluster ?

2012-02-07 Thread Shinuza
Not sure if I get this either. But from my understanding: if you run the Cluster examplemultiple times (i.e in two different terminals) the listening port will be shared across all of the workers. If you have 4 "cpus", using this example,

[nodejs] Re: node clustered http server workers die with misleading error

2012-02-07 Thread NodeJazz
> Node will switch to using the win32 api alone. That was always the > plan, but we didn't get there yet. In the meanwhile could you please patch node with a check on the return value of _open_osfhandle() and bump up the file handle limit to 2048 using _setmaxstdio()? -- -- Job Board: http://jo

Re: [nodejs] Any Easy-Cheezy-Small-CMS for nodejs?

2012-02-07 Thread Axel Kittenberger
Calipso uses a database. While I got mongodb already running, I would just prefer not to for small sites. Its just easier to move the site etc. generally Calipso more "big scale" rather than "small and easy" what I'm looking for. Secondly Calipso is not 0.6 compatible, which is a no go, since I use

[nodejs] Re: node clustered http server workers die with misleading error

2012-02-07 Thread Bert Belder
On Feb 7, 11:56 am, Cosmere Infahm wrote: > > Probably an insufficiency unless demonstrated otherwise. Network > > errors happen, even on loopback devices. > > The return value is not being checked after the line >    result = _open_osfhandle((intptr_t)file, flags); > in fs.c > > In my case the re

Re: [nodejs] Any Easy-Cheezy-Small-CMS for nodejs?

2012-02-07 Thread Anand George
If you don't intend to use a database check out http://howtonode.org/ On Tue, Feb 7, 2012 at 6:01 PM, Anand George wrote: > Have you checked out Calipso. > > On Tue, Feb 7, 2012 at 5:54 PM, Axel Kittenberger wrote: > >> Dear List, I'm looking for something like: >> http://gpeasy.com/ >> only wi

Re: [nodejs] Any Easy-Cheezy-Small-CMS for nodejs?

2012-02-07 Thread Anand George
Have you checked out Calipso. On Tue, Feb 7, 2012 at 5:54 PM, Axel Kittenberger wrote: > Dear List, I'm looking for something like: > http://gpeasy.com/ > only with node.js as base instead of PHP/Apache > > Focus on very easy install / maintenance rather than size/tons of users > etc. > * Datab

[nodejs] Any Easy-Cheezy-Small-CMS for nodejs?

2012-02-07 Thread Axel Kittenberger
Dear List, I'm looking for something like: http://gpeasy.com/ only with node.js as base instead of PHP/Apache Focus on very easy install / maintenance rather than size/tons of users etc. * Database less please (Everything simply in Files) * After initial setup full configuration of all looks etc.

Re: [nodejs] bug of listening on a used port in worker of cluster ?

2012-02-07 Thread Ben Noordhuis
On Tue, Feb 7, 2012 at 05:07, 王 逍 wrote: > When listen on a used port in worker(child processes) of cluster, > EADDRINUSE will not be emitted, and server listen on a random port. > But in master, it emmits EADDRINUSE error, which is expected. Is it a > bug in child process? I'm not quite sure wha

Re: [nodejs] Re: Embedding Node?

2012-02-07 Thread Paddy Byers
Hi, This can be easy or hard depending on what you want your app to do. If you are simply "re-branding" the node executable, in the sense that your app will just enter the node event loop and stay there until the app exits, then you could either include the node source into your app project direct

[nodejs] Re: Embedding Node?

2012-02-07 Thread billywhizz
btw - i haven't tried this on windows but presume it works the same as below... On Feb 7, 11:15 am, billywhizz wrote: > if you look at the node.js file in the src directory you will see the > following: > >     if (NativeModule.exists('_third_party_main')) { >       // To allow people to extend N

[nodejs] Re: Embedding Node?

2012-02-07 Thread billywhizz
if you look at the node.js file in the src directory you will see the following: if (NativeModule.exists('_third_party_main')) { // To allow people to extend Node in different ways, this hook allows // one to drop a file lib/_third_party_main.js into the build // directory wh

[nodejs] Re: Will request.pause() get fixed?

2012-02-07 Thread Bert Belder
On Feb 7, 7:47 am, Mikeal Rogers wrote: > This is not a bugfix, IMO, it's a feature. A feature we all want, a feature > that fixes something newcomers trip on often, but previous released > *intended* for the behavior to be the way it was and we have now changed it > because this new way is bet

[nodejs] Re: Figuring out the latest green node.js build

2012-02-07 Thread billywhizz
as far as i know, the 0.6 branch is the current stable one. stable branches are always even numbers and unstables branches are odd. the latest stable release should be this one: https://github.com/joyent/node/zipball/v0.6.10 On Feb 7, 7:26 am, Ricky Ng-Adam wrote: > Hello! > > How do I find the

Re: [nodejs] Re: node clustered http server workers die with misleading error

2012-02-07 Thread Cosmere Infahm
> Probably an insufficiency unless demonstrated otherwise. Network > errors happen, even on loopback devices. The return value is not being checked after the line result = _open_osfhandle((intptr_t)file, flags); in fs.c In my case the return value is -1 and errno is set to EMFILE ie I encounte

[nodejs] Looking for simple yet complete graph module

2012-02-07 Thread manimal45
Hi, Is there any graph library for node.js. I'm looking for something like Python's networkX module, with - graph definition - search algorithms, especially : IAstar, beam search. I don't need to store anything too big, so I'm not interested in graph database like neo4j. -- Job Board: http:/

Re: [nodejs] Embedding Node?

2012-02-07 Thread Nuno Job
I think there's no program to do this for you. You can create such program as this is certainly possible to do. We've talked about this in the latest episode of NodeUp [ http://nodeup.com/twelve] if you are interested to know what Isaacs thinks about the topic. Nuno On Tue, Feb 7, 2012 at 8:26

[nodejs] Embedding Node?

2012-02-07 Thread 叶雨飞
Hi, I'm developing a windows program which I want to directly embedding node run-time and execute in-memory scripts, is this possible? is there any document? Another possible solution I know of is embedding node binary and extract to a temporary location, write script files and execute from there