Painel de Notícias

Tecnologia

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

Filtros
dev.to

WanderLog: an offline field journal that answers "where did I see that kingfisher last time?"

I have a habit of seeing things outside and then losing them to my own memory. The peacock that called from the fog. The kingfisher that dove twice off the jetty and came up with a fish. The lizard big enough to hiss like a bicycle pump. So I built WanderLog — a local-first field journal that turns my coding agent into a naturalist's notebook. It's a Model Context Protocol (MCP) server. I go outside; when I get back I record a thirty-second voice memo of what I saw, and one command turns it into structured sightings and a walk. Everything else — remembering, finding, connecting — happens on my own machine, with open-source AI, with no network. Stack: TypeScript · MCP (Model Context Protocol) · SQLite · ONNX Runtime · Transformers.js · open-weight embeddings (all-MiniLM-L6-v2) · local gemma3:4b via Ollama · ElevenLabs Scribe (optional) · Sentry gen_ai tracing Code: github.com/praneshnikhar/wanderlog WanderLog is a field journal for the person who notices things outside and forgets them: the birder without a checklist, the hiker who wants to remember which trail had fog on the lake, the person who sees a peacock on the commute and wants to know whether it's the same one from last month. It's built around one rule: the screen should be the shortest part of the experience. There's no dashboard to maintain, no logbook to transcribe, no "curated profile of your nature observations." There's a walk, a thirty-second voice memo, and a question you can answer a month later. On the trail, you just talk to your phone like you're telling a friend what you saw. At home, one command: $ npm run log-voice -- ~/walk.m4a transcribing walk.m4a with ElevenLabs... transcript (scribe_v2, eng): "Saw a white-breasted kingfisher at the lake jetty. It dove twice and got a fish. Also spotted a rain lily on the path side, fresh after last night's rain. Walked the Central Park loop, three point two kilometers in fifty minutes. Fog on the lake." logged walk #1 a walk on Central Park loop, 3.2 km,

IADev
Interesse
dev.to

What I learned building a forum in Go with no frameworks

This was one of my first projects at Zone01 Oujda. With a team of 4, we built a web forum where users can register, write posts in categories, comment, and like or dislike posts. The rules were strict: Backend in Go, using only the standard library (plus sqlite3, bcrypt and uuid) Database: SQLite No frontend frameworks, only HTML, CSS and vanilla JavaScript The app must run in Docker At that time we were just starting out, so almost everything was new to us. Here are the main things I learned. Since Go 1.22, net/http supports HTTP methods and path parameters in routes: http.HandleFunc("POST /login", handlers.Login) http.HandleFunc("/post/{id}", handlers.GetPost) Inside the handler, r.PathValue("id") gives you the id. For a small project, this was all we needed. When a user logs in, we create a random token, save it in a sessions table, and send it to the browser in a cookie: HttpOnly, so JavaScript can't read it An expiration date of 1 hour The subject also asked for one session per user. Instead of checking this in Go, we let SQLite handle it with a trigger: CREATE TRIGGER one_session_per_user BEFORE INSERT ON sessions FOR EACH ROW BEGIN DELETE FROM sessions WHERE user_id = NEW.user_id; END; If you log in on a new device, the old session is deleted automatically. This was the moment I understood that a database can do much more than store data. We hashed passwords with bcrypt before saving them. At login, bcrypt.CompareHashAndPassword checks the password against the hash. It's simple, but it was my first real lesson in web security. Without React, we used fetch to: Like and dislike posts without reloading the page Add comments Load more posts when you scroll (infinite scroll) It was more code, but it showed me exactly what frameworks do for you. We used a multi-stage Dockerfile. The first stage compiles the Go program. The second stage is a small Alpine image that only contains the binary, the templates and the database. The final image is much smaller than one wit

Dev
Interesse
dev.to

Finding Dead Code Across Multi-File Codebases with AST Call-Graph Reachability

Traditional linters like ESLint do a great job finding unused variables within a single file. But when a function is exported, file-scoped linters give up, assuming some other module might import it. To detect truly dead functions across an entire project, TokenCap performs global call-graph reachability analysis in src/graph/deadCode.js. Symbol Catalog: Tree-sitter parses all functions, methods, and exported declarations. Call Edge Mapping: Every invocation (call_expression) is resolved to its target symbol. Root Traversal: Entry points (CLI binaries, route handlers, public package exports) are marked as root nodes. Reachability Sweep: Any internal function with zero incoming edges from any reachability root is flagged as dead code. tokencap ask impact --dead-code Output: Inspecting 94 files across 4 clusters... Found 6 uncalled internal functions: - src/utils/formatters.js:84: formatLegacyCurrency (0 callers) - src/services/oldAuth.js:112: hashWithMd5 (0 callers) - src/middleware/cors.js:45: legacyCorsFallback (0 callers) Potential token savings: 1,480 tokens pruned from context snapshots. By identifying and pruning dead code before passing context to an AI agent, you save token budget and prevent models from utilizing deprecated functions. Documentation available at tokencap.vansharora.app

Dev
Interesse
dev.to

Chromium Browsers Vulnerable to IDN Homograph Typosquatting, New Safeguards Needed

Despite recent security enhancements, Chromium-based browsers remain susceptible to typosquatting attacks leveraging homographic Internationalized Domain Names (IDNs). This vulnerability stems from the browser’s inability to reliably distinguish between visually identical Unicode characters from different scripts, enabling attackers to craft domains that masquerade as legitimate sites. Our analysis demonstrates this flaw through a live exploit targeting apple.com, revealing a systemic risk with far-reaching implications for user security. We registered the domain https://xn--80a6aa68c8d.com, which, when processed by Chromium’s rendering engine, visually mimics apple.com. This deception is achieved through homographic character substitution, where non-Latin Unicode characters (e.g., Cyrillic а or Greek α) are used to replicate Latin glyphs. The browser’s reliance on Unicode normalization and font rendering pipelines fails to detect this substitution, treating the homographic IDN as visually equivalent to the target domain. The causal mechanism is threefold: Impact: A user inputs apple.com but is redirected to a malicious site. Internal Process: Chromium resolves the Punycode-encoded IDN (xn--80a6aa68c8d.com) and renders it using font glyphs that map homographic characters to their Latin counterparts, bypassing script validation checks. Observable Effect: The user perceives the domain as legitimate, increasing susceptibility to phishing or credential theft. Chromium’s existing defenses—Punycode detection and script mixing checks—prove inadequate against this class of attack. The limitations are twofold: Punycode Detection: While Chromium flags domains prefixed with xn--, it fails to identify homographic characters embedded within the domain. For instance, aрple.com (where р is Cyrillic) evades detection due to its mixed-script composition. Script Mixing Checks: Chromium’s algorithm incorrectly validates domains using characters from the same script family (e.g., Latin

Segurança
Interesse
dev.to

AI Meeting Transcription in 2025: What Actually Works

AI meeting transcription has evolved at a breakneck pace over the past few years. By 2025, the landscape is both more impressive and more complex than ever. Developers and teams are faced with a dizzying array of solutions that promise to record, transcribe, and summarize meetings with minimal effort. But which tools actually deliver on accuracy, speaker diarization, and real-time performance? Let’s dig into the state of AI meeting transcription, demystify the technology, and compare real-world results so you can choose the right approach for your workflow. Remote work and hybrid meetings are now the norm. Teams distributed across time zones need reliable records of what was said, who said it, and what action items were decided. Manual note-taking is imprecise and time-consuming. Automatic transcription has become essential, driving demand for robust meeting transcription apps capable of handling everything from quick standups to multi-hour board meetings. There are several core features that determine whether an AI transcription solution is truly effective: Accuracy: How well does it transcribe diverse accents, jargon, and noisy environments? Speaker Diarization: Can it reliably distinguish between speakers, even in crosstalk or interruptions? Real-Time Capabilities: Does it provide live captions and instant search, or is there a delay? Integrations: How easily does it fit into your existing tools and workflows? Let’s break down each of these elements, with a focus on the current state of the art. At the heart of any meeting transcription app is automatic speech recognition (ASR). In 2025, most leading solutions leverage large, transformer-based models like OpenAI’s Whisper, Google’s Speech-to-Text API, or proprietary models from major cloud providers. These systems have improved dramatically in the following areas: Multi-language support: Models can now handle 50+ languages in real time. Domain adaptation: Custom vocabulary and fine-tuning for specific industries

IA
Interesse
dev.to

Resolving 'Released More Than Held' Error in Go Weighted Semaphore: Debugging and Correct Usage

Introduction to Weighted Semaphores in Go Weighted semaphores in Go are a powerful concurrency primitive, allowing multiple goroutines to share a pool of resources with varying weights. Unlike binary semaphores, which operate on a simple locked/unlocked basis, weighted semaphores track the total weight of acquired resources. This flexibility comes with complexity, particularly in managing acquire and release operations. Missteps here often lead to errors like "released more than held", a common pitfall for beginners. Mechanically, a weighted semaphore operates by decrementing its available resource count when a goroutine acquires resources and incrementing it upon release. The error occurs when the release count exceeds the acquire count, causing the semaphore's internal state to become inconsistent. This inconsistency is not just a logical error—it’s a violation of the semaphore’s invariant, leading to unpredictable behavior in concurrent execution. Consider the system mechanisms at play: Semaphore acquisition: A goroutine requests resources, decrementing the semaphore's count. If the requested weight exceeds the available resources, the goroutine blocks. Semaphore release: Resources are returned, incrementing the count. If the release weight is greater than the acquired weight, the semaphore’s state becomes invalid, triggering the error. Weighted semaphore logic: The semaphore tracks cumulative weight, not just binary state. This requires precise management of weights in both acquire and release calls. The risk of this error is compounded by race conditions. Go’s scheduler interleaves goroutine execution, meaning acquire and release operations can overlap unpredictably. Without proper synchronization, one goroutine might release resources before another has fully acquired them, or release more than it acquired. This race condition is a direct result of concurrent access to the semaphore’s shared state without adequate protection. To illustrate, consider the follow

Dev
Interesse
dev.to

I parsed 110,000 EU procurement awards. Half of them don't say when the contract was signed.

Every two months or so, the EU publishes an open archive of everything its public authorities bought — Tenders Electronic Daily (TED), the official journal of the day for EU procurement. In October 2026 I downloaded the complete monthly packages for July, August and September 2026 — 1.16 GB of eForms/UBL XML, 213,716 notices, of which 110,217 are award notices (the documents that say who won what). I wrote four small Python scripts, parsed everything in about ten minutes, and got numbers the official statistics don't show you. The rule: under Directive 2014/24/EU, Article 50(1), a contracting authority has 30 days to publish the award notice after the award is made. So a simple question: how often does that actually happen? Of the 110,217 award notices, 48,931 (44.4%) carry no usable award date. Not "late" — the field is filled with a sentinel value (the date 2000-01-01 and friends, the eForms schema's explicit "not stated" marker). What's interesting: in the September sample I checked the raw date values per notice — the sentinel appears in 73.7% of award notices as one of their dates, but only 44.1% of notices lack any usable date. The element is never absent; the authority actively says "not stated". Official TED statistics don't report this, so it's a data-quality finding in its own right: if you want to build a compliance or analytics pipeline on TED award data, nearly half of it won't have the field you want. For the notices that do state an award date, the picture is stable across all three months — this isn't a September artifact: Month Award notices No usable award date Within 30 days Later than 90 days Jul 2026 42,742 43.2% 45.9% 27.1% Aug 2026 32,317 45.0% 46.3% 22.2% Sep 2026 35,158 44.1% 47.2% 24.0% So: roughly half of dated award notices respect the 30-day window, and roughly a quarter publish later than three months. If you'd bet on "95% comply", you'd lose in every month. The first version of this analysis reported a blunt "24% are 90+ days late". Th

Dev
Interesse
dev.to

Your agent can read the dashboard. But can it do the paperwork?

Your agent can read the dashboard. But can it do the paperwork? Reading is where most agents stop. Ask one to create a record, fill out a form, or update a field — and it's back to reading pixels: find the input, guess the label, hope the layout didn't change. Move one field, rename one label, and the whole workflow breaks silently. You find out from a customer. HIVE treats forms and records as structured actions instead. A request comes in plain English; the agent gets the form's fields as typed actions — names, types, what's required — and fills and submits. Create, read, update: each one a declared action with a declared result. You see exactly what changed, and the agent sees it too. Structured actions don't care what the UI looks like. No pixel-hunting, no layout guesses, no quiet breakage when someone redesigns the page. And write access only goes as far as your permission rules allow. Destructive actions wait for a human yes. Demo video #2 covers the whole flow — form fill, then create, read, and update on a record — all without the agent ever looking at the screen. What's the form in your product an agent would break on first? AIAgents #AgenticAI #BuildInPublic #DevCommunity #SoftwareEngineering #AI

IADev
Interesse
dev.to

Panevrix: a Commander-style file manager in your browser

Panevrix, an open-source local file manager. It has the familiar two-panel workflow, keyboard controls, and a browser interface. A local Node.js process handles filesystem access; the browser provides the workspace. The project is aimed at developers who want to manage files and inspect binaries, logs, and build artifacts from the same interface. You need Node.js 20 or newer: npx panevrix@latest This starts a local server and opens the application in your browser. Keep the terminal running while you use it. You can also open two existing folders: npx panevrix@latest ./project ./backup Files stay on your machine. No account or cloud storage is required. Panevrix supports two independent panels, folder tabs, filtering, sorting, favorites, and keyboard navigation. Some useful shortcuts: Shortcut Action Tab Switch panels F3 / F4 View / edit text F5 / F6 Copy / move F7 Create a folder Shift+F3 Open the hex viewer Ctrl+I Show live item information Ctrl+J Open background tasks Visible buttons provide the same actions when a browser or operating system intercepts a shortcut. Version 1.1.0 includes: Background transfers: progress, cancellation, and stop/skip/keep-both conflict handling. Close the progress window and continue browsing. Large-file inspection: a read-only hex viewer with ASCII, bounded text decoding, byte-offset navigation, and hexadecimal-pattern search. File comparison: exact byte comparison that reports the first differing offset. SHA-256 hashing: streamed calculations without loading the entire file into memory. Live information: replace the inactive panel with details that follow the current selection. System monitoring: CPU, memory, process information, and application logs. Large folder listings use virtualized rows, so the browser renders the visible portion rather than creating a row for every file. For this project, a browser makes it convenient to combine keyboard-driven file management with readable inspection views, progress controls, and system ch

Dev
Interesse
dev.to

I stopped pasting my drafts into ChatGPT. Here's the offline Mac app I use instead.

Every time I wanted a sentence to sound better, I'd copy it, switch to a browser tab, paste it into a cloud AI, wait, copy the result, and switch back. That's five steps, and my unreleased work was going to someone else's server. So I built DraftKey. It brings AI writing help into the Mac apps you already write in, and the model runs entirely on your Mac. Write anywhere: email, Notes, Slack, whatever you use. Tap ⌘ + ⌥ and let go. Type "make it shorter" or "sound warmer," then review the rewrite and insert it. You don't need to select anything first, because it works on the paragraph you're in. As you type, autocomplete suggests the next words in compatible text fields. After a one-time model download, autocomplete and rewriting work offline. None of your text goes to a cloud AI service. You choose which apps it runs in, and it skips secure fields automatically. Clipboard history: Copied over something important? Press ⌘⌥V to search your recent copies and bring one back. It's stored locally and skips password-manager copies. Mechanical keyboard sounds: Every keystroke gets that satisfying click, and it works with the AI turned off. The site has a typing test with the keyboard sounds built in, so put on headphones and hear it for yourself. Then grab the app if you're on an Apple Silicon Mac with macOS 14 or later. 👉 Get DraftKey I'd love your feedback. Which app should I make sure it works perfectly in next?

IA
Interesse
dev.to

I built a Chrome extension for screen recording with automatic mouse zoom

I’ve been building a Chrome extension called Screen Mouse Recorder. The original idea was simple: I wanted to record product demos and technical walkthroughs without having to spend more time editing the recording than actually making it. The problem was that most screen recorders solve the recording part, but the editing workflow usually happens somewhere else. So I decided to build the recording + editing workflow myself. What it can do The extension is built with Manifest V3, TypeScript and React. For the backend I’m using Supabase for authentication, database and security policies, while video files are stored in Cloudflare R2. The recording/export pipeline uses browser APIs such as: MediaRecorder One of the more interesting challenges was getting the exported video to maintain a stable frame rate while applying cursor effects, zoom animations, camera overlays and other editing operations. I also had to deal with some fun browser/video edge cases around WebM metadata, duration detection and seeking. The goal is to eventually make the whole workflow feel more like: Record → Edit → Export → Share instead of: Record → Download → Open editor → Edit → Export → Upload → Share I’m still actively improving it. If you're building Chrome extensions or browser-based video tools, I'd be interested in hearing: What would you improve about this architecture? And if you regularly record coding tutorials, product demos or walkthroughs: What is the most annoying part of your current workflow? Chrome extension: https://chromewebstore.google.com/detail/ldenfjhiiedcdbofkapllglgokegohng

Dev
Interesse
dev.to

Where the four minutes go when a cluster adds a node

Autoscaling is usually described as a property a cluster either has or does not have. You add a HorizontalPodAutoscaler, you tick the box for node autoscaling, and from then on load is somebody else's problem. How long that somebody takes is the bit I could never find written down. I had a rough feeling it was "a minute or so" and no idea where the minute went. So I timed it. One pod, a burst of traffic it cannot handle alone, and a timestamp at each step until a second pod is answering requests. With spare room in the cluster the first extra pod was up in about 30 seconds. With no room, so that a node had to be added first, it was a little over four minutes. I had guessed wrong about where most of that time goes in both cases. I used DigitalOcean Kubernetes, version 1.36.3, on s-2vcpu-4gb nodes. The node pool autoscales between two and five nodes, which on DOKS is a flag you pass when creating the pool. I did not have to install or configure a cluster autoscaler myself. For the app I took hpa-example, the PHP image from the Kubernetes docs that does a pile of arithmetic on each request. It runs as one replica with a 200m CPU request and a 500m limit. The autoscaler targets 50% utilisation and may go up to five pods. fortio runs in the same cluster and hammers the service over six connections with no rate limit. Every time below is measured from the moment the load starts. The start is stamped by creating an object and reading back the timestamp the API server gave it, so the stopwatch and the pod timestamps come from the same clock. Eight trials. stage median range autoscaler makes its first decision 28s 25 – 43s first new pod ready 30s 27 – 46s autoscaler makes its second decision 43s 40 – 59s all five pods ready 46s 43 – 61s A new pod went from created to ready in one to three seconds. Scheduling was instant and the image was already on the node. So of the thirty seconds, about twenty-eight are spent waiting for the autoscaler to find out anything is wrong. That

InfraDev
Interesse
dev.to

Azure DevOps work items in Excel on a Mac: what works and what doesn’t

Disclosure: I'm the developer of Bulk Editor, one of the options mentioned below. Originally published on jr-devtools.com. Short answer: the Azure DevOps Excel integration (the Team tab, Open in Excel, Publish and Refresh) is a Windows-only COM add-in. It doesn't exist for Excel for Mac or Excel for the web. You can still get work items into a spreadsheet and back on a Mac; here's how. Run a query in Boards → Queries, open the … menu and choose Export to CSV. Excel for Mac (or Numbers) opens the file directly. Add columns to the query first with Column options, including Parent if you need the parent ID on each row. Watch out: rich-text fields such as Description are exported as raw HTML, and the export is a snapshot. Nothing links it back to Azure DevOps. Save the edited sheet as CSV (UTF-8) and import it with Boards → Work items → Import Work Items. Rows with an ID update existing work items; rows without one create new items. Keep the ID and Work Item Type columns, and remove columns you didn't change so you don't overwrite fields by accident. Two things to know: errors only show up during the import, and the import doesn't check whether someone changed a work item after you exported it. Their change is overwritten. For "move these 40 items to the next sprint", you don't need a spreadsheet at all. Select the items in a query or backlog, open the context menu and choose Edit to set one or more fields for all of them. If you want the spreadsheet experience without the round trip, Bulk Editor (made by me) opens a query or backlog selection in an editable grid inside Azure DevOps Services, so it works the same on a Mac, Windows or Linux: type in cells or paste a block copied from Excel for Mac; pick lists, required fields and area/iteration paths come from your process, and invalid values are flagged before you publish; a row that someone else changed in the meantime is refused instead of overwritten; export a clean .xlsx without HTML tags, and (Pro) import it back.

DevInfra
Interesse
Phoronix

Star Labs StarFighter Ultra: A Modern High-End Linux Laptop With Coreboot

When it comes to Linux pre-loaded laptops, I have looked at hardware from most of these vendors over the past 22+ years of Phoronix. One vendor I haven't had the chance to personally test until now is the UK-based Star Labs. That changed recently and over the past few weeks I have been testing out their new StarFighter laptop that offers great Linux support and comes pre-loaded with Coreboot and streamlined firmware updates via LVFS. For those after a high-end mobile workstation, the Star Labs StarFighter offers a lot of performance potential while being open-source friendly and with Coreboot in tow.

Linux
Interesse
dev.to

Sitecore Search API Key Authorization - How We* Tackled It

Sitecore sent out an email yesterday that was actually a "kick the can" email, regarding a mandatory API key authorization for Search and Events APIs. Originally, this was supposed to go live mid-October 2026, and now it'll be mid-December. The first email went out a month or two ago, and support offered to change a non-prod environment to enforce the rule for testing. So we went through all that, and because I just saw someone on Slack noting the email and seeming concerned, I thought I'd offer up our solution. Right now, because the Sitecore Search widget provider (from the React SDK to be clear) is client-based, it wants the Search customer key and API key in the NEXT_PUBLIC realm, so the browser can read it. But that does a bit of a no-no, exposing an API key. So I think this is designed to get around that, and our solution does that as well. Basically, we created a new widget provider object, which takes the customer key and a generated, authorized API key, and feeds those in instead. When I say "we" I mean me and Claude Code - this was worked on with AI, but has been tested in a Sitecore Search non-prod environment that was configured to be "locked down" already, and we've had no issues with our search authorization. So let's start with that widget, which we put in a "shared" folder application/nextjs/src/components: "use client"; import { type ReactNode, useCallback } from "react"; import { WidgetsProvider, type Environment } from "@sitecore-search/react"; import { setCredentials } from "@sitecore-search/core"; import env from "@/lib/env"; // Refresh this long before the token's reported expiry, so a request that // starts just before expiry never races a token that's about to go stale. const REFRESH_MARGIN_MS = 5 * 60 * 1000; // Mount-time bootstrap value for WidgetsProvider's `apiKey` prop — needed only // to pass the SDK's own synchronous "!apiKey && !serviceHost" config check at // mount (see SitecoreSearchConfig.js); requestMiddleware overwrites it via /

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

Your AI Does Not Read Your Prompt. It Places Bets on It.

Watch the 40-second version: How Transformers Predict Your Next Word Here is the uncomfortable truth about the most sophisticated software you have ever used: it has never once known what it was saying. A transformer takes your prompt, turns every word into a coordinate in a giant space of meaning, runs attention over the whole mess to decide which words deserve to influence the answer, and then rolls weighted dice. One token at a time. Fifty-ish times a second. That is it. There is no little reasoning engine in there double-checking facts. There is a probability distribution and a sampling function. Once you see next-token prediction as the mechanism, the famous quirks stop being mysteries and start being obvious consequences. Bad at math but good at vibes? Math needs exactness; dice need distribution. Asking a token predictor to do arithmetic is like asking a vibe generator to file your taxes. It can approximate the shape of a correct answer, which is why 2+2=4 works and your mortgage amortization does not. Hallucination is not a bug. It is the mechanism working exactly as designed. The model was trained to produce the most plausible next token, not the most true one. Truth and plausibility overlap often enough to fool you, and diverge exactly where you cannot verify. "Confidently wrong" is just what sampling looks like when the stakes are high. And the non-obvious angle nobody tells you: this is why prompt engineering works at all. You are not "talking" to the model. You are biasing a probability distribution. Every example you add, every constraint you write, reshapes the odds of the next token. Prompting is statistics with a user interface. You cannot make a transformer reason. But you can rig the bet. Copy this before any task where correctness matters: Lower the temperature to 0 for factual tasks. High temperature is the model brainstorming. You do not want brainstorming from your accountant. Demand structure. Ask for JSON, tables, or numbered steps. Format c

IA
Interesse
dev.to

I built a game that replaces doomscrolling with quizzes, hidden history, and brain puzzles

I kept catching myself doomscrolling, so I built something to replace it: CurioQuest, a free web game where curiosity earns you XP. 👉 Try it: https://curio-quest-phi.vercel.app/ 🏛️ Forgotten Wonders: stories about obscure history and nature mysteries (the Antikythera Mechanism, the Dancing Plague of 1518, Göbekli Tepe), each with a 3-question quiz 🔬 Science Fact Lab: rapid true/false facts with sourced explanations and accuracy streak multipliers 🧩 Brain Games: memory match, word scramble, math sprint, and a daily cipher puzzle 🌍 World & Tech Pulse: live news cards plus a 3-question daily quiz Everything feeds one progression system: XP, unlimited levels, daily streaks with a calendar, 12 badges, 32+ collectible museum relics, and two leaderboards (points and streaks). Stack: React + TypeScript, built with Google AI Studio and Gemini Live news: a server-side endpoint calls Gemini with Google Search grounding, so cards come with citations and source links Feedback: procedural sounds with the Web Audio API, haptics with navigator.vibrate, and confetti on rewards Auth: salted and hashed passwords with session tokens, plus guest mode that saves progress when you sign in Hardening: security headers, an in-memory rate limiter, and a request body size limit Streak logic is trickier than it looks. Missed days, same-day logins, and migrating old saved state all needed careful handling. I had fake multipliers on the leaderboard early on and replaced them with real per-day XP tracking, so the timeframes now come from actual activity. Gemini works well for current-events content only when it's grounded with search and sources. Does the XP and leveling feel motivating or too grindy? Which game mode or content category should come next? Anything confusing or broken? Thanks for reading!

GamesDev
Interesse
dev.to

How to Configure ViciDial Caller ID (CID) Settings Per Campaign

How to Configure ViciDial Caller ID (CID) Settings Per Campaign Master per-campaign Caller ID configuration in ViciDial/Asterisk to control outbound number presentation, dynamic CID routing, and compliance-driven number assignment across multiple campaigns. Before you begin configuring ViciDial Caller ID settings per campaign, ensure the following: ViciDial 2.14+ installed and running (this tutorial covers 2.14-2.17) Asterisk 11+ compiled with ViciDial patches Direct database access (MySQL/MariaDB) to the asterisk database SSH access to the ViciDial server with sudo privileges Carrier/trunk configuration already established with available DID numbers Understanding of basic ViciDial campaign structure and dialplan concepts PHP web admin access (/vicidial/admin.php) Verify your ViciDial version: sudo -u asterisk cat /etc/asterisk/vici_domains.conf | head -20 Check Asterisk is running: sudo asterisk -rx "core show version" ViciDial handles Caller ID assignment through a hierarchical system with multiple fallback points. Understanding this chain is critical for proper configuration. When an agent dials a lead in ViciDial, the system determines which number to present in this order: Campaign-level CID (if configured in campaign settings) User/Agent-level CID (if assigned to the specific agent) Carrier CID (numbers assigned to the outbound carrier/trunk) Server default CID (fallback number configured at server level) Trunk/Channel default (last resort from Asterisk trunk config) This hierarchy allows fine-grained control. A campaign can override agent settings, but agents can still have their own CID if the campaign isn't strict. Three primary tables govern CID behavior: vicidial_campaigns — campaign-wide CID settings vicidial_users — agent-specific CID overrides vicidial_carrier_log — outbound carrier trunk configurations The quickest method for most ViciDial administrators is through the web interface. Log in to /vicidial/admin.php as a user with campaign edit permissio

InfraDev
Interesse
dev.to

Taming the Exchange API: Handling -4509 Errors and the F-065 Retry Mechanism in Quant Systems

Taming the Exchange API: Handling -4509 Errors and the F-065 Retry Mechanism in Quant Systems Tags: #algotrading #crypto #ai #buildinpublic It was 00:52 AM. The AI-driven trading system was humming along, executing its nightly routines. The scoring engine identified a favorable momentum shift and initiated an F-520 command to tighten the stop-loss for a NILUSDT LONG position. The system expected a clean, sub-millisecond execution. Instead, the exchange slapped it with a BinanceAPIError (code=-4509). The error message was blunt: "Time in Force (TIF) GTE can only be used with open positions. Please ensure that positions are available." Panic? Not quite. But it was a stark contradiction. Our local state manager clearly showed an open, fully funded position for NILUSDT. How could the exchange claim the position didn't exist? This incident perfectly encapsulates the hidden complexities of managing exchange API states, where microsecond-level sync delays can turn a routine operation into a critical failure. In algorithmic trading, developers often fall into the trap of treating the local in-memory state as the single source of truth. We track order statuses, calculate positions, and update our internal ledgers. However, the exchange is a highly distributed, asynchronous system. Between our trading engine dispatching a request and the exchange's matching engine processing it, a temporal gap exists. Network latency, internal exchange routing, and order matching queues create a "hidden state." When our local state and the exchange's state diverge, even for a few milliseconds, edge cases emerge. Understanding and engineering around these micro-state discrepancies is what separates fragile scripts from production-grade quant infrastructure. Let’s dissect the -4509 error. The GTE (Good Till Expiring/Cancel) Time in Force is specifically designed for algorithmic orders (like trailing stops or conditional orders) that need to remain active until a specific condition is met. The e

Dev
Interesse
dev.to

Trail Notebook: Birding Offline with BirdNET and Gemma

Description A local-first birding journal that turns trail recordings into BirdNET detections and AI-written notes, without uploading your audio. Post Content This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass. Trail Notebook is an offline field journal for people who want to remember the sounds of a walk without spending the walk looking at a screen. The idea is simple: record birdsong while outside, put the phone away, and analyze the recording afterward. BirdNET identifies candidate bird calls. Then a local language model turns those detections into a short journal entry, saved as Markdown with a species table, confidence scores, and timestamps. The video walkthrough is in the project README. BirdNET, through birdnetlib, analyzes the selected recording locally. Ollama runs the journal-writing model locally. The default is gemma3:4b. The prompt grounds the journal in the species BirdNET detected instead of asking the model to invent observations. Recordings can be selected from a file picker, chosen from the Recordings folder, or passed in batches. Journals are saved as Markdown files named from their recordings. Bird recordings and location details can be personal. Processing them locally means I don’t have to upload them to a service I don’t control. After setup, the workflow can run without an internet connection or per-request API charges. Using an open-weight model also gives me control over the writing step: I can change the model or prompt without replacing the bird-detection pipeline. The model helps organize the results; it does not determine what was actually present. BirdNET can misidentify calls, especially in noisy recordings. Confidence scores are useful context, not proof, so detections should be checked against the recording and the generated journal should be reviewed. The built-in demo uses sample detections to show the output format; they are not real field observations. The setup instructions and source code

IADev
Interesse
dev.to

Trail Quest: Private, On-Device AI for Nature Walks

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass Trail Quest is a mobile-first web app that turns a little time outdoors into a nature-spotting quest. Choose a setting—such as a park, garden, neighborhood, trail, or balcony—and a time limit. Trail Quest gives you three observation challenges, then encourages you to put your phone away and explore. You can complete or skip challenges, keep private reflection notes, and save completed walks in a local nature journal. There’s also a high-contrast sunlight mode for using the app outdoors. Try Trail Quest: https://trail-quest-l6yb.onrender.com Source code: https://github.com/Anvi-2006/trail-quest Trail Quest uses WebLLM to run the open-weight SmolLM2-135M-Instruct-q4f16_1-MLC model in the browser with WebGPU. Quest generation happens on the user’s device, so the user’s setting and prompts aren’t sent to an AI API. If the model can’t run on a device, Trail Quest offers clearly labeled handcrafted quests instead. Handcrafted mode works offline. AI mode needs an initial model download; after that, the browser can reuse its cached model for local generation, subject to browser storage and WebGPU support. I built the interface around a short, accessible flow: choose a setting and duration, get three quests, and then switch to a “phone away” screen. The app also includes safety guidance, local journal storage, Markdown export, and synthesized chimes made with the Web Audio API. The open-weight model and browser-based inference make this experience possible without sending a person’s outdoor plans to a hosted AI service. The model can be inspected and swapped, and the handcrafted fallback keeps the app useful when AI inference isn’t available. That matters for an app whose goal is to help people pay attention to the world around them: it can keep personal inputs on-device, reduce dependence on a paid API, and let the community adapt the experience for different models and devices. Best Use

IADevMobile
Interesse
dev.to

Stop managing six AI vendor accounts: one key for 109 models

The migration is two lines If your code already uses the OpenAI SDK, a gateway that speaks the OpenAI wire format requires exactly two changes: from openai import OpenAI client = OpenAI( base_url="https://api.liurun.click/v1", # was "https://api.openai.com/v1" api_key="sk-your-liurun-key", # was your OpenAI key ) resp = client.chat.completions.create( model="claude-sonnet-5", # any of 109 models, same call shape messages=[{"role": "user", "content": "Explain WAL in Postgres"}], ) print(resp.choices[0].message.content) That model string is now the only knob between vendors. A fallback chain becomes a list, not a architecture project: MODELS = ["claude-sonnet-5", "gpt-5.5", "deepseek-chat"] # try in order curl https://api.liurun.click/v1/chat/completions \ -H "Authorization: Bearer sk-your-liurun-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-2.5-flash", "messages": [{"role": "user", "content": "Say hi in 3 words"}], "stream": true }' Streaming is standard SSE — data: lines, data: [DONE] sentinel, nothing exotic. The gateway also accepts the Claude-format /v1/messages endpoint. So the Anthropic SDK works with a base URL swap: import anthropic client = anthropic.Anthropic( base_url="https://api.liurun.click", api_key="sk-your-liurun-key", ) msg = client.messages.create( model="claude-sonnet-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello, Claude"}], ) Every request gets logged with its exact token counts and its exact cost. Not "credits" — dollars and cents, computed from a per-model price table that's published in full on a public pricing page: Model Input $/1M Output $/1M Claude Sonnet 5 1.45 7.27 Claude Opus 4.6 3.63 18.16 GPT-5.5 2.72 16.35 Gemini 2.5 Flash 0.16 1.36 DeepSeek Chat 0.36 1.45 Grok 4.5 1.09 3.27 GPT-6 Luna (budget) 0.05 0.27 Prompt-cache reads on Claude models bill at 10% of the input rate — cache-friendly agents stop being a budget gamble. Image models bill per image (GPT-Image-2 ≈ $0.051/image). Billing is prep

IADev
Interesse
dev.to

From Docker to Kubernetes: When Docker Stops Being Enough

You learned how to build an image. You can start a container: docker run myapp You can inspect it, read its logs, attach volumes, configure networks, set resource limits, add health checks, and harden its security. Then Docker Compose helps you run several services together. So why does Kubernetes exist? If Docker already does a good job of running containers, what problem is Kubernetes actually solving? The answer becomes clearer when one container becomes hundreds. Imagine a simple web application. User │ ▼ Web Container │ ▼ Database Running it is straightforward: docker run myapp Nothing complicated yet. Now traffic increases. You need several application instances. Then the application itself grows: Frontend API Database Redis Background workers Monitoring Logging components Docker Compose can describe and run these services together: docker compose up For development and many single-host environments, that's extremely useful. But then another requirement appears: The application can no longer live on one machine. Imagine you now have 100 containers that need to run across 10 machines. Suddenly, docker run isn't the difficult part. The difficult questions are: Which machine should run each container? What if that machine fails? What if one container crashes? What if traffic suddenly triples? How do applications find containers that are constantly being replaced? How do you update 50 instances without taking everything offline? At this point, the problem has changed. You're no longer dealing primarily with a container problem. You're dealing with an orchestration problem. A useful simplified progression is: This doesn't mean: Docker = beginner Kubernetes = advanced Docker They're solving different layers of the problem. Docker gives you tools to build and run containers. Kubernetes gives you a system for coordinating containerized workloads across infrastructure. And that changes the question you're asking. With Docker, you might say: docker run myapp You're dire

InfraDev
Interesse
dev.to

Enclosing a Startech 19U Rack: Materials and Methods for Noise Reduction and Proper Air Circulation

Integrating a Startech 19U rack into a residential setting demands a nuanced approach to address two critical challenges: noise containment and thermal management. The rack’s cooling fans, operating at 30–40 dB(A) under load, generate noise levels incompatible with apartment living, while their function is essential for dissipating heat from high-performance components. This dual problem necessitates a solution that simultaneously mitigates sound transmission and ensures adequate airflow to prevent thermal throttling or hardware failure. Material selection and construction techniques are pivotal in achieving this balance. Medium-density fiberboard (MDF), valued for its density and sound-blocking properties, can effectively attenuate noise but poses a risk of airflow restriction if not strategically vented. Conversely, a 1x2 wooden frame provides structural integrity but requires precise integration of soundproofing materials to suppress panel resonance—a phenomenon where sound waves excite panel vibrations, amplifying noise. Failure to address these factors results in compromised equipment performance or insufficient noise reduction, undermining the enclosure’s purpose. Improper enclosure carries significant risks: thermal throttling occurs when restricted airflow allows heat to accumulate, triggering protective mechanisms that reduce component performance or cause shutdowns. Simultaneously, inadequate soundproofing permits noise leakage through gaps or resonant surfaces, negating the enclosure’s intended benefit. This article examines practical DIY solutions grounded in the physics of sound transmission and convective heat transfer, empowering hobbyists to integrate professional-grade equipment into residential spaces without sacrificing functionality or comfort. By dissecting the interplay between material properties, structural design, and physical principles, readers will gain actionable insights to construct enclosures that maintain optimal equipment operation

Infra
Interesse
dev.to

Build a Voicemail Generator with ElevenLabs API

Overview When you’re building a contact‑center or a smart‑home system, the last thing you want is an empty voicemail box. A little voice‑AI can turn a static “no answer” message into a personalized, dynamic greeting that feels like a real person. In this post we’ll walk through how to create a Voicemail Generator using the ElevenLabs Text‑to‑Speech (TTS) API. We’ll cover everything from authentication to generating a voice‑cloned message, then bundle it into a simple Flask app that can be called via webhook or a REST endpoint. The result? A lightweight service that lets you generate a voicemail audio file on the fly, using the same high‑quality voices you can clone with ElevenLabs. Let’s dive in. Item Description Python 3.8+ For the example code pip To install dependencies ElevenLabs API key Sign up at https://try.elevenlabs.io/kr07zfuqn1bp Basic knowledge of Flask We’ll expose a simple HTTP endpoint Tip: If you’re new to ElevenLabs, the link above gives you a free trial with credit to test the API. ElevenLabs offers a powerful, low‑latency TTS endpoint that supports voice cloning, speaker embeddings, and a large library of natural‑sounding voices. The API is REST‑based, so you can call it from any language. Visit https://try.elevenlabs.io/kr07zfuqn1bp. Create an account or log in. Navigate to the API Keys section and copy the key. Store it in an environment variable for security: export ELEVENLABS_API_KEY="sk_your_key_here" curl -X POST "https://api.elevenlabs.io/v1/text-to-speech/eleven_monolingual_v1" \ -H "xi-api-key: $ELEVENLABS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"Hello, this is a test."}' You should receive an audio stream in the response body. Great! You’re ready to embed this into an app. ElevenLabs lets you clone a voice by providing a short audio clip. For a voicemail system, you might want to use a company‑wide voice (e.g., a receptionist) or a custom voice that matches your brand. import requests import os API_KEY = os.getenv("E

IADev
Interesse