I switched back to the vintage theme as the 2024 Lamb theme I'm working on has some display issues on mobile. #lamb
Sander van Dragt's Notes
-
-
Setup TextPattern using PHP composer and DDEV
I was totally going to step-by-step this guide but then I lost my draft.
TextPattern (TXP) instructs you to extract a zip file into your webroot and on upgrade replace all the files. If you have used PHP Composer to install your PHP dependencies you know this can be done more smoothly.
Composer PHP dependencies
If you want to the quick way, I've created a
composer.jsonto get you started: view gist.It adds the GitHub repository as a composer dependency, and installs it into the
site/directory usingoomphinc/composer-installers-extender. The repo's type is set as a project type, so there are a couple of lines needed to setup composer installer to match it.Run
composer update, you will now have a site and vendor directory, in addition to the composer files:βββ composer.json βββ composer.lock βββ site βββ vendorMissing JavaScript Depependencies
This typically should have been enough but in the TextPattern GitHub project the
package.jsonfile that contains the JavaScript dependencies is both ignored by git (so is missing from our checkout) but requires dependencies the install needs to run.Let's pull in the copy from the
mainbranch and install the dependencies using npm:$ cd site $ wget https://raw.githubusercontent.com/textpattern/textpattern/main/package.json $ npm install --omit=dev $ cd ..Local environment
For a local environment, I recommend DDEV. To set this up, simplify specify a project name and the docroot where the TXP install is installed to:
$ ddev config --docroot=site --project-name=mysite $ ddev start $ ddev launchThe #TextPattern Setup wizard should now open. Use
ddev describeto inform you of the database values to enter in the setup wizard.edit: For some reason I'm getting a database unavailable message. I'll update this if I find a solution. edit2: Solved I think, either through a reboot or the npm instructions.
-
If you're looking for a script to get the top errors form a PHP error_log, then I published that: https://github.com/svandragt/top-php-errorlog #projects
-
There is no barrier when there is no UI friction. #lamb #projects
-
By the time you're logged into your CMS or web service you could have already posted something. #lamb #projects
-
We need more instant publishing on the web. All the UI holds back our ideas. #technology #lamb #projects
-
Macos' patch command is outdated and doesn't work with some modern patches. Homebrew has a gpatch (GNU's patch) which is up to date and the composer PHP utility takes advantage of this automatically if it's installed. #til
-
Wine32 on elementaryOS 7 or Ubuntu 22.04
x86 games, like Championship Manager 01/02, might not install on this OS which cannot install wine32 due to system conflicts. This means apps like Bottles (Wine wrapper) cannot select a working Wine version.
To get around this, install the PlayOnLinux flatpak, which has an option to change the current Wine version. This will let you pick x86 versions, which install wine32 inside the flatpak. After which the installer will run.
If you get prompted to insert the CD use this trick to copy the the files into a virtual CDROM
-
Taskfile 2.0.0
I've released Taskfile 2.0.0, a task runner using taskfiles containing bash functions.
It's a nicer menu and shorthand for sourcing a bash file with functions.
The latest version contains a few small changes. As I renamed system tasks, semver dictates a new major version is called for:
Breaking change: inbuilt tasks (_edit, _edit-local, _help) are now prefixed with underscores so they're hidden from the Task list.
- New: hide your own helper tasks by prefixing their function name with underscore
- New: edit your local taskfile by running t _edit-local
- General tidying up
To update simply git pull if you git installed it, or replace the Taskfile.sh script some other way.
-
While Palworld allows for online play, its huge concurrent player numbers were not the result of its developer carefully cultivating a fear of missing out (FOMO) among players.
A chill game thatβs not causing mental health issues, genius.