Blog

Sanity Content Lake - Their data, not yours

I have an issue with the Sanity Content Lake.

The Sanity Content Lake is where your content is stored and accessed. It runs in the cloud and is fully managed by us.

What I read: your data is ours, and we control it.

You want to keep the data in your own server you say? Not possible. Do people want it? Yes they do.

Why isn't it possible? Would only be guessing from my side, but data is quite valuable isn't it? And Sanity has investors and surely ambitional growth plans. I can only imagine data ownership being an important factor.

Call me old fashioned, but I'd rather choose where to store my data myself, however fancy and convenient the "lake" is.

Query to check the size of each table in a database

Sometimes the database keeps growing and you want to figure out which table(s) are causing the issue. It happens sometimes for me on Craft CMS projects.

I then find it useful to be able to isolate the largest table(s) within the database to see where the issue is at.

I've found the simplest solution being to run the following query:

SELECT tablename AS "Tables", round(((datalength + indexlength) / 1024 / 1024), 2) "Size in MB" FROM informationschema.TABLES WHERE tableschema = "yourdbname" ORDER BY (datalength + index_length) DESC;

Credits to Steve Grant at Stackoverflow: https://craftcms.stackexchange.com/questions/40236/the-size-of-the-database-has-increased-how-to-reduce-it

Storing it here for future reference, instead of always having to google it.

Why keep writing?

Good question.

I guess a natural follow up question is: Why did you start in the first place?

My thoughts on it:

  1. "Writing to learn": I believe that writing is a great way to learn.
  2. It sorts floating thoughts somewhere. Sure, could be private notes. Could be a physical notepads. Could be voicenotes. But since I make web pages for a living, a simple blog seems like a decent fit.
  3. Practice. Writing is a core skill that never goes out of date, and always will be relevant. And writing a blog practices that writing-muscle.
  4. Learning to let go. Clicking that "publish" button might not mean much. After all, I can probably count on one hand the readers of this post. Still, it feels like a massive hurdle. And because "caring less what others think" is a personal goal of mine, writing and pressing publish aligns well with that. The uncomfort is just proof that I still care too much.
  5. As Steve Jobs said: "You can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future.". Having some dots written down and timestamped will make it easier for future-you to connect them.

I know, not a great list, but enough to keep me at it for now.

"Writing is easy. You only need to stare at a blank piece of paper until drops of blood form on your forehead"
– Gene Fowler

PHP CMS comparisons #4 - Filesizes revisited

My previous post is really not that old. I wrote it 13th of September 2023 so less than half a year ago.

A fair bit has changed since then.

Kirby launched Kirby 4 in December 2023, and Craft CMS just launched Craft CMS 5 march 2024.

Sizes from original post September 2023

  1. Kirby CMS (v3.9): 6.1 mb
  2. Wordpress (v6.3.1): 54.9 mb
  3. Craft CMS (v4.5.4): 70.8 mb
  4. Statamic (v4.21.0): 86.3 mb

Numbers February 2024

  1. Kirby CMS (4.1.0): 6.8 mb (0.7mb increase / 11.5% increase)
  2. Wordpress (v6.4.3): 57 mb (2mb / 3.8% increase)
  3. Craft CMS (Craft CMS 4.7.2.1): 78.2 mb (7.4mb / 10.4% increase)
  4. Statamic (v4.48.0): 88.6 mb (2.3mb / 2.67% increase)

Numbers June 2025

  1. Kirby CMS (4.1.0): 7.7 mb
  2. Wordpress (v6.8.1): 60.7 mb
  3. Craft CMS (Craft CMS 5.7.11): 80.4 mb
  4. Statamic (v5.1.4): 97.6 mb

Who cares, right?

In the same way the average weight of web pages has steadily increased over the years, we are (arguably) not building much better sites than we did 10 years ago.

Of course I love progress, and I also understand the issue of backwards capability. Still, think of something like jQuery, with its massive user base, still managing to reduce the size of jQuery 4 compared to 3.7.1.

Or think of Snow Leopard, one of my favorite ever OS updates, managing to make a point out of simply "cleaning up" and having "0 new features". Still the release was full of refinements and little touches. And an upgrade from Leopard to Snow Leopard actually freed up about 7GB of hard disk space. And this was back in 2009! Thats my favorite type of release.

GIT: remove folders that have already been commited and pushed

I have many a time added node_modules and the likes to my git repositories.

Tired of always googling it, I noted down this solution to cleaning up after.

  1. make .gitignore file (or update the one you have)
  2. add node_modules/ or what you want to get rid of line to the .gitignore file
  3. Run the following lines:
git rm -r --cached .
git add .
git commit -m "remove gitignore files"
git push

Notecards – physical or digital

I've long been fascinated by the notecard systems of people like Ryan Holiday and Billy Oppenheimer, and no less fascinated by the quality of content they consistently share.

My current system for collecting nuggets and wisdom I pick up in everyday life is a mess. I kind of use "likes" on twitter as a way to "remember" good bits, and I use Apple Notes for writing up ideas I get. On top I heavily use bookmarks, with a bit of Mymind mixed in. And then there's this blog, which also somehow acts as a note taking device.

This week I decided to give Zettelkasten a go. Because as much as I find it cool with the hand-written direction Ryan Holiday and Billy Oppenheimer take, I don't think that's for me. The leap is too big. And I feel like I can better express my thoughts with a keyboard in front of me than with pen and paper.

Either way, I really love the software made by the Zettelkasten crew called "The Archive".

Note Taking: Nimble, Calm, Plain.txt

I know there are many options out there. Many people seem to love Obsidian for instance. But for me, The Archive is much more appealing in its simplicity.

It kind of reminds me of 37Signals, and their philosophy to making products.

Victory belongs to the most tenacious

“Victory belongs to the most Tenacious” — a phrase that echoes across the clay courts of Paris each spring.

Originally attributed to Napoleon and later adopted by aviation hero Roland Garros, this quote now adorns the stadium walls of the French Open. And it couldn’t be more fitting.

Alternatively "Victory belongs to the most persevering".

French Open (Also often referred to as Roland Garros), is a Grand Slam tennis tournament (Highest level tournament). Winning a Grand Slam tournament truly is an act of perseverance.

Yet as much as I admire this quote and its connection to Roland Garros, it brings up a question that continues to bother me:Why don’t women compete in best-of-five sets, just like the men?

Part of what makes this quote so fitting — “Victory belongs to the most tenacious” — is the grueling nature of the men’s format. Winning a best-of-five match demands physical endurance, mental toughness, and, yes, perseverance. Shouldn’t that same stage be set for the women?

I can’t see a good reason why it shouldn’t.

In fact, I think something is being lost here—not just for the female athletes, but for the fans too. We’re missing out on longer battles, deeper momentum swings, and the kind of legendary comebacks that only extended formats allow. Imagine how many iconic moments never had the chance to unfold simply because the match ended too soon.

Equality isn’t just about prize money or airtime. It’s also about giving every player the same opportunity to prove their resilience.

Who am I to comment on all this?

Just a web designer from Norway—and a big tennis fan.

In fact, I've even built the web page for Casper Ruud via my small design studio, Vasser. Maybe one day he’ll lift that Roland Garros trophy himself.

Other links:

More about Roland Garros at their official page: https://www.rolandgarros.com/en-us/page/a-trailblazer-for-aviation-and-a-war-hero-roland-garros

FOLD - Fear Of Looking Dumb

Most years since my late teenage years I had the same simple new year’s resolution: Care less what others think of me.

I still work on that same goal a decade (or two) later, but have luckily gotten a bit better along the way. I have also found a different perspective to it: decreasing FOLD (Fear Of Looking Dumb).

If you have a question in mind, just ask. Doesn't matter if others think its stupid. Also just admit that you "don’t know" more often. Don’t pretend or put up an act just to fit in. Be true and honest.

Some will laugh. Some will judge. But the relationships you truly value over time will only strengthen. It's also just a more fun way to live life.

I notice that I act naturally like this with close friends, but it takes more time to get to this level with new acquaintances. But that's just on me to change.

As The Grug Brained Developer says: be strong! no FOLD!

The concept of "FOLD" was something I first read about on https://grugbrain.dev/#grug-on-fold

Gone them node_modules – in my case Tailwind

What I really like about having a personal web page, is that it can be ground zero for testing out ideas. If something feels right, it'll likely carry over to other projects I work on.

Time to drop Tailwind?

This has been a thought I've been having a lot in mind recently.

Its mainly come from a combination of focus on simplifying web development, and having fun again with basic pure CSS.

Also, a big wish is the idea of skipping build steps. Tailwind is basically my only build step, and I sure like the idea of skipping it.

One topic that has come up often in my Tailwind projects lately is the lack of good options for fluid designs. It all feels very rigid on breakpoints. I've ended up using a lot of custom fluid text-sizes, but it doesn't exactly spark joy to config these things in Tailwind.

Thoughts on Cube CSS

I really enjoy the writing (and thoughts) of Andy Bell, and CUBE css has been on the radar ever since I heard about it back in 2020.

More recently I saw his talk at Hey Presents called Be the browser’s mentor, not its micromanager.

I really enjoy a lot of the foundational ideas, and basically the whole concept of "less is more", and letting the browser do more of the work, instead of stripping it all away as I've been doing with Tailwind projects the last couple of years.

So I thought I'd try – with this newfound focus on pure CSS – to remove Tailwind from this personal web page (I know, not really a massive layout challenge…). But just to get the feel back for writing CSS "the old way". (As an aside, I made my first webpages twenty years ago, so "the old way" shouldn't be that unfamiliar)

My main issue with pure CSS in 2023

The main problem I have with CSS right now, is the lack of good include / import options. Pure css @import is unfortunately bad for performance. How bad? I don't know. But I do know all audits will flag it as bad practice, so it kind of feels like a bad option.

I was never really into SCSS, SASS, LESS etc. Similarly to how Tailwind tries to "fix css", the preprocessors helps with a lot of things, but also adds complexity.

When I finally manage to remove my node modules and Tailwind, I don't want to add in SASS..

CSS without build steps is my goal. Of course I'm talking smaller projects, and not cnn.com.

What I decided to do

I've removed tailwind from this page now, and gone super simple one style.css file, and tried to take a few approaches like Andy Bell has suggested in CUBE css (very loosely).

Not very clean CSS this far, but still, it definitely felt fun again to write cleaner html and work with the cascade. CSS has really come so far the last years!

Oh, and even with the added prism css styles (compressed at 2kb), my uncompressed total css weight is at 9kB. The previous Tailwind css (minified and purged) was at 26kB.

Why not minify the style.css you say? It gives me 7kB instead of 9kB, but to be honest, I'm not gonna add any minifying step to shave off 2kBs.

This way the css is also perfectly readable for whoever feels like peeking – compared to the Tailwind compressed css. This perfectly aligns with DHH's idea on Paying tribute to the web with View Source. This is how I learned web development 20 years ago. I know, times have changed with GitHub, browser tools etc. But still I feel the "view source" is an underestimated learning tool.

I love it. No node modules. No build steps. A simple css file. More of a Greenfield project.

A collection of sustainable web design resources

The last month I've been diving into sustainable web design, and although I keep links in apple notes, bookmarks etc. I kind of like the idea of using the blog for long-term storage.

As Chris Coyier calls it in his blog post: "the ultimate long-term link storage".

Tools, manifesto and directories:

Interesting reads:

Interesting videos:

Companies and people doing interesting work in the sector:

  • Wholegrain Digital London’s original sustainable WordPress agency

  • Hey Low Brands & Websites designed for You & the Planet

  • Dodonut Sustainable design for mindful brands.

  • Leap We’re a B Corp certified creative agency using the power of design and strategy to make positive change.

  • Pikselkraft We create an alternative internet

  • Mightybytes We help great organizations create greater impact.

  • Low Carbon Digital (Added 4.11)

  • Michelle Barker, also writing interesting blog posts here.

  • Rachel He (A designer in Brooklyn who loves taking care of our planet, being in motion, and connecting with people through food)

  • Nicolas Paries Creative direction & Digital design (Added 4.11)

  • Greentheweb Green and sustainable UX/UI design for a greater web

  • Tom Jarrett Designing digital products and services to work within planetary boundaries (Added 4.11)

  • Hannah Smith - I help people create and use digital technologies more sustainably

Relevant books:

Let me know if you have any good ones to add! Mastodon

Last updated: 03.11.2023