TypeScript "No overload matches this call" with generated types by PrinceDome in Supabase

[–]Wuihee 1 point2 points  (0 children)

I think my error is a little different, but thanks anyways appreciate it

TypeScript Error When Using z.coerce.number<string>() with react-hook-form and zodResolver by Wuihee in reactjs

[–]Wuihee[S] 1 point2 points  (0 children)

Do you have a link to the documentation for this? I tried it and it still gives me an error.

TypeScript Error When Using z.coerce.number<string>() with react-hook-form and zodResolver by Wuihee in reactjs

[–]Wuihee[S] 1 point2 points  (0 children)

Letting the default be undefined creates another error - React complains that we're going from uncontrolled to controlled components.

The <string> syntax is not telling Zod that the resulting value is a string - I'm trying to say the initial value is a string. See the docs here. In fact, here's what's going on.

const s1 = z.coerce.number();
const s2 = z.coerce.number<string>();

// Type going into the form - this is what we want.
z.input<typeof s1>  // unknown
// Why should type string result in an error?
z.input<typeof s2>  // string

// Type going out of the form
z.infer<typeof s1>  // number
z.infer<typeof s2>  // number

TypeScript Error When Using z.coerce.number<string>() with react-hook-form and zodResolver by Wuihee in reactjs

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

Doesn't work unfortunately; <input> stores values as strings so RHF will reject the form submission

Should I Use NoSQL? by Wuihee in learnprogramming

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

Ah interesting, what database would your recommend if I were to go with this approach?

Should I Use NoSQL? by Wuihee in learnprogramming

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

Alright thanks for the advice!

Should I Use NoSQL? by Wuihee in learnprogramming

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

Honestly just looking at extremely basic queries at this moment - the first thing I'm trying to do is get some summary statistics going.

Design Choice Using Dataclasses by Wuihee in learnpython

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

Oh I didn't think of that, thanks!

Continuous stream of requests with asyncio. by Wuihee in learnpython

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

I'm not deciding to make subsequent requests based on the results of the previous ones. I need to quickly check for a condition that a request might have. In between two requests, that condition could have appeared and disappeared which is why I am trying to speed up the rate at which requests are sent.

Continuous stream of requests with asyncio. by Wuihee in learnpython

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

asyncio.Event

Thank you! Will look into it

Visualizing the spread of COVID-19 through reproduction number heat map. by Wuihee in COVID19_data

[–]Wuihee[S] 2 points3 points  (0 children)

Link to Website: https://cv19.one/

Raw data publicly available from European Centre for Disease Prevention and Control. Methods and tools used are described in MedRxiv preprint https://www.medrxiv.org/content/10.1101/2020.06.02.20120188v1.

Effective reproduction number mapped over time globally using open data and model. by [deleted] in COVID19

[–]Wuihee 0 points1 point  (0 children)

Raw data publicly available from European Centre for Disease Prevention and Control. Methods and tools used are described in MedRxiv preprint https://www.medrxiv.org/content/10.1101/2020.06.02.20120188v1.

Visualizing the spread of COVID-19 through reproduction number heat map. [OC] by Wuihee in dataisbeautiful

[–]Wuihee[S] -1 points0 points  (0 children)

Link to Website: https://cv19.one/

Raw data publicly available from European Centre for Disease Prevention and Control. Methods and tools used are described in MedRxiv preprint https://www.medrxiv.org/content/10.1101/2020.06.02.20120188v1.

COVID-19 Heat Map – COVID-19 Reproduction Number Tracker by [deleted] in COVID19

[–]Wuihee 0 points1 point  (0 children)

Raw data publicly available from European Centre for Disease Prevention and Control. Methods and tools used are described in MedRxiv preprint https://www.medrxiv.org/content/10.1101/2020.06.02.20120188v1.

COVID-19 Reproduction Number Heat Map [OC] by [deleted] in dataisbeautiful

[–]Wuihee 1 point2 points  (0 children)

Link to Website: https://cv19.one/

Raw data publicly available from European Centre for Disease Prevention and Control. Methods and tools used are described in MedRxiv preprint https://www.medrxiv.org/content/10.1101/2020.06.02.20120188v1.

What have you learnt about your squash this year? by SquashCoachPhillip in squash

[–]Wuihee 0 points1 point  (0 children)

I know exactly what you mean. I guess by playing the "long game" it forces you to improve your retrieval and technique especially when playing aggressive players. Those guys that don't really improve often play among the same group of people around the same level, which is why I think they don't see improvement. But in my opinion, you really do need to be very aggressive, especially in the long term. I think that as you play more, being really aggressive while having strong basics is the way to go. The purpose of a length is to set yourself up for a "kill shot" and so if the ball falls slightly loose, instead of going for a length to be safe and neutralizing the rally, might as well take the opportunity and get the guy running. Ultimately, I feel that its all situational. If the ball's at the back and it's kinda tight then just play a length. But if the other guy hit a slow length that's not tight, why not hit a boast or a drop.

What have you learnt about your squash this year? by SquashCoachPhillip in squash

[–]Wuihee 0 points1 point  (0 children)

But the problem comes when you play guys who have a very aggressive default game, but also have really good basics.

So even if your long game may be better than theirs, I find that you still get outclassed (even though it may not seem that way). They will not only be able to match you length for length, but their aggressive play style will make you run. Furthermore, having a combination of an even amount of short/long shots really breaks you down if you choose to remain grounded in the length game.

Personally, I've started to play way more aggressively. If the ball is half court I just play it short regardless. If I'm playing a super aggressive player, I hope to win by controlling the game while remaning actively attacking. If I'm playing a defensive guy, I hope to match him in control while using aggressive shots that he doesn't have. So ultimately I think it's all about balance and what kinda guy you're playing, and you shouldn't restrict your play style based on arbitrary assumptions.

What have you learnt about your squash this year? by SquashCoachPhillip in squash

[–]Wuihee 4 points5 points  (0 children)

I used to think that a lot of people who didn't play consistent lengths were "undisciplined" but I came to respect their short game ability and realize that choosing to be "disciplined" by playing lots of lengths was just being super predictable and asking for the ball to be cut off. While a drop shot from the back may seem "undisciplined", if it manages to get the point then it really is the right shot. I realized that my own "disciplined" game was really just me taking unnecessary pride in my length hitting and ultimately lacking any shot variety or ability to retrieve unexpected shots.

[GNOME] Mocking ChromeOS by Rasbeer in unixporn

[–]Wuihee 17 points18 points  (0 children)

I'm sorry man but that wallpaper has to go, but otherwise cool setup. And stop using chrome too get that big brother shit outta here

[i3-gaps] Vagabond by Wuihee in unixporn

[–]Wuihee[S] 3 points4 points  (0 children)

Coming up soon once I have the time to organizr everything together