mechanical keyboards

I’ve been reading about Cherry MX switches for a few years now and never took the time to read up on what the big deal was. The only mechanical keyboards I’ve used were an old Tandy thing and a bunch of the Apple ][ boards at school. They were all obnoxiously loud, echoing things that I didn’t care for as a kid, but as a child I wasn’t much of a typist anyway so my childhood opinion shouldn’t matter much today.

What’s the deal with mechanical keyboards?

Cherry Switch Sampler Kit

Website title shadow

I just noticed that the site title’s drop shadow gets cut off on the left and right side. This annoys me now that I see it so I’ll have to fix it somehow. I’m not sure what the actual fix is, but I’m going to guess it’s something to do with the width of the title element vs the width of the text+drop shadow style effect.

Diet and Exercise

Now that Ellie is old enough to sleep through the night, most nights anyway, I’ve started trying to get back into shape. I’ve never been a fantastic athlete, but in college I was able to diet and exercise enough to get into (should that be “get in to” or “get in” or “get into”) pretty good shape. That fell apart as I slipped into my mid-30s, but about 18 months prior to her arrival I got into weightlifting quite a bit. I went from not being flexible enough to even do a body-weight squat to pushing about 100 pounds. That’s really not much to my younger self, but it felt pretty good at 34!

Now that I’m trying to get back in to it, I’m noticing that my sleep patterns have changed significantly. I can no longer lift heavy, eat tons of protein, and just zonk out for 9 hours. Despite the improvements in Ellie’s sleep cycles, I’m lucky to get 6 consecutive hours of rest now. That means I’ve got to watch my diet more closely than ever.

For me, portion control and grazing is more important than avoiding junk food. I frikken love Mountain Dew, but that’s probably my only vice. I’m working hard on cutting that out completely. I can cut out beer with nary a thought, I don’t binge on candy or chips… but I know that I like to snack constantly. Eating healthy is great, but eating an entire bag of grapes is still a lot of sugar/carbohydrates. I tell myself, “it’s healthy so it’s okay.”

I read this cool article about the psychological reasons for eating It’s not because you’re hungry. I’m sure you can read the article, but I’ll talk about myself here.

Jen and I really don’t eat out much. I’m basically the only person at work that brings a lunch each day (my boss literally gasped when I get some Taco Bell last week), I specifically use smaller plates at home to make my portions look bigger than they are, we make almost everything we eat from scratch (okay I still don’t zest my own lemons, sigh, but that’s just because of the ongoing debate in our house about whether or not I really need a zester), but none of that stops me from snacking on healthy stuff.

I should probably put that tally thing on the refrigerator and next to the fruit bowl. Adulting means putting some fruit in a bowl so when someone comes over I can say, “sorry, let me move this” while it looks like I’m a functioning grown-up.

Child Themes

This is documented in the Word Press Codex, but I found that page slightly confusing.

First, using FTP or your cpanel file manager (I added a link because I didn’t know what cpanel was until I got an actual virtual private server) create a directory in your wp-content\themes\ folder and call it something like twentysixteen-child

Second, create three files, index.php, style.css and functions.php, in the newly-created twentysixteen-child folder.

Third, using the WordPress dashboard, go to Appearance > Editor and select the child theme from the drop-down menu, for me it was in the upper-right corner.

Fourth, WordPress will complain the theme is broken, that’s because you haven’t told it that your twentysixteen-child theme is actually a child theme. You can fix that adding the following header information to the top of style.css:
/*
Theme Name: Twenty Sixteen Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentysixteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twentysixteen
*/

I bolded the Template line because it’s important. You need to tell WordPress the name of the folder that the parent theme resides in, so it needs to match the folder name exactly. You will want to leave the Text Domain as twentysixteen so font changes and URL parsing for the parent theme continue working correctly as well. Save your changes!

Fifth, this was a bit of a gotcha for me I think. You have to tell the child theme how to load the parent theme. You do that by creating the functions.php file with a specific function (that works with the WordPress API) telling it to load the parent theme’s functions.php file.

Make your child theme’s functions.php exactly the following:

<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
?>

Now that the style.css is correct and functions from the parent theme are loading, the child theme should load.