Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript Engine. Node.js - or just Node as it's commonly called - is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore ...

learn more… | top users | synonyms (1) | node.js jobs

0
votes
1answer
6 views

Compile regex rule in Node.js?

Is it possible to compile regex rules in Node.js for faster usage?
0
votes
0answers
9 views

Saving document with embedded documents containing ObjectID Reference

I'm using mongoose to implement the following data models: var PostSchema = new Schema({ comments : [Comments.schema] }, {collection:'order'}); var PersonSchema = new Schema ( { name ...
0
votes
0answers
12 views

Node.js DRY with MySQL clients

so here's a quick question. Basically I'm making an express application that connects to a MySQL server. Pretty simple. But how do I stop adding all the connection code between files so I don't have ...
0
votes
0answers
11 views

RequireJS: how do I handle different module dependencies for code shared between the browser and server?

I have a requireJS module loaded on both the browser and the server, to implement some shared functionality. The module however has different dependencies in each environment: In node, it needs the ...
0
votes
0answers
7 views

how to access couchbase from couchdb REST API

i've learned couchdb for a year... i've tried bigcouch too... now i want to try couchbase, i've studied it 2 days, but i still don't know how to access couchbase from couchdb REST API (using ...
0
votes
1answer
21 views

why undefined in node.js hello world example after console.log

i just started with node.js . So for starting with Hello World example node.js beginner book . when i type the command console.log("Hello world"); . Its prints Hello World on console . That what i ...
2
votes
2answers
14 views

NodeJS fs.watch on directory only fires when changed by editor, but not shell or fs module

When the code below is ran, the watch is only triggered if I edit and save tmp.txt manually, using either my ide, TextEditor.app, or vim. It doesn't by method of the write stream or manual shell ...
0
votes
1answer
32 views

How to limit usage of virtual memory by node.js?

I am working in an embedded environment, where resources are quite limited. We are trying to use node.js, which works well, but typically consumes about 60 megabytes of virtual memory (real memory ...
0
votes
0answers
114 views

ES6 proxies cannot intercept array indices

Here is my test code (to be run using node --harmony-proxies foo.js: var a = Proxy.create({ get : function (proxy, prop) { return 5 } }) console.log(a['foo']) ...
1
vote
0answers
14 views

Node.js Mongoosejs populate a populated field

My document has a document that has a document. I wanted to find out how i can populate the inner document as well. I have tried this but it is not populating my innter document. ...
0
votes
1answer
12 views

Setting process.stdout to a file per node.js core cluster worker

I'm trying to use node core's cluster feature. I would like the stdout and stderr streams to output to a file, one for each worker id. Something much like the following: var fs = ...
0
votes
2answers
21 views

How to optimize this call to a string of static and dynamic strings? (JavaScript/Node.JS)

I have this snippet of code which I simplified for the sake of this question: //var a is generated once at runtime //from an array of strings //and an array of functions var a = [ "Start ...
0
votes
1answer
20 views

Phonegap (1.7.0) + node.js + socket.io

I am trying to build an Android (v.4.0.3) app with Phonegap (Cordova 1.7.0), Node.js (v0.6.18) and Socket.io (v0.9) on the other side. I need to do this for my school project, but I hit a wall due to ...
2
votes
3answers
23 views

Using MemoryStore in production

Today I ran my Node.js application in "production" mode for the first time and got this warning: Warning: connection.session() MemoryStore is not designed for a production environment, as it will ...
2
votes
2answers
34 views

Using php + gearman + node.js

I am considering building a site using php, but there are several aspects of it that would perform far, far better if made in node.js. At the same time, large portions of of the site need to remain in ...

1 2 3 4 5 592
15 30 50 per page