В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов.
widget.setWindowFlags(Qt.Window)
Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов.
Несколько флагов можно указать с помощью оператора "|"
list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
исключить флаг из уже имеющегося набора можно так
list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled)
Добавить новый флаг к имеющимся можно так
list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled)
А проверка наличия делается так
is_enabled = item.flags() & Qt.ItemIsEnabled > 0
Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте.
#qt
A systemd fork has set out as a fu*k you to age verification.
Liberated systemd is a fork of mainline systemd started by Jeffrey Seathrún Sardina, a machine learning/AI researcher who apparently had enough of where things were heading. The project is straightforward about its purpose; strip out what it considers surveillance-enabling code, keep everything else intact, and stay in sync with upstream as it develops.
https://itsfoss.com/news/systemd-fork-strips-out-age-verification/
@itsfoss_official
#AgeVerification#SystemD
438 Experts Warn: Age Verification May Not Work | Tech, Privacy News Explained
More than 400 security and privacy experts have issued a formal warning about age verification systems.
Importantly, they are not arguing against protecting children online — but raising concerns about whether current systems actually work as intended, how they scale, and what risks they introduce.
The warning comes as governments in the UK, US, and Europe continue rolling out age verification and age assurance requirements under new regulations.
In this video, we look at:
• Who these experts are
• What they actually said
• The technical challenges behind age verification
• Why concerns about privacy, security, and effectiveness are being raised
• And why these systems are being introduced anyway
https://csa-scientist-open-letter.org/ageverif-Feb2026
#BigBrother#AgeVerification