Conditional Fields in Paragraphs Using the Javascript States API for Drupal 8
“While creating content, there are pieces of information that are only relevant when other fields have a certain value.”
read »
Most of us do not want to grow beyond what we know ourselves to be, and confronting death will force us to reexamine our conclusions. Once awareness is able to move through that resistance, an enormous amount of pent-up energy is liberated. That energy is the glue that has cemented our human sense-of-self together since … Continued
This shift toward allowing ourselves to be fully embraced by awareness starts with a keen interest in understanding what we are. Listening is the receptive action of awareness, and begins with the humility to release our knowledge and opinions to receive what is actually occurring. We “listen” to what awareness is revealing about what we … Continued
I was converting some ACF fields to Gutenberg ACF fields and put together some options for how/where content can be edited. The acf_register_block_type() function has the mode option. The allowed values are: – auto: Preview is shown by default but changes to edit form when block is selected. – preview: Preview is always shown. Edit … Continued
“While creating content, there are pieces of information that are only relevant when other fields have a certain value.”
read »
“This documentation is for modules. For themes, see Adding stylesheets (CSS) and JavaScript (JS) to a Drupal theme. In Drupal 8 and later versions, stylesheets (CSS) and JavaScript (JS) are loaded through the same system for modules (code) and themes, for everything: asset libraries.”
read »
“I don’t like mocks in unit testing (I use them, but don’t like them). It often results in tests that only assure some specific method was called with certain parameters. It is this approach that may lead some to think that writing tests is writing the code twice, and therefore a waste of time.”
read »
“Digital Ocean Functions is a serverless compute product Digital Ocean recently launched. It supports PHP as one of the runtimes, along with Node.js, Python, and Go.”
read »
“WebPageTest’s custom scripting functionality unlocks some very powerful testing capabilities, including being able to test multi-step user journeys and flows through your site and application. Writing those scripts, however, can sometimes be challenging.”
read »
“For 52 straight days this winter, Shannon Hovey woke up in the company of five other men in a metal tube, 20 feet long and seven feet in diameter, tucked deep inside a ship in the Gulf of Mexico.”
“TL;DR: Use COUNT(), not COUNT(id), when you want to count rows. You have probably read in a bunch of different places that you shouldn’t use SELECT() in MySQL when you don’t need all the data. SELECT(*) selects all the columns in the table, not just the ones that you might need.”
read »
“The list of obstacles to the stock market rally gets longer by the day. Equities had a blast in July with those in Europe and the US rising the most since 2020, yet it’s a long way from a short-term bear market rally to a sustained move higher.”
“In 2007, a group of engineers from Amazon published The Dynamo Paper, which described an internal database used by Amazon to handle the enorous scale of its retail operation.”
read »
“Nicholas Carr on deep reading and digital thinking. In 1964, the Canadian philosopher Marshall McLuhan published his opus Understanding Media: The Extensions of Man. In it he writes, “In the long run, a medium’s content matters less than the medium itself in influencing how we think and act.”
read »
“You probably won’t finish this article. In fact, I may have already lost you to another tab in your browser. Or an email from your boss. Or a ping from a coworker. Or any number of other digital distractions that have come to define modern life.”
read »
Today be the best Damselfly you can.
I was testing out a bash script on my Mac and the script had some code to switch the shell from /bin/zsh to /bin/bash so that I would have similar shell to the servers the code would run on. There was also code to switch it back to /bin/zsh but I think with the script … Continued
“Redwood and Blitz are two up-and-coming full-stack meta-frameworks that provide tooling for creating SPAs, server-side rendered pages, and statically generated content, providing a CLI to generate end-to-end scaffolds.”
read »
“One thing that many macOS users don’t know is that they are using a completely outdated version of the Bash shell. However, it is highly recommended to use a newer version of Bash on macOS, because it enables you to use useful new features. This article explains how to do this.”
read »