In this video I’ll show you how to fix an odd phenomenon I’d like to call “The Occasional White Screen of Death”. Here’s what happened:
Podcast: Download (Duration: 6:26 — 5.9MB)
WordPress has a hook that lets us add arbitrary HTML code to the <header> tag of a website. Several plugins can be found that accomplish this, but it’s so easy to do that a plugin is often overkill. Here’s how you can execute an arbitrary PHP function using the wp_head hook: // write some text … Read more
There’s a handy function in WordPress called wp_get_archives(). With it we can create a lot of useful output with just a few lines of code. To list all articles ever published on a site, we can do this: This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. … Read more
I really like WordPress, and I really like JetPack. I use the plugin on many client websites, who usually have their own WordPress.com account, which is necessary to enable the plugin successfully. Most of them however choose not to sign up for a payment plan, which as of 2017 leads to (now rather annoyingly frequent) … Read more
In the GNOME desktop, there is no obvious way to tell which version you’re running by way of the GUI. Instead, we need to consult the command line and try out a couple of commands to find out more. Here’s how. Let’s open a Terminal session and do some hacking. GNOME 2.x If you’re running … Read more
I had a weird phenomenon on a Multisite installation the other day. I can’t tell you with which update exactly it happened, as I only write a post on that site once every couple of months, but it must have been around the 4.7 or 4.8 upgrade. Here’s what was happening: I could log into … Read more
Not only is Xcode an excellent IDE for iOS and macOS apps in both Swift and Objective-C; it does just as fine a job for regular C and C++ code. This includes all the features we know and love, such as code completion, version control, and all the rest of it.
Let’s see how to use Xcode 8.3 for C and C++ development.
A Chinese Version of this article can be found here.
Something rather strange happened to me today: Safari 10 on macOS Sierra refused to let me login to YouTube. All it did was constantly refresh the page in an endless loop, or just display the front page of YouTube. I cleared the caches, reset the history, but no trick seemed to solve the problem. When … Read more