[nodejs] Node.js how to pass geojson from mongodb to object I can use in frontend

2016-06-17 Thread Artur Tochowicz
down votefavorite I am trying to cluster 5m points stored in mongoDB. Maximum result from 1 query is currently just around 1m so I have decided to use: PruneCluster

Re: [nodejs] Something strange going on in Async callback

2016-06-17 Thread Ryan Graham
I don't see anything obvious, but these are the questions I would be asking myself while investigating. Is "someClass.someFunction" taking a single use call callback? Or does the first call to it register the callback somewhere and then reuse it for future results? Your extra closure wrapping doe

[nodejs] Looking for code review of first nodejs project.

2016-06-17 Thread Michael Litchard
Hi, I recently tried making my first nodejs project, and would like feedback about choices I have made and how far away they are from standard practice. https://github.com/mlitchard/SmartCar I appreciate any time you are willing to give in critiquing this project. -- Job board: http://jobs.no

Re: [nodejs] POST changes to GET

2016-06-17 Thread Ryan Graham
If you are getting a redirect then there should be a Location header with a new path or URL in it. Use that to create a new request. It is up to you which HTTP method you use for that request. ~Ryan On Fri, Jun 17, 2016, 7:28 AM Michael Chenetz wrote: > I have a page that i am posting to and it

[nodejs] Something strange going on in Async callback

2016-06-17 Thread Ram Mulage
Hi All, I am fairly new to the Node.JS and Javascript for that matter. Something strange going on in the below code The below page/code is requested by two different clients. Its all good for the first request as it logs correct IP of the requested client correctly every where. but for the sec

[nodejs] POST changes to GET

2016-06-17 Thread Michael Chenetz
I have a page that i am posting to and it redirects to another page. I understand that most servers will redirect a POST to a GET. How do i catch the redirect URL so that i can POST to it. Here is some example code below. var req = https.request({ host: 'dashboard.meraki.com', path: '/ap

[nodejs] File with all data

2016-06-17 Thread Sirine Ibn Fraj
Hi , I m new to nodejs , can i create a file where i store and manage my data so i can use them in other files ? Thanks Regards Sirine -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github