Questions tagged as 'node.js'

0
answers

Sending image of the android to a server node js

I am developing a project and need it to register a photo, and send it to a server that is running node. In this same project already is working a data exchange through socket.io and now I need to send an image. I have no idea how to do this....
asked by 26.12.2016 / 17:36
1
answer

How do I keep the browser scroll bar at the top when loading a new page with angular?

I'm using modules created with node and angular, by specification of the project we had to take the # navigation. However, when I click on a link that is in the footer and loads another page the browser scroll bar remains in the footer and does...
asked by 21.12.2016 / 14:54
0
answers

Import .xls into node.js

I need to import a .xls file and save the data to an api. I would like to know a simple way to do it. The logic is to throw that data into a array and make a POST with each line? In short, I want the user to click on a bu...
asked by 21.12.2016 / 15:21
1
answer

What version of nodejs to install ionic cord 2.0.0-beta.3

There are many versions of nodejs, I noticed that if I have the latest version of nodejs, I can not install a previous version of ionic, I tried after installing the nodejs is entered in the terminal as administrator I forced the installation th...
asked by 28.11.2016 / 14:59
1
answer

NodeJS - Redirecting to error page when unable to access through GET

I would like to know how to redirect to a standard error page, such as a "not-found" page when an error of type Can not GET / route1 / page2 / 18 I need to, when the user tries to access a page like the one above and is not accessible throug...
asked by 25.10.2016 / 12:39
0
answers

Merge geojson on nodejs

I wonder if anyone has any idea how to merge two polygons geojson in node.js; already tried the turf but I did not get much success. I even think it is the best tool for the proposed one, but maybe the lack of intimacy with geographic data w...
asked by 05.11.2016 / 16:48
0
answers

Turn RowDataPacket into object to create login session

Good morning. I'm making a node.js application that when logging in should save user attributes (database attributes like name, surname, email, id, etc). But when sending display on the screen, it does not report errors but also the user name...
asked by 04.10.2016 / 15:16
0
answers

Is it possible to use Node.js as a server for PHP?

I'm interested in whether you could use Node.js as your server for PHP. If so, how could I do this? Is there a problem using it?     
asked by 24.09.2016 / 20:06
0
answers

Array ordering of javascript Objects

I am writing a library that implements various sorting algorithms, and everything was fine until I ran an array of objects. const exec = (array, fnCompare) =>{ return sort.bubble(array, fnCompare); } describe('Array Obejetos', ()=&...
asked by 04.09.2016 / 01:06
0
answers

How to update a list of documents in mongodb

I'm trying to update a list of objects look like this: var lista = [ { _id: 57ea29361b297553c99d702f, nome: 'Meu nome', __v: 0 }, { _id: 57ea29371b297553c99d7031, nome: 'Meu outro nome', __v: 0 } ] model.update({}, lista)...
asked by 27.09.2016 / 10:18