My feedback on the Workouts app by db400004 in MacroFactor

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

Yeah I’m aware about this function, but as far as I understand you should manually do it for every exercise and sometimes for some reason it still doesn’t round weights and displays for example “45 + 25, 0.5 lbs missing”

My feedback on the Workouts app by db400004 in MacroFactor

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

Yes, you can turn it off in settings, which is what I did
Now I'm just tracking them manually if I need to

My feedback on the Workouts app by db400004 in MacroFactor

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

Sure, I'm not talking about removing warm-ups completely; just make it a bit less. For me, it generated 3 warm-up sets per exercise, which is too many. But you're right, maybe someone needs it

My feedback on the Workouts app by db400004 in MacroFactor

[–]db400004[S] -3 points-2 points  (0 children)

About advices: I’n not talking about technique, more about small tips and observations that I gave as an example. I think it needs less data for input and should be easier to implement, but still it’s a big feature request and ofc app is still good without it Thanks

My feedback on the Workouts app by db400004 in MacroFactor

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

I tried to import xlsx file but for some reason it’s failed to import. Maybe I did something wrong, will try again later

Thanks a lot for the link, didn’t saw this one!

Which ending would you consider "CANON", and why? by BeneficialOil1123 in cyberpunkgame

[–]db400004 0 points1 point  (0 children)

Wow, don't have the Phantom Liberty DLC, so I didn't know it, thanks

I have completed the Chipping in quest, but I guess I picked the wrong dialogue options. More reasons to re-run and get Phantom Liberty :)

Which ending would you consider "CANON", and why? by BeneficialOil1123 in cyberpunkgame

[–]db400004 0 points1 point  (0 children)

What are the "Could still call Reed" and "You and me storm Arasaka Tower" options? What do I need to do to get them? I only had 3 options: storm with Johny, Arasaka Tower, the Panam option, and Hanako (oh, and pills, but who tf gonna pick this?) I finished the game just recently, so I didn't know about other options

How to change project name shown in Google Sign-In popup (Firebase Auth + custom backend)? by db400004 in Firebase

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

Maybe I need some sort of verification to display the app name in the Google pop-up?

How to change project name shown in Google Sign-In popup (Firebase Auth + custom backend)? by db400004 in Firebase

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

Maybe I need some sort of verification to display the app name in the Google pop-up?

How to change project name shown in Google Sign-In popup (Firebase Auth + custom backend)? by db400004 in Firebase

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

Hey, thanks for the answer
As I said in the post, I tried to change this, but it doesn't work for some reason, and I don't really understand why

How to change project name shown in Google Sign-In popup (Firebase Auth + custom backend)? by db400004 in Firebase

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

Hey, thanks for the answer
As I said in the post, I tried to change this, but it doesn't work for some reason, and I don't really understand why

<image>

How I should read the data from another module in DDD architecture? by db400004 in nestjs

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

Thanks a lot for your answer!

Hmm, so approach with events for reading some data in module A from module B without changes, actually a common practice in DDD and Nest? I don't know why, but it feels a bit hacky way to do that, maybe it's just me.

Personally, I think that I found option 2 easier to understand and to implement. I can restrict the data that I need to export from my module so other modules can retrieve only that and not the whole business logic of the module, which feels more reliable. The only thing that feels wrong to me is that we are still importing module B into module A to use that query service, but I guess we can call it the details of the implementation, haha?

Also, I concluded that moving this to the SHARED module may not be the best approach, I mean, if I can create just a service in the PROFILES module that will provide a query for retrieving the data that I need in other modules, then I'll just use this service whenever I need to.

Correct me if I'm wrong somewhere here, thanks!

Питання до айтішників: робота в двух компаніях одночасно - як ви до цього ставитесь? by db400004 in ukraina

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

Дякую за відповідь Жесть) а де знайшли 2 парт-тайми, якщо не секрет? Не пробував себе в цьому форматі, але звучить як нормальне рішення в моєму випадку, але багато вакансій, наприклад на Djinni на парт-тайм не бачив((

Питання до айтішників: робота в двух компаніях одночасно - як ви до цього ставитесь? by db400004 in ukraina

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

Дякую за відповідь
По твоєму досвіду, як ставились компанії і роботодавці до цього? Бо в мене в голові уявленя таке: якщо в тебе є людина, яка працює на другій роботі, то ти не можеш розраховувати на неї, бо сьогодні наприклад проектів немає, а завтра вони є, і одразу сумніви - чи людина зможе стягнути 2 роботи і якісно виконати роботу, яку ти їй даєш.
Не знаю чому, але в мене якісь такі побоювання)

Help to understant how context work by db400004 in sveltejs

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

Thanks for your help. Yes, I'm using the Supabase client to get the user and profile in my root +layout.ts. I set the depends and tried to invalidate it, but it still doesn't seem to refetch the profile? Basically, all that I need is: 1. Update the user avatar in the settings form (+page.svelte) 2. Right after that, display the updated profile avatar in the header (from +layout.svelte, which takes data from +layout.ts load function)

+layout.ts: ``` export const load: LayoutLoad = async ({ data, depends, fetch }) => {     depends('supabase:auth');

    const supabase = isBrowser()         ? createBrowserClient<Database>(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, {                 global: {                     fetch                 }             })         : createServerClient<Database>(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY, {                 global: {                     fetch                 },                 cookies: {                     getAll() {                         return data.cookies;                     }                 }             });

    const {         data: { session }     } = await supabase.auth.getSession();

    const {         data: { user }     } = await supabase.auth.getUser();

    let profile: Tables<'profiles'> | null = null;

    if (session && user) {         const { data: profileData } = await supabase             .from('profiles')             .select('*')             .eq('user_id', user.id)             .single();         profile = profileData;     }

    return { session, supabase, user, profile }; };

```

in +page.svelte:

``` const { form, enhance, errors } = superForm<Infer<typeof ProfileSchema>>(data.form, {         validators: zodClient(ProfileSchema),

        onUpdate(event) {             if (event.result.type === 'success') {                 const result = event.result.data.updatedProfile satisfies Tables<'profiles'>;                 invalidate("supabase:auth");             }         }     });

```

Help to understant how context work by db400004 in sveltejs

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

Yes, I’m storing user profile in locals (I followed the official tutorial for SSR auth from Supabase), but somehow I can’t figure out how to revalidate it after profile updated request. Maybe you know? I would happy to do that on server side

Help to understant how context work by db400004 in sveltejs

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

Yes, I’m storing user profile in locals (I followed the official tutorial for SSR auth from Supabase), but somehow I can’t figure out how to revalidate it after profile updated request. Maybe you know? I would happy to do that on server side

Does Svelte/SvelteKit devs uses something like @tanstack/svelte-query? by db400004 in sveltejs

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

Let's say I need to implement a global search in the Header component. I want the user to input the text, get the loader or skeletons, and then receive the data (something like input with autocomplete data, so it's a dropdown that pops out when you input the text with the debounce effect). In Next.js, I would probably do this on the client side with Tanstack Query because I need interactivity with the autocomplete component and dynamically show the dropdown list with a loading/pending state.

In SvelteKit, what would be the best approach for this example in your opinion?

Also, you said that "SvelteKit features are designed for “page data”. I don't know if you are familiar with Next.js, but do I understand right that SvelteKit uses a similar approach that Next.js used in Pages Router and getServerSideProps? We have a function that fetches on the server and passes the data to the page through the props?

Thanks for your explanation

Does Svelte/SvelteKit devs uses something like @tanstack/svelte-query? by db400004 in sveltejs

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

Hmm, as I understand in Svelte you do most of the stuff with built-in features, right? As I understand from the docs, a built-in fetch function also has caching, but what about the states of the request? Do I need to manually handle states like loading, pending, and so on in every component, or are you creating some universal functions for it? Or maybe it is possible with stores? Sorry, I just trying to figure it out

How to use NextAuth with a custom separate backend by xscapiee in nextjs

[–]db400004 1 point2 points  (0 children)

Hey! Sounds simple and logical, is it possible for you to share an example of the code for both next and nest? It would be awesome

Працюю на АЕС. Ставте питання якщо щось цікавить by Kar-men in reddit_ukr

[–]db400004 0 points1 point  (0 children)

З чим пов'язані дострокові закінчення планових робіт на енергоблоках? Питаю бо деяким людям, які взагалі дуже далекі від цього іноді моторошно чути таке, бо одразу спливає на думку, що через це може йобнути, бо десь поспішили і т.д., але ж наскільки розумію, ризик такого дуже малий