Tips & Tricks

144 posts

[Fixed] ThinkPad T450S touchpad not working in Linux Mint

I have an old Lenovo ThinkPad T450S that is laying around and collecting dust, so I decided to install the latest version of Linux Mint 21 on it to give a new life. I chose Linux Mint over Ubuntu because Linux Mint is built on Ubuntu LTS and everything works “Out Of The Box”, so it is stable and does not require me to manually install any drivers to make it work. The installation was […]

Visual Studio Code Icon

How to Set up Visual Studio Code for Java Development in Ubuntu

Visual Studio Code is the most popular open-source, cross-platform IDE for software developers and it supports various programming languages, such as C++, C#, Python, Java, and more. Besides being a professional development IDE, VS Code is an excellent educational tool for teaching students programming languages. I have been teaching Java to students and I think VS Code is a better choice of IDE than others such as jGRASP, IntelliJ,IDEA or Eclipse. In order to use […]

How to Make Kali Linux Live USB with Persistence in Ubuntu

In this post, I will show you how to create a bootable Kali Linux Live USB in Ubuntu 20.04 LTS and then configure a persistent partition so files and settings can be retained between reboots. Preparation Before we start, make sure you have the following items ready: A blank USB 2.0 or above drive, at least 8 GB GParted Kali Linux Live ISO image file UNetbootin Now, let’s get started. 1. Prepare the USB drive […]

A simple algorithm for calculating the result of Rock Paper Scissors game

The Rock Paper Scissors game is a simple game that everyone knows how to play, and because of its simplicity, it has been used in many tutorials for teaching new programming languages. By creating a Rock Paper Scissors game, a student can grasp the concepts in a programming language such as random numbers, if statements, and “while” loop. There are several ways to write a Rock Paper Scissors game and the basic steps are: The […]

If Remote Desktop Connection not working in Windows 10, try this one thing to fix it

Problem Computer crashes are inevitable and system reinstallation becomes the last resort when they happen, then all sorts of problems emerge after the reinstallation for you to fix. Sounds familiar? That was exactly what happened to me recently. After my computer crashed, I tried Windows update, driver update, and Windows reset, but none of them helped, so I finally decided it is time to reinstall Windows to have a fresh start. I have reinstalled Windows […]

Bootstrap not loading in Angular 8 after installation

Bootstrap is a very popular open-source toolkit for developing professional web applications and it can be used along with other JavaScript frameworks, such as Angular. One way to add Bootstrap in an Angular application is to use npm to install it in your application. Open a command window, then navigate to your project folder, then execute the line of code below: After the installation, you will need to modify the angular.json file to add the […]

Fix ASP.NET Core application HTTP Error 500.30 ANCM In-Process Start Failure

Last week when I was working on an ASP.NET Core web application, suddenly I got an error like this: The common causes listed in the error message are quite vague and not very helpful. But fortunately, the link in the error message above to Microsoft’s documentation site provides some guidance on how to fix the error. I have to admit that the troubleshooting information in the error message or on Microsoft documentation site does not […]

Cannot create initial migration with dotnet ef command in .NET core

By Jason Groce – https://github.com/dotnet/docs/blob/cb475ed45f881e9462e34764480d3b0ebce85e91/docs/images/hub/netcore.svg, Public Domain, Link The new .NET Core 3.0 was released on September 23, 2019, with lots of new features and new changes. Often times, those new changes will not cause any trouble but sometimes they do. And there is one specific change in this new update that will give you a headache if you update to .NET Core 3.0 without reading what has been changed in the new release, and […]

[Fix] A connection was successfully established with the server, but then an error occurred during the login process

After you create a new login for a database in your SQL Server and try to use it to connect to your database, you may encounter a “login for ‘your_username’ failed” error. The reason for this common error is that by default MS SQL Server runs in “Windows Authentication mode”. And you will need to change it to “SQL Server and Windows Authentication mode” by following the steps below: Launch SQL Server Management Studio Log […]

Using CSS Margin Auto May Cause CSS Transitions Not To Work

The CSS transitions and transformations make it very easy to change different properties of an element on a web page and to apply those changes without using JavaScript. For instance, we can use simple CSS transitions to move a <div> box slowly to the right side of a window when the mouse hovers over the window, as shown in this code snippet: See the Pen A simple moving box by Jeffrey (@NTOTL) on CodePen. In […]