All Questions

2
answers

Recursive C ++ code

I have the following iterative function: int getNumPastasColididas(int i){ int c = 0; for(int i = 0; i < size; i++) c += table[i].hasColided; return c; // c = 89832 } I tried to reproduce the operation using a recursi...
asked on 03.07.2016 / 05:30
1
answer

How to convert a value in UNIX type Timestamp to DateTime?

How to convert a value to type UNIX timestamp (seconds since 1970) , example 1396148400 , in a DateTime ?     
asked on 13.04.2014 / 01:01
2
answers

Reorder the categories in a data frame

When we import data into R it sorts the categories alphabetically. How do I change this order? Suppose it is the following data: df <- data.frame(categorias=c("Muito baixa","Baixa","Média","Alta","Muito alta"), valores=s...
asked on 02.04.2014 / 19:17
1
answer

How to group by month with SQL?

I have a table, for example, with an attribute nome and data (for example only). I would like to generate a query that returns the quantity of each row grouped by name and month: Nome Janeiro Fev Março Abril Maio ... João 1...
asked on 15.05.2014 / 22:42
1
answer

Correct Statement Classes Model MVC Ninject

I started using OO a short time ago and in all projects that I see on the net, I see the following way of declaration. public class Trabalhador { public int Id { get; set; } public string Nome { get; set; } public virtual ICollecti...
asked on 19.05.2014 / 01:55
1
answer

Is there a difference in creating HTML elements in javascript?

Is there a difference in creating HTML elements in javascript? Example: As String: document.body.innerHTML += '<h1>foo</h1>'; And with createElement: var elemento_pai = document.body; var titulo = doc...
asked on 11.03.2016 / 18:00
2
answers

How to access static jTextField created with swing?

So, guys, I have a jTextField that works normally, but when I put it as static setText does not work anymore, and I need it static because I do the same for a function, I did it without swing and it worked out I do not kn...
asked on 14.03.2014 / 13:44
1
answer

Progress bar does not load

I have the code below, which feeds a progress bar while uploading the file to upload. Home What happens is this: In some browsers, like Chrome and Opera, it works normally. In Firefox and Safari not. Is there anything I could do in my cod...
asked on 04.05.2016 / 12:48
1
answer

Method overload (double and float)

Having 2 methods with the same name, but the types are different ( double and float ), the amount of parameter is the same, which one will Java recognize first and why?     
asked on 12.05.2016 / 22:30
2
answers

How to display the status in a geochart?

I'm displaying a geochart at the state level. When configuring with the Brazilian region works, as you can see below, but not with the state code, for example: BR-SP google.load('visualization', '1', { 'packages': ['geochart',...
asked on 08.04.2016 / 19:54