[nodejs] Re: Pushing data from server to client

2014-11-20 Thread FELIPE TORRES
To develop a reliable two-side communication system, i'd look into socket.io as al alternative I've used plenty of times and found little to no problems on implementing and develop with it. Although you need a stable connection between the server and the client. I'd give it a go :) El

Re: [nodejs] Pushing data from server to client

2014-11-20 Thread Niral Kalavadia
Hello Chris, Thank you very much for your inputs. Yes it is necessary for server to ask for data to client. This is the only mandatory need of my network. Is it possible to use node.js in this application?? Is node capable of sending request to multiple client at a time??? On Wednesday,

[nodejs] fs.createReadStream on http cluster suspends requests without throwing events

2014-11-20 Thread nik600 AT 10^100
Dear all i've got an http cluster based on nodejs, basically this component does the following: - does some regex matching on the req.url - case A) - forward the request to a back-end - case B) - check if exists a local file - case B.KO) - forward the request to a back-end - case B.OK) - pipe

[nodejs] Re: PHP to node.js

2014-11-20 Thread zladuric
Vasa, It seems your webserver.js is incomplete? Either that or you forgot to call res.end() in there. From what I see, you read file names the database? Then read those files? What do you want to do with them? Let's say you just want to respond with a JSON of the files you found in the

[nodejs] Re: Pure SQLite Implementation in Nodejs?

2014-11-20 Thread Andrey Gershun
You can try Alasql (https://github.com/agershun/alasql) - it is pure JavaScript server, which works in browsers and Node.js as well. Here is an example, how to use it in Node.js: var alasql = require('alasql'); var db = new alasql.Database(); db.exec(CREATE TABLE test (one INT,

[nodejs] Shall I use node.js in my application or not? Please suggest.

2014-11-20 Thread madhav anand
My Application is a J2ee based application with Spring/Hibernate and Oracle (db) in the backend. Also, for front-end it is using HTML5. Kindly suggest should I use node.js in my application. If yes, then how java and node.js will interact with each other or do I need to re-write my existing

[nodejs] Re: socket.io over https memory leak issue

2014-11-20 Thread Pablo Torres
My app is seeing the same problem, memory blowing up after some time and then CPU going to 100%. We've been using socket 1.x since mid August, so that doesn't solve it. Does anyone have any ideas as to what to try next? For us, a partial fix was to make sure that we only use websockets as a

[nodejs] chromium browser is crashing when running testcases with karma

2014-11-20 Thread Rajit Garg
*I am trying to test my angular js code with Karma, which is working fine with firefox, but when I am trying to run with my chromium-browser(with ubuntu 13.10), it is opening mutiple browsers of chromium, please see the below actual output* INFO [karma]: Karma v0.12.24 server started at

[nodejs] Re: cwd option in child_process.spawn

2014-11-20 Thread Rajasekhar Chinnam
Found the issue: Now 'arguments' should be array not string. Node should have given a better error message rather than just ignoring the cwd parameter. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules:

Re: [nodejs] cwd option in child_process.spawn

2014-11-20 Thread Sam Roberts
On Wed, Nov 19, 2014 at 12:01 PM, Rajasekhar Chinnam rajasekhar.chin...@gmail.com wrote: I am running node on Windows. The 'cwd' option of the child_process.spawn method is ignored after upgrading to node to '0.10.29'. Do you have a complete reproduction? Because I don't think you can spawn

Re: [nodejs] Pushing data from server to client

2014-11-20 Thread Ryan Schmidt
On Nov 20, 2014, at 4:02 AM, Niral Kalavadia wrote: Yes it is necessary for server to ask for data to client. This is the only mandatory need of my network. Is it possible to use node.js in this application?? Is node capable of sending request to multiple client at a time??? Yes, and

Re: [nodejs] Shall I use node.js in my application or not? Please suggest.

2014-11-20 Thread Ryan Schmidt
On Nov 20, 2014, at 3:02 AM, madhav anand wrote: My Application is a J2ee based application with Spring/Hibernate and Oracle (db) in the backend. Also, for front-end it is using HTML5. Kindly suggest should I use node.js in my application. Why do you think you should? What are you hoping

Re: [nodejs] Re: PHP to node.js

2014-11-20 Thread Vasa
Ravi I am developing an application that queries mysql database (that gets updated realtime) whenever there is a http request and draws a chart with the data. Basically i am POPULATING DATA USING SERVER SIDE CODE. I found a sample in php which works fine for small database. But it fails for

[nodejs] Re: PHP to node.js

2014-11-20 Thread Vasa
Hello zladuric, Thank you for your inputs. I know my webserver.js (which is my nodejs file) is incomplete. I have just included method stubs that needs to be developed. Alright, let me explain what i am trying to do. I am developing an application that queries mysql database

Re: [nodejs] Re: PHP to node.js

2014-11-20 Thread Vasa
Thank you for your reply. On Wednesday, November 19, 2014 11:39:11 PM UTC+5:30, Chris Rust wrote: Every time you have a function that you want to run first, that makes use of callbacks, such as: myFunc(function(err, result) { ... }); Then you need to place the code you want to run second

[nodejs] Licensing

2014-11-20 Thread Kevin Ingwersen (Ingwie Phoenix)
Okay, so let’s say I have coded a bunch of modules for a private site and I opensource them on my website, but do NOT want them to be used anywhere else without my permission. What license would be good? o.o -- Job board: http://jobs.nodejs.org/ New group rules:

Re: [nodejs] Pushing data from server to client

2014-11-20 Thread Will Hoover
Just to add to Ryan's comments... If you do decide to use a modern web browser as your client (and you don't care about Internet Exploder support) you can use SSEs. The beauty of using SSE is that if your server goes down or a connection is lost the SSE client will reconnect automatically:

Re: [nodejs] Licensing

2014-11-20 Thread Aria Stewart
On Nov 20, 2014, at 2:37 PM, Kevin Ingwersen (Ingwie Phoenix) ingwie2...@googlemail.com wrote: Okay, so let’s say I have coded a bunch of modules for a private site and I opensource them on my website, but do NOT want them to be used anywhere else without my permission. What license

Re: [nodejs] Pushing data from server to client

2014-11-20 Thread Will Hoover
Sorry, noticed that you want them sent at the same time: var clients = []; require('http').createServer(function (req, res) { if (req.headers.accept req.headers.accept == 'text/event-stream') { res.writeHead(200, { 'Content-Type': 'text/event-stream',

Re: [nodejs] Re: cwd option in child_process.spawn

2014-11-20 Thread Sam Roberts
On Wed, Nov 19, 2014 at 3:13 PM, Rajasekhar Chinnam rajasekhar.chin...@gmail.com wrote: Found the issue: Now 'arguments' should be array not string. 1. arguments hasn't been a string EVER in 0.10, can't speak to before 2. if arguments is NOT an array in position args[1], it was assumed you had

[nodejs] Addons: Using Node.js FileSystem module to save and load wrapped object

2014-11-20 Thread blazs
I am working on a linear algebra Node.js addon (written in C++) and I want to be able to save to and read from disk all objects I exposed. For example, v = la.load(fs.open(vector.out, r-)); would load a vector object I previously saved with v.save(fs.open(vector.out, r+));. (I'm making it up

Re: [nodejs] Pushing data from server to client

2014-11-20 Thread Niral Kalavadia
Thank you very much.. MQTT.js seems that it will do for me.. On Friday, November 21, 2014 1:11:14 AM UTC+5:30, svante karlsson wrote: Since you are speaking of sensor networks, MQTT is a perfect fit for what you want. This can easily be done in any language (a lot at least) but if you would

[nodejs] Re: Pushing data from server to client

2014-11-20 Thread Niral Kalavadia
Hello Felipe, Thanks a lot for your inputs.. On Thursday, November 20, 2014 4:23:19 PM UTC+5:30, FELIPE TORRES wrote: To develop a reliable two-side communication system, i'd look into socket.io as al alternative I've used plenty of times and found little to no problems on implementing

Re: [nodejs] Pushing data from server to client

2014-11-20 Thread Niral Kalavadia
Hello Will, Thank you very much.. On Thursday, November 20, 2014 10:12:46 PM UTC+5:30, Will Hoover wrote: Sorry, noticed that you want them sent at the same time: var clients = []; require('http').createServer(function (req, res) { if (req.headers.accept req.headers.accept ==

Re: [nodejs] Licensing

2014-11-20 Thread andy e
http://choosealicense.com is a pretty good site, explains some use cases and requirements when picking a license. (I don't know of any license that requires permission to use - seems like usually someone just slaps GPLv2 on things they want 'shared' but not necessarily used/copied.) On Thu, Nov

Re: [nodejs] Re: PHP to node.js

2014-11-20 Thread Oliver Leics
Hi Vasa, https://gist.github.com/oleics/36fd5049cf2f848e34a5 It's not working and I will not finish this gist, but you can use it as a starting point, if you want to. Two random notes: * I see no need to require fs or socket.io. Stick to the minimum you need, everything else is just confusing,