Questions tagged as 'funciones'

1
answer

Encrypt text in PSeInt

The program has to encrypt a phrase that the user enters via the keyboard. For example: If you enter Hello as a phrase and 8 as a key, the program should return Encrypted: IIIH The problem is that no result is shown on the screen. SubProces...
asked by 23.09.2018 / 16:03
0
answers

Store client requests for a server in a queue [Sockets]

I currently have this method for a server: private void listen() throws Exception{ try{ System.out.println("Server is listening on port " + getPort()); while (true) { Socket socket = server.acc...
asked by 15.09.2018 / 18:26
0
answers

I have a button that performs an action as I do that at the end of the action another button is automatically executed

I have a button that takes a screenshot of a div by clicking on a button that div has a photicle that by clicking on the save button is saved by submit in mysql but I would like to click on the capture button (screenshot button) execute the func...
asked by 05.09.2018 / 17:10
1
answer

Complete the for with the payment dates

Since I could not solve my doubts, in this question I cover a little more what I need to see if they can help me. I have this function: function getAmortizacion(monto, tasa, cuotas, periodo, tasa_tipo) { var valor_de_cuota = getValorDeCuot...
asked by 23.08.2018 / 15:26
1
answer

problems with if condition and functions

I'm having a couple of problems with the if condition, I'll leave the code: // Variables var serieButton = document.getElementById("serieButton"); var parallelButton = document.getElementById("parallelButton"); var realSerieZ1 = docum...
asked by 15.08.2018 / 05:51
0
answers

Uncaught TypeError: Can not read property 'send' of undefined fancywebsocket.js:

I need help in the implementation of the socket, since I do not know why I get this error Uncaught TypeError: Cannot read property 'send' of undefined fancywebsocket.js: then the file class.PHPWebSocket.php , the servidor.php...
asked by 31.07.2018 / 02:02
2
answers

How to pass more than one argument to variable functions in php

class Alumno{ function mostrar($nombre,$edad){ echo "la edad es $edad, nombre: $nombre"; } } $clase="Alumno"; $func="mostrar"; $arg="juan,23"; $x=new $clase; $x->$func($arg); I only get one argument to the function. I also...
asked by 25.07.2018 / 22:38
1
answer

Function receives data table

I tell you, I have a function CREATE OR REPLACE FUNCTION test_funcion(x numeric) RETURNS TABLE(codigo character varying) AS 'consulta' LANGUAGE sql; Which when entering an id (X) brings me a list of codes of purchases of that client ....
asked by 19.07.2018 / 22:57
1
answer

Error compiling a list in java

It's my first time at Stackoverflow and I hope you can help me. I'm in Java courses and we're in the list creation part, I have this class (List.java) which contains the following: public class Lista{ Node inicio; int tamanio=0; /** se...
asked by 16.07.2018 / 02:01
1
answer

Angular Problem Firestore - The function does not return any value

I'm having a problem with the following function. retornaCantidadActual(itemProducto) { this.prodserv.getProdObservable(itemProducto).subscribe(dataprod => { const xxprod = dataprod; console.log('Funcion retornaCantidadActual =====>...
asked by 08.07.2018 / 03:30