All Questions

2
answers

Separate a URL in its parts

I am trying to write a method that is called separarURL() , that receives a string of characters from a URL and returns an array of three Strings, containing the protocol, the server and the resource of the received URL. Example:   ...
asked on 16.01.2018 / 15:04
1
answer

Does not allow a pause to be executed within a loop

I'm trying to create a clock from nested while loops but I have not managed it so far <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>reloj</title> </head> <body>...
asked on 12.08.2017 / 04:10
3
answers

Check if there is a comma and replace it with a period

I have an EditText where I pick up what was entered in the box and I am trying to verify if it introduced commas, letters where only a format like this is allowed: 123.11 If the user enters the parameter other than a value of type Float the a...
asked on 27.05.2017 / 17:10
3
answers

How to add columns of an HTML Table?

I just wanted to know how to add the columns, since I'm new and would like to know how to apply it with java script. This is my function: <table id="tabla" class="table" style="width:51%;"> <thead> &l...
asked on 29.08.2017 / 21:57
5
answers

Override the value of a CSS property

I am editing a CSS file, I want to cancel the value of that property, but I do not want to set a new value. I have the file A, that I can not edit . .menu a { padding: 20x; } So now I create another style sheet, but if I put .menu a...
asked on 12.03.2017 / 18:17
1
answer

Why does not the length of a chain show a different amount than the elements possessed?

Having this text string and applying the property length var texto = "Hola soy una arroba \u0040 , un placer"; console.log(texto.length); Returns: 33. If we count ourselves we would give: 38.    Why do you give a di...
asked on 29.04.2017 / 13:51
2
answers

How to Align the content of a Placeholder within a TextArea?

Well my problem is that I have a <textarea> on my page and I use the attribute placeholder= to give the value of user such that: <textarea id="usuario_nick" placeholder="usuario"> The problem is that the t...
asked on 10.08.2017 / 20:39
1
answer

Connection error mysqli [closed]

I have a problem with the following code. It seems that the connection is not closed or gives an error. The error it shows is:    Notice: Undefined variable: mysqli_close in   C: \ xampp \ htdocs \ new \ 89_Blog1 \ insertContent.php on line 2...
asked on 06.06.2017 / 15:15
3
answers

Select positions of a vector. Python

I am translating from R studio to Python and I have a doubt, in R I am using which what what it does is give the indexes TRUE of a logical object, allowing the indexes of the array. For example, if I have a vector v=(0,5,6,7,81,...
asked on 01.08.2017 / 16:41
2
answers

Concatenate rows in Linux file

I need to generate a linux script that concatenates information. I have a file (arch1.txt) that contains first and last names: Juan Perez Ana Lopez and I have another script that, when executed, returns a line that contains the age of the p...
asked on 17.03.2017 / 04:48