Trending questions

1 vote
0 answers
14 views

How to optimize the bundle size of the imported shadcn Select component in next.js?

<Select> <SelectTrigger className="w-full"> <SelectValue placeholder="select something..." /> </SelectTrigger> <SelectContent className="w-...
NoobMaster's user avatar
-1 votes
0 answers
13 views

i'm new to programming and i want to learn oop from start , can anyone recommend me a video or course which could clear my concepts? [closed]

i'm new to programming and i want to learn oop from start , can anyone recommend me a video or course which could clear my concepts. my uni's oop course is in JAVA just starting have no clue. don't ...
fullpower's user avatar
0 votes
0 answers
11 views

Python 3 unit test

I want to write a function "div" that takes two numbers as parameters and returns the quotient of the first number divided by the second number. and need to use a try-except statement to do ...
Kasun98's user avatar
  • 25
-1 votes
0 answers
9 views

How can I optimize a slow SQL query with multiple JOINs on large tables?

I'm working on a web application that uses a PostgreSQL database. I have a SQL query that retrieves user data along with associated posts, comments, and likes using several JOIN statements. The query ...
Dawa Tshering's user avatar
-1 votes
0 answers
15 views

can't find libc++ packages on el9

I have a c++ application that I automatically build and release for various platforms. I use docker images to build for Linux distros. Recently I ran into a libstdc++ bug in std::regex (very old, ...
Neil Stephens's user avatar
1 vote
0 answers
15 views

Code snippets appears as a second choice in C#

Code snippets are easier to enter repeating code patterns, such as loops or conditional statements. In VS Code, the code snippets appear as the second choice, so I can't use Tab to generate code ...
Abdulsalam Elsharif's user avatar
0 votes
1 answer
8 views

Loading a file with multiple sexp in OCaml

I want to load a file with multiple sexp and get a list of sexp, and convert the list to a list of some custom type. I know that Core.Sexp.load_sexp_conv_exn filename ty_of_sexp can load a file with a ...
Cs_J's user avatar
  • 91
0 votes
0 answers
6 views

Spark executors are running for long even if there is no data to process

I am running Spark Streaming Job over Kubernetes where sink and source are file based i.e delta format, and this is how my spark configurations looks like in the helm chart. spark.serializer: org....
agamjain14's user avatar
0 votes
1 answer
37 views

Making a C++ struct that has the memory layout of an array

I have a set of structs that looks something like struct A { int x; int y; }; struct B { int x; int y; int z; }; struct Top { A a; B b; int* getPtr() { return &a.x; } }...
Cort Ammon's user avatar
0 votes
0 answers
29 views

What's the fastest way to write a hard coded series of bytes to an array?

I'm writing a serialization system which uses Roslyn Source Generators to create the serialization code for each type. When serializing an object, the system needs to write some information about its ...
SilentSin's user avatar
  • 1,046
0 votes
0 answers
17 views

Why is tcpdump on my Mininet router not capturing packets sent to the router’s own IPs? [closed]

I’m working on a Mininet topology where I have one router (r1) connected to four hosts (h1, h2, h3, and h4) in two subnets: •h1 and h3 are in the 10.0.0.0/24 subnet. •h2 and h4 are in the 192.168.0.0/...
Memo's user avatar
  • 1
1 vote
1 answer
18 views

Getting a full screen background image

I'm trying to crete this website of this indie game studio I'm a part of and right now I'm having trouble getting this image to cover the whole page and make it the background. enter image description ...
Branden Richards's user avatar
-1 votes
0 answers
17 views

Avoir le code html css qui permet d'avoir cet affichage : [closed]

Bonjour, Il me faudrait le code html css qui permet d'avoir cet affichage : un prix par mois impossible d'avoir le bon look j'ai essayé <!DOCTYPE html> <html lang="fr"> <head&...
Guillaume 34's user avatar
0 votes
0 answers
16 views

FFMPEG send RTP audio at 8k bytes/sec

I'm trying to use FFMPEG to mimick a device that transmits G711U audio over UDP/RTP at 8k bytes per second. The device im mimicking sends rtp packets every 20ms with 160byte payload. I've had limited ...
Muzza's user avatar
  • 1
0 votes
1 answer
13 views

Flask can't load style.css

Flask not finding style.css despite the project layout being identical to the proposed one here and here. Error 404: Flask can't find my CSS stylesheet!!! @.@ The ideal would be being able to display ...
SUPERNOOB20's user avatar

15 30 50 per page
1
2 3 4 5
1615363