All Questions

1
answer

How does the syntax of Tagged template strings: fn'text $ {10} text 'work?

One of the novelties of ES6 is template strings. How does this new syntax apply to functions? For example, what does this code do?: applyStyle ' #minhaDiv { background-color: ${'#ccf'}; width: ${50}px; height: ${40}px; fon...
asked on 21.11.2016 / 21:19
1
answer

How can I get the DB date already formatted using the Max and Date_Format Joints

I'm trying to get the longest date entered in my BD , I'm trying to use the MAX and DATE_FORMAT functions together and the search result is not as expected, I have these dates registered: 2016-10-24 2016-10-25 2016-10-26 2016-10-27 2016...
asked on 08.11.2016 / 18:01
1
answer

How to move the mouse in a realistic way using Python?

How to make the mouse move automatically, realistically, using Python? I was able to find and change a code that produces a "V" -shaped movement on the screen. However, I would like to move the mouse using non-linear movements. I found som...
asked on 12.01.2017 / 18:53
1
answer

.firstChild returning the wrong child

The error is very simple but can not find. I'm learning how to use the DOM CORE API. I created a DIV, and inside I put a UL. I am alerting who is the first child of the DIV, and the result is giving OBJECT TEXT . instead of giving OB...
asked on 03.11.2016 / 16:46
1
answer

What is memoization? [duplicate]

I saw in the question How to implement memoization in a PHP function? appears the term" memoization ". The first impression I had is that this term was related to "memorizing" or "avoiding reprocessing". Is it just that or is it something...
asked on 05.01.2017 / 14:48
1
answer

Remove the arrows in the field type number

Colleagues. I'm using the code below for when the user accesses the smartphone, the numbers keypad appears: <input type="number" value="" class="form-control"> But on the desktop, when you click inside the field, you see arrows:...
asked on 15.01.2017 / 23:30
1
answer

Logistic regression with non-binary variable

I need to make a logistic regression classifier to classify this categorical variable that can have 14 different values. Does anyone know if it is possible to do this with glm () or if I have to use another function (and what)?     
asked on 05.01.2017 / 23:27
2
answers

How to make a span display the value of a range as it moves it with the mouse? [duplicate]

The function is working, however I want to update the value in <span> as I move with the mouse. Can anyone help? function mostrarPorcentagem(novoValor) { document.getElementById("exibePercent").innerHTML = novoValor; }...
asked on 13.01.2017 / 16:44
1
answer

Good practices for changing $ scope variables

Here is an example code: Controller: $scope.filterText = {status: 'Todos', tipo: 'Todos'}; $scope.params = {page: 1, total: 10, orderBy: 'id', sort: 'desc', search: {status: '',tipo: ''}}; $scope.filterStatus = function(status, text) {...
asked on 11.01.2017 / 14:14