All Questions

2
answers

How to find the dividers of a number quickly

I have to ask a question that calculates the very large and precise number dividers in a quick way without being the conventional way, could they help me My code #include<stdio.h> int main() { int num=19000,i,c=0; for(i=1;i<=nu...
asked on 26.05.2018 / 02:45
1
answer

How to make dates difference in R?

dataset <- structure(list(PLACA = structure(c(5L, 5L, 5L, 4L, 1L, 2L, 3L, 7L, 6L, 8L), .Label = c("DSF9652", "EFR9618", "EQW6597", "ERB1522", "EWM3539", "LOC1949", "LQQ5554", "OQT5917"), class = "factor"), COD_REV = c(113195L, 113196L,...
asked on 12.04.2018 / 14:21
1
answer

Difference between Transaction.Commit and Transaction.CommitRetaining

Using FireDAC technology, I want to know exactly the difference between Commit and CommitRetaining . I read in the official documentation of the FireDAC that CommitRetaining keeps transaction. But this gave me some doubts:...
asked on 15.03.2018 / 20:52
1
answer

How to save in MySql all data inserted in a form-control

Well, how can I make a script to save all data just after insertion. In case the view would be this. Afterenteringandtypingenterthedatawouldalreadybesavedinthebd.Whatisthebestwaytodothis?Hereistheexcerptfrommyform:<!--Domainstart--><...
asked on 08.05.2018 / 03:06
3
answers

How to generate random numbers in javascript, differently

Hello, I need your help! I need to generate random javascript , so that they are only generated 5 out of 5 and within a limitation, for example 5-555. Example: 5, 355, 425, 125, 550 Multiple numbers of 5 (5,10,15,20,25,30,35,40 ...) Nu...
asked on 02.05.2018 / 03:59
2
answers

How can I format this array the way I want it?

I am creating a Seeder for Laravel insert values into a N para N table. I'm setting up array in one way, but I need it to become "in another" in the end. This is because I want to avoid constant code repetition (re...
asked on 26.04.2016 / 16:01
1
answer

What does this command mean in git "^"?

I do not like to be using commands without knowing the meaning, so could anyone tell me what this command means in git: ^ ?     
asked on 26.02.2018 / 18:24
1
answer

Presentation of data in ggplot2

Hello, I'm having problems with ggplot2 in a histogram. The code: ggplot(data.combined[1:891,], aes(x = Age, fill=Survived)) + facet_wrap(~Sex + Pclass) + geom_histogram(binwidth = 10) + xlab ("Age") + ylab ("Total Count") Wi...
asked on 22.05.2016 / 18:51
1
answer

Filter a field according to the format of the text

Can I filter the following formatting in a particular mysql field: (21) 2222-2222. I ask the understanding of the colleagues if I was not clear in my doubt, because I had a problem in the register of which the mask: $("#telefone").mask("(99)...
asked on 19.05.2016 / 17:25
3
answers

When I click on the text it does not change (js)

I'm learning JS and I can not figure out why not change the text of h1 when I click on it. <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Testes JavaScript</title> </h...
asked on 19.01.2018 / 01:01