As a quick note, if you’re looking at a Drupal form and it says you can use the "Rewrite the output of this field" replacement patterns shown (somewhere) on this page — and you can’t find those replacement patterns on that page — you can find a complete list of them at this drupal.org url.

As an example, if you’re working with a Drupal Node, you can use replacement patterns like these:

[node:author:name]
[node:content-type]
[node:content-type:name]

As a quick CSS note, if you want to achieve a “zebra striping” style with even and odd CSS row selectors, CSS styles like this will get the job done:

.path-frontpage .content-inner-right .content-type-Text:nth-child(even) {
    /* yellow */
    background-color: #fdfdf6;
}

.path-frontpage .content-inner-right .content-type-Text:nth-child(odd) {
    /* blue */
    background-color: #f3fbff;
}

I use that CSS for the front page of this website, but if you want a simpler example, here you go:

Today’s song of the day is Similar Features, by Melissa Etheridge. Her self-titled album is one of my all-time favorites.

SQL FAQ: How can I select every row from a database table where a column value is not unique?

I’m working on an problem today where a Drupal article can have many revisions, and the way Drupal works is that a table named node_revisions has a nid field for “node id,” and a vid field for “revision id.” If you have five revisions of an article (i.e., a blog post), there will be five records in this table, and each record will have the same nid value and a unique vid. If an article has no revisions, this table will have one entry with a unique nid and unique vid.

If a guy is going to tweet something after a loss, I like Jon Lester’s attitude. “Nothing I can do but wear it, learn from it, and turn the page.”

If you know me, you know about Zeus, a rescue dog who came back from a very bad place. As a result of a few friendships I know a few people who would like this t-shirt. The iheartdogs.com website says that sales of this t-shirt help to feed seven shelter dogs (at first I thought that was seven shelters) through their partnership with Rescue Bank. If you like the Rescue Bank mission you can skip the t-shirt and go right to the Rescue Bank donation page.

I’ve become a fan of Mike Barr’s paintings recently. This one is called Autumn Rain, but I actually like his darker, evening paintings even more.

One of my favorite songs of the last year or so is One Slip, by Pink Floyd:

Before I write this, just to be clear, on most days and times I’m not laying in bed waiting to die. But, there have been somewhere between 20-30 times where I have laid down in bed not knowing if I’d ever get up again. Five of those times I passed out. Recent lab tests also show that I almost certainly have something called a paraganglioma, which doctors refer to as a “pharmacologic time bomb.”

I ended up in the hospital (ER) again yesterday. For some reason, after I got out and was laying in bed, I started thinking about and looking up different odds:

How to stop time, travel in time, escape time ... the image is from this Pinterest page.

“The way to get started is to quit talking and begin doing.”

~ Sounds like Yoda, but Walt Disney said this (image from this Pinterest page)

My mother is 82 years old, and is dealing with dementia. I called her yesterday and spoke with her and Sister #2 for about ninety minutes. (I have three sisters, and it’s easiest to refer to them by number.) Mom never talks much, but my sister uses her speakerphone, and you hope that mom might be listening a little bit.

We hung up, and then about an hour later my sister called back while mom was sleeping. We talked for a little bit, and when mom started waking up my sister told her, “Al’s on the phone.”

To which my mom replied, “Again?”

:)

This image is a great example of why I rarely look at health-related stuff on the internet. But ... when doctors start saying words to you like Pheochromocytoma and Paraganglioma, this is what you’re looking at.

(Image from the Columbia University Department of Surgery.)

A quote from the first episode of the tv series, The Dead Zone:

“Don’t you hate talking to sick people? You never know what to say. Just try and be cheerful, I guess, right?”

During one of my hospital stays last year, a nurse stopped in several times to talk to me, both when she was checking my vitals, and a couple of times on her breaks. We talked about life, death, and a couple of things in between. It was nice because she had been raised as a Buddhist and we had deep, honest talks, not the usual “small talk” crap you get from a lot of people.

Google just tweeted about this new Material Design for Wearables website. Some of the main content categories are Design Principles, System Overview, Components, Patterns, and Styles.

If you have a Drupal 8 website and your images are not showing up on your image/photo nodes, one possible problem (which I just learned) is that your Drupal 8 theme needs to refer to {{ content }} in node.html.twig and not {{ content.body }}.

I don't know why you have to do that, but after four hours of troubleshooting the problem with my own Drupal 8 website/theme, I can confirm that if you don't do it, your images/photos won't be shown on their nodes. (All I was trying to do was to separate content.body from content.comment, and when I did that my images no longer showed up at their nodes/URLs.)

Impossible is just a big word thrown around by small men who find it easier to live in the world they’ve been given than to explore the power they have to change it. Impossible is not a fact. It’s an opinion. Impossible is not a declaration. It’s a dare. Impossible is potential. Impossible is temporary. Impossible is nothing.”

A website named payscale.com says this about learning Scala: “Depending on your line of work, there are certain in-demand skills that — should you possess them — can equate to a bump in pay compared to the average salaries in your professional field. Mastering these skills will likely help you earn a higher salary.”

Scala Native “is a new ahead-of-time compiler and lightweight managed runtime designed specifically for Scala ... Scala Native is compiled ahead-of-time via LLVM. This means that there is no sluggish warm-up phase that’s common for just-in-time compilers. Your code is immediately fast and ready for action.”

For more information, there’s a little bit of a story about it on JavaWorld.com, and this thread on ycombinator.com.