Все статьи
-
Обучающая, валидационная и тестовая выборки: для чего нужны и как их разделять
Модель обучают на обучающей выборке, модели и гиперпараметры выбирают на валидационной или с помощью перекрёстной проверки, а к тестовой обращаются один раз для итоговой оценки. Распределение строк — случайное, стратифицированное, по группам или времени — определяет, говорит ли оценка что-либо о работе в эксплуатации.
-
Managing FileVault from the command line: status, recovery keys, secure token and bootstrap token
fdesetup reports and changes FileVault state and recovery-key handling; sysadminctl and profiles report which accounts can unlock the disk and whether a bootstrap token is escrowed with a device management service, which matters before relying on MDM-driven account provisioning.
-
When should a service with users in every time zone schedule its maintenance window?
Open question: a maintenance window at 3 a.m. locally is midday for someone; how have small teams serving global users chosen their windows, and did traffic-minimum, staff-availability or rotating-region windows lead to fewer complaints and safer changes?
-
Lesbarer Fliesstext: Zeilenlänge, Zeilenabstand und Kontrast
Drei Eigenschaften entscheiden, ob langer Text bequem lesbar ist: die Zeilenlänge (das AAA-Kriterium der WCAG deckelt sie bei 80 Zeichen), der Zeilenabstand (mindestens das 1,5-Fache der Schriftgrösse muss möglich sein, ohne dass das Layout bricht) und der Kontrast (4,5:1 für normalen Text, 3:1 für grossen). In relativen Einheiten setzen, damit Nutzende Text vergrössern und neu spationieren können.
-
Godot TileMapLayer: согласуйте идентичность тайлов, правила террейна и коллизии
Организуйте слои по их роли, отделяйте координаты карты от идентичности в атласе и подготовьте полные данные террейна и коллизий до использования автоматического рисования.
-
Checking a kitchen scale with coins of published mass: a repeatability, range and corner-load record
A proposed record-only protocol for a household scale: use new coins whose nominal mass the issuing mint publishes as reference masses, log readings for single coins and stacks across the scale's range, repeat placements, test the four corners and a timed hold, and keep the sheet per scale; no adjustment and no pass or fail judgement is part of it.
-
Where Solaris keeps its logs, and using fmadm/fmdump for hardware and software faults
General system messages accumulate in /var/adm/messages (what dmesg replays), each SMF instance logs its own start-method output under /var/svc/log/, and the Fault Management Architecture (fmadm, fmdump) separately diagnoses hardware and some software faults into a correlated record with a UUID.
-
Booting a rescue or live system and chrooting into an installed Linux to repair it
When a system will not boot at all, the standard recovery path is to boot an independent rescue or live medium, mount the installed root and its related filesystems, bind-mount the kernel's virtual filesystems into it, chroot in to run the installed system's own tools (grub-install, package manager, passwd), then unmount everything cleanly before rebooting.
-
HEAD и OPTIONS: что они сообщают и зачем нужны клиентам
HEAD — это GET без тела: тот же статус и заголовки, хотя Content-Length и Vary могут отсутствовать. Его можно кешировать; он служит для проверки ссылок, размера и актуальности. OPTIONS спрашивает, какие возможности обмена поддерживает ресурс или весь сервер (OPTIONS *); обычно ответ содержит Allow, не кешируется и используется для предварительных CORS-запросов с Access-Control-Request-Method.
-
Verifying Slack request signatures: X-Slack-Signature, the 5-minute replay window and the 3-second rule
Slack signs requests as v0=<hex HMAC-SHA256> of the string "v0:{timestamp}:{raw body}" in the X-Slack-Signature header, paired with X-Slack-Request-Timestamp, which Slack's own example rejects once it differs from local time by more than five minutes. Slash commands and interactive payloads must additionally be acknowledged within three seconds, before any slow processing.
-
Administering DNS Server zones and records from PowerShell, then verifying with Resolve-DnsName
Get-DnsServerZone, adding A and CNAME records, listing records with Get-DnsServerResourceRecord, the scavenging/aging settings that expire stale records, and clearing the resolver cache — with every write checked from the client side, not just the server's own view.
-
IIS administration basics from PowerShell: sites, app pools, logs, and backing up the configuration
Reading sites with the IISAdministration module's Get-IISSite, recycling an application pool, where IIS writes its logs by default, and using appcmd add backup to snapshot applicationHost.config before a configuration change.
-
Unity Burst и Jobs: стройте зависимости вокруг общих нативных данных
Разделите вычисления для Burst на производителей и потребителей, объявите доступ к нативным контейнерам и завершите конечную зависимость перед чтением или освобождением памяти главным потоком.
-
Per-process CPU and I/O with pidstat and /proc/<pid>/io: finding what causes I/O wait
pidstat reports per-task CPU, memory and disk I/O without grepping a name out of top; reading /proc/<pid>/io directly separates logical I/O (rchar/wchar, including cache) from the physical read_bytes/write_bytes that actually reach the device.
-
Read-only maintenance mode: serving reads while writes are paused
For storage moves, failovers and long migrations, a service can keep serving reads and refuse writes with a clear message instead of going dark; PostgreSQL's default_transaction_read_only makes new transactions read-only at the database as a backstop, and HTTP 503 with Retry-After tells clients when to try again. The mode needs one switch, a user-facing message and a rehearsal.
-
Godot CharacterBody3D: движение по земле с правильной скоростью и физическим шагом
Храните скорость в единицах расстояния в секунду, явно интегрируйте ускорение и вызывайте move_and_slide в физическом обновлении с заданными правилами контакта с полом.
-
Maven versus Gradle: what a newcomer needs to build someone else's JVM project
Maven describes a project declaratively in pom.xml and runs fixed lifecycle phases (validate, compile, test, package, verify, install, deploy) with plugin goals bound to them; Gradle runs a graph of tasks configured by build.gradle(.kts) scripts and plugins. Both resolve transitive dependencies but with different conflict rules (Maven: nearest definition; Gradle: highest version), and both ship a wrapper script that pins the build tool version.
-
TLS verification errors across tools: unknown authority, CERTIFICATE_VERIFY_FAILED, self-signed in chain
Different TLS clients report the same underlying failure - an incomplete or untrusted certificate chain - in their own wording: 'certificate signed by unknown authority', 'CERTIFICATE_VERIFY_FAILED', 'unable to get local issuer certificate', 'self-signed certificate in certificate chain'. The article shows how to diagnose the actual chain with openssl s_client before reaching for any fix, and why -k or verify=False is never one.
-
Выбор между потоками, процессами и asyncio для нагрузки Python
Сначала определите характер горячего пути: для ожидания ввода-вывода подойдут asyncio (много соединений, асинхронные библиотеки) или пул потоков (немного блокирующих вызовов); для вычислений на чистом Python нужны процессы или сборка без GIL; нативный код, освобождающий GIL, может использовать потоки. Ограничивайте каждый пул, явно выбирайте способ запуска процессов и прописывайте завершение работы.
-
Installing, updating and verifying software with the Image Packaging System (pkg)
The pkg client covers search, install, update, uninstall, publisher management, and verify/fix against packaging metadata. pkg operations are boot-environment aware: changes to packages that require a reboot go into a new BE activated for the next boot, while other changes apply to the running BE, under the default policy with a backup BE when kernel-affecting content is touched.
Машиночитаемо: JSON