All Questions

1
answer

Thread execution - Java EE - Jboss

I have a web application using Jboss EAP, JSF, CDI, EJB and need to start a thread whenever JBoss is started. The thread belongs to the TinyRadius package that implements a Radius server. How can I invoke the start method every time I...
asked on 03.10.2015 / 03:28
2
answers

Android Configuration Parameters

I would like to know if you have any way to get the values directly from the android settings example I want to know if "Unknown Fonts" is enabled, "Developer Mode" is enabled, "Language", "Brightness level" ... ..     
asked on 07.10.2015 / 20:59
1
answer

Jquery + Angular form does not pass an input value

I'm doing a post with Angular. It works fine when I manually type the values in the form, however it gets a value via jQuery $("#id_veiculo").val(valores02.id); and this value appears correctly, but at the time of sending the value of thi...
asked on 19.09.2015 / 22:02
1
answer

How to encrypt images with algorithm RC5 in Java

I'm trying to use the RC5 algorithm with the Java cipher class, but it's returning an error, can anyone help me? import java.io.*; import java.security.*; import javax.crypto.*; public class EncriptaDecriptaRC5 { KeyGenerator keyGenerato...
asked on 24.09.2015 / 15:34
2
answers

SUM in SELECT with LEFT JOIN being multiplied together

I have 3 tables in MYSQL. Account: id nome 1 caio 2 zé 3 marcelo Followers (the account id, that is, the user has 2 followers): idqual 1 1 2 2 2 3 Products (the account id, that is, the user caio has 3 products): idqual 1...
asked on 21.09.2015 / 21:27
1
answer

PHP - Array - Vertical Keys for Horizontal

Situation I have an array as follows: Array ( [1] => Array ( [tree] => Array ( [tb_agenda_hora] => 2, [tb_agenda_fase] => 1, [tb...
asked on 12.06.2015 / 21:35
1
answer

How to return more than one value using an asyncTask in android?

In short, my class that extends an AsyncTask, downloads a series of data of type byte, then I need to perform some calculations with that data, and finally return all these values to my MainActivity. The code is summarized as follows: class...
asked on 22.06.2015 / 13:32
2
answers

How can I make a variable wait for the user to press 1 of 4 buttons?

Well, I'll try to be clearer. I have a variable called int tentativa and I want it to get a specific value depending on which button the user presses. The buttons are btPedra[0], btPedra[1], btPedra[2], btPedra[3] . If the...
asked on 12.06.2015 / 05:00
1
answer

Optimize MySql search

Hello, I have a query that I can not optimize. Records: 1,904,447 records Name: table_mae Related to Records: 10,748,360 records Name: table_filho -- index criado para id_tabela_mae -- index criado para data SELECT tabela_mae.nome...
asked on 10.06.2015 / 02:26
1
answer

How to read a Json without knowing what's inside it or the amount of data?

I am developing a dynamic form for Android in which you receive a Json file and create the forms. It's all automated, except for the part that I have to get a string in Json's hand. Is there a way to read the string without naming it within ....
asked on 16.06.2015 / 23:16