Better HN
topnewbestaskshowjobs
Log inSign up

411111111111111

2,374 karma · joined Feb 10, 2020 (6y ago) · 1,491 submissions

Submissions

comment 3y ago · link · parent

Apple has perfected their virtue signaling game and all the simps love it.

I don't really mind it either anymore, a lot of people have this hero worship fetish and they can't help painting everything in black and white, even though they're all just different shades of gray.

Apple is definitively brighter on that scale then Google or Meta, but they're all corrupt multinational corporations that will do everything they can get away with to increase their bottom line.

comment 3y ago · link · parent

I tried that a few times, but by the time I've explained enough for the code to be close to what I want i could've just implemented it myself twice over... And that's ignoring the fact that it's always generating subtly wrong or just poorly performing code.

It might change eventually as ide integrations improve, but for now it's a novelty for me.

comment 3y ago · link · parent

If that was true, then why are there movies/series created solely for streaming providers?

It can't be there sole reason, and I sincerely doubt it's even true. Sure, the price of a single DVD would've covered the price of 1-2 months of streaming on Netflix, but people didn't buy a DVD each month. And if they did, they lent it to friends after.

comment 3y ago · link · parent

I only did depth=1 because the syntax doesnt change, i still don't see a difference to speak of

css:

    div:has( > \* > \* > \* > \* > \* > \* > \* > #the-child)
    (backslashes added by hn because of formatting conflict)
xpath:

    //div[@id="the-child"]/../../../../../../../..

comment 3y ago · link · parent

lets say you have

    <body>
    <div><!-- you want this one -->
      ok
      <div id="the-child"></div>
    </div>
     <div><!-- you dont want this one -->
      nok
      <div id="the-wrong-child"></div>
    </div>
    </body>
css:

    div:has( > #the-child)
xpath:

    //div[@id="the-child"]/..
isnt that kinda the same? I think I'd even consider the css version to be easier to understand at a glance.

If you've got full control over the Dom it'd be much better to just set an id attribute on the element in question though, as getElementById is still the best performing option

comment 3y ago · link · parent

hx-on is the general js API from htmx, it's essentially a wrapper/shortcut for creating a js event handler. The htmx docs provide some examples

https://htmx.org/attributes/hx-on/

comment 3y ago · link · parent

It's linked in the description

https://github.com/JetBrains/lets-plot-kotlin

comment 3y ago · link · parent

You're responding to a comment that gave you a link to their inital plan, which was literally replacing the ads.

click on it, your horizon might be broadened by the added knowledge.

comment 3y ago · link · parent

It's always surprising to me when I hear people using the brave browser... It's by a company that initially tried to replace their blocked ads with their own "safe and non-intrusive" ads as far as I remember, until they backpaddled because of the outrage.

It's also a for-profit company and you're not the customer, as you're not paying them money.

I'd be way more worried how they're using the data they're collecting on you vs Google or MS

comment 3y ago · link · parent

I'm not saying that it would be better for authors without copyright. That would indeed be hard to ascertain without a/b testing.

My point was that it doesn't improve their lives, and that's much easier to check in isolation just by reading the news about the current writers strike and how the industry just ignores it until fall, expecting their savings to run out.

Really, copyright just doesn't give the content creators any meaningful power as this right is generally owned by the industry/publisher, not the authors.

comment 3y ago · link · parent

You state this as a fact, but it's actually much less certain wherever it's ever been net-positive.

It was probably intended that way, but the reality is that the power has been with the publisher since the beginning, and they've absolutly been screwing over the author's as well. Only the most successful author's have gotten decent deals.

I don't have an answer to this either though, i just wanted to point out that copyright has arguably never been successful at getting money to the content creators proportional to the value the Publisher extracted from the work either.

comment 3y ago · link · parent

Their comment was the one that this thread is bases on. They're merely pointing out that the original comment already gave an example why its a mess.

I disagree with their point though, in java the lib would've probably just converted the exception to a runtime exception so the API doesn't change...

comment 3y ago · link · parent

Leadership matters, Apples history is a prime example of this as shown by first faltering without Steve Jobs and then becoming the most profitable company after he rejoined.

Nonetheless, you're still attributing way too much to the ability of the leadership. After all, that story is so remarkable precisely because it's pretty much the only well known example of this.

comment 3y ago · link · parent

Their self driving will work right around the same timeframe spaceX actually succeeds a launch with a final budget lower then the most expensive NASA launches were.

It's honestly hilarious how he was lauded as tony stark in the flesh considering the only thing he excelled at was getting simps to gift him money

comment 3y ago · link · parent

They're both kinda dumb though. Updating will create a new layer, but the old binaries will still be a part of the image as part of the history.

The only correct way is to either rebuild the base image from scratch or just fetch a new base image. My suggestion would be the latter, just run docker pull again for the baseimage and use that, without running update.

comment 3y ago · link · parent

Fastmail also includes DNS, a few GB of storage and optionally static web hosting from said storage. They're also providing you with a caldav server for synced calendar, notes and contacts

comment 3y ago · link · parent

Pretty much all videos I've seen of the current riots (mostly filmed via phones from bystanders) in France show a very different picture then racism.

Even that unfortunate incident when they killed the teen was very much reactionary, as people have been throwing Molotov cocktails etc at them for weeks now.

Honestly, i do understand the perspective of the rioters. Not having a chance to improve your life would make me violent too, i think... But framing the police as racists acting out is misguided considering that most of the issues are social in nature and not caused by the police.

And this might be too nitpicky for such an emotional topic, but the term racism gets thrown around way too much. I think it's more akin to classism, as it seems like you're still gonna get discriminated against if you originate from the poor areas, no matter what the color of your skin is.

comment 3y ago · link · parent

From previous discussions it's my understanding the c integration is going to be the cause for the issues.

From a python perspective it wouldn't necessarily be a big change, but everything can branch out to c, and there you're going to get in trouble with shared memory.

comment 3y ago · link · parent

Your phrasing makes it sound like that's a negative.

I'm honestly surprised they're required to abstain from doing so at the author's request.

You can only read the context of the match after finding the search result after all, not the whole book.

It's an example of significant overreach of intellectual property from how I see it. The robot.txt rational doesn't apply there either, as their scanning does not impact anyone's resources. And it's been published, which makes it public by definition.

comment 3y ago · link · parent

At that point you'd need a machine learning DSL and runtime. Currently, it's all python libraries, so you can do everything python can... Which is everything, essentially.

It's highly unlikely that the market for running these models like an appliance securely in an untrusted context will ever manifest. It's just too much of a niche, as it would also reduce their extensibility/usability significantly

comment 3y ago · link · parent

As a general rule of thumb: The general public is not interested in high quality content.

They're much more interested in instant gratification and mindless entertainment, which was sufficiently catered to on the original platforms, so the critical mass of people never switched over.

Another factor surely was that - at the time - reddit was another platform for high quality discussions on specific topics and made it much easier to find like minded people through the subreddit segmentation.

While the circle functionality worked decently in g+, you still had to actually create and join them, which meant it was too exclusionary and involved to really get going.

comment 3y ago · link · parent

As another person that's worked in payment (specifically aquiring) for 6 years: PCI compliance is not a trivial matter as you seem to believe.

It involves recurring audits of all systems in contact with cc information.

While I've never used stripe, i doubt they'd let you use that API without the certificate, as they wouldn't be able to do the aquiring for illegitimate transactions such as that. They could lose their status as an aquirer if they did that knowingly, and that would make it impossible to process any visa/Mastercard transactions.

You're more likely to encounter a simple scam/phishing site then a legitimate shop that let's cc information onto their servers. And that's honestly the only danger apple pay protects you from.

comment 3y ago · link · parent

you're extrapolation, thus you're using it as a causation.

Let me give you an example:

Swiss cheese has holes, by studying its properties you can find a correlation between the size of the cheese and the total volume of holes.

You do another study and find that as you increase the size of the holes the cheese, you're left with less grams of cheese.

by your logic, which extrapolates between these two unrelated studies finding different correlations, you can confidently state this:

  more cheese correlates with more holes
  more holes correlates with less cheese

  more cheese == less cheese
outstanding logic, indeed.
12345
50