e0qdk

joined 2 years ago
[–] e0qdk@reddthat.com 43 points 2 days ago (1 children)

I don't like Anubis because it requires me to enable JS -- making me less secure. reddthat started using go-away recently as an alternative that doesn't require JS when we were getting hammered by scrapers.

[–] e0qdk@reddthat.com 9 points 4 days ago (1 children)

netstat -tp -- that'll show you TCP connections and the associated program, doing a DNS lookup for the IPs they're connected to. You may need elevated permissions to see what some processes are.

There are a bunch of other options (e.g. -n to get numeric output instead of looking up names, -l to get programs listening for incoming connections, etc); check the man pages for more details.

[–] e0qdk@reddthat.com 4 points 5 days ago (1 children)

"You love the robot more than me!" 💔️

[–] e0qdk@reddthat.com 6 points 6 days ago (3 children)

If a Zelda game did it, it would suck.

While I don't find the idea particularly appealing personally, there are modified versions of Zelda games that randomize various aspects of the game (like what items are in which chests) and apparently a decent number of people do actually enjoy playing them. (Usually not on a first playthrough though!)

[–] e0qdk@reddthat.com 8 points 1 week ago

I've been trying to figure out a related sort of video streaming setup for work (without Owncast, but with a similar sort of 24/7 goal plus other considerations) and have been looking into using ffmpeg's capabilities to output either HLS or DASH segments + manifests. (FFMPEG can do both but I don't know which would be better for my needs yet.) The sources I'm working with are RTSP/RTP instead of RTMP and I only need streaming to browser clients currently -- although it working with VLC naturally by pointing it to the manifest is nice.

HLS and DASH work by having videos split into small chunks that can be downloaded over HTTP, so just replacing the manifest allows for continuous streaming (the client pulls it repeatedly) without the server needing to maintain a continuous connection to the client.(Fan out to CDNs works naturally since the video chunks are just files that can be served by any web server.)

It should be possible to do some creative things by either creating / modifying the manifests myself with scripting or by piping chunks into another instance of ffmpeg from a script. (I've done something similar using -f image2pipe in the past, but that was for cases where I need to do things like create a video from an image gallery dynamically.) That's as far as I've gotten with it myself though.

I don't know what the right answer is either, but I'm also interested in finding out and hopeful you get additional responses.

[–] e0qdk@reddthat.com 2 points 1 week ago (1 children)

I see. I can reproduce the issue with the CSS you provided. Unfortunately, I think this is just an issue with how image maps are designed in HTML and didn't realize it before since I generally don't use them.

I did some searching and found other people who ran into similar issues. Most of them (who got to a solution) seemed to workaround it by using JS to recompute the coordinates as needed -- e.g. using https://github.com/jamietre/ImageMapster or other libraries.

I think you could also accomplish it with an SVG. (e.g. this result came up in a search)

[–] e0qdk@reddthat.com 1 points 1 week ago* (last edited 1 week ago) (3 children)

Not sure how you're getting things desynchronized. If I just put an img on a page and transform it with CSS (e.g. img { transform: rotate(90deg) scale(50%); }) as a quick test, the areas on a map I associated with it correctly correspond to the rotated and scaled areas displayed. The pixels I used in the map are from the coordinate system of the image -- not absolute coordinates on the page.

[–] e0qdk@reddthat.com 28 points 2 weeks ago (2 children)

I went back through Wikipedia's current events from June 2025 and put together a rough timeline:

  • 2025-06-12: IAEA declares Iran in breach of its nuclear non-proliferation obligations.
  • 2025-06-13: Israel attacks Iran targeting nuclear facilities and senior government officials. Iran retaliates with missles and drones.
  • 2025-06-17: Donald Trump calls for Iran's unconditional surrender. Iran refuses.
  • 2025-06-22: The US announces it has bombed multiple nuclear facilities in Iran -- particularly including sites at Fordow and Natanz which are deep underground -- using its unusual ~30000 pound (~12000 kg) Massive Ordnance Penetrator bombs. Iran retaliates by firing missles at a US base in Qatar and by voting to close the Strait of Hormuz.
  • 2025-06-24: The US and Qatar mediate a ceasefire between Israel and Iran. Donald Trump says Israel and Iran "don't know what the fuck they are doing" as the countries continue fighting initially. It seems to be holding so far after a rocky start though?
[–] e0qdk@reddthat.com 5 points 2 weeks ago (3 children)

Heliocentric orbit like this:

More info:

[–] e0qdk@reddthat.com 3 points 1 month ago

I'm not sure how to do what you want with customizing Mint directly, but a possibly simpler alternative solution is to just send two clearly distinguishable USB drives (e.g. label them "1" and "2" with a label maker or get two drives with very different colors) and tell him to install (unmodified) Mint from the first and then have him run a program you provide on the second after that's done to make the other changes.

[–] e0qdk@reddthat.com 1 points 1 month ago

I have an older version of TrueNAS on it from when it was still FreeBSD based (instead of Linux). I might replace it with Scale whenever I get around to doing maintenance on it next -- or maybe just go to stock Debian or something since I don't use most of the bells-and-whistles.

 

I had some free time this weekend and I've spent some of it trying to learn Go since mlmym seems to be unmaintained and I'd like to try to fix some issues in it. I ran into a stumbling block that took a while to solve and which I had trouble finding relevant search results for. I've got it solved now, but felt like writing this up in case it helps anyone else out.

When running most go commands I tried (e.g. go mod init example/hello or go run hello.go or even something as seemingly innocuous as go doc cmd/compile when a go.mod file exists) the command would hang for a rather long time. In most cases, that was about 20~30 seconds, but in one case -- trying to get it to output the docs about the compile tool -- it took 1 minute and 15 seconds! This was on a relatively fresh Linux Mint install on old, but fairly decent hardware using golang-1.23 (installed from apt).

After the long wait, it would print out go: RLock go.mod: no locks available -- and might or might not do anything else depending on the command. (I did get documentation out after the 1min+ wait, for example.)

Now, there's no good reason I could think of why printing out some documentation or running Hello World should take that long, so I tried looking at what was going on with strace --relative-timestamps go run hello.go > trace.txt 2>&1 and found this in the output file:

0.000045 flock(3, LOCK_SH)         = -1 ENOLCK (No locks available)
25.059805 clock_gettime(CLOCK_MONOTONIC, {tv_sec=3691, tv_nsec=443533733}) = 0

It was hanging on flock for 25 seconds (before calling clock_gettime).

The directory I was running in was from an NFS mount which was using NFSv3 unintentionally. File locking does not work on NFSv3 out of the box. In my case, changing the configuration to allow it to use NFSv4 was the fix I needed. After making the change a clean Hello World build takes ~5 seconds -- and a fraction of a second with cache.

After solving it, I've found out that there are some issues related to this open already (with a different error message -- cmd/go: "RLock …: Function not implemented") and a reply on an old StackOverflow about a similiar issue from one of the developers encouraging people to file a new issue if they can't find a workaround (like I did). For future reference, those links are:

 

What's in the box? WHAT'S IN THE BOX!?

(will post my own drawing as a comment after I get replies from others -- looking forward to seeing what you all come up with!)

 

Has anyone else been getting long page load times (like ~10 or more seconds) frequently but intermittently over the last couple days?

 

Silver Spoon

 
 
 
view more: next ›