WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

drush migrate (mim) watermarks

Submitted by barnettech on Fri, 09/29/2023 - 14:38

The high watermark can be set via Drush before running the migration in order to get a different timespan of updates.

For example, to get all updates since 9/1/2023:

drush mshw publication 20230901
drush mim publication --update
Clearing the high watermark will pull all records:

drush mshw publication
drush mim publication --update

A working .lando.yml file that allows enabling of xdebug, and also a launch.json and php.ini (if using WSL2)

Submitted by barnettech on Sat, 09/09/2023 - 18:01
name: example-xdebug
recipe: drupal9

config:
  webroot: .
  # Set Xdebug off by default. We use the tooling below to turn it on as needed.
  xdebug: false

services:
  appserver:
    overrides:
      environment:
        XDEBUG_MODE: 'debug,develop'

tooling:
  xdebug-on:
    service: appserver
    description: Enable Xdebug.
    user: root
    cmd:
      - docker-php-ext-enable xdebug && kill -USR2 $(pgrep -o php-fpm) > /dev/null || /etc/init.d/apache2 reload
      - tput setaf 2 && echo "Xdebug On" && tput sgr 0 && echo

  xdebug-off:
    service: appserver

ChatGPT

Submitted by barnettech on Wed, 06/14/2023 - 11:48

Embeddings versus Fine Tuning: https://youtu.be/_wtfszFzqt0
Forcing it to answer from the data given through embeddings, versus augmenting the sum of chatGPT data. From the spreadsheet example listing a bunch of animal names, which one is likely to speak English was asked, and it's forced to answer and choose from the list of animals, so it picked "Turtle" probably because of the Teenage Mutant Ninja turtles roflol!