Posts by Maykon Oliveira • 79 points
6 posts
-
0
votes1
answer19
viewsA: Consult a field with datetime year to Second format, asking to bring only today’s records?
There is a function in Mysql that takes the current date, you can use it when you need to insert the current date into a record or compare it to the current date. According to your description…
-
-1
votes2
answers538
viewsA: Countdown js
You can do the following var timer = {count: 20}; var start = setInterval(function (timer) { if (timer.count == 0) { clearInterval(start); } console.log(timer.count); timer.count--; }, 1000, timer);…
javascriptanswered Maykon Oliveira 79 -
1
votes3
answers684
viewsQ: Call database function that receives a list as parameter
People like me do the following... involves database (Postgres SQL) and JPA, I want to create a database function that receives a list of ids as parameter and make a query cm enclosure WHERE IN…
-
0
votes1
answer39
viewsQ: Callback is executed in the parameter
function requestAjax(url, metodo, data, successCallback) { $.ajax({ url: url, type: metodo, contentType: "application/json; charset=utf-8", data: JSON.stringify(data), statusCode: { 200: () => {…
-
6
votes1
answer166
viewsQ: Implement Java Functional Programming Loop
private List<String> getPermissoes(TipoUsuario tipoUsuario) { List<String> permissoes = new ArrayList(); for (Permissao permissao : tipoUsuario.getPermissoes()) {…
-
0
votes2
answers47
viewsA: Socket does not receive or send message to the server
Every time you write something through a Printwriter object it is highly recommended that you call the flush() method to "uncouple" the output. So as the friend has already said, After the…