Engineer
already doing it
You need to understand the power of your subconscious mind.🤓
Cristian
Anyone can tell me how to move the rectangles on the same y as the circle
Vlad
If you describe circle's movement as vector you get Y component for free.
Cristian
V E C T O R S E C T O R S
I can’t cause it in this work
Vlad
Cristian
Yeah my theacher told not 2 use it in this homework
Cristian
Yes
Vlad
Yes
So you got euler angles?
Vlad
y component shall be cos(angle) afaik.
Vlad
May be you'll need to negate it for the screen space
Anonymous
I'm getting a heap buffer overflow from AddressSanitizer in add_vectors( ). It also says 'shadow bytes around the buggy address'. I have no idea why. Here's the code:
Anonymous
https://paste.ofcode.org/UCZgQ4jjFaNdRgQMg6iQNz
Anonymous
The code is supposed to add two vectors to a third vector in different threads. I am using the same struct with an int variable that acts as a global variable
Anonymous
This variable is the index, and it gets incremented every time an addition is performed
Anonymous
yo
Lujain
Thank u
Lujain
I have a question , im study C++ in college and the professor given us this question can anyone solve it for me please
AleXaNdeR
anyone knows how to disconnect laptop keybord from software ? (linux)
Dark
And then other they need to add Using namespace std;
Dark
anyone knows how to disconnect laptop keybord from software ? (linux)
You don't need to you just ignore the key strokes
Dark
I have a question , im study C++ in college and the professor given us this question can anyone solve it for me please
First name: J ID: 1191930246 Bio: None Restricted: False Deleted: False Bot: False Verified: False
Dark
Not Suspicious at all
Harsh
Not Suspicious at all
Why'd u check it anyway How'd u define suspicious?
Dark
Why'd u check it anyway How'd u define suspicious?
Well it's odd for someone to use an account with one letter as they name
Dark
Have no Bio
Dark
AleXaNdeR
I need to disable my internal keyboard
AleXaNdeR
it is complaint all the time
AleXaNdeR
Can not disable from hardware
AleXaNdeR
Power button is on the keyboard
Dark
And?
AleXaNdeR
So I need to disable it from the software
Dark
So I need to disable it from the software
First off you can't disable the power button
AleXaNdeR
yes
AleXaNdeR
First off you can't disable the power button
that's why I can not disable keyboard from the hardware
AleXaNdeR
I have checked for commands to disable it from software
Dark
that's why I can not disable keyboard from the hardware
Ok then why does your software need to disable the keyboard?
AleXaNdeR
My keyboard is complaint
AleXaNdeR
if I disabled the access to the internal keyboard from the software then I could use my external keyboard with out any problem
AleXaNdeR
Complaint?
some keys are not working
AleXaNdeR
Complaint?
some keys are working automatically
Dark
some keys are working automatically
Ow ok I got you well you can disable the keyboard in setting and I am sure you can use external keyboard instead
AleXaNdeR
did you know how to do it ?
Dark
I believe you can use inputx command
AleXaNdeR
xinput command ?
Dark
Don’t quote me though because I’m not exactly a genius when it comes to that. I don't really deal with IT support questions
AleXaNdeR
but it didn't work I tried
Anonymous
Paper : https://doi.org/10.1016/j.iot.2020.100207 https://youtu.be/RLTZmprHFnw
Anonymous
Dark
It is not spamming
Then why send it twice?
Anonymous
Then why send it twice?
Please excuse me
Dark
Also again what does that have to do with C++
Ludovic 'Archivist'
is there any way to prevent user for defining an object like this. myClass s = myClass();. though myClass s(); is fine.
The second one does not define an object of class myClass but a function s returning a myClass (see Most Vexing Parse)
Ludovic 'Archivist'
Why string words[500000] causes segmentation fault, while in the other way i successfullly populated istantiated and also populated a n array of 500k strings
Leaving the string unconstructed makes this entire array full of strings that are invalid, you want to use new string[50000] instead. It is ill advised to use these forms in C++ tho, you probably want to use std::make_unique<std::array<string, 50000>>
Anonymous
Suggest me a phone
Bhaskar
Suggest me a phone
You're in the wrong group
Dark
Suggest me a phone
yep wrong group
Dark
lmao
Valentine
https://gist.github.com/qubal/c13e76fb356a030702655cd10f299afa Why do i face segmentation fault? indexes are in range of aray sizes
Valentine
do you have code to go with that? so we maybe able to help?
it’s all on gist, u can check it by clicking on the link 🙂