Better HN
topnewbestaskshowjobs
Log inSign up

zeroimpl

621 karma · joined Jan 11, 2018 (8y ago) · 450 submissions

Submissions

comment 3y ago · link · parent

Surprising to see stuff like this included in a patch release:

    core: Updated conf/mime.types:
     - .js moved from 'application/javascript' to 'text/javascript'
That’s probably going to break something for somebody.

comment 3y ago · link · parent

That looks awful, but presumably if you are using sass instead of css you could define a light-dark macro already which does exactly that.

I wonder if custom functions might ever make their way to css.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

This option always seems funny to me. If I didn't trust the AES-NI instruction, why I would I trust the XOR instruction?

comment 3y ago · link · parent

In contrast, Java would have a compile error so long as the variable was not declared final.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Interesting. I use fonts.com which apparently is also Monotype. The illusion of a competitive market.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I’m more bothered by the missing article in the current title. Which star?

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Which then requires each app to have a public IP, priced at $44/year starting soon

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

The article was interesting but didn't explain why hot atoms would be invisible.

comment 3y ago · link · parent

> 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.

comment 3y ago · link · parent

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 ;)

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

12345
15