Simon Fletcher was elected to the Denver Broncos Hall of Fame yesterday. He was just on a local radio station, and sounds like a really nice guy. He has a BBQ restaurant in Fort Morgan, Colorado named Grid-Iron Grill & BBQ, and I’m going to have to take a trip there on day to check it out.

Outside of dancing with a couple of married women somewhere in the deep south (after more than a few margaritas), and one long night in Las Vegas, the last song I can remember dancing to in public is “What’s On Your Mind (Pure Energy),” by Information Society.

Wim Leers has at least three good blog posts on the Drupal 8 “Page Cache” and performance, which promises to be much better than Drupal 7 performance. Drupal 8 now has page caching enabled by default states, “Drupal 8 is now between 2 and 200 times faster than Drupal 7 for anonymous users.”

Drupal 8’s Dynamic Page Cache discusses D8’s Dynamic Page Cache. As the article states, “The Page Cache module only works for anonymous users, the Dynamic Page Cache module takes that a step further: it works for any user.”

renderviz: tool visualizing Drupal 8's render tree provides a few more details, and also provides a demo of the cool Firefox Developer Tools 3D view. The image I show comes from that page.

As I wrote in Huge Drupal 6/7 Boost module performance improvements, the Boost module for Drupal 6 and 7 makes this website render pretty fast, and it sounds like Page Cache is a replacement for Boost in Drupal 8.

As a quick note, if you need a Drupal 8 Twig template if/else/then structure where you test to see if a string value is in an array, code like this will work:

{% if node.getType not in ['photo', 'text']  %}
    <div class="similar">
        {{ similar_by_terms }}
{% endif %}

That code can be read as, “If the node type is NOT ‘photo’ or ‘text,’ emit the HTML/Twig code shown.”

I was just trying to modify one of my Drupal 8 template files — node.html.twig — and I couldn’t find any good documentation for what variables/values/fields are in the Drupal 8 Node class, so I dumped some output to my browser, and saw that these are the Node fields:

In honor of “Mental Health Month,” this is Ophelia, by Natalie Merchant.

Ophelia’s mind went wandering
You’d wonder where she’d gone
Through secret doors
Down corridors
She’d wander them alone
All alone...

May is “Mental Health Month,” and Gemma Correll has put together a great series of images to recognize it. This Facebook link might take you to the beginning of her illustrations.

“The koan ‘No’ didn’t immediately change the shape of my life ... it was more that the koan reset my mind to zero.”

A quote from Bring Me the Rhinoceros: And Other Zen Koans That Will Save Your Life.

One of the things I realized lately is that it’s dumb for me to use Drupal for several of my websites. To be more accurate, it’s not dumb to use Drupal to create the website, but it’s dumb for me to serve the website using Drupal when they can just be served using static pages.

“Now I am placing my mind upon the breath.”

I read that sentence in a book recently, and I’ve found it to be a very helpful thing to say to myself as I begin a meditation session.

When you’re meditating in a group, there’s a certain “peer pressure” (for lack of a better term), where everyone agrees that (a) you’re there to meditate, (b) you’re going to start now, and (c) you’re going to stop in thirty minutes or so. But when you meditate by yourself there is no peer pressure, so if you hear an unexpected noise, or your mind starts wandering, well, it’s a lot easier to lose your focus when you’re on your own. That’s why I’ve come to like saying this sentence to myself. I say it when I start a meditation session, or any time I lose focus during the session.

When I say it at the beginning of a meditation session I usually add a time limit, so the entire phrase is something like, “Now I am placing my mind upon the breath, and I will keep it there for the next thirty minutes.” I might add, “After that my mind can wander around willy-nilly if it likes, but for the next thirty minutes it’s just me and my breath.” You can also substitute the word awareness for mind in that sentence, if you prefer.

FWIW, I don’t think I read that phrase in the book, Practicing the Jhanas, but I hand-wrote it in there on page 14, where they start to discuss how to meditate in their style of meditation. I mention this book because it’s my favorite mindfulness meditation book. It is one of the first books I’ve read that makes it very clear that there is a difference between (a) access concentration and (b) everything you can achieve access concentration.

You can’t use the same theme code in Drupal 8 that you used in Drupal 6, so I’m currently trying to remember everything I’ve forgotten about CSS, hence these bright rectangles of color. One thing I learned today is that the brown-ish footer in this layout needs to have the attribute, clear: both.

It’s probably not good for my reputation as a male, but I really like the music of Natalie Merchant. (I also like Guns ’n Roses and Godsmack, so there’s a balance.) This song, Kind and Generous, is one of my favorite uplifting favorites. (Thick as Thieves is also a favorite, but in a very different way.)

“Romeo and Juliet, the dyslexic version.”

The dialog between Timothy Hutton and Natalie Portman is my favorite part about the underrated movie, Beautiful Girls.

Drupal 8 FAQ: What is the correct name for a custom drupal theme file? That is, if I want to create a preprocess_node or template_preprocess_node function, what is the name of the file that those custom Drupal 8 preprocess functions go in?

I’m not going to discuss this code much, but in short, the source code below is for a Drupal 8 preprocess_node function that I use to set variables for (a) a custom view and (b) a custom block. I set the variables in this function, and then display them in my node.html.twig file like this:

{{ similar_by_terms }}

and this:

One summer day in 2011 I was meditating in the mountains in Alaska when I heard some other people. Turns out they were paragliding. Here’s a short video of them, and the area:

Drupal FAQ: What are the Twig template file naming conventions for Drupal 8? Specifically, how do I need to name a template file so it will be used for the front page of my website?

In short, the Drupal 8 Twig “HTML” template file has this name:


and if you want to create a custom HTML front page template, use this name:


The same goes for “page” and “node” files, where the default page template file has this name:

Continuing yesterday’s theme of 1970s soul music (Shaft, by Isaac Hayes), this is a nearly twelve-minute long version of Papa Was a Rolling Stone, by The Temptations.<