All Questions

1
answer

How do I get the name of the current function?

Good evening. I would like to know if there is any way to get the name of the function being used, type this: public function nome_funcao(){ $nome_funcao = $this -> "nome_funcao"; } I do not know if it was clear, but I want to ret...
asked on 09.04.2017 / 03:39
1
answer

jQuery doubt append appendTo inject HTML

Hello, I have a question. I have a variable containing an html structure and I need to inject a basic div (< div < / div >) around the contents of this variable, as a parent, using jQuery only. I think I should use append and ap...
asked on 18.05.2017 / 14:34
3
answers

Is it safe to create object pointer on the stack indirectly?

My class has a method that returns a pointer to itself, and at some point I use the following: void classequalquer::metodo() { ClasseA * ponteiro = ClasseA().getThis(); //usa o ponteiro nesse método sem usar delete } //Para referência...
asked on 07.03.2017 / 02:31
2
answers

Should I use a variable that takes an HTML element as global or local?

function message (className, text) { /*Esta variável*/var message = document.getElementById("message");/*Esta variável*/ message.className = className; message.innerHTML = text; setTimeout(function () { message.innerHTML =...
asked on 12.07.2017 / 13:32
2
answers

ToList vs. Typed ToList

I was reviewing some methods of an ASP.NET MVC project and found some cases where only .ToList() is used and others where .ToList<type>() is used (where type is a type of object used in context). Imagine that only with...
asked on 14.03.2017 / 13:07
1
answer

How to detect the collision between two squares / rectangles

Anyone who provides a response that explains all the nuances required to do so in javascript will earn the points.     
asked on 15.03.2017 / 14:53
1
answer

Python, clone lists

Be the code below: def modif1(lista): lista = [4,5,6] lista = [1,2,3] modif1(lista) print(lista) #resultado: [1,2,3] def modif2(lista): lista[0] = 4 lista[1] = 5 lista[2] = 6 lista = [1,2,3] modif2(lista) print(lista) #result...
asked on 12.02.2017 / 21:28
2
answers

Mean profile graph (including error bars)

I have a dataset that I have labeled malaria, which can be downloaded from this link . I need to construct a graph of mean profiles (including error bars) of the newborn weight variable ('weight' column), second group of parasite type (column '...
asked on 24.04.2017 / 19:33
1
answer

How to convert Python encryption to PHP?

I would like to know if it is possible to convert this encryption to the PHP language, I need to convert the passwords that were generated to be accepted in my Login system on the site, but I do not know how to do it. I have a database with p...
asked on 10.08.2017 / 14:19
2
answers

How to delete files from a folder recursively based on an expression?

I'm using a project where there are several temporary files that for some reason have not been deleted over time and are taking up a lot of space. I need to delete all images from that directory, recursively, when those files begin with the l...
asked on 03.07.2017 / 14:01