All Questions

3
answers

How to display a multidimensional array without using a loop?

When trying to execute the following snippet: int[] vetor = {1, 2, 3, 4, 5, 6}; System.out.println(Arrays.toString(vetor)); The array is normally displayed as [1, 2, 3, 4, 5, 6] but if I try with a two-dimensional array, as follows:...
asked on 14.01.2017 / 14:28
1
answer

Retrieving list list values in python

I've tried several things and still can not figure out what the problem with my code is, it's a simple code. With numpy I put the txt values in the arrays array and I want to make some copies for two other lists, mensagem and no ....
asked on 22.09.2015 / 19:05
4
answers

My functions only return 0

I was trying to make the Bhaskara formula into functions, but something went wrong and only returns 0 no matter what inputs I put in. Here is the code: function bhaskaraP(ab, bb, cb) { var Mb = bb * -1 var b2 = bb * bb var del...
asked on 19.11.2018 / 23:40
2
answers

Why does max or min return the expected value?

I need to get the highest and lowest value of a certain field to be able to make a filter, only SELECT MAX nor MIN does not work. As you can see in the image below, I need this amount of users Table name: prt_license SELECT MAX(use...
asked on 19.06.2017 / 20:54
2
answers

Problem with quotation marks when doing INSERT SQL

I'm doing a CRUD with PDO, but the prepare () method query only works with "double quotes" Ex (this works): "INSERT INTO '_user' ('firstname') VALUES ('blabla')" That's not how it works: "INSERT INTO '_user' ('firstname') VALUES ('blab...
asked on 15.09.2014 / 20:39
3
answers

Remove Environment (and List) elements based on your classes

Consider the vectors: a<-1:10 b<-1:10 c<-'a' d<-'a' e<-list('b') f<-list('b') g<-1.1 h<-1.1 The function below removes only a class (which is integer , in this case): rm(list=names(Filter(is.integer,mget(ls...
asked on 01.01.2019 / 05:09
2
answers

Formatting a double in java

I would like to know how to keep the variable double with 2 houses after the comma. Below I have an example, when transforming a String into double if it has values after the point is kept the 2 houses, however if it is only...
asked on 28.08.2014 / 20:16
5
answers

How to calculate the age based on the DATE of birth in MySQL based on the month and day?

I have the query below, but it ignores the month and day of birth SELECT FLOOR(DATEDIFF(NOW(), c.nascimento) / 365) AS idade FROM clientes c In the result, most comes right, but sometimes has a difference of one year. How to make th...
asked on 25.03.2014 / 01:19
1
answer

POST and GET in SSL

On a site, secured with SSL, are POST and GET also encrypted? The fact that GET is part of the address, is it still encrypted?     
asked on 01.09.2014 / 04:51
3
answers

Execute action after 2 minutes without moving the mouse

How to create a function in jQuery that redirects the visitor to a page after it does not move the mouse for 2 minutes or more? Example: The user is on the products.php page and if the user is left standing with the mouse or he is on...
asked on 22.07.2014 / 00:44