Data dodania Pytanie
2017-12-09 19:12 Foreign keys with Sequelize and Typescript »
Given these 2 Sequelize models: export class Users extends Model<Users> { @HasMany(() => UserRoles) @Column({ primaryKey: true, all...
(0) odpowiedzi
2017-12-09 19:12 How can I find the missing integer in a string of random non-repeating integers in a range »
I'm having trouble even beginning to think of how to do this. I need to find a missing number in a string of random numbers that don't have separator...
(3) odpowiedzi
2017-12-09 18:12 Why does Node.js HTTP server not respond to a request from Python? »
I've got a working HTTP node.js server. I then created a program on python that uses the socket module to connect to the above server Please for th...
(1) odpowiedzi
2017-12-09 16:12 How to send data from express backend to ejs front end? »
I am trying out a Tutorials website and in that some of my pages need to send tutorials object, video object, user object depending on which route the...
(2) odpowiedzi
2017-12-09 15:12 Parse HTML from DB »
I have html code that stored in SqLite DB Some text  <div>Some text </div> <div>Some text</div&g...
(0) odpowiedzi
2017-12-09 12:12 Option to disable CSRF validation in KeystoneJs? »
Is there a simple way to disable CSRF validation in the KeystoneJS framework? I ask for development purposes only. Just to avoid having to reload th...
(1) odpowiedzi
2017-12-09 03:12 Node.js app doesn't work correctly on Firebase »
I think I'm missing something very simple here. I have a simple, one page node.js app that uses nodemailer to email any form data to my inbox. My ind...
(1) odpowiedzi
2017-12-08 19:12 EJS For Loop Unexpected Identifier »
I have an array of javascript objects that I have gotten from mongodb/mongoose. I have sent to them to my "profile.ejs" front end and want to loop thr...
(1) odpowiedzi
2017-12-08 18:12 Async Concurrent Queue with max concurrency »
I'm running across a bug with a custom asynchronous queue that calls 10 async functions at a time. I'm initiating the queue with 50 jobs, once first ...
(1) odpowiedzi
2017-12-08 15:12 Why am I not receiving a console.log that a new socket user has connected? »
I'm more or less following the socket.io documentation and trying to apply it to my slightly different project but I believe I'm making some mistake. ...
(1) odpowiedzi
2017-12-08 13:12 Can NodeJS function app.listen() Choose site IP? »
I have a Windows Server host with two network cards: 192.168.1.205 and 192.168.1.206; 192.168.1.205 Running IIS and using 80 port and 443 port which i...
(0) odpowiedzi
2017-12-08 10:12 Node updating database field from dynamically generated form »
I currently have a ejs page that displays a table that consists of two rows (Ingredient, New Quantity), both of which are generated dynamically. A new...
(0) odpowiedzi
2017-12-07 20:12 GCM XMPP Socket consistently getting EPIPE and disconnected when sending notifications »
We have an xmpp connection server that connects sockets to GCM XMPP endpoints and starts sending notifications. One thing We've noticed is upon sendi...
(0) odpowiedzi
2017-12-07 17:12 Node.js mongodb: db.collection is not a function »
With typescript i want use mongo db in this way: import { config } from '../config'; import { MongoClient } from 'mongodb'; MongoClient.connect(conf...
(0) odpowiedzi
2017-12-07 11:12 How to use multiple response in ng-repeat angularjs? »
$http({ method: 'GET', url: '/api/getnewgroup' }) .then(function (response) { ...
(1) odpowiedzi
2017-12-07 07:12 Conversion of Array and objects to bulk insert in mysql Sequelize + Nodejs »
This is my json object: { "groups": [ { "id": 1, "groupname": "Angular", "createdAt": "2017-12-...
(2) odpowiedzi
2017-12-06 13:12 How do I resolve individual promise from a centralized listener? »
I have an event listener, which will receive event (from server) whenever a specific task is done. I desire each task to be encapsulated in a promise,...
(1) odpowiedzi
2017-12-06 10:12 Calculate total elapsed time of Promises till reject? »
I want to test how much requests i can do and get their total time elapsed. My Promise function async execQuery(response, query) { let request = ...
(3) odpowiedzi
2017-12-06 06:12 NodeJS: streaming multiple files from readstream (gridFS) to show on frontend »
I have uploaded multiple image files into MongoDB using "Multer" and "multer-gridfs-storage". I want to extract these files and show them as thumbnail...
(1) odpowiedzi
2017-12-06 04:12 Why i cannot pass json data to an ejs template? »
I'm working on an app using node js and mysql I have the following function: function processInfo(req, res){ //connectig to the db var db = mysql.c...
(0) odpowiedzi
2017-12-06 00:12 Why is += (addition assignment, plus equal) so slow in node? »
In certain versions of node, a += b is significantly slower than a = a + b, but similar in the browser and later versions. What causes them to run so ...
(1) odpowiedzi
2017-12-05 21:12 db.collection is not a function when using MongoClient v3.0 »
I have been trying W3schools tutorial on nodeJS with MongoDB. When I try to implement this example in a nodeJS environment and invoke the function w...
(2) odpowiedzi
2017-12-05 21:12 How to accept self-signed certificates with LWP::UserAgent »
I am attempting to set up a node.js server that uses HTTPS. I will then write a scripts in Perl to make a HTTPS request to the server and measure late...
(2) odpowiedzi
2017-12-05 08:12 How can I stop execution of an outer function within a callback »
Lets imagine I have a scenario like this: async function some_func() { await some_query.catch(async (e) => { await some_error_code() }) ...
(2) odpowiedzi
2017-12-05 08:12 can not get error in node.js / javascript »
I wrote the code and execute but cannot get error message occurred in HTML. I use Eclipse and node.js with express and the GET method. But when I ent...
(1) odpowiedzi
2017-12-05 03:12 Add a css class using to "this" item in a forEach within EJS/node.js »
I've been trying this for hours but I am stumped. I have a kind of "shopping list" node.js app where you can tick off items as bought. I want the bo...
(1) odpowiedzi
2017-12-04 09:12 Sending nested JSON from rails app to hapijs app »
I'm using rails 3.4, node 9, and Hapi js 16.5.2 What i'm trying to do is send a nested JSON from a rails app to a hapi js app, but something weird i...
(1) odpowiedzi
2017-12-04 06:12 Node js App stoping When Console is closed »
Am new to node , created my first express based app and deployed in my development server. node app.js given above command no errors and working p...
(4) odpowiedzi
2017-12-04 03:12 Add milliseconds delay to Array.map calls which returns Array of promises »
My need is simple. I would like to delay calls to sendEmail by 100 milliseconds. The email service provider permits at most sending 10 emails per seco...
(3) odpowiedzi
2017-12-04 02:12 Send two nodejs http requests, second relies on the first »
I need to get a token from a server using a username/password combo, then after I receive the token I need to send a second request using the token as...
(1) odpowiedzi
2017-12-03 20:12 Can I use the Node.js packages along with Django? »
I think I haven't understood this concept right . If I am using Django as a backend to run server side code , is there a way to include the packages o...
(2) odpowiedzi
2017-12-03 11:12 ReactDOM.render not rendering the component »
I am using nodeJS with react. to install react in my node I used. npm install --save react react-dom This is my index.html file <html> <...
(2) odpowiedzi
2017-12-03 11:12 My page is not rendering when calling URL from AJAX »
I have made a route which is called in a specific event(click event) through AJAX. My route is called but the page is not rendered with the call. My...
(1) odpowiedzi
2017-12-03 02:12 Adding value to variable not working just appending on »
I am trying to take the quantity then add in the order number to it then resave the value of quantity. // update expendable quantity POST app.po...
(1) odpowiedzi
2017-12-02 23:12 Known moderate severity security vulnerability detected in ejs < 2.5.5 »
I got this alert for a few projects on GitHub: We found a potential security vulnerability in one of the dependencies used by a repository that ...
(1) odpowiedzi