Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.
0
votes
0answers
3 views
how to use node js to query a owl ontology file
I have a owl file with a ontology, now I am using php with the RAP library to query this file, but I have to change this and using a node rest service, but I have no idea how to query this file using ...
0
votes
0answers
3 views
Socket.io not working in android
I have a phonegap app that works fine on ios (since sockets are supported). I'm trying to get the same code to work on android. I am using socketio.jar from ...
0
votes
0answers
9 views
Module pattern and grunt require
This is to followup on an issue.
I do not use node as backend, but uses jade to generate static files. I need to pass some data during the jade compile time, and uses data attribute as shown in the ...
0
votes
2answers
14 views
Creating a proxy that routes through the clients computer
I am making a service which is basically just a UI for another services api that only allows a specific number of requests to be made per machine for a certain period of time.
Because I would be ...
0
votes
0answers
9 views
Passport Authentication immediately after New User Registration
I'm trying to authenticate and login a user immediately after submitting a POST on the /register form. Ideally, I would like users to be able to register and then be redirected immediately to the ...
0
votes
1answer
18 views
How many child processes can a node server spawn?
I'm doing a mathematical computation that is CPU intensive therefore I need to spawn a child-process using node.js because it may block the main even loop. It's not necessarily memory intensive but it ...
0
votes
1answer
9 views
How do I get the id of each doc when saving an array of documents with mongoose?
I have two schemas that look like this:
var ToolBoxSchema = new Schema({
description: String,
tools: [{type: ObjectId, ref: 'Tool'}]
});
var Tool = new Schema({
name: String,
model: ...
1
vote
0answers
8 views
Multiple Consumption of single stream
I want to know if its possible that multiple functions can consume single stream in node.js. If yes How can this done? Is it possible to pipe to multiple destinations?
Please help
0
votes
0answers
30 views
how code to create select?
i have code in main.js
window.kelasView = Backbone.View.extend({
initialize: function () {
this.render();
},
render: function () {
var kelas = this.model.models;
...
0
votes
2answers
24 views
Child-process for cpu intensive task?
So I'm starting to use node.js for a project I'm doing.
When a client makes a request, My node.js server fetches from another server a json and then reformats it into a new json that gets served to ...
0
votes
1answer
14 views
Overwrite a file warning when saving an image with node.js
I have an app written in javascript that lets a user save an image to their disk. This involves node.js. If I ask to overwrite a previously saved image, I get mixed results when it comes to getting ...
0
votes
2answers
28 views
Internal server error for node.js
I have the following code to using node.js to serve a webpage in static/college.html
But it hit the error and shows in browser "Internal server error: could not read file"which is the line printed in ...
0
votes
0answers
11 views
Does the free Nodester plan hibernate like heroku?
I have a nodejs application that is currently deployed to Heroku under their free plan. It's works great except heroku hibernates my application if its not hit within 5 or so minutes. Now that we're ...
0
votes
0answers
6 views
Node-amqp example of Topic exchange
Does anyone have an example of creating a topic exchange in Node-amqp? I've already gone through https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/javascript-nodejs but unfortunately it ...
0
votes
1answer
14 views
node.js storing previous form data, and rerunning previous mysql queries every time form is submitted with new data
I am having a problem with node.js where every time I run a query, it reruns all the previous queries ran, along with the new one.
More specifically: I have a form with three fields: first name, last ...