[nodejs] Running NodeJS

2019-05-09 Thread Pradeep Das
We would like to run a NodeJS docker container, which would execute some isolated arbitrary JavaScript function and then kill the vm. Also the source code of the JavaScript has to be obtained from a remote location. Would we be able to do rate limiting on it - if so, what are the options availab

Re: [nodejs] Running nodejs on Windows

2014-01-09 Thread Paddy Byers
Hi, > > > That's not nodejs; it's this: http://technet.microsoft.com/en-us/library/cc947691.aspx I guess you need to edit your path so that it finds nodejs before that. Paddy -- -- Job Board

Re: [nodejs] Running nodejs on Windows

2014-01-09 Thread Abhay Rana
I don't think you have installed node.js. You seem to have installed some MS tool . Install node by downloading it from nodejs.org. -- Abhay Rana http://about.me/n3m0 On Thu, Jan 9, 2014 at 8:56 PM, Animesh Pandey wrote: >

Re: [nodejs] Running nodejs on Windows

2014-01-09 Thread Hage Yaapa
I suspect that might be some other node command which is being executed. Not familiar with node on Windows, but try typing just node at the command line. If you are not taken to a REPL, it is most probably not the Node.js node you are executing. On Jan 9, 2014 9:04 PM, "Animesh Pandey" wrote: >

Re: [nodejs] Running nodejs on Windows

2014-01-09 Thread Animesh Pandey
I did that but I am still getting the same output! On Thursday, January 9, 2014 8:59:05 PM UTC+5:30, hacksparrow wrote: > > > node server.js > > Don't quote the file name. > On Jan 9, 2014 8:5

Re: [nodejs] Running nodejs on Windows

2014-01-09 Thread Hage Yaapa
> node server.js Don't quote the file name. On Jan 9, 2014 8:56 PM, "Animesh Pandey" wrote: > > > I have recently installed nodejs on Windows. But whenever I execute any > javascript file I alwa

[nodejs] Running nodejs on Windows

2014-01-09 Thread Animesh Pandey
I have recently installed nodejs on Windows. But whenever I execute any javascript file I always get the output as in the image. I have seen almost all websites on tutorials of NodeJs but could

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread Evangelos Pappas
IMHO, your architectural design should be revisited. the short answer is that Yes you can do it and I'll explain how. The long answer is that OSGi is a system that treats its parts as a module and communicate with them through native busses, so it may wrap them and handle any state of their runtim

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread Mark Hahn
A programming language similar to JS. Google it. Home page is here: http://www.lua.org/ List of tutorials is here: http://lua-users.org/wiki/TutorialDirectory A framework that duplicates node in lua is here: https://github.com/ignacio/luanode It was designed for embedding. The interpreter is

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread prashant pandey
What's Lua? On Tuesday, December 11, 2012 12:09:05 AM UTC+5:30, Mark Hahn wrote: > > Lua is the king of embedded languages. Give it a try. > > On Mon, Dec 10, 2012 at 10:36 AM, prashant pandey > > wrote: > > Hi Alan, > > > > thanks for your time. > > Let me tell bit more about the use-case.

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread Mark Hahn
Lua is the king of embedded languages. Give it a try. On Mon, Dec 10, 2012 at 10:36 AM, prashant pandey wrote: > Hi Alan, > > thanks for your time. > Let me tell bit more about the use-case. I want to run the nodeJs program > inside OSGi (equinox). For that matter I would need a plugin bundle of

Re: [nodejs] Running NodeJs inside JVM

2012-12-10 Thread prashant pandey
Hi Alan, thanks for your time. Let me tell bit more about the use-case. I want to run the nodeJs program inside OSGi (equinox). For that matter I would need a plugin bundle of NodeJs library to be loaded inside OSGi. Is there a way to that? Thanks, Prashant On Sunday, December 9, 2012 2:31:30

Re: [nodejs] Running NodeJs inside JVM

2012-12-09 Thread Simon
In response to Why use Nashorn instead of Node, I thought it was funny that one commenter mentioned: "Node.js uses Google's V8 Javascript engine which is too fast for some applications. Also, it doesn't use enough memory, a problem the JVM is likely to correct..." Source: http://developers.sla

Re: [nodejs] Running NodeJs inside JVM

2012-12-08 Thread Alan Gutierrez
Excellent guidance from everyone. I wanted to add... Just run node as a child process of your JVM application. The node executable is small and easy to redistribute. Node now runs in as many places as the JVM. I find that the promise of write once, run everywhere is easier to realize with Node

Re: [nodejs] Running NodeJs inside JVM

2012-12-07 Thread Rick Waldron
I believe Nashorn purports to be a Node compatible JS engine on the JVM https://oracleus.activeevents.com/connect/sessionDetail.ww?SESSION_ID=6661&tclass=popup http://www.theregister.co.uk/2012/11/27/project_nashorn_server_javascript/ http://www.oracle.com/javaone/lad-en/session-presentations/clie

Re: [nodejs] Running NodeJs inside JVM

2012-12-07 Thread Ilya Dmitrichenko
Yeah, you should also checkout vert.x (http://vertx.io/) On 7 December 2012 21:57, Forrest L Norvell wrote: > On Fri, Dec 7, 2012 at 11:03 AM, prashant pandey < > prashant.pra...@gmail.com> wrote: > >> I want to know has anyone tried to run NodeJs inside JVM? Or is there any >> specific approac

Re: [nodejs] Running NodeJs inside JVM

2012-12-07 Thread Forrest L Norvell
On Fri, Dec 7, 2012 at 11:03 AM, prashant pandey wrote: > I want to know has anyone tried to run NodeJs inside JVM? Or is there any > specific approach we need to employ to get this done? > Since Node is only partly the JavaScript code of the standard library and predominantly the compiled native

[nodejs] Running NodeJs inside JVM

2012-12-07 Thread prashant pandey
Hi All, I want to know has anyone tried to run NodeJs inside JVM? Or is there any specific approach we need to employ to get this done? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message becaus

Re: [nodejs] Running NodeJS and Tomcat Locally

2012-06-04 Thread Angel Java Lopez
Ah! I forget to mention... The OTHER approach is to use socket.io from client, instead of Ajax. There is a socket.io client for Javascript, and a socket.io module in Node.js. It's not complicated, IMO, so it could deserve a try. And it could be extended to consume different node servers from the

Re: [nodejs] Running NodeJS and Tomcat Locally

2012-06-04 Thread José F . Romaniello
+1 I like this thing Angel, is like my suggestion of using the http-proxy ( https://github.com/nodejitsu/node-http-proxy ) but you avoid having an extra process running and managing that. I dont know about the "http-proxy-servlet" but the node-http-proxy is very straightforward to set up, examples

Re: [nodejs] Running NodeJS and Tomcat Locally

2012-06-04 Thread Angel Java Lopez
Hi people! Sean, you can combine the two answers, from Nicolas and Jose. If your browser settings doesn't recognize different ports as same origin, you could use a proxy servlet at Tomcat. Search google for "proxy servlet" I found: http://edwardstx.net/2010/06/http-proxy-servlet/ that describes

Re: [nodejs] Running NodeJS and Tomcat Locally

2012-06-04 Thread José F . Romaniello
He said "cross port" and i thougth he was trying to call a rest endpoint in his node app from the cliendside page served by tomcat. Cross port (this is Same Origin Policy) is a policy for BROWSERS not for server side Java running on tomcat. El lunes, 4 de junio de 2012, nicolas escribió: > Hello

Re: [nodejs] Running NodeJS and Tomcat Locally

2012-06-03 Thread José F . Romaniello
Use cors or jsonp. Cors works only in few browsers. With Jsonp you can only get things (no post,delete,update) Another thing i will try is to put the two things behind a reverse proxy (http-proxy from nodejitsu is great) and have the tomcat thing in the root while the node in /myrestyadayada 2012

[nodejs] Running NodeJS and Tomcat Locally

2012-06-03 Thread Sean McGowan
I'm running NodeJS locally, with a simple HTTP server on port 8124. I'm running my web application in Tomcat on port 8080. I want my web application to make REST calls to the Node server. Any idas how I get around the cross-port communication issue here? Thanks, Seán -- Job Board: http://jobs