All Questions

1
answer

Insert a date before the scheduled date

I have a table called deliveries, within it 2 fields fecha_preparar and fecha_entrega . $fecha_prepararse = fecha_entrega - 4 dias INSERT INTO entregas (fecha_entrega, fecha_preparar) VALUES ('$fecha_entrega', '$fecha_prepararse'...
asked on 02.09.2017 / 07:01
2
answers

Difference between currentTarget, delegateTarget and target in JQuery event

I have this simple script that captures a one-button event with jQuery: $(function() { $('#myButton').click(function(evt) { console.log(evt); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery....
asked on 24.12.2015 / 19:44
1
answer

Android Studio generates 2 applications [duplicated]

I have my project in Android Studio and generating the apk is all right. The theme comes when I install it, the installation generates 2 applications of my project: one that goes to the LOGIN and the one that goes to another window of my pr...
asked on 01.09.2017 / 17:16
2
answers

Show child elements html and js

I would like to know how I can only show the child elements with javascript for example. <div class="row"> <span class="red">66 <span>22 </span> </span> <span class="green">24 &l...
asked on 14.05.2018 / 22:27
3
answers

Average hours PHP

I want to add and take an average of a few hours. $cadena = '00:09:00,00:09:00,00:09:00,00:09:00,00:09:00'; $arr = explode(",",$cadena); $total = strtotime('00:00:00'); for($i = 0; $i<count($arr);$i++) { $total = $total + strtotime($arr[...
asked on 14.02.2017 / 01:31
2
answers

What are the data- * attributes for?

I'm looking for code to make a progress bar. Among those that I saw I found this example that I liked, and inside the html I found a attribute data-percentage particular. When deleting nothing happens because who changes the appearance of...
asked on 20.12.2016 / 04:10
4
answers

Send data between activities

I have a problem. I have 2 activities, the main one and a second screen. I want the 2nd screen to send data to the main screen but when I start the application it tells me that it stopped and it closes. When I do it the other way around (From th...
asked on 30.11.2016 / 19:14
3
answers

Does not recognize double-float templates

I have this code in which I try to approximate the natural logarithm of a number, but I can not use if , while or for , only the if ternario, but at the time it compiles I'm shot errors that T is ambiguous and th...
asked on 27.09.2018 / 04:21
2
answers

How do I place the optgroup text before the option when selecting it with select2?

What I intend to do is that when selecting one of the options, put the parent text (optgroup) and show me something like " LG / Lg - Test 1 " (notece in the example that I say that "LG" is the parent (optgroup) and "Lg - Test 1" is the child (op...
asked on 09.05.2017 / 20:56
1
answer

How to copy a Sqlite database or file from internal storage to external storage?

How to copy a file or database from internal to external storage, sometimes we need to read files inside the internal storage ( data/data ), which is only possible if the device has root permission. In the case of a device that do...
asked on 15.06.2017 / 22:33