06 April 2018

Online Scientific Notebooks, Course, Visualization show and tell comics

Course, Visualization, Notebooks

We could add Mathematica, WolframAlpha, but they are not so free.

Also Geogebra (https://www.geogebra.org/) is almost there, if only its interface was not so complicated. It is a shame that this tool has not more success!

28 December 2017

In 2018, there will be innovations, but no jobs

There will be innovations, but no jobs:

The current response is "losers go to hell":
It might not be sustainable, since losers can still vote ...


Will 2018 bring an answer? (other than Trump/Poutine duo)

That is my happy prediction :-)

Music in 2017

Not a lot, I guess I did not take note of all I liked this year, but anyway here it is:

I think I will spend less time listening to educational music video and more time practicing with Android Apps like "ear trainer".

19 December 2017

Encoding/Decoding in Java 9 using javax.xml.bind or not

DatatypeConverter and Java 9

If you used to do conversions, like

import javax.xml.bind.DatatypeConverter;
...

byte[] bin = DatatypeConverter.parseHexBinary("0769cc");


With Java 9 you will get errors, since javax.xml.bind is no longer in the module path, it is considered part of Java Enterprise. With Java 10 it may even be removed from the JRE.

It is a known problem:

There are many solutions: Rewriting the function or Using command line option to load the library at runtime ...  But the most robust and long term one seems to be adding the dependency to your project.

Here I will focus on adding the dependency:

Java Enterprise library 

As a Maven dependency:
<dependency>
     <groupId>javax.xml.bind</groupId>
     <artifactId>jaxb-api</artifactId>
     <version>2.3.0</version>
</dependency>

Directly in IntelliJ (Community edition):


Guava

Guava also provides conversion methods, but you will have to adapt your code:
https://github.com/google/guava/wiki/PrimitivesExplained#byte-conversion-methods

Apache Common

Same for Apache Commons. It is a matter of taste.
http://commons.apache.org/proper/commons-codec/

org.apache.commons.codec.binary.Hex(str.toCharArray())



11 December 2017

November summary - 2017-11

11 November

Security

Political

AI

Music

    13 November 2017

    October summary - 2017-10

    10 October

    Science

    Dev

    Security

    Online Scientific Notebooks, Course, Visualization show and tell comics

    Course, Visualization, Notebooks A long paper on the subject "The Scientific Paper Is Obsolete" (2018) https://www.theatlantic....