Posts by dani • 173 points
24 posts
-
-1
votes1
answer73
viewsQ: Emit not working
code father: <template> <div class="col-6"> <span @changeTitle="changeTitle($event)"> table -[{{title}}]</span><br> <ModalRegistert /> </div>…
-
0
votes1
answer259
viewsQ: Insert icone into a table
I have the following code in a file . Vue: <template> <div class="col-6"> <ModalRegister/> <div class="col-12"> <b-table hover :items="rowData"></b-table>…
-
0
votes1
answer44
viewsQ: simple.Jsonarray for json.Jsonarray
I have a problem. In the same code, I kind of need to use both simple.Jsonarray and json.JSONArray. I can’t import both, so I’m trying to use the simple. It turns out that when I do a request, the…
-
0
votes1
answer138
viewsQ: Trigger which arrow default value for a field
follows the statement: If the employee department code is not Insert or if it does not exist in the table , assign to it the value standard 20; And I made the following code: create or replace…
-
-1
votes1
answer596
viewsQ: Request sending json
I’m trying to make a request for the python. Follow what I’ve tried: url = 'http://localhost:8080/detection/' headers = {'charset': 'utf-8'} response = requests.post(url, json=data, headers=headers)…
-
1
votes0
answers11
viewsQ: send a message to
The Rabbit connection was made correctly, it is working. If I create a queue without vhost, I can send messages normally. The problem is when you are inside one. No error, just don’t send anything…
-
1
votes1
answer55
viewsQ: Post with jquery
My python endpoint is working perfectly, I’ve done tests using Postman. The problem is when Javascript will call the method Follow my Javascript code: $("#Submit").click(function() { var info =…
-
1
votes1
answer49
viewsQ: download by changing href dynamically
I’m hoping that by clicking the download button, js will access the endpoint that has the correct file path and start the download. What I did until it works, but it turns out he’s always "late".…
-
0
votes2
answers241
viewsA: Tkinter - pass argument to function
I managed to solve the problem. putting a lambda on the line self.btnMessage["command"] = lambda: self.printMessage("Olá!")
-
0
votes2
answers241
viewsQ: Tkinter - pass argument to function
I have the following code: class Tela: def __init__(self, master=None): self.fontePadrao = ("Arial", "10") master = Toplevel(self.root) self.primeiroContainer = Frame(master)…
-
0
votes0
answers107
viewsQ: Leave the select colored
I have the following select: <select> <option>opção1</option> <option>opção2</option> <option>opção3</option> <option>opção4</option>…
-
-1
votes2
answers115
viewsQ: Insert an option in select in a particular Window
I have the following select: <select id="selectChannelCam" class="custom-select"> <option value="" disabled selected>Selecione</option> </select> As you can see, it has only…
-
2
votes3
answers356
viewsQ: insert into the dictionary
I have a dictionary in javascript: var dict = {} And I need to insert a value inside it. I tried to use dict.add("chave":"valor"); but it didn’t work. How can I add a new key/value inside the…
-
2
votes2
answers69
viewsQ: enable option in select
I have the following select: <select id="selectChannel" class="form-control form-control-sm custom-select"> <option value="" disabled="disabled">Selecione o canal</option>…
-
1
votes1
answer57
viewsQ: Dynamically create div
In the JavaScript I have the following excerpt from the code: var html = ` <div class="row"> <div class="col-sm-3"> <div class="fields"> <div class="input-group input-group-sm…
-
4
votes4
answers6855
viewsQ: Execute function when losing focus of an input
I have a normal html input: <input type="text" class="form-control" style=" width: 20%" id="hLane1"> </input> To make it run an event just use the event click But what if I need to…
-
1
votes1
answer135
viewsQ: take data from a given line
I have a table. In each row there is a button. At the time the user clicks, I need to get all the data of this line. It is a common table, where data is inserted dynamically, along with the button.…
-
-2
votes1
answer51
viewsQ: Only seconds on input
How do I make it possible to select seconds in the input? I don’t need the hours or the minutes, just time to seconds
-
2
votes0
answers29
viewsQ: Problem while deleting a file
I made a small log manager. It’s for something simple, so how is it fit. every day I want to delete and generate a new one, but my code is showing the following error: The file is already being used…
-
0
votes0
answers34
viewsQ: update postgre going wrong
Follows the code: def update_table(file_name, id, column1, column2): conn = connect() c = conn.cursor() today = str(datetime.datetime.fromtimestamp(int(time.time())).strftime('%Y/%m/%d/')) query =…
-
0
votes1
answer43
viewsQ: Insert with Where where I don’t have full value
Example, I already have in the table the following value in the column NUM_IMPRESSAO: K3244.K1019706.FSJC.08915 The new value I want to insert has only the last 4 digits (08915) and I need to insert…
-
0
votes0
answers99
viewsQ: I can’t use Schedule
I’ve already executed the command pip install schedule and the pip3 install schedule but when I try to import Schedule import schedule The following error appears: Modulenotfounderror: No module…
-
0
votes0
answers39
viewsQ: Move files in Python
I researched, and I saw people doing like this: import shutil shutil.move("este-arquivo", "/tmp") So I did it here in mine: import shutil shutil.move("arq.txt",…
-
1
votes0
answers61
viewsQ: Code problem - SQL Developer
The following tables present error: CREATE TABLE REQ_ROB_EQP ( REQ_PER_ROB_ID NUMBER, REQ_EQU_NOME VARCHAR(100), CONSTRAINT REQ_ID_NOME_PK PRIMARY KEY (REQ_PER_ROB_ID, REQ_EQU_NOME) --CONSTRAINT…