19 September 2020

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.

29 August 2020

Facebook's Zuckerberg lobbied against tiktok

US president Trump's measures against tiktok may not have come from Chinafobia.

Facebook's CEO Marc Zuckerberg has been actively lobbying against the popular Chinese internet video company.

Maybe Trump owned Facebook a little favour after his 2016 election?

With this move the US is following China's example of nationalising the internet.

This may have far reaching implications for the open internet as we know it.

It might also backlash if other countries take the same actions against US internet companies.

 

If you could read my mind: brain monitoring implants

Neuralink, a company owned by  Elon Musk, is working on brain reading implants.

A first application could be giving direct brain instructions for certain tasks. 

The readings are currently not precise enough for more impactful applications.

The company is concentrating on basic enabling technology: real time reading of brain activity and surgery for inserting and removing the implant.

more...

13 June 2020

windows credentialmanager in het nederlands: referentiegegevensbeheer

I veranderde per ongeluk een git paswoord in windows credential manager.
Hoewel die authenticatie niet werkt, slaat de credential manager die op en wordt de toegang vanaf dan geweigerd zonder dat je een nieuwe poging kan doen om je paswoord te corrigeren.
In het control panel kon ik die niet terug vinden omdat mijn systeem in het nederlands draait.
Blijkt dat je moet zoeken naar referentiegegevensbeheer, en dan kan je je paswoord corrigeren.
In microsoft help wordt verkeerdelijk vermeld dat je naar aanmeldingsgegevensbeheer moet zoeken. Blijkbaar gebruikt Microsoft verschillende vertalingssystemen op verschillende plaatsen...

18 May 2020

Google bans apps from playstore for mentioning corona

On Google playstore only government approved apps are allowed to mention corona.
This is a frightening act of censorship, even though Google claims the policy is there to protect the users from malicious apps.
More...