Painel de Notícias

Tecnologia

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

Filtros
dev.to

One key for an agent's tool calls: a prepaid USDC balance on an MCP connection

Most paid MCP tools ask the agent to pay per call on chain: sign an EIP-3009 authorization, broadcast it, wait for confirmations, retry — for a $0.001 weather reading. We measured what that does to adoption on our own marketplace: hundreds of MCP clients listed our tools, none paid. So we added one more door. https://modelmarket.dev/start gives a key (no email), tops it up with USDC on Base from a browser wallet, and shows the config line for Claude Code, Cursor, VS Code, Claude Desktop, or a single URL for claude.ai's custom-connector box. The key rides on the MCP connection as X-API-Key; priced calls are held and captured from the balance; a short balance still gets the free trial; an unknown key is refused rather than served free. We ran it end to end on mainnet with $1: one transaction (transferWithAuthorization to the hub's treasury, ~0.0000005 ETH of gas), a credit, and a $0.001 call paid from the balance. Every record and the transaction, with diagrams: https://github.com/alexar76/aicom/blob/main/docs/start-onboarding-demo.md Disclosure: we run modelmarket.dev.

IADev
Interesse
dev.to

Claude Code Stop hooks: making the agent finish its homework"

Every coding agent I use has the same habit. It does the work, writes a lovely summary, and stops. The summary lives in the chat. The chat scrolls away. The NOTES.md I asked it to keep up to date hasn't been touched since Tuesday. You can ask nicely in CLAUDE.md, and it will mostly listen. "Mostly" is doing a lot of work in that sentence. Claude Code has a firmer tool for this: a Stop hook, a script that runs when the agent is about to finish and is allowed to say "not yet". I shipped one in Deiko this week, then shipped a fix for it the same day. The fix taught me the one rule I'd now give anyone writing a Stop hook, so that's where this post is heading. Basics first. A Stop hook runs when the main agent has finished responding. It doesn't run when you interrupt with Esc. An API error fires a separate StopFailure event, and subagents get their own SubagentStop. Hooks live in settings.json: ~/.claude/settings.json for all your projects, .claude/settings.json for one repo. There are three levels: the event, a group, and the handlers inside the group. Stop has no matcher (if you add one, it's silently ignored), so the group is just a wrapper: { "hooks": { "Stop": [ { "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PROJECT_DIR}/.claude/hooks/notes-guard.mjs"] }] } ] } } Setting args runs the command directly, without a shell, which is what the hooks reference recommends whenever you use a path placeholder like ${CLAUDE_PROJECT_DIR}. The script gets a JSON object on stdin. For Stop, the parts you'll use look like this: { "session_id": "abc123", "transcript_path": "~/.claude/projects/.../00893aaf-....jsonl", "cwd": "/Users/you/project", "hook_event_name": "Stop", "stop_hook_active": false, "last_assistant_message": "I've finished the refactor. Here's what changed..." } There are a few more fields (permission_mode, background_tasks, session_crons), but these are the ones that matter here. Print nothing and exit 0, and the agent stops as normal. To kee

IADev
Interesse
dev.to

We deleted 460 lines of onboarding, and /onboarding is now a 44 line redirect with no page

Nakodo had an onboarding flow. src/app/onboarding/ held page.tsx, forms.tsx, actions.ts, loading.tsx and error.tsx: 460 lines that asked a new account for their name, their company and their website, then sent them to create their first campaign, where the first question was their website. Today's commit deletes the directory. In its place is a route handler with no UI at all, and the questions now get asked in the one place they were always going to be asked anyway. 52 files, 1,089 insertions, 1,284 deletions, and the app does more than it did. A campaign in Nakodo starts by reading the brand's website and writing a brief: what you sell, who it is for, which markets, which creators. The customer then checks that brief and launches. Setting up the first campaign is therefore already a guided, multi step, explanatory flow with a review at the end. Onboarding was a second guided, multi step, explanatory flow, immediately before it, collecting a subset of the same facts. Two progress indicators, two sets of validation, two places where the website is typed, and one of them had its own bespoke illustration. That part stung: 183 lines of hand written SVG of a trail map went with it, and so did the 24 lines of CSS that animated it. /* Onboarding's trail map: the trail just walked fills in from the left, then the new step's ring opens and the step left behind is ticked. */ @keyframes trail-walk { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } } Deleting a feature means deleting its art, and the nicest thing in the diff is always the first casualty. The question that killed it: what does "onboarded" actually mean for this product? It is not "answered three questions". It is "has a campaign out there working". Everything else was ceremony in front of that. A route.ts, so there is no page, no loading state and nothing to render: // Where sign-up leads once the email is confirmed (src/app/(auth)/actions.ts). // There are no questions here: the first c

Dev
Interesse
dev.to

Command Injection in Legacy CPE: A Technical Walkthrough of CVE-2026-95675

Command Injection in Legacy CPE: A Technical Walkthrough of CVE-2026-95675 Overview CVE-2026-95675 is a textbook command injection in consumer-grade customer premises equipment. The affected product is the D-Link DAP-1360, a wireless access point and range extender that the vendor retired in August 2020. Affected firmware is 6.14 and earlier across all hardware revisions. The flaw is unauthenticated and grants root-level command execution. The vulnerable code is in the device's web server binary, in the network diagnostic path. The handler behind apply.cgi accepts a ping target through the ipv4 ping parameter. It formats that value into a system ping command and passes the composed string to the command interpreter. An attacker sends a request to the diagnostic endpoint with a ping target that contains shell metacharacters. The interpreter splits the string and executes the attacker's trailing commands alongside the intended ping. Because the endpoint is unauthenticated, the request needs nothing more than network reachability to the management interface. The combination of unauthenticated access, remote triggerability, and root-level impact explains the critical rating and the reported CVSS v3 score of 9.8. There is no user interaction and no prerequisite beyond reachability. D-Link DAP-1360, all hardware revisions, firmware 6.14 and earlier. No patched firmware will be produced; the vendor states that firmware development for the retired family has ceased and recommends retiring the product. A ZoomEye search for the product fingerprint app="D-Link DAP-1360" returned 423 matching instances worldwide at the time of writing. A CVE-scoped query, vul.cve="CVE-2026-95675", returned no indexed assets, which is expected for a freshly assigned identifier. The product fingerprint therefore gives the more useful exposure estimate, and it only counts assets that still answer with a recognisable DAP-1360 signature; devices hidden behind firewalls or with a modified management

SegurançaInfra
Interesse
Rock Paper Shotgun

Games industry investors are "sitting on the sidelines waiting for obvious slam dunks", says Undead Labs boss, with labour costs a key worry

Last month, State of Decay developers Undead Labs bought their own independence from Microsoft, after a deal with unnamed buyers fell through. The staff created a new holding company, Full Measure, to facilitate the buyout. Layoffs followed. Now, studio boss Philip Holt has offered an inside look on the transition, together with thoughts on the wider landscape of videogame industry investment. Short version: he thinks there's still money washing around, but the fatter cats are very much looking for "obvious slam dunks". Read more

Games
Interesse
dev.to

Crowdwide Monetization Is Coming Together — And Communities Can Actually Grow With It

Crowdwide is starting to reach a point where communities won't just be places where people post and interact. They can become growth engines. 🚀 A big part of that is the monetization and advertising system we've been building. And honestly... It's getting pretty damn powerful. Communities that meet Crowdwide's requirements can apply for monetization. Once approved, they can have advertising enabled inside their community. That means a community can have: Sponsored content Advertisements in configured placements Controlled ad frequency Advertisement reporting Community-level ad statistics Admin-controlled monetization settings Ads don't just randomly appear. Campaigns go through Crowdwide's moderation system before they can run, and communities have to actually qualify for monetization. The goal is to keep the system controlled while still giving communities another way to grow. The interesting part isn't simply: "Communities can show ads." The interesting part is what this can eventually do for community growth. A community can build an audience. That audience creates activity. The community becomes eligible for monetization. Advertisements can then run inside it. And Crowdwide can use that system to create more opportunities for communities to grow and attract new people. It's not supposed to be: Big community → gets everything → small community stays invisible. Crowdwide is being built around the opposite idea. Crowdwide uses an internal platform currency called Waves. Waves can be earned through activity across the platform and can also be used for advertising campaigns. That creates an interesting loop: Participate → Earn Waves → Use Waves → Promote → Reach more people → Grow Advertisers can fund campaigns using Waves. Campaigns have budgets, daily spending limits, moderation, reporting, impressions, clicks and CTR tracking. So advertising isn't just a simple "put an ad here" feature. It's becoming an actual system. One of the things I care about with Crowdwide

Geral
Interesse
dev.to

Why Not to Autocomplete VINs from Partial Input Against NHTSA

Product managers love typeahead. Users type three characters of a city and a dropdown appears. So someone eventually asks: can we autocomplete VINs the same way? Partial string in, NHTSA suggestions out, picker UI, done. For VINs that idea is a trap. A Vehicle Identification Number is not a prefix-searchable directory like street names. Hitting vPIC (or any decode API) on every keystroke wastes quota, leaks incomplete identifiers into logs, and trains users to expect completions the public data model cannot provide. This post explains why VIN autocomplete against NHTSA is the wrong UX, what to do instead, and a small TypeScript guard that blocks premature network calls. NHTSA DecodeVinValues expects a full 17-character VIN (after your normalization rules). There is no official "VIN suggest" endpoint that returns a ranked list of completions for 1HG or 1HGCM. The first three characters are a World Manufacturer Identifier; they describe a maker region pattern, not a unique vehicle. Partial input therefore cannot resolve to "the car the user meant" without guessing among millions of serial combinations. Autocomplete that invents those endings is fiction dressed as helpfulness. Quota and rate limits -- debounce or not, each keystroke path that reaches the network multiplies DecodeVinValues traffic by roughly the average typed length. Free products feel this first. False confidence -- a dropdown of "likely VINs" implies the list is authoritative. Users pick a wrong completion and trust the decode of a vehicle they never owned. Privacy and logging -- partial VINs still identify inventory and buyers. Streaming them to analytics on every input event expands your retention surface for no decode value. Error UX thrash -- positions 1-8 can look valid while the check digit and VIS are unfinished. Live decode attempts produce flicker: invalid, invalid, success. Mobile cost -- dealers on cellular should not fire seven failed API calls while pasting slowly from a paper packet. Tre

Dev
Interesse
The Verge

Jaguar’s first EV looks just like its divisive concept car

The Type 01, Jaguar's most important and divisive car in years, has arrived. The production follow-up to the polarising Type 00 concept, Jaguar says the electric, four-door grand tourer is its most powerful road car ever. Even though the Type 00's design chief was reportedly fired earlier this year, most of its aesthetic has carried over to the final car, for better or worse. You can't buy it in that hot Miami pink though - didn't anyone tell them GTA VI is almost here? It has the same low-slung silhouette, extended side-profile, and huge 23-inch wheels as the prototype, though shifting to a four-door design makes those proportions feel mor … Read the full story at The Verge.

Geral
Interesse
dev.to

Get a Mac notification when a Greenhouse, Lever, or Ashby job is posted

I keep a short list of companies I actually want to work at. I work in marketing, and a broad search turns up a lot of roles outside those companies and outside the places I can work. Once I have a link I use career-ops. It scores the role and drafts the resume. It has the capability to search for jobs for me, but it doesn't always identify the best fits and it also only runs when I tell it to. I built job-alerts for the step before that: a Mac notification when one of those companies posts something new so that I can apply as soon as a new vacancy drops. It reads public Greenhouse, Lever, and Ashby feeds. It does not apply for you. A Mac with Python 3, which is already there, and the board name for each company. The repo watches nobody until you add one. git clone https://github.com/nataligmhall/job-alerts.git cd job-alerts cp companies.example.json companies.json companies.json is gitignored, so your list is not part of a public copy. [ { "name": "Acme", "source": "greenhouse", "board": "acme", "keywords": ["content", "product marketing"], "locations": ["remote", "toronto"] } ] keywords and locations are optional. Leave them empty to hear about every new role. A role that does not match is still remembered, so changing the filter later does not replay the whole board. A role the board marks as remote matches a remote location even when the city is somewhere else. Greenhouse. The token is the slug in https://boards-api.greenhouse.io/v1/boards/TOKEN/jobs. Open that URL. If you get JSON, the token is right. "source" is "greenhouse". Lever. The site name is the last part of https://jobs.lever.co/SITE. The feed is https://api.lever.co/v0/postings/SITE?mode=json. "source" is "lever". Ashby. The board name is the last part of https://jobs.ashbyhq.com/NAME. The feed is https://api.ashbyhq.com/posting-api/job-board/NAME. "source" is "ashby". python3 watch.py --install python3 watch.py --status This checks every 5 minutes while you are logged in and the Mac is awake. The fi

Dev
Interesse
dev.to

Medical Claims Fraud Detection: Pharmacy and Prior-Auth PDFs

Originally published at htpbe.tech. The version on htpbe.tech stays in sync with the latest detection algorithm — refer to it for the canonical text. A pharmacy benefit manager opens a desk audit on a retail pharmacy: forty claims, ninety days, one high-cost therapeutic class. The pharmacy responds the way every pharmacy responds — a zip of PDFs. Scanned hardcopy prescriptions, a signature log, wholesaler invoices, a handful of prescriber clarification notes. The audit analyst reads the documents against the claim lines: drug, strength, quantity, days supply, date written, refills authorized. On one file, the quantity on the hardcopy reads 180. The claim was billed at 180. The prescriber wrote 30. Nothing in that packet contradicts itself, because the packet is the pharmacy’s own account of what happened. The analyst is comparing a document against a claim, and both sides of that comparison came from the same submitter. The one question nobody in the workflow asks is whether the PDF itself was written once and left alone, or opened afterwards and re-saved. That question has an answer more often than the workflow assumes, and it lives in the file, not in the content. This article is about documents that arrive after a service was rendered or before it is approved — the paperwork that flows through pharmacy audit, prior authorization and claims adjudication at a payer, PBM or health plan. Provider-side credentialing fraud — forged licenses, altered board certificates, tampered CE records — is a different intake pipeline with a different owner, and we cover it separately in healthcare document fraud and medical credentials. Two boundaries before anything else, because they are the ones that get blurred in this vertical: Structural PDF analysis makes no clinical judgment. It cannot tell you whether a therapy was appropriate, whether a diagnosis supports a code, or whether a prior-authorization request should be approved. It answers one narrow question about one file. It

Segurança
Interesse
dev.to

One shellcode, two names: what Volexity's UTA0560 finding says about attribution confidence

One shellcode, two names: what Volexity's UTA0560 finding says about attribution confidence Opening Volexity reported that UTA0560, a cluster it tracks, uses the same shellcode as activity attributed to APT31 and tracked elsewhere as TA412. The technical observation is narrow. The implication is not. Shellcode is the position-independent machine code that an exploit or loader runs after it has achieved execution. It is usually generated once, embedded in a loader, and reused while it works. Sharing it across campaigns is ordinary tradecraft rather than an accident, and it means the artefact is a durable identifier only for as long as the author keeps using it. The first is shared ownership. One team operating under two tracking names, with tooling reused across target sets. This is the explanation most commonly implied. A report that documents a shared artefact is reporting an observation. Attribution reporting generally stops short of asserting identity between two clusters unless the evidence extends beyond the artefact, and it usually does: infrastructure patterns, targeting, operational timing, and language artefacts. For an intelligence consumer, the practical difference between "these are the same group" and "these two groups share supply" is not philosophical. It determines the response. Not much, directly. A shellcode match is not a signature that produces durable detection, because the author can change it and detection dependent on exact bytes has a short half-life. The durable output is the loader behaviour that surrounds it: the parent process, the injection method, the persistence mechanism, the network destination pattern. Attribution is delivered to decision-makers as a product, and products are expected to be conclusive. A finding that two named clusters share a component introduces ambiguity into a conclusion that was previously stated with more confidence. The professional response is not to abandon attribution but to state its basis. Read attribut

Segurança
Interesse
dev.to

Kindred | Make a difference, close to home.

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass Many people want to volunteer and contribute to their communities, but finding suitable volunteering opportunities and getting proper recognition for their contributions can be difficult. That’s why I built Kindred, a volunteering platform that helps people discover volunteering activities near them and keep a verifiable record of their contributions. Users can browse available volunteering activities and participate in projects that interest them. Each volunteering activity creator is provided with a QR code or digital verification code, which participants can use to verify their contribution after completing the activity. Users can participate in multiple volunteering projects, and whenever they need to prove their volunteering experience, they can generate a detailed, verifiable document containing information about all the projects they have contributed to. This document can serve as proof of their volunteering experience for applications, portfolios, scholarships, employment opportunities, or other purposes. Kindred also allows anyone to create and organize their own volunteering activities, making it easier for communities and organizations to connect with people who want to make a difference. https://kindred-tau-olive.vercel.app/ / volunteer-hub I used GitHub Copilot to assist with version control through MCP and to generate code based on comments and instructions. As an open-weight model, I also used Gemma 4 with Ollama through OpenCode to assist with developing several pages of the application. Open innovation made it possible to combine open-source AI tools and models with modern development workflows without relying entirely on closed APIs. Using tools like Ollama, Gemma, and OpenCode allowed me to experiment freely, keep costs low, and have more control over how AI was used while building Kindred. Best use of Github Copilot Best use of Gemma

Dev
Interesse
dev.to

Public Web Data Is Useful When You Treat It Like a Pipeline

You can get a lot of value from public web data, but the useful part is rarely the first scrape. The real problem starts a week later: selectors stop matching, prices contain currency symbols from three regions, your job silently writes zero rows, and nobody notices until a dashboard looks wrong. Public web data is attractive because it is already out there: product pages, public directories, reviews, job listings, government portals, documentation sites, release notes, and market pages. Smaller teams can answer questions that used to require expensive data vendors. But public does not mean ready to use. If you want to track competitor pricing, the hard part is not fetching HTML once. The hard parts are: deciding exactly which pages answer the business question collecting data without hammering someone else's site detecting when extraction breaks normalizing messy fields into stable types storing observations over time instead of overwriting history keeping enough metadata to debug bad data later That is the difference between a scraper and a pipeline. A common mistake is to start with, can we scrape this site? A better first question is, what decision will this data support? For example, competitor pricing sounds specific, but it usually needs more definition: Which competitors matter? Which SKUs can be matched reliably? Do we care about list price, discounted price, shipping, or availability? How often does the data need to change before it affects a decision? What failure rate is acceptable? If the answer only needs weekly trends, a daily scrape with manual review may be enough. If the answer feeds an automated repricing system, you need stricter validation, alerting, and rollback behavior. This matters because collection cost scales with freshness, coverage, and reliability. Scraping 50 pages once is simple. Scraping 50,000 pages every hour while proving the data is still correct is a different system. Here is a small Python example that shows the pattern. It fe

Dev
Interesse
dev.to

Valkey 9.2's INCREX command removes the crash window between INCR and EXPIRE

I run a lot of rate limiters and quota counters the same way: INCR the key, and if it comes back 1, set an expiry on it so the window resets later. It works, but it is two round trips to the database for something that is conceptually one operation, and there has always been a gap between those two calls where a process could die and leave a counter that never expires. Valkey 9.2.0-rc1 adds a command called INCREX that does both in a single call. I pulled the image, ran it against the pattern it replaces, and tried to find out how much of what I assumed about it was actually true. Most of it was not. The headline speed story turns out to be mostly about round trips rather than the command being intrinsically faster, and the behaviour I ended up caring about most was not speed at all. I ran valkey/valkey:9.2.0-rc1, and for comparison the previous stable valkey/valkey:9.1.2, as plain Docker containers on the same host, talking to them from a Python script using redis-py 8.1.0 over TCP on localhost. This is a release candidate, not a final build: 9.2.0-rc1 is the newest tag Docker Hub has for the valkey/valkey image as of this test, and INCREX is not in 9.1.2 at all: $ docker exec vk91 valkey-cli INCREX bar 10 EX 30 (error) ERR unknown command 'INCREX', with args beginning with: 'bar' '10' 'EX' '30' On 9.2.0-rc1 it exists, and COMMAND DOCS confirms when it landed, although the server's own INFO server reports its version as the plain 9.2.0, with no -rc1 suffix, so you cannot tell a candidate build from a final one by querying it: $ docker exec vk92 valkey-cli COMMAND DOCS INCREX summary Increments the numeric value of a key with an option to expire. Uses 0 as initial value if the key doesn't exist. since 9.2.0 The grammar is INCREX key [NX|XX] [EX seconds|PX ms|EXAT ts|PXAT ts] [BYINT n|BYFLOAT n]. Leave out BYINT/BYFLOAT and it increments by 1. The pattern I actually write in application code is two separate, blocking round trips: val = r.incr(key) if val == 1: r.expi

Dev
Interesse
dev.to

Cross-Post Your Blog to DEV and Bluesky Automatically

A new blog post goes live on Tuesday. By Thursday it has been shared on one platform and forgotten on the other two. Writing the article is the hard part. Copying the title, pasting the link and reformatting it for each site is the boring part, and it's the first thing to slip when you're busy. This guide sets up a simple routine: publish once on your own blog, and let your RSS feed carry the post to DEV and Bluesky. DEV needs no code at all. Bluesky needs one short Python script and a GitHub Actions workflow, and both are free. Your blog is the home of every article. Everything else follows from it. DEV: its built-in RSS import creates a draft of each new post. You review it and publish. Bluesky: a script checks your feed every few hours and shares each new article once, with a link card. Why RSS? Almost every blog platform produces a feed, so this works whether you use WordPress, Ghost, Hugo or something else. It's also a plain, stable format, so there's very little to break. A link on its own is only part of the story, though. Near the end of Part 2, I'll cover what to do when you want more than a link, like an X thread or a LinkedIn draft for each article. Your RSS or Atom feed is a web address that lists your latest posts as data. Common places to find it are /rss.xml, /feed and /feed.xml on your site. If none of those work, check your blog platform's settings or documentation. Open the address in your browser. You should see a page of structured text with your recent post titles and links in it. DEV can watch your feed and create a draft whenever you publish something new. In DEV, open Settings, then Extensions Find the section called "Publishing to DEV Community from RSS" Paste your feed address Tick "Mark the RSS source as canonical URL by default" Click to submit the feed settings, then use "Fetch feed now" to test it New posts then show up as drafts in your DEV dashboard. Nothing is published until you say so. The canonical URL option is the one that matte

Dev
Interesse
dev.to

Cuando una documentación describe onboarding, pero la interfaz pública todavía no te deja probarlo

Hoy quería hacer una revisión de registro de Qavlixa. riesgo; límites; producto; jurisdicción. Desde una perspectiva de diseño, eso tiene sentido. Pero también muestra algo importante: documentation architecture != interaction experience Puedo analizar cómo está pensado un sistema. No puedo evaluar cómo se siente hasta tener acceso a la interfaz real. Así que mi resultado de hoy no es “registro fácil” ni “registro difícil”. Es: no pude probar el flujo público de alta. Y esa honestidad también forma parte de una revisión UX.

Geral
Interesse
dev.to

Sentinel: The Command Plane

Everything in this series so far has been about reading from devices. This is the part where Sentinel starts writing to them, and a mistake here can leave a heater running or unlock a door twice. A writable point has two values. reported is what the device says and desired is what the system wants. Nothing writes to a device directly: a rule or a person sets a claim, arbitration resolves the claims on a point into desired, and a reconciler drives reported toward it. A device that reboots into the wrong state is corrected on its next report, and nobody has to send the command again. Every claim carries an owner and one of six bands, and the band decides who wins. A person's manual claim has to expire, because otherwise one touch of a switch disables the automation on that point until someone notices in November that the heating never came back on. Frost protection can be suspended for half an hour by someone who names it and gives a reason. An interlock can't be suspended at all. A write on the bus is fire-and-forget, so each command is followed through a state machine to an outcome. For a relay whose state can't be read, the outcome is unverified and the point is marked assumed, which a rule can choose not to trust. A core that restarts in the middle of a write marks the command timeout and works out what to do next from desired and reported. It never sends the same write a second time. And no command is created for a device that can't be reached: the claim stands and waits, so an interlock asserted during cold start is issued the moment its driver is ready, with no deadline it could have missed in the meantime. Rules never send commands. They set claims and release them, and that is what lets the rules engine, the next part, be tested without a device in the loop. What this document owns: desired and reported as separate values on a writable point, the durable claim set and the projection resolved from it, the convergence states and the bounded retry, the command s

Infra
Interesse
dev.to

Fix: 'permission denied while trying to connect to the Docker daemon socket' on Linux

The Error You run docker ps or docker compose up on Linux and get hit with: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock The Docker daemon runs as root and binds to a Unix socket owned by the docker group. If your current user account has not been added to that group, the operating system blocks access. Add your current user to the docker group and refresh your group membership immediately without logging out: sudo usermod -aG docker $USER && newgrp docker Verify it works without sudo: docker ps If you still get socket errors, ensure the Docker engine daemon is actively running: sudo systemctl enable --now docker Check status: sudo systemctl status docker If you are running Docker inside WSL2 without Docker Desktop: sudo service docker start sudo usermod -aG docker $USER && newgrp docker Never run sudo chmod 777 /var/run/docker.sock. While it works temporarily, it gives every user and malicious process on your machine unrestricted root privileges to your host system.

LinuxInfraDev
Interesse
dev.to

Two URLs answered our Stripe webhook, and which one ran was a setting in somebody else's dashboard

Run these two and compare: curl -s -X POST https://pub-trivia.app/webhook/stripe -d '{}' curl -s -X POST https://pub-trivia.app/api/webhook/stripe -d '{}' {"error":"Missing stripe-signature header"} {"error":"Missing stripe-signature header"} Identical, 400 both times, which is the point: there are two live URLs and one implementation behind them. For a while there were two implementations, and that is the story worth telling. Both paths existed because at some point both were written. /webhook/stripe first, /api/webhook/stripe later when the API routes got tidied into one place, and nobody deleted the first one. Two route handlers, both subscribed to the same subscription lifecycle events, and both perfectly functional. The question "which one runs in production" had an answer, and the answer was not in the repository. It was a text field in the Stripe dashboard. Whichever URL happened to be configured there was the one that handled real payments, and you could not determine that by reading the code, running the tests, or inspecting the deploy. It got better. The local development script forwarded to one of them: "stripe:listen": "stripe listen --forward-to localhost:3000/api/webhook/stripe" It used to name the other path. So every subscription change anybody tested locally exercised a handler that may not have been the one serving production, and both appeared to work, because both did work. They just did not do the same thing. Two implementations of one contract do not stay equal. They do not even drift noisily: each change is made to whichever file the person was looking at, and both keep returning 200. Ours had diverged in the way you would expect. One resolved the customer's plan by reading product metadata off the expanded subscription; the other made an extra API call to fetch the price. One wrote more of our own tables than the other. And one mapped Stripe's past_due status onto our internal active, which is a small line with an opinion in it: a subscriptio

Dev
Interesse
Phoronix

AMD Engineer Talks Up New IBS Memory Profiler Feature Found On Zen 6

One of the AMD Zen 6 CPU features that hasn't been talked about too widely beyond appearing in a public AMD tech doc is the IBS Memory Profiler. This week in Prague at LPC 2026 an AMD engineer talked up Zen 6's IBS Memory Profiler and its benefits for hot page detection and promotion on Linux systems...

Infra
Interesse
dev.to

Building a Smarter useIdle Hook in React: Solving the Short-Timeout Edge Case

Tracking user inactivity in web applications seems straightforward at first. You listen to a few mouse and keyboard events, set a timeout, and toggle state when the timer expires. However, once you start optimizing for performance, things get tricky. To prevent your app from grinding to a halt during heavy mouse movement, you must throttle the event handlers. But what happens if a developer configures a very short idle timeout—say, for a rapid UI transition or testing? If your throttle interval is static, it can easily clash with the timeout length, causing missed events or inconsistent state transitions. In the latest release of react-hook-lab, we solved this exact problem by introducing dynamic adaptive throttling to our useIdle hook. Previously, useIdle utilized a fixed throttle duration. If the user moved their mouse rapidly, events were ignored for a set period to save CPU cycles. However, if a developer set a short timeout duration close to or lower than the throttle limit, the hook could miss the final active event and incorrectly report the user as idle. Furthermore, initializing the tracking state at 0 instead of backdating it meant the hook could experience a sluggish response immediately after mounting. To resolve this, we modified useIdle to dynamically compute an effectiveThrottle. It now ensures the throttle interval is never larger than half of the requested timeout duration: const effectiveThrottle = Math.min(THROTTLE_MS, Math.floor(timeout / 2)); Additionally, we corrected the initial state of the active tracking reference. By setting it to -THROTTLE_MS on mount, the very first user interaction triggers an immediate, unthrottled update. Here are two ways you can leverage the newly optimized useIdle hook in your React applications. For security-sensitive interfaces, you want to warn users before their session expires. With a standard timeout, useIdle works efficiently in the background without causing unnecessary re-renders during active scrolling or

Dev
Interesse
dev.to

Our sitemap has no priority and no changeFrequency, and 69 of its 72 dates come from a TypeScript file

Run this against the live site before reading any further: curl -s https://pub-trivia.app/sitemap.xml | grep -o " [^ 2026-09-14T00:00:00.000Z 3 2026-09-14T12:01:12.932Z Seventy two URLs, two distinct values, and the interesting part is why there are two rather than one. There are also no or elements anywhere in the document, which took a deletion rather than a decision. The sitemap is pub-trivia.app/sitemap.xml if you would rather read it than curl it. The generator used to emit priority and changeFrequency for every entry, which in practice meant somebody sitting down and deciding that the pricing page was a 0.9 and the FAQ was a 0.7. Nobody could say what made one of those right. The homepage got 1.0 because it was the homepage. The guides got weekly because weekly sounded diligent. Google documents both fields as ignored. Not deprecated, not weighted lightly: ignored. So the honest reading of that block of the file was eight numbers nobody could justify, carried in a document a crawler reads on every pass, asserting things we had no way of defending. They came out and nothing happened, which is the correct amount of consequence. What is left is the one field a crawler does use, and the one it is most often lied to about. lastModified has had three implementations. The first called new Date() separately inside each entry, so a 72 URL sitemap carried 72 very slightly different timestamps from the same build, which is a nice illustration of how little thought had gone into it. The second hoisted that to one new Date() for the whole document. Tidier, and still wrong in exactly the same way: it says every page on the site was revised at the moment of the last deploy. Deploy a copy change to one marketing page and the crawler is told that all 72 changed. Do that for a few weeks and you have trained it to ignore the only field in the file it was willing to believe. The third, which is what is live now, reads the date out of the content registry: one TypeScript module th

Dev
Interesse