This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-11-18 16:51:56.298 INFO 3772 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] | |
2020-11-18 16:51:56.305 WARN 3772 --- [ main] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [MVStore background writer nio:C:/hub/camunda-h2-database.mv.db] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: | |
java.base@11.0.2/java.lang.Object.wait(Native Method) | |
app//org.h2.mvstore.MVStore$BackgroundWriterThread.run(MVStore.java:3283) | |
2020-11-18 16:51:56.305 WARN 3772 --- [ main] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: | |
java.base@11.0.2/jdk.internal.misc.Unsafe.park(Native Method) | |
java.base@11.0.2/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234) | |
j |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> emails = MockData.getPeople() | |
.stream() | |
.map(Person::getEmail) | |
.collect( | |
() -> new ArrayList<String>(), //begin with empty array list | |
(list, element) -> list.add(element), | |
(list1, list2) -> list1.addAll(list2)); // here is how the concatenate happens | |
// .collect(Collectors.toList()); //this is the same as the below code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string DecryptString(string Message, string Passphrase) | |
{ | |
byte[] Results; | |
System.Text.UTF8Encoding UTF8 = new System.Text.UTF8Encoding(); | |
// Step 1. We hash the passphrase using MD5 | |
// We use the MD5 hash generator as the result is a 128 bit byte array | |
// which is a valid length for the TripleDES encoder we use below | |
MD5CryptoServiceProvider HashProvider = new MD5CryptoServiceProvider(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checkresult(turn) | |
score1 = 0 | |
score2 = 0 | |
secret = @secret.scan(/\w/) | |
guess = @table[turn].scan(/\w/) | |
secret.zip(guess).each do |secret_digit, guess_digit| | |
if secret_digit == guess_digit | |
score2 += 1 | |
end |