Tomcat CLI management

I am sure this is not new for many but I wanted to capture for my own sanity in the future. The following can’t be executed at the command line and in my case on OS X. The first script Will undeploy a given webapp by context.

wget http://username:password@host:port/manager/undeploy?path=/path -O - -q

The second script will redeploy a local war file to a given context.

curl --upload-file target/warfile.war "http://username:password@hostname:port/manager/deploy?path=context&update=true"

The [port] in all cases is optional if the default port for the tomcat instance is utilized.

Posted

History of April Fool’s Day

I presented this as a lightning talk, on April Fools Day 2016. The lightning talk was a disguise to surprise my wife, whose birthday is April 1st.

Tesla Mock Api

  1. Fork the repository : Grails Tesla Mock Api.
  2. Clone the repo you just forked and rename it.
  3. Use the new repository to start testing your code against the mock api.

Pro-tip: This is a great way to play with the Tesla Api without actually owning a Model S Tesla.

Posted

Vincenty Formulae

groovy implementation of Vincenty’s formulae are two related iterative methods used in geodesy to calculate the distance between two points on the surface of a spheroid, developed by Thaddeus Vincenty (1975a) They are based on the assumption that the figure of the Earth is an oblate spheroid, and hence are more accurate than methods such as great-circle distance which assume a spherical Earth. The first (direct) method computes the location of a point which is a given distance and azimuth (direction) from another point. The second (inverse) method computes the geographical distance and azimuth between two given points. They have been widely used in geodesy because they are accurate to within 0.5 mm (0.020″) on the Earth ellipsoid.

  1. Fork the repository : Groovy Vincenty.
  2. Clone the repo you just forked and rename it.
  3. Use the new repository to start testing your code against the api.
Posted

Urinal Kata (scala)

scala implementation of the Urinal Kata. Please view the README.md for the rules. The rules are quite simple.

  1. Fork the repository : https://github.com/ddaugher/urinalKata_scala
  2. Clone the repo you just forked and rename it.
  3. Use the new repository to start writing your own version of the urinal kata.

Pro-tip: Do Not overthink this kata… just have fun.

Posted