Posts by Wanderson Rodrigo • 356 points
24 posts
-
0
votes1
answer13
viewsA: Product filtering does not work in mobile device browsers
At the time I was creating the question, while testing the sample codes I ended up solving my problem. Turns out I was using innerText untreated (for example, to remove spaces). In the computer…
-
0
votes1
answer13
viewsQ: Product filtering does not work in mobile device browsers
I have a website that contains some products with category. I wrote a code that checks if the category checkboxes are selected and shows only the items corresponding to it. The code works on your…
-
0
votes2
answers120
viewsA: Dynamically created datatable and tables problem
Create a role with this code js and call her when the whole page is loaded. How to do: In body include the onload attribute, this way: <body onload = "suaFunçãoDeCriarTabela()"> Within the…
-
1
votes1
answer41
viewsQ: Code works on console, but when I call it in document does not work properly
I have a code that works perfectly running on the console but doesn’t work when I call it by clicking on a document button. Function of my code: Read a file .csv and separate words between semicolon…
-
3
votes1
answer120
viewsA: Audio only start when I reach a certain div
You need to define a Class or a id to the div that wants audio to start. <audio id = "audioDiv" src="audio/2.mp3"></audio> Remove Autoplay from your element In Javascript you will get…
-
1
votes3
answers596
viewsA: How to put white/transparent background on png image with black background
I found that answer, try to put this in the code: bmp.TransparentColor := bmp.Canvas.Pixels[0,0]; Then place the insto bmp.Transparent := True…
-
1
votes1
answer252
viewsA: Conditionals in xml
Using xml I found some answers here: Conditionals in XML (Stackoverflow English) Or using xslt this way: <xsl:if test="1 == 2"> <property name="SHAZAM" value="Esse é o conteúdo…
-
3
votes4
answers1138
viewsA: Delete the last line of a txt file
If it is a very large file, see this form, it reads the file backwards in binary until it finds the character of the last line. Then convert him. import os with open('arquivo.txt', 'rb') as f:…
pythonanswered Wanderson Rodrigo 356 -
0
votes4
answers1138
viewsA: Delete the last line of a txt file
In this way: line = file.readlines() line = lines[:-1]
pythonanswered Wanderson Rodrigo 356 -
0
votes2
answers51
viewsQ: Check whether certain parts of a spreadsheet have data
I have a spreadsheet that has two parts and I want to check if both have data. If the Part 1 and the Part 2 have data, the code paints the corresponding yellow line. If only one of the parties has…
-
0
votes2
answers355
viewsA: Load JS before rendering the page
Just put the Javascript code or its link right after the Head tag. The page always expects the script to be loaded and checked before continuing to load all other elements below it.
-
1
votes1
answer20
viewsA: Close current windowsForm when opening next
You can use two commands to bring forward: frmVendaImprimir.BringToFront(); Or frmVendaImprimir.Activate();
winformsanswered Wanderson Rodrigo 356 -
2
votes2
answers2479
viewsA: How to quote a javascript string
Just put " (Slash and Quotes) inside the quotes so that it is identified as a character. colors = ["\"red\"","\"green\""];
javascriptanswered Wanderson Rodrigo 356 -
1
votes1
answer50
viewsA: I can’t run a trial in Firebird
Maybe the use of SET TERM (Instructions set term) solve your problem. create procedure My_Proc as begin SET TERM ^; if(not exists(select * from alunos where nome = 'Mateus')) then insert into Alunos…
-
0
votes1
answer123
viewsA: Is it possible to pull information from a specific site in an excel site?
Yes, using VBA in Excel. (If you do not know, comment that I explain much more detailed how to activate it and use the commands) Create a Form, then a button. Click Tools and then References and…
excelanswered Wanderson Rodrigo 356 -
1
votes1
answer500
viewsA: Create a Score string . txt without overwriting the file
You can use a File.Appendtext command, here you can find how to use it: Append Text C# Code copied from the website I recommended You choose between: (1) Write to archive (2) Add to file (3) Only…
c#answered Wanderson Rodrigo 356 -
0
votes1
answer35
viewsA: Set difficulty for a question and when selecting difficulty seek only those questions
All right? You can create reference to the questions, with numbers, for example. Let’s assume that in the list there are 30 questions and they are divided in the 3 difficulties: easy(1), medium(2)…
-
1
votes3
answers159
viewsA: Doubt how to capture the character’s animation in Unity
This code may help you: if (Input.GetKeyDown(KeyCode.LeftShift) && Input.GetKey("w")) { animationController.PlayAnimation(AnimationStates.RUN); if (Input.GetKeyUp(KeyCode.w)) {…
-
1
votes1
answer681
viewsA: Refresh part of web page with Electron. (Change content only and keep header, footer and fixed menu)
Very interesting question to ask! There is an idea of how to do it on this page: Link to W3schools…
-
0
votes2
answers402
viewsA: Unity: character walks side by side instead of front
Observe the coordinate arrows, make sure your character is facing the X position, and do the following: var x = Input.GetAxis("Vertical") * Time.deltaTime * 3.0f; transform.Translate(x,0,0);…
-
1
votes1
answer47
viewsA: How to keep Sonic inside the screen? , n exiting from the sides
You’ll take the width of the screen (width), store it in a variable, and then use the IF to compare whether the character exceeded the width (width) value. If you pass, you cause the character to…
pygameanswered Wanderson Rodrigo 356 -
0
votes1
answer69
viewsA: Variable does not receive new value
Try changing the name of the object you are passing over the screen every time you activate the Onbecame function. It may be a possible solution. You can do the test by playing two objects on the…
-
0
votes2
answers1643
viewsA: How do I copy the default Userfom textbox value opened?
To get anything from a form that is currently open, just use the "me": a = me.textBox.value
-
0
votes1
answer52
viewsA: search in two worksheets with a form in vba
Want to put the name of all the students in one Textbox? As if it were a Combobox? If you want a Combobox with the name of all students in a spreadsheet, do the following: Go to the spreadsheet and…