Ephes Blog

Miscellaneous things. Mostly Weeknotes and links I stumbled upon.


Python String Capitalization

, Jochen

I frequently copy titles from websites to use as anchor texts for links. However, these titles are often in all caps, and I don’t want to seem like I’m shouting. Previously, I would paste the all-caps title into a Python REPL, convert it to lowercase, and then manually capitalize the necessary words to make it look like a proper title. But today, I discovered a much simpler built-in solution:

>>> print("THIS IS A LOUD TITLE".title())
'This Is A Loud Title'

I had no idea about this function! 😅


Weeknotes 2024-06-17

, Jochen
oh: neurotypicals should really learn to mask better. I know you want to talk about the weather but please just pretend you have a favorite lizard or something, it's not that hard --nota

It was a normal, almost boring work week. For open source, I released a new version of django-cast, now compatible with Wagtail 6.1. The fix turned out to be surprisingly simple: just define window.chooserUrls = {} before using it like this window.chooserUrls.audioChooser = '/cms/audio/audio/chooser/';.Perhaps some Wagtail JavaScript defined window.chooserUrls previously, and version 6.1 no longer does this? Additionally, I added cover images for blogs. For episodes the podcasts iTunes artwork is used as a fallback when a cover image is missing. But what about normal blog posts? And even for podcast episodes, the iTunes artwork might not be appropriate in every situation. Adding a cover image to the blog makes the behavior consistent. I also fixed a bug, where the Podlove player stopped working after HTMX navigation. Finally, I discovered the cause of the mysterious "DataError: PostgreSQL text fields cannot contain NUL (0x00) bytes" errors in the logs. It seems that Wagtail APIViewSets don't validate user input properly.

And then we caught a stomach bug that ruined our weekend.

Articles

Videos

Weeknotes

Fediverse

Software


Weeknotes 2024-06-10

, Jochen

If you want to do good, make sure the people who tell you you're doing good are actually good. --Chris McDonough


It was a busy work week, leaving little time for anything else. I did manage to procrastinate a bit by diving deeper into the Rust programming language. I might even write a small game - let's see how it goes. Voting this time didn't feel great at all. This is not going to end well.

Articles

Software

Fediverse

Out of Context Images


Weeknotes 2024-06-03

, Jochen

A bad metaphor is like a wet carrot --donni saphire


Short work week. Didn't get anything done besides work because I was sick more than half of the week.

Articles

Videos

Weeknotes

Fediverse

Software

Out of Context Images


Weeknotes 2024-05-27

, Jochen
OH: “Or, as Randall Munroe once said: «This quote is taken out of context»” --hukl

Normal work week, nothing to see here. Fixed a nasty bug in django-cast. Having a lot of state attached to the feed instance in combination with caching caused posts from blog A to be served to the feed of blog B 🫢. Big thanks to Niklas for reporting this. Johannes also pointed it out and, to add insult to injury, suggested I switch to his static site generator for blogging. If there's any truth to the sunk cost fallacy, it's too late for me now. That ship has sailed. Managed to release an update for django-cast with some additional fixes. Notably, I had to pin “wagtail < 6.1” again because I found out that the audio and video chooser are now broken, and fixing them seems quite challenging.

Over the weekend, I went to watch a kids’ bouldering competition because of reasons.

Articles

Fediverse

  • The pencil test | What really creeps me out isn’t that we’re great at imagining non-conscious things as people - that’s just a harmless quirk. It’s that we might be just as mistaken about actual people, and we’re stuck in a cosmic horror plot.
  • I brought beer! | Webcomic
  • Git cheat sheet by Julia Evans | Oh, this is great. Can't wait for the "How Git Works" article! 🎉

Videos

Software

Out of Context Images