Tagged Questions
Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-...
-1
votes
0answers
5 views
JavaScript Code for Screen Video & Audio Recorder
I am building a web based video+audio chat, Now I want to capture & record entire chat session.
0
votes
0answers
15 views
reCAPTCHA verication drains RAM
I'm utterly confused.
I've setup both server side and client side reCAPTCHA2 like so:
reCAPTCHA=require('recaptcha2')
server
recaptcha=new reCAPTCHA({
siteKey:'your-site-key',
secretKey:'...
0
votes
0answers
5 views
Node.js search for memory leak
I am trying to get rid of memory leak but my understanding of things is pretty low in this area and I have nobody to ask for help expect you guys. My script is killing server RAM and I can't figure ...
0
votes
0answers
4 views
cloud9 nodejs - Error: write EPROTO 140261073610560. and in localhost everything ok
I have this script from :
https://github.com/No9/harmon/blob/master/examples/simple.js
and if i run it node simple.js in my localhost everything work well. but in my cloud9 account i get:
Error: ...
-3
votes
0answers
10 views
Node.js sample codes to solve
I have learnt the basics of node.js. I wanted to know what should my next step be and where can I find sample problems on node.js to solve? I searched a bit on Google but couldn't find any.
1
vote
1answer
11 views
Differences between require a builtin library or just ~<library>
I noticed that in Nodejs I can invoke any builtin library without requiring it. Instead of:
var assert = require('assert');
assert.deepEqual(...);
I can do the following:
~assert.deepEqual(..);
...
0
votes
0answers
15 views
Javascript/AngularJS :Reading a CSV file and populating data grid on the page
Our requirement is reading a csv file and populating data grid dynamically on the page.
We are using Yeoman to scaffold our project.
We are facing thoses problems:
We installed angular-ui-grid using ...
0
votes
0answers
5 views
Meteor: How to clear imported css style in ES2015 modules
I am working on meteor project which has multiple layouts with different styles.
layoutSchool.scss
layoutCollege.scss
scss imported along with template render.
Template.layoutSchool.onCreated(...
0
votes
0answers
6 views
Flow Js - How to upload Images in different Paths
I am using the FlowJs library to upload multiple images to my nodejs server. Therefore I use the sample from the gitrepo (See here).
This works as intended but if I want to add more routes which save ...
0
votes
0answers
5 views
I want to use net-ping on browser but browserify can't find module raw-socket
I want to make web monitoring that can multiple ping ip. I use net-ping module from node.js and when i execute node script it work but i need to run it via browser then i use browserify and when i run ...
0
votes
0answers
4 views
Nodemailer emails not being received by Gmail or Yahoo
Nodemailer works fine when sending to email addresses on multiple different domains I own however mail sent to Gmail and Yahoo accounts are failing to be received. There are no errors from Nodemailer.
...
0
votes
0answers
2 views
How to develop NPM module for Ionic
I am developing library for Ionic 2, that should be installed via NPM, but i can't do this in classic way. If you want to develop module you can use npm link command to link module to your project ...
0
votes
0answers
16 views
Use server variables in self created node module
I have created my own node module file in which I write some common utility methods. I am using this file in my server.js file, like this : -
require('./server-utility.js')(server, function(socket) {...
0
votes
1answer
8 views
Error in uninstalling node version
When i do nvm ls
-> v4.3.2
system
default -> 4.3.2 (-> v4.3.2)
node -> stable (-> v4.3.2) (default)
stable -> 4.3 (-> v4.3.2) (default)
iojs -> N/A (default)
...
-2
votes
1answer
9 views
How to do authentication with Node.js, Express and Sequelize?
I've made simple nodejs application by using nodejs+express+angular. Now I want to make user authentification. I want to session handling by using sequelize. Can you advise Simple example which ...
0
votes
0answers
16 views
Error to Install npm install -g cordova ionic
Good morning to all. I designing an apps using ionic. When i am installing cordova using node.js i face these problems.
C:\Users\KSS>npm install -g cordova ionic
npm ERR! Windows_NT 6.1.7600
npm ...
2
votes
1answer
16 views
require process.env in node.js?
I have a .env file and it has
ABC='abc'
and when I do process.env.ABC in my app.js I can get the abc value. How do I require it to be use in my models' files? I do the same thing process.env.ABC in ...
0
votes
0answers
8 views
Disable console logs for GhostDriver, PhantomJS with WebdriverJS
I have been trying to figure out how to disable the annoying console logs when we run phantomjs(ghost driver) with webdriverjs but in vain.
[INFO - 2016-10-09T14:57:15.039Z] GhostDriver - Main - ...
0
votes
0answers
14 views
Processing Newline character from Request Header in HAPI service
I am trying some hands-on writing few services using HAPI/nodejs.
there are few "\n" which I am receiving in one of my header requests, I want them to be processed in the string and use it as a value ...
1
vote
1answer
30 views
Login system with nodeJS
I have my login system up on localhost and register page is working but not the login page. It keep showing me invalid password.
btw i am using mongodb as my database.
On my mongodb, i'm able to view ...
0
votes
0answers
7 views
install truffle in ubuntu but fails as node-gyp rebuild error
I tried to install truffle on my ubuntu by sudo npm install -g truffle and get error like this:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/hzxscyq/.node-gyp/6.7....
0
votes
0answers
15 views
error installing dependencies from package.json
I just downloaded node.js and I'm trying to install a couple of dependencies from package.json, and I keep getting the same error. I tryied the latest version and the LTS, and both gave the same error....
0
votes
1answer
12 views
Simple firebase express request doesn't work
I followed the node.js guide to setting up a firebase app. This is the code in my app.js file. All of the information is correct, but I do not get a value from snapshot key. In fact, storesRef.once() ...
1
vote
3answers
49 views
Getting an undefined value at Angular from HTML
I am passing the values from HTML to Angular using ng-modal but its giving me undefined at Angular. I am passing the value through ng-click to pass value to the Angular, where I am making use of the ...
0
votes
1answer
13 views
fetch POST from server using react and passport js
I have a form that I am submitting as a POST request...
<form onSubmit={this.handleLogin.bind(this)} action="/" method="post">
<div>
<label>Username:</label>
...
0
votes
1answer
6 views
Node.js UDP broadcast works on loopback, not across WiFi
Trying to "find" my RaspberryPi on the local WiFi by having it broadcast its IP via a datagram. New to this, but seems like it should work:
Broadcast message:
var Lighthouse = require('../lib/...
0
votes
0answers
12 views
Unable to run Webpack dev server/ HMR with Koa2
I am converting a React/Express isomorphic boilerplate app: React Production Starter to Koa2 and am running into issues with the Webpack server.
Mainly I have used the Koa webpack middleware which ...
1
vote
1answer
13 views
Odd behavior from canvas drawing other players using socket server
I'm trying how to learn how to create a multiplayer game using socket.io. I currently have a server storing all player's locations and sending every player their location, then sending the player ...
1
vote
1answer
14 views
Masonry does not work with jQuery in ES6?
How can I use masonry-layout with ES6?
ES6:
'use strict';
import $ from 'jquery';
import Masonry from 'masonry-layout';
class Grid {
loadMasonry() {
window.addEventListener("load", () =&...
-1
votes
0answers
4 views
How can one encrypt a file in node.js using URSA module
I am using formidable for file upload. I want to encrypt the files I upload ..
I have created a private/public key pair using ursa. I can encrypt and decrypt text.
I want to encrypt the file with ...
3
votes
1answer
25 views
ES6 + jasny-bootstrap - Error: Cannot find module jasny-bootstrap?
How can I import jasny-bootstrap into my ES6 class?
ES6:
'use strict';
import $ from 'jquery';
import jasny from 'jasny-bootstrap';
class PushMenu {
constructor() {
this.slideShown = ...
0
votes
0answers
9 views
Forward request object(POST) from express js server to another express js server
I want to forward a post request from an express server(from inside post method) to another express server's post method.
Is there any way to do that?
var httpProxy = require('http-proxy');
var ...
1
vote
3answers
27 views
Node.js - “Cannot find module 'module.js' ”
I'm using Heroku and I get this error..
2016-10-10T03:34:11.188366+00:00 app[web.1]: Error: Cannot find module 'module1.js'
2016-10-10T03:34:11.188369+00:00 app[web.1]: at Function.Module....
0
votes
0answers
8 views
How do you set a breakpoint with node.js jasmine?
Ok, naive question here, but I am somewhat new to nodejs. I am writing a test script using jasmine. There seems to be a bug in my code, so I put "debugger" in one of the lines and jasmine is not ...
0
votes
1answer
23 views
How do I find the existence of a value in JSON
Say I wanted to check if Mango_EA existed. How would I do that in Node JS.
{
"selection1": [
{
"name": "ClashOnGan"
},
{
"name": "JoblessGarrett"
},
{
"name": "FemmeFatale"
},
...
0
votes
0answers
8 views
How to use Nan::MakeCallback to send events from nodejs addon to javascript?
Forgive that I am a beginner for Node and Nan.
Now, I want to send events from nodejs addon to javascript.
v8::Local<v8::Object> obj
Nan::Persistent<v8::Object> persistent;
persistent....
0
votes
1answer
9 views
How to specify node_modules folder for locally referenced node module
We need to specify node_modules folder for locally referenced node
module that resides in an external folder relative to the current
application folder.
We have a scenario where we are ...
0
votes
1answer
9 views
Session storage preferences in node.js
I have a node.js application that uses a MySQL database. I wanted to know what would be a good place for storing the sessions?
My application is actually a final project for one of my courses, but ...
0
votes
1answer
10 views
Testing with Mocha in Node.js
I'm getting really inconsistent behavior in my terminal when console.logging inside of a test I wrote using mocha. We are running a node.js server and running socket.io. Does the console.log not go to ...
0
votes
1answer
16 views
Sending data to app.delete in node.js
I am trying to delete a certain input from my database. I cant seem to get the data to come through on an app.delete to know which entry to delete. However app.post gets the data. Here is my code
...
1
vote
1answer
13 views
With node's api/zlib I'm getting errno: -3, code: 'Z_DATA_ERROR'
The sample data can be found here allCountries.zip, it's the Postal Code database form geonames.org.
I'm running this code,
const zlib = require('zlib');
const fs = require('fs');
const zip = fs....
0
votes
0answers
15 views
Squel query builder using UNION
I'm trying to figure out how to create a query using the squel - SQL query string builder module.
I'm switching from normal string building to this.
I cannot figure out how to properly do the UNION, ...
0
votes
1answer
13 views
Node.js Http post request on aws lambda Socket Hang up
var http = require('http');
exports.handler = function(event, context) {
var headers = {
'content-type': 'application/x-www-form-urlencoded'
}
var options = {
host: 'stage.wings.com',
...
0
votes
0answers
9 views
Synchronizing EventEmitter events with Native Promises
I'm using NodeJS v4.6.0 with it's native Promise implementation. With the following code I'd like to do something after all data has been transformed in the async 'data' event handler.
I thought I ...
0
votes
0answers
12 views
Refresh Div From EJS Template Using AJAX
I've got a basic user-to-user messaging service on an Express app, and when a user submits a new message, AJAX sends a POST request to the server to update the conversation in the database.
When the ...
1
vote
0answers
10 views
Mapping referential ids to actual names in mysql
I'm trying to find a way to efficiently and cleanly replace Foreign Keys with the actual names of Entities (data) in mySQL
tl;dr
I've got 2 JSON's
One represents a previous Customer (before an ...
0
votes
0answers
10 views
Deploy nodejs application to Heroku
I have a clone of the repository https://github.com/ibnclaudius/express-mongoose-es6-rest-api, I want to deploy to Heroku. In the deployments instructions are written as follows:
# compile to ES5
1. ...
-1
votes
0answers
9 views
Integrating pomelo with libgdx
I've been working On my First game using LIBGDX framework , i want now to use a game server .
I choose pomelo framework with nodeJS server
i read the chat example in their tutorial and i like them
...
0
votes
1answer
16 views
Node FFI wrapper function fails when used synchronously, but works asynchronously
I'm trying to wrap a Rust library (that exposes a C API) with Node FFI. I have the following code wrapping two functions. One is a "constructor" that returns a pointer. The other takes a pointer and ...
-5
votes
1answer
32 views
Creating a .bat for a node.js server [on hold]
I want to create a single file to click to launch a local Node.js server. I have seen a few questions/answers stating that Node can be run from cmd but I can't seem to start it on Win7 using cmd.
...