Data dodania Pytanie
2017-02-14 20:02 Updating info with Mongoose, array inside object inside object dynamically »
I'm trying to update the JSON field "champ_x" from 1 to 3 and for both players 1 at a time in a dynamic function: { "_id": { "$oid": "58a...
(1) odpowiedzi
2017-02-14 16:02 How to avoid undesired "animated" console output on Jenkins »
Sometimes I find log-lines like these in my Jenkins Job Output: [|] [/] [-] [\] [|] [/] [-] [\] [|] [/] [-] I know these lines...
(1) odpowiedzi
2017-02-14 13:02 How to do class free inheritance in JavaScript (Crockford style) »
Background I am trying to improve my JS skills, and with that I am watching some of the big entities in the JS world. Such an entity is Douglas Crock...
(2) odpowiedzi
2017-02-14 04:02 Set-Cookie in response header is not saved into browser cookie storage »
the response header is Access-Control-Allow-Credentials:true Access-Control-Allow-Headers:Origin, X-Requested-With, x-request, Content-Type, Accept A...
(1) odpowiedzi
2017-02-13 21:02 Group similar strings from an array in Node.js »
Let's say I have a collection of different URLs in an array: var source = ['www.xyz.com/Product/1', 'www.xyz.com/Product/3', 'www.xyz.com/Category/1'...
(2) odpowiedzi
2017-02-13 09:02 Updating angularJS view when data changed in mongdb »
My project architecture is somewhat like this : I have an Mobile Application, which i use to upload a form and a photo. This application is connec...
(0) odpowiedzi
2017-02-13 09:02 Change element style in EJS after POST action in Node - Express »
I have a form page that should show a Success Alert (Boostrap) after a user fills out the form and hit the Submit button. <form class="well form-h...
(1) odpowiedzi
2017-02-13 08:02 Generate new ObjectId using RoboMongo »
I have push an object in array of objects mongoose using robomongo db.getCollection('model').update({_id:ObjectId('')},{$push : {array : {Object}}}) ...
(1) odpowiedzi
2017-02-13 05:02 Create a new DOM element with EJS »
I am rendering a view with the EJS template engine based on some dynamic variables. For example: res.render("index", { dynamicVariable: ...
(1) odpowiedzi
2017-02-12 19:02 how can i access objects with in an array in ejs »
I have a objects within an array and I need to loop through the objects. How can I achieve this inside an EJS template? [{ "show": "589c062d...
(0) odpowiedzi
2017-02-12 18:02 Empty “this” in Sailsjs es6 arrow functions »
I have a Sailsjs service class I declared my functions and everything is working fine not until when I tried to access this from within a function to ...
(0) odpowiedzi
2017-02-12 18:02 Node and Express simple POST - 400 Bad Request »
Surely I'm doing something stupid, because this should be the easiest thing in the world. All I'm trying to do is perform a POST in an Express route....
(1) odpowiedzi
2017-02-12 12:02 Can't display list of users in PUG/JADE »
I am trying to show list of users in PUB. This is my code - var users = !{users}; h1 UserList for user in users a(href='/deleteuser/' + ...
(1) odpowiedzi
2017-02-12 03:02 ejs returning empty array but console.log returns an value »
I have a variable that returns fine in console.log() but when rendering it returns an empty array. function loadFestival(festSlug) { return Q.Promi...
(0) odpowiedzi
2017-02-11 22:02 How to string concatenation inside of EJS for loop? »
Looping through some data creating list items and buttons. I need to pass the button the id the of the item but I am not sure how to string concat. ...
(2) odpowiedzi
2017-02-11 20:02 TypeScript saves type as undefined »
class A { private static readonly letters: { [type: string]: any; } = { 'b' : B } public static check(): void { console.log(A.letters...
(1) odpowiedzi
2017-02-11 20:02 Can't install the LTS version of Node.js »
I have a problem installing the LTS version of node. When I do "node -v", it says : v7.4.0 But when I do "nodejs -v", it says : v4.2.6 Further...
(3) odpowiedzi
2017-02-11 20:02 nodejs to client side parameters passing without exposing as window variable »
I am using nodejs and ejs as the view template and mithril js as client side. To pass db result from node to client, i am assigning that to a window ...
(0) odpowiedzi
2017-02-11 15:02 ejs giving me object not array »
in ejs i'm expecting a variable to be an array but giving me an object. I have no clue. Could any one explain to me. <% var show_events = []; %&gt...
(0) odpowiedzi
2017-02-11 09:02 Uploading Multiple Files To S3 Node »
I am trying to upload multiple files to S3 from my Sails.jsapplication. I've a Controller to handle the Request and a Service to upload should in case...
(0) odpowiedzi
2017-02-10 19:02 ng new my-app unexpected token = »
I have installed the angular2 cli via npm, but when I try to create a new typescript angular app with the command 'ng new my-app' I keep getting this ...
(1) odpowiedzi
2017-02-10 16:02 How do I properly modulate my code in a Node.JS project? »
[TL;DR] Just read the bits in bold. I'm pretty new to Node.JS but have been getting on fine building some working projects. Now I have a burning ques...
(2) odpowiedzi
2017-02-10 10:02 How to cluster Node app in multiple machines »
I am using Express js and Node-cluster for taking the advantage of clustering I am also using PM2 for process and memory management. For a single mach...
(2) odpowiedzi
2017-02-10 10:02 Can we use socket.io with ejs(embedded javascript) instead of html page in Node JS application? »
On client side in browser as ejs page: <script src="https://cdn.socket.io/socket.io-1.2.0.js"> </script> <script> var socket = io()...
(0) odpowiedzi
2017-02-09 20:02 How to synchronize backend timer with mobile app »
I am developing a app that chooses a user and has a 15 sec. timer for that user to respond. The user app queries the db every 5 sec to see if that use...
(2) odpowiedzi
2017-02-09 17:02 call server-side REST function from client-side »
In the case, on the server side have some archive restApi.js with REST functions. My REST functions works fine, i test with Prompt Command. In my cli...
(4) odpowiedzi
2017-02-09 15:02 EJS Tags in external css »
I'm trying to refactor a nodeJs project and my css is in my .ejs file. I need to put some dynamic data in my css file. I need to have dynamic data in ...
(1) odpowiedzi
2017-02-09 10:02 Angular2 update »
I updated the angular2 to the latest version , also I updated my nodejs to the v6.9.5 After I did that I've got the next error ERROR in Error en...
(0) odpowiedzi
2017-02-08 18:02 How to listen to multiple urls with Diet.js? »
The documentation for Diet.js demonstrates a basic web server as: var server = require('diet'); var app = server(); app.listen('http://localh...
(1) odpowiedzi
2017-02-08 16:02 Execute second function after first function - REST »
If the first REST function execute with sucess, the second it will be execute with the parameters of the first function, in the case return: sessionid...
(1) odpowiedzi
2017-02-08 15:02 Is there an official list for Handlebars reserved words? »
After struggling with a template var named {{engine.x.y}}, which was "silently" showing nothing until I changed it for something else such as {{_engin...
(1) odpowiedzi
2017-02-08 07:02 How can we register test company on Facebook to enable in app purchases? »
I want to integrate Facebook payments in my app, but it requires detailed company information with all the bank information so I am wondering is there...
(0) odpowiedzi
2017-02-08 00:02 NodeJS how to set csrf token correctly? »
This is a continuation of this question: Rest-auth still reports the error of "CSRF cookie not set", but I've set the csrf The code I u...
(1) odpowiedzi
2017-02-07 23:02 Get cordova package name from javascript hook »
I am writing a cordova plugin with a node hook to run after_prepare . This is for Android only. From within this hook I need to get the cordova pack...
(1) odpowiedzi
2017-02-07 15:02 Mocha throws "Resolution method is overspecified" »
I'm trying to write a simple test - describe("My test", function(){ it("Succeed", function*(done){ yield testFunc(); done() }) }) functi...
(2) odpowiedzi