Since number type sizes are powers of 2, I propose to denote a number type of size 2**N by int${N}. int7 is much shorter than, say, int128. (The word int is not important here. Replace it with i, Word, or whatever you want.)
Когда я в 2019 году переводил комедию про американского солдата, который стал наёмным убийцей, решил немного подковаться в этой области и прочитал статью и посмотрел фильм об американской операции в долине Коренгал в Афганистане. Статья оказалась более информативной.
Американское военное начальство решило занять эту долину по стратегическим соображениям. В долине жило изолированное племя, не поддерживающее Талибан. Американцы начали строить через долину дорогу, возможно, ещё какие-то подарки, уже не помню. На встречах старейшины на словах поддерживали американцев, но начали сотрудничать с Талибаном. То есть местный житель пускает талибов в свой дом, талибы оттуда стреляют. Если американцы ответят, то им предъявят претензии за погибших гражданских. Зайдя в тупик и понеся потери, американцы оставили долину и дорогу так и не построили. Больше всего автор статьи возмущался лицемерием местных жителей. 😉
Тогда у меня отложилось в голове, что американцы наивны и не понимают, что в Афганистане их демократия никому нафиг не сдалась и что местные жители обожают ислам и хотят жить в Средневековье. Сейчас мы наблюдаем долину Коренгал в масштабе всей страны. Американцам разумнее вкладывать в Украину, где их хотя бы поддерживает много людей.
Встретился алгоритм планирования с помощью приоритетов, который автоматически назначает приоритеты. По-моему, это оксимирон.
Рассмотрим алгоритм планирования, которые даёт процессор потоку, у которого общее время процессора, которое этот поток использовал, наименьшее. (Кстати, вполне рабочий алгоритм.) Получается, здесь приоритет — это использованное время процессора с обратным знаком (чем больше приоритет, тем больше вероятность, что поток получит время). ☺
В моём понимании планирование с помощью приоритетов — это когда приоритеты задаёт системный администратор или пользователь.
The no free lunch theorem has made it clear that there is no best machine learning algorithm, and, in particular, no best form of regularization. Instead we must choose a form of regularization that is well suited to the particular task we want to solve. The philosophy of deep learning in general and this book in particular is that a wide range of tasks (such as all the intellectual tasks that people can do) may all be solved effectively using very general-purpose forms of regularization.
Goodfellow, Ian, et al. Deep Learning. MIT Press, 2016.
So they say that there is no best form of regularization which is true, but then they say that the philosophy of deep learning found or expects to be found the best form of regularization. This is why I believe that the logical reasoning skill should be one of prerequisites for studying Machine Learning. 😉
Setting up a network bridge between a QEMU VM and its host on the command line A user of ArchLinux can follow relevant parts of the wiki articles “QEMU” and “PCI passthrough via OVMF” for setting up other aspects of a QEMU VM, but these guides don't provide a short method suitable for people who are not network administrators and don't need ramified network topologies. The default network of a QEMU VM, so called “user networking”, frankly, is disconnected from its host. Below is the short method of setting up a VM such that it can communicate with other networks connected to its host like a wired channel to the internet or a home Wi-Fi network.
After I extended a partition containing F2FS with a recent version of Gparted, the partition no longer mounts. mount reports an error, but fsck.f2fs does not see any problem (well, except for “Invalid CP CRC offset: 0”) and does not fix the file system. A strange behavior for a file system.
Trying to install Secure Boot certificates into UEFI BIOS NVRAM, I hit a problem that there is no free space left in the NVRAM. Most solutions recommend just to delete files starting with dump in the directory /sys/firmware/efi/efivars. A virtual filesystem exposing UEFI BIOS NVRAM variables is mounted to this directory. Indeed, these files accounted for 100 of 130 kB of used space. However, working with this file system directly is dangerous because you can accidentally delete another variable and brick your motherboard. Hence I read a little about these dump files. They are used as a backend to the so called “Linux persistent storage filesystem pstore”. It can store kernel messages when a kernel panics. pstore is exposed in the directory /sys/fs/pstore. Hence a safe way to clean UEFI BIOS NVRAM would be through this directory. Also there is a systemd-pstore.service that moves these messages to the systemd journal. When I started it, it emptied /sys/fs/pstore, but dump files were not deleted from /sys/firmware/efi/efivars for some reason. After a reboot, voilà, there is no kernel garbage in UEFI BIOS NVRAM and will never be if this service is enabled.
Diceware is a method of choosing a password (passphrase) that consists of several short words with good entropy. You can download a Diceware dictionary text file in different languages from the Diceware page. Here is the direct link to the English file.
In this article, I share performance results of cryptographic integrity checkers for full-disk encryption in Linux. Specifically, integrity checkers implemented by dm-crypt/dm-integrity. Integrity checking may be combined with encryption into one algorithm called “authenticated encryption”; these are measured too.
If the PulseAudio daemon is executed in the system-wide mode, pacmd will not work even if started by root. Instead, it will work if it is started by user pulse with the environment variable XDG_RUNTIME_DIR assigned to /run/user/$UID. $UID is the UID of user pulse. Everything in one command for root: sudo -u pulse -- env XDG_RUNTIME_DIR=/run/user/$UID pacmd