installing, upgrading and etc

https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux

How to detect your device

$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:17/0000:17:00.0/0000:18:00.0 ==
modalias : pci:v000010DEd00001C81sv00003842sd00006157bc03sc00i00
vendor : NVIDIA Corporation
model : GP107 [GeForce GTX 1050]
driver : nvidia-driver-460 - distro non-free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-450-server …

useful to sort automatically as you insert elements

Custome comparator

#include <set>
#include <string>
struct MyData
{
MyData(const std::string& str, int v) : key(str), value(v) {}
std::string key;
int value;
};
struct…

A summary note of ISO/IEC 23001–7:2016

What is “Common Encryption”?

Common Encryption specifies standard encryption and key mapping methods that can be utilized to enable decryption of the same file using different DRM and key management systems.

Do

  • define encryption algorithms and encryption-related metadata

Don’t do

  • rights mapping, key acquisition, and storage, DRM content protection compliance rules…

easy

Example 1:

Input: num1 = "11", num2 = "123"
Output: "134"

Example 2:

Input: num1 = "456", num2 = "77"
Output: "533"

Example 3:

Input: num1 = "0", num2…

easy

Example 1:

Input: s = “aba”
Output: true
Example 2:

Input: s = “abca”
Output: true
Explanation: You could delete the character ‘c’.
Example 3:

Input: s = “abc”
Output…


# of reference frames in various video codecs

AVC

https://www.ibc.org/download?ac=14095

AVC allows up to 16 reference frames to be used, but in practice, it
is rare to use more than 5.

HEVC

From x265 manual https://x265.readthedocs.io/en/2.5/cli.html#cmdoption-ref

— ref <1..16>
Max number of L0 references to be allowed. This number has a linear multiplier…

Poby’s Home

Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store