All Questions

4
answers

Program to count the vowels of a chain

   "Perform a call_count_name () function that receives as an argument any string and returns the number of vowels present in the string." def contar_vocales(x): voc=0 for i in len(cad): if cad[i]=='a' or cad[i]=='e'or cad[i]=...
asked on 04.11.2017 / 19:53
2
answers

Synchronize threads in Java

I have an exercise of threads to record and read a text file in Java, but what I do not get is that the threads are synchronized. In the way I have it, the threads interfere with each other, and at the time of writing in the file the thread for...
asked on 11.11.2017 / 14:04
1
answer

How do I change the wallpaper on the lock screen?

Basically I'm making a wallpapers application, when changing the wallpaper or background only changes the one on the home screen, but the blocking screen does not, I've searched in different forums but I can not find a correct solution. Code...
asked on 07.11.2017 / 19:50
1
answer

Transform cardinal points in latitude and longitude in java

I have a Java program in which I use an object type that stores the puntos cardinales of a place (north, south, east and west) and I need to transform it into latitud and longitud . How can I do it? Do I need an ext...
asked on 03.11.2017 / 08:57
1
answer

how to get the largest item in each row with numpy?

I try to get a list of the indexes of the largest elements in each row a = np.arange(16).reshape((4, 4)) print(a) print(np.amax(a, axis=1)) print(np.where(a == np.amax(a, axis=1))) this is the result: I get the largest matrix wher...
asked on 20.11.2017 / 04:33
1
answer

How can I compare the output of a type () function with a string?

If I have a python script like this: texto = "TEXTO" cadena = "<type 'str'>" salida = type(texto) if(cadena == salida): print("Es un string") else: print("No es un string") I think in theory it's fine because you're comparing...
asked on 11.11.2017 / 15:46
1
answer

Parse Geo URI in Java

I need to parse a URI of type geo. Samples: geo:79.786971,-124.399677 geo:42.374260,-71.120824?z=16 For the first sample I have the regular expression to filter that its structure is correct: ^geo:.(\-?\d+(\.\d+)?),\s...
asked on 15.11.2017 / 18:32
2
answers

Convert variable to Barcode

Good afternoon community, I have a question, it turns out that I must take from a field the respective value of what is in it. <div class="form-group"> <label for="" class="control-label">Documento:</label>...
asked on 28.08.2017 / 19:32
1
answer

Why is not a div displayed using mediaqueries in HTML?

I have two div one with a yellow background and one with a red background, the red background should be seen in a resolution greater than 800px and the yellow in the resolution less than or equal to 800px, the red div works fine but the yellow o...
asked on 26.08.2017 / 13:30
1
answer

SQL INNER JOIN with three tables

I have a database about movies and I want to show the name of the genres a movie is assigned to. Diagram (example values in red): - EDITED - This error comes out:    The method getString (String) is undefined for the type String...
asked on 12.11.2017 / 23:44