All Questions

1
answer

Passing variable from html form to nodejs

I am creating a webproxy with nodejs to be able to access "anonymously" to another site, so this is my server: const http = require("http"); const url = require("url"); const request = require("request"); const fs = require('fs') var server =...
asked on 23.08.2018 / 00:58
2
answers

I have some images saved in an array of objects and I want them to be the same size at the time of presenting them

I have my script like this: var imagenes={"leon":'<img src="imagenes/leon.gif" width="200" height="200"/>',"burro":'<img src="imagenes/burro.gif"/>', "ballena":'<img src="imagenes/ballena.gif"/>',"gato":'<img...
asked on 23.08.2018 / 22:49
1
answer

Vary the color of a range

Hello, I have the following range var $sliders = $("input.slider"); $.each($sliders, function(i, elemento){ tooltip: 'always'; console.log(elemento.id); var slider = new Slider('#'+elemento.id, { formatter:...
asked on 23.08.2018 / 16:42
1
answer

How to make irregular figures

What I want to do is an isosceles triangle with the tips cut out or flat in this case will have 6 points as a hexagon, but I do not know how this can be done from CSS. I tried something like this: .triangulo_mascara{ overflow: hidd...
asked on 23.08.2018 / 18:27
1
answer

Bring related data from a table

I have 2 tables a types and the other plates which are the following: But I want to bring the type of that plate, how would I do it? example: I have a plate with id 1 and it has the id_type 2 , and I want t...
asked on 30.09.2018 / 18:03
2
answers

Find duplicate records, change them and return them only in MySQL

I have a problem, I have data from a table that is duplicated, inside are the following fields id, empresa, actividad, compaƱia I need the field empresa is unique, I generate a query to know how many and which are duplicates and I...
asked on 28.09.2018 / 14:59
1
answer

Class shows values that do not correspond to the select

I'm using PHP / MySQL and in a class I have a function that should look for two maximum values in a single line and I have this code: $sql = "SELECT max(id) as id, max(lote) as lote FROM sc_operac limit 1"; $bd = new ConexionDB(); $stmt = $bd-...
asked on 29.09.2018 / 11:56
1
answer

Delete the word selected by the user from a text

This is the only thing I need to finish my project, I need to know how I could remove a phrase that the user enters by keyboard, this by means of a function activated by a button. I know that a picture is worth a thousand words, so I'll leave...
asked on 26.09.2018 / 16:30
1
answer

DDoS attack on ExpressJS

In the last days I am receiving DDoS attacks on my VPS, I have an API with ExpressJS, I have added the ddos module that blocks when it receives requests from the same IP but I keep receiving requests from different IPs and I do not know how to s...
asked on 27.09.2018 / 18:59
1
answer

How to configure environment variable in heroku?

I found myself in need of setting environment variables in heroku for the deployment in production mode of my project. The variables were the credentials for accessing the data base const DB_HOST = process.env.DB_HOST || 'localhost';...
asked on 28.09.2018 / 04:17