BowerStudios.com

  • My Lab
  • Family
  • Friends
  • Professional
  • About
Home » The Lab » Programming

Java

Converting between java.time.LocalDateTime and java.util.date

daniel —Wed, 01/18/2017 - 4:53pm

Converting between java.time.LocalDateTime and java.util.date

  • Groovy
  • Java
  • Read more about Converting between java.time.LocalDateTime and java.util.date
  • Log in to post comments

Dynamically scheduling jobs with Spring

daniel —Fri, 08/12/2016 - 2:09pm

Stackoverflow research that may be useful:

  • how-to-load-a-cron-expression-from-db-and-reschedule-it-with-spring
  • how-to-parameterize-scheduledfixeddelay-with-spring-3-0-expression-language
  • How can I use @Scheduled dynamically
  • Groovy
  • Java
  • Read more about Dynamically scheduling jobs with Spring
  • Log in to post comments

Java Profiling Tool

daniel —Fri, 08/12/2016 - 2:05pm

xRebel

  • Java
  • Read more about Java Profiling Tool
  • Log in to post comments

Odd Java

daniel —Fri, 04/01/2016 - 12:21pm

I was digging around trying to figure out some strange error with a saml integration when I came across the verifyAudience Method of the spring-security-saml/core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileConsumerImpl.java

I had never noticed this particular usage of Java in the wild with a loop inside a loop with a continue statement.

I've created an example in groovy because I'm lazy:

List restrictions = [1,2,3,4,5]
List selections = [3,5]

audience:
for(int a in restrictions){
for(int b in selections){
if(a==b){
println "skip"
continue audience
}
println "$a -- $b"
}
}

Here is the Output:
1 -- 3
1 -- 5
2 -- 3
2 -- 5
skip
4 -- 3
4 -- 5
5 -- 3
skip

Some info from Stackoverflow

  • Groovy
  • Java
  • Read more about Odd Java
  • Log in to post comments

Remove an alias to a java cert store with keytool

daniel —Wed, 08/26/2015 - 9:09am

keytool -delete -alias -keystore lib/security/cacerts -storepass changeit

  • Groovy
  • Java
  • Read more about Remove an alias to a java cert store with keytool
  • Log in to post comments

Limit HttpClient with Timeouts

daniel —Wed, 07/15/2015 - 2:54pm

There's a nice description of the different types of timeouts that can be used with HttpClient at baeldung.com

  • Groovy
  • Java
  • Read more about Limit HttpClient with Timeouts
  • Log in to post comments

Recovering from an Out of Memory error on Java

daniel —Thu, 01/29/2015 - 4:30pm

Interestingly, an out of memory error doesn't cause the jvm to exit, but, you can make it do so if you want. Here is a writeup about doing so at thinkingInSoftware.blogspot.com

  • Groovy
  • Java
  • Read more about Recovering from an Out of Memory error on Java
  • Log in to post comments

Finding Encryption supported by the JVM

daniel —Thu, 01/29/2015 - 4:26pm

From Stack Overflow

  • Java
  • Read more about Finding Encryption supported by the JVM
  • Log in to post comments

Code examples and Introduction to Spring Batch

daniel —Thu, 01/29/2015 - 4:04pm

From Blog Excilys

  • Groovy
  • Java
  • Read more about Code examples and Introduction to Spring Batch
  • Log in to post comments

Tomcat configuration with BoneCP

daniel —Fri, 01/09/2015 - 4:15pm

From databaseskill.com
and
StackOverflow
and
Comparison

  • Groovy
  • Java
  • Read more about Tomcat configuration with BoneCP
  • Log in to post comments

Pages

  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »
Subscribe to RSS - Java

Navigation

  • Search
  • Recent content
  • Contact Me
  • Mail
  • Pass Hasher
  • Bower Studios Admin

Quotes

daniel —Mon, 07/06/2015 - 2:06pm

Flattery is like cologne -- to be smelled, but not swallowed.

—

Josh Billings

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • Excellent DOM Tutorial
  • Software used in this walkthrough
  • Multiple monitors with hidpi and standard mix
  • Look at all the methods and fields used in a jvm .class file
  • Get all solr contents

Copyright 2021 Daniel Bower
  • My Lab
  • Family
  • Friends
  • Professional
  • About