Better HN
topnewbestaskshowjobs
Log inSign up

dividuum

2,704 karma · joined Oct 19, 2011 (15y ago) · 745 submissions

I love programming

Working full time on a digital signage service:

  https://info-beamer.com
See https://dividuum.de/ for other projects.

Contact me at fw@dividuum.de / @dividuum

Submissions

comment 2mo ago · link · parent

I bet all the certificate metadata shown in the „View a certificate“ popup window is vulnerable to cross-site scripting. Back then you probably wouldn’t get a <script> tag through a CA's review process and I found such a problem in Netscape's image „About page“ popup.

comment 4mo ago · link · parent

They already added indirect addressing (see https://github.com/adriancable/eternal/blob/main/docs/machin...) to make it faster.

comment 4mo ago · link · parent

Or even fixing the "navigating complex browser settings" issue. They control the freaking UI yet still use that as an excuse to build something else instead. Pretty hilarious.

comment 5mo ago · link · parent

I'm took a brief look and left confused. The list implementation seems completely bog standard with no special code for synchronization whatsoever. I don't see any counter and the rseq syscall seems unused except for feature detection. I don't think that's a viable replacement for any low level code.

comment 6mo ago · link · parent

I guess "Diskless" was defined by the same people that invented the term "Serverless"? That Pi is still using an SD card to boot from.

A Pi with Ethernet can truly boot diskless via TFTP. And later Pi4 and Pi5 can even boot directly from the internet by getting their initial "boot.img" FAT partition via HTTP from anywhere. That would be diskless.

comment 7mo ago · link · parent

Not sure if I understand what you’re trying to say, but Hetzner's Console works just like that too.

comment 8mo ago · link · parent

A few friends and me use bedrock in a similar manner to push the rules on a faction PvP (player-vs-player) server 10 years ago: Basically a faction was a group of players working together on their base. You could claim land and a base on it was then protected from modification by outside players as long as players from your faction didn't die too often. We didn't really participate in PvP (we sucked :-} ), basically never died but did other interesting redstone stuff like vending machines, etc. But other factions did and they were always at risk of becoming raidable as a result of dying too often. Once a base was raidable is was almost always immediately completely destroyed and stripped of anything remotely valuable.

So we figured we might host one of those faction within our claimed land. As long as they store all valuable within our secure base, the fact that their claimed land becomes raidable doesn't really matter. Claimed land had to be at least one block apart from each other. So we had to find a bedrock tunnel: On their claimed land there needed to be free space within the bedrock level to get down to z=-63. Then on the single unclaimable block between our bases we needed bedrock on z=-61 and bedrock on -62/-63 on both sides. Then on our claimed land we again needed a way to get up from z=-63. Basically a single block long fully bedrock-enclosed tunnel. Took a while to find that, but we managed to set it up and caused quite a stir with other players and the server admins once our hosted faction got raidable without consequences :-)

comment 8mo ago · link · parent

Here's a project that also does this to ensure cycle-accuracy for their emulator: https://github.com/dbalsom/arduinoX86

comment 8mo ago · link · parent

Flight Simulator uses WASM.

comment 10mo ago · link · parent

Yep. A Pi 1 can almost play 1080p60 with a proper zero-copy decoding setup. Pi 2 and beyond have no issue with that. As you said: The Pi5 has enough CPU power, so even the H264 decoding itself now uses software as it no longer has a hardware decoder. Oh well.

comment 10mo ago · link · parent

bubblewrap is a lot more flexible: You can freely piece together the sandboxed filesystem environment from existing directories, tmpfs, files or data provided via a file descriptor. landrun, from what I understand only restricts what already exists. What is neat with landrun is the TCP port restrictions. This isn't possible with bubblewrap at the moment, although nothing really prevents bubblewrap from adding landlock support for those cases.

comment 11mo ago · link · parent

Not true. It's getting a constant stream of bugfixes. It's also not "stuck" on Lua 5.1, but is deliberately not following Lua's path, except for some backports. There's also a recent post about how a LuaJIT 3 might work.

comment 11mo ago · link · parent

I remember you could trivially circumvent that with „/lib/ld-linux.so <executable>“. Does that no longer work?

comment 1y ago · link · parent

That seems like an implementation detail, not a fundamental design decision as it should be easy to change how packfiles are implemented. I'm not sure it would be an improvement though: it already only stores deltas for similar objects.

comment 1y ago · link · parent

Would be surprised if that’s not how basically all tools behave, as I expect them all to seek to the central directory and to the referenced offset of individual files when extracting. Doesn’t really make a difference if that’s across a network file system or a local disc.

comment 1y ago · link · parent

Nothing against scratching itches (we all do), but that's what literally thousand of existing digital signage solutions already offer out of the box.

comment 1y ago · link · parent

I wrote a solver for a similar puzzle: IIRC it was 3x3x3 with different shaped pieces that left some space unfilled. Some of the pieces had holes and you additionally had three 3-long metal rods to place inside somewhere. I ran my code and it didn’t find a solution. Best it could do was fit all wooden pieces and two of those rods through holes inside the pieces. [Spoiler] Turns out, the solution was to ignore to rods first, leave a 3x1x1 “tunnel” and put all three rods in there, completely ignoring the holes in the wooden pieces. I remember being slightly annoyed :-)

comment 1y ago · link · parent

Pretty sure you can rotate JPEG images lossless. But it’s still simpler to just modify metadata.

comment 1y ago · link · parent

Well, it already has, among a ton of other modules, a memcached and a JavaScript module (njs), so you’re actually not that far off. An optional ACME module sounds fitting.

comment 1y ago · link · parent

Fair enough. Personally I use an ssh target with zfs file system with its own automatic snapshots. The restic snapshots don’t directly correspond to the zfs snapshots, but I can live with that.

comment 1y ago · link · parent

restic is basically identical and you can choose where you store your data.

comment 1y ago · link · parent

Can't enjoy that without DK's wobbly affine texture mapping :-)

comment 1y ago · link · parent

Also it allows playing Flight Simulator inside Flight Simulator :-)

https://github.com/s-macke/FSHistory/tree/master?tab=readme-...

comment 1y ago · link · parent

I've build a custom thumbnail/metadata extraction toolkit based on libavcodec/libavformat that runs the decoding in seccomp's strict mode and communicates the results through a linear RGB stdout stream. Works pretty well and has low overhead and complexity.

Full transcoding would be a bit more complex, but assuming decoding is done in software, I think that should also be possible.

comment 1y ago · link · parent

> [..] it incentivises people to behave as unpleasantly as possible — because it's often the only way to trigger the exception [..]

Thus creating an asshole filter: https://siderea.dreamwidth.org/1209794.html

comment 1y ago · link · parent

Huh? MicroPython literally does exactly that: You copy over Python source(!) code and it runs on the Pico.

comment 1y ago · link · parent

That doesn't sound correct. UG is identical to the GmbH in that regard. Do you mean a GbR?

comment 1y ago · link · parent

Is there another option besides memfd_create? I'm currently using those to implement a circular buffer that avoids having to reconstruct objects if they happen to cross the size boundary by mapping the same memory twice consecutively into the process space.

comment 1y ago · link · parent

Probably pointed the Biz AI app at himself to get that estimate.
12345
25