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
0answers
2 views
Mongodb Update Query Deletes All Array Fields Except Field Specified in Command
I'm new to MongoDB. I'm using Node and Mongoose. I've checked the mongo docs on set and update. I've Googled for a little over an hour now and I've found topics that dance around my issue, nothing ...
1
vote
1answer
20 views
Bind variables to callback function
I have a few functions in my controller which call some database functions. All of these database functions do "error callbacks", meaning that if a database error occur they do a separate callback ...
0
votes
0answers
5 views
Ending request in Node.js Formidable
I am having an express app where I am using formidable for file upload.
My code looks like this
form
.on('field', function(field, value){
if (field == 'file_name'){
...
0
votes
0answers
6 views
Using Knox with Formidable in express
I am using knox with formidable to upload the files after I receive them.(i.e I don't want to stream it to the S3). I am doing so in form.on('file', function(name, file){}) like this
.on('file', ...
1
vote
2answers
62 views
Reading a a ReadableStream and specifying a size param: Why does state.highWaterMark always get passed to ._read() as the size?
In Node.js, I've got a Readable stream:
var rs = new (require('stream').Readable); ...
0
votes
1answer
8 views
Port routing in Heroku to route all http to https
On a Heroku-hosted node app, I want to redirect all HTTP traffic to HTTPS without running a separate app server.
A previous post Automatic HTTPS connection/redirect with node.js/express recommended ...
0
votes
1answer
12 views
Express: passing options to an included server
I would like to develop an Express website that can run either stand-alone or as part of a larger server while allowing a degree of configuration.
For example, say I have a large main server in ...
0
votes
0answers
6 views
Unable to connect to Oracle 11g using node-oracle driver for Node.js: are they compatible?
We are trying to use node.js app to connect to Oracle 11g server (Enterprise Edition 11.2.0.1.0 - 64bit production) from an Ubuntu 12.04.1 LTS server. We are running Node v0.10.12 and the nearinfinity ...
0
votes
0answers
16 views
MongoClient multiple connections using Node.js
I want to create a module for NodeJS to connecto to MongoDB. I've seen that the new, better approach is to use MongoClient, but I can't get to know how can I make concurrent operations on the ...
0
votes
0answers
9 views
express my own authentication without 401
This is a resume about an authentication method.
I tryed to use express.basicAuth, but it force browser to ask user and pass, and I need to use my own login page, like google, facebook yahoo...
Is ...
0
votes
0answers
6 views
Node.js, express, .ejs turn off html escaping globally (for rendering JSON in html)
Is there any way to turn off the html escaping that is on by default in ejs?
https://github.com/visionmedia/ejs
"Unescaped buffering with <%- code %>" does work, but I'm sharing a base HTML file ...
0
votes
0answers
19 views
Passport authentication not working correctly
I am trying to get User authentication working in my Restify nodejs app, but it's not going so well. I can get registration to work by using passport-local-mongoose, but I cannot login as the user.
...
0
votes
0answers
16 views
How to use node.js to get google feed
I am trying to use node.js to get google feeds, but I have not found any useful API or instrument in google developers. I think I am missing something please give me some hints or help.
0
votes
2answers
23 views
Function Composition of JavaScript and Haskell
In JavaScript we can define function composition as using a function which takes two functions f and g, to produce a new function:
function o(f, g) {
return function(x) {
return f(g(x));
}
}
...
1
vote
0answers
11 views
Node.js+Handlebars+Express how to reference the handlebars templates?
I'm relative new to Node & Express, but handlebars templates I've never used before and trying to reference them in my node app.js but I keep on getting the following error
Property 'engine' of ...