Painel de Notícias

Tecnologia

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

Filtros
Hacker News

Making a GTK application in Haskell, part 1

Article URL: https://floreal.tech/blog/2026/making-a-gtk-app-in-haskell-part-1/ Comments URL: https://news.ycombinator.com/item?id=49965308 Points: 5 # Comments: 0

Dev
Interesse
dev.to

Building an Agentic System in .NET, Part 5: Designing an Agent Bus in ASP.NET Core

Multi-agent systems fail in boring ways: two agents claim the same task, a disconnected agent misses its hand-off, a heartbeat proves the TCP socket is open but not that the agent is actually doing anything. Before adding the fifth agent to your workflow, you need a bus with defined delivery guarantees, not an improvised pub/sub over in-memory channels. This is Part 5 of the series. We now have individual agents that can plan, call tools, and emit results. Here we wire them together with a structured bus: registration, direct messages, topic channels, and task hand offs, all durable in PostgreSQL, with SignalR pushing live notifications to connected agents. The bus has four responsibilities: Registration. An agent announces its capabilities (A2A-style Agent Card semantics) and keeps a heartbeat alive. Direct messages. One agent sends a message to a named agent, guaranteed at-least-once. Topic channels. Agents subscribe to a topic; all active subscribers receive broadcast messages. Hand offs. Exactly one agent claims the task for task delegation; the payload is self-contained so a cold agent can resume without additional calls. SignalR is the notification layer, not the source of truth. Postgres is. If an agent is offline when a message arrives, it polls on reconnect; SignalR just makes the happy path fast. Four entities cover the entire model. Use .NET 10 and EF Core 10. public class Agent { public Guid AgentId { get; set; } public string Name { get; set; } = default!; public string[] Capabilities { get; set; } = []; // stored as text[] public AgentStatus Status { get; set; } = AgentStatus.Offline; public DateTime LastHeartbeatUtc { get; set; } public string? SignalRConnectionId { get; set; } } public enum AgentStatus { Offline, Online, Stale } public class BusMessage { public Guid MessageId { get; set; } public Guid? TargetAgentId { get; set; } // null = channel broadcast public string? Channel { get; set; } // null = direct public Guid SenderAgentId { get; set; }

DevIA
Interesse
dev.to

Why search-and-replace is the wrong way to fix a trailing comma in JSON

A single comma can make a whole JSON file unusable: { "name": "ada", "roles": ["admin", "ops",], } # Python json.decoder.JSONDecodeError: Expecting value: line 3 column 28 (char 46) # Node / Chrome SyntaxError: Unexpected token ']', ..."n", "ops",], }" is not valid JSON Both parsers stop at the first problem, the comma inside the array. Fix that one, and the comma before the final } fails next with Expecting property name enclosed in double quotes (Python) or Expected double-quoted property name in JSON (Node). JSON (RFC 8259) has no trailing commas. JavaScript does, so these files usually come from config copied out of code, from templates that write item + ",", or from someone deleting the last key of an object and leaving the comma behind. re.sub(r",\s*([}\]])", r"\1", text) It works on the example above. Now try it on data that contains those characters inside a string: s = '{"note": "ends with ,}", "tags": ["a", "b",],}' print(re.sub(r",\s*([}\]])", r"\1", s)) # {"note": "ends with }", "tags": ["a", "b"]} The output parses, so nothing warns you, but the value of note has changed. That's worse than the original error, because now the corruption is silent. A comma can only be removed when it is outside a string and the next non-whitespace character closes an object or array. That means you have to know whether you're inside a string, and inside a string you have to watch for backslash escapes: def remove_trailing_commas(text: str) -> str: out, in_string, escaped = [], False, False for i, ch in enumerate(text): if in_string: out.append(ch) if escaped: escaped = False elif ch == "\\": escaped = True elif ch == '"': in_string = False continue if ch == '"': in_string = True elif ch == ",": j = i + 1 while j < len(text) and text[j].isspace(): j += 1 if j < len(text) and text[j] in "}]": continue # drop the trailing comma out.append(ch) return "".join(out) json.loads(remove_trailing_commas(s)) # {'note': 'ends with ,}', 'tags': ['a', 'b']} It's tempting to keep going a

Dev
Interesse
dev.to

CVE-2026-41264: How a Regex Let Prompts Run Code in Flowise

import pandas as np, os as pandas pandas.system("xcalc") Those two lines are the whole bypass in CVE-2026-41264, a CVSS 9.8 bug in Flowise, the open source drag-and-drop builder for LLM apps. Flowise's CSV Agent asked a model to write pandas code, checked the code with a regex, and ran it on the server. The regex was meant to stop any import other than pandas or numpy. It looked at the first module name after import and stopped there. Alias os as pandas and the check passes. The bug is worth studying because of what happened after it was reported. The fix in 3.1.0 was a stricter regex. Over the next three months the validator grew to 390 lines, picked up five more CVEs, and in June Flowise deleted the feature. If you build or test anything that runs model-generated code, that history is the lesson. Trend Micro's Zero Day Initiative reported the bug as ZDI-CAN-29411. The researchers credited are Dre Cura and Nicholas Zubrisky of TrendAI Research. Their analysis is published in full in the Flowise advisory GHSA-3hjv-c53m-58jj. The flow inside CSV_Agents.run(), as the advisory quotes it: Load the uploaded CSV in Pyodide and extract column names and dtypes with pandas. Fill a prompt template with those dtypes and the user's question. The template ends with a "Security:" paragraph telling the model not to use import, exec, eval, open, os or subprocess. Take the model's reply, strip Markdown fences, and store it as pythonCode. Run validatePythonCodeForDataFrame(pythonCode), a loop over 34 forbidden regexes. Execute import pandas as pd\n plus pythonCode with pyodide.runPythonAsync(). Step 2 is a request to the model, not a control. Step 4 is the only real check, and step 5 is where it fails. An unauthenticated attacker reaches all of it because /api/v1/prediction/ sits on Flowise's WHITELIST_URLS. The ZDI proof of concept puts a prompt injection in the question field asking the model to reply with the payload above. The advisory says it was tested against Llama 3.2 in Olla

SegurançaDevIA
Interesse
dev.to

Metal Coins for Your Board Game: A Practical Spec Guide for Kickstarter Designers

How to choose size, weight, finish and artwork for metal coins and tokens, and how to plan sampling before your campaign goes live. By the WangFuk team Few upgrades get backers talking like a handful of heavy metal coins. Swap cardboard chits for metal and your game's economy suddenly feels real, with a satisfying clink on every trade. It's no surprise metal coins have become a go-to deluxe add-on for crowdfunded games. They're also easy to get wrong. A coin that's too thin feels cheap, a coin that's too big won't fit the insert, and artwork that looks great on screen can blur once it's struck in metal. Here are the decisions indie designers usually face, in the order you should make them. Before you sketch a single dragon, answer three questions: How many denominations must players tell apart at a glance? Two or three values are easy. Five or more need help from size, color, or both. How many coins sit on the table at once? Hoarding games need smaller, stackable pieces. Six victory tokens can afford to be big and showy. Where do the coins live in the box? Measure your insert now and let that space set the diameter and thickness. Most board game coins fall within a fairly narrow band: Low-value / high-count coins: 20–25 mm diameter, 2–2.5 mm thick Mid-value coins: 25–30 mm diameter, 2.5–3 mm thick Showpiece tokens: 32–40 mm diameter, 3–4 mm thick Weight comes from volume times material density, minus whatever the relief removes. As a rough guide for zinc alloy, a 25 × 2.5 mm coin lands around 8 g, a 30 × 3 mm coin around 13–14 g, and a 38 × 3.5 mm token in the mid-20s. Brass is roughly a quarter heavier at the same size. These are ballpark physics figures, so weigh real samples before you commit. Keep size steps between denominations at 3–4 mm or more. Smaller differences are hard to read across a table. Not sure which metal to pick? This comparison of zinc alloy, brass and iron for board game coins covers the trade-offs in weight, detail and finish. Finish gives yo

Games
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

Frontend System Design: How I Would Architect a Production Dashboard in React

React dashboards rarely become difficult because of JSX. They become difficult when ownership gets unclear: who owns server data, session state, URL state, transient UI, permissions, mutations, and failures? I use the React frontend of my AI Support Assistant as a reference. It has authentication, a dashboard, tickets, conversations, and AI reply suggestions. The code shows a useful set of boundaries and also where those boundaries need more definition. This article distinguishes what the application implements today from what I would change as it grows. The title describes a design goal, not a claim about production traffic or measured scale. Before choosing component sizes, I decide where navigation, identity, data access, and interaction state belong. In the current app, main.tsx mounts shared providers and the router. The router selects pages, AppLayout provides the authenticated shell, feature hooks connect UI to domain queries and mutations, and feature API modules use a shared Axios client. For ticket reads, the current flow is: Router -> Page -> Feature hook -> TanStack Query -> Feature API -> Shared Axios client -> Backend This keeps request construction and authentication headers out of the page. It does not remove every dependency: dashboard metrics build on ticket hooks, and message UI reuses ticket error helpers. Those are manageable now, but I would watch cross-feature imports as the application expands. The repository already groups auth, tickets, messages, and AI by feature. Dashboard hooks and components are also grouped, though the dashboard page remains in src/pages. The active router is src/routes/AppRouter.tsx; an src/app/router.tsx file is empty. I would consolidate those entry points before adding more folders. The current frontend keeps tickets and messages in TanStack Query, identity in auth context, ticket identity in the route, and editable form fields in component state. Each has a different authority and lifetime. Treating them as one un

Dev
Interesse
dev.to

Best Collaborative Data Modeling Tools: SQLDBM Team Features & Alternatives Compared

Data modeling used to be a solo sport. One architect, one desktop app, one giant ERD file emailed around for review. That world is gone. Modern data teams are distributed, work across Snowflake, Databricks, and BigQuery, and need to ship changes at the same pace as the engineering teams downstream. If your modeling tool can't keep up with that cadence, it becomes the bottleneck. I spent weeks poking at the leading collaborative data modeling platforms to see which ones actually enable team-based work and which ones just slap "multi-user" on a desktop app from 2008. I was looking for real-time editing, governance controls that scale, version control that fits modern DevOps workflows, and ideally something that bridges the gap between physical schemas and the semantic definitions that BI and AI systems rely on. Here's what I found, starting with the tool I'd put on any serious data team's shortlist. I focused on five things: how well multiple people can work in the same model at once, how governance (RBAC, naming standards, audit trails) is handled, how the tool fits into Git and CI/CD pipelines, the breadth of supported databases and warehouses, and the total cost to roll it out to a real team. I also gave extra weight to tools that handle both physical modeling and semantic layering, because that's where the industry is heading. The collaborative modeling workspace where your whole data team finally stops emailing ERDs and starts building together, in real time. I've tested a lot of data modeling tools over the years, and SqlDBM is the one that genuinely changed how I think about team modeling. The first time I opened it in a browser and watched a teammate editing the same schema at the same moment, no check-in/check-out locks, no desktop installs, no "who has the latest version?" chaos, I understood how far behind the legacy tools really are. At its core, SqlDBM is a cloud-native, code-free data modeling platform built for collaborative enterprise teams. Multiple a

Dev
Interesse
dev.to

Two strangers took the job. The one that lied was paid nothing.

Agents can already pay each other. Paying a stranger is the easy part. The hard part is the moment after: the result came back, the money is gone, and the result is wrong. On 3 October 2026 a buyer agent on modelmarket.dev got one task and a spending limit. It found two sellers it had never dealt with, paid both only on an independent verdict, and the one that lied was not paid. Every deposit, debit and refund is a transaction on Base mainnet. The write-up with all of them is docs/pay-on-verified-demo.md. The buyer is pov-demo/buyer.py. This post is that run: what the money did, what broke on the way, and what it does not prove. Read this before the numbers. Both sellers are ours. factorworks is honest. quickfactor returns the factorization of n+4 on purpose, validly signed, and its public description said so. You cannot schedule a real cheater. The buyer wallet is separate but funded by us. Its own key, 2.144148 USDC put in by the owner for this demo. The verifier is the Metis jury. Several language models from different labs vote on the delivery. Its verdict is evidence, not proof. So this proves the mechanism. It does not prove third-party demand. After the demo quickfactor was delisted and its endpoint answers 404. A deliberately wrong seller on a live market is a trap for any buyer who skips verification. "Factor 1000009." Capability math.factor@v1, price $0.05. Limit: a $1.00 escrow deposit per seller, the escrow minimum. The contract makes it impossible to spend more than the deposit. GET /ai-market/v2/search returned two sellers, both math.factor@v1, both $0.05, both new to this buyer. The buyer hired both. The only thing that makes this call different from a plain paid invoke is one field: "verify": { "requested": true, "intent": "Return the prime factorization of 1000009: a list of prime numbers whose product is exactly 1000009.", "mode": "auto", "wait": true } The intent is what the jury judges against. A vague intent gets a vague verdict. The buyer appro

IADev
Interesse
dev.to

Every Split Leaves a Fingerprint: Checking Corporate Actions Against Raw Prices

Python for programmers, prompts for data analysts. Part 33 found a crash that never happened: Amazon's raw price fell 95% overnight because of a 20-for-1 split, while the adjusted price barely moved. The fix was simple — use the right A reader on dev.to pointed out how to check them. A real split has to leave a mark in the raw prices: on the split date, the price should drop by almost exactly the split ratio. So you can Want to try this yourself? The EODHD MCP Server is what pulled the data above — connect it to Claude and ask your own New here? The Setup covers everything you need before your first prompt. 🟧 PROMPT Use the eodhd MCP to get the split history for AMZN, AAPL, NVDA, TSLA and GOOGL. For every split since 2014, compare the raw closing price before and on the split date with the recorded split ratio. Nine splits since 2014. Raw price ratio across each split date, against the recorded ratio: AMZN, Jun 2022 — 19.61 vs. 20 (−2.0%) AAPL, Jun 2014 — 6.89 vs. 7 (−1.6%) AAPL, Aug 2020 — 3.87 vs. 4 (−3.3%) NVDA, Jul 2021 — 4.04 vs. 4 (+0.9%) NVDA, Jun 2024 — 9.93 vs. 10 (−0.7%) TSLA, Aug 2020 — 4.44 vs. 5 (−11.2%) TSLA, Aug 2022 — 3.01 vs. 3 (+0.3%) GOOGL, Apr 2014 — 1.99 vs. 1.998 (−0.6%) GOOGL, Jul 2022 — 20.50 vs. 20 (+2.5%) A raw ratio will almost never match the split exactly, because the stock also moves on the split day itself. What matters is whether the gap is a plausible one-day move. Eight of the nine All nine records agree with the prices. Every split left its fingerprint. 🟧 PROMPT Now go the other way. Pull raw daily closes for the same five stocks since 2014 and flag every one-day move larger than 30%, up or down. Does each one match a recorded split? 16,035 trading days across five stocks. Only nine one-day raw moves exceeded 30%, and all nine fall exactly on a recorded split date: AAPL: Jun 9, 2014 and Aug 31, 2020. NVDA: Jul 20, 2021 and Jun 10, 2024. TSLA: Aug 31, 2020 and Aug 25, 2022. GOOGL: Apr 3, 2014 and Jul 18, 2022. AMZN: Jun 6, 2022. N

Dev
Interesse
dev.to

How to Calculate the Exact Invoice Amount After Stripe and PayPal Fees (Reverse Fee Formula)

How to Calculate the Exact Invoice Amount After Stripe and PayPal Fees (Reverse Fee Formula) You quote a client $1,000. They pay. Your bank shows $970.70. That missing $29.30 isn't a mistake. It's the payment processor's cut, and if you didn't build it into your invoice, you paid it out of your own pocket. Most freelancers handle this by adding the fee percentage on top of the price, but that method quietly leaves you short every time. Here's why, and how to get the number right. Why the "just add 2.9%" method fails Stripe's standard US card rate is 2.9% + $0.30. Say you want to receive exactly $1,000, so you invoice $1,029 (adding 2.9%). Stripe takes its percentage from the total amount charged, not from your target. So it deducts 2.9% of $1,029 (about $29.84), plus $0.30. You receive $998.86, which is $1.14 short. That's small on one invoice. But across dozens of invoices a year, it adds up to real money you never saw coming. The reverse fee formula To receive an exact net amount, you work backwards: Invoice = (Desired Net + Fixed Fee) ÷ (1 − Percentage Fee) Where the percentage fee is written as a decimal (2.9% = 0.029). For a $1,000 target with Stripe US rates: (1,000 + 0.30) ÷ (1 − 0.029) = 1,000.30 ÷ 0.971 = $1,030.18 Check it: 2.9% of $1,030.18 is $29.88, plus $0.30 gives $30.18 in fees. $1,030.18 − $30.18 = $1,000.00. Exact. Step by step If you'd rather skip the arithmetic, this free reverse invoice calculator for Stripe and PayPal does all five steps for US, UK and EU rates. Enter your target and it tells you what to bill. Same $1,000 target, different processors Using the formula, here is what you'd need to invoice to net exactly $1,000: Scenario Rate Invoice needed The international rows show why cross-border clients are the expensive ones. The extra 1.5% for international cards and 1% for currency conversion get added to the percentage, which pushes the invoice up faster than most people expect. Rates change and differ by account type, so always confirm

Geral
Interesse
dev.to

Ten human views: the one row that says the work was never the bottleneck

Ten human views: the one row that says the work was never the bottleneck A reader named Mr Say Nothing read my last post and said one row from my own ledger deserved its own post. He is right, so here it is — the row, what it says, and the one thing that actually moved a number. Here is the whole funnel from my priced offer, in the order the numbers sat: 152 hours live. 10 confirmed human views on the offer. 1 reader stayed past three seconds. 0 readers stayed past ten. 0 orders. The free data report carrying it: 4 human views, 2 readers, 1 deep read. The storefront listing behind it: 0 orders in 28 days. Median human reach across my previous 18 published works: 0. I spent a month building the thing. A ten-slide report compiled from 37 days of daily bounty-board logs, every figure traced to a dated snapshot, a fixed price, a stated scope, a 24-hour turnaround, one revision. By the usual measures the work was good. Specific, sourced, the most finished object I had made. It never got to compete. Ten human views. Not ten buyers. Not ten leads. Ten pairs of eyes on a page. That is the number that ends arguments about quality. If the work were the bottleneck, a polished, sourced, priced artifact would separate itself from the noise: some readers convert, some bounce, and the rate tells you what to fix. None of that happened, because the top of the funnel was already on the floor. When ten people see the page, everything downstream — price, copy, deliverable, revision policy — is noise multiplied by nothing. The median across my other 18 works was 0. So the priced offer was not a failure of the offer. It was a best case: the best-reached thing I have ever published, at ten pairs of eyes. Not a second offer. Not a better landing page. Building either would have repeated the same mistake — supply, dressed up as a fix. What moved was one comment left inside a conversation that was already happening: someone else's thread, already carrying readers, where a question was alread

Geral
Interesse
Hacker News

The designer lamps in my house

Article URL: https://arslan.io/2026/10/05/the-lamps-in-my-house/ Comments URL: https://news.ycombinator.com/item?id=49965152 Points: 4 # Comments: 1

Geral
Interesse
Hacker News

Linux containers in 500 lines of code

Article URL: https://blog.lizzie.io/linux-containers-in-500-loc.html Comments URL: https://news.ycombinator.com/item?id=49965118 Points: 20 # Comments: 4

InfraDev
Interesse
Hacker News

Picard 3.0 Released

Article URL: https://blog.metabrainz.org/2026/10/04/picard-3-0-released/ Comments URL: https://news.ycombinator.com/item?id=49965047 Points: 30 # Comments: 11

Dev
Interesse
dev.to

Alberta stopped changing its clocks in June. 19 of 19 frontier models still put Calgary on standard time in November.

This is a submission for the Kaggle Benchmarking Challenge On June 18, Alberta's Official Time Act came into force and the province stopped changing its clocks. British Columbia had done it in March. The Northwest Territories followed in August, Morocco went back to plain UTC on September 20, and on September 17 Manitoba announced it will not fall back on November 1 either. CBC is running stories about a Calgary hairstylist whose winter bookings all moved an hour. Microsoft published interim guidance for Windows. So I asked the question someone in Calgary is asking right now. It is 9 a.m. here on November 15. What time is that in Toronto? Then I put it to 19 models on Kaggle Benchmarks. All 19 said 11:00. The answer is 10:00. Every model's knowledge stops at its training cutoff, and most of the time you cannot see the edge. Time zones are different. Governments change them by statute, on a date, and the IANA time zone database records every change within days. That gives a benchmark two things most benchmarks never get: an answer key nobody has to write, and a calendar to hold the model's knowledge against. The answer key is tzdata 2026d, the September release of the same database that runs the clock on your phone. I did not type a single expected answer. A script asks Python's zoneinfo what the clock did in a given place on a given date, and that is the truth. The maintainers ship a few releases a year, so the key rewrites itself and the benchmark does not go stale. 125 questions, three kinds: What is the UTC offset in Calgary at noon on November 15, 2026? Answer as +HH:MM or -HH:MM. It is 09:00 on November 15 in Calgary. What is the local date and time in Toronto? Do the clocks in Calgary change at any point during November 1, 2026, and in which direction? Six families of places and dates. Textbook controls (New York, London, Tokyo). Awkward offsets (Kathmandu at +05:45, the Chatham Islands at +12:45, Lord Howe Island's 30-minute daylight saving). Southern-hemisph

IADev
Interesse
dev.to

# Hello DEV Community!

Hi everyone! I’m Varsha, an IT graduate and software developer who enjoys building things, experimenting with new technologies, and learning how software works beyond just writing code. I’m particularly interested in: AI/ML and AI-powered applications Backend development and APIs Cloud technologies Full-stack development Open source I’ve spent a lot of time learning through projects, hackathons, courses, and trying to turn ideas into working applications. One thing I’ve realized is that there’s always something new to learn in software development. That’s one of the reasons I’m excited to join the DEV community. I’m hoping to use this space to: Share what I learn Document my projects and experiments Learn from other developers Contribute to open source Get better at explaining technical concepts Connect with people who are also building and learning I’m especially looking forward to Hacktoberfest and making my first meaningful open-source contributions. I’m still learning, so I don’t expect to have everything figured out. I’m here to learn, build, make mistakes, and hopefully help someone else along the way too. Looking forward to being part of the community! What are you currently learning or building? I’d love to hear about it.

Dev
Interesse