Formerly /u/Zagorath on the alien site.

  • 8 Posts
  • 640 Comments
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle
  • Yeah in truth I haven’t used physical money in ages either. Tap to pay is so much more convenient, and even before cards started having that, inserting and entering your PIN was still way more convenient than the annoyance of cash. If I find out a place doesn’t take card, I’ll usually just walk out.




  • Honestly I can’t even figure out how to get that alpine-chrome image to work. I edited my Dockerfile to say

    FROM zenika/alpine-chrome:with-puppeteer
    

    instead of

    FROM node:22
    

    I tried changing USER node to USER chrome. I removed all the apt-get dependencies that were needed to get Puppeteer working in Docker on my PC in the first instance, and added --chown=chrome to my COPY package.json line, all as described in the with-puppeteer example. I also added the ENV lines from that. (I also tried various combinations of some of the aforementioned changes but not others.) Now I get an error with the npm install step.

    Error message
    15.44 npm ERR! code 1
    15.44 npm ERR! path /usr/src/app/node_modules/canvas
    15.44 npm ERR! command failed
    15.44 npm ERR! command sh -c prebuild-install -r napi || node-gyp rebuild
    15.45 npm ERR! prebuild-install warn install No prebuilt binaries found (target=7 runtime=napi arch=x64 libc=musl platform=linux)
    15.45 npm ERR! gyp info it worked if it ends with ok
    15.45 npm ERR! gyp info using node-gyp@8.4.1
    15.45 npm ERR! gyp info using node@20.15.1 | linux | x64
    15.45 npm ERR! gyp info find Python using Python version 3.11.10 found at "/usr/bin/python3"
    15.45 npm ERR! gyp http GET https://nodejs.org/download/release/v20.15.1/node-v20.15.1-headers.tar.gz
    15.45 npm ERR! gyp http 200 https://nodejs.org/download/release/v20.15.1/node-v20.15.1-headers.tar.gz
    15.45 npm ERR! gyp http GET https://nodejs.org/download/release/v20.15.1/SHASUMS256.txt
    15.45 npm ERR! gyp http 200 https://nodejs.org/download/release/v20.15.1/SHASUMS256.txt
    15.45 npm ERR! gyp info spawn /usr/bin/python3
    15.45 npm ERR! gyp info spawn args [
    15.45 npm ERR! gyp info spawn args   '/usr/src/app/node_modules/node-gyp/gyp/gyp_main.py',
    15.45 npm ERR! gyp info spawn args   'binding.gyp',
    15.45 npm ERR! gyp info spawn args   '-f',
    15.45 npm ERR! gyp info spawn args   'make',
    15.45 npm ERR! gyp info spawn args   '-I',
    15.45 npm ERR! gyp info spawn args   '/usr/src/app/node_modules/canvas/build/config.gypi',
    15.45 npm ERR! gyp info spawn args   '-I',
    15.45 npm ERR! gyp info spawn args   '/usr/src/app/node_modules/node-gyp/addon.gypi',
    15.45 npm ERR! gyp info spawn args   '-I',
    15.45 npm ERR! gyp info spawn args   '/home/chrome/.cache/node-gyp/20.15.1/include/node/common.gypi',
    15.45 npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
    15.45 npm ERR! gyp info spawn args   '-Dvisibility=default',
    15.45 npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/chrome/.cache/node-gyp/20.15.1',
    15.45 npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/src/app/node_modules/node-gyp',
    15.45 npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/chrome/.cache/node-gyp/20.15.1/<(target_arch)/node.lib',
    15.45 npm ERR! gyp info spawn args   '-Dmodule_root_dir=/usr/src/app/node_modules/canvas',
    15.45 npm ERR! gyp info spawn args   '-Dnode_engine=v8',
    15.45 npm ERR! gyp info spawn args   '--depth=.',
    15.45 npm ERR! gyp info spawn args   '--no-parallel',
    15.45 npm ERR! gyp info spawn args   '--generator-output',
    15.45 npm ERR! gyp info spawn args   'build',
    15.45 npm ERR! gyp info spawn args   '-Goutput_dir=.'
    15.45 npm ERR! gyp info spawn args ]
    15.45 npm ERR! Package pixman-1 was not found in the pkg-config search path.
    15.45 npm ERR! Perhaps you should add the directory containing `pixman-1.pc'
    15.45 npm ERR! to the PKG_CONFIG_PATH environment variable
    15.45 npm ERR! Package 'pixman-1', required by 'virtual:world', not found
    15.45 npm ERR! gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
    15.45 npm ERR! gyp ERR! configure error
    15.45 npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
    15.45 npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/usr/src/app/node_modules/node-gyp/lib/configure.js:259:16)
    15.45 npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:519:28)
    15.45 npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
    15.45 npm ERR! gyp ERR! System Linux 6.10.14-linuxkit
    15.45 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/src/app/node_modules/.bin/node-gyp" "rebuild"
    15.45 npm ERR! gyp ERR! cwd /usr/src/app/node_modules/canvas
    15.45 npm ERR! gyp ERR! node -v v20.15.1
    15.45 npm ERR! gyp ERR! node-gyp -v v8.4.1
    15.45 npm ERR! gyp ERR! not ok
    15.45
    [+] Running 0/1A complete log of this run can be found in: /home/chrome/.npm/_logs/2025-02-18T01_04_35_846Z-debug-0.log
     - Service node  Building                                                                                         18.9s
    failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1
    

  • Which I just now (after posting) noticed was already mentioned in a different comment. Sorry!

    I’m guessing the user who made that other comment is on lemmy.world? I can’t see any comment other than yours, and LW has known issues with federation (issues that would be fixed if the instance weren’t 5 version behind…) that mean I probably won’t be able to see it for about 2 days right now. So thanks!

    I haven’t looked into the suggestion in great detail yet, but I will say I’m already running as a non-root user (USER node is a line in my Dockerfile). I’m not sure what a seccomp profile is, but in case it wasn’t clear from the original post, I just want to emphasise that the current configuration works in Docker on my Windows PC. It’s only on the Synology NAS that it fails.



  • I don’t know what it’s like over in Canada, but here in Australia it seems like the two biggest problems farmers face are the increasingly extreme climate and the vicehold the supermarket duopoly has over the market, giving them both monopoly and monopsony power, allowing them to completely screw over farmers.

    We have two main parties, one which has consistently been more in favour of action on climate change than the other, and which is also the less friendly one to corporate interests. We also have a third somewhat-major party that has extremely strong policies on climate change and monopolies. Guess which of these three parties farmers have consistently overwhelmingly voted for over the past 30+ years?

    So nah, fuck 'em. They’ve brought it on themselves. I’ve no interest in taxpayers subsidising them.

    But maybe circumstances in Canada are different.



  • I don’t mind the fact that apps on Android show ads. I mind the terrible inconsistency of those ads. Some have an X button at the top left, some at the top right. I’ve seen “mute” buttons in at least three different quadrants, plus some are within a small landscape window rather than taking up the full portrait-held phone. And some don’t have mute at all.

    And then some have a fake-out X button that actually clicks on the ad if you try to use it.

    And a couple of times I’ve gotten an ad that I literally couldn’t exit. Had to force quit the app to get back to it.

    If the ads were a consistent experience, I would have a much less intensely negative opinion of them.





  • I’m an absolute sucker for a hidden traitor mechanic. Boardgames like Battlestar Galactica, Werewolf, and Secret Hitler (the latter of which might be my absolute favourite board game). More recently I’ve just started playing Among Us (I never got into it during its ~2020 peak) which is the first time I’ve seen the hidden traitor translated well into video games (unless you count that one minigame from Jackbox Games).



  • I would love to containerise it. I worked with Docker in a previous job, but honestly I’ve forgotten most of how to work with it. Would be a nice refresher to try and relearn how to create Dockerfiles and docker-compose.yamls.

    Unfortunately I currently have two problems. First: I seem to be completely unable to test this on my desktop. When I open Docker on my PC, it complains that I need to run wsl --shutdown, but despite doing that many times, it still complains, before immediately closing.

    So I was going to try doing it entirely on the Synology. And then I ran into the issue that…I have no idea how to even start with that. When I search for Docker in the Package Manager the only thing that comes up is Synology’s own container manager, and I have no idea how to work with that.





  • D&D Beyond has been garbage since the start (the shitty double-dipping business model where you pay both a subscription and for individual content—imagine if Netflix worked that way!) and got considerably shitter when they ripped out all the stuff you had paid for with no recourse after WotC put out a “patch” to remove whole pages worth of lore.

    Genuinely, my advice is switch to Pathfinder. The shitty behaviour from WotC with the OGL is what finally got me to pull the trigger, but that mid-2022 deletion of content had me already on the edge of the cliff regardless. It’s similar enough that most D&D players won’t have trouble migrating. It has some aspects that I can reasonably see some players might not like: undoubtedly it is a little more complicated to build a character.

    But it has other aspects which are just straight-up better. For starters, this. When they released a major update that removed some older content, all the old content was made still available at the flick of a switch in Archives of Nethys. It’s also all free. No need to buy each individual book one at a time and then pay a subscription on top of that. You can see all the books’ content without paying a cent. And tools like Pathbuilder let you build characters conveniently online for free with very few restrictions, and those restrictions (like animal companions) can be lifted for a single one-time purchase of less than $10. Or, because the rules are free, there are other software options that integrate well with the game, if you prefer, including one from the original developers of DDG with the same predatory pricing model.

    There are also a few aspects to the rules that I think very few people could possibly see as negatives, including a few of those most core to the game: 4 degrees of success and the 3-action economy. 4DoS means if you roll 10 over the target, you get a critical success even without a natural 20, but a critical fail if you get 10 under. This allows your basic spell save damage spells to have double damage, regular damage, half damage, or no damage. And allows some other effects to have cool extra effects depending how how high you roll. 3AE gives you more control over your turn and solves the weirdness of D&D’s bonus actions, and allows you to make more interesting turns, especially as a martial.