All Questions

1
answer

What is the utility / reason for the existence of new Object ();

While studying a little more about objects, I came across things like new String , new Number , etc. I was curious, and I went to learn. I understood the operation, although I have my doubts about the usefulness of them, since my...
asked on 13.09.2018 / 20:09
1
answer

How to create a project in GitLab using git?

We can easily create a project in GitLab and "synchronize" it with git : $ git clone [email protected]:user/teste.git But what about backwards? Create the folder and the local project, and send as a "new" in GitLab ?     
asked on 30.08.2018 / 19:45
1
answer

Including columns in a dataframe in R using a rule

This is my dataframe: df<-as.data.frame(matrix(rexp(200, rate=.1), ncol=10)) colnames(df)<-c("one","two","three","four","five","six","seven","eight","nine","ten") This is the index I will use as an example: index<-c(1,2,3,4,5,6,7...
asked on 20.09.2018 / 00:00
2
answers

Allow special characters like Java keyboard input

I'm using Scanner to read some keyboard data, but accents and special characters are not identified. For example: John and Maurice appear with a square in the accented letter, but if I type these words in the output on screen does not have pr...
asked on 17.11.2015 / 21:34
1
answer

How to find out the class that called a method from another class?

I wanted to know if there is any way to get the class that called a method within that method. For example: public class A { public void metodoA() { B.metodoB(); } } public static B { public void metodoB() { //Aqui...
asked on 30.08.2018 / 16:05
2
answers

Dynamic vector allocation

The statement follows:    Make a program that reads keyboard numbers and stores them in a   vector dynamically allocated. The user will enter a sequence of   numbers, with no quantity limit. The numbers will be typed one by one   and, in case...
asked on 14.08.2018 / 18:04
2
answers

How to group the microdata of people from the census by residence?

I am trying to answer the following question: How many couples with children under 18 do both parents work out? Given a% census of people in the 2010 census (such as that of Acre ), first thing I did was filter the table by couples with chil...
asked on 13.11.2015 / 15:54
1
answer

File There is PHP

I'm using this function to check if the file exists: <?php header('Content-Type: text/html; charset=utf-8'); //header('Accept-Ranges: bytes'); $nome_real = $_FILES["Arquivo"]["name"]; $pastadestino = "/pasta/$nome_real";...
asked on 24.11.2015 / 03:15
2
answers

Is it safe to use the $ _SERVER variables to log errors?

We all know that it is possible to manipulate some information during a request, I never had to use anything like $_SERVER[HTTP_HOST] , $_SERVER[REQUEST_URI] or $_SERVER['REMOTE_ADDR'] because I know it has security implicati...
asked on 23.11.2015 / 13:44
2
answers

How to remove Input image border

I'm using a input of image to function as a favorite button <input type="image" class="btnFav" title="Favoritar" /> But it has a square border on it I've tried using css below, but nothing worked. outline-color:...
asked on 20.11.2015 / 23:56