All Questions

4
answers

Change the name of a variable in an R dataframe

I have a dataframe with 34846 observations and 15 variables, I would like to know how I have to do to change the name of a variable. Example: I have the "Country" variable and would like to rename it to "Country"     
asked on 11.09.2018 / 22:53
2
answers

Identify and get PUT and DELETE variables

I'm developing a solution for API , I can currently identify the method by: $_SERVER['REQUEST_METHOD'] How can I get the variables PUT and DELETE ? As in GET and POST I use: $_POST; $_GET; When executing a r...
asked on 17.12.2016 / 21:03
4
answers

How to format this array?

I have the following array: $dados = array( '0' => array( 'id_assinante' => $id, 'nome' => 'Aluguel' ), '1' => array( 'id_assinante' => $id, 'nome' => 'Água' ), '2'...
asked on 21.12.2016 / 12:14
3
answers

Bind JavaScript

I wrote this code as a study for the understanding of bind. I create a method in an object and try to call it by changing the scope to another object. let car = { sound: 'Vrrrrummm', startEngine: function() { console.log(this.sound)...
asked on 15.11.2016 / 06:07
1
answer

What are metadata?

I was researching about "sanitize" data and found this answer from @maniero , which cites:    "Delete text snippets in a data entry that have    characteristics of metadata , and therefore may cause some    security issue. " I wou...
asked on 08.03.2018 / 00:17
2
answers

Doubt on List that does not return the result

I have this method in Java, which queries the database and returns me a list of students. The method is querying the DB but does not return the data correctly ... public static List<alunos> teste() throws SQLException { String sq...
asked on 15.11.2016 / 01:44
3
answers

Using the .env file in the PHP project?

I noticed that Laravel uses the .env file for some settings and in code it a env() function, I ask: Is there any way to use the .env file in my project php without using some framework ? If yes, ho...
asked on 11.10.2017 / 17:03
2
answers

How to remove a character repeated in sequence?

How do I remove the repeated characters in sequence with PHP? Entry:    Ellizabetth Output:    Elizabeth     
asked on 10.08.2016 / 21:06
3
answers

Vector ordering of objects

I'm making an application that sorts a vector of objects. These objects are Cartesian points, defined in the following class: class CartesianPoint { private: int x; // Coordinate X of a pin or a wire part on a cartesian plan int y; //...
asked on 22.12.2016 / 14:20
2
answers

Async / Await with threads (C # 7.2)

I have this code and as you can see I created two examples, Parallel and NotParallel. I was hoping that both of them would return me 3000ms, as both should run async (2000 and 3000) and the total time would be 3000, but the NonParallel, is ta...
asked on 20.04.2018 / 14:24