[nodejs] Re: jasmine test cases for a SOAP server

2014-05-07 Thread Reza Razavipour
Raymond, I am using node-soap package for my calls to the real SOAP server. How can I use this package to mock a server, I do not understand. On Wednesday, May 7, 2014 10:50:43 AM UTC-7, Raymond Feng wrote: > > https://github.com/vpulim/node-soap has the server support to mock a > service in n

[nodejs] Re: Atom Shell's "node library".

2014-05-07 Thread Tomasz Janczuk
I am fully supportive of officially enabling the scenario of hosting Node.js in other processes. There is a hole slew of applications that would be enabled by the ability to embed and script Node.js. Based on my experience building Edge.js (http://tjanczuk.github.io/edge) I think many of these

[nodejs] I get duplicate log lines when I refresh browser

2014-05-07 Thread vqck
Hi, I tail a log file on server and dipslay the log lines on the browser. The problem is: Every time I refresh my browser, I get one more duplicate log line. For example, on initial load, I get one log line on the browser for every line in the log file. If I refresh the browser, I get 2 line on

Re: [nodejs] Atom Shell's "node library".

2014-05-07 Thread Cheng Zhao
I tried to merge one of our patches to upstream, but it seems that node is not ready for embedding interface yet: https://github.com/joyent/node/pull/6744#issuecomment-31033455. Cheng On Thu, May 8, 2014 at 4:36 AM, Kevin Ingwersen wrote: > Now, there it is. > > Atom Shell was open sourced a wh

[nodejs] [ANN] metrics-server

2014-05-07 Thread Tim Dickinson
Would like to introduce metric-server metrics-server is a basic metrics server and client. The client uses UDP to send metric to the server. The server stores all metric into a mongodb database. https://github.com/MangoRaft/metrics-server -- Job board: http://jobs.nodejs.org/ New group rules:

Re: [nodejs] Re: Introducing a custom configuration to NodeJS

2014-05-07 Thread // ravi
On May 7, 2014, at 1:11 PM, NativeCoder wrote: > > Thank you for the reply. Yes you are right. NodeJS App exposes a REST Service > which in turn calls a Rest Service hosted in Web Logic to do the user > validation. In this scenario NodeJS REST endpoint act as a facade. The > configuration is

[nodejs] Atom Shell's "node library".

2014-05-07 Thread Kevin Ingwersen
Now, there it is. Atom Shell was open sourced a while ago and I roamed around in its code. Apearently it directly targets a node_lib target within node.gyp. I have not checked the current version of Node's gyp file, but I think now its actually time to offer an embedding API. Why? Because even

Re: [nodejs] async.series + for loop

2014-05-07 Thread Francesco Mari
async.series() executes some asynchronous functions one after the other, in the same order as specified by the array. If you want to repeat the same asynchronous function multiple times, you can choose between async.times() and async.timesSeries(). 2014-05-07 20:13 GMT+02:00 : > Hello guys.. I am

[nodejs] Re: jasmine test cases for a SOAP server

2014-05-07 Thread Raymond Feng
https://github.com/vpulim/node-soap has the server support to mock a service in node. On Wednesday, May 7, 2014 10:08:22 AM UTC-7, Reza Razavipour wrote: > > Right now my soap calls are so deeply nested into my REST routes, I think > I have to start pulling those out, and make them more accessib

[nodejs] Re: Security Issue

2014-05-07 Thread Peter Rust
Thanks, Ritchie, this is valuable. *> environment variables shouldn't be used to store anything secret* I was under the impression that it is common practice to include database creds embedded in a DATABASE_URL environment variable, as well as creds/tokens for other third-party services (s3, et

[nodejs] async.series + for loop

2014-05-07 Thread gonzalo . amadio
Hello guys.. I am trying to figure out how to use async. I am runing this example : var async = require('async'); > > for (var i = 0; i < 3; i++) { >async.series([ > function(callback){ > console.log("wait 4 seconds and give error if i = 2, > value of i :"+ i);

[nodejs] Re: jasmine test cases for a SOAP server

2014-05-07 Thread Reza Razavipour
Right now my soap calls are so deeply nested into my REST routes, I think I have to start pulling those out, and make them more accessible directly. Only then I can mock the specific calls. I was really hoping for a SOAP mock server that I can add the call supports to them but like you said I ca

[nodejs] Re: Introducing a custom configuration to NodeJS

2014-05-07 Thread NativeCoder
Hi Ravi Thank you for the reply. Yes you are right. NodeJS App exposes a REST Service which in turn calls a Rest Service hosted in Web Logic to do the user validation. In this scenario NodeJS REST endpoint act as a facade. The configuration is added to make the decision whether to do call the

[nodejs] Re: jasmine test cases for a SOAP server

2014-05-07 Thread Paul Ciorogar
I would make a mock object that pretends to have the functions and callbacks of the SOAP server so that I can control what data I can get from it. And if you have to wait for multiple asynchronous calls to finish so that you can reach a conclusion or build a page I would simulate that with a se

Re: [nodejs] libuv and timerfd

2014-05-07 Thread Ben Noordhuis
On Wed, May 7, 2014 at 2:01 PM, Kees k wrote: > Hello all, > > I have a difficulty with integrating timerfd worker threads with another > worker thread. Basically my app has two types of external threads: > 1. worker thread that sleeps 10 ms ('does some blocking task') and returns > 2. worker thre

[nodejs] [ANN] PostgreSQL Connector for Loopback

2014-05-07 Thread Raymond Feng
StrongLoop is pleased to announce the 1.0.0 release of the LoopBack PostgreSQL Connector, that enables LoopBack powered applications to access PostgreSQL databases. The PostgreSQL connector is a new member of the LoopBack connector fa

[nodejs] Re: recursive/nested ticks

2014-05-07 Thread eghteen . twelve
thank you Forrest for reply; it did cleared up a few things for me. i hope to continue this conversation on https://github.com/joyent/node/issues/7555 thx On Saturday, May 3, 2014 7:02:32 PM UTC-4, eghteen...@gmail.com wrote: > > Can recursive/nested ticks happen in node? I mean functions regis

Re: [nodejs] Openwrt install node.js

2014-05-07 Thread liuyanghejerry
Quite well :) Node.js makes working with router much easier. ? 2014/5/7 22:31, Aria Stewart ??: On May 7, 02014, at 9:22, liuyanghejerry > wrote: I've successfully built one on Xiaomi's router, which runs Openwrt. I guess you're Chinese, and here's a tutoria

[nodejs] libuv and timerfd

2014-05-07 Thread Kees k
Hello all, I have a difficulty with integrating timerfd worker threads with another worker thread. Basically my app has two types of external threads: 1. worker thread that sleeps 10 ms ('does some blocking task') and returns 2. worker thread that is polls a timerfd and returns. The difficulty s

Re: [nodejs] Openwrt install node.js

2014-05-07 Thread Aria Stewart
On May 7, 02014, at 9:22, liuyanghejerry wrote: > I've successfully built one on Xiaomi's router, which runs Openwrt. > > I guess you're Chinese, and here's a tutorial on how to build it: > https://gist.github.com/liuyanghejerry/a309ef54580004879b40 Wow, nice machine! A router with 256MB of R

Re: [nodejs] Openwrt install node.js

2014-05-07 Thread liuyanghejerry
I've successfully built one on Xiaomi's router, which runs Openwrt. I guess you're Chinese, and here's a tutorial on how to build it: https://gist.github.com/liuyanghejerry/a309ef54580004879b40 于 2014/5/7 14:13, Oliver 写道: Is anyone can build node.js then install it on Openwrt? -- Job board:

Re: [nodejs] Openwrt install node.js

2014-05-07 Thread Aria Stewart
On May 7, 02014, at 2:13, Oliver wrote: > Is anyone can build node.js then install it on Openwrt? I have not — and haven’t heard of anyone. What platform are you aiming for? v8’s a little large for some of the most memory-constrained routers, though I can imagine it working well on the large