Painel de Notícias

Tecnologia

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

Filtros
dev.to

Have your own Lake of Assets

This is a submission for the Sanity Challenge, Path Two: Vibe-Code Something Strange A project of mine runs on Railway: frontend, backend, websockets, Postgres and Redis in one place. Then I needed user images, avatars first, that load fast for everyone. Railway's storage buckets are private. Public buckets aren't supported, so every image read means a presigned URL or a proxy through my backend. The usual fix is object storage behind a CDN. That's another provider and another DNS surface to run. On Cloudflare, for example, keeping my own DNS and using a partial CNAME setup is a Business-plan feature. Even then I'd still have to build resizing, format negotiation and per-image metadata myself. I already use Sanity for content, and a Sanity project already ships an asset store, an image pipeline, a global CDN, structured documents and realtime APIs. So I asked a narrower question: can Sanity be the image layer itself? AssetLake is my answer: @assetlake/core, a framework-neutral server SDK. My backend calls assetLake.images.upload(...). It checks the file against a policy stored as Sanity content (allowed types, size, magic bytes, dimensions), uploads it as a Sanity asset, and creates a structured assetLakeImage record: owner, purpose, status. Presets like avatar, card and hero are Sanity documents too, so I can change them without a deploy. A demo app (Next.js 16 on Railway). Route Handlers are the only thing holding the write token. Browsers load every variant straight from cdn.sanity.io. My backend is the write and auth boundary, never an image proxy. AssetLake Console, a Sanity App SDK app inside the Sanity Dashboard. It shows a live overview, the asset list, an asset detail view with every preset applied, and live preset editing with draft and publish. Who it's for: developers who already have a Sanity project and want public image uploads with transforms and a CDN, without bolting on a bucket, a CDN and an image service. What it deliberately isn't: private stora

DevInfra
Interesse
dev.to

300問の問題集をAIで自動生成! 250問目でAPIエラー、75分が水の泡に。チェックポイント機構で“途中再開”を実装した話

最近、ある資格試験の勉強をしてて、公式の問題集だけじゃ足りないなと思ってた。じゃあ作るか、と。GenAIを使えば、類題なんていくらでも作れる時代だし。 早速、試験のシラバスを食わせて、章ごとに問題と解説を300問分生成するスクリプトを書いた。 python generate_questions.py を叩いて、あとは待つだけ。プログレスバーがぐんぐん伸びていくのを見ながら、「いやー、便利な時代になったもんだ」なんて思ってた。 実行開始から75分後。プログレスバーは8割を超えたあたり。そろそろ終わるかな、とコンソールを覗き込んだら、見たくない赤い文字が表示されてた。 requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) まあ、API呼び出しのエラー自体はよくあること。問題はその後。成果物が出力されるはずのディレクトリを見たら、ファイルが空っぽ。 ……え? そう。250問近くまで生成したはずのデータが、どこにもない。75分という時間と、それなりの額のAPIトークンが、一瞬で溶けた。これは、やばい。 原因は完全に自分の設計ミス。実装がナイーブすぎた。 空のリスト all_questions = [] を用意。 for ループで300回、GenAIのAPIを叩く。 生成された問題を all_questions.append(new_question) でリストに追加していく。 ループが全部終わったら、all_questions の中身をまとめてJSONファイルに書き出す。 この設計の何がまずいか。それは、途中で一度でも処理がコケたら、メモリ上にあった all_questions の中身が全部消し飛ぶこと。 外部APIを叩くような長時間バッチ処理で、この実装は致命的だった。ネットワークは気まぐれだし、APIサーバーだってたまには機嫌が悪くなる。そういう「中断」を全く想定してなかったのが敗因。 このままだと、生成が終わるまで神に祈るゲームになる。エンジニアとしてそれはありえない。 考え方はシンプルで、「キリのいいところまで処理が進んだら、その時点での成果をファイルに保存しておく」というもの。そして、もしスクリプトが中断しても、次に起動したときに「どこまで終わってたか」をファイルから読み込んで、続きから再開できるようにする。 具体的には、章ごとの問題生成が終わるたびに、結果をファイルに追記していく方式にした。ファイル形式はJSONL(JSON Lines)がこういう用途に便利。1行が1つの独立したJSONオブジェクトになってるから、追記がめちゃくちゃ楽。 修正後のコードはこんな感じ。 import os import json # exam_slug は 'shikaku_xyz' みたいな試験の識別子 def generate_with_checkpoint(exam_slug): # 試験のシラバス(章のリスト)を読み込む chapters = load_syllabus(exam_slug) # 進捗を保存するチェックポイントファイル checkpoint_file = f"app_factory/exams/{exam_slug}/generated.jsonl" # すでに完了した章のIDを保持するセット completed_chapters = set() # チェックポイントファイルが存在すれば、中身を読んで完了済みリストを作る if os.path.exists(checkpoint_file): with open(checkpoint_file, "r", encoding="utf-8") as f: for line in f: # 1行ずつJSONをパースして、chapter_id をセットに追加 completed_chapters.add(json.loads(line)["chapter_id"]) # シラバスの全チャプターをループ for chapter in chapters: # もし、この章がすでに完了済みならスキップ if chapter["id"] in completed_chapters: print(f"Skipping completed chapter: {chapter['id']}") continue # 未処理の章なので、AI生成APIを呼び出す print(f"Generating for chapter: {chapter['id']}...") new_items = call_genai_api

DevIA
Interesse
dev.to

Homa: O protocolo que turbo‑acelera seu treinamento de IA

Homa: O protocolo que está revolucionando o treinamento distribuído de IA Introdução Nos últimos meses Homa virou assunto quente no Hacker News e nos principais fóruns de machine learning. As buscas por “Homa”, “alternativas ao TCP para IA” e “protocolos de rede AI” dispararam +350 % no Google Trends. Se você ainda usa TCP ou QUIC nos clusters de treinamento, está perdendo performance e pagando mais caro por hora de nuvem. Neste guia prático (cerca de 2 800 palavras) você vai descobrir: Como a arquitetura de Homa elimina o gargalo de latência. Benchmarks reais que mostram ganhos de 2 – 5×. Passo‑a‑passo para habilitar Homa em ambientes cloud e on‑premise. Um script Python que decide automaticamente quando migrar do TCP para Homa. Vamos direto ao ponto: implemente Homa hoje e reduza o tempo de treinamento dos seus modelos grandes. Modelos LLM gigantes – Trocas de gradientes entre nós acontecem a cada milissegundo; atrasos acumulam e aumentam o custo total. Corte de despesas na nuvem – Cada hora economizada no treinamento pode significar milhares de dólares a menos na fatura. Limitações do TCP/QUIC – O head‑of‑line blocking do TCP e o controle de congestionamento baseado em perdas do QUIC não são adequados para mensagens curtas e de alta taxa típicas de IA. Adoção precoce de gigantes – Microsoft, Meta e Alibaba já relataram melhorias de 2‑5× ao substituir TCP por Homa em pipelines distribuídos. Esses fatores tornam Homa a escolha mais prática e pronta para produção. Camada TCP QUIC Homa Transporte Conexão orientada, controle de congestionamento por perdas (Reno/Cubic) UDP + TLS, controle híbrido (loss + delay) UDP‑based, credit‑based flow control e agendamento por prioridade Mensagens Stream de bytes → segmentação Stream de bytes sobre frames QUIC Mensagens atomizadas (até 64 KB) enviadas como unidades completas Controle de Congestão Janela deslizante (cwnd) Algoritmos híbridos (Cubic + BBR) Receiver‑driven – o receptor envia “credits” que autorizam o remetente a envi

InfraDevIA
Interesse
dev.to

BuildFolio: From Arduino Builds to Shareable Portfolios

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend BuildFolio helps you build, track, understand and showcase technical projects. Give BuildFolio your project information → AI understands it → it generates an editable portfolio → you publish it as a shareable link. I built this for a friend who makes Arduino projects. Every project has code, wiring, photos and demo videos. When he tried to share his work, GitHub didn't fit: it's good for code, but awkward for showing a build with images and video. He needed a proper website for his projects, and building and maintaining one by hand for every project is slow. Project workspace: he records each project's description, status, technologies, deadline, budget and links (GitHub, KiCad, Fusion 360, Arduino, docs, demo). Task tracking: tasks move through Pending, In Progress and Completed, and overall progress is calculated automatically. Components / BOM: parts with quantity and unit price, with automatic totals, remaining budget and an over-budget warning. AI-drafted portfolio: a local model reads the project data and drafts these sections: Summary, Problem, Solution, Hardware, Software, Architecture, Challenges and Future Improvements. Full editing: he can edit any section, add, remove or reorder sections, and attach media URLs. Publish: one toggle makes the portfolio public at a unique (or custom) slug. Anyone can open it without an account. The tracker is the source of truth, and AI only reads it. Generating a portfolio never changes the underlying project, task or component data. Every AI-written fact is tagged confirmed, inferred or unknown, so the author knows what to verify before publishing. The model never writes HTML. It returns structured data and React handles all rendering. The AI works from text only. It can't look at photos or videos, and media is attached as URLs rather than uploaded. For an Arduino builder, that's the biggest gap. I had limited time for this challenge, so I bu

Dev
Interesse
dev.to

I benchmarked my own security tool against 3 others — and wrote down what it lost

I built gedik, a security-audit skill for Claude Code. Before telling anyone it was good, I wanted a number. So on 30 September 2026 I ran it against three other tools on two targets, with the answer key kept outside every run directory. Then I put the results in the README, including the parts where it lost. This post is about those parts. If you build tools on top of an LLM, the losses are more useful to you than the wins. Four tools. The three LLM-based ones ran on the same model (claude-sonnet-5-5), each in its own isolated claude -p process, with the same prompt: gedik v2.6.0 cloudflare/security-audit-skill Anthropic's built-in /security-review Semgrep 1.178.0, free registry rules only (no Pro, no login) A fifth candidate, Anthropic's claude-security plugin, was left out: its licence restricts use with non-Anthropic products, including competing ones, and I read that as covering this test. Two targets: Target 1: NodeGoat (commit c5cb68a), an intentionally vulnerable Node app. I deleted the tutorials, the tests and every JavaScript comment so the tools couldn't read the answers. That left 17 known issues in the copy. Target 2: a small Supabase + LLM-tool repo I built myself. 11 seeded issues, 5 decoys. I couldn't restrict file-system access, so I checked afterwards instead: every session and sub-agent log searched for the key's path, zero matches. One person scored everything: me. Target 2, my repo, 11 seeded issues (runs of 30 Sep 2026): gedik cloudflare /security-review Semgrep found 11/11 11/11 (9 confirmed) 9/11 1/11 false positives 0 0 0 0 Target 1, NodeGoat, 17 known issues (30 Sep and 1 Oct 2026; competitors one run each): gedik cloudflare /security-review Semgrep detection, when the report arrived 16–17/17 (5 delivered runs) 16/17 5/17 6/17 report delivered 2 of 6 runs (30 Sep, evening and night) · 3 of 3 (1 Oct) yes yes yes That second row is the story. On 30 September, in the first scored run on NodeGoat, gedik's report never reached me. Twice. Every s

SegurançaDevIA
Interesse
dev.to

I crawled 3,014 Houston business websites to see what AI crawlers actually see

Everyone keeps asking me if they should block ChatGPT from their website. So I went and looked at what businesses in Houston are actually doing, and the answer surprised me: almost nobody is blocking AI. Their sites just aren't built in a way AI can read. Here's what I did and what I found. The full dataset is public if you want to poke at it [links at the bottom]. I pulled every business in the Houston metro that lists a website in OpenStreetMap, deduped by domain, and ended up with 3,014 sites. Anything sharing a domain across 3 or more locations got treated as a chain, which left 2,474 independents. For each site the crawler fetched three things, once: robots.txt, llms.txt, and the homepage. It identified itself with its own user agent and skipped any site whose robots.txt told it to stay out. It runs on a Cloudflare Worker with HTMLRewriter, which streams the HTML so attribute order doesn't matter and a heavy page doesn't blow up memory [I cap it at 1.5 MB]. Four checks made up what I call the "AI-ready basics": robots.txt lets the AI search crawlers in (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, PerplexityBot, plus Googlebot and Bingbot since they feed AI Overviews and Copilot) at least 120 words of readable text in the raw HTML, before any JavaScript runs some kind of business schema in JSON-LD (LocalBusiness, Organization, etc) exactly one H1 31% pass all four 45% have no business schema at all 27% have no H1 19% show under 120 words before JavaScript runs (restaurants: 33%) 30% already serve an llms.txt, and several are clearly plugin-generated [one literally says "Generated by Rank Math SEO"] Chains weren't any better: 29% pass all four. Only 1.6% of independents block an AI search crawler in robots.txt. I evaluated rules per crawler token for the homepage path using RFC 9309 longest-match, so a site that blocks /search but not / doesn't count as blocked. Training-only tokens (GPTBot, ClaudeBot, Google-Extended, CCBot) are reported separately, since blo

IADev
Interesse
Krebs on Security

Two Alleged ‘TeamPCP’ Hackers Arrested in Australia

Authorities in Australia have arrested two men believed to be members of TeamPCP, a prolific cybercrime and data extortion group blamed for perpetrating the longest running spree of software supply chain attacks ever. In a statement released today, the Australian Federal Police (AFP) said two unnamed suspects from Western Australia, aged 21 and 23, were arrested in connection with a "sophisticated cybercrime syndicate that allegedly created malicious open-source software to rob thousands of global businesses." The AFP did not name the defendants, but KrebsOnSecurity learned the 21-year-old suspect's real identity in June, and has been communicating with him ever since. This story includes interviews with TeamPCP's self-described spokesperson, and examines clues left behind by the TeamPCP leader that likely led to his undoing.

Segurança
Interesse
Hacker News

Show HN: Spotatui, a Spotify TUI/GUI without web API rate limits

About 11 months ago i revived the amazing but unfortunately unmaintained spotify-tui. Since then I have been working on it almost non stop, finding a lot of problems on the way. One of the main issues I ran into were the Spotify web API rate limits. Third party clients like spotatui are dependent on a developer app made in the Spotify developer dashboard, which get rate limited a lot and Spotify has slowly been deprecating endpoints from it. The workaround for this used to be using a shared client id from ncspot but unfortunately that got rate limited too. This is when i started adding other playback sources, including YouTube, Navidrome/Subsonic, Internet radio with +- 30.000 stations, local files, Qobuz for lossless audio and Apple Music for macOS only where it controls the music app remotely. I fixed both the deprecated endpoints and the rate limits with one solution. It still uses librespot in the back, my spotatui specific fork, but gets all data from it instead of only playback. The data comes from the internal API of the official clients, that API gives metadata, playlists, the user library, devices, lyrics and audio analysis. For searching it uses Pathfinder, the internal GraphQL API. There are no web API rate limits because there is no shared app quota. Every user uses their own session as if it was the official client. The only potential problem is that Spotify does not document this API so any change on their side would break it. I intend to fix any of those issues as soon as they pop up. It all started as a TUI back in 2019 but since then I've added a GUI to it too. The GUI is still a bit behind the TUI in terms of features, it only ships Spotify for now, but full parity between the TUI and GUI is coming soon. After that full parity with the official client is next. That is also why I made the GUI looks almost the same as the official client. That way its easier for me and users to find missing features. Spotatui also has lua scripting support, a optiona

Dev
Interesse
Hacker News

Show HN: Pulse Local, a Mac budgeting app whose AI models run on your machine

Hi HN, I'm Niz. Pulse Local is a budgeting app for Mac (Apple Silicon, beta) that answers questions about your spending with models that run on your machine. Local mode needs no account. The ledger and your questions stay on the machine, and the app sends no analytics or crash logs. I felt there are not enough consumer apps that run locally with no calls to the outside world that help us manage sensitive corners of our lives. This app in its local variant only downloads a couple of models and occasional updates, it does not send any analytics nor data. Features-wise, Pulse local is a complete budgeting app that offers an assistant built on top of a fine-tuned model and thousands of rules embedded in the code itself. I'm sharing it for free with options to help me continue experimenting with fine-tuning and expanding along this direction. How it works: you import a CSV from any bank, in any currency. When you ask a question, a tuned Qwen3 0.6B model reads it into a structured query, and code, not the model, does the money math against the ledger. A 4B checker model double-checks each money answer; when the two readings disagree, the app says it is not sure instead of guessing. That change took wrong answers from about one in five to 5 in 494 questions across our last three tests. The write-up covers how we test, the designs that failed, and the limits of the claim: https://pulseos.finance/pulse-local/writing/agree-or-not-sur... The tuned weights are on Hugging Face (PulseOS/pulse-local-qwen3-0.6b). Limitations: the first start downloads about 2.9 GB of models. With the checker on, a money answer takes 12 to 14 seconds (you can turn the checker off). Small models can still misread an open-ended question. The app answers in English. Mac only for now; Windows is next. The app is free. An optional Connected mode (Sync Pass, $29/year) syncs US banks through Plaid; transactions pass through our server's memory and are not stored. Feedback welcome, especially on wrong answe

IA
Interesse
Simon Willison

Redesigning source control at Anthropic

Redesigning source control at Anthropic Interesting piece from Anthropic describing why and how they built their own custom alternative to Git, based on the dramatic increase in rate of changes to their code after the past six months. In May 2026, Anthropic averaged around 2,500 code changes merged per day; as of September, we merged over 30,000 per day. They included a chart showing those changes. I had Claude modify their chart ( code here ) to add markers for the public releases of each of their models in 2026: This shows public release dates, not the date when models became available for Anthropic's internal use. My guess is that the introduction of Fable/Mythos class models is a key factor in the increased coding velocity. "Antique" is their new code review system. The source control system is called Scion, and sounds to me like a reinvention of centralized source control along the lines of Subversion. They had some pretty extreme requirements: The history of our main branch alone is almost 100 GB, and a compressed working copy is over 25 GB. We perform on the order of 25 million code checkouts per day for CI, before counting developer environments, agent sandboxes, and research jobs. Fetched naively, that would be over 600 PB of git traffic per day. The new system was built by a team of seven people, and the migration from Git was completed in five months. As an aside, I've been trying adversarial review in my own projects recently, where you have a model try and find flaws (I often play Claude and GPT off against each other). This note from the article reflected my own experience with that: Anthropic also makes extensive use of adversarial review, and, while this is incredibly effective in many ways, it can also be myopic, so skilled engineers needed to steer Claude away from over-engineering parts of the system in response to hypothetical concerns. Via Hacker News Tags: git , migrations , version-control , ai , generative-ai , llms , anthropic , agentic-engi

DevInfraIA
Interesse
BleepingComputer

SAP warns of maximum severity OAuth2 SSRF security flaw

SAP has addressed 20 security flaws across multiple products in its October 2026 security updates, including a maximum-severity vulnerability in the Cloud SDK for Python. [...]

SegurançaInfraDev
Interesse
dev.to

NestJS Observe vs Sentry, Datadog and OpenTelemetry: which one for a NestJS app?

One disclosure up front: I created NestJS and my team builds Observe, so this comparison has a clear point of view. The statements about the other tools were checked against their documentation in September 2026; those details can change, so verify them for your own setup. Every monitoring tool can trace a NestJS app. Only one of them was built from inside the framework, and that changes what a trace can show you. That's the short version of this whole post. The four realistic options for a Nest backend: NestJS Observe, the framework's own Sentry, which is error tracking first with performance monitoring grown around it A full-platform APM like Datadog, New Relic or Dynatrace OpenTelemetry plus a backend: Grafana's stack, SigNoz, Jaeger, or any vendor that ingests OTLP If your backend is NestJS, Observe is a practical starting point: it is quick to set up and shows application classes and methods without hand-written spans. Add or switch tools when one of these requirements applies: If you also... Then need browser or mobile errors and session replay add Sentry for the frontend run several languages and want them in one trace, or need to watch infrastructure a full-platform APM must keep telemetry in your own network, or need portable, vendor-neutral instrumentation OpenTelemetry The rest of the post is the reasoning, starting with the difference that matters most. POST /orders takes 1.8 seconds. The controller calls OrdersService, which loads the customer, asks PricingService for a quote, and has PaymentsService charge a card. Here's what each tool shows you. A generic Node.js agent (any platform APM, or OpenTelemetry's auto-instrumentation) sees the process from the outside. The HTTP server, the router under Nest, the database driver, the outbound call. POST /orders 1,812 ms express.middleware (x6) 4 ms pg.query SELECT customers 11 ms http.request POST api.stripe.com 1,747 ms That view is accurate and may be enough for this particular case. (OpenTelemetry's Nest i

DevInfra
Interesse
dev.to

Django Tasks vs Celery: Which Should You Use?

Originally published on the Djangix blog: Django Tasks vs Celery: Which Should You Use? Django now has a built-in Tasks framework, which raises a fair question for new and existing projects: do you still need Celery for background work such as sending email, generating reports, or calling slow third-party APIs? The built-in Tasks framework gives you a standard way to define background tasks in Django itself, with a simple mental model and far less setup than a separate system. For many projects that is enough: you define the task, enqueue it, and let a worker run it, without adding and operating extra infrastructure on day one. Celery still wins in several areas. It has a much larger ecosystem, mature support for different brokers, and well-established tooling for monitoring, retries, scheduling, and complex workflows. If you need those specific features, or you are already running Celery successfully at scale, there is little reason to rip it out. A practical decision rule: small and medium projects should start with Django Tasks and keep the architecture simple. Reach for Celery when you grow to a scale that needs its ecosystem, brokers, monitoring, or a particular feature that Tasks does not provide. Full article: Django Tasks vs Celery: Which Should You Use?

Dev
Interesse
dev.to

Pin Report Bytes Before You Extract One Parser

Freeze current report bytes before you extract a parser. The smallest safe change keeps every known bug. A later commit can fix that known bug. A messy function often writes files and parses flags together. Splitting it first can hide a behavior change. Characterization tests record the old contract before any split. Legacy helpers mix parsing, clocks, and disk writes. One rename can change error text by accident. Tests that only check happy paths miss that drift. Michael Feathers named these behavior locks characterization tests. They lock observed behavior, including known product defects. They do not define the ideal future design. The term comes from Working Effectively with Legacy Code. That book treats pins as discovery, not as specs. Use the pins to detect drift, not to praise the mess. The sample below is a proposal, not a production module. It was not executed while drafting this article. Treat the outputs as the contract you must pin. # Proposal only: this module was not executed in this draft. import json from pathlib import Path def run_job(argv, out_dir): if not argv or argv[0] != "emit": return 2, "usage: emit \n" name = argv[1] if len(argv) > 1 else "" if name.strip() == "": return 3, "name missing\n" path = Path(out_dir) / f"{name}.json" payload = {"name": name, "ok": True} text = json.dumps(payload, separators=(",", ":")) path.write_text(text, encoding="utf-8") return 0, f"wrote {path.name}\n" Three observable facts matter before any code split. Exit codes must stay two, three, and zero. The stderr-style text must keep its trailing newline. File bytes stay compact JSON with no extra space. Spaces inside the name stay inside the file name. Those quirks are recorded data, not cleanup tasks. List every input that the function reads today. List every output that a caller can observe. Do not list the design you wish you had. Seam Current observation Safe to change now argv missing or not emit code 2 and usage text no blank or missing name code 3 and name

Dev
Interesse
dev.to

Split Config Migration Pages Into an Owned Schema Pin and a Drafted Essay

A migration page is trustworthy only when commands, keys, and defaults come from a reviewed schema diff. Drafted prose may explain those pinned facts, but it must not add a flag, a path, or a version. The workflow below stores the diff as a JSON pin, marks narrative sections, and fails when a command is absent from the pin. Teams without a versioned schema, and teams writing security advisories, should not use this split at all. Generated upgrade notes often mix a real diff with a plausible command that never existed in the repository. Reviewers then approve the tone and miss a wrong default, a renamed key, or a rollback step that cannot run. Separating the pin from the essay turns that class of error into a mechanical mismatch instead of a careful reading exercise. The pin is the only place where versions, keys, types, defaults, and shell commands are allowed to appear as facts. The same split also limits how much context a drafting model needs before it writes the essay. A short pin is easier to review than a full schema history pasted into a chat window. It gives the checker an allowlist, and it gives the human a single file to approve when the code change lands. When the pin is wrong, the page is wrong, which is a better failure mode than a fluent page that cannot be traced. A human owner records the source schema path, the target schema path, and the exact key set that the note is allowed to cite. That owner also records each command as a literal string, including the working directory assumption and the expected exit condition. Ownership includes the rollback decision, because a draft can describe a reverse migration that the schema change does not support. The owner name and the review date stay in the pin, so a later edit cannot hide who accepted the facts. Human ownership of the pin stops at facts that a schema diff can actually prove on its own. Impact adjectives, audience guesses, and broad most-teams claims are not made true by a green checker. Those sen

Dev
Interesse
dev.to

Podcast to text in Python: transcribe any episode from its RSS feed

I wanted transcripts of a few podcast episodes for notes and search. The options I found were either a web service with a monthly plan, or a Whisper tutorial that starts with "first, download the MP3". I didn't want to do the download part by hand every time, so I wrote a small script that takes whatever link I have, an RSS feed, an Apple Podcasts link or a direct audio URL, and gives me .txt, .srt, .vtt and .json. It's on GitHub: podcast-to-text (MIT). This post walks through the parts that turned out to be interesting. python podcast_to_text.py "https://podcasts.apple.com/us/podcast/hacker-public-radio/id281699640" --search "wl-copy" Apple Podcasts link -> RSS feed: https://hackerpublicradio.org/hpr_rss.php Episode: HPR4743: wl-copy (2026-10-07) Transcribing with faster-whisper 'base' (4 threads) ... Done: 15.7 min audio in 18 s (0.02 s per audio second), language en. Podcasting 2.0 added a tag to RSS. Some hosting platforms generate transcripts and put the link right into the feed. So before burning CPU, check the feed. I was curious how common that is, so I looked at the Apple top-chart podcasts for the US, UK, Germany and Austria (109 feeds I could read, checked on 8 October 2026; the script and the raw results are in the repo's research/ folder): Chart Newest episode has a transcript tag At least one episode has one US 5 / 49 5 UK 2 / 25 3 Germany 8 / 25 15 Austria 3 / 10 5 Total 18 / 109 28 So for roughly one in six popular shows the transcript is already there. German shows were ahead in this sample, mostly because many of them are hosted on Podigee: 18 of the 28 hits were Podigee feeds (a few shows chart in both Germany and Austria, so they count twice). The others were on Omny, Buzzsprout, Flightcast, Captivate and two smaller hosts. Most of them were WebVTT, some JSON, a few SRT or plain text. The script prefers JSON, then SRT, then VTT, then plain text, downloads it and stops. --force transcribes anyway. Reading the tag is a few lines with the standard l

Dev
Interesse
dev.to

EP02: The self-hosted CDN answer — PPCDN architecture overview

Episode 2 of 20 in the **PPCDN Low-Latency Live Streaming Course* — building a self-hosted, low-latency live-streaming CDN from protocols to global delivery. Originally published on the PPCDN docs site; see the full course index for all episodes.* Recap EP01 "The interactive-video dilemma": the latency paradox, the retiring RTMP/HTTP-FLV, the single-point and sovereignty paradox Next EP03 "Content sovereignty: control it yourself, the ultimate moat" By the end, the viewer should be able to: Draw PPCDN's topology on a whiteboard: publisher, Origin, Edge, viewers, and where the control plane handling scheduling/signaling sits. Explain the engineering response PPCDN gives to each of EP01's three dilemmas — the low-latency path, the real-time protocol choice, and a controllable distributed topology. Explain the three concrete engineering reasons "self-hosting can beat big-cloud services on cost-effectiveness", rather than the empty claim "self-hosting is cheaper". Last episode we broke down three dilemmas: dynamically-accumulating latency across the PPCDN's media path has just three tiers, plus a control plane that never touches media data: Publisher: the in-house ppobs (deeply customized from OBS Studio), or any standard WHIP/SRT publisher. Origin: the source that receives the publish stream — the sole entry for media into the system. Edge (multiple): pulls from Origin and serves viewers; multiple viewers of the same stream on one Edge share a single origin-pull link. ppcenter (control plane): scheduling, auth, node management, P2P signaling, billing metadata and health reports. It carries no media and proxies no media packets. Keeping the control plane and media plane fully separate is the most fundamental design If scheduling/auth "decision logic" shared a path with audio/video, a control-plane wobble the control plane This Another easily missed premise is clock synchronization. Short-lived credentials' iat/exp/txTime, cross-device latency instrumentation and fault d

InfraDev
Interesse
dev.to

3-Stage Frontend Backend Correlated Logging for Browser Fetch Explained

Short answer: Connect frontend and backend logging by sending an opaque request ID with each browser fetch, echoing it in the server response, and recording it in structured logs alongside a separate ID for the full scheduled-import run. Keep the default trail narrow. A correlation key, run state, duration, result count, and failure class usually answer the first operational question without retaining request bodies or customer records. The dominant cost is normally log volume entering storage, not the few bytes occupied by a request ID. Model it before adding fields: runs x events per run x average encoded event size x retention copies. For a concrete capacity example, 200,000 runs per day, six events per run, and 900 bytes per event produce about 1.08 GB of raw events per day before indexing, replication, or compression. This is arithmetic for planning, not a production benchmark or a quoted price. Per-GB ingestion pricing makes event count and encoded size the levers worth measuring; retention and query charges depend on the system selected. The useful change is selective detail, not absent logging. Emit a compact lifecycle event for every run, retain error details only under a documented policy, and measure metrics for the broad health signal. You deliberately stop keeping successful payloads, repeated progress messages, and unbounded browser context. The price of that choice appears during an investigation: you can prove where a run stopped, but you may be unable to reconstruct every input value after the source data expires. Treat three identities as separate fields. request_id follows one browser-to-service exchange. import_run_id follows the scheduled job after the initiating request has returned. trace_id, when distributed tracing is present, follows work across process boundaries. Reusing one value for all three looks convenient until a retry, fan-out, or queue consumer creates a one-to-many relationship. For an import monitor, the stable join is the run I

InfraDev
Interesse
dev.to

Your AI agents are becoming employees. Who manages them?

The first wave of agent tooling answered a fascinating question: How do I build an agent? The next operational question is different: What happens when my company has 10, 100, or 1,000 agents doing real work? At that point the problem starts to resemble workforce operations: identity, ownership, permissions, budgets, credentials, performance, supervision, and offboarding. That is the idea behind Heimda11, a self-hosted Digital Workforce OS. I don't think companies will be satisfied with a list of anonymous automations. An AI worker should have an accountable identity: a role and department a human owner an autonomy level a monthly compute / model budget an allow-list of tools a lifecycle state performance and audit history Heimda11 turns those concepts into an operational control plane. Gate is default-deny. An agent can request an action such as using a tool, changing data, or triggering a financial workflow. Policies can allow it, deny it, or require explicit human approval. A governed workflow cannot simply skip the decision. Flow checks Gate before every step. Meter records model/provider usage and attributes AI spend to the worker. Watch records traces, outcomes, failures, value, and operational events. That lets the company move from “we spent a lot of tokens” to questions such as: what did this AI worker cost, what did it complete, and what value did it produce? Vault encrypts secrets at rest using a customer-controlled master key. Agents can receive short-lived, one-time leases scoped to their own identity. A different worker cannot redeem the same scoped secret. Relay can also consume provider credentials internally without exposing the plaintext credential to the requesting agent. Heimda11 includes ordered provider fallback for OpenAI-compatible APIs. The point is not to invent another model API. The point is to make model choice and provider failure an operational concern that can be governed and observed. Memory provides private self-hosted operation

IADev
Interesse
dev.to

Why your photo-to-PDF pages come out in the wrong order (and how to sort them in the browser)

If you've built an "images to PDF" feature, you've probably had this bug report: "I picked page 1, 2, 3, 4 and the PDF came out 3, 1, 4, 2." Nothing is wrong with your PDF code. The problem is the order the files arrive in, and on phones that order is surprisingly unreliable. Here is what actually happens and a small sorting strategy that fixes most cases without uploading anything to a server. When a user picks several files with , the FileList you get back is in whatever order the OS picker hands over. That depends on the platform: Android (Chrome, Photos picker): usually the order the user tapped, but some gallery apps return them by date added instead. iOS Safari: the order of selection most of the time, but images converted from HEIC on the fly can shuffle. Desktop file dialogs: often alphabetical by file name, regardless of click order. So "the order the user selected" is not something you can count on. You need a deterministic fallback, and ideally a way for the user to fix it. Camera apps name files with a timestamp, which sorts nicely if you compare numbers rather than strings: const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: "base" }); files.sort((a, b) => collator.compare(a.name, b.name)); The numeric: true option matters. A plain string sort puts page10.jpg before page2.jpg; a numeric collation does not. The catch: images that went through WhatsApp, Telegram or a screenshot tool get renamed (IMG-20261008-WA0004.jpg, image.jpg, 1000012345.jpg), so the name may only reflect when the file was received, not when the photo was taken. lastModified File.lastModified looks tempting, but on mobile it is usually the time the file was written to the device or copied into the picker's cache. Ten photos received in one chat often share the same second. Use it as a tie-breaker, not as the main key. DateTimeOriginal For real camera photos, the best signal is inside the JPEG itself. EXIF tag 0x9003 (DateTimeOriginal) records when the shutter f

DevMobile
Interesse
dev.to

AllergyGuard — Open-Source Offline Dietary Safety & Recipe Transformation Engine

What I Built Shared living arrangements create significant friction when one roommate manages severe immunological food sensitivities. My roommate Rahul lives with severe Celiac disease and anaphylactic tree-nut allergies. Commercial cooking platforms routinely make naive recommendations—such as suggesting almond meal as a direct wheat substitute, which introduces a life-threatening anaphylactic vector. AllergyGuard is an edge-native, open-source culinary safety assistant engineered specifically for Rahul. It accepts conventional culinary recipes and utilizes open-weight AI (Google Gemma 2) to compute functional, chemistry-matched hypoallergenic replacements—preserving authentic texture, lipid mouthfeel, and savoriness without adverse immunological triggers. Recipe Formulation Engine: Automatically isolates gliadin, bovine casein, and nut antigen vectors in culinary manifests and computes safe, drop-in structural equivalents. Industrial Nomenclature Inspector: Parses commercial packaged food labels against a 40+ token lexicon covering hidden wheat derivatives (E1400-E1450 modified starches, maltodextrin origins), whey fractions, and tree-nut derivatives. Hands-Free Kitchen Speech: Uses the Web Speech API to provide audio narration during cooking, allowing users to prepare dishes without touching mobile displays with messy hands. Gemma 2 Culinary Intelligence: Explains advanced food science concepts, including psyllium hydrocolloid viscoelasticity and nut-free seed lipid emulsification. Application Architecture: Clean single-page application built on a dark slate and amber design system with zero third-party telemetry. Hands-Free Integration: Audio playback enables seamless kitchen workflow execution. Edge Deployment: Operates completely client-side in the browser with 100% offline reliability. The source code is licensed under the MIT License and hosted on GitHub: / Kunal-CodeLab-allergy-guard AllergyGuard — Decentralized Dietary Safety & Culinary Transformation Eng

IADevMobile
Interesse
dev.to

A running NVR is not proof your cameras survived the power cut

Front and rear views of the 6708KR PoE recorder listed by QuarkView. When planning backup power for a camera system, the useful question is not “How many cameras can this UPS support?” It is “Which powered devices are required to get a recorded frame onto the disk?” Trace that path before shopping. A camera plugged into the recorder’s own PoE ports has a different power path from a camera supplied by a separate switch. In the second layout, keeping only the NVR alive leaves the cameras without power. Network equipment that carries the video must survive too. A router needed only for internet access may be unnecessary for isolated local recording, but that depends on the actual topology. Consider an explicitly hypothetical installation: Essential device Assumed AC load NVR with storage, excluding camera power 25 W Populated PoE switch, including its cameras 70 W Router required for the video path 10 W Total 105 W The important detail is the second row. Its 70 W already includes camera power. Adding the individual camera watts again would count the same load twice. An NVR with built-in PoE can create the same mistake: total measured recorder input may already include the cameras. If you choose an illustrative 25% planning allowance, the calculation becomes 105 × 1.25 = 131.25 W. That is a capacity planning figure, not a battery-runtime forecast. Replace these assumptions with documented demand and measurements from the installation, including night illumination, the installed drives and startup behavior. Check both UPS limits: watts for real power and VA for apparent power. Do not infer watts or backup minutes from a VA label alone. Use the exact model’s official runtime curve or calculator for the intended load and battery configuration. There is a practical reason to do this. CCTV Camera World publishes roughly 40 minutes at 100 W and 17 minutes at 200 W for one 1000 VA / 600 W UPS at maximum battery health. Those figures describe that particular product. They neith

Infra
Interesse
dev.to

coreaudiod at 112% CPU: the sample-rate mismatch that froze Zoom on my Mac

I'm Hisashi. I've run my own company for 22 years, and from 2011 to 2023 I ran it while moving between countries. My work means a lot of Zoom calls, and it also means my main Mac is permanently mid-recording, mid-stream, or mid-long-running-job. Rebooting is never an option I accept without a fight. So when Zoom started freezing on launch (spinning, audio dead, the whole machine feeling sticky), I did what I always do: found the actual culprit instead of power-cycling my way past it. The culprit turned out to be embarrassingly small. One audio device was set to 44.1kHz while everything else on the system ran at 48kHz. That single mismatch had macOS's audio daemon burning a full CPU core, continuously, for weeks. If your Mac's audio feels haunted (Zoom slow to join, recording apps erroring out, UI hitching when sound plays), there's a decent chance you have the same disease. Here's the full diagnosis and the fix. Total time: about 15 minutes. Reboots required: zero. Clicking a Zoom link did nothing for a long time. The meeting window eventually appeared, but audio took even longer, and sometimes the app just sat there. Meanwhile the machine felt subtly wrong: keystrokes lagging, fans occasionally spinning up with nothing visible running. top told the real story: PID %CPU COMMAND 620 112.3 coreaudiod coreaudiod is the macOS audio daemon (the process behind Core Audio; every app that plays or records sound talks to it). It should idle near 0%. Mine was pinned above 100%, meaning it had more than one full core to itself. One more detail made it clear this wasn't a fresh problem. The process had accumulated over 39 hours of CPU time. This thing had been quietly cooking for weeks, and Zoom's launch sequence just made it visible, because Zoom enumerates and opens audio devices aggressively at startup, right into the teeth of a daemon that was already drowning. A reboot would have "fixed" this. It also would have destroyed the diagnosis, killed everything else the machine w

Infra
Interesse
dev.to

I run a one-person game studio on Claude Code. Two months, 7 games, about $1 in ad revenue.

I've shipped 7 Android games in the last two months, and I didn't write most of the code. My day job is vulnerability assessment here in Japan. The games happen on the side, with one Claude Code session acting as a "producer" and fifteen subagents under it, each playing a department: game design, programming, QA, a playtest critic, release, ads, analytics, and so on. When I say "level 3 is too easy," the producer has the designer pick new numbers, the programmer put them in, QA measure clear rates with an auto-player, and the critic play it cold. I touch the build on a real phone at the end and say yes or no. I started with 10 departments on August 23, 2026. There are 15 now. This is the log of what worked, what blew up, and what I added. 7 games built. Some are live on Google Play, some are still in closed testing. The first time I ran the full loop, a coin-pusher game's economy was producing 3.15 million coins in a 10-minute simulation. Three rounds later the median was 10,000, inside the target band. When a subagent died mid-task on a usage limit, one message brought it back with its context intact. Nothing was lost. Ad revenue over the last 30 days: ¥152. That's roughly one US dollar. I'm leaving that last line in on purpose. The department setup made building fast. It did nothing for getting found. More on that at the end. At first I gave everything to one session, and two things kept going wrong. The first was that it graded its own homework. Ask the session that wrote the code to also write tests and you get tests that pass, because they were written to pass. The second was that nobody ever asked whether the game was fun. Right after writing code, Claude cares whether the code matches the spec. It doesn't care whether the level is boring. To get that question asked, I needed someone standing somewhere else. So I gave each point of view its own subagent. In Claude Code, one Markdown file in .claude/agents/ is one subagent, and it starts with a blank context ev

IADevMobileGames
Interesse
dev.to

I Got Tired of Android Mac File Transfers, So I Built an Open-Source File Manager

The problem Moving files from my Android phone to my MacBook should be simple. For me it never was. USB connections dropped. Network transfers failed halfway. Free tools were unreliable, and the good ones were paid. So I stopped searching and built my own. File Manager is an open-source desktop app built with Electron, React and Vite. It aims to feel like Windows Explorer or macOS Finder, with strong filtering and sorting. Main features: Android transfer: over USB (via libmtp) and over Wi-Fi (via FTP) Navigation: tabs with per-tab history, breadcrumbs, drag and drop Search: wildcard filters (*.pdf, IMG_??.jpg) and recursive search Sorting, grouping and filters: by type, size, date and extension, with live counts File operations: rename, copy, cut, paste, compress, undo Previews and thumbnails: quick preview with Space (Add a screenshot or GIF of a phone transfer here.) Electron for the desktop shell React 18 and Vite for the UI Plain CSS and lucide-react icons, no UI framework Vitest for unit tests and Playwright for end-to-end tests 1. Electron security matters. contextIsolation: true, nodeIntegration: false and sandbox: true. All filesystem work happens in the main process behind ipcMain.handle, and the renderer only sees a small API exposed through a preload script. It's more setup, but it's the right way to build. 2. Talking to phones is hard. brew install libmtp. For Wi-Fi, the phone runs an FTP server app and the file manager connects to it. 3. Testing a desktop app is different. 4. Shipping is its own project. macOS (Apple silicon): available now Windows: build script exists, installer coming soon USB transfer: currently macOS and Linux only The app is unsigned, so on macOS you right-click and choose Open the first time It's still early, and I'd love your help: Try it and tell me what breaks Star the repo if you find it useful Pick up an issue and send a PR 🔗 GitHub: https://github.com/shailesh-ss-19-11/filemanager Have you ever struggled with Android ↔ Mac

DevMobile
Interesse