Is there any way for a child component to infer the type of a parent?

Just say I have a parent and a child

<Parent data={someObject}>
<Child name={someString} />
</Parent>

Where the Parent component sets up a provider based on the type of the data prop I would like to put a constraint on the name prop of the child component where is is to be a key of the type of the data prop passed into the parent.

reddit.com
u/MrFartyBottom — 3 days ago

Where do I start?

I am a dev with over 20 years of experience and have been an AI stand off so far but now realise I am becoming unemployable as every contract now wants AI first devs. So I am starting to try and learn the agenting path but find it hard to know where to start.

So far I have a gaming PC with a 5070 ti that I run LM Studio on and the access that from my Macbook Air in VSCode. I am not very impressed with the results. It is absolutely fantastic for general algorithms and boilerplate stuff but a bit of a joke for following established patterns in my codebase, will pull in extra libraries that do the same things as other libraries already being used and just generally random.

Every article I read gives different advise and it is moving so fast it seems an article that is a month old is already out of date.

Where is the best place to start? Any sites with up to date articles on harnesses, loops, agents files ect? I have always been very good at learning new tech and pick things up quickly but finding this a bit over whelming.

reddit.com
u/MrFartyBottom — 2 months ago

Is there any way to hit the delete key from my joypad?

When playing AmigaVision in the Minimig core, hitting del on the keyboard exits the game, saving and returning to the menu. I don't usually have a keyboard plugged in so the only way to start another game from the couch is to reboot from the menu but some games you need to save such as Stunt Car Racer.

reddit.com
u/MrFartyBottom — 2 months ago
▲ 2 r/Ebay

"No more seller fees"

Ebay keep touting how they no longer charge seller fees but now the fee has been pushed to the buyer for Ebay protection fees. What a joke, it is still the buyer pays a higher price than you get for your item. My biggest concern is now the insured value of the package is your price, no longer the buyer's price.

I just sold a laptop for $1,500 Australian dollars and bought an Australia Post label through Ebay. I noticed the insured value is for $1,500 even though the buyer paid $1,570.70 where the insured value of the item used to be the price the buyer paid.

reddit.com
u/MrFartyBottom — 2 months ago

The V8 comes way too late in the game to be relevant

My first playthrough I had completed most of the map by the time I unlocked the V8 and there really wasn't much left to do once I had it.

I have just completed my second playthrough and started with the mindset I will focus on going for the V8 as fast as possible this time. Didn't really work out that way as I find it hard to not stop and loot on the way to an objective, I think may as well get that scavenger point, scarecrow, balloon, convoy or outpost on the way if I see it while travelling to an objective.

Now I have just killed Scrotus and looking at a giant map of scavenger points, minefields, outposts and thinking I just can't be bothered again.

The V8 should come much sooner in a standard playthrough.

reddit.com
u/MrFartyBottom — 2 months ago

This is not OK!

Every time I go to the Valley store in Brisbane the tables are discusting, they are never wiped down and I mean never. Plenty of times I have seen some teenaged git on their phone while the tables get neglected. Not once have I been there and seen the tables in an acceptable manner but this morning was next level discusting. Bird shit on the tables and trash every where.

I think this warrants two fines, one from the council for lack of cleaning up rubbish and one from the health department for food code violations of old food and bird shit on tables.

I walked past about and hour later and nothing had been done about it. 3 people inside with no customers and nobody even contemplates making the dining area acceptable.

u/MrFartyBottom — 2 months ago

Router param changes between 16 and 22

I have just gone through an upgrade from Angular 16 to 22 and had an issue with router params. I have a route for job groups with an id for the job group that has child routes for a job so you can edit or add jobs to the group. In Angular 16 I used a route 'job/add' with no params for the add screen and 'job/:id' for editing both pointing to the job component.

When I upgraded to Angular 22 it stopped working as the job component get a param for id on the add route as the id from the job group rather than a null param. To solve it I deleted the add route and used the string 'add' as a param to distinguish between edit and and.

My question is pulling in a parent param for the id expected behaviour?

reddit.com
u/MrFartyBottom — 2 months ago

If your DVD drive doesn't open then loosen the screws on the bottom of the dock.

My DVD drive wouldn't open, just made some clicking noises. I decided to take it apart and as soon as I loosened the screws holding the dock to the main console the drive popped open.

reddit.com
u/MrFartyBottom — 4 months ago

PSA: If your tracking link from RetroRemake shows no data try putting the tracking number into https://www.17track.net/en

No idea why the tracking link RetroRemake sent me still shows no data. The package was delivered to me via Australia Post and for weeks I was checking the tracking link in the email from RetroRemake thinking the package hadn't been sent yet. Someone suggested I try 17Track with the tracking number and bam, there is the tracking history for my package. This has happened for all my friends in Australia that got a tracking link from RetroRemake.

u/MrFartyBottom — 4 months ago

What is the point of the 4PX tracking link?

I got a 4PX tracking link in an email from RetroRemake a while ago and it has always shown no data when I click on it. Today my SuperStation One with dock turns up from Australia Post and the 4PX link still shows as no data. What a pointless tracking system, I was thinking they still hadn't posted it.

reddit.com
u/MrFartyBottom — 4 months ago

Will we be able to watch DVDs with the dock.

We are running a modern Linux operating system with a dual core ARM chip and a DVD drive. Would we be able to play movies with the DVD drive?

reddit.com
u/MrFartyBottom — 5 months ago

Mouse and keyboard not working.

My monitor has a built in USB hub and when I connect either a PC or Mac to it with USB C I get 4K 120hz video, charging with keyboard and mouse. When I plug in my Galaxy S25 ultra I get a desktop screen appear and the phone is charging but the mouse and keyboard don't work. This also happens at work with their docking stations. Mac and PC work fine but my phone only does video and changing but no mouse or keyboard.

reddit.com
u/MrFartyBottom — 5 months ago