0
votes
1answer
15 views
Nodejs - socketio - update info in all browser windows
I just started up learning how to make web applications. I am making a webserver in nodejs (a to-do list app). I am using the express framework, and mongodb as database. For communication between the ...
0
votes
0answers
11 views
Medium data publish works and Large data publish throws an error? (Node.js & RabbitMQ)
Unhandled connection error: FRAME_ERROR - type 1,
first 16 octets = <<0,60,0,20,0,0,16,99,108,111,117,100,82,111,117,116>>: {invalid_frame_end_marker,82}
I create an exchange that ...
1
vote
0answers
13 views
Installing GruntJS on Ubuntu 13.04 does not run client (same for all NPM -g modules)
Okay here's probably an easy one for anyone familiar with Ubuntu.
I have installed NodeJS (v.0.10.10) and NPM. I ran:
sudo npm install -g grunt-cli
and
sudo npm install -g grunt
(in every ...
4
votes
2answers
53 views
parseInt vs unary plus - when to use which
what are the differences between this line:
var a = parseInt("1", 10); // a === 1
and this line
var a = +"1"; // a === 1
this jsperf test shows that the unary operator is much faster in the ...
0
votes
0answers
12 views
SpineJS + Express
Does anyone know of any tutorials or examples of applications built with SpineJS and Express? I've played around a lot with both but struggling to understand a few points. Currently I've got my back ...
0
votes
0answers
14 views
Charge a nodejs web from other
I have a question for how to charge a node web served page in another one. The thing is that I created a web application on my server, the html, css an js is given by nodejs to the browser that asks ...
0
votes
1answer
30 views
Extjs 4 upload success function does not react
i have a grid with an toolbar and on that toolbar an upload option is added, so the upload is alright and it works , but after the file was uploaded to the server the success function does not react.
...
1
vote
1answer
35 views
node.js and setTimeout and setInterval - understanding event loop
I have written the program below in efforts to understand the event-loop and functions like setTimeout and setInterval.
The output of the program is different from What I expected:
The output is:
...
5
votes
1answer
60 views
node.js - why anonymous callbacks [closed]
I'm learning node.js, and have noticed that pretty much all callbacks are inlined as anonymous callbacks into the function. Is there a specific reason behind doing things this way?
I think using a ...
0
votes
1answer
20 views
How to render multiple result from MySQL query on the same .ejs file on Node.js and Express?
I'm now learning Node.js and creating a web application, but don't know how to render twice on the same .ejs file.
So in the following .ejs file:
<table>
<% rows.forEach(function(ind){ ...
0
votes
3answers
58 views
How to iterate over the following code inside a for-loop?
I have the following code where it grabs one of the 6 URLs, strips the filename, creates a filepath, saves image file to disk, sends it off to MongoDB GridFS. The only thing that's changing is image ...
0
votes
0answers
20 views
Inserting Object ID's into array in existing Mongoose schema with Node.js
I have an existing News articles section that I want to add categories to for more refined searching, my Schema's are as follows:
var ArticleSchema = new Schema({
title: String,
body: String,
author: ...
1
vote
0answers
32 views
Require js optimizer relative path issue
I am trying to do the browser example of require optimizer.I have my folder structure like this and the r.js and build.html are in same level as js folder
js
lib
| a.js
| b.js
| ...
0
votes
0answers
18 views
What is the best way to show online followers, node.js/socket.io and Redis
My app is built in PHP (served on nginx/php-fpm) and I use node/js with socket.io for users push notifications. These are pushed using Redis pub/sub to interlink between PHP and node.js
The node.js ...
1
vote
4answers
51 views
node.js and asynchronous programming palindrome
This question might be possible duplication. I am a noob to node.js and asynchronous programming palindrome. I have google searched and seen a lot of examples on this, but I still have bit confusion.
...