HNHacker News
TopNewBestAskShowJobs

zeroimpl

620 karma · joined January 11, 2018

submissionscomments
zeroimpl··on VeraCrypt: Free open-source disk encryption for Windows, Mac OS X, Linux
By default if rsync sees any difference in metadata (timestamps), it just copies over the file fresh - first to a temporary file and then renames over the original. To do an in-place update you'd need to specify an arg for that. And even then, it needs to do a full read of both files to compare, so all it saves on is bandwidth.
zeroimpl··on VeraCrypt: Free open-source disk encryption for Windows, Mac OS X, Linux
This option always seems funny to me. If I didn't trust the AES-NI instruction, why I would I trust the XOR instruction?
zeroimpl··on Fixing for loops in Go 1.22
In contrast, Java would have a compile error so long as the variable was not declared final.
zeroimpl··on Unity has seemingly silently removed its GitHub repo that tracks ToS changes
Deleting things never makes a sound. The word silently is added entirely for the connotation that it was meant to be secret. Since such an action would never go unnoticed, it's obvious that it wasn't meant to be secret, so that word is clearly misplaced. If the author wanted to imply it was bad, they should just come out and say it, with a word like despicably.
zeroimpl··on Unity has seemingly silently removed its GitHub repo that tracks ToS changes
I'm surprised they even had such a repo public in the first place.

Every year Apple releases a new version of their Apple Developer Program License Agreement and Paid Applications agreement. I always download both as TXT files and diff against the previous one to see what changed. I practically don't even need to read any of the WWDC news to know what new things they are releasing.

zeroimpl··on Calculate the difference and intersection of any two regexes
Yeah the latter.

In an engine supporting ^ and $, searching for this

    (a|b|^)(c|d|^)foo
is equivalent to searching for this

    ^((.*a|.*b)(c|d)|c|d)?foo.*$
And in this context you can drop the leading/trailing ^/$ since they are implicit.
zeroimpl··on Calculate the difference and intersection of any two regexes
Only when the ^ or $ were at the start/end of your string is it simple. Eg:

    (a|b|^)(c|d|^)foo
Rewriting without ^ can require much longer regex.
zeroimpl··on Scammers can exploit email forwarding flaws to impersonate high-profile domains
I recently encountered a similar situation to this. My company uses O365, and I’ve got an application which sends emails to customers. The application just relies on postfix to relay through O365. Apparently we hadn’t added the public IP of this server to our SPF records.

The results was O365 adds on some headers saying SPF=fail, but sends to the destination anyways. When the destination was gmail, gmail just ignored those headers and added on some SPF=pass headers since the email it received correctly came from O365. I’m guessing this is the lax validation the article is talking about, since I’d expect the receiving server to search for any FAIL headers in the email to reject.

zeroimpl··on OpenTF repository is now public
I'm not sure companies care much about support for "simple" tools like Terraform, at least the non-hosted version. Operating systems have lots of dark corners, but if your Terraform deployment isn't working then the problem is likely your code.
zeroimpl··on Where do fonts come from? Monotype, mostly
Interesting. I use fonts.com which apparently is also Monotype. The illusion of a competitive market.
zeroimpl··on How was the size of Earth first measured? (2015)
Somewhat surprised the answer isn’t based on the angle to the North Star - that’s my preferred approach and it seems less explainable by a flat earth model under assumption the stars are further than the sun
zeroimpl··on How was the size of Earth first measured? (2015)
Huh? If I put a lightbulb above something, the place it’s above won’t have shadows, but there will be shadows at places that aren’t directly underneath.
zeroimpl··on Power Consumption of JPEG, WebP, and AVIF
Related I’m surprised how slow my Mac is at rendering HEIF images compared to JPEG. Reviewing photographs transferred from my phone after a vacation is almost painfully slow. Seems like that format really requires hardware acceleration.
zeroimpl··on My experience contributing to HashiCorp open-source projects
Great writeup. I had a similarly frustrating experience getting a minor but popular improvement submitted to VS Code (but at least it got accepted in the end!). They are both great products and I respect their development teams, but it’s extremely annoying when there’s clearly something the company doesn’t like about the PR but they refuse to elaborate or even acknowledge it.
zeroimpl··on Astronomers Find Star Is a Powerful Magnet
I’m more bothered by the missing article in the current title. Which star?
zeroimpl··on Node.js 20.6.0 will include built-in support for .env files
If your env file is a script that you source manually, I’d call it env.sh instead.

Historically this has been my approach, but in production environments it’s convenient to have a static list of variables with no “export” instead since eg systemd’s EnvironmentFile only supports that.

zeroimpl··on Why GNU su does not support the `wheel' group (2002)
Yeah I don’t really understand why when I ssh into a VM in the cloud I have to first connect as a static dummy username like ec2-user then sudo to root.
zeroimpl··on Bypassing YouTube video download throttling
Most websites use JS to tell the player what to do, so the JS decides what streams to play based on asking the browser what it supports.
zeroimpl··on My favorite Vim oneliners for text manipulation
Oddly I often navigate in a line by typing “f “ (f space) then press . repeatedly until I’ve gotten to the right place. Never occurred to me to navigate within a line using / but that ought to be faster most of the time
zeroimpl··on Lazygit Turns 5: Musings on Git, TUIs, and open source
Precisely this. Most of my coworkers seem to use a prompt that just reports what branch you are on. I use a power line-based prompt that captures a lot more info, and so I virtually never end up in a situation where I forgot to include files or forgot to push my commit since it’s super obvious.
zeroimpl··on AWS to begin charging for public IPv4 addresses
Which then requires each app to have a public IP, priced at $44/year starting soon
zeroimpl··on Java: New Draft JEP: “Computed Constants”
Name seems a bit odd. The item it points at doesn’t have to be immutable. I’d rather something like LazyValue since Lazy is the important part.
zeroimpl··on Are the “missing baryons” simply too hot to see?
The article was interesting but didn't explain why hot atoms would be invisible.
zeroimpl··on Microsoft Owns the Trademark for “X”
> Mark Type: Service Mark

Doesn't this just mean they own the rights to their use as a logo? Eg the stylized X on their products? I don't think this blocks anybody from using X in their products as long as the logos are clearly different.

zeroimpl··on Why SQLite does not use Git (2018)
That’s true for personal projects, which is essentially the case here. If this was a business, not so much.

I was probably too harsh in my initial message, but when I read the article and see reasoning along the lines of “git lacks a good UI for X, I hear there may be 3rd-party solutions to this problem, but then that’s too many things to install, so I’d rather build a custom solution from scratch which does everything”, it reminds me of stuff I see at work ;)

zeroimpl··on Why SQLite does not use Git (2018)
I thought they both started at the same time? Unless you are implying early versions of git were worse, which wouldn't surprise me.

I know git has a learning curve, but the only times I really see junior people have issues is when they are trying to do things that wouldn't have been easy with earlier VCS systems either. And it seems like git isn't going away, so it's worth putting the time into learning it.

zeroimpl··on Why SQLite does not use Git (2018)
Seems like a textbook example of NIH to me. By the time you understand git well enough to design a good replacement, you’re bound to be an expert and ought to appreciate more the design of git.

If you don’t like the lack of a good GUI or web application, you can just build one that works the way you want and still works with git.

zeroimpl··on The controller pattern is awful, and other OO heresy (2013)
Which is what’s great about these languages - best of both worlds.

I also think this discussion shouldn’t be about languages at all, you can have objects of some form in any imperative language including C. It’s more about what design patterns make sense for specific problems, and sometimes the answer is OO-style (eg with class hierarchies) and sometimes not.

zeroimpl··on Intel Releases x86-SIMD-sort 2.0 With Faster AVX-512 Sorting, New Algorithms
It’s pretty common for most SQL queries to be reading data that is entirely cached in memory. In these cases, the performance limitations often come from sorts or hash joins.
zeroimpl··on The rule says, “No vehicles in the park”
This is why you need a lawyer familiar with the local regulations, which clarify these things. Thus this test is invalid because there should be an “there is not enough information to answer” answer.
← PreviousPage 3 of 15Next →