Painel de Notícias

Tecnologia

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

Filtros
dev.to

CLM: A Decision Model Trained with Contrastive Learning, Not Another Chat Model

The model race today is mostly about generation: longer context, prettier answers, stronger reasoning. But if you actually run agents, the thing that bites you usually isn't "generates poorly" — it's "decides too slowly." Every step an agent takes requires choosing the next action. If that choice also runs the full token-by-token generation pipeline, both latency and cost climb — a single "which button" can burn hundreds of tokens. CLM (Contrastive Language Models, 2913 stars, Apache-2.0, Python) attacks it from a different angle: pull decision-making out and train a model dedicated to it. Its one-liner: a System One model trained with a contrastive objective that connects states and actions directly. A normal LLM is generative: given a state, it writes the action token by token. CLM is contrastive: what it learns isn't "how to write," but "which action fits this state better" — scoring state–action pairs directly. The practical payoffs: Fast: a decision is one scoring pass, not token generation. The authors report performance on par with Jev while being up to 9× lower latency; Good fit for ranking: a contrastive objective is literally "put the right one first," which is exactly what picking from candidate actions needs; Cheap: no token burn per decision. It ships CLM-8B behind a TypeSafe-compatible API (the de-facto interface for this class of decision models), plus a fine-tuning tutorial and models/data on Hugging Face. It targets the real agent pain — decision cost. Anyone who has run an agent knows that "waiting for the model to think at every step" is the biggest UX killer. A dedicated 8B decision model (instead of leaning on a 100B+ model for every choice) is an order-of-magnitude change in latency and cost. "Contrastive learning + state/action" has real theoretical grounding. It doesn't shrink a big model — it changes the learning objective, from generation to contrast. That's defining the problem correctly rather than throwing compute at it. The engineering

IADev
Interesse
dev.to

Why 'No Upload' Matters When Converting HEIC Files

Most HEIC converters start the same way: "Upload your photos to continue." It feels harmless — until you think about what you're handing over. HEIC is the default photo format on iPhones, so the pictures people convert most often are exactly the sensitive ones: family photos, IDs, receipts, medical documents, screenshots of boarding passes. When you upload a file to a converter server, three things happen that most people never consider. First, you lose control of retention. Many services keep uploads "for processing purposes" anywhere from 24 hours to indefinitely. Second, EXIF metadata rides along — GPS coordinates, device serial numbers, timestamps. Third, the file passes through hands you can't audit: CDN caches, logging pipelines, backups. A data breach at a random converter site is still a data breach of your photos. That doesn't mean you have to install bulky desktop software either. There are three real ways to convert HEIC files, and they differ enormously on privacy: Method Uploads your files? Free? Install required? Online converter services Yes, to their servers Mostly No Desktop apps (e.g. iMazing, Waltr) No Mostly paid Yes Browser-local converters No Yes No Desktop software keeps files local, but it costs money and doesn't help when you're on someone else's machine. The third option is the interesting one: modern browsers are powerful enough to decode HEIC and re-encode to other formats entirely on-device, using JavaScript and WebAssembly. Nothing ever leaves your computer — you can verify it yourself by pulling the network cable mid-conversion. Here's the practical version, using a browser-local tool as the example: Open the converter page in any modern browser — Chrome, Edge, Safari, or Firefox all work. Drag your HEIC photos into the page (or use the file picker). They load into browser memory only. Choose PDF as the output. If you have several photos, they'll be combined into a multi-page PDF — handy for submitting document scans. Click convert and

SegurançaMobile
Interesse
dev.to

I Built Two Waitlist Pages Instead of Two Products — Here's What I'm Validating First

Why this post exists I have two product ideas and, this time, I'm refusing to build either of them first. Both ideas sit next to strong free tools. Building first and hoping for payments later is exactly how I ended up with finished products and zero orders before. So each idea gets one honest waitlist page, a public signup threshold, and a deadline. If the count isn't reached by October 31, the idea is closed and everyone who signed up gets an email saying so. Signing up is just an email. No payment, no pre-order, no obligation to buy anything later. Free web clippers are good. What they don't focus on is batch conversion with tables and code blocks kept intact, plus layout handling for Chinese sites (Zhihu, WeChat articles, Juejin), exported to Obsidian or local files. Intended price being tested: ¥15/month Threshold: 30 signups by October 31, or it doesn't get built Waitlist: https://alapha888.github.io/mdclip-waitlist/ Idea 2: SyncMatrix — publishing status and data rollup for multi-account operators One-click syncing to many platforms is already solved by free tools, and individual creators don't need this. The untested claim is narrower: teams running many accounts will pay for account management, per-platform publish status in one place, and basic stats rolled up into one table — the work that currently lives in manual spreadsheets. Intended price being tested: ¥39/month Threshold: 20 signups by October 31, or it doesn't get built Waitlist: https://alapha888.github.io/syncmatrix-waitlist/ What I'd rather hear than a signup If either idea is something you'd never pay for because a free tool already covers your case, that's useful data too — tell me which tool and which part it covers. A clear "no, and here's why" beats a polite signup that never converts.

Geral
Interesse
dev.to

Zero-step device pairing: Socket.IO rooms from an HMAC of the public IP (and the IPv6 bug I shipped)

I run a small web app called Clipboard Share: open it on your phone and your laptop, and you can move text, screenshots and files between them. The one thing I wanted from day one was no pairing step. No account, no six-digit code, no QR scan. If two devices are on the same Wi-Fi, they should just find each other. This post is how that "room" works, with the actual code from the repo. Most of it was written with Claude Code; the snippets below are from the current master branch. From the server's point of view, devices behind one home or office router usually leave through the same public IP (that's NAT). So the public IP is already a decent "these devices are together" signal. Use it as the room key and you get zero-step pairing for free. The obvious problem: you can't hand the raw IP to the client as a room name. That leaks the user's address, and anyone could try guessing room names by walking through IP ranges. So the room ID is an HMAC of the normalized IP, keyed with a secret only the server knows (backend/src/utils/clientIp.ts): export const deriveIpRoomId = (ip: string, secret: string): string => { const normalized = normalizeIp(ip); const digest = createHmac('sha256', secret).update(normalized).digest('hex'); return `room-${digest.slice(0, 12)}`; }; Same IP, same room, every time. Without the secret you can't compute a room ID from an IP. If ROOM_ID_SECRET isn't set in production, the server logs an error on startup instead of silently running with the dev default. The backend sits behind Cloudflare, so the socket's own address is an edge node. The lookup order is: export const extractClientIp = (handshake: HandshakeLike): string | null => { const cf = firstHeader(handshake.headers['cf-connecting-ip']); if (cf && cf.trim()) return cf.trim(); const xff = firstHeader(handshake.headers['x-forwarded-for']); if (xff && xff.trim()) { const first = xff.split(',')[0].trim(); if (first) return first; } const addr = handshake.address?.trim(); return addr ? addr : nul

DevInfraSegurança
Interesse
dev.to

Reliable Transactional SMS Alerts Service: Auditable Suppression for Fintech Startups

Treat recipient suppression as a durable compliance decision, not as a flag buried inside an SMS provider. For every scheduled fintech alert, resolve the recipient against an internal, append-only suppression ledger immediately before dispatch; record the policy version and evidence used; then accept delivery events asynchronously and idempotently. This preserves an explanation for why a message was sent or withheld even after a provider, phone number, or retention policy changes. Short answer: the provider should transport messages and report outcomes, while your system owns consent state, invalid-recipient evidence, scheduling intent, and the audit trail. A cheap API cannot repair ambiguous authorization or a retry loop that sends the same account alert twice. Teams searching for a Twilio alternative or a convenient Node.js API still face the same control problem: the service boundary ends before the evidence needed to justify a fintech communication. The examples below use Go because the control flow is easier to make explicit, but the ledger and outbox design is independent of application language. Set an SLO around decisions you control: for example, 99.9% of due alerts receive a final internal dispatch decision within two minutes of their scheduled time. Track carrier acceptance and handset delivery separately because they are different states, and never make a delivery receipt your only proof that processing was correct. A provider-side block list is useful enforcement, but it is a poor system of record for a regulated workflow. It answers what that account will send now. An auditor, support engineer, or incident reviewer needs harder answers: which customer account owned the destination, what event scheduled the alert, what authorization applied, which policy revision ran, what evidence caused suppression, and whether a later correction restored eligibility. Phone numbers are reassigned. Users mistype them. A carrier can reject a message temporarily, and a d

Dev
Interesse
dev.to

API Route Health Checks: Background Worker Heartbeats Guard Logistics Rollbacks

TL;DR: Give the web application a cheap health endpoint, record job_success, job_failure, and last_run for each notification worker, and use an external heartbeat for failed-job detection. For a logistics notification service, that is the least complex design that catches both visible delivery failures and the nastier case: a worker or cron task that never started. Retain enough evidence to compare a release with its predecessor, but don't keep every payload. Rollback safety comes from preserving decision-grade signals, not from hoarding telemetry. The bill is driven first by what you ingest and retain. A useful planning equation is retained bytes = events per interval x bytes per event x retained intervals; query work then grows with how much of that retained set each investigation scans. Before choosing a vendor, measure those terms separately for delivery outcomes, application errors, and payload-like context. The change that moves the dominant term is usually dropping high-cardinality or duplicated context from routine success events while keeping failure detail and aggregate counters. A /api/health route should prove that the web process can answer. It can't prove that the queue consumer ran, that an OTP reached its provider, or that yesterday's delayed-delivery sweep executed. Treating one green URL as proof of all three creates a comforting blind spot. For each email, SMS, or OTP worker, report three operational signals: job_success, job_failure, and a last_run timestamp. Slice them only by dimensions that change an operational decision, such as region, channel, worker name, and release. EU and US separation can matter for routing and compliance review; individual recipient identifiers don't belong in routine metrics. OWASP's logging guidance is a good baseline for excluding tokens, secrets, and sensitive personal data. There is a hard boundary here. Counters can show a rising failure rate, and last_run can show stale work when somebody queries it, but neithe

InfraDev
Interesse
dev.to

I’m Moving My Developer Portfolio From WordPress to EmDash — Here’s Why

For years, WordPress has been the obvious answer to one question: “How do I get a website online?” But I started asking a different question: “What should a developer portfolio look like in an AI-native world?” That question is why I’m moving MartinsAI from WordPress to EmDash by Cloudflare. And no, this isn't another “WordPress is dead” article. WordPress isn't dead. It remains one of the most successful publishing platforms ever created. The problem is that my requirements have changed. And I suspect the requirements of many developer portfolios are changing too. I'm Martins Michael, a senior full-stack engineer and AI architect. My portfolio, MartinsAI, is where I document what I build, what I'm researching, what I'm learning, and the products I'm working on. It has gradually become more than a résumé. It's becoming a living engineering portfolio. I use it to showcase projects, publish technical writing, explain ideas around AI and software architecture, document experiments, and communicate what I can actually build. That means my website needs to behave less like a traditional publishing site and more like a developer-owned product. And that's where WordPress started feeling increasingly uncomfortable. WordPress is incredibly good at getting you from zero to publishing. Install WordPress. Pick a theme. Install some plugins. Create pages. Start writing. Done. But once you are a developer who wants complete control over the application architecture, the experience changes. You start accumulating decisions: Which theme? Which page builder? Which SEO plugin? Which cache plugin? Which security plugin? Which image optimization plugin? Which analytics plugin? Which form plugin? Which backup plugin? Which editor? Which hosting provider? Which CDN? Which plugin conflicts with which other plugin? Eventually, the website starts looking less like software you own and more like a collection of software you have assembled. That's fine for many websites. But I want something

Dev
Interesse
dev.to

Heap & Priority Queue: The Sorting Hat's Secret Weapon

The Quest Begins (The "Why") I was grinding through a mock interview when the interviewer tossed me a problem: “Given an unsorted array, return the k‑th largest element.” My first instinct? Sort the whole thing and pick the element at index len‑k. Easy, right? But then I felt that nagging voice in the back of my head — “What if the array is huge? Sorting is O(n log n) and we only need one element.” I remembered a late‑night debugging session where I spent three hours staring at a timeout error, wishing I had a smarter way to keep track of just the top k items while I scanned the data once. That moment felt like facing a boss level in Dark Souls — you know you can win, but you need the right weapon. The real question wasn’t how to code a heap; it was why a heap lets us grab the k‑th largest without looking at every possible ordering. If you can convince yourself of the why, the code almost writes itself. A heap is a binary tree that obeys a simple heap property: in a min‑heap, every parent is ≤ its children; in a max‑heap, every parent is ≥ its children. The beauty is that the smallest (or largest) element always sits at the root, ready to be ripped out in O(1) time. After you remove it, you can restore the heap property by “bubbling down” the replacement — an operation that touches at most the height of the tree, i.e., O(log n). But here’s the kicker: building a heap from an unsorted array can be done in O(n), not O(n log n). Why? Because you don’t need to insert elements one by one; you can start from the last internal node and heapify downwards. Most of those nodes are near the leaves, where the subtree is tiny, so the total work sums to linear time. Think of it like the Sorting Hat in Harry Potter: it doesn’t examine every student’s entire history; it glances at a few key traits and instantly knows which house fits. The heap does the same — it looks at just enough comparisons to guarantee the root is the extreme value. When we need the k‑th largest, we keep a min

Dev
Interesse
dev.to

My QR codes scanned in preview and failed on paper — the quiet zone isn't decoration

The QR Generator API was supposed to be the boring one in my toolkit: POST a string, get an image back. No parsers, no pagination, no file formats. It turned out to have the most physical-world failure mode of anything I run. A few weeks after I packaged it (https://x402.freeq.one/tools/qr_generator.html), an agent building conference tickets embedded my QR codes straight into a PDF layout — flush against the ticket art, no padding. On my preview page every code scanned instantly. On the printed tickets, phones refused to see them at all. Same bytes, same image. The culprit was the quiet zone. The QR spec (ISO/IEC 18004) demands an empty margin around the symbol — four modules wide, rendered in the same light color as the background. It isn't decoration: the detection step in every scanner uses that border to find the edges of the three finder squares and establish where the data grid starts. With no margin, the finder patterns sit flush against other dark artwork, edge detection fails, and the camera just reports "no code found" instead of a mangled read. Mine rendered the exact pixel matrix with a zero-pixel border, because that's what a "clean" API output looks like. In an HTML preview on a white page, the page itself doubles as the quiet zone — which is why it worked for me and died at the printer. I tested four margin settings — 0, 1, 2 and 4 modules — across 50 generated codes with a decoding library plus three phones. Zero margin decoded under half the time, two modules caught most, four modules went 50 for 50. The margin parameter now defaults to 4, and I document it as part of the symbol, not a style option. One adjacent trap I now warn callers about: transparent-background PNGs placed over dark slides fail the same way. The quiet zone has to be contrast in ink, not an assumption about whatever sits behind the image. Barcodes play by the same rule — GS1-128 wants clear margins on both sides too. Empty space isn't wasted space; it's part of the format.

DevMobile
Interesse
dev.to

Security Audit Report: Reentrancy & Access Control Review: Binance staked ETH

Security Audit Report: Reentrancy & Access Control Review: Binance staked ETH Target Protocol: Binance staked ETH (TVL: $9586.9M) Security Audit Report – Reentrancy & Access‑Control Review Protocol: Binance Staked ETH (BETH) – Ethereum & L2 Deployments TVL: ≈ $9.59 B (as of 7 Oct 2026) Audit Window: 1 Sep 2026 – 30 Sep 2026 Prepared By: Senior DeFi Security Research Team – [Your Firm] Binance Staked ETH (BETH) is the liquid‑staking token issued by Binance for ETH that has been deposited into the Ethereum consensus layer via the Beacon Chain. The BETH contract suite consists of: Component Primary Function Main Contracts (Ethereum) Main Contracts (L2) Staking Manager Accepts ETH deposits, forwards to the Beacon Chain, mints BETH StakingManager, BeaconDepositContract StakingManager_L2 Redemption Engine Burns BETH, initiates withdrawal from the Beacon Chain RedemptionRouter, WithdrawalQueue RedemptionRouter_L2 Governance & Admin Parameter changes, emergency pause, fee configuration BETHAdmin, TimelockController BETHAdmin_L2 Utility & ERC‑20 ERC‑20 compliance, permit (EIP‑2612), meta‑transactions BETHToken BETHToken_L2 The audit focused on two critical security domains: Reentrancy – especially in the deposit/withdrawal flow, cross‑chain message handling, and any external calls (e.g., to the Beacon Deposit Contract, L2 bridge, or third‑party price oracles). Access Control – correctness of role‑based permissions, upgradeability guardrails, and emergency pause mechanisms. Category Findings Severity (1‑10) Status Reentrancy No direct reentrancy in the core ERC‑20 functions; however, cross‑chain callback in RedemptionRouter can be re‑entered via the L2 bridge’s receiveMessage function. 6 Open Access Control Admin role is a single‑key EOA (Binance hot wallet) with no multi‑sig guard; upgradeability via TransparentUpgradeableProxy lacks a delay for critical logic changes. 8 Open Combined The combination of a single‑key admin and a re‑enterable withdrawal path creates a high‑imp

Segurança
Interesse
dev.to

What’s your take on Upwork in fall 2026?

Developers, what’s your take on Upwork in fall 2026? Are you finding solid projects at reasonable rates? Is it worth joining as an experienced engineer with no track record on the platform? I’m a Full-Stack Engineer with 9+ years of experience in React/Next.js, Node.js, AI integrations, and automation. I’m considering Upwork as a way to find clients and would love to hear about your recent firsthand experience. 🖥️ Website: https://ihar-ivaniuk.com https://www.linkedin.com/in/ihar-ivaniuk/

Geral
Interesse
dev.to

Travel Listing Retrieval Architecture: Latency Budgets for Grounded Itinerary Answers

Short answer: use staged retrieval with explicit collections, bounded queries, and source context that survives all the way into the citation. For a travel itinerary planner, I would reserve a small, fixed budget for lexical discovery, a second budget for vector retrieval, and a final budget for citation assembly. The planner should return fewer grounded listings rather than wait indefinitely for a larger unverified set. The system in this article aggregates listings from several sources. That detail changes the design. A hotel description, a rail schedule, and a restaurant review do not share the same freshness window or evidence quality. Treating them as one giant index makes latency and grounding impossible to reason about. Start with the answer contract, not the database. Define the fields the user will see (listing name, location, dates, price as supplied by the source, and a citation), then define what evidence is required for each field. A request that only needs three nearby dinner options can tolerate a different retrieval path from a multi-city itinerary with date constraints. Here is a practical staged budget for an interactive request. The numbers are engineering targets, not measurements of any vendor: Stage Work Budget target Failure behavior Discovery Normalize the destination and gather candidate sources 80 ms Keep cached candidates and mark freshness Retrieval Apply metadata filters, then vector or lexical search 180 ms Return the top grounded subset Evidence Fetch snippets and attach source IDs 120 ms Omit an item without evidence Assembly Deduplicate, rank, and build citations 70 ms Answer from retained evidence only The total target is 450 ms before generation. A deadline is useful only when every stage has a timeout and a clear fallback. “Try harder” is not a fallback; it is an unbounded queue. I keep separate collections for lodging, transport, and activities. Each record carries a source URL, retrieval timestamp, locale, and validity interval.

Dev
Interesse
dev.to

AI Test Agents Need a Mailbox Lease

AI agents are getting good at running developer workflows. They can create a test user, trigger a signup, inspect a verification message, and report whether the flow worked. The awkward part is usually not the prompt or the model. It is the mailbox. An agent that uses one shared inbox quickly inherits hidden state: old messages, another job's verification link, rate limits, and a cleanup rule nobody wrote down. The result looks like an AI problem, but it is really a test-fixture design problem. I like to model each test mailbox as a lease. The agent receives a mailbox for one run, knows what it is allowed to do, and must return or expire it when the run ends. This mental model makes automation easier to reason about, whether the mailbox is a local fake service or part of a best throwaway email workflow. An agent is often allowed to retry. That is useful for transient browser or API failures, but retries make shared email state dangerous. A second attempt may find the first attempt's message and report a false pass. A later task may also read a token that belongs to an earlier user. The agent don't need a permanent inbox. It needs four predictable answers: Which run owns this mailbox? Which messages count as evidence? When does the lease expire? What information is safe to keep after failure? The same questions apply when a developer searches for a temp mail so service for quick manual checks. In an automated workflow, though, the lease has to be explicit enough for a tool call and a cleanup job to enforce it. A small lease record can be more valuable than a complicated agent prompt. Store it next to the test run, not only in the agent's conversation: { "run_id": "signup-1842", "mailbox_id": "qa-1842@example.test", "created_at": "2026-10-08T06:00:00Z", "expires_at": "2026-10-08T06:15:00Z", "allowed_events": ["verification_email"], "status": "active" } The run_id prevents one job from claiming another job's messages. The event allowlist keeps an agent from treating an

IADev
Interesse
dev.to

Crypto is changing, and that is a good thing... In the long term

Hackathons have changed completely. You are now most likely not competing for money but for the chance to make money in the long run. That is understandable: most hackathons were won by “bounty hunters,” people who did not want to build the product and only wanted a quick cash grab- literal bounty hunters. That hurt hackathons, and chains have realized there are few incentives left for hosting them. Now hackathons are focused on taking your idea (or MVP) to a real product that generates revenue and has users. That is a better approach in the long term because you reward people who are building real solutions and want to build for the long term, instead of people who build only to collect a check and say goodbye. Most grant programs have disappeared completely, but many of the chains that gave those grants have not stopped making revenue, so the funds are still there. What I imagine is that grants will focus on key tooling (compilers, frameworks, etc.) and on already existing protocols, which makes a lot of sense. Grants were used to bootstrap ideas; how many successful ideas did they bootstrap? A really small number. Now you have to put yourself out there first, and then you can get the money to keep going, which rewards builders in the long term. Let me explain: in the early 2020s, protocols were valued at millions (millions!!) just because they were the only ones doing X on Y blockchain. That was misguided. Blockchains should always have been an implementation detail, not the USP. For example, look at something like Polymarket: do people using Polymarket know they are on Polygon? No. Most of them do not even know they are using a blockchain, and that was the end goal all along. The blockchain should just be part of the stack. Users do not care which blockchain you are building on; they care about the product. You (the developer) are the one who should care, but the end user should not. Good examples of this are Hyperliquid, Polymarket, and USDT. In the next couple

Geral
Interesse
dev.to

When an independent audit corrected a coding-agent test report

Disclosure: this article was prepared with AI assistance from AiOrch's published demo record. Its draft was generated by an AI assistant and checked against that record. I am the founder of AiOrch, the commercially licensed engineering orchestration platform discussed here. A coding-agent workflow can produce several different kinds of evidence: an implementation, a review verdict, an integrated branch, a test result and a pull request. Those records can disagree. In a recorded AiOrch Python TODO CLI demo, the final development report claimed 36 tests. A separate audit reran python -m pytest tests/ -v and recorded 35 passed with exit status zero. That is a small discrepancy. It is also a useful example of why the generated report needs its own verification boundary. The work was assigned to three implementation agents covering core logic, CLI work and packaging. Dependent work started after its prerequisite was approved. All three implementations received change requests before their final approval. The changes addressed scope cleanup, CLI error handling and packaging/documentation corrections. During integration, the record captured a conflict on the CLI branch and its later resolution. All three branches were marked merged inside the session. A separate audit session used four audit/follow-up agents. In addition to correcting the test count, it identified specification/report discrepancies and prepared follow-up fixes. The inspected record did not show a merged audit result. An approved audit session therefore does not establish that all of its follow-up changes reached the public PR. The case study links to demo-projects PR #5. It was still open when checked on 5 October 2026. Branch integration inside the session and a GitHub PR merge are different states. Preserve the approved task specification. In this historical run, an original task file was removed and the audit reconstructed its specification from saved configuration. A durable copy gives later reviewers

IADev
Interesse
dev.to

Your AI Agent Says 'All Tests Pass.' Did They Actually Run?

The most dangerous sentence an AI coding agent can write is not a bug. It is: "All tests pass." When it's true, great. When the agent never ran the tests, ran only some of them, or quietly changed one so it would pass, that sentence is worse than a failing test. A failing test is honest. UNIVERSAL-AGENTS.md treats honest reporting as a core requirement. Here's how. Several sections say the same thing from different angles: Testing (Section 19): don't claim tests passed unless they were actually executed and completed successfully. Verification (Section 20): don't claim verification that wasn't performed. Output Rules (Section 24): don't claim that code was tested when it wasn't, that files were modified when they weren't, or that requirements were verified when verification didn't happen. Clearly state any limitations or verification that couldn't be completed. The repetition is deliberate. This is the failure that destroys trust fastest. Section 31 closes the loophole behind many fake "green" runs: Never delete, skip, disable, or weaken tests or assertions merely to make them pass. A test may change only when the intended behavior changed as a result of the requested work. And if tests can't be run at all, the agent has to say so and explain why. "I couldn't run them because the environment has no database" is useful. Silence is not. Section 19 adds that the agent should update only the tests impacted by the change, preserve existing coverage, and not touch unrelated tests. Section 36 offers a template for the end of every task. Include only the fields that apply: Changed: Not changed: Reused: Documentation: Verification: Assumptions: Observations: Look at what each field forces: Not changed makes the agent state what it left alone, which exposes scope creep. Reused shows whether it searched for existing code or reinvented it. Verification requires commands and actual results, or an explicit "not run: reason". There's no room for a vague "looks good". Assumptions s

IADev
Interesse
dev.to

My Voice Agent Replied in 8 Seconds. Two Settings, Not the Model.

I run OpenClaw as my main agent harness, with the voice layer on Discord. When I first turned voice on, I said hello and waited about eight seconds for a reply. Eight seconds is long enough to assume it doesn't work. It works. The delay was two configuration defaults. Neither was the model. OpenClaw is the open-source agent harness I run my workflow on; the voice layer sits on Discord. The config keys are OpenClaw's, but the cause — turn-taking defaults — is generic. A fixed silence wait. captureSilenceGraceMs defaults to 2000 ms. It waits two full seconds after you stop talking before it decides your turn is over. Normal conversation leaves a few hundred milliseconds. Two seconds reads as a pause. A full-agent round-trip on every turn. The realtime voice model consulted the entire agent before it spoke. I'd say "hello"; OpenClaw would run the whole agent — tools, memory, the lot — and only then would the voice layer talk. That round-trip is the larger half of the delay — the same failure I wrote about from the theory side: the pause lives in the turn-taking, not the LLM. Both are turn-taking settings, not model quality. Everything sits under channels.discord.voice in ~/.openclaw/openclaw.json. Before → after: Setting Before (default) After Why captureSilenceGraceMs 2000 800 Wait a beat, not two seconds realtime.consultPolicy always auto Voice layer handles the conversational filler; call the agent only when the turn needs it realtime.bargeIn (on) true Pinned — cut it off mid-sentence realtime.minBargeInAudioEndMs 250 0 Interrupt with no 250ms tail gate realtime.instructions ends …conversational. Never open with filler. ends …conversational. Lets it use a short backchannel ("one sec") while an agent consult runs model (agent behind voice) openai/gpt-5.6-terra deepseek/deepseek-v4-flash Cheaper, faster reasoning behind the realtime front end The one that mattered most was consultPolicy: "auto". The realtime model (gpt-realtime-2.1) is only the voice layer — turn-taki

IADev
Interesse
dev.to

How to Become Spiritually Western as a Japanese Researcher: DEV and Academia.edu as Underground Academia, Horizon Europe as Orthodoxy

TL;DR On 30 July 2026, Japan officially became an associated country to Horizon Europe, the EU's €93.5B research programme. This is the orthodoxy: institutional, peer-reviewed and well funded. Platforms like DEV Community and Academia.edu are the underground: open, informal, and free of gatekeepers. Japanese researchers tend to overlook these platforms. Paradoxically, that is exactly why they can become a home. Being "spiritually Western" means moving between both worlds. I use CV HAL and Zenodo to bridge them. I don't mean copying Western culture or dropping your Japanese identity. I mean adopting a few habits that the European research world takes for granted: Publish early and in the open, before the work feels "perfect" Own your identity as a researcher, not only through your institution's name Reach across borders without waiting for an introduction Treat your outputs as public assets: papers, code and data alike Many of us in Japan were trained to work through official channels and speak only when the work is finished. That is a real strength. It also makes us nearly invisible on the global stage. Japan is now the 23rd associated country to Horizon Europe and, with about 123 million people, the most populous one. Date Milestone 22 Dec 2025 European Commission and the Government of Japan conclude negotiations Jan 2026 Transitional arrangements let Japanese entities apply to Pillar II calls 30 Jul 2026 Association agreement enters into force The association covers Pillar II: Global Challenges and European Industrial Competitiveness, worth €52.4B. Japanese organisations can now coordinate projects and receive EU funding directly, on equal terms with EU member states. Before, we mostly joined as a "third country" and paid our own way. But orthodoxy comes with rules. Open science is a contractual obligation under Article 17 of the Model Grant Agreement: Immediate open access: no embargo, and the paper must be deposited in a trusted repository by publication. Licenc

Geral
Interesse
dev.to

Optimizing Kubernetes Manifest Management Across Clusters with Rancher CD and Exploring cdk8s, Pulumi, Nix

Introduction: The Challenge of Kubernetes Manifest Management Managing Kubernetes manifests across multiple clusters and environments is an inherently repetitive and error-prone process that, when scaled, becomes increasingly brittle and unmanageable. Each cluster introduces unique requirements and configurations, creating discrete points of failure within the deployment pipeline. A real-world example illustrates this: an organization’s current setup, reliant on Rancher’s Continuous Delivery (CD) tools and a git repository-per-cluster model, is approaching its operational breaking point. The addition of disaster recovery (DR) clusters has overextended the existing branching strategy—feature → develop → preprod → prod—exposing its inability to handle increased complexity without compromising structural integrity. The root cause lies in the manual effort required to enforce consistency across environments. Each branch workflow (e.g., feature → DR) functions as an independent component in a system not designed for high parallelism. As cluster count increases, the cognitive burden on operators scales non-linearly, leading to configuration drift and deployment failures. This is not merely a theoretical concern but an observable systemic breakdown where manual adjustments and environment-specific overrides introduce cumulative inefficiencies that degrade scalability. The exploration of tools such as cdk8s, Pulumi, and Nix represents a targeted response to this systemic fragility. Rancher CD, while adequate for homogeneous deployments, lacks the abstraction layer necessary to automate manifest generation across heterogeneous environments. Features like targetCustomizations in Fleet serve as ad hoc fixes that fail under the load of multi-environment workflows. The aversion to a "split-brain solution" (e.g., Terraform + Rancher CD) underscores the operational inefficiency of maintaining parallel systems, each introducing distinct failure modes and increasing cognitive overhe

InfraDev
Interesse
dev.to

Advanced Privacy: A Practical Defense-in-Depth Guide

Privacy is not a product you install. It is a system of boundaries that prevents one disclosure from becoming a complete map of your life. No setup makes you invisible. A realistic privacy program does four things: reduces unnecessary collection; makes separate activities harder to correlate; limits the damage when a service or device is compromised; and gives you a tested path to recover. This guide is designed for ordinary people who want materially stronger privacy without turning daily life into a full-time security project. It also explains where common advice fails, especially around VPNs, SMS verification, virtual numbers, cloud backups, and identity compartmentalization. Scope: This is educational guidance, not legal advice. Border searches, telecommunications rules, identity requirements, and data-retention laws vary by jurisdiction. If your safety, liberty, immigration status, employment, or source protection is at stake, consult qualified local counsel or a digital-security specialist. Start with a threat model The 60-minute privacy sprint Build identity compartments Use an email architecture Separate payments and addresses Stop using your personal number everywhere Secure accounts and recovery Reduce device attack surface Protect communications Understand browsers, VPNs, and Tor Control the home network Minimize files, cloud copies, and backups Reduce public exposure Plan for home, travel, and checkpoints Prepare an incident-response sequence Implement the system in phases Buying privacy tools before defining the problem usually creates cost and complexity without meaningful protection. Start with one page and answer five questions. List the assets that must remain confidential, available, or authentic: conversations, location history, contacts, identity documents, funds, unpublished work, health records, account access, or a protected source. Separate data brokers, scammers, abusive acquaintances, employers, platform operators, thieves, litigants, and s

SegurançaMobile
Interesse
dev.to

RAG Hallucination: 6 Ask-Your-Docs Invoice Traces Explaining Wrong Chatbot Answers in 2026

Short answer: treat an ask-your-docs answer as a traceable claim, not a successful model call. For supplier-invoice extraction, the least complex useful setup records one trace per invoice, attaches tenant-safe cost and retrieval attributes, and refuses to fill a field when the retrieved evidence does not support it. Better embeddings or a larger context window cannot repair a missing invoice page, an ambiguous tenant policy, or a prompt that quietly asks the model to guess. Start with this decision table. Pick the smallest option that lets an operator connect a wrong field to its source evidence and its tenant cost. Option Pick this when What it reveals Main limit Structured logs One team owns a small pipeline Inputs, selected passages, outcome, and cost units Cross-step investigation becomes manual Correlated traces Extraction spans OCR, retrieval, reranking, and generation Where evidence disappeared or changed Requires careful attribute design Offline evaluation set You need release comparisons on known invoices Regressions by field, document type, and tenant Cannot explain a live incident alone Online sampled review Production documents differ from the test set Current failure shapes and abstention quality Can miss rare tenant-specific cases The practical answer is a combination: traces explain individual failures, while a small evaluation set tells you whether a change helped. Keep billing dimensions beside quality dimensions. Otherwise a globally healthy dashboard can hide one tenant that pays for repeated OCR, retrieves five irrelevant chunks, and receives an unsupported tax amount. A plausible passage is not necessarily evidence for the requested field. An invoice question such as "What is the payment due date?" may retrieve a tenant's payment policy, a supplier's standard terms, and the invoice footer. All three are semantically close. Only one may state the due date printed on this invoice. Chunk boundaries can remove the relationship that matters. The lab

IADev
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
dev.to

The Best Instruction You Can Give an AI Coding Agent: 'When Uncertain, Do Less'

Ask a human teammate to fix a typo and you get a fixed typo. Ask an AI coding agent the same thing and you might get the typo fixed, the surrounding function "cleaned up", two variables renamed, and a note about how it also improved the error handling. Each change might be defensible on its own. Together they turn a ten-second review into a twenty-minute one, and you now own a diff you didn't ask for. The agent isn't being malicious. It is being helpful with no idea where "helpful" stops. UNIVERSAL-AGENTS.md ends with one line: When uncertain, do less, not more. Everything else in the file is an elaboration of it. Here is what it looks like in practice. Section 25 has my favorite sentence in the whole file: A change being beneficial does not make it in scope. That sentence is aimed squarely at the agent's strongest instinct. Most unwanted changes are good ideas: a cleaner name, a modern syntax, a dependency that's two versions behind. The rule acknowledges they might be improvements and still says no, because the request defines the work. Section 8 backs it up with a list of reasons that don't justify touching a file: it could be improved, its formatting could be modernized, its naming could be clearer, its dependencies could be newer, its tests could be expanded. A possible improvement is not automatically part of the requested work. This is the interesting case. While working, the agent spots an unrelated problem. Sections 8 and 14 give a narrow path: Fix it only if it directly prevents the requested change from working, or you explicitly authorize the fix. Otherwise: Don't fix it silently. Don't redesign the surrounding code. Mention it only when it materially affects the requested work. It's a deliberate trade-off. The agent doesn't smuggle in changes you'll discover during review, and it still flags problems that matter. Doing less also means not guessing. Section 2 says that if a request is ambiguous, incomplete, contradictory, or in conflict with the project,

IADev
Interesse
dev.to

Every open job for a list of companies, in one table (Workday, Greenhouse, Lever and 14 more)

Sales teams, recruiters and job-market analysts often start from the same input: a list of companies. They want every job those companies have open right now, in one table, with the same columns for each company. That is harder than it looks. Each company publishes its jobs on its own applicant tracking system: Workday, Greenhouse, Lever, Ashby, SmartRecruiters, iCIMS and many others. Every system has a different URL scheme, a different public feed and different field names. Before you can read the jobs you have to find out which system a company uses and what its board is called. Big employers often run several career sites at once. This post shows how to do it with one API call, and what we measured when we compared our tool with the alternatives. Company Jobs Scraper: All Open Jobs by Company Name or Website is an Apify Actor we built. You give it company names (Spotify) or websites (stripe.com). It finds each company's career board on one of 17 sources and returns every open job in one format. It reads only the public job data that companies publish for job seekers. It needs no login, and it is not affiliated with any of the job systems. For each job you get the source system, company, title, job URL and apply URL, department, location, workplace type (remote, hybrid or onsite), posting date, and the salary range where the company publishes one. The full description comes as text and HTML. from apify_client import ApifyClient client = ApifyClient("YOUR_APIFY_TOKEN") run = client.actor("hiver/all-open-jobs-by-company").call(run_input={ "companies": ["stripe.com", "ramp.com", "Spotify", "NVIDIA"], "titleKeywords": ["engineer"], "maxJobs": 500, }) for job in client.dataset(run["defaultDatasetId"]).iterate_items(): print(job["company"], job["source"], job["title"], job["location"], job["url"]) maxJobs caps how many jobs a run returns, and so what it can cost. The same input works in the Apify Console without code, and results download as CSV, Excel or JSON. The Apif

Dev
Interesse
Simon Willison

Quoting Ben Affleck

I've always been kind of into computers since I was young. And then when film started to move from analog film to digital, I became more interested in that aspect of it. And the visual effects workflow for many years has included machine learning. So I can write like pretty shitty Python scripts and stuff like that because with convolutional neural networks, which were the sort of precursors to what the transformer can do, which is just much more computation simultaneously, you would do things like look at what's called a tensor, which is just the numerical translation of a visual image in numbers — like the batch number, the frame number, the red, green, and blue values of each pixel in each frame. And a tensor, you use a convolutional neural network to identify patterns in that that would reveal what's called edge detection or feature extraction, which is just identifying patterns enough to know like this is where the window ledge is, so we can more easily take the green screen image out and replace it with something. — Ben Affleck , Pythonista Tags: machine-learning , python

IADev
Interesse
BleepingComputer

Ransomware recovery CEO charged over secret ransom payments

The owner of ransomware remediation company MonsterCloud has been charged with allegedly defrauding ransomware victims by secretly paying their attackers for decryptors while claiming to use proprietary technology to recover encrypted data. [...]

Segurança
Interesse