Latest Questions

YUV420p render in OpenGL (converting to rgb in fragment shader)

I’m trying to display YUV420p video using OpenGL. I understand how it is supposed to work (uploading Y, U, and then V buffers in separate textures while p

Node.js node:internal/modules/cjs/loader:936 error while trying to use discord.js

I'm trying to make a discord bot with the command prefix "*" but when I try to get the bot online/run it, it gives me this error: node:internal/modules/cjs/loa

cannot call googleapis library inside html

I've been trying to call a simple function (uploadFile(test.txt)) inside an html but I can not call neither my app.js or googleapis library node.js gives this e

Format users' contacts' phone numbers - Flutter

I am building a chat application that takes a user's phone number with a country code for registration. After registration and permission, I use the contacts_se

Is there a way to set auto refresh the jetpack compose preview?

I just started to use the Jetpack compose toolkit. I added the @Preview and a set showBackground = true, showSystemUi = true as parameters and it works really g

My removeClass doesn't remove my AddClass when refreshed on lower resolution

My issue is when i refresh it on desktop resolution, it worked but when i refresh the page on lower reso it should be like this But my issue is this: The cod

Unable to download SQL Server on M1 Mac

I have been trying to download SQL Server on my Mac with an Apple Chip. I've been following the steps that include downloading docker and entering code into my

React-Tooltip not displaying until page is refreshed

Bit of a weird one here. My website is virtually done, there is just one issue. I've implemented tooltips, but they only display once I refresh the page! Here i

How to accept “Apple Media Services Terms and Conditions" for TestFlight/IAP when it always gives an "no connection" error?

I am testing an app with in-app-purchases via TestFlight. Recently, when I try to test buying an in-app-purchase, a prompt "Apple Media Services Terms and Condi

How to use dictionary data initialized in a "class" object

I expose the problem quickly: I have to create 3 classes. X Y and Z, inside X y and z are initialized as variables of class x but not as objects Y and Z. What i

Chakra UI Responsiveness Not Reflecting on UI

I have used Chakra UI for styling a project in Next.js. While most of the styles and components are working as intended, I am having trouble in implementing res

REGEX: Transpose each word from a google sheet cell and put them one under the other (rows)

I need to extract each word (phrase) within a cell in google sheets and put each one under the other in a column (row for each one). I have a regex code that w

Zoho API: working example of authentication?

I spent about 3-4 hours trying to implement the examples at Zoho API's doc but keep getting different errors just to authenticate, e.g. "invalid_response_type"

how to resolve nginx 502 bad-gateway error

I've containerized the next.js web application and hosted in aws ec-2. using nginx as proxy server this is the only working page / not working for any other p

415 Unsupported Media Type from POST

I need to create a POST call with Spring/Webclient which does work fine with curl. POSTDATA="{\"subject\":\"CN=test\",\"type\": \"ssh\",\"usage\":\"login\",\"va

Mapbox (walking) directions api suggest ferries to cross the river instead of using bridges

I am using Directions Api (important - walking mode), v5 version. App works in London. When I select point A on the left side of the river, point B on the right

How do I write a Prisma findFirst where clause that OR's two AND's -- or how does prisma treat undefined's?

I am using Prisma I have a postgres table I want to search, finding only the record that matches where (id and accessKey) or (id and ownerId) It keeps finding w

Teradata - YEARFRAC equivalence

I am having a hard time trying to find something that would be equivalent to YEARFRAC (Excel) for Teradata. I messed around with the below, but want I want it t

Directed SPT vs SPT?

Question: If a graph contains no negative-weight cycles, does there exist an ordering of edges such that Bellman-Ford computes shortest paths by relaxing each e

Django / Create HTMl file from a form

In my Models.py class Scenes(models.Model): name = models.SlugField('Scene name', max_length=60,unique=True) description = models.TextField(blank=True)

Getting "Couldn't find class" error in mule application 4.3.0 after deployment

I have created a Mule 4.3 application which invokes a non static Java method. The application is getting built and deployed successfully but I'm getting a "Coul

Split / Explode a column of dictionaries into separate columns with pandas

I have data saved in a postgreSQL database. I am querying this data using Python2.7 and turning it into a Pandas DataFrame. However, the last column of this dat

Variable not displaying on Screen

I've set condition for when a user enters numbers into a text box depending on what the numbers entered start with on screen it should display the name of the c

Identity Server 4 connect/token works when self hosted but not when deployed

I built an .NET Core 3.1 IdentityServer4 to protect some API endpoints: public static class Config { public static IConfiguration Configuration { get; }

ASP.NET Core 5.0 MVC : CS1061 error using Html.RenderAction

I am working on a project using ASP.NET Core 5.0 to build a web app (MVC). I tried to use the Html.RenderAction extension method but I get the following error.

Web app suffers slow performance after upgrading to Oracle 19c

I have a c# MVC web application (.NET 4.52) using an older version of Devart LinqConnect to scaffold the database etc. The app has been around for 10 years wit

How to write custom select/checkmark logic for material-table, to include selected rows inside of detail panel nested material-table

I have a material-table component where I am rendering a nested materiel-table in the detail panel of each row. I would like to know if there is a way to includ

Generate deterministic Namespace based md5 UUID from a string in java and ruby

I am trying to create a deterministic UUID in java to generate same UUID as we have in our ruby codebase but unable to do so and need help. #ruby code using uui

endpoint don't work, doesn't return anything

¿can you help me to understand this? If I have an endpoint in a specific route it will display in the browser the expected content, but with the same cod