Get human readable file size in GWT

Convert file size to human readable string in Java

Hotmail (Outlook) denied POP3 access from Gmail

Recently, my Gmail failed to access my hotmail via POP3:
Server denied POP3 access for the given username and password.
Please contact Microsoft's Support Team for more information on POP access.
Server returned error: "Authentication failure: unknown user name or bad password. [Error="ProxyNotAuthenticated" AuthResult=0]"

It was working fine for a few years. Suddenly stopped working. I searched and found the reason: Microsoft turned off POP3 access on my account without any notification. So turning it back on solved the problem:
For more details, see here

Mount CIFS/SMB (Windows) Share on Linux

Install CIFS/Samba client

sudo apt-get install cifs-utils

Manual mount

  • sudo mount -t cifs -o domain=yourdomain,username=yourusername // /mnt/yourshare

Auto mount

  • Create a credentials file at /etc/cifs-credentials
  • Edit /etc/fstab as root (or sudo)
    // /mnt/yourshare cifs credentials=/etc/cifs-credentials  0 0
  • sudo mount -a

See also

OMERO systemd units

  • Systemd unit for OMERO.server:
    cat /lib/systemd/system/omero.service
    Description=OMERO Server postgresql.service postgresql.service
    ExecStart=/etc/init.d/omero start
    ExecStop=/etc/init.d/omero stop
  • Systemd unit for OMERO.web:
    cat /lib/systemd/system/omero-web.service
    Description=OMERO web
    Wants=nginx.service omero.service
    After=nginx.service omero.service
    ExecStart=/etc/init.d/omero-web start
    ExecStop=/etc/init.d/omero-web stop

OMERO.web startup script /etc/init.d/omero-web

OMERO.server startup script /etc/init.d/omero