All Questions

1
answer

Database Indexing [closed]

What is the advantage of maintaining an indexed database, with foreign key and indexing of the most used fields as in searches?     
asked on 14.05.2015 / 13:02
1
answer

Collect shared URL statistics on Facebook using Python

To collect statistics from a shared URL on Facebook in PHP, I'm making use of cURL to query the following URI: // URL para submeter $pageUrl = 'http://www.example.com/my-new-article-is-neat'; // URI a consultar $uri = 'https://graph.facebook....
asked on 09.04.2015 / 14:37
1
answer

How to put a text cursor to start on the right? Calculator

I'm doing a basic calculator and in the calculations screen, I want the numbers to be "printed" from right to left. How can I do this?     
asked on 31.03.2015 / 03:14
1
answer

How to include a jar when executing a Java file by command line

Whenever I run the program I need to call a specific library, which in this case is /home/usuario/Programas/weka-x-x-x/weka.jar , but every time I run the program, I have to include the following java -cp /home/usuario/Programas/weka-x-...
asked on 16.03.2015 / 18:56
1
answer

How to check if two drawables are the same?

Good evening!    I'm having difficulty retrieving the current image from my android imageView. It is an image to favor for the user (give like), and I want when the user clicks on that image, I check if the current image is = a heart icon with n...
asked on 21.05.2018 / 04:10
1
answer

How to get the HostName from the client using C #?

I need to save in that machine the user performed a certain action, for that I was using the following excerpt: string maquina = Dns.GetHostName(); But I hardly knew that this would return the HostName of the server. How do I get the HostNa...
asked on 07.11.2017 / 18:36
1
answer

Reversing each line of a file in C

I'm trying to make a program that basically strings each line of a text file in reverse order, that is, the line is shown from end to end. For example, the line 'hello world!' is displayed in the form '! dlrow olleh' So far I have this code d...
asked on 07.06.2018 / 21:19
1
answer

Memory overflow with mysqli_query

The following statement caught the program: $result = mysqli_query($db, 'SELECT * FROM base'); And returned the following error:    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted   (tried to allocate 4194312 byte...
asked on 27.07.2018 / 04:31
1
answer

Automatically identify points of influence in a regression

Whenever we do a linear regression, we need to check whether the assumed assumptions for the model are correct. One of the best ways to do this is through diagnostic charts. See the example below: ajuste <- lm(Petal.Width ~ Petal.Length, da...
asked on 27.10.2017 / 14:27
1
answer

Rename a file with a value of a vector

I'm using a loop to extract hundreds of data using unzip. However, I want to rename the files with the same name as the extracted file. I am making the following code: zip_postos <- setwd("ZIP_Postos") zip_postos <- list.files(zip_postos...
asked on 19.04.2015 / 11:01