Painel de Notícias

Tecnologia

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

Filtros
The Verge

Tesla’s Model 3 and Model Y can be a backup battery for your house

Some Tesla Model 3 and Model Y owners can use their EV battery to keep the lights on longer during a power outage, now that Tesla's expanding the Powershare Home Backup feature. It was previously only available on the Cybertruck, and also requires owning Tesla's Powerwall 3. However, support for the Powerwall 2 and Powerwall Plus is "coming soon." Tesla's EVs aren't the first or only ones with bidirectional charging; companies like Kia and GM also offer vehicle-to-home power on their vehicles, while Nissan's Leaf offered power-to-grid charging years ago. Tesla says the Model 3 and Model Y can extend home backup power to over two days for Pr … Read the full story at The Verge.

Geral
Interesse
dev.to

Before You Change an App Listing, Write a Measurement Contract

A store listing test is easier to interpret when the team decides what success means before changing the creative. Here is a small measurement contract an app team can keep beside its release notes. Example: showing the core workflow in the first screenshot will make the benefit clearer than an abstract headline. This is a hypothetical test, not a reported client result. Identify the element you will change and the audience it is meant to help. Record the store, reporting screen, metric label, definition, date range, territory, language, and user segment. Keep a baseline export. Avoid combining two charts just because both use a word such as conversion: their denominators and populations may differ. Listing edits can coincide with app releases, campaigns, pricing changes, publicity, and outages. Log those events with dates. A before-and-after increase is an observation; it does not establish that the listing change caused all of it. Google Play supports experiments for listing graphics and text, with results tied to the chosen target metric. Its documentation recommends changing one asset at a time and explains confidence intervals and minimum detectable effects. Check the current console rather than assuming the test setup stayed the same. A screenshot experiment addresses the response to that tested creative among the exposed audience. It does not automatically answer whether search visibility, retention, or revenue improved. Use a short template: Hypothesis and audience: Control and changed element: Primary metric and exact definition: Product guardrail: Concurrent changes: Evidence needed for rollout: Result and remaining uncertainty: Treat a draw or an insufficient-data result as a reason to inspect the evidence, not an invitation to invent a winning narrative. If a controlled test is unavailable, describe the comparison as directional and record its limits. A clearer listing should set an expectation the product can deliver. Review activation and retention sep

Mobile
Interesse
dev.to

I Built a Dating App That Starts From Side Projects, Not Selfies — in 2 Hours

What if you met someone through what they build with AI — before seeing their photo or job title? That was our experiment for Coffee Meets Codex, built at DevDay Exchange Community Hack Day: Taipei on Oct 4. We got 3rd place — voted by other builders, not judges. This is the technical breakdown of how we did it in a few hours, and why our agent kept building after we stopped. Most social apps start with a profile. We flipped it: Start with projects, curiosities, experiments — the strange little things someone cared enough to build. Then let people decide what comes next — friendship or something more. Friend and Lover are separate, explicit choices. Always your choice. We had to turn that into a working prototype with a live 1-min demo. Winners were picked by every checked-in attendee ranking their top 3 teams (excluding their own) on: usefulness creativity convincing working demo No judging panel. That meant a lot. Fictional Friend / Lover daily brief (no real people in demo) Profile + project links, owner-supplied, no scraping Consent / withdraw / block built-in 18+ only Stack: React 19 / Vinext Cloudflare Workers + D1 Sites-managed ChatGPT identity for auth Static showcase: showcase/ -> docs/ on GitHub Pages Full app: app/, lib/, db/, drizzle/ We split it into two targets on purpose: Showcase (static, no login): so anyone can understand it in 30 seconds https://andydrewie.github.io/coffee-meets-codex/ Real app (login required): for actual profiles and actions Build the showcase with zero deps: \bash \ The app worked, but Andrew's Owen saw the gap: a working product still needs to be understood by someone who wasn't in the room. So it kept going and built the public showcase around it: demo film: https://www.youtube.com/watch?v=maVYbw1YPMk fictional Friend / Lover previews clear handoff into the real app That hit me: Shipping is not the moment the code works. It's when someone else understands why it exists. Owen helped us cross that distance from "we built this"

Dev
Interesse
dev.to

Top IoT Development Tools & Platforms for 2026

Developing Internet of Things (IoT) applications requires a balanced combination of hardware controls, low-latency protocols, real-time data ingestion, and cloud-scale infrastructure. With dozens of tools flooding the market, choosing the right tech stack can be overwhelming. Here is a curated breakdown of the top IoT development platforms and tools in 2026, categorized by their primary role in the ecosystem. Best for: Fast device management, seamless telemetry ingestion, and rapid UI dashboard creation. Key Features: Real-time MQTT message broker, end-to-end device onboarding, automated alerting systems, and customizable telemetry visualization panels. Pros: Exceptionally quick setup time, clean interface, and minimal infrastructure setup to get edge devices streaming data. Cons: Designed for agile projects and growing device fleets; massive enterprise deployments may require specific integrations. Best for: Enterprise-grade cloud infrastructure, high scalability, and serverless integration. Key Features: Native support for MQTT, HTTP, and WebSockets. Seamlessly integrates with AWS Lambda, DynamoDB, and Greengrass for edge computing. Pros: Unmatched scalability, robust security mechanisms, and granular device shadow policies. Cons: Steeper learning curve and complex pay-per-message pricing model for beginners. Best for: Enterprise deployments and hybrid-cloud/edge architectures. Key Features: Built-in support for Azure Digital Twins, real-time stream analytics, and hardware-level security via Azure Sphere. Pros: Fantastic developer experience if you are already inside the .NET / Azure ecosystem. Cons: Can become expensive quickly under heavy message volumes. Best for: Custom open-source dashboards and telemetry analysis. Key Features: Drag-and-drop dashboard builder, built-in rule engine for alerts, and multi-protocol support (MQTT, CoAP, HTTP). Pros: Can be easily self-hosted using Docker or deployed as a managed cloud service. Cons: Advanced features like multi-t

InfraDev
Interesse
dev.to

One crop does not fit all: framing vertical clips by video type, on the user's PC

We build LunarClip, a Windows app that turns long videos into short vertical clips. The obvious way to make a 9:16 clip from a 16:9 video is a center crop, or a crop that follows the biggest face. Both work for a talking head and fail almost everywhere else. This post covers the two decisions that shaped the app most: the crop depends on what the video is about, and the heavy work happens on the user's own computer. A 9:16 window over a 16:9 frame keeps only about a third of the width. What belongs in that third depends on the genre: In a stream, the important things are in two places at once: the streamer's webcam in a corner and the gameplay in the middle. Any single crop loses one of them. In sports, the subject is the ball and the players around it, not the largest face. A face-following crop happily tracks a spectator. In a podcast, two people talk back and forth. A crop that jumps to whoever spoke last feels nervous, and a crop that sits on one person misses half the conversation. In an everyday or food video, the important object is often not a person at all: the pan, the plate, the product. So the app has a framing rule per video type. Type Rule Game The streamer's webcam goes on top showing only the person, and the gameplay fills the rest, wherever the webcam sits in the source. Sports Follows the ball and the players around it, switching between close-up, medium, wide and full-frame shots. Podcast Split screen for back-and-forth, one speaker for monologues, and a wide shot when everyone talks. Switching is deliberately calm. Normal No automatic split. Keeps food and products in frame, and still zooms in on a person talking to camera. Auto Picks the type from the title, tags, description and sound, and falls back to Normal when it is unsure. Two things we learned while building these rules: Genre detection should fail safe. When Auto cannot tell what a video is, it falls back to the plainest rule. A wrong split screen on a cooking video looks far worse than

Dev
Interesse
dev.to

Automating Weekly Multi‑Channel Drafts with a Node‑JS Content Generator

Automating Weekly Multi‑Channel Drafts with a Node‑JS Content Generator TL;DR: I built a tiny Node script that pulls data from ClickUp, renders markdown templates, and drops ready‑to‑publish drafts into content/…/medium_*.md and substack_*.md. The change lets the repo self‑generate a weekly newsletter and platform‑specific articles on every push, cutting manual copy‑paste to zero. Every Monday I had to copy the same set of metrics (alerts, deadline breaches, Chromecast disconnect counts) into three separate markdown files: content/…/medium_en.md – for Medium content/…/substack_en.md – for Substack content/…/weekly/…_newsletter_en.md – for the email list The process was error‑prone (typos, missing sections) and time‑consuming (≈30 min per week). Moreover, the metadata.json flag that tells the CI pipeline whether a draft had been generated was being edited by hand, leading to false positives ("medium_generated": false stayed false even after the file existed). The symptom was a CI job that always reported “nothing to publish” even though the drafts were on disk. My first attempt was a Bash one‑liner that concatenated a static header with a CSV export from ClickUp: echo "# Weekly Report" > content/weekly/2026-09-27_newsletter_en.md cat alerts.csv >> content/weekly/2026-09-27_newsletter_en.md It worked for the newsletter but failed for Medium and Substack because those platforms need front‑matter (YAML) and different section ordering. I tried to duplicate the script three times, each with slight tweaks, but quickly ran into: Duplication – any change to the layout required editing three scripts. Encoding bugs – the CSV contained UTF‑8 emojis that Bash mangled, causing broken characters in the generated markdown. At this point the repo was more fragile than the manual copy‑paste. repo/ ├─ scripts/ │ └─ generate-content.js # ({ title: g.name, count: g.metrics[0].value, description: g.description, })); } // -------------------------------------------------- // 2️⃣ Compile a

Dev
Interesse
dev.to

Speech-to-Text API Timeout or Staged Upload — Choose Staging for 3 Large Audio Gates

Short answer: stage long logistics recordings before transcription when any of three gates fails: the selected service is not ready, the estimated multipart request exceeds your tested intake limit, or the request cannot be attributed to a tenant before spend occurs. Use direct submission only when readiness is positive, size is bounded, and tenant metadata survives the whole path. A longer timeout cannot repair a failed readiness or upload gate. This choice keeps the application contract stable while the provider behind transcription changes. It also gives finance and operations a durable tenant key for usage reconciliation instead of asking them to infer ownership from a shared invoice. A speech-to-text request has at least two operational phases: moving bytes and running inference. A large multipart body can fail during connection setup, proxy traversal, or upload, before a model sees one audio frame. Calling every timeout an inference timeout produces the wrong retry policy. Start with readiness. Infrai's transcription route has the expected /v1/audio/transcriptions shape, but its model catalog currently marks ASR unavailable. It is therefore ineligible for transcription now; a larger deadline and repeated probes do not change that state. The platform's broader contract is relevant to the design because it keeps application code stable when vendors move behind a capability, while per-call cost, vendor, latency, and request metadata support attribution for capabilities that are ready. Readiness still wins. Next, separate upload failures from model failures. An upload rejection or client deadline while sending bytes belongs to intake. A rate limit after a completed upload is a transient service response. An unavailable-capability response is terminal until discovery changes. One generic transcription_failed event makes an incident harder to reconstruct. Details matter. Keep the client deadline short enough to return control to the worker and present a clear fallba

InfraDev
Interesse
dev.to

Jev vs LLM: How They Actually Work Differently

Most developers reach for an LLM for almost everything: classification, routing, scoring, decision making. It works. In September 2026, TypeSafe AI released Jev, a model built only for decisions. Here is the real difference. LLM: reads the prompt, writes the answer one token at a time, and leaves you to parse the text. Jev: reads the state once, answers every question in a single parallel pass, and returns typed values with probabilities. Nothing to parse. Metric Jev LLM Latency 70-500 ms 3-30+ seconds Cost $0.042 / M tokens $0.20-$10 / M + output Output Typed decision Free-form text Needs parsing? No Yes Jev when you need a decision: classify, route, score, yes/no LLM when you need generation: writing, reasoning, explanation Most real systems should use both. Bottom line: Stop using a generation model for decision work.

IADev
Interesse
Phoronix

Mold 3.0 High Speed Linker Released Following Rust Rewrite

The Mold high speed linker alternative to the likes of GNU Gold/LD and LLVM LLD recently has been going through a rewrite from C++ to Rust as well as having high ambitions of eventually becoming the default linker on Linux systems. Today marks the release of Mold 3.0 for this Rust-based high performance linker...

DevInfraLinux
Interesse
dev.to

Why I Chose a Simple Capability Token for Waitless — and When I Would Harden It

While working on Waitless, I needed customers to be able to track their position in a queue and leave the queue without creating an account. That led to a small but interesting security design question: How can I authorize an anonymous user without introducing a full authentication system? My current solution is deliberately simple: each queue entry receives a random UUID token, and that token is used as a capability for the tracking link. A sequential identifier could look like: /track/123 The problem is that IDs such as 123, 124, and 125 are predictable and enumerable. For an anonymous tracking system, I don't want a user to be able to guess another customer's resource simply by changing the ID. Instead, an entry has a separate token: model Entry { id String @id @default(uuid()) token String @unique @default(uuid()) name String email String? position Int status EntryStatus @default(WAITING) queueId String // ... } The public URL therefore looks more like: /track/550e8400-e29b-41d4-a716-446655440000 The important point is that the token is not intended to be an ordinary identifier. It acts as a capability. A capability can be thought of as: An unguessable secret that grants access to a specific resource. In my case: possess valid token ↓ access this queue entry The capability is deliberately designed to be difficult to guess. That is different from simply hiding a sequential ID and hoping nobody discovers it. This distinction matters: Security by obscurity → "Nobody knows the ID." Capability-based design → "Access requires possession of a deliberately unguessable credential." The second is a much more intentional security model. Waitless is an anonymous queueing system. A customer does not need an account, password, or traditional login just to: see their position receive queue updates leave the queue Introducing a complete authentication system would add considerable complexity to the product and to the user experience. For the current use case, a capability link

SegurançaDev
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

Data Modelling, Relationships And Joins In Power BI

Introduction This article takes through the ideas that decide whether a model works as intended Schemas; how table are organized Relationships; how the model connects tables Joins; how tables are physically combined in power query Each section on this article explains the concept, shows with an example and guidance on when to use each one of them. Data modelling in power BI is the process of connecting separate data tables together so that they can have a connections with each other and produce accurate answers for business questions and demands. Analytics - The data model is flexible and fully integrated, numerical metrics can be grouped or filtered by categorical attribute(dimensions like date) without hitting broken relationships and rigid hierarchies. User interface is easier to navigate and data fields are logically organized and named so that business user can easily locate metrics and categories without strain. DAX Calculation - When one has a well designed data model theres no need to write complex formulas and codes to tell measure on how to filter data. Performance - Having a well designed data model impacts the performance by preventing the model from hitting memory limits and faster data refreshes and a quicker visualization on reports. Scalability - As the data model get bigger a lean one allows facts, dimensions and data sources to seamlessly integrate into the model without requiring a full report or have a model redesign. Maintainability - A well designed data model makes it easier to debug, update, and manage over time without breaking existing reports. 1) Flat Table Advantages Faster to build, is exactly what a CSV export or database view already looks like. No relationships to configure Easy to understand and analyze Disadvantages Redundancy, storage of exact piece of information or repeated attributes values across multiple tables inside the data model instead of being organized into one relatable table. Mixed Grain, a data model or table is comb

Dev
Interesse
dev.to

Couchy: a companion with a real voice so my grandmother never misses a pill

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend This is an app that I built thinking of my grandmother. She used to have a lot of problems taking her pills because she could not remember neither when nor how to take them. And now I built something that could have helped her a lot back then. Couchy is an Android app for my grandmother: a warm companion that reminds them to take their pills, in a voice they A real alarm. It rings like an alarm clock: on the alarm audio stream (so it sounds even if the phone is muted or in Do Not Disturb), it wakes the screen and opens over the lock screen, and the companion says the name of the medicine out loud until my grandmother answers. Four companions (Grace, Walter, Sunny, Arthur), each with their own voice and personality. Talk back. my grandmother can say "I already took it after breakfast" or "I feel a bit dizzy" and the companion understands, answers, marks the dose, and tells the family if it sounds worrying. A help button. One tap, a short voice note, and every relative gets an urgent Telegram alert with the audio. Family peace of mind. A Telegram bot alerts relatives when a dose is late (60 min by default), when there has been no activity for a while (3 h by default, configurable, quiet at night), and on request sends adherence stats: how many pills are taken, how late, how consistent. https://youtube.com/shorts/4fhGci_ESHY?feature=share APK: https://github.com/hetairoii/couchy/releases/tag/v1.0 · Backend: https://couchy-api.onrender.com/health I believe this would have been a lot of preassure realising for her. She always knew she had to take the pills, but at some point she forgot how to read and understanding the pills she had to take and how was a whole laborous task for her. I like to think that having this being done by her grandson would have made her smile. / couchy Couchy A warm AI companion that helps an elderly person remember their pills, and keeps their family in the loop. Bu

Mobile
Interesse
dev.to

How I Edit Text That Is Already Baked Into an Image

There's a specific image problem that most tools have no good answer for: the words are already part of the picture, and the original design file is gone. A cafe renames itself, but the sign photo is already printed on the menu. An event moves a week later, but the poster only exists as a JPG. A price goes up and the shelf label is a flat photo from two years ago. In each case, re-shooting costs more than the change is worth. Photoshop is the obvious answer and usually the wrong one. There is no text layer to click into — the letters stopped being text the moment the file was flattened. You aren't editing text, you're editing a picture of text. That's the problem I built Reword Image around. The obvious workaround is to cover the old words with a rectangle and type new ones over the top. It demos fine and falls apart immediately: The background is never flat. A painted sign has brush texture, a chalkboard has dust, a label has paper grain. A solid rectangle reads as a patch from across the room. The lighting is baked in. Real photos have a gradient across the surface, a shadow from the frame, a falloff toward the edge. A flat fill ignores all of it. The lettering has depth. Engraved, embossed or weathered type casts its own small shadows. New flat text sits on the image instead of in it. So the text has to be replaced in place: the region gets rebuilt with the material, lighting and perspective it sits on. A wooden hanging sign, renamed. The grain, the chain shadow and the slight perspective of the photo all have to survive: An event poster with the date moved: And the harder case — removing lettering entirely and rebuilding whatever was behind it: Input quality dominates the result, so it's worth being specific instead of listing features. Works well Large, clear lettering Simple to mid-complexity backgrounds Short replacements — a word, a name, a date, a price Straight-on or mildly angled shots Needs another attempt Very small text (roughly under 20px in the sourc

Dev
Interesse
CSS-Tricks

Using and Styling the Dialog Element

There's a lot of nuance to the element, a seemingly little piece of web architecture. I've got some notes from digging into it. Using and Styling the Dialog Element originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.

Dev
Interesse
dev.to

6,918 Paperless matches: a document archive that was meant to replace the filing cabinet

6,918 Paperless matches: a document archive that was meant to replace the filing cabinet Paperless-ngx scans paper documents, runs optical character recognition over them, and stores the result as searchable files. Teams adopt it to stop losing invoices and contracts, which means the archive ends up holding exactly the records a company must protect. all scope. Some of those matches are unrelated projects that share the word, so the Paperless-ngx share of the total is smaller. A document archive is an identity record in disguise. Invoices carry bank details and addresses. Contracts name signatories. Employment paperwork includes national identifiers. Once scanned and indexed, all of it becomes searchable text with a single query box in front of it. Self-hosted deployments usually authenticate against a local user table, and many rely on a reverse proxy for TLS. The frequent mistakes are familiar. Accounts are created for family members or temporary staff and never removed. The archive sits on a public hostname because remote access was convenient. Backups are written to the same volume, so a compromise takes the copies too. Establish whether the archive must be reachable without a VPN. For most households and small teams the answer is no, and closing the port removes the risk entirely. The count is a starting point for scoping; an operator can restrict the query to their own address space and verify that nothing answers unexpectedly. The link reproduces the query used here. Paperless-ngx documentation: https://docs.paperless-ngx.com/ ZoomEye search, query title="Paperless", scope all, retrieved 2026-10-03, count 6,918

SegurançaInfra
Interesse
Phoronix

Intel LLM-Scaler-vLLM PV 1.5 Brings Big Improvements

Intel software engineers today released the latest version of LLM-Scaler-vLLM PV 1.5, their containerized Docker stack providing a convenient AI/LLM experience atop Intel Arc Graphics hardware and born out of their Project Battlematrix initiative...

IADev
Interesse
Phoronix

Linux Landing Kernel Workaround For AMD TLBI Erratum #1718

AMD TLBI Erratum #1718 was worked around in CPU microcode for addressing a defect in certain Zen CPUs where the Translation Lookaside Buffer Invalidate Instruction use could lead to to stale translation entries. But for those on affected AMD CPUs and not running the updated microcode, a kernel workaround is being introduced with today's Linux 7.3-rc7 kernel and to be back-ported to prior kernel versions...

LinuxInfra
Interesse
dev.to

A prototype AI agent can survive on a static CSV and a single Python script. A production agent cannot.

I recently completed the AI-Assisted Data Science with BigQuery lab via Google Cloud. While analyzing the final multimodal vector search stage, I focused heavily on how the pipeline enforces state dependencies. If the remote multimodal_embedding_model isn't strictly instantiated within the dataset first, the system throws a hard blocker. In an isolated sandbox, that’s just a minor execution step. But in a production multi-agent system? That is a catastrophic DAG dependency failure. This constraint perfectly exposes the exact bottleneck the AI industry is hitting today. We spend all our time building the orchestration loops, and almost zero time engineering the rigid data pipelines required to feed them. Here is the unfiltered engineering reality of scaling agents: → Data Gravity over APIs: Pulling massive datasets out of a warehouse just to generate vector embeddings kills real-time execution. Running the embedding model natively inside the warehouse cuts extraction latency to zero. → Strict State Management: You can build the most elegant LangGraph orchestration in the world, but if your agent fires before your remote model and vector indices are fully instantiated, your workflow is dead on arrival. → Retrieval Speed = Agent Speed: If your agent has to wait on three external scripts to normalize a multimodal table before it can execute an action, your agent isn't autonomous. It's just a slow API call. Good AI agents don't just reason well. They are plumbed well.

IAInfraDev
Interesse
dev.to

An image API acceptance test should check pixels, not only task success

Disclosure: I maintain FreyaVideo. This note was prepared with AI assistance and reviewed against our integration records. It is an acceptance-test worksheet, not an independent model review or a quality ranking. A provider can return success while the file still needs inspection. We recently integrated Nano Banana 2.1 and separated three checks: request acceptance, decoded output properties, and whether the image is useful for the intended layout. Requested Decoded output What it establishes 2K, two JPEG outputs, 16:9 Two 2752 × 1536 JPEG images Count and format were accepted; ratio was approximately 1.79:1 4K, one WebP, 1:4 2048 × 8256 WebP Tall format accepted; inspect dimensions before placing it 1K, one PNG, 8:1, fourteen distinct references 2928 × 352 PNG Request accepted; actual ratio was approximately 8.32:1 Three calls do not establish typical latency, reference fidelity, comparative quality, or every parameter combination. The third request accepting fourteen references does not prove that every reference influenced the result. import sharp from "sharp"; import { readFile } from "node:fs/promises"; const image = await readFile("output.png"); const { width, height, format } = await sharp(image).metadata(); if (!width || !height) throw new Error("Missing dimensions"); const requestedRatio = 8; const actualRatio = width / height; console.log({ width, height, format, actualRatio, ratioDeviationPercent: 100 * Math.abs(actualRatio / requestedRatio - 1) }); Record a request ID before polling. Avoid blindly retrying an uncertain generation POST: success may have happened even when the response was lost. Count decoded files separately from tasks. If a design needs an exact ratio, explicitly review and crop the output; do not silently remove important content. Record the credits shown to the user, the credits actually reserved/refunded, and the provider invoice as separate fields. Our generation key could not read Fal's usage endpoint (403), so these tests do not cl

Dev
Interesse
dev.to

Building ZORGAX: From a Local AI Model to a Server Operations Agent for MyZubster

Building ZORGAX: From a Local AI Model to a Server Operations Agent for MyZubster Connecting Ollama, Docker, Open WebUI and a custom AI assistant — and learning why reliable tool calling matters. We're working on a new capability inside the MyZubster ecosystem: ZORGAX, an AI assistant intended to help observe, diagnose and eventually manage technical infrastructure. Our goal isn't simply to create another chatbot. We want an AI agent that can understand what's happening across our servers, services and software projects — while operating under explicit permissions and human oversight. Here's what we've built and tested so far. The pilot environment includes: Ubuntu 24.04 LTS running on our VPS Docker and Docker Compose for isolated services Ollama for local LLM inference Qwen 2.5 3B as the foundation model ZORGAX, our custom Ollama model Open WebUI as the conversational interface N4K48, our independent AI integration pilot Qdrant for vector infrastructure The architecture allows our AI services to communicate internally without exposing the Ollama API directly to the public internet. One of our first challenges involved networking. Ollama was available at: http://172.22.0.1:11434 But Open WebUI was configured to use: http://host.docker.internal:11434 Inside the container, that hostname resolved to 172.17.0.1, where requests timed out. We corrected the Open WebUI connection to the reachable Ollama endpoint and verified it with an API request. The result: HTTP: 200 Models: - nomic-embed-text:latest - zorgax:latest - qwen2.5:3b CONNECTION: OK We also introduced a systemd socket proxy to make Ollama accessible through the VPS loopback interface: 127.0.0.1:11434 This preserved the existing Ollama listener used by Docker. Connectivity alone isn't enough. We tested text generation directly from the Open WebUI container using Ollama's /api/generate endpoint. The result: RESPONSE: OLLAMA OK DONE: True The Open WebUI container subsequently passed its healthcheck: running / he

IAInfraDevLinux
Interesse