All Questions

1
answer

Good practice with Java exception handling

What is the best way to work with more than one exception in Java? In the code below, I see the possibility of giving two errors NullPointer or SQLException . If I put a catch for each exception is the best way? public B...
asked on 25.02.2017 / 00:13
1
answer

What is the 'reduce' function in Python?

In what cases is it useful and how can I use the reduce function?     
asked on 17.04.2018 / 04:18
2
answers

Entity Framework | Double property that allows null

My property allows values double and values null . In the SQL Server Database it is set to decimal(18, 2) . But when seto some value (ex: 5.00 ), it gives the error below. Error:    The 'Valuation' property...
asked on 29.03.2017 / 23:15
2
answers

What is the difference between CssClass="example" and class="example"

I came across the following code snippet: <asp:Label ID="lblStatus" CssClass="labelFiltro" runat="server" Text="Status:"></asp:Label> Until then I did not know CssClass , I would like to know what is the difference of it t...
asked on 01.11.2017 / 15:24
3
answers

Add currency notation in R

I have the following problem here at work: in a data frame I have a column of Gross Value on certain date: 2016-02-01 751434574 2016-03-01 748873781 2016-04-01 755528121 To work on R without problems, but I need to prepare an expense...
asked on 30.06.2017 / 14:21
2
answers

Execution of programs in halt WITHOUT use of Threads

Ask me to build a Java program that runs parallel programs ( ls , firefox ) that are contained in a file. I already have the following code: File file = new File()'; List<String> lista = file.readFile(args[0]);...
asked on 21.11.2017 / 13:32
2
answers

Change cents of values

I'd like to be able to change the cents of li by the input of MudarCentavos . But by setting Id in li and treating Id by Id , because this list will be dynamic, then more than 3 values may come. Note:...
asked on 05.12.2017 / 12:18
2
answers

Removal of excess white space

How to remove white space within a string ? It would be to remove spaces from a text string, except for simple spaces between words. Like the "tidy up" function in Excel.     
asked on 02.10.2017 / 20:23
2
answers

Using async="" will result in a synchronous or asynchronous load?

I'm using this function to load my scripts into a single line: function loadJS () { for (var i = 1, max = arguments.length; i < max; i++) { var file = document.createElement("script"); file.async = arguments[0];...
asked on 24.08.2017 / 20:07
2
answers

What is a Engine?

I read an article about Razor. This article says it's an engine view , but what's an engine ? According to the article, Razor is a new syntax that works with CSS and HTML to make life easier for programmers with cleaner and more readable code....
asked on 19.03.2018 / 10:44