All Articles
Vscode cheatsheet
Vscode is a text editor. No extensions should run, nothing should take up my CPU or memory.
code --list-extensions
code --disable-extension DotJoshJohnson.xml.
Cool Scripts and One-liners
Find latest 20 files in the folder (on mac):
find . -type f ! -name '.DS_Store' -exec stat -f '%m %Sm %N' \
-t '%Y-%m-%d %H:%M:%S' {} + | sort -nr | head -20 | cut -d' ' -f2-Delete empty dirs:
find . -name '.DS_Store' -type f -delete
find . -type d -empty
find . -type d -empty -delete.
20250811 Daily Scrum
In order to improve my writing skills, I should write on a regular basis. The amount of writing is measured in either the number of words written, or the hours spent writing. Of course, there is an inherent conflict of interest, an inherent corruption when measuring work in such a way. See The Inherent Corruption of the Employee.
How will I promote and market my material? And for what purpose? What am I selling? What is the path (karate-do) that I'm pursuing, what is in my DNA? These and other questions are answered succinctly in The Core.
Art Styles: Painting
21 Types of Painting
There are plenty of different painting styles that you can see in art throughout the centuries.
Abstract
Famous Artists: Wassily Kandinsky, Pablo Picasso, Elaine de Kooning, Henri Matisse, Georgia O’Keeffe
Significant Works: Full Fathom Five by Jackson Pollock, Composition VII by Wassily Kandinsky, Mountains, and Sea by Helen Frankenthaler, Orange, Red, Yellow by Mark Rothko, Red Canna by Georgia O’Keeffe
Utilities: Resizing and scaling images in python. And a filename-insensitive data loader.
I recently wrote this utility... a mere function, really, to resize and scale a python image at the center. This way, I don't have to worry about how my images are being fed into an AI pipeline, if they all get scaled and cropped the same.
Additionally, while previously I used bash to rename files in a folder to sequential names such as 1.jpg , the current implementation ignores filenames, which saves me time when massaging the data.
[FIXED]: Error: Call to a member function transformDimensions() on null in core/modules/ image/image.module
The issue stems from the preview being in an undefined style.
1. Go to configuration -> image styles and review the styles available. I have a style called "200x200 thumb".
2. After adding an image field to a content type, go to manage form display, expand the display of the image, and specify an existing style from step 1 as the preview style.
After taking these steps, the page for adding/editing this content type should render correctly.