All Questions

7
answers

Capture year that is outside the regex

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...
asked on 02.03.2017 / 18:21
3
answers

Divide a string that contains scores

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] =>...
asked on 25.01.2017 / 19:38
3
answers

DIV / IMG with blurred / blurry background

Make the background of a <img> or <div> transparent like the iPhone's design - blurry, blurred, but only with CSS.     
asked on 21.07.2015 / 03:17
2
answers

While with incomprehensible format

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);...
asked on 12.11.2015 / 03:26
3
answers

What is the maximum value for Number in javascript?

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...
asked on 16.10.2015 / 13:45
3
answers

Error in variable declaration in loop

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++) { /\ //...
asked on 18.09.2015 / 01:14
3
answers

Round a number to the tenth 4023.8599999999997 €

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.     
asked on 28.01.2016 / 12:30
3
answers

Check if array contains specific character

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...
asked on 14.12.2018 / 03:05
3
answers

Is there a naming pattern for enums?

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 , ... ???    ...
asked on 17.07.2015 / 15:54
2
answers

Is it possible to combine first: child with: hover?

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...
asked on 13.04.2015 / 18:00