Eclipse won’t start after crash

If Eclipse crashed and won’t start again, i.e. it hangs forever, go to
[workspace]/.metadata/.plugins/org.eclipse.core.resources
and delete the .snap file. If that does not help go through .projects and delete one .snap file after the other (or move it to trash)

Maven, Payara, JEE: Cannot find beans.xml

Exception while loading the app : WELD-001201: Error loading beans.xml jar:file:/Users/johndoe/Applications/servers/payara41/glassfish/domains/apps/eclipseApps/servicer/WEB-INF/lib/monitoring-0.0.1-SNAPSHOT.jar!/META-INF/beans.xml
java.io.FileNotFoundException: JAR entry META-INF/beans.xml not found in … at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:142)

Stupid error. META-INF/beans.xml must reside directly under src.
Cf. stackoverflow.com/a/9998463

Setup terminal for Mac

It’s been a long time I had to set up a new Macbook. So here some memory hooks for the future
Add term settingn to .profile in your home
alias ll='ls -lartG'
Set colors and an sensible prompt export PS1="[33[36m]u[33[m]@[33[32m]h:[33[33;1m]w[33[m]$ " export CLICOLOR=1 export LSCOLORS=ExFxBxDxCxegedabagacad
export http_proxy=http://user:pwd@proxy export https_proxy= user:pwd@proxy

Docker: add new user in Alpine Linux

If you want to create a new user within a Dockerfile for an Alpine Linux, useradd won’t work. You have to use adduser.
This command will work
adduser -h /home/userx -g groupx -S userx

Please mind to add the -S (uppercase!!). If you omit this, Alpine ask interactively for a password. Interestingly, the option --disabled-password does not work!?!?