Welcome to dmuth.org!

“Who disturbs my nap?”

Welcome to my website and blog! It has been been around in one form or another for well over a decade. It’s changed purposes a few times, and at this point is now a mostly tech blog where I share things I’ve learned or made.

Feel free to have a look around, or consider checking out some of the more popular posts I’ve made over the years:

Thanks for visiting, and feel free to reach out if you have any comments or just want to chat!

META: Final Wishes

This beer truck from Denmark could be the very thing that takes me out. Who knows?

I don’t normally like to talk about these sorts of things, but I am not only getting older, I am also mortal. So I just wanted to put out there that if something does happen to me some day, I wrote a blog post expressing my final wishes.

Now back to your regularly scheduled blogging. 🙂

9 Essential WordPress Plugins

One does not simply appear in search engine results

When I made the move to WordPress a few weeks ago I had a lot to learn, both in terms of functionality that WordPress had to offer, as well as plugins that I could install and which of those plugins actually worked well!

So I’m going to spend this post sharing what plugins I found the most useful so that anyone else who is getting into WordPress can have an easier time getting started.

Open Graph

Even if you don’t use Facebook or Twitter, chances are that your visitors do and they share your content on those sites. So this plugin is probably the most important plugin of the entire list, because it adds the appropriate meta tags to ensure that when your content is shared on either service, it is rendered correctly.

Furthermore, the Open Graph plugin allows you to set a default image and override it with other an image from the post itself or one uploaded separately:

Again, I cannot stress it enough–if you want your content to look presentable on social media sites, you need to use this plugin. Otherwise, you are passing up a huge opportunity.

Continue reading “9 Essential WordPress Plugins”

Fixing Image Sizes on WordPress Attachment Pages

One of the neat things about WordPress is that when you upload an image and then include that image in a blog post, you can decide where that image links to. The image can link to nothing at all, the raw image, or an “attachment page” which contains that image and a caption.

That said, something that has caused me grief for out of the box WordPress builds has been the image on the media page being really small. Take for example, this picture of a freeloading cheetah. When I upload the picture, the attachment page looks like this:

Just look at that. A tiny image and a bunch of the page being completely unused. Disgraceful. Surely we can do better!

As it turns out, tweaking a single line of code can be used to change the size of all images on media pages.

Continue reading “Fixing Image Sizes on WordPress Attachment Pages”

Fixing The Cover Image Height In WordPress’s Twenty Seventeen Theme

Overall, I am pretty happy with the Twenty Seventeen theme that ships with WordPress, but one thing that really drives me crazy is that whatever cover image you upload takes up nearly 100% of the entire web browser when viewing on a desktop or laptop.  I find it darn near infuriating, because I have to scroll down just to click on a menu link or see content.  That ain’t right.

I mean, just look at this:

We can do better.

Continue reading “Fixing The Cover Image Height In WordPress’s Twenty Seventeen Theme”

Fixing the Homepage Post Width in WordPress’s Twenty Seventeen Theme

I’m still relatively new to WordPress, but one of the things that really got me worked up was the width issue on the front page of my website.  I mean, just look at this:

I am screaming internally.

So I did some Google searches and actually didn’t have much luck.  There were no settings in WordPress that I could change, and the CSS settings that I found just didn’t work.

Continue reading “Fixing the Homepage Post Width in WordPress’s Twenty Seventeen Theme”

Saying Goodbye to Drupal and Hello to WorldPress!

Way back in 2005, I converted my website (and its predecessor) over to Drupal.  Drupal has served me well for the last 13 years, but due to the direction in which Drupal as a product has moved, I do not feel it is the right choice for me anymore.

“U wot m8?”

So I instead checked out WordPress, and was rather happy with it.  It does one thing (blogging) really really well, instead of trying to be the “kitchen sink” like Drupal.  As of this writing, I’ve ported over just about all of the content I wanted to port over, and have since switched www.dmuth.org to point to this WordPress Install.

Along the way, I learned some thing about how to set up and configure WordPress, let me share them with you:

Looking forward to running this platform for the next 13 years. 🙂

— Doug

WordPress 5 in Docker with Nginx and LetsEncrypt

TL;DR If you are comfortable with Docker and Docker Compose, you can go straight to the GitHub repo and get started.  For the everyone else, read on…

WordPress + Docker = <3

When I stood up this website, I wanted to do so in Docker, but I ran into an issue: the official WordPress Docker image runs Apache.  Apache is a nice webserver for small amounts of traffic, but it does not scale well.  As more concurrent connections come into a server running Apache, more copies of the httpd process are forked, which causes RAM usage to go up.  Having RAM usage regularly go up and down  is not ideal.

Fortunately, there is a better way.  The Nginx webserver, combined with PHP running in FPM mode scales much better as the memory usage is more constant, which means that peak loads on the server won’t cause you to thrash the swapfile.  Encryption would also be nice, so I wanted to have some SSL going as well.

I couldn’t find any existing solutions, so I built one!  In this post, I’m going to walk through each piece of the puzzle.

Continue reading “WordPress 5 in Docker with Nginx and LetsEncrypt”

Final Wishes, or If I get hit by a beer truck

…please read this web page.

This page is here so that if something happens leaving me in a state where I am no longer able to run my websites, people will know what to do.

While I have no plans of buying a farm anytime soon, sometimes accidents and sudden illness happen. That also means that if I am in a persistent coma of some kind, or have a terminal condition, please don’t keep me on life support for months or resuscitate me–just let me pass on peacefully.

Designation of Executor

I designate Samuel C. Conway, PhD as my virtual executor to organize such things. In the event that Sam is not available, then I designate Tom Geller as virtual executor. They’ll know what to do, or know people who will.

My Websites

This beer truck from Denmark could be the very thing that takes me out. Who knows?

All my websites – Including (but not limited to) this one, IsSeptaFucked.com, and SeptaStats.com, Sam (or someone he designates) should be the new webmaster/site admin. Please keep the websites operational where possible. Where appropriate, pages should contain a note about what happened. Please update this page with a link as well.

Social Media

I would prefer that my social media be kept in situ. If you don’t speak Latin, that means “leave it the hell alone!” My Facebook security settings allow anyone to post on my wall, and having had a few of my own friends pass away in recent years, it was really nice reading comments and notes left by their friends and loved ones. I’d love if my friends did the same for me on my Facebook wall.

In a little more detail, that means I’d like my Facebook account to be memorialized. For Twitter, if you’re able to get control of my Twitter account, a pinned message will work nicely. If not, some tweets from friends mentioning my passing and funeral stuff that show up when searching “to:dmuth” should suffice.

Source Code

Anything that is publicly available on my GitHub account should already be available under an open source license. If it’s not, please consider the Apache 2.0 License.

Funeral, Grave, and Memorial Service

My family has a series of plots purchased in a cemetery, I will leave it to them to bury me there. I expect something about cheetahs written on my tombstone. I mean it! While friends are welcome to come to my funeral, I’d rather there be a Celebration of Life held weeks/months after my passing so that friends can travel from further distances to attend. A hotel would be an ideal spot for this. Having alcohol on hand for guests would be a really good idea. I expect my friends to laugh, cry, and damage their livers while talking shit about me.

For anything else, contact Sam or Tom.

Oh, and I’ll miss all of you. Even the cheetahs.

Updates:

  • 26 Mar 2021: On second thought, forget the Free Software Foundation. Not after this behavior.
  • 11 Mar 2021: Expanded on on social media stuff a little.
  • 2 May 2019: Changed URI from /beertruck to /final-wishes. Added headings and blurb about social media.
  • 15 Dec 2018: Moved the website over to WordPress, and I’m still around!
  • 1 Apr 2017: I’m not dead yet! (and that’s no joke)

(Based on Aaron Swartz’s page)