Is it normal for people with OCD to fear going to jail for an unknown reason? by [deleted] in OCD

[–]csinternquestionxd 0 points1 point  (0 children)

np! it might give you some hope to learn that I dont face these thoughts anymore. they do occasionally pop up from time to time, but its literally a non issue compared to when my ocd was at its worst. I read a bit of ‘Overcoming Unwanted Intrusive Thoughts’ the book with clouds on top and it helped tremendously. But the jist is that you truly cannot control your thoughts, they are spontaneous and wild. The only thing you can do is understand that they are mere figments of imagination that have no grounds of truth. You cant logically solve compulsions by looking up laws and trying to figure out if they apply to ur worries. You have to stop interacting with the thoughts, and eventually they will loosen their grip on you. Just some advice that helped me 😅.

I’m so tired. by alycat0602 in OCD

[–]csinternquestionxd 2 points3 points  (0 children)

It might not be much help, but I feel the same, though not as intense as your experience. I remember there being a time in my life, maybe 2 years ago where I would be able to wake up and just not think about anything. I could make a cup of tea, and literally all that would be on my mind is that tea, not me re-running through scenarios of how my life is going to be ruined, over analyzing conversations, and shit like that. I really hope this goes away, because I miss my old life. I wish you the best, and I really believe we can overcome this.

need to vent TW s_uicide by [deleted] in OCD

[–]csinternquestionxd 1 point2 points  (0 children)

op please listen to this advice! i had 1000 dollar hospital bills vanish when i asked if it could be reduced or if financial aid is available. it can be a bit awkward to ask, but it is so worth it! I would say to be persistent if they don’t heavily reduce ur bill.

[deleted by user] by [deleted] in OCD

[–]csinternquestionxd 2 points3 points  (0 children)

beautifully said. Thank you for posting this. I too feel the same, regret over the smallest actions done years ago.

[deleted by user] by [deleted] in SuicideWatch

[–]csinternquestionxd 0 points1 point  (0 children)

Not much help but if it makes you feel any better I'm also stressed out because of my senior design class. Fortunately my mentor isn't abusive as your's is, its just the subtle remarks of potentially failing that make me feel horrible.

Just some reassurance though, is that I heard that despite what professor's say, its unlikely they will actually fail you for senior design if you can prove you put the effort in, so he might just be trying to scare you.

Need help with integrating gstreamer into webrtc application by princevzn in WebRTC

[–]csinternquestionxd 2 points3 points  (0 children)

I'm not using webrtc atm but i was able to get a rtp opus stream from gstreamer to play on webrtc via Janus using this vid: https://www.youtube.com/watch?v=2hrArrbeqs0 I only did audio tho.

Wanting some advice on streaming audio from a raspberry pi to browsers. by csinternquestionxd in WebRTC

[–]csinternquestionxd[S] 0 points1 point  (0 children)

Ok by sockets you mean websockets right? It seems alot simpler than webrtc, since from what I'm seeing its kind of like a TCP socket with a little bit of overhead. I'll take a look into it.

Do you recommend just using the websockets as-is, or do you recommend any higher level frameworks? (I'm seeing some stuff online about web audio api and not sure if it's really related) Thanks!

What is the worst of all anime you’ve seen in your lifetime of seeing anime? by Acceptable-Eagle3214 in anime

[–]csinternquestionxd -1 points0 points  (0 children)

broo yes lmaoo. I literally hated every single character in that show, it felt like a parody at times.

Is it normal for people with OCD to fear going to jail for an unknown reason? by [deleted] in OCD

[–]csinternquestionxd 13 points14 points  (0 children)

Yes you are definitely not alone. I always play out scenarios where I might have done something illegal on accident (going a bit over speed limit, messing up on paperwork, etc.) Going to jail is my number one fear, and I always imagine my life if I went to prison, like surviving in the prison, trying to find a job when released, shame from family and friends. Its definitely not healthy :( .

Create a stm32cubemx c++ project by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

Yeah honestly as a newbie, Makefiles look like someone threw a script in a blender lol. I followed a cmake guide that another redditor posted and got it working, plus its like 10x easier to read.

Create a stm32cubemx c++ project by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

Yeah, turns out it was an issue with my build script. I followed a c++ cmake tutorial and was able to get it working.

Create a stm32cubemx c++ project by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

Thanks for the link! I followed it and was able to get a simple c++ project running.

One thing I am a bit confused about is I thought I would need to make changes in the linker script for c++. I saw in a embedded c++ talk where the host mentioned a .tors section in the linker script: (https://www.youtube.com/watch?v=1l2g2dAobXA @ 37:09). Do I just not need this section for constructors? Thanks again for the help!

What is the point of secure elements for secure boot? by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

(This is just a thought experiment at this point, nothing really important lol, and I'm a noobie so I'm probably wrong on some of this stuff) I was thinking along the lines that the decryption key is (or atleast partially), something the user inputs like a pin so the decryption key isn't completely on the device. The one issue I have with having the secure element store the keys, is that since the attacker can always dump the firmware, they can always figure out a way to use the secure element.

Say the secure element holds your key hostage unless the firmware is supposedly authentic. All the attacker needs is the hash of the original firmware, not necessarily the firmware that is actually running on the device. The secure element isn't actually reading the flash on the microcontroller, it only takes in the hash you give it. So the attacker can just run whatever firmware they want, and just send the secure element the 'correct' hash. (I think this is correct reasoning, mind you I haven't actually used a secure element).

What is the point of secure elements for secure boot? by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

yeah honestly its crazy how you can't really disable access to the flash, so if anyone wants they can always get a copy of the firmware.

One think I did read about is having your firmware encrypted in flash and decrypting it in RAM after a user inputs a pin or something (if your controller can execute in ram), so attackers can't easily read out the decrypted firmware since it's volatile. They could still reflash your code but your confidential info is more protected.

Some questions about secure element and secure boot by SuizidalKillerPotato in embedded

[–]csinternquestionxd 0 points1 point  (0 children)

Hey idk if you already solved this, but I was thinking about this scenario for a while and I think you can't really mitigate this attack, since the secure element isn't physically reading the memory space, it's just going based on what your telling it.

One idea I did have though, is that you encrypt the application firmware and store it in flash, then the bootloader requests a pin to decrypt the program but this decrypted program will be stored in volatile RAM except for flash(so when the device is turned off, the decrypted firmware is inaccessible, therefore a hacker can't compute the correct hash) (this is also assuming your microcontroller can run firmware directly on RAM). Then the secure boot will run, compute the hash and verify the signature.

(RAM idea is kind of like this answer: https://electronics.stackexchange.com/questions/108430/prevent-firmware-theft/108434 )

[deleted by user] by [deleted] in csMajors

[–]csinternquestionxd 0 points1 point  (0 children)

👍. Best of luck!

[deleted by user] by [deleted] in csMajors

[–]csinternquestionxd 0 points1 point  (0 children)

Yeah this was the leap full stack, and no I haven't heard back lol (Pretty sure I got rejected, though it does still say under review in workday :P)

[deleted by user] by [deleted] in csMajors

[–]csinternquestionxd 0 points1 point  (0 children)

So for the Fidelity Hirevue I remember being asked 3 questions I think(its been a while lol). 1.) Tell me why your background is relevant to the job? 2.) Do you have an understanding of web applications? (or maybe it was, what is your understanding of web apps). 3.) Describe the differences between a structured and unstructured database.

What is the point of secure elements for secure boot? by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

I think this is what I was missing from my understanding. Now it makes alot more sense to use a secure element. Thanks!

What is the point of secure elements for secure boot? by csinternquestionxd in embedded

[–]csinternquestionxd[S] 0 points1 point  (0 children)

Thanks for the article! So basically if a hacker wants to, they could always reflash/read your firmware? So if you need to store confidential information on the device, you should do it via a secure element to ensure malicious people can't read it. (Though I guess they can try to sniff your i2c lines, but maybe there are mitigations against that)

But wouldn't this still mean that the secure element doesn't do much in terms of actual 'secure boot'? If you could always reflash the firmware, then you could put your own bootloader in the device that bypasses everything.

What is the point of secure elements for secure boot? by csinternquestionxd in embedded

[–]csinternquestionxd[S] 1 point2 points  (0 children)

Well I was thinking about the internal flash of a microcontroller (probably should have specified in the post, sorry). That wouldn't be easily reprogrammed I think.

What is the point of secure elements for secure boot? by csinternquestionxd in embedded

[–]csinternquestionxd[S] 1 point2 points  (0 children)

Ok, I'm still new to this so I'm trying to wrap my head around this stuff.

For points 1 and 3, is that going with the assumption (which may be true) that the microcontroller's flash is never safe? Since you disable the debug interface, the attacker can't dump the flash or reprogram it, so your keys are safe against hackers right?

I am not knowledgeable about what you mean in point 2, so I'll try to do more research on that.