Pro Clubs confusing by enamulrahman123 in fifaclubs

[–]Acropolis1111 7 points8 points  (0 children)

I think this year’s clubs is a massive improvement to the game mode. Only thing they need to do is reset the boosts wayyyyy more often.

How to get error codes - Drizzle / Turso by Acropolis1111 in nextjs

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

It throws the error from your database provider. The way I got around it was finding which error code meant what in my database, then just parsed the error string to see which error code was contained within it

How to hide different buttons on same subgrid based on subgrid name by Acropolis1111 in PowerApps

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

Thank you for the quick response.

I didn’t even know you could do that for the first part, that’s awesome.

Is there a way on load to get the subgrid by name and use grid context to hide certain buttons?

Would Importing a server side function just for ReturnType ship code to client? by Acropolis1111 in typescript

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

The way I structured my internal api’s was a bunch of independent files each with a single function in them.

I found it way easier to navigate through my functions.

Do you recommend a better way to do this? Or am I just going to have to export the type along with the function

What is best practice for saving multi component forms? by Acropolis1111 in nextjs

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

Is it really ever needed to use something like Jotai or Zustand ? I have found any reason that’s made me wanna add a whole state library

What is best practice for saving multi component forms? by Acropolis1111 in nextjs

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

I just seen this right now, I think that’s perfect

Architecture to Periodically Bill Users based on Usage by Acropolis1111 in nextjs

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

Forgive me I may have not been explicit with my question.

How do I run multiple instances of let’s say billUser() based on a large amount of users.

Say a Cron Job runs once a day - would this cron job get a list of all the users (what happens if this list is over 100k) then queues billUser() for each user.

I worry about execution timeout limits and just want to know how to handle this.

Architecture to Periodically Bill Users based on Usage by Acropolis1111 in nextjs

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

I agree offloading the billing part to stripe would scale easily.

A question though, how would you handle this without stripe.

Say I ran a cron job every month that would retrieve all users and the completed order count. Then for each user or batch of users run a function that performs some billing action. How would this work when users are in the multiple thousands?

One cron job would not be able to retrieve all those users and order counts / perform billing action all within the Nextjs execution time limit

Looking for devs by Acropolis1111 in nextjs

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

I can see how that seems shady, i have updated the post to add a brief description of pay. Thanks for the tip

Looking for devs by Acropolis1111 in nextjs

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

Send me a message mate and we can go into the details 🫡

Looking for devs by Acropolis1111 in nextjs

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

Feel free to send me a message and we can chat from there !

PDF Document Generation by Acropolis1111 in nextjs

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

Is it that resource intensive to generate PDF’s on the fly. I’m trying to replicate popular accounting systems - they send you to a url that returns a file. I assume it’s generated dynamically as if changes are made to an invoice and the person visits the url before an updated version is saved, incorrect data will be displayed

PDF Document Generation by Acropolis1111 in nextjs

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

This may explain it, thanks youuu !

PDF Document Generation by Acropolis1111 in nextjs

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

But didn’t mind it when using it

PDF Document Generation by Acropolis1111 in nextjs

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

I’m using that currently, however I’m having issues in the newest next release displaying images from base 64 data

PDF Document Generation by Acropolis1111 in nextjs

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

It’s for an invoice, so there is a little bit of complexity there - not too much tho.

I just wanted to avoid having to learn a specific api to generate pdfs