HN user

jorams

4,004 karma

You can reach me at hn at joram dot io

Posts6
Comments820
View on HN

As far as Jellyfin is concerned, your files must include a tag of the form S__E__ somewhere in the filename. Being located in a folder called "Season 2" with names like "11 - name of episode" won't work.

I mean, I've got many like that and yes it does work. `s01/01 - Pilot.mkv` is recognized as season 1, episode 1, etc.

There is meta-programming with annotations:

There is, but your example is not valid. You can't use short function syntax in constant expressions, it has to be an explicit `static function`.

The reason for this, IIRC (I can't find the GitHub issue or PR atm) is that these functions aren't allowed to close over any variables, and with fn syntax doing so is implicit. Rather than erroring they've disallowed the use of arrow functions entirely.

So what happens if we look only at small carts, where the entire order is just 2 or 3 items?

How is this the last thing in the article? The sole example given of a "funny" combination (apples and condoms, weirdly bad example) is only remotely funny because those are the only items.

Every post about programming languages seems to mention Rust. Even C++ articles bring up Rust, and Zig articles bring up Rust.

"Even C++" makes no sense. That's exactly where you'd expect it to be mentioned because Rust is pretty much aiming to be a C++ replacement. Mentions in the context of Zig also make sense, because Zig is aiming to be a C replacement in the same way Rust is aiming for C++, and C/C++ are overlapping areas.

You don't see much mention of Rust in discussions about something like Lua, because those are very distinct.

Some other reasons you might see it mentioned fairly often: Rust solves some issues at compile time that many languages solve at runtime using GC, making lower level programming more approachable for high level programmers and broadening its target audience. It has also had extremely active evangelists all over the place for a very long time, causing not mentioning it to trigger annoying derailment of discussions.

The company seems to be primarily in Germany (Aachen), with headquarters/holding company just across the border in The Netherlands (10km away in Lemiers, right on the border). That region is pretty economically integrated and I believe setups like this are fairly common to make use of the "business climate" of The Netherlands. Think taxes but also less bureaucracy. It looks like at least one of the founders also studied in Maastricht.

There's really only a conflict between A and the rest, and that's because A is a lie. It's not a good thing, if it were they wouldn't have to say B and C.

They can try to do better and be hopeful, but they also fucked up big time. It's not like the public actually believes the lie, so stop telling it.

Yes, that is exactly what a reasonable outcome looks like when the seller doesn't want to increase the price to levels their target customers can't afford. Some people won't be able to buy, but that is because of luck and not privilege.

Sourcehut supports Mercurial, if the email workflow is your cup of tea. There's also Heptapod, which I believe is a fork of GitLab with added Mercurial support. I'm not aware of any Tangled or Radicle-like initiatives supporting it though.

I rent their 20GB VRAM instance GEX44, for which they now ask a 500 euro one-time setup fee

Along with the increase in monthly prices they've dropped setup fees back to more approachable levels, though not as low as they were a year ago. For the GEX44 it was €79 a year ago, now €114. Monthly price was €184 a year ago, now €234.

Hetzner doesn't offer dedicated servers in the US. They operate two of their own data centers in Germany and one in Finland. In the US and Singapore they offer only cloud servers, running on hardware in others' datacenters.

Packages in the AUR have some number of maintainers. When a maintainer no longer wants to maintain the package they can disown it, and when all maintainers do so the package becomes orphaned. An orphaned package can then be adopted by any user.

At any time there's a large number of orphaned packages in the AUR, and the attacker(s) targeted those.

Guess I'll be switching to a new OS this weekend across multiple machines.

This is a bit of an odd response. Arch very explicitly separates the AUR from everything else and doesn't make it easy to work with, because its security model has always been fundamentally broken and requires you to do your own vetting. It exists to facilitate sharing of package recipes between untrusted users. You should treat it like a pastebin.

It's a bit buried, but it does:

In contrast to conventional radial flux motors, the electromagnetic flux in an axial flux motor runs parallel to the axis of rotation. The key components are arranged in a disc‑shaped layout: two rotors sandwich the stator from the left and right. This design enables an especially compact motor architecture, high power and torque density, and new freedoms in drivetrain packaging. In the new Mercedes‑AMG GT 4‑Door Coupe, the motor at the front axle is just under nine centimetres wide; the two motors at the rear axle each measure around eight centimetres in width. The three axial flux motors are integrated per axle into so‑called High Performance Electric Drive Units (HP.EDU), where they are combined with a compact input planetary gearbox in a single housing.

My favorite example of bad Netflix subtitles is Suits (2011). The music during the intro is the same throughout the series, from the song Ima Robot - Greenback Boogie. The English subtitles for the lyrics are wrong every single season, and they're wrong in a different way for every one of those seasons. The lyrics are not at all hard to understand--they've pretty specifically cut together some of the lyrics that are easiest to understand--so it's extremely obvious, but somehow nobody at any point figured out that they could just do it right once and not look totally incompetent.

After the initial Netflix release of the first 3.5 seasons (might have been 4.5, it was a baffling cutoff) they somehow decided not to add the rest, so I pirated it. Every single pirated intro came with perfectly correct lyrics.

No. This is the equivalent of putting "echo 'rm -rf ~'" or similar into a test suite. The output of a test suite is not intended to be piped straight into your shell, and if you decide to do so anyway the consequences are entirely on you.

If your agent executes any random instruction in a piece of text, it behaves like a shell, and you should either fix that or bury it deep in a sandbox.

PHP's Oddities 2 months ago

Something you'll see in real codebases is code that cares whether an input value is "empty", but it doesn't matter if it's null or an empty string. It's very easy to go for this:

    if ($input) {}
It'll work through every test case you try, and then someone enters a 0 into the field and it's also unexpectedly considered empty.

You didn't mention private repos in your comment, but I guess that was implied in the $7 thing.

That said: SourceHut has private repos and access control.

The website uses the feature for its intended purpose. Adding random trash to the query string of another website assuming it'll ignore it is in fact a bad idea, always, even if you can usually get away with it.

The batteries regulation[1] doesn't contain such an exemption. The legal argument that iPhones may be exempt goes like this:

- The batteries regulation is a general regulation and article 11 specifically says the following:

This paragraph shall be without prejudice to any specific provisions ensuring a higher level of protection of the environment and human health relating to the removability and replaceability of portable batteries by end-users laid down in any Union law on electrical and electronic equipment as defined in Article 3(1), point (a), of Directive 2012/19/EU.

- There is a different regulation, the ecodesign regulation for smartphones and tablets[2], that is more specific and therefore might supersede the batteries regulation on this front, which says:

(ii) manufacturers, importers or authorised representatives may provide the battery or batteries referred to in point (i)(a) only to professional repairers if manufacturers, importers or authorised representatives ensure that the following requirements are met:

(a) after 500 full charge cycles the battery has, in a fully charged state, a remaining capacity of at least 83 % of the rated capacity;

(b) the battery endurance in cycles achieves a minimum of 1 000 full charge cycles and after 1 000 full charge cycles the battery has, in a fully charged state, a remaining capacity of at least 80 % of the rated capacity;

(c) the device meets IP67 rating.

[1] https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...

[2] https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...

I am not allowed to replace it on my own as it would invalidate the five year long guarantee provided by the manufacturer. Why is this stuff not considered as well?

They're the ones paying for repairs, so it doesn't seem that unreasonable? That said: If you can prove the car is being maintained according to the manufacturer's specifications they can't require you to go to a brand dealership. That's just not necessarily easy to prove.

facilities were purchased for between 1 million yen and 5 million yen and resold to Chinese buyers for between 40 million yen and as much as 100 million yen depending on location

Those prices seem weird. They were buying entire care homes and hotels for less than the price of a car? I understand they come with obligations, but these businesses were apparently financially ok before the acquisition.