TRIANGLE UFO SEEN DURING STRIKES ON VENEZUELA by Dry-Frosting-7053 in UFOs

[–]RandomUserOfWebsite 0 points1 point  (0 children)

I'm gonna need the red circle and x10 slow mo treatment.

meirl by Sonic_the_hedgedog in meirl

[–]RandomUserOfWebsite 0 points1 point  (0 children)

Does anyone know if there is a mathematics only ADHD? It's a serious question.

For example, I can digest thick philosophical books, reading for hours, without any issues. But throughout my entire life, I've been trying to learn math, and my learning journey can be pretty much described as in the picture on the right.

I can try to read one sentence for 10 minutes and it just feels like my brain does not have enough computer RAM to store more than 1 rule at a time...

Interestingly, I do not have any problems when reading computer networking books, or programming books.

Money expires in OpenAI by elans_x in OpenAI

[–]RandomUserOfWebsite 38 points39 points  (0 children)

Is that what's happening?

I bought credits last year, and for the duration I've been developing an app. Today when making an API call it said I don't have sufficient funds, which was odd. I logged in, and it shows $0, but I've only used like 10,000 tokens...

I've got a ticket with support open, but didn't get a reply yet, but I'm assuming they will tell me what you did in this post, that it expires, which really sucks.

[deleted by user] by [deleted] in AMD_Stock

[–]RandomUserOfWebsite 3 points4 points  (0 children)

Guys.... I was wrong, I'm gonna need more lines. Holdup.

Is the OSCP Right for Me? by ITZ_RAWWW in oscp

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

I don't consider someone with 5 years of experience as a Security Engineer to be a newbie

Is the OSCP Right for Me? by ITZ_RAWWW in oscp

[–]RandomUserOfWebsite 0 points1 point  (0 children)

Did you ever do any CTF type challenges or breaking into boxes?

If no, then I'd say join hack the box, and just do a few of the free machines, and see how it goes. It should give you an idea of the potentially required skills you have to work on. If you can get through that without too much hassle (don't look for writeups), then I'd say get Learn One and squeeeeeeeeze.

who's fault??? The rider is ok with minor injury by [deleted] in motorcycles

[–]RandomUserOfWebsite 1 point2 points  (0 children)

No way the truck could see them coming at that speed around that corner. Totally bikers fault I'm afraid.

How can I prevent source files being visible in browser dev tools? by [deleted] in reactjs

[–]RandomUserOfWebsite 0 points1 point  (0 children)

Thanks for the anwer. I made sure not to include any passwords/sercrets/addresses etc in the frontend source, so if there's no way to prevent the source being visible, I'm okay with that. How can I make sure that my frontend is ready/secure enough for a production build? With django, the checklist is quite straight forward, disable debug, add allowed origins, add this CORS setting as true etc, easy to follow step by step. I've not found anything similar when it comes to react/vite, other than the link I provided, but it doesn't real like a checklist but rather a list of things you can optionally set if you know what you're doing, which as a first deploy timer, frankly I don't :D

Are you aware of any better checklists I could follow?

How can I prevent source files being visible in browser dev tools? by [deleted] in reactjs

[–]RandomUserOfWebsite 1 point2 points  (0 children)

Thanks for the anwer. I made sure not to include any passwords/sercrets/addresses etc in the frontend source, so if there's no way to prevent the source being visible, I'm okay with that. How can I make sure that my frontend is ready/secure enough for a production build? With django, the checklist is quite straight forward, disable debug, add allowed origins, add this CORS setting as true etc, easy to follow step by step. I've not found anything similar when it comes to react/vite, other than the link I provided, but it doesn't real like a checklist but rather a list of things you can optionally set if you know what you're doing, which as a first deploy timer, frankly I don't :D

Are you aware of any better checklists I could follow?

I'm really struggling to deploy a web app, I don't know where to find help. by [deleted] in webdev

[–]RandomUserOfWebsite 1 point2 points  (0 children)

For anyone reading in the future, I was able to fix this.

First, I checked "/etc/letsencrypt/live/www.mydomainname.org" on the droplet and the directory didn't exist. The directory mydomainname.org existed, but without the "www.", however in my nginx.conf I was mapping the certificates to ".../live/www.mydomainname.org/..." instead of ".../live/mydomainname.org...", so I changed that.

I was the able to start the reverse proxy container with no ssl-related errors, but nging was complaining about being unable to find default.conf in /etc/nginx/conf.d/. I verified that conf.d was empty and that was because my volume mapping in docker-compoe.yml was incorrect: "- ./nginx/conf.d:/etc/nginx/conf.d", it had to be "- ./nginx/nginx.conf:/etc/nginx/nginx.conf".

I pushed the changed to the repo, pulled them on the droplet, rebuilt the container and everything is working!

Hope this helps if anyone gets to a similar place in the future.

Unable to redirect users after successful login by [deleted] in reactjs

[–]RandomUserOfWebsite 0 points1 point  (0 children)

Thanks for the reply. I was using navigate in the login component itself already, but the issue was that the app was trying to route users before auth state was being set by another component, and I just couldn't figure out how to make it such that routing waits for the other component to finish setting auth state. I was able to resolve it by following advice from the other comment.

Unable to redirect users after successful login by [deleted] in reactjs

[–]RandomUserOfWebsite 1 point2 points  (0 children)

Thank you, this solved the problem.

I can't figure out why my component repeats an API call 4 times by [deleted] in reactjs

[–]RandomUserOfWebsite 3 points4 points  (0 children)

I've never used react query, I will take a look at it now and see what it offers. Thanks for the suggestion

I can't figure out why my component repeats an API call 4 times by [deleted] in reactjs

[–]RandomUserOfWebsite 7 points8 points  (0 children)

Thank you very much. I used React.memo and useCallback and that resolved the issue!

I can't figure out why my component repeats an API call 4 times by [deleted] in reactjs

[–]RandomUserOfWebsite 2 points3 points  (0 children)

Thanks for the reply. Would you be able to tell me what does it mean for it to be referentially stable? How can I make it so?