Category "python"

Importing Graphs from external simulating software to Word Document

I looking to automate the process where I am supposed to the run the simulation to study around 100 different charts, and then exporting them to the word file.

OSError: /usr/lib/libyara.so: cannot open shared object file: No such file or directory

I have some issue trying to run Volatility 3 Framework. git clone https://github.com/volatilityfoundation/volatility3.git cd volatility3/ python3 vol.py ../ramd

RuntimeWarning: unknown response content type 'text/html' returning raw response

I tried to use apache jena fuseki in my python code so I found this: https://sparqlwrapper.readthedocs.io/en/latest/main.html I followed the first example and h

Pygame: AttributeError: 'pygame.Surface' object has no attribute 'display'

Code: import pygame, sys, os from pygame.locals import * red = (255,0,0) pygame.init() window = pygame.display.set_mode((1000,600)) pygame.display.set_caption

using python variables with bash magic in jupyter

I would like to run bash commands in jupyter notebook using the %%bash magic command and pass python variables. As described in this post I can do this as follo

Argument parser object does not contain attribute defined in parser

I am working on a program that works on hyperspectral image super-resolution by using Neural Networks, Now in here the Mains directory of the program contains m

Getting an R Notebook to work in Jetbrains Dataspell

So I am just starting a data science/stats class and I am trying to setup a R notebook within Dataspell I am able to create a Jupyter notbook but it only wants

Custom metric for Face Alignment model, using Tensorflow 2.5

I want to add a Normalized Mean Error (NME) metric to model using TF. The NME is commonly used in the evaluation of the face alignment tasks. For that, I use th

remove consecutive substrings from a string without importing any packages

I want to remove consecutive "a" substrings and replace them with one "a" from a string without importing any packages. For example, I want to get abbccca from

How to bypass SSL pinning of Android Apps?

I want to bypass the SSL pinning of Android apps. I was able to Bypass SSL pinning using an app "NetCapture" but now I want to do it in Python or any other way

How to embed an image in to a cell of a Plotly go table?

I've seen here that you can use DashTable to allow Markdown in a plotly table like so, app.layout = Div([ DataTable( columns=[ dict(name

How to create a watchlist with python using the TD Ameritrade api?

I hope there is someone that can help me with this error i'm having problems with. I have seen many post here about this api and have read almost everything I c

Error "Trying to re-register the builtin cmap 'cubehelix' when trying to import the python module "yt"

I installed the Python package yt simply through pip install yt. When I tried to import it, it returns the following error message: Traceback (most recent call

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