HNHacker News
TopNewBestAskShowJobs

drewtato

309 karma · joined April 27, 2022

submissionscomments
drewtato··on Rust module system encourages bad practices
The version numbers are from a little more than a year ago. Originally, it was pretty much only compilation artifacts and some CLI. https://github.com/rust-lang/cargo/pull/10563
drewtato··on Rust module system encourages bad practices
You can fix this by doing `pub use module::*`.
drewtato··on Rust module system encourages bad practices
Rust has workspaces, which is a collection of packages (a Cargo.toml and related source files). Workspaces are still pretty underpowered, but they do have shared dependencies, compilation artifacts, version numbers, and CLI management. A lot of this is new (1 year old).
drewtato··on YouTube removed dislike counts, so this guy made Rotten Tomatoes for YouTube
There's also the option to manually approve every comment.
drewtato··on No_color
They also won't output stuff like progress bars, width-aware content, and may change other behavior. It would also annoying to pipe everything.
drewtato··on Paper Airplane Designs
There's 48 designs, so this isn't much of a database, more like a short list. For something completely different, my favorite collection of paper planes are those by Jayson Merrill: https://www.youtube.com/@jayson5674 They're the most complex planes I've seen under the restrictions of no cuts and no adhesive. Here's a good one: https://www.youtube.com/watch?v=K-n6NAbJduk
drewtato··on Four-Byte Burger [video]
https://i.imgur.com/sXiDtCg.png
drewtato··on Scrcpy 2.0 mirrors Android devices with audio forwarding
Perhaps the prompt wasn't on the broken part? Can also plug in a keyboard and use that if you know the sequence.
drewtato··on Getting around website paywalls with devtools alone
Kinda late, but that's okay with me!
drewtato··on VR Airplane Deicer Simulator
So they send you a "High-performance CPU"? Isn't that weird? If you need a CPU, you probably need the whole computer and GPU.
drewtato··on The Registers of Rust
The strong typing in rust definitely helps with this, though. For most problems, you can encapsulate a refactor into something that, at each occurrence, either works automatically (with things like generics and deref) or fails to compile.
drewtato··on Getting around website paywalls with devtools alone
Usually on these sites, there'll be an `overflow: hidden` element that's holding all the content. If you can find and disable that CSS line, it'll work as normal. Or just save it to the Wayback Machine and read it through that.
drewtato··on Mysterious object is being dragged into the black hole at the Milky Way’s center
It would have been shoved backwards relative to the original orbit, perpendicular to the direction of the black hole.

When you think of orbiting as "falling and missing continuously", the lowest-energy way to stop missing is to stop moving forward.

drewtato··on Launch HN: MagnaPlay (YC W23) – Indie gaming subscription service for PC
The developer side sounds pretty bad.

> we're able to pay developers a recurring revenue stream, as long as people are playing their game.

That's how normal game sales already work for non-replayable games.

Good indie games are usually more like $20. If you want to be in this service and make the same amount of money, you'd need your existing player count to only play your game for over 2 months, assuming the revenue split is the same (which you've left out). This is unrealistic; I'd expect people to play 2 or so games per month. Your service would need to make that up through a massive increase in advertising. This is already what publishers do, so you probably won't get any Annapurna/Devolver/THQ/etc games. Basically, you're trying to do what Epic did (make a new platform and subsidize dozens of games) without making a billion from vbucks.

> This way, indie games can achieve profitability with a smaller player base

Your service doesn't encourage this. People are going to be less likely to stick with a game, so you need more players to get the same revenue, assuming all else is balanced.

From the player side, people irrationally hate installing new launchers. The DRM thing is probably fine though. It'll depend on how often it breaks games and how much performance it takes.

My conclusion is this is Moviepass for games. Except it only has 11 games.

drewtato··on Epochalypse
Idk why but they overwrote this in JS (https://github.com/hertg/epochalypse/blob/main/index.html#L1...)

    byte1.innerText = "1" + bits.substr(1, 7);
Realistically the first bit should be skipped and the first part should be 7 digits.
drewtato··on Why does my SSH private key still work after changing some bytes? (2016)
It's a private key so sharing it kinda defeats the purpose. This also only works because the modified part isn't being used.
drewtato··on Is Dark Mode Good for Your Eyes? (2020)
They meant that when you turn on Chrome's dark mode (for the browser UI) it also enables `prefers-color-scheme: dark` for websites. These are always synced as far as I know.
drewtato··on Computer Latency: 1977-2017
The test is valid for any combo of shell and terminal, it's just a matter of figuring out which methodology was used so it can be better understood.

But yeah, I agree with the other comment that powershell is likely adding less than 1ms.

drewtato··on Computer Latency: 1977-2017
With text content, most frames are exactly the same. So what adaptive sync can do is delay a refresh until just after the content has been updated. At a minimum, it can delay a refresh when an update is currently being drawn, which would lower the max latency.
drewtato··on Computer Latency: 1977-2017
This video is not a steady 60FPS. Lots of frames are duplicated or torn. Maybe this was originally 60FPS and got mangled by the recording process.
drewtato··on Computer Latency: 1977-2017
Powershell isn't a terminal (it's a shell, obviously), so the windows results are most likely tested in conhost. If it's on windows 11 it might be windows terminal, which may be more likely since I think cmd is still default on windows 10.
drewtato··on Computer Latency: 1977-2017
Only things I can think of is that for windowed apps, you have to wait for the OS to hand you mouse events, since the mouse may be on another window, and you have to render to a window instead of directly to the framebuffer.
drewtato··on Each visit to the page deteriorates the main image
There's a 1.5% chance for the image to be 4 pixels wider and taller than usual, so that's probably moving things around.

https://github.com/kumpmati/crowd-jpeg/blob/main/api/src/ser...

drewtato··on Map of the Internet
Site is kinda dying (at least in my region of IP) but I looked up .sarl: it's like .gmbh or .ltd but French.
drewtato··on Pathfinding Visualizer
My feedback:

Building the maze takes too long. Maybe turn the play button into a fast-forward button when the maze is being built and solved.

The dark mode colors are pretty bad.

When you click and hold, it should turn every square the same color until you let go again. Right now it toggles every square you pass over, which is confusing.

When you move the start and end, it removes walls from the board.

Isn't Dijkstra the same as BFS?

Fast is not fast.

I think an inverted binary tree maze would be nice.

drewtato··on Blip: A tool for seeing your internet latency
The page still loads in HTTPS, but turning off HTTPS-only mode means that the HTTP requests succeed, at least more than before. So I guess there's nothing wrong there.

The blue ticks actually don't work, though. They're always accompanied by red and seem to be timing out instead of the usual exceptions.

drewtato··on Blip: A tool for seeing your internet latency
There's definitely something wrong with this site. If I turn off HTTPS-only mode, it makes a perfectly straight green and red bar at 2000ms.
drewtato··on The Restaurant Industry’s Worst Idea: QR Code Menus
You've got it backwards. The big files are menus that have been scanned with no compression at high resolution. Most of that info is vector/font on a properly designed menu.
drewtato··on A chill driving game with procedurally generate scenic landscapes
If anyone is looking for this but as a more complete game, check out art of rally: https://artofrally.com/
drewtato··on Never trust a system that seems to be working
https://twitter.com/Foone/status/1581662557470806017
← PreviousPage 2 of 3Next →