All Questions

2
answers

Set OPTION as SELECTED based on database values

I am preparing a form where I am setting the values of the fields with the data of the database. I'm having trouble setting the option chosen as selected to <select/> in the code below: PHP <!-- ATENCAO --> &l...
asked on 17.06.2014 / 18:17
2
answers

How to make an animation in CSS with drag effect. Motion blur

I'm trying to put an animated% css in CSS with loader on a page, but I'd like to put a "drag effect" on it as if it blurred a "blur" in> following the element when it moves ... Type this image ButI'veonlybeenabletogethere...Anyoneh...
asked on 25.10.2018 / 15:48
4
answers

How to count how many times a value appears in a table

How to count how many times a value appears in a table? Example: <table id="table"> <tr> <td> 2 </td> </tr> <tr> <td> 6 </td> </tr> <tr> <td> 2 </td&...
asked on 01.09.2014 / 23:13
7
answers

Push element from one array to another array

function that accepts a parameter and is a numeric array and it will cross the array and if the element is even it will push to the one "par" array and if it is odd it will push to the "odd" array I tried to do it this way below but nothing w...
asked on 29.08.2018 / 22:20
4
answers

Multiple return in C / C ++

Is it possible to return multiple values? For example: umafuncao() { int x = 1, y = 2; return x,y; } void main() { int a, b; a, b = umafuncao(); } I'm asking this question, because I built a code using this structure for a...
asked on 03.11.2015 / 14:25
2
answers

What is data persistence?

What would this term be? I always see around and I can not decipher!     
asked on 13.07.2016 / 13:32
2
answers

How to sort by two properties in Linq

I have the following syntax and it is not working return View(trabalhos.Where(a => a.Usuario == User.Identity.Name && a.Data.Month == DateTime.Today.Month &&...
asked on 27.01.2017 / 19:41
3
answers

What is the cost of calling many functions?

Recently, in the face of a discussion on Clean Code and best programming practices, a co-worker commented that in his previous job there was a lot of resistance from other programmers to begin dividing code and make it more readable. The mai...
asked on 15.02.2017 / 20:29
6
answers

How to limit an input of type Number to only 3 characters?

I'm having a problem with a variable of type integer , because maxlength="" works only with string and needs to be barred, but it's type Number . I think you need the javascript, if anyone knows the solution would appre...
asked on 23.03.2017 / 15:07
3
answers

What is "One Level of Indentation"?

I was just watching those video lesson at Laracasts , where there is an explanation that teaches you to avoid accumulating too much code in a method, separating it into several methods with specific responsibilities and thus reducing the size o...
asked on 21.03.2016 / 13:35