Ephes Blog

Miscellaneous things. Not sure what to put here, yet.


Podlove Share Sheet Fixing + Wagtail Code Blocks

, Jochen

This week's programming stream was about fixing the share sheet for the Podlove Player on the Python Podcast website and adding code blocks to Wagtail.

The second part about adding code blocks to Wagtail starts at 01:12:30. Here's an example of a code block 😎:

class CodeBlock(StructBlock):
    language = CharBlock(help_text="The language of the code block")
    source = TextBlock(rows=8, help_text="The source code of the block")

    def render_basic(self, value, context=None):
        if value:
            lexer = get_lexer_by_name(value["language"], stripall=True)
            highlighted = highlight(value["source"], lexer, HtmlFormatter())
            return mark_safe(highlighted)
        else:
            return ""

Weeknotes 2023-01-09

, Jochen
in 2023 i have decided to become worse and more unhinged and more of a hater. maybe i will start yelling and biting. i am going chihuahua mode --@punished_cait

Still on vacation. Fixed some bugs in django-cast:

  • The slim version of jQuery broke the comments feature
  • API overview was broken due to a broken reverse lookup for 'image_list'
  • Fixed a bad spam filter bug and recorded a stream fixing it. This was the first programming stream I recorded after about a year and it was surprisingly difficult to get the whole setup up and running again 😆. And it worked: No false positive "ham" comments since 2023-01-04 (should make a badge out of this..)
  • New django-cast release 0.2.1

Other packages:

Articles

Mastodon / Twitter

Books

Software

Podcasts

Out of Context Images


Fixing a Spam Filter Bug

, Jochen

Lately, I had to delete a few spam comments per day on the Python Podcast website. I already built some spam filter for the site, but it didn't work as planned. In this stream I locate the bug and fix it, bringing up the F1 value for "ham" from 0.4 up to about 0.95, which will be enough for some time, hopefully.

Full disclosure: I found the bug before recording the stream because I'm experimenting with a small change in the stream format. I'd like to give it a little bit more story instead of just poking around randomly in the codebase 😁. The goal is to have more structure and a more relaxed schedule. Let's see how this works out.

The actual bug fixing starts around 01:31:00 and the stream language is german.


Weeknotes 2023-01-02

, Jochen
Kelber‘s Law: Wann immer es heisst „irgendwas Sinnvolles geht nicht, wegen Datenschutz“ liegt es NICHT am Datenschutz. --@padeluun@digitalcourage.social

Been on vacation, so no work. Produced and published an end-of-year podcast episode. This was the first episode published by the new wagtail-powered version of django-cast and I had to kick it a little bit to make it work. Generated five new bug reports 😬.

Articles

Mastodon / Twitter

Weeklogs

Papers

Videos

Software

Podcasts


Weeknotes 2022-12-26

, Jochen
'Man goes to doctor. Says he is CEO of AI startup but has no idea how to become profitable. Doctor says solution is simple. Advanced model GPT-4 is in town. Ask it how to profit, and it will surely know the answer. Man bursts into tears. “But doctor” he says “you are GPT-4”' --@utsu__kun

Lots of Christmas preparations and the usual work stuff. Attended the Django Meetup Cologne in person for the first time in a while and it was great. Reported a bug on takahē discord and saw this PR 9 minutes later 😮. This PR for Django 4.2 looks great! Maybe I can get rid of the monkey-patching stuff I do in django_fileresponse 🥳. Wrote a TIL about how to deploy takahē without docker.

Someone implemented a business model very similar to one I also think about implementing for a while: Just let people rent software deployed somewhere for an hourly/daily/monthly fee (mastodon, jupyterhub server, ...): Replace expensive per-seat SaaS with tap-to-install open-source apps - I just have to set up a landing page and collect some email addresses, no?

Using a time machine backup from an intel-based MacBook to restore it on a new M2-based MacBook led to some unexpected consequences:

  • Printing didn't work anymore (printing is always the first thing to stop working btw). The printer queue complained about a paper jam, but this was just a mismatched error code, I guess. The real problem was the intel-based printer driver didn't work on ARM. Installing the old intel-based printer driver from the manufacturer's website (the latest was for a macOS version a few years ago) triggered the rosetta installation and then it worked.
  • GnuPG stopped working because of the same problem and then installing a native version via homebrew didn't work because now the new version couldn't read the old version's keys. Solved by creating a new key and copying the sensible data in plain text, meh.

Articles

Twitter / Mastodon

Newsletters

Weeklogs

Software

Podcasts

Out of Context Images