Talking Drupal: Skills Upgrade #7

Welcome back to “Skills Upgrade” a Talking Drupal mini-series following the journey of a D7 developer learning D10. This is episode 7.

Topics

  • Review Chad’s goals for the previous week

    • Test Example
    • Set up phpunit.xml
    • Start with FrontPageLinkTest.php
  • Review Chad’s questions

    • In the testing_example module, the file “src/Controller/TestingExampleController.php” has a function for simpletestDescription(). Is this an outdated artifact that should have been removed at some point? The module itself doesn’t appear to use Simpletest elsewhere and appears to only rely on PHPUnit.
    • What do you recommend for the minimal code structure to include for any given test type? Is the Testing Example module an ideal model or are there other resources I should review? The testing reference from Selwyn was helpful.
    • In the “FrontPageLinkDependenciesTest.php” setUp() function, the createContentType() function is called without specifying the type. Is that set somewhere else? I may have overlooked it. Nevermind—it’s set using randomMachineName() in the createContentType() function. Is there anything extra or standard to write in tests for drupal.org?
  • Tasks for the upcoming week

    • Smart Date – Martin (maintainer) to review promptly, I’ve already chatted with him about it. Create a new functional test: “submit a range with an end time before the start and validate that an error is returned”
      • Create an issue in the Smart Date queue and assign to yourself.
      • Create an issue fork.
      • Check out the issue fork locally.
      • Write (and test) the test locally.
      • Commit and push to the issue fork.
      • Mark issue as “Needs review”.
      • Ask someone to review – if all looks good, the reviewer will mark as RBTC.

Resources

Chad’s Drupal 10 Learning Curriclum & Journal Chad’s Drupal 10 Learning Notes

The Linux Foundation is offering a discount of 30% off e-learning courses, certifications and bundles with the code, all uppercase DRUPAL24 and that is good until June 5th https://training.linuxfoundation.org/certification-catalog/

Hosts

AmyJune Hineline – @volkswagenchick

Guests

Chad Hester – chadkhester.com @chadkhest Mike Anello – DrupalEasy.com @ultimike

In -current, default write format for tar(1) changed to “pax”

A series of commits by Jeremie Courreges-Anglas (jca@)
has modified
tar(1)
such that its default write format (for archives) is that of
pax(1).
The message with the final
commit
captures the gist of the change:

CVSROOT:	/cvs
Module name:	src
Changes by:	jca@cvs.openbsd.org	2024/04/16 17:09:35

Modified files:
	bin/pax        : options.c tar.1 

Log message:
Switch tar(1) write default format to 'pax'

Lets us store longer file names, link names, finer grained timestamps,
larger archive member files, etc; at the expense of larger uncompressed
archives and less widespread support across the ecosystem.  If you're
unhappy with the new defaults, you can use -F ustar.  Or you can help
fix bugs / find a better middle ground.

Prodding from various including job@ and deraadt@
ok sthen@ caspar@ millert@

`

Open Source in the Age of LLMs

Open Source in the Age of LLMs

(To read the complete Mozilla.ai publication featuring all our OSS contributions, please visit the Mozilla.ai blog) Like our parent company, Mozilla.ai’s founding story is rooted in open-source principles and community collaboration. Since our start last year, our key focus has been exploring state-of-the-art methods for evaluating and fine-tuning large-language models (LLMs). Throughout this process, we’ve […]

The post Open Source in the Age of LLMs appeared first on The Mozilla Blog.

A better, more compact UI for Firefox

Proton is Firefox’s new design, starting from Firefox 89. Photon is the old design of Firefox which was used until version 88. Proton’s overall feel is good, but there were a few things I didn’t like and wanted to improve.That’s why this project was born, and Lepton to denote light theme layer. Lepton’s photon styled is preserve Photon’s feeling while keep Original Lepton’s strengths. ↫ Firefox UI Fix GitHub page I do not like the current Firefox user interface, because even with the ‘compact’ layout re-enabled in about:config, I find it just too bulky and wasteful of my screen real estate. I’ve been using the above Firefox user interface mod for ages now, and I can’t imagine using Firefox without it. The GitHub pages and guides are a bit of a mess and difficult to follow due to the project consisting of several overlapping different styles, but I just use the script listed here, selecting the style “2” when running the script. It won’t be for everyone, but for me, it makes Firefox nice and compact, turning it into a mouse-first interface without trying to accommodate touch. This is also by far not the only project with this goal, so if you’re using something else – feel free to list them.

Life Saver Series – CPR Training & Awareness Program at CPS Mumbai

Video by via Dailymotion Source Join us for a transformative CPR training and awareness program at CPS Mumbai. In this Life Saver Series, we equip participants with vital skills to respond effectively in cardiac emergencies. Through interactive sessions and hands-on training, our dedicated instructors empower the community to become confident first responders. Together, let’s save … Read more

Israel abre “ofensiva diplomática” contra Irã

Video by via Dailymotion Source Israel iniciou uma “ofensiva diplomática” contra o Irã nesta terça-feira (16) e pediu a 32 países que adotem sanções contra a Guarda Revolucionária da República Islâmica e seu programa de mísseis, após o ataque do fim de semana. Assista ao Jornal da Manhã completo: https://youtube.com/live/91neOR0u_ow Baixe o app Panflix: https://www.panflix.com.br/ … Read more

Attaque de l’Iran sur Israël : Zelensky raille les interceptions de missiles par l’Occident

Video by via Dailymotion Source Volodymyr Zelensky a réagi ce lundi 15 avril après l’attaque inédite de l’Iran contre Israël, repoussée avec l’aide des États-Unis, du Royaume-Uni, et de la France. Dans son message, Volodymyr Zelensky a rappelé qu’« Israël n’est pas membre de l’Otan ». « Personne n’a été entraîné dans la guerre. Ils ont simplement contribué à … Read more