HNHacker News
TopNewBestAskShowJobs

zoky

1,087 karma · joined June 14, 2023

submissionscomments
zoky··on Show HN: I made a spreadsheet where formulas also update backwards
Contact a known and trusted security researcher who can verify to the world that you did what you said you did, so everyone else can have as much time as possible to figure out exactly how fucked they are. Doing nothing isn’t an option; once someone figures something like that out, it signifies that conditions were ripe for the discovery to be made, and it’s only a matter of time before it’s discovered again independently.
zoky··on Simple Hotkey Daemon for macOS, Ported to Zig
> The one thing I really can't stand about macOS is "Secure Input". It won't let you use something like TE or KM to input a password.

It actually will. The problem is that when secure input is enabled, you can’t trigger a macro from the keyboard, because the daemon isn’t allowed to intercept keystrokes. But if you can trigger the macro some other way, like through a mouse button or a MIDI message, keystrokes can be sent just fine, even into a password field.

zoky··on Imagining a language without booleans
Well, that’s true and false.
zoky··on Images over DNS
Wouldn’t the solution be to just start charging for excessive DNS traffic?
zoky··on Samsung confirms its smart fridges will start showing you ads
I mean, to be fair, most people’s TVs have shown ads since forever. Granted, those ads were distributed by the broadcaster rather than the TV manufacturers, but the association between TV and ads goes back far enough that it’s just sort of part of the cultural consciousness. I’m not sure that means that people “don’t care about ads”, especially when they are appearing in their homes through channels other than television. It may be that people who normally wouldn’t accept having ads on their devices have a blind spot for TV ads, just because that’s how TV has always been.
zoky··on Marshal madness: A brief history of Ruby deserialization exploits
As a general rule they will work anywhere, as long as the major version of the Marshal format is the same, and this hasn’t changed since Ruby 1.8. I expect if it ever did change (I can’t see any reason for it to ever do so though) there would probably be some sort of backwards compatibility available, as the Ruby community really hates making breaking changes between language versions, especially without offering some kind of relatively easy solution for making older code work.
zoky··on I gave the AI arms and legs then it rejected me
> This company is profiting immensely off of your work

I wouldn’t say that’s exactly the case. Not to denigrate the author or anything, but this library is a relatively minor part of what Anthropic is doing. It’s a UI manipulation library, specifically one that simulates keyboard and mouse inputs. While something like that is certainly necessary for the project in question, it’s not anything that couldn’t be rewritten in-house without too much difficulty, especially since they’re only using a subset of the platforms supported by the library.

I’m sure that working on this project has provided the author with expertise in this area that Anthropic could benefit from, and so in that sense it’s still a shame that they wouldn’t give him an interview, but that’s really all that can be said about it.

zoky··on Developing our position on AI
The problem is that in order to spend time at the Recurse Center, you first have to spend time at the Recurse Center.
zoky··on Air Force unit suspends use of Sig Sauer pistol after shooting death of airman
> I've had one since before the military adopted it. I've been carrying it for years daily. It has never once went off on its own. I run with it, jump with it, have carried it in a small cross body bag. It has never just fired by itself.

I mean, that’s quite literally survivorship bias…

zoky··on “Dynamic programming” is not referring to “computer programming”
It’s certainly possible to use it as a euphemism, if not an outright pejorative. “Dynamic truthfulness”, “dynamic sense of morality”, etc.
zoky··on The borrowchecker is what I like the least about Rust
Roblox apps are built in Lua.
zoky··on Five companies now control over 90% of the restaurant food delivery market
B2B and B2C are so different from each other they are essentially entirely different market segments, even if they are providing roughly equivalent services.
zoky··on AV1@Scale: Film Grain Synthesis, The Awakening
> Grain is independent frame-to-frame. It doesn't move with the objects in the scene (unless the video's already been encoded strangely)

That might seem like a reasonable assumption, but in practice it’s not really the case. Due to nonlinear response curves, adding noise to a bright part of an image has far less effect than a darker part. If the image is completely blown out the grain may not be discernible at all. So practically speaking, grain does travel with objects in a scene.

This means detail is indeed encoded in grain to an extent. If you algorithmically denoise an image and then subtract the result from the original to get only the grain, you can easily see “ghost” patterns in the grain that reflect the original image. This represents lost image data that cannot be recovered by adding synthetic grain.

zoky··on Boeing uses potatoes to test wi-fi (2012)
Yeah, I agree it’s frustrating, but I can see why they do it. 500 passengers each drawing even 1 amp each would likely put a serious strain on the aircraft’s power capacity. I’ve taken to just assuming the outlets are useless and carrying a battery pack onboard. One decently sized battery pack can easily keep a laptop, phone, or whatever charged for pretty much any domestic flight, and two of them is more than plenty for international.
zoky··on Boeing uses potatoes to test wi-fi (2012)
You most likely tried to draw too much current. The USB outlets on planes are usually limited to quite a low amperage—just barely enough to charge a single phone. I once tried to plug a Steam Deck into one, not expecting it to charge the battery but at least keeping it from discharging too quickly, and the outlet ended up shutting off completely for the rest of the flight.

Even the planes with 110 outlets are heavily current limited. I tried to plug in a USB charger and use it to charge a phone and tablet at the same time, and the outlet just shut off until I disconnected one of the devices.

zoky··on A new pyramid-like shape always lands the same side up
> However, in the limit, as the faces tend to zero in area, you end up with a D1.

Not really. You end up with a D-infinity, i.e. a sphere. A theoretical sphere thrown randomly onto a plane is going to end up with one single point, or face, touching the plane, and the point or face directly opposite that pointing up. Since in the real world we are incapable of distinguishing between infinitesimally small points, we might just declare them all to be part of the same single face, but from a mathematical perspective a collection of infinitely many points that are all equidistant from a central point in 3-dimensional space is a sphere.

zoky··on Why Android can't use CDC Ethernet (2023)
Oh wow, you got on the Windows 12 Preview somehow?
zoky··on Joining Apple Computer (2018)
I mean, as long as the average number of Apple devices per person is > 2 (which seems pretty likely, I have three on me right now), that’s still technically in the millions range.
zoky··on M8.2 solar flare, Strong G4 geomagnetic storm watch
> "Firefox undefined or later"

Honestly, you should really upgrade to at least Firefox Null for the security updates, or even Firefox NaN if you’re okay with being on the bleeding edge.

zoky··on Reinvent the Wheel
OP said that was for an entire app, not dependencies for a single gem. And it’s not really that many. A bone-stock Rails app includes almost 120 gems out of the box. Add a few additional gems that each have their own dependencies and you can get up to over 200 total packages pretty quick.
zoky··on Planetfall
Some players might have enjoyed extremely punishing games, but I think most players—and game designers—simply didn’t know any better. Creating a challenge that still feels fair is a difficult balance. Look at the old Sierra adventure games, for example. While they are excellent in terms of storytelling and creativity, they tend to be absolute garbage in terms of gameplay by modern standards. Many of the puzzles were outright impossible unless you had a guidebook, and you sometimes wouldn’t even be told what you did wrong earlier in the game that made the game unsolvable (looking at you, Space Quest jetpack puzzle).

But those games were rightly hailed as pioneers of the genre, and were considered to be the very best in their time. By today’s standards, though, they would be universally panned as abusive of the player, if they could even be released at all.

zoky··on Planetfall
Not just the classics, there is actually a thriving interactive fiction community producing new games regularly. The annual Interactive Fiction Competition usually gets 60-70 entries each year.

https://ifcomp.org/

zoky··on Making video games (without an engine) in 2025
The problem is that the type of assets you need to design varies tremendously depending on the type of game you’re making. A 2D pixel-art platformer, a multiplayer FPS, a top-down strategy sim, and a puzzle game are all going to require completely different types of assets with unique design requirements. You’d need an all-singing-and-dancing tool that probably wouldn’t be as good at any one thing as the existing specialized tools, FOSS or otherwise.

Although come to think of it, you could probably do most of that in Blender, so maybe such an thing already exists.

zoky··on Coding agent in 94 lines of Ruby
That actually is exactly the point. It has to do with the expressiveness of the language as well as how much you can do with the available toolset. If I showed you a 200-line program to play hangman written in C and a 2000-line equivalent program written in assembly, it wouldn’t really be useful to take into account the 15 million lines of code in the C compiler when trying to compare the two languages.
zoky··on Ruby 3.5 Feature: Namespace on read
I mean, nothing is stopping you from doing something like:

  require 'foo'
  Bar = Foo::Bar
zoky··on Dotless Domains
I had a teacher in high school who once wrote a URL on the whiteboard like this: com/foo/bar.html

Upon informing him that he had forgotten to write the domain, I learned that the site was actually www.com, and he had just left the http://www part off because “the web browser adds that automatically”. I assured him that, while in principle he was more or less correct, but in this case it wouldn’t work. He ended up adding the www, but I could tell he was skeptical that I was just being a smart ass.

zoky··on Design for 3D-Printing
I know two people with that exact model of 3D printer. Both printers are routinely out of commission for weeks on end due to some failure that the owners lack either the technical expertise to diagnose and fix or the desire to pay exorbitant prices for proprietary replacement parts to fix (or both). Meanwhile my Ender 5 is always chugging along, and is never out of commission for more than a day or two while awaiting replacement parts from Amazon that cost between a few cents and up to maybe $20 each.

I don’t actually think Bambu makes unreliable printers; to the contrary, they are excellent machines that, if anything, are much more reliable on the whole than Creality. But they’re kind of like sports cars, in that their target market is either people who want something fast and flashy and are willing to throw money at any problems to make them go away, or for technical types who want something they can take out on the track and don’t mind wrenching their own machines. The problem is that Bambu printers are marketed and touted as being great for beginners, and while they certainly make it easy to get into 3D printing for nontechnical people, I think most of them will end up ultimately being disappointed at either the lack of customization they allow or amount of time, effort, and money required to diagnose and fix them when something goes wrong.

zoky··on Google Play sees 47% decline in apps since start of last year
It’s only a vulnerability if you’re using vulnerable encryption methods, at which point you’ve already introduced a vulnerability. You could make the exact same argument about STARTTLS vs implicit TLS, but it’s generally understood that, as long as the only allowable protocols are themselves secure, there is no difference in security between the two.
zoky··on Google Play sees 47% decline in apps since start of last year
> The AUTH command is generally sent before encryption of the connection is made.

So…? What is the danger of negotiating an encryption protocol over plaintext? No credentials or sensitive information are sent via the AUTH command, and a server that disallows unencrypted connections will simply refuse to go any further with a client that doesn’t support encryption.

> It’s also vulnerable to a huge swathe of timing and weak hash attacks.

Gonna need a source on that. And even if such attacks potentially exist, in the use case you mentioned above I’m still not seeing how encryption combined with, for example, IP whitelisting can’t effectively be as secure as anything else you could use.

I mean, if they’re really not using encryption then yeah, that’s stupid and all bets are off. But there’s nothing inherently insecure about the FTP protocol.

zoky··on Google Play sees 47% decline in apps since start of last year
> FTP is not secure.

FTP can be as secure as any other protocol. Enabling encryption on the server side is generally as simple as installing a certificate and turning on an option. And most FTP clients will default to using encryption if it is available; for the clients that don’t do that, it’s just another server option to require clients to use encryption.

> And when companies say they use FTP to exchange data, they don't tend to mean SFTP. They really do mean FTP.

Because SFTP is a different and entirely unrelated protocol. The encrypted version of FTP is sometimes known as FTPS, but it’s really just a variant of FTP. So it would be inaccurate to call it SFTP, but referring to it as simply FTP doesn’t imply a lack of security.

← PreviousPage 2 of 14Next →