RSSAmplifier

Blog

Riff Blog - Surfing the dataverse, to the sound of music

blog.riff.orgRSS feed ↗10 posts

Latest posts

How to use modules or themes not yet available on Drupal 11 with Composer

How to use modules or themes not yet available on Drupal 11 with Composer Frederic Marand Fri, 2025-01-03 18:43 Computing PHP Drupal tips and tricks DRUPAL-10 DRUPAL-11 The problem Let's face it, with the velocity of major version upgrades in Drupal having increased a lot since Drupal 9, many projects - both themes and modules - do not yet have releases for Drupal 11, or even Drupal 10 for some of…

Avoid gettings your Gogs instance hacked after CVE-2024-39930

Avoid gettings your Gogs instance hacked after CVE-2024-39930 Frederic Marand Tue, 2024-07-09 14:46 Computing security If you are using the Gogs git server and just apply updates automatically without Reading The Fine Manual, your server automatically became vulnerable with the 0.13 releases. The problem In that version config section [service] was removed, after having been deprecated in the 0.12…

Tip of the day: using Homebrew to get PHP Pear extensions behind a proxy

Tip of the day: using Homebrew to get PHP Pear extensions behind a proxy Frederic Marand Thu, 2023-06-01 14:15 PHP php pear pecl Homebrew macos Most of the time, installing tools using Homebrew works flawlessly, including PHP these days. However, having to work in a client environment requiring a proxy, the PHP 8.1 post-install failed when updating Pear/Pecl channels, although the usual http_proxy…

The end of function execution in Go code

The end of function execution in Go code Frederic Marand Mon, 2023-05-29 21:24 Google Go = Golang DevoxxFR Every Go function needs to end at some point, even main and test functions. But the way the end impacts how we can work after they finish. This presentation created for DevoxxFR 2023 describes the available mechanisms.

Tip of the day: validating a Jenkinsfile from the CLI with HTTPie

Tip of the day: validating a Jenkinsfile from the CLI with HTTPie Frederic Marand Fri, 2023-05-19 14:56 Computing devops jenkins An easily missed feature in Jenkins is the bundled linter for Jenkinsfiles. While there are many examples about how to use it with cURL, I could not find any using HTTPie, which I find much more convenient in general than cURL. So, after some fumbling due to the little…

Writing an SMTP service in Go

Writing an SMTP service in Go Frederic Marand Fri, 2023-04-14 11:46 Google Go = Golang smtp DevoxxFR Because sometimes, it's nicer to users to allow them to contact us by email, it occasionally becomes useful to handle incoming mail. Let's see how. In this talk I have at DevoxxFR 2023 on 2023-04-14, we shall see the pros and cons of push (straight SMTP with or without TLS) vs pull (POP3, IMAP4,…

Tip of the day: running Flagr Docker image on a M1 mac

Tip of the day: running Flagr Docker image on a M1 mac Frederic Marand Fri, 2022-10-21 17:04 Computing Google Go = Golang macos Docker After almost one year with an Apple Silicon macBook, I eventually got my first actual problem caused by the architecture : trying to deploy the Flagr Open Source feature flags service, the docker deployment failed like with an image error. The fix turned out to be…

Parsing actual IANA language codes

Parsing actual IANA language codes Frederic Marand Fri, 2022-09-30 15:14 Computing Google Go = Golang Grokking Drupal i18n x/text DRUPAL-8 DRUPAL-9 DRUPAL-10 While working on i18n in Go with the golang.org/x/text package, I had to dive into the subtleties of language tags (RFC5646) and their filtering/lookup (RFC4647) and, would you believe it ? things are much less simple than we usually take…

Tip of the day: how to edit Ansible Jinja2 templates in JetBrains IDEs

Tip of the day: how to edit Ansible Jinja2 templates in JetBrains IDEs Frederic Marand Sun, 2021-12-26 14:36 Computing Ansible Jinja2 Twig Goland phpstorm One annoying missing feature in most JetBrains IDEs is the lack of builtin support for Jinja2 templates, used notably as the Ansible template engine. One paid solution exists, the OrchidE plugin, but there is a free workaround. Can you guess…

Tip of the day: patching legacy Drupal 7 projects with Composer

Tip of the day: patching legacy Drupal 7 projects with Composer Frederic Marand Tue, 2021-01-26 10:30 PHP Drupal tips and tricks DRUPAL-7 Composer Some late Drupal 7 projects use Composer for project structure and tooling, even though they don't use Composer for the Drupal requirements proper. In that case, the normal Drupal 8/9 patching process using cweagans/composer-patches is not available,…