All Questions

1
answer

How to play a sound using Mediaplayer?

How can I create a button with SoundEffect using the MediaPlayer class or any other android class? I tried using the following code that I found some examples, but I did not succeed. public void playMusic(){ if(player == null){...
asked on 09.11.2015 / 22:45
1
answer

Relate 2 objects to a single reference / key

I have a while(true) that accepts multiple connections ( Socket and ServerSocket ). Each connection is passed to a Handling object that handles its read / write data. This Handling is passed to a Thread so you can accept connections and...
asked on 13.08.2015 / 18:11
2
answers

Laravel installation error

Folks, I'm using Mac and trying to install Laravel. I already installed composer , I ran the command line documented in the framework: composer global require "laravel/installer=~1.1" It does everything ok, but when I try laravel ne...
asked on 13.11.2015 / 03:14
1
answer

How do you get points of interest between two moments in time?

Consider that there are two moments in time, represented in the standard format (HH: mm: ss). And consider that a point of interest is any time that is represented by at most two different digits (eg: 12:12:11 or 15:15:51) If I wanted to g...
asked on 05.11.2015 / 12:58
1
answer

How to get the path of a file (HttpPostedFileBase)?

I would like to get the path from where my file is coming from. Model: [Required(ErrorMessage = "Selecione o arquivo a ser importado.")] [Display(Name = "Arquivo ")] public HttpPostedFileBase Arquivo { get; set; } View: @Ht...
asked on 26.10.2015 / 19:46
1
answer

Create an associative array from another array with foreach?

I'm trying to create a array() from other arrays using foreach . I have 3 arrays, and these arrays have values that repeat themselves and I want to create only 1 array with the values I need based on these arrays. I need to creat...
asked on 25.10.2015 / 08:52
1
answer

How to resolve the "No appenders could be found for logger" warning?

I'm trying to set up Log4j in my project with JSF. I followed all the steps in a tutorial I found on Youtube . However, the following message is being posted: log4j:WARN No appenders could be found for logger (br.com.hidros.control.beans.Cont...
asked on 11.11.2015 / 18:00
1
answer

Change text in a JTextArea at runtime

Good morning everyone, I have a backup routine that should write the result to a JTextArea , at runtime. The copy works, the problem is that the window containing JTextArea gets stuck and does not append the text every time a...
asked on 10.11.2015 / 13:22
1
answer

How to create a "load" until the function is fully executed?

Hello. Going straight to the point: assuming I have a function with repeating structures that, depending on what the user completes, the process in that function may take a certain amount of time, and until it is fully completed, the page hangs....
asked on 15.11.2015 / 00:55
1
answer

Sending an object through Session

I have the following object $compra = new Compra($usuario, $produto_comprado, $cep['cep'], $soma_produtos); When I try to add it to a $_SESSION[] and try to get it on another page, it returns me it returns __PHP_Incomplete_Class...
asked on 14.11.2015 / 21:32