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 Proxy=KL1PR0201MB1655.apcprd02.prod.outlook.com:1995:SSL]"

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 //your-cifs-server.your-domain.org/yourshare /mnt/yourshare

Auto mount

  • Create a credentials file at /etc/cifs-credentials
    domain=yourdomain
    username=yourusername
    password=yourpassword
      
  • Edit /etc/fstab as root (or sudo)
    //your-cifs-server.your-domain.org/yourshare /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
    [Unit]
    Description=OMERO Server
    Wants=remote-fs.target postgresql.service
    After=remote-fs.target postgresql.service
       
    [Service]
    Type=forking
    ExecStart=/etc/init.d/omero start
    ExecStop=/etc/init.d/omero stop
    
    [Install]
    WantedBy=multi-user.target
    
  • Systemd unit for OMERO.web:
    cat /lib/systemd/system/omero-web.service
    [Unit]
    Description=OMERO web
    Wants=nginx.service omero.service
    After=nginx.service omero.service
       
    [Service]
    Type=forking
    ExecStart=/etc/init.d/omero-web start
    ExecStop=/etc/init.d/omero-web stop
    
    [Install]
    WantedBy=multi-user.target
    



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











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