Better HN
topnewbestaskshowjobs
Log inSign up

zeroimpl

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

Submissions

comment 5y ago · link · parent

Feels like next somebody should setup a DNS system at 2.0.

comment 5y ago · link · parent

From my experience, if you give pretty-printed JSON to a YAML parser, it will explode.

comment 5y ago · link · parent

Sounds like you are using a specialized parser. At that point, it’s not YAML.

comment 5y ago · link · parent

I feel you could use it for like 10 seconds to get some inspiration and then trivially come up with something much better. It’s kind of like brainstorming with somebody who speaks before they think.

comment 5y ago · link · parent

Maybe it will? They didn’t say why they can’t sit through the videos, it might be because they are too slow to get to the point?

I don’t really see what value your comment is adding. The parents’ post was reasonable to me.

comment 5y ago · link · parent

As an algorithm, this is simple (4 very basic lines of code).

As an approach to sorting, this is fairly complex - many simpler to understand solutions exist.

comment 5y ago · link · parent

If you have no equity in a business, I'm not sure why the promise to sell/not to sell is even relevant. If it was some charity/non-profit or other group with a mission to make the world a better place, I could understand it. But why an employee of an email marketing business with no-equity would care is beyond me.

comment 5y ago · link · parent

Any good explanation why HSV has the color distortion problem mentioned in the article? I thought hue was the main thing it got right. Is it due to a problem with sRGB itself?

comment 5y ago · link · parent

Related study showing similar results: https://www.ahajournals.org/doi/10.1161/CIRCRESAHA.121.31890...

comment 5y ago · link · parent

I don’t mind the & being required, I just don’t like the fact that there are 2 syntax options depending on whether & is at the start or not.

If the parsing problems are that difficult, I’d rather the @nest be always required.

comment 5y ago · link · parent

The term "unbounded" seems a bit strange to me too. At worst you only need to lookahead until the next ; or { to figure out if it's a property or a nested selector.

I guess that's unbounded because the parser can't know how much data it will have to buffer, but in practice we're talking like a few dozen bytes most of the time.

comment 5y ago · link · parent

Remotely disabling stolen internet-connected devices is good common practice. We used this once at my company for some items which inexplicably went missing from the manufacturing line. A few years later I got a support ticket escalation about a customer who got a device from “some weird turn of events” (something like that) and couldn’t figure out how to activate it, it kept saying to contact support.

comment 5y ago · link · parent

I know the assumptions are wrong. But the point is the lack of explicit copyright notices on blogs or SO posts is probably enough to convince most courts that you did not willfully violate copyright. The parent I responded to implied you’d have to convince a court that you thought the copyright expired due to death.

In general I suffer from NIH complex so don’t really copy code from those places ;)

comment 5y ago · link · parent

What I look at answers on Stack Overflow, the lack of copyright notices on the code makes me feel safe to copy it. Same goes for grabbing code from random person's blog.

If they had put explicit copyright notices in the code snippets, I'd assume otherwise.

comment 5y ago · link · parent

I specifically clicked on this topic because of the word “opinionated”. As I already know how to use xargs, I was curious what kind of non-conventional or controversial opinion the author might have.

comment 5y ago · link · parent

I think a good way to dumb this down is to use bacteria as an example. Most people know that improper use of antibiotics is leading to a surge of antibiotic-resistant superbugs. This is basically the same mechanism as far as I’m aware - evolution due to selection pressure.

If vaccinated people also keep wearing masks and social distancing, dangerous mutations should be much less likely.

comment 5y ago · link · parent

The other problem with insect protein is it doesn’t qualify as vegetarian (nor the new hip name “plant based”), so it’s not clear who it is marketed to.

comment 5y ago · link · parent

You start the shut down process from it...

comment 5y ago · link · parent

It seems Apple only applies this if you sync photos to iCloud. Isn't the solution just to not use iCloud? I've personally never used iCloud sync for photos, am happy enough managing the files myself. Demanding that Apple allows you to use iCloud to host illegal pictures seems a bit entitled to me.

I am concerned about the slippery slope of if they start scanning files that were never going to go through their servers in the first place though.

comment 5y ago · link · parent

Funny how they say SQL gets it right, but then shows an example which is the opposite of my experience.

From PostgreSQL

    # select '5' = 5;
    ?column?
    --------
    t
    (1 row)
I believe this is standard SQL. Putting something in quotes just means it is a literal, doesn't mean it is a string. Of course if you explicitly cast it to a string, then you get an error. As in:

    select '5'::text = 5;
    ERROR:  operator does not exist: text = integer
    LINE 1: select '5'::text = 5;
                             ^
    HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
I agree with the premise - SQL gets it right, but perhaps only in PostgreSQL?

comment 5y ago · link · parent

Swapping for a non-dairy fat is trivial and won't really affect the flavour.

comment 5y ago · link · parent

Cool never knew this - this will make me about 20% more productive at tailing!

comment 5y ago · link · parent

I wonder if this misconception has more to do with the fact that programming languages define left/right bitshift operators and since left shift means making a number bigger, that implies the most significant bits are on the left (eg first in a LTR language).

comment 5y ago · link · parent

> this may entitle all GitHub users to receive a copy of GitHub’s source code under the terms of the AGPL

Given that GitHub’s code runs on their own servers, doesn’t that protect them from needing to provide source code to anybody? I’ve always assumed running GPL code in the data center is fine.

comment 5y ago · link · parent

I don't follow - If you are on a freshly cloned repo, none of the commits were made when the current branch was master, they were made on another user's git repo before your repo existed.

comment 5y ago · link · parent

But commits change branches. None of the commits started on the "master" branch, they started on some developer's branch (which might also be called "master" in a different repo, but is still separate).

comment 5y ago · link · parent

Doing it the way I suggest is directly in line with their final recommendation of passing the whole script as a single string.

comment 5y ago · link · parent

Why not just this:

    ssh $server "$(cat script)"
So far that has worked fine for me. Curious when base64 is required?

comment 5y ago · link · parent

Presumably there’s some similar food culture between Spain and Spanish-speaking countries?
1
678
15