All Questions

1
answer

How to fetch data from a third table based on the associative table

To contextualize: I have a table called principal and another called school. There are schools that are directors that are registered under the name of the school. In the case, these schools are registered in the school table and the associati...
asked on 01.09.2017 / 18:43
1
answer

What is the correct way to use RunOnUiThread () in Xamarin.Android?

When I need to update a field in the UI, do I need to run this code in the UI thread ? For example: I have to change the layout of my activity . The code I'm using is this: RunOnUiThread(() => { _layoutBlurred.Visibility = ViewS...
asked on 27.07.2017 / 15:03
3
answers

How to make my program consume less CPU without hindering its execution?

I have a program that reads the memory of a computer process continuously (with while (true) ), but this ends up requiring a lot of CPU, arriving at 20% used, my question is, how to decrease CPU usage without lose performance in the progra...
asked on 13.07.2017 / 23:56
1
answer

What is the main difference between the Knuth-Morris-Pratt and Boyer-Moore algorithms

I know that KMP (Knuth-Morris-Pratt) is used to find a text Y in X, tries to set a pattern in Y, and then saves this pattern in a vector. And I also know that BM (Boyer-Moore) works best for small words. But what is the main difference in...
asked on 22.08.2017 / 15:30
1
answer

Using Stratum protocol in PHP is it possible? Is there any equivalent to Go's 'net.Dial'?

I wanted to use the Electrum servers, listed here , it uses a protocol called " Stratum, "which is documented here , but I do not even know it's the most up to date one. I can "work" using the tls library and net (in case I do...
asked on 07.09.2017 / 00:36
1
answer

PDO without JSON support

I need to return a row in JSON, but the PDO does not seem to give full support to operations. Always the type 245 error message.    PDO :: prepare (): Unknown type 245 sent by the server. Please send a report to the developers I tested...
asked on 18.07.2017 / 05:19
1
answer

Listing the most offending querys in MySQL

I would like to know which are the most offensive queries in my database. I have already used the conventional "Show full processlist" and other methods.     
asked on 25.07.2017 / 19:21
1
answer

Error running function for the second time

Inside the controller I have this function: public void salvaEncaminhamento() { Integer qtdEncaminhamento = 0; if (manifestacao.getTbEncaminhamentoCollection() != null) { qtdEncaminhamento = manifestacao.getTbEncaminhamentoCol...
asked on 04.09.2017 / 19:14
1
answer

Convert PDF to Text with Python

Well, I have a PDF file that is in a website, I would like to know how to get the text from this PDF and put it in a variable. Access the site with the PDF I know, my difficulty is in converting this PDF into text, or simply copying the text....
asked on 10.09.2017 / 07:45
2
answers

How do I prevent Item that is started on one page from continuing in another in Latex?

I work with a COPPE / UFRJ Coppetex template in my dissertation work. I made a numbered list with the command \item but as the list was at the bottom of the page there is one of the points that started at the end of the page and finish...
asked on 15.06.2015 / 22:00