All Questions

3
answers

When to use blank lines in a Python program?

Is skipping one of the aspects that make a program well-indented? If yes, what is the criteria used to skip lines?     
asked on 25.10.2017 / 21:01
6
answers

How to validate date with AngularJS or jQuery?

I have a simple input that gets a date, how do I validate that date if it's true? For example:    31/02/2006 this does not exist   20/20/9999 this does not exist <input name="data" ui-mask="99/99/9999" kendo-date-picker name="t"...
asked on 08.10.2015 / 16:16
4
answers

Interpretation of repetition loop

I'm having trouble understanding the following code that is presented as a book exercise. $a = true; $b = -2; $c = 7; for ( ; $b < $c || $a; $b++){ if ($c + $b * 2 > 20) $a = false; echo $b." "; } The result is: -...
asked on 10.10.2018 / 00:58
3
answers

Last position of an Array

In PHP, what's the fastest and easiest way to get the last position of an Array? I got this doing $array[ count($array) - 1 ] , and it works, but is there any simpler and less ugly way?     
asked on 23.04.2014 / 21:53
4
answers

Converting float to char array in C / C ++

Recently I ran a test and there was an issue that asked for a number like 123.456 to be displayed as 321.456 . I thought the best solution would be to convert this to an array of char and then create an algorithm to print pos...
asked on 03.04.2014 / 18:42
4
answers

Is there a C # functionality similar to PHP __call?

I have a lot of experience with PHP, and as I'm starting with C # now, it's going to be common for me to want to compare one language with another to find out if I can do something similar. In PHP, I can add a functionality to a class so that...
asked on 28.06.2016 / 16:18
2
answers

Image distortion with CSS?

I'm in a project where the responsible designer gave me the following layout to go to HTML + CSS: Can anyone tell me if I have a way to do this with CSS3? I initially thought of a box-shadow, but it has no way to implement the way it was...
asked on 03.05.2014 / 15:47
4
answers

Doubt about exercise with abstract class in Java

I would like to ask for your help again in this exercise. This time using the abstract class.    Create an abstract class FuncionarioAbstract with the String name attribute and the abstract method: public double getSalario();...
asked on 17.11.2016 / 14:58
3
answers

How to jump from one tab to the other in Sublime Text?

Is there a keyboard shortcut to jump from one tab to another in Sublime Text?     
asked on 27.04.2017 / 22:39
2
answers

How to set date ('d / m / Y H: i: s') with Brasília time instead of server time

I'm writing the date and time in the database with script : $sql = "INSERT INTO admin_users (user_name, user_password_hash, user_email, user_data) VALUES('" . $user_name . "', '" . $user_password_hash . "', '" . $user_...
asked on 11.02.2015 / 17:27