Changing the font for one character in a string on a Drupal site
File this under the "it's a very bad idea, but sometimes absolutely necessary" category: I was working on a site that wanted to use a particular font for headlines throughout the site, but the client detested one particular character (an ampersand), and requested any time that character were to occur in the page title, it would be swapped out for a different font.
If at all possible, you should avoid doing what I'm about to describeâbut in the off chance you
How to attach a CSS or JS library to a View in Drupal 8
File this one under the 'it's obvious, but only after you've done it' categoryâI needed to attach a CSS library to a view in Drupal 8 via a custom module so that, wherever the view displayed on the site, the custom CSS file from my module was attached. The process for CSS and JS libraries is pretty much identical, but here's how I added a CSS file as a library, and made sure it was attached to my view:
Add the
Hide the page title depending on a checkbox field in a particular content type
In Drupal 8, many small things have changed, but my willingness to quickly hack something out in a few lines of code/config instead of installing a relatively large module to do the same thing hasn't :-)
I needed to add a checkbox to control whether the page title should be visible in the rendered page for a certain content type on a Drupal 8 site, and there are a few different ways you can do this (please suggest alternativesâespecially if they're more elegant!

Reviving an old dresser by rebuilding the wooden drawer rails
My wife and I needed an extra dresser to keep up with the growing family (third baby is on the way in a few months!), and since we would rather buy things that lastâbut not buy new if we can save a bundle of moneyâwe bought a used wood dresser on Craigslist:

First lesson: always inspect every last bit of furniture before loading it up and hauling it away! Most of the rails were in not-great condition, and the guides on the
The Crêpe I made in honor of Juno's mission to Jupiter
I forgot to post here, after posting to different social networksâwhen NASA's Juno orbiter was placed in Jupiter's orbit, it just so happened to coincide with my family's Sunday night crêpe tradition (see how to make gluten/dairy/egg-free crepes , or how to make normal crepes ).
So what did I do? I used some peanut butter, cream cheese, and nutella to try to depict a tasty food version of Jupiter:
A Jupiter crepeMigrating Link fields with multiple properties with Drupal 8
Today I needed to migrate a URL/Link into a Drupal 8 site, and I was scratching my head over how to migrate it so there were distinct values for the URL (the actual link) and the Label (the 'title' that displays to end users and is clickable). Drupal 8's Link field type allows you to set a URL in addition to an optional (or required) label, but by default, if you just migrate the URL, the label will be blank.
I first
Gluten, egg, and dairy-free sweet crêpe recipe
A few years ago, I posted a quick and simple sweet crêpe recipe , along with directions for making the crepe (I highly recommend using a dedicated crepe maker like the one I have, a CucinaPro 12" Griddle , but a normal crepe pan works as well).

After posting a picture of some special crêpes I make for my children (who have a number of food allergies!) on Twitter, a few people asked for the recipe, since it's a bit
Poor Man's XHProf profiling of Drupal 8 Migrations and Drush commands
On a recent project, there was a Migration run that took a very long time, and I couldn't pinpoint why; there were multiple migrations, and none of the others took very long at all (usually processing at least hundreds if not thousands of nodes per minute). In Drupal 7, if you enabled the XHProf module , then you'd get a checkbox on the configuration page that would turn on profiling for all page requests and Drush commands.
In Drupal 8, the XHProf module was completely rewritten

Getting Emoji and multibyte characters on your Drupal 7 site with 7.50
Edit: Updated blog post title to remove the Emoji (??) since it was breaking Drupal.org's Planet aggregator... hopefully once Drupal.org is upgraded to 7.50 I won't have to do that again :)
Also note that you don't have to enable utf8mb4 support if you get a warning on your Drupal 7 site's status page; it's just a helpful suggestion. Everything besides emoji/special character support still works fine whether
I hit inbox zero!
It's been over three years since the last time I completely drained my main inbox, and reached #inboxzero.
I've been hitting my inbox hard for the past year now, constantly fighting to get it down to < 50 emails... but every time I hit a holiday weekend, worked on a larger home project, or did something like publish a new project, the inbox would start flooding a bit more. I finally made it my goal this year to purge the emails and hit zero
