All Questions

3
answers

Reduce amount of conditional

I have a small function that delivers the value that has the highest priority, which for now is not defined anywhere, just by order as I evaluate the values: public function obtenerValorMasImportante($datos = null) { if ($datos->getDat...
asked on 16.08.2016 / 21:37
1
answer

Script launched from rule udev stays zombie when launching a new process

I'm trying to use a udev rule to launch a dbus client from a script. The udev rule will jump when a pendrive is connected, and execute the script usbdevinserted.sh , which will copy the identifier of the pendrive to a file and launch th...
asked on 31.03.2018 / 22:42
3
answers

problem with radio input

good morning. The detail is that I have two inputs radius, which when clicking one of them I want to show me a div that is hidden when opening the page, and tried several methods and none works, I want this do in javascript...
asked on 26.10.2017 / 17:45
2
answers

Create a new loop array for JS

I'm trying to create a new array for every round of a for. var route = []; for (var i = 0; i < 5; i++) { route[i].push(result.routes[0].overview_path[i].lat()); route[i].push(result.routes[0].overview_path[i].lng()); con...
asked on 03.05.2018 / 11:03
1
answer

Change a decimal to binary with stack java

Good morning, I am trying to convert decimal to binary, octal and hexadecimal and vise versa, but does not show me the correct values nor could I pass from binary to decimal, any idea? public static void main(String[] args) { Scanner keyb...
asked on 28.03.2018 / 23:22
3
answers

Operation of const type variables

Let's see if someone can indicate to me, that I am misunderstanding, when it comes to understanding the concept const . I have an attribute of my class defined as follows: std::string name=""; //Inicialiazado Author::Author(const std...
asked on 25.04.2018 / 21:23
1
answer

Variable arrangement in Java

I need to make the length of the array declared by the user running the program and not established within the code, this is what I'm doing but I got confused and I do not know what to do as soon as I'm learning how to program. import java.uti...
asked on 05.04.2018 / 02:47
1
answer

2 font styles at once with swing

I need a little hand, I'm with swing and to apply a font to a text I can only enter the classic parameters: Font despues= new Font(estilo,Font.ITALIC,tamaƱo); The fact is that I need to use 2 font styles at the same time, specificall...
asked on 16.05.2018 / 23:13
2
answers

addEventListener fails to click the first time

I'm trying to make a system that enlarges / reduces the width of two div with JavaScript. For some reason, the first time I press the button does not work. The following times it works perfectly. Why does not the first time it is pressed work...
asked on 06.03.2018 / 13:50
1
answer

Number records of a query in MySQL (alternative to variables defined by the user)

Inside the MySQL database manager I have a table of which I do a% general% co_ and I want to list with an incremental number all records, I can do it originally with a user defined variable as follows : SET @counter = 0; SELECT (@counter := @...
asked on 20.09.2018 / 17:36