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.
0
votes
1answer
5 views
When should I use connection pooling with MySQL in NodeJS
Working with the Node-MySql module:
From my understanding multithreaded programs benefit more from pooling connections than singlethreaded ones. Is this true?
And if this logic proves true, what ...
-1
votes
2answers
46 views
Can javascript read webpage? [on hold]
can my page Javascript read same page which itself is loaded? Like other parts of page are dynamically loaded by other provider. I have tried many things, google as well, but now I am in doubt that it ...
0
votes
1answer
13 views
Expressjs File Upload Customization
Expressjs has bodyParser middleware which can handle file-uploads and can even store them in a directory given in options. But in my app I want to store the files in Amazon S3, so I basically want to ...
0
votes
0answers
10 views
How to install prozess on a ubuntu machine using npm?
On the command npm install prozess it giving following error:
root@ubuntu:/usr/local/kafka/NodeKafka# sudo npm install prozess
npm http GET https://registry.npmjs.org/prozess
npm http 200 ...
-1
votes
1answer
21 views
Why does the node.js' async behave strange?
In the example:
async.eachLimit([1,2,3,4,5,6,7,8,9,10], 6, function(a, b) {
console.log("current: " + a);
b("done");
},
function(err) {
if (err) {
console.log("error");
} ...
0
votes
0answers
7 views
gruntjs path filter : exclude files start with _
I use grunt-contrib-jade, and wanted to specify the task for all jade files, except ones starts with an underscore.
current:
jade: {
dist: {
options: {
...
0
votes
1answer
30 views
Coffeescript + node.js : Unexpected token > (function arrow)
When I try to run the following coffeescript code:
request = require('request')
request('http://google.com', (error, response, body) ->
if not error and response.statusCode is 200
...
0
votes
0answers
7 views
Grunt plugin for finding broken links?
Is there a Grunt plugin for detecting broken (internal, relative) links in your generated pages? Or is there any node package that is capable of doing this for a collection of HTML files?
0
votes
0answers
13 views
Multiple views of the same database
I created a collection in the shell of MongoDB and inserted sample documents via shell. Then i inserted data via Node.js(using Mongoose). I queried the collection using node.js and recieved the result ...
0
votes
0answers
7 views
onmessage event in websocket client is not getting fired
I am using node.js to implement websocket server and client. The handshake between them looks like this.
Request URL: ws://localhost:8015/
Request Method: GET
Status Code: 101 Switching Protocols
...
0
votes
0answers
10 views
Installing SQL Server Drivers for Node.js on a Windows server with no Internet Access
I am trying to get SQL Server drivers installed on my Node.js setup, on a Windows Server 2012 box, based on the drivers covered in this article.
Anywhere I look, I am pointed to using npm to install ...
1
vote
3answers
46 views
Why is node.js asynchronous?
Nobody has actually asked this (from all the 'suggestions' I'm getting and also from searching before I asked here).
So why is node.js asynchronous?
From what I have deduced after some research:
...
0
votes
1answer
21 views
Is NodeJS Image Processing/Analysis Possible?
I'm running NodeJS on the server-side, and I'm trying to do a bit of automated image processing to determine the 'base colour' of an image.
Here are the steps of what I want to do:
Take an image ...
0
votes
1answer
6 views
I want to download some resources upon 'npm install', presumably using a 'prepublish' script
Specifically, I want to download angular.min.js when running 'npm install'.
From what I read here the place to do such things is in a prepublish script. It also mentions I don't need to rely on ...
1
vote
2answers
42 views
How do I write a client side Java script to run on a Node JS server
I was trying to run a simple client side javascript code in my Node JS server. But failed. My index.js file looks like below
response.writeHead(200, { 'Content-Type': 'text/html'});
...