All Questions

3
answers

How is the math calculation of the module (%) done in JavaScript?

I'm trying to use "reverse engineering" to understand what the calculation is for the module ( % ), but I can not understand and wanted to understand and clarify myself, to clarify this part, before moving forward and start doing exercises...
asked on 18.10.2015 / 17:21
4
answers

Why is 0.1 + 0.05 not equal to 0.15? What solutions can be used in R?

No R : 0.1+0.05 == 0.15 [1] FALSE Why does this occur? How to get around the situation (functions and packages to handle floating points)? Edition: This other question already contains general point answers floating, thus...
asked on 21.02.2014 / 17:06
1
answer

How to create a webhook in Gitlab to update a mirror repository in Github?

I would like to create a webhook in Gitlab to update a mirror repository in Github whenever there is a push . I looked up this demo page , but I did not quite understand how to do it. My version of Gitlab is 6.5. Here is the configurat...
asked on 19.02.2014 / 13:41
3
answers

Search for certain dates in the VARCHAR field in SQL (MySQL)

I have the following condition: WHERE sv_users.userDataNascimento LIKE '%95%'; And this condition searches on a date ( 11/12/1995 ), type VARCHAR and not Timestamp , a year ending with the numerals 95 . This numera...
asked on 16.01.2014 / 13:07
2
answers

Function and method are the same thing?

When we talk about methods and functions, are we saying the same thing? For example: function blablabla blabla Is this a method?     
asked on 12.06.2017 / 19:53
2
answers

Replacement performance in string

I need to do some bulk replacement with Javascript. For my specific problem, let's assume I need to replace a specific substring. I need to change every occurrence of "blue" to "green." So, I have two ways to do it: var foo = pegaTexto(); /...
asked on 10.02.2014 / 22:07
2
answers

How to let the page background degrade with JavaScript?

It would look something like the image below; I have no idea how to do this. I do not want to use image, I want to generate with code.     
asked on 17.09.2014 / 04:22
2
answers

Change the color of the placeholder without affecting the color of the "value"

In HTML5, we can make use of the placeholder attribute % (English) to give the user a hint about the type of data a given field accepts. To avoid confusion between data actually written by the user and the text with instructions, I wou...
asked on 06.03.2014 / 16:35
5
answers

How do I change the value of a "date" attribute in JQuery?

I have a data-order attribute on a button and I want it to be incremented as I go adding new days to my list by clicking the button, so I will have: day-1 day-2 day-3 day-4 ... and so on. Does anyone know how I can increment this va...
asked on 31.01.2014 / 15:13
3
answers

How to block special characters in the field

How do I not allow the user to enter special characters such as *-/+.,:;[]{}ªº^~?<> into the question field?     
asked on 08.10.2015 / 22:23