David Peach

This website is 100% maintained and written by a human bean. AI is NOT WELCOME HERE.

Back and forth

— Right, that’s it. I’m getting annoyed with the block editor. I’m switching to ClassicPress

Two months pass.

Slightly missing the fact that my posts appear in the fediverse via the excellent activitypub plugin for WordPress.

— Okay. I’m gonna switch back to WordPress.

Sees that the next version of WordPress is merging in a whole load of ai-related features.

*smh*

— Fuck this! I’m going back to ClassicPress for good. Nothing is worth mixing with the slop machines.

And now its back off. All the ai crap that WordPress is shovelling into core just puts me right off WordPress. Looks like I’ll be on ClassicPress for the foreseeable future.

Vim :: Search and replace across multiple files

From within Vim, you can search all files for a string/pattern with the following ex command.

Replace “string_to_find” with your search string. The path given as example is every file under the app directory recursively.

:vimgrep /string_to_find/ ./app/**/*

That command will put all occurances of the string into your quickfix list.

You can then run a command on each instance of that with the following command:

:cdo s/string_to_find/new_string/gc

This runs a substitution for each entry in the quickfix list.

The `g` flag is “global” which means if the occurance happens multiple times on the same line it will replace all. Otherwise it will only replace the first instance on each line.

The `c` flag is to “confirm” each change. Each change it tries to make, it will ask you to specifically answer yes or no to change it. I prefer this for most things.

You can then either manually write each file you have changed, or use the following command to save all the files that have been changed:

:cdo update

I’m still finding inline styles in old posts from my time with WordPress and it’s guttenberg editor. I like the idea of the guttenberg editor, but gosh if it doesnt bloat the fuck out of your html.

I’m now on ClassicPress which is WordPress, if WordPress hadn’t gone down the swanny.

Jar of Flies by Alice In Chains

I’d heard that this was one of Alice in Chains’ best releases. However, for some reason it took a while for me to get into it.

I’m glad I persisted, as this has become a favourite album / e.p. of mine I’ve heard in a long time.

It just gets better with each listen for me.

On a distant moon

Really getting back into this game when i have time. Took this whilst on the Atlas path missions.

Taken from a moon, with the sun over the nearby planet.