Posts by Zé Reis M. Olliver • 372 points
21 posts
-
1
votes3
answers104
viewsA: How do I make Python not turn to the upper or lower case letters of the code?
One way to solve this issue by keeping your code would be as follows, using the function capitalize() while(1): x= input('Meu avô tinha dois cachorros, um se chamava Pet e o outro se chamava Repete,…
-
0
votes1
answer125
viewsA: PYAUDIO INSTALL ERROR
Try installing the module first pywin pip install pipwin And then run the following command pipwin install pyaudio Okay, probably the module pyaudio now it will work!…
pythonanswered Zé Reis M. Olliver 372 -
3
votes2
answers72
viewsA: Logic (if,Elif,Else) with python error
Try as follows, replacing the comma by stitch and turning into float! def get_status(df3): if (str(df3['Forecast RELEX']).lower() == 'nan' and str(df3['Forecast']).lower() != 'nan'): return 'Subir'…
pythonanswered Zé Reis M. Olliver 372 -
2
votes3
answers59
viewsA: How to change closed name and red color by open name and blue color when clicking on name?
You can use Jquery and it will look like this <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>…
-
1
votes3
answers43
viewsA: personal as I add an image in the background by javascrip?
You can do it this way var tempoVerficacao = 3000; setInterval(function(){ var d = new Date(); var hora = d.getHours(); if(hora == 22){ document.getElementsByTagName("body")[0].style =…
-
0
votes1
answer22
viewsA: How do I leave an active <div> only for one screen size? For example: only in 750px does it become active (I’m a beginner)
You can use jquery and do it as follows <div id="pixel" hidden="true"> <a href="https://www.instagram.com/p/CKBoR2ZDlwL/" target="_blank" rel="external"><img…
-
2
votes1
answer38
viewsA: How can I make a Python timer that at the end of the timer emits any sound?
You can use winsound and specify the sound you want import winsound import time def tempo(): time.sleep(3.0) winsound.PlaySound('C:/Users/usuario/Downloads/sound.wav',winsound.SND_ALIAS) tempo()…
pythonanswered Zé Reis M. Olliver 372 -
0
votes1
answer26
viewsA: I would like to understand how by a check js to confirm Butão
You can use jquery and leave it as follows <div class="card-tools"> <button type="button" id="button" class="btn btn-tool" disabled="True" data-card-widget="collapse"> <i class="fas…
-
2
votes2
answers140
viewsA: How to generate repeated guesses for the mega sena game?
Hello you can do as follows from random import randint def gerar_seis_numeros(): numeros = [] while len(numeros) < 6: # Executando o random x = randint(0, 60) # verificando se o numero existe na…
-
1
votes1
answer113
viewsA: Primeng grid does not work
Grid Is Obsolete in Angular Primeng instead use Flexgrid Install Flexgrid npm install primeflex --save Add the in your "Styles" of the.json angular file "node_modules/primeflex/primeflex.css" and in…
-
0
votes1
answer44
viewsA: Am I Connecting to Database Correctly?
Here is the file of your form with some adjustments, change the button to type="Submit" and make sure that the extension of your file is with . php <form id="my-form" action="envia.php"…
-
2
votes1
answer38
viewsA: configure inputs and label with css
Just Remove the css properties and it will look the way you want it to look <div> <h2>Em outros jogos, qual seu estilo de personagem/jogada favorito?</h2> <input type="radio"…
-
-1
votes3
answers64
viewsA: Python checking if the number is Float
# Criando Looping while True: try: # Caso usuario não digite um numero float gera uma exceção e executa a solicitação novamente x = float(input("Digite um…
-
-1
votes1
answer284
viewsA: Consuming API with Nodejs
//Parsea os dados const jsonParse = await JSON.parse(response.data) //Acessando Propriedades do Json Retornado res.json(jsonParse['results'][0]) //Ou se…
-
0
votes1
answer112
viewsA: Node.js - problems with async/await in a setInterval()
Hello, I made an example I hope to help you, assimilate your function in this same way that will probably solve your problem const express = require('express') const app = express()…
-
2
votes3
answers61
viewsA: How to make the site respond to text? Ex: user X: "hi user X" if not this user "hi unknown user"
Hello You can do as follows, I hope to have helped. <!doctype html> <html> <body> <input type="text" name="text" id="text"/> <input type="button" name="button"…
-
0
votes1
answer737
viewsQ: Socket Disconnect Nodejs
Hello I have a socket in which when I run the command socket.disconnect() it return me Disconnect is not a Function, what could it be ? I have tried several ways to disconnect and none solved my…
-
0
votes1
answer96
viewsA: Query sql nodejs loop
The query would basically look like this by removing the repeat loop exports.getValueMsg = function() { return new Promise((resolve, reject) => { pconn.pool.query("SELECT b.numero_serie,…
-
0
votes1
answer74
viewsQ: Duplicate Data Loop Query Nodejs
I’m having a problem with a loop loop on node js, this is the query exports.getValueMsg = function() { return new Promise((resolve, reject) => { pconn .pool .query("SELECT b.numero_serie,…
-
-1
votes1
answer96
viewsQ: Query sql nodejs loop
Hello I’m with a doubt I think they could help me, to some problem in running a function twice in the same script example have this function exports.getValueMsg = function(){ return new…
-
1
votes1
answer149
viewsQ: Node js loop Time
I am performing these functions below in a for. The functionality is almost doing what I wish, but I wonder if it would be like after running const q = await clientOut.write(p[i]), wait at least 3…