BowerStudios.com

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

Groovy

Java With Flair

No @XmlRootElement generated by JAXB

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

No @XmlRootElement generated by JAXB

  • Groovy
  • Java
  • Read more about No @XmlRootElement generated by JAXB
  • Log in to post comments

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

When to use different types of Grails/Gorm Querying options

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

When to use different types of Grails/Gorm Querying options

  • Groovy
  • Read more about When to use different types of Grails/Gorm Querying options
  • Log in to post comments

Transactions and Grails

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

An interesting article from June 2010 by Cyril Picat about Transactions.

  • Groovy
  • Read more about Transactions and Grails
  • Log in to post comments

Spock hidden gems

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

An interesting git repo of Spock hidden gems. A talk given my Marcin Erdmann at a London GGUG

  • Groovy
  • Read more about Spock hidden gems
  • Log in to post comments

Grails Transactional vs Spring Transactional

daniel —Fri, 07/01/2016 - 9:24am

There's a difference between the two annotations which is nicely explained on stackoverflow

  • Groovy
  • Read more about Grails Transactional vs Spring Transactional
  • 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

Compress and Rotate logs for Grails

daniel —Thu, 07/16/2015 - 10:21pm

An excellent writeup as usual from Mr Haki

The Log4j extras javadocs are here

  • Groovy
  • Read more about Compress and Rotate logs for Grails
  • Log in to post comments

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »
Subscribe to RSS - Groovy

Navigation

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

Quotes

daniel —Mon, 02/26/2007 - 12:19pm

Wish not so much to live long as to live well.

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • Convert a Json schema to plain old java objects (POJOs)
  • Mark Twain - Travel
  • Switching from VirtualBox to Vmware Workstation
  • Kooky
  • Benjamin Franklin

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