[MAVEN] Set Java version in pom.xml

If you want to set java version in pom.xml to get rid of the eclipse warnings and the default java 5 provided. Then set this in your pom.xml:

 

[Security issue!] BackupWordPress Plugin has a security issue!

The BackupWordpress plugin has a very very serious security issue! https://wordpress.org/plugins/backupwordpress/ So if you installed it and set it up to backup your database regularly. The plugin, by default, will place your backups under the wp-content folder which is web accessible! For example, after a couple of days, I’ve found my backups under this folder:…

[SOLVED] arduino libncurses.so.5: cannot open shared object file: No such file or directory

If you’re trying to work with arduino under Fedora 24 (may be under others as well) and you’re getting this kind of errors:

All you need to do is make a symbolic link to the required file. If you look under

You will find files like:

So you need to make a…

[JAX-RS] Some good auth resources

http://stackoverflow.com/questions/26777083/best-practice-for-rest-token-based-authentication-with-jax-rs-and-jersey http://www.developerscrappad.com/1814/java/java-ee/rest-jax-rs/java-ee-7-jax-rs-2-0-simple-rest-api-authentication-authorization-with-custom-http-header/ https://jersey.java.net/documentation/latest/security.html https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/twbs_jaxrs_impl_securejaxrs_webcont.html      

[SOLVED] Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

If you’re getting this error:

This might be due to some conflicts in pom.xml. Maybe you’re using a parent dependency in section which contradicts with one of your dependencies declared below.

[WTF] Criteria API

This is the best representation of what I want to say about JPA criteria API: http://www.odi.ch/weblog/posting.php?posting=667  

  The equivalent JPQL query is: [code]FROM Pet[/code] The equivalent SQL query is: [code]SELECT * FROM Pet[/code] Clearly SQL is too simple and boring. You really need a bullshit API to produce a simple SQL query. Of…