2,207,472 questions
0 votes
0 answers
30 views
How to write EXIF data to JPG files using Python's PIL module?
Using PIL.Image version 7.0.0 with Python 3.8 on Ubuntu 20.04, I face a problem while writing the EXIF data to a new file. I try to use (possibly slightly modified) EXIF-data (i.e. tag 306 "...
Advice
0 votes
0 replies
33 views
Understanding the Wikipedia Laplace expansion code
While studying up on Laplace expansion for a graphing class I saw code on the wikipedia page for a function that finds the determinant of a matrix using Laplace expansion written in Python (The code ...
-1 votes
0 answers
47 views
Python FastAPI app cannot log in to Gmail SMTP server. Getting Bad credentials
I have an app password created by Google Mail (16 characters) trying to send an email through smtp.gmail.com. Here is the Python code am using: def send_html_email(to_email: str, subject: str): &...
0 votes
0 answers
35 views
Run a batch file after python program is compiled into an .exe file
I have a Python tkinter app that will create and run a batch file after the tkinter window closes. This works fine as a .py file. However, when I compile the app using pyinstaller as a onefile .exe ...
0 votes
1 answer
51 views
Textbox formatting improperly
I am trying to get my textbox to take up a majority of the bottom row of my screen, and the scrollbar to take up just the very right side. But currently, my code is causing the textbox and scrollbar ...
-1 votes
0 answers
42 views
Show image as Tooltip
I want to use an image as a tooltip. I don't want text in the tooltip. I want the image to be shown in its entirety in the original size. The image is the same as is already shown in the column. How ...
0 votes
0 answers
21 views
Why does StaticLiveServerTestCase breaks fixtures when dynamically generating tests beside TestCase does not?
Long question with MCVE included. Goal I want to challenge the StaticLiveServerTestCase for multiple user flows. The strategy I will use is: Writting test mixins for business logic mixins in the code ...
Best practices
0 votes
3 replies
68 views
Retrieving data such as impressions for each share for each day
I am stuck on this for quite some time, and the API guide lines are not helping. I am trying to retrieve impressions, viralImpressions, clicks etc from shares. I have all rights neccessary. I have ...
4 votes
1 answer
73 views
Fixing plotting artifacts
How to fix these kinks in the norm_pan and norm_tau curves? I tried using a quite high resolution and logarithmic spacing when defining t, but this did not fix the problem. import numpy as np import ...
1 vote
1 answer
53 views
Low Transposition Table Usage Rate
I'm currently learning to make a Gomoku ai script that uses minimax algorithm along with alpha beta pruning and other methods to improve performance. In this current state, I've implemented a ...
0 votes
0 answers
33 views
How to extract fingerprint features from a regular image (Flutter / Python) for WSQ conversion?
I’m working on a project where I need to process fingerprint images and convert them into WSQ format. So far, I already have a working script that converts an image into WSQ format. That part is fine. ...
-1 votes
0 answers
51 views
OpenAI gpt-5-mini with_structured_output returns malformed JSON filled with whitespace instead of valid response
I'm using LangChain's ChatOpenAI.with_structured_output() with gpt-5-mini to classify user intent into a Pydantic model. Intermittently, the model returns malformed JSON — the response starts with a ...
0 votes
0 answers
37 views
How to apply wall-collision on Flutter app with plugin?
i am working on a project of my own which is based on (Nvidia instant NeRF mesh models) im using flutter app for the frontend, the problem that im facing is how do i detect wall collision on mesh ...
0 votes
0 answers
40 views
Value Error raised by hdf5 for insufficient precision reading H5T_IEEE_F64LE
Recently I faced an issue while reading HDF5 files using h5py-3.16.0 and python=3.10 version on a linux cluster. The data was generated by the same versions but on local macos. Inspecting the datatype ...
-2 votes
0 answers
82 views
Python re search all multiline blocks in text
I have a text with SQL queries from which I want to extract all the SELECT blocks: sql_que = """ select p.value_n, p.enabled from proper p; select p.value_n, p.enabled from ...