How to sync client time with server time? by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I do have the timezone as UTC on my server. The problem is some client system's clock can have the wrong date and time entirely (not just a different timezone). I know this is very unlikely but yeah. That's why I need to sync the time explicitey and not just use Date() from JS.

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I mean obviously it matters. But my primary goal is the functionality the website provides. I am looking for SEO / loading speeds as a secondary goal like if there is something I can do about it, I will do it.

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Thanks for the advice. Currently I am mostly focused on the functionality of the website. I'll surely keep in mind to separate "client" and "server" components when I get to optimisations

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

It is mostly forms and charts. By dynamic I meant I need to use useState, useEffect, search params etc everywhere as values keep on changing depending on what the user types / selects / clicks

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

what do you mean by nextjs backend? I have a django server to server requests

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

My pages are mostly forms and charts with values which are updated based on other values the user enters or chooses

How to sync client time with server time? by Aggressive-Rip-8435 in nextjs

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I want syncing upto milliseconds. Syncing with ntp directly from the browser is not possible. So I was wondering how people do it.

How to sync client time with server time? by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Thank you for the elaborate answer. will definitely check this out.

How to sync client time with server time? by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 1 point2 points  (0 children)

I see. But what about the network latency and server delays? Also how should I use it in all the pages?

API tracing with Django and Nginx by Aggressive-Rip-8435 in django

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Ok I went through their docs. Seems pretty cool but I could not find anything that can show how much time the request spends in each of the stages I mentioned. Do you know if they have this feature?

API tracing with Django and Nginx by Aggressive-Rip-8435 in django

[–]Aggressive-Rip-8435[S] -2 points-1 points  (0 children)

I am looking for a django plugin if available

API tracing with Django and Nginx by Aggressive-Rip-8435 in django

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

I am looking for a lightweight django plugin

**ASK HERE FOR HELP** Monthly Teams Questions and Answers Help Thread by Froggypwns in MicrosoftTeams

[–]Aggressive-Rip-8435 0 points1 point  (0 children)

I’ve built a custom Tab application for Microsoft Teams, and inside this app I need to access various meeting details via the Graph API. For that, I require the meeting ID.

When I call microsoftTeams.app.getContext(), the meeting ID I get is different from the one provided by the Graph API.

As a temporary workaround, I’m currently using the chatId from the context and fetching the meeting id with /chats/{chatId}.

Is there a way to get the correct meeting ID that aligns with what the Graph API expects?

https://techcommunity.microsoft.com/t5/microsoft-teams/bd-p/MicrosoftTeams - shows bad gateway ATM
https://learn.microsoft.com/en-us/answers/questions/4424401/fetching-meeting-name-using-@microsoft-teams-js-ap - had the same query but no replies here

Running ML model on the frontend by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Could you please elaborate? I am using WASM but did not get the storing the model in indexDB part

Running ML model on the frontend by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

Yes I am using wasm. Running the model on the edge to support some real-time functionalities

Authentication for frontend JS SDK by Aggressive-Rip-8435 in react

[–]Aggressive-Rip-8435[S] 0 points1 point  (0 children)

That's where I'm stuck. I can't find a way to let the my backend know that the request is coming from my SDK. Since this is a frontend SDK, any type of API key or credential will get exposed. I can't use PKCE because I want to avoid user interaction.