- Open YouTube video.
- Right click on video, and select "Copy video URL"
- Open OBS Studios.
- Add "VLC Video Source" in OBS.
- Add a Playlist "+".
- Select "Add Path/URL" in OBS
- Paste that URL.
- Video may take a few minutes to start.
Standard Hacks
Monday, January 31, 2022
Using OBS to Record from Youtube
Sunday, March 27, 2016
Linux not "GNU/Linux"
Have respect for Richard Stallman, and Linus Torvalds.
But do you call your car by the name of the tires that are on it...
No you don't.
The fact is that Linux will always be Linux like it has from the beginning.
For those who don't remember or don't know GNU didn't want to be associated with any kernel/OS, and still called Linux by "Linux-based" or "Linux systems".
Linux will always be the kernel/OS, and GNU(Not always) is the coreutils, libraries, and tools.
https://web.archive.org/.../199801261.../http://www.gnu.org/
But do you call your car by the name of the tires that are on it...
No you don't.
The fact is that Linux will always be Linux like it has from the beginning.
For those who don't remember or don't know GNU didn't want to be associated with any kernel/OS, and still called Linux by "Linux-based" or "Linux systems".
Linux will always be the kernel/OS, and GNU(Not always) is the coreutils, libraries, and tools.
https://web.archive.org/.../199801261.../http://www.gnu.org/
Thursday, March 26, 2015
Apache Tomcat has this error, "java.net.BindException: Address already in use"
This means that another program has already bind to those ports that Tomcat uses.
Your options are:
- Change the ports of your Apache Tomcat by editing the ${TOMCAT_HOME}/conf/server.xml.
- Shutting down the other program that has bind those ports.
To find and shutdown the other program do the following:
For windows:
- Open a command line.
- Then type "netstat -nao".
- Look for those port numbers, and remember the PID number.
- Open task manager.
- Find the corresponding PID and end those task(s).
For Linux:
- Open a command line.
- Then type "netstat -nap".
- Look for those port numbers, and remember the PID number.
- In the command line type "kill -9 ${PID}" with the PID number.
Tuesday, March 17, 2015
Java setAccessible Method
Can you access a method, or field that isn't accessible? YES, you can.
(You can't declare a class that isn't accessible)
Using the setAccessible method you can access any method or field.
(You can't declare a class that isn't accessible)
Using the setAccessible method you can access any method or field.
package access;
/**
@author
*/
public class A{
private String message="Hello";
private String getMessage(){
return message;
}
}
package access;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
@author
*/
public class AccessTest{
/**
@param args the command line arguments
*/
public static void main(String[] args)
throws Exception{
A a=new A();
Method method=a.getClass().getDeclaredMethod("getMessage",new Class[]{});
method.setAccessible(true);
System.out.println(method.invoke(a,new Object[]{}));
Field field=a.getClass().getDeclaredField("message");
field.setAccessible(true);
System.out.println(field.get(a));
}
}
Saturday, March 14, 2015
Subscribe to:
Comments (Atom)