Cactus comprimió un reconocedor de voz completo en 16,9 MB y lo hizo arrancar en 11 milisegundos sobre una CPU común, sin GPU y sin tocar servidores externos. La empresa publicó el 2 de octubre de 2026 el modelo Whistle de Cactus, que transcribe siete idiomas y corre en el mismo motor en C++ que ya mueve a Needle, su modelo de texto para dispositivos con poca memoria. Cactus lanzó el 2 de octubre de 2026 un modelo de voz de 16,9 MB que corre en CPU sin dependencias.- Transcribe siete idiomas (inglés, alemán, francés, español, italiano, neerlandés y polaco) en clips de hasta 30 segundos.- En un Apple M4 Pro llega al primer token en 11,1 ms, frente a 73,2 ms de Whisper base.- Decodifica a 1.319 tokens por segundo, unas cinco veces más rápido que Whisper base y Moonshine tiny v2.- Comparte el motor en C++ y los bloques Simple Attention del modelo de texto Needle, también de Cactus. Whistle es el modelo de reconocimiento de voz de código abierto que Cactus lanzó el 2 de octubre de 2026 para dispositivos con memoria limitada: móviles, wearables, robots, autos y microcontroladores. Pesa 16,9 MB, corre solo en CPU sin dependencias externas y transcribe audio de 16 kHz en siete idiomas en un solo paso. El modelo lo desarrolló Cactus, una startup que construye motores de inferencia para hardware con memoria y batería limitadas. Whistle no es un proyecto aislado: usa la misma cuantización, el mismo contenedor binario y los mismos bloques de atención que Needle, el modelo de texto que la compañía lanzó antes. Un solo binario puede cargar los dos modelos y pasar de un clip de audio a una llamada de herramienta sin pasar por un servidor. El lanzamiento llegó el 2 de octubre de 2026, firmado por Jakub Mroz y Henry Ndubuaku, cofundadores de Cactus. El anuncio describe tres funciones que corren enteramente en el dispositivo: transcripción de audio de 16 kHz en un solo pase de hasta 30 segundos, marcas de tiempo por palabra (inicio, fin y probabilidad, calculadas desde la atención d
When building web tools in 2026, many of us default to standard microservice architecture: The user uploads sensitive documents (bank records, tax PDFs, contracts) over the wire. A backend server (Python/PyPDF2, Poppler, or headless Chrome) spins up CPU threads to stitch pages. The server stores temp files, burns egress bandwidth, and exposes document PII to server compromise. I recently transitioned our PDF suite at UtilifyAI (utilifyai.com/tools/pdf-merge/) to a 100% client-side zero-server architecture using pdf-lib and browser WebAssembly/Blob APIs. The results: $0 compute/storage overhead: Client CPU handles ArrayBuffers directly. Instant GDPR & HIPAA compliance by default: Files literally never touch an external server or wire. Offline resilience: Works with spotty connection once cached. I wrote a complete code breakdown here on Dev.to: How to Merge PDF Files in the Browser Without Server Uploads. Discussion Question: For developers building client-side tools: where do you draw the line between client-side processing (memory pressure on low-end devices) vs. server-side offloading? Have you transitioned other traditionally backend operations (image compression, EXIF scrubbing, OCR) entirely to the browser?
Today we're releasing THX-01, a model for the boring decisions that What it is 322M parameters (mmBERT-base encoder + 15M decision head), Apache 2.0 Non-autoregressive: you send a state plus typed questions, and it returns a probability for every option in one forward pass. No generation, no JSON parsing, no retries. Question types: choice, noul (yes/no), score, plus number (pulls a value stated in the document, or null), excerpt (verbatim span with offsets) and "cite": true on any question ~10 ms per request on one GPU, ~3,000 decisions/s batched, and it runs on CPU Speaks the /v1/systemone wire format, so it is a drop-in for existing TypeSafe-style service layers Numbers (our support-ticket benchmark, 2,843 tickets in az/ru/en/tr, 15 categories) model avg acc latency THX-01 (322M) 98.4 ~10 ms Claude Sonnet 5.5 98.5 1.5 s Wahoo 1.5 97.8 145 ms TypeSafe Jev 1.13 97.4 331 ms Kev-4B 92.8 830 ms Because it's trained with a strictly proper scoring-rule reward, the probabilities are calibrated (ECE 0.003). With a single pip install thx01 import thx01 agent = thx01.load("doofz/THX-01") agent.decide("My card was charged twice for one order", { "team": {"type": "choice", "question": "Which team handles this?", "criteria": {"billing": "billing", "tech": "technical", "sales": "sales"}}}) Model + docs: https://huggingface.co/doofz/THX-01
In 16 years operating financial platforms, the Lambda incident that cost me the most was not a logic bug, it was an environment variable holding the same value for source bucket and target bucket. The function wrote to the bucket that triggered it, S3 emitted another event, and within minutes the whole account's concurrency was busy doing useless work. Recursive loop detection reaching the AWS European Sovereign Cloud on September 10, 2026 is good news for anyone who moved regulated workloads to eusc-de-east-1. But the useful question isn't 'does Lambda protect me now?', it's 'from which loop, with what delay, and what is still on me?' Isolated partition: the European Sovereign Cloud is its own partition (aws-eusc), with a single region, eusc-de-east-1, in Germany, operated by EU residents. It is not 'one more region': it is a logically separate environment, with two Availability Zones instead of three and roughly 90 services at the January 2026 launch. Anyone arriving from eu-central-1 quickly finds everyday tools missing: IAM Identity Center, Security Hub, Inspector, CloudFront, and that quota increases usually go through a support ticket. Why this matters for recursive loops: in a partition with fewer security services and less quota automation, the safety net you had in the commercial partition shrinks. Cost Anomaly Detection and billing alarms remain your last-resort defense, but each one has to be verified in the partition itself, not assumed. Native Lambda detection reached the EUSC almost three years after it debuted in commercial regions (July 2023 for SQS, SNS and Lambda; October 2024 for S3). That gap is the lesson: feature parity in a sovereign partition is not automatic. A workload that relied on a free, invisible guardrail in the commercial partition ran for months without it in the EUSC and nobody noticed. That is why I compare four mechanisms rather than recommending only the one that just arrived. Same mechanics, same limit: the docs.aws.eu document
Originally published at https://svitla.com/blog/rag-vs-fine-tuning/?utm_source=adwords&utm_medium=ppc&utm_campaign=Search-Campaign_Brand_%D0%A1ompany&utm_term=svitla%20company Written by Patricio Gerpe - Senior Full Stack AI Engineer at Svitla Systems An internal assistant quotes a reimbursement policy that expired eighteen months ago. An employee acts on it. By the time the meeting happens, the proposal on the table is to fine-tune a model on the company’s own documents. See, this happens a lot. Something factual breaks, the model gets blamed, and then the model gets retrained. Now, fine-tuning doesn’t store facts the way most people assume. Weights aren’t rows you can update. They’re a compressed statistical average of everything the model saw in training, and nothing in there carries a date. You can’t patch Tuesday’s policy change into a weight. So… a team spends two quarters and a training budget on something a retrieval index would have handled in a week. I’m Patricio Gerpe, a Senior AI Engineer and consultant with global experience in AI startups, applied research, and social-impact projects. Most architecture reviews I run end the same way: the team doesn’t need a bigger intervention. Instead, it needs a cheaper one, in the right place. In this piece I’ll share five cues for deciding whether a requirement belongs in the prompt, in information retrieval, or in the weights, when fine-tuning pays for itself, and what production Retrieval augmented generation (RAG) looks like now that chunk-and-embed no longer clears the bar. Before picking a technique, ask something simpler: how fast does this thing change, and where is the cheapest place to update it? Any system loses control when it updates slower than the reality it’s tracking. Enterprise policy can change in an afternoon. A training cycle takes weeks. Prompt engineering is the stateless interface layer. It shapes the request: role, limitations, and output boundaries. It costs nothing to change and takes effe
Patch or Shield? Choosing an Upgrade Path for CVE-2026-76471 Vulnerability overview CVE-2026-76471 is a CVSSv3 9.8 remote code execution defect in the NX-API component of Cisco NX-OS. Cisco published it in October 2026 next to a NX-OS hardening release covering six further weakness classes, and reports no confirmed exploitation. Because the fix list spans several product trains, the choice of path matters as much as the decision to act. The flaw is insufficient validation of data sent to NX-API. A crafted HTTP request can grant root-level code execution or force a reload. Reachability separates the urgent cases from the routine ones: NX-API is disabled by default on Nexus 3000 and Nexus 9000 switches, while UCS 6300 fabric interconnects expose the same defect through the default-enabled UCS Manager XML API, where only low-privileged credentials are required. Choosing a path poorly has its own cost. Jumping a switch across several release trains during a short window increases the chance of a change-induced outage, which is exactly the outcome the vulnerability threatens. Upgrading too slowly leaves a management interface that grants root reachable from wherever the management plane is exposed. Nexus 3000, Nexus 9000 in standalone mode and UCS 6300 fabric interconnects carry the NX-API defect. The hardening release reaches MDS 9000, Nexus 7000, Nexus 9000 in ACI mode and UCS 6400 through 6600, and it takes effect regardless of configuration. A ZoomEye search for app="Cisco NX-OS" returned 586 assets while this analysis was prepared; vul.cve="CVE-2026-76471" returned nothing indexed. The fingerprint result shows how common the platform family is, not how many devices are exposed, so it should inform scheduling rather than substitute for a local inventory. Fixed releases are 10.3(10), 10.4(8), 10.5(6) or 10.6(4) for Nexus 3000 and Nexus 9000 standalone; 16.0(9h), 16.1(6g) or 16.2(3g) for ACI mode; 9.4(5a) for MDS 9000; 8.4(14) for Nexus 7000; and 4.3(6j) or 6.0(2e) in
Row level security compares auth.uid() with the row's owner. When the request carries no JWT, auth.uid() is null, every comparison is false, inserts fail with 42501 and selects come back empty with no error at all. The SQL editor hides it too: on its default role it runs as postgres, which row security lets through. one missing session from the app, insert: 42501 new row violates row-level security policy for table "profiles" from the app, select: [] no error, no rows in the SQL editor: works on its default role What is auth.uid()? It is the Supabase helper that reads the subject of the JWT that came with the request. In Supabase's words: "When a request is made without an authenticated user (e.g., no access token is provided or the session has expired), auth.uid() returns null". A policy that compares it with the owner column then fails on every row, because, as the same guide puts it, "null = user_id is always false in SQL". Proven on a real PostgreSQL: with no subject on the request the insert is refused with 42501, the select returns 0 rows and no error, and both succeed the moment the subject is present. You can see the value your editor session carries: select auth.uid(); On the editor's default role it returns null too. There is no JWT there either; that role is just not stopped by it, for the reason in the last section. Check them in this order The browser client has no session yet The query ran before sign-in finished, or after the session expired. Right before the query, ask the client who the user is and log the answer; if it is empty, nothing you do in the policy will help. Do not widen the policy to the anonymous role to make the error go away: that hands the table to anyone holding your public key. A server component, route handler or middleware that creates a plain client has no session, so the database sees no user. Supabase: "Server-Side Rendering (SSR) with Supabase requires cookie-based session storage." And: "Use the browser client in code that r
A New Era of Open-Source Security: Scan, Assess, Prevent The open-source ecosystem recently dodged a significant supply chain attack, thanks to a crucial shift in security strategy. A recent GitHub Community discussion highlighted how npm's publish-time malware scanning, a key component of GitHub's supply-chain security efforts, successfully intercepted malicious changes targeting popular packages like zod, nub, and standard-schema. This incident marks a pivotal move from the reactive 'publish, detect, and remove' model to a proactive 'scan, assess, and prevent' approach, significantly bolstering developer confidence and security posture. For dev teams, product managers, and CTOs, this isn't just another security alert; it's a case study in evolving defense mechanisms and the critical need for robust, layered security practices across the entire software development lifecycle. Understanding these shifts is vital for maintaining productivity, ensuring delivery integrity, and exercising effective technical leadership. The threat involved malicious commits introduced into three public repositories: colinhacks/zod, nubjs/nub, and standard-schema/standard-schema. Each commit embedded the same installation loader pattern via a package installation hook. Had these packages been published and installed, the added code could have retrieved and executed remotely controlled content in developer or build environments, posing a severe risk to systems, source code, and credentials. Crucially, only @nubjs/nub@0.9.4 reached npm's publishing pipeline. The malicious changes in zod and standard-schema never made it that far, thanks to existing secure release flows and automated systems. For nub, however, npm's validation process held the package, detected the malicious behavior, and blocked it before it became publicly available. This preventive control drastically reduced the opportunity for the malware to spread through normal npm workflows. Diagram illustrating malicious preinstall
If you've ever streamed structured output from an LLM, you've met this bug: for await (const part of stream) { buffer += part.choices[0]?.delta?.content ?? ""; const data = JSON.parse(buffer); // 💥 SyntaxError on literally every chunk render(data); } A model emits JSON one token at a time. Until the very last token arrives, the buffer is syntactically broken — {"city":"Par isn't valid JSON — so JSON.parse throws on every intermediate chunk. You want to show the UI filling in as it streams; the parser wants a complete document. Let's look at the usual workarounds, why they fall short, and a small library I built to do it properly. 1. "Just parse at the end." Accumulate everything, parse once when the stream finishes. Correct — but you've thrown away the entire point of streaming. The user stares at a spinner while a 2 KB object generates token by token. 2. Split on }. Tempting for a streamed array, but it breaks the instant an element contains a nested object or a } inside a string. You end up re-implementing a JSON tokenizer badly. 3. Repair-then-parse (jsonrepair and friends). Close the open braces/quotes, then JSON.parse. This mostly works, but: It re-parses the whole buffer on every chunk — that's O(n²) over a stream. On a long response it gets genuinely slow. Repair guesses. It can briefly surface values that aren't actually in the final object. 4. The incumbent, partial-json. It's the de-facto choice (~35M downloads/month) — but it hasn't shipped a release since May 2024 and is still on 0.1.x. And the better ideas (progressive snapshots, path subscriptions, schema typing, provider adapters) are scattered across a handful of tiny single-purpose packages. These aren't hypothetical rough edges. Two real bugs from the Vercel AI SDK tracker show exactly what goes wrong when a parseability check meets a half-streamed buffer: #12052 — a parseability check passes on a truncated tool-call argument, emitting a tool call whose input is still a half-string (Unterminated s
What we built PCSense is a local-first AI technician for Windows 11. Instead of just showing raw diagnoses why your PC is struggling, explains its reasoning in plain language, proposes a fix, simulates the effect before anything changes, asks for approval, and then verifies with a real before/after measurement whether the fix "PCSense never says it fixed something until it has measured it." Built for Hacktoberfest Hack Day 2026 (INIT Club x iDEA Club x MLH) by team YVL. Natural-language request routing via Gemma 4, served locally through Ollama — with a deterministic keyword-baseline fallback if the model is unavailable Multi-factor diagnosis: a primary cause, secondary contributors, and plain-language notes about metrics that are elevated but not actually a problem A what-if simulator that predicts the effect of a fix (e.g. "RAM: 62% → ~41%") before you approve anything A policy-gated safety core with adversarial tests: sandbox confinement, path-traversal and junction/reparse-point rejection, protected-process checks, and plan-hash binding so an approved plan can't be swapped out from under you Reversible cleanup via quarantine (never a direct delete) and a full SQLite audit log A faithfulness checker that verifies every number the AI states against real evidence Battery, GPU (NVIDIA), network, driver inventory, and Windows Event Log ("PC Black Box") telemetry, a hardware upgrade advisor, a simple game-compatibility checker, and workload-mode-aware health scoring A shared, frozen pydantic contracts module so four people could build in parallel against one typed interface from minute one A safety core written test-first and adversarially (junction traps, path traversal, protected paths/processes, plan-hash mismatches) before the real implementation An orchestrator tying router → diagnosis → plan → approval → policy → executor → verify into one event stream a Streamlit UI consumes Real integration work reconciling two tracks' independently-built (and differently shap
Do not let your first agent edit land in the laptop clone. Run that first session on a remote sandbox instead. Bring back one reviewed patch after the checks pass. You joined this repository with a thin map of its risks. A coding agent can still draft a small change for you. That speed is not a safe first pull request. Keep the default branch untouched during this first hour. Explain every changed line before you request review. Treat the steps below as a proposal you must adapt. Write a one-page brief before you open an agent chat. The brief is the only contract for this hour. If the brief feels vague, do not start the session. Lock five facts in that brief before you type a prompt. Name the ticket and the one behavior you will change. Also name allowed paths, the CI test command, and the base SHA. Do not ask the agent to invent those facts for you. You write them from the repository and the ticket. The agent may work only inside that written fence. Your first commands should only read local repository state. They should not create an agent branch on this clone. Save the default-branch SHA where you can find it later. git fetch origin git status --short git rev-parse --abbrev-ref HEAD git rev-parse origin/main git log -1 --oneline origin/main Write that SHA into a note outside the work tree. If this repository uses master, record that name instead. This note is your return point if the session goes wide. git rev-parse origin/main > "$HOME/hour-one-base.txt" Do not commit that personal note into the repository. Do not push it to the remote by mistake either. It is a personal checkpoint, not a project file. Confirm the work tree is clean before you continue. A dirty clone will mix your scraps with the agent patch. Stash or drop those scraps before you record the base. You need a place the agent can edit without touching your clone. A free server can be that place when the offer includes one. A local virtual machine remains a valid substitute here. Disclosure: This ar
Node.js is known for its efficient event-driven architecture, but a single Node.js process normally runs JavaScript on one CPU core. As traffic grows, that can become a bottleneck when an application needs to handle more concurrent requests. The built-in Cluster module provides a practical way to run multiple Node.js worker processes that can share a server port. This allows an application to take advantage of multiple CPU cores while keeping the familiar Node.js HTTP programming model. In this guide, we will build a runnable clustered HTTP server, understand how the primary and worker processes communicate, and explore graceful worker management. The example also demonstrates worker lifecycle events, request handling, and basic monitoring through detailed console output. The Cluster module allows a primary process to create multiple worker processes using Node.js's built-in child-process capabilities. Each worker runs independently with its own JavaScript heap and event loop, while the cluster infrastructure can distribute incoming connections across workers listening on the same port. A common pattern is to use the number of available CPU cores as the worker count. The primary process creates the workers, monitors their lifecycle, and can replace workers when they exit unexpectedly. Worker processes focus on application work, such as handling HTTP requests, while the primary process coordinates the cluster. The following example creates one worker per available CPU core, although the count can be limited through the CLUSTER_WORKERS environment variable. Each worker starts an HTTP server on the same port, reports its process ID, and responds with useful runtime information. The example also demonstrates graceful shutdown behavior. When a worker exits, the primary process logs the event and creates a replacement worker, while SIGINT allows the application to shut down all workers cleanly instead of terminating them abruptly. It is important to remember that cluster
A receiver can see the same event twice even when both deliveries have valid signatures. The first request may have been accepted while its acknowledgement was lost. A retry then asks the receiver to accept the same event again. Signature verification checks the HMAC over the timestamp and raw body against the configured key. Duplicate handling answers whether this receiver has already accepted that event. Keep both checks in the path before applying a business change. This tutorial runs entirely offline. Its message and key are fictional. Its signing format follows TheFaithApp’s outgoing webhook contract, checked against the sender implementation. It does not start a server, contact an endpoint, process a payment, or handle personal information. The relevant headers are: Header Purpose X-TheFaithApp-Timestamp Signing timestamp in Unix seconds. X-TheFaithApp-Signature v1= followed by a hexadecimal HMAC-SHA256 digest. X-TheFaithApp-Event-Id Event UUID retained across retries. X-TheFaithApp-Event Event type. The signed input is the timestamp, a period, then the exact raw request body. Preserve those body bytes until verification finishes. Parsing JSON and serializing it again can change whitespace or encoding without changing its apparent meaning; the original signature will then fail. The sample compares equally sized digest buffers using Node’s timingSafeEqual(). A strict signature-format check gives both buffers the expected length. Node notes that this function alone does not make all surrounding code timing-safe. Save this code as webhook-replay.mjs, then run node webhook-replay.mjs. It uses Node’s built-in modules and needs no package installation, account, credentials, environment variables, or network. The clock is fixed for repeatable demonstrations. A five-minute window in either direction is an example receiver policy, including clock-skew tolerance; it is not a platform default. The public fixture key is test material. A real receiver uses its own endpoint
What a 905 nm rangefinder datasheet does not tell you Four gaps I found while verifying the UART protocol of an LR1000E2-class 905 nm laser rangefinder This is not a complaint about the manual. It is what the manual says, what it deliberately leaves offset 0 1 2 3 4 5 6 7 0x55 0xAA FUNC D1 D2 D3 D4 SUM host -> module SUM = (FUNC + D1 + D2 + D3 + D4) & 0xFF module -> host SUM = (0x55 + 0xAA + FUNC + D1 + D2 + D3 + D4) & 0xFF Two different ranges. The manual states this in its own notes, and it is the single most common way every You get a link that A worked example with the ranging response 55 AA 88 01 FF 27 10 (1000.0 m): bytes: 0x55 0xAA 0x88 0x01 0xFF 0x27 0x10 -> 85+170+136+1+255+39+16 = 702 = 0x2BE response rule SUM[1:7] = 0x2BE & 0xFF = 0xBE <- correct command rule SUM[3:7] = 136+1+255+39+16 = 0x1BF & 0xFF = 0xBF <- wrong, silently rejects Verify it yourself before trusting me: erdilrf decode "55 AA 88 01 FF 27 10 BE" # checksum : 0xBE (recomputed 0xBE) OK # STA : 0x01 measurement successful # detail : 1000.0 m Distance decoding is ((DIS_H << 8) | DIS_L) / 10 — the register holds tenths of a metre, so the 0x2710. Now the four gaps. The manual documents the LD constant-on command, including both complete transmit frames: 55 AA 86 FF FF FF 01 84 enable LD constant-on 55 AA 86 FF FF FF 00 83 disable The response row prints only: 55 That is one byte of an eight-byte frame. The remaining seven bytes are not in the published , as far as I can determine. Why this matters more than it looks. LD constant-on is the command that turns the laser diode on What to do. Do not invent the missing bytes. Send it fire-and-forget, and confirm the result Issue the enable frame and do not block waiting for a well-formed acknowledgment. Confirm from the physical side — the module draws measurably more current, and the emitter is live. Prefer singleShot() / continuous for anything automated. Turn LD constant-on on only for alignment work, and turn it off when you are done. The manufac
OpenAI’s API deprecation notice gives teams using gpt-5.3-codex, gpt-5.1, or gpt-5.4-nano until April 1, 2027, before those model IDs are removed. The listed replacements are gpt-6-sol for the first two and gpt-6-luna for gpt-5.4-nano. Treat that date as a migration deadline, not as a reason to replace every model reference in one pull request. A safer sequence is: find every configured ID, put the choice behind one application setting, compare the old and recommended models on representative work, then move traffic in stages. This guide focuses on an API application you own. Codex product configuration and other OpenAI products may have different migration paths; check their own notices rather than assuming the API table applies to them. Search the repository, deployment configuration, and operational scripts for the exact identifiers. A source-only search is a useful first pass: rg -n --hidden \ --glob '!node_modules' --glob '!.git' \ 'gpt-5\.3-codex|gpt-5\.1|gpt-5\.4-nano' . Then check the places a repository search cannot see: environment variables in each deployed environment, secret-manager values, scheduled jobs, queued task payloads, admin dashboards, and model names stored in a database. Record the service, environment, owner, current model, and fallback behavior for every hit. A model may be selected by a tenant setting or a persisted workflow version even when the application source has no literal string. Keep this inventory as a migration artifact. It helps answer the important question after rollout: which production caller still sends a retiring ID? If the API request layer logs a model name already, add a count by model and service before changing traffic. Avoid logging prompts or user content just to observe model selection. Centralize the default and replacement IDs so individual routes do not carry their own choices. For example: const modelByTask = { code: process.env.OPENAI_CODE_MODEL ?? "gpt-5.3-codex", general: process.env.OPENAI_GENERAL_MODEL
GitHub made local sandboxing for Copilot generally available this week, in the CLI, the Copilot app and VS Code Agent Host sessions. Commands the agent starts run with restricted access to files, network and credentials, based on a policy you set. I've been letting agents run commands locally for a while, mostly with no boundary at all, so this pushed me to write down what I actually care about. The agent should see the repo it's working on and nothing else. My home folder has SSH keys, cloud configs and old project stuff. None of it helps the agent fix a failing test. Most tasks need package installs and not much more. I'd rather allow the package registry and block the rest than find out later that some script phoned home. This is the one that worries me. If the agent can use my Git credentials, it can push. GitHub's sandbox lets you control access to Git and GitHub CLI credentials, and that's the setting I'd look at first. Friction. Some installs and tests will fail inside a sandbox and you'll spend time loosening the policy. I'd expect to tweak it a few times in the first week. Writing a perfect policy up front. Start strict, see what breaks, open only that. One detail I liked in the announcement: model execution and tool isolation are treated separately, so the policy applies whichever model you pick. Are you running coding agents inside any sandbox yet, or just trusting the diff review at the end?
Un aggiornamento automatico può rompere un sito WordPress senza che nessuno abbia toccato niente: quando succede, il primo sospetto è un plugin incompatibile e il primo intervento è rinominare la sua cartella via FTP. Stamattina c'è una pagina bianca con un errore critico, oppure una scritta che dice che il sito è in manutenzione e non se ne esce. Non hai toccato niente — ed è proprio questo il punto: qualcosa si è aggiornato da solo. Qui trovi che cosa aggiorna WordPress senza chiederti niente, perché a volte lo aggiorna anche il tuo hosting senza che tu lo sappia, cosa si rompe davvero quando va male e come si torna indietro. C'è anche il file che tiene il sito in «manutenzione» per giorni, e come si cancella. In una frase: gli aggiornamenti automatici non sono uno ma quattro — core minore (attivo da sempre), core maggiore, plugin e tema, e quelli del pannello del tuo hosting, che è il più delle volte la causa. Le costanti in wp-config.php non li fermano tutti. Quando un aggiornamento va male, il primo sospetto è il plugin incompatibile e il primo intervento è rinominare la sua cartella via FTP. E se il sito resta bloccato in manutenzione, si cancella il file .maintenance. La confusione nasce dal fatto che «aggiornamento automatico» significa tre cose diverse, introdotte in momenti diversi. Nella documentazione ufficiale è scritto così: da WordPress 3.7 le versioni minori e di sicurezza si applicano da sole, in background, senza che tu debba fare niente («non devi muovere un dito», dice il testo). Per il resto bisogna arrivare al 2020. Il 5.5 introduce l'aggiornamento automatico di plugin e temi, ma spento di default e acceso uno per uno dalla schermata dei plugin. Il 5.6 aggiunge la possibilità di attivare l'aggiornamento automatico anche per le versioni maggiori del core, con una casella nella schermata Aggiornamenti (l'annuncio ufficiale su Make WordPress Core). Quindi: minori sì da sempre, maggiori e plugin solo se qualcuno li ha attivati. Questa è la parte ch
Short answer: use a delayed task queue for webhook delivery and retries; add cron only when a periodic trigger needs to enqueue work. For a media SaaS sending a weekly customer digest, that split makes recovery observable instead of turning a missed callback into a guessing game. The before picture is familiar: a request handler calls a customer URL, waits, and then someone adds a timer, a cron expression, and a second database table to cover failures. The after picture is smaller. The request writes a delivery record, a queue message carries the delivery ID and its next-attempt time, and a worker owns retries. A cron job, if you need one, only seeds the weekly batch. Each delayed message can carry its own payload and delay. That is a better match for a webhook than cron, where the schedule is the primary object and the task context has to be reconstructed elsewhere. A retry for customer acct_42 can wait 30 seconds, then five minutes, without creating a new schedule for every failure. In a real weekly digest, I would write the delivery row first, commit the customer URL and a content hash, and enqueue only after that transaction is durable; if the process dies between those two moments, a small outbox poller can publish the same delivery ID, while a unique constraint prevents two workers from sending the same attempt. That extra step sounds fussy until a deploy lands between “database commit” and “HTTP send.” Keep it boring. Keep the message small. The delay limit is seven days and the payload limit is 256 KB. Store the digest body, recipient preferences, and provider response in your database; enqueue an ID, attempt count, and a little metadata. Retention tops out at 30 days, and acknowledging a message removes it, so the queue is not a Kafka-style replay log. That model also gives operations a clean recovery path: inspect the delivery row, requeue its ID, and let the same worker perform the attempt. No hidden timer is involved. Start with an idempotency key derive
My notes used to be where ideas went to die. Obsidian was my beautiful, over-organized graveyard. Claude Code was my brilliant intern who forgot everything after every shift. Then I wired them together and stopped taking notes entirely. My stack started taking them for me. This is not another "second brain" aesthetic post. This is the duct-taped, actually-working memory system that runs my dev life. Here is what was happening before: Obsidian knew everything I had thought. Old meeting notes, half-baked ideas, that snippet from 2022 I swear I would need later. Local, fast, mine. But dumb. It couldn't do anything. Claude Code could do everything I wanted. Write code, refactor, ship features, run tests. But it had the memory of a goldfish on espresso. Every new session was "Hi, who are you and what is this codebase?" I was the human API between them. Copying context from Obsidian into Claude. Copying what Claude did back into Obsidian. I was a very expensive clipboard. So I stopped being the clipboard. Three pieces. No vector database, no fancy SaaS, no $20/month AI wrapper that will die in 6 months. 1. Obsidian Vault as the Source of Truth ~/vault. It's just Markdown. No database, no lock-in. Structure: /00-inbox/ -> auto-fetched stuff lands here /01-projects/ -> active builds, each with a CLAUDE.md /02-memory/ -> the Memory Tree - people, decisions, bugs /03-docs/ -> docs Claude actually reads 2. Claude Code with CLAUDE.md CLAUDE.md that Claude reads on startup. It's not a prompt. It's the operating manual. Mine looks like this: # Project: numbpilled-api - Stack: Bun + Hono + Postgres - Never run rm -rf, always use trash-cli - Before coding, read /02-memory/decisions.md - After coding, append what you did to /00-inbox/changelog.md 3. The Glue: A 20-line script that syncs them I have a hook that runs after every Claude session: echo "- $(date): $CLAUDE_TASK - files: $FILES_CHANGED - lesson: $LEARNED" >> ~/vault/00-inbox/changelog.md No TokenJuice. No embeddings. Just
The Problem with Single-Turn Prompts Context Pollution: The LLM mixes implementation details with missing assumptions. Hallucinated Logic: It invents non-existent methods or helper packages. Conversational Filler: Instead of pure, executable code, you get generic prose surrounding the snippet. In production B2B environments, single-turn prompts lack boundary control. To achieve deterministic, production-grade output, we need to treat LLMs as multi-stage execution engines. The Solution: 3-Stage Prompt Chaining Architecture [ Stage 1: Context Isolation ] ──► [ Stage 2: Blueprint Strategy ] ──► [ Stage 3: Strict Execution ] Stage 1: Context Isolation This stage establishes the operational perimeter without generating final code. It locks down: Language version, frameworks, and allowed libraries. Strictly forbidden patterns (e.g., no external dependencies, no mutable state). Input/output data schemas. Stage 2: Blueprint Strategy Before writing code, the LLM maps out the logical plan. It defines: Architectural patterns (e.g., Dependency Injection, Factory Pattern). Edge case handling (null values, timeout errors). Step-by-step pseudo-logic. Stage 3: Strict Execution The final step executes the plan with maximum constraint: Zero conversational prose or explanations. Pure, executable code or structured format. Embedded inline documentation and assertions. Real-World Example: SOLID Refactoring Chain Bash Act as a Principal Software Architect. Analyze the provided code module. Based on the violations identified in Stage 1, design an abstract interface hierarchy. Implement the refactored solution based strictly on the Stage 2 blueprint. Software Engineering: SOLID Refactoring, Jest/PyTest suites, SQL Index Optimization. B2B Marketing: 3-Step Cold Outreach Sequences, Search Intent Clustering. Visual Design: UI Dashboard Mockups, Studio Product Renders. We are live on Product Hunt today! You can grab the free Notion workspace and support the launch here: 👉 Download the Free No
Hi again 👋 In my last post, How to become an SEO (AI) specialist in the coming 2027 #2, I wrote that without understanding the mechanics of AI search there is no "AI SEO", only guessing. A lot of you asked me to go deeper. So today we open the hood 🔧 In this post I will explain, step by step, what happens between the moment a user types a question into AI Mode, ChatGPT or Perplexity and the moment an answer with citations appears on the screen. And, most importantly, where in that process your content wins or loses. Why an SEO needs to understand RAG The big picture: from question to answer Step 1: query understanding and fan-out Step 2: retrieval Step 3: reranking and fragment selection Step 4: generation, grounding and citations Not every AI searches the same way What this means for SEO in practice Myths I keep seeing on LinkedIn RAG stands for Retrieval-Augmented Generation. In plain words: the model does not answer only from memory. First it searches, then it reads what it found, and only then writes an answer based on it. Almost every AI search product works this way: Google AI Overviews and AI Mode, ChatGPT Search, Perplexity, Copilot, Gemini. The details differ, but the skeleton is the same. Why does it matter for us? Because classic SEO optimized for one moment: ranking a URL for a keyword. RAG has four moments where your content can drop out: the system never asks a question your page answers (fan-out), your page is not retrieved for that question (retrieval), your page is retrieved, but another fragment scores higher (reranking), your fragment is read, but the model does not cite it (generation). Ranking #1 helps with only some of these. That is why you can rank first and still be invisible in the AI answer 🤯 Before we go into details, here is the whole pipeline in one place. Every AI search system has its own version, but they all follow roughly these steps: Query understanding. The model reads the question, the conversation history and the context (lo
Short answer: process a large image import as one job with bounded concurrency, durable per-item results, observable progress, and cancellation. The deciding constraint is control: once thousands of originals are moving through compression and optimization, a loop of unrelated requests cannot clearly answer what finished, what failed, or whether work should stop. This matters in a media library. An editor can select the wrong folder, and the mistake may contain 12,000 files. A batch gives that import an identity. Rate limiting becomes scheduling inside the job, progress becomes a count over known items, and cancellation becomes a state transition rather than closing a browser tab and hoping. The before model is deceptively tidy: enumerate files, call an image processor for each one, then wait for Promise.all. It works in a small demo. Under a real import, it creates three separate ambiguities. First, transport success is not job success. If 7,430 images complete and the next request is rate-limited, the caller needs a durable record of the completed set and a policy for the remainder. Second, Promise.all reports completion or rejection from the viewpoint of one process; it does not provide a stable progress view to an editor, another service, or an alert. Third, stopping the caller does not express cancellation to work that has already been accepted. The after model is a small state machine. One submission creates a job and fixes the item count. Workers claim items only while the job is running. Each terminal item increments succeeded or failed. A status reader reports those counters. A cancellation request moves the job to cancelling, prevents new claims, and lets in-flight work reach a safe boundary before the job becomes cancelled. Picture it in one line: submit -> queued -> running -> completed, with a side exit from queued or running through cancelling to cancelled. Failure belongs to individual images unless the job itself can no longer proceed. That distincti
I run a small software company by myself. Claude Code agents play the engineers, QA, marketing and so on. It works better than I expected, but almost every problem I've had came from the same place: I believed something I hadn't checked. An agent's "done," a file the agents read, a doc that looked current. Here are five times that bit me, and what I do now. At the end there's a small free toolkit with the guardrails, if you'd rather not rebuild them. My agents each have a role file. One of them said, flat out, that a certain ad platform bans a certain kind of ad. I never tested that. Nobody did. I traced it back through git log -p --follow and it showed up in the file's first commit as a guess. After that it got cited in review after review. Each review quoted the one before it, not the platform's policy. It got as far as influencing whether I'd rename something. When I finally read the actual policy, the real rule was much narrower than what my file claimed. Now anything in a role file about the outside world (platform rules, vendor limits, marketplace requirements) counts as a guess until someone points me to the source. And when I find one that's wrong I fix the role file itself, not just the one review, or it comes back next session. I asked an agent to draft listing copy for one product and told it to leave everything else alone. It said it was done and only mentioned the one file. I ran git diff anyway. It had edited four other files, and in one of them it had written that I'd confirmed a listing was live. I never said that. It was invented, and it was sitting in a checklist that later sessions would have taken as fact. So now, every time an agent says it's finished: git status git diff --stat That's the whole repo, not just the files I assigned. Out-of-scope edits get reverted, not cherry-picked. And if agent output says "the user confirmed X," I don't believe it unless X is actually in the conversation. An agent was refreshing some status data and ran one of
Instead of setting a font size and overriding it at several breakpoints, you can let text scale smoothly with the viewport. CSS clamp() makes this a one-line declaration, with a floor and a ceiling so the text never becomes too small or too large. h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); } clamp(min, preferred, max) returns the preferred value, but never lower than min or higher than max. Here the heading is never smaller than 1.75rem (28px at the default size) or larger than 3rem (48px), and in between it grows with the viewport width. To scale from a minimum size at a minimum viewport width to a maximum size at a maximum viewport width, the preferred value is a rem offset plus a vw slope. With size in px and viewport in px: slope = (maxSize - minSize) / (maxViewport - minViewport) intercept = minSize - slope * minViewport preferred = intercept (in rem) + slope * 100 (in vw) Example: 16px at 320px to 24px at 1200px slope = 8 / 880 = 0.00909 -> 0.909vw intercept = 16 - 0.00909 * 320 = 13.09px = 0.818rem font-size: clamp(1rem, 0.818rem + 0.909vw, 1.5rem); A generator does this arithmetic for you. Use rem (not px) for the minimum and maximum so the text still respects the user's browser font-size setting. Mix a rem term into the preferred value. A pure vw value ignores browser zoom, and WCAG requires text to be resizable up to 200%. Test by zooming to 200% and confirm the text gets larger. Fluid spacing: padding: clamp(1rem, 4vw, 3rem). Fluid widths: width: clamp(280px, 90%, 720px). Fluid line length and gaps in card grids. Set a scale, not one-offs Define a small set of fluid sizes as CSS variables (--step-0, --step-1, --step-2) and reuse them across your headings and body text for consistent typography. It returns a value that scales with a preferred expression but stays between a minimum and maximum you define. Not on its own, because it ignores browser zoom. Combine vw with a rem value inside clamp() so text remains resizable. Yes, all modern browsers
Nodejs Queue Publish for Offline Users: 12-Minute Live Poll Notifications Short answer: in a Nodejs-style service, queue the result before you publish it so offline users still get notified. The live channel is an acceleration path; the queue and durable record are the delivery contract. A B2B SaaS session may have 4,000 participants answering within 12 minutes, including browsers that disappear during the session. That ordering is the whole design. The useful question is not “can the server publish?” It is “what evidence proves that each intended recipient can obtain the event after reconnecting?” The invariants are a stable event id, deduplication, a reconnect cursor or durable inbox, and retries that cannot delete the only copy. Option Guarantee Failure boundary Direct request publish Low latency Crash can lose the event Queue first, then fan out Replayable work Needs idempotency and retention Shared session transcript Easy replay No per-user unread state Per-recipient inbox Auditable offline recovery More writes and cleanup For a user-specific result, I choose the per-recipient inbox. A shared session log can supplement it, but should not carry the entire delivery promise. The poll-closing request validates the result, assigns an event id, creates inbox entries, and enqueues a fan-out job in one transactional boundary. A worker publishes to connected clients and records attempts. The broker is replaceable; ordering and idempotency are not. def close_poll(tx, queue, event, recipient_ids): tx.insert_event(event.event_id, event.session_id, event.payload) for recipient_id in recipient_ids: tx.insert_inbox(recipient_id, event.event_id, "pending") tx.commit() queue.enqueue({"event_id": event.event_id}) def fan_out(store, live_connections, job): for row in store.pending_inbox_rows(job["event_id"]): envelope = {"id": row.event_id, "type": "poll.closed", "data": store.event_payload(row.event_id)} if live_connections.send(row.recipient_id, envelope): store.mark_delivered(
Table of Contents 0. What Does This Article Answer Next? 1.1 Atomicity 1.2 Visibility and Ordering 2.1 Layers 2.2 End-to-End Path from Write Lock to Read Lock 2.3 Guarantees at the Runtime / Language Implementation Layer 2.3.1 Atomicity 2.3.2 Visibility and Ordering 2.4 Guarantees at the Hardware Layer 3.1 Layers 3.2 End-to-End Path from Write Lock to Read Lock 3.3 Guarantees at the Runtime / Language Implementation Layer 3.3.1 Atomicity 3.3.2 Visibility and Ordering 3.4 Guarantees at the Hardware Layer 4. CPython: Why Is There No Read-Write Lock in the Standard Library? 5.1 Who Gets In? — Atomically Maintaining Reader / Writer State 5.2 What Happens on Conflict? — Park / Wakeup 5.3 Why Can a Later Reader See an Earlier Writer's Data? 6. How ReadWriteLock and Mutex Relate 7. Next: AQS / AQLS — Java's Unified Synchronizer Framework The previous article ended by returning to Mutex: it protects an entire critical section, but it allows only one execution unit to enter at a time, regardless of whether that unit reads or writes. If two threads only read shared state, they do not need to block each other: Thread A Thread B read counter read counter A read-write lock refines Mutex by distinguishing Readers from Writers: Read + Read → concurrent Read + Write → exclusive Write + Write → exclusive This article continues with the same two examples: counter++ to see how the Write Lock provides Atomicity; counter + ready to see how Write Lock → Read Lock establishes Visibility and Ordering. As before, we start with the language-level rules, then trace how the JDK, HotSpot, and the CPU implement them. Java's ReadWriteLock defines the Reader / Writer boundary directly: “The read lock may be held simultaneously by multiple reader threads, so long as there are no writers.” It also states: “The write lock is exclusive.” Reads may therefore proceed concurrently, while writes remain exclusive. Use the same counter++ example: ReentrantReadWriteLock rw = new ReentrantReadWriteLock(); Loc
From the Streaming CDN team. The original, kept up to date, is at streaming-cdn.ewin888.com/guides/obs-whip-webrtc-live-streaming. WHIP (WebRTC-HTTP Ingestion Protocol) lets an encoder publish over WebRTC with a single HTTP request. OBS Studio supports it natively, so a stream can go from OBS to viewers' browsers over WebRTC end to end, in the low hundreds of milliseconds, instead of the several seconds that segment-based delivery such as HLS adds. OBS publishes to your ingest domain, a publish point and a stream name: https:// / / # example https://push.example.com/live/camera-01 The publish point defaults to /live; the value configured in the console is authoritative. The stream name is the last path segment and is case-sensitive. Streams published at the same time on one ingest domain need different names. Viewers watch through a playback domain bound to the ingest domain the stream was published to. The ingest domain has active DNS and TLS. If source IP allowlisting is on, add the publisher's public egress IP (a private LAN address is not enough). If Stream Key authentication is on, create a key for this exact ingest domain. The secret is shown once. Use a current OBS Studio release that includes WHIP. Open Settings → Stream and enter: OBS field Value Service WHIP Server The full WHIP URL, including publish point and stream name Bearer Token The ingest domain's Stream Key (empty only when Stream Key authentication is off) OBS sends the Bearer Token as Authorization: Bearer . Treat Stream Keys as passwords: never put them in public URLs, screenshots, repositories or shared OBS profiles. Setting Value Why Video encoder H.264 (hardware or software) Broad browser support Rate control CBR Predictable bandwidth 720p bitrate 1.5–2.5 Mbps Adjust for motion and source quality 1080p bitrate 3–6 Mbps Adjust for motion and source quality Keyframe interval 1 second Faster first frame and recovery H.264 profile Main or Baseline Avoids unsupported decoder features B-frames 0 L
In early 2024 an operations director at a manufacturing customer told me something I repeated to my own team for months afterward. She said it politely, which somehow made it worse. "Our approval chain is slow." So we measured it. The process itself — validation, routing, the countersign steps — averaged under four minutes of system time. End to end, the average was thirty-one hours. Twenty-seven of those hours were spent waiting for a person who did not know they were waiting. The workflow was never slow. The notification was invisible. And nobody on my team could tell her which of the two was true, because nothing in the platform could answer the question was this person notified, and did they see it? That was the day I stopped thinking of notifications as a feature. Look at how a low-code platform usually introduces notifications. There is an automation node with a checkbox labeled something like send notification on record created. You tick it, you pick a template, you move on. Notice what is missing. There is no notification in the data model — no table, no record, no owner column, no delivery status, no receipt timestamp. The message is not an entity. It is a byproduct, written to a channel and then forgotten, somewhere between a log entry and a print statement. That is why the conversation above is so common. A byproduct cannot be queried, reconciled, retried, or audited. It cannot even be counted. So when she asked how many approvers had been told about the pending item, the honest answer was that we did not know — and that we had no design that could ever know. Everything worth doing here starts with one decision: give the notification an identity. When we rewrote our notification layer, the first change was small and structural. Sending a notification returns an identifier. A notification with an ID can be listed, filtered by recipient — so each person has an inbox rather than a stream — marked as sent, read, or deliberately superseded, archived under a re
The fundamental problem in threat intelligence is latency. Organization A detects a novel prompt injection. Organizations B, C, and D won't see it until someone writes a blog post, a vendor updates a signature, and a SIEM rule gets deployed. In AI security, that latency window is measured in hours — and attacks iterate faster than that. I've been building AegisGate — an open-source AI security platform — and we just shipped a federated threat intelligence system that closes that gap. This post is about the architecture and the hard design decisions. AI attacks are distributed. An attacker hits Organization A with a novel prompt injection today, and hits Organizations B through Z tomorrow. Traditional threat intel sharing has too much friction: Sharing raw content is a non-starter. Prompts and responses contain PII, trade secrets, internal business logic. Nobody wants to email those to a vendor. Signature feeds are slow. By the time a TI vendor writes a rule, ships it, and your SIEM ingests it, the attack has already been used on 50 more targets. Trust is binary. Traditional TI either trusts a source or doesn't. There's no concept of "this source has been reliable lately, but let's verify before we act." We needed something where the first organization to see an attack instantly benefits every other organization — without sharing content, without a central authority, and without blind trust. When AegisGate detects a threat, it creates an Indicator of Compromise (IOC). But we don't share the raw attack payload. We compute a SHA-256 fingerprint over the canonicalized detection struct — capturing the technique, pattern match, and confidence without any original content. Two organizations can independently detect the same novel attack, produce the same fingerprint, and confirm they're seeing the same thing — without either knowing what the other's actual prompt said. Instances communicate via HTTP gossip. Every instance exposes a /manifest endpoint listing its signed IOC