Posts by ThRnk • 252 points
10 posts
-
1
votes1
answer29
viewsA: Take 2 values of 2 inputs and add
As you were setting the variables before pressing the calculate button, they were "calculated" as soon as the page loaded, always resulting in 0 both. Just move the two lines that define x and y…
-
3
votes2
answers96
viewsA: How does logic test work with two integers in Python?
They are called bitwise operators, are operations between numbers in their binary form. What the & will do, is compare if the bits in their corresponding squares (vertically) are both equal to…
-
1
votes1
answer26
viewsA: I need to know how to achieve inheritance in my python program
As you can see, in your class Pai, you have only one attribute in the constructor, the attribute nome, then your call in class Filho should pass only this attribute. class Invocador(PersonagemP):…
-
0
votes1
answer29
viewsA: Lavravel cannot find the file to download
When you search for a file on Laravel, it will always leave the folder public, how are you keeping in storage, it is only necessary to return a folder first of all. Following example: public static…
-
0
votes3
answers563
viewsA: Pass view data array to Laravel controller
It is possible to transform the array on an object and pass it. // Exemplo em JavaScript var arraySelecionados = {selected: [1, 2, 3, 4]}; axios.post('nome/da/minha/rota', arraySelecionados) ...…
-
0
votes2
answers42
viewsA: Laravel: Missing field error in SQL even passing field
Like the field dat_documento was not created as nullable, you need to add the field in the variable protected $fillable.
-
0
votes2
answers155
viewsA: Remove 1 day from a specific date
Could use the function DATEADD if you are using SQL. AND ped_data BETWEEN '2016-01-01 00:00:00' AND DATEADD(dd, -1, '2020-03-31 23:59:59') Where dd means Day, and -1 means you will subtract 1. Or if…
-
1
votes2
answers365
viewsA: Javascript - How to add things to html and save html information
To add a new item, you can search the function appendChild if it is pure Javascript, or append if you are using jQuery. Have a nice example in English here. And to take the data from the fields, you…
javascriptanswered ThRnk 252 -
0
votes1
answer32
viewsA: Python "take not Arguments" error
I believe that the error in your code is only the function "init". It is only with 1 underline on each side. The class constructor in Python is __init__. Edit1: Around line 45, there is an error in…
-
0
votes1
answer104
viewsA: Discord.py error in client.send_message(), need help
I found a similar problem: https://stackoverflow.com/questions/59333157/discord-py-send-message-to-channel I took the following test: mensagem = (f'============BEM VINDO AO DISCORD DA GUEEG GAMING,…