Data dodania Pytanie
2017-04-21 19:04 Sails.js - Issues with controller »
I'm developing a controller to parse JSON from SoundCloud's API, using the following code (SoundCloudController.js), in order to retrieve some data. W...
(1) odpowiedzi
2017-04-21 17:04 Node JS: ReferenceError: require is not defined »
I want to use MySQL database. I installed MySQL with command npm i mysql. In order to use it, I wrote: var mysql = require('mysql'); But when I ru...
(5) odpowiedzi
2017-04-21 12:04 Javascript temporal dead zone NodeJS 7.9.0 performance decrease? »
I have noticed in an other question the performance difference in loops while using let and var variables declaration. The initial question is corre...
(1) odpowiedzi
2017-04-21 12:04 Angular SPA inconsistent with ANY access-control-allow-methods from API Gateway »
We're currently using a Serverless deployment model for our API, with a NodeJS express code base. All was well until we ran into a hard limit for the ...
(1) odpowiedzi
2017-04-21 11:04 how to enable csrf on node express for graphql and graphiql with e.g. lusca? »
Having a node express server with csrf lusca and I want to enable csrf also for graphql and graphiql, but how to do that? const csrf = require('lusc...
(0) odpowiedzi
2017-04-21 10:04 passportjs local connectflash not working with ejs »
I have a project using passportjs fully working, but not showing flash messages. The passportjs file looks like this: passport.use('local-login', ...
(1) odpowiedzi
2017-04-20 21:04 Nodejs Change server HTTP to HTTPS »
I try change my server to HTTPS, but does not work fine. My page show like I create a new server with anything. In this case I have 2 files, app.js w...
(1) odpowiedzi
2017-04-20 19:04 Ajax with include in ejs »
When i try to add include in my ejs file its working fine. HTML report.ejs <tbody> <%- include('include/playersTable')...
(0) odpowiedzi
2017-04-20 18:04 Knex with Postgres storing timestamp in unintended ways »
I am using Knex query builder with Postgres in my application. I am trying to add a created_at and updated_at fields in my database with ISO8016 forma...
(1) odpowiedzi
2017-04-20 18:04 Race condition with Node.js and Firebase »
I'm new to Firebase and Node.js, but what I'm trying to do is the following: gameScoreRef.child(score["ss"][i][10]).once('value', function(snapshot) ...
(1) odpowiedzi
2017-04-20 17:04 Update part of HTML page using NODE.JS and EJS »
I have the following express app which just renders the sample.ejs page. On that page when I press the button the attached script changes the div text...
(1) odpowiedzi
2017-04-20 13:04 How to use FIND_IN_SET in sequelize with mysql DB »
How to use the FIND_IN_SET in sequelize ORM or any equivalent in sequelize. ...
(0) odpowiedzi
2017-04-20 06:04 JavaScript terminology: do I (call / invoke / execute) a function? »
Is there a difference to the mentioned verbs which are used in relation to functions ? Initially, I thought they mean the same thing and people use i...
(1) odpowiedzi
2017-04-19 18:04 Taking input from form, retrieving data from database and showing output »
Im working with nodejs ,express and mongodb.And im working on cloud9 IDE I want to create a page with a form which takes input from the user, search ...
(1) odpowiedzi
2017-04-19 12:04 Recursive prototype inheritance in nodejs / javascript »
In my nodejs program, i have a module called person and it has a prototype object(about) which also has its child method (describe). I am trying to ac...
(3) odpowiedzi
2017-04-19 12:04 Nodejs, HTML, Mongoose and EJS »
I'm trying to populate some fields, from data stored in a MongoDB database, in a HTML page using Nodejs and EJS. I have my nodejs server.js file. ap...
(0) odpowiedzi
2017-04-19 08:04 How to output SVG in a Jupyter notebook using jsdom, D3 and IJavascript »
I'm not strong on frontend development but I have toyed around with a lot of Javascript and D3 recently. Being used to doing scientific analysis in Py...
(1) odpowiedzi
2017-04-18 17:04 issues with Claudia.js text responses and Alexa »
I'm working on a Claudia.js bot that can be reached through Slack, FB messenger, and as an Alexa skill. Supposedly in claudia, you can return plain te...
(0) odpowiedzi
2017-04-18 16:04 Updating multiple sub-documents with Mongoose and Node »
I have a Model wich contains an array of sub-documents. This is a Company: { "_id" : ObjectId(":58be7c236dcb5f2feff91ac0"), "name" : "sky srl", "con...
(2) odpowiedzi
2017-04-18 12:04 Node.js: Which parts of the code are executed following an asynchronous call? »
Asynchronous calls are an inherent part of javascript, and using callbacks is often an elegant tool to handle these calls. However, I am not quite su...
(2) odpowiedzi
2017-04-18 09:04 Image resolution too low when uploaded from Facebook messenger »
I am building a bot where a user can upload image from their gallery or take a picture. Facebook messenger provides this to my bot as image_url which...
(1) odpowiedzi
2017-04-17 22:04 Use React-Router browserHistory, Wepback 2 historyApiFallback and Node »
I'm trying to run my React app locally using React, Node, Wepback 2. Whenever I hit a route that isn't / I get a 404. My goal is to be able to run my ...
(1) odpowiedzi
2017-04-17 21:04 What is the exact syntactic ambiguity that requires parentheses around a yield expression in an OR assignment? »
The following code... Assume that the yield is inside a generator function and that something and else are defined, etc. const value = something || y...
(1) odpowiedzi
2017-04-17 20:04 How to use Group by with find in mongoose? »
I have collection named "listing" with fields such as metadata and status. metadata is a object containing user object inside and status is a string. ...
(1) odpowiedzi
2017-04-17 18:04 How to put unique file name for winston? »
I have 10 files in which i wrote loggs for every file by putting this 2 lines in every file. winston = require('winston'); winston.add(winston.transp...
(1) odpowiedzi
2017-04-17 18:04 Loop through a image file »
So I have a large file of 68 images that I need to display one after another in a gallery type format, but I do not want to type them all out for obvi...
(0) odpowiedzi
2017-04-17 15:04 How to include the content of a CSS file into node EJS template »
I'm using express and public folder for loading CSS inside a tag. But I wonder if it is possible to load it as text directly on EJS template, similar...
(0) odpowiedzi
2017-04-17 11:04 Sort an array in javascript based on another array »
I have an array of Mongoose ID's as follows: var ids =[ mongoose.Types.ObjectId('58c2871414cd3d209abf4fc1'), mongoose.Types.O...
(1) odpowiedzi
2017-04-16 23:04 How do I extract an object from a promise? »
I'm trying get some information out of a nosql database and then read that information through my template engine (handlebars), But I have no idea how...
(2) odpowiedzi
2017-04-16 23:04 Testing Javascript floating point rounding mode conformance »
ECMA requires conformable implementors to perform “round to nearest, ties to even” for <Number> plus [cp], minus [cp], times [cp], divi...
(0) odpowiedzi
2017-04-16 22:04 How to save variable state with closure »
I have a function that i need call several times, and this function will append elements in my html: class MyClass { somefunct(elements) { con...
(2) odpowiedzi
2017-04-16 15:04 Node JS, EJS include actions »
I am writing an admin dashboard in Node JS.The HTML views are being created using EJS. Below is an example of how my folders are set up. /root ap...
(0) odpowiedzi
2017-04-16 13:04 Using webpack with an existing PHP and JS project »
I have an existing PHP project with jquery and bootstrap, not using any front-end framework. I am trying to use webpack module bundler in order to cr...
(1) odpowiedzi
2017-04-16 13:04 Best Way To Save Data that keeps coming every 1 second to Postgres using node.js »
I am building a project using node.js that is integrated with 4 other systems that keeps sending data from sensors every 1 second. I am trying to have...
(1) odpowiedzi
2017-04-16 01:04 Get current page in .ejs file? »
I have simple Node.js web app with login/registration functionality through passport. In the nav bar I have two buttons: Login and Register. What I wo...
(1) odpowiedzi