Cannot Divide by Zero in Peak Picture Partial

When assets don't contain valid images that can be processed by Glide (which can happen by migration or by not setting up proper sanitation rules for asset field uploads), a white screen of death due to a division will occur. This happened to me in various scenarios A migration of legacy data …

Applying a Growth Mindset (Doodle)

In an attempt to retain more of the information I'm consuming, I started to doodle on my iPad while listening to the Huberman Lab episode on How to Enhance Performance & Learning by applying a Growth Mindset. While I'm not too excited about the result, I deeply enjoyed the process because it …

When Gmail Messages deleted in Apple Mail keep coming back

For the last coupe of weeks I had this weird behavior that whenever I deleted a message from my Google Workspace inbox through Apple Mail on Mac, these messages never disappeared from the web interface. And after fetching new messages, they also crept back into Apple Mail. Looking into the account …

Using the AVIF format for CSS background images

Today I learned that browser support for the AVIF image format has become excellent, with every major browser except Edge supporting it. As I'm implementing a design with a big background image, this is great. At half the size of the JPEG, it offers way better quality. (WebP wasn't noticeably better …

Workaround for Email Validation Issue in Statamic

Through a failed Horizon job I found out about the following: A user had entered an email address with an accidental space before the @ symbol. This caused the email to not be able to be sent and the Horizon job to fail. Apparently, according to some email spec, spaces are allowed in the front part …

A First Quick Look at Cosmos.so – and Why I'll Stick with MyMind

Cosmos.so is a inspiration capture system marketing itself as an alternative to Pinterest. There is quite some overlap with the features offeret by MyMind, so this will come up often as a comparison. Yesterday, I received an invitation to Cosmos' early access and tried it on iOS and the web. Cosmos …

Install a Starter Kit from local repo to get the latest Peak working in Statamic 4 beta

I needed to do this to install the latest Statamic Peak into the Statamic v4 beta. Clone the Starter Kit (read: Statamic Peak) Repo locallyI also had to update Peak's dependencies in starter-kit.yaml to betadependencies: studio1902/statamic-peak-browser-appearance: '2.0-beta.2' …

Set sensible validations for Statamic image uploads

By default, Statamic asset fields don’t validate size or file type. Recently I’ve had a bit of trouble with large image files clogging up the Git repo and image color being off due to the client uploading hug Tiff files. To prevent this from now on I decided to limit image uploads to the jpeg and …

Render first heading inside Statamic Page Builder as `h1`

Say you have a headline field on various Page Builder elements, and one as a set of in a Bard field. Both should visually look the same. Semantically, the first occurrence of any of these headlines on a given page should render as h1, every following as h2, without an editor having to set anything …

Remove Large Files from Git History

I recently had the case of a client uploading huge tiff files (some larger than 100 MB) into Statamic image fields. Obviously, I should make this impossible in the first place. Yet, here I was with these big files having been uploaded and auto-comitted by Statamic’s Git integration. While comitting …

My PKM App Stack for 2023

I am guilty of frequent app hopping. This year, though, that is going to change. I’m fully determined to pause the constant chase for an ever better tool. While I enjoy to check out new apps, move data back and forth — and back again — I’ve come to the conclusion that I need a break and commit to a …

About

Hi 👋 I’m Daniel Wentsch, a freelance designer and developer from Freiburg, Germany. This is my personal blog where I write about whatever is on my mind. Things that appear to be often on my mind include creating websites with Statamic CMS, Personal Knowledge Management (PKM), Design, Code and …