groups

Every now and then a group of people assumes the traits and behaviors of sociopaths

This is a fun response from this Ask Polly Q&A:

“Your in-laws are next-level, off-the-charts batshit.

Every now and then, a group of people assumes the traits and behaviors of sociopaths. Maybe one person in the group completely and permanently lost their doughnuts several decades prior, and slowly, each member of the group learns that playing along with this singular menace is the only way to survive. Eventually, the members of the group are so utterly confused and gaslit by each other that they enforce the will of the group and nod along with bizarre opinions until they can’t even remember what it means to think logically or have free will or behave like other regular human beings on the face of the planet.

Because these people are confused and weak and angry — and because they’re rendered increasingly more confused, weak, and angry by their exposure to each other — they tend to have less and less contact with those outside the group. And when they do encounter someone who’s not in the fold, they recoil and attack. Anyone who questions the group is attacked with words and actions. Anyone who questions the group is bad, and the group is good.”

Scala: How to extract parts of a String that match regex patterns alvin July 10, 2017 - 8:32am

This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 1.9, “Extracting Parts of a String that Match Patterns.”

Problem

You want to extract one or more parts of a Scala String that match the regular-expression patterns you specify.

Solution

Define the regular-expression (regex) patterns you want to extract, placing parentheses around them so you can extract them as “regular-expression groups.” First, define the desired pattern:

A Drupal fieldset example (Drupal form group)

Drupal form fieldset FAQ: How do I build a Drupal form using one or more fieldset areas to group my form elements into logical components (like 'shipping address', 'billing address', 'credit card information', and so on)?

As inferred by the question, you group Drupal form elements using the Drupal fieldset element. You define a fieldset, then add form elements to that fieldset using a simple sub-array syntax. For example, in the following Drupal source code example I define a fieldset using an array like this: