Stefan Behrens | Mathematician | Deep Learner
  • Home
  • CV
  • Math/Research
  • Code/Projects
  • Blog
  • Links
    • Google Scholar — publications and citations
    • zbMath — publications, citations, and reviews
    • ar\(\chi\)iv — preprints
Categories
Annoying Precision
Audio Coding
Data Analysis
DSP
JavaScript
Jupyter
LaTeX
Little Tricks
Machine Learning
Math
matplotlib
Python
Quarto
sb4dfritz
SQL
TDD
Webdesign

Blog

Creating a Lossless Audio Coder in Python, Part 1

Python
Audio Coding
This post is the start of a series on lossless audio compression. The Free Lossless Audio Codec, better known as FLAC, is arguably the most common point of contact with this…
Nov 11, 2025
Stefan Behrens
 

Audio Signal Processing in Python: Panning and Stereo Width

Math
DSP
Python
TDD
Annoying Precision

In this post I’ll go into the math of panning mono audio signals and stereo width adjustment. Then I’ll demonstrate test driven development by implementing the mathematical aspects in Python. This is also the first part of a series of posts which I like to call “Annoying Precision” where I will go into abstract mathematical underpinnings of common techniques used in applied fields such as digital signal processing or deep learning.

Oct 6, 2025
Stefan Behrens
 

Talking to AMV FRITZ!Box Routers in Python

Python
sb4dfritz
Ever wondered how you can get Python to communicate with your AVM FRITZ!Box router? So have I. In this post I will discuss example implementations using both the TR-064 and…
Sep 10, 2025
Stefan Behrens

Fixing a Database Using Machine Learning

Python
SQL
Data Analysis
Machine Learning
I use a combination of SQL, data analysis, and machine learning to fix faulty entries in the database of my workout tracking app.
Sep 9, 2025
Stefan Behrens
 

Reloading imports in Jupyter Notebooks

Python
Jupyter
Little Tricks
This is another short post mostly written for me to remember something. When working on a Python library, I like to have a Jupyter Notebook for testing. However, by default…
Sep 1, 2025
Stefan Behrens
 

Loading “formattble” strings from plain text files

Little Tricks
Python
I was recently playing around with generating HTML or LaTeX files using Python. For that purpose, it’s often conventient to use “formattable” strings with placeholders (eg. {…
Aug 22, 2025
Stefan Behrens
 

That relative imports hack for Python scripts

Python
Little Tricks
I need to write this down so I don’t forget it again. I’ve been struggling with “relative imports” in Python projects in VS Code. Here’s the problem.
Aug 22, 2025
Stefan Behrens
 

Made a website using Quarto

Webdesign
Quarto
Well, I made another website. You’re looking at it right now. While I’ve fumbled around with the good old HTML/CSS/JavaScript combo before, I’ll openly admit that I’m no…
Aug 15, 2025
Stefan Behrens
 

Custom LaTeX Commands in Quarto Pages

Quarto
LaTeX
JavaScript
This is companion post to this one where I wrote about using custom LaTeX commands in Jupyter notebooks.
Aug 9, 2025
Stefan Behrens
 

Custom LaTeX Commands in Jupyter Notebooks

Jupyter
LaTeX
As a mathematician I’ve been using LaTeX for a very long time. Over the years I’ve gotten used to a number of custom macros. Now that I’m using Jupyter Notebooks more and…
Aug 5, 2025
Stefan Behrens

Changing the default figure size in matplotlib Pyplot

Python
matplotlib
Little Tricks
I often use matplotlib’s pyplot for quick plots while I’m trying things out in Jupyter Notebooks. I’m rarely ever happy with the default size of the plots and it gets…
Aug 1, 2025
Stefan Behrens
No matching items
 

© 2025 Stefan Behrens | Content licensed under CC BY 4.0
Code licensed under the MIT License