All Questions

1
answer

How to track letters and cut them?

I have this image below. As you can see, they are together. In this case, it is a "7", "h" and "a". Is it possible to crawl the image to find them and then cut them where exactly you found them? I'm using the OpenCV, OCR, and Tesseract...
asked on 07.08.2017 / 10:49
1
answer

Open WhatsApp when you click the icon

Someone knows how to do that by clicking on the WhatsApp icon on a site by smartphone , some function opens the application and already starts a conversation in the number defined in link from the website? Imagine an icon that says "WhatsA...
asked on 27.08.2015 / 02:31
0
answers

SelectOneMenu is not loaded when selecting object for editing

I have a SelectOneMenu (Primefaces) component of cities, which loads according to the selected state. My component has the following behavior, right after saving the object and then selecting it in DataTable through commandLi...
asked on 26.05.2015 / 01:55
4
answers

What is the difference between "++ $ variable" and "$ variable ++"?

What is the difference between ++$variavel to $variavel++ ? I realize that when I execute a for with both forms, the results are the same. Example 1: for ($i = 0; $i < 3; $i++) echo $i; Prints: 0 1 2 Exampl...
asked on 12.08.2015 / 17:16
1
answer

How to optimize the game naval battle in JAVA?

I do not know if this is allowed here on the site, so if I break some rule let me know! I recently started learning the JAVA language. I did a naval battle game (human vs. computer) using everything I've learned so far and would like to hea...
asked on 11.09.2016 / 20:09
1
answer

Problems with JSF FileUpload

I am able to save the disk image in this JSF project <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x...
asked on 20.05.2015 / 21:57
1
answer

Change spring-security role by bean

I'm using spring-security to authenticate my user, until now, I want to be able to change the user role for managed bean , does anyone have an idea? Type I have several modules and each user has a role for each module then when h...
asked on 04.05.2015 / 21:36
1
answer

CakePHP Actions Not Found in Vhost from Wampserver

I'm trying to make my admin actions protected by SSL, including login action. However whenever I try to access one of these actions, I always get the 404 error. For example, when trying to access the login page, Cake redirects to link , with er...
asked on 29.07.2014 / 15:35
1
answer

What is and what is a monad?

   I remember that at university I was explained what a monad , but time passed and I no longer know what it is. This is also due to the little contact I have with functional languages. In programming, what is a monad ? What is its us...
asked on 05.12.2016 / 13:15
9
answers

How to count the zeros to the right of a number?

I have a number, nnnnn000 . I must count how many zeros on the right has this number. Test Cases: 123000 zeros numbers 3 102030 zeros numbers 1 Open to suggestions!     
asked on 12.02.2016 / 21:39