Painel de Notícias

Tecnologia

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

Filtros
dev.to

Finding the Room Where People Complain Doesn't Mean the Room Will Listen to You

This week's research thread produced a method that actually worked: stop searching for the vocabulary people would use to describe a problem, and instead find the venue where they're already venting about it. Abstract search terms miss real complaints because people describe symptoms, not categories — "it sent before I approved" rather than "lacks a confirmation step." Find the room instead of guessing the words, and the complaints are just sitting there, readable. Today someone who'd used this method reported the part that comes after finding the room, and it's worth writing down because it's a distinct failure, not a continuation of the same one. Two different permissions, one address A venue being good for reading and a venue being good for posting are not the same property, even though they're easy to conflate because they often live at the same URL. Reading requires nothing from the room. You show up, you look, the complaints that are already there don't care who's looking at them. Posting requires the room to extend you something — attention, credibility, the benefit of the doubt that you're not promoting something. Those are governed by completely different social mechanics even on the exact same forum: a community's tolerance for a stranger venting about a shared pain point is unrelated to its tolerance for a stranger showing up and posting, even if the post is genuinely on-topic and not disguised as anything. The reported result: same forum, real complaints found by reading, zero engagement on a post made there directly. Views without engagement is itself informative — it means the post was delivered and ignored, not that it never reached anyone. That's a specific kind of failure, different from posting somewhere nobody saw it at all. Why this is easy to miss "Find where your users hang out" is close to universal startup advice, and it implicitly treats a venue as a single resource you unlock once you find it. In practice a venue has at least two separate a

Geral
Interesse
dev.to

Your @Stable Data Class Isn't the Recomposition Leak — the Lambda Next to It Is

The setup You've got a @Stable data class, you're passing it into a composable, and Layout Inspector's recomposition counter is still climbing every time the parent redraws. The usual advice — "mark your classes @Stable or @Immutable" — doesn't fix it, because the leak isn't in the data class. It's in the lambda next to it. @Stable data class CartSummary(val itemCount: Int, val totalCents: Long) @Composable fun CartHeader(summary: CartSummary, onCheckout: () -> Unit) { Row { Text("${summary.itemCount} items — ${summary.totalCents.toFormattedPrice()}") Button(onClick = onCheckout) { Text("Checkout") } } } CartHeader looks stable on paper: a @Stable data class and a function-typed parameter, which Compose treats as stable if the lambda itself is stable across recompositions. The bug lives in how the caller constructs that lambda. @Composable fun CartScreen(viewModel: CartViewModel) { val summary by viewModel.summary.collectAsStateWithLifecycle() var promoCode by remember { mutableStateOf("") } CartHeader( summary = summary, onCheckout = { viewModel.checkout(promoCode) } // new instance every recomposition ) } Every time CartScreen recomposes — and promoCode changing on every keystroke guarantees that — the trailing lambda passed to onCheckout is a new object. Compose's stability check for CartHeader compares the lambda instance, not its captured values' equality, so a structurally identical-looking lambda still reads as "changed," and CartHeader recomposes along with it, even though summary itself didn't change and the composable only cares about onCheckout being callable, not which promoCode snapshot it happens to close over. This is the part Layout Inspector won't tell you directly: it'll show CartHeader recomposing on every keystroke in an unrelated text field, and the instinct is to go check CartSummary's stability, which is a dead end — it was never the problem. The lambda doesn't need to capture promoCode by value at the point it's created — it needs to read pro

DevMobile
Interesse
dev.to

title: How to split a large JSON file in the browser (without uploading it anywhere) published: false

ometimes you get a huge JSON array, a few thousand records in one file, and you need it in smaller pieces. Maybe an API only accepts 500 items at a time, or your editor chokes on the file. The easy way is to paste it into an online tool. But if the data is private, uploading it to a random server isn't a great idea. Here is how to do it entirely in the browser. Parse the JSON, cut the array into groups of N items, and turn each group back into text. function splitArray(arr, size) { const parts = []; for (let i = 0; i { chunk[k] = obj[k]; }); parts.push(chunk); } return parts; } Browsers can create a download from a Blob, with no server involved: function download(name, value) { const blob = new Blob([JSON.stringify(value, null, 2)], { type: 'application/json' }); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = name; a.click(); URL.revokeObjectURL(a.href); } parts.forEach((p, i) => download(`part-${i + 1}.json`, p)); One catch: many browsers block several downloads fired at once, so it is safer to give each part its own download button. Invalid JSON. JSON.parse throws on bad input, so wrap it in try/catch and show the error message to the user. Very large files. Everything is held in memory, so a file of many megabytes can make the tab slow. For huge files, a streaming parser or a command-line tool is a better fit. Order. Items keep their original order, so you can join the parts back together later with concat. I put this into a small free tool: JSON Splitter. Paste your JSON, choose how many items per part, then copy or download each part. It runs fully in your browser, and nothing you paste is uploaded. It is part of Parsekit, a set of small JSON utilities that all run client-side: formatter, JSON to CSV and YAML, merge, diff, splitter, escape/unescape, Base64 and URL encode/decode. The site uses Google Analytics for basic page-view counts, but it never sees what you paste. I'd love to hear which tool you'd want next, or if

Dev
Interesse
dev.to

SAMJHGO

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built SAMJHO, a privacy-first, local AI document-understanding MVP designed to simplify confusing notices, policies, and forms into clear, actionable insights for everyday users. Core Components Built Local AI Engine (ai.py + Gemma 3 1B): Powered entirely offline via Ollama to generate structured JSON data—including summaries, required actions, deadlines, and costs—without relying on external proprietary APIs. Evidence Validator (evidence.py): Powers the PROVE IT feature, cross-referencing AI-generated claims directly against original document quotes to guarantee reliability and prevent hallucinations. Streamlit Interface: A simple, user-friendly UI featuring transparent processing steps, bilingual support (English and Hindi), and verifiable source inspection. By combining local open-weight models with strict evidence validation, SAMJHO bridges the gap between complex paperwork and real-world understanding while keeping all data completely offline. https://drive.google.com/file/d/1euuxA1SqSctYp01NZTVP9wyLy_nPUnxK/view?usp=drive_link https://github.com/ViV1-siNgh/Samjho.git I built SAMJHO using a strict local-first, modular architecture to ensure complete privacy and reliability. First, I created a robust document parser (parser.py) using PyMuPDF to extract text page-by-page, integrating Tesseract OCR for scanned PDFs. Next, I connected the local open-weight model Gemma 3 1B via Ollama (ai.py) to process the text offline, instructing it to return clean, structured JSON without hallucinating missing details. To guarantee accuracy, I built an evidence validator (evidence.py) that powers a "PROVE IT" feature, cross-referencing AI claims against exact document quotes. Finally, I unified the pipeline into a simple Streamlit interface offering bilingual support. Open innovation matters because complex, real-world problems—like making bureaucratic paperwork accessible to everyday people—canno

IADev
Interesse
dev.to

Hacktoberfest Weekend: Build for a Friend Challenge.

OutLoud: learning by talking it through This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend A friend of mine learns by talking ideas through, but doesn’t use AI much. Most AI chats start with typing a prompt, which doesn’t fit how she likes to learn. I built OutLoud so she can explain a topic aloud, review the transcript, and continue the conversation with a local model. You can explain a topic out loud, then read and edit the transcript before it goes anywhere. Stopping a recording only creates a draft. You decide when to send it. Study mode lets you set up a subject, add a syllabus and reference material, and work through topics. As you explain ideas and answer follow-up questions, OutLoud saves evidence of your understanding and topics to revisit. Watch the demo video / OutLoud OutLoud OutLoud is a local, voice-first chat and study app. It has a browser UI and an Electron development app. A Python backend records audio from the computer's microphone, transcribes it with Whisper, and saves the transcript into the selected conversation's editable draft. A transcript is never sent automatically: review it, then choose Send to get a streamed reply from the local Gemma model through Ollama. The app runs its servers on loopback (127.0.0.1). It is designed for one computer, not as a hosted or network-accessible service. The browser and desktop apps use separate local data stores. Quick start 1. Install prerequisites Python 3.11. The repository pins it in .python-version and mise.toml If you use mise, run mise install from the repo. uv for Python environment and dependency management: install uv. Bun 1.4.2 for JavaScript dependencies and workspace commands: install Bun. Node.js 22.12+… View on GitHub OutLoud uses Whisper to transcribe speech and Gemma 3 (gemma3:4b) for chat and study responses. Whisper runs in the Python backend. Gemma runs locally through Ollama. The web app is built with React, TypeScript, and Vite. A Python backend handles

IADev
Interesse
dev.to

DEV·TV v2: a guide button and an Agent Skills channel 📺

I wanted DEV·TV to feel more like a TV. That sounds obvious, but it actually exposed a problem. Before v2, you could flip through channels, but there was no good way to see what was on without tuning to every channel. So I added a GUIDE button. And while I was in there, I added something else I've been watching closely: Agent Skills. DEV·TV now has 13 channels covering things like GitHub, Hacker News, DEV, Hugging Face, releases, AI papers, CVEs and videos — all running from one HTML file, with no backend and no API keys. 📺 Try DEV·TV Source on GitHub This was bothering me. You could see the channel names, but if you wanted to know what was actually happening on channel 7, you had to go to channel 7. The NOW / NEXT / LATER ticker helps once you're there, but it doesn't answer the basic TV question: What's on? Real TVs figured this out a long time ago. They have a guide. So v2 has one. Desktop version Mobile version - Android and iOS Press GUIDE and the TV becomes a channel guide. Every channel gets a row with its number, name and current headline. The channel you're watching is marked ON NOW. You can tap a row, or move with ↑ and ↓ and press Enter. Then it tunes to that channel with the same static burst you get when changing channels normally. You can also open the guide with G, or by tapping the channel name on the screen. Esc, G or ✕ closes it. The second addition is more interesting. I've been seeing more and more Agent Skills repositories appearing on GitHub. They're basically packages of instructions — often containing a SKILL.md plus scripts or other files — that teach an AI agent how to perform a particular job. And there are a lot of them. I wanted to see if DEV·TV could do something useful with that stream. So channel 12 watches for new ones. The rules are deliberately simple: created in the last 14 days at least 20 stars sorted by stars top 10 show the repository age So instead of throwing hundreds of new repositories at you, the TV gives you a small lis

Dev
Interesse
dev.to

The AI Prompts I Actually Use On-Call (Copy-Paste)

I'm not here to tell you AI replaces on-call judgment. It doesn't. But a good large language model is a genuinely excellent rubber duck with a pattern-matching memory of every stack trace ever posted online — and when you're staring at an error at 2 a.m., that's worth a lot. The trick is having the prompt ready before the incident, so you're not composing one while production burns. Here are the ones I actually keep on hand. Copy-paste, swap in your details. One rule before we start: sanitize before you paste. Strip secrets, tokens, internal hostnames, customer data. Treat every prompt like it's going in a public pastebin, because functionally it is. You are a senior SRE. Here is an error from production: Context: . Give me: 1. The 3 most likely root causes, ranked, with why. 2. The single fastest command to confirm or rule out #1. 3. What NOT to do (actions that look tempting but could make it worse). Be concise. Assume I know the tools. The "what NOT to do" line is the one that's saved me. LLMs are eager to suggest force-flags; asking for the footguns up front surfaces them. I'm running Prometheus + Grafana. In plain English the symptom is: " ". Write 3 PromQL queries that would help me confirm or localize this, from broad to specific. Explain what each one would show and what result would point to which cause. Turning "it feels slow sometimes" into three concrete PromQL queries is exactly the gap that eats MTTR. Write a blameless postmortem draft from these notes. Blameless means focus on systems and contributing factors, never individuals. Timeline + notes: Produce: summary, impact, timeline (as a table), root cause, contributing factors, what went well, action items (each with a concrete owner-role and a specific, testable definition of done). Flag anything in my notes that's an assumption vs. a confirmed fact. That last line — assumptions vs. facts — catches the thing that quietly turns a postmortem into fiction. Review this Terraform plan output for anything

InfraDevIA
Interesse
dev.to

MomTask AI: A Hindi/Hinglish Voice Reminder Assistant I Built for My Mother

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built MomTask AI, a simple Hindi/Hinglish AI reminder assistant designed around a real problem my mother could face: turning everyday spoken reminders into organized tasks. For example: "Kal subah doodh lana hai" MomTask understands this as: Task: Bring milk Date: Tomorrow Time: Morning Reminder: 08:00 AM The idea is simple: instead of opening a complicated task manager and typing everything manually, a user can speak or type naturally. Hindi/Hinglish task understanding Voice input through the microphone Add, complete and delete tasks Browser reminder notifications Custom reminder time Local H2 database Local AI using Ollama + Qwen3 1.7B One-click Windows launcher MomTask currently runs locally on Windows. The project includes a MomTask.bat launcher that starts the required services and opens the application. After starting it, the app is available at: text http://localhost:8080 The microphone button allows Hindi voice input directly from the browser. Code GitHub repository: https://github.com/Shitanshu686/MomTask The complete source code, README, launcher and Spring Boot project are available in the repository. How I Built It The backend is built with Java 17 and Spring Boot. The basic flow is: User ↓ MomTask Web UI ↓ Spring Boot Backend ↓ Ollama ↓ Qwen3 1.7B ↓ Structured Task ↓ H2 Database The AI receives the user's Hindi/Hinglish reminder and extracts: - task - date hint - time For common Hindi words such as aaj, kal, subah, dopahar, shaam and raat, the application also applies deterministic normalization so the final task data remains predictable. I also added browser notifications and custom reminder times so the application is useful beyond simply creating a task. The AI runs locally through Ollama, so the application does not require a cloud AI API key. Why Does Open Innovation Matter? Open innovation matters because it makes it possible to experiment, build and adapt technolog

IADev
Interesse
dev.to

Stopped pasting grocery list into ChatGPT, Gemma 4 E2B runs it on my GTX 1650

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend We roomies have a group where we put all our grocery expenses. Then someone has to calculate all or we just export the chat to ChatGPT. / WAExpenseSplitLocalAI WAExpenseSplitLocalAI Split shared grocery spending without pasting your group's money chats into a cloud chatbot Paste a WhatsApp export (and/or freeform lines) → a local open-weight model reads every line → you correct anything in a table → deterministic Python computes who pays whom No API key, no account, no data leaves your laptop. Built with Gemma 4 E2B (Apache 2.0) running locally via Ollama. Originally made for a Hacktoberfest "Build for a Friend" entry: month-end grocery splits for roommates, parsed on-device for privacy. Why local Grocery + money chats reveal food habits, routines, locations, and financial state. Pasting them into an online AI sends all of that to someone else's server. Running the model on your own machine means: Private — traffic never leaves localhost:11434. Free — zero per-parse cost, unlimited re-runs. Offline — works on hostel WiFi or no WiFi after a one-time ~4.3 GB model… View on GitHub The open core is Gemma 4 E2B (gemma4:e2b-it-qat, 4.3 GB quant) running on my own laptop Ollama, with a Streamlit UI and plain Python around it. No API key, no account, localhost:11434. The architecture has one rule: code owns structure, the model owns meaning, Python owns money. Code owns structure. WhatsApp export envelopes ([28/09, 21:30] Name: …) are peeled deterministically before the model ever sees them — so a timestamp can never be mistaken for an amount. (My first version fed raw lines to the model and it solemnly reported expenses of Rs.28 and Rs.29. Those were the dates.) Model owns meaning. One Ollama call per line — I measured that this small model drops lines when batched, so each line gets its own call. It first lists every amount it sees, then returns one item per amount; its own count is checked a

IADev
Interesse
dev.to

AccessPath-ai: I built my sibling a subway planner that won't strand him when a lift breaks

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend. My sibling relies on step-free transit. A route planner can call a trip accessible and still send them through a transfer that becomes unusable when one lift fails. The usual route card does not say which equipment the journey depends on, when it was last checked, or where to go if it stops working. I built AccessPath for that situation. It plans step-free NYC Subway journeys, checks the equipment and outage evidence behind each route, and prepares another valid route when the first one breaks. The rider's requirements stay fixed even when the network changes. The demo starts at Grand Central-42 St and ends at Astoria Blvd. Plan A changes from the 7 to the N at Queensboro Plaza. I inject a clearly labelled failure of the transfer lift, which invalidates that plan and runs the graph search again. Plan B keeps the step-free requirement and transfers at Times Sq-42 St. Both routes stay on screen so the change is easy to inspect. The result also includes current warnings, model confidence, source timestamps, and an evidence ledger. A simulated outage is always labelled as a simulation, never as a live MTA fact. Live app: https://accesspath-ai.onrender.com Video-demo: https://youtu.be/bitCWvo5Fdk For the stable judging path: Leave Grand Central-42 St and Astoria Blvd selected. Keep Step-free and Short transfers checked. Choose Outage demo. Press Build my access plan. Compare the interrupted Queensboro Plaza route with the Times Square reroute. Open Evidence and review the sources, timestamps, and confidence labels. Play the spoken journey briefing. / accesspath-ai AccessPath AccessPath is an evidence-first journey planner for riders who depend on step-free transit. It checks the infrastructure a route needs, shows the source behind each access claim, and calculates a backup when a lift failure invalidates the original trip. The working demonstration plans a trip from Grand Central-42 St to

Dev
Interesse
dev.to

Three yeses, two living rooms, and one missing question

A work-in-progress entry for the Hacktoberfest Weekend Challenge: Build for a Friend. My prototype, The One Missing Question, is a scrapbook-like page for the person who ends up coordinating every group plan. Paste a short chat, then get the messages that matter, the details still in the air, and one question you can edit and send. Take a board-game night in a busy group chat. Mira says Saturday is good. Jay can make it after 7. Noor can host, while Mira thought they were meeting at Jay's. Three people are interested, but there is still no agreed start time or venue. The friend organizing it needs one useful next message, not a confident summary of a plan nobody made. I built this around the friend who keeps the group chat moving when everyone is interested but nobody has agreed on the details. I have not handed the prototype to a friend yet, so I cannot report their feedback. The built-in sample lets anyone try the flow without sharing a private conversation. The README has the local demo steps. Install Ollama and pull gemma2:2b-instruct-q3_K_S, run npm start, then click Try a sample chat and Find the missing question. The sample is included in the app. A hosted Render demo is planned in the repository's Blueprint but has not been deployed or verified yet. The One Missing Question on GitHub The app is a small Node server and a dependency-free browser interface. The repo includes a Render Blueprint for a public web service and a private Ollama service, plus local run instructions. The model receives the pasted chat and returns three fields in JSON: exact excerpts, open details, and one proposed question. The browser arranges these as paper notes. The user can edit the question before copying it. My first design asked Gemma to label details as agreed. That failed in a useful way. In one test case, a model called a venue confirmed even though the supporting message was phrased as a question. The quote was present in the input; the interpretation was wrong. An exact-ma

IADev
Interesse
dev.to

Building Ruko for a Friend

I'm participating in the Hacktoberfest Weekend Challenge: Build for a Friend. For this challenge, I'm building Ruko — “Stop. Check before you tap.” Ruko is a privacy-first scam warning assistant designed for someone close to me who may receive suspicious SMS or WhatsApp messages. The idea is simple: Before you tap a link, share information, or make a payment — stop and check. I'm building it with open-source AI (Gemma) running locally, with a privacy layer that prevents sensitive information such as OTPs, PINs, passwords, and CVVs from being sent to the AI model. I'm excited to build something practical for a real person while exploring how open-source AI can be used for privacy-focused applications. Let's build. 🚀

SegurançaIAMobile
Interesse
dev.to

AI + Temporal in .NET 10: Building Reliable AI Workflows

AI applications are no longer just: Request ↓ AI Model ↓ Response Real-world AI applications often involve multiple steps: User Request ↓ AI Analysis ↓ External API ↓ Database ↓ Human Approval ↓ Final Action But what happens if the AI API fails? What if the application crashes halfway through the workflow? What if a human needs to approve something tomorrow? This is where Temporal can be useful. AI provides intelligence. Temporal provides reliable workflow execution. Imagine an AI-powered order review system: Order Created ↓ Charge Payment ↓ AI Risk Analysis ↓ Check Risk / \ Low Risk High Risk ↓ ↓ Continue Human Review ↓ Approval ↓ Continue There are several things that can fail: AI API can be unavailable External APIs can timeout Workers can restart A workflow may need to wait for a human An AI operation may need to be retried Instead of writing custom infrastructure for all of these situations, Temporal can manage the workflow execution. A simple AI + Temporal architecture looks like this: ASP.NET Core ↓ Temporal Server ↓ .NET Worker ↓ Temporal Workflow ↓ ┌──────────┼──────────┐ ↓ ↓ ↓ AI Database External API Activity Activity Activity The important separation is: Workflow ↓ Controls the process Activity ↓ Performs external work The AI call should generally be placed inside an Activity because it communicates with an external service. For example: using Temporalio.Activities; public class AiActivities { [Activity] public async Task AnalyzeOrderAsync( string description, decimal amount) { // Call your AI provider here. // OpenAI, Gemini, Azure OpenAI, // Amazon Bedrock, etc. await Task.Delay(500); return amount > 10000 ? "HIGH_RISK" : "LOW_RISK"; } } The Workflow can then call this Activity: [Workflow] public class OrderWorkflow { [WorkflowRun] public async Task RunAsync( string description, decimal amount) { var risk = await Workflow.ExecuteActivityAsync( (AiActivities activities) => activities.AnalyzeOrderAsync( description, amount), new() { StartToCloseTimeout =

Dev
Interesse
dev.to

FochaBits — A Focus System for People Who Keep Putting Things Off

What I Built I built FochaBits, a focused productivity system for a friend who struggles with procrastination and turning intentions into actual work. Most productivity apps are good at storing tasks: “Study this.” But having a task written down doesn't mean you'll actually do it. FochaBits is designed around the gap between planning something and actually focusing on it. It combines: Tasks — what needs to be done The goal isn't to create another chatbot. The goal is to build a system that helps someone stop negotiating with their task and start doing it. Demo Live Demo: https://fochabits.netlify.app/ How I Built It FochaBits is built as a lightweight web productivity application with a focus on keeping the interface simple and distraction-free. For the AI component, I experimented with Gemma, an open-weight model accessed through the Gemini API. The AI is used as a focus assistant rather than a generic chatbot. The idea is to give the model the context of what the user is trying to accomplish and use it to help with things like: breaking a vague task into concrete steps The rest of the application handles the actual productivity workflow—tasks, habits, time, and focus—while AI provides the adaptive layer on top. Why Does Open Innovation Matter? Open innovation matters because productivity software shouldn't have to depend on a single closed AI provider or a black-box intelligence layer. Using an open-weight model like Gemma gave me the opportunity to experiment with how AI can be integrated into a real product while keeping the model layer replaceable. That separation is important to me. The application shouldn't become: “Whatever AI API I happen to use.” Instead, the product should own the workflow, while different models can provide the intelligence behind it. Open models also make experimentation much more accessible for students and independent developers who want to understand what is actually happening behind an AI-powered feature. My Agent Session [Add your

IA
Interesse
dev.to

Beyond Background Jobs: Building Durable Workflows with Temporal and .NET 10

If you've worked with .NET applications, you've probably written code like this: await ChargePayment(); It looks simple. But what happens if the application crashes after ReserveInventory()? What happens if the payment API is temporarily unavailable? What happens if the workflow needs to wait for a manager's approval for two days? What happens if the server restarts while the workflow is running? You can build solutions for all of these problems yourself, but the amount of infrastructure and error-handling code can grow quickly. This is where Temporal comes in. Temporal is a durable workflow execution platform that helps applications reliably execute long-running and failure-prone workflows. In this article, we'll build a simple order-processing workflow using .NET 10 and Temporal and understand the concepts behind it. Temporal allows you to define a business process as a workflow and execute it reliably. For example: Instead of treating these as unrelated background jobs, Temporal lets us model them as one workflow. The important part isn't just running these steps. The important part is that Temporal keeps track of the workflow's execution so that it can recover from failures. Conceptually: Temporal | ↓ Order Processing | ┌────────┼────────┐ ↓ ↓ ↓ Payment Inventory Email If something goes wrong, the workflow can retry activities or continue from the appropriate point. Let's start with a normal ASP.NET Core application. Imagine this method: public async Task ProcessOrder() { await ChargePayment(); await ReserveInventory(); await GenerateInvoice(); await SendEmail(); } Now imagine this sequence: Charge Payment ✓ Reserve Inventory ✓ Generate Invoice ✗ Maybe the invoice service is temporarily unavailable. You now need to think about: Should the invoice operation be retried? How many times? How long should we wait between retries? What happens if the application crashes? How do we know which steps already completed? How do we resume the process? What happens if the wor

Dev
Interesse
dev.to

LostNet — The Neighborhood Lost & Found with Gravitational Resonance & Real-World Handovers

This is a submission for the Sanity Challenge, Path Two: Vibe-Code Something Strange LostNet is a real-time, map-first neighborhood Lost & Found network where lost items gravitationally pull toward their owners. Set in a bustling city neighborhood (Indiranagar, Bengaluru), LostNet operates as zero-friction public infrastructure: no account, sign-up, or password required. If you drop your keys or find a phone at a bus stop, you can report it in 15 seconds directly from your phone. A deterministic Gravitational Resonance Engine continuously evaluates spatial, temporal, and semantic similarity across four distinct pillars: Category Match: Strict taxonomy alignment (Keys, Phone, Wallet, Pets, etc.) Geo Proximity: Inverted exponential decay based on neighborhood walking radius Time Window: Chronological plausibility (e.g., found after lost within a 60-hour window) Attribute & Description Similarity: Color, material tags, and textual cosine matching Most lost-and-found software tries to build an airline ticketing desk on the web: multi-step account creation, complex ticket IDs, and hypothetical bureaucracy. LostNet models how humans actually behave in a city. When people find lost belongings, they do one of three things: 🏛️ Drop it at known civic infrastructure (local police station reception, metro customer desk, café counter) 🤲 Keep it safe while waiting for verified contact 📍 Leave it undisturbed at the exact spot LostNet embeds these real-world drop-offs directly into the content lifecycle, paired with an anonymous direct coordination chat so owners and finders can safely arrange pickups without exchanging personal phone numbers. 🌐 Live Application: https://lostnet.vercel.app (or your deployed Vercel URL) 🎬 Video Walkthrough: (Embed your Loom/YouTube link or drop a video clip here) Screenshots Interactive Resonance Map 4-Pillar Match Verification City Reunions Ledger (Tip: You can drag and drop your screenshots directly into the DEV.to editor to auto-upload them!

DevMobile
Interesse
dev.to

I built my friend a way to start STEM problems

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Approach Mapper is for @harishb2006 who is learning DSA and math. He kept telling me the hard part isn't solving problems, it's the blank page: reading a problem and not knowing where to even start. Most AI tools hand over the answer, which teaches nothing. Approach Mapper gives you the way of thinking instead. Paste a problem (or upload a photo or .txt, or paste an image from the clipboard) and you get: The clues hidden in the problem statement The pattern or method that fits (hash map, two pointers, invariants…) A decision-path mindmap of the approach Questions to ask yourself, step by step A 4-level hint ladder you reveal one click at a time The answer is never the headline. It also classifies the problem by category, and it politely declines input that isn't a STEM problem. Code / approach-mapper Approach Mapper You're stuck on a STEM problem and don't know where to start. Paste it (or snap a photo) and Approach Mapper gives you the way of thinking: the clues in the problem, the pattern or method that fits, a decision-path mindmap, step-by-step questions to ask yourself, and a 4-level hint ladder you reveal one click at a time. The answer is never the headline. Built for @harishb2006 who learns DSA and math and gets stuck at the blank page. ▶ Watch the demo video Open source, bring your own model The code is MIT-licensed and model-agnostic. It talks to any OpenAI-compatible chat API, so you choose where the model runs by setting three env vars (LLM_BASE_URL, LLM_API_KEY, LLM_MODEL): Run a model locally if your hardware allows: Ollama, LM Studio, vLLM or llama.cpp's server, with any open-weight model (use a vision-capable one if you… View on GitHub Approach Mapper is a small FastAPI backend with a single-page frontend, about 500 lines of Python and HTML plus tests. The model client speaks only the OpenAI-compatible chat API. Three env vars (LLM_BASE_URL, LLM_API_KEY, LLM_MODEL) set t

IADev
Interesse
dev.to

AI Study Planner

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Planning a long-term learning journey can become difficult when there are many things to manage at the same time. I was trying to balance programming, DSA, AI/ML, projects, university exams, and other technical skills. I could create a large roadmap, but turning that roadmap into realistic monthly, weekly, and daily tasks was much harder. That led to the idea for AI Study Planner. Instead of manually creating hundreds of study tasks, the user can describe what they want to learn, how much time they have available, their priorities, goals, projects, and target duration. The application uses a locally running AI model to turn those requirements into a structured study plan. A key part of the idea was keeping the user in control. The AI does not immediately modify the tracker. The generated plan is first presented for review, and only after approval is it implemented into the application. The goal is simple: Turn learning goals into an actionable plan without taking control away from the learner. AI Study Planner is an AI-assisted study and career planning application that converts learning goals into an organized: Month → Week → Day → Tasks The user can provide information such as: Skills they want to learn Existing knowledge Available study time Learning priorities Target completion period Projects they want to build Career-related goals Other commitments The local AI analyzes these requirements and generates a structured study plan. The workflow has three main stages: The user describes their learning goals and constraints. The AI generates monthly goals, weekly objectives, and daily tasks. The user can inspect the generated plan before making any changes to their tracker. After approval, the plan is converted into actual tracker tasks. The application also provides: AI-assisted study plan generation Monthly, weekly, and daily planning Task tracking and completion Progress tracking Stre

IA
Interesse
dev.to

Whisper Keeps Correcting Nigerian Speech. Here's How I Measured It

What I Benchmarked I've been fine-tuning Whisper on Nigerian speech for a while, and I built this benchmark to measure my model against the standard ones. The question behind it: when a speech model hears Nigerian English or Pidgin, does it write what was said, or does it rewrite it as standard English? It evaluates speech recognition rather than text LLMs: two off-the-shelf Whisper models (large-v3 and small) and a version of large-v3 that I fine-tuned myself on Nigerian speech. I use 'dialect' for any Nigerian English variety or Pidgin form, even though Pidgin is technically its own language. Standard automatic speech recognition (ASR) accuracy tests mark a model wrong when it correctly transcribes dialect words, slang, or Pidgin. Most evaluation relies on word error rate (WER) computed against references written in standard English spelling. If a model transcribes "pipo" (what the speaker said) but the reference says "people", standard WER counts a substitution error. That penalizes a spelling difference, not a listening mistake. The benchmark separates real recognition errors from dialect-spelling mismatches and reports 5 metrics: Raw WER: standard WER. Faithful WER: WER after discounting faithful dialect variants (spellings like "pipo" that match what was spoken). Dialect penalty: Raw WER minus Faithful WER, in percentage points. Hallucination rate: the share of word errors that aren't faithful dialect variants. In this benchmark's code, "hallucination" means any such error, not only invented words. Normalization overcorrection: the share of hallucinations where the reference contains a dialect word and the model "corrects" it to standard English. For example, if a model makes 100 hallucinations (errors that aren't faithful dialect variants), a 10.6% overcorrection rate means about 11 of them are dialect words the model replaced with standard English, like "dey" → "they". The rest are other errors. I selected 500 samples across 5 speaker backgrounds (Igbo, Yoru

IADev
Interesse
dev.to

PDF Form Fields Explained — Node.js Template Ownership and Silent Filling Failures

Own the template when your marketplace controls the document layout. Keep the original owner in the loop when a partner controls it. That one decision prevents most mysterious form-fill failures because PDF fields are named interactive objects, not blank-looking places on a page. TL;DR: inspect the field tree before writing, match the field type and export value, regenerate appearances, then flatten only if the recipient needs a static artifact. A successful setter call proves very little. Verify the saved bytes with a second parser and render a page before an externally shared document leaves the system. Template owner Pick this operating model Main risk Release check Marketplace team Version the PDF beside code and enforce a field contract An editor renames or deletes a field Compare discovered names and types with a manifest External partner Discover and map fields per accepted template version The partner changes structure without notice Quarantine unknown fingerprints for review Shared ownership Publish a signed-off schema and change process Both teams assume the other tested the artifact Run contract and rendered-page tests at handoff Nobody Stop treating the file as a stable form template Untracked drift becomes normal Establish an owner before automating fills This field guide uses a marketplace workflow: watermarking seller documents before an approved buyer receives them. The watermark may include a buyer reference and sharing date. Those values must land in the intended fields, remain visible across viewers, and avoid exposing reusable editable controls. An AcroForm separates data from presentation. Its field tree holds logical controls and values. Widget annotations place those controls on pages. Appearance streams describe what a viewer can paint. A library can update the logical value while leaving a stale or missing appearance, so its API reports success and the page still looks empty. Picture the path in words: template bytes lead to an AcroForm fiel

Dev
Interesse
dev.to

Blur image

Redacting an image properly: blur, pixelate or solid box If you share screenshots, you need a redaction habit. Not all obscuring methods protect what you think they do. Three modes, three guarantees. Blur softens an area. It is fine for a face in a crowd, but a light blur over text can sometimes be guessed. Pixelate replaces the area with large squares; at high strength it is better than blur for text and numbers. Solid covers the area with plain colour. Nothing of the original is left underneath, so use it for card numbers, addresses, documents and passwords. What ends up in the file. In CMeIn's blur tool the downloaded file contains only the edited pixels. The original under a blurred or covered area is not hidden in the file as a layer, and hidden details such as the location the photo was taken are not carried over. A checklist before you post a screenshot: use Solid for secrets; use Pixelate at high strength for names and numbers; check the preview at full size; and strip location metadata (done automatically here). It runs in your browser: the image never leaves your device. JPG, PNG or WebP up to 30 MB. Free, no account. https://cmein.com/blur-image

Segurança
Interesse
dev.to

Meeply — a gentle medication routine I built for my mom, with Meep, an open Gemma AI helper

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend There is a certain kind of fear and anxiety that comes with loving someone and knowing you are not able to always be there to remind them of something important. For me, that is my mom. She tends to forget when to take her medications that are supposed to be taken at a scheduled time. When she would tell me she forgot constantly, it started to become a worry. We covered the refrigerator with notes, set alarms on her phone and reminded her whenever we could. However, life tends to get busy, alarms would be dismissed, and the notes just started to blend into the background. She wasn't forgetting because it wasn't important to her; she simply needed a bit more support than a note on a fridge or another phone alarm could give. I wanted to make sure she had some support even during moments I could not be there with her. Meeply was inspired by my mom, but it's also for every person trying to manage an important routine, and every loved one quietly wondering if they remembered to take their medication. Meep, the AI helper, offers gentle guidance, while Care Circle allows trusted people to support someone without taking away their privacy or independence. Meep is there to remind us that we don't always have to manage things alone. I gave it to my mom on Friday. She opened it on the web on her iPhone, followed the install instructions in the app to add it to her Home Screen, and turned on reminders. Her notifications have been arriving, and she's been using it every day since. It works for her: she remembered her medication, and she told me she really enjoyed using it. When I showed it to her, she said: "Mija, I am so proud of you for what you created. I'm so excited to try it out!" That's the whole point of this weekend: not a demo, but a tool one real person actually uses. Meeply is a calm, installable web app for medication routines: Today shows what's due. One tap records I took it, Remind m

IAMobile
Interesse
dev.to

Scam or Genuine? An Offline Message Checker for a Friend (Gemma 3)

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend A friend of mine wanted a way for his father and himself to check whether the messages they get from banks and other senders are scams or genuine. So I built a first version of one. You paste an SMS or WhatsApp message. The tool answers SCAM, SUSPICIOUS or SAFE, gives a short reason in simple Hinglish, and says what to do next. It runs entirely on my laptop with Google's Gemma 3 through Ollama, so messages that can contain account and transaction details never leave the machine. It is a second opinion, not a safeguard. In my testing it missed some scams and wrongly flagged some genuine messages, and I show those failures below. Code / Scam-Checker Scam Checker: works offline, built for a friend Submission for the Hacktoberfest Weekend Challenge: Build for a Friend (DEV, 2 to 5 October 2026). A friend wanted a way for his father and himself to check whether the messages they get from banks and other senders are scams or genuine, so I built this for them. You paste an SMS or WhatsApp message. The checker answers SCAM, SUSPICIOUS or SAFE, gives a short reason in simple Hinglish, and says what to do next. It runs on an ordinary laptop with Gemma 3 through Ollama. No message leaves the machine and it needs no internet after the model is downloaded. How it works checker.py sends the message to a local Gemma model through the Ollama Python library, asks for JSON, uses temperature 0, and includes two worked Hinglish examples in the prompt. Replies that are not valid JSON… View on GitHub Model: Gemma 3 through Ollama, called from Python with the ollama library. I ran the 4B model (the default) and the 1B model so I could compare them. Prompt: it asks for a JSON answer at temperature 0 and lists the usual warning signs. At first Gemma answered in English even though I asked for Hinglish. Adding two worked Hinglish examples fixed that. Fallback: if the model's reply is not valid JSON, the result i

IADev
Interesse
dev.to

My friend can't stop buying things at 2am. So I built an AI that can.

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Every AI tool my friend Akshay has ever installed was trying to help him do the thing. The problem is that the thing was usually buying something at two in the morning. Akshay does not have a shopping problem in any dramatic sense. He has a 2am problem. Something lands in a cart during the day, he sleeps on it, and then at some point after midnight he is awake and scrolling and the sleeping-on-it quietly stops counting. He is not confused in that moment and he does not need information. He knows exactly what he is doing, and he does it anyway, and the part that costs him is that it is always money he had a plan for. Every piece of software in that moment is on the wrong side. The checkout page is designed to make the next step easy. The recommendation engine is designed to find him one more thing. There is no software anywhere in that flow whose job is to make it harder. So I built him The Veto: a local open-weight model whose only job is to stop him. It cannot help. It cannot rewrite anything, soften anything, or suggest a better version. Every capability you would normally want from an assistant is stripped out of the system prompt deliberately. It has exactly three things it is permitted to say. He writes rules about himself when he is calm. Not policies, just sentences in his own words: I regret anything I buy after midnight. I regret buying things on a night I have had a bad day. I regret messages I send after 1am. The last one is there because once a gate exists, the same machinery covers the other thing you do at 2am that you regret at 9am. The purchase rules are the ones built for Akshay. Then, later, in the seconds between wanting the thing and clicking the button, a model running on his own laptop reads what he is about to commit, checks it against his rules and nothing else, and returns one of three verdicts: Verdict What happens PASS Trips none of his rules. It gets out of t

IA
Interesse
dev.to

How to Convert Decimals to Fractions: 3 Steps With Examples

Your API returns 0.375. The design mock says "⅜". The recipe your app is scaling says 0.666 cups but the user owns measuring cups marked in quarters. Somewhere between the machine world and the human world, decimals have to become fractions — and every developer, designer, or DIYer hits this gap eventually. The good news: the conversion is a 3-step mechanical process. No memorization, no algebra tricks. Here's the whole thing. Write the decimal over its place value. One decimal place → over 10. Two → over 100. Three → over 1000. Find the greatest common divisor of the top and bottom numbers. Divide both by the GCD. That's your simplified fraction. That's it. 0.75 → 75/100 → GCD(75, 100) = 25 → 3/4. Everything below is just this pattern applied to different numbers. A decimal is already a fraction in disguise. "0.75" literally means "75 hundredths" — the digits after the point tell you the denominator directly. You're not computing anything in step 1; you're just rewriting notation. The only real math is step 3: simplification. And even that has a boringly reliable procedure — divide both numbers by 2, 3, 5, whatever divides them evenly, until nothing divides both. What survives is the GCD. 0.5 → 5/10 → GCD(5,10) = 5 → 1/2 0.75 → 75/100 → GCD(75,100) = 25 → 3/4 0.125 → 125/1000 → GCD(125,1000) = 125 → 1/8 0.6 → 6/10 → GCD(6,10) = 2 → 3/5 1.25 → separate the whole number: 1 + 0.25 → 25/100 → GCD(25,100) = 25 → 1 1/4 Notice the pattern: the denominator is always 10, 100, or 1000 at first, then it collapses. If you remember only one thing, remember this: count the decimal places, that's your zeros. Repeating decimals — 0.333…, 0.1666… — never terminate, so they can't be written over a power of 10. 0.333… = 1/3, but getting there needs a different technique (multiply by 10, subtract, solve). In practice, this is exactly where you stop doing it by hand and use a tool. Full disclosure: I built this. It's one of 30 free utilities on ToolkitLoop, and it's 100% client-side —

Geral
Interesse
dev.to

Why Quantitative Finance is Finally Breaking Up With C++ And Adopting OCaml

Most quantitative finance desks are built on a mountain of legacy C++ and Python codebases that routinely trigger midnight page alerts due to subtle memory corruption bugs or unpredictable garbage collection pauses. When you are pricing complex interest rate derivatives or running high-frequency order routing algorithms, losing even five milliseconds to an unexpected runtime exception can wipe out your daily alpha. We have all stared at core dumps at 3 AM, wondering why a pointer went out of bounds in a multi-threaded risk engine. It is an exhausting way to build software, yet the industry has clung to it for decades simply because performance matters above all else. But the landscape is shifting, and forward-thinking engineering teams are discovering that strict functional programming is no longer just an academic exercise. The dirty secret of modern quantitative development is that our safety nets are entirely inadequate for the complexity of our financial models. Python gives you velocity, letting you prototype a pricing formula in minutes using NumPy and pandas, but it falls apart the moment you push it into a low-latency concurrent pipeline. The GIL destroys your multi-core parallelism, and dynamic typing means a rogue None value can quietly propagate through your portfolio valuation engine until it causes a catastrophic mispricing in production. You end up writing hundreds of defensive unit tests just to catch the type errors that a competent compiler should have rejected at compile time. On the flip side, jumping straight to C++ or Rust gives you raw metal speed, but it introduces an entirely different category of self-inflicted pain. Memory management in C++ is a minefield where a single missed smart pointer or a subtle data race in your order book parser can take down an entire trading gateway. When you are dealing with complex algebraic representations of yield curves or stochastic volatility models, mutable state makes your code nearly impossible to reaso

Dev
Interesse
dev.to

A Learner That Scored Below Its Own Random Control

appgen is a tool of mine that turns a sentence into a running application with no language model in the generating path. Something has to read the sentence first, and one field of that reading does more work than the rest: the entity, the noun the generated app calls a row. It becomes a table name, a form field and a URL path, so getting it wrong means the right program gets built about the wrong thing. Today that field is read by a hand-written keyword rule. A local language model reads it better, and I am not simply using the model, for two reasons: it costs a 30-billion-parameter forward pass per request against a rule that costs nothing, and when I measured the whole stack end to end the model's plan won no requests the rule's did not. So the interesting question is whether something cheap and learned could sit between them. I put a learner there, and it scored below random units of the same shape. The learner is growone, a small online model of mine that starts with no hidden units and adds them as it goes. Its selling point is an open key universe: it is built for features that arrive mid-stream, which is exactly what happens when each token of a request becomes a feature key and the corpus keeps reaching words it has not seen. It produces one number per candidate rather than a sequence, so the entity is never generated: every token of the request is scored, the highest wins, and a this request names nothing to track sentinel is carried as one more candidate rather than as a special case. No part-of-speech filter and no stop list, because a hand-written stop list is a rule, and importing a rule into a learner's candidate set is how a learner takes credit for somebody else's work. The corpus is 75 project titles with frozen hand-written gold answers, drawn from three third-party lists: build-your-own-x, project-based-learning and Project-Ideas-And-Resources. The gold set holds 87 rows; twelve of them name a domain the tool already has a table for, so the reader

IADev
Interesse
dev.to

If leaders want AI speed, they must share the production risk

A recent post on X from an engineer named v0xium took the social media by storm. He described an organisation where AI generated much of the specifications, code, tests, tickets, and reports surrounding software delivery. His deeper complaint was organisational. People were pushed to ship faster without enough time to understand the work, while engineers still carried responsibility when it failed. Being an engineering leader running a fast paced AI powered engineering team , this problem struck close to home. That concern is legitimate. But it also describes only one side of a difficult transition. AI is changing the economics of software production quickly, and leadership cannot wait for the industry to discover a perfect operating model. So today the useful question is how can a company take larger bets without making engineers the sole owners of the resulting risk. An engineer who reviews a change has to imagine what happens when it reaches production. Does the generated test check the business outcome? Can we roll the change back? Will an incident wake the same team at 2 a.m.? If the system fails, the organisation will expect engineers to diagnose it and restore service. Asking for stronger quality controls is a rational response to that accountability. Leadership has a different responsibility. A founder or CTO has to decide which changes could materially improve the business, how quickly the company must learn, and which risks are worth taking. Incremental improvements may keep an existing system healthy while a competitor discovers a much more efficient way to operate. Refusing every uncertain experiment can therefore be as consequential as shipping an unsafe one. The tension becomes sharper because AI increases the amount of work a team can start. DORA's 2025 research on AI-assisted software development reported a positive relationship between AI adoption and delivery throughput, alongside a negative relationship with delivery stability. The report's broade

IA
Interesse
dev.to

First paid copy after 14 free ones: $5. Here's the pricing rule I set in the next hour.

On October 2 I put a 151-page English playbook on Payhip as pay-what-you-want with a $0 minimum. Over the next two days: 14 download notifications, 9 orders, all at $0. At 00:49 Seoul time on October 5, one order came in at $5, from Canada. That's the first dollar this three-week overseas experiment has made. I wrote the postmortem of the first 72 hours ($0) four days ago, so this post is the other half: what one paid copy changed, and the pricing rule I set within hours of it. Fourteen people took it free. One paid. On its own that's a 7% ratio with a sample too small to mean much. But it answered the question I actually had: is the thing worth money to a stranger who found it on their own? Yes, to at least one, and $5 was the number they chose with $0 right next to it. The free copies weren't wasted either. Thirteen of them left an email on the way out, and this morning each of them got one personal email with one question ("what did you hope the book would do, and did it?") and no pitch. Replies will decide what the next version covers. Pay-what-you-want with a $0 floor turns a product into a free download with a tip jar. So the floor is now $5, and it climbs in public steps: Minimum $5 now, pay what you want above it. The suggested price is $9. After every 10 paid copies, the minimum goes up one step. The next step is $9. The rule is written on the product page, and I'll report each step in the open, like the rest of this experiment. I'd rather sell fewer copies at a price someone chose than count downloads that cost the reader nothing and tell me nothing. Overseas revenue since October 1 $5.00 Spend $41 (one ad, stopped) Goal $1,000 by October 31 Days left 26 Everything else from the last four days is on this account: a cartoon pipeline that turns a Markdown storyboard into a video, three unsolicited sample cartoons made from other people's READMEs, and an open-source trade audit with its NinjaTrader add-on. None of those has sold yet. The book, the oldest and

Geral
Interesse