I'm working with a text file using sublime I want to replace some strings where:
I have several strings like this:
EMISSAO="2016-04-18 00:00:00"
I need a regex that captures where the year is invalid, eg:
In some registers it...
I'm trying to split the following string
Eu irei amanhã à casa. E tu vens?
To get the following result inside an array in php
array(
[0] => eu
[1] => irei
[2] => amanhã
[3] => à
[4] => casa
[5] =>...
My knowledge of java is very basic, and I came across a question that I have not yet answered. The code snippet below is used in some of my applications:
File arquivo = new File("ip.txt");
FileInputStream fis = new FileInputStream(arquivo);...
In PHP, we have a limit for values of type int , which is shown by the PHP_INT_MAX constant.
echo PHP_INT_MAX; // Imprime: 9223372036854775807
And in the javascript? How do I find out the maximum accepted value for an object...
I made the following command:
for(int i = 1 ; i <= 3 ; i++) {etc
}
So I gave the following error when I compiled:
game.c:11:2: error: "for" loop initial declarations are only allowed in C99 mode
for(int i = 1 ; i <= 3 ; i++) {
/\ //...
I have 4023.8599999999997 € to round to 4023.86, I tried:
Math.round(sum1)
but the result was: 4024 €
I also tried Math.round(sum1,2) but did not.
How to do this I'm using JavaScript.
I need to check if an array has a specific character (this: |). If it contains, this character must be deleted, and the next word that would be after that character (which actually is a separator of items) would be added in the next index. That...
I do not understand much of object naming pattern. I am creating a enum that enumerates positions, for example: manager, programmer, attendant ...
Is there a standard to name this enum? EnumCargo , CargoEnum , ... ???
...
Is it possible to use these two pseudo-classes together?
I have <ul> and I want the first <li> to pass the mouse to have a different property. I imagine it would be something like:
ul li:hover:firt-child {
}
I...