All Questions

2
answers

Variables with BigDecimal

I'm trying to add a value to a variable of type BigDecimal, however regardless of the calculation it results in 0. Sample code: BigDecimal valorTotal = new BigDecimal(0); public void adicionarVenda(int idProduto, int quantidade) {...
asked on 04.04.2014 / 05:01
1
answer

How do I Debug BASH Scripts?

How can I debug bash scripts? In DOS from Microsoft I can use the @echo ON and @echo OFF. I would like to use something similar on Linux.     
asked on 18.03.2014 / 16:08
4
answers

How does an empty constructor work?

Definition: Creating an empty constructor If the attributes are not set, they will be set to the default type , example: int default value is zero. > Context: I use a structure that returns entities from the database and when the o...
asked on 24.04.2014 / 23:29
4
answers

Sign of different Query

I have a problem submitting Query. I have the alvaraValidade field that only receives Date fields. When I do not put anything in this field, the date field is saved as 0000-00-00 . $sql = "Select * From tb_trabalhador wh...
asked on 25.02.2014 / 13:38
3
answers

Running jar on client from browser

I need to run a jar file that should be on the client's pc through the web and pass some parameters to that jar, I managed to do this with exec() of php: exec('java -jar "C:\Users\Suporte01\Documents\NetBeansProjects\Printer\dist\Printe...
asked on 26.02.2014 / 13:41
2
answers

Is it possible to implement a dynamic array inside a C structure?

How is it possible to create a dynamic array inside a structure Example typedef struct historico_de_fabrica { Hist_id_rolos rolos[1000]; //<- este array em vez de ter 1000 posições queria em //memoria d...
asked on 24.04.2014 / 19:06
1
answer

Method that returns a class

I'm trying to create a method that takes a string and returns an instance of the class with the last name, eg "Calculator", will return me an instance of class "Calculator" time to determine which type it returns, because from what I researched...
asked on 07.05.2014 / 20:50
2
answers

How to display a PDF in the browser with an ajax request?

I make a request like this: $.ajax({type : 'GET', url : URL_APP_CONSULTA_BOLETO_DIVIDA_ATIVA + url}); I have a java method that returns something like this: return (Response.ok(output).header("content-disposition", "attachment; filename =...
asked on 20.02.2014 / 16:00
1
answer

Error while using random

I set a random number to fill a dummy table and did so: foreach (var usuario in LstUsuarios) { htmlUsuarios.AppendLine("<tr>"); htmlUsuarios.AppendLine("<td>" + usuario.Nome + "</td>"); htmlUsu...
asked on 30.05.2014 / 16:18
3
answers

Why are so many folders named "Drawable" on Android?

I have a silly doubt. I already know that the Drawable folders on Android is to put the images with the relevant resolutions. For example, the drawable-ldpi folder is to put images at low resolution. But my question is this: When I ma...
asked on 15.04.2014 / 04:29