HNHacker News
TopNewBestAskShowJobs

Frotag

416 karma · joined March 31, 2022

submissionscomments
Frotag··on PCs refuse to shut down after Microsoft patch
I've had the opposite problem with laptops. There's like 3 different menus to configure sleep-on-idle but none of them actually let you disable it even if they claim they do.

They don't even share the same state and can be set to conflicting values, with the oldest looking one usually taking priority.

Disabling screen timeout is even worse since there's additionally the screensaver settings to muddy the waters.

Frotag··on Dell UltraSharp 52 Thunderbolt Hub Monitor
On KDE and things like opening app on active monitor / desktop work fine. Only complaint is that on older versions, the taskbar on secondary monitors would sometimes disappear.

For reference I have 3 monitors (2x 4k, 1x 1080p) and am currently using Debian / Wayland and Ubuntu / X11.

Frotag··on Ask HN: What did you find out or explore today?
Set up motion detection on my home security camera. Caught four stray cats playing in the driveway at like 2am. Kind of annoying that the detection is unconditionally "object-based" (ANN is used to filter false positives like lighting changes).

Also been thinking about game ideas for a while. Finally settled on an open world RPG where you control multiple (>10?) characters. Core gameplay loop will be configuring / optimizing schedules (farming materials, grinding xp, etc) and watching damage / currency numbers go big. Though if I'm being honest, I just want an excuse to build something that involves a node-based UI. So even if I don't finish, I'll have at least scratched that itch.

Frotag··on CLI agents make self-hosting on a home server easier and fun
I guess I'm looking for wireguard's version of STUN. And now that I know what to google for, finally found some promising leads.

https://github.com/jwhited/wgsd

https://www.jordanwhited.com/posts/wireguard-endpoint-discov...

https://github.com/tjjh89017/stunmesh-go

Frotag··on CLI agents make self-hosting on a home server easier and fun
Speaking of Wireguard, my current topology has all peers talking to a single peer that forwards traffic between peers (for hole punching / peers with dynamic ips).

But some peers are sometimes on the same LAN (eg phone is sometimes on same LAN as pc). Is there a way to avoid forwarding traffic through the server peer in this case?

Frotag··on CLI agents make self-hosting on a home server easier and fun
I always assumed it was because a lot of ISPs use CGNAT and using tailscale servers for hole punching is (slightly) easier than renting and configuring a VPS.
Frotag··on Intellectual Junkyards
IME there's two main reasons to keep notes: (1) to save time in the future or (2) to force myself to think about something.

(2) often happens after I read fiction, usually to figure out why I liked / disliked the story. These notes are mostly disposable but occasionally useful when the book comes up in conversation years later.

On the other hand, (1) is more like notes on how-tos (recipes, software setup), written with the intention of needing it again. But this is pretty infrequent, maybe a quick skim every year or two. So even these don't need to be super thorough.

> feels wrong in a way I can't articulate.

Anyways, all that to say I think the "wtf-am-i-doing-with-my-life" feeling comes from the realization that I'm wasting hours on a document that'll save future me maybe 5 minutes at best.

...Which is how I feel about NixOS after spending most of this week tinkering / tracking down documentation. Might be worth it if I had a fleet of machines to maintain but probably not worth it for my laptop + server, even if I did yearly reinstalls.

Frotag··on Self hosting my media library with Jellyfin and Wireguard on Hetzner
I've tried self-hosting with navidrome [0] / plex / jellyfin but the thing I miss most is music discovery via radios / discover weekly. I've tried replicating it a few times with embedding vectors + vector search but at best it finds songs in the (sub)-genre with the tempo / mood being pretty different.

Maybe I just need better data, been meaning to try again when that spotify crawl by annas-archive gets released. I've just been using musicbrainz [1] and youtube. Model-wise I've tried off-the-shelf ones like [2] and [3] and training auto-encoders like VAEs / MAEs [4]

[0] - https://www.navidrome.org/

[1] - https://musicbrainz.org/

[2] - https://github.com/LAION-AI/CLAP

[3] - https://github.com/SonyCSLParis/music2latent

[4] - https://arxiv.org/pdf/2207.06405

Frotag··on Show HN: Viral Potential Predictor
Show HN: I built a Rust compiler in Python with JavaScript using Java on Android
Frotag··on Microsoft please get your tab to autocomplete shit together
I remember thinking wtf when Python import suggestions became disabled by default.

https://github.com/microsoft/pylance-release/issues/3579

Frotag··on I'm returning my Framework 16
I've only recently bought OLED laptops so I can't speak to burn-in but out of the three I've tested, they have a lower minimum brightness than my other IPS laptops.

In terms of text clarity, "2k" OLEDs (1920x1200) are a bit blurry. IPSs and 3k OLEDs are noticeably sharper, with not much difference between each other.

Frotag··on I'm returning my Framework 16
I guess repair-ability only matters if you expect the laptop to break. And there's no benchmarks for durability. But yeah I agree that upgrade-ability is of dubious value for most people.
Frotag··on I'm returning my Framework 16
I have a Framework 16 from one of the early batches (2023, think it was ~1000usd).

> Not only does [the spacers] look weird, you can also feel the gap and edges when resting your palm on them ... and the edges are quite sharp. If you have arm hairs you may consider shaving them off or risk getting them stuck. I also suspect gunk will build up in these edges over time. > There's also a practical problem: due to the flex of the spacers if you try to hold the laptop on its sides it will actually "wobble" a bit. Combined with the weight I suspect that unless you hold on to this laptop for dear life, you will at some point drop it.

I can confirm the spacers are raised with an edge (though sharp might be overstating it). It's even at a slightly different height than the touchpad, which is probably more defect than intentional. But I'm not picky about the aesthetics so I don't mind the lines / colors.

Can't say I've had issues with the spacers actually flexing or accumulating gunk though. And I carry it one-handed by gripping the corner with the spacer all the time.

> The keycaps are a little mushy, which isn't too bad but not great either.

Yeah this is an apt description. My biggest gripe is that the keycaps are near impossible to remove / clean without breaking something.

> The display isn't terrible, but it's not great either.

I had the chance to compare my framework (ips, 165hz, 2560x1600) with some newer laptops recently (3x oled, 2x ips). I was pretty impressed with the colors, very little difference compared to the OLEDs and much better than the shitty IPSs. Text was as sharp as the 3k OLEDs and sharper than the 2k OLEDs. But OLEDs (obviously) had the advantage for darker / high-contrast images.

> I didn't do any proper testing of battery usage, but it seems to be on par with other Linux capable laptops based on my usage thus far. This means you'll likely be looking at 6-8 hours of battery per charge for average programming usage.

Pretty much. Tangent but the new intel ultra cpus (the ones that end with V) have amazing battery life. I clocked maybe 16 hours browsing the web / watching youtube.

> For a premium price I expect a premium laptop, but the Framework 16 feels more like a €1200-€1500 laptop at best and certainly doesn't deliver a premium experience.

Yeah premium price without the specs and aesthetic to match. But I guess the premium is because of the modularity and (presumably) low production count. Plus I trust Framework's QA a hell of a lot more than any of the dozen HP / Lenovos I've owned. And it is nice that a failed keyboard / touchpad doesn't force me to buy a new machine (which has happened to me because of a spill).

Frotag··on Show HN: CineCLI – Browse and torrent movies directly from your terminal
So torrentio provides the metadata and downloads the video on-demand. And stremio handles UI and playback. That's a pretty neat way to keep the storage reqs minimal.

This got me thinking if jellyfin could be configured for something similar (I don't feel like migrating to yet-another-media-library) and turns out it supports .strm files [0], which are literally just urls in a text file (much like .m3u8 playlists) [1]. My use case is private trackers so I would have to write a custom scraper to replace the torrentio functionality anyways. So it probably wouldn't be too hard to have it generate .strm placeholders at the same time. Hopefully there aren't any performance / transcoding issues ...

[0] - https://github.com/search?q=repo%3Ajellyfin%2Fjellyfin+strm&...

[1] - https://emby.media/support/articles/Strm-Files.html

Frotag··on Denial of service and source code exposure in React Server Components
A lot of functionality is obviously designed for Vercel's hosting platform, with local equivalents as an afterthought.
Frotag··on Gundam is just the same as Jane Austen but happens to include giant mech suits
I think a lot of character-centered conflicts boil down to the same set of problems, regardless of the setting. For instance, you often see "keep the status quo and die a slow death" vs "expensive, risky gamble". Sometimes the setting is a small midwest town, sometimes it's a spaceship on the way to Beta Virginis. Sometimes the solution is actually unique to the setting but often it's just "find a compromise, prevent the extremists from blowing up the deal". Replace the mayor with a captain and TNT with nuclear bombs and you basically have the same story.

> There's really only a minority of people who are interested in stories that have no personal relationship stories in them at all.

All that to say I wish there were more stories that are more focused on the plot / implications of the setting. What-ifs that aren't derailed by character drama. "What if telekinesis was real? How can we exploit it for energy / propulsion / everyday gadgets?" Like basically thought-experiments in narrative form, or a textbook with characters.

Or at least I wish I knew how to search for these types of stories. Searching for "hard sci-fi" comes close but it requires the science is plausible (no FTL, minimal new physics, etc). I don't think it's reasonable to expect authors to simulate an entire universe / provide plausibility proofs for every bit of engineering / physics. As long as the mechanics of whatever fantasy physics are consistent and developments are plausible, that's good enough for me. I don't even need a satisfying conclusion, if the protagonist rebels fail because the ultra-wealthy corpos are just better equipped, so be it, at least the ride was fun.

Frotag··on A monopoly ISP refuses to fix upstream infrastructure
Similar story, Cox silently tripled my speeds when a new company started rolling out fiber.
Frotag··on Cheese Crystals (2019)
> Actually, all cheese making produces quite a bit of wastage. On average, if a dairy starts with ten-thousand pounds of milk, they’ll end up with only a thousand pounds of cheese. The remaining nine-thousand pounds ends up as whey while the curd is formed.

> That’s right: if you run the numbers on cheese manufacturing, the percent yield is only about 10%.

Yogurt-making produces a lot of whey too, though probably closer to ~50% whey rather than 90% (when made at home). The only difference between greek yogurt and regular yogurt is that greek yogurt is strained to remove the whey, making it thicker / creamier. Though most commercial brands try to cheat and thicken it with something like pectin (which usually makes it kind of jello-y).

Anyways all that to say my favorite yogurt is the one where the only ingredient is milk + yogurt culture. No thickeners, added sugars, flavoring, I like to add those myself.

Frotag··on It's insulting to read AI-generated blog posts
The way I view it is that the author is trying to explain their mental model, but there's only so much you can fit into prose. It's my responsibility to fill in the missing assumptions / understand why X implies Y. And all the little things like consistent word choice, tone, and even the mistakes helps with this. But mix in LLMs and now there's another layer / slightly different mental model I have to isolate, digest, and merge with the author's.
Frotag··on My favorite cult sci-fi and fantasy books you may not have heard of before
I usually care more about the ideas than characters / prose and the recs below kinda reflect that.

Anyways, in no particular order ...

  - Adiamante by Modesitt (1996), pacifist environmentalists vs cyberpunk warmongers. It's a lot of philosophy and a bit preachy at that but the world building was pretty thorough.
  - Last and First Idol by Gengen Kusano (2018). Similar to Last and First Men by Olaf Stapledon, it parodies various aspects of Japanese culture over a period of eons. (It's a set of three ~70pg stories).
  - Harry Potter and the Methods of Rationality by Eliezer Yudkowsky (2010). Parody where the main character investigates how to exploit magic. Kind of like xkcd / what-if but in the Harry Potter universe. Author is controversial and the story's pompous /r/iamverysmart vibes can be offputting but I enjoyed it.
Also want to second some of the other recs in this thread.

  - Greg Egan's stuff
  - There is No Antimimetics Division by qntm
  - Sequels to Enders Game and the Ender's Shadow spinoffs by Orson Scott Card.
  - Dragon's Egg and its sequel by Robert L. Forward.
Frotag··on Space Elevator
> For example, each short story almost completely changes the cast (of course, with some descendants of characters appearing occasionally)

I wish directors were brave enough to kill off characters if it serves the plot. I get that there's IRL reasons that make it difficult (like contracts, scheduling, etc) but each new season accumulates more subplots to the point it's like a 30 minute episode is really a compilation of 3x 10-minute shows.

This bugs me in multiple-protagonist books too. Just feels like an excuse to pad the page count with introductions and cliff hangers every POV switch.

Frotag··on Space Elevator
It's pretty and scratches that scifi itch. I've only read a little of the books but it's supposedly an entirely different story that coincidentally shares character names.

In terms of hardness, it probably on par with Expanse, so mostly technobabble with the magical tech only used when it's convenient for the plot. The abuse of "psychohistory" is particularly egregious. There's so many scenes where it's visualized a hologram of scribbles and they zoom in on more squiggles while divining the future.

But again it's pretty, so if you're okay with drama in space, it's maybe a 8/10.

Frotag··on Space Elevator
Terrorists-attacking-elevator is something that comes up multiple times in Gundam 00. Probably as an allusion to 9/11 (resistance to a growing superpower), but the in-universe explanations are pretty interesting too.

The elevators were developed for cheap space travel but unsurprisingly centralized the world's economic development around the owner countries. ie the other countries became increasingly reliant on them and the world segmented into (three) blocs. But the owner countries became increasingly protective / paranoid, leading to cold-war era developments where each of them secretly researched fancy space weapons and stockpiled more and more military assets around the elevators.

So some of the attacks were by poorer countries lashing out. Some attacks were to expose the military assets being hidden in the elevator (outlawed by intl treaty). Though most were probably just excuses to show things like giant robots vs death star.

Frotag··on Python's splitlines does more than just newlines
There's so many super useful things in the Python docs that you never see in the wild. For example, I recently learned that the sqlite3 module has a set_authorizer function that lets you limit the types of statements that can be run / tables that can be accessed.

https://www.sqlite.org/c3ref/set_authorizer.html

https://docs.python.org/3/library/sqlite3.html#sqlite3.Conne...

Frotag··on Rejected announces from libtorrent clients proxying through SOCKS
Stuff like this is why I usually go for network namespaces + (wireguard / socks / iptables) when I need to isolate traffic.

> The tracker in question that I wanted to get this working for explicitly forbids running development builds of approved BitTorrent clients.

Also didn't realize trackers were that strict about clients. I've seen some ban buggy versions / sketchy clients (usually cloud-based or for mobile), but that's usually a for-your-own-good type thing. Major names like QBT are usually fine regardless of version.

Frotag··on Float Exposed
Was curious what this looked like so did a google.

From the wiki, far lands ("spongy walls of terrain") aren't caused by precision loss but integer overflow in the terrain generation.

https://minecraft.wiki/w/Far_Lands

Frotag··on Framework Laptop 16
> And where's the PgUp PgDn Home End Insert Delete cluster?

I'm typing this comment on a first gen framework 16 keyboard. It's the same layout as the second gen in OP, where PgUp/PgDown are bound to fn+KeyUp fn+KeyDown and Home/End are bound to fn+KeyLeft fn+KeyRight.

I actually prefer the bindings over dedicated buttons since if I need to use home/end, I'm probably also going to need to go to the previous/next line with the up/down keys.

Frotag··on Why Semantic Layers Matter (and how to build one with DuckDB)
Kind of annoying the article writes "What is [a semantic layer] anyway?" twice but never defines it directly.
Frotag··on Actions reflect your priorities
It's often something that was mentioned in the first post's comment section. I guess someone found it cool enough to want to share.
Frotag··on Do not download the app, use the website
It's probably refreshing because iOS is aggressive about killing websockets, even if you only backgrounded safari for a few seconds. And it's easier to do a reload than determine which messages were missed. It's hard to even tell if the websocket is dead since it just stays open but is unable to receive / send messages.

Or at least this was my experience working on a mobile PWA a few years ago. I don't even own an apple device, it's just the ios bugs were always the most painful / memorable.

← PreviousPage 2 of 6Next →