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 (2)

0
votes
0answers
6 views

Node.js multi-server cluster: how to share object in several nodes cluster

I want to create a cluster of node.js server in order to support many concurrency simultaneously, for a chat rooms applications. The servers hold information that needs to be shared between all nodes, ...
0
votes
0answers
7 views

JADE: Convert HTML to JADE issues

Im trying to convert the following code from HTML to JADE: <a id="bgndVideo" href="http://www.youtube.com/watch?v=Df8ofF1mbdA" class="movie {opacity:1, isBgndMovie:{width:'window',mute:false}, ...
0
votes
0answers
6 views

Connect.js middleware to rewrite request body

I have an Express-based Node.js application. I would like to convert line ending characters in my incoming request before the request passes to the rest of my Connect middleware stack (specifically, ...
0
votes
1answer
10 views

Socket return object Object

i have following nodejs code: function setUpTaxiEvents(socket){ socket.on("taxi:register",function(token){ console.log('Registered taxi with token ', token); var taxi = ...
0
votes
0answers
7 views

Nodejs - Error Event not Firing when trying to connect to a non-existing server

I have my working Nodejs Server and Client communication. Is there a way to detect if the Client Side has been connected to the server side? My script is checking the the 'error' event to fire, but ...
0
votes
0answers
9 views

Why cant we use websocket on our server setup (nginx, node js, load balancer)? It's always going to xhr-polling

We have a web application setup with Barracuda Load Balancer (3 servers running). We want to implement node js using websocket (socket.io) but its always falling into xhr-polling (which is way too ...
0
votes
0answers
11 views

Is it bad idea to use custom pk as string?

Let me explain the problem. I use node-mongodb-native as mongod driver and every time I need to make find query by _id field I have to convert it to ObjectId like the following: var ObjectID = ...
0
votes
0answers
10 views

How to get cpu ticks per second in nodejs

I was trying to get the percentage of CPU usage by nodejs app, I found the below: http://stackoverflow.com/a/7774034/696184, here it is mentioned, 10000 ticks per second, but in my linux system, it ...
0
votes
0answers
5 views

Trying to setup Node.js (Express) to work with vhosts, and getting unexpected errors

I'm trying to set it up to work with a couple vhosts, so that I could manage everything through the one node app; but I've been getting this error. It's late right now, so my mind isn't 100%, but ...
0
votes
1answer
12 views

Run CoffeeScript class in browser and in node

I have a class in CoffeeScript that I would like to use both on the server and in the broser. For the server I need class classname constructor: (@arg)-> #code module.classname = ...
1
vote
0answers
19 views

Error: invalid signature: 0x4acf92ad (at position: 0x29)

I was trying to convert excel into json in node. I found a few modules that may be helpful. I tried npm excel https://npmjs.org/package/excel‎ My app.js var express = require('express'); //Call ...
0
votes
1answer
14 views

NodeJS export similar routes in on declaration

I have this code in my /routes/index.coffee file: exports.Dropbox = (req, res) -> production = if process.env['NODE_ENV'] == "production" then true if production mixpanelId = ...
0
votes
0answers
6 views

Facebook OAuth creates new user each time using Passport and Express

I am using the Passport node module in conjunction with Express to enable users to login via facebook, twitter, and google. I have setup facebook and twitter so far and users can login successfully, ...
0
votes
0answers
21 views

best practices in express configuration

this is my configuration in app.js app.set('port',26000 || process.env.PORT); app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); ...
-1
votes
1answer
25 views

Text Editor Require.js

I am new to webdevelopment, particularly Require.js and Node.js Could you help me with any good Text Editors to work with Require. I am currently using Notepad++, its good alternative of notepad, ...

1 2 3 4 5 1553
15 30 50 per page