Posts by E.ss • 123 points
12 posts
-
1
votes1
answer38
views -
0
votes1
answer40
views -
0
votes1
answer108
viewsQ: Receive a Localdatetime from an html form
Problem : I am trying to receive a Localdatetime of this input within a @Controller using a <form> using the Thymeleaf. <input class="form-control" id="dueDate" type="datetime-local"…
-
1
votes2
answers1383
viewsQ: How to add 100% height to a Bootstrap 4 column
I am using bootstrap 4.1, previously I tried to use the class h-100, and unsuccessfully, even Chrome Developer tools indicating that height:100% was applied to the elements. I decided to use a class…
-
1
votes1
answer265
viewsA: User authentication with H2 database in Kotlin Spring Boot Application
The problem was solved using authentication by JDBC Queries are provisional while due modifications are not made in the database @Autowired fun configAuthentication(auth:…
-
1
votes1
answer650
viewsA: Simple Problem (Java Calculator - Switch)
To read the numbers you can use the Scanner Scanner leitor = new Scanner(System.in); int escolha = leitor.nextInt(); double a = leitor.nextDouble(); double b = leitor.nextDouble(); switch(escolha){…
-
1
votes1
answer265
viewsQ: User authentication with H2 database in Kotlin Spring Boot Application
Problem: Authenticate user using H2 database in Spring Security Context: The application is made using Spring, the user class is this @Entity data class Usuario( @NotEmpty var nome:String = "",…
-
1
votes1
answer459
viewsQ: Properly manage database connections using Hibernate
What would be the best standard for connections, I thought of two modes : Mode 1 : Each function creates and closes its own connection Insert function' EntityManagerFactory factory =…
-
1
votes3
answers1877
viewsA: List a range of numbers and add one by one
If I understand your question, you want to sum up all the elements of a range use FOR next to the range, n_elementos = 5 soma = 0 for i in range(1,n_elementos+1): soma += i print(soma) n_elements+1…
-
2
votes2
answers2568
viewsA: Change the value of a number in a matrix without knowing the position (index) in Python
The.index() list will return only the smallest index at which this number occurs, use a for loop to change the values. lista = [[4,5,3,15,4], [20,17,3,4,56], [5,6,2,90,32], [18,7,1,8,13],…
-
1
votes2
answers35
viewsQ: Apply properties to an element only if it belongs to a class
I want to apply css to these elements ul { list-style-type: none; margin: 0; padding: 0; width: 200px; background-color: #f1f1f1; } li a { display: block; color: #000; padding: 8px 16px;…
-
0
votes1
answer428
viewsQ: Register/Display List C#
The function of this code is to read the information : Discipline name,4 notes and the average The problem : I cannot carry the data in a List in the Form Cadastrar and display the information in…