All Questions

1
answer

What is the difference between Prototype and an Object?

I use new to create objects in javascript and so I noticed quite superficially there is not a big difference between instance with new and using prototype. What is the difference and what is the advantage of using prototype?     
asked on 19.12.2017 / 00:40
2
answers

What are the ways to avoid infinite recursion without using the JsonIgnore annotation in SpringBoot

I have a @OneToMany relationship between Produto and TipoProduto where TipoProduto can have multiple Produto s and a Produto can only have TipoProduto . I would like to list all Produto s...
asked on 30.10.2017 / 00:33
1
answer

Calculate integral trapezoid mode

I need to calculate integral with the trapezoid method. I believe the error can be in for . I had tested them step by step and it worked. function integratrapezio(){ var elmbasea = document.getElementById("valoresdex").v...
asked on 04.11.2017 / 00:08
1
answer

Python: The ^ is not transforming the character class of my regex to negative

I'm learning REGEXes by Automate the Boring Stuff w / Python. In one of the titles in Chapter 7, the book teaches about character classes. Until then, easy. I created character classes for vowels ( re.compile(r'[aeiouAEIOU]') ), for letter...
asked on 23.09.2017 / 22:53
1
answer

In C ++ where the functions of objects are in memory?

In C ++ when an object is declared, the class variables are stored in the stack or heap depending on how the object was created. With the sizeof() operator it is possible to test and realize that the object size of a class is allocate...
asked on 04.05.2016 / 22:58
2
answers

Dynamic calculations php

Is there a possibility of doing a calculation in php, and my mathematical operations are in a variable? Ex: $operacao = '+'; $valor1 = 10; $valor2 = 10; $calculo = $valor1 .$operacao. $valor2; I would have to give Result 20, however, by def...
asked on 08.06.2016 / 20:44
1
answer

Error "Does not have a default value" when trying to insert data in DB [closed]

I was trying to insert the variables I received from a form when I received this error message:    'nidcrespons1' does not have a default value My code: <?php $link = mysqli_connect("localhost", "root", "vertrigo", "winit");...
asked on 22.03.2016 / 18:05
3
answers

How to do an "insert" with Dapper using a class?

I'm testing Dapper and when I try to use a class I found the error:   Must declare the scalar variable Follow the code: public class Teste { public int id; public string nome; public int idade; } using (IDbConnectio...
asked on 02.10.2017 / 18:20
1
answer

How to ignore escaped elements in a rule in regular expression?

I want to do with regex (regular expression), as for example (if it's javascript): var str = '[abc\[0123\]] [efg\[987\]h] [olá \[mundo\]!] [foo [baz]]'; str.match(/\[(.*?)\]/g);    Output: ["[abc[0123]", "[efg[987]h", "[olá [mundo]!", "[...
asked on 09.05.2016 / 18:32
2
answers

How to change the name of a column

I have a date.frame, I changed the data class of the date column, and then I separated the other three column through the Separate command whose names were% Y,% me% d, I would like to change these names to year, month it is day. However, when tr...
asked on 05.05.2016 / 03:32