Zagorath

joined 2 years ago
[–] Zagorath@aussie.zone 1 points 5 days ago (1 children)

Hardly the first time Spanish courts have completely fucking failed to understand technology (I will never get over how monumentally stupid the Mario Costeja case was), but this manages to take it to an incredible new level. The idiotic lack of forethought asside, you'd think that once the consequences were made clear and people were actively being prevented from accessing all sorts of legitimate websites, including GitHub, they'd immediately reverse course. How the fuck does one private sporting company gain the right to force a huge swathe of the Internet to be blocked, anyway? Utter fucking nonsense.

[–] Zagorath@aussie.zone 4 points 5 days ago

Probably a conflation of this scene with the one where Palpatine says "I love democracy".

[–] Zagorath@aussie.zone 14 points 1 week ago

Any web page can be printed. Any print can be sent to a PDF generator. It might not look super pretty, but it'll get the job done. I recommend making sure you're on light mode before you print though, because dark mode has grey text instead of black.

[–] Zagorath@aussie.zone 2 points 1 week ago (1 children)

But I don't want the ad revenue. I want my car not to advertise to me.

[–] Zagorath@aussie.zone 2 points 1 week ago (5 children)

I'd take it back and demand a full refund. This is a dangerous, irresponsible product that does not fulfil the purpose it was marketed for.

[–] Zagorath@aussie.zone 0 points 2 weeks ago (1 children)

They are strong enough that they’re able to block increased defense spending together with the AfD

Does Germany have some rules that defence spending requires a 2/3rds supermajority or something? Linke and AfD cannot stop anything on their own if a simple majority is required. The Union and SPD have a slim majority between them, and add the Greens and you've got an extremely strong majority.

[–] Zagorath@aussie.zone 0 points 2 weeks ago (2 children)

I used to. "Why not?" would be the reason. I never felt anything at all afterwards. I would schedule my donations so I don't have any hard exercise later the same day, but otherwise it wouldn't impact my life at all.

I stopped after going to my GP for an entirely unrelated reason and being told that I had severely low iron levels. I don't believe it was related to donating, but it does mean they couldn't use my blood.

[–] Zagorath@aussie.zone 0 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

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

 

I realise this is a very niche question, but I was hoping someone here either knows the answer or can point me to a better place to ask.

My @DailyGameBot@lemmy.zip uses Puppeteer to take screenshots of the game for its posts. I want to run the bot on my Synology NAS inside of a Docker container so I can just set it and forget it, rather than needing to ensure my desktop is on and running the bot. Unfortunately, the Synology doesn't seem to play nicely with Puppeteer's use of the Chrome sandbox. I need to add the --no-sandbox and --disable-setuid-sandbox flags to get it to run successfully. That seems rather risky and I'd rather not be running it like that.

It works fine on my desktop, including if run in Docker for Windows on my desktop. Any idea how to set up Synology to have the sandbox work?

 

I've written a bot for !dailygames@lemmy.zip that I'm currently just running on my desktop. But I'd like to be able to set and forget it (except for when I do updates) by running it on my Synology NAS.

How can I best pull the node app from GitHub and run it on my Synology, preferably automatically running on start-up if the Synology is restarted.

[–] Zagorath@aussie.zone 0 points 2 months ago (1 children)

Yeah exactly. Normal inheritance means their kids or spouse inherit, and the number of billionaires remains the same.

[–] Zagorath@aussie.zone 0 points 3 months ago (1 children)

Sometimes slightly worse. Like LibreOffice.

Sometimes actually better, like VLC.

Sometimes about the same, like the latest version of MuseScore (older versions were, in fact, quite a bit worse).

But sometimes, like with older versions of GIMP (I'll admit, I've not tried its latest major version release candidate) it's significantly worse.