Ferdinand Keil's

electronic notes

Articles in the "Today I Learned" category

Jan 29, 2022

Quickly Serve a Local Directory

When working on HTML files some things won't work if they're just opened from the local hard-drive. The solution is to present them to your browser through some kind of webserver. Setting up a proper webserver like nginx or Apache would be overkill here.

But if Python is available in …

Okt 12, 2021

Breaking up Exceptions

These days I stumbled upon a weird problem where a Python script of mine would silently fail to save some data to a file. Turns out you can suppress exceptions in a loop with break 😧.

Let me start by outlining what I was trying to achieve: I have a process …

Mai 26, 2020

Next → Page 1 of 4