All Questions

2
answers

How to get the set of all arguments in Python?

Python has both positional and named parameters as * and ** operators that allow you to receive an arbitrary number of additional arguments: def foo(a, b, c=1, *args, **kwargs): print(a, b, c, args, kwargs) foo(1, 2)...
asked on 24.11.2015 / 08:29
2
answers

What is a destructor for?

In some languages, classes have methods destructors . In the ones I've seen, it's declared as a constructor with the ~ sign on the front. Something like: public class Foo { public ~Foo() { //Fazer algo } } What are...
asked on 20.07.2015 / 13:28
1
answer

Dependency registration responsibility (IoC, DI, n-layer architecture)

I'm starting a project in WPF (.NET / C #) using an n-layer (Domain Driven Design) architecture, and to implement Dependency Injection Control and Injection (IoC / DI), I'm trying to use the Unity Framework of Microsoft. The question I have i...
asked on 12.01.2015 / 18:56
5
answers

Remove letters and special characters in a select

I have in my table the document field with the following data: How do I select only the numbers of these records by removing the letters and special characters? DOCUMENTO CPF-12345698-35 CPF=05604968-34 CPF-:033369328-32 CPF-056904968-31...
asked on 16.05.2014 / 15:10
3
answers

How do I bind events to dynamically created elements and pass parameters?

I have a table that is generated via ajax and a certain column generates a link. As it was implemented, it currently writes a html with javascript intrusive. Something like below: return "<a href=\"#\" id=\"detalhe-nota-" + record.dat...
asked on 25.11.2015 / 19:34
1
answer

What is the EmptyIterator class for?

In the PHP documentation, there is a class called EmptyIterator When I look at the documentation for the EmptyIterator::rewind() method, it says:    No operation, nothing to do. (No operation, nothing to do) And the...
asked on 03.06.2015 / 13:34
2
answers

Center one Div between two others, one at each end

Despite the discontinuation of the <center> tag, it still solved this simple problem for me, but I would like to know how to solve it by using css . The idea is to put two buttons (or div's ) on each end, and in the m...
asked on 02.10.2014 / 10:34
3
answers

Count elements in an ArrayList in Java

I have Arraylist called tracklist within class Album , which contains a number of songs. I need to loop through and return how many songs I have inside the album through a class I named contarMusica . For now I've done...
asked on 21.04.2014 / 19:08
2
answers

How to create a popup warning that the script is over?

I would like to display a pop-up warning that the code just ran. The only script I have, below, is what opens a command window. system('CMD /C "ECHO O seu script chegou ao fim! && PAUSE"', invisible=FALSE, wait=FALSE)   ...
asked on 02.09.2014 / 16:28
1
answer

Increasing the AssemblyVersion

I'm creating an update solution for an application that I have and I needed the Assembly version When putting a * in the assembly. [assembly: AssemblyVersion("1.0.0.*")] It started incrementing automatically, however the shape you are in...
asked on 02.04.2014 / 21:02