Posts by Valmor Flores • 421 points
26 posts
-
1
votes1
answer32
viewsA: Function to create buttons according to the database
Hello Your add_button function is not returning any element (Widget), however it is being used as if a widget would result add_buttom() { if (j == 0) { ler_embarque(); } else { setState(() {…
-
0
votes0
answers33
viewsQ: Bloc: Why does Sink not trigger my Stream function?
I have a problem, which I believe is understanding the concept in the use of Bloc. I understood that a Sink with a linked stream will always trigger the stream if an add ( "some information" ); But…
flutterasked Valmor Flores 421 -
0
votes1
answer126
viewsA: how to create labels with quick reports
Hello! There are many ways to do this. The most practical way is to create a temporary table linked to a Dataset. In this virtual information you carry out the printing process you want. Something…
-
0
votes2
answers97
viewsA: Change the label value from a list
Hello! Take a look at the following changes: function updateField(){ let selecionado = document.getElementById('lista_servicos').value; document.getElementById('valor').innerHTML = selecionado; }…
javascriptanswered Valmor Flores 421 -
1
votes2
answers194
viewsA: How to detect when the user enters something invalid or wants to terminate the program first?
Hello! Try the following approach. Considerations: If you are to allow number "0" then you will have to check in a slightly different way the entered value and comparison. Another thing, I assumed…
-
1
votes1
answer731
viewsQ: How do google’s login button respect the user’s language or receive custom texts?
In the code suggested by Google, in the following link: https://developers.google.com/identity/sign-in/web The generated button is similar to the following image. But, in case I want to change the…
asked Valmor Flores 421 -
0
votes2
answers647
viewsA: Function with for()
Hello! Running your function, is not occurring this error you are stating. What you are interpreting as an error is actually just the reflection of the code in the code inspector of your browser or…
-
0
votes2
answers169
viewsA: Function clone stack value
Hello! I think you should create some functions, such as pushclone and create clone and do the cloning routine generating the information in a similar way to what you did to popular the data from…
-
0
votes1
answer168
viewsA: How to read a txt matrix
Hello! I made in a single block your proposal. Then divide into function as you wish. Code: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h>…
-
1
votes2
answers81
viewsA: Sum and total sql
Based on your logic, I think it solves: SELECT sum(valor) as saidas, (select sum(valor) FROM lancamentos WHERE id_tipo = 1 ) as receitas, ( ( sum(valor) as saidassoma ) - ( (select sum(valor) FROM…
sqlanswered Valmor Flores 421 -
1
votes1
answer42
viewsA: Can anyone solve it?
Wishing to learn how to program is commendable, but if you simply want an answer to some sort of riddle of the little friend, here is not the ideal place. I’m answering, considering you want to…
javascriptanswered Valmor Flores 421 -
3
votes2
answers1797
viewsA: Adding spaces in Javascript
Hello! So if you can’t use another function, use the same one. Whereas you need to print enough space to fill the gap that will exist before, so it is the steps - the position that is (i) function…
javascriptanswered Valmor Flores 421 -
3
votes1
answer2388
viewsA: "Cannot read Property 'length' of Undefined" when using array arrays
Hello! The reason for the above error is related to the fact that you are searching in a loop (for) the indicated days, but exceeding the array size. for (let i = 0; i <= chegada_alunos.length;…
javascriptanswered Valmor Flores 421 -
0
votes1
answer135
viewsA: How to check IF in Javascript with id html
Hello! Of course there are many ways to do it, but based on what you yourself provided my solution is the following: function updateChartType(){ let selecionado =…
-
0
votes2
answers117
viewsA: Consume json file locally with jquery or javascript
First, try modifying "$(Document). ready(" for "$().ready(" Then replacing .get( for .ajax( $().ready(function(){ console.log('Start'); $.ajax({ type: "POST", dataType: "json", url:…
-
0
votes1
answer185
viewsQ: When is an operating system created the compilers of ASM, C language, CPP must be created as well or are portable?
1 - AHTAH! Another crazy wanting to re-invent Microsoft - Because this me$#%%$#$ question? To give a little context to my doubt: I have always programmed in high-level languages, to solve…
-
1
votes2
answers312
viewsA: How to make my script run with two clicks a command that contains sudo?
Hello! Change your bash group to sudo. Doing so will run with administrator powers. In Linux Mint for example it is possible to do right-clicking and properties in the "Permissions" tab. If you…
-
0
votes1
answer194
viewsA: Repeated element within matrix - Pascal
Hello Your path is correct in analysis. I believe the only carelessness was in relation to the comparison you were making through a second matrix, when in fact what matters is an element-to-element…
-
1
votes4
answers115
viewsA: Algorithm execution error in pascal
For didactic purposes I made some changes to the above code, which may be useful to those who are learning Pascal. Program crianca_esperanca; var D: integer; valor: Double; Begin…
pascalanswered Valmor Flores 421 -
2
votes2
answers133
viewsA: How I search properties within a td / tr using only js
Hi! Take a look at this feature! I answered that today on another question, but I think it applies to what you’re looking for. function extractTableData() { console.log('Extraindo dados'); var myTab…
-
1
votes2
answers78
viewsA: Send information about the link clicked to the server before redirecting
Hello! Either I didn’t understand anything or what you are questioning yourself already solved (read my comment below to make it clearer!) Run next. From what I see when opening the new window,…
-
2
votes2
answers2133
viewsA: How to open another screen in Flutter?
Hello! It seems to me that what’s left in your code is just the Onpressed. As you are calling in a _scan function, you should just run the Navigator.push function( ... ). Because onPressed is an…
-
1
votes6
answers2492
viewsA: Beginner in Javascipt
In EX2: Following @Rick’s suggestion, but considering that for learning is always good a better clarity and break less called the function length, I suggest the following code: function…
javascriptanswered Valmor Flores 421 -
0
votes3
answers126
viewsA: How to extract values from a column and separate them with a comma
Good morning Try the following code: <script> function extractTableData() { var myTab = document.querySelectorAll('#idTable1 tbody tr '); var strResult=''; Array.from(myTab).forEach(input…
javascriptanswered Valmor Flores 421 -
0
votes2
answers471
viewsA: When I perform a SELECT it returns multiple duplicate records
Hello Try it this way: SELECT DISTINCT tag_post.id_postagem, tag_post.*, tag.nome_tag FROM tag_post LEFT OUTER JOIN tag ON tag.id_tag = tag_post.id_tag WHERE tag.nome_tag LIKE '%quimica%'; Or so:…
-
1
votes2
answers398
viewsA: Registration with e-mail confirmation with token - PHP
Hello Your thinking is correct with regard to concern for safety. But, do not exaggerate in terms of strategy. As you said Junior Silva you don’t have to be so strict. Something else, usually what…