Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Joe Developer
On Thu, Feb 16, 2012 at 10:33 AM, Joe Developer wrote: > > > On Thu, Feb 16, 2012 at 2:40 AM, Liam wrote: > >> >> >> On Feb 15, 10:49 am, Jim Lloyd wrote: >> > On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: >> > > Interesting... Have you considering allowing signup via BrowserID? >> > > Recommen

[nodejs] Re: Control caching of native modules

2012-02-15 Thread Tomasz Janczuk
Wonderful, thank you! On Feb 15, 6:56 pm, Brandon Benvie wrote: > https://gist.github.com/1841241 -- 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 Gro

[nodejs] Re: Node CPU use analysis

2012-02-15 Thread Chris Scribner
Maybe I'm dumb, but I ran into a few issues setting up nginx the first time... It rejected file uploads greater than 1 meg It timed out requests after some short period of time It rejects multi-part form uploads that don't have a proper content length, and doesn't support chunked encoding. We had

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Joe Developer
On Thu, Feb 16, 2012 at 2:40 AM, Liam wrote: > > > On Feb 15, 10:49 am, Jim Lloyd wrote: > > On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: > > > Interesting... Have you considering allowing signup via BrowserID? > > > Recommended! > > > > > I wasn't aware of BrowersID. I just tried it with thei

[nodejs] Re: Control caching of native modules

2012-02-15 Thread Brandon Benvie
https://gist.github.com/1841241 -- 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@goog

[nodejs] Re: Windows Services with Node

2012-02-15 Thread Shimon Doodkin
Apache's prunsrv is also good to run nodejs as service, it has 64 bit version. http://commons.apache.org/daemon/procrun.html Example .bat file - https://gist.github.com/1841079 On Feb 15, 12:21 am, Eric Jacobs wrote: > Hello there, > > I've been playing with getting a node based Windows servic

Re: [nodejs] File Modified Date from an HTTP File?

2012-02-15 Thread Márcio Rezende
If U need read a file property use FS http://nodejs.org/docs/latest/api/fs.html codesigner.com.br Arte e tecnologia (11) 6300-0907 (Claro) 2012/2/15 Randy Merrill > Thanks for the help! > > I was able to retrieve just the HEAD using a HEAD method on the http > re

[nodejs] Re: Control caching of native modules

2012-02-15 Thread Tomasz Janczuk
I tried this, but unfortunately require('native_module') itself throws an exception. This is because NativeModule.exists('native_module') returns false and the loading codepath attempts to treat this module as a regular file-based one. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: ht

Re: [nodejs] Control caching of native modules

2012-02-15 Thread Ben Noordhuis
On Thu, Feb 16, 2012 at 01:10, Tomasz Janczuk wrote: > Is there a way to control the caching of native modules (e.g. http or > net)? I would like to be able to remove entries from that cache to > cause the modules to be re-created from scratch upon subsequent > 'request' for them. > > As far as I

[nodejs] Control caching of native modules

2012-02-15 Thread Tomasz Janczuk
Is there a way to control the caching of native modules (e.g. http or net)? I would like to be able to remove entries from that cache to cause the modules to be re-created from scratch upon subsequent 'request' for them. As far as I can tell this cache is separate from the cache of non- native mod

[nodejs] Re: [ANN] UltraREPL - A greatly extended REPL for Node

2012-02-15 Thread Brandon Benvie
Improvements have continued so I wanted to give this a bump for the new stuff. Each context has its own module load hierarchy, code entered into the REPL can be saved, scripts can be loaded and executed in different contexts, code is now syntax highlighted, flexibility and control for creating

Re: [nodejs] How to deal with xs:duration

2012-02-15 Thread Nuno Job
I don't know of anyone that wrote a library to deal with xs:duration. Your best bet might be to port these: http://www.xqueryfunctions.com/xq/c0002.html#c0032 Nuno 2012/2/15 Pedro Narciso García Revington > xs:duration -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github

Re: [nodejs] How to deal with xs:duration

2012-02-15 Thread Pedro Narciso García Revington
Hi Tim, Thanks for your answer. I'm working with hotel rates. The rates are in xml files. Some rates —like early bookings discounts— are expressed with xs:duration data types. 2012/2/15 Tim Caswell > There is no XML native to node, so I don't quite understand the question, > but I can tell

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Tim Caswell
On Wed, Feb 15, 2012 at 4:14 PM, Matt wrote: > On Wed, Feb 15, 2012 at 5:12 PM, Matt wrote: > >> (or your choice of non-alcoholic beverage). >> > Sweet! ;) > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > Yo

[nodejs] Re: Windows Services with Node

2012-02-15 Thread Simon
I've used Windows Service Wrapper before which uses a simple XML config file and one executable that you drop into your node app's root. It gave me no problems at all, but you have to make your node program accept a stop command (using a pid file or some other w

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 5:12 PM, Matt wrote: > 1) please don't benchmark Node against Nginx for static file serving > unless you're actively working to make it faster - that is a fools game as > Nginx will always be faster. > I should have added in here, so more people don't get mad at me (shees

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 4:48 PM, Dean Landolt wrote: > On Wed, Feb 15, 2012 at 3:27 PM, Matt wrote: > >> On Wed, Feb 15, 2012 at 3:03 PM, Dean Landolt wrote: >> >>> On Wed, Feb 15, 2012 at 12:35 PM, Matt wrote: >>> On Wed, Feb 15, 2012 at 12:01 PM, Chris Scribner wrote: > On the t

Re: [nodejs] How to deal with xs:duration

2012-02-15 Thread Tim Caswell
There is no XML native to node, so I don't quite understand the question, but I can tell you that the Date constructor takes most date formats as input, and you can compare two Date instances to get the difference. https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date 2012/2/

[nodejs] How to deal with xs:duration

2012-02-15 Thread Pedro Narciso García Revington
Hi, I want to check if the difference of two given dates equals a xs:duration value. How can I do it? Thanks in advance Pedro -- 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

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Dean Landolt
On Wed, Feb 15, 2012 at 3:27 PM, Matt wrote: > On Wed, Feb 15, 2012 at 3:03 PM, Dean Landolt wrote: > >> On Wed, Feb 15, 2012 at 12:35 PM, Matt wrote: >> >>> On Wed, Feb 15, 2012 at 12:01 PM, Chris Scribner wrote: >>> On the topic of "why use node to service static files"... Becau

[nodejs] Re: Unable to run npm command on NodeJs(.6)

2012-02-15 Thread sk123
It worked. I had to make sure that npm.cmd was in the same folder as the node.exe . Thank you so much everyone! On Feb 15, 1:17 pm, Brandon Benvie wrote: > It's npm.cmd, not npm.exe. Either would run with `npm` if located in your > path (not from in Node). > > Something that you might find usef

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Thom Blake
I must say, I love the "sign up with Github" option - not sure I've seen that one before. And good signup process in general. While sending a confirmation e- mail instantly seems like a no-brainer these days, there are still plenty of folks who can't manage it. On Feb 14, 7:49 pm, Jim Lloyd wro

Re: [nodejs] Re: Unable to run npm command on NodeJs(.6)

2012-02-15 Thread Brandon Benvie
It's npm.cmd, not npm.exe. Either would run with `npm` if located in your path (not from in Node). Something that you might find useful is this. https://raw.github.com/Benvie/npm/cmd-loop/bin/npm.cmd. Save that wherever your node.exe is, presumably C:\Programs Files (x86)\nodejs. Then you can

[nodejs] Re: Version 0.7.4

2012-02-15 Thread Brandon Benvie
Don't use `node --harmony` with this version going forward. A new flag `--harmony_modules` which causes node to die instantly due to making "module" an identifier. `node --harmony_typeof --harmony_scoping --harmony_proxies --harmony_collections` will achieve the desired result. As for the gener

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Mark Hahn
FWIW, I was quite surprised at how easy it was to set up nginx to front-end node. It took a couple of hours instead of the days I expected. You can think like you do with an apache config but use a much simpler config language that just works. -- Job Board: http://jobs.nodejs.org/ Posting guide

[nodejs] [ANN] STLJS Meetup, Thursday, Feb 16 @ 6:30pm

2012-02-15 Thread Michael Bradley, Jr.
JavaScript Meetup in the Midwest Tomorrow! Thursday, 16 February 2012, 6:30pm STLJS will meet in the The Able Few's corporate offices: Bill Odom will present "Vim for JavaScript Development" and David Jacobs will present "Introduction to Underscore.js" http://www.stljs.org/events/45162282/

Re: [nodejs] Re: Unable to run npm command on NodeJs(.6)

2012-02-15 Thread Isaac Schlueter
Sk123, Install node using the windows installer msi. It will install node and npm. http://nodejs.org/dist/v0.6.10/node-v0.6.10.msi Run npm from the command line directly, not in the node repl. On Wed, Feb 15, 2012 at 11:24, Angel Java Lopez wrote: > Usually, at your program files folder insi

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Liam
On Feb 15, 12:16 pm, Dick Hardt wrote: > On Feb 15, 2012, at 1:06 PM, Liam wrote: > > The "Identity Space players" aren't important to its success, only the > > email providers, e.g. Yahoo, MSN, AOL, ISPs… > > um … all the email providers are players in the identity space … Google is an > email

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 3:03 PM, Dean Landolt wrote: > On Wed, Feb 15, 2012 at 12:35 PM, Matt wrote: > >> On Wed, Feb 15, 2012 at 12:01 PM, Chris Scribner wrote: >> >>> On the topic of "why use node to service static files"... >>> >>> Because if you don't need to understand, configure, and maint

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Dick Hardt
On Feb 15, 2012, at 1:06 PM, Liam wrote: > On Feb 15, 11:45 am, Dick Hardt wrote: >> On Feb 15, 2012, at 12:40 PM, Liam wrote: >> >> >> >>> On Feb 15, 10:49 am, Jim Lloyd wrote: On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: > Interesting... Have you considering allowing signup via

Re: [nodejs] File Modified Date from an HTTP File?

2012-02-15 Thread Randy Merrill
Thanks for the help! I was able to retrieve just the HEAD using a HEAD method on the http request. I got so used to doing just GET and POST I didn't think there was a HEAD too. :) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Postin

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Liam
On Feb 15, 11:45 am, Dick Hardt wrote: > On Feb 15, 2012, at 12:40 PM, Liam wrote: > > > > > On Feb 15, 10:49 am, Jim Lloyd wrote: > >> On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: > >>> Interesting... Have you considering allowing signup via BrowserID? > >>> Recommended! > > >>> I wasn't aware

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Dean Landolt
On Wed, Feb 15, 2012 at 12:35 PM, Matt wrote: > On Wed, Feb 15, 2012 at 12:01 PM, Chris Scribner wrote: > >> On the topic of "why use node to service static files"... >> >> Because if you don't need to understand, configure, and maintain an >> extra piece of software in your stack, things get si

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 2:23 PM, Chris Scribner wrote: > Matt, > > The original post started with an observation and a request for more > details, presumably from those who know what's going on under the > hood. I didn't detect any hint of "expecting Node to compare well with > nginx or Apache."

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Dick Hardt
On Feb 15, 2012, at 12:40 PM, Liam wrote: > > > On Feb 15, 10:49 am, Jim Lloyd wrote: >> On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: >>> Interesting... Have you considering allowing signup via BrowserID? >>> Recommended! >> >>> I wasn't aware of BrowersID. I just tried it with their demo s

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Liam
On Feb 15, 10:49 am, Jim Lloyd wrote: > On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: > > Interesting... Have you considering allowing signup via BrowserID? > > Recommended! > > > I wasn't aware of BrowersID. I just tried it with their demo site and was > > underwhelmed. The signin process was

[nodejs] Version 0.7.4

2012-02-15 Thread Isaac Schlueter
2012.02.14, Version 0.7.4 (unstable) * Upgrade V8 to 3.9.5 * Upgrade npm to 1.1.1 * build: Detect host_arch better (Karl Skomski) * debugger: export `debug_port` to `process` (Fedor Indutny) * api docs: CSS bug fixes (isaacs) * build: use -fPIC for native addons on UNIX (Nathan Rajlich) * Re

Re: [nodejs] Re: Unable to run npm command on NodeJs(.6)

2012-02-15 Thread Angel Java Lopez
Usually, at your program files folder inside a nodejs folder. Maybe you should add that folder to your path. Some weeks ago, I tried a Windows installer, and the path was not modified to point to that directory after installation, but I don't sure. BTW, I had a problem with that installation: it

[nodejs] Re: Node CPU use analysis

2012-02-15 Thread Chris Scribner
Matt, The original post started with an observation and a request for more details, presumably from those who know what's going on under the hood. I didn't detect any hint of "expecting Node to compare well with nginx or Apache." A conversation about the underlying differences in the servers and

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 1:56 PM, billywhizz wrote: > i don't hear anyone on this thread complaining that node.js is slower. > This thread started with: "I analysed node-0.6.10/windows2008r2 running my clustered http server script in VTune with a view to understanding why node took 50% more CPU t

[nodejs] Re: Node CPU use analysis

2012-02-15 Thread billywhizz
i don't hear anyone on this thread complaining that node.js is slower. we expect it to be slower and it probably always will be, although "always" is a dangerous word in computer science. my goal with this research is to get node.js to a point where it's fast enough that people have an option not t

[nodejs] asyncblock 2.0.0 released - got fibers?

2012-02-15 Thread Chris Scribner
I'm pleased to announce the release of asyncblock 2.0.0, a flow control library built on fibers. What's a fiber? Fibers are special javascript threads that can be paused without blocking the event loop. When async tasks complete, a paused fiber can resume in its original state with the result of

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Jim Lloyd
On Wed, Feb 15, 2012 at 12:04 AM, Liam wrote: > Interesting... Have you considering allowing signup via BrowserID? > Recommended! > > I wasn't aware of BrowersID. I just tried it with their demo site and was underwhelmed. The signin process was not fast, and in the end I was forced to create anot

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Jim Lloyd
Account creation always requires more steps than subsequent logins for existing accounts. OAuth doesn't make account creation worse for account creation if you make an apples-to-apples comparison. Without OAuth: 1) Click a "Create New Account" button. 2) Fill out required information (username, pa

[nodejs] Re: Unable to run npm command on NodeJs(.6)

2012-02-15 Thread sk123
Hi, Thanks for the quick reply. I did try that too but I was not able to find npm.exe. So I was not sure what to do. Where can I find this npm.exe? Is it supposed to be installed with NodeJs? Thanks! On Feb 14, 5:39 pm, Дмитрий Лукичёв wrote: > You should run 'npm.exe' instead of 'node.exe' ca

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Jim Lloyd
On Wed, Feb 15, 2012 at 1:16 AM, Liam wrote: > I'm off-topic, so apologies, but... > Yes, this is off-topic. I'd hope the list won't mind if I make a very brief answer here, and then if necessary Liam and I can continue the conversation off-list. If anyone else wants to join in, please contact m

[nodejs] Re: Control over 'require' logic

2012-02-15 Thread Tomasz Janczuk
Thank you, wrapping Module._load is exactly what I was looking for. -- 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 t

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 12:35 PM, Matt wrote: > >> If node can get 10-50% faster at serving static files, then that's X >> number of more deployments that don't need to complicate their >> infrastructure more than it needs to be. >> > > I can almost guarantee you there are no deployments where th

Re: [nodejs] Re: Node CPU use analysis

2012-02-15 Thread Matt
On Wed, Feb 15, 2012 at 12:01 PM, Chris Scribner wrote: > On the topic of "why use node to service static files"... > > Because if you don't need to understand, configure, and maintain an > extra piece of software in your stack, things get simpler. > On a very basic level yes, but there are more

[nodejs] Re: Node CPU use analysis

2012-02-15 Thread Chris Scribner
On the topic of "why use node to service static files"... Because if you don't need to understand, configure, and maintain an extra piece of software in your stack, things get simpler. If node can get 10-50% faster at serving static files, then that's X number of more deployments that don't need

[nodejs] Re: Control over 'require' logic

2012-02-15 Thread TipTop
A few weeks back i built a node like stack to run web apps in a sandbox. What this stack did was simulate the environment or location of the app. So if my app.js file saved to “/home/stack/myapp/app.js” then __dirname would be just “/” as in the root of the file system. The problem you have it tha

[nodejs] Off topic - Necesito programador en node (spanish language only)

2012-02-15 Thread Normando Hall
Buen día. Formo parte de un grupo de programadores en node que estamos por comenzar uno de entre varios desarrollos de mediano plazo (1 año aprox.). Quien esté interesado en formar parte y trabajar de lo que le guste, por favor contactarme directamente a mi email. Gracias Normando Hall -- J

Re: [nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Richard Marr
Alexey, A lot of people stay logged in to Twitter or Facebook (or both), so for those people it would become a one-click login (or two if you need to authorise the app) which is much easier than having to register. Another big motivation for sites to use OAuth is to make specific user interaction

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Alexey Petrushin
I can't understand one thing with oauth (not just for this site, but in general). There's an option to log in with facebook, the whole point of this thing is to just a click only one button and all should be done. But instead, after I clicked on log in with facebook button it shows me registra

Re: [nodejs] Node CPU use analysis

2012-02-15 Thread Jann Horn
Not just one. :) FEFE!!! :D Am 15.02.2012 06:24 schrieb "Louis Santillan" : Wow. Someone who has heard of Gatling. -L On Tuesday, February 14, 2012, billywhizz wrote: > heh. proves your point. f... -- Sent from Gmail Mobile -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Liam
I'm off-topic, so apologies, but... Jim, you can't crowd-source policy-making. Policy should be made by experts, those who've studied an issue at depth and tried to understand the impact of possible approaches to it. The value of a republic, electing elites to govern, is that it avoids the dangers

[nodejs] Re: Alpha release of Coalitions.US.Org

2012-02-15 Thread Liam
Interesting... Have you considering allowing signup via BrowserID? Recommended! On Feb 14, 4:49 pm, Jim Lloyd wrote: > The Coalitions Project is pleased to announce to the Node community an > alpha release of Coalitions.US.Org athttp://alpha.coalitions.us.org. > > The key parts of the stack are n