I thought I had built the hmatrix package on Windows 10 version 2004, but that was a blue pill illusion. The red pill reality was more complex. MSYS2 The Haskell Tool Stack comes with a version of MSYS2, in a folder of the folder returned by stack path –programs. Currently, that folder is msys2-20180531. A […]
Reanimator
David Himmelstrup’s reanimate package provides a library for generating animations programatically. I wanted to use it on Windows 10, but hit a dead end. However, I had better luck with Windows Subsystem for Linux (WSL) 2 and Ubuntu 20.04 LTS. GSL and linear algebra reanimate depends on the hmatrix package, which, in turn, requires the […]
Moving to WSL 2
Windows 10 version 2004, rolled out from 27 May 2020, arrived on my machines, allowing a move from Windows Subsystem for Linux (WSL) 1 to WSL 2. However, there was a wrinkle. File Explorer integration WSL promises access to the Linux root file system with File Explorer, by entering explorer.exe .. This did not work; […]
Moving to Catalina
Moving my ‘mid 2011’ Mac mini to macOS High Sierra was not easy and it seemed it was stuck there. Apple said that macOS Mojave was not available for my machine and the same was true for macOS Catalina, launched in October 2019 and now at version 10.15.5. Then I discovered Dosdude1’s Catalina Patcher, currently […]
Balls
I wanted to add JavaScript to a WordPress post, in order to animate on a canvas element. Canvas I added the canvas element in the Code Editor, giving it the unique id myCanvas. The width and height of the element are measured in pixels. JavaScript The JavaScript did not need to export any identifiers, and […]
Moving to Gutenberg
The Gutenberg editor is now WordPress’s default and support for the previous Classic editor is through a plugin. That support is not guaranteed after 31 December 2021. I wanted to patch Aram Kocharyan’s Crayon Syntax Highlighter plugin to work with Gutenberg. Other people have had the same objective. I relied heavily on Fedor Urvanov’s resuscitation […]
Highlighting PowerShell Core
I use a patched version of Aram Kocharyan’s Crayon Syntax Highlighter as a syntax highlighter plugin for WordPress, currently version 5.3.2 running on PHP 7.3.14. I wanted the plugin to highlight PowerShell Core scripts in the same way that the PSReadLine module does. Configuring the theme I created a new Crayon theme Solarized Dark PS […]
Powershell Core
Windows 10 replaced the Command Prompt (cmd.exe) with Windows PowerShell (powershell.exe) as the default command-line interpreter (CLI). PowerShell Core (pwsh.exe) is the successor to Windows PowerShell. Until recently, I had used the Command Prompt through the Windows Terminal with the DejaVu Sans Mono font and the Solarized Dark colour scheme. What would be required to […]
PHP 7.3.13
I switched from PHP 7.2.26 to PHP 7.3.13 and that broke my WordPress blog. The problem was Aram Kocharyan’s Crayon Syntax Highlighter plugin. Version 2.8.4 has not been updated for 4 years. PCRE to PCRE2 The transition from PHP 7.2.x to PHP 7.3.x upgraded the PCRE (Perl Compatible Regular Expressions) extension to PCRE2. User ‘baseapp’ […]
Programming ligatures
A ligature is a glyph formed by two or more graphemes. Computer fonts with programming ligatures use ligatures to present lexemes formed of two or more symbols. There is disagreement over whether that is useful or harmful – harmful because the presentation masks the symbols required to form the lexeme in code. Ian Tuomi’s Hasklig […]