All Questions

1
answer

How to use a counter within a HashMap?

Is it possible to do this? public static void main(String[] args) { Scanner in = new Scanner (System.in); Map <String,Integer> mapa = new HashMap <String,Integer>(); mapa.put("45 - Jose" , ? ); //A "Key" deve ser o...
asked on 16.05.2016 / 04:36
2
answers

Check input password

Hello, I'm starting to learn JavaScript, and I'm not getting any way to make my code validate if there are 3 uppercase, 2 numbers, and 1 special characters in my input. I would like to know what I should be making of error, because I made severa...
asked on 29.06.2015 / 04:46
3
answers

How can I convert snake_case to camelCase (and vice versa) in Python?

How can I convert a string pythonic to snake_case in%% possible? Example: snake1 = 'minha_string_snake_case' # minhaStringSnakeCase snake2 = '_teste_string' # _TestString     
asked on 03.07.2015 / 13:53
1
answer

Is there any way for a div to take on the role of scroll?

I have the following code: $("#scroll").draggable({ axis: "x", scroll: true, containment: "#area" }); .area{ position: absolute; width: 1010px; height: 100px; margin-top:10px; margin-left:10px; overflow-x: auto; overflow-y...
asked on 24.06.2015 / 06:52
2
answers

How to authenticate a user in an android app that uses Facebook login

I'm creating an Android application where the user will have to register to access the content of the application (a login). To do this, I use the famous Facebook Login by default. When the user logs in via the Facebook button, I trigger my REST...
asked on 25.06.2015 / 21:38
1
answer

Organize list with more than one criterion in case of a tie

I'm using sorted to organize a list, however I need two criteria to organize it for tie cases, so I call sorted( ) twice. Can you do this organization by calling sorted( ) only once? Basically, the code is as follows: l...
asked on 01.07.2015 / 03:52
1
answer

Does PHP support Bluetooth?

If not, in general (web) does bluetooth support exist? Is there a way to make communication between PORT (Bluetooth) for web?     
asked on 22.06.2015 / 16:18
2
answers

Decomposition of Daily Time Series

I have a time series of daily flow data. I am trying to decompose the ST to remove the trends and seasonalities. But when I use the decompose function the seasonal chart appears a black blur. QHE.ts <- ts(QUHE.z, freq = 365.25)...
asked on 30.06.2015 / 16:03
1
answer

Is it necessary to repeat the dependencies (JAR)?

I have a "project A" that uses a .JAR library, which is inside the dependencies. I've exported this project to .JAR for use in "Project B". This project B must also use the same library. Do I need to use both or just one of them?     
asked on 11.01.2016 / 12:15
3
answers

Increase Accuracy with BigDecimal Java

Tickets R = new BigDecimal(2.79E+00); Dxm3d = new BigDecimal(3.99E-04); Wmd = new BigDecimal(2.39E-03); x = new BigDecimal(3.2); t = new BigDecimal(365); Follow the formula below BigDecimal segundoTermo = (R.multiply(x).subtract(Wmd.m...
asked on 22.12.2015 / 19:43