Two lines segment intersection step by step - geometry

I am studying algorithm and math and I came up to "Intersection of two line segment". I searched a good code and explanation about it but with no luck I didn't understand how it works step by step. I read this page and #Gareth explained it well Here's the link . I am very confused. I Have a example like this one p=(11,11), r=(-12,-12), q=(0,0), s=(0,10). My question is how will I apply it to #gareth's expanation. :-(, I am not really good in math so for now I need help.
Any help would be highly appreciated. Thank you guys. Hope there is someone would help me understand this.

Related

CE/ which approach should i do for this case?

ive been learning tutorials and i now understand how to find address for such as damage, speed, xp and others
but if you take a look at the video below (basically its to find a guy with medal)
https://i.imgur.com/82bEMTH.mp4
some guy uploaded an explanation video of how to do it(the link below)
i guess
but i really dont understand since all i can do is changing the value(that has numbers)
https://i.imgur.com/OiHMdQE.mp4
so my question is is this (the explanation video above) doable in CE
and if so, what value should i look for? i would appreciate any tips!

how can i use openai's gpt 3 to find alternate spellings of bad words?

so, i am making an auto mod discord bot that finds alternate spellings of bad words. i tried using regex to find them but found many many false positives. so i thought about using openai's gpt-3 to do so, as i saw a screenshot of someone using it for what appears to be finding alternate spellings.
the screenshot:
unfortunately, i don't know how exactly they made gpt-3 do this, and how something like this can be used in an application like a discord bot.
can someone please tell me how you can use gpt-3 to find alternate spellings of words?
any help would be appreciated! thank you!
I am not sure if you are looking for prompt/settings. However, based on my experience (3-4 months) I would use a few-shot approach prompt such this one:
Check spelling and return the corrected word:
Word: nawty
Returns: naughty
Word: rigt
Returns: right
Word: stakoverflow
Returns:
I guess that a high temperature and no penalties will do a good job. Also, keep trying different engines and see how it behaves. Curie-instruct-beta should do it.

how to get radio button in each items recyclerview

I was a little confused in this case, I saw different examples, but I did not see what I think is complete. If you have a better example for me in this case, thank you for helping me in this case so that I can solve this issue much better. To.
Thanks

Multithreading Problem - Not understanding how the concept of printf implemented in concurrency

Im struggling a problem in multithreading which I have two threads running over one printf ; and I don't know how exactly those four cases that's already explained in that video are correct?! could anyone please illustrate more about them? appreciated for any help to understand why what's explained here to that problem is correct !
I'm attaching down the video of the problem:
enter link description here
Appreciated for any help for how those 4 cases of the problem are correct .

Low Pass Filter in Verilog (De0 Nano)

I'm learning verilog and was wondering how to implement a low pass filter in an fpga,
I am looking for a cut off frequency of around 50Hz,
I don't know how/where to start,
Can anyone point me in the right direction to help me get started?
Thanks in advance
What have you tried so far?
This is a easily answered with google:
http://jason.sdsu.edu/~ashrafi/PDF/filters_FPGA.pdf
http://file.scirp.org/pdf/CS_2015021515483091.pdf

Resources