Sand Fox (old posts, page 7)
-
Resizing small EFI partition
It started with the firmware failing to update because the EFI partition was low on free space. (Dell, why do you need 70 MB on the EFI while also making it as small as 150 MB at the same time?) Well, resizing the partition is the obvious solution except it ended in a wonderful error message:
(spoiler: they're not)
In my case the GPT partition was resized, just the filesystem was not grown, I only needed to reformat it.
-
March Packages on Packagist
I'm continuing to publish useless nih junk on the Packagist:
arokettu/arithmetic-parser: A very configurable arithmetic parser and calculator. You can define your own set of functions and operators. You can even disable multiplication if you want to!
arokettu/clock: A set of PSR-20 clock implementations. Everyone has these implemented so why not me? :D
arokettu/system-clock: All these PSR-20 clock packages usually contain a ton of clocks for testing purposes but most of the production code needs only
new DateTimeImmutable('now')
so I extracted SystemClock to a separate package that has only SystemClock.php and composer.json for the smallest possible package (if you don't count uglifying it js-like)-
arokettu/kilo-mega: This one was actually released on February but I've forgot to write about it. It's a simple formatter for metric prefixes.
Also a new significant release:
arokettu/torrent-file: Torrent file class got file listing classes for v1 and v2 metadata in 5.0 release.
-
GPL Incompatibility
"GPL incompatibility" of a FOSS license is not a problem of the incompatible license, it's the problem of the GPL. Most permissive licenses and file-based copyleft licenses can be used together in a project without any conflict and that's great. It's GPL that doesn't like any neighbors.
-
Moving packages to Arokettu
Just finished moving my old composer packages from
sandfoxme/*
toarokettu/*
.Full list:
I tried to make the migration process as smooth as possible. I'm sorry for the inconvenience it might have caused.
-
Installing Composer in Docker the 2020-s Way
While the original way is still valid, in Docker it's now easier to copy the Composer executable from its Docker image.
or for PHP < 7.2.5
Please note that without the installer, dependencies won't be checked, so you also need to install git and/or zip, and preferably optional dependencies like mbstring too.
Found accidentally on the Stack Overflow. There is also another interesting and underliked method for the case when you don't want to keep the composer executable and cache files in your image.
-
LGPL is a bad practice
TL;DR: Don't use LGPL, avoid library-based copyleft in general.
The closest acceptable no-brainer replacement should be GNU GPL with Classpath Exception, but the concept of library-based copyleft itself is flawed. It's better to consider MPL (less copyleft) or full GPL (more copyleft).