HNHacker News
TopNewBestAskShowJobs

dividuum

2,704 karma · joined October 19, 2011

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

submissionscomments
dividuum··on I've factored the RSA keys of a Certificate Authority from the 90s
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.
dividuum··on C programmers commit fresh crimes against readability
They already added indirect addressing (see https://github.com/adriancable/eternal/blob/main/docs/machin...) to make it faster.
dividuum··on The <usermedia> HTML element
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.
dividuum··on Restartable Sequences
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.
dividuum··on Serving a website on a Raspberry Pi Zero running in RAM
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.

dividuum··on Migrating from DigitalOcean to Hetzner
Not sure if I understand what you’re trying to say, but Hetzner's Console works just like that too.
dividuum··on Optimization lessons from a Minecraft structure locator
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 :-)

dividuum··on Computer-generated dream world: Virtual reality for a 286 processor
Here's a project that also does this to ensure cycle-accuracy for their emulator: https://github.com/dbalsom/arduinoX86
dividuum··on Let's discuss sandbox isolation
Flight Simulator uses WASM.
dividuum··on Raspberry Pi Drag Race: Pi 1 to Pi 5 – Performance Comparison
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.
dividuum··on Bubblewrap: A nimble way to prevent agents from accessing your .env files
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.
dividuum··on Lua 5.5
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.
dividuum··on Shai-Hulud compromised a dev machine and raided GitHub org access: a post-mortem
I remember you could trivially circumvent that with „/lib/ld-linux.so <executable>“. Does that no longer work?
dividuum··on Your data model is your destiny
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.
dividuum··on Peeking Inside Gigantic Zips with Only Kilobytes
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.
dividuum··on Show HN: Signage Sync
Nothing against scratching itches (we all do), but that's what literally thousand of existing digital signage solutions already offer out of the box.
dividuum··on Solving a wooden puzzle using Haskell
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 :-)
dividuum··on Resizing images in Rust, now with EXIF orientation support
Pretty sure you can rotate JPEG images lossless. But it’s still simpler to just modify metadata.
dividuum··on Native ACME support comes to Nginx
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.
dividuum··on Tarsnap is cozy
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.
dividuum··on Tarsnap is cozy
restic is basically identical and you can choose where you store your data.
dividuum··on Bullfrog in the Dungeon
Can't enjoy that without DK's wobbly affine texture mapping :-)
dividuum··on Microsoft Flight Simulator 2024: WebAssembly SDK
Also it allows playing Flight Simulator inside Flight Simulator :-)

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

dividuum··on FFmpeg merges WebRTC support
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.

dividuum··on Accountability Sinks
> [..] 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

dividuum··on Show HN: I built a hardware processor that runs Python
Huh? MicroPython literally does exactly that: You copy over Python source(!) code and it runs on the Pico.
dividuum··on A startup doesn't need to be a unicorn
That doesn't sound correct. UG is identical to the GmbH in that regard. Do you mean a GbR?
dividuum··on Growing Buffers to Avoid Copying Data
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.
dividuum··on Photo calorie app Cal AI was built by two teenagers
Probably pointed the Biz AI app at himself to get that estimate.
dividuum··on The Steam Deck is software-freedom friendly
> [...] by being very very good to their users [...]

Helps that they don't have to be very very good to shareholders that don't give a fuck about games and just want money. I'm not really looking forward to find out what happens once Gabe passes on control of the company.

Page 1 of 24Next →