All Questions

2
answers

Creating an array from two

I have the situation where I need to build a arrayC[] in Java from a arrayA[4] and a arrayB[7] , where arrayC[] must display arrayA[4] and then arrayB[7] : For example: arrayA[4] = {A0; A1; A2; A3}; a...
asked on 06.06.2018 / 19:04
2
answers

How to identify if the user is at the top of the page?

Upon entering the site the page will be displayed from the top (by default) , how to do to identify if the page is at the top using JavaScript pure and > jQuery ? Examples: If the page is at the top, hide the <div id="um-id"...
asked on 18.08.2018 / 00:58
2
answers

What is GitHub for?

I see a lot of people talking about it, but I do not know the real importance of GitHub.     
asked on 23.12.2017 / 22:26
2
answers

Login with Windows Authentication in IIS

I have a SqlServer 2008 base where all users can connect to it via Windows domain, this works correctly via SQL Management Studio. I'm doing a C # Application in MVC, and wanted it when the user accessed the site, I could get that login and p...
asked on 03.05.2016 / 14:17
3
answers

How to put the value of a PHP variable inside an input?

How to put the value of a variable (already computed in PHP) within an input ? <form method="post" action="calculos.php"> <div id="circulantes"> <div class="ativocirculante" id="ativocirculante"> <h2>ATIVO...
asked on 02.10.2017 / 13:54
4
answers

How to close a dropdown if the user clicks another place on the page?

What is the best method to hide a div , which is fulfilling the role of dropdown , when the user clicks another place on the page? At first, I value cross-browser solutions and without frameworks , but any extra application con...
asked on 23.12.2013 / 21:38
2
answers

What is Java's sort?

Every programmer knows that a list of arrays is printed neatly, but in the middle of the path has sort() . The result of this impression was: Abacaxi Banana Laranja Manga I imagined it would print this way: Banana Laranja...
asked on 14.10.2018 / 13:54
2
answers

Updating multiple records at the same time

I have a list with the id and email of each user id email 1 [email protected] 2 [email protected] 3 joao@gmailcom ... How do I set up an sql statement to update all emails at once in my users table? My table: usuarios id...
asked on 08.03.2018 / 15:13
2
answers

Operator in in java

I'm learning Java and I came across the need for the in operator. For example: I have a vector ( v = {1,2,3,4,6} ) and I want to see if the 5 is in this vector (not in this case). In python it would be v = [1,2,3,4,6] -...
asked on 10.09.2017 / 03:15
2
answers

JUnit 5 - How to run a test method only if another test method passes?

It would look something like this: @Test void metodo1() { assertTrue(...); } @Test void metodo2() { //Deve ser executado após método1(), e SOMENTE SE metodo1() passou! assertTrue(...); } I need to do this for cases where it does not ma...
asked on 24.02.2018 / 19:52