Relative Content

Tag Archive for javascriptpythonhtmlcss

how to secure your website or app from hackers

i want to make sure that my users information are safe from hacking. I want to know how to store my clients information that is what i real want to know, please if you know anything about it answer it. thank you so much for the help

How DSA helps me Web Dev.?

I learned Python and also DSA in Python. So after doing DSA in Python how will it help me in Web Development, after doing HTML CSS and JS should I go for React? How will learning React help me in web dev

peldafeladat blathy otto vizsga

class DayLog: __start = “” __end = “” __distance = 0.0 __cost = 0.0 __transfer = 0.0 __recalcost = 0.0 def __init__(self, start, end, distance, cost, transfer): self.__start = start self.__end = end self.__distance = float(distance) self.__cost = float(cost) self.__transfer = float(transfer) def Itinerary(self): return f”{self.__start} – {self.__end}” def Distance(self): return self.__distance def Cost(self): return […]

Multifactor authentication

i developed a access control with MFA. the problem is that the mfa is regarding the correct mfa code as incorrect

AI voice chatbot I built using HTML, CSS, Javascript and Python

New on this platform and a newbie to programming in general. Don’t know if anyone can help me with the following. I managed to build a simple ai voice chatbot that I can place on a website. You can open and close the chat window via the chat icon or descriptive tooltip next to it. It’s powered by OpenAI Whisper and GPT 3.5 Turbo. I found this to be a good combo when it comes to the cost. But you can swop out 3.5 turbo for Groq, but I did find the responses sub-optimal compared with 3.5 turbo. The bot works fine in voice and text, but I have encountered a few problems I cannot seem to solve. Firstly when you talk or text the bot and it starts it’s speech recognition and playback of the output.mp3 audio file, you can open and close the chat window via the chat icon or tooltip which enables the buttons. This allows the user to tap the buttons and interact with the chatbot while it’s busy with speech recognition or audio playback. In doing so the bot responds to it’s own speech or doubling up on the user’s text input or speech, layering everything on top of each other and creating an incoherent mess. I managed to sort out the problem when the bot is listening by introducing the isListening variable into the toggleListening function. Can someone look at the code and help me fix it so it works as it should. Here’s the index.html which is the frontend and the app.py which is the engine running the backend. I should also highlight that the problem is in the frontend, not the backend. The backend is working as it should:

how to switch the background using css buttons

I have a dark theme and a theme toggle button. I want the image to become darker when clicking on the button from the “light” theme to the “dark” one. How do I do this? Help please.

Need help on why my website isnt functioning as intended

i am making a a prank game of spin to win for my friend’s upcoming bday
however, i seem to be running on a lot of problems for my code
i used python as backend and html css js as frontend and used flask to make sure the website runs the python code
however the problem is that neither the website nor the code is running as expected
it needs to be spin multiple times to get one result
it gives result of values whose probability i have set to 0
and it frequently gives 40 and 50 as answer even tho the values with highest probability are 10 and 20
the values are 10, 20, 30, 40, 50, 60, 70, 80, and 90 by the way