Better HN
topnewbestaskshowjobs
Log inSign up

oreilles

387 karma · joined Jul 23, 2021 (5y ago) · 113 submissions

Submissions

comment 1d ago · link · parent

It was already possible to use the Macbook's trackpad as a weighting scale [1]. Now as a speaker. Then what..?

[1] https://news.ycombinator.com/item?id=44635808

comment 10mo ago · link · parent

Or planes.

comment 10mo ago · link · parent

Nope, they don't sign iOS 18 updates anymore.

comment 10mo ago · link · parent

When your trackpad worked in a previous OS version and suddenly don't in the newest, that's called a software bug. Not a trackpad malfunction.

comment 10mo ago · link · parent

One's expectations aren't in any way relevant in considering wether something is an asshole move or not.

comment 11mo ago · link · parent

Clicking the leftmost menu icon raise the following error:

    Geneguessr encountered a problem:
    runtime-error
    SyntaxError: redeclaration of const NAVIGATION_START

comment 1y ago · link · parent

I would have went for Catalina.

comment 1y ago · link · parent

HTTP auth is not an authentication system, it only describes how credentials should be passed from the client to the server and how the server should respond to them.

comment 1y ago · link · parent

Webhooks would be much closer to a sane solution to this use case. Why would you spam a web server asking repeatedly wether something has happened or not, instead of just providing him with an adress so that he can simply let you know in due time ?

comment 1y ago · link · parent

This will make IP over Avian Carriers so much more efficient.

comment 1y ago · link · parent

This article is about people who liked their company and their job and lost it all. It's something to lack empathy, but I'm always amazed that there are people so full of themselves that they will go out there and proclaim that they don't give a shit about other people's fate, as if it was something to be proud about.

comment 1y ago · link · parent

I just tried, pinging Yahoo is about 20 times slower than pinging Google...

comment 1y ago · link · parent

> It's set to 0 or 1 to enable/disable (can never remember which mapa to which)

That's crazy. Boolean logic is the most fundamental notion of computer science, I can still remember learning that in my very first course on my very first year.

comment 1y ago · link · parent

Even if was a small % of the Apple lineup, the iPhone mini was one the best selling smartphones all brands considered. I for one switched to iPhone in 2020 specifically because there wasn't a single current-gen small form-factor Android phone anymore. I have a few friend that also made the switch with the 12 / 13 Mini for that reason.

The real reason the iPhone mini failed is not related to screen size, it's because its segment was canibalized by the cheaper alternative, the SE. The 2020 and 2022 sold like hot breads, wherehas their screen was almost an inch smaller than the iPhone mini. This is the proof that there a significant market for people who don't care about size and would gladly take the smallest option at a $100 discount from the regular one.

comment 1y ago · link · parent

The USGS provides exactly what the author was looking for, free of charges, no computation required, no download required:

https://elevation.nationalmap.gov/arcgis/services/3DEPElevat...

Preview in QGIS: https://ibb.co/B5T49YBj

comment 1y ago · link · parent

> Just scratch the commit from existence.

Unfortunately, that is impossible: https://trufflesecurity.com/blog/anyone-can-access-deleted-a...

comment 1y ago · link · parent

> The poorest American state, Mississippi, is richer per-capita than most European countries, including France.

The state, maybe. The missisipian, not so much - considering their Human Development Index is right in between that of Hungary and Bulgaria, at the very bottom of the EU. How great is it to be able to buy expansive cars if you can't get access to education, healthcare, retirement, and will find yourself in the street if you lose your job.

comment 1y ago · link · parent

Well that's an indsight bias if I've seen one. This is the first time I ever read that the "bottom" of a black hole could be a entirely new universe. If there ever "always was" a common hypothesis, it was the wormhole.

comment 1y ago · link · parent

Chiming in to promote a similar project, a geospatial extension for Polars [1] I'm working on. It's not stable yet (abeit pretty close to), but is already pretty feature complete (it uses GEOS and PROJ as a backend, so has parity with GeoPandas).

[1] https://github.com/oreilles/polars-st/

comment 1y ago · link · parent

Chesss960 doesn't have "slightly different rules" than chess, it's a variant where all the pieces are randomnly positioned at the start of each match... It's basically playing a completely different game, and one the FIDE has absolutely zero interest in. Freestyle and FIDE organization are not in competition.

comment 1y ago · link · parent

The discussion is not wether Spotify will benefit from this situation in the long run or not, it's wether the users of the platform (both the listeners and the artists) should be happy with it and the answer to that is, thanks this lengthy article, demonstrably no.

comment 1y ago · link · parent

Did you guys not read the article ? The problem arises because of the way the music is distributed on Spotify and the way it is licensed. Spotify make deals with the companies producing this stock music so that it can fill its popular playlists with while paying close to zero royalties. The consequence is a decline both in music quality on the platform and in artists rights, revenue, and ability to be listened to overall.

comment 1y ago · link · parent

It is a paradox because there is an apparent contradiction in the fact that higher efficiency leads to higher consumption. By definition the opposite should be true.

comment 2y ago · link · parent

It is superior because you don't need to assign your dataframe to a variable ('df'), then update that variable or create a new one everytime you need to do that operation. Which means it is both safer (you're guaranteed to filter on the current version of the dataframe) and more concise.

For the rest of your comment: it's the best you can do in python. Sure you could write SQL, but then you're mixing text queries with python data manipulation and I would dread that. And SQL-only scripting is really out of question.

comment 2y ago · link · parent

> Yes, every time I write df[df.sth = val], a tiny part of me dies.

That's because it's a bad way to use Pandas, even though it is the most popular and often times recommended way. But the thing is, you can just write "safe" immutable Pandas code with method chaining and lambda expressions, resulting in very Polars-like code. For example:

  df = (
    pd
    .read_csv("./file.csv")
    .rename(columns={"value":"x"})
    .assign(y=lambda d: d["x"] * 2)
    .loc[lambda d: d["y"] > 0.5]
  )
Plus nowadays with the latest Pandas versions supporting Arrow datatypes, Polars performance improvements over Pandas are considerably less impressive.

Column-level name checking would be awesome, but unfortunately no python library supports that, and it will likely never be possible unless some big changes are made in the Python type hint system.

comment 2y ago · link · parent

Smaller creators are also doing it for money, and Green Day and Brain are also doing this out of funny memery.

comment 2y ago · link · parent

When using Pandas appropriately, that is with method chaining, lambda expressions (instead of intermediate assignments) and pyarrow datatypes, you also get much faster speed and null values handling.
1234