Using the Bootstrap 4 Grid | BOOTSTRAP 4 TUTORIAL

Very well bootstrap tutorial

<!DOCTYPE html>
<html lang=”en”>

<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<meta http-equiv=”X-UA-Compatible” content=”ie=edge”>
<title>Bootstrap 4 Introduction</title>
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css” integrity=”sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm”
crossorigin=”anonymous”>
<style>
body {
margin: 30px;
}
.my-container {
border: 1px solid green;
}
.my-row {
border: 3px solid red;
height: 300px;
}
.my-col {
border: 3px dotted blue;
}
</style>
</head>

<body>
<div class=”container my-container”>
<div class=”row my-row”>
<div class=”col-md-4 col-sm-6 my-col”>
Row 1 Col 1
</div>
<div class=”col-md-8 col-sm-6 my-col”>
Row 1 Col 2
</div>
</div>
<div class=”row justify-content-between align-items-stretch my-row”>
<div class=”col-4 my-col order-md-12″>
Row 2 Col 1
</div>
<div class=”col-4 offset-md-2 my-col align-self-start order-md-2″>
Row 2 Col 2
</div>
</div>
</div>
</body>

</html>


How to Use Virtual Environments

Useful command for python system environment or custom environment.
When any environment is not activated you are using the system environment.
pip list
pip3 list
create new environment :
python3 -m venv env_name
create a directory env_name
activate the env_name :
source env_name/bin/activate
show which python :
which python
deactivate environment :
deactivate
create an environment with the same packages of the system environment :
python3 -m venv env_name –system-site-packages
how to show the only packages installed in the env_name environment
pip list –local

ES:

python3.6 -m venv pgAdminEnv

source pgAdminEnv/bin/activate

Yum clean package and fix duplicate packages

From time to time, the yum package manager may encounter issues with duplicate packages that are erroneously installed on a system. This manifests in a yum update going awry, telling us something along the lines of this:

You may at times install all other packages via yum update –skip-broken, but it will still leave some trouble on the system. Best to take care of it.

Here’s how I’ve managed to do it on many occasions:

Installing yum-utils

The utility that will help us fix these issues is called package-cleanup, and it’s part of the yum-utils package. Let’s install that first before we continue:

Next, let’s see what’s wrong with our system. package-cleanup –dupes will show us duplicate packages on the system:

The list could go on. Here we see that several packages are seemingly installed more than once. The –cleandupes parameter will take care of this, erasing such superfluous packages:

The process will look very similar to a yum update, with yum verifying and erasing the duplicates. It doesn’t hurt to make a note of the erased packages and check if the latest version is still installed. Should this not be the case, you can bring those packages back with “yum reinstall packagename”.

Finishing Up

At this point, let’s try to update the system again with a standard yum update command. This should take care of any missing dependencies that may have been removed in the previous process, and of course it’ll update the rest of your system too, hopefully taking care of the initial problem.

Finally, to see if there’s any remaining trouble with the yum database, we can issue the following and are – hopefully – greeted with the same message: