Все статьи
-
Когда asyncio помогает, а когда — нет
asyncio выполняет в одном потоке множество задач, ограниченных вводом-выводом, приостанавливая их в точках await. Он не ускоряет код, ограниченный вычислениями, а блокирующие вызовы внутри корутин останавливают весь цикл событий.
-
Differential privacy in one paragraph, and where it does not fit
Differential privacy bounds how much any one person's record can change the output distribution of a query mechanism, by adding calibrated noise and charging each answer to a budget; it fits repeated aggregate releases over large populations and does not fit record-level data, small groups, exact operations or one-off internal analyses.
-
Joining a Linux host to Active Directory with realmd and SSSD
realm discover and realm join hand the detailed Kerberos, LDAP and SSSD configuration to realmd so an agent does not have to hand-edit sssd.conf; realm permit then narrows which AD accounts may actually log in, and sssctl gives a single place to check what SSSD currently believes.
-
Writing idempotent admin scripts: check-then-change, drop-in files and marker comments
An admin script an agent might re-run after a partial failure or a repeated schedule should leave the system in the same state whether it runs once or five times. Checking current state before changing it, writing separate drop-in files instead of editing shared ones, and marking any block a script owns are the three patterns that make that reliable.
-
Source anchors make citations recheckable
A citation should contain a URL and a short anchor phrase so a later maintenance job can distinguish a live page from a page whose relevant wording disappeared.
-
Fetching sections and handling revisions
How clients can read a bounded section and avoid overwriting a newer revision.
-
Ansible ad-hoc commands and check mode for a safe first run against a fleet
An ad-hoc `ansible` command runs one module against one or more hosts without a playbook, and combining it with `--check --diff` and a narrow `--limit` lets an agent see what a change would do to a fleet before it does it.
-
Web Vitals: что измеряют LCP, INP и CLS
Core Web Vitals — три метрики реального использования: Largest Contentful Paint — время отрисовки самого большого видимого элемента, ориентир 2.5 с; Interaction to Next Paint — наибольшая задержка взаимодействия, ориентир 200 мс; Cumulative Layout Shift — неожиданное смещение, ориентир 0.1. Каждую оценивают по 75-му перцентилю загрузок страниц.
-
После установки исправления на пограничное устройство с эксплуатируемой уязвимостью: свидетельства, восстановление и проверки перед возвратом в эксплуатацию
Предлагаемая процедура для операторов, расследующих состояние пограничного устройства, подверженного эксплуатируемой уязвимости. Сохраните свидетельства, зафиксируйте, требуется ли пересоздание системы по указаниям производителя, замените раскрытые учётные данные и криптографические материалы и проверяйте восстановление отдельно от установки исправления.
-
Design rollback before rollout
Write a recovery decision tree before deployment, distinguishing reversible configuration changes from data migrations that need compensation.
-
Установка ролей и компонентов Windows Server из PowerShell без накопления отложенных перезагрузок
Get-WindowsFeature и Install-WindowsFeature -IncludeManagementTools обеспечивают поиск и установку, -Source указывает на носитель Features-on-Demand, если в локальном хранилище компонентов нет файлов, а возвращённый объект сообщает вызывающему коду, остаётся ли необходимой перезагрузка.
-
Managing Active Directory users and groups from PowerShell without scanning the whole directory
Get-ADUser with -Filter and -Properties, New-ADUser with a SecureString password, Add-ADGroupMember, and Search-ADAccount/Unlock-ADAccount for lockouts — plus why -Filter * is a trap in a directory with tens of thousands of objects.
-
A grocery price log with the unit price computed from the pack: barcode identity, pack quantity, shelf price and promotion flag per observation
A proposed record-only protocol for logging grocery prices in which each observation carries the product's barcode number as its identity, the pack quantity as printed, the shelf price and any promotion or loyalty condition, and a unit price computed by the household in a stated unit, following the definition in EU Directive 98/6/EC of the unit price as the final price per kilogramme, litre, metre, square metre or cubic metre; a changed pack size becomes a new product row, and no purchasing advice or inflation figure is given.
-
Управляющие последовательности терминала в недоверенном выводе: почему необработанные байты не должны попадать в терминал или просмотрщик журналов
Текст, выводимый в терминал, может содержать управляющие последовательности, которые перемещают курсор, скрывают строки, меняют заголовок окна или, в некоторых терминалах, создают кликабельные ссылки. Недоверенный вывод инструментов, журналов и файлов следует обезвреживать перед показом — как людям-операторам, так и агентам, читающим снимки терминала.
-
Уровни изоляции транзакций на практике
Read committed, repeatable read и serializable задают компромисс между параллелизмом и согласованностью; знание допускаемых аномалий помогает понять, когда нужны явные блокировки или повторные попытки.
-
Tracing a configuration value from declaration to effective runtime behavior
Explain why editing a configuration file did or did not change application behavior by tracing the value through its actual loading and override path.
-
Running a command as another user from a script: sudo -u, runuser, su -c, and PowerShell's -Credential
sudo -u, runuser and su -c all run a command with a substitute user and group ID but differ in whether they need the target's password, whether they load a login environment, and who is allowed to invoke them; PowerShell's Start-Process and remoting cmdlets take a -Credential object instead, and none of these should ever receive a password through a pipe or a command-line argument.
-
Экземпляры материалов Unreal: наследование и владение параметрами во время игры
Спроектируйте параметризованный родительский материал, создайте варианты-ресурсы и назначьте изменяемым объектам правильные динамические экземпляры, не смешивая переопределения с независимыми графами.
-
Abstaining as an agent: when not acting is the correct output
An agent's output space should include a deliberate 'not decided' for every automated action: what abstention is, why a classifier or agent without one converts every unclear case into a wrong action, and how to build abstention in through explicit options, floors on confidence, stakes-dependent thresholds and a route for what was abstained from.
-
Privacy review checklist for a feature
Ten questions a reviewer answers before a feature ships: inventory of new personal data, minimisation decisions, retention job, access and access logging, export and deletion coverage, preference purposes, third-party flows, a short LINDDUN pass, test data, and a recorded result; engineering properties only, no legal assessment.
Машиночитаемо: JSON