SShortSingh.

Programming

0
ProgrammingDEV Community ·

Vercel apps can now upload to S3 without long-lived AWS keys

Vercel's Amazon S3 Marketplace integration lets an app store uploaded files in S3 without embedding a permanent AWS access key in code or environment variables. The integration links an S3 resource to a Vercel project, provides connection details as environment variables, and authenticates using short-lived OIDC credentials. Developers still have to handle authorization, object key naming, file validation, and read permissions themselves. The integration is best suited to teams already using AWS, and it only works with buckets created through Vercel rather than arbitrary existing buckets. The article also stresses that the IAM role's permissions still govern what the credentials can do, so access should be limited to the required bucket and key prefix.

0
ProgrammingDEV Community ·

Developer Builds PubMed Memory Connector for AI Assistant on KRAS G12C Drug Resistance

A developer built a PubMed connector for cognee, an open-source memory layer for AI agents, to track research on how KRAS G12C tumours resist sotorasib and adagrasib. The connector takes a standard PubMed query and ingests matching records into a store the agent can query over time. In a test run against live NCBI data, 155 records from 2024 onward were stored in about seven seconds, and a repeat sync made no downloads because nothing had changed. The article highlights a 2026 case report describing a patient whose tumour developed Y96 mutations after treatment, with combination therapy failing to halt progression. The author argues that such persistent memory lets an assistant reflect recent findings that a frozen training dataset would miss.

0
ProgrammingDEV Community ·

Telling a cheap model to think less made it slower and sometimes silent

A developer building a desktop app that routes requests through a Cloudflare Worker gateway to OpenRouter found a bug in how reasoning was capped. The gateway applied a reasoning effort setting to any model whose name matched a regex including "gemini-2.5", which unintentionally caught Gemini 2.5 Flash-Lite, a model that does not think by default. For non-reasoning models, any effort value switches thinking on, so the setting consumed part of the token budget and sometimes left the visible reply empty. A test call with a 16-token budget returned 12 reasoning tokens and a blank answer, despite a successful 200 response. The fix was a negative lookahead excluding Flash-Lite from the regex, along with tests to prevent regression.

0
ProgrammingDEV Community ·

Why live video dubbing lags a sentence behind and how buffered audio helps

Real-time video translators usually voice translations about one sentence behind the speaker, because they must wait for a full sentence before translating it. Word order differs across languages, so translating partial sentences degrades quality, which creates a trade-off. For recorded videos, the browser preloads media ahead of the playhead, so a dubbing tool can recognize speech from that buffered audio. Sentences are assembled and translated before the viewer hears them, allowing the dub to start with the speaker. The approach works best with a small lookahead window, and seeking briefly resets it.

0
ProgrammingDEV Community ·

Why Lovable Apps Break in Production: Common Causes From 264 Reports

An analysis of 264 public reports about Lovable apps failing sorted the problems by root cause. The largest groups involved login and database connection issues, Lovable platform outages, and apps not appearing in Google search. Data exposure, where private information is visible or at risk, ranked close behind and is especially hard to detect because the app appears to work normally. The author argues that demos only need to function for one user in ideal conditions, while production must handle all users, networks, and failure scenarios. The piece recommends checking causes in a specific order, starting with the Lovable status page during outages and confirming that the published site matches the latest edits.

0
ProgrammingDEV Community ·

Fintech welcome emails: auditing bounce handling without SMTP

The article argues that welcome emails should be sent once, with delivery events polled outside the signup request and every permanent bounce or complaint converted into a suppression decision before further sends are queued. It recommends keeping the event, the decision, and the message correlation ID as separate audit evidence, since a simple 'bounced' status is weak proof on its own. The proposed design uses four durable records: recipient state, outbound intent, raw provider event, and suppression decision, with an internal communication ID as the primary join key. Each imported event is logged with its ID, timestamps, and a payload digest, while sensitive onboarding data is kept out of the logs. The author also stresses that acceptance, delivery, inbox placement, and reading are distinct claims that should not be merged into a single 'sent' flag.

0
ProgrammingDEV Community ·

Claude 'Prompt Auditing' Tip Questioned: Is It Real Engineering or Hype?

A tip circulating in Chinese AI developer communities claims a /claude-api prompt-audit command in Claude Code can audit skills, CLAUDE.md files and prompts, remove elements said to block the model, and rewrite them per an official Opus 5.5 guide within five minutes. An opinion piece on DEV Community argues the claim is misleading, since model behavior depends heavily on context and no documented set of prompt patterns exists for automated detection. The author notes that the command does not appear in current public Claude Code documentation and may be a custom or third-party script, or may not exist at all. The piece warns that automated stripping of instructions could erase valuable accumulated context and make prompts worse. It recommends developers verify what any such tool reads, writes and can roll back before using it.

0
ProgrammingDEV Community ·

LiteLLM Router Adds Provider Failover to Apps Locked to One AI Vendor

A single-provider setup can turn a temporary OpenAI rate-limit outage into an application outage, because the vendor is hardcoded into client code. LiteLLM offers one OpenAI-compatible interface across more than 100 providers, with a Router that retries within a model group and falls back to another group when the primary fails. Developers define deployments under shared model aliases, so feature code keeps calling the same chat completions interface while reliability is handled in configuration. Retries stay inside the same group, while fallbacks move to a backup provider, and persistent failures can be logged to guide budgets or regional decisions. The article also describes running LiteLLM as a gateway so multiple services can share the same failover rules.

0
ProgrammingDEV Community ·

ImportSmith 1.0 inspects Python dependencies on Windows without running the project

RooTech has released ImportSmith 1.0, a Windows desktop utility for auditing Python project dependencies. The tool statically analyzes Python source code to identify imports and map them to likely third-party distributions. It compares observed imports against declared dependencies and can export reports for review. Because it never executes the inspected project, it avoids side effects, though dynamic imports and ambiguous module names still require human judgment. The developer positions the results as a starting point for auditing rather than an automatic guide for installing or removing packages, and the product is priced at $19.99.

0
ProgrammingDEV Community ·

Local Multi-Agent Desk Flags Battery Contamination in Recycling Loads Despite Clean Numbers

A personal experiment called ResidueDesk-AI uses a local multi-agent setup to triage recycling loads at a fictional materials recovery facility. Its author built a semantic model defining loads, commodities, and suppliers, with measures for weight, residue, and moisture, so agents share one definition of contamination. In the motivating case, an HDPE load with acceptable residue was quarantined because a spot-check note mentioned a battery pack. The system runs on a laptop without model APIs and, on ten sample tickets, produced two accepts, four resorts, three diverts, and one reject. The author stresses this is a personal project, not a plant procedure, and has not been connected to a live scale.

0
ProgrammingDEV Community ·

Adjusting Image Brightness, Contrast and Saturation in the Browser Without Libraries

CSS filters can handle basic visual effects, but pixel-level control requires the Canvas API and direct pixel manipulation. The article shows how to extract image data from a file using a canvas element. It explains per-channel brightness changes, the conversion of RGB values to HSL for saturation adjustments, and sharpness via a convolution kernel. It also notes that processing a large 4000×3000 image takes about 200ms, so previews can run at quarter resolution with full resolution reserved for download.

0
ProgrammingHacker News ·

One in Ten People Are Over 65, Yet Three in Four Live Under a Leader Older Than That

A Substack analysis by Hannah Ritchie examines the ages of national leaders compared with the age structure of the global population. It finds that roughly one in ten people worldwide is older than 65. Yet about three in four people live under a government led by someone above that age. The piece draws this contrast to highlight a mismatch between who governs and who is governed. The source article provided limited detail beyond this headline comparison, and the full data and methodology are available only at the original link.

0
ProgrammingDEV Community ·

Six Common Causes of GBase 8s oninit Startup Failures and How to Diagnose Them

A guide explains why the GBase Database (GBase 8s) instance may fail to start when oninit -ivy is run, and suggests checking the environment before reinstalling. The six common causes covered include unset or incorrect ONCONFIG settings, port conflicts, directory permission problems, shared memory and system resource limits, and full disks. It also flags a missing or misconfigured sqlhosts file, which mainly affects client connectivity. For each cause, the article offers Linux commands to investigate, along with cautions against blindly killing processes, applying arbitrary memory values, or deleting files.

0
ProgrammingDEV Community ·

Directories Are Crowding Out Agency Pages in Search Results for Agency Queries

A live check of Google results for "content marketing agency" found seven of nine first-page results were listicles and directories rather than agency sites. Only two results were agencies' own pages, both regional service pages. The author argues buyers now find agencies through intermediaries, so agencies must compete to be listed. He recommends checking how many page-one results are directories, confirming that money pages are indexed in Search Console, and adding a GA4 segment for AI-referred traffic. The post comes from the author's own company, which builds a marketing-data tool, and he notes the same checks work with any analytics stack.

0
ProgrammingDEV Community ·

Five Common Causes of GBase 8s Connection Failures After Installation

A GBase Database (GBase 8s) instance can be running yet still refuse dbaccess or remote client connections. The guide lists five frequent culprits to check before reinstalling: sqlhosts misconfiguration, firewall restrictions, port conflicts, server name mismatches, and client connection settings. A typical sign is that local connections succeed while remote ones fail, often because the sqlhosts entry uses localhost or 127.0.0.1 instead of a reachable address. Administrators are advised to verify host addresses, test port reachability, and identify any process already using the database port without disabling firewalls or stopping unrelated services. The article recommends confirming server names and client configuration files before making changes.

0
ProgrammingDEV Community ·

Testing a Retro Text Generator Across Logo and Poster Use Cases

A text-image generator serves different creative goals, so a logo route and a poster route need distinct success criteria. The article argues that logo users need a compact identity asset that stays recognizable at small sizes, while poster users need a headline that reads clearly within a layout. It proposes a black-box test plan built on observable workflow stages such as text entry, preview, and download, without assuming anything about the product's internals. The author recommends a simple state vocabulary so bugs can be described and reproduced precisely, and suggests checking how previews hold up at several scales. The piece also cautions that automated checks can confirm a preview exists, but human review is still needed to judge letter legibility and cropping.

0
ProgrammingDEV Community ·

DEV's AI labels: 1 in 25 posts carries one, and a timed burst skewed the figures

A study of DEV's public API found that since the platform added Hand Written, AI-Assisted and Fully Autonomous labels in late August, about 4.1% of new posts carry one. A single burst of 1,912 identical AI-Assisted posts, with no reactions or comments, accounted for roughly a quarter of all AI-Assisted labels and produced a false spike in one week. Removing it lowers the labelled share to 3.5%, with AI-Assisted at 2.0%. The author notes that labelled posts tend to include cover images and tags more often, so labels may mostly mark authors who complete every field. The study also reports that Hacktoberfest challenge entries are labelled at nearly five times the platform rate, though the reason is unclear.

0
ProgrammingDEV Community ·

FollowUp Local: Offline Gemma Tool Diagnoses Why Chat Customers Go Silent

A developer has released FollowUp Local, a small open-source tool for sellers who close deals over chat apps like Instagram, WhatsApp, and WeChat. Users paste a conversation, and a Gemma model running on their own computer identifies the stage where the customer stalled, the underlying concern behind their words, and supporting evidence quoted from the chat. The tool also suggests the next message to send and the timing for it. The developer says the model runs locally, so customer conversations never leave the machine and there is no per-message cost. Sample runs on a CPU-only Linux machine took about 19 seconds, and the tool also handles Chinese-language chats. It was built for the DEV Hacktoberfest 2026 Open-Source AI Challenge.

0
ProgrammingDEV Community ·

How to Stop AI From Repeating the Same Mistakes

AI systems often repeat errors even after users correct them, because a correction made within a conversation does not change the model's underlying behavior. Corrections can also get lost when long conversations are truncated or summarized. The article argues that vague warnings are less effective than explicit, scoped rules that define exactly what the AI must do. It recommends turning recurring corrections into reusable instructions stored in persistent locations such as system prompts, project settings, or version-controlled files. It also suggests keeping a structured mistake log and adding automated validation so errors are caught before output reaches the user.

← NewerPage 426 of 3108Older →