All Questions

3
answers

Identify if there is a capital letter in the string

I have declared two certain variables, one of which has a capital letter and the other only lowercase. See the example below: actor = "Jon Snow" pet = "wolf" How can I identify if there is at least one uppercase letter in string ?     
asked on 29.03.2017 / 16:36
2
answers

Array is a pointer in C? [duplicate]

I'm reading a book about pointers in C, but since I'm new to such a language, the concept of pointers is a bit complex, and when I read the following definition, I came up with the question of whether an array is a pointer .    Pointer Var...
asked on 03.07.2017 / 15:18
2
answers

Entity Framework WITH (NOLOCK)

We can use the NOLOCK feature in SELECT , thus avoiding locks with INSERT SELECT COUNT(Descricao) FROM Produtos WITH (NOLOCK) Would there be any way to use WITH(NOLOCK) in the Entity Framework?     
asked on 22.02.2017 / 17:08
2
answers

How to export an HTML DIV to PDF by CSS?

Does anyone have any code that can export a DIV to PDF rendering all the CSS of this DIV? Should I do this in backEnd (Java) or frontEnd (JavaScript)? If anyone can help, I appreciate it!! EDIT: Thanks for the reply Gabriel Rodrigues, but thi...
asked on 24.03.2016 / 12:24
2
answers

Is there a limit on the size of the data transmitted via POST?

I submitted a form via GET with a large number of text (about 6,000 characters) and received a very long URL error. I did the same test via POST and the data was sent successfully. My question is whether there is a data limit to be transmi...
asked on 11.07.2017 / 06:05
4
answers

How can I tell if the variable is an integer in Python?

How can I tell if the variable is an integer in Python? I know how to do this in PHP: is_int($variable); // bool(true) But how can I do it in Python? Example: numero = 1 #é numero nao_eh_numero = 'texto' # não é número     
asked on 10.01.2017 / 19:13
2
answers

What does the expression "a + t" mean in the second parameter of fopen in C?

I was encountering a code here and I was curious about this passage: FILE *fp = fopen("Agenda.txt","a+t"); What is "a+t" ?     
asked on 19.05.2017 / 05:25
1
answer

How to convert NFA to datatime and vice versa?

Having a date (ex: 2017-01-18 11:08:09 (format Y-m-d H: i: s)), the generated NFA results in A70171480. Searching, I found little, even more in Portuguese. To be honest, I have not yet seen enough reason to use it (so far as I understand it to...
asked on 31.01.2017 / 14:13
3
answers

How to set the equality comparison between two objects present in an ArrayList?

How can I set the equality comparison behavior between two objects whose class is defined by me that are stored in an object of type ArrayList? ColorName public class NomeCor { private String nome; public String obterNome() { return no...
asked on 03.04.2017 / 02:55
1
answer

Why does one script freeze the browser and the other one not if the number of loops is the same?

I have 2 scripts A and B . Testing if a number is prime in script A, the browser freezes with large prime numbers - 9 digits - (eg 777767777). I tested Chrome and IE, both browsers froze. In script B, this same prime number does not f...
asked on 14.04.2017 / 13:32