0
votes
0answers
10 views
Static HTML not rendered Cloud 9 node express/socket project
I am trying a node express/socket.io project in Cloud 9.
I have the following project structure
├── server.js
...
0
votes
0answers
15 views
Cannot post in an Express + Passport app / Authentication test
I am trying to use Passport as an authentication middleware with Express - and Angular, if it matters. I have just started to know these frameworks and I experiment with a simple test login in the ...
0
votes
0answers
20 views
Nodejs+sockets for a one-on-one connection
I'm very new to nodejs and sockets. And i'm trying to create a small app which will have to work as following:
One user initiates the progress and get's a random generated code. This is stored in ...
-1
votes
2answers
62 views
0
votes
1answer
34 views
Javascript paints images over top of each other
I am using node.js + socket.io to try and make a multiplier HTML5 canvas game. Unfortunately every time I go to draw all of the players, all the images end up on top of each other.
...
1
vote
0answers
41 views
How to avoid a race condition in Nodejs and Mongoose app?
I have a routine to update a value in the DB and then look for it on a one second timer. Here is a simplistic setup...
function checkStatusAndDoWork(){
userMongooseModel.find({'someCondition': { ...
0
votes
0answers
31 views
Load JSON items in my playlist in the same order
I’m doing a small YouTube app with node-webkit but I’m not a master with JavaScript.
I have some JSON objects from gdata responses and have items in a particular order, always the same. I can load ...
0
votes
2answers
51 views
Which's the best DB(NoSQL or regular SQL) to choose using Node.js? [closed]
I've read that there are more information about using MongoDB with Node.js rather than MySQL and that is a concern for me, because I'm used to work with MySQL. In terms of development and performance ...
1
vote
1answer
22 views
Javascript 'undefined' variable when using async.map on prototype functions
I would like to use the fantastic async module to write some nice Javascript code for NodeJS. I've got an array of values and I want to call a particular function on each value and to accumulate the ...
2
votes
1answer
52 views
How does NodeJS handle async file IO?
Having worked with NodeJS for some time now, I've been wondering about how node handles file operations internally.
Considering the following pseudo code:
initialize http server
on connection:
...
2
votes
1answer
34 views
Why am I getting weird result using parseInt in node.js? (different result from chrome js console)
I just noticed that:
//IN CHROME JS CONSOLE
parseInt("03010123"); //prints: 03010123
//IN NODE.JS
parseInt("03010123"); //prints: 790611
Since both are based on V8, why same operation yielding ...
0
votes
1answer
18 views
Express BodyParser responds with Bad Request, Status 400?
I'm using Node + Express
I use the following function to fetch some json from the server:
$.ajax({
url: url,
contentType: "application/json",
...
0
votes
0answers
9 views
Casper.js download binary doesn't work cross-domain
I need to download the image resources using Casper.js. I run into cases when the images are hosted on CDN with different domain name. Below for Twitter.com example and it doesn't work even using ...
0
votes
0answers
20 views
Express + Passport + RedisStore session data not always updated
I have a Node.js app.
I am using Express + Passport for Authentication. I am using a Redis Store for the session.
I want to upload files, then write the name of the file to the session. Here is my ...
1
vote
0answers
15 views
Node.JS Adding access Node Modules using Require() to a CreateContext()
In my application I CreateContext and then RunInContext. I need to add access to only certain Node modules within the Context. I know how to add my own Javascript methods, but get errors when I add ...