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

telnet command in nodejs not running(on windows)

I am trying to learn nodejs. Trying to execute an example var server = require('net').createServer(); var port = 4001; server.on('listening', function() { console.log('Server ...
0
votes
1answer
4 views

How to define partial views in node.js with Express 2.5

I need to define the skeleton for my node.js app with a menu that needs to be different for logged and anonymous user. I think that the correct way should be the use of partials (i use Express 2.5) ...
0
votes
0answers
10 views

long polling and queue to hold requests

POST /add-request - adds new request POST /get-request - returns first (oldest) request I have many Java apps which are called "slaves". Their job is to call POST /get-request to get request to ...
1
vote
1answer
18 views

How to determine whether an asychronous call is the last one or not

Working with an asynchronous language (node.js in my case) I often end up with a two dimensional loop and an response at the very end: firstArray.forEach(function(first){ ...
0
votes
0answers
6 views

Config DustJS (ServerSide) do not escape new line?

I'm using DustJS with ExpressJS with NodeJS. When ExpressJS renders, it auto escape the new line and white space in my dustJS; while since I'm putting JavaScript into my DustJS templates, I want to ...
0
votes
0answers
23 views

Google Map and form based web application [closed]

Could anyone please point me on how to start to create a simple web application which uses a form to CRUD in Google maps.(I google a lot). I would like to use Nodejs/mongoDB stuff for it.
0
votes
0answers
21 views

CPU spike using Amazon nodejs library

I am getting 100% CPU spike while using amazon SDK (for dynamodb). Profiling results (using nodetime) show that its the signing mechanism (libcrypto library) where application is spending majority of ...
0
votes
1answer
19 views

Retrieving Dates in MongoJS

I'm trying to store and retrieve a date in mongojs. Here's how it's saved: var game = { startedOn: new Date() }; db.games.save(game); When I fetch it, the date is not a date anymore. It's some kind ...
0
votes
3answers
27 views

Node.js how to _.each internal callbacks synchronously

I'm fairly new to node.js, and I can't figure out how to control the program flow so that my function waits for an Underscore _.each() block with internal callbacks. I'd really like to avoid a heinous ...
0
votes
1answer
14 views

grunt-watch when you create a new folder does not work

grunt-watch is being created using the program, a new folder will be found the problem the question. If the file structure look like the following: js/moduleA.js js/moduleB.js ...
0
votes
0answers
21 views

read csv with headers then upload each row to couchdb using node/grunt

I would like to read a csv file and upload each row to a couchdb using a grunt task. At this point I am not yet doing any database validation such as checking if the record already exists but will ...
1
vote
1answer
24 views

Node.js MySQL Needing Persistent Connection

I need a persistent MySQL connection for my Node web app. The problem is that this happens about a few times a day: Error: Connection lost: The server closed the connection. at Protocol.end ...
0
votes
1answer
17 views

How to read and parse gitconfig file with node.js?

[user] name = Alvin J. Alexander email = [omitted] [merge] tool = vimdiff This is what ~/.gitconfig file looks like. I've never encountered such data objects before. Does ...
0
votes
0answers
14 views

Amazon S3 PUT throws “SignatureDoesNotMatch”

This AWS security stuff is driving me nuts. I'm trying to upload some binary files from a node app using knox. I keep getting the infamous SignatureDoesNotMatch error with my key/secret combination. I ...
0
votes
2answers
30 views

upload file with a form via ajax nodejs express

this is the ajax file $(form).submit(function() { $.ajax( { url:'/newProduct', cache: false, ...

1 2 3 4 5 1566
15 30 50 per page