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

Node.js and MongoDB using Mongoose. Using findByIdAndUpdate vs Manual

are there any drawbacks to using findByIdAndUpdate and doing it manually. I noticed that findByIdAndUpdate drops my mongo connection, and read that you should try to keep connection open, only close ...
0
votes
0answers
9 views

Is this method of client identification okay to use? (PHP/node.js/socket.io)

I am very new to Node.js and socket.io and would like to understand if what I am doing is the correct/best way to go about adding simple real time notifications to my web app. First some ...
0
votes
1answer
9 views

NodeJS v.0.10.X is not backwards compatible with v0.8.X for multicast

NodeJS v.0.10.X is not backwards compatible with v0.8.X for multicast. bind seems to have changed from synchronous to async. I'm currently working around the issue with a horrible fudge: ...
0
votes
0answers
8 views

CraftyJS: z-index issue with isometric & character Sprites on some Tiles + Tile coords seem to be wrong

I am having a weird problem with the library CraftyJS. First of all, I generate my tiles with the following (implicit Crafty.init() & Crafty.canvas.init() before): iso = ...
0
votes
1answer
21 views

chatserver in node.js fundamental error

Hello i am running a basic code for a chatserver on node.js. This is almost lifted from the book - Node:Up and Running. The problem is when a client types a message, his message is transmitted at each ...
0
votes
2answers
17 views

Giving encoding error in nodeJS

I am just trying some code on NodeJS, i am new to NodeJS. I have write following block of code. var fs = require('fs'), os = require('os'); var filename = 'Server.ini'; var serverData = ...
0
votes
2answers
17 views

node.js: cannot find module 'request'

I installed request module, and getting the error: module.js:340 throw err; ^ Error: Cannot find module 'request' i've read all the posts about this error, and understand that this is ...
1
vote
1answer
30 views

Need to Understand the flow of ReadWrite in NodeJS

I am just trying some code on NodeJS, i am new to NodeJS. I have write following block of code. var fs = require('fs'), os = require('os'); var filename = 'Server.ini'; var serverData = ...
0
votes
0answers
9 views

how to unzip file and save into particaular folder

i am trying to unzip a zip file and save into target path i tried these thing var zip = new AdmZip(x); zip.extractAllTo(/target path,false); and then ...
0
votes
1answer
12 views

Perform this query on all documents in a collection: this.value = Math.min( this.max, this.value + this.increment) in mongodb

My documents have all {max, increment, value} and I wish to iterate over all of them with this.value = max( this.max + this.increment). Currently, I find() all of them, perform value = Math.min( max, ...
0
votes
0answers
17 views

Using Redis to communicate between PHP and socket.io/node.js

I have a PHP app built and running on Apache, using Nginx as a reverse proxy to serve static resources. I also have Redis installed which I am using to store activity ID's for each users activity ...
0
votes
0answers
17 views

HTML5 video, socket.io and Node.js

I would like to know what is the state of art by now of the html5 tag and the possible applications. In particular, i would like to develop an architecture which on a client side (let's call it A) ...
0
votes
0answers
20 views

How can node.js process trigger a callback function when it exit?

That is my code, I tried two ways to trigger a callback function when process exit. My purpose is when process exit, it can write some word to a txt file. The way I exit process is click the 'close' ...
0
votes
1answer
6 views

Is it possible to configure which folder geddy.js is going to use as 'public'?

This is my basic webapp folder structure: -> server |-> all geddy.js files (is a REST app) -> client (angularjs managed with yeoman) |-> app |-> test |-> [...] As I am ...
0
votes
3answers
30 views

Where does node.js put its files?

I have recently started playing with node.js, but I got lost in a big mess of different versions of node, npm, nvm and other packages. I don't know what is installed globally and what is installed ...

1 2 3 4 5 1468
15 30 50 per page