2,205,732 questions
0
votes
0
answers
34
views
How to correctly compare two encoded jwt refresh tokens
I using jwt in fastpai app, and when I create access and refresh tokens on user login I also create user session for specific user id in database, so as I understood I need to encrypt refresh token ...
Advice
0
votes
5
replies
48
views
Python Libraries Issue
I remember back in the days of only being able to pull in libs in a certain order, otherwise the code would not link. This was due to brainless Linkers. Today, libs for Python (under Win11) reminds ...
0
votes
1
answer
34
views
Why do I get IndexError when updating a tracking matrix inside a recursive DFS function? [closed]
I am trying to implement a Depth-First Search (DFS) algorithm to find paths in a grid graph and update a tracking matrix. However, I keep encountering an IndexError: list assignment index out of range ...
1
vote
1
answer
52
views
Is there a way to perform calculations in log10 scale, and show the results on a linear scale with a seaborn boxplot?
My data represents the number of items/km2, and is split between different regions. My dataframe looks like this :
n_items
region
28741
region_1
192
region_1
3856
region_2
12345
region_2
0
region_3
...
-1
votes
0
answers
28
views
How to handle warped or tilted images in JSON coordinate-based OMR grading? [closed]
I am currently developing an OMR (Optical Mark Recognition) sheet grading system.
My Current Approach
I set up a template system that maps fixed coordinates stored in a JSON file to detect and crop ...
Tooling
1
vote
7
replies
88
views
Can anyone tell me how I could do this?
I need to build an AI agent, preferably in Python, that performs end-to-end testing of a web application. The idea is that the agent can automatically explore the web app, generate its own test ...
1
vote
1
answer
49
views
Extracting data from SharePoint Excel Files into single DataFrame
I'm looking to extract data from Excel files stored in SharePoint, all with the same schema, into a single DataFrame.
Currently, the below seems to work (once constants are filled in), but it's quite ...
Advice
0
votes
6
replies
58
views
Get reference to Caller from Callee
Is there some built-in way in Python to get a reference to the ‘Callers’ instance? We know this must be stored in Python somewhere otherwise it wouldn’t know where to send the the return value to. ...
2
votes
1
answer
112
views
My restuarant web-scraping program for google maps only returns an empty string array. How can I fix this issue?
I'm working on a project where my program take restaurant details (name, location, prices, rating, etc) from google maps then add them to SQL database on python. I was testing the code to see if it ...
Best practices
0
votes
1
replies
39
views
Logout from Azure SSO without redirect
I have an Amazon Cognito user pool with Azure AD federated as an OIDC identity provider, using the Cognito Hosted UI and the authorization code flow. My app starts login by redirecting to:
https://<...
Best practices
0
votes
0
replies
31
views
what are minimum image per class requied for max efficiency for efficientnet-lite0 and mobilenetv2 models
I am working on an image classification project for plant disease detection using transfer learning models such as MobileNetV2 and EfficientNetLite. My datasets include 11 classes for maize diseases ...
Advice
0
votes
1
replies
25
views
Seeking advice on audio-to-audio alignment for Remix/Original MV lip-syncing
I am building a tool for DJ mixes that automatically synchronizes the official MV of an original song with a remix version (mp3). The goal is to perform lip-syncing for the vocal sections and switch ...
Advice
1
vote
8
replies
205
views
aerospace engineer new to programming, need guidance
Sorry to bother. I’m currently a second-year Aerospace Engineering student, and I’m looking for some guidance on how to properly restart my programming journey and pivot my career goals.To give you ...
1
vote
0
answers
45
views
How to control the depth range of rectangle select with VisualizerWithVertexSelection in Open3D?
In this Python 3.14.6 script with Open3D 0.19.0:
import open3d as o3d, numpy as np, os
os.environ['XDG_SESSION_TYPE'] = 'x11'
pcd = o3d.io.read_point_cloud(f'test.ply')
vis = o3d.visualization....
1
vote
0
answers
65
views
MATLAB imwarp() & Python cv2.warpAffine(). Matching Images but not equal grayscale values
I am currently trying to replicate the process of warping an image in Python in MATLAB. I am currently able to use MATLAB's imwarp() to match my warp image in Python that used cv2.warpAffine(). When I ...