29 September 2020

Android 12 allowing alternate playstores, disallowing alternate pay

After the controversy over the margins the play stores (Huawei, Epic Games...) Google is allowing alternate playstores on Android.

They will enforce over the exclusive use of Google Pay for all payments more strictly, however.

more...

20 September 2020

TikTok deal with Oracle

Part of the global activities of TikTok will be sold to Oracle and other investors.
Oracle will also run the TikTok US infrastructure.
Seems like Larry Ellison has invested his money wisely.

19 September 2020

git links

Windows: which java version do I use?

 On windows oracle java uses quite a complicated way to find the java executable.

> echo %PATH%
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;...

Starting from javapath it uses quite a complex mechanism, which well explained in this stackoverflow answer.

Ultimately the windows registry is used, like I also explained earlier.

When you frequently have to hop from one Java version to another, it is a good idea to store the path to your java binaries in the JAVA_HOME environment variable and prepend that to your windows path.

17 September 2020

Specflow support on Jetbrains Rider

Specflow is a .Net implementation for Behaviour Driven Development using the Gherkin language. It is the .Net counterpart of the popular Cucumber library for Java.

Specflow is well intergrated in MS Visual Studio, but is not supported in JetBrains Rider

Here's an open source integration for Rider for simple cases.

14 September 2020

Java 15 new features

 On september 15th Java SE 15 is released, along with some preview features, these are the new features:

Hidden classes

Classes that are dynamically generated by frameworks that can not be discovered (and thus not directly used) through reflection.

Text blocks

Support for strings containing newlines. Text blocks are delimited using """ (triple double quote).
Indent and trailing spaces are removed from such strings (i.e. you can paste in indented code, the blanks will be removed).
Normal string escape characters (\n, \t,...) apply, and some extra escape characters are added:
\
\ at the end of a line: escapes the newline (the newline will not appear in the final string)
\s
A hard space. This space (and any preceding spaces) will not be removed, even if it is a trailing space.