Still Monkeying with the 'Theme'

A thousand monkeys at a thousand computers would be guaranteed to produce WordPress. In fact, they already have.

In a WordPress site like this, the look and feel are determined by the 'theme'. Working on the theme seems to be a never-ending task. First, I keep thinking of new features, and almost everything is baked into the theme, rather than in a stand-alone 'plugin'. When a feature is built into the theme, it can't be accidentally disabled.

But what has been giving me the most trouble lately is that WordPress has tons of built-in CSS, and most of it is crap. I keep having to root it out and then figure out how to over-ride it without breaking something else. This is especially troublesome with Gutenberg, which was definitely styled by monkeys.

WordPress contains so much excess unnecessary CSS code. For example, some idiot discovered the 'max-width' property, and slathered it all over everything, whether it makes any sense or not. Most of the 'max-width' specifications make no sense at all. And 'max-width' is far from the only thing that is over-specified and all screwed up.

I finally decided to just nuke all the built-in CSS and start over clean, both the front and the back end. The result of that is that I am continually finding things that I need to fix, but eventually, I will find them all. I only want WordPress to handle the database, I don't want it to handle the presentation.

Your typical computer programmer ( including me ) is absolutely certain they are creating the Taj Mahal, and everything they do is perfect. All but one of them are wrong. Then again, maybe the guy at the top of this page is me.

In other news, I added captcha to the comment forms, and the spam level has dropped to zero. It's gotten virtually lonely here at njscuba now. I used to enjoy deleting that stuff.

My stupid Dell laptop keeps shedding keys. They are easy enough to replace, at ten bucks a pop. How much would the whole keyboard cost? I don't want to do that math. Right now the 's' is held on by Scotch tape, and it's a little wonky, so any mis-spelings are not my fault. My old Mac never lost a single key.


Human Vision Underwater

When light travels from a less-dense medium like air to a more-dense medium like water, the rays are refracted or bent towards the normal or perpendicular of the surface between the two mediums. In crude terms, light going from air to water will tend to be straightened, while light going from water to air will tend to be ... um ... crookeded. Confused yet? Take a look at the figure below.

refraction
( Tautogolabrus adspesus )

In this figure, you can see the light rays traveling from an object in the water to your eyes, neglecting the effect of the flat glass lens of your mask. The blue lines trace the actual path of the light rays through the water and into the air, or conversely, through the air into the water - the direction really doesn't matter. As you can see, the rays are bent toward the perpendicular of the surface on the water side, and away from it on the air side.

Printed from njscuba.net