zeroimpl
zeroimpl on Hacker News
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.
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.
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.
This option always seems funny to me. If I didn't trust the AES-NI instruction, why I would I trust the XOR instruction?
In contrast, Java would have a compile error so long as the variable was not declared final.
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.
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.
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.
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.
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.
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.
Interesting. I use fonts.com which apparently is also Monotype. The illusion of a competitive market.
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
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.
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.
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.
I’m more bothered by the missing article in the current title. Which star?
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.
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.
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.
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
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.
Which then requires each app to have a public IP, priced at $44/year starting soon
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.
The article was interesting but didn't explain why hot atoms would be invisible.
> 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.
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 ;)
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.
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.
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.