Data dodania Pytanie
2017-11-30 14:11 Disabling eslint for .ejs files »
I have a template file on my project and while running the eslint I am facing various issues because of it. Some of those are - error Parsing error:...
(1) odpowiedzi
2017-11-30 06:11 Use Node JS module in HANA trial account »
How to enable node js module for HANA XSA in HCP? BTW, It is not under Tools --> Preferences --> Feature where in I enabled JAVA development. ...
(0) odpowiedzi
2017-11-30 06:11 Make object from an array of key-value pairs using Lodash »
i am using lodash to create object from array but the result is not what expected.. here is the code : var _ = requre('lodash') var data = [ [ 'creds...
(4) odpowiedzi
2017-11-30 02:11 Navigate page till rendering last frame not networkidel »
I'm taking screenshot for large html, but i got large white space in the output image every time i try to take the image. I made so many tests, and f...
(2) odpowiedzi
2017-11-29 21:11 Count number of online users with nodeJS and Socket.io without duplicates »
I'm having trouble displaying the correct amount of online users. A question similar to this have shown me that I can count the users this way: var ...
(2) odpowiedzi
2017-11-29 10:11 Unable to attach metadata to Google Cloud Storage using NodeJS API »
I am referring the following code to upload a file into Google Cloud Storage https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/maste...
(1) odpowiedzi
2017-11-29 09:11 How to hook/monkey-patch the basic Error class »
How do I go about "patching" (or replacing) the basic Error class, so that wherever anyone does throw new Error() in the code base (or tries to throw ...
(0) odpowiedzi
2017-11-29 07:11 nodejs: express-validator errors undefined in ejs template »
I am using ejs engine instead of pug. When I click register button, I got errors undefined in my register view. There was only little chance that I ca...
(1) odpowiedzi
2017-11-28 14:11 How to prevent express from sending "502 Bad Gateway" when I don't answer a request? »
For a special use case with an express 4 server (forcing a client, that doesn't respond to 503 status code repeat a request) I need to not respond to ...
(1) odpowiedzi
2017-11-28 12:11 How to send push notifications to multiple device with FCM tokens using cloud functions »
First I generated a FCM token and stored in firestore. After that I wrote a cloud functions to send notifications based on FCM token. and I deployed c...
(1) odpowiedzi
2017-11-28 12:11 Converting Array to bulk Create in nodejs with Sequelize »
This is my req.body json data from angularjs controller: { phoneno: [ { id: 1, gsm: '123457801', firstName: 'Mohamed', lastNam...
(1) odpowiedzi
2017-11-28 12:11 SailsJS : Redirecting to controller action with variables »
I am using sailsJS with ejs engine and i want to redirect the user back to the input page with messages ( validation errors ... ) . i used to use this...
(2) odpowiedzi
2017-11-28 08:11 JSON.Parse Showing error at position 0 while parsing string to JSOn in Faker.js »
I have seen these type of questions and tried the solutions but was not working. I am sending an array from UI to the controller, there I have the r...
(1) odpowiedzi
2017-11-28 06:11 should we choose async await over Promise in Javascript »
I know that the async await is the new Promise in the town and it is a new way to write asynchronous code and I also know that We didn’t have to wr...
(2) odpowiedzi
2017-11-27 20:11 Using an ejs variable value in node module »
I am new to web development and design . I have made a form validation consisting of Username and password . If authentication is successful , a table...
(0) odpowiedzi
2017-11-27 19:11 Changing dynamincally value of other elements »
I'd like to ask how could I change dynamically the value of a table based on the option from the select menu that the user has chosen. I'm using mongo...
(0) odpowiedzi
2017-11-27 19:11 Bootstraps alignment »
I am using a combination of bootstrap and semantics ui to style and align my webpage. I am currently having an issue with align my pages api map and b...
(1) odpowiedzi
2017-11-27 15:11 await http request response in constructor »
I have a class, how I can create await for key value, that should be requested from http request in another method? I don't know how to correct use a...
(2) odpowiedzi
2017-11-27 15:11 Bypassed authentication in route handling »
I have set up an application with a registration homepage and a few internal pages requiring a login. I used Node with Express.js to set up the serve...
(1) odpowiedzi
2017-11-27 10:11 Read data from JSON, manipulate it and write it back in NodeJs »
I have a small JSON file with this content { "users": [ { "id": 1111, "name": "Foo", "gold": 2 },{ "id": 2222, ...
(2) odpowiedzi
2017-11-26 23:11 How to include bootstrap file in my ejs files? »
So i have installed bootstrap using npm -bootstrap@3 but when i am trying to include bootstrap.min.css file from node_modules in my application, it sh...
(2) odpowiedzi
2017-11-26 20:11 ExpressJS response middleware »
I've made an HttpInterceptor for the front-end that send every request with some default headers and automatically encrypt body/url for every request ...
(1) odpowiedzi
2017-11-26 17:11 node js routing with ejs res.render does not work, but res.send does »
I am setting up the environment for a node js app. But the views/ejs files are not being rendered. If i do: app.get("/", function(req, res){ res.sen...
(1) odpowiedzi
2017-11-26 08:11 Proper way to convert SQL results to JSON »
I am creating a API using nodejs. The API takes request and responds in JSON For example: I have a table QUESTION in my database so a GET request to ...
(0) odpowiedzi
2017-11-26 02:11 React Native - Automatic version name from package.json to android build manifest »
Currently I have a react native app and the issue that I have is that is very time consuming to update the version on every build or commit. Also, I...
(1) odpowiedzi
2017-11-25 19:11 About javascript function valueOf\toString and 'curry' function behaved differently in Chrome,Firefox and node enviroment »
I wrote a function: function add(){ let arr = []; arr = arr.concat(Array.prototype.slice.apply(arguments)) let fun = function(){ ...
(2) odpowiedzi
2017-11-25 17:11 NODE.JS how to show my css file which is inside the folder called CSS using node.js where my server.js and index.html is outside the folder »
So, I'm new to node js. My folder looks like this NODE //my main folder here ->CSS //this is a folder ->IMAGES //this is a...
(2) odpowiedzi
2017-11-25 13:11 Confusion about this in callbacks »
I am really confused about the value of this in callbacks, well I know that the value of this is always taken from where it was called, but here in th...
(3) odpowiedzi
2017-11-25 12:11 Async and await error with some IDE's »
I'm trying to use aysnc and await in my project, I first tried these in FiddleJS, and it works fine but when I tried to do it in my IDE (PHPSTORM 2017...
(2) odpowiedzi
2017-11-25 11:11 Why ctx.state did not pass to another middleware? »
use koa2 ejs koa-router, ejs template how to use another middleware's ctx.state localhost:3000/admin/usermsg admin.get('/usermsg', async(ctx) => ...
(0) odpowiedzi
2017-11-25 07:11 Sending multiple reply messages on single postback in Facebook Messenger Bots »
I want to send multiple replies for a single user-triggered postback on Messenger. I've been following Messenger's developer documentation and couldn'...
(2) odpowiedzi
2017-11-25 07:11 Use webpack to create static html files from different assets (based on ejs templates) »
I am working on a node-based project that uses the ejs template system to write different calculators. The dev environment consists of a landing page...
(0) odpowiedzi
2017-11-24 14:11 Node.js: How to add my own non blocking task »
I am a java developer, who is right now trying to learn various concurrency models, currently looking at Node. As I understand following code does asy...
(0) odpowiedzi
2017-11-24 10:11 The proper ways to stack optioned promises »
What would be the proper or the best way to collect all data from DB with promises, but with using native Node promises. The goal is only to present ...
(3) odpowiedzi
2017-11-24 09:11 Error: npm install -g @angular/cli »
When I am trying to run this command, it through error and NPM does not install completely. Before this version of Node.js I also installed node-v8.9...
(2) odpowiedzi