All Questions

4
answers

How to detect the operating system with Python?

How can I do in Python to identify which operating system is being used?     
asked on 23.11.2016 / 13:20
1
answer

How to speed up Android Studio + Gradle?

I'm having a hard time using Android Studio because of the delay in the project build process. What settings improve Android Studio + Gradle performance?     
asked on 25.09.2014 / 01:19
2
answers

Should I encrypt the password before sending it to the server?

I am in doubt whether to encrypt a password before sending it to the server, and on the server to save the hash to the database, or whether to encrypt only on the server ...     
asked on 29.10.2018 / 21:37
3
answers

Use OR operator in a CASE in PHP

How to use the or operator in a control structure switch ? Example switch ($options) { case 1 || case 2: echo "Valor de opção 1 e 2"; break; case 3: echo "Valor de opção 3"; break; }  ...
asked on 10.04.2015 / 21:58
1
answer

How to pass a number in scientific notation in Java?

I'm using a method to not display scientific notation DecimalFormat dfor = new DecimalFormat("#"); dfor.setMaximumFractionDigits(10); txtTexto.setText(df.format(valorDouble)); But when you press a button it switches to scientific notation...
asked on 10.03.2015 / 13:55
2
answers

How to check real-time change in database with php websocket?

I want to update a div only when there is a change in a certain field in the database, I am currently using polling, but I want to switch to websocket for performance issues, but I only find examples of chats, and it's not what I need. Does any...
asked on 29.03.2017 / 17:55
3
answers

Web security api: SSL?

I would like to know if you can restrict requests to a web api specifically for a machine. My api web will be hosted on computer A. My client (at first only one) will be hosted on the computer B . Different servers, different machines....
asked on 02.09.2017 / 20:19
3
answers

How do I assign the results of a function that returns a list of objects?

In R we can make a function return more than one object through a list. But how do you assign these objects to two different variables? Example: f<-function(){ primeiro<-1:10 segundo<-11:21 return (list(primeiro,segundo)) }...
asked on 07.03.2014 / 05:02
1
answer

Front End Access on server

We usually put the Back End on the server and the Front End on the local machine. Is there a problem (maybe performance) in leaving a copy of the FE on the server for each user and just put the link of each on the local machine? That is, I...
asked on 08.01.2014 / 16:19
1
answer

Difference between method and constructor?

Reading the notes of a friend I came across the following statement: "method does not allocate space in memory". Is this statement correct? Maybe it's not the main difference between them, but it's true to say that constructors allocate space...
asked on 18.12.2015 / 17:20