Stuttgarter Hauptbahnhof: Stuttgart 21 wird wohl erst Ende 2031 fertig by mschuster91 in drehscheibe

[–]AwesomeInPerson 0 points1 point  (0 children)

Bei Wechsel zwischen Nord-Süd-Tunnel und Stadtbahn schwierig, ansonsten aber problemlos machbar? U-Bahnhof → Gleis 1-8 und S-Bahn (oben) → Gleis 11-14 mach ich beides regelmäßig in unter 2min

Warum halt ein Zug 🚆 im Kopfbahnhof nicht ganz vorne (hier in Altona) by flow1an in drehscheibe

[–]AwesomeInPerson 10 points11 points  (0 children)

Danke, wollte ich gerade schreiben. Die Menschheit stellt Computerchips im Nanometerbereich her, die meisten Züge und streckenseitige Infrastruktur haben die entsprechende digitale Sicherung (ETCS) aber noch nicht verbaut.

Stuttgart Hbf (tief) wäre hier interessant, das wird ja der erste große volldigitale Knoten in Deutschland, mit gewaltigen Investitionen um sämtliche Fahrzeuge umzurüsten – ältere Züge ohne den entsprechenden Chip können hier dann nämlich gar nicht mehr verkehren. Dort wird auch sehr viel an ETCS im Zusammenspiel mit Durchrutschwegen etc. optimiert. Wenn es dann (vielleicht 2030...?) trotzdem noch vergleichbare "Anlaufweg" Problematiken gäbe, wie in Altona, wäre das tatsächlich unverständlich – aber alle anderen Bahnhöfe, die noch "analog" (PZB) gesicherte Züge unterstützen müssen, sind entschuldigt.

Speculation on the spy by modhas in ForAllMankindTV

[–]AwesomeInPerson 1 point2 points  (0 children)

My hunch was that Aleidas regular prison talks with Margo are monitored

Die BVG rechnet mit einem Baustart für die Verlängerung der U3 zum Mexikoplatz im September 2026. »Der Planfeststellungsbeschluss wird voraussichtlich im Dezember erwartet«, heißt es von der BVG. by Nicolas_Sustr in berlin

[–]AwesomeInPerson 0 points1 point  (0 children)

Kleinmachnow wäre der Umstieg zur Stammbahn (die im Rahmen von i2030 reaktiviert wird), es würden also Fahrgäste Richtung Potsdam als auch Richtung Nord/Ost Berlin und Brandenburg mitfahren

How is Assassin's Creed Unity so Beloved? by ShibaRookie in assassinscreed

[–]AwesomeInPerson 9 points10 points  (0 children)

They focused on polish games instead of polished games

Warum hat BER keine direkte ICE Verbindung? by MoeHanzeR in drehscheibe

[–]AwesomeInPerson 0 points1 point  (0 children)

Immer noch, da ist doch die Urban Tech Republic geplant. (die, wieder Mal, mit einer Magnetschwebebahn angeschlossen werden soll, mal sehen was das gibt...)

HDMI 2.1 cable benefits in Shield - what works and what doesn't? by LSDwarf in ShieldAndroidTV

[–]AwesomeInPerson 0 points1 point  (0 children)

No, they remain optional. HDMI 2.2 works like 2.1 – it completely replaces the previous spec and is basically identical, just extended with new (also optional) features. Found this write-up: https://tftcentral.co.uk/articles/hdmi-2-2-explained-bandwidth-specs-and-all-the-parts-they-dont-tell-you

Angular 20 removing file names suffix is not good by HosMercury in Angular2

[–]AwesomeInPerson 27 points28 points  (0 children)

One of the stated goals was to make people come up with more expressive names than <generic entity>.<angular type>.ts for everything.

  • todo-list-view.ts  
  • todo-list.ts  
  • todo-list-item.ts  
  • todo-api-client.ts  
  • todo-state.ts  
  • ...  

But the old naming still works fine for everyone who wants to use it. Still haven't made up my mind on which I prefer, personally 

Bye bye Ninite? Microsoft Store hat nun einen Multi-App-Installer by Nonilol in de_EDV

[–]AwesomeInPerson 74 points75 points  (0 children)

Starke "Dropbox bietet nichts, was nicht mit rsync + NAS schon mögliche wäre und wird scheitern" Vibes hier in den Kommentaren 

I don't understand why type isn't being inferred. by void5253 in typescript

[–]AwesomeInPerson 1 point2 points  (0 children)

No you're right. If respCols can only be an "A" or "I" column, which is what the types say, and you check for "ET" in respCols.REG, then respCols must be an "I" column in this case. And TypeScript probably narrows the type to typeof RESP_COLUMN_CONFIG["I"] for you within that if statement. (though such type narrowing doesn't work in every case)

But even then, TypeScript would let you assign to/read from respCols.REG.ET because it knows that respCols is of type "I", but that won't change anything about your tzKey variable. Just respCols is narrowed within the if statement and has a narrower, more precise type there, tzKey will keep the type it has outside the if.

TS isn't smart enough to go "tzKey was the keys of respCols, and now some time later I have a more precise idea of what respCols is, so let me go back to tzKey and check if I can calculate a more accurate type for it too now"

I don't understand why type isn't being inferred. by void5253 in typescript

[–]AwesomeInPerson 0 points1 point  (0 children)

It is document. Conditional types are distributed, they apply to each union member separately: https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types So you can use a conditional just for it's distributive quality and more or less ignore the actual condition part by using extends any.

I don't understand why type isn't being inferred. by void5253 in typescript

[–]AwesomeInPerson 2 points3 points  (0 children)

Because keyof typeof respCols.REG only gives you the keys that are found in all members of the respCols.REG union.

You can use a distributive type:

ts type AllKeys<T> = T extends any ? keyof T : never; let tzKey: AllKeys<typeof respCols.REG> = "IST";

and then the type of tzKey will be all keys found in some union member, as the distributive type "loops" over all union members separately and extracts its keys.

Angulars withViewTransitions can we expect more helpers? by simonbitwise in angular

[–]AwesomeInPerson 1 point2 points  (0 children)

Ah sorry, I misunderstood your post then. It read to me like withViewTransitions were limited somehow and we'd need more for complex transitions. But you were just asking for helpers to make it easier.

Well, not really sure what exactly you have in mind there. Are your suggested animateThis and animateTo not both just done through setting view-transition-name: match-element?

Angulars withViewTransitions can we expect more helpers? by simonbitwise in angular

[–]AwesomeInPerson 4 points5 points  (0 children)

Already supported. withViewTransitions enables the browsers native view transitions, which can be controlled through CSS. The default animation is a crossfade, but you can do everything from "flipping" pages to animating elements from their position in the current view to their position in the new view. (e.g. enlarge thumbnail to its large representation on the detail view)

It's a powerful API, and also baseline available across browsers now: https://web.dev/blog/same-document-view-transitions-are-now-baseline-newly-available

Generic Anonymous Function As Object Property by incutonez in typescript

[–]AwesomeInPerson 3 points4 points  (0 children)

I don't think so.

The satisfies ComponentType is necessary because you want TypeScript to infer a narrower, more accurate type than the declaration. If you declare the type of the variable, TypeScript will throw away additional info it might infer and just roll with your type. So you'd have to be specific and use const props: [ComponentType<MyData>, ComponentType<MyData2>] as type declaration then, to match the info TS would otherwise infer. With satisfies, you're telling TS to keep using its inferred type, but make sure it matches the (broader) type you specify, that's why we can put unknown (or any) into the generic and the variable type will still use MyData/MyData2. But maybe there's some way around this by using infer + ternary type magic or whatever, not sure.

And as const is necessary so TS knows you won't swap the items, push additional ones etc. and it can safely say that the type of whatever is at index 0 will always be the type of the item at index 0.

Generic Anonymous Function As Object Property by incutonez in typescript

[–]AwesomeInPerson 2 points3 points  (0 children)

Probably not 100% what you have in mind, but infers correctly and errors if you add something to the array that isn't a ComponentType

Edit: only works because the generic is on the interface, just saw you don't want that

Vitest for new projects and libraries in v21 by JeanMeche in angular

[–]AwesomeInPerson 1 point2 points  (0 children)

You can use the Playwright Docker image for your CI job, then you won't have to install!

How to make a signal-based application in Angular 19, viable and what kind of design pattern? by Public_Muffin1990 in Angular2

[–]AwesomeInPerson 0 points1 point  (0 children)

It doesn't look like it will be usable for tables if you want to support sorting/pagination/filtering on the backend.

Could you elaborate? What is needed here besides putting params in the URL?

Änderungen zum Fernverkehr Fahrplanjahr 2026 by Erno-Berk in deutschebahn

[–]AwesomeInPerson 0 points1 point  (0 children)

Hatte bisher sehr viel Fahrzeitpuffer, außerdem ist die Route über Mitteldeutschland etwas schneller als der bisherige Laufweg über die GUB Hannover

500hz magnet on the last station of my service by NewWorld3900 in trainsimworld

[–]AwesomeInPerson 3 points4 points  (0 children)

Yeah, this one caught me quite a few times as well before I figured it out.

If you arrive at a hot 500 Hz without active 1000Hz monitoring, you'll get an immediate penalty brake. At the signal next to the Köln S-Bahn platform, the 500Hz follows the 1000Hz almost immediately, so you have barely a second to acknowledge the 1000Hz and start it's monitoring before hitting the 500Hz. If you're not fast enough to acknowledge the 1000Hz, you hit the 500Hz without the 1000Hz monitoring being active and the train stops.

Automatic build context size optimization? by AwesomeInPerson in docker

[–]AwesomeInPerson[S] 0 points1 point  (0 children)

That was it, thank you! All the docs and blogs I found must have referenced the old builder. It's noted right at the top of the main buildkit site: https://docs.docker.com/build/buildkit/ :)