Data dodania Pytanie
2017-10-09 22:10 Promise.all consumes all my RAM »
I've got a rate limiter for an API I am using which allows 20 requests per second. All requests are promise based and the promise will be resolved wit...
(1) odpowiedzi
2017-10-09 22:10 How should I handle package-lock.json when I deploy from git via ssh? »
I have a deployment process where I check code into a git repository, and via web hooks a deployment script is run on the production server. On that s...
(1) odpowiedzi
2017-10-09 22:10 WebPack sourcemaps confusing (duplicated files) »
I decided to try out WebPack on a new project I'm spinning up today and I'm getting really strange behavior from the sourcemaps. I can't find anything...
(0) odpowiedzi
2017-10-09 14:10 Passing variable from nodejs to ejs file »
I have a variable that i want to pass from NodeJs to EJS file . I need this variable to choose whether or not I display an alert(). while running my ...
(2) odpowiedzi
2017-10-09 12:10 How to generate .html views project in express instead of .ejs »
I am new to NodeJS. I am trying to start a project using Angular. I started by installing Express Framework: npm install -g express Then creating a ...
(0) odpowiedzi
2017-10-09 09:10 Porting legacy ColdFusion code to Node.js - cfhttp/request.js »
I am primary a Coldfusion developer, for over 10+ years but its time to make a change. I am working through porting some old Colfusion 9 code to node ...
(1) odpowiedzi
2017-10-08 23:10 Is string comparison really insecure? »
Some suggest that using simple string comparison to match passwords is insecure due to timing attacks. For example see this question. Well, I tried to...
(1) odpowiedzi
2017-10-08 16:10 Iterate through an array in blocks of 50 items at a time in node.js »
I'm new to node.js and am currently trying to code array iterations. I have an array of 1,000 items - which I'd like to iterate through in blocks of 5...
(2) odpowiedzi
2017-10-08 09:10 Laravel check csrf manually in controller »
I'm using Laravel 5.5. When I send POST request from laravel blade. Then everything is ok: $.post({ url: 'http://localhost/check', data: { ...
(0) odpowiedzi
2017-10-08 02:10 res.render throwing error Node.JS »
I've been trying to make this blog, and when it comes to rendering a page it throws, "Res.Render is not a function..." let express = require("exp...
(1) odpowiedzi
2017-10-07 19:10 Node js - app.locals not displaying the value in the page loaded by jquery.load() function »
Using express, I am storing the data in app.locals (say app.locals.user='myName'). On routing it to an ejs page, I can able to retrieve value using &l...
(0) odpowiedzi
2017-10-07 17:10 How should I make a follow system sql or nosql? »
I'd like to programm a system where a user can follow another user but I don't know if I should do it with a nosql db like mongodb or any other or is ...
(1) odpowiedzi
2017-10-07 17:10 Can I include HTML blocks of code like footer and header on every page in Node.js whilst using ejs templating engine? »
Similarly to how you can do it in PHP? For example if I have a header.ejs file that contains this code: <!DOCTYPE html> <html lang="en">...
(1) odpowiedzi
2017-10-07 15:10 Awkward escape characters »
Whilst trying to console.log a string I've run into a rather annoying issue. I store the string 2^{\\frac{1}{2}}x=1 in a Node.js database yet when out...
(1) odpowiedzi
2017-10-07 13:10 npm install from a git repo leaves a pretty blank package? »
I am using working from this github issue and it says to use a temporary github fork until a pull request is merged in another repo....cool. I try to...
(1) odpowiedzi
2017-10-07 12:10 Getting a string from a range of possible paths »
I have a scenario where I need to grab the first occurrence of a string from an object, but only if the match occurs in one of the path's that have be...
(1) odpowiedzi
2017-10-07 12:10 Cannot set property 'value' of undefined inside es6 class »
Upon writing code in es6 following a tutorial, I get error - class APromise { constructor(fn) { this.state = 'pending'; this.value = null; ...
(1) odpowiedzi
2017-10-07 11:10 Require and instanceof »
Can someone please explain my why this happens and how to make it work correctly: Imagine we have a module published on NPM called test-module with t...
(1) odpowiedzi
2017-10-06 23:10 How can a member function access member variables? »
In the code snippet below I am trying to access name which is a member variable from sayHi which is a member function. How can I do that? obj = { ...
(2) odpowiedzi
2017-10-06 19:10 NPM / Webpack don't load GSAP TimelineLite Correctly »
I am refactoring and running cleanup on a production app, and optimizing dependencies. We have a React component that uses GSAP for some transition-r...
(1) odpowiedzi
2017-10-06 13:10 Get data from nodejs sails in JS/jQ »
I'm trying to get the data that I have from the NodeJS and sails backend directly in jQuery, but I don't found how to do this. NodeJS Backend : var ...
(0) odpowiedzi
2017-10-06 11:10 Node Express render json in ejs not working »
I have a js file that controls the inputs of a form, with the express-validator module. In this process, I have this code to send the validation error...
(0) odpowiedzi
2017-10-06 07:10 How to get mail id of twitter account through nodejs »
I am trying to get mail id from twitter user through nodejs at the result I only got tweets and other details of users but I don't get mail id. I att...
(1) odpowiedzi
2017-10-05 16:10 Insert values with different types to MongoDB collection from Node.js »
I'm using sails web framework with Node.js and MongoDB to create my own website. Right now, I'm facing some difficulties while trying to create a new ...
(1) odpowiedzi
2017-10-05 13:10 Selenium WebDriver: Login to a website »
Is there a way to login to a website without writing the actual password in the code. For example, I created a function to login: var isAlreadyLogIn ...
(3) odpowiedzi
2017-10-05 10:10 Mongoose switching multiple connections »
I am using Node.Js 8.6 along with Mongoose 4.11 and have multiple database connections. Db connections are established via mongoose.createConnection. ...
(1) odpowiedzi
2017-10-04 20:10 Is it possible to pass an ejs variable to embedded JavaScript File »
I have four files, and I'm using node for this project. I have index.ejs,app.js,countymap.js,countries.geo.json. app.js renders the index.ejs file w...
(1) odpowiedzi
2017-10-04 14:10 Setting a DocumentReference in Document on Firestore (NodeJS) »
I am trying to create a doc with a reference on Firestore with NodeJS v8.6.0. Like this const admin = require('firebase-admin') admin.initializeApp({...
(1) odpowiedzi
2017-10-04 14:10 Displaying data from a Mongodb collection in ejs using Mongoose »
I am brand new to programming. I have a collection called "Practice" in my local database which has "name, role, org". I am trying to figure out how t...
(1) odpowiedzi
2017-10-04 13:10 How to display json stringfy array data in node.js "html page"? »
I am pretty new to Ionic and NodeJS, I have a JSON data array which is the response of the predict(...) call from Clarifai recognition and I am trying...
(1) odpowiedzi
2017-10-04 11:10 Wait seconds before running next task on scripts package.jscon »
What I want to do is when I run npm run dev to execute those both tasks I need to wait for 5 seconds until next task runs. Run the npm run server wai...
(2) odpowiedzi
2017-10-04 04:10 Searching JSON array using another JSON array node js »
I'm trying to filter a JSON array using another JSON array criteria that I have using (filter). Here is my code: function filterArray(object, crit...
(1) odpowiedzi
2017-10-03 16:10 Sweet alert 2 not showing up as a modal when alert thrown »
I assume that I must be importing this wrong some how, but I am not sure. I followed the directions on the github. It says that I can npm install it a...
(2) odpowiedzi
2017-10-03 13:10 Deleting a record using Mongoose with Redux »
I want to delete a record in my mongoDB, when a user presses a button for the given record. For reference: I have all my mongoose and redux code s...
(2) odpowiedzi
2017-10-03 12:10 Can't upload content on quickblox using node.js »
I am using node js to upload content in quickblox. Following is the code I am using. While uploading a picture i get an error of var inputFile =...
(1) odpowiedzi