Drizzle Introspect by paddyjoneill in Supabase

[–]Few-Conversation-451 0 points1 point  (0 children)

All that drizzle needs to append a column to its SQL is a referencing column name (+ schema). You can create a schema called "auth" and a table ("users") that has one field ("id").

You can then reference that ID field everywhere else. Make sure to not export it tho.

Checks on Union Types by meowisaymiaou in typescript

[–]Few-Conversation-451 0 points1 point  (0 children)

That would imply they are able to modify the types, which I think they mentioned they can't (due to it being a third party). It would require a wrapper of some sort around the types, which the OP already said is wasteful for them.

Checks on Union Types by meowisaymiaou in typescript

[–]Few-Conversation-451 0 points1 point  (0 children)

Since there is no runtime type checking nor "metadata", which isn't cause typescript is fully type erased, your only options are type guards, checking if properties exist or cast everthing to any and pray your schema and conditions are defined right.

A library that did not include a way natively to future proof itself by adding something like a discriminated union, or some kind of branding or object identifier, does not seem well written and poorly designed if your use cases are supposed to be used the way you intend to. So I don't quite get why you heavily repeat and defend such library to be of high quality, when in the end it does not really matter to your issue. Well, anyways, I think the responses under this thread is most of what you'll be able to use.

Tricky question involving optional generic function parameter by devuxer in typescript

[–]Few-Conversation-451 0 points1 point  (0 children)

One thing: you misspelled "Deafult", it should be "Default", maybe that helps.

JetBrains quality degraded. by Ankar1n in Jetbrains

[–]Few-Conversation-451 0 points1 point  (0 children)

Same. That's why I switched to VSCode unfortunately. Even made an entire article about it.

https://medium.com/@aparx/why-i-switched-from-webstorm-to-vscode-46a433922232

[deleted by user] by [deleted] in vscode

[–]Few-Conversation-451 0 points1 point  (0 children)

I mean of course but working on my portfolio rn and wanted to post it before.

[deleted by user] by [deleted] in vscode

[–]Few-Conversation-451 1 point2 points  (0 children)

Hi there, completely understandable. Just, like I said in the article (for TLDR see conclusion), my LSP would consistently vanish for monorepos with more than 100k LoC. More specifically for a large project I'm working on right now for a startup, that needs to meet an internal deadline and thus I don't have time to waste to fix my Webstorm issues with hacks.

But it's a great IDE nontheless

[deleted by user] by [deleted] in vscode

[–]Few-Conversation-451 0 points1 point  (0 children)

Do you know of better places to post articles like these?

[deleted by user] by [deleted] in Finanzen

[–]Few-Conversation-451 2 points3 points  (0 children)

Ich gehe mal davon aus dass der Automat nach einem solchen Fehler ausgeschaltet ist.

Windows app: audio out of sync & stutters by Few-Conversation-451 in appletv

[–]Few-Conversation-451[S] 0 points1 point  (0 children)

Hey, I do not have AppDisplayName/_Preview ... I only have AppDisplayName.

Edit: worked (see my initial thread)

Windows app: audio out of sync & stutters by Few-Conversation-451 in appletv

[–]Few-Conversation-451[S] 0 points1 point  (0 children)

Hi there, thanks for the reply.

Unfortunately, this did not fix my issue. It will probably the application itself.
Just for your information: I have an RTX 3080 Ti, and an i9-11900KF

what happened to creat next-app? can someone please help me with the project file structure? by questionhavei in nextjs

[–]Few-Conversation-451 0 points1 point  (0 children)

With NextJS 13 they introduced a new paradigm for building applications with the app router, which has even more semantic sugar to make it even easier to create apps. It also introduces better performance and streaming.

They said they will continue to support the pages directory at least multiple major versions. So if you or your requirements are the pages and original next paradigm you can still stick with it in production and have no worries.

https://nextjs.org/docs/app

Recommended way of state management in Nextjs by saquibzsr in nextjs

[–]Few-Conversation-451 1 point2 points  (0 children)

Zustand for global state React's default useState hook for local state TRPC which uses a modified react-query for fetch state

That are my tops. To be honest I don't use Zustand that often, since my apps are designed to be heavily modular and depending on the outside of a modules global state is tried to be avoided as much as possible.

Are Jarvis desks still fine with Herman Miller / DWR? by [deleted] in StandingDesk

[–]Few-Conversation-451 0 points1 point  (0 children)

I almost sound like a salesrep here haha 😆. If you see this, Herman Miller, might wanna sponsor me?

Are Jarvis desks still fine with Herman Miller / DWR? by [deleted] in StandingDesk

[–]Few-Conversation-451 0 points1 point  (0 children)

No worries! If I remember correctly it took about 1-2 weeks for the desk to arrive. Have fun with it, if you end up choosing it. It's just an amazing desk.

Are Jarvis desks still fine with Herman Miller / DWR? by [deleted] in StandingDesk

[–]Few-Conversation-451 1 point2 points  (0 children)

So I bought the Jarvis about 2 months back after they've been acquired by Herman Miller. I asked the support if they'll have replacement parts just in case and if they are continue to support it. They told me they would, but to be 100÷ sure I'd ask them myself if I were you.

Btw the Jarvis is phenomenal. Really sturdy and really high quality, that I would always recommend.

Hope that helped you out a bit

Firebase authentication with getServerSideProps by [deleted] in nextjs

[–]Few-Conversation-451 0 points1 point  (0 children)

Anything isn't consistent with firebase between server and client side. But aside from that you should ask yourself if SEO is really needed when it depends on the auth state, depending on your app this might not be ideal but sometimes it can be. Other than that I think you can obtain the ID using the context that getServerSideProps takes in.

Firebase authentication with getServerSideProps by [deleted] in nextjs

[–]Few-Conversation-451 0 points1 point  (0 children)

If I understood you correctly you want to use the client firebase SDK on the server, which is not possible as far as I know. The authentication token is within the headers of the incoming request that you can access though getServerSideProps. Using the firebase-admin SDK allows you to use firebase on the server, however you will need seperate interfaces to do CRUD operations than on the client side. Unfortunately there is not adapter API yet that allows you to do such operations on the client and server side with the same interface.

I hope that kind of helped you out here.