Posts
-
A Clasp template for local Google Apps Script projects, using copier
It is possible to develop Google Apps Script projects locally, on your machine, in Typescript, and sync them with Drive. Excited? Don't be. I am still not sure it's a good idea. Anyhow, here's a starter project using Python's Copier
-
Migrating My Blog to Astro
I built this site with SvelteKit before it was stable, hoping it wouldn't change too much. How naive of me. Of course it did. Faced with the prospect of rebuilding it from scratch, I decided I'd rather try something new. Enter Astro
-
History of Disco and Dance Music: a Jupyter notebook
I wanted to see how well OpenAI's ChatGPT would work for teaching, so I asked it to design a Jupyter course. The first assignment it gave me was to explore the history of disco and dance music. I need to use both text and images to describe the key developments and important figures in the genre.
-
Deleting tweets and likes from twitter
Thanks to Elon Musk, it's now socially acceptable for developers to ditch their Twitter accounts. While I'm keeping mine to be able to read long threads, I recently decided to delete all of my tweets and start fresh. I like to think of it as a "quiet quitting"
-
mypy: found module but no type hints or library stubs
Linting a Python project, I was puzzled by the mysterious error: "found module but no type hints or library stubs" from mypy. The module was my own, with Pydantic definitions everywhere, so why the error? I was missing init.py files in some parent folders.
-
Faker providers for project specific data structure fakes, in Python
I am a big fan of Faker for testing. I find having a random mock data generator keeps tests clean. In fact, I tend to extend Faker with project specific providers. Here's how
-
Poetry-driven python project template with cookiecutter
My python toolchain for small projects does not change often. It makes sense to save it and then replicate it whenever I start a project. Or better, use cookiecutter and a config file to generate it
-
Migrating away from Google: Hello Proton Mail!
Google informed me they would start charging me for letting me use their mail servers with my gotofritz.net domain. Fair enough, infrastructure costs money. But if I have to pay, why pay them? I'm can shop around. And so I did.
-
Removing duplicates from youtube playlists with a Python script
Thanks to a bug while copying a youtube playlist with a Python script, I ended up with a lot of duplicates videos in the playlist. Surprisingly, the YouTube interface doesn't let you remove them. So I put together another small Python script
-
Adding videos to a youtube playlists via a terminal python script
I wanted to duplicate another user's playlist to one of my free google accounts. But it's no longer possible from the web interface. None of the methods described in various SO answers are functional, they are obsolete. But it can be done with a Python script in your terminal.