Scala, Java, Unix, MacOS tutorials (page 200)

One thing you quickly learn when living in Colorado is that young/baby rattlesnakes are more dangerous than older rattlesnakes. That’s because they haven’t learned how much venom they need to use, so they give you the full dose. You can read more about it in this story at the Denver Post.

When I work at home I usually turn on the tv in the afternoon to hear some background noise, and I just noticed that there’s an episode of the Medium tv series named Mrs. O’Leary’s Cow. I didn’t know what that referred to, so I just looked it up, and it refers to a cow that legend says started the Great Chicago Fire of 1871.

As a note for any doctors or medical students/researchers out there, I had a pelvic MRI 72 hours after a coronary angiogram, and the MRI dramatically reduced my femoral artery pain. I don’t know if the MRI just helped with the symptoms, or did something that helped heal the wound, but the pain relief was significant. On the way into the MRI I was walking very slow, and on the way out I could walk at a normal pace. If anyone reads this, I hope that’s a helpful hint for someone else out there.

For more information on this, here’s my story of a possible heart attack, nuclear stress test, coronary angiogram, a pheochromocytoma, and an MRI.

In a related note, I found this bandage on the place where the doctors went in on my femoral artery.

MRI relieved femoral artery pain after coronary angiogram

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:

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 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: