Data dodania Pytanie
2016-12-30 21:12 EJS include partials and declare variables for partials - Nodejs »
I have an EJS file where I include a header: <% include ../partials/header %> In that header I have some tags (title, description) which have ...
(0) odpowiedzi
2016-12-30 20:12 Javascript not linking properly with node app »
Using Node/Express/EJS and I havent included any js files yet, well im starting to and cannot get my alert("working"); to work! Ironic huh. The goal...
(2) odpowiedzi
2016-12-30 17:12 Where to place the front-end javascript files? »
I am developing an express based web application and I started following the application skeleton built by express-generator. Next, I added to my pr...
(3) odpowiedzi
2016-12-30 17:12 What does it mean to say nodeJS is built on the V8 engine? »
I'm beginner to MEAN stack, while studying NodeJS, I'm came up with the following statement that's taking my mind Node.js is a very powerful JavaS...
(7) odpowiedzi
2016-12-30 16:12 Passport JWT auth in unit test - socket hang up »
I'm having an emotional time trying to test protected routes that use passport's JWT strategy, with Authorization header. I've tried axios, supertest...
(1) odpowiedzi
2016-12-29 22:12 Serve one app path with React and serve other paths with EJS »
Currently my express app renders all paths with EJS. I'd like to replace one path in particular to render with React on the client side. That particul...
(0) odpowiedzi
2016-12-29 21:12 NodeJS cluster and database connection »
I have been experimenting clustering in NodeJS (https://nodejs.org/api/cluster.html) and was able to cluster my server. I have a mongodb connection w...
(1) odpowiedzi
2016-12-29 20:12 How can I dynamically populate html data in node for posting, not displaying? »
I'm currently trying to populate html data in a file stream so that I can send it in an email using smtpTransport. I've tried to use ejs but almost ev...
(1) odpowiedzi
2016-12-29 19:12 What to look out for when putting React into an EJS application »
I have been coding my app in node/express/ejs, now I am going to start to build the rest of it in React/JSX/Webpack. Is there anything I need to know ...
(0) odpowiedzi
2016-12-29 04:12 Memory leak in a Node.js extension written in Rust »
I'm writing a Node.js extension in Rust. I called this toy library from C, checked it with Valgrind and no memory leak was found. I called the same l...
(0) odpowiedzi
2016-12-29 02:12 Node: Knex postgres query doesn't trigger unless 'then' is appended »
I'm using Node with postgresql. I'm trying to do a knex query to the bd. Why this query doesn't work without the then() call? knex('test').insert(Us...
(2) odpowiedzi
2016-12-28 22:12 Using AJAX in Node.js with ejs »
I am tring to figure out how to use ajax in node.js I have this for now. How do i display for example order[0].name and order[1].name inside my div i...
(3) odpowiedzi
2016-12-28 19:12 How to bypass axios built in CSRF protection? »
I'm making a NodeJS Express app, that in a certain scenario gets a request from a user, then forwards the request to a 3rd party site and once it rece...
(1) odpowiedzi
2016-12-28 11:12 How to increase event loop capacity in nodejs? »
I know that Node.js uses a single-thread and an event loop to process requests only processing one at a time (which is non-blocking). But i am unable ...
(1) odpowiedzi
2016-12-28 04:12 NodeJS Update API - Internal Server Error »
It's about time I call in the big guns for this as I can't seem to figure it out. I have a simple CRUD API in Node. I'm using EJS on the front-end. ...
(2) odpowiedzi
2016-12-28 02:12 Get a count of (active) timers in Node.js event loop »
Is there a way to make a call in Node.js to determine the number of timers in the event loop queue? I have a library with a number of timeouts and ins...
(1) odpowiedzi
2016-12-28 01:12 npm test differs from manual execution »
In my package.json I have the the following; "scripts": { "test": "NODE_ENV=test mocha **/*.spec.js" } When I run npm test it only completes one ...
(1) odpowiedzi
2016-12-27 17:12 Is unbinding callback necessary before deleting socket? »
I have memory leak in my js multiplayer game. I bind a lot of callbacks when client is connected to the server. My question is do i have to unbind cal...
(1) odpowiedzi
2016-12-27 15:12 Elasticsearch show only the name of all indices with node js »
I am using ejs framework with node js. I can get all the index names in json format. But what I want is just the names of the indices. My code looks l...
(1) odpowiedzi
2016-12-27 02:12 How to grab a section with Regex? »
I'd like to grab the various sections in my code with Regular expressions. I want to write four different regex expressions. The first one is simple, ...
(1) odpowiedzi
2016-12-27 01:12 In Angular-Cli WebPack scripts, i want to reorder the bundled scripts »
I working on Angular2 project. I used Angular-CLI to scaffold my angular app. Angular-CLI by default use WebPack to handle a lot of things and one of...
(1) odpowiedzi
2016-12-26 23:12 Is it possible to disable zoom in/out functionality in a Electron electron-quick-start JS app? »
This question is specific to electron-quick-start, so it's not a duplicate. I'm in the very first steps of JS desktop apps with https://github.com/el...
(2) odpowiedzi
2016-12-26 21:12 Node.js - Passing multiple objects to same EJS file »
I have multiple MySQL query results where I render the first and make callable the rest ones to a single EJS file (/data) as objects. I render only t...
(1) odpowiedzi
2016-12-26 19:12 Node.js store images. Get those images in front-end »
I have never done anything similar to this and after investigating for a while I didn't find what I wanted. If that exists I was probably too stupid t...
(1) odpowiedzi
2016-12-26 09:12 app.use ("*") seems to be calling function multiple times »
app.use("*", topUsers) is called multiple times.. topUsers is being called multiple times function topUsers(req, res, next){ console.log("req.ur...
(1) odpowiedzi
2016-12-26 06:12 Mongoose not inserting data »
I'm sending a post request to an API I made. The post request sends some data to be stored in my local database. var Loc = require('../models/locatio...
(3) odpowiedzi
2016-12-25 22:12 Sequelize Pulling data from multiple tables and passing as objects to render in EJS »
am new to Node Js and associated programmes. Currently trying to create an app which uploads images with captions etc and for users to like and commen...
(1) odpowiedzi
2016-12-25 21:12 How can I return something that looks like an array from a node addon? »
I'm implementing a native module for node and trying to return something that looks like an array but is backed by native data. At the moment I'm crea...
(2) odpowiedzi
2016-12-25 20:12 FB Video Embed - Without iframe (remove share, like, bookmark controls) and use HTML video element »
I am trying to embed facebook videos in a simple node-express application. I am following the fb dev website and it working kind of fine. But I came a...
(0) odpowiedzi
2016-12-25 18:12 How to properly order data chronologically in my Firebase infinite scroll? »
CODE: <script> var app = angular.module('app', ['firebase']); app.controller('ctrl', function ($scope, $firebaseArray, $timeout) { ...
(2) odpowiedzi
2016-12-25 12:12 passing ejs array to javascript function »
How do I pass an ejs array in a javascript function? function validate(array) { alert("Here"); var ok = false; var emailva = document.getElementById...
(1) odpowiedzi
2016-12-25 02:12 An array inside of an array »
So here is the thing, I have a json file and inside of that I have an array, and inside of that I have another array. This is how the json file looks...
(2) odpowiedzi
2016-12-25 01:12 Create reusable partial view in sails js »
I need to create a reusable "featured listings" ui component in my sails js app. I'm using the default ejs template engine. Basically this "featured l...
(0) odpowiedzi
2016-12-24 22:12 Why does NaN = !NaN return true? »
NaN is one of those vestigial implementations of questionable origins, but for the most part I get it. However, I typed this into a Node prompt today ...
(5) odpowiedzi
2016-12-24 16:12 Readline in NodeJS is drawing unwanted lines »
I have the following issue, where I draw an ASCII character in the terminal window, and move the cursor to another position and repeat the process wit...
(0) odpowiedzi