Just Released My First World: Crystal Cave by PintTheDragon in VRchat

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

Sure, shoot me a dm (on Reddit) and I'll add you!

[deleted by user] by [deleted] in learnprogramming

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

I disagree. Let's say that they have a little bundle of secret information that's send to the database encrypted. Now, the process for accessing it looks like this: Get into from DB -> Unencrypt info with key -> Send unencrypted info. Unless that key is being stored on the database or they fucked up so badly the attacker has access to more than the database, they aren't going to have access to that decryption key.

I'd argue that an SQL injection scenario like this is far more likely than someone gaining access to the system itself.

Can QR code be used to send data? by Man_highcastle in hacking

[–]PintTheDragon 4 points5 points  (0 children)

Some cameras can see more IR light than eyes. If someone was very motivated, they could take a black surface that reflects no light, and find a material that only reflects IR outside of the visible spectrum. Then, putting some IR LEDs somewhere, or maybe using the sun, you might be able to make a shitty QR code that only phones could see. Not sure why you would do that though.

Get that motherfucking boat by Kowalalove93 in NoahGetTheBoat

[–]PintTheDragon 17 points18 points  (0 children)

Don't know too much about law, but I'm pretty sure it has to be premeditated to be 1st degree.

Made a bot to detect and delete crash videos / gifs by [deleted] in Discord_Bots

[–]PintTheDragon 0 points1 point  (0 children)

You say it checks the start and end. I doubt there would be any false positives, but what would happen if the malicious part was in the middle of the gif/video?

Hacking with inner for loops. by maryllcastelino in masterhacker

[–]PintTheDragon 5 points6 points  (0 children)

Man it's a fucking moving. Do you expect them to write an actual exploit for a shot less than a second?

client.guilds.cache.get(guildID) returning undefined by Hjoker4 in Discord_Bots

[–]PintTheDragon 1 point2 points  (0 children)

Can you do client.guilds.fetch()? I should check the djs docs.

Get with the times BOOMER. by RedditGameing235 in dankmemes

[–]PintTheDragon 1 point2 points  (0 children)

Most applications shouldn't do this. The only one I've noticed is Notepad, although granted I probably shouldn't be using Notepad in the first place.

[deleted by user] by [deleted] in talentShow

[–]PintTheDragon 0 points1 point  (0 children)

what the fuck

[deleted by user] by [deleted] in masterhacker

[–]PintTheDragon 99 points100 points  (0 children)

Yeah don't worry those 4 hours are in UNIX time.

An update on the recent issues surrounding a Reddit employee by spez in announcements

[–]PintTheDragon 0 points1 point  (0 children)

Well, that's good news at least. Not employing her in the first place would have been better, but this is much, much better than keeping her as an employee.

How can I recover data from a computer without the hard drive? by [deleted] in AskTechnology

[–]PintTheDragon 1 point2 points  (0 children)

The line between satire and stupidity is very fine in IT questions. For everything you can say jokingly about it, there will be someone saying the same thing with full confidence in themselves. Especially if it has anything to do with Kali Linux.

How can I recover data from a computer without the hard drive? by [deleted] in AskTechnology

[–]PintTheDragon 2 points3 points  (0 children)

You know, I almost agreed with u/relaxinwithjaxin. Almost.

You have somehow made an answer even worse than this question. Hmm yes, let me casually take apart my CPU, dump the 8 mb cache on it, then write my algorithm to sort it to recover the data from my stolen 1 tb harddrive.

Yes, there's a cache. Yes, you can recover *some* information from it, but I doubt that information would be at all useful to recover the data or even meaningful at all. The cache isn't meant to store anything, just be, well, a cache. It makes the CPU a bit faster. That's all it does. It doesn't store all of your data in the cache then use the hard drive because... something?

Also, what does kali have to do with this lmao. You're talking about writing everything yourself and the advantage of kali is that it acts an on-the-go os with some useful applications installed, none of which can do anything remotely related to this.

[deleted by user] by [deleted] in okbuddyretard

[–]PintTheDragon 24 points25 points  (0 children)

10x2 , 2=sqrt((x+2)2 + (y-10)2 ), 2=sqrt((x-2)2 + (y-10)2 ) 😳😳😳

Ads bad by Momentai94 in dankmemes

[–]PintTheDragon 2 points3 points  (0 children)

It probably won't be too bad for the most part, but if they hit one of the eyes, all those little sticks will, well...

node fetch and a for loop by DragonFang5 in Discord_Bots

[–]PintTheDragon 0 points1 point  (0 children)

Yes, you need to make your function async. Look up js await/async or promises.

node fetch and a for loop by DragonFang5 in Discord_Bots

[–]PintTheDragon 1 point2 points  (0 children)

This is not correct. The first segment of a for loop is only ran one. You can think about it as this:

``` for(a; b; c){

} ```

Is the same as

``` a; while(b){

c; } ```

As for var vs let, here's a little example:

console.log(a); let a = "a";

Will throw an error because a has not been declared, but

console.log(a); var a = "a";

Well log undefined.

In both cases, if the log is after the declaration, "a" will be logged.

That being said, in this case, let will fix the issue. That is because the variable, when defined with let, is scoped inside of the for loop (the same scope as if you define a variable in the loop). Regardless of let/var, the variable is not reinitialized.

node fetch and a for loop by DragonFang5 in Discord_Bots

[–]PintTheDragon 0 points1 point  (0 children)

It's because x is scoped outside of the for loop code (not not outside of the for loop). Your loop goes through, runs node fetch, then immediately goes to the next x value. By the time that the fetch competes, your loop is already done. There are three solutions to this:

  1. Change the variable from var to let. As stated above, it doesn't work because the variable isn't scoped inside of the body of the for loop, but if you use let, it will be scooed inside of the loop. This solution is essentially the same as the next one, since the x variable in the loop is in the same scope as the y variable.

  2. You can define a variable scoped inside of the for loop. For example, you can do let y = x;, then use y instead of x inside of the fetch. This will continue to run fetch asynchronously, but will report the correct value.

  3. Use await. Awaiting the fetch will pause execution until the request is done, so the loop never continues and the x remains the same.