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)

3
votes
1answer
16 views

Wrong stacktrace when using longjohn in nodejs

I am getting a wrong stacktrace using longjohn with the following code. It is showing setTimeout getting called from the firstfunction, but in real the program is crashing before firstfunction is ...
0
votes
0answers
6 views

Start firefox selenium with proxy

I want to run selenium with proxy. I am using this command: .\java.exe -jar 'D:\Проекты\printscreen\selenium\selenium-2.33.0.jar' -Dhttp.proxyHost=127.0.0.1 but the above command is not ...
0
votes
1answer
9 views

Sequelizejs isn't showing up all the validation errors or messages

This is my models.js var User = require('../../managedb').User; module.exports = function(sequelize, DataTypes) { return sequelize.define('User', { username: { type: DataTypes.STRING, ...
0
votes
1answer
21 views

How do i uniquely identify a browser (or client) whenever it's connected to server

I am using Node js and socket.io for implementing basic chat application. Every client that writes any message is broadcast-ed to all clients that are connected to server (Its a cross browser ...
1
vote
1answer
18 views

Communicating with a Node.js server application

I am building a chat application that consists of a Django web backend with a Node.js/socket.io powered chat server. There will be instances when changes made via the web interface (e.g. banning a ...
0
votes
2answers
22 views

How to implement inheritance in Node.JS

How do we use 'inheritance' in Node.JS? I heard that prototype is similar to interfaces in java. But I have no idea how to use it!
0
votes
0answers
17 views

Is there any tools/scripts to help CI for web site development?

I'm looking for a solution to integrate a brunch based app (brunch.io) with an existing Jenkins/Chef based CI environment. Source code of the brunch app is stored in a git repo. In more details I'm ...
1
vote
1answer
12 views

How to use a variable as a field name in mongodb-native findOne()?

I have this data in mongodb: { "name": "TestPatient-2", "country": "India", "region": "North" } I want to retrieve the data querying on a fieldname passed as a variable. Following ...
1
vote
0answers
16 views

Trying to import gmail contacts using node.js

I'm trying to import gmail contacts. I have successfully obtained the access_token but when trying to get the contacts browser keeps throwing the error. invalid_grant my codes below. for ...
0
votes
1answer
19 views

How, in Node.js, to respond to a GET request from client (send some HTML in response)?

I have a Node.js app which, among other things, responds to a AJAX (jQuery) $.get() request from a Web page by sending some HTML back to that page. The app uses Express. So in the server code, I ...
0
votes
1answer
18 views

hostgator vps level 1 & node.js

I've acquired a hostgator vps level 1 account to use with node.js development. But when it comes to servers I'm a bit of a noob so I was wondering if the more experienced developer could give me ...
2
votes
0answers
10 views

How to handle conditional file downloads in meteor.js

In php you can use headers to force downloads of files, and also to hide actual file locations etc. This is useful if you only want certain users under certain conditions to be able to download ...
0
votes
0answers
19 views

JQuery not loading in nodejs script execution

When I am loading jqeury on the REPL mode of nodejs it works fine like this: var $ = require('jquery'); When I have exact same line in a script and I try to run this from the command line I get ...
1
vote
2answers
39 views

How to sort an array of objects based on the numerical value of an object property?

I have an array like this var arr = [{ "name": "John", "age": "16" }, { "name": "Charles", "age": "26" }, { "name": "Charles", "age": "12" }, { "name": "Charles", ...
0
votes
0answers
9 views

How to implement Twitter oAuth in Backbonejs and Nodejs

I am implementing Twitter oAuth in Backbonejs and Nodejs. I have Node api calls app.get('/api/auth/twitter', function(req, res){}); app.get('/api/auth/twitter/callback', function(req, res, next){}); ...

1 2 3 4 5 1569
15 30 50 per page