All Questions

1
answer

How to make a "deep copy" in Python?

Let's say I have the following code: class Foo: pass foo_list = [Foo() for _ in range(10)] How can I proceed to create a copy of foo_list without references to both the list and the objects contained therein being passed to the...
asked on 19.10.2017 / 20:38
2
answers

How to subtract two dates using Python?

How do I know the difference of days between two dates using Python? For example, to know how many days there are between 11/22/213 and 3/25/2014 considering a possible leap year.     
asked on 29.01.2014 / 18:54
2
answers

If I can do everything with structural programming, why did you create object-oriented?

In the question about - All What can I do in POO I can do in PE? - the accepted and best voted answer says:    Yes, any programming language can do it all. Now, each paradigm has its way of organizing, so you can not always do it the same w...
asked on 23.06.2017 / 16:15
4
answers

What types of retention cycles can be generated with ARC?

I know that with ARC there may be leaks in iOS. What are the most frequent types of leaks and how can they be avoided?     
asked on 23.12.2013 / 20:03
3
answers

What is the difference between parseInt and + operator before a string?

I've seen a colleague converting a string to integer using the var a = +"10" f syntax but I've always used parseInt() and the line is usually var a = parseInt("10") . Why putting the + operator before a string happens,...
asked on 01.10.2018 / 14:41
1
answer

Implementing a loop with Java functional programming

private List<String> getPermissoes(TipoUsuario tipoUsuario) { List<String> permissoes = new ArrayList(); for (Permissao permissao : tipoUsuario.getPermissoes()) { permissoes.add(permissao.getNome()); }...
asked on 09.07.2018 / 20:57
1
answer

What are the differences between Flask and Django?

I started shortly in the Python language and am currently working on a project using Flask , MariaDB and WebSockets . I see people talk a lot about Django and would like to know the differences between two.     
asked on 23.08.2017 / 09:45
2
answers

Effect number increasing / decreasing

I searched SOpt and did not find what I wanted Let's say I have a button and when you click it change the value of some div > or input . The starting value is 1 , and click , change to 10 . I would like this transition not...
asked on 20.08.2017 / 21:07
2
answers

Pages in ASP.NET still running after page change?

The method Response.Redirect has a parameter in one of your overloads named endResponse that when true indicates that the current page should be terminated after the redirect. Does this mean that when I perform a page...
asked on 20.12.2013 / 21:21
2
answers

Abalone shape with CSS how to do? How to make a shape in this half-rounded format?

I'd like to make an element half round, it's not an ellipse, not a circle, and not an element with border-radius . It is a half-rounded way as you can see in the image below and I could not do it with CSS. Itriedtogetthisshakenform,but...
asked on 19.12.2018 / 12:09