I have the following simple code:
<input id="nick" type="text"/>
<script>
var c = document.getElementById('nick').value
</script>
I need to remove a part of the name, only if it has brackets [] .
So if you have thi...
Starting from a navbar of Bootstrap standard we need that some buttons or links are aligned to the left, others to the center (for example: our icon brand ) and others to the right.
This was the first thing I tried to do:...
I found the following code:
char query[255];
sprintf(query, "SELECT NOMBRE, ");
switch (tipo)
{
case TIPO_1:
sprintf(query, "%s ID", query);
break;
case TIPO_2:
sprintf(query, "%s APELLIDO", query);
brea...
The case
var resu;
undefined? resu = "esto seria inesperado" : resu = "debería dar esto";
console.log(resu);
But when I'm going to confirm the theory that undefined is false :
var resu;
undefined ==...
If I have a text string such that:
var cadena1 = "cadena_1";
And I just need to get 1 from the previous string to put it in a variable, how can I do it?
Doing this:
var res = cadena1.split("_");
the result is cadena,1
It works if I enter 10 and then 2, it gives me 5.
But I am applying it in another program and now I release to try and it does not give me the results that it has decimals that is to say the division of 2/10 that would be 0.2 does...
I am generating a JSON from a query to the database. When I get the data I store it in an array and then I apply json_encode to create a JSON object.
Everything works fine, but I want to know if it is possible to prevent json_encode...
Lately I wanted to start thinking more than solutions, to be effective at the time of programming. And that is why I run into the following question, and as the title says:
What is the most efficient way to traverse an array in Java?
And...
I need to get a list of dates whose days are "Monday" in a range of dates supplied, both inclusive.
For example:
If we pass the interval 01/05/2017 until 15/05/2017 the function should return:
01/05/2017
05/08/2017
05...