Posts by Denis Rudnei de Souza • 3,686 points
100 posts
-
3
votes1
answer2136
viewsA: INVALID SYNTAX ERROR
That would be your code without the bugs: while(escolha!=0 and confirmar!=0): print("Menu") print("1- Inserir um item") print("2- Remover item") print("3- Listar todos os itens") print("4- Buscar um…
-
4
votes2
answers1688
viewsA: Will using async="" result in synchronous or asynchronous loading?
According to the MDN: async HTML5 A Boolean attribute indicating that the browser should, if possible, execute the script asynchronously. This attribute must not be used if the src attribute is…
-
3
votes1
answer57
viewsA: Programming with android studio
Right away you can see two errors in your code. The first would refer to } inside onPause(), that } should be before setting the method to close the previous method, fixing that part your code would…
-
0
votes1
answer85
viewsA: APP nodejs: prevent logs in terminal window
You can use the following line of code: console.log = function(){} Any call to console.log will be "ignored" from that point If you want to enable/disable, you can assign console.log a variable to…
-
1
votes1
answer348
viewsA: Forbbiden 403 - Redirect
You can simply put a custom page inside the folder templates with the name error.html or error.jsp, spring will recognize and display in case of any error. Within this page you will have access to…
-
0
votes1
answer340
viewsA: Window(s) Modal opening at the same time or at different times
The Materialize owns the Featurediscovery, is a good resource to guide the user in some system functionalities, follows example of the site: $('#menu').on('click', function() {…
-
4
votes4
answers2743
viewsA: Javascript has a xor operator?
You can use the operator ^ as described in that reply Ex.: var nb = 5^9 // = 12 For boolean values you can convert with !!, that will reverse the result turning it into boolean, then reversing it…
javascriptanswered Denis Rudnei de Souza 3,686 -
0
votes1
answer2436
viewsA: Field'valorClick' doesn’t have a default value
The field valorClick is configured as NotNull and has no value default in your table, you cannot perform a insert without informing a value Do: $query_addNoticia = "INSERT INTO artigos(titulo,…
-
1
votes1
answer543
viewsA: Problems with image localization in the Spring Framework
This problem occurs because it is informing the relative path of the image, so the system will use as a basis the current url and add to it. To use the absolute path, you must use the url with a…
-
2
votes2
answers1923
viewsA: I can’t upload files to the project on github
Before performing the push you need to perform a commit, do: git commit -am 'Mensagem do commit' The message Everything up-to-date indicates that your repository is up to date…
githubanswered Denis Rudnei de Souza 3,686 -
2
votes1
answer509
viewsA: Using Criteria for sorting
The interface Criteriabuilder has two methods that return one Order, are they: /** * Create an ordering by the ascending value of the expression. * * @param x expression used to define the ordering…
-
0
votes1
answer77
viewsA: Java - Error: Cannot find Symbol after Try...catch (fileContent[0])
The error occurs because you are trying to access fileContent outside the try catch. Declare the variable before to be accessible: public class ShowDoMilhao { public ShowDoMilhao() { } public static…
javaanswered Denis Rudnei de Souza 3,686 -
1
votes1
answer2228
viewsA: Heroku server H10 code error in Spring Boot project
I performed a Fork from your repository to perform some tests, what I saw when trying to upload the application was an Exception: 2017-06-16T17:48:37.460780+00:00 app[web.1]:…
-
1
votes1
answer175
viewsA: Springboot Merge
For the save method to do the merge of the object, he needs to know which is the id. In the case of an update, I recommend placing an Hidden field containing the id, thus: <input type="hidden"…
-
2
votes1
answer612
viewsA: In Spring MVC, how to send information to the view (.jsp) without using Modelandview?
As stated in the comment, you need to Ajax to avoid page loading. An example using Jquery: $.ajax({ url: '/lista', success: function(data) { //Aqui você recebe sua lista } }); Your controller would…
-
6
votes2
answers210
viewsA: What is the automatically created "o" element between my Buttons in HTML?
According to that one blog post Firefox Nightly that o is automatically generated by the browser when parsing your Html and finding whitespace. Whenever Firefox encounters one of the following…
-
1
votes1
answer121
viewsA: Data persistence problem using JPA
You have 2 mistakes, the first one is yours BindingResult which must be declared as a parameter after the object to be validated, as it is, will validate only produtosManutencao Do so:…
-
3
votes1
answer49
viewsA: How do I create a div that has "0 Parallax"?
Can use position: fixed: .navbar-fixed { position: fixed; top: 0; left: 0; width: 100%; background-color: #212121; padding: 5px; } .content { margin-top: 25px; padding: 5px; } <nav…
htmlanswered Denis Rudnei de Souza 3,686 -
15
votes2
answers1680
viewsA: Disconnect case sensitive in Postgres
To perform a search in Postgres disregarding upper or lower case, just change the like for ilike Your search gets like this: select * from tabela where name ilike '%teste%'…
-
5
votes1
answer16499
viewsA: Error: Could not find or load main class solved
I did some tests with your class and I managed to run it. You should be careful how you run your class, if you try to call it inside the training folder you will not be able to run. ── treinamento…
javaanswered Denis Rudnei de Souza 3,686 -
2
votes4
answers1376
viewsA: Application with Tomcat and Spring Boot
This message is displayed when authentication Http Basic is active through Spring Security, unlike the other answers, you should not remove the dependency on your project, since it may be valid in…
-
0
votes2
answers145
viewsA: Problems trying to save data from the form
You have not added the attribute name as mentioned by @Isaias, another way to fill in the information of a input is using the th:field Do so: <section layout:fragment="conteudo01"> <form…
-
1
votes1
answer4559
viewsA: Error resolving template "Meutemplate", template Might not exist or Might not be accessible by any of the configured Template Resolvers SPRING
The error occurs because you did not put the annotation @ResponseBody in his method bucarDisciplina, If you do not place this annotation Thymeleaf will try to find a template with the return of the…
-
3
votes1
answer632
viewsA: Error in android xml page
He is giving this message because he did not find the information requested in android:paddingLeft="@dimen/activity_horizontal_margin", inside the archive res/values/dimens.xml you can define this…
-
1
votes2
answers685
viewsA: Tomcat does not activate in Spring boot. How do I activate it?
Inside your pom.xml you must remove the <scope>provided</scope> being like this: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"…
-
0
votes1
answer127
viewsA: Error "phonegap run android"
I found that one response in Stackoverflow in English, according to error message, the file is corrupted. Delete the contents of…
-
2
votes2
answers82
viewsA: XHR in javascript for Python displays three times the return
I believe the problem is in your if if (this.readyState = 4 && this.status == 200) { You are assigning 4 to this.readyState and checking the connection status with 200. How the connection…
-
1
votes2
answers661
viewsA: TEXT Inside a button - Materialize CSS
So that all the text fits within your button you need to change the height for auto, thus: <link rel="stylesheet"…
-
1
votes2
answers564
viewsA: How to put texts in Progress
You can do this by setting the information inside the Progress and displaying with css using pseudo elements after and before of css. These elements do not exist within the DOM, only exist to add…
-
1
votes1
answer882
viewsA: Start Wildfly in debug mode
Just edit the file and in: if "%~1" == "" ( goto MAIN ) else if "%~1" == "--debug" ( goto READ-DEBUG-PORT ) else if "%~1" == "-secmgr" ( set SECMGR=true ) Switch to: if "%~1" == "" ( goto…
-
4
votes2
answers207
viewsA: How to use If Else correctly
You are making the comparison incorrectly, for your case I advise using if-else thus: if (livros.checked && folhas.checked && porta.checked) { alert('Livros, folhas e porta'); } else…
-
4
votes3
answers111
viewsA: How to disable the "See Details" button in the image preview?
Directly through the plugin I could not remove, I managed using css: .file-footer-buttons { display: none; } I just stopped displaying the div containing the buttons at the bottom.…
-
0
votes1
answer751
viewsA: Base64 and MD5 - Java
Base 64 is not an encryption mechanism, it’s an encoding scheme. It is easily reversed, so it is not a good option to protect critical data. Base 64 encoding is generally used to transmit binary…
-
2
votes1
answer104
viewsA: I’m making a game, and on line 36 gave this error Uncaught Referenceerror: resetInterval is not defined. Can anyone help me?
It seems that the error is syntax, change resetInterval for clearInterval var fadeInId = setInterval(function() { if(labelNewPhase.opacidade < 1.0) labelNewPhase.opacidade += 0.01; else{…
-
1
votes2
answers868
viewsA: CSS javafx Color Text
You can create the button with additional text inside: <Button fx:id="button" graphicTextGap="0.0" mnemonicParsing="false" text="uscar"> <graphic> <Text fill="RED"…
-
4
votes2
answers103
viewsA: How to insert a set time into a function
You can use setTimeout() Do so: $("form").submit(function(){ setTimeout(function() { window.location = 'minha URL'; }, 5000); } After clicking the button will execute the function setTimeout() which…
-
3
votes1
answer147
viewsA: Application works in eclipse and stops working after generating JAR executable
To be able to fix this problem it is necessary to register the driver to be used, for this it is necessary to use Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"), this way the driver is loaded…
-
8
votes2
answers1351
viewsA: Error "expects Parameter 1 to be mysqli, string Given in"
The problem is in: $result = mysqli_query($bd, $sql) You are passing the value of $db as a parameter, but $bd is just one string, tries to pass the variable as a parameter $mysqli According to the…
-
4
votes1
answer95
viewsA: Rewrite code using the Try-with-Resources resource
The problem lies in: pstmt = setString(1, l.getNome()); pstmt = setString(2, l.getSenha()); Where you assign the return method setString to pstmt, the correct would be: pstmt.setString(1,…
-
3
votes2
answers742
viewsA: Jquery load function does not work
It doesn’t work if you are opening the file directly from disk. The protocol does not support Cross-Origin, will only be able to run this example using a server http Reference response:…
jqueryanswered Denis Rudnei de Souza 3,686 -
3
votes3
answers414
viewsA: Close connection in another method
The error occurs why conn exists only within the class JavaConnect. Try: Connection conn = JavaConnect.ConnectDb(); JavaConnect.DesconnectDb(conn); This way you can access the return of the method.…
javaanswered Denis Rudnei de Souza 3,686 -
9
votes4
answers3402
viewsA: How to detect the operating system with Python?
import os print os.name #Saída: posix import platform platform.system() #Saída: 'Linux' platform.release() #Saída: '2.6.22-15-generic' Taken from that question…
-
1
votes1
answer107
viewsA: Root permission to change date and time
You will have to edit the file /etc/sudoers adding: [user] ALL=NOPASSWD: /path/to/script.sh
-
1
votes1
answer122
viewsA: Windows 10 , Spark error (bin/bin) does not find winutils.exe file
Define HADOOP_HOME only as C:\hadoop, error shows the folder bin twice
hadoopanswered Denis Rudnei de Souza 3,686 -
4
votes2
answers248
viewsA: Returning NULL in Spring Boot
Your input is wrong. Change: <input type="text" id="numero" name="nomero"/> For: <input type="text" id="numero" name="numero"/>
spring-bootanswered Denis Rudnei de Souza 3,686 -
1
votes1
answer76
viewsA: Return of Incorrect Form
The problem is in if within your while, it is assigning the value of $registo[1] in the variable $pais every time a line is read in the file, so it displays only the value of the last line, change…
-
0
votes1
answer70
viewsA: Ajax returning repeated data
Change $(".algumCampo").append(response.algum_dado); for: $(".algumCampo").text(response.algum_dado); append() add more data to the element, while text() will replace with new content…
-
3
votes1
answer911
viewsA: PDO SQLSTATE[07002]:COUNT field incorrect or syntax error
Looks like you forgot to set the value for :user You are setting only the value to :creditosplayer in: $query->bindValue(':creditosplayer', $creditosplayer); Do:…
-
1
votes2
answers232
viewsA: problem with java.lang.Nullpointerexception
The mistake is in: public void documentoDAO() { this.con = new conexaoDAO().getConexao(); } You created a method, not a builder, do: public documentoDAO() { this.con = new conexaoDAO().getConexao();…
-
5
votes2
answers761
viewsA: Store paths containing directory with space in name
You will need to escape the spaces for the command to work, when you use the command cd $home is the same as: /home/douglas/Minha Pasta, he will read until the My and you won’t find the folder; Do…