Install xfce4
sudo apt update
sudo apt install xfce4 xfce4-goodies
Install TigerVNC -
| // https://cses.fi/problemset/task/1688/ | |
| #include <bits/stdc++.h> | |
| using namespace std; | |
| typedef long long ll; | |
| const ll MAXLOG = 18; | |
| void preCalc(vector<vector<ll>>& parent) { |
| cmake_minimum_required(VERSION 3.16.3) | |
| project(configure-file-example) | |
| # Configure file, export the environment variable. | |
| set(FOO_DIR | |
| "${CMAKE_CURRENT_SOURCE_DIR}/${PATH_YOU_WANT}") | |
| configure_file(config/foo.h.in foo.h @ONLY) | |
| # Libraries or excutables | |
| # ... |
| # cmake version to be used | |
| cmake_minimum_required( VERSION 3.0 ) | |
| # message("system: ${CMAKE_LIBRARY_PATH}") | |
| # project name | |
| project(helloworld) | |
| # target |
| #include <Eigen/Dense> | |
| #include <iostream> | |
| #include <cmath> | |
| #include <vector> | |
| #include <Eigen/QR> | |
| void polyfit( const std::vector<double> &t, | |
| const std::vector<double> &v, | |
| std::vector<double> &coeff, | |
| int order |
This tutorial shows the result of testing I did of a regular expression (regex) that I found in the following stackoverflow.com question https://stackoverflow.com/questions/2370015/regular-expression-for-password-validation
The user asked for a regular expression for validating a password with the following condition: "Password must contain 8 characters and at least one number, one letter and one unique character such as !#$%&? "
The proposed regex (which will only work with the Latin alphabet) is
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| create_bridge() { | |
| local nsname="$1" | |
| local ifname="$2" | |
| echo "Creating bridge ${nsname}/${ifname}" |
| # -------------------------------------------------- | |
| function (build_external_project target file_name) | |
| set(CMAKELIST_CONTENT " | |
| cmake_minimum_required(VERSION ${CMAKE_MINIMUM_REQUIRED_VERSION}) | |
| project(build_external_project) | |
| file(MD5 \"${file_name}\" FILE_HASH) |
| ----------------------------------------------------------------------------------------------------- | |
| Common Ways to Run a Bash Script | |
| You can execute a Bash script in several different ways, each affecting: | |
| Which shell runs it, | |
| Whether a new shell process is created, | |
| Which environment variables are used, and |