Skip to content

Instantly share code, notes, and snippets.

View Hard-system's full-sized avatar

Hard_system Hard-system

  • No Company!
  • No Location
View GitHub Profile
@Hard-system
Hard-system / gist:ebf78a7fc1be407433366a9e5cf7f3a7
Created November 18, 2020 15:54
no processes deployed with key '': processDefinition is null
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
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
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();
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