All Questions

8
answers

How to switch between true and false the checked of an input?

I have this code and would like to switch between true and false the checked attribute of the input. Strangely, you're catching id of label because the web designer overlapped label to input . (function($){ $("...
asked on 05.10.2014 / 02:53
4
answers

Check if array () is empty with PHP

I have a form with several fields. To get the values, I'm doing it this way (I put only the first 4): <?php $dados[0] = $_POST["TipoSanguineo"]; $dados[1] = $_POST["PlanoSaude"]; $dados[2] = $_POST["CalendarioVacinal"]; $dados[3] =...
asked on 18.09.2018 / 17:44
3
answers

Difference between Console.Write () and Console.WriteLine ()?

What is the difference between Console.Write() and Console.WriteLine() ?     
asked on 20.07.2017 / 20:11
1
answer

How can I keep my application always full screen without being minimized?

I'm developing a Java application that should stay full screen and can not be minimized or make room for another application or even the OS, somehow blocking everything and leaving it on the screen, but I'm having trouble I can leave it in fu...
asked on 01.08.2016 / 04:19
4
answers

How to generate random numbers for Draw? [closed]

I need to generate numbers for a promotion, these numbers should range from 0 to 99999. How can I distribute these numbers randomly and equitably, without repeating numbers already distributed?     
asked on 24.10.2016 / 23:44
6
answers

How to calculate percentage?

I have a variable that dynamically receives from the database, a floating number that is the percentage to be taken out of a given value. How do I get this percentage out of a value? For example: $total = 4000; $pctm = 30.00; $valor_descont...
asked on 21.09.2015 / 21:51
4
answers

Variables that work in more than one method

I tried to make a simple console calculator, but I wanted to create several methods to make it well organized. The problem is that in the method of storing variables, it stores, but when it goes to the compute part it loses the values of the...
asked on 09.03.2016 / 22:12
0
answers

How to do concurrency control in Hibernate for INSERT in the database

I have a competition control problem in inserting data into my web application. Context: I have 3 tables (ex: X, Y and Z) that register hospitalizations of patients (already registered). A patient can not have more than one ACTIVE hospitaliza...
asked on 07.06.2018 / 20:09
2
answers

Get JSON from the URL properly

I have the following method that gives me a String : public static final String jsonClientes = " {\"clientes\": " + " [" + " { \"idClientesT\": 1," + " \"tipo\":\"s\"," + "...
asked on 14.12.2018 / 14:20
1
answer

Get an image of the body of an email, write to the database or in memory and show it in a new Viewer

I'm trying to build an E-mail viewer. To do this, I access my IMAP server and get mail, using the ComponentSoft.Net.Mail DLL. After getting the message, I want to display it in my viewer. However, I'm having problems with the Linked re...
asked on 29.01.2014 / 18:35