Example to send an e-mail from your Java application (with or without TLS authentication)

In this post I just wanted to share a small example to send an e-mail from your Java application, using TLS authentication. You’ll need to include the javax.mail.jar library from JavaMail in your project as a dependency…   I think all steps are pretty much self-explaining, like how to set the host, username and password,… Continue reading “Example to send an e-mail from your Java application (with or without TLS authentication)”

PHP7: Generate secure password based on a string of allowed characters

There are quite some easy implementations out there to generate a secure random string in PHP, most of them by encoding a binary string using Base64 or bin2hex. However, this limits the characters used in your password (Base64 = A-Z, a-z, 0-9 and + and /; bin2hex = 0-9 and a-f).   Here I’ll share… Continue reading “PHP7: Generate secure password based on a string of allowed characters”

MOSUNX USB-C to 3 Port USB 3.0 + Hub Ethernet Adapter – Cable not connected (Ubuntu 16.04)

Lately I bought a “MOSUNX Futural Digital USB C to 3 Port USB 3.0 Hub 10/100/1000 Gigabit Ethernet Adapter” over AliExpress. It’s available under different names and similar descriptions (Malloom, BGEKTOTH, iMice,…). About the device itself: it seems to get pretty hot and experience disconnections on the network part (because of that?), so I don’t… Continue reading “MOSUNX USB-C to 3 Port USB 3.0 + Hub Ethernet Adapter – Cable not connected (Ubuntu 16.04)”