All Questions

2
answers

Open new window with action inside li

This menu works very well, it opens the pages within the same window, but it does not let me open in a new window. I have already tried it in several ways but nothing but I can not open a new window. This is my code: <meta http-equiv=...
asked on 27.08.2016 / 16:50
1
answer

Program that calculates the average and varianca gives different results with the calculator?

I have two NumPy arrays called follow_dismiss_i and follow_dismiss_display_i that contain a first column that contains counters and a second column that are indexes. I have created a program that helps me calculate: The res...
asked on 30.05.2017 / 14:39
2
answers

java.lang.StackOverflow when using recursion

I'm doing a function that prints the percentage of the process, which ends when the counter reaches the target amount, but always throws me the following error: Exception in thread "main" java.lang.StackOverflowError at pruebas.Bucles.recu...
asked on 01.06.2017 / 22:05
2
answers

Click on a button in a listview to have an activity open

I have this ListviewAdapter and I would like to know how I can add an equal button to each item in the list, that when I press it, I will be directed to another activity. public class ListViewAdapter extends BaseAdapter { // Declare Variables...
asked on 03.06.2017 / 15:16
1
answer

Count records in MySQL

I am working with MySQL and I need to make a query about the following table called tbl-reserva that has the following structure: id fecha_inicio fecha_fin descripcion The idea is to make a query t...
asked on 06.06.2017 / 02:35
1
answer

get the objects that are repeated in an array of JSON objects with javascript (JQuery)

I give as an example the following array of objects in JSON: [{"id":"aaa","uns":"123"},{"id":"bbb","uns":"023"},{"id":"aaa","uns":"123"},{"id":"ccc","uns":"765"},{"id":"ddd","uns":"256"}]. I would like to obtain an array with the repeated...
asked on 06.06.2017 / 08:46
2
answers

Using lambda expressions in Java

I am practicing Lambda expressions and I have the following. I have a person class: private static class Persona { public int a; public String b; public Persona(int a,String b){ this.a=a; this.b=b; } pub...
asked on 16.05.2017 / 04:06
1
answer

multiple statistics on django

I have to calculate a series of data for my project, it works 100% when it comes to general calculation, but when I try to take those same calculations to the facilities ( jovenclubs ) separately it returns me a list with all the values it...
asked on 21.04.2017 / 17:23
1
answer

Destroy modal bootstrap 3

I have not found a way to destroy the modal, currently I only hide them, which means that I have to manually clean the fields of the modal, I have tried the following without results: $('#Modal').modal('hide'); $('#Modal').removeData(); $('#Mo...
asked on 17.05.2017 / 13:35
2
answers

Should obsolete methods be used in Java?

In some cases I have used methods that are marked as obsolete, however everything works correctly, but I do not know if that could affect the execution of the code with the passage of time due to Java updates.     
asked on 12.05.2017 / 15:39