HNHacker News
TopNewBestAskShowJobs

looperhacks

2,003 karma · joined September 11, 2014

Personal: https://jeschke.dev

New project: https://supplywarden.com

submissionscomments
looperhacks··on Show HN: Pumpkin – A Modern Minecraft server written in Rust
The common problem with Minecraft server implementations is that they are not bug-for-bug compatible, which will lead to certain techniques (especially redstone contraptions) breaking. The technical Minecraft community depends on many implementation details which not all servers support
looperhacks··on Cheating alleged after men's world conker champion found with steel chestnut
I'm not from Britain, but we used to craft with chestnuts. We always used a small hand drill (Wikipedia tells me it's called a gimlet). I assume it's the same in Britain
looperhacks··on WiFi4EU initiative provides free Wi-Fi in public spaces across Europe
Sure, but neither my laptop nor my switch (the devices I'd reasonably use with Wi-Fi) support 5G or mobile internet at all
looperhacks··on WiFi4EU initiative provides free Wi-Fi in public spaces across Europe
Last time I looked into this, there were no (cheap) providers that allow you to permanently reside in another country
looperhacks··on Popular gut probiotic craps out in randomized controlled trial
That sounds counter-intuitive? I doubt most people take the time to rinse everything off with clear water. Dishwashers on the other hand always have a rinsing step
looperhacks··on Stem cells reverse woman’s diabetes
It's not possible. Type 1 diabetes stops the production of insulin, which is generally required for survival.
looperhacks··on Oracle, it's time to free JavaScript
The letter makes points that the trademark is already abandoned. I'm not familiar with trademark laws, but if the trademark is already abandoned, why the need for the letter?
looperhacks··on Dawarich: Self-hosted alternative to Google Location History
If Google tracks me at work, it just saves "work" as the location. How do I know? Well, my workplace has since moved, but timelines before the move now show me go to the old location, then suddenly teleport me to the new one.
looperhacks··on COSMIC Alpha Released
I don't want to be mean, instead I want to learn how such an announcement can be done better.

On my screen, the very first line (third sentence, but the first two are pretty short):

> COSMIC, our new desktop environment for Pop!_OS and other Linux distros

After that, a link to the very page you linked. What more should a release post do?

looperhacks··on 17-year-old student exposes Germany's 'secret' pirate site blocklist
You are downvoted, but from my experience, you are pretty correct. Most people I know will use a streaming site, then sharehosters (good old boerse comes to mind - Megaupload, Rapidshare and Uploaded were the big hosters I remember)

I even know of more people using Usenet then torrents! The amount of work to use torrents safely just isn't worth it for most people.

looperhacks··on Win your fantasy league using operations research
In German, "tippen" is a possible translation of "to guess". There's a well-known tradition of friendly betting on football matches with colleagues or friends (sometimes with money on the line, often not). These are called "Tippspiel" or "betting games".
looperhacks··on Wikipedia is rolling out dark mode support
The android app has supported dark mode for years and images have always been broken. I hope it can be fixed, but except "make every transparent image have a white background" I don't know a good solution
looperhacks··on Show HN: Envelope – A modern environment variable cli tool
It's explicitly called a "cli tool", not very ambiguous imo
looperhacks··on Andrew S. Tanenbaum Receives ACM Software System Award
The original L4 (I believe) wasn't commercially available und sel4 is GPL licensed. Minix has a BSD license, so maybe that's why
looperhacks··on German Court Fines Netflix €7.05M for Infringement of Broadcom HEVC Patent (2023)
The case in question is about a patent registered in the European Patent Office, which is headquartered in Munich
looperhacks··on How to test without mocking
As a Java (mostly Spring) dev, I use mocks a lot to separate different components from each other, if I only want to test one of them. If your code only contains tests that mock other things, you're missing something, as others have pointed out. But just because you have a good coverage of integration testing, doesn't mean that writing isolated unit tests are bad. I find it much easier to diagnose a problem in a tight unit test than in a integration test that covers half the project.

Some criticism to the article:

The "more unit testing" section reminds me of junior devs asking why they can't test private methods in Java. If I'm testing a unit, I want to test the contract it promises (in this case, a method that does some checks and then sends something). That the behavior is split between multiple methods is an implementation detail, and writing tests around that makes changes harder (now I can't refactor the methods without also having to update the tests, even if the contract doesn't change) and it doesn't even test the contract! (There's nothing that makes sure that the mail is actually sent - we could be testing methods that aren't used by anything but the test code)

For the "easier to test IO" section: just don't. Your tests now depend on some in-memory implementation that will behave differently than the real thing. That's just mocking with extra steps, you still don't know whether your application will work. If you want to do io, do the real io

"Separation of logic and IO": this is in general the right thing to do, but the way it's described is weird. First, it does the same as in the "more unit testing" section with the same problems. Then, the code is refactored until it's barely understandable and the article even admits it with the Greenspan quote. In the end, the production code is worse, just to ... Not test whether there's actually some code doing the IO.

I actually think there are some good ideas in there: separating the logic from the IO (and treating them as separate units) is important, not just for better testability, but also for easier refactoring and (if done with care) to be easier to reason about. In the end, you will need both unit and integration tests (and if your system is large enough, e2e tests). Whether you're using mocks for your unit tests or not, doesn't make much of a difference in the grand picture.

Just don't mock stuff in integration or e2e if you absolutely can't prevent it.

looperhacks··on Gainax, known for 'Evangelion' anime production, goes bankrupt
Let's face it, Gainax was only an empty shell of its former glory. Most of the "important" people left for Khara and Trigger and Gainax has done nothing of importance for more than ten years or so?

Also, financial troubles is probably the most Gainax thing possible

looperhacks··on TPM GPIO fail: How bad OEM firmware ruins Intel TPM security
I believe you can't "reset" a TPM, but you can buy a new one (if your CPU does not support fTPM). Or buy a new PC I guess. Both solutions are costly though, depending on how often the cheat is found.
looperhacks··on White House wants Moon to have its own time zone, Coordinated Lunar Time (CLT)
The meter is defined by the speed of light in a vacuum, that doesn't change on the moon
looperhacks··on What we know about the xz Utils backdoor that almost infected the world
> systemd and libsystemd is an absolute mess

how? Because they link against a third-party library?

> is there a dependency graph that would show how many programs use a specific utility library

Agree, important topic

> is there a dependency graph that would show how many programs use a specific utility library

Depends on the distro, but your package manager should be able to do that. On a global scale, that's likely impossible, because there's no true register of how programs are linked - in fact, the inclusion of libsystemd was distro-specific

looperhacks··on Resolume
If you have already have all the clips you want to use, Avenue is fine. If you want to generate videos and effects, Wire is what you're looking for.
looperhacks··on Show HN: NeedleDrop – Guess the movie from a song
Congrats! The game is quite hard because there might be multiple correct solutions, but only one gets accepted. But I understand that this is a limitation of the game, maybe adding something like "Correct, but we're looking for something else" would be nice.

Two suggestion for improvements:

- Add a skip button. If I don't have a clue which film it might be, I need to write some nonsense answer to get a clue, a skip button would be nicer. - Play the song immediately when I click the play button. I was wondering why it doesn't start, even though I clicked the Play button!

Sidenote: I spoiled myself because Imagus showed me the movie pictures in the archive ;) Not your fault of course, but I found it funny

looperhacks··on [dead]
I edited the title to better reflect the actual content, as the automatic translation isn't the best
looperhacks··on Comics I Loved in 2023
To some (many?) people, even including LGBTQ characters is an idiological topic in itself.
looperhacks··on My insulin pump controller has a bug
Now I know why my wifes insulin pump's (Medtronic) Android app doesn't support setting the bolus and only allows observation :D

It's likely better that way. If the app would allow this, I'd already decompiled the app and tried to reverse engineer the protocol to allow her to set a bolus when she's wearing something that makes it hard to access the pump or carry her phone with her (like a dress). Setting the bolus via e.g. a smartwatch would be really nice, but I'd be very afraid of creating a life-threatening bug.

looperhacks··on Privacy advocate challenges YouTube's ad blocking detection scripts under EU law
Re-encoding is probably too expensive. And storing the same variant for everyone would effectively double the storage requirement (for ad-free users) and will be quickly defeated with Sponsorblock
looperhacks··on After 28 years, SSLv2 is still not gone from the internet
It's also possible that it's related to your blackberry not having the most up-to-date root certificates.
looperhacks··on SumatraPDF Reader
"Open" for the cheap price of ~$230
looperhacks··on BT confirms it's switching off 3G in UK from Jan next year
Well, Germany has already shut down 3G two years ago, and LTE is just too new, you know? /s
looperhacks··on Android 14 blocks all modification of system certificates, even as root?
My wife just had to replace her phone because of that. Apps generally don't accept user certificates and the first apps stopped working because Google cloud (or something related) updated to a newer certificate
← PreviousPage 6 of 11Next →