HTML drop-down placeholder

Do you ever wanted to have an HTML drop-down with default selected value (placeholder) that the user cannot re-select once they selected any valid value options? It can be done easily by adding selected and disabled attributes on the option element. Code Snippet <div class="row form-group"> <label class="col-12 pl-0">Status</label> <select class="form-control col-12"> <option value="" selected="selected" […]

Continue Reading…

Create Android Studio Shortcut on Ubuntu 18.04

You can easily create an Android Studio shortcut by creating an desktop entry using the following the steps below.In this guide, my Android Studio is installed in /opt/android-studio folder. Your folder location may differ. 1. Open terminal and type cd ~/.local/share/applications 2. Create a .desktop file using your favorite text editor nano android-studio.desktop 3. My […]

Continue Reading…

How to clear your local Maven repository

I was building a multi-module project and I faced with this annoying problem with maven that keeps using old version of the maven project even though I uses mvn install -U. I usually delete my local .m2 repository folder but I found a much cleaner way to do it. mvn dependency:purge-local-repository […]

Continue Reading…

How to change Full Disk Encryption (LUKS) password on Ubuntu 18.04

Did you enabled the full disk encryption (LUKS) on Ubuntu 18.04? I would like to share how you can change the LUKS password. LUKS stands for Linux Unified Key Setup developed in 2004 by Clemens Fruhwirth. Similarly, Apple’s macOS have FileVault and BitLocker for Microsoft Windows operating system. In the terminal you can check the […]

Continue Reading…

Bring Your Old Laptops Back In Service With Light-Weight Linux Distribution

Revive your old laptop back in service using Lubuntu a light-weight version of Ubuntu. I bought this Lenovo IdeaPad S10-3 in 2012 when I was working in Muscat, Oman. This netbook has a blazing Intel Atom processor 1.66GHz, a 2GB DDR3 RAM, and 10″ LCD screen. I was initially thinking of giving it away because […]

Continue Reading…