Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Cleaning OCR Noise from Phone-Photo VIN Captures Before Validation

Buyers photograph the dash plate or door sticker and expect a free VIN tool to "just work." OCR output is not a VIN. It is a noisy string: letter O for digit 0, spaces in the middle, random punctuation from glare, and sometimes an extra VIN label glued to the front. If you run check-digit math or call NHTSA on that raw text, you get false invalids and wasted upstream calls. This post is a practical OCR cleanup pipeline that runs before charset rules, length guards, and DecodeVinValues -- without silently inventing a different vehicle. Typical messy captures: VIN: 1HGCM82633AOO4352 (O/0 confusion) 1HGCM 82633 A004352 (spaces from line breaks) IHGCM82633A004352 (I for 1) 1HGCM82633A004352. (trailing junk) S/N 1HGCM82633A004352 CA (labels and state codes) ISO VIN rules reject I, O, and Q in a true VIN. OCR often introduces those letters by misreading 1 and 0. Cleanup must be deliberate: fix likely illegal confusions, then validate. Do not keep mutating legal letters until the check digit passes. Uppercase and strip known labels (VIN, S/N, NO.) Remove whitespace and common separators Map illegal OCR letters I / O / Q to their usual digit lookalikes Drop remaining non-VIN characters Enforce length 17 and charset (still no I/O/Q) Optional check digit Only then call NHTSA A common mistake is remapping legal letters like B, S, or Z on every capture. Those characters are valid in real VINs. Blind global substitution can change a correct read into a different vehicle identifier. Keep aggressive maps behind an explicit "Did you mean?" confirm step. const LABEL = /\b(VIN|V\.?I\.?N\.?|S\/N|SERIAL|NO\.?)\b[:\s-]*/gi; const SEPARATORS = /[\s\-._:/\\]+/g; const TRAIL_JUNK = /[^A-HJ-NPR-Z0-9]+$/i; // Only map characters that are never legal in a VIN const ILLEGAL_OCR_MAP: Record = { O: "0", Q: "0", I: "1", }; export type OcrCleanResult = | { ok: true; vin: string; applied: string[] } | { ok: false; reason: "empty" | "length" | "charset"; raw: string }; export function cleanOcrVin(ra

Dev
Interesse
dev.to

check this out!!!

I was tired of SOS apps failing in dead zones, so I built a pure Dart, 100% offline TFLite crash detection engine. Bhagya Prasad Dannina Jun 28 #showdev #flutter #machinelearning #opensource 31 reactions comments 1 min read

MobileDevIA
Interesse
dev.to

Securing a Private VM with Azure Firewall, Bastion, NSG, and NAT Gateway

Introduction Exposing a VM directly to the internet is one of the easiest ways to widen your attack surface. In this lab, I built an architecture where a web server has no public IP yet is still reachable through a controlled entry point: Azure Firewall. Architecture overview The flow, as shown in my diagram: Users resolve DNS to the Azure Firewall's public IP. Step 1: Deploy the network security stack. I deployed everything into one resource group (FW-rg, Central US). The deployment created: Resource Virtual Network Purpose: Network boundary and subnets 2 Azure Firewall Purpose: Public entry point and traffic filtering Firewall Policy Purpose: Centralized rules Azure Bastion Purpose: Secure browser-based SSH NAT Gateway Purpose: Outbound-only internet access Public IPS Firewall The deployment page showed Firewall and Bastion still provisioning while the network, NAT gateway, policy, and IPs were already OK. Firewall and Bastion take the longest, so be patient. Step 2: Create the private VM I created an Ubuntu VM (FW-VM) with no public IP, placed in the workload subnet protected by the NSG. Step 3: Connect through Bastion Instead of opening port 22 to the internet, I connected from the portal using Bastion. The login banner showed the source was 10.0.1.4, an internal address from the Bastion subnet. The admin never touches the VM over the public internet. Step 4: Install a web server (My first attempt was sudo pt update, which failed with "command not found." Typos happen!) The install output showed Apache enabled and running. I replaced the default Ubuntu page with a simple heading to prove the traffic path works. Step 5: Configure the NSG The NSG rules follow least privilege: Allow TCP 80 for web traffic Browsing to the firewall's public IP returned my custom page, served from a VM that has no public IP of its own. The firewall is the only door. Key lessons Layer your defenses. Firewalls and NSG enforce policy at different levels. Private doesn't mean unreachable.

InfraDevSegurança
Interesse
dev.to

RKE2 Homelab Storage: Rook-Ceph & CloudNativePG (The Garage & Cabinets )

Episode 5 of the homelab build series. Terraform poured the foundation, Ansible and RKE2 framed the walls, Kyverno and friends wired the alarms, and Tekton and Harbor built the workshop out back. This one is about the floor everything else stands on: Rook-Ceph as the garage that holds whatever you throw at it, and CloudNativePG as the filing cabinets for the stuff that needs a proper label. The Ceph dashboard landing page: HEALTH_OK, 22 TiB raw, 6 OSDs up and in across three zones. SSO Login with keycloak and Oauth2-proxy using google and Github social login. signed in with google SSO and keycloak I was proud of a cluster that was lying to me For a few months I told anyone who'd listen that my data was safe. Six Ceph OSDs, three datacenters, every object stored three times. It sounded great when I said it out loud. Then I actually looked at where those OSDs lived. Each one was a 100 GiB slice of the same local disk that held the VM boot volumes on that host, etcd's included. I'd built three copies of my data on three copies of the same weak spot, and I'd been bragging about it. Ceph kept filling up, and I kept blaming Ceph. It wasn't Ceph. I'd put the garage, the filing cabinets and the house wiring on one shelf and hoped nobody leaned on it. So this episode is the fix, and the story of what the fix taught me. It's the least exciting room in the house. Nobody comes round to admire your PVCs. But every episode after this one (the MLOps stack, the lakehouse, Kubeflow) is a tenant that needs somewhere to put things, and tenants don't move into a building without floors. Two floors, in the end. Rook-Ceph at the bottom gives the cluster block, file and object storage from one system. CloudNativePG sits on top of it for the one kind of data that deserves its own filing system: relational state. Here's how both are built, what moving onto real NVMe took, and the traps that taught me the difference between "replicated" and "safe". If you've been following along, the cluster

InfraDevLinux
Interesse
dev.to

How to Choose Between CSS, GSAP, Motion and Three.js for Website Animation

How to Choose Between CSS, GSAP, Motion and Three.js for Website Animation A button changes color on hover. A card expands into a modal. A product story pins sections while images move through a sequence. A liquid surface reacts to the pointer. Calling all four of these things “website animation” hides the decision that actually matters. CSS, GSAP, Motion and Three.js can all participate in a website's motion system, but they operate at different layers. CSS is excellent when animation belongs to styling and interface state. Motion fits naturally when movement follows React state, layout or gestures. GSAP becomes attractive when timing and orchestration are the difficult parts. Three.js belongs to a different rendering model entirely: scenes, cameras, meshes, materials and shaders rather than ordinary DOM elements. The useful question is therefore: What kind of thing am I animating, and what is making the animation difficult? That question usually narrows the choice quickly. Choose When the problem is mainly CSS States, hover/focus feedback, simple entrances and self-contained transitions Motion React state, component enter/exit, layout changes, gestures and UI-oriented motion GSAP Precise sequences, scroll choreography, timelines, SVG or imperative multi-element animation Three.js WebGL scenes, shaders, particles, 3D objects and graphics that should not be DOM elements This is not a ladder from “basic” to “advanced.” A well-built marketing page might use all four. Its buttons could use CSS, its mobile navigation could use Motion, its scroll narrative could use GSAP and its hero canvas could use Three.js. The architecture should follow the interaction rather than forcing every effect through whichever package happens to be installed already. Suppose a button needs to move upward by two pixels and change background color on hover. Installing an animation library for that interaction does not make it more sophisticated. It gives a small state transition another runtim

Dev
Interesse
dev.to

How I Build Reliable Automation Systems with n8n (That Don’t Break in Production)

After 6+ years building automation systems, I’ve learned one hard truth: Most automations work great in demos… and fail in production. Here’s what actually matters when building reliable workflows with n8n (and similar tools): Error Handling is Not Optional Retries with backoff Clear error paths Idempotency (so workflows can safely re-run) Keep Business Logic Explicit Make the workflow readable for future you (or your teammates). Monitoring > Building Log key steps and set up alerts for failures. AI is Powerful — But Needs Guardrails I mainly work with n8n, Make, and Zapier, focusing on production-grade automation for finance and operations processes. What’s the biggest lesson you’ve learned while building automations?

Dev
Interesse
dev.to

Segurança e governança em infraestrutura - IAM com menor privilégio na prática

1. O problema: privilégio excessivo é a norma, não a exceção Nos dois artigos anteriores desta série, vimos como evitar que segredos vazem em texto puro e como bloquear recursos inseguros antes do apply com Policy as Code. Fechamos a série com um problema mais silencioso, porque não gera erro nem alerta: permissões de IAM concedidas com mais alcance do que o necessário. Uma role de aplicação com s3:* quando só precisa de s3:GetObject em um bucket específico. Um usuário de CI com AdministratorAccess porque "assim resolve na hora e ninguém precisa pedir mais permissão depois". Nada disso quebra nada — até o dia em que uma credencial é comprometida, e o raio de ação do atacante é exatamente do tamanho da permissão que ninguém restringiu. Actions com wildcard: "Action": "s3:*" ou "Action": "*" em vez de listar exatamente as operações necessárias (s3:GetObject, s3:PutObject). Resources com wildcard: "Resource": "*" quando a intenção real era restringir a um bucket ou prefixo específico. Roles compartilhadas entre serviços diferentes: uma única role "backend-role" usada por várias Lambdas/serviços com necessidades distintas, acumulando permissões de todos ao longo do tempo porque é mais fácil reaproveitar do que criar uma nova. Credenciais de longa duração: access keys de usuário IAM sem rotação, em vez de roles assumidas temporariamente (via sts:AssumeRole) ou identidades federadas (OIDC em pipelines de CI). Permissões concedidas e nunca revisadas: um acesso liberado para resolver um incidente pontual ("dá acesso de admin no S3 pra debugar isso rápido") que nunca é removido depois. Least privilege na prática raramente é "acertar de primeira" — é um processo iterativo: Comece restritivo, não permissivo. Ao criar uma role nova, liste apenas as actions que o código efetivamente chama, mesmo que isso signifique testar e ajustar algumas vezes até funcionar. Use os logs de acesso reais para calibrar. Ferramentas como o IAM Access Analyzer (AWS) geram recomendações de política

SegurançaInfraDev
Interesse
dev.to

Building a Minimal MCP Server with Scoped Tools and Per-Client Boundaries

I have been building an MCP server called Bridgekit, and the part that took the longest was not exposing tools. Exposing tools is easy. The hard part was making sure a tool could only ever touch what a specific client was allowed to touch, and being able to prove afterward what it did. This tutorial walks through that technique on a minimal server so you can lift the pattern into your own. The Model Context Protocol lets a host (say, a Claude client) discover and call tools you define. The naive version of this is dangerous: you hand the model a read_file tool with a path argument and it will happily read anything the process can read. What we want instead is a server where every tool has a strict input schema, every call is checked against a per-client boundary, and every call is logged. There are three things I want you to take away, independent of my project: Tools declare narrow, typed input schemas so bad calls fail before your code runs. Authorization is a boundary the tool cannot escape, not a suggestion in a prompt. Every effectful call leaves an audit record. Let me build a tiny server that does all three. We use the official TypeScript SDK and Zod for schemas. npm install @modelcontextprotocol/sdk zod Here is the key structural decision: I never let a tool receive a raw filesystem path. Instead a client is bound to a root directory, and the tool takes a path relative to that root. The boundary lives in code, not in the argument. import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { z } from "zod"; import { promises as fs } from "node:fs"; import path from "node:path"; // Per-client boundary. In a real server this comes from auth, // not a constant. The point is that the tool closes over it. interface ClientContext { clientId: string; root: string; // absolute directory this client may touch canWrite: boolean; // scope: read-only vs read-write } const a

DevIA
Interesse
dev.to

"Stop swapping SSH keys for two GitLab accounts. Use host aliases"

Two GitLab accounts on one laptop, and git push to the work repo fails with Permission denied (publickey), or authenticates as the wrong account. The usual fix is swapping keys by hand: rename ~/.ssh/id_rsa, or re-add the other key before every push. It works until you forget. The rule: the repository's remote URL should select the SSH identity. One host alias per account, one key per alias, nothing to switch by hand. Scope: gitlab.com, one work and one personal account, Windows and macOS. Not CI keys or key rotation. Both accounts live on the same server, so both remotes look the same to SSH: git@gitlab.com:company/project.git git@gitlab.com:username/project.git Nothing in either URL says which account you mean. SSH connects to gitlab.com as user git both times. If your agent holds both keys, SSH can offer more than one, and GitLab authenticates whichever it accepts first. The model behind key swapping is "SSH has one identity, and I change it before I push." That turns the active account into hidden global state. Nothing in the repository records which account it belongs to, so every push depends on what you did last. Treat it as routing, not switching. The repository names an alias, the alias names a key, and the key belongs to one account. git pull ↓ origin = git@gitlab-work:company/project.git ↓ SSH config: Host gitlab-work ↓ IdentityFile ~/.ssh/id_gitlab_work ↓ local proof made with the private key ↓ GitLab verifies it with the public key on the work account gitlab-work is not a DNS hostname. It is a name in your SSH config that maps to gitlab.com plus one specific key. Two facts keep this model honest: The private key never leaves your machine. SSH uses it locally to produce a proof (a signature). GitLab checks that proof with the public key you registered. ssh-agent is optional. It keeps an unlocked key available locally so you don't retype the passphrase. It does not send the key anywhere. 1. Generate two keys and load them. Give each a passphrase. The -C c

DevInfra
Interesse
dev.to

Nigerian Developers: Stop Building AI Demos. Start Building Useful Things.

There's a lot of AI experimentation happening right now. Chatbots. RAG applications. AI agents. Image generators. Voice assistants. Cool demos everywhere. But here's the question I keep coming back to: How many of these actually solve Nigerian problems? Nigeria's current National AI Innovation Challenge is interesting precisely because it pushes developers in that direction. The challenge requires participants to build a working solution integrated with N-ATLAS, Nigeria's open-source multilingual AI model. N-ATLAS gives developers an interesting starting point. According to the official challenge documentation, N-ATLAS supports: Yoruba And the challenge has three major problem areas: Developer infrastructure This is where things get interesting for developers. Developer infrastructure You could build: SDKs Basically, tools that make it easier for other developers to work with N-ATLAS. Voice-first applications This one has serious potential. Think: Voice → Nigerian language → AI → useful response The official challenge specifically mentions possible channels such as WhatsApp voice notes, USSD-based voice applications, IVR systems, and low-bandwidth mobile apps. That's a very different problem from building another web chatbot. Sector-specific AI Education. Agriculture. Healthcare information. Legal/civic literacy. Financial literacy. These are areas where context matters. A generic model may know a lot. A model adapted properly for a particular Nigerian use case could potentially be much more useful. The bigger lesson for beginners You don't necessarily need to become an AI researcher tomorrow. But if you're learning software development, you should start developing the habit of asking: What problem am I solving? before: What framework am I using? That's a much healthier way to learn. Learn Python. Build something. Learn APIs. Connect something. Learn Git. Collaborate. Deploy the project. Get feedback. Build again. That's much more useful than having 14 unfinished tu

IAMobile
Interesse
dev.to

Panduan API Rate‑Limit: Membangun Local Proxy dengan Token Bucket

Panduan API Rate‑Limit: Membangun Local Proxy dengan Token Bucket Banyak layanan API menerapkan rate limit untuk melindungi server dari overload. Ketika aplikasi Anda melebihi batas, respons 429 Too Many Requests muncul dan proses terhenti. Solusi klasik adalah retry dengan exponential backoff, tetapi pendekatan itu masih membiarkan burst request sampai ke upstream. Pendekatan yang lebih baik: local proxy yang menampung request, mengatur keluar secara ritmis, dan menyimpan cache respons. Artikel ini menunjukkan arsitektur dan implementasi minimal menggunakan Python (FastAPI + httpx). Client Local Proxy Token Bucket Request Queue Retry Manager Cache Store Upstream API Penjelasan alur: Client mengirim request ke Local Proxy (bukan langsung ke upstream). Proxy memeriksa Token Bucket: apakah token tersedia? Jika ya, request dilepaskan ke upstream; jika tidak, request masuk Request Queue. Retry Manager menangani respons 429 dari upstream dengan membaca header Retry-After dan menambahkan jitter. Cache Store menyimpan respons GET yang berhasil; request identik berikutnya disajikan dari cache tanpa menghitung ke bucket. # proxy.py import asyncio, time, hashlib, json from collections import deque from fastapi import FastAPI, Request, Response, HTTPException import httpx app = FastAPI() UPSTREAM = "https://api.example.com" RATE = 10 # request per second BURST = 20 # bucket capacity CACHE_TTL = 300 # seconds class TokenBucket: def __init__(self, rate, burst): self.rate = rate self.burst = burst self.tokens = burst self.last = time.monotonic() self.lock = asyncio.Lock() async def take(self): async with self.lock: now = time.monotonic() self.tokens = min(self.burst, self.tokens + (now - self.last) * self.rate) self.last = now if self.tokens >= 1: self.tokens -= 1 return True return False bucket = TokenBucket(RATE, BURST) queue = deque() cache = {} async def forward(req: Request): key = f"{req.method}:{req.url.path}:{req.query_params}" if req.method == "GET" and key in cache: cac

Dev
Interesse
+2 fontes
dev.to

Building a Resilient Vision-Guided Desktop RPA Engine in Python (Without $15k/yr Enterprise Licenses)

Building a Resilient Vision-Guided Desktop RPA Engine in Python (Without $15k/yr Enterprise Licenses) If you work in finance, logistics, healthcare, or government, you know the drill: critical business data lives inside a Windows 98-era WinForms application, an AS400 terminal emulator, or a locked-down ERP with no REST API, no CLI, and no database access. Historically, engineering teams faced two bad choices: Pay $10,000–$25,000/year per bot for commercial RPA vendors (UiPath, Automation Anywhere, Microsoft Power Automate Desktop) just to click three buttons and scrape an input box. Write brittle pyautogui.click(x=420, y=680) scripts that break the moment a user changes display scaling from 100% to 125%, moves the window, or triggers an OS font rendering update. In this guide, we will build a local, vision-guided desktop automation engine in Python. It runs completely offline, uses localized OCR and OpenCV for fuzzy spatial anchoring, self-heals when UI targets shift, and executes actions in sub-second cycles. Coordinate-based scripting fails because modern desktops are dynamic environments. Three core issues destroy brittle scripts: DPI Awareness & Scaling: Windows display scaling (125%, 150%) modifies rendering coordinates unpredictably across different client machines. Dynamic Canvas Re-renders: Modern multi-threaded apps render UI elements asynchronously; if a frame renders 15ms late, a blind coordinate click hits dead space. Vendor Rent-Seeking: Enterprise RPA tools solve this by injecting heavy accessibility hooks into UI trees (UIA, MSAA), but charge recurrent enterprise fees and lock your business logic into proprietary, closed formats. Instead of trusting fixed coordinates or proprietary UI trees, we treat the screen like a dynamic visual field: Capture: Instant window or full-screen buffer via native OS memory. Extract: Run local Tesseract OCR and OpenCV edge-detection directly on CPU memory (zero cloud latency, zero egress risk). Anchor: Resolve targets v

Dev
Interesse
dev.to

Unit testing a Node.js coupon route without Jest

The narration in these videos is synthesized. That is a convenience, so a finished script can be recorded without a studio session. The claim, the code, the order of the lectures, the corrections, and the decision to publish are human. The voice is not the author. This is one finished course: seven short videos, one coupon program, Node's built-in test runner (node:test). No Jest. The claim is that making the program unit-testable forces the production code into a better shape. The tests are the evidence. The diff that matters is the production diff. priceWithCoupon takes a subtotal, a coupon, and a time. It returns an error or a total. It does not open a database and it does not write an HTTP response. applyCoupon still does the I/O, but the database and the clock are arguments. A test can pass a fake database and a fixed date. Ten percent off 100, on a date when the coupon is valid, is 90. That assertion belongs to the price function and stays there. Everything after that lecture is a new boundary, not a second check of the same 90. The price function. The rule is extracted from the route. The test fails on the old shape, where the database and the clock are hidden, and passes when they are arguments. The route, with a fake database. The test calls applyCoupon with a request body and a fake db. It asserts the status code and that the code SAVE10 was the one the route tried to load. SQLite. One real row. The assertion is still 90. The database is no longer a fake, and the price rule is unchanged. One inbound HTTP call. startCouponServer(db) listens on port 0. The test asserts that the coupon code arrived and that the status is 200. It does not assert the discount again. One outbound quote. shippingFor(total, quote) takes the quote as an argument. A total of 40 with a quote of 12 keeps 12. A total of 90 ships for 0. A failed quote is status 503, and the test does not call the network. Which test owns the failure. No new code. If 90 is wrong, the price test should fa

Dev
Interesse
dev.to

AI Hospital Workforce Management: How Intelligent Systems Are Reshaping Staffing and Resource Planning

Hospital staffing is not simply a scheduling problem. A hospital has to balance patient demand, staff availability, clinical skills, shift rules, overtime, leave requests, department requirements, and unexpected events at the same time. A schedule that looks efficient on paper can become impractical when emergency admissions increase, a specialist calls in sick, or patient volume changes faster than expected. This makes workforce management an interesting engineering problem for artificial intelligence. Instead of treating AI as a replacement for workforce administrators, modern systems can use forecasting, optimization, and decision support to help hospitals understand demand and make better staffing decisions. Research on U.S. hospitals has already identified staff scheduling and staffing-needs prediction as specific areas where hospitals are applying AI. A 2024 analysis of 2022 American Hospital Association data found that 18.7% of U.S. hospitals had adopted some form of AI, although adoption varied considerably by use case. The interesting question for developers is therefore not whether AI can generate a schedule. It is how to design a workforce management system that can operate reliably inside a complex hospital environment. Why Hospital Workforce Planning Is Difficult A hospital workforce system has to work with constraints that are very different from ordinary employee scheduling software. Consider a simplified staffing request for an emergency department: 12 nurses are required during a high-demand period A basic scheduling algorithm can assign people to available slots. A useful healthcare system has to understand why certain assignments are valid and others are not. This is where AI and optimization can complement traditional hospital information systems. The system can combine historical patient volumes, admission patterns, appointment schedules, department capacity, staff availability, qualifications, and operational constraints to produce a more infor

IA
Interesse
dev.to

A month of PulseWatch: billing, better setup and deliberately broken scripts

On 1 September, I wrote Who watches the watchdog? about the less glamorous work behind PulseWatch: monitoring its own watchdog, explaining scheduler delays and making sure the support link reached a real person. I’ve been quiet here since then. The project has been rather less quiet. Over the past month, I’ve worked on the interface, billing, terms and privacy pages, and a simpler way to connect an existing script. Yesterday, I deliberately failed, stalled and stopped disposable jobs to check that the alerts actually reached my inbox. That last part was particularly satisfying. A monitoring product ought to be able to demonstrate what happens when something goes wrong. For anyone new to the project: PulseWatch monitors unattended scripts and scheduled jobs from outside the system running them. Your job sends a /start, then a /success or /fail. A separate watchdog notices when expected work goes missing or a started run takes too long. The original motivation still holds: a script that never starts cannot report its own absence. One of the bigger September changes was bringing the landing page, dashboard, monitor details, documentation and admin screens into a consistent interface. The useful part was deciding what belonged at the top. When an account already has monitors, their health should come before the form for creating another one. When a job fails, the monitor page should show the current problem and recent run evidence before asking you to think about configuration. That’s obvious when written down. It wasn’t how every screen was arranged. Private ping URLs are also masked by default, with reveal and copy controls. They’re credentials: anyone holding one can send signals to that monitor. The same pass included browser-form security work, server-side validation and checks at narrow mobile widths. Long error messages and tokens are very good at finding the weak spots in a layout. It was a useful reminder that a UI refresh can improve how someone investigates a

Infra
Interesse
dev.to

The internet's root key rotates in five days. Your resolver may not be ready.

On October 11 — five days from this post — the most trusted key on the internet changes hands. KSK-2017, the key-signing key that has authenticated the DNS root zone since October 11, 2018, stops signing. KSK-2024 takes over. Eight years, to the day, and the entire trust chain of DNS runs through that swap. The schedule is not a rumor: it is IANA's own rollover page — published January 11, 2025, trust-building via RFC 5011 through the year, and on October 11, 2026, "the successor key is scheduled to sign the zone; the current key will not." If you run your own validating resolver, this post is for you. If you don't, it's still for you — because the failure mode when a resolver misses this window is beautifully silent: everything looks normal, and names stop resolving. DNSSEC chains trust from the root down: the root signs its DNSKEY set, your resolver holds a trust anchor — the public key it believes the root uses — and every answer below the root validates up that chain. The root zone's current key-signing key, KSK-2017 (key tag 20326), has been that anchor for eight years. The rollover is deliberately slow, because you cannot reboot the internet's trust: January 11, 2025 — KSK-2024 (key tag 38696) is published alongside KSK-2017 in the root's DNSKEY record set. Nothing changes; both keys are simply there. From ~February 2025 — resolvers implementing RFC 5011 (automated trust-anchor updates) start watching the new key. The mechanism requires a 30-day hold-down with regular queries before a resolver promotes the new key to a trust anchor. October 11, 2026 — KSK-2024 begins signing the root zone. KSK-2017 stops. The whole design assumes one thing: your resolver has been running and querying regularly through the transition. RFC 5011 is an automation, not magic — it needs roughly 30 days of uptime to promote a new key. A validator that was powered off for a month, an appliance that cached its anchors, a VM snapshot resumed after the hold-down window — any of them can

InfraSegurança
Interesse
dev.to

Digitising Smell: An Open Source Primer

Technological advancement often follows a recursive pattern: the creation of knowledge enables new tools, which automate manual processes, thereby freeing human capital to solve more complex problems. This cycle is not merely a history of convenience but the engine of societal transformation. Major social shifts—from industrialisation altering labour dynamics to information technology reshaping communication—are often the downstream effects of prior technological emancipation, not their initial cause. The mechanism is the externalisation of human capability. We model our innate faculties into reproducible, scalable systems: Fire externalised metabolic digestion. Writing externalised memory and narrative. The camera externalised vision, mastering the physics of light. The microphone externalised hearing, mastering the physics of sound waves. We didn't just digitise our biology; we transcended it. Today we can see a single atom and hear the echo of the Big Bang. But our chemical sense remains trapped in biology; subjective, unshareable, and unprogrammable. We lack a standard .scent file format, a universal olfactory sensor, or a device capable of broadcasting a smell profile as seamlessly as a speaker emits sound. Our primary instrument for chemical sensing remains biological: the human nose. Its output is a subjective, unshareable percept, or quale. Unlike the deterministic physics of light and sound, the mapping from a molecule's structure to its perceived odour is not defined by a simple, finite set of rules. This represents a profound explanatory gap in our scientific knowledge. The absence of a digital smell platform has measurable costs. Food waste is a trillion-dollar global problem, yet a refrigerator cannot tell you that milk is spoiling until you open the carton and smell it yourself. Industrial facilities rely on workers carrying handheld detectors to locate toxic gas leaks. Doctors screen for certain cancers using expensive, invasive imaging that could one

Geral
Interesse
dev.to

The Best Linear Alternatives for Teams That Outgrew Cycles

Introduction Most "alternatives to X" articles are written about tools people are unhappy with. This one is not. Linear is one of the best-built pieces of software in this category, its interface is genuinely faster than everything around it, and the team behind it has clearer taste than most of the industry. Pretending otherwise would waste your time. So the useful question is narrower: what are the specific situations where Linear is the wrong fit, and what should you use in each? There are four, and they are fairly predictable. We make FlowBoard, which is relevant to two of them and irrelevant to the other two. We will be clear about which. Every tool here had to be plausibly in the same conversation as Linear: fast enough that a developer will actually update a ticket, and opinionated enough to have a model rather than a configuration screen. That rules out most of the general work management category. Prices are from vendor pricing pages, September 2026, monthly billing unless stated. Linear's own reference points: Free with 2 teams and a 250-issue cap, Basic at $10 per user per month billed annually, Business at $16. Linear is built for an internal engineering team. Guest access exists but sits on the $16 Business tier, and the model assumes the people looking at your issues are the people working on them. Agencies and consultancies with five clients who each want to see their own work hit this immediately. Linear's keyboard-first design is a real advantage for developers and a real barrier for everyone else. If your designer, your ops person and your founder all need to file and track work, the thing that makes Linear fast for one group makes it opaque for the other. Linear tracks issues and cycles well. It does not have a first-class concept of a versioned release with generated notes for customers. Teams who ship versioned products end up maintaining the changelog somewhere else, which is exactly the kind of parallel system a good tool should remove. See re

Dev
Interesse
dev.to

Issuerd: a Keycloak-compatible IAM in Rust — one binary, 3,907 OIDC conformance checks, zero failures

If you've operated Keycloak in production, you know the tax: a JVM that wants gigabytes before it serves a single login, container startup measured in tens of seconds, and clustering that means Infinispan whether you like it or not. It's a great IAM — arguably the de-facto open-source standard — but the operational profile is the price you pay on every deploy. For the past three months I've been building issuerd: an identity and access management server that keeps the Keycloak model — realms, clients, roles, client scopes, protocol mappers, authentication flows, Admin REST API — and drops the operational tax. It's written in Rust, ships as one self-contained binary (the admin console, account console, and login pages are embedded), and it's open source under Apache-2.0. This is the launch post. I'll try to lead with proof rather than promises. Anyone can claim "OIDC compliant". issuerd runs the official OpenID Foundation Conformance Suite (release v5.2.4) in CI, the way it's meant to be run: 3,907 conditions verified across the Basic OP, Form Post OP, and Config OP profiles — zero failures, zero warnings. The suite runs pristine (unpatched JAR built in-docker from the pinned tag) in a hermetic TLS environment: isolated network, own root CA, no internet. Per-module results are checked into the repo, and the full evidence bundle is attached to every release. The discovery document advertises exactly what is implemented and tested — nothing more. If issuerd doesn't do something, it says so instead of failing creatively at runtime. "Compatible" is easy to write in a README. issuerd treats a live Keycloak 24.0 container as a test oracle: a dual-target suite runs the same protocol assertions against issuerd and Keycloak — JSON shapes, Admin API responses, error behavior — and every deliberate difference is documented. Existing OIDC clients and Keycloak-hardened operational knowledge transfer directly. To be clear: issuerd is not a rewrite or a fork. It's an independent im

Dev
Interesse
dev.to

Idempotent VIN Decode Handlers for Retries and Double-Clicks

Users double-click "Decode." Mobile networks drop mid-response and the client retries. Load balancers replay a POST. Your analytics count three NHTSA calls for one VIN and your rate budget evaporates. Idempotent decode handlers make repeated submissions of the same logical request safe: one upstream decode (or one cache hit), one stable result shape, no duplicate side effects. This is not the same as single-flight coalescing. Single-flight merges concurrent in-flight lookups. Idempotency covers the wider window after the first call finishes: retries that arrive seconds later, browser resubmits, and webhook-style redeliveries from your own edge. DecodeVinValues is read-only upstream, so the danger is not double-charging a card. The dangers are local: Burning NHTSA quota on identical VINs Logging three "successful" events for one user action Writing three audit rows or three marketplace "VIN verified" stamps Racing two writers that flip UI state from loading to ready twice Treat decode as a command with a key, even when the HTTP method is GET-friendly on the public API. Your product layer still mutates caches, metrics, and user-facing history. A good key is stable for the same user intent and different across different intents: type IdempotencyKey = string; // e.g. "decode:user:42:vin:1HGCM82633A004352:v1" export function buildDecodeKey(input: { userId: string; vinNormalized: string; schemaVersion: string; // bump when result shape changes }): IdempotencyKey { return `decode:${input.userId}:vin:${input.vinNormalized}:v${input.schemaVersion}`; } Normalize the VIN before keying (uppercase, strip separators). Do not key on raw paste text: "1HG... " and "1hg..." must collide. Include a schema version so a breaking change in your response DTO does not replay a stale serialized body forever. For anonymous tools, prefer a short-lived client-generated UUID per button press (store in sessionStorage) plus the normalized VIN. Double-click then shares one UUID; a later fresh clic

Dev
Interesse
dev.to

我啃透 Qwen-Image-Edit,做成了一个免费在线刷题面板

「你了解图像编辑模型吗?」 这两年我面候选人,这题出现的频率高得吓人。比「你知道扩散模型吗」还高——因为问这题的,基本都是在招图像生成 / 多模态方向的算法岗。 而答案越来越收敛到一个模型上:Qwen-Image-Edit。 阿里通义千问团队 2025 年 8 月发布,基于 Qwen-Image 20B 基座,主打两件事: 指令式编辑——不用画 mask,直接说「把天空换成黄昏」「把招牌上的字改成 TEA」,模型自己找到该改的地方; 开源、可复现:2511 权重 Apache 2.0 直接下载,HF / ModelScope 都有,面试官知道你能跑起来,不是 PPT 模型; 不是题难,是没人把题「串起来」 而面试不是选择题。面试官会顺着你的答案往深处挖: 你:「它用 flow matching 做训练目标。」 面:「flow matching 和 DDPM 的噪声调度差在哪?为什么这个模型选它?」 你:(沉默) 面:「那 DPO 和 GRPO 在你的后训练里各管哪一段?为什么粗对齐用 DPO、细对齐用 GRPO?」 面:「白板推一下可微目标,两分钟。」 追问不考背诵,考推导和失效边界。 背得再熟,推导不出来照样挂。 所以我做了一件事:把 Qwen-Image-Edit 从基础概念到白板推导、从架构原理到故障排查,按面试真实路径整理成一套题库——然后做成一个网站,免费,在线刷。 👉 https://www.songshunlp.com/qwen_image_research/ 这个面板里有什么 层 内容 面试对应 自测模式:一键折叠所有答案,「先想再看」——模拟面试,逼你先开口; 图要过一遍有损 VAE 的编码/解码,潜空间往返本身就带来微小漂移——这就是 2509 版本局部编辑偶发「越修越歪」(image drift)的根源,2511 通过改进参考注意力 + 强化原图几何约束缓解。 被追问时能说出这条因果链,比背十句 slogan 都管用。这类题集里都有,⚡ 标记的就是「再深一层常被追问」的点。 给正在准备的你 L1–L3 先过一遍,把「基座 vs 编辑分支」「语义 vs 外观编辑」「双路编码」三件事讲到不用想; 👉 https://www.songshunlp.com/qwen_image_research/ 刷的过程中发现题目有错、有缺、有讲得不对的地方,评论区直接说——题库是活的,我按反馈改。 我是兔老板,一个把面试题做成网站的人。更多项目:songshunlp.com 加微信 pyao2015 发送「资料」免费领

IA
Interesse
Hacker News

Reasons to Dislike AI Coding

Article URL: https://www.sicpers.info/2026/10/reasons-to-dislike-ai-coding/ Comments URL: https://news.ycombinator.com/item?id=49990204 Points: 14 # Comments: 3

IADev
Interesse
dev.to

Soft-Flag Listing Make vs Decoded Make Without Auto-Banning Sellers

Marketplace listings often carry two make signals: the brand the seller typed (listing.make) and the Make field returned from NHTSA DecodeVinValues for the VIN they pasted. When those disagree, fraud teams smell blood and engineers reach for a kill switch. Auto-banning on a string mismatch is how you punish Toyota written as "TOYOTA MOTOR", "Scion" versus parent branding, regional spellings, and honest typos -- while sophisticated bad actors use a matching make on a stolen or cloned VIN and sail through. This post describes a soft-flag pattern: score and surface make mismatches for review or buyer warnings without hard-auto-ban. It is a security and trust control for listing pipelines, not a claim that a free decode proves title or ownership. Decoded make and listing make are different vocabularies: Sellers write marketing names; vPIC writes manufacturer-facing names. Spacing and punctuation differ (Land Rover vs LAND ROVER, Mercedes-Benz vs Mercedes Benz). Sub-brands and historical badges confuse both humans and simple maps. Empty decode Make (partial row) is not proof the listing is lying. A binary listing.make === decoded.make check produces noisy false positives. Noise trains moderators to ignore alerts, which is worse than no alert. type Mismatch = { severity: "none" | "info" | "warn" | "high"; listingMake: string; decodedMake: string; reason: string; }; const ALIASES: Record = { "MERCEDES BENZ": "MERCEDES-BENZ", "MERCEDES": "MERCEDES-BENZ", "VW": "VOLKSWAGEN", "CHEVY": "CHEVROLET", "LANDROVER": "LAND ROVER", }; function normMake(s: string): string { const u = s.trim().toUpperCase().replace(/[._]/g, " ").replace(/\s+/g, " "); return ALIASES[u] ?? u; } export function flagMakeMismatch(listingMake: string, decodedMake: string): Mismatch { const a = normMake(listingMake); const b = normMake(decodedMake); if (!a || !b) { return { severity: "info", listingMake, decodedMake, reason: "missing_make_on_one_side", }; } if (a === b) { return { severity: "none", listingMak

SegurançaDev
Interesse
dev.to

LLM Evaluation: How a Benchmark Turns Raw Answers Into Comparable Numbers

LLM Evaluation: How a Benchmark Turns Raw Answers Into Comparable Numbers TL;DR — LLM evaluation only produces comparable numbers when every model faces the same prompts, the same fixed judge, and the same per-axis rubrics, with a public verbatim trail so anyone can re-read what a model actually answered. In the Team Recruitment (Oracle) benchmark, Nemotron 3 Ultra scored 90.87 and HY3 scored 83.1 — and the per-axis metrics show exactly why. Most leaderboards hide the mechanism. This one does not. The Team Recruitment (Oracle) benchmark is a recruitment agent task: the model queries an oracle of résumés, then builds a team. It is scored on composition criteria with binary budget and seat gates. Here is the pipeline, step by step. 1. Same prompts. Every model receives the identical task, the identical oracle, and the identical constraints. No model gets a friendlier phrasing or a second attempt. 2. Same fixed judge. Scoring is not delegated to another chat model that might drift between runs. The judge is fixed, so the rubric is applied the same way to every submission. 3. Per-axis rubrics. The final score is not a vibe. It is a weighted composite of measurable axes: budget compliance, seat limit, skill match, role coverage, seniority balance, and whether the minimum seniority gate is met. Binary gates — budget and seat — can zero out an otherwise strong team. 4. Public verbatim trail. Every answer is stored verbatim. Anyone can re-read what the model actually produced, not just the number it received. That is what makes the comparison auditable rather than trust-based. Model Provider Score Budget Seat limit Skill match Role coverage Seniority balance Min seniority Samples Tokens Avg latency (ms) Nemotron 3 Ultra (free) opencode-zen 90.87 0.984 1 0.869 1 0.44 1 11 154054 174951.45 HY3 (free) opencode-zen 83.1 0.996 0.909 0.732 0.864 0.53 0.955 11 123775 94013.55 For context, we also submitted our own model to this benchmark: GLM 5.2 scored 78.0 overall. The winner do

IA
Interesse
dev.to

Your Supabase Auth Is Only as Good as Your RLS Policies. So Test Them.

TL;DR With Supabase, auth answers "who are you?" and RLS policies answer "what can you touch?" The second question is where real data leaks happen. RLS failures are silent. A blocked select returns [], not an error, so manually clicking around the app won't catch a broken policy. The fix: integration tests that sign up two real users and check that each one can't read, edit, or delete the other's rows. You can run those tests against a local Supabase-compatible backend in seconds, including in CI. Here's a situation I've seen more than once. Sign-up works. Login works. The session persists. You ship. Then someone opens DevTools, takes the anon key from your bundle (it's meant to be public), and runs: await supabase.from('notes').select('*') They get back every note from every user, because RLS was never enabled on that table. The anon key is public by design. Your RLS policies are the only thing between that key and your entire database. Auth by itself only tells Postgres who the user is. Whether that user is allowed to touch a row is decided entirely by the policies you wrote, and if you didn't write them correctly, nothing else stops the request. A simple notes table where each user should see only their own rows: -- supabase/migrations/20261007000000_notes.sql create table public.notes ( id uuid primary key default gen_random_uuid(), user_id uuid not null default auth.uid() references auth.users (id) on delete cascade, body text not null, created_at timestamptz not null default now() ); alter table public.notes enable row level security; create policy "read own notes" on public.notes for select to authenticated using ((select auth.uid()) = user_id); create policy "insert own notes" on public.notes for insert to authenticated with check ((select auth.uid()) = user_id); create policy "update own notes" on public.notes for update to authenticated using ((select auth.uid()) = user_id) with check ((select auth.uid()) = user_id); create policy "delete own notes" on pub

SegurançaDev
Interesse
dev.to

Reverse Engineering YouTube's Web API: Why I Ditched Selenium and the Official Data API

When building a YouTube scraper, you usually have two bad choices: The Official API: High latency, strict quotas (10k units vanish in seconds), and a heavy registration process. Browser Automation (Selenium/Playwright): Heavy, slow, and fragile. I wanted a third way. A way that was fast, lightweight, and didn't require a Google Cloud project. That's how I ended up reverse-engineering InnerTube. InnerTube is the internal API that powers everything YouTube: the web app, mobile apps, and even smart TVs. It’s a unified endpoint (/youtubei/v1/...) that accepts JSON and returns massive, highly nested structures. The challenge? It’s not documented. I ran a quick benchmark scraping comments from a trending video. The results were mind-blowing: Method Time (100 comments) Memory Usage Reliability Selenium (Headless) ~8.5 seconds ~450 MB Low (DOM changes) Official API ~1.2 seconds ~40 MB High (but Quota-limited) ytscrape (InnerTube) ~0.4 seconds ~35 MB High By skipping the browser rendering engine and talking directly to the data layer, ytscrape is roughly 20x faster than browser automation. Reverse-engineering this wasn't just about finding the right URL. Here are the three biggest challenges I had to solve in ytscrape: InnerTube won't talk to you unless you provide a valid "context" — a complex object containing client versions, capability flags, and visitor data. I had to build a mechanism to extract this dynamically from the YouTube homepage to keep the library resilient. YouTube doesn't use standard page numbers. It uses continuation tokens. Each response contains a encrypted string that you must send back to get the next chunk of data. Implementing this as a transparent Python generator was key: # Transparent pagination in ytscrape for comment in yt.comments(video_id): # The library handles the token exchange behind the scenes process(comment) The JSON returned by InnerTube is... messy. A single video title might be nested 8 levels deep. I used Python Dataclasses to map

Dev
Interesse
dev.to

How to Get Google Flights Data with Python (There Is No Official API)

If you have ever tried to build a fare tracker, a travel bot or a pricing dashboard, you have probably searched for a "Google Flights API". It does not exist anymore. Google shut down its public flight search API (QPX Express) in 2018, and Google Flights has no official API today. In this post I show a simple way to get the same data that you see on Google Flights into Python: prices, airlines, flight numbers, times, stops, layovers, CO₂ emissions and Google's own "prices are low / typical / high" insight. Disclosure: I built the tool used below, the Google Flights Scraper on Apify. It is a paid tool, but it runs on Apify's free monthly credit for small projects, and the code in this post works with any similar setup. For every flight option of a search you get one JSON object. Here is a real result for a round trip from Istanbul to Berlin (shortened): { "origin": "IST", "destination": "BER", "departureDate": "2026-11-20", "returnDate": "2026-11-27", "tripType": "ROUND_TRIP", "price": 183, "currency": "USD", "priceLevel": "typical", "typicalPriceLow": 160, "typicalPriceHigh": 255, "airline": "Air Serbia", "flightNumbers": ["JU423", "JU356"], "departureTime": "2026-11-20T16:40", "arrivalTime": "2026-11-20T20:00", "durationText": "5h 20m", "stops": 1, "layovers": [{ "airport": "BEG", "city": "Belgrade", "durationMinutes": 105 }], "co2EmissionsKg": 212 } A few things that are hard to get elsewhere: All options, not only the first page. Google shows about 20 "top flights" and hides the rest behind "View more flights". For New York JFK → London Heathrow on one day there were 104 options, not 21. Google's price insight. priceLevel tells you if today's price is low, typical or high for that route, together with the typical price range. With includePriceInsights you also get the price history of the last ~60 days. Every leg and layover, including aircraft type, legroom and emissions per leg. You need a free Apify account and its API token (Console → Settings → API & Integra

Dev
Interesse
dev.to

Deepfakes Are Coming for Your Invoices and Reviews — Provenance Is Now a Small-Business Survival Skill

For two years, the AI conversation for small businesses has been about production — AI helps you write, design, and market faster. The next phase is the mirror image: AI lets anyone produce convincing fake content about your business. An invoice that looks exactly like your supplier's. A phone call in your bookkeeper's voice. A one-star review describing a rude technician who was never in your employ. In early October, Google DeepMind released a widely-watched explainer on the science of watermarking AI-generated content — covering everything from deepfakes to synthetic DNA data. The same week, security researchers were documenting voice-cloning scams and fabricated personas aimed at real organizations. For a small business, the takeaway isn't the technology. It's that "seeing is believing" is quietly expiring, and the defenses that actually matter cost close to nothing to set up. Fake vendor invoices. A realistic PDF invoice from a supplier you genuinely use, with "updated remittance details." It arrives during a busy week, references a real PO number scraped from an email thread, and gets paid. Small businesses are the ideal target — no AP department, no segregation of duties, owner approvals done at 11pm on a phone. Cloned voice wire requests. Voice cloning needs a short sample — a webinar recording, a podcast appearance, even a voicemail greeting. Then comes the urgent call or voice note: "It's me, I'm boarding a flight, wire the deposit before end of day." The voice is right. The urgency is manufactured. Fabricated reviews. A one-star review describing shoddy work your crew never did, written in fluent, specific, believable prose. AI has removed the cost of writing dozens of them. Platforms move slowly on fake-review disputes, and disgruntled ex-employees or shady competitors now have a cheap weapon. Fake personas. A "customer" with a polished LinkedIn profile and an AI-generated headshot, demanding refunds or threatening public complaints. Personas used to tak

SegurançaIA
Interesse