Category "python"

SQL syntax problem-- escaping single quote and percentage sign

I am trying to do an online course on Cybersecurity and one of the problems is trying to preform an sql injection. I have not been able to figure it out because

OpenCV - Calculating SIFT Descriptors for given Harris Corner Features

I need to calculate the SIFT descriptors for given features from the Harris Corner detection in OpenCV. How would I do that? Could you provide me some code exam

Why does using salted hash on python and php give me different results?

I ran into a problem in translating code from PHP to Python. Initially, there is a PHP code that creates a salted hash of a password with verification, and this

Why QGraphicsGridLayout doesn't handle row and column placement of items placed on a scene?

So far, I have the following code: p1 = QGraphicsWidget(self.scene.addItem(QGraphicsPixmapItem(self.pixmap))) p2 = QGraphicsWidget(self.scene.addItem(QGraphic

extract all items in Google map search first page

I'm interested in Google map scrapping through Python and selenium. I want to scrap all the leads for a specific search. In the first page 20 leads are displaye

QToolbar.children() lists children in order of addition/insertion, not appearance

The QToolBar method insertWidget(QAction, QWidget) does correctly insert the widget at the intended place, but QToolBar.children() (actually QObject.children())

Old script using graphics.py crashes in pycharm and returns "Object Currently Drawn" error

Years ago I took a "Python for gaming" class and made a little game using graphics.py as the class final. The program has interactions based on mouse clicks, us

Keras loss value significant jump

I am working on a simple neural network in Keras with Tensorflow. There is a significant jump in loss value from the last mini-batch of epoch L-1 to the first m

How to save feature values extracted from images in csv format using python?

I have extracted some features from images and now I want to save these values in csv file. I have searched some links like (When using OpenCV's 2D feature dete

How to get exact value of a token with Web3.py on PancakeSwap? Function getAmountsOut() returns a wrong value

Good day everyone, I'll try to be as clear as possible. I was trying to get the price of s**tcoins using web3.py and, after solving many problems, I'm stuck on

Pygame mask collisions not detected

I know there are several questions about collisions but I can't understand how to do it, the mask of the two objects are created correctly (if I show the two re

ModuleNotFoundError: No module named 'kivymd.uix.pickers'?

I'm XDoanh - A newbie in stackoverflow, I have a problem that need your answer: The current versions of kivy and kivymd that I am using are the latest versions

Open source html and css

Is HTML or CSS open source like PHP or Python? For example PHP itself: PHP source link in GITHUB

Complex interpolation for Isotopic data

I have another question, is there a package that interpolates precipitation data taking into account mountains and oceans? I have so far used Numpy and Basemap

Django filtering on a queryset not working

I am trying to add a filter on an existing queryset based on a condition but it doesn't work. This works queryset = None if self.is_instructor =

How to get the code returned by Cognito Hosted UI Autentication in Django?

I want to implement the Cognito Hosted UI for some users in my Django application. I have successfully been able to redirect the users to the desired url for au

Labmap.pbtxt file creation

I am trying to create my labelmap.pbtxt, but the file is not created. Here's the code Train_Annotations_Path = "C:/Users/JAAD_dataset/Workspace/annotations/Anno

Open 3D issues creating a 3D mesh

I am trying to create a 3D mesh in Open3D given a set of 3D points. My code is the following: pcd = o3d.geometry.PointCloud() pcd.points = o3d.utility.Vector3dV

libssl not found by Python on Ubuntu 22.04

As the title says, I've just upgraded to Ubuntu 22.04 LTS and my previously working setup now says ImportError: libssl.so.1.1: cannot open shared object file: N

Deeplearning with Python Tensorflow,Keras

I am writing masters thesis about deeplearning and have a problem probably about library. Below is the error: AttributeError: module 'tensorflow.compat.v2' has