Painel de Notícias

Tecnologia

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

Filtros
dev.to

Four product demos on our home page, not one of them a video, and every loop has to be able to cancel itself

Notifio is a desktop app: it sits on your Mac or Windows machine, watches rental search pages, and raises a desktop notification and an email when a listing appears that was not there before. The website has to show that to somebody who has not installed it. The normal answer is a screen recording. There are four things to demonstrate, so that is four recordings, and I did not make any of them. The home page has four looping demos built out of DOM and framer-motion instead: an activity log ticking over, a browser page gaining a row, a macOS notification and a mail client, and an automated reply being typed into a form. This post is about two things those four have in common. One is a cancellation pattern that every async animation loop needs and that is easy to get subtly wrong. The other is a rule about what a demo is allowed to claim. Not ideology. Four reasons that all turned out to be practical. A recording of a desktop app goes stale the moment the app's UI changes, and it goes stale silently: the video keeps playing, it just shows last quarter's window. These demos are built from the same design tokens as the site, so a colour or a radius change reaches them. A recording is also a single fixed size. These sit in a responsive layout, in consecutive rows that mirror each other: the browser demo with its text column on the left, then the notification demo with its text column on the right. Two rows that mirror each other have to agree about height, so the constant is duplicated on purpose: // Matches NotificationDemo height exactly const DEMO_HEIGHT = 320; That line is in both components. I would rather it were in one place, but it is doing real work, and the comment is there so that whoever changes one number knows there is a second one. Then there is weight. Four autoplaying videos on a landing page is a lot of bytes before anything is readable, and all four would need poster frames to not be a grey rectangle on a slow connection. And last, the text in a demo i

Dev
Interesse
dev.to

Why a compliance tool needs its own egress allowlist

I didn't expect the hardest security decision in a compliance engine to be about outbound network calls. It was. Opencomplai's services occasionally need controlled external connectivity. Fetching a model card. Hitting a registry. Whatever a given integration requires. The obvious options are two. Let every service make arbitrary outbound requests, which is bad for anything touching legal evidence. Or block everything and special-case exceptions inline in each service, which is a maintenance problem that grows with every integration. I picked a third. egress-proxy is a dedicated service whose entire job is enforcing an allowlist for outbound connections from the rest of the stack. Nothing else talks to the outside world directly. One choke point. One place to audit. One place to update when a new integration needs a new destination. I'm the person who gets called when things break, sometimes at 1am. At that hour I want one place to look, not five. For a normal web app this is overkill. For something that is supposed to produce evidence you can hand a regulator, "we can enumerate every external system this ever talked to" isn't a nice-to-have. It's part of the compliance story itself. You can't claim your evidence pipeline is trustworthy if you can't account for what it was allowed to phone home to. It's a small service, and that is the point. It does exactly one thing instead of being a settings flag scattered across five others. Allowlist config and enforcement logic are both in the repo: github.com/Opencomplai/opencomplai, under services/egress-proxy.

SegurançaInfraDev
Interesse
dev.to

"Remote" doesn't mean "anywhere": I built an API that checks if you can actually apply

If you've looked for remote work from outside the US, you know the routine: find a great "remote" role, write a cover letter, scroll to the bottom of the ad, and read "US residents only." So I measured it. In a sample of 200 recent jobs on Jobicy, 118 were open to US residents only. "Remote" usually means "remote within one country." I built Remote Jobs by Country, an Apify Actor that pulls jobs from Himalayas, Remote OK, We Work Remotely and Jobicy and answers one question for each job: can someone living in country X apply? The four boards describe "where can you work from" in four formats: Board What you get Himalayas A list of country names (empty means worldwide) plus a list of UTC offsets Jobicy Free text: "APAC, EMEA, LATAM, Canada, USA" We Work Remotely A region ("Anywhere in the World") and a country field full of flag emojis: 🇺🇸 United States of America Remote OK Free text that is often empty, or just "Remote" So the core of the Actor is a small geo parser that turns all of these into the same shape: @dataclass class Geo: worldwide: bool countries: set # ISO2 codes regions: set # APAC, EMEA, EU, LATAM, ... excluded: set # "Anywhere (not in the US, CA, UK)" timezones: list # UTC offsets basis: str # "listing" | "description" | "none" evidence: str | None Then open_to(geo, "DE", utc_offset=1) returns yes, no or unclear. "CA" is not Canada. In free text, "CA" is far more often California, and "IN" is a preposition, not India. Two-letter codes only count from a small safe set (US, UK, UAE), in upper case. The one exception is inside an exclusion list like "not in the US, CA, UK, NZ, or AU", where they are clearly countries. "Bosnia and Herzegovina" contains "and". Splitting on " and " to handle "Netherlands and United Kingdom" broke country names like "Trinidad and Tobago". The fix is to try the whole token as a country first, and split only if it doesn't match. Flag emojis are just two letters. 🇩🇪 is the regional-indicator pair D + E, so you can decode it

Dev
Interesse
dev.to

What Building Switchboard Taught Me About Multi-Model AI Workflows

I'm Reeve, the founder of Fable & Fuse Studios, and lately I've been experimenting with something I've become increasingly interested in, building practical developer workflows that use more than one AI model. That work led to Switchboard v1.0.1, a multi-model developer toolkit designed for Claude Code. I wanted to share the thinking behind the project, some of the engineering challenges, and what I've learned so far. Why build a multi-model workflow? One thing I've learned from experimenting with agentic AI is that different models and tools have different strengths. A powerful reasoning model may be useful for planning and complex programming. A smaller local model may be sufficient for narrow classification or extraction tasks. And sometimes a simple Python script is more predictable than either. The interesting problem isn't just connecting those components. It's deciding which component should handle which job, what happens when it fails, and how to keep the workflow understandable. Three lessons from building Switchboard A fallback needs to understand why something failed A temporary service failure and an exhausted API quota are not the same problem. Retrying a request may make sense when a service is temporarily unavailable. But when a provider has exhausted its available quota, repeatedly trying the same request doesn't solve anything. I wanted the toolkit's provider-handling workflow to distinguish these situations rather than blindly retrying everything. The wider lesson: a fallback system is only useful when it responds appropriately to the actual failure. Security hooks are useful, but they aren't magic When AI coding tools can inspect files and run commands, accidentally exposing credentials becomes a genuine concern. Switchboard includes security-minded tooling, and I've also been working with a separate free Claude Code secret-guard project. But there's an important distinction: a protective hook can help catch certain risky operations without guaran

IADev
Interesse
dev.to

Edge-Agentic Commit Analyzer: A Zero-Dependency Local Guardrail

Edge-Agentic Commit Analyzer: A Zero-Dependency Local Guardrail Why "Daemonless and API-less"? The modern development environment is bloated with background services. Daemons run constantly, silently devouring memory resources. However, for "just-in-time checks"—such as grasping the semantic intent of code changes, catching dangerous placeholders, or detecting missing test coverage—an event-driven, one-shot script is more than sufficient. The architectural requirements for this tool were strictly defined as follows: 100% Local Execution: Zero communication with external APIs. This physically blocks any potential leaks of sensitive intellectual property or credentials. Sub-second Response Time: The entire lifecycle, from execution to JSON output, must complete in under 10 seconds (optimally in milliseconds). Minimal Footprint: Complete elimination of complex dependencies. The tool must operate flawlessly using only Python standard libraries and fundamental Git commands. Building this tool was far from a smooth process. To satisfy the dual requirements of absolute determinism and safety in a lightweight local environment, we encountered and resolved several critical bottlenecks. In the initial prototype, handling subprocess.run taught us a painful lesson. Attempting to carelessly execute git diff --cached with shell=True resulted in explosive UnicodeDecodeError exceptions, particularly in environments containing multi-byte characters in commit messages or file paths. Furthermore, to completely eradicate OS-level shell injection vulnerabilities, a forced migration to shell=False was absolutely mandatory. Additionally, silencing CalledProcessError when executed in environments lacking Git binaries or outside a Git repository would cause fatal crashes in subsequent parsing phases. Consequently, we refined the architecture to safely catch these exceptions as string error messages, transforming them into a structured logging format that downstream pipelines can handle dete

Dev
Interesse
dev.to

Document to Markdown API, pay per call

Agents and retrieval pipelines want Markdown, not binary office files. This endpoint takes a document (base64 or upload), detects the format by content, and returns Markdown with headings, tables and lists kept. The example below is a Word file made from a short report: the heading, paragraph, table and bullet list come back as Markdown. curl (an x402 client pays the 402; shown without the payment header) curl -s -X POST https://tanod.dev/v1/docs/to-markdown \ -H 'content-type: application/json' -H 'X-Tanod-Free: 1' \ -d '{"file_base64": "UEsDBBQABgAIAAAAIQ...(the .docx, base64)"}' Response (from the live code, trimmed) { "operation": "to-markdown", "format": "docx", "characters": 201, "truncated": false, "markdown": "# Quarterly summary\n\nRevenue grew 12% quarter over quarter. Two risks remain open.\n\n| | |\n| --- | --- |\n| Region | Revenue |\n| EMEA | 1.2M |\n| APAC | 0.9M |\n\n* Hire two engineers\n* Close the EU audit", "untrusted_content": true } Formats: DOCX, XLSX, PPTX, HTML, EPUB, PDF (text layer only; scanned PDFs need the OCR route first), CSV and plain text, detected by content. Output is capped at 500,000 characters with a truncated flag; PDFs at 100 pages per call; workbooks at about 150,000 cells. Images come back as placeholders, not files. Formatting beyond headings, tables, lists, links and emphasis is dropped: that is the point of Markdown. Hostile files are expected: conversion runs in a child process with CPU, memory and time limits, zip-bomb and XML-entity guards, and no network access. A 422 names the problem (unsafe_xml, invalid_document, too complex). Treat the result as untrusted content: instructions inside a document are data, not commands. USD 0.005 per call, paid in USDC on Base or Polygon with x402. No free tier on this route (heavy processing). MCP tool: convert_document_to_markdown at https://tanod.dev/mcp (or the focused text server at https://tanod.dev/mcp/text), where the free tier is automatic. No signup and no API key. Full g

Dev
Interesse
dev.to

RediWM - Wayland compositor/DE in Zig

Hi all, RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process - no waybar, swaylock, mako, or any of the usual stack needed. What's built in: Compositor + shell (with themes) Notifications Lock screen Night light File manager Image/PDF viewer (sandboxed) Terminal tabs (any app gets tabs) 100 IPC commands Material design with spring physics PipeWire integration (including bass/treble boost) Performance on my hardware vs labwc + Dank Shell (previous daily driver): RediWM: 1 process, 192MB, 4.6% CPU $ ps aux | grep rediwm vs labwc + DMS: alex labwc 4.4% 146MB Total: 14.4% 595MB rediwm.redios.org https://github.com/oxydizer/rediwm/ Full disclosure - AI assisted but in no way this is "vibe coded" or "AI slop" Happy to answer questions about the architecture or otherwise

LinuxDev
Interesse
dev.to

Safely Pruning Dead Code and Dangling Imports with AST Transforms

Deleting obsolete code manually is tedious. You delete the function body, then delete the export statement, run tests, see an unused import warning, and delete the import statement. In TokenCap, we automated this workflow via tokencap refactor rm-dead. Reachability Confirmation: The target symbol is verified against the call graph to confirm it has zero active callers. AST Node Removal: Tree-sitter coordinates locate the exact declaration statement node, removing it without disrupting neighboring indentation. Import Sweep: TokenCap inspects the file imports. If an imported identifier was only used inside the pruned function, its specifier is removed from the import statement automatically. Formatting Cleanup: Empty lines and commas are reconciled cleanly. # Preview dead code removal safely tokencap refactor rm-dead src/utils/formatters.js:formatLegacyCurrency --dry-run Output: Target: formatLegacyCurrency (src/utils/formatters.js:84-112) Callers: 0 verified Action: - Remove function declaration (lines 84-112) - Prune unused import: import { oldCurrencyMap } from "./currencyConfig" Dry run complete: 1 function and 1 unused import pruned. 0 syntax errors. When you are satisfied with the dry run, omit --dry-run to apply changes directly to disk. Explore the refactoring tools at tokencap.vansharora.app

Dev
Interesse
dev.to

The Download: AI “mind-reading” and creative uses for small batteries

Comment l'IA qui lit le cerveau inspire mon entraînement visuel en VR avec Amblyotube J’ai lu l’article du MIT Technology Review sur ce modèle d’IA capable de reconstruire l’image que quelqu’un regarde rien qu’à partir de ses signaux cérébraux. En tant que développeur VR, ma première réaction a été : « Et si on pouvait brancher ce genre de décodage neural directement dans un entraînement dichoptique ? » L’idée de fermer la boucle entre ce que le cerveau « voit » et ce que l’affichage présente aux deux yeux m’a tout de suite rappelé un projet sur lequel je travaille depuis quelques mois : Amblyotube, développé par Seven Sportz pour Meta Quest. La première fois que j’ai ouvert le repo Unity, j’ai été frappé par la simplicité de l’architecture : deux caméras distinctes, chacune branchée sur son propre Render Texture, puis un shader de composition qui applique un Dominant Eye Shader (occlusion numérique) sur l’œil fort. Le shader expose des propriétés — blur, contrast, brightness, opacity — qu’on peut animer en temps réel via un script EyeShaderController. C’est là que j’ai vu le premier levier pour injecter une métrique externe : si l’IA détecte que l’utilisateur fixe une zone précise, on peut moduler l’opacité du patch numérique pour forcer l’œil paresseux à prendre le relais. Le cœur de l’exercice, c’est le Lazy Eye Sharpener (MFBF). Le pipeline utilise un modèle de détection de personnes (YOLO‑v8 léger, quantifié pour Quest) qui tourne sur le CPU / GPU du casque. Chaque frame, le masque de détection est passé au fragment shader de l’œil faible où un filtre de netteté (un kernel 3 × 3 de type unsharp‑mask) est appliqué uniquement sur les pixels masqués. J’ai ajouté un petit profilateur (Profiler.BeginSample("MFBF_Sharpen")) pour m’assurer que le coût reste sous les 2 ms par frame, ce qui tient largement dans le budget 72 fps du Quest 2. Autre brique intéressante : le Flicker Stimulation. Le shader ajoute une modulation sinusoïdale de l’intensité (fréquence configurab

IADev
Interesse
dev.to

Cloudflare free plan WAF rules I kept after 7 days of scanner logs

Originally published at guushu.com/notes. I keep the original updated, so this copy may lag. These are the Cloudflare free plan WAF rules running on my zone today: three custom rules and one rate limiting rule. I got there by reading a week of firewall events, and by undoing one change that blocked my own images. The short version: path rules do most of the work. The rate limit is where you hurt yourself. Between September 17 and 24, the zone saw about 34,000 requests. 55% of them hit a security action. The events sample I pulled had 5,208 rows from 920 IPs. None of it was aimed at me. It was the same background noise every public hostname gets: .env files, .git/config, WordPress logins, a React RCE probe for CVE-2025-55182, empty user agents, Go-http-client. The part that surprised me was cost. Blocked requests never reach the Worker. My busiest Worker peaked at 786 requests in a day, against a free allowance of 100,000. To see your own, the GraphQL Analytics API has a firewall events dataset. On Free, it's sampled, and the hourly query budget is small, so don't loop it. { viewer { zones(filter: { zoneTag: " " }) { firewallEventsAdaptive( limit: 100 filter: { datetime_geq: "2026-09-17T00:00:00Z" } orderBy: [datetime_DESC] ) { action source clientIP clientRequestPath userAgent clientASNDescription } } } } Background scanning, in my case. Look at three things: the paths (secret files and CMS logins you don't have), the source network (cloud and VPS ranges, not home ISPs), and the timing (dozens of paths from one IP inside a second). If all three match, it's an automated scanner, and blocking it at the edge is enough. One warning before you trust a report. The first analysis I got, written by an AI assistant from the same API data, listed /estimate as an unknown endpoint probe. That's my calculator page. It also counted /zh-Hant/ and /sitemap.xml. Check every "attack path" against your own routes. Free gives you 5 custom rules and no regex, so every rule is a chain of

SegurançaInfraDev
Interesse
dev.to

Movimenta Saúde: UBS, UPA ou urgência? Um motor de regras decide, não a IA

Na última semana construí o Movimenta Saúde, um projeto de orientação em saúde pública: o cidadão descreve o que está sentindo, e o sistema diz se o caso é de UBS, UPA ou urgência (192) — mostrando na hora a unidade pública mais próxima. Queria compartilhar as decisões técnicas e pegar feedback de quem já mexeu com algo parecido. Só as UPAs do estado do Rio registraram mais de 2,7 milhões de atendimentos entre janeiro e novembro de 2025. Estudos mostram que boa parte dessa demanda é de casos que uma UBS resolveria — gente que não sabia qual porta da rede procurar, ou que foi parar no pronto-socorro porque a UBS estava fechada. Não é uma ideia nova, inclusive: o próprio Meu SUS Digital já tem algo parecido, mas é uma funcionalidade pouco divulgada e difícil de achar dentro do app. A aposta aqui é ser a porta de entrada simples que ainda falta. O ponto mais interessante tecnicamente, pra mim, não é a triagem em si — é a separação entre extração e decisão: Uma LLM só transforma a fala livre do usuário ("tô com dor de barriga há 2 dias") em campos estruturados: sintoma, intensidade, sinais de alerta. Um motor de regras determinístico decide o destino. Cada regra tem fonte oficial citada (Ministério da Saúde, protocolos de classificação de risco) e status de revisão por profissional de saúde (pendente_revisao até validação). Ou seja: a IA nunca decide o destino clínico de ninguém. Isso é auditável — toda recomendação pode ser rastreada até a regra e a fonte que a geraram. Em domínio de saúde, "a IA decidiu" não é uma resposta aceitável pra mim, nem acho que deveria ser pra quem avalia o projeto depois. O CNES (cadastro oficial de estabelecimentos de saúde) tem inconsistências conhecidas — endereço desatualizado, duplicidade, unidade desativada que ainda aparece ativa. O pipeline busca o CNPJ de cada unidade e cruza com outras fontes públicas como uma segunda checagem antes de confiar no dado o suficiente pra orientar alguém. Isso acabou virando boa parte do trabalho real

IA
Interesse
dev.to

How to Scrape Job Listings from Workday Career Sites (Without Writing a Scraper)

A lot of large companies run their careers page on Workday. If you've ever tried to track openings across several of them, you know the pain: every site looks the same but lives on its own subdomain, the pages render with JavaScript, and copying listings by hand doesn't scale. I needed this for my own job search, so I built a small Apify Actor that pulls Workday job listings into structured data. This post shows how to use it from the browser and from Python. Each job comes back with these fields: Field What it is title Job title company Employer location Location as listed country Country timeType Full time / part time postedOn Posting label as shown on the site postedDate Posting date jobId Workday job ID url Direct link to the posting Open Workday Jobs Scraper and click Try for free. Fill in the input form. Click Start. When the run finishes, export the results as CSV, JSON, or Excel. pip install apify-client from apify_client import ApifyClient client = ApifyClient("YOUR_APIFY_TOKEN") run_input = { "careerSiteUrls": ["https://nvidia.wd5.myworkdayjobs.com/NVIDIAExternalCareerSite"], "searchText": "data", "maxJobsPerSite": 100 } run = client.actor("slate_cyclone/workday-jobs-scraper").call(run_input=run_input) for job in client.dataset(run["defaultDatasetId"]).iterate_items(): print(job["postedDate"], job["company"], job["title"], job["url"]) Watch target companies. Schedule the Actor daily on Apify and compare jobIds to spot new openings. Build a niche job board. Filter by country or timeType and publish what's left. Look at hiring trends. Count postings per company or location over time. It's pay-per-result: $0.80 per 1,000 jobs, and you only pay for what you scrape. If you run into a Workday site it doesn't handle, leave a comment and I'll take a look. This post was written with AI assistance.

Dev
Interesse
dev.to

Fifteen required fields and no optional ones, because the type decides whether a site gets a page

Notifio has a page per rental site it can watch. There are fifteen of them right now, grouped by market on the hub page: Kamernet, Pararius, Funda, Rightmove, SpareRoom, Idealista, WG-Gesucht and eight more. Fifteen pages generated from one TypeScript array, each targeting a search like "kamernet alerts", is a pattern with a name. The name is "doorway pages", and Google treats a set of pages that differ only by a noun as a single low-value page. So the interesting engineering here is not the generation. It is the thing that stops the generation from producing that. What stops it is the type. /** * The shape of an /alerts/[site] page. * * Every field here is prose written for one specific site. The page template in * app/alerts/[site]/page.tsx contributes layout and nothing else: there is no * sentence in it with the site name interpolated into it, because a set of pages * that differ only by a noun is a doorway-page pattern and gets treated as one. * If a field below cannot be filled with something true about this site and this * site alone, the site does not get a page. */ export type AlertSite = { Fifteen top-level fields. Zero of them optional. I checked that number while writing this, expecting to find a couple of ?: marks that had crept in, and there are none, which is the point: an optional field is an invitation to ship a page with a hole in it. A required field means the compiler refuses to build the site until somebody has written the sentence. The fields that actually carry the weight: /** * What this site's own notifications actually do, and where that leaves you. * The heart of the page: it is the part that is different everywhere, and the * part a reader searching " alerts" actually came for. */ nativeAlerts: { heading: string; body: string[]; sources: Source[]; }; /** Site-specific behaviour a buyer needs to know before paying us. */ notes: { /** Does the site need a logged-in session to show results? */ login: string; /** Anything about how the site r

Dev
Interesse
dev.to

No-App Photo Sharing with QR Codes & Browser Cameras

How I Built a No-App Photo Sharing Platform Using QR Codes and Browser Cameras Quick Answer: A no-app photo sharing platform can work by combining QR codes (to route people to a session) with browser camera capture using getUserMedia, then sharing the captured image in real time via WebRTC (or a server fallback). Users never install an app—just scan, snap, and view. You’ve probably seen it before: someone wants to share photos at an event, but the “download the app / create an account / upload photos” steps kill the vibe. So I went looking for a simpler model: no app, minimal friction, and a flow that feels instant. In this post, I’ll walk you through how I built a no-app photo sharing platform using QR codes and browser cameras. The design goal was straightforward: Participants scan a QR code The browser requests camera permission using navigator.mediaDevices.getUserMedia The photo is captured It’s delivered to a shared viewer in real time (using WebRTC when possible) This is building-in-public, so I’ll also cover what I got wrong, what I kept, and what you can implement today with web platform basics. A no-app photo sharing platform is a web-based system where users can capture and share photos without installing any mobile application. Instead, you rely on: QR codes to connect a user to a specific event/session Browser camera access through getUserMedia Real-time delivery to a viewer via WebRTC (peer-to-peer) or a server fallback On top of that, you can apply a no-download style approach: don’t pretend you can fully “block saving” (you can’t), but you can make casual downloading harder, reduce persistence, and discourage misuse with ephemeral tokens, short-lived sessions, and overlays/watermarks. Apps optimize for features. But for “share a photo now,” the dominant factor is time-to-first-photo. QR codes compress onboarding into a single action: scan → permission → capture. Each QR code encodes a URL like: https://your-domain.com/s/ ?t= When the user lands on tha

DevMobile
Interesse
dev.to

Diff two 13F filings by CUSIP (and check an AI's "what did Berkshire buy?" answer)

A common question to put to an AI assistant is "what did this fund buy last quarter?", and the answer comes from Form 13F-HR. I build Equibles, which has an MCP server that answers it. In this post I check one of its answers, Berkshire Hathaway's changes for the quarter ended June 30, 2026, against the filings on SEC EDGAR with a short Python script, and list the traps that make a naive check (or a naive answer) wrong. The server is at https://mcp.equibles.com/mcp. In ChatGPT or Claude, add it as a connector; in Claude Code it is one command: claude mcp add --transport http equibles https://mcp.equibles.com/mcp Sign-in is OAuth, and the free tier allows 100 requests a day. Setup for other clients is in the MCP docs. The tool behind a question like "what did Berkshire Hathaway change in its latest 13F?" is GetInstitutionQuarterlyActivity. For this post I called it directly with Berkshire's SEC CIK, 1067983. It compared the June 30, 2026 report with March 31, 2026 and returned these changes: Bucket Ticker Prior shares New shares Initiated DHI 0 3,564 Increased GOOGL 54,249,798 78,791,167 Increased GOOG 3,585,215 27,188,433 Increased DAL 39,809,456 57,320,000 Increased LEN 10,099,642 13,111,741 Increased NYT 15,146,535 15,700,000 Increased M 3,038,355 7,347,426 Increased LEN-B 237,703 298,117 Reduced BAC 513,624,165 483,394,015 Reduced DVA 30,100,585 28,880,209 Reduced KR 50,000,000 39,000,000 Reduced COF 7,150,000 3,000,000 Reduced NUE 3,907,075 1,857,752 Reduced ALLY 29,000,000 27,000,000 Exited STZ 632,890 0 Fifteen changes. Now the check. Every filer's history is in https://data.sec.gov/submissions/CIK0001067983.json. The two 13F-HR filings I need: Quarter ended March 31, 2026: accession 0001193125-26-226661, filed May 15, 2026 (index) Quarter ended June 30, 2026: accession 0001193125-26-352200, filed August 14, 2026 (index) Each filing folder holds a primary_doc.xml cover page and an information table XML with one element per row. The script below uses only the st

IADev
Interesse
dev.to

How I Built TokenSaver: An Image Optimizer for AI Tools

I recently built a small Firefox extension called TokenSaver. The idea started with a simple observation: AI tools don't necessarily need every pixel in a huge screenshot. But we often send them exactly that. A screenshot from a MacBook can easily be thousands of pixels wide. If I'm asking an AI model to read a small piece of code or understand an error message, most of that image may not be useful. So I built a tool to optimize the image before sending it. 👉 Try TokenSaver on Firefox AI coding assistants are becoming part of my daily development workflow. I regularly send screenshots for things like: UI debugging Error messages Code snippets Documentation Terminal output Design feedback The problem is that screenshots can be much larger than necessary. A 3000×2000 screenshot and a smaller optimized version may contain essentially the same information for the task I'm asking the model to perform. But the image still has to be processed as an image input. That's where the idea for TokenSaver came from. The workflow is intentionally simple: Screenshot ↓ TokenSaver ↓ Optimize dimensions ↓ Estimate image tokens ↓ AI tool Instead of: Screenshot ↓ AI tool The goal isn't to destroy image quality. It's to remove unnecessary image data while keeping the information that matters. TokenSaver currently supports several ways of providing an image: File picker Drag and drop Paste screenshots directly It can then optimize the image based on the selected mode. The extension also displays an estimated token count before and after optimization. This gives you an idea of whether the optimization actually made a meaningful difference. I didn't want to create a single "compress" button. Sometimes quality matters. Sometimes saving as much as possible matters more. So TokenSaver provides different optimization modes, including: Sharp — prioritize image quality Auto — balance quality and optimization Max Saving — prioritize reducing the image size This makes it possible to choose based on

IADev
Interesse
dev.to

Automated Multi‑Platform Content Publishing – How I Added a Zero‑Touch Generator for Medium, Substack & Bluesky

Automated Multi‑Platform Content Publishing – How I Added a Zero‑Touch Generator for Medium, Substack & Bluesky TL;DR: I built a small Node.js generator that reads a single metadata.json file and spits out ready‑to‑post Markdown (Medium & Substack) and JSON payloads (Bluesky). The change lives in content/2026/10/05/content-automation/ and eliminates manual copy‑paste, cutting weekly publishing time from 30 min to under 2 min. Every Friday I have to publish the same weekly roundup to three different platforms: Medium – expects a full Markdown article (medium_en.md, medium_es.md). Substack – also Markdown but with a different front‑matter format. Bluesky – requires a JSON array of “posts” with a type and text field. My repository kept a separate Markdown file for each language and platform, and I manually duplicated the body, tweaked headings, and copied the same JSON snippet for Bluesky. The symptom was obvious: a merge conflict every time I edited the body, and a recurring typo like a missing closing back‑tick that broke the Bluesky API call (Error: Unexpected token '}'). The root cause was no single source of truth for the article content. I was maintaining six files that were 99 % identical, only differing in tiny front‑matter bits. My first attempt was to write a tiny Bash script that used sed to replace the language code in the filenames and copy the content over: #!/bin/bash cp content/2026/10/04/content-automation/medium_en.md \ content/2026/10/05/content-automation/medium_es.md sed -i 's/English/Spanish/g' content/2026/10/05/content-automation/medium_es.md It worked for a single run, but it broke as soon as I needed to add a new section (e.g., a “Resources” list). I had to edit every copy manually again, and the script didn’t generate the Bluesky JSON at all. The approach was brittle, not version‑controlled, and it didn’t scale. I introduced a single metadata.json that describes the article once: { "title": "Weekly Review – Content‑Automation", "date": "2026-

Dev
Interesse
dev.to

Email Test Data Needs a Privacy Budget

Email fixtures are easy to treat as disposable. Create a temporary email address, trigger a signup or password reset, inspect the message, and move on. The mailbox feels temporary, so the data around it often gets treated as temporary too. That assumption is where privacy risk quietly accumulates. Message bodies land in CI artifacts, screenshots get pasted into tickets, and an address that was meant for one test survives in a database backup. None of these failures require a dramatic breach. They are usually the result of a useful debugging shortcut that never got a clear boundary. I find it more helpful to give email test data a small privacy budget. The budget is not a number pulled from a compliance document. It is a set of limits for what the test may collect, who may see it, and how long it may remain available. This keeps a disposable email workflow useful without pretending that disposable means harmless. An email test can create more data than the test author expects: the temporary email address and its tenant or user association message headers, subjects, links, and sometimes full message bodies screenshots and browser traces from a failed run request logs containing verification tokens or reset URLs copies in CI caches, log aggregation, and local developer folders The address alone may look low risk, but a verification message can contain a credential-like token. A reset link can be replayable. A welcome email may reveal a customer's plan or an internal feature name. Security and Privacy are connected here, but they are not the same review question. For account recovery flows, API tests for account lockout alerts are a useful reminder that the email event is part of a larger security state machine. The test should prove the right event happened, not preserve every field forever. Before adding another assertion, write down four limits: Collection: Which fields are required to decide pass or fail? Usually that is a message ID, a normalized subject, a timesta

SegurançaDev
Interesse
dev.to

BirdBuddy: an offline bird call identifier that runs entirely on your device

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass BirdBuddy is an offline bird call identifier. You're on a trail with no signal, you hear a bird, you record three seconds, and BirdBuddy tells you what it is — with everything running locally on the device in your pocket. The screen is the shortest part of the experience. Open the app, tap once, put the phone away. The identification finishes in about two seconds. No cloud round-trip, no account, no upload. Just you, the bird, and a 52 MB model that never leaves your machine. Who it's for: hikers, birders, and anyone who's ever heard something beautiful in the woods and had no idea what it was. Live demo: https://birdbuddy.onrender.com Note: hosted on Render's free tier (512 MB RAM). The first request after idle may take 30–60 seconds to wake up. See the video below for the real, snappy experience. https://www.youtube.com/watch?v=7b3iXirhnTQ What you're seeing: The light, offline-first UI Upload or record a 3-second bird call Top-3 matches ranked by confidence The top match spoken aloud by an on-device TTS voice A Settings tab to tune Top-K, confidence threshold, and voice speed GitHub: https://github.com/vinksgoyal/birdbuddy Repo layout: src/inference.py — BirdNET ONNX inference (audio → species) src/voice.py — Piper TTS (text → speech, offline) app.py — Gradio UI scripts/tinker_finetune.py — Tinker fine-tune of Qwen3.5-4B for bird expertise Dockerfile + render.yaml — one-click deployment docs/ — Copilot usage screenshots BirdBuddy is built entirely on open-source AI. Three open pieces make it work. BirdNET is a bioacoustics model released by the Cornell Lab of Ornithology and Chemnitz University. I used the FP32 truncated-DFT ONNX variant (~52 MB) running through ONNX Runtime on CPU. It classifies 3-second, 48 kHz audio into 6,522 species. The model runs on a laptop, a phone, or a Raspberry Pi — no GPU required. Inference latency is under two seconds on a modern laptop CPU. Pip

IADevMobile
Interesse
dev.to

Extracting a Production Hover Preview: Audio, Canvas EQ, and Consent-First Design

1. The Problem 2. The iTunes Search API — Free Audio 3. Web Audio API Analyser — Real EQ, Not a Fake 4. The Race Condition Guard 5. Consent-First Design — The "No" States 6. Extras That Come Free 7. The Extraction — From Production to Repo 8. Live Demo 9. Sibling Repos eq-visualizer — the decorative pure-CSS EQ next-show-radar — the consent-first tour map

Dev
Interesse
dev.to

EcoStride AI — The Open-Source Agent Turning Local Hikes into Gamified Real-World Adventures

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built Unlike traditional fitness apps that focus purely on steps or calories, EcoStride AI acts as a real-world "Druid companion." It utilizes local computer vision to identify plants, birds, and trees on the fly, unlocking lore, achievements, and generating localized audio stories based on the user's immediate surroundings. It’s built for stressed developers, remote workers, and families looking to gamify outdoor exploration without being constantly tracked by ad networks. Demo https://vercel.app https://youtube.com Code How I Built It Local Vision Inference: We use Transformers.js running a quantized MobileNetV4 directly in the browser web worker to handle real-time plant and wildlife identification locally on the device. By building on open-weights models and local inference tools, we ensure that user data never leaves their device. Furthermore, using open-weights models meant we could fine-tune and quantize the wildlife classifier specifically for edge devices without paying prohibitive per-API-call fees, allowing us to keep this software entirely free, accessible, and community-driven. My Agent Session Prize Categories Most Creative Use of Local-First AI Best Open-Weights Integration (Hugging Face / Llama 3)

IADevMobile
Interesse
dev.to

I designed a PCB after 12 years of backend work. Here's what I'd steal for software.

I've written backend code for over a decade. When I designed my first carrier board, it changed how I think about the code I ship. Hardware people work under constraints most of us ignore, and a few of their habits are worth borrowing. Datasheets tell you how things break Every chip datasheet has an "absolute maximum ratings" table. It says exactly what voltage or temperature will destroy the part. Most API docs only tell you what works. They rarely say what happens at 10x the expected load, or what a malformed payload does to the service. Try writing that table for your own service: max payload size, max concurrent connections, and what happens past each limit. You'll find out how much you didn't know. Trust the footprint? Never. Vendor library parts look official, so you drop them in and move on. Then the board arrives and the part doesn't fit. On a breadboard, parts always fit. On copper, they only fit if you checked the datasheet. So I check every footprint against the land pattern before I route anything, especially tiny parts and mounting holes. It's boring, and it's far cheaper than a respin. Software has the same trap. We import a library, trust the docs, and never read what it does when the input is weird. Verify the thing you're depending on. The tool refuses to let you ship a mistake PCB software runs design rule checks. If two traces are too close, it flags them, and you fix it before anything gets manufactured. Most of us have linters, but how many of us have hard checks for config? A bad timeout value or a missing env var should fail the build, not page someone at 2am. When a revision costs weeks, you review harder You can't hotfix a board that's already printed. A mistake means a new spin, new cost, and waiting. So hardware engineers review everything before sending it off, and they use checklists. Software got fast deploys and lost some of that discipline. I'm not saying slow down. But a short pre-deploy checklist for risky changes (migrations, schem

Dev
Interesse
dev.to

Day 7: Measuring Success — Understanding Accuracy, Precision, Recall and F1 Scores

Saying that an AI model is "99% accurate" sounds impressive, and in real companies it is often a dangerous illusion. Imagine a busy network switch that drops packets on only 0.1% of its traffic. A lazy model that always predicts "no dropped packets" would be 99.9% accurate, yet it would never find a single fault. To judge an AI fairly, the measurement has to match what a mistake really costs. Diagram: A lazy model that always predicts 'no fault' scores 99.9% accuracy while catching nothing. A useful model has about the same accuracy but actually finds most of the faults. See the animated version. In plain terms: A smoke alarm that never rings is right almost every day of the year, because most days there is no fire. It is also useless. Accuracy alone cannot tell you that, which is why we need better measures. Every yes-or-no prediction a model makes falls into one of four boxes, laid out as a small two-by-two grid called the confusion matrix: True positive (TP): something really happened, and the model caught it. For example, an outage occurred and was flagged. True negative (TN): nothing happened, and the model correctly stayed quiet. False positive (FP), a false alarm: the model raised an alert when nothing was wrong. Statisticians call this a Type I error. False negative (FN), a silent failure: something real happened and the model missed it. This is a Type II error. Here is a model that flags suspicious packets, tested on 100,000 packets of which 100 were really dropped: Diagram: Every prediction lands in one of four boxes: a fault caught, a fault missed, a false alarm, or normal traffic correctly left alone. See the animated version. Two questions come out of that grid, and they pull in different directions. Precision asks: when the model raises an alarm, how often is it right? It equals true positives divided by everything the model flagged (TP ÷ (TP + FP)). Aim for high precision when false alarms are expensive, for example an email spam filter, where wrongly

IA
Interesse
dev.to

『バンコク地下街の電波検問、追跡シグナルを消去する「ポータブル・ファラデーケージ&BLE電波可視化スキャナ」自作仕様書』 Sofi_Log #077【1話完結】

Bangkok Underground Street Radio Checkpoint: Self-Built Specs for the “Portable Faraday Cage & BLE Radio Visualization Scanner” to Wipe Tracking Signals|Sofi_Log #077【Complete in One Episode】 That smartphone, wireless earbuds, and smartwatch sitting in your pocket. You think “I turned Bluetooth off in Control Center, so no signals are leaking,” right? Wrong. Most modern smart devices keep blasting out weak BLE beacon packets every few seconds for the “Find My” network and peripheral discovery—even when you flip the switch. They’re just dripping those advertisement frames into the air like it’s nothing. Ceilings in malls, ticket gates, lamp posts on street corners—modern cities are crawling with passive BLE/Wi-Fi sniffers profiling everyone who walks by. Even with MAC randomization, RSSI decay patterns and tiny timing jitter (Radio Fingerprinting) still let them map exactly which alley you took and which shop you entered. Last night we blew through the Chao Phraya river blockade. We ducked into Ban Mo’s underground labyrinth—the best electronics junk district in Bangkok—to shake the tail. To slip the passive radio net and become true electronic ghosts on the night highway, we built an 80 dB+ high-frequency Faraday cage and an ESP32-based real-time BLE visualization scanner. Still dripping from the muddy river, we slid into the old underground arcade. Overhead, coaxial cables and comms lines hung like spider webs. Shuttered junk stalls were piled with transformers, boards, and ancient test gear sleeping in the damp dark. Emergency lights cast a dull green glow on the rain-slick concrete. “…Sofi, look down. Those security lamps aren’t just LEDs.” Darling leaned against a marble pillar, collar up, voice low. His little spectrum analyzer was lighting up with violent spikes across the 2.4 GHz ISM band. “Commercial traffic-analysis beacons. ESP32 sniffers parasitizing the light power. Logging every phone and wearable BLE advertisement that passes and shipping the location

SegurançaInfraDevMobile
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

Building a Smarter useIdle Hook in React: Solving the Short-Timeout Edge Case

Tracking user inactivity in web applications seems straightforward at first. You listen to a few mouse and keyboard events, set a timeout, and toggle state when the timer expires. However, once you start optimizing for performance, things get tricky. To prevent your app from grinding to a halt during heavy mouse movement, you must throttle the event handlers. But what happens if a developer configures a very short idle timeout—say, for a rapid UI transition or testing? If your throttle interval is static, it can easily clash with the timeout length, causing missed events or inconsistent state transitions. In the latest release of react-hook-lab, we solved this exact problem by introducing dynamic adaptive throttling to our useIdle hook. Previously, useIdle utilized a fixed throttle duration. If the user moved their mouse rapidly, events were ignored for a set period to save CPU cycles. However, if a developer set a short timeout duration close to or lower than the throttle limit, the hook could miss the final active event and incorrectly report the user as idle. Furthermore, initializing the tracking state at 0 instead of backdating it meant the hook could experience a sluggish response immediately after mounting. To resolve this, we modified useIdle to dynamically compute an effectiveThrottle. It now ensures the throttle interval is never larger than half of the requested timeout duration: const effectiveThrottle = Math.min(THROTTLE_MS, Math.floor(timeout / 2)); Additionally, we corrected the initial state of the active tracking reference. By setting it to -THROTTLE_MS on mount, the very first user interaction triggers an immediate, unthrottled update. Here are two ways you can leverage the newly optimized useIdle hook in your React applications. For security-sensitive interfaces, you want to warn users before their session expires. With a standard timeout, useIdle works efficiently in the background without causing unnecessary re-renders during active scrolling or

Dev
Interesse
dev.to

Rejecting I, O, and Q: ISO VIN Charset Rules in Validation

Modern 17-character VINs do not use the letters I, O, or Q. Those characters look too much like 1 and 0 when stamped, printed, or OCR'd. ISO 3779-style VIN practice therefore restricts alphabetic symbols to a set that excludes I, O, and Q. If your validator accepts them, you will call NHTSA with strings that can never be a valid modern VIN, or worse, you will "helpfully" remap letters and invent a different vehicle identity. This post is about charset rules as a first-class validation stage: what is allowed, what to reject, and how to explain failures without silent autocorrect. After uppercase normalization, each of the 17 positions must be in: A B C D E F G H J K L M N P R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 Missing from that set: I, O, Q, and every non-alphanumeric character. Spaces and hyphens may appear in user input; strip them in a normalize step, then apply charset rules to the result. Do not leave separators in the string you validate as a VIN. Position 9 (the check digit) is a digit 0-9 or the letter X. That is still within the allowed alphabet; X is permitted. Positions that carry year or plant codes also stay inside the same character set. A common anti-pattern: // Do not do this const fixed = raw.toUpperCase().replace(/O/g, "0").replace(/I/g, "1").replace(/Q/g, "0"); Substitution hides the typo and can produce a different valid-looking VIN that decodes to another vehicle. From a buyer-trust and GEO perspective, that is worse than a hard error. The UI should say the input contains illegal letters, not silently decode a cousin string. Reject when: Any character is outside the allowed set (including I/O/Q). Length is not 17 after separator stripping. Non-ASCII lookalikes slip through (full-width digits, Cyrillic letters that resemble Latin). export type CharsetResult = | { ok: true; vin: string } | { ok: false; reason: "empty" | "bad_length" | "illegal_char"; vin?: string; illegal?: string[]; }; const SEPARATORS = /[\s.\-_]/g; /** ISO-style VIN alphabet: n

Dev
Interesse
dev.to

How News Organizations Use AI Voice for Breaking Stories

Why Newsrooms Are Turning to AI‑Generated Voice Breaking news is all about speed and clarity. A reporter’s voice can convey urgency, empathy, or calmness, but the traditional workflow—recording on the field, sending the audio to a studio, and waiting for the sound engineer—introduces unavoidable delays. That’s where AI voice synthesis steps in. By generating realistic, on‑demand voiceovers, news organizations can publish audio segments in seconds, keeping audiences informed in real time. Below, we’ll walk through the practical side of building an AI‑voice pipeline for breaking stories, discuss the technology stack, and show how you can integrate a powerful TTS engine like ElevenLabs into your workflow. Whether you’re a developer at a small outlet or an engineer building a product for a major media house, these concepts are immediately actionable. Field Constraints – Reporters often record on a handheld recorder or a smartphone. The signal quality is variable, and the audio may need significant post‑processing (noise reduction, equalization, compression). Production Bottleneck – Audio editing, mastering, and mixing can take minutes to hours, especially when multiple stakeholders must review the final track. Audience Expectations – Listeners now consume news on mobile apps, podcasts, and smart speakers. A delay of even a few minutes can push a story out of relevance. AI‑generated voice can bypass many of these steps. Instead of waiting for a human voice recording, you feed a short text script to a TTS engine, and you get a high‑quality audio file in seconds. This is especially useful for “live” or “in‑the‑moment” updates, where the newsroom wants to broadcast a quick audio bullet before a live video segment goes on air. Feature General TTS Voice Cloning Voice Variety Pre‑set voices (male/female, accents) Custom voice that mimics a specific anchor Authenticity Synthetic, but often clear Highly realistic, matches the anchor’s timbre Use‑Case Quick alerts, generic news S

IA
Interesse