All Questions

5
answers

Consultation with GROUP BY MYSQL

I have this table id departure value date 1065 | 2018-09-20 | 10490 | 2018-09-20 18:04:19 | 1034 | 2018-09-25 | 10582 | 2018-09-20 18:04:19 | 1035 | 2018-09-25 | 13096 | 2018-09-20 19:05:19 | And this consultation SELECT...
asked on 21.09.2018 / 16:56
1
answer

Obtain the client's IP in Node.js

I need to obtain the IP address of the person who consumes the API I am working with, this is the code I am using: app.post('/api/v1',(req,res) =>{ ConnectTelnet(); var ip = req.connection.remoteAddress; console.log(ip); }) But th...
asked on 24.09.2018 / 22:23
2
answers

Check full fields jquery

I am trying to do a 2 input text check and when the keyup is executed, even if only the input name is filled, it enters the else and the IF is not fulfilled. JS $( document ).ready(function() { $("#formulario input").keyup(function() {...
asked on 01.10.2018 / 17:09
1
answer

Print content of custom-type LIFO stack

I have the next class; class Estudiante { private: string nombre,cedula; int matricula; float calificacion; public: //se dejo con un destructor por defecto void anadir(int _matricula,string _nombre,string _cedula,float _c...
asked on 30.09.2018 / 18:42
1
answer

filter query with repeated values only show 1

Good morning I have this query $eventos_history_query = tep_db_query("select * from " . TABLE_HISTORIAL . " where numero_evento = '" . $customers['numero_evento'] . "' order by eventos"); while ($eventos_history = tep_db_fetch_array($ev...
asked on 04.10.2018 / 11:48
3
answers

Merge arrays ordered in C ++

I need to combine the elements of two arrays interspersed and sort them during insertion. However, something strange happens when I order the second array ( arreglo2 ), since it modifies the first element of the first array ( arreglo1...
asked on 27.09.2018 / 03:12
1
answer

Delete an item created dynamically with jquery

I have a form and I want to delete the elements created in each time a new element is added dynamically using jQuery Validation Plugin v1.16 // only for demo purposes $.validator.setDefaults({ submitHandler: function() { /...
asked on 30.09.2018 / 05:15
1
answer

Calculable. Expressions with conditionals

I am trying to calculate a formula with java but when I try to use a conditional, to do one thing or another according to whether a parameter is true or false. I add method. public void calcular (){ Calculable calc = null; try {...
asked on 18.07.2018 / 11:35
2
answers

replace items in nested lists in python

I want to replace items in lists of lists to draw a cross. So for example the list: x="X" lista =[[x," "," "," ",x],[" ",x," ",x, " "],[" "," ",x," "," "],[" ",x," ",x, " "],[x," "," "," ",x]] for l in lista: print (" ".join(l)) re...
asked on 06.08.2018 / 06:30
1
answer

Add data obtained mysqli to a multi array

I'm trying to add the data obtained from a select and order them to an array in PHP. I want to accommodate the array in this way: $array = array(noticias => array("1" => array ("titulo" => "Noticia 1", "autor" => "Pepe", "fecha"...
asked on 06.08.2018 / 23:38