Toby's Log

Dunc got skunked

My brother’s dog, Duncan, got skunked recently while I was walking him. They were very close quarters between, in a ditch / drainage pipe, so I don’t think I got any on me. It was dark, and around a bush from me, so I didn’t even see the critter, and didn’t know it was a skunk until after I had pulled him away and noticed the smell. But it was quite some work to get him cleaned up.

Continue reading post "Dunc got skunked"

Symfony templates for WordPress pages

I’ve been using Symfony for all of my site pages except the blog, which is run with WordPress. Originally I was using a standard WordPress theme that made my blog look different than the rest of my site. I had looked into ways to pull WordPress through a controller action and stuff like that, but ran into difficulties. I ended up using a solution where WordPress functions as normal for the subpath that it is in, but code in a custom theme boots the kernel from the Symfony part of my site and uses the twig service to render the template. Output buffering is used to capture the normal output of the site to pass to twig.

My theme code does some other things, but I will try to present a stripped down version that could work with a Symfony Standard Edition site for the purposes of this post to hopefully help others do the same.

Continue reading post "Symfony templates for WordPress pages"

Updated to Symfony 6.4

Since updating my server earlier in the year, and thus moving to PHP 8, I would’ve been able to update to Symfony 6. I didn’t get around to it until today, though. I’ve been fixing deprecations in my code mostly as they appear (in profiler, console, logs, or automated tests) so I didn’t have a lot to do this time. I changed ^5.4 to ^6.4 in my composer.json and then had to adjust a few minor things in config. Some of those took longer than they should’ve though.

Continue reading post "Updated to Symfony 6.4"

Ghosts.js

A few years back, to make my site more festive for Hallowe’en, I made a script to have ghosts move around my web-page. I based it on my snow script for winter / Christmas, using the basic structure, reducing the number of moving objects, and changing their movement to look better for ghosts. I meant to post about it. This year I decided to break it out into its own Github repo, which led to me refining it and cleaning it up somewhat. See the ghosts.js repo and the ghosts.js demo.

Continue reading post "Ghosts.js"

vim.tiny and vimrc

I tried installing my dotfiles on an unmodified Ubuntu install. My vimrc threw many errors. Ubuntu and other Debian based distros install the tiny build of vim by default, which has a lot of features disabled, including eval, but still loads the user vimrc. That means that many things that might be in there, including function and even let, do not exist in tiny. :help no-eval-feature provides a solution: Wrap everything that should only work in +eval capable versions of vim in if 1 … endif.

Continue reading post "vim.tiny and vimrc"

h5bp links

Earlier in my career, I looked to the HTML5 boilerplate for ideas on how to set up websites. I just grabbed bits I liked and modified them as needed. For a time they had shortened links off of the h5bp.com domain that redirected to descriptions of why certain choices were made. But eventually, the person maintaining that domain let it lapse and someone else bought it.

Continue reading post "h5bp links"

Since MacOS 15.7.1, the touch ID (fingerprint reader) often takes a while to become available on the login screen after the computer has awakened. It takes like 15 seconds to become functional, in which the user circles do a jumpy little dance. I know it’s ready when the message about using the touch id or password to log in shows up. This definitely slows my roll, as I lock the screen every time I leave the computer, which happens frequently.


</toby>