Painel de Notícias

Tecnologia

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

Filtros
dev.to

Securing a small shop LAN app: network basics for a business VM

A lot of small businesses now run their core software as a virtual machine on a computer in the back room. Staff open it in a browser from the counter PC, a laptop or a phone, and the data stays in the building. That also means the shop's local network is now the front door to customer records, prices and inventory. You don't need an IT department to lock that door. You need a handful of habits, done once and checked now and then. This checklist assumes one host machine, one VM and an ordinary small-business router. The single most useful change in most shops is a separate guest Wi-Fi. Customers ask for the Wi-Fi password all day. If they join the same network as the business VM, their phones can see it, and so can whatever is running on those phones. Most routers offer a guest network option that isolates guest devices from the main LAN. Turn on the guest network and give it its own name and password. Enable client isolation or "allow guests to see each other / access local network: off," whatever your router calls it. Put the guest password on the sign at the counter. Keep the staff password off every sign, sticky note and receipt. Connect the host machine and staff devices to the staff network only, ideally the host by cable. Staff bookmark the app's address. If the router hands the VM a new address after a power cut, every bookmark breaks. Two ways to keep it stable: DHCP reservation (preferred): in the router's admin page, find the VM's network adapter in the client list and reserve its current address. The VM keeps getting the same address, and the router still knows about it. Static address inside the VM: pick an address outside the router's DHCP range so nothing else gets it, and set the gateway and DNS to match the router. Write the address down in your shop's admin notes. For a business VM in VirtualBox, a bridged adapter makes the VM a normal device on the LAN, which is what makes reservations work cleanly. On the router: Do not port-forward the business

Segurança
Interesse
dev.to

Using Token Data to Improve the AI Agent Experience

Token usage can tell you a lot about what happened between the start of a task and the final answer. An agent may complete the task successfully, but only after searching the documentation several times, retrying failed steps, or pulling large amounts of irrelevant tool output into context. Looking at token usage metrics across repeated trials helps surface that extra work and distinguish a direct, efficient workflow from one that depends on additional context, retries, and recovery. Tokens are the units a model uses to process content. In text, a token is roughly 3/4 of a single word, but different models use different tokenizers, so the same text can produce different token counts on different systems. That difference also means equal token totals across models don't necessarily represent the same amount of content or computation. Token usage is usually measured by numbers of input and output tokens, and some models can also report reasoning tokens, which are used in reasoning models' chains of thought. Input tokens are everything sent to the model, including the prompt, conversation history, documentation, code, and tool results. Output tokens are what the model generates in response. In agent workflows, input tokens can add up quickly as more context is carried across multiple model calls. The way different hosted model providers price tokens also varies by provider, though generally output tokens are often more expensive per token than input tokens, even when input tokens make up most of the overall usage. The example below shows a single agent evaluation task through Quantiles and breaks down the input and output tokens used at each step of the workflow. In an agent workflow, token usage can help reflect the path the agent takes through a task: the context it reads, the tools it calls, the retries it makes, and the information it carries forward. That makes it a useful signal for behavior beyond task completion. For example, two trials may both succeed, even t

IADev
Interesse
dev.to

Laptops rtx Spark N1x: preventa de equipos Windows

Las laptops con RTX Spark N1x abrieron su preventa con Windows tras el despliegue comercial que reúne a los principales fabricantes de computadoras en torno al silicio unificado de NVIDIA. Se acabó la exclusividad inicial de un único prototipo. Las tiendas oficiales de Microsoft, ASUS, Dell, HP, Lenovo y MSI activaron sus catálogos con precios confirmados que arrancan en los 2.599 dólares para los modelos de entrada y superan los 6.700 dólares en configuraciones extremas. El movimiento, ratificado por el reporte de lanzamiento en Tom's Hardware, marca un salto técnico de fondo: la arquitectura de procesamiento para tareas locales abandona los chips gráficos separados para integrar la CPU Grace y la GPU Blackwell en un mismo encapsulado. La máquina de escritorio portátil dio un giro radical. Arquitectura unificada y especificaciones de silicio El cerebro detrás de estos equipos integra configuraciones de 18 y 20 núcleos de procesamiento central, acompañadas de núcleos gráficos que alcanzan hasta 6.144 unidades de cálculo CUDA en el escalón más alto. Esta cifra iguala la cantidad de sombreadores de una tarjeta gráfica de escritorio moderna, pero empaquetada con memoria LPDDR5X compartida que oscila entre 24 GB y 128 GB. La ventaja técnica radica en la eliminación del cuello de botella en las transferencias a través de la interfaz PCIe. Al residir el motor gráfico y los núcleos generales en la misma oblea de silicio, los modelos de lenguaje masivos y las canalizaciones de renderizado acceden al búfer completo sin duplicar información en dos memorias separadas. Dell colocó en vitrina su XPS 16 con pantalla táctil OLED de 3,2K, 32 GB de memoria compartida y 512 GB de almacenamiento de estado sólido por 3.799 dólares. HP apostó por el OmniBook Ultra de 16 pulgadas con panel OLED 3K, 32 GB y un procesador de 20 núcleos a un costo similar. MSI llevó la propuesta al techo del catálogo con el Prestige N16 Flip AI+, un portátil convertible con panel OLED en tándem de 120 Hz, 1

Infra
Interesse
dev.to

Key the Flaky Waiver to a Shrunk Example Hash

A flaky-test freeze is a waiver, not a passing result. For an agent patch, record that waiver only when the diff leaves fixture factories and property strategies untouched, a failed property has been shrunk to a hashed witness, and that witness has been replayed outside the agent workspace. A freeze stored under a bare test name does not meet the bar. Agent patches often turn a red property green by editing the generator that drew the input, or by narrowing the property until the failing case cannot appear again. The suite looks clean. The production failure is still reachable. A later freeze then points at the old test name and hides the redefined input. This note is a proposed gate, not a measured study. Commands and snippets below are unexecuted examples. Pin dependency versions in your own lockfile. Do not treat the path lists as a complete map of every repository. The gate answers one question: may this patch receive a short flake freeze? It does not decide correctness. It does not score a model. It does not replace review. Diff class Shrink witness Clean replay Freeze decision Production paths only Present, hash matches the stored example Outcomes flip under a predeclared count, generator hashes match base Eligible for a short freeze Production paths only Absent Any Deny Fixture factory, conftest.py, strategy file, or seed file edited Any Any Deny Test or property file edited Any Any Deny until a separate line-level oracle review exists Freeze config edited in the same patch Any Any Deny Production edits mixed with generator edits Present Stable pass Deny, and split the patch Read the rows from top to bottom. A later column never overrides an earlier deny. "Short" means whatever expiry your store already supports. This draft does not invent a duration. Start from the name-only diff against the merge base. Map each path with a policy file you review. Do not ask the drafting model to label its own diff. A drifted label is another unaudited edit. # Proposed, unex

Dev
Interesse
dev.to

Your AI Agent Can Handle SEO

You notice that a group of pages has lost organic traffic. You open your SEO dashboard, filter a report, export the results, paste them into an AI assistant, and ask what happened. Then you open the repository to see whether a recent release changed those pages. You are carrying context between systems before the investigation has even started. SEO should be available in the environment where you build and maintain your project. You should be able to ask an agent to investigate a problem, give it access to the relevant evidence, and review what it proposes. That is why SEO MCP matters. It creates a practical connection between SEO tools and AI agents, so working on search performance does not have to begin with another dashboard. A dashboard can show you what changed. Making sense of that change often requires information from somewhere else: the page itself, its template, your release history, or a business decision. In a connected workflow, the request can start where the work happens: Which pages lost organic traffic, what evidence might explain the change, and what should we investigate first? The agent retrieves the data it is allowed to access and returns an investigation you can inspect. You do not have to know which menu contains each report or manually copy the same URLs into three tools. Charts still help people explore patterns and communicate results. But opening a separate application should be a choice rather than the price of getting an answer. For routine SEO work, the interface can become the agent you already use. The product's value then depends on the quality of its data and capabilities, even when you never visit its dashboard. The Model Context Protocol is an open standard for connecting AI applications to external data and tools. For SEO, a server might expose operations to retrieve keyword rankings, inspect crawl findings, or query search performance. A compatible agent can discover those operations and call the ones relevant to your request.

IADev
Interesse
dev.to

A Skill Selector Must Not Hide the Skill Catalog

A semantic skill selector can make an agent prompt smaller. It can also make an agent less capable if it quietly removes the only map to available skills. That is the boundary APX needs to protect. APC is the portable context layer. A project can keep reusable instructions in .apc/skills/, review them in Git, and share them with compatible tools. APX is the local runtime layer. It decides what becomes active during one turn: a small catalog hint, a loaded skill body, or an optional semantic match. Those jobs are different. Storing every skill body in every prompt wastes context. Hiding every skill behind a selector risks making useful instructions undiscoverable. APX's normal skill path is deliberately simple. Its prompt can include a compact list of skill slugs, while list_skills and load_skill let the agent inspect and fetch the full body only when the work calls for it. The durable files remain owned by APC; APX treats them as on-demand runtime material. Consider a project with four skills: release-checklist security-review support-triage docs-style For a request such as “explain this test failure,” loading all four bodies would add noise. A short catalog is enough. If the task becomes a release, the agent can load release-checklist. If it becomes an audit, it can load security-review. That is prompt discipline without losing discoverability. APX also has an opt-in Skill Inspector. It can use embeddings to inspect the current request and inject a matching skill body or hint. This is useful when the request clearly maps to a known procedure. But semantic selection is not ground truth. The request may be vague. A local embedding fallback may have weak signal. A new skill may use terms the request does not repeat. The relevant skill may be close enough to help but not close enough to win a ranking threshold. If the runtime suppresses the normal catalog whenever the inspector is enabled, those cases produce a bad outcome: no loaded skill and no visible path to discov

IADev
Interesse
Phoronix

Google's Sashiko AI Has Completed 191k Patch Reviews, Cited On Nearly 500 Kernel CVEs

Sashiko that was built by Google engineers for agentic review of the Linux kernel code changes and powered by Google's AI models continues proving very valuable to kernel developers. In less than one year since they launched Sashiko for agentic AI code review, their results are quite fascinating...

IAInfraDevLinux
Interesse
dev.to

The Merge Bit Stays With the Owner

Protected paths do not become optional when a contribution surge arrives. A free model can draft a note about a diff. It cannot own the merge bit, dismiss a scanner, or stand in for the human named in CODEOWNERS. Early October usually thickens the inbound queue. Recent community posts have been full of contribution-drive writeups, portfolio projects, and agent-shaped tooling, which is enough to expect more pull requests and more automated reviewers. Volume is not a reason to move a security decision onto a shared completion endpoint. The clerk can sort the mail. The clerk does not sign the deed. This piece is a field guide for that refusal. It is not a product tour, and it is not a repeat of the older argument about runtime privilege grants. A grant decides what a process may do after deploy. A merge bit decides what enters the tree that deploy is built from. Those failures rhyme, and they still need different locks. The slide is familiar: a workflow that starts as "summarize this diff" later gains a label, then a status check, then a merge. Free inference makes the slide easier, because the call looks cheap and the server looks disposable. Cheap is not the same as accountable. Disclosure: This article was prepared as part of MonkeyCode's product outreach. MonkeyCode's free model access and free server option belong only on the drafting side of the workflow below. They can host a local gate and produce an unsigned summary of an unprotected diff. They are not a branch-protection provider, a signing service, or a substitute for the repository owner. This article does not state model names, quotas, hardware, duration, or data-retention terms. Those facts change, and they belong on a current product page rather than in a recycled paragraph. If the page and this article disagree, the page wins. The analogy that holds is a notary stamp left on a hotel desk. Guests may borrow the pen. They may not borrow the stamp. A completion model is the pen. The stamp is branch protect

DevIA
Interesse
dev.to

Replit Database Deletion: What Should Block an Unauthorized Write?

Failure Autopsy: Replit 18 July 2025. A database deletion is publicly reported. Jason Lemkin reports that Replit's coding agent deleted his database without consent during a code and action freeze. Replit later acknowledges the deletion and confirms that the data was fully restored. The affected project was an unfinished demo, not an established commercial service. Lemkin's account and clarification, Replit's acknowledgment, contemporary report. The reported restriction did not prevent the database modification. If an agent requests a change outside its authority, what must stop execution? Our proposed requirement: before a protected database operation executes, the execution layer must deterministically check trusted approval against the operation, target, and scope. A freeze requires an explicit exception that the agent cannot grant itself. We are designing tests for this boundary, not diagnosing Replit's original implementation. These are synthetic, unexecuted specifications. Assume read-only investigation is allowed, while database changes remain frozen unless specifically approved. Condition Proposed test input Required outcome 1. No approval An empty dashboard query prompts a repair attempt. The freeze remains active and no write is approved. Block the write before execution. An empty query result does not establish that the database itself is empty. 2. Narrow approval Approval covers one record update. The agent submits a batch changing two records. Reject the entire batch before either write occurs. The extra change has no authorization. 3. Another route The database tool denies a write. The same change is then attempted through a shell command. Prevent that write through the alternate route too. A denial on one tool cannot leave another path open. Also test a valid, narrowly approved update: it should execute. Blocking every write is not correct authorization enforcement. Shell writes need a constrained execution path or database permissions that prevent un

SegurançaDevIA
Interesse
dev.to

I used GitHub as the backend for a shared photo album

Our trip photos always ended up scattered across group chats and different cloud accounts. I didn't want to run a photo server or charge a subscription, so I built Moa: a shared photo album where every album is a private GitHub repo in your own account. One album = one private repo. Originals, previews and thumbnails are committed into day folders. Friends you invite become collaborators, and you can clone the repo anytime. Saving at the same time. Every change is a small op (add photos, tag, like). Before each commit, the app replays the ops on the latest state and retries if someone else committed first, so nobody's changes are lost. Optional encryption. AES-GCM in the browser, so GitHub only stores ciphertext. View-only links. Friends without GitHub can look. Encrypted copies go into secret gists, and the key lives only after the # in the URL, which browsers never send to a server. Creating an album or uploading needs a GitHub account. About 10 GB per album is recommended. Free for one album, $3.99 once for more (no subscription): albummoa.app Would "Sign in with GitHub" stop your non-developer friends? I'd love to hear.

Dev
Interesse
dev.to

How to Use mcp.tc as the MCP Registry in VS Code

TL;DR. To use mcp.tc as the MCP registry in VS Code, add "chat.mcp.gallery.serviceUrl": "https://mcp.tc" to the user settings.json of your default profile. Type @mcp in the Extensions view and the MCP server gallery lists mcp.tc's servers. Installing one writes the server's own URL or package into your configuration, so your client talks to the server directly. Teams can set the same URL with the McpGalleryServiceUrl policy, or as the MCP Registry URL in GitHub Copilot's policies, which reach VS Code and other Copilot clients. To go back, delete the line. VS Code can install MCP servers from a gallery. The VS Code MCP docs describe it like this: open the Extensions view, "enter @mcp in the search field", and VS Code "shows the list of available MCP servers in the gallery". You install a server in your user profile with Install, or in the current workspace with Install in Workspace, which "updates the .vscode/mcp.json file". The gallery is a client for a registry API. Microsoft's build of VS Code names that API in its product.json: in VS Code 1.141.0 the gallery's serviceUrl is https://api.mcp.github.com, the GitHub MCP Registry. GitHub describes the same default for Copilot in other IDEs on its page about changing the MCP registry in your IDE: "By default, Copilot uses the GitHub MCP Registry, but you can configure your own MCP registry to customize the list of servers available in your environment." Any service that answers the registry's read endpoints can stand in. mcp.tc serves a read-only copy of that API at https://mcp.tc/v0.1/, built from the listings it has approved. On 8 October 2026 that was 672 servers. Almost all of them carry the vendor's own endpoint or install package; the exceptions are covered below. Open the Command Palette, run Preferences: Open User Settings (JSON) while your default profile is active, and add: { "chat.mcp.gallery.serviceUrl": "https://mcp.tc" } mcp.tc's API docs keep a short version of these steps. Three details from VS Code's s

Dev
Interesse
9to5Mac

OpenAI brings GPT-6 to ChatGPT and debuts Intelligent UI

After introducing the first GPT-6 models last month, OpenAI today announced new GPT-6 models built for everyday ChatGPT conversations, alongside a new Intelligent UI. Here are the details. more…

IA
Interesse
dev.to

IBM Granite Guardian: o motor do guardrail

Resposta curta O IBM Granite Guardian é um guardrail técnico nativo do modelo IBM Granite, projetado para detectar e mitigar conteúdos de risco em tempo real — como discurso de ódio, desinformação ou violação de políticas — sem comprometer a fluidez da geração. Ele opera como uma camada de segurança integrada, não como um filtro pós-geração. O Granite Guardian é parte integrante da arquitetura dos modelos IBM Granite (v3, v4), não um módulo externo. Funciona com real-time inference-time steering, ajustando probabilidades de tokens antes da saída final. Suporta personalização por setor: já configurado para conformidade com diretrizes do BCB (para finanças) e CFM (para saúde). Não requer fine-tuning nem RAG adicional — ativa-se via parâmetro guardrail_level na API. Documentado oficialmente no IBM Cloud Docs e no GitHub do IBM Granite (repositório público). Não substitui auditoria humana nem obrigações legais sob a LGPD ou Marco Legal da IA (PL 21/2020). O Granite Guardian não é um sistema de moderação pós-geração. É um mecanismo de inference-time intervention: durante a decodificação do texto, ele recalcula distribuições de probabilidade de tokens com base em regras lógicas e embeddings de risco treinados com dados anotados por especialistas — incluindo juristas e éticos de IA da IBM Research. Isso permite contenção proativa, sem interrupção perceptível na resposta. Sua arquitetura segue o padrão Constitutional AI adaptado para contexto regulatório brasileiro, com validação em cenários de atendimento bancário, suporte ao consumidor e redação clínica. No Brasil, o Granite Guardian não cumpre diretamente obrigações legais — mas facilita a adoção de boas práticas exigidas pela LGPD (Art. 46), pela Nota Técnica do BCB sobre IA em serviços financeiros (2023) e pelas Diretrizes Éticas para IA da CFM (Resolução CFM nº 2.397/2024). Ele permite rastrear decisões de contenção via guardrail logs, compatíveis com os requisitos de auditabilidade do Art. 13 do PL 21/2020 (Marco Leg

IA
Interesse
dev.to

When is a CSV cell a number?

I was reading a post about a homemade config format (in Russian) where the author explained why the format needs a "take this as is" marker: so that 00544 does not quietly become 544. I went to check my own tool, and it did exactly that. The tool is datadiff. It compares JSON, YAML, CSV, TOML and XML files by their parsed data instead of their lines, so reordered keys and reformatting produce no noise. For CSV that means deciding which cells are numbers. While fixing the zeros I found three more ways the same few lines lost what was written, all with one cause: Rust's standard library accepts more as a number than a person filling in a spreadsheet means. JSON knows that 3 is a number and "3" is a string. CSV does not know anything: every cell is text. But a diff that compares data should not report 100 → 100.0, or 1e3 → 1000, as a change. So datadiff reads a cell that looks like a number as a number. The code did the obvious thing: fn csv_field_to_value(field: &str) -> Value { let trimmed = field.trim(); if trimmed.is_empty() { return Value::String(String::new()); } if let Ok(i) = trimmed.parse:: () { return Value::Number(Number::Int(i)); } if let Ok(f) = trimmed.parse:: () { return Value::Number(Number::Float(f)); } Value::String(field.to_string()) } Try an integer, then a float, otherwise keep the text. Short and wrong. parse says yes to Here is what the two parsers return for a few inputs (rustc 1.98.1): input parse:: () parse:: () "Nan", "nan", "+nan" Ok(NaN) Err "inf", "Infinity", "INFINITY" Ok(inf) Err "1e400" Ok(inf) Err "00544" Ok(544.0) Ok(544) "12345678901234567890" Ok(1.2345678901234567e19) Err(PosOverflow) "1_000", "0x10", " 5" Err Err None of this is a bug in Rust. f64 accepts inf, infinity and nan in any case, an exponent too large for a double rounds to infinity instead of failing, and 00544 is a perfectly valid way to write 544. The problem is what each of these "yes" answers does to data that was never meant as a number. Leading zeros. ZIP codes, ar

Dev
Interesse
dev.to

React.js ~Testing Accesibility of Fragment Refs~

Testing Accessibility with Fragment Refs In my previous post, I introduced Fragment Refs. A reader pointed out that removing wrapper elements is nice, but accessibility needs careful testing. So let's actually test it. Fragment Refs let you control a group of sibling DOM nodes without a wrapper element. Because the DOM structure stays flat, I want to check two things: Does focus() move focus to the element I expected? Does the tab order stay natural? I did not test with a screen reader in this post. import { Fragment, useRef } from 'react'; function Sections({ posts }) { const fragmentRef = useRef(null); return ( fragmentRef.current.focus()}> Focus the first heading {posts.map((post) => ( {post.title} ))} ); } I tested with React 19.3.0-canary-17eca7b0-20261006 in jsdom. Check Result focus() target The first (focusLast() moves focus to the last one) Tab order Natural: button → h2 → h2 → h2, following DOM order The DOM stays flat ( … … … …), so no wrapper element appears in the tab order. Elements without tabIndex can't receive focus, so focus() skips them. If no child is focusable, nothing happens, and no error or warning is shown. When the fragment has zero children, focus() does nothing and doesn't throw. tabIndex={0} on a heading adds it to the tab order even though it isn't interactive. If you only need programmatic focus, use tabIndex={-1}: focus() still works, and the headings drop out of the tab order. Fragment Refs keep the DOM flat, and in my tests focus() moved focus to the first focusable sibling and the tab order followed DOM order. The main risk is silent failure: if no child is focusable, focus() does nothing and reports nothing. So when the siblings are interactive, check that at least one child can actually receive focus. Screen reader behavior is not covered here and needs separate testing.

Dev
Interesse
dev.to

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

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

SegurançaIA
Interesse
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

Model the review step before saving AI output

An AI response can identify a meal and suggest nutrition values. That response still leaves a product decision unresolved: which information does the person want in their diary? If the response is treated as a saved meal immediately, a successful model request can change a daily total before the person has checked the food or portion. A review screen added afterwards cannot restore the distinction the data model has already lost. FoodWarz's domain vocabulary separates an analysis from a meal. Analysis is reviewable interpretation. A meal is a saved diary snapshot containing the amount, nutrition and source information the user chose to record. This post uses that boundary to describe a small modelling approach that also applies to other products which turn generated suggestions into durable records. The following TypeScript is an illustrative sketch, not FoodWarz's production schema. Identifiers, validation and storage details are deliberately omitted. type Nutrition = Readonly ; type AnalysisResult = { kind: "analysis"; suggestedNutrition: Nutrition; }; type ReviewDraft = { kind: "review"; original: AnalysisResult; editedNutrition: Nutrition; }; type SavedMeal = { kind: "meal"; nutritionSnapshot: Nutrition; }; type PlannedDish = { kind: "planned"; proposedNutrition: Nutrition; }; The useful part is the separate names. A function that accepts a SavedMeal should not also accept an AnalysisResult simply because both happen to contain calories. A production boundary needs runtime validation too: types cannot establish that a client request is valid or that the person confirmed it. A simplified flow is: Analysis completes → open a review draft User edits → update the draft User confirms → validate and persist a meal Persistence succeeds → include that saved meal in diary totals The draft can also be abandoned. That must remain an ordinary outcome of analysis, with no new consumed-food record. These invariants make event handlers easier to review: Event Expected effect B

Dev
Interesse
dev.to

I Opened the Palworld Breeding Dataset Behind My Calculator

I built a Palworld breeding calculator, but the part I most want other developers to use is the data. The dataset behind the site is now public as JSON and CSV: https://www.palworldonline.net/data Disclosure: I built and maintain the calculator I am linking to here. It is free to use, does not require an account, and is not affiliated with Pocketpair or Garena. This post is about what is in the dataset, why I opened it, and the breeding-data bugs it is designed to prevent. There are four lightweight endpoints: All Pals JSON All Pals CSV Special combos JSON Special combos CSV The data page also links the full Paldeck profile JSON used by newer lookup features. The breeding exports cover Palworld 1.0 breeding data: 299 Pal entries 297 Pals that can enter a Breeding Farm 183 ordinary formula-pool entries 164 special combo rows CombiRank values parent-pair counts element types gender ratio breedable and farm-eligible flags gender fields for special combos The endpoints are served with: Access-Control-Allow-Origin: * That means you can fetch them from another browser-based tool without needing a proxy. type PalRow = { name: string; slug: string; combi_rank: number; rank_position: number; special_only: boolean; breedable: boolean; breeding_farm_eligible: boolean; parent_pair_count: number; elements: string[]; male_percent: number; icon_url: string | null; guide_url: string; }; type PalsResponse = { pals: PalRow[]; }; const data: PalsResponse = await fetch( "https://www.palworldonline.net/api/pals.json", ).then((response) => response.json()); const pals = data.pals; const targets = pals .filter((pal) => pal.breedable && pal.parent_pair_count > 0) .sort((a, b) => b.parent_pair_count - a.parent_pair_count) .slice(0, 10); console.table(targets.map((pal) => ({ name: pal.name, pairs: pal.parent_pair_count, rank: pal.combi_rank, }))); For spreadsheet work, use the CSV versions. The schema is intentionally flat. Because breeding tools tend to hide the assumptions that matter. If

GamesDev
Interesse
dev.to

15 GPU list prices rose in September and none fell. Today AWS raises Capacity Blocks 15%

In September 2026 we compared 176 posted on-demand GPU prices, each cloud's own published rate for each GPU it rents, between the first three and the last three days of the month. 15 ended the month higher, none ended it lower, and the other 161 did not move. Today, October 7, AWS adds an increase of its own to EC2 Capacity Blocks for ML. Everything below comes from the daily prices FastGPU records across GPU clouds, published as an open dataset, and from AWS's own pricing page. Every figure links to the page it comes from. All 15 came from two providers: Verda (10) and RunPod (5). Marketplaces, where each host sets its own price, are not part of this count. Provider GPU Sep 1 to 3 Sep 28 to 30 Change Verda H200 $4.00 $4.64 +16.0% RunPod A100 80GB $1.39 $1.59 +14.4% Verda GB300 $8.62 $9.72 +12.8% Verda B300 $7.50 $8.45 +12.7% Verda L40S $1.37 $1.54 +12.4% Verda B200 $6.11 $6.85 +12.1% Verda V100 $0.17 $0.19 +11.8% Verda RTX 6000 Ada $1.04 $1.16 +11.5% RunPod A40 $0.44 $0.49 +11.4% RunPod RTX PRO 6000 $1.89 $2.09 +10.6% RunPod L40S $0.99 $1.09 +10.1% Verda H100 SXM $3.25 $3.56 +9.5% RunPod H100 SXM $3.29 $3.49 +6.1% Verda A6000 $0.61 $0.64 +4.9% Verda RTX PRO 6000 $1.89 $1.96 +3.7% The median of each provider's lowest posted on-demand price, counting only the providers that posted a price on all six of those days, so a provider joining or leaving never reads as a price move: GPU Sep 1 to 3 Sep 28 to 30 Change Providers H100 SXM $3.55 $3.70 +4.3% 16 H200 $4.14 $4.38 +5.7% 14 B200 $6.18 $6.25 +1.1% 12 A100 80GB $1.79 $1.79 -0.1% 15 The floor, the lowest posted on-demand price outside the hyperscalers (geometric mean of the first three days against the last three), is set by one or two providers at a time, so it swings: H100 SXM: $1.34 to $1.57 (+17.4%, set by 2 providers) H200: $2.60 to $2.16 (-17.1%, set by 2 providers) B200: $3.69 to $3.69 (0.0%, set by 1 provider) A100 80GB: $0.64 to $0.53 (-16.7%, set by 1 provider) So the list prices at the larger GPU clouds drift

Infra
Interesse
dev.to

Understanding When to Use Factory Method vs. Abstract Factory Design Patterns: Key Differences and Use Cases

Introduction to Design Patterns: Factory Method vs. Abstract Factory When diving into the world of design patterns, the Factory Method and Abstract Factory often stand out as go-to solutions for object creation. However, their differences are subtle yet profound, and misunderstanding them can lead to code that’s harder to maintain, scale, or extend. Let’s break down their core mechanisms and why one isn’t always a substitute for the other. At their heart, both patterns abstract object creation, but they differ in scope and responsibility. The Factory Method focuses on delegating the instantiation of a single product type to subclasses. For example, if you’re building a UI framework, a ButtonFactory might have a createButton() method, with subclasses like WindowsButtonFactory returning WindowsButton instances. The product family selection (e.g., Windows vs. Mac) is handled externally—perhaps by a configuration file or runtime check. This works fine for isolated components but falls apart when components must be consistent with each other. The Abstract Factory, on the other hand, encapsulates the creation of an entire family of related products. Instead of separate factories for buttons and checkboxes, you’d have a UIFactory interface with methods like createButton() and createCheckbox(). Concrete factories like WindowsUIFactory ensure that all products (buttons, checkboxes) belong to the same family. This internal consistency is enforced by the factory itself, not by external logic. Without this encapsulation, mixing products from different families (e.g., a Windows button with a Mac checkbox) becomes a risk, leading to runtime errors or UI inconsistencies. Consider a cross-platform UI framework. If you use separate Factory Methods for each component (e.g., ButtonFactory, CheckboxFactory), the responsibility of ensuring all components belong to the same platform falls on the client code. This violates the Single Responsibility Principle, as the client now must manage

Dev
Interesse
Simon Willison

Introducing Mistral Large 4: Le chonk

Introducing Mistral Large 4: Le chonk Mistral are back in the game. Today they're releasing a preview of Mistral Large 4, a 1 trillion parameter, 49 billion active parameter model trained on their own cluster of 3,800 NVIDIA Grace Blackwell GPUs. The preview is available via their API. They promise to release the open weights model at the "end of this month". The model only supports two reasoning levels - "none" and "high" - via the Mistral API. Here are both pelicans - the "high" one looks better, though surprisingly it only used 2,717 output tokens compared to "none" which used 3,275: On Artificial Analysis it scores 38 , just behind DeepSeek 4.1 Flash, which is a 552B model. It's a huge improvement on last December's Mistral Large 3, which drew this terrible pelican and scored 9 on AA . It's certainly not a Fable-class model, but it's great to see Mistral put out a model that's back to being maybe about 6 months behind the frontier. Via Hacker News Tags: ai , generative-ai , llms , mistral , pelican-riding-a-bicycle , llm-release

IA
Interesse
dev.to

What I learned from building a Image Search System

Repository: https://github.com/albrescamily/semantic-image-search Some people say we learn more from our mistakes… well, I can say I've learned a LOT by doing this project. The goal was to create a system that receives an image or a text query and searches for matches in a database, similar to how Google Photos works. It seemed simple at first, but as I got into the mechanics, I kept running into problems that looked trivial on the surface and turned out to be much harder than I expected. I will start by explaining the architecture, the design decisions I made, and why I made them. Also, I will analyze from a new perspective what I could have done better. I used LocalStack, which emulates AWS services locally. In this project, I use it mainly to simulate S3 object storage. I also run Qdrant as the vector database. Both LocalStack and Qdrant run in Docker. For this prototype, everything runs on the same machine, so I access the services locally through their network APIs. I use Boto3 to communicate with LocalStack through the S3-compatible API, and I use the Qdrant Python client to communicate with Qdrant through its API. I didn’t focus much on reproducing a production network topology. Even though I wanted to simulate a production-like system at a small scale, I kept the infrastructure local instead of deploying the services across multiple machines to simulate real systems. For the storage API, I created several routes to manage objects: upload, update, delete, and get/list operations. The upload endpoint is the main entry point for the ingestion pipeline. When a user uploads an image, the API layer orchestrates the storage, embedding, and indexing steps as one unit. The upload endpoint calls the embedding service and then the indexing service. @app.post("/upload") async def upload_image(file: UploadFile = File(...)): bucket, key = upload_to_s3(file) embedding = embed_image_from_s3(bucket, key) index_image(bucket, key, embedding) return {"message": "Uploaded succes

Dev
Interesse
dev.to

10 Projects You Should Build with Jev

JEV is getting a lot of attention right now. People are excited about it, and developers are already experimenting with ways to use it inside real applications.But there is a common mistake when trying a new AI model like JEV: treating it like another general-purpose LLM. JEV becomes much more interesting when you use it for decisions rather than generation. Instead of asking it to write an email or generate a long answer, you give it some context, define the decisions it can make, and let your application act on the result.For example, a support system could use JEV to decide whether a ticket belongs to billing, engineering, or sales. A browser agent could use it to choose which button to click next. An AI application could use it to decide which model should handle a particular request.The model makes the decision, while your code handles the action.That simple pattern opens up a lot of interesting use cases. Here are 10 projects worth building with JEV. Support teams spend a lot of time reading incoming tickets and deciding where each one should go. A ticket might be a billing question, a technical issue, a feature request, or an urgent complaint from an unhappy customer.JEV can handle the first layer of that workflow.You can give it the ticket and ask which team should handle it, how urgent the issue is, whether the customer appears frustrated, and whether the ticket needs immediate human attention. Your application can then use those decisions to route the ticket automatically.A technical issue can go to engineering, a refund request can go to billing, and an urgent issue can be moved to the top of the queue.The important part is that JEV does not need to write the customer response. A generative model can handle that later if needed. JEV only needs to make the decision that determines what happens next. The same approach works well for sales.A typical website can receive a mix of serious prospects, students, competitors, and people who are simply exploring a p

IADev
Interesse
dev.to

Nano Banana 2.1 Lançado: Metade do Preço do Nano Banana 2 e o Texto Finalmente Funciona

O Google lançou o Nano Banana 2.1 em 6 de outubro de 2026, e o fez discretamente. Não houve um post de blog de lançamento nem um gráfico de benchmark. O modelo apareceu no seletor de modelos do Google Flow em 5 de outubro, desapareceu e depois voltou no dia seguinte com um breve post de @GoogleAIStudio dizendo que ele “supera nossos modelos anteriores em todos os aspectos.” Experimente o Apidog hoje A parte que importa para quem paga pela geração de imagens está na página de preços. O Nano Banana 2.1 custa a metade do preço por imagem que o Nano Banana 2 em todas as resoluções que os dois compartilham, e a documentação do Google lista “renderização precisa de texto” entre suas melhorias. Este guia mostra o que mudou, quanto custa, quais são as limitações e como testar o modelo via API. O que é: Gemini Nano Banana 2.1, com ID de modelo gemini-nano-banana-2.1. É uma atualização do Nano Banana 2 (gemini-3.1-flash-image). Melhorias declaradas pelo Google: design visual, edição baseada em máscara, consistência de assunto, aparência mais natural, renderização de texto, consistência de personagens entre interações e search grounding. Preço por imagem: $0.0336 em 1K, $0.0504 em 2K e $0.0756 em 4K. Principal economia: o custo de saída por imagem é metade do Nano Banana 2 nas resoluções compartilhadas. Limitações: tokens de entrada custam 3x mais, não existe saída de 512px, não há camada gratuita na API Gemini e o Google não publicou benchmarks para a versão 2.1. Onde testar: Google AI Studio, Gemini Interactions API, Vertex AI e Google Flow. Nano Banana é o nome usado pelo Google para modelos de geração e edição de imagens da família Gemini. O Nano Banana original (gemini-2.5-flash-image) agora é legado. O Nano Banana 2 (gemini-3.1-flash-image) tornou-se a opção rápida, o Nano Banana 2 Lite ocupa a faixa econômica e o Nano Banana Pro (gemini-3-pro-image) é voltado a ativos profissionais. O Nano Banana 2.1 se posiciona como uma atualização do Nano Banana 2. A documentação de

IA
Interesse
dev.to

How to Reuse Browser Sessions Instead of Logging In Every Time

How to Reuse Browser Sessions Instead of Logging In Every Time One of the most repetitive parts of browser automation is authentication. A typical script starts like this: open browser open login page enter credentials handle redirects close popups restore settings start the actual task If the script runs once, that's fine. If it runs every hour, every day, or for multiple accounts, you're spending a lot of time rebuilding the same session over and over again. A simpler approach is to reuse a browser profile and preload it with cookies. With 2Captcha Browser API, you can keep a profile for repeated use and import existing cookies before connecting to it with Playwright or Puppeteer. The result is a much cleaner flow: import cookies connect to profile open the site continue from the existing session A browser session and a browser profile are not the same thing. The session is the browser instance you're currently connected to. The profile is what you reuse between sessions. So instead of launching a completely fresh environment every time, you connect your automation to the same profile again. According to the current Browser API limits, a profile can be stored for up to 90 days, while an individual browser session can run for up to 30 minutes. That means you don't need to keep one browser running forever. You can disconnect and reconnect later using the same profile. 2Captcha provides a separate endpoint for importing cookies: POST https://cb-api.2captcha.com/cookies/import-cookies The easiest option is to pass the same connectionUri you use to connect to Browser API. For example: { "connectionUri": "YOUR_CDP_CONNECTION_URI", "cookies": [ { "name": "session", "value": "YOUR_SESSION_COOKIE", "domain": ".example.com", "path": "/", "secure": true, "httpOnly": true, "sameSite": "Lax" } ] } There is one important detail. The cookies are not pushed into a browser that is already running. They are staged for the profile and applied the next time you connect to that profil

Dev
Interesse
dev.to

Onboard your coding agent once

I think onboarding a coding agent should be work you do once. If I have already explained how a project works, I want the next agent to pick up that explanation instead of making me write it again. Connecting a tool gives the agent access to it, but I still need a way to tell it how we use that tool in this project. This weekend I added an onboarding Pack to a shared Sirro library. The starting point was simple: open a new chat, ask Claude to use the Sirro onboarding Pack, then ask it questions about Sirro. Instead of explaining the product through another long message, I could give the agent a named piece of work to read. That made me think about what I actually want to keep between sessions. The code is part of it. The explanation of how to work with that code is worth keeping too, especially when someone else joins the project. When I build software for clients, there are decisions I end up explaining repeatedly. A piece of code can be perfectly readable without telling the next person why I chose it or what I expect them to leave alone. An agent can inspect the repo and still miss the reason behind a decision. I want to save that explanation while it is still clear. If a conversation finally gets the agent working the way I need, the useful instructions should be easy to pull into the next conversation. Having to search an old chat and reconstruct them defeats much of the reason for saving the work in the first place. For Sirro, I started with its own onboarding. The request I gave someone to try was: Use the Sirro onboarding Pack from our team. How does Sirro work? I like that the developer can start with a question. They should be able to ask how to use the library through the agent they are already working with. They shouldn't have to become an expert in my dashboard before they can retrieve something useful. The same idea could apply to onboarding a consultant to a project. You have already done the work of explaining how the team builds. Give that explanati

IADev
Interesse