0
votes
1answer
15 views

Getting html error 301, wich return exact same link

I m trying to get the content of a html page with a node.js app I found this code: In Node.js / Express, how do I "download" a page and gets its HTML? (yojimbo answer), wich seems to work ...
0
votes
4answers
33 views

How to search and select an object in JSON

Consider a JSON like this: [{ "type": "person", "name": "Mike", "age": "29" }, { "type": "person", "name": "Afshin", "age": "21" }, { "type": "something_else", ...
0
votes
0answers
10 views

Node.js MySQL ETIMEDOUT error

After running node for a long time I get this error. My program itself works perfectly fine. What does it really mean? I can't find anything about it. And most importantly how to prevent it? Error: ...
0
votes
1answer
26 views

Downloading a file from internet to local drive using javascript

I have made a automatic TV with a Raspberry Pi, using Javascript/node.js To achieve the automatic part, I would like the app to automatically downloading the files to play from internet (from a ...
1
vote
1answer
27 views

Node.js + setInterval = Connection lost: The server closed the connection

I have a simple Node.JS script (just a script, no server), which is supposed to do a thing every 24 hours. But after about 8 hours I see this in the error log: Error: Connection lost: The server ...
0
votes
2answers
23 views

Define variables in Javascript executing a local file

I have a node.js script which involves access tokens. var T = new Twit({ consumer_key: '...', ,consumer_secret: '...' ,access_token: '...' ,access_token_secret: '...' }) I ...
0
votes
2answers
47 views

HTML POST Redirection issue

I am trying to create a new login page for my website and I was using nodejs to create the login part. so I use the html post method to pass parameters.. so basically I have a sign in part, sign up ...
0
votes
0answers
12 views

Why are my images streamed from amazon s3 0 bytes in size?

I'm trying to create a zip file (using node-zipstream) with images downloaded via the knox client library in Node.js. The download seems to work except that all the required images are not contained ...
0
votes
2answers
33 views

Are nodejs data-structures thread-safe by design?

Read in a node.js related web document that it is a single threaded server. So it confuses me whether all data structures by default be thread-safe in a node server! I have multiple call-backs ...
0
votes
1answer
11 views

creating res.cookie in JSON format with value as object

I tried do create a res.cookie like this: function createCookie(res, loginToken, user) { res.cookie( 'testcookie', { 'logintoken': loginToken.cookieValue, 'user_id' : user.id, ...
0
votes
0answers
27 views

how to save array in mongodb, which node-twitter and nodejs?

Tell them which the problem is. As you can see, I use the module node-twitter to collect all the tweets for a given user but I need to save every tweet or all the array, at a base data nosql as ...
0
votes
1answer
7 views

node.js spawn stdout string broken when received

I have the following python code (script.py): import sys import numpy as np from scipy import stats def generateBeta() : fit = (0.075252656968743836, 498.49505071718869, 9.9999999999999991e-05, ...
0
votes
0answers
10 views

Node oauth GET from Twitter stream returning 401

I'm having a problem working with the Twitter streaming API when I deploy to my host server. When I run this code on my local machine I get status 200 ok and I can properly stream tweets from Twitter. ...
1
vote
1answer
32 views

Node.js Application with Mongo.db on Heroku

I am having a hard time to deploy my node.js application to Heroku because I am having issues with my mongo.db database.. I saw this approach in a tutorial and I really like it. it looks very clean ...
0
votes
2answers
24 views

Is there a client+server-side MVC JS framework

I've been working with Node+Express for a while now, and I'd like to start looking for a strong structure for building average to huge web apps, but which could also be used (and not be too much ...

1 2 3 4 5 503
15 30 50 per page