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
1answer
14 views

What is the difference between the async.compose function and underscore.compose function?

Both seem to be doing the same thing, i.e. calculating f(g(h(x))), when called like this async.compose(f, g, h) or _.compose(f, g, h). Is there any difference between the two calls ?
0
votes
0answers
9 views

Mocha tests failing against sub-classed models

I'm writing some very simple unit tests in Coffeescript for a Meteor app using Mocha and getting an error when testing any model which inherits from another. The simplest example of this can be seen ...
0
votes
2answers
21 views

Mongodb's generated UID contain the word “bad”

Does anyone know what a "_id" generated by MongoDB ( or perhaps a Mongoose save ) means when it contains the word "bad" in the middle. eg: 521b633274bad76823000002 I couldn't find an answer on the ...
0
votes
0answers
7 views

Multiple environment configurations on Heroku for node.js

Before I tried to deploy this app to Heroku I had a config file that was not tracked in git. #.gitignore config/config.js //config/config.js module.exports = { ...
1
vote
1answer
21 views

Incorrect connections number

I wrote a very simple script just to retrieve list of connected users. var app, io, server; app = require("express")(); server = require("http").createServer(app); io = ...
0
votes
0answers
7 views

How to serialize nested messages in node.js protobuf module?

Schema: message BalanceRequest { repeated BalanceRequestElement request = 1; } message BalanceRequestElement { optional int32 serverCode = 1; optional int64 playerId = 2; ...
0
votes
2answers
13 views

Retrieving value of count mongodb collection in a variable

I am trying to retrieve the value of records from a collection in Mongo DB Here is my source. exports.procc = function(req, res) { db.collection('search', function(err, collection) { ...
0
votes
1answer
18 views

Access SFTP from NodeJS

I have a need where i have to open a SFTP connection with a server, copy a file from there to local. To that end, i have tried installing node-sftp module using npm install node-sftp It didnt ...
0
votes
1answer
13 views

Node.js throws an error when connecting to a server (WSS)

I use SSL Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE Nodejs version: 0.10.2 WS module: WebSocket-Node (last ver) On version 0.8.22 everything works well.
0
votes
2answers
21 views

How to get notifications on database column changes

i am using mysql-client library for mysql on node.js server. I am looking for library in node.js sever that run continously and watch on mysql table column and send notifications when changes occour ...
0
votes
1answer
25 views

Wrong time format fetched

I am using Node for fetching data from MySQL. In database, i got record like : 2013-08-13 15:44:53 . But when Node fetches from Database , it assigns value like 2013-08-19T07:54:33.000Z. I just need ...
0
votes
2answers
13 views

node.js process.hrtime in asynchronous server?

I create a http server using http.createServer(onRequest) and want to measure time needed to make a response. Currently, in my onRequest handler I do: var start = process.hrtime(); ...
0
votes
1answer
33 views

Express.js - error when trying to pull data from mysql

I am using the following controller action: exports.search = function(req, res) { var x = []; if (req.query.criteria == 'language') { var langQuery ="SELECT * FROM languages WHERE language LIKE ...
0
votes
0answers
15 views

Streaming video from nodejs to an open player

Looking for suggestions on how to setup an open video player... Have an older Java Swing "play" setup here whereby the "total" video is segmented into tinier 2 second h264 files (average 1000kb). ...
-1
votes
1answer
23 views

How to insert data in Redis using NodeJs?

Helo guys i'm just new in nodejs and redis but i don't have any idea on inserting data in redis using nodejs/express. Can you please help me or provide me an example? Thanks :* ~janella :)

1 2 3 4 5 1830
15 30 50 per page