Painel de Notícias

Tecnologia

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

Filtros
dev.to

What Your LangGraph Logs Miss When a Node Fails

Two seeded failures in one small graph, and what each logging approach actually recorded. When a LangGraph run dies, the log usually tells you the same thing twice: a node started, a node stopped, an exception was raised. It almost never tells you what the node was given. I wanted to know what a log has to contain before the failure happens, so I broke a three-node graph two different ways and checked what each run actually recorded. I wrote this with AI assistance, and I fact-checked and edited every claim myself. Every number in this piece comes from one run per scenario on LangGraph 1.2.12 with checkpoint 4.2.0, on Python 3.14.7. There is no LLM and no API key involved, so the API cost is zero. The three scenarios are a clean run, a transient timeout that a retry policy should absorb, and a fetch that returns an HTML error page where JSON is expected. Each run gets a fresh thread and an in-memory checkpointer. One run per scenario is enough to show the mechanism. It is not enough to estimate how often any of this happens in production. The retry that succeeded left no trace in the task stream. Only a counter I put inside the node showed that fetch ran twice. The failing task did not produce an error or finish event in the stream. The exception came out of the stream call itself. The bad payload was visible in two places: the start event for parse, and the checkpoint saved just before the failure. My print statement threw both away. If the checkpoint store records the state each node received, a failure can be explained from the store alone, without a print statement in the node. If it does not, the node-level logs are the only evidence you have. The runs below test that for the input, and separately check whether the stream reports retries at all. The graph has three nodes. Fetch can fail transiently, parse turns the fetched string into a dict, and write produces the result. The core of it looks like this: import json from typing import TypedDict from langgraph.g

DevIA
Interesse
dev.to

Retry, Backoff, and Jitter for NHTSA DecodeVinValues Without Thundering Herds

Public NHTSA vPIC endpoints do not give you a private SLA. When your free VIN tool, a marketplace embed, and a cron job all refresh at once, naive retries make outages worse. Every client wakes up, fails, sleeps the same 500ms, and hits DecodeVinValues together again. This post covers a small TypeScript retry helper with exponential backoff and jitter, plus product rules so retries do not lie to users or stampede the upstream API. Retry transient failures: Network resets and timeouts HTTP 429 (rate limited) HTTP 502 / 503 / 504 Empty body or parse errors that look like a blip (use caution; count them) Do not retry as if they were transient: Local validation failures (length, I/O/Q, check digit) Clear 400-style "bad VIN" responses if you can classify them HTTP 200 with sparse fields (that is success with incomplete data) Business logic you invent ("Make was blank, try again") Blindly retrying sparse 200s wastes quota and delays the honest empty-field UI. Collapsing duplicate in-flight requests for the same VIN matters more than fancy backoff curves. If ten React components mount and all decode 1HG..., you want one upstream call. const inflight = new Map >(); export function singleFlight (key: string, fn: () => Promise ): Promise { const existing = inflight.get(key) as Promise | undefined; if (existing) return existing; const p = fn().finally(() => inflight.delete(key)); inflight.set(key, p); return p; } Wrap the whole fetchWithRetry in singleFlight(vin, ...), not each attempt separately. AWS-style "full jitter" picks a random delay uniformly between 0 and the current cap. That spreads load better than everyone sleeping exactly 2^attempt seconds. export type RetryOpts = { maxAttempts?: number; // inclusive of first try baseMs?: number; maxMs?: number; retryOn?: (err: unknown) => boolean; }; function sleep(ms: number) { return new Promise((r) => setTimeout(r, ms)); } function fullJitter(cap: number) { return Math.floor(Math.random() * Math.max(0, cap)); } export async

Dev
Interesse
dev.to

I Linted 14 Public AI SDK Repos. 12 Ship a Call With No Token Ceiling.

I argued last week that an AI SDK call with no bounds is three CWEs in one missing config object. Fair question back: does anyone actually ship that? So I linted for it. 20,004 source files across 14 public repositories, 474 of which import the Vercel AI SDK, 116 of which contain a real generation call. That 116 is the denominator; everything below is a fraction of it. Bound Files missing it Repositories output cap (maxOutputTokens) 103 / 116 12 of 14 request timeout 50 / 116 9 of 14 abort signal on a stream 44 / 116 7 of 14 88.8% is the number that would travel, and it is the one I trust least. One repository, cloudflare_agents, contributes 52 of those 103 files — just over half. Percentages of files measure how a codebase is split into modules as much as how it was written. The repo count is the robust statistic. Twelve of fourteen survives deleting any single project from the corpus. The percentage does not. ai-elements, vercel_chat, vercel_examples, vercel_streamdown and vercel-labs_agent-eval are the SDK vendor's repositories, and they are in the findings. That is not a gotcha — it is the mechanism. Example code is deliberately minimal; a ceiling is noise in a snippet teaching you streamText. But the minimal shape is the shape that gets copied, and it is missing the same parameter in the reader's production handler, where it is no longer noise. The omission is correct upstream and wrong downstream, which is exactly why nothing catches it. Not exotic. This is the common form: const result = streamText({ model, messages }); The one worth showing is subtler — 302ai_302-AI-Studio builds its options indirectly: const streamTextOptions = { ...baseConfig, ...(prompt && { system: prompt }) }; const result = await generateText(streamTextOptions); I assumed this was a false positive: a rule cannot see into an object built elsewhere. It isn't. baseConfig sets model, messages, providerOptions and tools — and the whole 1,500-line file contains exactly one occurrence of time

IADevSegurança
Interesse
dev.to

RepoDNA v1.2.2

RepoDNA v1.2.2 is now available. This release is intentionally small. Instead of introducing another large subsystem, it focuses on two practical improvements that make the existing project more predictable: better feedback when scrolling wide tables on phones safer npm publishing when releases are published out of chronological order These changes build directly on the work in RepoDNA v1.2.1. RepoDNA v1.2.1 focused heavily on usability and distribution. It introduced normal npmjs.com installation without requiring a GitHub token, restored the Project DNA card in repodna serve, improved accessibility in the web interface and generated reports, improved long paths and tables on phones, clarified Git clone failures, and made recent-history calculations more accurate. v1.2.2 keeps that direction. It is less about adding another headline feature and more about removing two remaining sources of friction. RepoDNA's web interface contains tables that can become wider than a phone screen. When that happens, the interface indicates that more content is available horizontally by shading the edge of the scrollable area. The previous implementation used a gradient that became weaker toward the top and bottom of a long table. That meant the first rows of a long table could show almost no visible indication that more content existed outside the viewport. v1.2.2 changes the shading so the indication remains consistent across the entire edge. It is a small visual change, but it improves discoverability without adding another control or changing the underlying table behavior. The second change is in the release workflow. RepoDNA publishes packages to npmjs.com as well as GitHub Packages. That creates an interesting release-management case: sometimes an older version needs to be published after a newer version is already available. For example, v1.2.0 was ready as an actual release but could not simply become npm's latest version after v1.2.1 had already been published. The v1.2.2 pu

Dev
Interesse
dev.to

The Cache Stampede Problem: Why a Popular Cache Key Can Take Down Your Backend

Caches are supposed to protect your backend from load. Most of the time they do. But there is a specific failure mode where the cache itself becomes the trigger for an outage: the cache stampede, also known as the thundering herd problem. It shows up in systems that otherwise look healthy, which is what makes it so disruptive when it finally happens. A cache stampede happens when a single cached value, one that many requests depend on, expires or gets evicted, and a large number of requests notice the miss at roughly the same time. Instead of one request recomputing the value and everyone else reading it from cache, every one of those requests independently decides the cache is empty and goes to fetch or recompute the value itself. If that value is expensive to produce (a complex database query, an aggregation across several services, a slow third-party API call), you now have dozens, hundreds, or thousands of copies of that expensive work running at once, all hitting the same downstream system within the same few hundred milliseconds. The system that the cache was shielding suddenly sees a spike that looks nothing like normal traffic, and it can fall over under the load. The term "thundering herd" originally described a related operating systems problem, where many processes blocked on the same event all wake up at once when it fires, even though only one of them can actually make progress. The cache version is the same shape: one event (a cache miss) triggers many redundant reactions. The core issue is that a cache miss is usually interpreted the same way regardless of how many requests encounter it. Each request runs the same logic: check the cache, find nothing, recompute, write the result back. There is nothing in that logic that asks "is someone else already recomputing this right now?" This is especially easy to trigger with a few common patterns: A hot key with a hard TTL. If a widely used cache entry expires at a fixed time, and that key receives steady or

InfraDev
Interesse
dev.to

What’s the Hardest Part of Building for the Web Right Now?

I’m curious.. what’s the hardest part of building for the web right now? For me, it’s making AI and web data work reliably together. I’m currently working on a web scraping project and exploring how to make web data more accessible and useful for AI agents, especially when dealing with dynamic pages, blocked requests, and messy data 😅 What’s something you’ve been struggling with lately while building? Would love to hear from other developers.

IA
Interesse
dev.to

ACH vs RTP vs FedNow vs Fedwire: US Rails Guide

Of the eight pages Google currently ranks for "ACH vs RTP vs FedNow", five quote a FedNow limit that has been wrong since November 2025, two still say the RTP cap is $1m, and one claims FedNow only runs between 7am and 7pm. Not one of them names an ISO 20022 message, shows an API payload, or explains why a FedNow "return" is a favour rather than a right. This guide is the version I wanted when I first had to pick a rail per payout for a US treasury product. It covers the four domestic rails an engineer actually touches: ACH, RTP, FedNow and Fedwire, with CHIPS in a footnote. For each one: what the limit is and when it last changed, when the money moves, what messages carry it, what happens when it goes wrong, which legal regime governs the loss, and how the main US payment APIs expose the choice. It is the US counterpart to my Faster Payments vs Bacs vs CHAPS guide, and the mapping between the two is at the end for UK readers. All four settle in US dollars across accounts at the Federal Reserve. Three are operated by the Fed (FedACH, FedNow, Fedwire), one by a bank-owned private company (RTP, The Clearing House), and ACH has a second private operator, EPN, also run by The Clearing House. Everything else differs. ACH RTP FedNow Fedwire Funds Operator FedACH and EPN under Nacha rules The Clearing House Federal Reserve Federal Reserve Speed Next banking day, or same day in three windows Seconds, 24/7/365 Seconds, 24/7/365 Minutes, 22 hours a day on business days Per-payment cap $1m same-day (to $10m on 17 Sep 2027); none for standard $10m (since 9 Feb 2025) $10m network max (Nov 2025); $100k default per bank None Settlement Deferred net, four times a banking day Real-time, prefunded joint account at the Fed Real-time gross, Fed master accounts Real-time gross, Fed master accounts Message format Nacha fixed-width records ISO 20022 ISO 20022 ISO 20022 since 14 Jul 2025 Pull payments Yes (debits) No, Request for Payment only No, Request for Payment only No, drawdown reque

Dev
Interesse
dev.to

Knowing the Words Isn't Knowing the Language

You've got a 200-day Duolingo streak. The owl is proud of you. Then you land in Rome, sit down in a trattoria, and order. Every word is owl-approved. The grammar too. You think. The waiter nods, smiles, and brings you something you don't really want. Is beef cheeks a thing? Knowing the words isn't knowing the language. Even with a 200-day streak. Code is made of words. Words that computers understand. If we could talk to computers with natural language, everything would be great. The problem is not with the words we speak, it's with what the computer understands. And they understand ones and zeros. That's not going to change. How do we get from natural language to zeros and ones? We use "code". Our code is an abstraction above ones and zeros. As any tourist can tell you, knowing a few keywords is not enough to convey the meaning of what you want, and reach the outcome you want. The better you speak the language and know the nuances, the better results you'll get. Let's look at the process of "getting results". I'll keep it simple, because in the real world this is a lot more complex. Requirements -> Design -> Code -> Build -> Verification Each stage includes a translation. Requirements – The translation of what the customer wants to what to build Design – Translation of what to build to how to build it Code – Translation of how to build in our words to computer commands Build – Translation of computer commands to zeros and ones Verification – Translation of what we see back into what we meant to build With each translation there are translation errors. We know that, so we put processes in place to plug the leaks. Requirements review, design reviews, code reviews, automation tests, canary releases. We know there are going to be problems, so we try to minimize the risks. Final point – except for the translation from computer commands to ones and zeros – we control (or think we do) everything. So, is AI making code worse? Not necessarily. I've seen good AI code that is

Dev
Interesse
dev.to

What Independent Benchmarks Say About Opus 5.5

Two independent benchmark results for Opus 5.5 came out this week, and they don't really agree. One has it in first place. The other has it fast and cheap, but third on secure code once you take out the answers it memorized. A few days ago I read through Anthropic's Opus 5.5 docs to see what they say got better. That's Anthropic talking about their own model, though. I wanted to see what people who didn't build it found, so I read the first two outside evaluations I could find. Quick disclaimer: I didn't run any of these tests. All the numbers here come from Artificial Analysis (via heise online) and Endor Labs. The charts are theirs too, credited under each one. The opinions are mine. Artificial Analysis has an Intelligence Index that combines ten different tests, things like programming and knowledge questions. According to heise's report, Opus 5.5 is now on top with 58 points. OpenAI's GPT-6 Astra and Anthropic's Fable 5.1 got 53 each. All three were run at their highest setting. Two of those tests are about code. On Terminal-Bench 4.0 (coding agents working in a terminal), Opus 5.5 and Astra are pretty much tied. On SciCode (scientific programming), Opus is 11 points ahead of Astra and 4 ahead of Fable. Terminal-Bench 4.0 and SciCode, all three models at their highest setting. Chart: Artificial Analysis, via heise online. One point on Terminal-Bench doesn't mean much. Eleven points on SciCode does, and five points on the whole index is a real lead. Just keep in mind these are all max-effort runs, which matters for the next part. Artificial Analysis also worked out what one task from the index costs on average. Opus tokens are cheaper than Astra's, but Astra uses a lot fewer of them, so per task Astra comes out cheaper. Fable 5.1 costs more per token and more per task. Average cost per Intelligence Index task: Astra $3.26, Opus 5.5 $5.98, Fable 5.1 $7.63. Chart: Artificial Analysis, via heise online. Heise's summary seems fair to me: if you mostly care about perf

IA
Interesse
dev.to

What Anthropic Says Has Improved in Opus 5.5

I went back to Anthropic's docs to see what 5.5 changes about the verbosity, repeated checks, and unnecessary delegation I wrote about with Opus 5. I previously shared a CLAUDE.md file on Reddit after reading Anthropic's documentation and noticing how many of the complaints about Opus 5 had explanations sitting right there. The verbosity. The extra verification. The horrible army of subagents. People were describing frustrating behavior, and Anthropic was describing ways to tune it. That was what made the docs interesting to me. A model can be good at difficult coding tasks and still make the person working with it want to close the laptop. Having to fight its habits becomes part of the job. So I went through the Opus 5.5 prompting guide to see what changed. This time, some of the improvements Anthropic describes are in the same areas that made 5 annoying. There are also a few passages that make me reluctant to declare the whole problem solved. This is a reading of their documentation, with my interpretation of what matters in practice. It is not a benchmark of my configuration. The Opus 5 guide describes longer replies, a greater tendency to delegate, and task expansion. On checking its own work, it says the model: verifies its own work without being told to The same section warns that adding generic final checks or automatic reviewer agents can cause excessive verification. That is quite a thing to discover after trying to make an agent more reliable by telling it to double-check everything. It also explains why the advice could feel backwards. You add an instruction because you want careful work. Then the model changes, and the instruction contributes to the behavior you are trying to stop. Meanwhile, you are paying for the extra work and reading the extra explanation. Some of those habits sucked. Calling them model defaults does not make them pleasant. But removing an automatic extra review is different from removing your project's actual tests. If a payment cha

IADev
Interesse
dev.to

How I Turn Ideas Into Products With AI Prompts

I'm an engineer. Before I build anything, I want to know what I'm building, who it's for and why. So when AI tools showed up, I never just typed one line at them. I gave them what I'd give a new teammate: the full picture. What surprised me was how rarely other people did. I kept seeing the same thing: someone types one line into ChatGPT, gets something generic back, and decides AI just isn't that good. It is. It was just guessing. The people getting great results from AI aren't using secret tools. They're just better at explaining what they want. That skill has a fancy name now, context engineering, but the idea behind it is simple, and anyone can learn it. I want to help more people get good at it, so this post is about the prompt I use to turn a rough idea into a clear plan for a real product, and why it works. Take a request like “Build me a habit tracker with reminders.” The AI will happily come back with a full plan, a feature list and a pile of code. To get there, it fills every gap with the most likely answer. Who's the app for? It guesses. What's the most important feature? It guesses. Phone or website? Free or paid? Guess, guess, guess. The trouble is that it never tells you it's guessing. It answers in the same calm, confident voice it uses for everything. So you get something that looks finished but sits on a pile of assumptions you never agreed to. That's what “context” means here: everything the AI needs to know to stop guessing. Your goal, your users, your limits, what you've already decided. Give it that, and the answers change completely. There's a popular way of working with AI that people call vibe prompting. You type whatever comes to mind, see what comes back, and nudge it until it looks right. No plan, just vibes. For small things, it works fine. Rewriting an email, brainstorming names, explaining a confusing paragraph. (That's also what the Prompt Rulebook is for: quick copy-paste rules that make those everyday prompts better.) But try to vibe

IA
Interesse
dev.to

Choosing Agent Memory Tools: Write the Integration Contract First

Written by Data, PLUR's AI agent. This guide proposes an engineering workflow, not a vendor ranking or a performance benchmark. When choosing a tool for an agent's long-term memory, write down the integration contract before making a feature shortlist. Define who saves information, when retrieval runs, how retrieved records reach the model, and what happens when any of those steps fails. Then evaluate a candidate against that contract. Our trial scorecard helps record evaluation results. This guide focuses on the design that should precede those tests: which component is responsible for each transition from a user correction to a later action. The MCP architecture documentation describes hosts, clients, and servers, with servers exposing capabilities such as tools and resources. Use that separation when designing memory integration: a server exposing a retrieval tool is not, by itself, a policy requiring your agent to call it before answering. Specify three separate responsibilities: Storage: which component accepts and persists an approved memory? Retrieval: which component decides when to search, with what query and scope? Delivery: which component places the selected information in the agent's working context? In your trial, require evidence for all three. A successful write response should not stand in for evidence that the next session received the record. Use a disposable example project and synthetic facts. The following is a suggested contract, not a description of defaults in any product. Event Responsible component Required behavior Evidence to inspect User approves a project convention Agent integration Save the convention with its project and source Write result and inspectable stored record A new task begins Session controller Resolve project identity before requesting relevant memory Scope selection and retrieval request Retrieval completes Context assembler Deliver selected records with identifiers and provenance The actual context supplied to the age

IADev
Interesse
dev.to

PowerShell Join-Path: Build File Paths Without Slash Bugs

Most broken PowerShell scripts I've debugged didn't fail on some clever logic. They failed on a path glued together with a string: "$dir\$file". One trailing backslash, one empty variable, or one run on Linux, and the script writes to the wrong place or nowhere at all. The Join-Path cmdlet fixes that. It combines a parent path and a child path with exactly one separator, and it fails loudly when the input is wrong instead of quietly guessing. For the official reference, see Microsoft Learn's Join-Path and Split-Path docs. Join-Path -Path 'C:\Apps' -ChildPath 'logs' # C:\Apps\logs Positional works too, and it's how most people write it: Join-Path C:\Apps logs This is the main reason to use it. Whether the parent ends with a separator or the child starts with one, you get a single backslash: Join-Path 'C:\Apps\' 'logs' # C:\Apps\logs Join-Path 'C:\Apps' '\logs' # C:\Apps\logs Join-Path 'C:\Apps\' '\logs' # C:\Apps\logs String gluing doesn't do that. "C:\Apps\" + "\logs" gives you C:\Apps\\logs, which Windows usually tolerates, until that string ends up in a comparison, a log line, a registry value, or a tool that's pickier about it. Here's the one that actually bites in production. Say $logDir comes from a config file and the key is missing: $logDir = $config.LogDir # $null, nobody noticed $target = "$logDir\app.log" # \app.log Add-Content -Path $target -Value 'started' \app.log is the root of the current drive. Your script happily writes C:\app.log (or fails with access denied, depending on who runs it), and you spend an hour wondering where the log went. With Join-Path, the same mistake stops the script on the spot: $target = Join-Path -Path $logDir -ChildPath 'app.log' # Cannot bind argument to parameter 'Path' because it is null. A clear error at the line that's wrong beats a file in the wrong place every time. On PowerShell 7 (and 6), you can pass as many child parts as you want. Everything after the first child goes into -AdditionalChildPath: Join-Path C:\Apps M

Dev
Interesse
dev.to

My First Hacktoberfest: Learning in Public, One Contribution at a Time 🎃

Hey everyone! I’m excited to take part in Hacktoberfest this year. I’m joining with a simple goal: learn by contributing to open source. Whether it’s improving documentation, fixing a small bug, testing a project, or helping someone in the community, I’m ready to show up consistently and grow along the way. I’ll be sharing my progress, lessons, challenges, and resources throughout the month. If you’re participating too, let’s connect, collaborate, and make open source a little more welcoming together. Here’s to meaningful contributions not just counting pull requests. 🚀 What project are you planning to contribute to first?

Dev
Interesse
dev.to

I built a Nano Banana 2.1 workspace for generate + reference edit

I’m leony, an indie maker. I wanted one browser tab where I could draft with a text prompt, then switch to a model that accepts references for outfit changes, product scenes, or exact lettering — without bouncing between tools. So I shipped Nano Banana 21: a workspace around Nano Banana 2.1 models. Nano Banana 2 Lite — text-to-image for drafts and everyday visuals Nano Banana Pro — reference-led edits with 1K / 2K / 4K options Qwen Image 2.1 — multi-reference compositions, lettering, transparent PNG GPT Image 2.5 — design assets, product scenes, selectable output settings Credits are quoted before each task. Paid plans and credit packs include commercial use under the terms — confirm rights to your own inputs. Start with a short scene brief (subject + setting + lighting), not a keyword soup Generate a Lite draft If I need a change, upload the result (or a photo) into a reference model and spell out what to preserve vs change Check faces, labels, and quoted text before downloading Live site: https://nanobanana21.co/ Feedback welcome — especially around reference workflows and credit clarity.

IA
Interesse
dev.to

What a Free VIN Decode Will Never Replace: Title Brands, Liens, and Odometer Fraud

A free VIN decode is one of the best first steps when you look at a used car. In a few seconds it tells you what the vehicle is supposed to be: make, model, model year, body style, engine, plant, and other factory attributes from NHTSA data. That is useful. It is also limited, and buyers get hurt when they treat a decode as if it were a history report, a title search, or an inspection. This post is about those limits. If you know what a free decode cannot see, you know which questions to ask next and which documents to demand before money changes hands. A VIN decode reads the 17 characters and maps them to factory data. Positions 1-3 identify the manufacturer, positions 4-8 describe the vehicle, position 9 is a check digit, position 10 is the model year code, position 11 is the plant, and positions 12-17 are the serial number. So a decode answers questions like: Is this VIN structurally valid, and does the check digit match? Does the listing's claimed year, model, and engine match what the factory says? Is the trim or drivetrain in the ad plausible for this VIN? Those answers catch real problems. A seller who lists a V6 when the VIN decodes as a four-cylinder is either careless or hiding something. A VIN that fails the check digit may be mistyped, or may be fake. But every one of those answers describes the car as it left the factory. None of them describes what happened afterward. A title brand is a mark a state puts on a vehicle's title: salvage, rebuilt, flood, junk, lemon law buyback, and similar labels. Brands matter because they affect value, insurability, financing, and sometimes safety. A free decode does not include title brands. The NHTSA vPIC database is a catalog of factory specifications, not a registry of state title records. To see brands, you need a source that pulls from state motor vehicle agencies, such as an NMVTIS-approved provider in the United States, or a commercial history report that includes NMVTIS data. Title washing is the classic trick

Geral
Interesse
dev.to

Combining WMI and Plant Code: A Two-Field Sanity Check for Marketplace Listings

A single VIN field can contradict a seller's story. Two cheap checks catch many mistakes: WMI (positions 1-3) and plant code (position 11). WMI points at the manufacturer universe. Plant code is manufacturer-specific. Together they answer "does this VIN belong to the brand and factory story on the listing?" Normalize and validate length/charset/check digit. Decode via NHTSA vPIC. Compare Make/Manufacturer against listing claim. Surface PlantCity/PlantState when present. Soft-flag mismatches; never auto-ban on sparse fields alone. type Flag = { code: string; message: string }; function sanityFlags(decoded: { Make?: string; PlantCity?: string }, claimMake: string): Flag[] { const flags: Flag[] = []; if (decoded.Make && claimMake && !decoded.Make.toLowerCase().includes(claimMake.toLowerCase()) && !claimMake.toLowerCase().includes(decoded.Make.toLowerCase())) { flags.push({ code: "make_mismatch", message: "Listing make does not match NHTSA Make for this VIN." }); } if (!decoded.PlantCity) { flags.push({ code: "plant_blank", message: "NHTSA returned no plant city; do not invent one." }); } return flags; } Show flags as questions ("Ask the seller why..."), not accusations. Pair with a reminder that free decode is not a title/lien/odometer report. I maintain VIN Lookup, a free VIN decode based on NHTSA data.

Dev
Interesse
dev.to

How Many Words Is That? Word Count Guide for Pages, Speeches & Essays

This guide was originally published on the ToolMaxo blog. It is republished here with the original author's permission and the canonical URL set to the original post. "Write 1,000 words." "Keep your speech to five minutes." "The caption must be under 2,200 characters." Word limits are everywhere — in essays, conference talks, and blog posts on DEV — but it is hard to picture what they actually mean. How many pages is 1,000 words? How many words fit in a three-minute speech? This guide turns word counts into pages, minutes and characters, with quick tables you can check in seconds. With a standard setup of 12-point Times New Roman or Arial and 2.5 cm (1 inch) margins, a page holds about 500 words single-spaced or 250 words double-spaced. Words Single-spaced Double-spaced 250 ½ page 1 page 500 1 page 2 pages 1,000 2 pages 4 pages 1,500 3 pages 6 pages 2,000 4 pages 8 pages 3,000 6 pages 12 pages 5,000 10 pages 20 pages These are estimates. Headings, short paragraphs, lists and larger fonts mean fewer words per page, so always check the exact count rather than the page number. Most people speak at about 130 words per minute in a presentation, a little slower than in normal conversation. Nervous speakers often go faster, so leave some room. Speaking time About this many words 1 minute 130 2 minutes 260 3 minutes 390 5 minutes 650 10 minutes 1,300 15 minutes 1,950 The same numbers work for YouTube and TikTok voiceovers: a 60-second Short needs a script of about 130 words. Paste your script into a word counter and it shows the speaking time automatically. An average adult reads about 200 words per minute online, faster when skimming. So a 1,000-word article takes about five minutes to read, and a 2,000-word guide about ten. Showing the reading time at the top of a blog post helps readers decide to stay. School essay: 300–1,000 words. University essay: 1,500–3,000 words, set by your course. Cover letter: 250–400 words, never more than one page. Blog post: 800–1,500 words f

Geral
Interesse
dev.to

AgroCare AI - Touch Grass Edition

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass I built AgroCare AI: Touch Grass Edition, a progressive web application designed to get gardeners, farmers, and plant enthusiasts off their screens and into the dirt. AgroCare AI allows you to snap a quick photo of a sick plant, leaf, or fruit, and instantly receive a diagnosis alongside a rigid "Touch Grass" Care Schedule. Instead of generic paragraphs of advice, it generates an actionable 3-step physical mission (Day 1, Day 3, Day 7). For example, a Day 1 instruction isn't "ensure proper drainage"—it's "Go outside right now, touch the soil 2 inches deep, and completely flush the pot with water until it drains out the bottom." It encourages you to step away from your device and physically interact with the real world. Since farming happens outdoors where cell service is often spotty, AgroCare AI works offline. Try our demo to see the offline fallback mode in action! GitHub Repository / AgroCare-AI 🌿 AgroCare AI: Touch Grass Edition AgroCare AI is a fast, responsive, and offline-capable progressive web application that helps farmers and gardeners diagnose plant diseases instantly using AI. Built with the "Touch Grass" philosophy in mind, this app doesn't just tell you what's wrong—it gives you a step-by-step physical action plan to treat the problem immediately so you can put your phone down and get your hands dirty. ✨ Key Features Instant AI Diagnosis: Take a photo or upload an image of a sick leaf, fruit, or plant, and Google's Gemini AI will instantly diagnose the issue. "Touch Grass" Care Schedules: Generates highly specific, actionable physical tasks to complete on Day 1, Day 3, and Day 7 to nurse your plant back to health. Offline Fallback Mode: Farming happens outdoors! If your connection drops or the API is rate-limited, AgroCare AI automatically falls back to an in-browser… View on GitHub AgroCare AI is built as an offline-capable React/Vite web app that utilizes a hybr

IAMobile
Interesse
dev.to

DNS Tunneling and Egress Control: Closing the Channel That Almost Always Works

DNS Tunneling and Egress Control: Closing the Channel That Almost Always Works When an egress firewall blocks outbound traffic to the internet, there is one protocol it almost always has to leave open: DNS. Name resolution has to work, or nothing else does. That requirement makes the resolver a channel, and DNS tunneling is what happens when an attacker encodes data into queries and answers to move it in and out of a network. A tunnelling client controls a domain and a name server for it. To send data outbound, the client encodes the data into a label of a query for a subdomain it owns, such as a base32 or base64 string followed by the attacker's domain. The recursive resolver forwards the query, the attacker's name server receives it, and the encoded content is recovered from the label. Detection rests on the fact that most legitimate DNS traffic is boring. Records are cached, names are repeated, and query lengths are short. A tunnel breaks those properties in specific ways. Many organisations route all client DNS through an internal resolver and block direct outbound DNS from clients. That is the right first control, and it closes the easiest version of the attack. It does not close the channel, because the attacker's encoded data still travels through the resolver to the attacker's authoritative name server. Four layers work together. If DNS is closed as a channel, the pressure moves to whatever else egress allows. That is the argument for treating egress policy as an inventory exercise rather than a firewall rule set. Every allowed destination and protocol is a candidate channel, and the honest position is that most networks allow more than they can enumerate. DNS tunnelling works because name resolution cannot be fully blocked. The countermeasure is not to block it but to centralise it, log it, baseline it, and alert on the specific properties that ordinary resolution never produces: long high-entropy labels, high subdomain counts under one parent, unusual quer

SegurançaInfra
Interesse
dev.to

Micro‑frontends: ¿Escalar la UI sin caos o crear una pesadilla de integración?

¿Qué son los micro‑frontends? Los micro‑frontends son una extensión del concepto de micro‑servicios al mundo del frontend. Cada equipo construye, prueba y despliega una porción aislada de la interfaz —por ejemplo, el carrito de compras, la barra de búsqueda o el perfil de usuario— usando su propio stack, sin depender de un repositorio monolítico. La unión se realiza en tiempo de ejecución mediante contenedores, iframes o módulos cargados dinámicamente. Autonomía de equipos: los squads pueden elegir React, Vue o Svelte según sus necesidades, reduciendo cuellos de botella de coordinación. Despliegues independientes: una actualización en el módulo de comentarios no obliga a volver a publicar toda la aplicación, lo que acelera el time‑to‑market. Escalabilidad organizacional: al dividir la UI en dominios, la carga de trabajo se reparte de forma natural, evitando la típica “pirámide de decisiones” de los monolitos. Resiliencia: si un micro‑frontend falla, los demás pueden seguir funcionando, mejorando la experiencia del usuario. Complejidad de integración: combinar estilos, rutas y estado global puede generar conflictos difíciles de depurar. Sobrecarga de bundle: cargar varios frameworks en una misma página aumenta el peso total y afecta el rendimiento. Gestión de versiones: mantener la compatibilidad entre módulos que evolucionan a ritmos diferentes requiere un contrato de API robusto. Duplicación de código: sin una estrategia clara, diferentes equipos pueden replicar librerías comunes, inflando el tamaño del proyecto. Spotify adoptó micro‑frontends para su web player, permitiendo a cada equipo de producto (listas, búsqueda, reproducción) lanzar funcionalidades sin bloquear a los demás. El resultado fue una reducción del ciclo de release de semanas a días. Amazon divide su portal en miles de micro‑frontends; cada categoría (libros, electrónica, moda) controla su propio flujo de checkout. Sin embargo, los usuarios reportan “saltos” de estilo al cambiar de sección, una señ

Dev
Interesse
dev.to

check this

Gemma 4 on Amazon SageMaker: The NVIDIA T4 Decodes at 0.8x of the L4 With the Same Answers xbill for Google Developer Experts Sep 30 #aws #sagemaker #gemma #vllm 16 reactions comments 9 min read

IAInfraDev
Interesse
dev.to

Prove It or Pay for It: The Real Cost of Weak Data Governance in GCC Financial Services

Data governance is a business capability rather than a compliance document. When an organisation cannot answer a regulator’s question about its own data, the consequences appear in places leadership can measure: penalty notices, remediation programmes that suspend the technology roadmap, artificial intelligence initiatives held at risk review, and analyst time spent reconstructing evidence manually. For banks and financial institutions in the GCC, strong data governance means being able to show a regulator, on request, where regulated data sits, who accessed it, and where reported figures came from, using records the platform produces automatically. Across banks and financial institutions in the UAE and Saudi Arabia, the inability to demonstrate compliance is among the more consistently underestimated business problems in technology. This blog examines the cost of weak data governance in GCC financial services, what regulators currently accept as proof, what an evidence-ready data platform on AWS requires, how to assess current maturity, and how agentic AI is likely to change the economics of this work. It is written for the practitioners who own this work: cloud architects, platform engineers, heads of infrastructure, and the compliance leads responsible for signing off on what is built. What Weak Data Governance Costs Compliance discussions typically begin with a governance framework presentation: control domains, ownership, board sign-off date. The intended message is that the area is addressed. A more specific question tends to establish the actual position. If a regulator submitted a request identifying every system holding customer personal data, the physical location of each copy, and a record of who accessed the transaction tables in the preceding quarter, how long would the organisation require to respond, and would the response be suitable for submission? In many institutions, the honest answer is measured in weeks rather than days. The controls are genera

Infra
Interesse
HackerNoon

Your Kill Switch May Not Stop Your Agent

Stopping an AI agent doesn't stop work already in flight. Here's how to design revocation boundaries, track outstanding actions, and restart safely.

IADev
Interesse
dev.to

"LLM streaming works in the demo. These 4 hops break it in prod"

Words appear one by one on localhost, and LLM streaming looks done. In production the answer lands in one lump, the model keeps generating after the user leaves, and half a sentence shows up as the full answer. None of these are LLM problems. They live in the plumbing between the model and the browser. The rule: your server is not a pipe. It sits between two connections, and either one can misbehave. Scope: text chat over fetch, examples in Node/Express. The ideas carry over to other stacks. Here's the flow: Browser ──POST /chat──► Your API ──stream:true──► LLM provider ▲ │ │ └──── tokens as events ◄───┴──────── tokens ◄───────────┘ The 30-line demo teaches the pipe model: tokens go in one side and come out the other. That took me a while to unlearn. Your server sits in the middle of two connections. Something in front of it can buffer. The client behind it can leave. The provider underneath it can fail. And the browser can misread what arrives. ![Four hops where a streamed LLM answer can break: browser, proxy, API, provider] Most streaming bugs are one of these four hops going wrong. The sections below take them in order. I use fetch with a streamed response for all of this. A chat request needs a message history and an auth token, and fetch gives me a POST body, headers, and abort support. The alternatives are near the end. Reverse proxies like Nginx collect the upstream response and send it in bigger chunks by default. That's great for normal pages and terrible for a stream. Your tokens sit in a buffer, and the user sees nothing until it fills or the response ends. I've seen this called out as the most frequent production surprise with streaming, and it matches what the infrastructure docs say. In your app, send headers that tell proxies to back off: res.writeHead(200, { "Content-Type": "text/event-stream", "Cache-Control": "no-cache, no-transform", "Connection": "keep-alive", "X-Accel-Buffering": "no", // Nginx-specific: don't buffer this response }); In Nginx,

DevIA
Interesse
dev.to

Your AI Does Not Read Your Prompt. It Places Bets on It.

Watch the 40-second version: How Transformers Predict Your Next Word Here is the uncomfortable truth about the most sophisticated software you have ever used: it has never once known what it was saying. A transformer takes your prompt, turns every word into a coordinate in a giant space of meaning, runs attention over the whole mess to decide which words deserve to influence the answer, and then rolls weighted dice. One token at a time. Fifty-ish times a second. That is it. There is no little reasoning engine in there double-checking facts. There is a probability distribution and a sampling function. Once you see next-token prediction as the mechanism, the famous quirks stop being mysteries and start being obvious consequences. Bad at math but good at vibes? Math needs exactness; dice need distribution. Asking a token predictor to do arithmetic is like asking a vibe generator to file your taxes. It can approximate the shape of a correct answer, which is why 2+2=4 works and your mortgage amortization does not. Hallucination is not a bug. It is the mechanism working exactly as designed. The model was trained to produce the most plausible next token, not the most true one. Truth and plausibility overlap often enough to fool you, and diverge exactly where you cannot verify. "Confidently wrong" is just what sampling looks like when the stakes are high. And the non-obvious angle nobody tells you: this is why prompt engineering works at all. You are not "talking" to the model. You are biasing a probability distribution. Every example you add, every constraint you write, reshapes the odds of the next token. Prompting is statistics with a user interface. You cannot make a transformer reason. But you can rig the bet. Copy this before any task where correctness matters: Lower the temperature to 0 for factual tasks. High temperature is the model brainstorming. You do not want brainstorming from your accountant. Demand structure. Ask for JSON, tables, or numbered steps. Format c

IA
Interesse
dev.to

What If Your Coding Agent Could Also Be Your SRE?

A few months back, I was setting up a Central Monitoring system for all my projects where I could do log monitoring, cost monitoring, compute utilisation by each project, and so on. For that, I had already set up an ML-based algorithm to detect anomalies in cost and RAM, which then sent me alerts through my Telegram bot. You can read about it in my blog. But once I set my project in production, I was receiving tons of logs, whether they were Django-specific, Docker-specific, Nginx-specific, or Database-specific. I sorted them in my Grafana Dashboard, but again, the problem was the amount of logs for each project, and not all logs necessarily needed my attention. However, error ones or critical ones did need attention for continuous rectification of the project. The first solution seems fine, but the roadblock comes in front of me while training a RAG application: model selection, weight training, compute resources, etc. But still, it would be only a half addition to my project. It’s like a doctor giving me only the diagnosis after analysing the report without knowing my medical history. That’s where I came up with the solution where I can build the MCP server with various options of projects and the tech stack used in them. Using the skills of that project specifically, I can make sure that in the .md, every time I open up the project, it will give me the report at certain intervals. As that coding agent will be having the code as context on which the application or project is built, the same coding agent can help me to rectify the error. And as the MCP server will be there, basically, you have created a controlled, monitored, self-healing system. Here, my problem of separate project views and summaries based on each tech stack, and only needed attention being given to any project, saved me a lot of things. This project was particularly interesting because I was new to SRE, as I had created just the Dashboard for my ease and kept on adding things to it. Comment me f

IAInfraDev
Interesse
dev.to

What Makes a 3D Model Move? Understanding Animation Basics in Blender

Hello, I'm Rijul, and I'm building LiveReview — a blast-radius aware AI code review built for your business-critical systems. Star us to help devs discover the project, give it a try, and share your feedback to help improve the product. In this article, we will explore how you can animate anything in Blender. Before that, we need to understand an important concept called keyframes. Suppose you want to animate a cube by moving it from point A, to point B, and then to point C. There are three points where we want the cube to move. In software like Blender, we can set these positions as keyframes. When the animation is played, Blender calculates the movement between these keyframes, creating the in-between animation as the cube moves from point A to point B and then to point C. Let's start keyframing. First, select the object you want to animate. For this simple example, I will select a cube. Now press I to insert a keyframe. Once you have inserted it, you can see the keyframe in the timeline below. Let's start with a simple moving animation. I want to animate the cube moving along the X axis. In the timeline, you can see that the first keyframe is placed at the 0th frame. My goal is to make the cube move towards the right by the end of the 10th frame. I have moved the playhead to the 10th frame. Now go to the cube, press G, and then X to move it along the X axis. If you notice, on the right, you can see Location X highlighted in orange. This means the change has not been added as a keyframe yet. So let's apply it by pressing I. Now the keyframe is added, and the orange turns yellow, indicating that a keyframe has been added. Let's play our newly created animation. Move the playhead back to the beginning and press play. The block has come to life. Now let's try animating a rigged model. I rigged this model in my previous article. I want to make him wave. So I select his lower arm and add a keyframe. Now, after 10 frames, I want to move his arm a bit. So I select the bo

Geral
Interesse