Better HN
topnewbestaskshowjobs
Log inSign up

zeroimpl

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

Submissions

comment 5y ago · link · parent

Whenever I see “go home and bite [his] pillow”, I’ve always assumed the person spoke quickly and/or skipped a word, which the editor thought should be added. It never occurred to me before now that the editor actually replaced a word!

comment 5y ago · link · parent

They support index-only scans now, so there is some sort of optimization which bypasses the table lookup, at least in certain cases.

comment 5y ago · link · parent

The 8-bit vs 10-bit aspect is entirely unrelated to the HDR vs SDR aspect.

10-bit is just added precision in your numbers, and ought to be interpreted as adding more decimal places (makes more sense when you imagine the values going from 0-1 instead of 0-255).

HDR is indicated as a bit somewhere in metadata to tell the downstream components how to interpret the pixel values.

To be extra pedantic, HDR is a bit to indicate how to interpret the brightness (luma) channel. There will be other bits for signaling how to interpret the color channels.

Often these things are all done together, which is generally referred to as HDR10.

comment 5y ago · link · parent

I loved reading, but hated every book I had to read in high school. Just couldn't relate to them. Only later did I realize most of them were pretty good and meaningful.

comment 5y ago · link · parent

Is it common in the Windows world for you to be able to copy software which you purchased on one device onto another device and expect it to work? Last I checked DRM is still the norm over there. Note that if the OS didn’t do this, you can bet the app developers would be including their own anti-piracy checks in the apps.

comment 5y ago · link · parent

A good bagel doesn’t need filling, nor even to be sliced. A few sesames on top is perfect.

comment 5y ago · link · parent

Agreed. Why they wasting our time pointing out it’s “non-linear” when this statement is only true for some definitions of linear? Just pick a non-ambiguous word, or add an asterisk and footnote.

comment 5y ago · link · parent

That's the whole point of the metaphor - comparing apples to apples is good, apples to oranges is bad.

comment 5y ago · link · parent

I’m not sure about near-infrared specifically, but I’m certain that shining light on yourself at “good” wavelengths can be beneficial. Specifically the use of a 10000 lux led panel to mimic the sun in the morning definitely helps with seasonal affective disorder on gloomy days.

The logic behind IR light is entirely plausible too. Light is energy, it’s not like photosynthesis is the only way an organism can leverage light.

comment 5y ago · link · parent

They were not acquitted for the first murder, they served the full sentence. Then later subsequently threatened to murder the same individual whom they had supposedly already murdered.

comment 5y ago · link · parent

> By defaulting to its search engine instead of Google on its devices, Apple will open itself to monopoly criticism from competition commissions in a variety of markets.

So if they use their non-monopoly share of the phone market to form a real competition against Google’s actual monopoly on search, that will be frowned upon?

comment 5y ago · link · parent

64-bits is plenty as long as you code it properly. The ids should be generated as part of the INSERT statement itself. This means in the rare case which has a duplicate id generated, you will get a primary key error and the transaction will fail. In most cases this means user gets an error message and retries.

If the above leads to any serious application problems, then you've got a lurking bug already, because you never know when there may be a network outage for example, and this would have the same effect.

comment 5y ago · link · parent

Various groups donated masks to China in January, what's your point?

Outside of China, nobody was talking about needing masks until March. I'm pretty sure the author is talking about the fact that by March, China had already produced tons of new masks but average people in the US couldn't access them because they were being reserved for health care workers.

comment 5y ago · link · parent

That's precisely why there is a control group.

comment 6y ago · link · parent

30% of free is still free.

comment 6y ago · link · parent

Is there any evidence that the submitter of the code did not want to make the change? It seems quite possible that the contributor wanted to make this change and volunteered their time. If that’s the case, the complexity of the change should not be relevant. The only complexity to consider is the downstream complexity. And besides, the change seems to be a one-liner plus find-and-replace in thousands of unit tests. Could probably have been done in a matter of minutes.

I am just speculating of course and maybe they were very unhappy to have to do this.

comment 6y ago · link · parent

I'm of the perspective that people arguing against these changes are bullying. The changes are easy to make, represent goodwill and inclusivity, and yet people with nothing to gain or lose are saying no. That's bullying.

comment 6y ago · link · parent

I'm pretty sure that most people, upon having one of their certs expire, do not find the private key and release it publicly. In fact they often generate a new cert from the same key...

comment 6y ago · link · parent

They could have added namespaces to branch names. Right now branch names are just a free-for-all. Instead, if they insisted that branch names are always prefixed with "username/", then you wouldn't need forks and anybody could freely submit code to any project. PRs would become MRs.

I believe this is how most Git repos are managed within organizations. I'm not sure why public repos need to require users to fork things to propose changes.

And isn't this basically how Github works internally anyways? (eg https://news.ycombinator.com/item?id=24882921)

comment 6y ago · link · parent

Not just that, they seem to suggest Github created Git...

> the quality of the tech that is Git is a testament to GitHub being able to make it this far in the tech space

But in reality, Github makes Git more complex, because now you have to understand the concept of forks. Not only is there your local copy and an origin, there is a 3rd repository in play.

comment 6y ago · link · parent

How so? git handles binary files at least as well as any other VCS from what I’ve seen.

comment 6y ago · link · parent

A better comparison would be: Hammers are designed for striking nails, but some customers have figured out they work well for cracking walnuts, so as a hammer manufacturer we should avoid using toxic ingredients such as lead.

comment 6y ago · link · parent

Agreed - this HTTPS everywhere madness needs to stop as there are still valid use-cases for HTTP and no user-friendly workaround for enabling access to local IP addresses via HTTPS.

comment 6y ago · link · parent

You cannot make an AJAX call from an HTTPS site to a HTTP site on a local IP address.

One of the internal web applications I develop (which is hosted over HTTPS itself) has to workaround this by doing the connection from the browser to the local IP address over HTTPS, but upon detecting HTTPS cert errors it opens a popup and walks the user through the process of adding an exception to connect anyways. Once that popup closes, then the AJAX request gets retried and succeeds.

While this works for an internal application, it would be unacceptable for any consumer product.

comment 6y ago · link · parent

But what about those vulnerabilities is specific to being on a private network? If we can find a public website with the same vulnerability, will we start enforcing stricter CORS requirements everywhere?

comment 6y ago · link · parent

> Low-light conditions are relatively rich in ultraviolet light, and UV vision is generally thought to be important to nocturnal animals.

Clearly there is not enough UV light at night to activate the glow in most cases, as otherwise people would notice. Also since it’s actually glowing pink, not sure what this could have to do with UV vision.

I wonder why nighttime would be rich in UV light though. I’d have guessed that IR light would be a better pathway to night vision, since warm bodies generate IR regardless of the time of day.

comment 6y ago · link · parent

I discovered this in my late teens and thought it was super cool and made me want to understand more about repeating decimals. After playing around for a bit I realized you could form arbitrary repeating decimals by dividing by 9, 99, 999 etc. So for example, 1/7 = 142857/999999. Or written another way, 999999/7=142857.

comment 6y ago · link · parent

Cases allow personalization, are easy to wash, and frankly plastic feels nicer to hold then metal. Even without edge-to-edge screen, most people are going to add a case around the thing, so you might as well optimize by shrinking the extra borders as much as possible. Are we really sacrificing anything here? That’s an odd choice of word.

comment 6y ago · link · parent

The other key to understanding this is that multidimensional arrays in Postgres are not simply arrays of arrays like typical programming languages. That’s why you can’t do things like array_agg on an array column.

comment 6y ago · link · parent

I grow tomatoes and some herbs on my balcony. It’s fun and they taste better, but it is clearly orders of magnitude less efficient than basically any alternative. I pay about $10 for supplies and many hours worth of labor to produce maybe $40 worth of produce.
1
8910
15