Re: [nodejs] Re: Eido: Tex+lisp style doumentation language

2012-03-12 Thread Joshua Holbrook
As a latex and lisp fan, this looks sweet! Could use a better readme though. You should put what you said in this email into it! :) --Josh On Sat, Mar 10, 2012 at 9:36 AM, Belleve Invis wrote: > Overall compilation progress: > > Source doc --parse-> Source Tree (lisp style) -- evaluation -> Gene

Re: [nodejs] Re: process.exit() when running as a windows service?

2012-03-12 Thread AJ ONeal
nssm.exe, actually. And yes, I do want the service to be restarted. On app startup there's a loop that requires all modules in a directory. Each time a new module in installed, the service should exit. It should then be restarted, rereading all of the modules (including the new one). When runnin

[nodejs] Re: process.exit() when running as a windows service?

2012-03-12 Thread Bert Belder
On Mar 13, 12:37 am, AJ ONeal wrote: > It appears that `process.exit()` doesn't not work on windows when a node > app is running as a service. > > Is this a bug? Or simply not possible? > Does anybody have a workaround? > > I'm thinking maybe I can exec `net nodeapp restart` after calling > `proce

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

2012-03-12 Thread Pedro Narciso García Revington
I've implemented w3c's suggested algorithm . https://github.com/revington/xsdurationjs 2012/2/17 Dean Landolt > definitely :) > > it'd be particularly handy for frontend devs when dealing with the > element too: > > http://www.

[nodejs] process.exit() when running as a windows service?

2012-03-12 Thread AJ ONeal
It appears that `process.exit()` doesn't not work on windows when a node app is running as a service. Is this a bug? Or simply not possible? Does anybody have a workaround? I'm thinking maybe I can exec `net nodeapp restart` after calling `process.exit()` I'm working on a self-updating feature a

[nodejs] Re: Writing a module to connect to a RESTful database.

2012-03-12 Thread Chad Retz
I would say do both. Allow a "handler" or submit events if there isn't one. Make a method on the main connection for modifying with an ID passed in (needed for when they didn't create it w/ your client) and make one in the returned object (though addNode would probably take a callback instead of

Re: [nodejs] The Way of Node

2012-03-12 Thread Axel Kittenberger
On Tue, Mar 13, 2012 at 12:01 AM, Ted Young wrote: > Hey great.  If I could make one comment about the left side of the bike > shed, the "node is faster" tenet kind of threw me off a bit.  I mean, I use > node because it's efficient - and often fast - for doing lots of io.  But I > feel like there

Re: [nodejs] The Way of Node

2012-03-12 Thread Mikeal Rogers
If v8 falls behind it's competitors we'll move to another vm. v8 and node have aligned goals about performance which makes us a good fit, if that ever stops being the case we're lucky enough to be using a language with many competing vms. Node will continue to get faster and won't suffer a slo

Re: [nodejs] The Way of Node

2012-03-12 Thread Ted Young
Hey great. If I could make one comment about the left side of the bike shed, the "node is faster" tenet kind of threw me off a bit. I mean, I use node because it's efficient - and often fast - for doing lots of io. But I feel like there will always be a neckbeard popping up to to show how som

Re: [nodejs] keep alive webserver

2012-03-12 Thread Tim Caswell
There is an old article on howtonode written by Tim Smart I think, but it's not what I use. If you want to use upstart, best to read the manual. On Mon, Mar 12, 2012 at 3:56 PM, theCole wrote: > Tim, > > Do you have the link to the blog where that was posted? > > -Cole > > -- > Job Board: http:

Re: [nodejs] keep alive webserver

2012-03-12 Thread Mikeal Rogers
I also use upstart. I *hate* upstart, but keeping your process up is something you want the kernel to be responsible for. On Mar 12, 2012, at March 12, 20129:08 AM, Tim Caswell wrote: > it depends on your system. On Ubuntu I use upstart and create a small script > in /etc/init/SOMENAME.conf.

Re: [nodejs] keep alive webserver

2012-03-12 Thread theCole
( the actual post ) -- 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

Re: [nodejs] keep alive webserver

2012-03-12 Thread theCole
Tim, Do you have the link to the blog where that was posted? -Cole -- 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

Re: [nodejs] spdy?

2012-03-12 Thread Mikeal Rogers
On Mar 12, 2012, at March 12, 20121:51 PM, Dick Hardt wrote: > > On Mar 12, 2012, at 1:33 PM, Mikeal Rogers wrote: > >> >> On Mar 12, 2012, at March 12, 20121:23 PM, Dick Hardt wrote: >> >> >> If a server is sending you gzipped responses and you are not sending an >> accept-encoding header

[nodejs] The Way of Node

2012-03-12 Thread Mikeal Rogers
One thing node is lacking is a clear set of principals and/or philosophy. Nothing too serious, something along the lines of Python's PEP 20 Zen of Python. Pulling from the history of the project and decisions already made and refined through comments from close friends and node contributors this

[nodejs] Re: need some help with writing docs and tests

2012-03-12 Thread theCole
http://jashkenas.github.com/docco/ On Monday, March 12, 2012 8:28:58 PM UTC+1, ben wrote: > > Hey guys I've been writing node projects for a while. Most of my > projects was builded with Express and Mongoose. I was tired of copying > the code base all the time for a new project therefore I wrap

Re: [nodejs] spdy?

2012-03-12 Thread Dick Hardt
On Mar 12, 2012, at 1:33 PM, Mikeal Rogers wrote: > > On Mar 12, 2012, at March 12, 20121:23 PM, Dick Hardt wrote: > > > If a server is sending you gzipped responses and you are not sending an > accept-encoding header for gzip then the server is breaking the HTTP spec. Understood. They are d

Re: [nodejs] spdy?

2012-03-12 Thread Mikeal Rogers
On Mar 12, 2012, at March 12, 20121:23 PM, Dick Hardt wrote: > > On Mar 12, 2012, at 12:57 PM, Mikeal Rogers wrote: > >> Supporting it means defaulting to using an accept encoding header and then >> decompressing the response automatically. We cannot assume this is always >> what you want. >

Re: [nodejs] spdy?

2012-03-12 Thread Dick Hardt
On Mar 12, 2012, at 12:57 PM, Mikeal Rogers wrote: > Supporting it means defaulting to using an accept encoding header and then > decompressing the response automatically. We cannot assume this is always > what you want. agreed > > First of all, this increases the amount of CPU each process

Re: [nodejs] spdy?

2012-03-12 Thread Mikeal Rogers
Supporting it means defaulting to using an accept encoding header and then decompressing the response automatically. We cannot assume this is always what you want. First of all, this increases the amount of CPU each process will use. Many servers won't want to sacrifice CPU for bandwidth. Seco

Re: [nodejs] spdy?

2012-03-12 Thread Dick Hardt
Sorry I was not more clear. I can understand not doing compression server side, but I would expect decompression to be part of a client without having to get a library. The code is already in core, so I am confused why it would not make sense for compression to be done in http.request / https.re

[nodejs] need some help with writing docs and tests

2012-03-12 Thread ben
Hey guys I've been writing node projects for a while. Most of my projects was builded with Express and Mongoose. I was tired of copying the code base all the time for a new project therefore I wrap them to a npm package call COKE(https://github.com/dreamerslab/coke) with some extra features like as

Re: [nodejs] spdy?

2012-03-12 Thread Mikeal Rogers
I'm actually *more* interested in getting the client in. Fedor has proven we can get a server working without modification to core but the client is a bit trickier and I'm concerned that we don't have the right code points in core to support it which is why I'd like to experiment with integrati

Re: [nodejs] spdy?

2012-03-12 Thread Mikeal Rogers
compression/decompression are required by SPDY but not required by HTTP. Supporting gzip in servers is the job of frameworks and the support in clients is the job of higher level clients like request. Gzip for regular HTTP is unlikely to go in to core. -Mikeal On Mar 12, 2012, at March 12, 201

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

2012-03-12 Thread Marak Squires
I'd recommend checking out hook.io http://github.com/hookio/hook.io On Fri, Mar 9, 2012 at 6:54 AM, Murat T. wrote: > Hi, > > I have been developing a game since last month and there are a couple of > things which bothers me. > > I am using socket.io, and storing all the data into redis. Howeve

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

2012-03-12 Thread Evan
This is a very similar problem to what I've been fighting as well (also for a game). Personally, I didn't feel any of the packages I had found met my needs, so I created this: http://actionherojs.com/. I'm working on support for both pure-node distributed data and for a common task queue. I

Re: [nodejs] module properties

2012-03-12 Thread Isaac Schlueter
Both properties are vestigial, from the days of require.async. It was necessary to keep track of whether or not a module had finished, and whether all of its children had finished, before returning to the callback. It doesn't look like much from the usage: require.async("some-module", function (

Re: [nodejs] spdy?

2012-03-12 Thread Dick Hardt
Will compression/decompression be part of the refactor? I was surprised that I had to write special code client side to decompress gzipped payloads. -- Dick On Mar 10, 2012, at 1:16 PM, Mikeal Rogers wrote: > I've been talking with isaac lately about getting this in to core. > > there is an ht

Re: [nodejs] keep alive webserver

2012-03-12 Thread Tim Caswell
it depends on your system. On Ubuntu I use upstart and create a small script in /etc/init/SOMENAME.conf. And then you can use start, stop, and restart like `sudo start SOMENAME` Here is the upstart config for howtonode.org: description "Run node server" env PATH=/home/tim/nvm/v0.6.11/

Re: [nodejs] spdy?

2012-03-12 Thread Tim Caswell
Why not have a spdy client? I think it's pretty common to use a node process at a consumer of some webservice(s). Granted keepalive gets you pretty far, but I think spdy can be even better for performance, especially response multiplexing. On Mon, Mar 12, 2012 at 9:46 AM, David Bjorklund wrote:

Re: [nodejs] npm star

2012-03-12 Thread Isaac Schlueter
This is coming soon. On Sun, Mar 11, 2012 at 08:33, Jann Horn wrote: > Am Sonntag, den 11.03.2012, 08:00 -0500 schrieb Mark Volkmann: >> I know how to star and unstar a module in npm, but is there a way to >> get a list of the modules I have starred? > > Afaik only by cloning the entire registry

[nodejs] Re: Communicating with a process

2012-03-12 Thread Jack
Thank you for the quick reply. The other process is a proprietary DB query repl, that expects a certige return/new line after each command. I tried appending to the command written a "\n" but it didn't help. On Monday, March 12, 2012 5:37:04 PM UTC+2, mscdex wrote: > On Mar 12, 11:15 am, Jack w

[nodejs] Re: Communicating with a process

2012-03-12 Thread mscdex
On Mar 12, 11:15 am, Jack wrote: > How should this be resolved? are there any alternative suggested ways of > operation? What child process is this? Is it expecting a newline (or some other delimiter) after each command before it executes that command? -- Job Board: http://jobs.nodejs.org/ Post

[nodejs] Communicating with a process

2012-03-12 Thread Jack
Hello, I am looking for a way to communicate with a process in a way that will preserve state, meaning that the commands entered and their effect on the process will remain. The problem is that if I use "spawn" through child_process, I need to use stdin.end() in order for the commands being writ

[nodejs] keep alive webserver

2012-03-12 Thread Flavio Del Bianco
Hi, I'm learning nodejs and I had a doubt in how I keep alive a webserver without running it everytime like $ node myserver.js? and how it can connect alone every time the server get on like it does apache. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/

Re: [nodejs] spdy?

2012-03-12 Thread David Bjorklund
Will this also include an spdy-client? Or, to put it more broadly, does it really not make sense for a spdy-client written in node.js at all? /D On Saturday, March 10, 2012 10:16:38 PM UTC+1, Mikeal Rogers wrote: > > I've been talking with isaac lately about getting this in to core. > > there i

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

2012-03-12 Thread Tim Caswell
Also, if you ever are in a situation where V8 is simply too large or too non-portable, know that the underlying libuv C library does most of the raw work for node. I've made it a recent hobby to try libuv in all sorts of different scripting engines to see how it works there. None of them are near

[nodejs] Looking for consultant for integrating Node.js i Clustered Production Environment

2012-03-12 Thread Kristian K. Nielsen
Hey, We are looking for a consultant that knows Node.js and can help us integrate this in our productions environment. We are the largest commercial television station in Denmark. We are looking into using Node.js as part of our webserver-setup. We are interested in hiring a consultant for help

[nodejs] Looking for consultant for integrating Node.js i Clustered Production Environment

2012-03-12 Thread Kristian K. Nielsen
Hey, We are looking for a consultant that knows Node.js and can help us integrate this in our productions environment. We are the largest commercial television station in Denmark. We are looking into using Node.js as part of our webserver-setup. We are interested in hiring a consultant for help

Re: [nodejs] Re: which one is correct ?

2012-03-12 Thread Axel Kittenberger
Simply said, you need a callback, when you have to do one. This means, you use another IO-related API that has a callback. Or a little more elaborate, you need a callback when your code waits for something, most times disc or network data, and thus the current flow logic stalls until it arrives. P

[nodejs] Re: mocking across tests

2012-03-12 Thread Aneil Mallavarapu
Hi Bryan - The way mockery suggests you handle this issue is by calling mockery.registerAllowable("modulePath",true); Where the second argument is "unhook", a signal which tells mockery.deregisterAll() to remove the module from the node module cache. Unfortunately, there's ac

Re: [nodejs] Existing Portal Solution

2012-03-12 Thread Murali Rama Krishnan
@moshir - http://calip.so/ is simple content management system built using nodeJS. it cannot compete with liferay... but, it is still worth looking and give it a try - a promising one for a ECM features. On Mon, Mar 12, 2012 at 4:41 PM, manimal45 wrote: > Hi Community, > > Is there any existing

Re: [nodejs] ANN: blog post on fibers and threads

2012-03-12 Thread Axel Kittenberger
Very Nice post!! I would just add the emphasis that fibers or streamline are not just about esthetics against the "callback pyramid of doom", but without having to code something a little more complex, you end up writing state machines - at least I do. While correct state machines are pretty effic

[nodejs] Existing Portal Solution

2012-03-12 Thread manimal45
Hi Community, Is there any existing portal solution (comparable to liferay) built on top of node.js ? -- 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