All Questions

1
answer

Division between integer and real returns NaN

I'm not sure how to do this: var tamanho = parseInt($("#tamanho").val()); var valor = $("#valor").val(); var valorMl = valor / tamanho; console.log(valor, tamanho, valorMl); valor returns 3,50 . tamanho returns 3...
asked on 31.12.2016 / 17:00
1
answer

Map opens before picking GPS position

I'm studying programming for Andriod and I came across a feature that I just do not know anything about, which is ordering the functions ! please could anyone give a light? I explain, in my example I call  - API to communicate with GPS,...
asked on 23.01.2017 / 08:17
1
answer

What is the purpose of the system directory of the Inphinit micro-framework?

I intend to use the Inphinit micro-framework in my project, but first of all I need to know more about it. So, I created an example project just to familiarize myself with its features, however, I had a question about a directory it has, wh...
asked on 24.12.2016 / 02:26
2
answers

Sort the highest k results using dplyr

I can select the largest k results of a table in R. For example, if k equals 5, I get the following result: library(dplyr) library(ggplot2) top_n(mpg, 5, wt=displ) # A tibble: 5 × 11 manufacturer model displ year cyl tr...
asked on 08.12.2016 / 22:23
1
answer

What is ABI? Does it have any relationship with API?

I'm reading this answer because I am currently studying C ++. I was trying to understand the difference C and C ++. In the quoted answer, I came across the term ABI. Until then I knew about API, but ABI I had never heard of such a term....
asked on 04.03.2017 / 23:50
1
answer

Catch the previous value with a condition in R

I have a base with a unique key made up of two other repeating variables, CNPJ and date. I need to make some sum and split accounts with the previous date values for each CNPJ. If there is no previous date value for each CNPJ it should return em...
asked on 14.02.2017 / 12:44
1
answer

Unknown symbol javascript

I am learning javascript and downloaded the Olw Carousel and I went to see the js and at the beginning of the script there is this excerpt ;(function($, window, document, undefined) What intrigued me was this point and comma in the beginn...
asked on 03.01.2017 / 09:47
1
answer

Random order with Entity Framework

I would like to translate the following SQL statement to a lambda expression: SELECT TOP 1 * FROM tbPessoa order by NEWID() What do I put in the OrderBy that will be accepted? var pessoa = contexto.tbPessoa.OrderBy(???).FirstOrDe...
asked on 04.01.2017 / 14:34
1
answer

How to make Stripe with CSS only?

How can I make a stripe (that slide diagonally) only with CSS? The image below illustrates my question better.     
asked on 07.02.2017 / 16:43
1
answer

Why use const after the function?

I noticed in some code from other C ++ programmers that use functions like: bool CClass::isRunning() const { return this->_running; } I understand that in this way it is not possible to modify any member of the class, only serves for...
asked on 16.01.2017 / 20:11