All Questions

2
answers

Clause in with lambda

Is it possible to have an IN clause with lambda expression? Type: context.tabela.Where(a => a.meu_campo_id_tipo_inteiro....) let's say an in like this: (2,3,4,5) How do I put on the dots?     
asked on 02.06.2014 / 17:41
2
answers

Understand error message

I can not understand this error message. Does anyone understand and can you help me? Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3210) at java.util.Arrays.copyOf(Arrays.java:31...
asked on 28.06.2017 / 16:50
2
answers

What is a tail recursion?

Nessa question I questioned about performance. One of the users responded that the compiler makes several interesting optimizations, such as inlining , loop unwinding, tail recursion, and caches. How does tail recursion optimization wo...
asked on 16.02.2017 / 11:36
3
answers

Round Image Mask with CSS

original image I would like to know how to put the gray background and cut the outside of the player to stay just inside the circle.     
asked on 15.05.2017 / 23:24
2
answers

How do I get properties of a type when I use Generics C #

I have the following class: public class Pessoa { public int id { get; set; } public string Nome { get; set; } public DateTime DataNascimento { get; set; } } I've developed a method to get the properties of it, but I can not use...
asked on 11.05.2017 / 16:32
1
answer

How to use "count if" in PHP

I need to make a count se in PHP . I have a table with several statuses, and I want to count only one type. I need to count by PHP. By SQL is impracticable. $data = Connection::Select('SELECT * FROM tabela'); $row = $data-...
asked on 27.01.2017 / 18:54
2
answers

How do I check if there is a special character or number in a string in C?

I'm confused in logic to see if you have other characters than alphabetic characters. I thought the following logic, but I think it is wrong: char nome[30]; scanf("%s", nome); int especial = 0; for(i=0; i<strlen(nome); i++{ if(!(nome[i] &...
asked on 11.07.2017 / 00:04
3
answers

Function contrary to TRIM

How to insert characters into a varchar field in MySQL? For example, in the update with trim vc you can remove certain characters from a field varchar ... but add? Example: update tabela set campo = TRIM(leading '11' from...
asked on 12.02.2016 / 12:59
2
answers

Disable css and image cache in browser

Recently, I developed a project that had some drastic changes in its design, mainly on the side of css and images. In this, accessing it on some machines, I verified that to view your new design it was necessary to clear the cache (ctrl + f5). H...
asked on 19.07.2016 / 13:47
2
answers

What is Boolean?

What exactly is Boolean? Could you give practical examples? Does it make a difference to write true or True ?     
asked on 23.06.2017 / 13:55