All Questions

1
answer

How to use runOnUiThread ()

I am studying the use of Threads, aSynkTasks and Handlers and I came across this method, runOnUiThread () How does this method become a repetitive process to the point of replacing the handler? does this method work? I would like to und...
asked on 06.04.2017 / 14:46
2
answers

How to rename the database (RData) in R?

I have the following situation: I need to merge two banks. The name of both bank files are: banco2.RData and banco2_2.rdata However, when I open the banks in R they have the same name: banco2 , in fact they do not even ope...
asked on 06.03.2017 / 18:59
1
answer

Are there differences between the terms Thread, Multithread, Async, and Await?

I asked this question here in Stack Ooverflow: What is the solution for asynchronous processes in PHP? I did this because I wanted to, in the middle of a process execution, want to have a certain call of a function running on the other p...
asked on 29.05.2017 / 13:35
1
answer

Customize message by time

I wanted to customize the greeting message depending on the time. Ex: Hora menor que 12h. "Bom dia" Hora menor que 18h. "Boa tarde" I made with if and else but wanted a better method. //Pegando a hora int hora = DateTime...
asked on 28.03.2017 / 15:19
3
answers

Run a function while holding button, stop when releasing

How to execute a function when the user hold a button and stop executing when the user releases the button. As in WhatsApp when you are going to record an audio ...     
asked on 31.05.2017 / 16:25
2
answers

How to get result of selection of menu gdialog in variable in Shell Script?

I'm creating a simple script for learning in which the user should: Type number to be saved in variable NUM1 Enter a second number that will be saved in variable NUM2 Choose from the menu if it wants to add, subtract, multiply or...
asked on 09.03.2017 / 17:56
1
answer

How to use the toupper () function in char in C?

I'm creating a variable: char nome[20]; After this, I'm asking the user to enter a name: printf("Digite um nome : "); scanf("%20s",&nome); And I'm checking to see if the name is correct: if(strcmp(nome,"Maria") == 0){ pri...
asked on 28.03.2017 / 20:06
1
answer

MySQL - What types of data should be enclosed in quotation marks?

I'm developing a script for backup / dump from my database via PHP , but when saving the file, I need to put quotation marks according to type of the column. So far so good! But what data types should be enclosed in quotation marks? Exam...
asked on 27.04.2017 / 20:26
1
answer

How to move characters with mouse?

I'm developing a time spent (browser game), where the user will guide your plane through the scenery! I have 2 div , at first I create a rectangle where when moving the mouse I capture the axis X and Y , I need to move a character in...
asked on 25.02.2016 / 18:26
2
answers

SELECT 3 different tables using DAPPER?

First of all I would like to say that I am a beginner in programming, and I am developing my first project. Using ASP.NET MVC Technology. I need to query in 3 different tables: User, Country and State with the following fields User: User...
asked on 14.02.2016 / 21:08