7 Minute Miles Header

My Christmas elves

Pic posted December 9, 2018

Another farmer’s market tree


flourish icon

Didn’t know if the Christmas CD would happen this year or not, but making progress


@kingsbury tweeted December 9, 2018


flourish icon

Strong targeted casino marketing

Pic posted December 8, 2018

Marketing geniuses, I tells ya


flourish icon

So. Much. Two Dots.

Pic posted December 8, 2018

End of the road again


flourish icon

Duck meatloaf with CK, JV & SV

Pic posted December 7, 2018

Saint Dinette

From the @kingsbury Instagram account


flourish icon

Back in my airline days, people used Minny all the time to refer to MSP. Plus: Minnie and Paul?


@kingsbury tweeted December 7, 2018


flourish icon

Need to compare with the Mpls one

Pic posted December 7, 2018

Parlour Bar

From the @kingsbury Instagram account


flourish icon

Upgraded to WordPress 5.0, turned on the classic editor for now (and the emoji issue persists)


@kingsbury tweeted December 6, 2018


flourish icon

Foreshadowing?

Pic posted December 6, 2018

Scene of my incident; artwork in the new Hennepin Healthcare building


flourish icon

Security broke my emojis

Posted December 5, 2018

This site has always been a tool for me to stay sharp on new web technologies and lately it’s been a great way to test my cognitive skills since the little incident in October. I’ve had three things on my web development to-do list for a long time: 1) use Let’s Encrypt to add TLS/SSL security, 2) make my WordPress theme mobile-friendly and 3) create some dedicated data entry screens for golf scores, runs and bike rides. During my recovery at home, I decided to tackle item #1…

Since I still had Homebrew installed on this server, I was able to get Certbot installed early on in the process and had a valid certificate ready and waiting. I haven’t tried automating the renewal process yet, but can manually renew the certificate with no problem (had to do this once already, in fact). For whatever reason, I had trouble finding examples online of people with similar setups and had several false starts in getting Apache configured correctly to use the certificate for this domain. This post got me most of the way there, but had more of a focus on Mac OS X Server and not plain old Mac OS X client. A few other helpful links here, here and here. And this thread on the Let’s Encrypt site helped me figure out what can/should go in the httpd-vhosts.conf file versus what should go in the httpd-ssl.conf file.

Combined with the Really Simple SSL WordPress plugin, I was able to get a green “B” rating on the Qualys SSL test site. After adding a SSLCertificateChainFile line to my VirtualHost config, I got the top A+ rating and just needed to figure out why my main page was still showing a “not fully secure” message in Chrome. After upgrading the Really Simple SSL plugin to the pro version, I was able to run a full scan, correct a few issues it found, enable HSTS and make cookies more secure. Now all pages in Chrome have the coveted padlock (with no warnings) and I still had the A+ rating. All was right and good in the world.

Then I looked at some old posts…

Almost everything looked fine, but posts and pages that had emoji in them were now messed up (hearts seem to display OK, but everything else was either a question mark or some other image). Emoji support in WordPress started back in version 4.2 and I remember having issues back then too. For this site, it was due to the MySQL tables on the backend not being configured correctly. I verified that the database was using utf8mb4_unicode_ci collation on the posts field and also discovered that phpMyAdmin wasn’t having any issue displaying the emojis (it runs under the same domain and those pages were getting a padlock from the Let’s Encrypt certificate, so this has to be a WordPress issue). I thought maybe this had something to do with the newest emoji release, which WordPress contributor Brandon Kraft writes about here. After I tried matching his page source code for things like charset=”UTF-8″, I still couldn’t get these emojis to display (which they did when the site was not secure).

After Google failed to turn up much for WordPress, SSL and broken emoji, I contacted Really Simple SSL pro support. Their first question was if this happened to new posts in addition to the old ones (yes), then asked if I had looked at all the character encoding angles (like this post). My wp-config.php file didn’t have DB_CHARSET or DB_COLLATE lines, so I tried various combinations of adding that back in and commenting it out, with no success. Made sure to check caches and different browsers too. They hadn’t seen this before, so I’m guessing it’s something with my custom theme and combination of various plugins that is causing the issue. If I paste the same emojis into a test post on a different domain on the same server that hasn’t had SSL added (and with the same version of MySQL and WordPress), the emojis display fine. Huh.

Standard WordPress troubleshooting would have you disable all your plugins and I have tried to go back and disable Really Simple SSL (I don’t want to turn them all off). I also started researching how WordPress implemented emoji display and found some core javascript code that gets inserted automatically (it’s a section that starts with window._wpemojiSettings and references a baseUrl of “https:\/\/s.w.org\/images\/core\/emoji\/11\/72×72\/”). I thought maybe this was the issue, as I can’t seem to access that s.w.org domain using https, but when I compared the page source from my site to the javascript on Brandon Kraft’s page, it was exactly the same (and emojis appear fine on his site).

So in the grand scheme of things, I’d much rather have the A+ security rating and not worry about displaying emoji in posts. It does bug me, though, that I can’t find anyone else online with a similar problem and that I haven’t been able to successfully troubleshoot this issue. If you have any ideas, please contact me via email here.


flourish icon

Link: Never would’ve guessed #1

Linked December 5, 2018


flourish icon

Can’t believe the downtown Minneapolis Arby’s closed at some point while I’ve been out – will have to hop the train to University now


@kingsbury tweeted December 5, 2018


flourish icon

Wish Curtis was on Insty

Pic posted December 5, 2018

OCTO fishbar

From the @kingsbury Instagram account


flourish icon

Put me in, coach

Posted December 5, 2018

Yesterday I had my appointment with the neurosurgeons who needed to approve my return to work. Happy to report that I’ve been cleared to return next week. I really didn’t think it would happen that soon, but I’m super excited to be back in time for the final two regular season Vikings home games (and hopefully at least one playoff game before diving into Final Four prep). Big thanks to everyone at work who stepped in to help while I’ve been out – I’m looking forward to getting back out there. And thanks again to everyone who has facilitated and supported my recovery.

SKOL!


flourish icon

Some exciting news coming to 7minutemiles.com this afternoon


@kingsbury tweeted December 5, 2018


flourish icon

Secret Service nightmare

Pic posted December 5, 2018

Can’t imagine the logistical planning required for this


flourish icon

A Big River Christmas

Pic posted December 5, 2018

Nice job decorating, MK


flourish icon

Pizza night across the street

Pic posted December 4, 2018

Big River Pizza

From the @kingsbury Instagram account


flourish icon

How did I not know about this Oak Island thing until now?


@kingsbury tweeted December 3, 2018


flourish icon

Therapy doge gone rogue

Pic posted December 3, 2018

Why can’t this bird be good all the time?


flourish icon

Unscheduled Downtime

Posted December 2, 2018

Nights like tonight are when I remember just how stressful it can be to have servers remotely hosted 1,300 miles away. As I’ve written many times, this site runs on a Mac mini located in Las Vegas in a data center run by the fine folks at Mac Stadium. While trying to fix my SSL/WordPress/emoji issue (which I’ll write about later), I managed to almost completely lock up the server. I could ping it, but the Screen Sharing session dropped and SSH was unresponsive at first. Eventually I was able to login via SSH and issue a quick “sudo shutdown -r now” command before getting kicked out again. About ten minutes later, I was able to get in via Screen Sharing. Since I had a couple of security updates to install that required a restart, I decided to just continue the unexpected web server downtime and run those installers too. This ended up taking nearly an extra hour, so I apologize if you were trying to load the site and got nothing.

Now back to researching just how WordPress core supports and displays the latest emoji characters…


flourish icon

The European Christmas Market

Pic posted December 2, 2018

Still cool (literally and figuratively), but needs more variety


flourish icon

Grew up in St. Paul and love the place to death, but man are the downtown skyways weird and creepy


@kingsbury tweeted December 2, 2018


flourish icon

Never gets old

Pic posted December 2, 2018

Saint Dinette

From the @kingsbury Instagram account


flourish icon

Best booth at the ice fishing show by far


@kingsbury tweeted December 2, 2018


flourish icon