There are several key relationships between class and class /interface in UML class diagram.
1. Dependency
class A uses class B
Continue reading
There are several key relationships between class and class /interface in UML class diagram.
1. Dependency
class A uses class B
Continue reading
Java SimpleDateFormat Date and time formats are specified by date and time pattern strings. Within format strings, unquoted letters from ‘A’ to ‘Z’ and from ‘a’ to ‘z’ are treated as format letters representing the components of a date or time string.
Try
https://accounts.google.com/DisplayUnlockCaptcha
@Component – generic stereotype for any Spring-managed component (auto scan component)
@Repository – stereotype for persistence layer (DAO component)
@Service – stereotype for business layer (service component)
@Controller – stereotype for presentation layer (spring-mvc)
1 2 3 |
find /tmp/myfodler -name '*.log.*' | sudo xargs rm -r |
1 2 3 4 5 6 7 8 9 10 11 12 |
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("America/New_York")); DateFormat df = new SimpleDateFormat("EEE yyyy-MM-dd HH:mm:ss"); df.setTimeZone(cal.getTimeZone()); System.out.println("The date and time in the specific timezone: " + cal.getTimeZone().getID()); System.out.println(df.format(cal.getTime())); System.out.println("\nThe date and time in the system time zone: " + Calendar.getInstance().getTimeZone().getID()); df.setTimeZone(Calendar.getInstance().getTimeZone()); System.out.println(df.format(Calendar.getInstance().getTime())); |
If you have Couchbase (3.x) installed, and you forget the administrative password or you want to change it, you can go to Couchbase directory, and then reset it
Continue reading
SSH with key based authentication allows you to log on different servers via the personal private key on all servers, needing not to remember several passwords.
SSH key pairs are two secure keys that can be used to authenticate a client to an SSH server. Each key pair consists of a public key and a private key.
command
1 2 3 |
java -cp catalina.jar org.apache.catalina.util.ServerInfo |