Blog Updates (Late 2022)
Over the last month or two I’ve made several improvements to this blog:
The CSS now adapts the colors for Dark Mode.
I’ve adjusted the WordPress caching so that pages should load much faster. No matter what I did, I kept running into an issue where WP Super Cache would fail to expire certain versions of the cached RSS feed when it changed. Thus, some readers wouldn’t see any new posts. I worked around this by adding a cron job to clear the feed cache every five minutes. Despite this, it should still properly return HTTP status 304 when the feed hasn’t changed, so that savvy feed readers don’t have to re-download the XML.
Sometimes the server would get overloaded and be unable to respond to requests at all. I think this was due to the server itself—it was grandfathered with old software versions on a legacy VPS plan—rather than the number of requests it had to process. I moved the site to a new VPS, which is also more powerful, and CPU usage has gone down from 30–85% to 0–3%.
Hopefully, none of these changes has introduced any new problems. If you see anything wrong, please let me know.
Previously:
9 Comments RSS · Twitter
Since some time ago, the background on these pages does not show black but grey (which is less convenient) when using Dark Mode for Safari
https://alexdenk.eu/mywork/darkmode.html
@MeX I’m using gray for the background in Dark Mode—like Apple does—because I think full black is a bit too much. Do you know if there’s a way to signal to that extension that it’s OK to override the background color? Does it work for Daring Fireball?
Oh cool, so it wasn't just my browser. I got into the habit of refreshing this site whenever it seemed suspiciously long since the last post haha
RSS seems to have been working since you fixed it.
Btw, this is worth an article, me thinks: http://archive.fo/https://www.bloomberg.com/news/articles/2022-12-13/will-apple-allow-users-to-install-third-party-app-stores-sideload-in-europe
Might make me come back to coding on the iPhone.
Would you consider adding `color-scheme: light dark;` to your topmost element in your CSS (as far as I can tell, `body`)?
It doesn't do much in Safari, I don't think, but it does darken the leave-a-comment form fields so nobody gets blinded by them when scrolling to the bottom of all the comments.
Thanks!