All Questions

2
answers

When to use try catch in layered application?

Let's say I have my layers Controller Business Repository So it is necessary to create this block in the 3 layers or create only in controller ? If I do this does it guarantee that any code that is made inside it will be thrown at...
asked on 22.11.2018 / 17:01
1
answer

How to calculate percentage variation with 3 variables in R

I have the following data: library(sidrar) Tab1612SojaQde <-get_sidra(1612,variable = 214, period = c("last"=22), geo="State",classific = 'c81', category = list(2713)) head(Tab1612SojaQde) Unidade da Federação (Código) Unidade da Fe...
asked on 03.12.2018 / 21:05
2
answers

Show Total Records

Personal Talk, I am developing a system for videoconferences and this should include a Dashboard with some information, such as the total of videoconferences of the current day, the next day and the amount of VIP videoconferences. To show the...
asked on 22.07.2018 / 16:58
1
answer

Change InputQuery box size

The InputQuery is a message where we can inform a certain value, but changing the value of the variable passed as reference, see its structure: //Função InputQuery function InputQuery(const ACaption, APrompt: string; var Value: strin...
asked on 27.04.2018 / 19:17
1
answer

Import multiple excel tables at the same time

I want to import 27 Excel tables into R without typing the import command 27 times, since table names range from tab101 to tab127 . I tried this way, but got wrong: library(readxl) n = c() for (i in 1:27){ # fazendo um vetor com o...
asked on 13.05.2018 / 03:06
1
answer

What is the Java equivalent of this lambda in Ruby?

In your Inversion of Control text, Fowler uses as an example a Ruby code snippet that promotes that principle to invoke a bind method on the input field of text that passes an event name and a lambda as argument.Whenever the text input box det...
asked on 12.06.2018 / 02:52
2
answers

Count the weeks between two dates

I'm trying to perform a query between two dates that returns me the number of the week and counts progressively the week. As an example: Itlookslikethis:SELECTROUND((DATEDIFF(max(atendido_em_data),min(atendido_em_data)))/7)assemana,min(at...
asked on 18.05.2018 / 22:10
1
answer

Error in Netbeans when creating project [closed]

My error is in the IDE, I'm using Debian Jessie , I decided to use it shortly. The installation of Netbeans occurred perfectly, the JDK installation also however it returns me this error: I tried to reinstall but it did not work, I rem...
asked on 31.12.2016 / 16:14
1
answer

SonarLint x Java GC, cancel or not object at the end of execution?

I'm passing SonarLint on a somewhat old application and fixing several "problems", but I came across a code snippet like: public void fazerAlgo(final String param) { MeuObjeto m = new MeuObjeto(); m.setVar(param.toLowerCase()); m...
asked on 25.07.2018 / 13:14
1
answer

What is the need to inform the "Order" parameter in the object of type IndexAnnotation?

I am creating indexes for some columns that will be used in a query with Where() . The intention is to make the search faster. Until then I was creating like this: Property(x => x.Documento) .HasColumnAnnotation(IndexAnnot...
asked on 03.01.2017 / 14:15