Ephes Blog

Miscellaneous things. Mostly Weeknotes and links I stumbled upon.


Weeknotes 2023-09-18

, Jochen

At work I used htmx and Alpine.js again and I think this is a really powerful combination. I hope the view transition api, which is currently only implemented in Chrome, will be available in other browsers soon. I also did some thinking about how to display PDFs on web pages using PDF.js.

For my personal site, I had to fix the image rendition deletion incident from last week, and I thought a bit about wagtail_srcset and new image formats like AVIF. Maybe I should keep it simple and assume that all devices are now high pixel density devices and always use images that are three times the logical pixel size, and then use AVIF as the file format? I don't know yet.

And since Postgres 16 was released, I upgraded all my stuff to the new version and wrote a TIL post about it. And I also did some non-computer related activities this week: I participated in the local #klimastreik and moved a lot of furniture (whatever it takes to do that all day - I don't have it and like to take a bath in Voltaren now).

Articles

Weeknotes

Mastodon / Twitter

Podcasts


Weeknotes 2023-09-11

, Jochen
It was the best of times. It was the worst of terms and conditions. --Nein

At work, setting up Single Sign-On (SSO) via Azure AD for a Django project was easier than expected, thanks to django-saml2-auth. I also found that ChatGPT was surprisingly effective at generating code to create a simplified Excel file, which I then could use to test the effectiveness of the existing pandas code for Excel parsing.

Doing open source, I fixed a bug in the theme-selector feature of django-cast. The bug occurred because Django handles the HTML rendering for SPA-themes and exposes it via a JSON API. I chose this method to avoid rendering a Wagtail streamfield in JavaScript. However, it used the theme from the database instead of the session template, which broke the Vue.js theme. After addressing this, I updated django-stubs and fixed a minor issue that made mypy pass again. I also improved the documentation for the themes feature. While reviewing the request-handling code, I found a simpler method using APIField and wrote a 'Today I Learned' (TIL) post about it. And finally, I broke most of the images on my site by accidentally deleting all the Wagtail renditions. Well, something to do for next week.

Articles

Weeknotes

Software

Mastodon / Twitter

Videos

Podcasts


Weeknotes 2023-09-04

, Jochen
UIs are big, messy, mutable, stateful bags of sadness. --Josh Abernathy

Usual work week. Finally upgraded my Debian boxes from bullseye to bookworm and had no problems. Wow 🤯. Found a workaround for a long-standing PyCharm limitation: If you use a German keyboard layout, it's not possible to switch windows or comment out lines of code using keyboard shortcuts. Just install the Keymap Nationalizer Plugin and select your actual keyboard layout.

Didn't have much time for open source last week, but nonetheless managed to add a theme chooser for django-cast. You can now choose your theme and save the result in the session. So now it's possible for all users to try out new themes. Now I have a reason to polish the other themes a bit 😅. If you want to try it, just click on the B in the menu bar.

Articles

Weeknotes

Software

Mastodon / Twitter

Videos

Podcasts