Questions tagged as 'node.js'

0
answers

Best way to treat string in nodejs

I'm working on an application using a socket for an application on my server. I'm having difficulty handling the calls generated by the net module. My application is in real time, that is, every 200ms I send a request to the socket so that it...
asked by 08.05.2015 / 16:47
0
answers

How to host server on local router with Express.js on Mac OS X?

Since I started using Mac I am no longer able to host a local server on my router with Express. In ubuntu it was enough to pass the IP of the router as the second argument of app.listen and everything worked: like . When I try to...
asked by 04.04.2015 / 23:24
0
answers

mongoose syntax error

I'm trying to create an application using express.js and mongodb, when I try to run the server this syntax error appears. The error that appears refers to a document with only zeros (Ex: 0000 0000 0000 0000 ), I am a noob in the matter....
asked by 26.03.2015 / 23:14
0
answers

Audio Stream (WebRadio)

Good afternoon. Sorry for my ignorance, but how do I create a web radio (quite roughly, just for study purposes)? My project is as follows: I have a site that plays the audio and whoever accesses the site hears this audio. I have to use...
asked by 04.05.2015 / 19:27
0
answers

Copy directory to another on site

I have a website in PHP and JavaScript. I set a button with the following function (found on the internet, called wrench.copyDirSyncRecursive ): function atualizaIR(){ dir1 = '201.7.201.173/Documentos/Teste1'; dir2 = '201.7.201.1...
asked by 23.04.2015 / 20:34
0
answers

How to create and connect users in new rooms with soket.io

I'm using socket.io 1.3.5 and express 4.12.3 to create a chat application on my script php , but I do not know the logic of creating a new room when one user calls another. In kids: I know how to create a room for each user a...
asked by 19.05.2015 / 17:53
0
answers

Save data by websocket [closed]

I'm developing a system using AngularJS and Websocket (PHP or NodeJS I'm still defining), where the form information I intend to save via socket, ie sending an array with the information and processing it to save to the database and returning th...
asked by 05.01.2015 / 17:46
1
answer

Redirect url to url: htaccess port

I'm using node to run my application and I can not configure htaccess to point to port that I set RewriteEngine on RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$ [OR] RewriteCond %{HTTP_HOST} ^dashponto.softmarketing.com.br$ Rewrite...
asked by 29.12.2014 / 14:39
1
answer

Offline modules in Nodejs with npmbox

I know that it is possible to manage the modules of the node while being offline through the npmbox. But how do I do that? Do I need to download the modules before? Do I need to install them in a directory other than the project?     
asked by 02.02.2015 / 10:00
0
answers

Values of proportional Y

Hello,howdoIleavethevaluesofY|proportionalwithoutchangingthevaluesforbettervisualizationofthedata$(function(){$(document).ready(function(){Highcharts.setOptions({global:{useUTC:false}});varsocket=io();socket.emit('acc','operacoes');socket.on('op...
asked by 21.11.2014 / 14:45