Posts by Developer • 470 points
25 posts
-
0
votes1
answer180
viewsA: Spring Boot 2 - How to associate the controller with the web page (redirect)
All that was needed was to include Thymeleaf dependency in Pow.xml. <dependency> <groupId>org.springframework.boot</groupId>…
-
0
votes1
answer180
viewsQ: Spring Boot 2 - How to associate the controller with the web page (redirect)
Save everyone, I’m starting with Spring Boot 2. I still can’t understand how to associate the controller with the web page. I’m creating the html files in the package:…
-
5
votes1
answer393
viewsQ: await does not await execution of the President
I thought I understood how asynchronous function works with await. In my understanding the await was waiting for the resolve of Promise to continue to the following. To test this operation, I…
-
7
votes1
answer2366
viewsQ: How to assign the result of a Promise to a variable?
Even reading this one another question of the site, I still do not understand why I can not withdraw a value from within a Promise. How do I do that kind of assignment? The idea is to execute…
-
0
votes0
answers69
viewsQ: Start Node application on Linux boot (Raspberry)
Good afternoon to all, I have a JS application that needs to be started on Linux boot, how could I start this application? I tried with systemd, but it didn’t work. Could you give me some link or…
-
0
votes1
answer461
viewsQ: Nodejs return function - Mysql query
I’m not able to return value in function, I know it’s wrong, but I’ve made several unsuccessful attempts. The query is being performed and brings the password, the problem is to return this value to…
-
0
votes1
answer48
viewsQ: Node, server send information to page (bank password control, lab...)
Good night! I do not know if it is possible to implement the following situation: I have an html page that is a monitor (it has the last number called), in the second html page, the user can click…
-
2
votes1
answer1348
viewsQ: Google API - Autocomplete does not bring ZIP
I’m trying to use Google services to get addressing. The idea is to inform the address or zip code and upload the data street, neighborhood, zip code, city and state. I was able to obtain most of…
-
0
votes0
answers40
viewsQ: Wildfly 8 does not read network folder when run as a service
Good morning! I have a Java 8 application running on Wildfly 8, I need to view images. The display works perfectly when the folder is local C: (Eclipse, CMD and Service). I had to transfer the…
-
2
votes1
answer1306
viewsQ: Python / Django interval of hours
I need to create a schedule of hours: I have the following information in the Django template: Initial time: 08:00 Final time: 18:00 Break in minutes 00:30 I would have been able to implement…
-
1
votes1
answer3770
viewsQ: Django, data’d/m/Y format configuration
I am unable to change the Django configuration so that the date format looks like’d/m/Y'. In the form validation, if you enter 22/12/1980, the form is invalid. Informing 12/22/1980 the field date is…
-
0
votes1
answer46
viewsQ: Jquery, sum up table
I am not managing to generate a general total of my table, in each row I have the quantity and price. I need to generate the total value. The current logic is reading all the rows of the table and…
-
3
votes1
answer2013
viewsA: Python, how to validate if the variable is None?
With help from @Edilson, we were able to identify the problem. It’s basic, but for those starting in Python with Django, it can become complicated. For this reason I will explain what happened. When…
-
1
votes1
answer2013
viewsQ: Python, how to validate if the variable is None?
I’m not able to verify if the variable has no value (None) View: endereco_id = request.POST.get('endereco_id', None) if formCliente.is_valid() and formEndereco.is_valid(): print('**********…
-
1
votes1
answer59
viewsA: List data from 2 tables linked to the parent table
Your query is correct, just missed include the group by in the first query. Follow the query: SELECT p.id_pedido, p.pedido_data, SUM(pi.valor_total) AS vTotal FROM pedidos AS p INNER JOIN…
-
1
votes1
answer206
viewsQ: Convert EJB and WEB modules to Maven
My project consists of three modules: EAR, EJB and WEB. I know Maven goes way beyond dependency control, but to start I just want to use it to control dependencies. I tried to convert the modules…
-
0
votes0
answers76
viewsQ: Resteasy and Struts 2 - Interceptor Problem
My project uses Wildfly 8, java 8 with Struts 2. I’m trying to use Resteasy to implement web services. The project works perfectly, but when I include the settings for Resteasy in the web.xml,…
-
0
votes1
answer164
viewsA: Wildfly 8 - Debug error
The solution is simple, talking to a friend, we can identify the problem. Loss in code timing. To resolve the issue, simply update the project, right-click the project, then click Refresh. Then just…
-
0
votes1
answer164
viewsQ: Wildfly 8 - Debug error
I’m trying to debug my action (Eclipse Mars, Wildfly 8, Struts 2 and java 8), start the server on the Debug option, but when pressing F6 or clicking on the icon to process from a certain point the…
-
1
votes3
answers1305
viewsA: List records that are in a table and those that are not in the same table
In the Caffé solution, it was only necessary to include a clause in the Where data is null: select user.id, user.nome, ponto.data, ponto.entrada01, ponto.saida01, ponto.entrada02, ponto.saida02…
-
2
votes1
answer1456
viewsA: How to run Trigger sqlserver
Trigger runs automatically before or after the execution of the Insert, delete or update commands. I know no other way to execute a Rigger without executing those commands. CREATE OR REPLACE TRIGGER…
-
0
votes2
answers2379
viewsA: Merge 2 selects into one, showing fields
Follow the change of your query with the Motta solution: SELECT VENDAS_PUBLICAS.CONCAT, --demais colunas VENDAS_PUBLICAS.[QNTD. VENDAS PUB.], VENDAS_PRIVADAS.[QNTD. VENDAS PRIV.] FROM (SELECT…
-
0
votes1
answer131
viewsA: Connect to Sqlserver using Windows 10?
I believe the jtds drive will help you, I’ve used it to connect in 2000. http://jtds.sourceforge.net/
-
3
votes3
answers87
viewsA: Fix data from SQL database
To place the decimals, you just multiply the value by 0.01. 123456789 * 0.01 = 1234567.89 update table coldecimal = coldecimal * 0.01 But first, change the column type.
-
1
votes3
answers2577
viewsQ: jQuery, block multiple clicks on link
I am trying to block multiple clicks. For buttons I got the solution, but for links I have not yet succeeded. Has a solution that disables the link, but does not execute the link action. I tried to…