Posts

Showing posts from February, 2014

Compilation: Unsupported major.minor version 52.0

If you get a similar error message, the JDK/JRE you're using to execute a JAR/Class might be from a previous generation. E.g. compiling a Java class using JDK7 and executing it using JDK8. Solution: Update to the latest JDK version.

Using wget produces "ERROR: The certificate of `www.java.net' is not trusted."

If one calls wget http://www.java.net/download/jdk8/archive/b129/binaries/jdk-8-fcs-bin-b129-linux-x64-07_feb_2014.tar.gz you might get --2014-02-27 04:53:29--  http://www.java.net/download/jdk8/archive/b129/binaries/jdk-8-fcs-bin-b129-linux-x64-07_feb_2014.tar.gz Resolving www.java.net (www.java.net)... 209.189.227.38 Connecting to www.java.net (www.java.net)|209.189.227.38|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://www.java.net/download/jdk8/archive/b129/binaries/jdk-8-fcs-bin-b129-linux-x64-07_feb_2014.tar.gz [following] --2014-02-27 04:53:29--  https://www.java.net/download/jdk8/archive/b129/binaries/jdk-8-fcs-bin-b129-linux-x64-07_feb_2014.tar.gz Connecting to www.java.net (www.java.net)|209.189.227.38|:443... connected. ERROR: The certificate of `www.java.net' is not trusted. ERROR: The certificate of `www.java.net' hasn't got a known issuer. so append the --no-check-certificate parameter to wget when executing th

How to install a *.pkg file from the command line (CLI) on Mac OS X

sudo installer -pkg installer-osx-amd64.pkg -target LocalSystem ...where  installer-osx-amd64.pkg is the package file that is installed and LocalSystem  the default installation target.

Meaning of the "strictfp" keyword in Java

The strictfp  keyword denotes interfaces, classes, methods, variables, and values to ensure the same rounding precision for floating point calculations involving  double & float   across platforms .

Show / display a property of a Maven pom.xml

mvn help:evaluate -Dexpression= maven.compiler.source where  maven.compiler.source is defined in the corresponding pom.xml as <properties>     <maven.compiler.source>1.8</maven.compiler.source> </properties> is going to show ... [INFO]  1.8 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS ...

How to delete a remote & local git branch

To delete just the remote branch: git push origin --delete your_branch_name You might also choose to delete only your local branch that might also correspond to a remote branch: git branch -d your_branch_name

The Weird Relationship Between Management and Engineers

Image
The reason why some engineers feel not be taken seriously, could not be better shown as in the foreword of  The Clean Coder - A Code of Conduct for Professional Programmers - R. Martin (Pearson, 2011) : It all starts a short time ago in a place not too far away. Cue the curtain, lights and camera, Charley .... Several years ago I was working at a medium-sized corporation selling highly regulated products. You know the type; we sat in a cubicle farm in a three-story building, directors and up had private offices, and getting everyone you needed into the same room for a meeting took a week or so. We were operating in a very competitive market when the government opened up a new product. Suddenly we had an entirely new set of potential customers; all we had to do was to get them to buy our product. That meant we had to file by a certain deadline with the federal government, pass an assessment audit by another date, and go to market on a third date. xiii F OR