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
0answers
5 views

Getting the right client-side socket-io.js file

I am trying to get socket.io (Node library) to work. I have the server-side js working, and it is listening. The socket.io website states simply: <script ...
0
votes
0answers
2 views

Generate Alternative when Unique Index fails on MongoDB

So when users sign up via Google, Twitter or such, names can overlap. Within my app, usernames have a unique index. Since a new document is put into the collection whenever someone signs in for the ...
0
votes
1answer
7 views

How to chain a variable number of promises in Q, in order?

I have seen Chaining an arbitrary number of promises in Q ; my question is different. How can I make a variable number of calls, each of which returns asynchronously, in order? The scenario is a ...
1
vote
1answer
21 views

Why does Node.js convert BOM character to 0xFE 0xFF?

I have been working with node's fs.readFileSync(), passing "utf8" as the encoding to read input. When the file contains a BOM character in UTF8 (0xEF 0xBF 0xBB) it converts it to the byte sequence ...
0
votes
0answers
10 views

Only allow passportjs authenticated users to visit protected page

Is placing this code inside of a route enough to protect pages from unauthenticated users? if (!req.user) return res.send(401, "Not allowed in");
0
votes
0answers
5 views

Installing GraphicsMagick on Mac OS X 10.8

I am trying to install GraphicsMagick on Mountain Lion and having problems. I tried all the things that I could search for in blogs and other stackoverflow questions but nothing worked. So I have put ...
0
votes
0answers
14 views

Upvote and Downvote with Backbone, Express and Mongoose

I am trying to implement a voting system similar to stackoverflow or reddit where a user would only be allowed to vote once on a given post. After following the advice given here storing ...
0
votes
0answers
6 views

Querying Winston Logs

I am using winston for logging in a node.js application. I see there are options to query it. The example shows how to use options from and to. My question is What are the other options ? How do ...
1
vote
1answer
8 views

Displaying an image with EJS in node.js/express

I'm just trying to get setup with node.js/express/ejs. I know ejs isn't actual HTML and so I'm having a hard time just displaying a simple image. Can someone point me in the right direction? ...
0
votes
0answers
19 views

What to store on Redis, what to store on Mongo?

I have a web service, and I'm trying to push as much of my persistent data to Redis for obvious performance reasons. I already have portions of my node.js application using Redis for storing child ...
0
votes
0answers
19 views

How do I loop through the search results and based on which ids match return true to display different info for it?

Hey so I am trying to search through the search results and see who already exists in the friendRequest array of the user searching. If they exist then I want to change the button that displays for ...
1
vote
1answer
22 views

What's the better way to get the Node.js app total time execution?

I've made a Node.js app that makes exactly the same thing that another solution in C#. The both app get all the javascript files from a directory recursively and execute uglify-js command to minify ...
0
votes
0answers
7 views

Error: ERR invalid expire time in SETEX

I had a web app and after update i get error after 2 hours of working, i'm really don't inderstand what's the problem.Also in this new version i add a multiple connection for mongoDb using mongoose. ...
0
votes
1answer
16 views

MongoDb for collection of production data

I am facing a new type of problem that I haven't tried tackling before. So I would like some pointers in the right direction by someone more knowledgeable than I :-) I have been asked by a friend to ...
0
votes
0answers
15 views

RangeError: Maximum call stack size exceeded at new Number (<anonymous>) at Number.toString (native)

RangeError: Maximum call stack size exceeded at new Number () at Number.toString (native) Here is my code i am geeting this error continusly js=jQuery.noConflict(); ...

1 2 3 4 5 1700
15 30 50 per page