All Questions

2
answers

hashCode () returns the value of the integer, not its hashCode

I have a matrix like this, from which I want to obtain the codes hash of all its elements: Integer[][] { { 1, 2, 3 }, { 1, 2, 3 }, { 1, 2, 3 }, { 1, 2, 2 } }; I go through it with a loop and I do .hashCode() of each element...
asked on 10.03.2018 / 21:47
2
answers

re.search does not read all matches

I am making a regular expression to find all the words in a sentence. I have the following: import re emoji_pattern = re.compile('[A-Za-z]+') print(emoji_pattern.search("jajaja que haces?")) But when I run it, it gives me <_sre.SRE_...
asked on 07.03.2018 / 04:18
1
answer

Separately capture sections that have a name, but do not match the next section

Text: I have the following text (where the match's will be made): Header 1 Codigo : c001 Nombre : Juan Total : 45,78 Header 1 c001 Nombre : Juan Cantidad : 23 Subtotal : 45.89 Total : 3410.67 Header 1 Codigo : c002 Nombre : Ana Tot...
asked on 22.03.2018 / 03:32
3
answers

Sum of huge numbers

I am practicing my javascript in CodeWars and I have come across this question:    Write a function that returns the String with the sum of two numbers. The parameters are two numbers but of type String . Notes:...
asked on 01.03.2017 / 09:59
2
answers

Hide radioButton with CSS

I have a problem in a css style since I have a radiobuttons code in the form of a button that when you click on it, the radioButton is selected but I could not hide the radiobuttons so that it only shows the label as if it were a button, this is...
asked on 27.03.2018 / 17:09
2
answers

Why can not I see the sweetalert alert?

I have a form in a modal, that when clicking on submit button, after validating the fields, I send it to a php that inserts the data in a database. Next, an alert is notified on the screen. This is the form <form action="insertar.php" me...
asked on 19.03.2018 / 17:51
2
answers

Is it possible to put the browser icon as a source?

I want to change the icon that appears in the browsers tab, the person in charge of uploading the image is: <link rel="shortcut icon" type="image/x-icon" href="logo.ico" /> Well now I want to load a source of bootstrap, type glyphico...
asked on 20.09.2016 / 14:45
2
answers

Help with android studio various activitys, obtaining data

I have a program of 2 activities, the initial activity is a log that connects to a bd by remote control, establishes the connection if the user and password are correct. Now in activity two I need you to show me in a TextView the name...
asked on 10.11.2016 / 10:43
3
answers

Ask for names with a prompt and store them in an array in javascript

You are supposed to ask for 3 names with prompt, use an array to store and then display their values. function names() { var nombres = []; var cont; for (int i = 0; i <= 2; i++) { var x = prompt("Ingresa tu nombre:", "")...
asked on 02.11.2016 / 13:52
2
answers

Find repeated items in a list

I have a LinkedList in java and I would like to store items that are repeated in the container in another container, How could I find out? Any clues? public Set<Cancion> dameCancionesRepetidas(){ SortedSet<Cancion> can...
asked on 28.11.2016 / 18:09