Monday, 30 June 2014
Thursday, 12 June 2014
Tuesday, 10 June 2014
sudo update-java-alternatives -s java-7-oracle sudo update-java-alternatives -s java-7-oracle
Read more here: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
Thursday, 5 June 2014
So far selection of the Random Number Generation algorithms has been left to the developer. The problem is that where implementations depend on specific hardware / OS / JVM, the desired algorithm may not be available. In such cases applications have a tendency to default to weaker generators, which can put them at greater risk of attack.
Java 8 has added a new method called SecureRandom.getInstanceStrong() whose aim is to have the JVM choose a secure provider for you. If you’re writing code without complete control of the OS / hardware / JVM on which it would run (which is very common when deploying to the cloud or PaaS), my suggestion is to give this approach some serious consideration.
See more here: http://www.infoq.com/articles/Java-8-Quiet-Features
Wednesday, 4 June 2014
- Using many indexes on one query from now. You do not need to create compound indexes for every query. MongoDB limits you to 64 indexes per collection!