Passing system properties to Jetty Maven runner
When using maven jetty runner plugin, you might want to pass some system properties for the apps like this:
$ mvn jetty:run -Dproperty=value
It can be...
Provide social network meta tags for website
In order to provide better SEO for the web, you might need to put following meta tags into head part of your websites.
The first...
Execute a task repeatedly in Java using Timer
In order to execute a task repeatedly in Java, you can try to use java.util.Timer class. This is the description of official documentation saying...
Retrieve all tables having specified columns in MySQL
Just a simple trick to retrieve all tables in database that have columns with specified names.
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
...
Install Oracle Java 8 on Ubuntu Linux
Since Oracle does not provide a native Java installation package for Ubuntu Linux, we can install via distribution created by webupd8 on PPA repository...