Ephes Blog

Miscellaneous things. Mostly Weeknotes and links I stumbled upon.


Weeknotes 2022-12-12

, Jochen
Due to personal reasons, I've decided to replace my hair with snakes & turn people who stare at me into stone. @roxiqt@mastodon.social

Had a stressful week due to private turmoil and couldn't get anything done.

Articles

Videos

Weeklogs

Mastodon / Twitter

Software

Podcasts

Out of Context Images


Weeknotes 2022-12-05

, Jochen
my work is terrible, and if *you* like it, well that says more about you than it does about me @carnapping

Worked the whole week with sick kids at home and finally got sick, too. Using the new Wagtail-based django-cast in production revealed lots of little bugs I tried to fix:

  • Fixed the title tag for post detail pages - thanks to Johannes for reporting this
  • Fixed gallery.html images to link to the original image source image (not relevant for this site, but sometimes relatives are trying to print out photos, etc: now they get at least a fair chance to print decent-looking images)
  • Lazy loading for gallery images (the image sizes are not quite right, yet this is just a mitigation)
  • Increased Gunicorn timeout to 10 minutes -> it's now possible to upload big videos
  • Fixed the size of the feed logo for my homepage (the python-podcast logo is inside a javascript blob called subscribe button, I have no idea how to put a size on that)
  • Upgraded from raven to sentry_sdk for my homepage and python-podcast (depleted my sentry transaction immediately, I have no idea why)
  • Fixed traefik config for mastodon: removed the separate config file for streaming
  • Fixed x-forwarded-for logging for Gunicorn for django-template, homepage, and python-podcast.de
  • Updated bootstrap and jquery for my homepage and python-podcast, removed popper
  • Added Plausible to my homepage and python-podcast (my own analytics stuff is still broken, maybe someone fixed this in the meantime by providing a suitable SaaS?)
  • Fixed a small bug in django-cast causing wagtail preview to fail

Merged a PR to my little kptncook command line scraper. More about this in Kptncook and Mealie.

Articles

Fediverse / Indieweb

Seems this should get its own category by now 😎.

Twitter / Mastodon

Software

Podcasts


Weeknotes 2022-11-28

, Jochen

Did some cleanup after switching to the new wagtail-based django-cast for my homepage and python-podcast.de. Had to rename the users, backup, and remove the old services. Made sure the new backup is working. Then I deployed a self-hosted Mastodon instance and migrated my user there, which worked out well.

Went to the trivago Tech Get Together event to meet with friends and former co-workers. Had a lot of fun and heard about openpodcast.de - an open platform for podcast analytics, which is an interesting and promising project.

Articles

TIL this week

Twitter

Software

Podcasts

Out of Context Images


Weeknotes 2022-11-21

, Jochen
"Better to sink in boundless deeps, than float on vulgar shoals; and give me, ye gods, an utter wreck, if wreck I do." —Mardi

Lots of stuff happened last week besides work. After we finally found time to meet for some podcasting the week before last week, I finished producing our podcast episode about Python 3.11 😎.

Last week I wondered how long it will take to migrate the content after being able to deploy my new wagtail-based django-cast version. Turns out it didn't take that long, because now both this website and python-podcast.de are running the latest Python/Django/Wagtail combination. Ok, I have to admit it was a lot of work, and I broke some stuff, but now it's done. Finally 🍾! I started this project around 2019, so long ago that I don't even remember exactly when!

Articles

Weeknotes

Software

Podcasts


Out of Context Images

No images this week, I was busy sitting inside staring at computer screens.


Weeknotes 2022-11-14

, Jochen

Lots of stuff to do. Some of the projects I worked on last week:

Homepage

Since last week it's possible to deploy my homepage to staging using the new Wagtail-backed django-cast. I start to wonder how much effort it will be to migrate the content. In the old system, blog posts are just plain Django templates that are stored in the database and will be rendered upon request. This works fine but only if you fully trust the content editors, since they can inject arbitrary javascript code for example. But I want to use it to build a SaaS product and this would make it rather unpleasant I guess. In the new django-cast version I'll use the Wagtail CMS editor which should be safe to use for untrusted editors.

But now I need to convert all my template-based content to StreamField. Which seemed difficult at first, but then my lack of HTML knowledge saved the day: just throwing my old HTML content into a RichTextBlock living in a StreamField worked surprisingly well (see this: from legacy to wagtail conversion notebook). Seems like I can get away with just converting my custom template tags for images, galleries, videos and audio into proper StreamField blocks and keeping the rest of the html basically as it was. Sweet.


Django-Cast

Added a DELETE_WAGTAIL_IMAGES setting to be able to deactivate wagtail delete images physically to be able to test migrations.
This only works if cast happens to be placed behind wagtail in INSTALLED_APPS since Django has no way to call a function after all apps were installed. Video posters do now work with wagtail videos. The gallery modal now also works on the blog list page and not only on the post detail page.

django-template

Articles


Twitter

Weeknotes

Software

Books

Videos


Podcasts


Out of Context Images