Re: [nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Matthew Hazlett
Thanks everyone for your input on this matter. I will say that, I opted not to use any sort of Async library, but instead opted to build my application the way the framework was designed. Thanks again. Matthew -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joye

Re: [nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Bruno Jouhier
www.thethingdom.com was built with streamline and coffeescript. It's been in production for several months now. I cannot disclose what we are doing with it yet. But Sage is a well established company and our team has been using it for more than a year. -- Job Board: http://jobs.nodejs.org/ Pos

Re: [nodejs] HTML to PDF

2012-04-09 Thread Nuno Job
Alan: https://github.com/substack/node-trumpet + pdf.js then . Nuno On Tue, Apr 10, 2012 at 2:41 AM, Alan Hoffmeister wrote: > @Nuno, are you talking about https://github.com/Marak/pdf.js? > > As far as I could see, there is no option to import HTML with it. > -- > Att, > Alan Hoffmeister > > >

Re: [nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Nuno Job
Wondering how many times in my life I will read this email and subsequent answers. I think it is clear what the core team is doing with node, diverging attentions to your projects on fibers/threads of any kind/etc is really not a good thing to do with beginners imho, and I would refrain from answe

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Bruno Jouhier
Small correction: fibers uses a coroutine library. It may use threads under the hood too but I'm not sure -- 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 Goo

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Bruno Jouhier
Total piece of disinformation! Streamline does not rely on any c++ or threads.. It is a pure JS solution and it runs in browsers (someone is using it with iPhone safari). There is an option to use fibers but it is just an option. Fibers does not use isolates. It uses threads. In short you got

[nodejs] Re: Google Analytics API

2012-04-09 Thread Evan
While not a module, I certainly have done this in the past for other projects using only some of the core nodejs.features. Here's a module which I use in a dashboard application to poll GA for one metic sliced by one dimension (complete with the authentication step) [[ https://github.com/evan

Re: [nodejs] Node JS can't run while SELinux is active

2012-04-09 Thread amir m
No, i don't think there is any Memory limit for process. look at this result: # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i

[nodejs] Re: HTML to PDF

2012-04-09 Thread mlegenhausen
In our project we use wkhtmltopdf. To use it you need to spawn a separate process via child_process and then fill the process stdin with your html data the output will be your pdf file. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-P

[nodejs] How to measure quality of modules

2012-04-09 Thread Nuno Job
Hi guys, I've been thinking a lot about this topic and seen some interesting websites created by the community to answer the question "what is the most relevant module to perform task X" This is becoming more and more important as in the last episode of nodeup (and in a recent blogpost) isaac

[nodejs] Free Little Utility

2012-04-09 Thread Matthew Hazlett
I created a simple node app that recursively deletes unwanted files: https://github.com/hazlema/Sweep-NodeJS Thought it might be of some use to others out there so I posted it on Git. Cheers -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-

[nodejs] Re: delegating event emitter

2012-04-09 Thread mscdex
On Apr 9, 9:42 pm, Marco Rogers wrote: > If it helps, here's the super old branch I had when this came up before. I > was (still am) a pretty staunch advocate of a minimal catch all. FWIW I'd much rather not see any more special/reserved event names. I'm more in favor of onAny()/onAll(), etc. --

[nodejs] Re: Persistent TCP Client connection to a (Embedded) TCP server

2012-04-09 Thread Chirag A
yes I tried using keepalive ... but no luck .. currently I have implemented a heartbeat which writes to the socket every 7 seconds .. using that I'm able to detect the connection state almost in realtime .. since I'm new to node .. i thought there might be a better way of doing the same On

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Andy
*Callbacks are silly. Callbacks are bad! Just play it cool, there's fun to be had! If your code is private, if it's no API, use promises my friend! You'll soon see why! Tired of error passing? Tired of nests? With deferred functions, you will have no stress!*

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Andy
promises to the rescue! no need to worry. just play it cool. Don't let those callbacks and error passing get you down! B) var q = require('q'); // ncall takes the function, the scope, then optional arguments q.ncall(db.open, db) .then(func

Re: [nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Ryan Schmidt
On Apr 9, 2012, at 16:28, jan zimmek wrote: [snip] > i am still a bit worried about > using streamline. is it mature enough to be used in production, are > there any projects already using it ? The claim I've seen made on this list several times is that streamline is robust enough to use in pr

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread james33
Thanks, I've added the issue here: http://code.google.com/p/v8/issues/detail?id=2064&thanks=2064&ts=1334025619 On Monday, April 9, 2012 6:34:33 PM UTC-5, Ben Noordhuis wrote: > > On Tue, Apr 10, 2012 at 00:02, james33 wrote: > > It returns Mon Apr 09 2012 23:01:04 GMT+0100 (PST) > > You should r

Re: [nodejs] HTML to PDF

2012-04-09 Thread Dean Landolt
On Mon, Apr 9, 2012 at 9:41 PM, Alan Hoffmeister wrote: > @Nuno, are you talking about https://github.com/Marak/pdf.js? > > As far as I could see, there is no option to import HTML with it. > No, the mozilla project: http://mozilla.github.com/pdf.js/ Also: http://code.google.com/p/phantomjs/wiki

Re: [nodejs] Re: delegating event emitter

2012-04-09 Thread Marco Rogers
If it helps, here's the super old branch I had when this came up before. I was (still am) a pretty staunch advocate of a minimal catch all. https://github.com/polotek/node/commit/c023058702271a602c8c5c2d54c9e28c9a08e939 :Marco On Monday, April 9, 2012 4:56:34 PM UTC-7, Pedro Teixeira wrote: > >

Re: [nodejs] HTML to PDF

2012-04-09 Thread Alan Hoffmeister
@Nuno, are you talking about https://github.com/Marak/pdf.js? As far as I could see, there is no option to import HTML with it. -- Att, Alan Hoffmeister 2012/4/9 Nuno Job : > What is pdf.js? > > Sent from my iPhone > > On Apr 10, 2012, at 1:44 AM, Alan Hoffmeister > wrote: > >> Hello, >> >> I

Re: [nodejs] Re: delegating event emitter

2012-04-09 Thread Marco Rogers
Just sent you a quick pull request :) On Monday, April 9, 2012 4:32:31 PM UTC-7, Oliver Leics wrote: > > Now available on npm: > > caevents - 'Catch all events' event emitter for node.js > > npm install caevents > > Repository: > https://github.com/oleics/node-caevents > > -- Job Board: http://j

[nodejs] Re: Node-Qt: Cross-platform bindings to the Qt library

2012-04-09 Thread Bert Belder
On Apr 9, 2:12 pm, Artur wrote: > I do think we're going to run into performance issues with more demanding > applications, I think that if you want to do real-time video decoding, that should not happen on the main (node) thread anyway. > like real-time video decoding for example. At that point

Re: [nodejs] HTML to PDF

2012-04-09 Thread Nuno Job
What is pdf.js? Sent from my iPhone On Apr 10, 2012, at 1:44 AM, Alan Hoffmeister wrote: > Hello, > > Is there some good package for converting HTML in PDF with Node.JS? > > Thanks! > -- > Att, > Alan Hoffmeister > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://g

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Rehan Iftikhar
I understand that technically you're querying against a database, but what is the behavior that you are trying to implement? Can you give a clear, simple explanation of the feature of your application? If you want to abstract things into a class, I find that its best to understand the "role(s)

[nodejs] HTML to PDF

2012-04-09 Thread Alan Hoffmeister
Hello, Is there some good package for converting HTML in PDF with Node.JS? Thanks! -- Att, Alan Hoffmeister -- 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

Re: [nodejs] Re: delegating event emitter

2012-04-09 Thread Pedro Teixeira
Actually, the one function parameter api idea I got from @hij1nx some time after the EventEmitter -> Core debate. Many times I've had the need for something like this, so I think this should be something that others may find an interest on. I think I'll start by doing a pull request to Node Core,

[nodejs] Re: Permission problem with a NPM package created on windows and installed on mac

2012-04-09 Thread Oliver Leics
On Mon, Apr 9, 2012 at 11:22 PM, Chad Retz wrote: > Tbh, I have yet to test on the > latest NPM/node.js so I can't verify it persists. What versions (node and npm) did you use to publish the 'broken' package? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/n

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread Ben Noordhuis
On Tue, Apr 10, 2012 at 00:02, james33 wrote: > It returns Mon Apr 09 2012 23:01:04 GMT+0100 (PST) You should report this to V8 because I'm 99% sure it's a bug. To wit, this is the V8 shell on a Linux or OS X system: $ TZ='America/Los_Angeles' out/ia32.release/shell -e 'print(new Date().getTim

Re: [nodejs] Re: delegating event emitter

2012-04-09 Thread Oliver Leics
Now available on npm: caevents - 'Catch all events' event emitter for node.js npm install caevents Repository: https://github.com/oleics/node-caevents -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received thi

Re: [nodejs] Re: Tool To Test HTTP Server For "Completeness"

2012-04-09 Thread Ilya Dmitrichenko
On 8 April 2012 05:49, P. Douglas Reeder wrote: > Thanks! JMeter is good for load testing; are there any tools to > automatically or semi-automatically generate a JMeter test plan that > approximates what a real user with a real browser would do? Well, the nearest you get is setting up JMeter as

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Joe Ferner
Sorry, you're right V8 should still have isolates so it may still work. On Apr 9, 6:08 pm, Marco Rogers wrote: > I'm confused about this. Isolates is being removed from node, not from v8. > node-fibers should still be able to use them right? > > > > > > > > On Monday, April 9, 2012 2:51:24 PM UTC

[nodejs] Re: delegating event emitter

2012-04-09 Thread Marco Rogers
There was a very long and heated debate about this last year sometime. I can't find it right now. I believe it was split between pull request comments and a thread on the mailing list. Things were pretty split on whether we wanted to greatly expand the scope of EventEmitter, by merging in some

[nodejs] Re: Persistent TCP Client connection to a (Embedded) TCP server

2012-04-09 Thread Jimb Esser
Have you tried socket.setKeepAlive? I think this enables the TCP- level keepalive flag (SO_KEEPALIVE) which should cause an OS-level TCP disconnect much sooner. Doing a netstat -nop, it seems that every TCP connection on my server except those made by node have this flag enabled, so it seems the

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Marco Rogers
I'm confused about this. Isolates is being removed from node, not from v8. node-fibers should still be able to use them right? On Monday, April 9, 2012 2:51:24 PM UTC-7, Joe Ferner wrote: > > Many streamline like APIs use node-fibers (https://github.com/laverdet/ > node-fibers

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread james33
It returns Mon Apr 09 2012 23:01:04 GMT+0100 (PST) On Monday, April 9, 2012 4:58:37 PM UTC-5, Matt wrote: > > Just to make sure environmental variables aren't getting messed with > somehow, try running this: > > echo "console.log((new Date()).toLocaleString());" | > TZ='America/Los_Angeles' node

[nodejs] Re: Keeping HTTP connection alive even if there are no more requests

2012-04-09 Thread Jimb Esser
We ran into this same thing, and I ended up just writing a small patch to the HTTPS agent to hold on to https sockets for 10 seconds after a request finished. This ended up roughly tripling our SimpleDB performance (back to Node 0.4 performance levels, which did connection pooling by default, or a

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread Matt Patenaude
Just to make sure environmental variables aren't getting messed with somehow, try running this: echo "console.log((new Date()).toLocaleString());" | TZ='America/Los_Angeles' node Should print out a locale string at GMT-0700 (PDT). If it doesn't, then I'd defer to someone else who's mor

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread Joe Ferner
Many streamline like APIs use node-fibers (https://github.com/laverdet/ node-fibers) under the covers and fibers requires isolates which is now deprecated and is going to be removed if it hasn't already. I also think that the way it works under the covers also incurs performance impacts because it

Re: [nodejs] Re: How can i use node.js in windows with the new installer

2012-04-09 Thread Angel Java Lopez
In my installation (0.6.7) it is at c:\Program Files\nodejs I don't sure about the current installation, but I remember I had to add that directory to PATH. Then, try it at ANY DIRECTORY, running node or node yourprogram.js Windows installation has npm, the Node Package Manager. You can make

[nodejs] Re: How to avoid callback hell?

2012-04-09 Thread jan zimmek
streamline looks really promising, since we have lots of business- rules which are implemented in dozens of nested callbacks. we use coffeescript and most code have already been encapsulated in functions to lessen the complexity. but i would be more than happy to get rid of most of the (unnecessar

[nodejs] Re: How can i use node.js in windows with the new installer

2012-04-09 Thread mscdex
On Apr 9, 9:36 am, ismapro wrote: > I just download and install the "windows installer package of > node.js"  but i can't find where is it or how can i use it. Use it from the command prompt (cmd.exe and then "node foo.js" or what have you) or just type "node" in the start menu Run box, hit enter

[nodejs] Re: Permission problem with a NPM package created on windows and installed on mac

2012-04-09 Thread Chad Retz
Same problem here: https://github.com/cretz/node-tds/issues/13. I'm just gonna start using my Ubuntu VM to publish. Tbh, I have yet to test on the latest NPM/node.js so I can't verify it persists. On Saturday, April 7, 2012 6:04:50 AM UTC-5, Oliver Leics wrote: > > Hallo, > > I need help. > > Pl

Re: [nodejs] Node JS can't run while SELinux is active

2012-04-09 Thread Ben Noordhuis
On Mon, Apr 9, 2012 at 12:22, Amir Mahmoudi wrote: > I'm using Debian Server 6 on my server, after installing SE Linux, and > execute "setenfore 1" to active SE Linux completely on the > server( what is said in the manual of debian Wiki > http://wiki.debian.org/SELinux/Setup) > Node.js can't run.

[nodejs] How can i use node.js in windows with the new installer

2012-04-09 Thread ismapro
hi to everyone I just download and install the "windows installer package of node.js" but i can't find where is it or how can i use it. Anyone could help me? Thanks. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines

[nodejs] Node JS can't run while SELinux is active

2012-04-09 Thread Amir Mahmoudi
I'm using Debian Server 6 on my server, after installing SE Linux, and execute "setenfore 1" to active SE Linux completely on the server( what is said in the manual of debian Wiki http://wiki.debian.org/SELinux/Setup) Node.js can't run. not even a simple log command and receive this error: FATAL

[nodejs] Node.js IDE for iPad

2012-04-09 Thread Dave Clements
I do my development on laptop, but I use iPad for updates, admin, etc. on the move. All my work for a site or app is done in a dropbox folder on laptop, i have the dropbox service running on my server so updates are synced automatically, and then I use PlainText [1] which syns with db for nice

Re: [nodejs] How to avoid callback hell?

2012-04-09 Thread Bruno Jouhier
Opposite experience with streamline. We use the tool everyday and we'll never go back to callbacks. It probably has to do with the fact that libraries only solve a small part of the problem while a language tool can do a lot more: restore chaining, composition, operators, this, exception handlin

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread james33
I get GMT+0100 (PST) with that. On Monday, April 9, 2012 1:08:03 PM UTC-5, Matt wrote: > > And what if you pick a completely different timezone, e.g., > America/Los_Angeles? > > -Matt > > Sent from my iPhone > > On Apr 9, 2012, at 1:56 PM, james33 wrote: > > I still get the same result. > > On M

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread Matt Patenaude
And what if you pick a completely different timezone, e.g., America/Los_Angeles? -Matt Sent from my iPhone On Apr 9, 2012, at 1:56 PM, james33 wrote: > I still get the same result. > > On Monday, April 9, 2012 12:07:45 AM UTC-5, Matt wrote: > Hmm, European CST is GMT+1, it could be using that

Re: [nodejs] Date object not returning the correct locale time

2012-04-09 Thread james33
I still get the same result. On Monday, April 9, 2012 12:07:45 AM UTC-5, Matt wrote: > > Hmm, European CST is GMT+1, it could be using that instead (in spite of > the US/ bit there). Try changing to (for example) 'America/Chicago' and see > if you get different results? > > -Matt > > > On Apr 9,

[nodejs] Version 0.6.15 (stable)

2012-04-09 Thread Isaac Schlueter
2012.04.09 Version 0.6.15 (stable) * Update npm to 1.1.16 * Show licenses in binary installers. * unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64 (Ben Noordhuis) * add 64bit offset fs functions (Igor Zinkovsky) * windows: don't report ENOTSOCK when attempting to bind an udp handle

Re: [nodejs] How to avoid callback hell?

2012-04-09 Thread Mark Hahn
> despite being the author of half a dozen control flow libraries, I never use any of them anymore. I have only written one and I don't use it anymore either. If nesting is a problem get a wider screen. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/w

[nodejs] How do you execute a function asynchronously?

2012-04-09 Thread Bruno Jouhier
Child_process will do the job but threads_a_gogo will do it too, just faster and with less memory overhead because it uses threads rather than processes. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received th

Re: [nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Oleg Efimov (Sannis)
Cool, I've save it for future use. понедельник, 9 апреля 2012 г., 19:08:06 UTC+4 пользователь shinout написал: > > Hi, > > Here I wrote a simple module to make functions asynchronous. > > https://github.com/shinout/standalone > > > With this, synchronous methods can be called by the same method >

[nodejs] Google Analytics API

2012-04-09 Thread Alan Hoffmeister
Hello there! Is there some updated node package that can communicate with GA an gather info about a website? Tryied NPM serach without success... -- Att, Alan Hoffmeister -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelin

Re: [nodejs] Re: Node-Qt: Cross-platform bindings to the Qt library

2012-04-09 Thread Nikhil Marathe
> Hello Nikhil, > > Cool stuff! I'm not very familiar with Qt's networking API, but isn't > QHttp() already asynchronous? The client APIs are async, but there is no http server in Qt, only a TCP server, which is async. So I combined ryan's http-parser and qtcpserver to get a qhttpserver Nikhil -

Re: [nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Ilya Dmitrichenko
You should definitely also have a look at Fabric Engine: http://fabric-engine.com/ It is specifically designed for the sort problems :) On 9 April 2012 16:08, Shin Suzuki wrote: > Hi, > > Here I wrote a simple module to make functions asynchronous. > > https://github.com/shinout/standalone > > >

Re: [nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Shin Suzuki
Hi, Here I wrote a simple module to make functions asynchronous. https://github.com/shinout/standalone With this, synchronous methods can be called by the same method asynchonously. Also this module can be available in browsers (using WebWorker API). Thanks. 2012/4/9 Roly Fentanes > You c

[nodejs] Ottawa Meetup

2012-04-09 Thread darren
The Ottawa Javascript / NodeJS meetup is happening Wednesday April 11th, 6:30pm at TheCodeFactory. https://groups.google.com/group/ottawa-javascript http://twitter.com/ottawa_js -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Gu

Re: [nodejs] [ANN] Calango.js: Build native apps in Node + HTML5

2012-04-09 Thread Tim Caswell
Just curious, but could something like this be done with gecko, maybe using chromeless? Or are depending on the fact that newer qtwebkit uses v8? On Apr 6, 2012 5:26 PM, "Artur" wrote: > This is a long overdue announcement, but only recently did I have the > chance to get back to this project. I

Re: [nodejs] How to avoid callback hell?

2012-04-09 Thread Tim Caswell
First of all, three levels deep is not that bad at all. My personal threshold is around 5 levels. Also, despite being the author of half a dozen control flow libraries, I never use any of them anymore. I don't like the extra dependency on my library or app, and most importantly, I don't like all

Re: [nodejs] Timezone/Locale and Formatted Dates

2012-04-09 Thread Jeff Kunkle
The string format (sf) package might provide what you need. https://github.com/nearinfinity/node-sf On Monday, April 9, 2012 at 6:58 AM, Alan Gutierrez wrote: > If I wanted to format a `Date` in Node.js, with a format string of my design, > using an arbitrary combination of locale and IANA

Re: [nodejs] [ANN] Calango.js: Build native apps in Node + HTML5

2012-04-09 Thread Brandon Benvie
How bout we make this real. dom.js needs a rendering engine. On Monday, April 9, 2012 7:26:46 AM UTC-4, Artur wrote: > > > On Sunday, April 8, 2012 9:48:32 PM UTC-4, ryandesign wrote: > >> Is this just a thin shell designed to allow you to write a web app that >> appears in its own OS window? >

[nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Roly Fentanes
You could use just one child process that you spawn at the start of your app. Then every time you need to do the calculation, you tell it to. And it will get back to you when it's finished. Would only work there's little chance for many calculations to be needed at once. Or you could spawn a fe

[nodejs] Re: Node-Qt: Cross-platform bindings to the Qt library

2012-04-09 Thread Artur
On Monday, April 9, 2012 4:52:57 AM UTC-4, Nikhil wrote: > > Using this I've gone and used *Qt's event loop* instead > of libev, then > implemented something similar to node's http API: > https://github.com/nikhilm/confkdein11/blob/master/qtjs/oboy/basic.js > > Hello Nikhil, Cool stuff! I'm n

Re: [nodejs] Chilly Framework - multiplayer platform for HTML5 games (or just syncing stuff between clients)

2012-04-09 Thread Taj Pelc
Agreed, it is definitely something that I want to include in the future. The framework works and cross platform support should not be a problem even now, since long-polling is the last fallback that Socket.IO makes. But it isn't as fancy or efficient. Yet. :) On Monday, April 9, 2012 2:38:10 PM

[nodejs] Re: Node-Qt: Cross-platform bindings to the Qt library

2012-04-09 Thread Artur
On Sunday, April 8, 2012 6:21:23 PM UTC-4, Bert Belder wrote: I just tried it out (on Windows) and it seems to be not so bad: when > the application is idle, node's processor usage is negligible. > > Yep, I was worried about this, but it turned out to be good enough for most things I've tried

Re: [nodejs] Re: Tool To Test HTTP Server For "Completeness"

2012-04-09 Thread Dean Landolt
On Sun, Apr 8, 2012 at 12:49 AM, P. Douglas Reeder wrote: > Thanks! JMeter is good for load testing; are there any tools to > automatically or semi-automatically generate a JMeter test plan that > approximates what a real user with a real browser would do? > > JCrawler is automatic, but chokes on

Re: [nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Oliver Leics
Maybe this works for you: https://github.com/xk/node-threads-a-gogo On Mon, Apr 9, 2012 at 1:18 PM, Jeremy Rudd wrote: > I've gone through what you said, and here are my results: > > - Child_process is slow to startup (30 ms) and consumes 10 MB base since its > a whole new V8 instance. Maybe if t

Re: [nodejs] Chilly Framework - multiplayer platform for HTML5 games (or just syncing stuff between clients)

2012-04-09 Thread Lou-adrien Fabre
Looks nice! But as it has been said before, I'd greatly appreciate the use of Socket.IO, just even to say you're using web sockets ^^ I think the security offered by the fallbacks between websockets/flashsocket/long-polling is greatly valuable towards the kind off context a cross platform game w

Re: [nodejs] [ANN] Calango.js: Build native apps in Node + HTML5

2012-04-09 Thread Artur
On Sunday, April 8, 2012 9:48:32 PM UTC-4, ryandesign wrote: > Is this just a thin shell designed to allow you to write a web app that > appears in its own OS window? Yes, but at the moment "web" means "HTML5 APIs" like Canvas and AudioContext. To enable HTML/CSS one would have to write a la

Re: [nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Jeremy Rudd
I've gone through what you said, and here are my results: - Child_process is slow to startup (30 ms) and consumes 10 MB base since its a whole new V8 instance. Maybe if these are started and not stopped and used alongside a job queue it could work. But it cannot work like "async function calls

Re: [nodejs] [ANN] Calango.js: Build native apps in Node + HTML5

2012-04-09 Thread Artur
On Sunday, April 8, 2012 6:44:34 PM UTC-4, Alan Hoffmeister wrote: > > Where the HTML5 part come in? > Canvas and AudioContext. -- Artur Adib Mozilla Labs http://twitter.com/arturadib -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Po

[nodejs] Timezone/Locale and Formatted Dates

2012-04-09 Thread Alan Gutierrez
If I wanted to format a `Date` in Node.js, with a format string of my design, using an arbitrary combination of locale and IANA timezone, how would I go about doing this? -- Alan - @bigeasy -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing

[nodejs] Re: How do you execute a function asynchronously?

2012-04-09 Thread Oleg Efimov (Sannis)
Yes, you can execute them in child_process. Also where may be already existing modules, try look for maintained forks of "webworkers" or "backgrounder". Also you can use queues: kue or geaman-node понедельник, 9 апреля 2012 г., 14:34:05 UTC+4 пользователь Jeremy Rudd написал: > > Hi all, > > I'

[nodejs] How do you execute a function asynchronously?

2012-04-09 Thread Jeremy Rudd
Hi all, I've got a couple of long-running functions that use BigIntegers and the like for some financial calculations. These take a few seconds to execute. Now a few seconds of CPU on the main node thread means all other activity grinds to a halt. What's the easiest way to call these functions

Re: [nodejs] Chilly Framework - multiplayer platform for HTML5 games (or just syncing stuff between clients)

2012-04-09 Thread Taj Pelc
No, we are currently using long-polling. For any update channel that you define, a recursive ajax connection is made to the server which is then frozen until there is something to push through it. The front end script then calls the user defined action and passes data to it, then automatically

Re: [nodejs] [CONCURRENT REQUEST]

2012-04-09 Thread Nikhil Marathe
On Mon, Apr 9, 2012 at 2:32 PM, FleetCommand wrote: > Hi all , > > I would like to know , how node.js handles if two requests come in parallel. > For example : first a  dynamic http request comes wich requires some > processing. >  suppose node.js is fetching parameters from request body and perfo

[nodejs] [CONCURRENT REQUEST]

2012-04-09 Thread FleetCommand
Hi all , I would like to know , how node.js handles if two requests come in parallel. For example : first a dynamic http request comes wich requires some processing. suppose node.js is fetching parameters from request body and performing some validations, At the same time if a new request

[nodejs] Re: Node-Qt: Cross-platform bindings to the Qt library

2012-04-09 Thread Nikhil
On Apr 7, 3:39 am, Artur wrote: > (This project forms the basis of the Calango.js project just > announced). > > Node-Qt exposes graphics- and audio-related bindings to the Qt > library. (Qt is a cross-platform native library containing just about > any API you need, from window manager integrat

Re: [nodejs] delegating event emitter

2012-04-09 Thread Ben Noordhuis
On Sun, Apr 8, 2012 at 19:59, Pedro Teixeira wrote: > Are there any plans to support this on Node Core in order to make it > standard No. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message beca

Re: [nodejs] Re: Persistent TCP Client connection to a (Embedded) TCP server

2012-04-09 Thread Ben Noordhuis
On Mon, Apr 9, 2012 at 06:19, Chirag A wrote: > nope .. the close event is fired with has_error flag as false > I also tried using socket with allowhalfopen = false .. but no luck ! It sounds like the server doesn't send a FIN or RST packet. You should be able to verify that with wireshark o

Re: [nodejs] Node.js IDE for iPad

2012-04-09 Thread Ben Noordhuis
On Sun, Apr 8, 2012 at 10:05, Rob Ashton wrote: > I try c9 from time to time, but it has serious quality issues and there is > *always* some show stopping bug within 10 minutes of logging in. > > Keen to hear of viable alternatives The C9 IDE people are working on the stability issues. Give it so