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.

learn more… | top users | synonyms (1)

0
votes
0answers
6 views

Node.js - App will only load one user on Heroku

I have an app that works on dev, but when I try it on Heroku, it will only load one user. It doesn't matter who logs in, "guestuser" is always signed in, and therefore whoever logs in gets to see ...
0
votes
0answers
9 views

Spin up a report collection node.js app for my executable

I have a java project that runs for a long time since it has a lot of things to churn through (controlling other subprocesses and all). I would like to display the progress of this executable on a ...
0
votes
1answer
7 views

console output req.params in node/express

When I do: console.log(req.params), it outputs: [ id: "param1" ] However when I do, console.log("Params:[%s]", req.params),it outputs [[]] I also tried console.log("Params:[%j]", req.params), ...
2
votes
1answer
35 views

Is Node.js useful for “classic” style websites?

I am considering using nodejs to make a non-realtime app. For example, a website like a blog, forum, or image boards. I have read that nodejs is good when used for asynchronous jobs. So I am ...
0
votes
0answers
6 views

How to use Q.all() with complex array of promises?

Consider I have an array of objects and promises, something like: [{ a: 1 }, { a: 4 }, { a: 4 }, { promiseSend: [Function], valueOf: [Function] }, { promiseSend: [Function], ...
0
votes
1answer
17 views

node js can't install right on my Ubuntu computer

I use the git to install node js, the method I use is below: mkdir ~/local echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc . ~/.bashrc git clone git://github.com/joyent/node.git cd node ...
1
vote
1answer
8 views

express 3 routes being called unnecessarily

I have a 2 routes, the first for an API and the second is a catch all which shows an html page. Now, even if I make a request to .../api/... via a browser, and see the "Invalid" - the second route, ie ...
0
votes
1answer
23 views

Obtaining the name of the current function being executed in Node.js

In Node.js, I'm trying to obtain the name of current function being executed: function doSomething(req, res) { console.log('Function name: ' + doSomething.name); } This works well, but I'd like ...
0
votes
0answers
22 views

Select a 2D array from a 2D array in javascript

I would like to select a piece of a 2D array from a large 2D array, I know how to do this using for loops but I was wondering if there is a more effective way of achieving this. Example: ...
0
votes
1answer
9 views

http error after updating node.js to version 0.11.5

I updated node.js on my laptop to newest version - 0.11.5-pre. Unfortunately One of my apps stoped to work with this error: node: ../src/tcp_wrap.cc:364: static void node::TCPWrap::Connect(const ...
0
votes
3answers
10 views

Socket connection inside route

I'm trying to clean up my express node app by maintaining all of the socket.io functionality inside express routes, or router pages (relying on a question answered here: Nodejs include socket.io in ...
0
votes
1answer
29 views

Good approaches for queuing simultaneous NodeJS processes

I am building a simple application to download a set of XML files and parse them into a database using the async module (https://npmjs.org/package/node-async) for flow control. The overall flow is as ...
0
votes
0answers
13 views

passport-facebook - 'X-Frame-Options' to 'DENY'.

I'm trying to develop a facebook connect with node and passport. But I'm having this error in my browser console: Refused to display ...
2
votes
2answers
12 views

How does exporting the express instance work

I've came across code that goes like this express = require('express'); app = express(); app.use(require('./lib/file.js')); app.listen(80); with file.js containing express = require('express'); ...
3
votes
4answers
30 views

Converting enums to array of values (Putting all JSON values in an array)

I use this method Enums in JavaScript? to create enums in our code.. So var types = { "WHITE" : 0, "BLACK" : 1 } Now the issue is when I want create validations anywhere, I have to do this; ...

1 2 3 4 5 1767
15 30 50 per page