Discord music bot not working

Ok, I have two solutions for you. This first one is a block of code I have used and I can say it works from experience. It requires ffmpeg, opusscript and ytdl: This second option which I would highly recommend is a node module that has many more advanced features that are hard to implement such as: musichelp [command]: … Read more

What is the := operator?

In all languages that support an operator := it means assignment. In languages that support an operator :=, the = operator usually means an equality comparison. In languages where = means assignment, == is typically used for equality comparison. does := mean =? I can’t recall any languages where := means the same as =. In MySQL := and = are both used for assignment, however they are not interchangeable and selecting the correct one … Read more

What is an instance variable in Java?

Instance variable is the variable declared inside a class, but outside a method: something like: Now this IronMan Class can be instantiated in another class to use these variables. Something like: This is how we use the instance variables. Shameless plug: This example was pulled from this free e-book here here.

How does npm start work? What all processes are happening in the background?

An npm script is just a shortcut to run a series of node commands on your project. Any npm script, meaning any node.js commands listed under a package.json file’s “scripts” section, are executed through node.js when you call them. So npm start runs the node script that is listed under start in the package.json. As in the article that … Read more

What is a reverse shell?

It’s a(n insecure) remote shell introduced by the target. That’s the opposite of a “normal” remote shell, that is introduced by the source. Let’s try it with localhost instead of 10.0.0.1: Open two tabs in your terminal. open TCP port 8080 and wait for a connection:nc localhost -lp 8080 Open an interactive shell, and redirect the IO streams … Read more

Authentication versus Authorization

Authentication is the process of ascertaining that somebody really is who they claim to be. Authorization refers to rules that determine who is allowed to do what. E.g. Adam may be authorized to create and delete databases, while Usama is only authorised to read. The two concepts are completely orthogonal and independent, but both are central to security design, … Read more

What exactly is a VBO in OpenGL?

I think you are mixing up lots of different things and have several confusions, so I’m try to work through most of them in the order you brought them up: when we declare a series of vertices, let’s say 3 vertices that form a triangle primitive, we basically store those nowhere, they’re simply declared in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)